/* ========================================================================== */
/* EQUINOX INTELLIGENCE v5.0.1 — CINEMATIC MOBILE VISUAL SYSTEM              */
/* VISUAL-ONLY LAYER. No routes, IDs, forms, auth, data, API or workflow JS.  */
/* ========================================================================== */
:root{
  --v5-bg:#030405;
  --v5-bg2:#07090c;
  --v5-panel:rgba(12,14,18,.92);
  --v5-panel-2:rgba(17,19,24,.92);
  --v5-gold:#d9a441;
  --v5-gold-hi:#ffd978;
  --v5-gold-deep:#8d5915;
  --v5-text:#f7f3ea;
  --v5-muted:#8f959d;
  --v5-line:rgba(222,170,71,.20);
  --v5-line-strong:rgba(222,170,71,.42);
  --v5-green:#49cf7a;
  --v5-red:#ef6767;
  --v5-blue:#66a9ff;
  --v5-radius:16px;
  --v5-radius-sm:11px;
  --v5-shadow:0 22px 60px rgba(0,0,0,.34);
}
html{background:var(--v5-bg)!important;color-scheme:dark}
body{
  background:
    radial-gradient(900px 520px at 86% -8%,rgba(220,164,61,.11),transparent 62%),
    radial-gradient(720px 440px at 6% 12%,rgba(157,101,19,.08),transparent 58%),
    linear-gradient(180deg,#07090b 0%,#030405 100%)!important;
  color:var(--v5-text)!important;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
body[data-eq-module]::before{
  opacity:.52!important;
  background-image:
    linear-gradient(rgba(225,174,77,.018) 1px,transparent 1px),
    linear-gradient(90deg,rgba(225,174,77,.018) 1px,transparent 1px),
    radial-gradient(circle at 80% 8%,rgba(225,174,77,.10),transparent 19%)!important;
  background-size:52px 52px,52px 52px,auto!important;
}
::selection{background:rgba(217,164,65,.28);color:#fff}
::-webkit-scrollbar{width:10px;height:10px}
::-webkit-scrollbar-track{background:#07090b}
::-webkit-scrollbar-thumb{background:#25221b;border:2px solid #07090b;border-radius:999px}
::-webkit-scrollbar-thumb:hover{background:#5e4722}

/* ---------- platform navigation ---------- */
body[data-eq-module] .eq-shellbar{
  min-height:72px!important;
  padding:8px clamp(12px,2vw,26px)!important;
  gap:7px!important;
  flex-wrap:nowrap!important;
  background:linear-gradient(180deg,rgba(5,6,8,.985),rgba(5,6,8,.94))!important;
  border-bottom:1px solid rgba(225,174,77,.22)!important;
  box-shadow:0 12px 46px rgba(0,0,0,.42)!important;
  backdrop-filter:blur(20px) saturate(135%);
}
body[data-eq-module] .eq-shellbar>img{
  width:46px!important;height:46px!important;border-radius:10px!important;
  border:1px solid rgba(225,174,77,.24)!important;
  box-shadow:0 0 24px rgba(217,164,65,.07)!important;
}
body[data-eq-module] .eq-shellbar .brand{
  margin-right:12px!important;font-size:12px!important;letter-spacing:.145em!important;
  color:#edc26b!important;flex:0 0 auto;
}
body[data-eq-module] .eq-shellbar a{
  position:relative;flex:0 0 auto;padding:9px 11px!important;border-radius:9px!important;
  color:#c9cbd0!important;font-size:12px!important;font-weight:780!important;
  border:1px solid transparent!important;background:transparent!important;
}
body[data-eq-module] .eq-shellbar a:hover{background:rgba(217,164,65,.055)!important;color:#fff!important;border-color:rgba(217,164,65,.16)!important}
body[data-eq-module] .eq-shellbar a.active{
  color:#f0bd58!important;background:rgba(217,164,65,.07)!important;
  border:1px solid rgba(217,164,65,.18)!important;box-shadow:none!important;
}
body[data-eq-module] .eq-shellbar a.active::after{
  content:"";position:absolute;left:13px;right:13px;bottom:-9px;height:2px;border-radius:2px;
  background:linear-gradient(90deg,transparent,var(--v5-gold-hi),transparent);box-shadow:0 0 14px rgba(255,217,120,.55)
}
body[data-eq-module] .eq-shellbar .spacer{min-width:8px}
body[data-eq-module] .eq-shellbar .who{white-space:nowrap;color:#848b94!important;font-size:11px!important}
body[data-eq-module] .eq-shellbar .who b{color:#e8b550!important}

/* ---------- common executive surfaces ---------- */
body[data-eq-module] .panel,
body[data-eq-module] .card,
body[data-eq-module] .top,
body[data-eq-module] .header,
body[data-eq-module] .toolbar,
body[data-eq-module] .table-card,
body[data-eq-module] .setter-panel,
body[data-eq-module] .section-block,
body[data-eq-module] .stat,
body[data-eq-module] .kpi,
body[data-eq-module] .box,
body[data-eq-module] .coach{
  background:linear-gradient(145deg,rgba(15,17,21,.94),rgba(7,8,11,.96))!important;
  border:1px solid var(--v5-line)!important;
  border-radius:var(--v5-radius)!important;
  box-shadow:var(--v5-shadow)!important;
}
body[data-eq-module] h1,body[data-eq-module] h2,body[data-eq-module] h3{letter-spacing:-.025em}
body[data-eq-module] .muted,body[data-eq-module] small{color:var(--v5-muted)!important}
body[data-eq-module] input,body[data-eq-module] select,body[data-eq-module] textarea{
  min-height:44px;background:rgba(7,9,12,.94)!important;color:#f7f4ed!important;
  border:1px solid rgba(222,170,71,.21)!important;border-radius:10px!important;
  transition:border-color .16s ease,box-shadow .16s ease,background .16s ease;
}
body[data-eq-module] input:focus,body[data-eq-module] select:focus,body[data-eq-module] textarea:focus{
  outline:none!important;border-color:rgba(242,189,85,.68)!important;background:#090b0e!important;
  box-shadow:0 0 0 3px rgba(217,164,65,.085),0 0 24px rgba(217,164,65,.05)!important;
}
body[data-eq-module] button,body[data-eq-module] .btn{
  min-height:40px;border-radius:9px!important;font-weight:780!important;letter-spacing:.005em;
  transition:transform .14s ease,box-shadow .14s ease,border-color .14s ease,background .14s ease!important;
}
body[data-eq-module] button:hover,body[data-eq-module] .btn:hover{transform:translateY(-1px)}
body[data-eq-module] .primary,body[data-eq-module] .gold,body[data-eq-module] button.primary{
  background:linear-gradient(135deg,#f0bc57,#a7610b)!important;color:#130d04!important;
  border:1px solid #f2c15f!important;box-shadow:0 8px 24px rgba(217,164,65,.12)!important;
}
body[data-eq-module] .ghost,body[data-eq-module] button.ghost{
  background:#0a0c0f!important;color:#e9e5dc!important;border:1px solid rgba(222,170,71,.20)!important;
}
body[data-eq-module] table{border-collapse:separate;border-spacing:0}
body[data-eq-module] th{font-size:10px!important;letter-spacing:.11em!important;text-transform:uppercase;color:#9ea3aa!important}
body[data-eq-module] td{color:#e5e3df!important}
body[data-eq-module] tbody tr{transition:background .15s ease}
body[data-eq-module] tbody tr:hover{background:rgba(217,164,65,.025)!important}

/* ---------- cinematic module headers ---------- */
body[data-eq-module="review"] .top,
body[data-eq-module="intake"] .header,
body[data-eq-module="gnrg"] .top{
  isolation:isolate;overflow:hidden!important;
  background:
    radial-gradient(480px 220px at 88% 14%,rgba(217,164,65,.105),transparent 70%),
    linear-gradient(145deg,rgba(14,16,20,.97),rgba(6,8,10,.98))!important;
}
body[data-eq-module="review"] .top::before,
body[data-eq-module="intake"] .header::before,
body[data-eq-module="gnrg"] .top::before{
  content:"";position:absolute;right:-40px;top:-95px;width:390px;height:390px;z-index:-1;pointer-events:none;
  border:1px solid rgba(217,164,65,.08);border-radius:50%;box-shadow:0 0 0 44px rgba(217,164,65,.025),0 0 0 88px rgba(217,164,65,.017)
}

/* ---------- Review Center ---------- */
body[data-eq-module="review"] .wrap{width:min(1480px,calc(100% - 34px))!important;margin:18px auto 30px!important}
body[data-eq-module="review"] .top{min-height:168px!important;padding:30px 36px!important}
body[data-eq-module="review"] .brand{color:#eab14a!important;letter-spacing:.20em!important;font-size:11px!important}
body[data-eq-module="review"] h1{font-size:clamp(32px,4vw,46px)!important}
body[data-eq-module="review"] .nav{gap:8px!important;margin-left:0!important}
body[data-eq-module="review"] .nav button{min-width:160px!important;background:#090b0e!important;border:1px solid rgba(217,164,65,.16)!important;color:#cfd1d5!important}
body[data-eq-module="review"] .nav button.active{color:#efba55!important;background:rgba(217,164,65,.065)!important;border-color:rgba(217,164,65,.36)!important}
body[data-eq-module="review"] .card{border-radius:14px!important}
body[data-eq-module="review"] .ai-box,body[data-eq-module="review"] .ai-metric,body[data-eq-module="review"] .ai-flag,body[data-eq-module="review"] .field{
  background:rgba(7,9,12,.88)!important;border:1px solid rgba(217,164,65,.14)!important;border-radius:11px!important
}

/* ---------- Appointment Intake ---------- */
body[data-eq-module="intake"] .wrap{width:min(1450px,calc(100% - 34px))!important;margin:18px auto 30px!important}
body[data-eq-module="intake"] .header{min-height:160px!important;padding:30px 36px!important}
body[data-eq-module="intake"] .header h1{font-size:clamp(32px,4vw,46px)!important}
body[data-eq-module="intake"] form{padding:22px!important}
body[data-eq-module="intake"] .section-title{font-size:12px!important;letter-spacing:.14em!important;color:#eab14a!important}
body[data-eq-module="intake"] .mini-card{border-radius:12px!important;background:rgba(8,10,13,.88)!important}
body[data-eq-module="intake"] .diego-coach{border-radius:13px!important;background:linear-gradient(145deg,rgba(217,164,65,.055),rgba(8,10,13,.90))!important}

/* ---------- GNRG Dashboard ---------- */
body[data-eq-module="gnrg"] .shell{max-width:1500px!important;padding:18px!important}
body[data-eq-module="gnrg"] .top{padding:22px 24px!important;margin-bottom:14px!important}
body[data-eq-module="gnrg"] .brand img{width:190px!important;height:90px!important;padding:10px 14px!important;border-radius:12px!important;box-shadow:0 15px 40px rgba(0,0,0,.24)}
body[data-eq-module="gnrg"] .brand h1{font-size:30px!important}
body[data-eq-module="gnrg"] .stats{gap:10px!important}
body[data-eq-module="gnrg"] .stat{min-height:98px!important;box-shadow:0 12px 34px rgba(0,0,0,.18)!important}
body[data-eq-module="gnrg"] .stat strong{font-size:28px!important}
body[data-eq-module="gnrg"] .toolbar{padding:12px 14px!important}
body[data-eq-module="gnrg"] .table-card{overflow:auto!important}
body[data-eq-module="gnrg"] .table th{background:#080a0d!important}
body[data-eq-module="gnrg"] .drawer-panel{background:linear-gradient(180deg,#0b0d10,#050607)!important;box-shadow:-30px 0 70px rgba(0,0,0,.52)!important}

/* ---------- Leads / Users / Performance / AI ---------- */
body[data-eq-module="leads"],body[data-eq-module="users"],body[data-eq-module="performance"],body[data-eq-module="ai"]{background-color:#030405!important}
body[data-eq-module="leads"] main,body[data-eq-module="users"] main,body[data-eq-module="performance"] main,body[data-eq-module="ai"] main{
  width:min(1480px,calc(100% - 34px));margin-left:auto;margin-right:auto
}
body[data-eq-module="leads"] .card,body[data-eq-module="users"] .card,body[data-eq-module="performance"] .card,body[data-eq-module="ai"] .card{
  backdrop-filter:blur(12px)
}

/* ---------- access overlay ---------- */
.eq-access-overlay{background:radial-gradient(circle at 50% 22%,rgba(217,164,65,.11),transparent 32%),#030405!important;backdrop-filter:blur(16px)}
.eq-access-card{background:linear-gradient(155deg,#111318,#07090b)!important;border:1px solid rgba(217,164,65,.28)!important;box-shadow:0 30px 100px rgba(0,0,0,.6)!important}

/* ---------- public/login visual ---------- */
body:not([data-eq-module]) .login-card{
  border-color:rgba(225,174,77,.42)!important;
  background:linear-gradient(155deg,rgba(17,19,22,.98),rgba(5,6,8,.985))!important;
  box-shadow:0 35px 110px rgba(0,0,0,.68),0 0 60px rgba(217,164,65,.035)!important
}
body:not([data-eq-module]) input,body:not([data-eq-module]) textarea{background:#080a0d!important;border-color:rgba(217,164,65,.25)!important}
body:not([data-eq-module]) .jai-panel{background:linear-gradient(180deg,#0e1115,#06080a)!important;border-color:rgba(217,164,65,.28)!important}

/* ---------- mobile: true app-like behavior without touching JS ---------- */
@media(max-width:980px){
  body[data-eq-module] .eq-shellbar{
    min-height:64px!important;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:none!important;
    justify-content:flex-start!important;gap:5px!important;padding:7px 10px!important
  }
  body[data-eq-module] .eq-shellbar::-webkit-scrollbar{display:none}
  body[data-eq-module] .eq-shellbar>img{width:40px!important;height:40px!important;position:sticky;left:0;z-index:2;background:#050607}
  body[data-eq-module] .eq-shellbar .brand{display:none!important}
  body[data-eq-module] .eq-shellbar .spacer{display:none!important}
  body[data-eq-module] .eq-shellbar .who{display:none!important}
  body[data-eq-module] .eq-shellbar a{padding:9px 10px!important;font-size:11px!important;white-space:nowrap!important}
  body[data-eq-module] .eq-shellbar a.active::after{bottom:-8px}
  body[data-eq-module="review"] .top,body[data-eq-module="intake"] .header{padding:23px!important;min-height:135px!important}
  body[data-eq-module="gnrg"] .top{padding:18px!important}
  body[data-eq-module="gnrg"] .brand{gap:15px!important;align-items:center!important}
  body[data-eq-module="gnrg"] .brand img{width:145px!important;height:72px!important}
}
@media(max-width:700px){
  body[data-eq-module="review"] .wrap,body[data-eq-module="intake"] .wrap{width:calc(100% - 18px)!important;margin-top:10px!important}
  body[data-eq-module="gnrg"] .shell{padding:9px!important}
  body[data-eq-module="review"] h1,body[data-eq-module="intake"] .header h1{font-size:29px!important}
  body[data-eq-module="review"] .top .muted,body[data-eq-module="intake"] .header .subtitle{font-size:13px!important}
  body[data-eq-module="review"] .nav{display:flex!important;overflow-x:auto!important;scrollbar-width:none!important}
  body[data-eq-module="review"] .nav::-webkit-scrollbar{display:none}
  body[data-eq-module="review"] .nav button{min-width:max-content!important;padding:12px 15px!important}
  body[data-eq-module="gnrg"] .brand{flex-direction:column!important;align-items:flex-start!important}
  body[data-eq-module="gnrg"] .stats{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body[data-eq-module="gnrg"] .stat{min-height:84px!important;padding:12px!important}
  body[data-eq-module="gnrg"] .stat strong{font-size:24px!important}
  body[data-eq-module] .toolbar{overflow-x:auto!important;flex-wrap:nowrap!important;scrollbar-width:none!important}
  body[data-eq-module] .toolbar::-webkit-scrollbar{display:none}
  body[data-eq-module] .toolbar>*{flex:0 0 auto}
  body[data-eq-module] .table-card{overflow-x:auto!important;-webkit-overflow-scrolling:touch!important}
  body[data-eq-module] table{min-width:780px}
  body[data-eq-module] button,body[data-eq-module] .btn{min-height:44px}
}
@media(max-width:480px){
  body[data-eq-module="gnrg"] .stats{grid-template-columns:1fr 1fr!important}
  body[data-eq-module="review"] .top,body[data-eq-module="intake"] .header{padding:19px!important;border-radius:14px!important}
  body[data-eq-module] .panel,body[data-eq-module] .card,body[data-eq-module] .toolbar,body[data-eq-module] .table-card{border-radius:13px!important}
  body:not([data-eq-module]) .page{padding-inline:14px!important}
  body:not([data-eq-module]) .login-card{border-radius:19px!important}
}

/* Motion respects accessibility. */
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
