/* Partner portal - Design v2 layer (same Night / Day palette as the client area, tfs-v2.css).
   Loaded after partners.css; only adds depth and polish, the layout stays as it is. */
html:root{
  --bg:#050913; --bg2:#0a1020; --surface:#0f1729; --surface2:#141e35; --surface3:#1a2643;
  --line:rgba(148,170,215,.13); --line2:rgba(148,170,215,.24);
  --glow1:rgba(63,124,255,.26); --glow2:rgba(122,92,255,.20);
}
html:root[data-theme="light"]{
  --bg:#edf1f9; --bg2:#e6ecf8; --surface:#ffffff; --surface2:#f4f7fd; --surface3:#e9eefa;
  --glow1:rgba(63,124,255,.16); --glow2:rgba(122,92,255,.12);
}
html:root body{ font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif; }

/* page title with a soft glow behind it */
html:root .ph{ position:relative; padding:6px 0 4px; }
html:root .ph h1{ font-size:28px; font-weight:800; letter-spacing:-.02em; }

/* cards and tiles: a touch more depth, hover lift on tiles */
html:root .card{ background:linear-gradient(180deg,color-mix(in srgb,var(--surface) 96%,#3f7cff),var(--surface)); }
html:root[data-theme="light"] .card{ background:var(--surface); }
html:root .tile{ position:relative; overflow:hidden; transition:transform .15s ease, border-color .15s ease; }
html:root .tile::after{ content:""; position:absolute; inset:auto -30% -60% auto; width:160px; height:160px; border-radius:50%;
  background:radial-gradient(closest-side,var(--glow1),transparent); pointer-events:none; }
html:root .tile:hover{ transform:translateY(-2px); border-color:var(--line2); }

/* top bar: glass, tabs as pills, the active one in the brand gradient */
html:root .topbar{ background:color-mix(in srgb,var(--bg) 72%,transparent); }
html:root .tab.on{ background:var(--grad); color:#fff; box-shadow:0 8px 20px -10px var(--brand); }
html:root .tab.on i{ color:#fff; }

/* tables */
html:root table th{ font-size:11.5px; letter-spacing:.07em; text-transform:uppercase; color:var(--muted); }
html:root tbody tr:hover{ background:var(--brand-soft); }

/* smooth Day / Night switch */
html.theme-anim, html.theme-anim *{ transition:background-color .25s ease, border-color .25s ease, color .2s ease !important; }
html:root ::selection{ background:rgba(79,139,255,.35); }

/* Top bar on computers: brand + buttons on the first row, every tab on a second full-width row,
   so no tab is ever cut off (the admin has up to 8 tabs). Phones keep the bottom tab bar. */
@media (min-width:721px){
  html:root .topbar-in{ flex-wrap:wrap; height:auto; row-gap:0; padding-top:10px; padding-bottom:0; }
  html:root .topbar-in > .brand{ height:44px; }
  html:root .tabs{ order:3; flex:1 0 100%; overflow-x:auto; padding:8px 0 10px; margin-top:8px; border-top:1px solid var(--line); gap:6px; }
  html:root .tab{ flex-shrink:0; }
  html:root .tab:not(.on) span{ display:inline; }
}
@media (min-width:721px) and (max-width:900px){
  html:root .tab:not(.on) span{ display:none; }
}
