/* EPIC.686 unified shell v1. Scoped to preserve account/admin functionality. */
:root {
  --bg:#050b13; --bg-soft:#081321; --panel:#0b1726; --panel-2:#0e1d2f;
  --panel-3:#111f32; --text:#f4f7fb; --text-soft:#c8d1dc;
  --muted:#8192a7; --dim:#607187;
  --line:rgba(255,255,255,.09); --line-strong:rgba(255,255,255,.15);
  --accent:#f0b84a; --accent-light:#ffd778; --cyan:#66d9e8;
  --violet:#8c7cf4; --green:#67e39c; --red:#ff6d7a;
  --blue:#74a7ff; --gold:#f0b84a; --gold2:#ffd778; --orange:#ffb454;
  --shell:1240px;
}
html { color-scheme:dark; }
body:not(.public-page) {
  min-height:100vh;
  background:radial-gradient(circle at 78% 3%,rgba(240,184,74,.11),transparent 30rem),
    radial-gradient(circle at 2% 28%,rgba(68,102,178,.10),transparent 32rem),var(--bg);
  color:var(--text);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
}
body:not(.public-page)::before {
  content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;
  background-image:linear-gradient(rgba(255,255,255,.012) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.012) 1px,transparent 1px);
  background-size:48px 48px;
  mask-image:linear-gradient(to bottom,black,transparent 85%);
}
.site-noise {position:fixed;inset:0;z-index:50;pointer-events:none;opacity:.025;
  background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}
/* One canonical header across homepage, statistics, account and admin. */
.site-header {
  height:78px;width:min(100% - 48px,var(--shell));margin:0 auto;
  display:flex;align-items:center;gap:34px;border-bottom:1px solid var(--line);
  position:relative;z-index:80;background:transparent;min-height:0;padding:0;
}
.site-header .brand, .auth-brand {
  display:flex;align-items:center;gap:11px;margin-right:auto;color:var(--text);
  text-decoration:none;font-weight:400;letter-spacing:normal;
}
.site-header .brand-mark, .auth-brand .brand-mark {
  width:38px;height:38px;flex:0 0 38px;display:grid;place-items:center;
  border-radius:11px;background:linear-gradient(145deg,var(--accent-light),var(--accent));
  color:#171006;font-size:21px;font-weight:950;
  box-shadow:0 0 34px rgba(240,184,74,.16);
}
.site-header .brand-copy, .auth-brand .brand-copy {
  display:flex;flex-direction:column;line-height:1;min-width:0;
}
.site-header .brand-copy strong, .auth-brand .brand-copy strong {
  font-size:15px;letter-spacing:.05em;font-weight:800;color:var(--text);
}
.site-header .brand-copy small, .auth-brand .brand-copy small {
  font-size:8px;color:var(--muted);letter-spacing:.18em;margin-top:5px;
}
.site-header .main-nav {display:flex;align-items:center;gap:27px;margin:0;}
.site-header .main-nav a {
  color:#8ea0b5;font-size:12px;font-weight:650;position:relative;
  padding:28px 0;text-decoration:none;white-space:nowrap;
}
.site-header .main-nav a:hover,.site-header .main-nav a.active {color:var(--text)}
.site-header .main-nav a.active::after {
  content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;background:var(--accent);
}
.site-header .header-actions {
  display:flex;align-items:center;gap:12px;flex:0 0 auto;color:#a3b1c1;
  font-size:11px;white-space:nowrap;
}
.site-header .header-link {
  display:inline-flex;align-items:center;justify-content:center;padding:8px;
  color:#a3b1c1;background:transparent;border:0;text-decoration:none;
  font:inherit;cursor:pointer;
}
.site-header .header-link:hover,.site-header .header-link:focus-visible {color:#fff}
.site-header .header-cta {
  display:inline-flex;align-items:center;justify-content:center;
  border:1px solid var(--line);background:rgba(255,255,255,.045);
  border-radius:10px;padding:9px 13px;font-size:11px;font-weight:750;
  color:var(--text);text-decoration:none;overflow:hidden;text-overflow:ellipsis;
}
.site-header .header-cta:hover {border-color:var(--line-strong);background:rgba(255,255,255,.075)}
.site-header .home-logout-form {display:flex;align-items:center;margin:0;padding:0;}
.site-header .home-logout-button {appearance:none;border:0;background:transparent;padding:8px;
  color:#aab7c6;font:inherit;cursor:pointer;}
.site-header .home-logout-button:hover {color:#fff;}
/* Mobile menu uses native details/summary: no JS or extra auth requests. */
.site-mobile-menu {display:none;position:relative;flex:0 0 auto;}
.site-mobile-menu summary {
  list-style:none;display:flex;align-items:center;justify-content:center;
  width:36px;height:36px;cursor:pointer;border:1px solid var(--line);
  border-radius:10px;background:rgba(255,255,255,.045);color:var(--text);
  font-size:20px;line-height:1;user-select:none;
}
.site-mobile-menu summary::-webkit-details-marker {display:none;}
.site-mobile-menu summary:focus-visible {outline:2px solid var(--accent);outline-offset:2px;}
.site-mobile-menu[open] summary {border-color:rgba(240,184,74,.4);}
.site-mobile-links {
  position:absolute;right:0;top:calc(100% + 11px);width:220px;
  display:flex;flex-direction:column;gap:3px;padding:9px;border:1px solid var(--line-strong);
  border-radius:13px;background:#0d1b2c;box-shadow:0 20px 45px rgba(0,0,0,.4);
}
.site-mobile-links a {
  color:#c5d0dd;text-decoration:none;border-radius:8px;padding:10px 12px;
  font-size:12px;font-weight:650;
}
.site-mobile-links a:hover,.site-mobile-links a.active {background:rgba(240,184,74,.09);color:var(--accent-light);}
/* Account-specific tabs: below, not instead of, the public navigation. */
.site-context-nav {
  width:min(100% - 48px,var(--shell));margin:0 auto;
  display:flex;align-items:center;gap:27px;
  padding:0 0 1px;border-bottom:1px solid var(--line);overflow-x:auto;
}
.site-context-nav a {
  color:#8ea0b5;position:relative;display:inline-block;text-decoration:none;
  padding:15px 0;font-size:11px;font-weight:700;white-space:nowrap;
}
.site-context-nav a:hover,.site-context-nav a.active {color:var(--text);}
.site-context-nav a.active::after {content:"";position:absolute;bottom:0;left:0;right:0;
  height:2px;background:var(--accent);}
body:not(.public-page) .wrap, body:not(.public-page) .container {
  width:min(100% - 48px,var(--shell));margin-inline:auto;
}
/* Shared account/admin surface treatments, without changing layout or handlers. */
body:not(.public-page) .auth-card, body:not(.public-page) .login-card {
  background:rgba(11,23,38,.88);border:1px solid var(--line);
  border-radius:20px;box-shadow:0 25px 80px rgba(0,0,0,.23);
}
body:not(.public-page) .panel, body:not(.public-page) .card,
body:not(.public-page) .payout-card, body:not(.public-page) .account-chip {
  border-color:var(--line);background-color:rgba(11,23,38,.7);
}
body:not(.public-page) .credential-box,body:not(.public-page) .command-card {
  background-color:#07101b;
}
body:not(.public-page) a:not(.brand):not(.auth-brand):hover {text-decoration-thickness:1px;}
/* Auth pages retain their original forms but use the same site shell. */
body.site-auth-page,body.site-admin-login {
  display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;
  min-height:100vh;padding:0;
}
body.site-auth-page .auth-card,body.site-admin-login .login-card {
  flex:0 0 auto;margin:45px auto;width:min(470px,calc(100% - 30px));
}
body.site-auth-page .auth-card .auth-brand {margin-bottom:27px;}
body.site-admin-login .login-card .auth-brand {margin-bottom:24px;}
/* Same public footer across the product pages. */
.site-footer {
  width:min(100% - 48px,var(--shell));margin:0 auto;padding:33px 0 55px;
  border-top:1px solid var(--line);display:grid;grid-template-columns:1fr 1fr 1fr;
  align-items:center;color:#66798f;font-size:9px;
}
.site-footer .footer-brand {justify-self:start;}
.site-footer p {text-align:center;margin:0;}
.site-footer>div:last-child {justify-self:end;}
.site-footer a {color:inherit;text-decoration:none;}
body:not(.public-page) .site-footer {margin-top:36px;}
body:not(.public-page) .site-footer a {color:#9fadc0;}
.site-footer a:hover {color:var(--text);}
body.site-auth-page .site-footer,body.site-admin-login .site-footer {margin-top:auto;}
@media(max-width:1050px){
  .site-header .main-nav{display:none;}
  .site-mobile-menu{display:block;}
}
@media(max-width:760px){
  .site-header,.site-context-nav,.site-footer,
  body:not(.public-page) .wrap,body:not(.public-page) .container {
    width:min(100% - 30px,var(--shell));
  }
  .site-header{height:70px;gap:13px;}
  .site-footer{grid-template-columns:1fr;gap:18px;}
  .site-footer p{text-align:left;}
  .site-footer>div:last-child{justify-self:start;}
}
@media(max-width:550px){
  .site-header{gap:9px;}
  .site-header .header-actions{gap:4px;}
  .site-header .header-actions .header-link{display:none;}
  .site-header .header-actions .home-logout-button{display:inline-flex;white-space:nowrap;}
  .site-header .header-cta{max-width:106px;padding:8px 9px;font-size:10px;}
  .site-header .brand{gap:7px;}
  .site-header .brand-mark{width:34px;height:34px;flex-basis:34px;font-size:19px;}
  .site-header .brand-copy strong{font-size:13px;}
  .site-header .brand-copy small{font-size:7px;letter-spacing:.1em;}
  .site-mobile-links{width:min(220px,calc(100vw - 30px));}
}
@media(max-width:400px){
  .site-header .header-cta{max-width:72px;}
  .site-header .brand-copy small{display:none;}
  .site-header .home-logout-button{font-size:9px;padding:7px 3px;}
}

/* EPIC.686 CASH MARK - BEGIN */
/* The original gold tile, dimensions, and header alignment remain unchanged. */
.brand-mark img {
  display: block;
  width: 78%;
  height: 78%;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
}
/* EPIC.686 CASH MARK - END */

/* ============================================================
   EPIC Cash circular black-glass logo override
   ============================================================ */
.brand-mark{
  position: relative;
  display: grid !important;
  place-items: center;
  width: 38px;
  height: 38px;
  min-width: 38px;
  flex: 0 0 38px;
  border-radius: 999px !important;
  font-size: 0 !important;
  color: transparent !important;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.03)),
    linear-gradient(180deg, rgba(10,14,20,.78), rgba(4,7,12,.58)) !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    inset 0 -10px 18px rgba(0,0,0,.28),
    0 8px 24px rgba(0,0,0,.26),
    0 0 18px rgba(0,0,0,.16) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.brand-mark::before{
  content:"";
  position:absolute;
  inset: 8px;
  background-image: url("/assets/epic-cash-mark.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  filter: brightness(0) invert(1);
  opacity: .96;
}

.brand-mark::after{
  content:"";
  position:absolute;
  inset: 2px 2px auto 2px;
  height: 42%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,0));
  pointer-events:none;
}

@media (max-width: 760px){
  .brand-mark{
    width: 34px;
    height: 34px;
    min-width: 34px;
    flex-basis: 34px;
  }
  .brand-mark::before{
    inset: 7px;
  }
}

/* EPIC glass seamless highlight v2 - header logo */
.brand-mark::after {
  inset: 0;
  height: auto;
  border-radius: 50%;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,.16) 0%,
    rgba(255,255,255,.07) 25%,
    rgba(255,255,255,0) 58%
  );
  pointer-events: none;
}
