:root{--ink:#16132b;--muted:#716e82;--line:#e8e6f0;--canvas:#f6f7fb;--surface:#fff;--primary:#5b3df5;--primary-dark:#4327d6;--shadow:0 14px 40px rgba(35,28,79,.08)}

/* Sidebar scroll - thin and themed, appears only when needed */
.sidebar-nav::-webkit-scrollbar{width:5px}
.sidebar-nav::-webkit-scrollbar-track{background:transparent}
.sidebar-nav::-webkit-scrollbar-thumb{background:rgba(255,255,255,.14);border-radius:6px}
.sidebar-nav::-webkit-scrollbar-thumb:hover{background:rgba(255,255,255,.28)}
.sidebar-nav{scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.14) transparent;overflow-y:auto}

/* User dropdown in top-right header */
.user-menu{position:relative;display:inline-block}
.user-toggle{display:flex;align-items:center;gap:.6rem;background:transparent;border:0;color:var(--ink);padding:.3rem .5rem;border-radius:10px;cursor:pointer}
.user-toggle:hover{background:#f1f0f6}
.user-toggle .user-avatar{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#ede9ff;color:var(--primary);font-size:.72rem;font-weight:800}
.user-toggle .user-info{flex-direction:column;align-items:flex-start;line-height:1.15;text-align:left}
.user-toggle .user-info strong{font-size:.84rem;font-weight:700}
.user-toggle .user-info span{font-size:.72rem;color:var(--muted)}
.chevron-down{color:var(--muted);font-size:1.1rem;line-height:1}
.user-dropdown{position:absolute;right:0;top:calc(100% + .4rem);min-width:210px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);padding:.5rem;z-index:1040}
.user-dropdown-header{display:flex;flex-direction:column;padding:.5rem .75rem .65rem;border-bottom:1px solid var(--line);margin-bottom:.25rem}
.user-dropdown-header strong{font-size:.85rem}
.user-dropdown-header span{font-size:.72rem;color:var(--muted);word-break:break-all}
.dropdown-item{display:block;width:100%;text-align:left;background:transparent;border:0;padding:.55rem .75rem;border-radius:8px;color:var(--ink);font-size:.85rem;font-weight:600}
.dropdown-item:hover{background:#f6f7fb}

@media(max-width:575.98px){
    .user-toggle .chevron-down{display:none}
}

/* Auto-hidden alerts must collapse fully - Bootstrap's d-flex/display utilities use !important which beats inline display:none */
.alert-hide{display:none!important}

/* Tighter top spacing on all screens */
.app-content{padding-top:.9rem}
.page-heading{margin-top:0}
.page-heading h1{margin-top:0}

/* Onboarding page - full width */
.onboarding-page{max-width:none}

/* Module selection cards */
.module-check{position:absolute;top:.9rem;right:.9rem;font-size:.8rem;font-weight:700;color:#fff;border:2px solid var(--primary);border-radius:50%;width:28px;height:28px;display:grid;place-items:center;background:var(--primary);z-index:1}
.module-card .module-check{background:transparent;border-color:var(--line);color:transparent}
.module-card.selected .module-check{background:var(--primary);border-color:var(--primary);color:#fff}
.onboarding-actions .btn.btn-primary:disabled{background:#c4b8f7;border-color:#c4b8f7;color:#fff}
.alert.alert-danger{font-size:.85rem;padding:.75rem 1rem}

/* Stepper buttons: only current/completed clickable */
.step-item{justify-content:center}
.step-item:first-child{justify-content:flex-start}
.step-item:last-child{justify-content:flex-end}
.step-item:disabled{cursor:not-allowed;opacity:.5}
.step-item span{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#eef;border:1px solid #d9d4f7;color:var(--muted);font-size:.85rem;font-weight:700}
.step-item.active span{background:var(--primary);border-color:var(--primary);color:#fff}
.step-item.done span{background:#e8f5e9;border-color:#b8e0b8;color:#2e7d32}
.step-item small{position:relative;z-index:1;background:var(--canvas);padding-right:.4rem;color:var(--muted);font-size:.8rem;white-space:nowrap}
.step-item.active small{color:var(--primary);font-weight:700}
.step-item.done small{color:#2e7d32}
.invite-actions{display:flex;align-items:center;gap:.45rem;flex-wrap:wrap;justify-content:flex-end}
.invite-row small{display:block}
@media(max-width:575.98px){.invite-row{align-items:flex-start;flex-direction:column}.invite-actions{justify-content:flex-start}}
.loading-fullscreen{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1rem;background:var(--canvas);color:var(--muted)}
.loading-fullscreen .spinner{width:40px;height:40px;border:4px solid var(--line);border-top-color:var(--primary);border-radius:50%;animation:spin 1s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}

/* Profile edit modal */
.profile-modal-backdrop{position:fixed;inset:0;background:rgba(20,16,40,.45);z-index:1040}
.profile-modal{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);z-index:1041;width:min(480px,calc(100vw - 2rem));max-height:calc(100vh - 2rem);overflow-y:auto;background:var(--card-bg,#fff);border-radius:12px;box-shadow:0 20px 60px rgba(20,16,40,.25);padding:1.5rem}
.profile-modal-close{background:none;border:none;font-size:1.5rem;line-height:1;color:var(--muted);cursor:pointer;padding:0 .25rem}
.profile-modal-close:hover{color:var(--text)}

/* Header blur creates a containing block that breaks position:fixed children (profile modal) */
.app-header{backdrop-filter:none}

/* Stepper: single continuous connector line behind steps */
.stepper{position:relative;display:flex;justify-content:space-between}
.stepper:before{content:"";position:absolute;left:14px;right:14px;top:50%;transform:translateY(-50%);height:1px;background:#dedbe7}
.step-item{gap:0}
.step-item:after{display:none}
.step-item small{margin-left:0;padding-left:.45rem}
.stepper{column-gap:.75rem}
@media(max-width:767.98px){.stepper{flex-wrap:wrap;row-gap:1rem}.stepper:before{display:none}}

/* Stepper: mask connector line behind whole item (circle+label+gaps) */
.step-item{background:var(--canvas);position:relative;z-index:1}
.stepper:before{z-index:0}

/* Leave 4px transparent gap so the active circle's shadow ring is not clipped */
.step-item{gap:.25rem}
.step-item small{padding-left:.25rem}

/* Legal pages (privacy policy / terms of service) */
.legal-page{padding:clamp(4rem,8vw,6rem) 1.5rem}
.legal-inner{text-align:center;max-width:840px;margin:0 auto}
.legal-inner h1{font-size:clamp(2rem,4.5vw,3rem);letter-spacing:-.03em;margin:.3rem 0 .4rem}
.legal-updated{color:#6b6880;font-size:.95rem;margin-bottom:2rem}
.legal-body h2{font-size:1.3rem;letter-spacing:-.02em;margin:1.9rem 0 .55rem}
.legal-body h3{font-size:1.05rem;margin:1.1rem 0 .35rem}
.legal-body p,.legal-body li{color:#4a4757;line-height:1.72}
.legal-body ul{list-style-position:inside;padding-left:0;margin:.4rem 0 .8rem}
.legal-body li{margin-bottom:.3rem}
.legal-body a{color:var(--primary,#4f46e5)}

/* Audit log details: line-per-field rendering */
.audit-details{white-space:pre-line;font-size:.78rem;line-height:1.55}

/* Metric grid: 4 columns variant (used by super admin users) */
.metric-grid.cols-4{grid-template-columns:repeat(4,1fr)}
@media(max-width:991.98px){.metric-grid.cols-4{grid-template-columns:repeat(2,1fr)}}
@media(max-width:575.98px){.metric-grid.cols-4{grid-template-columns:1fr}}

/* Metric icon color variants (dashboard cards) */
.metric-icon.orange{background:#fff0e0;color:#c96a10}
.metric-icon.teal{background:#def5f3;color:#17817b}
.metric-icon.red{background:#fde6ea;color:#c2304b}
.metric-icon.gray{background:#ececf1;color:#5b5970}

/* Dashboard v2 */
.dash-hero{background:linear-gradient(120deg,#312e81 0%,#5b4bd4 55%,#7c3aed 100%);border-radius:16px;padding:26px 28px;color:#fff;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:16px}
.dash-hero h2{font-size:1.5rem;font-weight:700;margin:0 0 4px}
.dash-hero p{opacity:.85;margin:0;font-size:.9rem}
.qa-actions{display:flex;gap:10px;flex-wrap:wrap}
.qa-btn{background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.25);color:#fff;padding:9px 16px;border-radius:10px;font-weight:600;font-size:.85rem;text-decoration:none;display:inline-flex;align-items:center;gap:6px;transition:all .2s}
.qa-btn:hover{background:rgba(255,255,255,.28);color:#fff}
.qa-btn.primary{background:#fff;color:#312e81}
.qa-btn.primary:hover{background:#f1f0ff}
.stat-card{background:#fff;border:1px solid #ece9f7;border-radius:14px;padding:16px 18px;display:flex;align-items:center;gap:14px}
.stat-icon{width:42px;height:42px;border-radius:11px;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.stat-icon.indigo{background:#e0e7ff;color:#4f46e5}
.stat-icon.green{background:#dcfce7;color:#16a34a}
.stat-icon.blue{background:#dbeafe;color:#2563eb}
.stat-num{font-size:1.5rem;font-weight:800;line-height:1.1}
.stat-label{font-size:.8rem;color:#6b7280}
.spark{width:90px;height:28px;flex-shrink:0}
.panel-mini{background:#fff;border:1px solid #ece9f7;border-radius:14px;padding:16px 18px;display:flex;flex-direction:column}
.panel-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.panel-head h3{font-size:.92rem;font-weight:700;margin:0;display:flex;align-items:center;gap:7px}
.panel-link{font-size:.78rem;color:#6d28d9;text-decoration:none;font-weight:600}
.proj-row{display:flex;align-items:center;gap:10px;padding:9px 0;border-bottom:1px solid #f4f2fb}
.proj-row:last-child{border-bottom:none}
.proj-icon{width:34px;height:34px;border-radius:9px;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:.8rem;flex-shrink:0}
.proj-icon.i1{background:#ede9fe;color:#7c3aed}.proj-icon.i2{background:#dbeafe;color:#2563eb}.proj-icon.i3{background:#dcfce7;color:#16a34a}.proj-icon.i4{background:#ffedd5;color:#ea580c}.proj-icon.i5{background:#fce7f3;color:#db2777}
.prog{height:5px;background:#f1f0f8;border-radius:4px;overflow:hidden;margin-top:4px}
.prog-fill{height:100%;border-radius:4px}
.prog-fill.b1{background:#7c3aed}.prog-fill.b2{background:#2563eb}.prog-fill.b3{background:#16a34a}.prog-fill.b4{background:#ea580c}.prog-fill.b5{background:#db2777}
.task-tabs{display:flex;gap:6px;background:#f4f2fb;border-radius:8px;padding:3px}
.task-tab{flex:1;border:none;background:transparent;padding:5px 8px;font-size:.75rem;font-weight:600;border-radius:6px;color:#6b7280;cursor:pointer}
.task-tab.active{background:#fff;color:#312e81;box-shadow:0 1px 3px rgba(0,0,0,.08)}
.task-row{display:flex;align-items:center;gap:9px;padding:8px 0;border-bottom:1px solid #f4f2fb}
.task-row:last-child{border-bottom:none}
.task-check{width:16px;height:16px;border:1.5px solid #d1d5db;border-radius:50%;flex-shrink:0}
.task-due{color:#9ca3af;white-space:nowrap;font-size:.72rem}
.avatar-xs{width:24px;height:24px;border-radius:50%;background:#e0e7ff;color:#4f46e5;font-size:.62rem;font-weight:700;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.avatar-stack{display:flex}
.avatar-sm{width:32px;height:32px;border-radius:50%;background:#e0e7ff;color:#4f46e5;font-size:.7rem;font-weight:700;display:flex;align-items:center;justify-content:center;border:2px solid #fff;margin-left:-8px}
.avatar-sm:first-child{margin-left:0}
.avatar-sm.more{background:#f4f2fb;color:#6b7280}
.mini-cal{background:#f9f8ff;border-radius:10px;padding:10px}
.mini-cal-head{margin-bottom:8px}
.mini-cal-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:2px;text-align:center}
.mini-cal-dow{font-size:.62rem;font-weight:700;color:#9ca3af;padding:3px 0}
.mini-cal-day{font-size:.72rem;padding:4px 0;border-radius:6px;color:#374151}
.mini-cal-day.muted{color:#d1d5db}
.mini-cal-day.today{background:#6d28d9;color:#fff;font-weight:700}
.mini-cal-day.has-event:not(.today){background:#ede9fe;color:#5b21b6;font-weight:600}
.event-row{display:flex;align-items:center;gap:9px;padding:6px 0}
.event-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0}
.event-dot.c1{background:#7c3aed}.event-dot.c2{background:#2563eb}.event-dot.c3{background:#16a34a}.event-dot.c4{background:#ea580c}.event-dot.c5{background:#9ca3af}
.promo-card{background:linear-gradient(135deg,#1e1b4b 0%,#312e81 60%,#4c1d95 100%);border-radius:14px;padding:18px;color:#fff;text-decoration:none;position:relative;overflow:hidden}
.promo-card:hover{color:#fff;text-decoration:none}
.promo-icon{font-size:1.4rem;margin-bottom:8px;display:block}
.promo-card h4{font-size:1.15rem;font-weight:800;margin-bottom:6px}
.promo-card p{font-size:.78rem;opacity:.85;margin-bottom:12px}
.promo-cta{background:#fff;color:#312e81;padding:7px 14px;border-radius:8px;font-size:.8rem;font-weight:700;display:inline-block}
.bg-success-subtle{background:#dcfce7}.bg-primary-subtle{background:#dbeafe}.bg-warning-subtle{background:#fef3c7}.bg-danger-subtle{background:#fee2e2}.bg-secondary-subtle{background:#f1f5f9}.bg-info-subtle{background:#cffafe}
.min-w-0{min-width:0}

/* Dashboard v2 refinement */
.dash-hero{min-height:190px;background:linear-gradient(115deg,rgba(30,27,75,.95) 0%,rgba(49,46,129,.85) 45%,rgba(91,75,212,.55) 100%),linear-gradient(0deg,#1e1b4b 0%,#312e81 40%,#8b7bd8 75%,#f5a96b 100%)}
.stat-card{flex-direction:column;align-items:flex-start;gap:6px}
.trend{font-size:.72rem;font-weight:700}
.trend.up{color:#16a34a}
.trend.warn{color:#f59e0b}

/* Dashboard v2 — mockup polish */
.dash-hero{background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 200' preserveAspectRatio='xMidYMax slice'%3E%3Cg fill='%23150f3d'%3E%3Crect x='0' y='128' width='52' height='72'/%3E%3Crect x='60' y='95' width='46' height='105'/%3E%3Crect x='114' y='138' width='64' height='62'/%3E%3Crect x='186' y='72' width='44' height='128'/%3E%3Crect x='238' y='112' width='56' height='88'/%3E%3Crect x='302' y='55' width='48' height='145'/%3E%3Crect x='358' y='102' width='66' height='98'/%3E%3Crect x='432' y='82' width='44' height='118'/%3E%3Crect x='484' y='128' width='58' height='72'/%3E%3Crect x='550' y='60' width='52' height='140'/%3E%3Crect x='610' y='96' width='66' height='104'/%3E%3Crect x='684' y='118' width='54' height='82'/%3E%3Crect x='746' y='88' width='54' height='112'/%3E%3C/g%3E%3C/svg%3E") no-repeat bottom/100% 75%,linear-gradient(180deg,#f6a860 0%,#d76ba4 28%,#8a5fd8 58%,#2d2770 100%)}
.proj-row{gap:12px;padding:11px 0}
.proj-icon{width:36px;height:36px;border-radius:10px}
.proj-meta{font-size:.68rem;color:#9ca3af}
.prog{height:6px;margin-top:5px}
.proj-pct{font-size:.78rem;font-weight:700;color:#6b7280}
.proj-badge{font-size:.62rem;font-weight:700;padding:4px 8px;border-radius:6px}
.proj-kebab{color:#c4c9d4;font-weight:700;cursor:pointer}
.prio-pill{font-size:.62rem;font-weight:700;padding:3px 9px;border-radius:20px;white-space:nowrap}
.head-ico{width:16px;height:16px;border-radius:5px;display:inline-block}
.head-ico.shield{background:linear-gradient(135deg,#22c55e,#16a34a)}
.head-ico.people{background:linear-gradient(135deg,#818cf8,#6366f1)}
.head-ico.chart{background:linear-gradient(135deg,#a78bfa,#7c3aed)}
.hr-check{width:46px;height:46px;border-radius:50%;background:linear-gradient(135deg,#34d399,#16a34a);display:flex;align-items:center;justify-content:center}
.avatar-sm.avc0,.avatar-xs.avc0{background:#c7d2fe;color:#4338ca}
.avatar-sm.avc1,.avatar-xs.avc1{background:#fbcfe8;color:#be185d}
.avatar-sm.avc2,.avatar-xs.avc2{background:#bbf7d0;color:#15803d}
.avatar-sm.avc3,.avatar-xs.avc3{background:#fed7aa;color:#c2410c}
.avatar-sm.avc4,.avatar-xs.avc4{background:#a5f3fc;color:#0e7490}
.avatar-sm{width:36px;height:36px;font-size:.74rem}
.promo-card{background:linear-gradient(140deg,#241d5e 0%,#3b2fa0 55%,#6d28d9 100%)}
.promo-plane{position:absolute;top:14px;right:14px;opacity:.95;filter:drop-shadow(0 4px 8px rgba(0,0,0,.3))}
.task-check{border-width:2px}
.mini-cal-day:hover{background:#ede9fe}

/* My Projects — mockup row layout */
.proj-name{width:96px;flex-shrink:0}
.proj-bar-wrap{flex:1;display:flex;align-items:center;gap:8px;min-width:0}
.proj-bar-wrap .prog{flex:1;max-width:110px;margin-top:0}
.proj-icon svg{width:15px;height:15px}

/* progress bar stretch + bold status pills */
.proj-bar-wrap .prog{max-width:none}
.prog{height:7px;background:#eef0f6}
.proj-badge{border-radius:20px;padding:5px 11px;font-size:.65rem}
.proj-badge.bg-success-subtle{background:#c8f5d4!important;color:#15803d!important}
.proj-badge.bg-primary-subtle{background:#bfdbfe!important;color:#1d4ed8!important}
.proj-badge.bg-warning-subtle{background:#fde68a!important;color:#b45309!important}
.proj-badge.bg-secondary-subtle{background:#e5e7eb!important;color:#4b5563!important}
.prio-pill.bg-danger-subtle{background:#fecaca!important;color:#b91c1c!important}
.prio-pill.bg-warning-subtle{background:#fde68a!important;color:#b45309!important}
.prio-pill.bg-success-subtle{background:#c8f5d4!important;color:#15803d!important}
.prio-pill.bg-secondary-subtle{background:#e5e7eb!important;color:#4b5563!important}

/* vibrant status pills */
.proj-badge{padding:6px 12px;font-size:.66rem;letter-spacing:.2px;border:none}
.proj-badge.bg-success-subtle{background:linear-gradient(135deg,#22c55e,#16a34a)!important;color:#fff!important;box-shadow:0 2px 6px rgba(34,197,94,.35)}
.proj-badge.bg-primary-subtle{background:linear-gradient(135deg,#60a5fa,#3b82f6)!important;color:#fff!important;box-shadow:0 2px 6px rgba(59,130,246,.35)}
.proj-badge.bg-warning-subtle{background:linear-gradient(135deg,#fbbf24,#f59e0b)!important;color:#fff!important;box-shadow:0 2px 6px rgba(245,158,11,.35)}
.proj-badge.bg-secondary-subtle{background:linear-gradient(135deg,#9ca3af,#6b7280)!important;color:#fff!important;box-shadow:0 2px 6px rgba(107,114,128,.3)}
.prio-pill.bg-danger-subtle{background:linear-gradient(135deg,#f87171,#ef4444)!important;color:#fff!important}
.prio-pill.bg-warning-subtle{background:linear-gradient(135deg,#fbbf24,#f59e0b)!important;color:#fff!important}
.prio-pill.bg-success-subtle{background:linear-gradient(135deg,#34d399,#10b981)!important;color:#fff!important}
.prio-pill.bg-secondary-subtle{background:linear-gradient(135deg,#9ca3af,#6b7280)!important;color:#fff!important}

/* events — mockup list */
.cal-nav{border:none;background:transparent;color:#6d28d9;font-weight:800;font-size:.9rem;padding:0 6px;cursor:pointer;border-radius:5px}
.cal-nav:hover{background:#ede9fe}
.event-row{gap:10px;align-items:baseline}
.event-day{font-size:.72rem;font-weight:700;color:#4f46e5;width:76px;flex-shrink:0}
.event-time{font-size:.72rem;color:#9ca3af;white-space:nowrap;width:88px;flex-shrink:0}
.event-title{font-size:.78rem;font-weight:600;color:#374151;min-width:0}

/* events timeline — mockup exact */
.event-row{position:relative;padding:7px 0 7px 0}
.event-dot{width:9px;height:9px;position:relative;z-index:1;margin-top:5px}
.event-row::before{content:'';position:absolute;left:4px;top:0;bottom:0;width:1.5px;background:#e5e7f0}
.event-row:first-child::before{top:12px}
.event-row:last-child::before{bottom:auto;height:14px}
.event-day{width:70px}
.event-time{width:80px}
.event-title{font-weight:700}

/* events — mockup list only */
.event-body{display:flex;align-items:baseline;gap:14px;flex:1;min-width:0}
.event-dot.c5{background:#f59e0b}
.event-dot.c1{background:#6d28d9}
.event-row{padding:8px 0}
.event-time{width:86px}
.event-day{color:#4f46e5}

/* hero — real city skyline photo */
.dash-hero{background:url("images/hero-city.jpg") center/cover no-repeat;position:relative}
.dash-hero::before{content:'';position:absolute;inset:0;border-radius:16px;background:linear-gradient(90deg,rgba(255,255,255,.75) 0%,rgba(255,255,255,.45) 45%,rgba(255,255,255,0) 100%)}
.dash-hero>*{position:relative;z-index:1}
.dash-hero h2,.dash-hero p{color:#1e1b4b;text-shadow:none}
.dash-hero p{color:#4b5563}
.qa-btn{background:#fff;border:1px solid #e5e7eb;color:#312e81}
.qa-btn:hover{background:#f5f3ff;color:#4c1d95}
.qa-btn.primary{background:#7c3aed;color:#fff;border-color:#7c3aed}
.qa-btn.primary:hover{background:#6d28d9;color:#fff}

/* task row — fixed columns so pills align */
.prio-pill{width:72px;text-align:center;flex-shrink:0}
.task-due{width:66px;text-align:right;flex-shrink:0}
.task-row .avatar-xs{width:24px}
.task-row .proj-kebab{width:10px;text-align:center}

/* sidebar footer — mockup */
.help-card{background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.1);border-radius:14px;padding:14px;display:flex;flex-direction:column;gap:2px;margin-bottom:10px}
.help-card .help-spark{color:#fbbf24;font-size:1.05rem;margin-bottom:4px}
.help-card strong{color:#fff;font-size:.85rem}
.help-card .help-sub{color:rgba(255,255,255,.55);font-size:.72rem;margin-bottom:10px}
.help-cta{background:#7c3aed;color:#fff;text-decoration:none;text-align:center;padding:8px 12px;border-radius:9px;font-size:.78rem;font-weight:700}
.help-cta:hover{background:#6d28d9;color:#fff}
.side-profile{display:flex;align-items:center;gap:10px;padding:10px 4px 4px;text-decoration:none;border-top:1px solid rgba(255,255,255,.08)}
.side-avatar{width:36px;height:36px;border-radius:50%;background:linear-gradient(135deg,#818cf8,#7c3aed);color:#fff;display:flex;align-items:center;justify-content:center;font-size:.74rem;font-weight:800;flex-shrink:0}
.side-user{display:flex;flex-direction:column;min-width:0;flex:1}
.side-user strong{color:#fff;font-size:.82rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.side-user span{color:rgba(255,255,255,.5);font-size:.68rem}
.side-chevron{color:rgba(255,255,255,.6);font-weight:700}

/* user menu inside dark sidebar */
.side-user-wrap .user-menu{position:relative;width:100%}
.side-user-wrap .user-toggle{width:100%;padding:8px 6px;border-radius:10px;border-top:1px solid rgba(255,255,255,.08)}
.side-user-wrap .user-toggle:hover{background:rgba(255,255,255,.08)}
.side-user-wrap .user-toggle .user-avatar{background:linear-gradient(135deg,#818cf8,#7c3aed);color:#fff}
.side-user-wrap .user-toggle .user-info strong{color:#fff}
.side-user-wrap .user-toggle .user-info span{color:rgba(255,255,255,.55)}
.side-user-wrap .chevron-down{color:rgba(255,255,255,.6)}
.side-user-wrap .user-dropdown{top:auto;bottom:calc(100% + .4rem);left:0;right:0}

/* sidebar user dropdown — visible items */
.sidebar{overflow:visible!important}
.side-user-wrap{position:relative;z-index:1050}
.side-user-wrap .user-dropdown{color:#1f2937;min-width:200px}
.side-user-wrap .user-dropdown-header strong{color:#111827}
.side-user-wrap .user-dropdown-header span{color:#6b7280}
.side-user-wrap .dropdown-item{color:#374151;font-size:.82rem;padding:.55rem .75rem;border-radius:8px;width:100%;text-align:left;display:block}
.side-user-wrap .dropdown-item:hover{background:#f3f0ff;color:#4c1d95}

/* app header — mockup search + provider icons */
.header-search{flex:1;max-width:520px;position:relative}
.search-box{display:flex;align-items:center;gap:8px;background:#f4f2fa;border:1px solid transparent;border-radius:12px;padding:9px 14px}
.search-box:focus-within{background:#fff;border-color:#c4b5fd;box-shadow:0 0 0 3px rgba(124,58,237,.12)}
.search-box input{border:none;background:transparent;outline:none;flex:1;font-size:.85rem;color:#374151}
.search-results{position:absolute;top:calc(100% + 6px);left:0;right:0;background:#fff;border:1px solid #ece9f7;border-radius:12px;box-shadow:0 8px 24px rgba(0,0,0,.1);z-index:1050;overflow:hidden}
.search-hit{display:flex;align-items:center;gap:10px;padding:10px 14px;text-decoration:none;color:#374151;font-size:.84rem;font-weight:600}
.search-hit:hover{background:#f5f3ff;color:#4c1d95}
.search-tag{font-size:.6rem;font-weight:800;padding:3px 8px;border-radius:10px;background:#ede9fe;color:#5b21b6;letter-spacing:.3px;text-transform:uppercase}
.header-actions{display:flex;align-items:center;gap:6px}
.hdr-icon{position:relative;width:38px;height:38px;border-radius:10px;display:flex;align-items:center;justify-content:center;color:#4b5563;background:transparent;border:none;cursor:pointer;text-decoration:none;transition:all .15s}
.hdr-icon:hover{background:#f4f2fa;color:#4c1d95}
.hdr-badge{position:absolute;top:2px;right:2px;background:#ef4444;color:#fff;font-size:.58rem;font-weight:800;min-width:15px;height:15px;border-radius:8px;display:flex;align-items:center;justify-content:center;padding:0 3px}
.hdr-new{position:relative}
.hdr-new-btn{background:#7c3aed;color:#fff;border:none;border-radius:10px;padding:9px 18px;font-weight:700;font-size:.84rem;cursor:pointer}
.hdr-new-btn:hover{background:#6d28d9}
.hdr-new-menu{position:absolute;top:calc(100% + 6px);right:0;background:#fff;border:1px solid #ece9f7;border-radius:12px;box-shadow:0 8px 24px rgba(0,0,0,.12);min-width:160px;z-index:1050;overflow:hidden;padding:6px}
.hdr-new-menu a{display:block;padding:9px 12px;border-radius:8px;text-decoration:none;color:#374151;font-size:.83rem;font-weight:600}
.hdr-new-menu a:hover{background:#f5f3ff;color:#4c1d95}

/* notifications dropdown */
.hdr-notif{position:relative}
.notif-menu{position:absolute;top:calc(100% + 8px);right:0;width:300px;background:#fff;border:1px solid #ece9f7;border-radius:14px;box-shadow:0 12px 32px rgba(0,0,0,.14);z-index:1050;overflow:hidden}
.notif-head{padding:12px 16px;font-weight:700;font-size:.82rem;border-bottom:1px solid #f4f2fb;color:#111827}
.notif-empty{padding:20px 16px;text-align:center;color:#6b7280;font-size:.8rem}
.notif-item{display:flex;gap:10px;padding:11px 16px;text-decoration:none;border-bottom:1px solid #f8f7fc;align-items:flex-start}
.notif-item:last-child{border-bottom:none}
.notif-item:hover{background:#f5f3ff}
.notif-item strong{display:block;font-size:.8rem;color:#111827}
.notif-item span{font-size:.72rem;color:#6b7280}
.notif-dot{width:8px;height:8px;border-radius:50%;margin-top:5px;flex-shrink:0}
.notif-dot.red{background:#ef4444}.notif-dot.amber{background:#f59e0b}.notif-dot.blue{background:#3b82f6}.notif-dot.purple{background:#8b5cf6}.notif-dot.gray{background:#9ca3af}
/* profile modal head + close fix */
.profile-modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px;padding-bottom:12px;border-bottom:1px solid #f1f0f6}
.profile-modal-head h2{font-size:1.05rem;font-weight:700;color:#111827;margin:0}
.profile-modal-close{width:30px;height:30px;border:none;border-radius:8px;background:#f4f2fa;color:#374151;font-size:1.1rem;line-height:1;cursor:pointer}
.profile-modal-close:hover{background:#e5e7eb;color:#111827}
/* dropdown avatar */
.user-dropdown-header{flex-direction:row;align-items:center;gap:10px}
.user-dropdown-header .user-avatar{width:36px;height:36px;border-radius:50%;background:linear-gradient(135deg,#818cf8,#7c3aed);color:#fff;display:flex;align-items:center;justify-content:center;font-size:.74rem;font-weight:800;flex-shrink:0}
.user-dropdown-header>div{display:flex;flex-direction:column;min-width:0}

/* dropdown avatar — visible initials */
.user-dropdown-header .user-avatar{color:#fff!important;text-shadow:0 1px 2px rgba(0,0,0,.2)}
.side-user-wrap .user-dropdown-header .user-avatar{color:#fff!important}

/* Super admin dashboard — mockup */
.sa-title{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:18px;flex-wrap:wrap;gap:10px}
.sa-title h1{font-size:1.45rem;font-weight:800;color:#111827;margin:0}
.sa-crown{font-size:1.2rem}
.sa-title p{color:#6b7280;font-size:.82rem;margin:2px 0 0}
.sa-range{background:#fff;border:1px solid #ece9f7;border-radius:10px;padding:8px 14px;font-size:.8rem;font-weight:700;color:#4c1d95;cursor:pointer}
.sa-stat{background:#fff;border:1px solid #ece9f7;border-radius:14px;padding:14px 16px;display:flex;gap:12px;align-items:flex-start;height:100%}
.sa-ico{width:38px;height:38px;border-radius:10px;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.si-purple{background:#ede9fe;color:#7c3aed}.si-blue{background:#dbeafe;color:#2563eb}.si-green{background:#dcfce7;color:#16a34a}.si-amber{background:#fef3c7;color:#d97706}.si-red{background:#fee2e2;color:#dc2626}
.sa-num{font-size:1.35rem;font-weight:800;color:#111827;line-height:1.1}
.sa-lbl{font-size:.72rem;color:#6b7280;margin-bottom:4px}
.sa-trend{font-size:.68rem;font-weight:700}
.sa-trend.up{color:#16a34a}.sa-trend.down{color:#dc2626}
.sa-panel{background:#fff;border:1px solid #ece9f7;border-radius:14px;padding:16px 18px}
.sa-panel-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.sa-panel-head h3{font-size:.9rem;font-weight:700;color:#111827;margin:0;display:flex;align-items:center;gap:8px}
.sa-h-ico{width:26px;height:26px;border-radius:7px;display:inline-flex;align-items:center;justify-content:center;font-size:.7rem}
.sa-mini-range{font-size:.72rem;color:#6d28d9;background:#f5f3ff;padding:4px 10px;border-radius:8px;font-weight:600}
.sa-link{font-size:.74rem;color:#6d28d9;text-decoration:none;font-weight:700}
.growth-legend{display:flex;gap:16px;font-size:.7rem;color:#6b7280;margin-bottom:8px}
.growth-legend i{display:inline-block;width:8px;height:8px;border-radius:2px;margin-right:5px}
.growth-chart{width:100%;height:170px}
.growth-months{display:flex;justify-content:space-between;font-size:.62rem;color:#9ca3af;padding:0 12px}
.sa-table{width:100%;font-size:.76rem}
.sa-table th{color:#9ca3af;font-weight:700;font-size:.66rem;text-transform:uppercase;letter-spacing:.4px;padding:6px 8px;border-bottom:1px solid #f1f0f6}
.sa-table td{padding:9px 8px;border-bottom:1px solid #f8f7fc;color:#374151;vertical-align:middle}
.plan-pill{font-size:.62rem;font-weight:800;padding:3px 10px;border-radius:12px}
.pp-pro{background:#ede9fe;color:#6d28d9}.pp-std{background:#dbeafe;color:#1d4ed8}.pp-basic{background:#dcfce7;color:#15803d}.pp-trial{background:#fef3c7;color:#b45309}
.dot-status{display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:6px}
.dot-status.ok{background:#22c55e}.dot-status.warn{background:#f59e0b}.dot-status.off{background:#9ca3af}
.health-donut{position:relative;width:130px;margin:6px auto 12px}
.health-donut svg{width:100%}
.health-num{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center}
.health-num strong{font-size:1.25rem;font-weight:800;color:#111827}
.health-num span{font-size:.62rem;color:#6b7280}
.health-list{list-style:none;padding:0;margin:0 0 10px;font-size:.76rem;color:#374151}
.health-list li{padding:4px 0;display:flex;align-items:center}
.health-ok{background:#dcfce7;color:#15803d;font-size:.74rem;font-weight:700;padding:8px 12px;border-radius:9px;text-align:center}
.act-row{display:flex;gap:10px;padding:8px 0;position:relative}
.act-dot{width:9px;height:9px;border-radius:50%;margin-top:5px;flex-shrink:0}
.act-dot.purple{background:#7c3aed}.act-dot.red{background:#ef4444}.act-dot.green{background:#22c55e}.act-dot.amber{background:#f59e0b}
.act-time{font-size:.68rem;color:#9ca3af;width:62px;flex-shrink:0;padding-top:2px}
.act-body strong{display:block;font-size:.76rem;color:#111827}
.act-body span{font-size:.72rem;color:#6b7280}
.dist-donut{position:relative;width:130px;margin:6px auto 12px}
.dist-donut svg{width:100%}
.dist-legend{list-style:none;padding:0;margin:0;font-size:.76rem;color:#374151}
.dist-legend li{display:flex;align-items:center;gap:8px;padding:4px 0}
.dist-legend b{margin-left:auto}
.sa-pill{display:block;background:#7c3aed;color:#fff;text-decoration:none;text-align:center;padding:9px 14px;border-radius:11px;font-weight:700;font-size:.84rem;margin:0 14px 14px}
.sa-pill:hover{background:#6d28d9;color:#fff}
.sa-status-card{background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.1);border-radius:14px;padding:14px;display:flex;flex-direction:column;gap:4px;margin-bottom:10px}
.sa-status-ico{font-size:1.1rem}
.sa-status-card strong{color:#fff;font-size:.85rem}
.sa-status-sub{color:rgba(255,255,255,.6);font-size:.72rem;display:flex;align-items:center;gap:6px;margin-bottom:8px}
.sa-status-btn{background:#7c3aed;color:#fff;text-decoration:none;text-align:center;padding:8px;border-radius:9px;font-size:.78rem;font-weight:700}
.sa-status-btn:hover{background:#6d28d9;color:#fff}

/* growth chart — mockup layout */
.growth-wrap{display:flex;gap:8px}
.growth-yaxis{display:flex;flex-direction:column;justify-content:space-between;font-size:.62rem;color:#9ca3af;padding:2px 0 22px;text-align:right;min-width:28px}
.growth-plot{flex:1;position:relative}
.growth-plot .growth-chart{width:100%;height:170px}
.growth-tip{position:absolute;background:#312e81;color:#fff;font-size:.66rem;font-weight:700;padding:4px 9px;border-radius:8px;transform:translateX(-50%);white-space:nowrap}
.growth-months{display:flex;justify-content:space-between;font-size:.62rem;color:#9ca3af;padding-left:36px;margin-top:2px}

/* growth chart height for svg labels */
.growth-plot .growth-chart{height:190px}
.growth-months{display:none}

/* compact health panel */
.health-donut{width:104px}
.health-list li{font-size:.68rem;padding:3px 0}
.health-ok{font-size:.64rem;padding:6px 8px}

/* client overview — mockup polish */
.sa-clients th{padding:8px 10px;font-size:.64rem}
.sa-clients td{padding:11px 10px}
.sa-clients tr:hover td{background:#faf9ff}
.co-name{font-weight:700;color:#111827;font-size:.8rem}
.co-users{color:#4b5563;font-weight:600}
.co-status{display:inline-flex;align-items:center;font-size:.76rem;font-weight:600;color:#16a34a}
.co-status.off{color:#6b7280}
.co-date{color:#6b7280;font-size:.76rem}
.co-kebab{color:#9ca3af;text-decoration:none;font-weight:800;font-size:.9rem;padding:2px 6px;border-radius:6px}
.co-kebab:hover{background:#f1f0f6;color:#4c1d95}

/* plan pills — one line + extra colors */
.plan-pill{white-space:nowrap;display:inline-block}
.pp-0{background:#fce7f3;color:#be185d}
.pp-1{background:#cffafe;color:#0e7490}
.pp-2{background:#fef3c7;color:#b45309}
.pp-3{background:#e0e7ff;color:#4338ca}

/* business activity — mockup timeline */
.act-timeline{position:relative}
.act-timeline::before{content:'';position:absolute;left:82px;top:14px;bottom:14px;width:2px;background:#f0eef9}
.act-item{display:flex;gap:12px;padding:9px 0;align-items:flex-start;position:relative}
.act-item .act-time{width:56px}
.act-ico{width:26px;height:26px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:.68rem;flex-shrink:0;position:relative;z-index:1}
.act-ico.purple{background:#ede9fe}
.act-ico.green{background:#dcfce7}
.act-ico.blue{background:#dbeafe}
.act-ico.orange{background:#ffedd5}
.act-ico.red{background:#fee2e2}

/* super admin header — AI circle */
.hdr-ai{background:linear-gradient(135deg,#ede9fe,#ddd6fe);color:#6d28d9;font-size:.68rem;font-weight:800;border-radius:50%;text-decoration:none}
.hdr-ai:hover{background:#7c3aed;color:#fff}

/* header help icon — clean circle */
.hdr-help{border:1.5px solid #d1d5db;border-radius:50%;color:#6b7280;font-size:.82rem;font-weight:800;text-decoration:none}
.hdr-help:hover{border-color:#7c3aed;color:#6d28d9}

/* support tickets — mockup pills */
.ticket-num{color:#6b7280;font-size:.74rem;font-weight:600}
.tick-pill{font-size:.62rem;font-weight:700;padding:4px 10px;border-radius:6px;white-space:nowrap}
.tp-high{background:#fecaca;color:#b91c1c}
.tp-medium{background:#fef3c7;color:#b45309}
.tp-low{background:#e5e7eb;color:#4b5563}
.tp-open{background:#dbeafe;color:#1d4ed8}
.tp-progress{background:#ede9fe;color:#6d28d9}
.tp-resolved{background:#dcfce7;color:#15803d}

/* stat card sparklines — mockup */
.sa-stat-v{flex-direction:column;align-items:flex-start;gap:6px;min-height:110px}
.sa-stat-v .sa-ico{width:34px;height:34px}
.sa-stat-v .sa-lbl{font-size:.74rem;font-weight:600;color:#4b5563}
.sa-spark{width:96px;height:28px;flex-shrink:0}

/* roles page — 2 role cards */
.role-card{display:flex;gap:14px;align-items:flex-start}
.role-card h3{font-size:1rem;font-weight:700;color:#111827;margin-bottom:4px}
.role-ico{width:44px;height:44px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:1.15rem;flex-shrink:0}
.rc-purple{background:#ede9fe}
.rc-blue{background:#dbeafe}
