/* ZiCabin 0.7.2 — indigo/slate visual system. Visual layer only: no backend policy changes. */
:root{
 --bg:#f8fafc;--white:#fff;--ink:#172035;--muted:#64748b;--edge:#e7ecf4;
 --teal:#4f46e5;--dark:#0f172a;--dark2:#111c32;--green:#059669;--orange:#8b5cf6;
 --zc-accent:#4f46e5;--zc-accent-dark:#4338ca;--zc-soft:#eef2ff;
 --zc-shadow:0 5px 25px rgba(15,23,42,.035);
}
html,body{scroll-behavior:smooth}
body{background:#f8fafc;color:#172035;font-family:Vazirmatn,Tahoma,Arial,sans-serif}
button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #6366f166;outline-offset:2px}
.sandbox-ribbon{background:#111827;color:#ced6e7;padding:6px 12px;font-size:10.5px;letter-spacing:0}
.sandbox-ribbon strong{color:white}
.shell{background:#f8fafc}
/* Dark slim sidebar with the genuine framed ZiCabin mark. */
.side{width:258px;flex:0 0 258px;background:linear-gradient(164deg,#151f3c 0%,#0f172a 74%);color:#d7def0;border-left:1px solid #26324f;box-shadow:-10px 0 42px #0f172a17;padding:21px 14px 19px;gap:0;min-height:calc(100vh - 32px)}
.side:before{content:"";position:absolute;top:0;right:0;width:100%;height:140px;pointer-events:none;background:radial-gradient(ellipse at 70% 0%,#6e61e722,transparent 72%)}
.brand{position:relative;display:flex;align-items:center;gap:11px;border-bottom:1px solid #ffffff22;padding:0 7px 23px;margin-bottom:20px}
.brand-logo{width:84px;height:84px;flex:0 0 84px;display:block}
.brand-logo img{width:100%;height:100%;object-fit:contain;box-shadow:0 0 0 1px #bdbdc5;border-radius:2px}
.brand-desc b{color:white;font-size:15px}.brand-desc small{color:#99a7c1;font-size:11px}
.side-group{color:#73829f;padding:5px 15px 13px;font-weight:700;font-size:10.5px}
.zc-main-nav{gap:5px}
.side .nav{color:#aebbd3;border:1px solid transparent;background:transparent;padding:12px 14px;min-height:50px;border-radius:12px;font-size:13.5px;font-weight:650}
.side .nav:hover:not(.active){background:#ffffff0e;color:#fff}
.side .nav.active{background:linear-gradient(100deg,#4f46e5,#6949e9);border-color:#827bff77;color:#fff;box-shadow:0 6px 18px #4f46e533}
.side .nav .nav-ico{display:grid;place-items:center;width:24px;flex:0 0 24px;color:#91a0b9}
.side .nav .nav-ico svg{width:20px;height:20px;display:block}
.side .nav.active .nav-ico{color:#fff}
.side-bottom{margin-top:auto;padding:18px 12px 0;border-top:1px solid #ffffff18;color:#9aa7c0}
.side-bottom small{color:#7b89a5}.test-dot{background:#10b981}
/* Horizontal glass header */
.top{min-height:83px;padding:17px clamp(16px,2.8vw,37px);background:rgba(255,255,255,.9);border-bottom:1px solid #e5eaf4;backdrop-filter:blur(16px)}
.top h1{font-size:21px;color:#152139;font-weight:850}.eyebrow{color:#4f46e5}
.top-right{gap:11px}.top-right .user{background:#fff;border:1px solid #e1e6ef;padding:7px 11px;border-radius:10px;font-size:11.5px;color:#4b5e79;direction:ltr}
.top-right #connection{background:#e9f8f0;color:#047857;border:1px solid #c8f1df;padding:6px 12px;font-weight:700}
.top-right .ghost{border-radius:12px;min-height:37px}
.content{max-width:1500px;padding:28px clamp(17px,2.8vw,38px) 44px}
footer{color:#9aa6ba}
/* UI primitives */
.card,.stat,.dash-panel{border:1px solid #edf0f5;background:#fff;border-radius:22px;box-shadow:0 3px 15px #15213907}
.card h3{color:#18223b}
.btn{border-radius:11px;border:1px solid #e0e7f2;color:#354158;background:white;min-height:38px;font-size:12px;box-shadow:0 1px 2px #0f172a08}
.btn:hover:not(:disabled){background:#f5f5ff;border-color:#c7cbfb;color:#4338ca}
.btn.primary{background:linear-gradient(104deg,#4f46e5,#6e4bf0);border:1px solid transparent;color:#fff;box-shadow:0 7px 17px #4f46e524}
.btn.primary:hover:not(:disabled){background:linear-gradient(104deg,#4338ca,#5b35d5);color:white}
input,select,textarea{border-color:#d8dfeb;color:#24314b;background:#fff}
input:focus,select:focus,textarea:focus{border-color:#7c79ef;box-shadow:0 0 0 4px #6366f11b}
label{color:#54657c}.hint,.text-muted{color:#8190a7}
.pill{background:#f1f4f9;color:#51627a}
.pill.success{background:#e6f7ed;color:#137f52}.pill.warn{background:#fdf3da;color:#906418}.pill.danger{background:#ffebef;color:#b82f4a}
.notice{background:#f4f6ff;border-color:#e0e5ff;color:#4b5679}
.notice.warn{background:#fff8e7;border-color:#f4e1b5;color:#816026}
table th{background:#f5f7fb;color:#53637a}table td{border-color:#eef1f6}tbody tr:hover{background:#f8f9ff}
.zc-subnav{background:#edf0f9}.zc-subnav-link{color:#68748c}.zc-subnav-link.selected{color:#4f46e5}
/* Admin dashboard hierarchy mirrors approved reference while retaining dynamic real values. */
.zc-dashboard{gap:27px}
.dash-intro{padding:0 0 4px;gap:20px}
.dash-kicker{color:#6861d7;font-size:11px}
.dash-intro h2{font-size:clamp(22px,2.2vw,29px);color:#13203a;letter-spacing:-.6px}
.dash-intro p{color:#8693a8}
.dash-stat-grid{gap:20px;grid-template-columns:repeat(4,minmax(0,1fr))}
.dash-stat{padding:22px 22px 20px;border-radius:24px;min-height:162px;box-shadow:0 4px 18px #0f172a06;border:1px solid #eef1f7;transition:transform .2s,box-shadow .2s}
.dash-stat:hover{transform:translateY(-2px);box-shadow:0 12px 26px #0f172a0b}
.dash-stat-icon{width:48px;height:48px;margin-bottom:15px;border-radius:14px;background:#eff1ff;color:#6257e6;font-size:24px}
.dash-stat:nth-child(2) .dash-stat-icon{background:#f3efff;color:#9161e8}
.dash-stat:nth-child(3) .dash-stat-icon{background:#e9f8f4;color:#0d998b}
.dash-stat:nth-child(4){background:linear-gradient(125deg,#4f46e5,#8b5cf6);border-color:transparent;color:#fff;box-shadow:0 11px 25px #4f46e52a}
.dash-stat:nth-child(4) .dash-stat-icon{background:#ffffff30;color:#fff}
.dash-stat-value{font-size:clamp(19px,2.1vw,29px);line-height:1.5;color:#19253d}
.dash-stat-label{color:#536078;font-size:12px}.dash-stat-sub{color:#97a3b5;font-size:10.5px}
.dash-stat:nth-child(4) .dash-stat-value,.dash-stat:nth-child(4) .dash-stat-label{color:#fff}
.dash-stat:nth-child(4) .dash-stat-sub{color:#ece8ff}
.dash-priority{border:1px solid #dddfff;background:#f6f6ff}.dash-priority strong{color:#4f46e5}
.dash-main-grid{grid-template-columns:minmax(0,2fr) minmax(295px,1fr);gap:23px;align-items:stretch}
.dash-bottom-grid{grid-template-columns:1fr 1fr;gap:23px}
.dash-panel{padding:27px 30px 26px;min-height:265px}
.dash-panel-head{border:0;padding-bottom:16px;align-items:flex-start}
.dash-panel-head h3{font-size:17px;font-weight:800;color:#15213b}
.dash-panel-head p{font-size:11px;color:#9ca9c0;margin-top:3px}
.dash-panel-head .btn.dash-soft-action{background:#eef2ff;border:0;color:#4f46e5;padding:6px 15px;min-height:35px;border-radius:10px;font-size:12px}
.dash-panel-head .btn.dash-soft-action:hover{background:#e0e7ff;color:#4338ca}
.dash-ad-metrics{gap:19px;padding-top:7px}
.dash-ad-metrics>div{border:1px solid #edf0f5;background:#f8fafc;border-radius:17px;padding:22px 12px;min-height:115px;display:flex;flex-direction:column;justify-content:center;text-align:center}
.dash-ad-metrics small{font-size:11.5px;color:#7b8ba4;margin-bottom:7px}
.dash-ad-metrics b{font-size:clamp(19px,2vw,27px);color:#17253b}
.dash-ad-metrics>div:nth-child(2) b{color:#4f46e5}
.dash-ad-metrics>div:nth-child(3) b{color:#059669}
.dash-ad-spend{background:linear-gradient(100deg,#f8faff,#eef2ff);border:1px solid #e0e6ff;border-radius:16px;padding:19px 21px;margin-top:20px;color:#465570;min-height:72px}
.dash-spend-label{display:flex;gap:12px;align-items:center;font-weight:650}
.dash-spend-label svg{width:33px;height:33px;color:#5b58e5;background:#e3e9ff;border-radius:11px;padding:7px}
.dash-ad-spend b{color:#4f46e5;font-size:17px}
.dash-footnote{font-size:10.5px;color:#8491aa;line-height:1.8}
.dash-followups{display:flex;flex-direction:column}
.dash-followups .dash-panel-head{min-height:58px}
.dash-all-link{background:none;color:#94a3b8;padding:5px 0;border:0;font-size:11.5px}
.dash-all-link:hover{color:#4f46e5}
.dash-followup-empty{display:flex;flex:1;min-height:204px;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:6px}
.dash-followup-empty-icon{border:1px solid #edf0f6;border-radius:999px;background:#f7f9fc;width:76px;height:76px;display:grid;place-items:center;margin-bottom:13px;color:#becbe0}
.dash-followup-empty-icon svg{width:35px;height:35px}
.dash-followup-empty b{font-size:12.5px;font-weight:600;color:#68768f}
.dash-followup-empty small{color:#a3aec1;font-size:11px}
.dash-followups .dash-task-list{flex:1}
.dash-panel-foot{margin-top:18px}
.dash-add-followup{width:100%;justify-content:center;background:#0f172a;color:#fff;border-color:#0f172a;min-height:48px;font-size:12px;box-shadow:0 4px 8px #0f172a18}
.dash-add-followup:hover:not(:disabled){background:#1e293b!important;border-color:#1e293b!important;color:#fff!important}
.dash-add-followup span{font-size:17px}
.dash-task-main b{color:#233149}.dash-task-main small{color:#8190a8}
.dash-facts{padding-top:3px}.dash-facts>div{border-color:#edf0f4;padding:14px 0}.dash-facts span{color:#718099}
.dash-facts b{color:#1d2841}
.dash-test-tools{background:#f4f6fa;border-color:#dce4f0;color:#8692a7}
/* General partner forms / modal share same indigo design. */
.overlay{background:#11172fc2;backdrop-filter:blur(4px)}
.modal{border-radius:23px;border:1px solid #e3e8f3;box-shadow:0 26px 90px #0b143b42}
.modal-head{border-bottom:1px solid #ebeff6;padding:19px 26px}
.modal-head h3{color:#172340;font-size:18px}
.modal-body{padding:24px 27px}
.modal .btn.primary{background:linear-gradient(100deg,#4f46e5,#7651f0)}
/* Override old orange ad highlight to the new indigo theme, preserving the full 3px outline. */
.ad-ledger-row.is-selected{background:#f0efff!important;box-shadow:inset 0 3px 0 #6557f1,inset 0 -3px 0 #6557f1,inset -3px 0 0 #6557f1,inset 3px 0 0 #6557f1}
.ad-ledger-row:hover{background:#f5f4ff!important}
.ad-ledger-row:focus{outline:3px solid #6557f1}
.ad-ledger-detail>td{background:#f7f6ff!important;border-bottom:3px solid #6557f1}
.ad-details-panel{border:3px solid #6557f1;box-shadow:0 7px 20px #4f46e515}
.ad-finance-summary{background:#f5f4ff;border-color:#e0deff}
.ad-published-filters{background:#f8f9fd;border-color:#e4e7f1}
.ad-chart-mode .btn.primary,.ad-tabs .btn.primary{background:#4f46e5}
.ad-city-compare{border-color:#e0deff;background:#fdfdff}
.ad-created-details>summary,.ad-events-history>summary,.ad-details-panel details>summary,.ad-report-history summary{background:#f6f6ff;color:#5552a2}
.jc-grid button.jc-selected{background:#4f46e5}.jc-grid button.jc-today{border-color:#7f73e9}
.hero,.hero.ads-hero,.hero.vendor-hero{background:linear-gradient(110deg,#252f58,#4f46e5)}
.hero h2{color:white}.hero p{color:#e1e4ff}
@media(max-width:1170px){.dash-main-grid{grid-template-columns:minmax(0,1.6fr) minmax(260px,1fr)}.dash-panel{padding:22px}.dash-ad-metrics{gap:9px}.side{width:220px;flex-basis:220px}.brand-logo{width:70px;height:70px;flex-basis:70px}}
@media(max-width:900px){.dash-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dash-main-grid{grid-template-columns:1fr}.dash-bottom-grid{grid-template-columns:1fr}.side{width:200px;flex-basis:200px}}
@media(max-width:750px){.shell{display:block}.side{display:block;position:relative;max-height:none;min-height:0;width:100%;padding:13px 15px;box-shadow:none}.brand{padding:3px 4px 8px;margin-bottom:7px}.brand-logo{width:56px;height:56px;flex-basis:56px}.brand-desc b{font-size:13px}.side .nav{width:auto;display:inline-flex;color:#bec6df;font-size:11px;min-height:39px;padding:8px 10px}.side .nav .nav-ico{width:16px;flex-basis:16px}.side .nav .nav-ico svg{width:15px;height:15px}.zc-main-nav,.side nav.vendor-only{border-top:1px solid #ffffff20;display:flex;flex-wrap:wrap;gap:6px;padding-top:8px}.side-bottom,.side-group{display:none!important}.top{min-height:0;padding:14px 17px}.content{padding:20px 14px 35px}.dash-main-grid,.dash-bottom-grid{grid-template-columns:1fr}.dash-followups{min-height:320px}.dash-stat-grid{gap:10px}.dash-stat{padding:14px}.dash-stat-icon{margin-bottom:9px;width:38px;height:38px}.dash-ad-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.dash-panel{padding:19px}.modal-body{padding:15px}}
@media(max-width:450px){.dash-stat-value{font-size:18px}.dash-ad-metrics>div{min-height:88px;padding:12px 7px}.dash-ad-metrics b{font-size:15px}.dash-ad-metrics small{font-size:10px}.dash-ad-spend b{font-size:13px}.dash-intro .buttons{width:100%}.dash-intro .buttons .btn{flex:1;justify-content:center}.top-right .user{max-width:100%;font-size:10px;overflow-wrap:anywhere}}
