
:root{
  --tg-bg:#050505;
  --tg-card:#0f0f12;
  --tg-border:rgba(255,255,255,.08);
  --tg-text:#f5f7ff;
  --tg-muted:rgba(245,247,255,.72);
  --tg-g1:#ffcc00;
  --tg-g2:#ff0080;
  --tg-g3:#7f00ff;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, "Poppins", Arial, sans-serif;
  background: var(--tg-bg);
  color: var(--tg-text);
  overflow-x:hidden;
}
a{color:inherit;text-decoration:none}
.tg-navbar{
  background: rgba(5,5,5,.72);
  backdrop-filter: blur(12px);
  border-bottom:1px solid var(--tg-border);
}
.tg-brand img{height:36px}
.nav-link{opacity:.85}
.nav-link:hover{opacity:1}
.btn-gradient{
  background: linear-gradient(45deg,var(--tg-g1),var(--tg-g2),var(--tg-g3));
  border:0;
  color:#0b0b0b;
  font-weight:700;
  border-radius:999px;
  padding:.75rem 1.15rem;
}
.btn-outline-glow{
  border:1px solid rgba(255,255,255,.18);
  border-radius:999px;
  padding:.75rem 1.15rem;
  color:var(--tg-text);
  background: rgba(255,255,255,.04);
}
.btn-outline-glow:hover{background:rgba(255,255,255,.07)}
.tg-hero{
  min-height: 100vh;
  display:flex;
  align-items:center;
  position:relative;
  padding-top:86px;
}
.tg-hero:before{
  content:"";
  position:absolute; inset:-10%;
  background:
    radial-gradient(900px 520px at 20% 10%, rgba(255,204,0,.45), transparent 60%),
    radial-gradient(820px 520px at 80% 20%, rgba(255,0,128,.35), transparent 60%),
    radial-gradient(860px 560px at 60% 90%, rgba(127,0,255,.35), transparent 60%);
  filter: blur(0px);
  pointer-events:none;
}
.tg-noise{
  position:absolute; inset:0;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
  opacity:.18;
  mix-blend-mode:overlay;
  pointer-events:none;
}
.tg-hero h1{
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height:1.06;
  letter-spacing:-.02em;
}
.tg-gradient-text{
  background: linear-gradient(45deg,var(--tg-g1),var(--tg-g2),var(--tg-g3));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.tg-subtitle{color:var(--tg-muted);font-size:1.05rem}
.tg-glow-orb{
  position:absolute;
  width:520px; height:520px;
  border-radius:50%;
  background: linear-gradient(45deg,var(--tg-g2),var(--tg-g1));
  filter: blur(140px);
  opacity:.28;
  left: 50%;
  top: 40%;
  transform: translate(-50%,-50%);
  pointer-events:none;
}
.section{padding:92px 0}
.section-title{
  font-size: clamp(1.6rem, 2.5vw, 2.1rem);
  letter-spacing:-.01em;
}
.section-lead{color:var(--tg-muted)}
.tg-card{
  background: rgba(15,15,18,.82);
  border:1px solid var(--tg-border);
  border-radius: 18px;
  padding: 22px;
  height:100%;
  position:relative;
  overflow:hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.tg-card:hover{
  transform: translateY(-6px);
  border-color: rgba(255,255,255,.18);
  box-shadow: 0 18px 46px rgba(0,0,0,.45);
}
.tg-card .tg-card-glow{
  position:absolute; inset:-1px;
  background: radial-gradient(420px 220px at var(--mx,50%) var(--my,40%), rgba(255,0,128,.22), transparent 60%),
              radial-gradient(420px 220px at calc(var(--mx,50%) + 20%) calc(var(--my,40%) + 10%), rgba(255,204,0,.18), transparent 55%);
  opacity:0;
  transition: opacity .25s ease;
  pointer-events:none;
}
.tg-card:hover .tg-card-glow{opacity:0; transition:opacity .25s ease; pointer-events:none;}
.tg-card:hover .tg-card-glow{opacity:1}
.tg-icon{
  width:44px;height:44px;border-radius:14px;
  display:flex;align-items:center;justify-content:center;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  margin-bottom:14px;
}
.tg-badge{
  display:inline-flex;gap:.4rem;align-items:center;
  font-size:.8rem;
  padding:.35rem .6rem;
  border-radius:999px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  color:var(--tg-muted);
}
.tg-hr{
  height:1px;background:var(--tg-border);
  margin: 18px 0;
}
.tg-thumb{
  width:100%;
  border-radius:16px;
  border:1px solid var(--tg-border);
}
.tg-footer{
  border-top:1px solid var(--tg-border);
  background: rgba(8,8,10,.9);
}
.small-muted{color:var(--tg-muted)}
.tg-kpi{
  display:flex;align-items:center;justify-content:space-between;
  gap:12px;
}
.tg-kpi .num{font-size:1.8rem;font-weight:800}
.tg-kpi .lbl{color:var(--tg-muted)}
/* Admin */
.admin-shell{
  min-height:100vh;
  background: radial-gradient(1000px 700px at 20% 10%, rgba(255,204,0,.18), transparent 60%),
              radial-gradient(900px 700px at 80% 20%, rgba(255,0,128,.16), transparent 60%),
              #050505;
}
.admin-sidebar{
  position:sticky; top:0;
  height:100vh;
  border-right:1px solid var(--tg-border);
  background: rgba(5,5,5,.72);
  backdrop-filter: blur(10px);
  padding: 18px 14px;
}
.admin-sidebar a{
  display:flex;align-items:center;gap:.65rem;
  padding:.6rem .75rem;
  border-radius:14px;
  opacity:.86;
}
.admin-sidebar a.active, .admin-sidebar a:hover{
  opacity:1;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
}
.admin-topbar{
  border-bottom:1px solid var(--tg-border);
  background: rgba(5,5,5,.72);
  backdrop-filter: blur(10px);
}
.table-dark{
  --bs-table-bg: rgba(15,15,18,.88);
  --bs-table-border-color: rgba(255,255,255,.08);
}
.form-control, .form-select{
  background: rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.12);
  color: var(--tg-text);
}
.form-control:focus, .form-select:focus{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.22);
  box-shadow:none;
  color: var(--tg-text);
}
.modal-content{
  background: rgba(15,15,18,.95);
  border:1px solid rgba(255,255,255,.12);
}


/* --- FIX: Card glow artifacts (services grid / all cards) --- */
.tg-card, .tg-link-card { position: relative; overflow: hidden; }
.tg-card-glow{
  pointer-events:none;
  opacity: 0 !important;
  transform: translateZ(0);
  filter: blur(22px);
}
.tg-card:hover .tg-card-glow,
.tg-link-card:hover .tg-card-glow{
  opacity: .9 !important;
}
/* remove any lingering decorative left bars on large cards if exist */
.tg-link-card::before, .tg-link-card::after { opacity: 0 !important; }


/* --- Services section (premium cards like reference screenshot) --- */
.tg-section-services{
  position:relative;
  padding-top:64px;
  padding-bottom:64px;
}
.tg-section-services::before{
  content:"";
  position:absolute;
  inset:-80px -40px -80px -40px;
  background:
    radial-gradient(900px 420px at 20% 0%, rgba(212,135,255,.14), transparent 60%),
    radial-gradient(900px 420px at 80% 15%, rgba(142,252,220,.10), transparent 60%),
    radial-gradient(700px 420px at 50% 80%, rgba(255,160,90,.06), transparent 62%);
  pointer-events:none;
  z-index:0;
}
.tg-section-services > .container{ position:relative; z-index:1;     margin-top: 50px;}

.tg-svc-card{
  position:relative;
  border-radius: 22px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.10);
  padding: 22px 22px 20px;
  min-height: 220px;
  display:flex;
  flex-direction:column;
  gap:10px;
  overflow:hidden;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
  box-shadow: 0 10px 40px rgba(0,0,0,.45);
}
.tg-svc-card::before{
  content:"";
  position:absolute; inset:-40px;
  background: radial-gradient(500px 260px at 50% 30%, rgba(212,135,255,.22), transparent 65%);
  opacity:0;
  transition: opacity .25s ease;
}
.tg-svc-card:hover{ transform: translateY(-3px); border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.04); }
.tg-svc-card:hover::before{ opacity:1; }

.tg-svc-icon{
  width: 44px; height: 44px;
  display:grid; place-items:center;
  border-radius: 14px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(231,238,252,.92);
}
.tg-svc-icon i{ font-size: 18px; line-height:1; }

.tg-svc-title{
  font-size: 18px;
  margin: 8px 0 0;
  font-weight: 700;
  color: #fff;
}
.tg-svc-desc{
  margin: 0;
  color: rgba(231,238,252,.78);
  line-height: 1.35;
  min-height: 54px;
}

.tg-svc-btn{
z-index:9999999999;
  margin-top:auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.02);
  color:#fff;
  text-decoration:none;
  transition: background .2s ease, border-color .2s ease;
}
.tg-svc-btn:hover{
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.22);
}


/* =========================
   ADMIN MOBILE SIDEBAR OFFCANVAS
   ========================= */
@media (max-width: 991.98px){
  body.admin-shell { overflow-x:hidden; }
  .admin-sidebar{
    position: fixed !important;
    top: 0; left: 0;
    height: 100vh;
    width: 280px;
    z-index: 1055;
    transform: translateX(-110%);
    transition: transform .25s ease;
    box-shadow: 0 20px 60px rgba(0,0,0,.55);
  }
  body.admin-sidebar-open .admin-sidebar{ transform: translateX(0); }

  .admin-overlay{
    display:none;
    position: fixed;
    inset:0;
    z-index: 1050;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(2px);
  }
  body.admin-sidebar-open .admin-overlay{ display:block; }

  .admin-main{ padding-left: 0 !important; }
  .admin-topbar .tg-admin-menu-btn{ display:inline-flex !important; }
}

@media (min-width: 992px){
  .admin-overlay{ display:none !important; }
  .tg-admin-menu-btn{ display:none !important; }
}
