/* BDE UI v3 — calm, focused RTL dashboard layer. */
:root{
  --bde-bg:#f6f8fc;--bde-panel:#ffffff;--bde-ink:#172033;--bde-muted:#718096;
  --bde-line:#e7ebf2;--bde-navy:#111827;--bde-navy-2:#1d2a40;--bde-accent:#c8752d;
  --bde-accent-soft:#fff4e8;--bde-green:#16835b;--bde-shadow:0 12px 34px rgba(18,32,56,.07);
}
html,body{background:var(--bde-bg)!important;color:var(--bde-ink);font-family:Vazirmatn,Tahoma,sans-serif}
body{background:radial-gradient(circle at 95% -10%,#fff4e7 0,transparent 29%),var(--bde-bg)!important}
body:not(.app-authenticated) .shell{padding-top:0!important}
body:not(.app-authenticated) #login{margin-top:0!important}
body:not(.app-authenticated) .shell{max-width:none!important;padding-left:0!important;padding-right:0!important}body:not(.app-authenticated) #login{width:100%!important;margin-left:0!important;margin-right:0!important}.welcome-story{justify-self:center;width:min(100%,860px)!important;display:flex!important;flex-direction:column!important;align-items:center!important;text-align:center!important}.welcome-story .welcome-lead{margin-left:auto!important;margin-right:auto!important}.welcome-promise{width:100%!important}.cinematic-visual{width:100%!important}
.welcome{position:relative;overflow:hidden;background:radial-gradient(circle at 12% 12%,#263a5a 0,transparent 28%),linear-gradient(135deg,#0b1220 0%,#131f35 48%,#1d2b46 100%)!important;color:#fff!important;border-radius:0!important;min-height:100vh;padding:clamp(24px,5vw,72px)!important;grid-template-columns:minmax(0,1.08fr) minmax(340px,.62fr)!important;gap:clamp(28px,5vw,84px)!important;align-items:center!important}.welcome:before{content:"";position:absolute;inset:0;opacity:.18;background-image:linear-gradient(#7fa8d91c 1px,transparent 1px),linear-gradient(90deg,#7fa8d91c 1px,transparent 1px);background-size:52px 52px;mask-image:linear-gradient(135deg,#000,transparent 72%);pointer-events:none}.welcome:after{content:"";position:absolute;width:520px;height:520px;left:-180px;top:-210px;border-radius:50%;background:#c8752d2b;filter:blur(70px);animation:aurora 8s ease-in-out infinite alternate;pointer-events:none}.welcome>*{position:relative;z-index:1}.welcome-story{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;align-self:center}.welcome-kicker{color:#efb473!important;letter-spacing:.04em}.welcome-story h1{font-size:clamp(2.25rem,5.2vw,5.2rem)!important;line-height:1.35!important;letter-spacing:-.055em!important;color:#fff!important;max-width:850px}.welcome-story h1 em{color:#efb473!important;font-style:normal}.welcome-lead{color:#c7d2e2!important;font-size:clamp(.9rem,1.3vw,1.08rem)!important;line-height:2.1!important;max-width:720px}.welcome-promise{margin-top:28px!important;gap:10px!important}.promise{background:#ffffff0d!important;border:1px solid #ffffff1c!important;backdrop-filter:blur(12px);border-radius:14px!important;padding:14px!important}.promise b{color:#fff!important}.promise span{color:#b7c4d6!important}.login-panel{background:#fff!important;color:var(--bde-ink)!important;box-shadow:0 30px 90px #0006!important;border:1px solid #ffffff29!important;backdrop-filter:blur(18px);position:relative;z-index:3}.cinematic-visual{height:230px;max-width:700px;margin:26px 0 8px;position:relative;overflow:hidden;border:1px solid #ffffff1c;border-radius:24px;background:linear-gradient(135deg,#111e33cc,#223b5caa);box-shadow:inset 0 0 60px #62a4d51a,0 18px 48px #0003}.visual-grid{position:absolute;inset:0;background-image:linear-gradient(#9cc9ef1c 1px,transparent 1px),linear-gradient(90deg,#9cc9ef1c 1px,transparent 1px);background-size:28px 28px;transform:perspective(320px) rotateX(55deg) scale(1.45);transform-origin:bottom;opacity:.5}.visual-orbit{position:absolute;left:50%;top:50%;border:1px solid #efb47366;border-radius:50%;transform:translate(-50%,-50%) rotate(-18deg);animation:orbitSpin 12s linear infinite}.orbit-one{width:185px;height:185px}.orbit-two{width:290px;height:112px;border-color:#75b5e655;animation-duration:9s;animation-direction:reverse}.visual-core{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:86px;height:86px;border-radius:26px;display:grid;place-content:center;text-align:center;background:linear-gradient(135deg,#efb473,#bf652c);box-shadow:0 0 0 8px #efb47322,0 0 42px #efb473aa;animation:corePulse 3s ease-in-out infinite}.visual-core span{font-size:1.7rem;font-weight:950;line-height:1}.visual-core small{font-size:.43rem;letter-spacing:.12em;margin-top:5px}.visual-node{position:absolute;padding:7px 10px;border:1px solid #ffffff26;border-radius:10px;background:#0b1424cc;backdrop-filter:blur(8px);font-size:.62rem;color:#d9e7f6;box-shadow:0 6px 18px #0003;animation:nodeFloat 4s ease-in-out infinite}.visual-node b{display:block;color:#efb473;margin-top:2px;font-size:.72rem}.node-a{top:22px;left:18px}.node-b{bottom:22px;right:18px;animation-delay:-1.5s}.node-c{top:28px;right:30px;animation-delay:-2.5s}.visual-signal{position:absolute;bottom:13px;left:22px;display:flex;align-items:end;gap:3px;color:#a9c4df;font-size:.58rem}.visual-signal i{width:3px;background:#73c8ac;border-radius:3px;animation:signal 1.1s ease-in-out infinite alternate}.visual-signal i:nth-child(1){height:8px}.visual-signal i:nth-child(2){height:14px;animation-delay:.1s}.visual-signal i:nth-child(3){height:21px;animation-delay:.2s}.visual-signal i:nth-child(4){height:12px;animation-delay:.3s}.visual-signal i:nth-child(5){height:26px;animation-delay:.4s}.visual-signal b{margin-right:8px;font-weight:700}
@keyframes orbitSpin{to{transform:translate(-50%,-50%) rotate(342deg)}}@keyframes corePulse{50%{box-shadow:0 0 0 14px #efb47312,0 0 62px #efb473cc;transform:translate(-50%,-50%) scale(1.05)}}@keyframes nodeFloat{50%{transform:translateY(-7px)}}@keyframes signal{to{opacity:.45;transform:scaleY(.65)}}@keyframes aurora{to{transform:translate(70px,45px) scale(1.12);opacity:.8}}
.topbar{height:76px!important;background:rgba(17,24,39,.98)!important;padding:0 clamp(16px,4vw,56px)!important;border-bottom:1px solid #27334a;box-shadow:0 8px 28px #0b12240f}
.brand{gap:13px!important}.brand-mark{width:42px!important;height:42px!important;border-radius:14px!important;box-shadow:0 8px 22px #c8752d55}.brand strong{font-size:1rem}.brand small{font-size:.7rem!important;color:#9eabc0!important}
.shell{max-width:1500px!important;padding:30px clamp(16px,4vw,56px) 70px!important}
.app-sidebar{width:252px!important;background:linear-gradient(180deg,#111827,#0d1422)!important;padding:24px 16px!important;box-shadow:-18px 0 45px #0b122424!important}
.app-sidebar h2{font-size:1.08rem!important;margin:0 10px 30px!important;letter-spacing:-.02em}.app-sidebar .side-label{font-size:.68rem!important;color:#8d9bb0!important;margin-top:18px}.app-sidebar button{padding:12px 13px!important;border-radius:12px!important;font-size:.82rem!important;transition:background .2s,transform .2s}.app-sidebar button:hover{transform:translateX(-2px)}.app-sidebar button.active{background:linear-gradient(90deg,#27364f,#202d43)!important;box-shadow:inset -3px 0 var(--bde-accent);color:#fff!important}
.hero{border-radius:26px!important;padding:32px 34px!important;background:linear-gradient(128deg,#0e1728,#243550)!important;box-shadow:0 22px 55px #14203725!important}.hero h1{font-size:clamp(1.45rem,2.6vw,2.25rem)!important;letter-spacing:-.035em}.hero p{font-size:.9rem!important}.progress-ring{width:112px!important;height:112px!important;background:conic-gradient(#efaa66 calc(var(--progress)*1%),#ffffff1c 0)!important}
.stats{gap:16px!important;margin:20px 0!important}.stat{border:1px solid var(--bde-line)!important;border-radius:18px!important;padding:20px!important;box-shadow:var(--bde-shadow)!important;transition:transform .2s,box-shadow .2s}.stat:hover{transform:translateY(-3px);box-shadow:0 18px 40px #12203812!important}.stat b{font-size:1.8rem!important}.stat span{font-size:.8rem!important}
.tabs{gap:9px!important;margin:27px 0 18px!important}.tab{border:1px solid var(--bde-line)!important;background:#fff!important;border-radius:12px!important;padding:11px 17px!important;color:#657186!important}.tab.active{background:var(--bde-navy)!important;border-color:var(--bde-navy)!important;box-shadow:0 7px 18px #1118271e;color:#fff!important}
.grid{gap:18px!important}.card{border:1px solid var(--bde-line)!important;border-radius:20px!important;padding:23px!important;box-shadow:var(--bde-shadow)!important}.card h2{font-size:1.12rem!important;letter-spacing:-.02em}.card-head{margin-bottom:20px!important}.sub{font-size:.82rem!important;color:var(--bde-muted)!important}
.btn{border-radius:12px!important;padding:11px 17px!important;font-weight:800!important;transition:transform .18s,box-shadow .18s,filter .18s}.btn:hover{filter:brightness(1.03);box-shadow:0 8px 20px #c8752d2b}.btn.secondary{background:#26354d!important}.btn.ghost{background:#f1f4f8!important;color:var(--bde-ink)!important}.btn.small{padding:8px 12px!important;font-size:.78rem!important}
.field{margin-bottom:18px!important}.field label{font-size:.82rem!important;color:#3d4a5d}.field input,.field textarea,.field select{border:1px solid #d7dee9!important;border-radius:12px!important;padding:12px 14px!important;background:#fbfcfe!important}.field input:focus,.field textarea:focus,.field select:focus{border-color:var(--bde-accent)!important;box-shadow:0 0 0 4px #c8752d1c!important;background:#fff!important}
table{min-width:820px!important}th,td{padding:14px 12px!important;border-bottom:1px solid #eef1f5!important;font-size:.8rem!important}th{font-size:.72rem!important;letter-spacing:.02em;color:#8793a5!important}tbody tr:hover{background:#fcfdff}
.pill{border-radius:999px!important;padding:6px 10px!important;font-size:.68rem!important}.notice{border-radius:12px!important;padding:13px 15px!important}
.step{padding-bottom:21px!important}.dot{width:36px!important;height:36px!important}.step h3{font-size:.9rem!important}.step p{font-size:.77rem!important}
.live-work{top:76px!important;background:#fff4e8!important;border-bottom:1px solid #f1d4b5!important}
.app-authenticated .tabs{display:none!important}
.app-authenticated .topbar{margin-right:-252px!important;padding-right:calc(4% + 252px)!important}
body.app-authenticated[data-active-page]:not([data-active-page="overview"]) .hero,
body.app-authenticated[data-active-page]:not([data-active-page="overview"]) .stats{display:none!important}
.welcome{gap:26px!important}.welcome-story{border-radius:28px!important;background:linear-gradient(135deg,#101827,#263b5a)!important}.login-panel{border-radius:24px!important;box-shadow:var(--bde-shadow)!important}
.seo-stage-shell{max-width:1260px!important}.seo-stage-nav{position:sticky;top:89px;z-index:8;background:#f6f8fcdd;backdrop-filter:blur(12px);padding:10px 0!important;border-bottom:1px solid transparent}.seo-stage-nav button{border:1px solid var(--bde-line)!important;border-radius:12px!important;padding:11px 15px!important;background:#fff!important}.seo-stage-nav button.active{background:var(--bde-navy)!important;color:#fff!important;border-color:var(--bde-navy)!important}
.content-calendar-card{border-radius:16px!important;border:1px solid var(--bde-line)!important;box-shadow:var(--bde-shadow)!important}
.account-page-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(280px,.65fr);gap:18px;align-items:start}.account-profile-card{min-height:360px}.account-profile-card .card-head{align-items:flex-start}.account-side-stack{display:grid;gap:18px}.account-balance-card{background:linear-gradient(135deg,#111827,#263b5a);color:#fff}.account-balance-label{font-size:.8rem;color:#bdc8d8}.account-balance-card strong{display:block;font-size:2.35rem;margin:10px 0}.account-balance-card .sub{color:#bdc8d8}.account-security-list{display:grid;gap:12px}.account-security-list>div{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--bde-line);padding-bottom:10px}.account-links{display:grid;gap:8px}.account-links button{border:1px solid var(--bde-line);background:#fbfcfe;color:var(--bde-ink);border-radius:10px;padding:11px;text-align:right;cursor:pointer}.account-links button:hover{border-color:var(--bde-accent);background:var(--bde-accent-soft)}
.stage-bottom-actions{display:flex!important;justify-content:flex-end;gap:10px;margin-top:22px;padding-top:18px;border-top:1px solid var(--bde-line)}
@media(max-width:1050px){body.app-authenticated{padding-right:0!important}.app-sidebar{position:relative!important;width:100%!important;top:auto!important;bottom:auto!important;display:flex;gap:6px;overflow-x:auto;padding:10px!important}.app-sidebar h2,.app-sidebar .side-label{display:none}.app-sidebar button{white-space:nowrap;width:auto!important}.topbar,.app-authenticated .topbar{margin-right:0!important;padding-right:16px!important}.seo-stage-nav{top:76px}}
@media(max-width:900px){.welcome{grid-template-columns:1fr!important;min-height:auto!important;padding:26px 18px 48px!important}.welcome-story h1{font-size:clamp(2rem,9vw,3.8rem)!important}.cinematic-visual{height:200px}.login-panel{max-width:560px;width:100%;margin:0 auto}}
@media(max-width:760px){.account-page-grid{grid-template-columns:1fr}.account-side-stack{grid-template-columns:1fr}}
@media(max-width:560px){.shell{padding:18px 14px 50px!important}.hero{padding:24px!important;border-radius:20px!important}.card{padding:17px!important;border-radius:16px!important}.stats{gap:10px!important}.stat{padding:15px!important}.tabs{margin-top:18px!important}.seo-stage-nav{overflow:auto;white-space:nowrap}.seo-stage-nav button{flex:0 0 auto}}
/* Mobile app navigation and layout: use a real drawer instead of a cramped
   horizontal desktop sidebar. */
.mobile-nav-toggle,.mobile-nav-scrim{display:none}
@media(max-width:700px){
 body.app-authenticated{overflow-x:hidden;padding-right:0!important}
 .mobile-nav-toggle{display:grid;place-items:center;position:fixed;top:12px;right:12px;width:44px;height:44px;border:1px solid #ffffff2e;border-radius:13px;background:#172943;color:#fff;font-size:1.3rem;line-height:1;z-index:120;box-shadow:0 8px 24px #02081755}
 .mobile-nav-toggle[aria-expanded="true"]{background:var(--bde-accent,#f0aa62);color:#172033}
 .mobile-nav-scrim{display:block;position:fixed;inset:0;background:#0208178c;z-index:105;opacity:0;pointer-events:none;transition:opacity .2s}
 .mobile-nav-scrim.visible{opacity:1;pointer-events:auto}
 .app-sidebar{position:fixed!important;right:0!important;top:0!important;bottom:0!important;width:min(310px,86vw)!important;height:100dvh;display:block!important;overflow-y:auto;overflow-x:hidden;padding:76px 14px 24px!important;background:linear-gradient(180deg,#111827,#0d1422)!important;transform:translateX(110%);transition:transform .24s ease;z-index:110;box-shadow:-18px 0 45px #02081766!important}
 .app-sidebar.mobile-open{transform:translateX(0)}
 .app-sidebar h2,.app-sidebar .side-label{display:block!important}
 .app-sidebar h2{margin:0 10px 22px!important}
 .app-sidebar button{display:flex!important;align-items:center;justify-content:flex-start;width:100%!important;min-height:44px;padding:11px 13px!important;margin:3px 0;font-size:.86rem!important;white-space:normal!important;text-align:right;background:#27344a!important;color:#fff!important;border:1px solid #ffffff12!important;box-shadow:none!important}
 .app-sidebar button:hover,.app-sidebar button.active{background:#344663!important;color:#fff!important}
 .side-content-submenu button{min-height:40px;padding:9px 12px!important;font-size:.8rem!important;background:#27344a!important;color:#fff!important}
 .topbar,.app-authenticated .topbar{margin-right:0!important;padding:66px 14px 12px!important}
 .shell{padding:12px 12px 40px!important;width:100%!important;max-width:none!important}
 .hero{grid-template-columns:1fr!important;padding:20px!important;border-radius:16px!important}
 .card,.app-authenticated .card{width:100%!important;max-width:100%!important;padding:16px!important;border-radius:15px!important}
 .card-head{gap:12px!important;align-items:flex-start!important;flex-direction:column!important}
 .card-head>.actions,.actions{width:100%;display:flex;flex-wrap:wrap;gap:8px}
 .actions .btn,.card-head .btn{flex:1 1 150px;min-height:42px;white-space:normal}
 .form-grid{grid-template-columns:1fr!important;gap:11px!important}
 .form-grid .full{grid-column:auto!important}
 .field input,.field textarea,.field select{width:100%;max-width:100%;font-size:16px!important}
 .store-tabs{display:grid!important;grid-template-columns:1fr 1fr;gap:8px!important}
 .store-tabs .tab{width:100%;min-height:44px;padding:10px 8px!important;font-size:.8rem!important}
 .table-wrap{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
 .table-wrap table{min-width:620px}
 .seo-stage-nav{position:sticky!important;top:0!important;overflow-x:auto;flex-wrap:nowrap!important;padding:8px 0!important;margin:0 -2px 12px!important}
 .seo-stage-nav button{flex:0 0 auto;min-height:42px;padding:9px 12px!important;font-size:.78rem!important}
 .product-preview-body{grid-template-columns:1fr!important}
}
@media(max-width:390px){.store-tabs{grid-template-columns:1fr}.actions .btn,.card-head .btn{flex-basis:100%}.shell{padding-left:9px!important;padding-right:9px!important}}
.cinematic-visual{height:250px!important;margin:0 0 22px!important}.agent-stars{position:absolute;inset:0;background-image:radial-gradient(circle,#fff9 1px,transparent 1px);background-size:37px 37px;opacity:.18}.agent-core{position:absolute;left:50%;top:47%;transform:translate(-50%,-50%);width:82px;height:82px;border-radius:27px;display:grid;place-content:center;text-align:center;background:linear-gradient(135deg,#f2b675,#b85e28);box-shadow:0 0 0 10px #efb4731f,0 0 54px #efb473bd;animation:corePulse 3s ease-in-out infinite;z-index:3}.agent-core span{font-size:1.65rem;font-weight:950}.agent-core small{font-size:.42rem;letter-spacing:.12em}.agent-wire{position:absolute;left:50%;top:47%;height:1px;width:38%;transform-origin:left;background:linear-gradient(90deg,#efb473aa,#75b5e622);z-index:1;animation:wirePulse 2.4s ease-in-out infinite}.wire-one{transform:rotate(205deg)}.wire-two{transform:rotate(335deg);animation-delay:.6s}.wire-three{transform:rotate(25deg);animation-delay:1.2s}.wire-four{transform:rotate(155deg);animation-delay:1.8s}.agent-card{position:absolute;z-index:4;width:154px;padding:9px 10px;border:1px solid #ffffff2b;border-radius:13px;background:#0a1426dd;backdrop-filter:blur(12px);box-shadow:0 9px 25px #0004;animation:agentFloat 4.8s ease-in-out infinite}.agent-card i{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:7px;background:#efb47326;color:#efb473;font-style:normal;margin-left:6px}.agent-card span{font-size:.57rem;color:#d7e5f3}.agent-card b{display:block;color:#fff;font-size:.68rem;margin-top:5px}.agent-card em{display:block;color:#8fb49f;font-size:.51rem;font-style:normal;margin-top:3px}.agent-seo{top:14px;left:14px}.agent-content{bottom:14px;left:18px;animation-delay:-1.2s}.agent-data{top:14px;right:14px;animation-delay:-2.4s}.agent-growth{bottom:14px;right:18px;animation-delay:-3.6s}.agent-feed{position:absolute;bottom:5px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:6px;color:#d1e0ed;font-size:.54rem;z-index:5;white-space:nowrap}.agent-feed small{color:#8ca4bc}.live-dot{width:7px;height:7px;border-radius:50%;background:#63d29a;box-shadow:0 0 0 5px #63d29a22;animation:livePulse 1.5s infinite}.agent-feed b{color:#8fe2b6}.wire-one,.wire-two,.wire-three,.wire-four{animation-name:wirePulse}@keyframes wirePulse{50%{opacity:.35;box-shadow:0 0 12px #efb473}}@keyframes agentFloat{50%{transform:translateY(-7px)}}@keyframes livePulse{50%{box-shadow:0 0 0 8px #63d29a08}}
.landing-nav{display:flex;align-items:center;gap:22px;margin-right:auto;margin-left:18px}.landing-nav a{color:#bac7d9;text-decoration:none;font-size:.76rem;font-weight:700;transition:color .2s}.landing-nav a:hover{color:#fff}.landing-nav-cta{border:1px solid #efb47366;background:#efb473;color:#1a2435;border-radius:10px;padding:9px 14px;font-weight:900;cursor:pointer}.landing-command-center,.landing-automation{margin-top:30px;border-radius:28px;padding:clamp(28px,5vw,58px);background:linear-gradient(135deg,#101c30,#1f304b);color:#fff;box-shadow:0 24px 70px #0b14252b;display:grid;grid-template-columns:.72fr 1.28fr;gap:34px;align-items:center}.command-copy h2{font-size:clamp(1.6rem,3.2vw,2.8rem);line-height:1.5;margin:10px 0}.command-copy p{color:#b9c7d8;line-height:2;font-size:.9rem}.command-status{display:flex;align-items:center;gap:8px;margin-top:20px;color:#a9dcbf;font-size:.75rem}.command-status small{color:#7f93aa;margin-right:auto}.command-screen{border:1px solid #ffffff1e;border-radius:18px;background:#081222b8;padding:20px;box-shadow:inset 0 0 40px #4e9dc018}.screen-top{display:flex;justify-content:space-between;color:#9eafc4;font-size:.63rem;letter-spacing:.08em}.screen-top b{color:#70d5a0}.metric-row{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:20px 0}.metric-row>div{padding:13px;border:1px solid #ffffff17;border-radius:11px;background:#ffffff08}.metric-row small,.metric-row em{display:block;color:#91a5bc;font-size:.59rem;font-style:normal}.metric-row strong{display:block;font-size:1.65rem;margin:8px 0;color:#fff}.metric-row em{color:#72d09f}.signal-list{display:grid;gap:8px}.signal-list>div{display:flex;align-items:center;gap:9px;padding:10px;border-radius:9px;background:#ffffff08;font-size:.68rem}.signal-list i{color:#efb473;font-style:normal}.signal-list b{margin-right:auto;color:#8da3bc;font-size:.57rem}.landing-automation{display:block;background:#f9fbff;color:var(--bde-ink);border:1px solid var(--bde-line);box-shadow:var(--bde-shadow)}.landing-automation .landing-heading{margin-bottom:25px}.automation-track{display:flex;align-items:center;justify-content:center;gap:10px;direction:rtl}.automation-step{min-width:150px;padding:16px;border:1px solid var(--bde-line);border-radius:15px;background:#fff;box-shadow:0 10px 25px #1220380a;position:relative}.automation-step b{display:block;color:var(--bde-accent);font-size:.65rem}.automation-step span{display:block;font-weight:900;margin:7px 0}.automation-step small{color:var(--bde-muted);font-size:.65rem}.automation-arrow{color:var(--bde-accent);font-size:1.25rem;animation:arrowPulse 1.8s ease-in-out infinite}.automation-arrow:nth-of-type(2){animation-delay:.4s}.automation-arrow:nth-of-type(3){animation-delay:.8s}@keyframes arrowPulse{50%{transform:translateX(-5px);opacity:.55}}
@media(max-width:1050px){.landing-nav a{display:none}.landing-nav{margin-left:0}.landing-command-center{grid-template-columns:1fr}.automation-track{flex-wrap:wrap}.automation-arrow{transform:rotate(-90deg)}}
@media(prefers-reduced-motion:reduce){.agent-card,.agent-core,.agent-wire,.live-dot,.automation-arrow,.welcome:after{animation:none!important}}
/* Unified dark navigation buttons across desktop and mobile. */
.app-sidebar button{background:#27344a!important;color:#fff!important;border:1px solid #ffffff12!important}
.app-sidebar button:hover,.app-sidebar button.active{background:#344663!important;color:#fff!important}
.app-authenticated .seo-stage-nav.sidebar-controlled,.app-authenticated .store-tabs.sidebar-controlled{display:none!important}
.side-content-group{margin:8px 0 12px;padding:5px;border:1px solid #ffffff12;border-radius:16px;background:#ffffff08}.side-content-toggle{display:flex!important;align-items:center;justify-content:space-between;width:100%;background:linear-gradient(90deg,#27364f,#202d43)!important;color:#fff!important;border:0!important;font-weight:900!important}.side-content-toggle b{font-size:1rem;transition:transform .2s}.side-content-group.collapsed .side-content-toggle b{transform:rotate(90deg)}.side-content-submenu{display:grid;gap:2px;padding:4px 0 0}.side-content-submenu button{padding:9px 12px!important;font-size:.76rem!important;background:transparent!important;box-shadow:none!important}.side-content-submenu button:before{content:'↳';display:inline-block;margin-left:7px;color:var(--bde-accent)}.side-content-group.collapsed .side-content-submenu{display:none}
body:not(.app-authenticated) .landing-section{background:linear-gradient(135deg,#101a2d,#14243b)!important;border:1px solid #ffffff12!important;color:#fff!important;box-shadow:0 24px 64px #07101f2b!important}.landing-section .landing-heading h2{color:#fff}.landing-section .landing-heading p{color:#afbdd0}.landing-card{background:#ffffff08!important;border-color:#ffffff14!important;color:#fff!important}.landing-card b{color:#fff}.landing-card p{color:#aebdd0}.journey-item{background:#ffffff08!important;border-color:#ffffff14!important;color:#fff}.journey-item p{color:#aebdd0}.journey-number{background:linear-gradient(135deg,#efb473,#bb622d)!important;box-shadow:0 0 18px #efb47344}.trust-strip{background:linear-gradient(135deg,#112b35,#12283b)!important;border-color:#65c8a52b!important;color:#fff}.trust-strip h2,.trust-strip b{color:#d8f4e8!important}.trust-strip p{color:#a9cabc!important}.trust-mark{background:#63d29a1b!important;color:#7de0ae!important;box-shadow:0 0 28px #63d29a33}.landing-cta{position:relative;overflow:hidden;background:linear-gradient(135deg,#171a37,#20204a 50%,#172d4b)!important;border-color:#7e77d633!important;color:#fff!important;box-shadow:0 25px 85px #11133144!important}.landing-cta:before{content:"";position:absolute;width:360px;height:220px;right:-80px;top:-100px;border-radius:50%;background:#8d72ff38;filter:blur(45px);animation:ctaGlow 8s ease-in-out infinite alternate}.landing-cta>*{position:relative;z-index:1}.landing-cta h2{color:#fff}.landing-cta p{color:#b9c4da}.landing-cta .btn{background:#efb473;color:#192235;box-shadow:0 8px 28px #efb47344}@keyframes ctaGlow{to{transform:translate(-70px,70px);opacity:.45}}
body:not(.app-authenticated) .landing-section,.landing-command-center,.landing-automation{scroll-margin-top:90px}
.landing-nav{display:none!important}
.public-brand{display:flex;align-items:center;gap:10px;position:absolute;right:clamp(18px,4vw,56px);top:17px;color:#fff;direction:rtl}.public-brand span{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:linear-gradient(135deg,#f0aa62,#b65c2b);font-size:.7rem;font-weight:950;color:#172033;box-shadow:0 0 12px #ff9b3c33}.public-brand b{font-size:.88rem}.public-brand small{font-size:.58rem;color:#91a4bc;margin-right:3px}.topbar{position:relative!important}
.app-authenticated .card p,.app-authenticated .card li,.app-authenticated .card td,.app-authenticated .card small,.app-authenticated .step p,.app-authenticated .step h3,.app-authenticated .timeline p,.app-authenticated .empty,.app-authenticated .card .hint{color:#c7d3e2!important}.app-authenticated .card strong,.app-authenticated .card b{color:#f3f7fc!important}.app-authenticated .tab,.app-authenticated .tab.active{color:#e7eff8!important}.app-authenticated .pill{color:#f0f5fb!important}.app-authenticated .progress-ring b{color:#fff!important}.app-authenticated .target-source-head,.app-authenticated .target-source-head h3,.app-authenticated summary{color:#edf3fb!important}
.app-authenticated .site-card,.app-authenticated .site-card.active{background:#15243a!important;border-color:#3a506d!important;color:#edf3fb!important;box-shadow:0 14px 34px #02081744!important}.app-authenticated .site-card h3,.app-authenticated .site-card .meta,.app-authenticated .site-card .url{color:#edf3fb!important}.app-authenticated .site-card .url{color:#8dccff!important}.app-authenticated .site-card .pill,.app-authenticated .pill{background:#223550!important;border:1px solid #ffffff1a!important}.app-authenticated .pill.connected,.app-authenticated .pill.completed,.app-authenticated .pill.fixed{background:#123d36!important;color:#8de0b6!important}.app-authenticated .pill.high,.app-authenticated .pill.in_progress,.app-authenticated .pill.accepted{background:#4b321e!important;color:#ffc27d!important}.app-authenticated .pill.medium{background:#4a431d!important;color:#f7e49b!important}.app-authenticated .pill.critical,.app-authenticated .pill.failed,.app-authenticated .pill.detected{background:#4a242d!important;color:#ff9ca8!important}.app-authenticated .pill.queued,.app-authenticated .pill.pending,.app-authenticated .pill.unknown{background:#243754!important;color:#a9c8ed!important}.app-authenticated #creditBadge{background:#4b321e!important;color:#ffc27d!important}
.app-authenticated{background:radial-gradient(circle at 8% -8%,#243b5c 0,transparent 26%),linear-gradient(135deg,#0b1220,#101a2d 55%,#111b30)!important;color:#edf3fb!important}.app-authenticated .shell{background:transparent!important}.app-authenticated .hero{background:linear-gradient(135deg,#172943,#223b5c)!important;border:1px solid #ffffff14!important}.app-authenticated .stats .stat,.app-authenticated .card,.app-authenticated .content-calendar-card{background:#15243aee!important;border-color:#ffffff16!important;color:#edf3fb!important;box-shadow:0 18px 48px #02081744!important}.app-authenticated .card h2,.app-authenticated .card h3,.app-authenticated .card h4,.app-authenticated .stat b{color:#f4f7fb!important}.app-authenticated .sub,.app-authenticated .stat span,.app-authenticated .stat em{color:#9eafc3!important}.app-authenticated .field label,.app-authenticated .field span{color:#bfccdc!important}.app-authenticated .field input,.app-authenticated .field textarea,.app-authenticated .field select{background:#0d192b!important;border-color:#344963!important;color:#edf3fb!important}.app-authenticated .field input::placeholder,.app-authenticated .field textarea::placeholder{color:#73869e!important}.app-authenticated table{color:#e8eff8!important}.app-authenticated th{color:#9eafc3!important;border-color:#2a3c55!important}.app-authenticated td{border-color:#263852!important}.app-authenticated tbody tr:hover{background:#ffffff08!important}.app-authenticated .notice,.app-authenticated .guard,.app-authenticated .current-box{background:#172941!important;border-color:#ffffff16!important;color:#d8e3f0!important}.app-authenticated .btn.ghost{background:#223550!important;color:#e7eff8!important;border-color:#ffffff18!important}.app-authenticated .btn:not(.ghost){box-shadow:0 0 13px #ff9b3c25!important}.app-authenticated .seo-stage-nav{background:#101a2ddd!important}.app-authenticated .target-source-box,.app-authenticated .target-card{background:#15243a!important;border-color:#ffffff16!important;color:#edf3fb!important}.app-authenticated a{color:#f0ad69}.app-authenticated .live-work{background:#172941!important;color:#f0ad69!important;border-color:#5f472e!important}
.welcome-story h1{font-size:clamp(2rem,3.6vw,3.65rem)!important;line-height:1.42!important;max-width:680px!important}.brain-svg{transform:scale(1.08)}
.welcome-kicker,.welcome-story h1 em,.landing-nav-cta,.metric-row em,.command-status b{color:#ffad55!important;text-shadow:0 0 12px #ff8a304d}.landing-nav-cta,.landing-cta .btn{box-shadow:0 0 18px #ff8a3066,0 8px 26px #ff8a3033!important}.metric-row em{color:#ffad55!important}.signal-list i{color:#ffad55!important;text-shadow:0 0 10px #ff8a30}
.landing-nav-cta{color:#172033!important;text-shadow:none!important;background:#f0aa62!important;box-shadow:0 0 10px #ff9b3c33!important}.landing-cta .btn{box-shadow:0 0 12px #ff9b3c33,0 7px 18px #ff9b3c22!important}.welcome h1,.welcome h2,.welcome h3,.welcome .landing-heading{text-align:center}.cinematic-visual{text-align:center}.cinematic-visual .agent-card{text-align:center}.agent-feed{justify-content:center}.welcome-kicker,.welcome-story h1 em,.metric-row em,.command-status b{ text-shadow:0 0 7px #ff9b3c2e!important}.signal-list i{ text-shadow:0 0 6px #ff9b3c44!important}
.brain-core{width:132px!important;height:112px!important;border-radius:45% 45% 42% 42%!important;background:radial-gradient(circle,#213451,#101b31 72%)!important;box-shadow:0 0 0 10px #8a78ff18,0 0 38px #4ed8ff75,0 0 70px #df63c766!important;animation:brainBreathe 4s ease-in-out infinite!important}.brain-core small{position:absolute;bottom:-17px;left:0;right:0;text-align:center;color:#bdefff;font-size:.44rem;letter-spacing:.16em}.brain-svg{width:126px;height:104px;overflow:visible}.brain-outline,.brain-fold{stroke-dasharray:5 3}.brain-outline{animation:brainTrace 9s linear infinite}.brain-fold{animation:brainFlow 5s ease-in-out infinite}.brain-pulse{stroke-dasharray:8 12;animation:brainSignal 2.6s linear infinite}.agent-wire{background:linear-gradient(90deg,#68dcffbb,#b979ff66,#ff62c877)!important}.agent-card:hover{border-color:#8edfff99;box-shadow:0 0 25px #5edcff35,0 9px 25px #0004}.agent-card:hover~.agent-wire{opacity:1}@keyframes brainBreathe{50%{transform:translate(-50%,-50%) scale(1.045);box-shadow:0 0 0 15px #8a78ff10,0 0 52px #4ed8ff9c,0 0 88px #df63c766}}@keyframes brainTrace{to{stroke-dashoffset:-80}}@keyframes brainFlow{50%{stroke-opacity:.45;filter:drop-shadow(0 0 7px #ff62c8)}}@keyframes brainSignal{to{stroke-dashoffset:-100}}
 .product-preview-body{display:grid;grid-template-columns:180px 1fr;gap:1.25rem;align-items:start}.product-preview-image{min-height:150px;border:1px dashed rgba(255,255,255,.2);border-radius:14px;display:grid;place-items:center;color:var(--muted,#9ca3af);overflow:hidden}.product-preview-image img{width:100%;height:100%;min-height:150px;object-fit:contain}.product-preview-body dl{display:grid;grid-template-columns:auto 1fr;gap:.35rem .75rem;margin-top:1rem}.product-preview-body dt{color:var(--muted,#9ca3af)}.product-preview-body dd{margin:0}@media(max-width:700px){.product-preview-body{grid-template-columns:1fr}}
@media(min-width:1051px){body.app-authenticated .app-sidebar{position:fixed!important;right:0!important;top:72px!important;bottom:0!important;height:calc(100vh - 72px);z-index:18}body.app-authenticated .shell{margin-right:252px!important;max-width:none!important}}
/* Keep the authenticated navigation compact and intentional: it is a
   workspace rail, not a second stack of white dashboard cards. */
body.app-authenticated .app-sidebar{border-left:1px solid #ffffff14;background:linear-gradient(180deg,#101a2c 0%,#0b1322 100%)!important;padding:20px 14px!important}
body.app-authenticated .app-sidebar h2{color:#f5f8fc!important;font-size:1rem!important;margin:0 8px 18px!important}
body.app-authenticated .app-sidebar .side-label{display:block;color:#91a4bc!important;font-size:.68rem!important;padding:10px 9px 5px!important;margin:0!important}
body.app-authenticated .app-sidebar>button,body.app-authenticated .app-sidebar .side-content-toggle{min-height:42px!important;margin:3px 0!important;border-radius:11px!important;background:#1a2940!important;color:#dce7f4!important;border:1px solid #ffffff10!important;box-shadow:none!important}
body.app-authenticated .app-sidebar>button:hover,body.app-authenticated .app-sidebar button.active,body.app-authenticated .app-sidebar .side-content-toggle:hover{background:linear-gradient(90deg,#2a405e,#20334d)!important;color:#fff!important;border-color:#efb47355!important}
body.app-authenticated .app-sidebar .side-content-group{background:#0d192a!important;border-color:#ffffff12!important;padding:5px!important;margin:5px 0 8px!important}
body.app-authenticated .app-sidebar .side-content-submenu button{color:#b8c9dc!important;background:transparent!important;border-color:transparent!important;min-height:37px!important}
body.app-authenticated .app-sidebar .side-content-submenu button:hover,body.app-authenticated .app-sidebar .side-content-submenu button.active{background:#20344f!important;color:#ffbd78!important}
/* One navigation language: every destination is the same dark, full-width
   button. Content and store sections deliberately have no white cards, nested
   panels, or arrow-prefixed entries. */
body.app-authenticated .app-sidebar .side-content-group,
body.app-authenticated .app-sidebar .side-product-subgroup{display:block!important;background:transparent!important;border:0!important;box-shadow:none!important;margin:4px 0!important;padding:0!important}
body.app-authenticated .app-sidebar .side-content-submenu{display:grid!important;gap:4px!important;margin:4px 0 8px!important;padding:0!important}
body.app-authenticated .app-sidebar .side-content-group .side-content-toggle,
body.app-authenticated .app-sidebar .side-content-submenu button,
body.app-authenticated .app-sidebar .side-product-subgroup .side-content-submenu button{display:flex!important;align-items:center!important;justify-content:flex-start!important;width:100%!important;min-height:42px!important;margin:0!important;padding:11px 13px!important;border:1px solid #ffffff10!important;border-radius:11px!important;background:#1a2940!important;color:#dce7f4!important;box-shadow:none!important;text-align:right!important;font-size:.82rem!important;line-height:1.35!important}
body.app-authenticated .app-sidebar .side-content-group .side-content-toggle:hover,
body.app-authenticated .app-sidebar .side-content-submenu button:hover,
body.app-authenticated .app-sidebar .side-content-submenu button.active{background:linear-gradient(90deg,#2a405e,#20334d)!important;color:#fff!important;border-color:#efb47355!important}
body.app-authenticated .app-sidebar .side-content-submenu button.active{box-shadow:inset -3px 0 #efb473!important}
/* Direct destinations use the very same rail button as nested destinations. */
body.app-authenticated .app-sidebar>button[data-page="measurement"],
body.app-authenticated .app-sidebar>button[data-page="optimization"],
body.app-authenticated .app-sidebar>button[data-page="activity"],
body.app-authenticated .app-sidebar>button[data-account]{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  width:100%!important;
  min-height:42px!important;
  margin:0 0 4px!important;
  padding:11px 13px!important;
  border:1px solid #ffffff10!important;
  border-radius:11px!important;
  background:#1a2940!important;
  color:#dce7f4!important;
  box-shadow:none!important;
  font-size:.82rem!important;
  line-height:1.35!important;
  text-align:right!important;
}
body.app-authenticated .app-sidebar>button[data-page="measurement"]:hover,
body.app-authenticated .app-sidebar>button[data-page="optimization"]:hover,
body.app-authenticated .app-sidebar>button[data-page="activity"]:hover,
body.app-authenticated .app-sidebar>button[data-account]:hover,
body.app-authenticated .app-sidebar>button[data-page="measurement"].active,
body.app-authenticated .app-sidebar>button[data-page="optimization"].active,
body.app-authenticated .app-sidebar>button[data-page="activity"].active,
body.app-authenticated .app-sidebar>button[data-account].active{
  background:linear-gradient(90deg,#2a405e,#20334d)!important;
  color:#fff!important;
  border-color:#efb47355!important;
  box-shadow:inset -3px 0 #efb473!important;
}
/* Card actions use one measurable control system.  Small is a text-size
   variant only; it must not create a second button height or layout. */
body.app-authenticated .card .btn,
body.app-authenticated .card button.btn,
body.app-authenticated .card .btn.small,
body.app-authenticated .card button.btn.small{
  min-height:46px!important;
  height:46px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  padding:0 16px!important;
  border-radius:12px!important;
  white-space:normal!important;
  text-align:center!important;
  box-sizing:border-box!important;
}
body.app-authenticated .card .actions,
body.app-authenticated .card .pw-actions,
body.app-authenticated .card .stage-bottom-actions,
body.app-authenticated .card .card-head>.actions{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(160px,1fr))!important;
  gap:10px!important;
  align-items:stretch!important;
}
body.app-authenticated .card .actions>.btn,
body.app-authenticated .card .pw-actions>.btn,
body.app-authenticated .card .stage-bottom-actions>.btn,
body.app-authenticated .card .card-head>.actions>.btn{
  width:100%!important;
  margin:0!important;
}
body.app-authenticated .card form.form-grid>button.btn,
body.app-authenticated .card form.form-grid>.btn{width:100%!important}
.account-billing-card{margin-top:18px}.billing-wallet-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:16px 0 24px}.billing-wallet-stats>div{border:1px solid #ffffff12;border-radius:13px;padding:13px;background:#17253b;color:#e7eef8}.billing-wallet-stats span{display:block;color:#9db0c8;font-size:.75rem}.billing-wallet-stats b{display:block;font-size:1.3rem;margin-top:5px;color:#ffbd78}.billing-packages{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px;margin:12px 0 25px}.billing-package{display:grid;gap:8px;border:1px solid #ffffff15;border-radius:15px;padding:16px;background:#17253b;color:#eef5ff}.billing-package h4,.billing-package p{margin:0}.billing-package p{min-height:42px;color:#b9c8d9;font-size:.78rem;line-height:1.7}.billing-package strong{color:#ffbd78;font-size:1.1rem}.billing-package small{color:#a8b9cc}.billing-package .btn{width:100%;margin-top:3px}@media(max-width:700px){.billing-wallet-stats{grid-template-columns:1fr 1fr}}
.account-balance-breakdown{display:flex;gap:14px;flex-wrap:wrap;color:#cfdaea;font-size:.78rem}.account-balance-breakdown b{color:#fff;margin-inline-start:4px}.account-low-balance{margin:12px 0 0;padding:10px 12px;border-radius:10px;background:#5a3d20;color:#ffd18e;font-size:.78rem;line-height:1.7}.billing-manual-note{margin:-6px 0 12px;color:#aabbd0;font-size:.8rem;line-height:1.8}.billing-order-status{display:flex;flex-wrap:wrap;gap:8px 16px;margin:-8px 0 22px;padding:12px 14px;border:1px solid #45658b;border-radius:11px;background:#1b304b;color:#dbeafe;font-size:.8rem}.billing-order-status small{width:100%;color:#9fb4ce;direction:ltr}.billing-preflight{display:grid;gap:3px;margin-top:8px;padding:9px 11px;border:1px solid #496888;border-radius:9px;background:#182b43;color:#e3edf9;font-size:.78rem;line-height:1.7}.billing-preflight b{color:#ffd08d}.billing-preflight small,.billing-preflight span{display:block;color:#a9bdd5}.billing-preflight.is-loading{color:#b6c9df}.billing-preflight.is-error{border-color:#76505a;color:#ffc0c5}.billing-preflight.is-insufficient{border-color:#9c5964;background:#3b2734}.billing-preflight-warning{color:#ffb7be!important}

/* Overview: a calm, evidence-backed executive workspace rather than a copy of
   the SEO wizard.  All components use the established dark BDE visual system. */
#overviewWorkspace{display:grid;gap:18px}.overview-loading{padding:34px;border:1px dashed var(--bde-line);border-radius:18px;color:var(--bde-muted);text-align:center;background:#fff}.overview-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(250px,.42fr);gap:22px;padding:30px;border-radius:24px;background:radial-gradient(circle at 85% 18%,#efaa6630,transparent 29%),linear-gradient(130deg,#0e1728,#233a58);color:#fff;box-shadow:0 22px 55px #14203725}.overview-kicker{display:block;color:#efb473;font-size:.76rem;font-weight:850;letter-spacing:.04em;margin-bottom:7px}.overview-hero h2{margin:0;font-size:clamp(1.35rem,2.6vw,2.1rem);letter-spacing:-.04em}.overview-hero>div>p{color:#bdcbe0;margin:9px 0 0;direction:ltr;text-align:right;font-size:.8rem}.overview-data-chip{display:inline-flex;gap:7px;align-items:center;margin-top:17px;padding:8px 11px;border:1px solid #ffffff1c;border-radius:99px;background:#ffffff0b;color:#dce8f5;font-size:.74rem}.overview-data-chip i,.overview-connection-dot{width:8px;height:8px;border-radius:50%;background:#97a7bc;box-shadow:0 0 0 4px #97a7bc1f}.overview-data-chip.good i,.overview-connection.good .overview-connection-dot{background:#58c598;box-shadow:0 0 0 4px #58c5981f}.overview-data-chip.warn i,.overview-connection.warn .overview-connection-dot{background:#efb473;box-shadow:0 0 0 4px #efb47322}.overview-next{align-self:stretch;display:flex;flex-direction:column;justify-content:center;padding:20px;border:1px solid #ffffff1c;border-radius:18px;background:#07101f5c}.overview-next>span{font-size:.72rem;color:#efb473}.overview-next b{font-size:1rem;margin-top:8px}.overview-next p{direction:rtl!important;color:#c2cfdf!important;line-height:1.9}.overview-next .btn{margin-top:9px;width:100%}.overview-health,.overview-kpis,.overview-panel,.overview-alerts{border:1px solid var(--bde-line);border-radius:20px;padding:22px;background:#fff;box-shadow:var(--bde-shadow)}.overview-section-head{display:flex;justify-content:space-between;align-items:start;gap:14px;margin-bottom:16px}.overview-section-head h3{margin:0;font-size:1rem;letter-spacing:-.02em}.overview-section-head p{margin:5px 0 0;color:var(--bde-muted);font-size:.77rem;line-height:1.75}.overview-link{border:0;background:transparent;color:#b9682a;font:inherit;font-size:.76rem;font-weight:850;cursor:pointer;white-space:nowrap;padding:5px}.overview-link:hover{text-decoration:underline}.overview-connection-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.overview-connection{min-height:142px;padding:15px;border:1px solid #e6ebf2;border-radius:15px;background:#fbfcfe;display:flex;flex-direction:column;align-items:flex-start}.overview-connection>div{display:flex;gap:8px;align-items:center;font-size:.76rem}.overview-connection>strong{font-size:.9rem;margin-top:12px}.overview-connection p{font-size:.74rem;line-height:1.8;color:var(--bde-muted);margin:7px 0}.overview-connection small{font-size:.67rem;color:#91a0b3;margin-top:auto}.overview-connection .overview-link{margin-top:8px;padding:0}.overview-connection.bad{border-color:#f4c8cb;background:#fff8f8}.overview-connection.warn{border-color:#f2ddb8;background:#fffcf5}.overview-metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.overview-metric{padding:17px;border:1px solid #e6ebf2;border-radius:15px;background:linear-gradient(145deg,#fff,#f8faff)}.overview-metric span{display:block;font-size:.75rem;color:var(--bde-muted)}.overview-metric b{display:block;margin:9px 0 7px;font-size:1.55rem;color:#16253a}.overview-metric em{font-size:.68rem;font-style:normal}.overview-metric em.up{color:#16835b}.overview-metric em.down{color:#c95151}.overview-metric em.neutral{color:#8b98a9}.overview-trend{margin-top:15px;padding:15px 16px;border-radius:15px;background:#f7f9fc}.overview-trend>div{display:flex;justify-content:space-between;font-size:.78rem}.overview-trend span{color:var(--bde-muted);font-size:.7rem}.overview-spark{display:block;width:100%;height:125px;margin-top:8px;overflow:visible}.overview-empty-chart{height:110px;display:grid;place-items:center;color:var(--bde-muted);font-size:.8rem}.overview-two-col{display:grid;grid-template-columns:1fr 1fr;gap:18px}.overview-list{display:grid;gap:2px}.overview-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid #edf0f4}.overview-row:last-child{border-bottom:0}.overview-row b,.overview-row strong{font-size:.8rem}.overview-row strong{color:#b9682a;white-space:nowrap}.overview-row small{display:block;margin-top:4px;color:var(--bde-muted);font-size:.69rem}.overview-empty{margin:0;color:var(--bde-muted);line-height:2;font-size:.8rem}.overview-content-counts{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.overview-content-counts span{padding:11px 8px;border-radius:11px;background:#f6f8fb;text-align:center;font-size:.68rem;color:var(--bde-muted)}.overview-content-counts b{display:block;margin-bottom:4px;font-size:1rem;color:#17253b}.overview-schedule{display:grid;gap:8px;margin-top:15px}.overview-schedule>div{padding:10px 12px;border-right:3px solid #efb473;background:#fcfdff}.overview-schedule time,.overview-schedule small{display:block;color:var(--bde-muted);font-size:.67rem;margin-top:3px}.overview-schedule b{display:block;margin-top:4px;font-size:.8rem}.overview-plan{padding:17px;border-radius:15px;background:linear-gradient(135deg,#14233a,#243d5d);color:#fff}.overview-plan>span{font-size:.7rem;color:#efb473}.overview-plan h4{margin:8px 0;font-size:1rem}.overview-plan b{display:block;font-size:.74rem;margin-top:9px}.overview-plan p{color:#c2cfdf;margin:8px 0 0;font-size:.74rem}.overview-progress{height:8px;border-radius:99px;background:#ffffff23;overflow:hidden;margin-top:15px}.overview-progress i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#efaa66,#72d0a7)}.overview-alerts{display:grid;grid-template-columns:repeat(auto-fit,minmax(245px,1fr));gap:12px}.overview-alerts .overview-section-head{grid-column:1/-1;margin-bottom:0}.overview-alert{padding:15px;border-radius:14px;border:1px solid #e8ecf1;background:#fbfcfe}.overview-alert.high{border-color:#efc3c7;background:#fff8f8}.overview-alert.medium{border-color:#f1ddb6;background:#fffcf5}.overview-alert b{font-size:.85rem}.overview-alert p{font-size:.74rem;line-height:1.8;color:var(--bde-muted);margin:7px 0}.overview-all-clear{grid-column:1/-1;padding:16px;border-radius:13px;background:#f4fbf7;color:#167650}.overview-all-clear span{display:block;color:#5d8573;font-size:.78rem;margin-top:4px}
@media(max-width:900px){.overview-hero,.overview-two-col{grid-template-columns:1fr}.overview-connection-grid{grid-template-columns:1fr 1fr}.overview-metric-grid{grid-template-columns:1fr 1fr}}@media(max-width:560px){.overview-hero,.overview-health,.overview-kpis,.overview-panel,.overview-alerts{padding:16px;border-radius:16px}.overview-connection-grid{grid-template-columns:1fr}.overview-section-head{align-items:flex-start;flex-direction:column}.overview-metric-grid{gap:8px}.overview-metric{padding:13px}.overview-content-counts{grid-template-columns:1fr 1fr}.overview-next{padding:16px}.overview-hero{padding:20px}}

/* Authenticated Overview surfaces follow the dark workspace theme.  Keep
   status colors expressive while preventing light cards from inheriting white
   text or low-contrast muted text. */
body.app-authenticated #overviewWorkspace .overview-loading,
body.app-authenticated #overviewWorkspace .overview-health,
body.app-authenticated #overviewWorkspace .overview-kpis,
body.app-authenticated #overviewWorkspace .overview-panel,
body.app-authenticated #overviewWorkspace .overview-alerts{
  background:#15243a!important;
  border-color:#ffffff16!important;
  color:#edf3fb!important;
  box-shadow:0 18px 48px #02081744!important;
}
body.app-authenticated #overviewWorkspace .overview-loading,
body.app-authenticated #overviewWorkspace .overview-empty,
body.app-authenticated #overviewWorkspace .overview-section-head p,
body.app-authenticated #overviewWorkspace .overview-connection p,
body.app-authenticated #overviewWorkspace .overview-connection small,
body.app-authenticated #overviewWorkspace .overview-metric span,
body.app-authenticated #overviewWorkspace .overview-trend span,
body.app-authenticated #overviewWorkspace .overview-row small,
body.app-authenticated #overviewWorkspace .overview-empty-chart,
body.app-authenticated #overviewWorkspace .overview-schedule time,
body.app-authenticated #overviewWorkspace .overview-schedule small,
body.app-authenticated #overviewWorkspace .overview-alert p{
  color:#aebed1!important;
}
body.app-authenticated #overviewWorkspace .overview-section-head h3,
body.app-authenticated #overviewWorkspace .overview-connection>strong,
body.app-authenticated #overviewWorkspace .overview-metric b,
body.app-authenticated #overviewWorkspace .overview-row b,
body.app-authenticated #overviewWorkspace .overview-schedule b,
body.app-authenticated #overviewWorkspace .overview-alert b{
  color:#f4f7fb!important;
}
body.app-authenticated #overviewWorkspace .overview-link{color:#ffbd78!important}
body.app-authenticated #overviewWorkspace .overview-row strong{color:#ffbd78!important}
body.app-authenticated #overviewWorkspace .overview-connection,
body.app-authenticated #overviewWorkspace .overview-metric,
body.app-authenticated #overviewWorkspace .overview-alert{
  background:#1b2c45!important;
  border-color:#ffffff16!important;
}
body.app-authenticated #overviewWorkspace .overview-connection.bad,
body.app-authenticated #overviewWorkspace .overview-alert.high{
  background:#352635!important;
  border-color:#a35b68!important;
}
body.app-authenticated #overviewWorkspace .overview-connection.warn,
body.app-authenticated #overviewWorkspace .overview-alert.medium{
  background:#3a3023!important;
  border-color:#9a7440!important;
}
body.app-authenticated #overviewWorkspace .overview-trend,
body.app-authenticated #overviewWorkspace .overview-content-counts span,
body.app-authenticated #overviewWorkspace .overview-schedule>div{
  background:#101d30!important;
  border-color:#2a3c55!important;
}
body.app-authenticated #overviewWorkspace .overview-content-counts span{color:#aebed1!important}
body.app-authenticated #overviewWorkspace .overview-content-counts b{color:#f4f7fb!important}
body.app-authenticated #overviewWorkspace .overview-row{border-color:#2a3c55!important}
body.app-authenticated #overviewWorkspace .overview-all-clear{
  background:#17372f!important;
  color:#b5f0d2!important;
}
body.app-authenticated #overviewWorkspace .overview-all-clear span{color:#8ed0b1!important}

/* Resolve legacy light-surface overrides inside the authenticated dark app.
   The keyword guard was declared later in index.html with an ID selector,
   so the generic app card theme could not override its white background. */
body.app-authenticated #competitorKeywordRows .guard{
  background:#172941!important;
  border-color:#49617f!important;
  color:#d8e3f0!important;
}
body.app-authenticated #competitorKeywordRows .guard span,
body.app-authenticated #competitorKeywordRows .guard b,
body.app-authenticated #competitorKeywordRows .guard small{
  color:#d8e3f0!important;
}
body.app-authenticated .post-picker-preview,
body.app-authenticated .post-picker-help{
  background:#172941!important;
  border:1px solid #ffffff16!important;
  color:#d8e3f0!important;
}
body.app-authenticated .post-picker-preview small,
body.app-authenticated .post-picker-help small{
  color:#aebed1!important;
}
body.app-authenticated .post-picker-search{
  background:#0d192b!important;
  border-color:#344963!important;
  color:#edf3fb!important;
}
body.app-authenticated .post-picker-search::placeholder{color:#91a4bc!important}

.billing-package-bonus{display:block;font-size:.76rem;color:#8ee0bb}.billing-section-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;border-bottom:1px solid #ffffff12;padding-bottom:8px}.billing-section-heading h3{margin:0}.billing-section-heading small{color:#9fb2c8;font-size:.72rem}.billing-orders-panel{margin:4px 0 25px}.billing-orders{display:grid;gap:8px;margin-top:10px}.billing-order-row{display:grid;grid-template-columns:minmax(150px,1.5fr) .8fr 1fr 1.3fr auto;align-items:center;gap:10px;padding:11px 12px;border:1px solid #ffffff12;border-radius:11px;background:#142238;color:#dce8f6;font-size:.78rem}.billing-order-row>div{min-width:0}.billing-order-row b,.billing-order-row small{display:block;overflow-wrap:anywhere}.billing-order-row small{margin-top:3px;color:#91a8c2;font-size:.68rem}.billing-order-row em{font-style:normal;text-align:center}.billing-order-row time{color:#9fb2c8;font-size:.68rem;white-space:nowrap}.billing-order-row .pill{font-size:.68rem}.billing-order-row .pill.success{background:#164b3a;color:#a6f1cc}.billing-order-row .pill.error{background:#552932;color:#ffc1c8}@media(max-width:700px){.billing-order-row{grid-template-columns:1fr 1fr}.billing-order-row>div{grid-column:1/-1}.billing-order-row em{text-align:right}.billing-order-row time{justify-self:end}}
