/* ==========================================================================
   DZTFIX Portal Frontend — Winter 2026 (Enhanced Pack FIX)
   (c) dztfix. All rights reserved.
   ========================================================================== */

:root{
  --bg0:#060a16;
  --bg1:#071024;
  --stroke: rgba(255,255,255,0.12);
  --stroke2: rgba(255,255,255,0.20);
  --txt: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.62);

  --a1:#7c3aed;
  --a2:#06b6d4;
  --a3:#22c55e;

  --r-lg: 18px;
  --r-xl: 24px;

  --shadow: 0 24px 80px rgba(0,0,0,0.46);
  --shadow2: 0 14px 46px rgba(0,0,0,0.42);

  --fontA: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial;
  --fontB: "Cairo", system-ui, -apple-system, Segoe UI, Roboto, Arial;
}

html[data-theme="light"]{
  --bg0:#f7f8ff;
  --bg1:#ffffff;
  --stroke: rgba(10,15,26,0.12);
  --stroke2: rgba(10,15,26,0.22);
  --txt: rgba(10,15,26,0.90);
  --muted: rgba(10,15,26,0.56);

  --shadow: 0 24px 80px rgba(0,0,0,0.14);
  --shadow2: 0 14px 46px rgba(0,0,0,0.12);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: var(--fontA);
  color: var(--txt);
  background:
    radial-gradient(1200px 640px at 15% 10%, rgba(124,58,237,0.20), transparent 55%),
    radial-gradient(1000px 540px at 80% 10%, rgba(6,182,212,0.16), transparent 55%),
    radial-gradient(1200px 720px at 50% 110%, rgba(34,197,94,0.10), transparent 55%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  overflow-x:hidden;
}
html[dir="rtl"] body{ font-family: var(--fontB); }

a{ color: inherit; text-decoration:none; }

.container{
width:min(1120px, calc(100% - 40px));
  margin:0 auto;
  /* FIX: prevent visual seams / split backgrounds on pages */
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* FIX: kill any container pseudo overlays that can cause center split */
.container::before,
.container::after{
  content:none !important;
  display:none !important;
}


#snow{
  position:fixed;
  inset:0;
  z-index: 1;
  pointer-events:none;
  opacity: 0.95;
}

/* Topbar */
.topbar{
  position: sticky;
  top:0;
  z-index: 20;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(6,10,22,0.55);
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
html[data-theme="light"] .topbar{
  background: rgba(255,255,255,0.62);
  border-bottom: 1px solid rgba(10,15,26,0.10);
}
.row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
  padding: 14px 0;
}
.brand img{
  height: 30px;
  width:auto;
  display:block;
  filter: drop-shadow(0 12px 30px rgba(0,0,0,0.35));
}
.actions{
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content:flex-end;
}

.icon{
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.04);
  display:inline-grid;
  place-items:center;
  cursor:pointer;
  box-shadow: 0 10px 28px rgba(0,0,0,0.20);
}
html[data-theme="light"] .icon{
  box-shadow: 0 10px 28px rgba(0,0,0,0.10);
}
.icon svg{ width: 20px; height: 20px; }

.btn{
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.04);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight: 800;
  letter-spacing: 0.2px;
  cursor:pointer;
}
.btn.primary{
  border-color: rgba(6,182,212,0.35);
  background: linear-gradient(135deg, rgba(124,58,237,0.85), rgba(6,182,212,0.65));
}

/* Main content stacking above mist/snow */
.shell{
  position:relative;
  z-index: 12;
  padding: 24px 0 48px;
}

.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.tile{
  grid-column: span 6;
  min-height: 320px;
  border-radius: var(--r-xl);
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.04);
  box-shadow: var(--shadow);
  position:relative;
  overflow:hidden;
  transition: transform .20s ease, border-color .20s ease;
  will-change: transform;

  perspective: 900px;
  transform-style: preserve-3d;

  --mx: 50%;
  --my: 50%;
  --rx: 0deg;
  --ry: 0deg;
  --lift: 0px;
  --scale: 1;
  transform: translateY(var(--lift)) scale(var(--scale)) rotateX(var(--rx)) rotateY(var(--ry));
}
.tile:hover{
  --lift: -6px;
  --scale: 1.012;
  border-color: rgba(255,255,255,0.26);
}

.cover{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  transform: translate(var(--px, 0px), var(--py, 0px)) scale(1.08);
  filter: saturate(1.05) contrast(1.03);
  transition: transform .22s ease;
  will-change: transform;
}
.coverVideo{ opacity: 0; transition: opacity .55s ease; }
.tile.video-ready .coverVideo{ opacity: 1; }

.overlay{
  position:absolute;
  inset:0;
  background:
    radial-gradient(520px 320px at var(--mx) var(--my), rgba(255,255,255,0.14), transparent 58%),
    radial-gradient(1200px 600px at 20% 20%, rgba(124,58,237,0.28), transparent 60%),
    radial-gradient(1200px 600px at 85% 20%, rgba(6,182,212,0.20), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,0.08), rgba(0,0,0,0.58));
}

.frame{
  position:absolute;
  inset: 14px;
  border-radius: calc(var(--r-xl) - 10px);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.16);
  pointer-events:none;
}

.shine{
  position:absolute;
  inset:-40%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.14), transparent);
  transform: translateX(-70%) rotate(16deg);
  opacity: 0;
  transition: transform .60s ease, opacity .40s ease;
  pointer-events:none;
}
.tile:hover .shine{
  opacity: 1;
  transform: translateX(70%) rotate(16deg);
}

.badge{
  position:absolute;
  top: 18px;
  inset-inline-start: 18px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.30);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-weight: 950;
  letter-spacing: 1.6px;
  font-size: 12px;
}

.cta{
  position:absolute;
  bottom: 18px;
  inset-inline-start: 18px;
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-weight: 900;
  letter-spacing: 0.8px;
}

.status-dot{
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--a2), var(--a3));
  box-shadow: 0 0 0 6px rgba(34,197,94,0.10);
}

.footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 18px;
  padding: 22px 0 0;
  margin-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: var(--muted);
  font-weight: 700;
}
.foot-links{ display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end; }
.footer a{ opacity: 0.85; padding: 8px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.08); }
.footer a:hover{ opacity: 1; border-color: rgba(255,255,255,0.18); }

/* Modal */
.modal{
  position:fixed;
  inset:0;
  z-index: 30;
  display:none;
  align-items:center;
  justify-content:center;
  padding: 22px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.modal.show{ display:flex; }
.modal-card{
  width: min(420px, calc(100% - 40px));
  border-radius: 22px;
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(10,15,26,0.86), rgba(10,15,26,0.64));
  box-shadow: var(--shadow);
  padding: 18px;
}
html[data-theme="light"] .modal-card{
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.78));
}
.modal-title{
  margin: 0 0 14px;
  font-weight: 950;
  letter-spacing: 0.5px;
  font-size: 18px;
}
.modal-row{ display:flex; justify-content:flex-end; }

/* Disabled */
.btn.disabled{ opacity:0.45; cursor:not-allowed; pointer-events:none; filter:saturate(0.6); }
.icon.disabled{ opacity:0.45; cursor:not-allowed; pointer-events:none; }
button[disabled]{ opacity:0.45; cursor:not-allowed; }

/* Ambient mist */
body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index: 2;
  background:
    radial-gradient(900px 520px at 20% 20%, rgba(180,240,255,0.07), transparent 65%),
    radial-gradient(900px 520px at 85% 30%, rgba(190,255,230,0.05), transparent 60%),
    radial-gradient(900px 520px at 50% 100%, rgba(255,255,255,0.03), transparent 60%);
  opacity: 0.75;
}

/* Boot */
#boot{
  position:fixed;
  inset:0;
  z-index: 40;
  display:grid;
  place-items:center;
  background: radial-gradient(900px 520px at 50% 45%, rgba(255,255,255,0.06), transparent 60%),
              rgba(6,10,22,0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: opacity .35s ease, visibility .35s ease;
}
html[data-theme="light"] #boot{
  background: radial-gradient(900px 520px at 50% 45%, rgba(10,15,26,0.05), transparent 60%),
              rgba(255,255,255,0.92);
}
#boot.hide{ opacity:0; visibility:hidden; pointer-events:none; }
.bootSpinner{
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 3px solid rgba(255,255,255,0.16);
  border-top-color: rgba(255,255,255,0.75);
  animation: spin 0.9s linear infinite;
  box-shadow: 0 18px 46px rgba(0,0,0,0.35);
}
html[data-theme="light"] .bootSpinner{
  border-color: rgba(10,15,26,0.10);
  border-top-color: rgba(10,15,26,0.55);
}
@keyframes spin{ to{ transform: rotate(360deg); } }

/* Fade */
#pageFade{
  position:fixed;
  inset:0;
  z-index: 35;
  pointer-events:none;
  opacity: 0;
  background: linear-gradient(180deg, rgba(6,10,22,0.0), rgba(6,10,22,0.75));
  transition: opacity .22s ease;
}
html[data-theme="light"] #pageFade{
  background: linear-gradient(180deg, rgba(255,255,255,0.0), rgba(255,255,255,0.85));
}
#pageFade.show{ opacity: 1; }

/* Status */
#statusPill{
  position:fixed;
  bottom: 18px;
  inset-inline-start: 18px;
  z-index: 22;
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(8,12,24,0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow2);
  font-weight: 950;
  letter-spacing: 1.6px;
  font-size: 11px;
  text-transform: uppercase;
}
html[data-theme="light"] #statusPill{ background: rgba(255,255,255,0.66); }
#statusPill .dot{
  width: 10px; height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--a2), var(--a3));
  box-shadow: 0 0 0 6px rgba(34,197,94,0.10);
}

/* Settings panel */
#settingsPanel{
  position:fixed;
  top: 82px;
  inset-inline-end: 18px;
  z-index: 28;
  width: 290px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.14);
  background: linear-gradient(180deg, rgba(10,15,26,0.70), rgba(10,15,26,0.52));
  box-shadow: var(--shadow);
  padding: 12px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transform: translateY(-6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
html[data-theme="light"] #settingsPanel{
  background: linear-gradient(180deg, rgba(255,255,255,0.86), rgba(255,255,255,0.72));
}
#settingsPanel.show{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.setRow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  padding: 10px 8px;
  border-radius: 16px;
}
.setRow + .setRow{ border-top: 1px solid rgba(255,255,255,0.10); }
.setLabel{
  font-weight: 950;
  letter-spacing: 1.6px;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--muted);
}
.seg{ display:flex; gap: 6px; }
.seg button{
  height: 34px;
  min-width: 44px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.04);
  cursor:pointer;
  font-weight: 950;
  letter-spacing: 1px;
  font-size: 11px;
}
.seg button.active{
  border-color: rgba(6,182,212,0.35);
  background: linear-gradient(135deg, rgba(124,58,237,0.85), rgba(6,182,212,0.70));
}


/* CARD ACCENT BORDER */
.tile{
  --acc1: rgba(124,58,237,0.95);
  --acc2: rgba(6,182,212,0.85);
}
.tile[data-accent="games"]{ --acc1: rgba(124,58,237,0.98); --acc2: rgba(6,182,212,0.88); }
.tile[data-accent="courses"]{ --acc1: rgba(6,182,212,0.92); --acc2: rgba(34,197,94,0.82); }
.tile[data-accent="tiktok"]{ --acc1: rgba(236,72,153,0.92); --acc2: rgba(124,58,237,0.84); }
.tile[data-accent="assets"]{ --acc1: rgba(249,115,22,0.92); --acc2: rgba(6,182,212,0.82); }

.tile::before{
  content:"";
  position:absolute;
  inset:0;
  padding: 1.6px;
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, var(--acc1), var(--acc2));
  opacity: 0;
  transition: opacity .18s ease, filter .18s ease;
  pointer-events:none;

  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
}
.tile:hover::before{
  opacity: 1;
  filter: drop-shadow(0 16px 40px rgba(0,0,0,0.35));
}
.tile:hover .frame{
  border-color: rgba(255,255,255,0.18);
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,0.14),
    0 0 0 1px rgba(255,255,255,0.06);
}
/* END CARD ACCENT BORDER */


/* Responsive */
@media (max-width: 900px){
  .tile{ grid-column: span 12; min-height: 280px; }
}
@media (prefers-reduced-motion: reduce){
  #snow{ display:none; }
  #boot{ display:none; }
  #pageFade{ display:none; }
  .bootSpinner{ animation:none; }
  .tile{ transform:none !important; }
  .cover{ transition:none; }
  .coverVideo{ transition:none; }
}


/* ===========================================================
   DZTFIX HOTFIX: Background Seam + Bottom Band (Safe Override)
   - keeps original file intact
   =========================================================== */
html, body{
  background-attachment: fixed !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  overflow-x: hidden !important;
}

.footer{
  border-top: 0 !important; /* remove visible split line */
}

