:root {
    --technie-navy: #142b4a;
    --technie-navy-2: #1d426f;
    --technie-blue: #3578f6;
    --technie-cyan: #24a7c8;
    --technie-mint: #13b981;
    --technie-canvas: #f3f6fb;
    --technie-ink: #15233b;
    --technie-muted: #718096;
    --technie-border: #e5eaf1;
    --bs-primary: #3578f6;
    --bs-primary-rgb: 53, 120, 246;
}

body { background: var(--technie-canvas); color: var(--technie-ink); }
.aside-dark { background: linear-gradient(180deg, var(--technie-navy) 0%, #19375f 58%, #204978 100%); }
.aside-dark .aside-logo { background: rgba(8, 25, 49, .22); border-bottom: 1px solid rgba(255,255,255,.07); }
.aside-dark .menu .menu-item .menu-link { border-radius: .75rem; margin: .125rem .75rem; }
.aside-dark .menu .menu-item .menu-link .menu-title { color: #b8c9dc; }
.aside-dark .menu .menu-item .menu-link .menu-icon i { color: #8fa9c5; }
.aside-dark .menu .menu-item .menu-link.active,
.aside-dark .menu .menu-item .menu-link:hover { background: rgba(73, 139, 255, .17); }
.aside-dark .menu .menu-item .menu-link.active .menu-title,
.aside-dark .menu .menu-item .menu-link:hover .menu-title,
.aside-dark .menu .menu-item .menu-link.active .menu-icon i,
.aside-dark .menu .menu-item .menu-link:hover .menu-icon i { color: #fff; }
.aside-dark .menu .menu-item .menu-link.active { box-shadow: inset 3px 0 0 #58a0ff; }
.header { background: linear-gradient(90deg, #18365d, #214b7d); box-shadow: 0 4px 18px rgba(18,43,75,.12); }
.header .menu-title, .header .topbar-item > i { color: #e7f0fb !important; }
.card { border-color: var(--technie-border); box-shadow: 0 6px 22px rgba(22, 43, 74, .045); }
.btn-primary { background-color: var(--technie-blue); border-color: var(--technie-blue); }
.btn-primary:hover, .btn-primary:focus { background-color: #2468dc; border-color: #2468dc; }
.text-primary { color: var(--technie-blue) !important; }
.bg-light-primary { background-color: #eaf2ff !important; }
.badge-light-primary { background: #eaf2ff; color: #2868d7; }
.table > thead { background: #f7f9fc; }
.table > thead th { color: #738096; font-size: .72rem; letter-spacing: .055em; text-transform: uppercase; }
.technie-hero { background: linear-gradient(120deg, #17365f 0%, #285d9b 75%, #237da1 100%); min-height: 168px; }
.technie-hero::after { content:""; position:absolute; width:280px; height:280px; right:-45px; top:-130px; border:52px solid rgba(255,255,255,.065); border-radius:50%; }
.technie-kpi-icon { width:42px; height:42px; border-radius:12px; display:grid; place-items:center; }
.technie-chart { min-height:220px; display:flex; align-items:flex-end; gap:1.25rem; padding:1rem .25rem 0; }
.technie-chart-column { flex:1; min-width:35px; height:185px; display:flex; flex-direction:column; align-items:center; justify-content:flex-end; gap:.5rem; }
.technie-chart-bar { width:min(44px,75%); min-height:5px; border-radius:8px 8px 3px 3px; background:linear-gradient(180deg,#4d91ff,#2d6cde); }
.technie-dot { width:9px; height:9px; border-radius:50%; display:inline-block; }
.technie-section { scroll-margin-top:90px; }
[data-bs-theme="dark"] body { --technie-canvas:#111827; --technie-ink:#e5edf7; --technie-border:#2a3545; }
[data-bs-theme="dark"] .card { box-shadow:none; }

/* Branded authentication error pages */
.error-shell { min-height:100vh;position:relative;overflow:hidden;display:flex;flex-direction:column;background:radial-gradient(circle at 85% 12%,#dceaff 0,transparent 27%),radial-gradient(circle at 8% 92%,#dff8f1 0,transparent 24%),#f3f6fb; }
.error-shell::before { content:"";position:absolute;inset:0;pointer-events:none;opacity:.28;background-image:linear-gradient(#d5dfec 1px,transparent 1px),linear-gradient(90deg,#d5dfec 1px,transparent 1px);background-size:64px 64px;mask-image:linear-gradient(125deg,#000,transparent 65%); }
.error-topbar { position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:1rem;width:min(1180px,calc(100% - 3rem));margin:0 auto;padding:2rem 0; }
.error-brand { display:flex;align-items:center;gap:.9rem;color:#142b4a;text-decoration:none; }
.error-brand:hover { color:#142b4a; }
.error-brand-mark { width:44px;height:44px;display:grid;place-items:center;border-radius:13px;color:#fff;font-weight:800;background:linear-gradient(135deg,#397df2,#13b981);box-shadow:0 10px 26px rgba(53,120,246,.24); }
.error-security { display:inline-flex;align-items:center;gap:.55rem;padding:.55rem .85rem;border:1px solid #dbe5f0;border-radius:999px;background:rgba(255,255,255,.72);color:#64768a;font-size:.75rem;font-weight:600;backdrop-filter:blur(8px); }
.error-main { position:relative;z-index:1;flex:1;display:grid;place-items:center;width:100%;padding:2rem 1.5rem 5rem; }
.error-card { width:min(100%,960px);display:grid;grid-template-columns:minmax(280px,.82fr) minmax(360px,1.18fr);overflow:hidden;border:1px solid rgba(217,227,239,.9);border-radius:28px;background:rgba(255,255,255,.94);box-shadow:0 30px 90px rgba(19,45,79,.13);backdrop-filter:blur(14px); }
.error-visual { position:relative;overflow:hidden;display:flex;flex-direction:column;justify-content:space-between;min-height:470px;padding:3rem;color:#fff;background:linear-gradient(145deg,#0f2949,#174b72 62%,#167467); }
.error-visual::before,.error-visual::after { content:"";position:absolute;border-radius:50%;border:45px solid rgba(255,255,255,.055); }
.error-visual::before { width:260px;height:260px;right:-100px;top:-95px; }
.error-visual::after { width:190px;height:190px;left:-90px;bottom:-105px; }
.error-code { position:relative;z-index:1;font-size:clamp(5rem,10vw,8.5rem);line-height:.9;letter-spacing:-.085em;font-weight:800;color:#fff; }
.error-code-label { position:relative;z-index:1;color:#a9c5da;font-size:.72rem;font-weight:700;letter-spacing:.16em;text-transform:uppercase; }
.error-signal { position:relative;z-index:1;display:flex;align-items:center;gap:.7rem;color:#cbe0e7;font-size:.78rem; }
.error-signal-dot { width:9px;height:9px;border-radius:50%;background:#37d4a3;box-shadow:0 0 0 6px rgba(55,212,163,.12); }
.error-content { padding:clamp(2.25rem,5vw,4.75rem);align-self:center; }
.error-icon { width:58px;height:58px;display:grid;place-items:center;margin-bottom:1.6rem;border-radius:17px;background:#eaf2ff;color:#3578f6; }
.error-title { color:#14233b;font-size:clamp(2rem,4vw,3rem);line-height:1.12;letter-spacing:-.045em; }
.error-copy { max-width:520px;color:#6f7f93;font-size:1rem;line-height:1.75; }
.error-actions { display:flex;flex-wrap:wrap;gap:.75rem;margin-top:2rem; }
.error-actions .btn { min-height:46px;border-radius:11px;display:inline-flex;align-items:center;justify-content:center; }
.error-help { display:flex;gap:.75rem;align-items:flex-start;margin-top:2rem;padding:1rem 1.1rem;border:1px solid #e4eaf1;border-radius:13px;background:#f8fafc;color:#6f7f93; }
.error-footer { position:relative;z-index:1;padding:0 1.5rem 2rem;text-align:center;color:#8290a2;font-size:.75rem; }
[data-error-tone="warning"] .error-icon { background:#fff6df;color:#d98a05; }
[data-error-tone="danger"] .error-icon { background:#fff0f0;color:#e24d4d; }
[data-error-tone="muted"] .error-icon { background:#eef1f5;color:#657386; }
[data-bs-theme="dark"] .error-shell { background:radial-gradient(circle at 85% 12%,#162c49 0,transparent 30%),#0f1724; }
[data-bs-theme="dark"] .error-card { background:rgba(23,32,47,.96);border-color:#2a3749;box-shadow:none; }
[data-bs-theme="dark"] .error-title,[data-bs-theme="dark"] .error-brand { color:#e6edf6; }
[data-bs-theme="dark"] .error-brand:hover { color:#fff; }
[data-bs-theme="dark"] .error-security,[data-bs-theme="dark"] .error-help { color:#a5b4c7;background:#182434;border-color:#2b394c; }

@media (max-width: 767.98px) {
    .error-card { grid-template-columns:1fr; }
    .error-visual { min-height:190px;padding:2rem; }
    .error-code { font-size:5.5rem; }
    .error-content { padding:2.25rem 1.5rem; }
    .error-security { display:none; }
    .error-topbar { width:min(100% - 2rem,1180px);padding:1.25rem 0; }
}

@media (max-width: 767.98px) {
    .technie-hero { min-height: 210px; }
    .technie-chart { overflow-x:auto; }
}
