/* =================================================================
   Urban Clap Admin
   Palette (colorhunt.co/palette/f9f7f7dbe2ef3f72af112d4e):
     navy #112D4E · blue #3F72AF · light blue #DBE2EF · off-white #F9F7F7
   Font: Poppins 400/500/600/700 (same family as the app), self-hosted
   ================================================================= */

/* ---------- Fonts (assets/fonts — no third-party requests) ----------
   Split by script so a page only downloads what it renders:
   latin → English, latin-ext → ₹ and accents, devanagari → Hindi. */
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/poppins-latin-400.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/poppins-latin-500.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/poppins-latin-600.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/poppins-latin-700.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/poppins-latin-ext-400.woff2) format('woff2'); unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/poppins-latin-ext-500.woff2) format('woff2'); unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/poppins-latin-ext-600.woff2) format('woff2'); unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/poppins-latin-ext-700.woff2) format('woff2'); unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/poppins-devanagari-400.woff2) format('woff2'); unicode-range: U+0900-097F,U+1CD0-1CF9,U+200C-200D,U+20A8,U+20B9,U+20F0,U+25CC,U+A830-A839,U+A8E0-A8FF,U+11B00-11B09; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/poppins-devanagari-500.woff2) format('woff2'); unicode-range: U+0900-097F,U+1CD0-1CF9,U+200C-200D,U+20A8,U+20B9,U+20F0,U+25CC,U+A830-A839,U+A8E0-A8FF,U+11B00-11B09; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/poppins-devanagari-600.woff2) format('woff2'); unicode-range: U+0900-097F,U+1CD0-1CF9,U+200C-200D,U+20A8,U+20B9,U+20F0,U+25CC,U+A830-A839,U+A8E0-A8FF,U+11B00-11B09; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/poppins-devanagari-700.woff2) format('woff2'); unicode-range: U+0900-097F,U+1CD0-1CF9,U+200C-200D,U+20A8,U+20B9,U+20F0,U+25CC,U+A830-A839,U+A8E0-A8FF,U+11B00-11B09; }
@font-face { font-family: 'Material Icons Round'; font-style: normal; font-weight: 400; font-display: block; src: url(../fonts/material-icons-round.woff2) format('woff2'); }

:root {
    /* Brand (colorhunt palette) */
    --navy: #112D4E;
    --navy-2: #1A3F6B;          /* lighter navy for hover / gradients */
    --primary: #3F72AF;
    --primary-hover: #35619A;
    --primary-2: var(--navy);   /* kept for older markup */
    --tint: #DBE2EF;
    --tint-2: #EEF2F8;

    /* Gradients are kept only where an animation depends on them — always navy → blue */
    --grad: linear-gradient(135deg, var(--navy) 0%, #24528A 100%);
    --grad-hot: linear-gradient(135deg, #C93B3B 0%, #A32F2F 100%);
    --grad-pink: var(--grad);
    --grad-green: linear-gradient(135deg, #1E8E5A 0%, #17754A 100%);
    --grad-blue: linear-gradient(135deg, #3F72AF 0%, #2B5488 100%);
    --grad-amber: linear-gradient(135deg, #C98A1B 0%, #A8710F 100%);

    /* Neutrals */
    --bg: #F9F7F7;
    --surface: #FFFFFF;
    --surface-2: #FAFBFC;
    --text: #172033;
    --muted: #5D6B7E;
    --hint: #8B98A9;
    --border: #E4E9F0;
    --border-strong: #CBD5E1;

    /* Status */
    --success: #1E8E5A; --success-bg: #E6F4EC; --success-text: #14653F;
    --warning: #B7791F; --warning-bg: #FFF4DE; --warning-text: #7A4F0C;
    --error:   #C93B3B; --error-bg:   #FBEBEB; --error-text:   #8F2727;
    --info:    #3F72AF; --info-bg:    #DBE2EF; --info-text:    #24528A;
    --purple:  var(--navy);

    --radius: 12px;
    --radius-sm: 8px;
    --radius-xs: 6px;
    --shadow: 0 1px 2px rgba(17, 45, 78, .05), 0 1px 3px rgba(17, 45, 78, .04);
    --shadow-lg: 0 10px 28px rgba(17, 45, 78, .10);
    --shadow-primary: 0 4px 12px rgba(63, 114, 175, .28);

    /* Flutter curves */
    --ease-in-out: cubic-bezier(0.42, 0, 0.58, 1);
    --ease-out-cubic: cubic-bezier(0.215, 0.61, 0.355, 1);
    --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);

    --sidebar-w: 256px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.01em; color: var(--navy); }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
b, strong { font-weight: 600; }

.mi {
    font-family: 'Material Icons Round';
    font-weight: normal;
    font-style: normal;
    font-size: 20px;
    line-height: 1;
    display: inline-block;
    white-space: nowrap;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    user-select: none;
    vertical-align: middle;
}

/* ---------------------------------------------------------------
   Animations (mirrors FadeTransition / SlideTransition / Scale)
   --------------------------------------------------------------- */
@keyframes fadeIn   { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut  { from { opacity: 1; } to { opacity: 0; } }
@keyframes slideUp  { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes slideIn  { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: none; } }
@keyframes elasticIn {
    0%   { transform: scale(0); }
    45%  { transform: scale(1.14); }
    65%  { transform: scale(0.94); }
    82%  { transform: scale(1.03); }
    100% { transform: scale(1); }
}
@keyframes pulse    { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes spin     { to { transform: rotate(360deg); } }
@keyframes float    { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes toastIn  { from { opacity: 0; transform: translateY(20px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes shimmer  { from { background-position: -200% 0; } to { background-position: 200% 0; } }
@keyframes ripple   { to { transform: scale(4); opacity: 0; } }
@keyframes gradientShift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes shake    { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

.content { animation: fadeIn .3s var(--ease-in-out) both; }
body.page-leave .content { animation: fadeOut .2s var(--ease-in-out) forwards; }

.reveal {
    animation: slideUp .6s var(--ease-out-cubic) both;
    animation-delay: calc(var(--i, 0) * 60ms);
}
.pop { animation: elasticIn 1s var(--ease-out-cubic) both; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* ---------------------------------------------------------------
   Layout — sidebar
   --------------------------------------------------------------- */
.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar-w);
    background: var(--navy);
    color: #fff;
    display: flex;
    flex-direction: column;
    z-index: 40;
    transition: transform .3s var(--ease-out-cubic);
    overflow: hidden;
    border-right: 1px solid rgba(255, 255, 255, .06);
}
.sidebar::before, .sidebar::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .03);
    pointer-events: none;
}
.sidebar::before { width: 260px; height: 260px; top: -90px; right: -120px; }
.sidebar::after  { width: 200px; height: 200px; bottom: 60px; left: -110px; animation: float 6s ease-in-out infinite; }

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 22px 20px 18px;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    margin-bottom: 8px;
}
.brand-logo {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: var(--primary);
    display: grid; place-items: center;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -.02em;
    color: #fff;
    animation: elasticIn 1.2s var(--ease-out-cubic) both, pulse 2s var(--ease-in-out) 1.2s infinite;
}
.brand-logo .mi { font-size: 22px; }
.brand-name { font-weight: 600; font-size: 15px; letter-spacing: 0; color: #fff; }
.brand-sub  { font-size: 11px; color: rgba(255, 255, 255, .55); text-transform: uppercase; letter-spacing: .08em; }

.nav { flex: 1; padding: 8px 12px; overflow-y: auto; position: relative; }
.nav-label { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: rgba(255, 255, 255, .4); padding: 8px 12px 6px; font-weight: 500; }
.nav-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    margin-bottom: 2px;
    border-radius: var(--radius-sm);
    color: rgba(255, 255, 255, .72);
    font-weight: 500;
    font-size: 13.5px;
    transition: background .25s var(--ease-in-out), color .25s, transform .25s var(--ease-out-cubic);
    animation: slideIn .5s var(--ease-out-cubic) both;
}
.nav-item .mi { font-size: 20px; color: rgba(255, 255, 255, .55); transition: color .25s; }
.nav-item:nth-child(2) { animation-delay: .05s; } .nav-item:nth-child(3) { animation-delay: .1s; }
.nav-item:nth-child(4) { animation-delay: .15s; } .nav-item:nth-child(5) { animation-delay: .2s; }
.nav-item:nth-child(6) { animation-delay: .25s; } .nav-item:nth-child(7) { animation-delay: .3s; }
.nav-item:nth-child(8) { animation-delay: .35s; }
.nav-item:hover { background: rgba(255, 255, 255, .07); color: #fff; transform: translateX(3px); }
.nav-item:hover .mi { color: #fff; }
.nav-item.active {
    background: rgba(255, 255, 255, .10);
    color: #fff;
}
.nav-item.active::before {
    content: '';
    position: absolute; left: -12px; top: 8px; bottom: 8px;
    width: 3px; border-radius: 0 3px 3px 0;
    background: var(--tint);
}
.nav-item.active .mi { color: var(--tint); }
.nav-badge {
    margin-left: auto;
    min-width: 20px; height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    display: grid; place-items: center;
    animation: pulse 2s var(--ease-in-out) infinite;
}

.sidebar-footer { padding: 12px; position: relative; border-top: 1px solid rgba(255, 255, 255, .08); }
.admin-card {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, .06);
}
.admin-meta { min-width: 0; flex: 1; }
.admin-name { font-weight: 600; font-size: 13px; color: #fff; }
.admin-email { font-size: 11px; color: rgba(255, 255, 255, .55); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.sidebar-backdrop {
    position: fixed; inset: 0;
    background: rgba(17, 45, 78, .5);
    z-index: 35;
    opacity: 0; pointer-events: none;
    transition: opacity .3s;
}

/* ---------------------------------------------------------------
   Layout — main
   --------------------------------------------------------------- */
.main { margin-left: var(--sidebar-w); min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
    position: sticky; top: 0; z-index: 20;
    display: flex; align-items: center; gap: 16px;
    padding: 14px 28px;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}
.topbar-title { flex: 1; min-width: 0; }
.topbar-title h1 { font-size: 20px; font-weight: 600; }
.topbar-title p { color: var(--muted); font-size: 13px; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn.menu-toggle { display: none; }

.profile-chip {
    display: flex; align-items: center; gap: 8px;
    padding: 4px 12px 4px 4px;
    border-radius: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    font-weight: 500;
    font-size: 13px;
    transition: transform .25s var(--ease-out-cubic), box-shadow .25s, border-color .25s;
}
.profile-chip:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.profile-chip .avatar { width: 30px; height: 30px; font-size: 11px; }

.content { flex: 1; padding: 24px 28px 32px; }
.footer { padding: 16px 28px 24px; color: var(--hint); font-size: 12px; }

/* ---------------------------------------------------------------
   Avatars & icon buttons
   --------------------------------------------------------------- */
.avatar {
    width: 36px; height: 36px; flex-shrink: 0;
    border-radius: 50%;
    background: var(--tint);
    color: var(--navy);
    font-weight: 600;
    font-size: 12px;
    display: grid; place-items: center;
    overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-light { background: rgba(255, 255, 255, .14); color: #fff; }
.avatar-lg { width: 72px; height: 72px; font-size: 22px; }

.icon-btn {
    position: relative;
    width: 38px; height: 38px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--muted);
    display: inline-grid; place-items: center;
    cursor: pointer;
    transition: transform .2s var(--ease-out-cubic), background .2s, color .2s, box-shadow .2s, border-color .2s;
    flex-shrink: 0;
}
.icon-btn:hover { transform: translateY(-1px); color: var(--primary); border-color: var(--border-strong); box-shadow: var(--shadow); }
.icon-btn:active { transform: scale(.94); }
.icon-btn-ghost { background: transparent; border-color: transparent; box-shadow: none; color: rgba(255, 255, 255, .7); width: 32px; height: 32px; }
.icon-btn-ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: none; border-color: transparent; }
.icon-btn-sm { width: 32px; height: 32px; border-radius: var(--radius-xs); }
.icon-btn-sm .mi { font-size: 18px; }
.icon-btn.danger:hover { color: var(--error); border-color: #EBC2C2; background: var(--error-bg); }
.has-dot.dot-on::after {
    content: '';
    position: absolute; top: 8px; right: 9px;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--error);
    box-shadow: 0 0 0 2px var(--surface);
    animation: pulse 1.6s infinite;
}

/* ---------------------------------------------------------------
   Buttons
   --------------------------------------------------------------- */
.btn {
    position: relative;
    overflow: hidden;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 14px;
    line-height: 1.4;
    cursor: pointer;
    white-space: nowrap;
    transition: transform .2s var(--ease-out-cubic), box-shadow .25s, background .2s, border-color .2s, color .2s;
}
.btn .mi { font-size: 18px; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 1px 2px rgba(17, 45, 78, .2); }
.btn-primary:hover { background: var(--primary-hover); box-shadow: var(--shadow-primary); }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #17754A; }
.btn-danger  { background: var(--error); color: #fff; }
.btn-danger:hover { background: #A32F2F; }
.btn-light   { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-light:hover { color: var(--primary); border-color: var(--border-strong); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-sm { padding: 7px 12px; font-size: 13px; }
.btn-block { width: 100%; }
.ripple-dot {
    position: absolute;
    width: 40px; height: 40px;
    margin: -20px 0 0 -20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .35);
    transform: scale(0);
    animation: ripple .6s var(--ease-out-cubic);
    pointer-events: none;
}
.btn-light .ripple-dot, .btn-outline .ripple-dot { background: rgba(63, 114, 175, .18); }
.spinner {
    width: 16px; height: 16px;
    border: 2px solid rgba(255, 255, 255, .4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
}

/* ---------------------------------------------------------------
   Cards / grid
   --------------------------------------------------------------- */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
}
.card-hover { transition: transform .3s var(--ease-out-cubic), box-shadow .3s, border-color .3s; }
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.card-header {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 16px;
}
.card-header h3 { font-size: 15px; font-weight: 600; flex: 1; display: flex; align-items: center; gap: 10px; }
.card-flush { padding: 0; overflow: hidden; }
.card-flush .card-header { padding: 18px 20px 0; }

.grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-main { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.mb-20 { margin-bottom: 20px; }
.mt-20 { margin-top: 20px; }
.stack > * + * { margin-top: 20px; }

/* Stat cards */
.stat-card {
    position: relative;
    overflow: hidden;
    display: flex; align-items: center; gap: 16px;
}
.stat-icon {
    width: 46px; height: 46px; flex-shrink: 0;
    border-radius: 10px;
    display: grid; place-items: center;
    color: var(--primary);
    background: var(--tint);
}
.stat-icon .mi { font-size: 24px; }
.stat-icon.hot   { background: var(--error-bg);   color: var(--error); }
.stat-icon.green { background: var(--success-bg); color: var(--success); }
.stat-icon.blue  { background: var(--tint);       color: var(--primary); }
.stat-icon.amber { background: var(--warning-bg); color: var(--warning); }
.stat-icon.pink  { background: var(--tint);       color: var(--navy); }
.stat-value { font-size: 24px; font-weight: 600; line-height: 1.1; color: var(--navy); letter-spacing: -.02em; }
.stat-label { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.stat-card::after {
    content: '';
    position: absolute; right: -30px; bottom: -30px;
    width: 110px; height: 110px;
    border-radius: 50%;
    background: var(--primary);
    opacity: .04;
    transition: transform .5s var(--ease-out-cubic);
}
.stat-card:hover::after { transform: scale(1.4); }

.hero-card {
    background: var(--grad);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite, slideUp .6s var(--ease-out-cubic) both;
    color: #fff;
    border-radius: var(--radius);
    padding: 24px 28px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(17, 45, 78, .22);
}
.hero-card h2 { font-size: 22px; font-weight: 600; color: #fff; }
.hero-card p { color: rgba(255, 255, 255, .78); margin-top: 4px; font-size: 13.5px; }
.hero-card .ring {
    position: absolute;
    right: -40px; top: -60px;
    width: 220px; height: 220px;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, .18);
    animation: spin 20s linear infinite;
}
.hero-card .ring.two { right: 60px; top: 40px; width: 120px; height: 120px; animation-direction: reverse; animation-duration: 14s; }
.hero-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; position: relative; }
.hero-card .btn-light { color: var(--navy); border-color: transparent; }

/* Mini status tiles */
.status-tile {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    color: var(--text);
    font-size: 13.5px;
    transition: transform .25s var(--ease-out-cubic), box-shadow .25s, border-color .25s;
}
.status-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.status-tile .dot { width: 8px; height: 8px; border-radius: 50%; }
.status-tile b { font-size: 18px; font-weight: 600; margin-left: auto; color: var(--navy); }

/* ---------------------------------------------------------------
   Badges
   --------------------------------------------------------------- */
.badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    line-height: 1.5;
}
.badge .mi { font-size: 14px; }
.badge-success { background: var(--success-bg); color: var(--success-text); }
.badge-warning { background: var(--warning-bg); color: var(--warning-text); }
.badge-error   { background: var(--error-bg);   color: var(--error-text); }
.badge-info    { background: var(--info-bg);    color: var(--info-text); }
.badge-purple  { background: var(--tint-2); color: var(--navy); border: 1px solid var(--tint); }
.badge-muted   { background: #F1F3F6; color: var(--muted); }
.badge-grad    { background: var(--navy); color: #fff; }
.badge-hot     { background: var(--warning-bg); color: var(--warning-text); }
.badge-soft    { font-weight: 500; }
.dot-success { background: var(--success); } .dot-warning { background: var(--warning); }
.dot-info { background: var(--info); } .dot-error { background: var(--error); }

.stars { color: #E9A825; display: inline-flex; }
.stars .mi { font-size: 16px; }

/* ---------------------------------------------------------------
   Toolbar / filters / tabs
   --------------------------------------------------------------- */
.toolbar {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
    margin-bottom: 20px;
}
.toolbar .spacer { flex: 1; }
.search-box { position: relative; flex: 1 1 260px; max-width: 380px; }
.search-box .mi { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--hint); font-size: 19px; }
.search-box .form-control { padding-left: 40px; }

.tabs {
    display: flex; gap: 4px;
    overflow-x: auto;
    padding: 4px;
    margin-bottom: 20px;
    scrollbar-width: none;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    width: max-content;
    max-width: 100%;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 14px;
    border-radius: var(--radius-xs);
    background: transparent;
    color: var(--muted);
    font-weight: 500;
    font-size: 13px;
    white-space: nowrap;
    transition: all .3s var(--ease-out-cubic);
}
.tab:hover { color: var(--navy); background: var(--tint-2); }
.tab.active { background: var(--navy); color: #fff; }
.tab .count {
    min-width: 20px; padding: 0 6px; height: 18px;
    border-radius: 9px;
    background: var(--tint);
    color: var(--navy);
    font-size: 11px; font-weight: 600;
    display: grid; place-items: center;
}
.tab.active .count { background: rgba(255, 255, 255, .18); color: #fff; }

.segmented {
    display: inline-flex;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 3px;
}
.segmented button {
    border: 0; background: transparent;
    width: 34px; height: 30px;
    border-radius: var(--radius-xs);
    color: var(--hint);
    cursor: pointer;
    display: grid; place-items: center;
    transition: all .25s;
}
.segmented button.active { background: var(--navy); color: #fff; }

/* ---------------------------------------------------------------
   Forms
   --------------------------------------------------------------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; font-weight: 500; color: var(--text); }
.form-group .help { font-size: 12px; color: var(--hint); }
.req { color: var(--error); }
.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: var(--surface);
    outline: none;
    transition: border-color .25s, box-shadow .25s, background .25s;
}
.form-control::placeholder { color: var(--hint); }
.form-control:hover { border-color: #AEBBCB; }
.form-control:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(63, 114, 175, .18);
}
textarea.form-control { resize: vertical; min-height: 96px; }
select.form-control {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 36px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24'%3E%3Cpath fill='%235D6B7E' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    cursor: pointer;
}
.form-control-sm { padding: 6px 32px 6px 10px; font-size: 13px; border-radius: var(--radius-xs); }
.input-icon { position: relative; }
.input-icon > .mi { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--hint); transition: color .25s; font-size: 19px; }
.input-icon .form-control { padding-left: 40px; }
.input-icon:focus-within > .mi { color: var(--primary); }
.form-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 8px; flex-wrap: wrap; }

/* Switch (Flutter-style) */
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .track {
    width: 40px; height: 22px;
    border-radius: 11px;
    background: var(--border-strong);
    position: relative;
    transition: background .3s var(--ease-in-out);
    flex-shrink: 0;
}
.switch .track::after {
    content: '';
    position: absolute; top: 3px; left: 3px;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
    transition: transform .3s var(--ease-back);
}
.switch input:checked + .track { background: var(--primary); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { box-shadow: 0 0 0 3px rgba(63, 114, 175, .25); }

/* Image dropzone */
.dropzone {
    position: relative;
    border: 1.5px dashed var(--border-strong);
    border-radius: var(--radius);
    background: var(--surface-2);
    min-height: 200px;
    display: grid; place-items: center;
    text-align: center;
    cursor: pointer;
    overflow: hidden;
    transition: border-color .25s, background .25s, transform .25s var(--ease-out-cubic);
}
.dropzone:hover, .dropzone.drag { border-color: var(--primary); background: var(--tint-2); }
.dropzone.drag { transform: scale(1.01); }
.dropzone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone .dz-empty .mi { font-size: 40px; color: var(--primary); }
.dropzone .dz-empty p { color: var(--muted); margin-top: 6px; }
.dropzone .dz-empty small { color: var(--hint); }
.dropzone img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: fadeIn .4s; }
.dropzone .dz-change {
    position: absolute; right: 10px; bottom: 10px;
    background: rgba(17, 45, 78, .75);
    color: #fff;
    font-size: 12px;
    padding: 5px 10px;
    border-radius: var(--radius-xs);
    display: none;
    pointer-events: none;
}
.dropzone.has-image .dz-empty { visibility: hidden; }
.dropzone.has-image .dz-change { display: inline-flex; gap: 4px; align-items: center; }

.coords-box {
    display: flex; align-items: center; gap: 8px;
    padding: 12px;
    border-radius: var(--radius-xs);
    background: var(--info-bg);
    border: 1px solid #C5D1E4;
    color: var(--info-text);
    font-size: 12px; font-weight: 500;
    animation: slideUp .4s var(--ease-out-cubic);
}
.coords-box .mi { color: var(--success); }
.map-frame { width: 100%; height: 220px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--tint-2); }

/* ---------------------------------------------------------------
   Tables
   --------------------------------------------------------------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th {
    text-align: left;
    padding: 11px 16px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--muted);
    font-weight: 600;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
.table td { padding: 13px 16px; border-bottom: 1px solid #EEF1F5; vertical-align: middle; }
.table tbody tr {
    transition: background .2s;
    animation: slideUp .5s var(--ease-out-cubic) both;
}
.table tbody tr:hover { background: var(--tint-2); }
.table tbody tr:last-child td { border-bottom: 0; }
.table .muted { color: var(--muted); font-size: 12px; }
.cell-user { display: flex; align-items: center; gap: 10px; min-width: 180px; }
.cell-title { font-weight: 500; color: var(--text); }
.cell-title:hover { color: var(--primary); }
.actions { display: flex; gap: 6px; justify-content: flex-end; }
.thumb {
    width: 42px; height: 42px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: var(--tint);
    flex-shrink: 0;
    display: grid; place-items: center;
    color: var(--navy);
}
.thumb .mi { font-size: 22px; }
.code { font-family: ui-monospace, 'SF Mono', Consolas, monospace; font-weight: 600; color: var(--primary); font-size: 12.5px; }

/* ---------------------------------------------------------------
   Category + service cards
   --------------------------------------------------------------- */
.cat-card { display: flex; flex-direction: column; gap: 14px; position: relative; }
.cat-top { display: flex; align-items: flex-start; gap: 14px; }
.cat-emoji {
    width: 48px; height: 48px; flex-shrink: 0;
    border-radius: 10px;
    display: grid; place-items: center;
    color: var(--primary);
    background: var(--tint);
    transition: transform .4s var(--ease-back);
}
.cat-emoji .mi { font-size: 26px; }
.cat-emoji-sm { width: 36px; height: 36px; border-radius: var(--radius-sm); }
.cat-emoji-sm .mi { font-size: 20px; }
.badge .cat-icon { font-size: 15px; }
.cat-card:hover .cat-emoji { transform: scale(1.08); }
.cat-card h4 { font-size: 15px; }
.cat-card .desc { color: var(--muted); font-size: 13px; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cat-foot { display: flex; align-items: center; gap: 8px; padding-top: 14px; border-top: 1px solid #EEF1F5; }
.cat-foot .spacer { flex: 1; }
.is-inactive { opacity: .6; }

.svc-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.svc-media { position: relative; height: 160px; background: var(--tint); overflow: hidden; display: block; }
.svc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out-cubic); }
.svc-card:hover .svc-media img { transform: scale(1.06); }
.svc-media .placeholder { width: 100%; height: 100%; display: grid; place-items: center; }
.svc-media .placeholder .mi { font-size: 48px; opacity: .8; }
.svc-media .badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.svc-media .price-tag {
    position: absolute; right: 12px; bottom: 12px;
    background: #fff;
    color: var(--navy);
    font-weight: 600;
    font-size: 13px;
    padding: 5px 10px;
    border-radius: var(--radius-xs);
    box-shadow: 0 2px 8px rgba(17, 45, 78, .18);
}
.svc-body { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.svc-body h4 { font-size: 15px; }
.svc-meta { display: flex; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 12px; }
.svc-meta span { display: inline-flex; align-items: center; gap: 4px; }
.svc-meta .mi { font-size: 16px; color: var(--hint); }
.svc-foot { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-top: 1px solid #EEF1F5; background: var(--surface-2); }
.svc-foot .spacer { flex: 1; }

/* Detail pages */
.detail-hero { padding: 0; overflow: hidden; }
.detail-media { height: 240px; background: var(--tint); position: relative; }
.detail-media img { width: 100%; height: 100%; object-fit: cover; }
.detail-media .placeholder { height: 100%; display: grid; place-items: center; }
.detail-media .placeholder .mi { font-size: 72px; opacity: .8; }
.detail-body { padding: 24px; }
.detail-body h2 { font-size: 22px; font-weight: 600; }
.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-top: 18px; }
.kv-item { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border); }
.kv-item small { display: flex; align-items: center; gap: 4px; color: var(--hint); font-size: 12px; }
.kv-item small .mi { font-size: 15px; color: var(--primary); }
.kv-item b { display: block; margin-top: 4px; font-size: 14px; word-break: break-word; color: var(--navy); }
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid #EEF1F5; }
.info-list li:last-child { border-bottom: 0; }
.info-list .mi { color: var(--primary); }
.info-list small { display: block; color: var(--hint); font-size: 12px; }

/* Stepper */
.stepper { display: flex; align-items: flex-start; gap: 0; margin: 8px 0 4px; }
.step { flex: 1; text-align: center; position: relative; font-size: 12px; color: var(--hint); }
.step::before {
    content: '';
    position: absolute; top: 17px; left: -50%;
    width: 100%; height: 2px;
    background: var(--border);
    z-index: 0;
}
.step:first-child::before { display: none; }
.step .bubble {
    width: 36px; height: 36px;
    margin: 0 auto 8px;
    border-radius: 50%;
    background: var(--border);
    color: #fff;
    display: grid; place-items: center;
    position: relative; z-index: 1;
    transition: all .4s var(--ease-back);
}
.step .bubble .mi { font-size: 18px; }
.step.done { color: var(--text); font-weight: 500; }
.step.done::before { background: var(--primary); }
.step.done .bubble { background: var(--primary); box-shadow: 0 4px 10px rgba(63, 114, 175, .35); animation: elasticIn .8s both; }
.step.cancel .bubble { background: var(--error); }
.step.cancel { color: var(--error); font-weight: 500; }

/* Progress bars */
.bar-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; }
.bar-row .label { flex: 0 0 38%; min-width: 0; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.bar { flex: 1; height: 6px; border-radius: 3px; background: var(--tint-2); overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: 3px; background: var(--primary); width: 0; transition: width 1.2s var(--ease-out-cubic); }
.bar-row b { flex: 0 0 auto; min-width: 28px; text-align: right; color: var(--navy); }

/* Empty state */
.empty {
    text-align: center;
    padding: 48px 20px;
    color: var(--muted);
}
.empty .empty-icon {
    width: 80px; height: 80px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--tint);
    display: grid; place-items: center;
    animation: float 3s ease-in-out infinite;
}
.empty .empty-icon .mi { font-size: 36px; color: var(--primary); }
.empty h4 { color: var(--navy); font-size: 16px; margin-bottom: 4px; }
.empty .btn { margin-top: 16px; }

/* Alert */
.alert {
    display: flex; gap: 12px; align-items: center;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    background: var(--warning-bg);
    color: var(--warning-text);
    border: 1px solid #F1DDB4;
    animation: slideUp .5s var(--ease-out-cubic) both;
}
.alert .mi { color: var(--warning); }
.alert a { font-weight: 600; margin-left: auto; white-space: nowrap; }

/* ---------------------------------------------------------------
   Pagination
   --------------------------------------------------------------- */
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 20px; border-top: 1px solid var(--border); }
.page-info { color: var(--muted); font-size: 13px; }
.page-links { display: flex; gap: 4px; }
.page-link {
    min-width: 34px; height: 34px;
    padding: 0 8px;
    border-radius: var(--radius-xs);
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    display: grid; place-items: center;
    font-weight: 500;
    font-size: 13px;
    transition: all .25s var(--ease-out-cubic);
}
.page-link:hover { color: var(--primary); border-color: var(--border-strong); transform: translateY(-1px); }
.page-link.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.page-link.disabled { opacity: .4; pointer-events: none; }
.page-link.dots { border: 0; background: transparent; }

/* ---------------------------------------------------------------
   Modal
   --------------------------------------------------------------- */
.modal {
    position: fixed; inset: 0;
    z-index: 100;
    display: flex; align-items: center; justify-content: center;
    padding: 16px;
    background: rgba(17, 45, 78, .45);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    opacity: 0; visibility: hidden;
    transition: opacity .3s var(--ease-in-out), visibility .3s;
}
.modal.open { opacity: 1; visibility: visible; }
.modal-dialog {
    width: 100%; max-width: 560px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    background: var(--surface);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: 0 24px 60px rgba(17, 45, 78, .3);
    transform: translateY(30px) scale(.96);
    transition: transform .4s var(--ease-back);
}
.modal.open .modal-dialog { transform: none; }
.modal-sm { max-width: 400px; text-align: center; }
.modal-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.modal-head .stat-icon { width: 40px; height: 40px; border-radius: var(--radius-sm); }
.modal-head .stat-icon .mi { font-size: 22px; }
.modal-head h3 { flex: 1; font-size: 17px; }
.modal-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 20px; }
.modal-actions.center { justify-content: center; }
.confirm-icon {
    width: 60px; height: 60px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: var(--error-bg);
    display: grid; place-items: center;
}
.modal.open .confirm-icon { animation: elasticIn 1s both; }
.confirm-icon .mi { font-size: 30px; color: var(--error); }
.confirm-title { font-size: 17px; margin-bottom: 6px; }
.confirm-text { color: var(--muted); }

/* Icon picker (category icon) */
.icon-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 6px; margin-top: 8px; }
.icon-picks button {
    height: 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    background: var(--surface);
    color: var(--muted);
    cursor: pointer;
    display: grid; place-items: center;
    transition: transform .2s var(--ease-back), border-color .2s, color .2s, background .2s;
}
.icon-picks button .mi { font-size: 22px; }
.icon-picks button:hover { transform: scale(1.08); border-color: var(--primary); color: var(--primary); }
.icon-picks button.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.icon-preview {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 6px 10px 6px 6px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    font-size: 13px; color: var(--muted);
}
.icon-preview .cat-emoji { width: 36px; height: 36px; border-radius: var(--radius-xs); }
.icon-preview .cat-emoji .mi { font-size: 20px; }
.color-picks { display: flex; gap: 8px; flex-wrap: wrap; }
.color-picks label { cursor: pointer; }
.color-picks input { position: absolute; opacity: 0; }
.color-picks span {
    display: block;
    width: 28px; height: 28px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 1px var(--border-strong);
    transition: transform .25s var(--ease-back), box-shadow .25s;
}
.color-picks input:checked + span { transform: scale(1.15); box-shadow: 0 0 0 2px var(--navy); }

/* ---------------------------------------------------------------
   Toasts (Flushbar style)
   --------------------------------------------------------------- */
.toasts {
    position: fixed;
    right: 20px; bottom: 20px;
    z-index: 200;
    display: flex; flex-direction: column; gap: 10px;
    max-width: calc(100vw - 40px);
}
.toast {
    display: flex; align-items: center; gap: 10px;
    min-width: 280px; max-width: 420px;
    padding: 12px 12px 12px 14px;
    border-radius: var(--radius-sm);
    color: #fff;
    font-weight: 500;
    font-size: 13.5px;
    box-shadow: 0 10px 28px rgba(17, 45, 78, .25);
    animation: toastIn .45s var(--ease-back) both;
    transition: opacity .3s, transform .3s;
}
.toast.hide { opacity: 0; transform: translateX(40px); }
.toast span:nth-child(2) { flex: 1; }
.toast-success { background: var(--success); }
.toast-error   { background: var(--error); }
.toast-info    { background: var(--navy); }
.toast-close { border: 0; background: transparent; color: #fff; cursor: pointer; opacity: .8; padding: 2px; display: grid; }
.toast-close:hover { opacity: 1; }

/* ---------------------------------------------------------------
   Auth page
   --------------------------------------------------------------- */
.auth {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    background: var(--bg);
}
.auth-art {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--navy) 0%, #0D2440 50%, #1A3F6B 100%);
    background-size: 200% 200%;
    animation: gradientShift 10s ease infinite;
    color: #fff;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 48px;
    text-align: center;
}
.auth-art .orbit {
    position: absolute;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, .14);
    animation: spin 20s linear infinite;
}
.auth-art .orbit.o1 { width: 420px; height: 420px; }
.auth-art .orbit.o2 { width: 600px; height: 600px; animation-direction: reverse; animation-duration: 30s; border-style: dotted; }
.auth-art .orbit::after {
    content: '';
    position: absolute; top: -5px; left: 50%;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--tint);
    box-shadow: 0 0 12px rgba(219, 226, 239, .8);
}
.auth-art .blob { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .04); animation: float 6s ease-in-out infinite; }
.auth-art .blob.b1 { width: 160px; height: 160px; top: 8%; left: 6%; }
.auth-art .blob.b2 { width: 90px; height: 90px; bottom: 12%; right: 10%; animation-delay: 1.5s; }
.auth-logo {
    width: 88px; height: 88px;
    border-radius: 22px;
    background: var(--primary);
    display: grid; place-items: center;
    box-shadow: 0 16px 36px rgba(0, 0, 0, .3);
    animation: elasticIn 1.2s var(--ease-out-cubic) .2s both, pulse 2s var(--ease-in-out) 1.4s infinite;
    position: relative;
    font-weight: 700;
    font-size: 40px;
    letter-spacing: -.03em;
}
.auth-logo .mi { font-size: 48px; }
.auth-art h1 { font-size: 32px; font-weight: 600; margin-top: 28px; animation: slideUp 1s var(--ease-out-cubic) .4s both; position: relative; color: #fff; }
.auth-art p { color: rgba(255, 255, 255, .72); font-size: 15px; margin-top: 8px; animation: slideUp 1s var(--ease-out-cubic) .55s both; position: relative; max-width: 360px; }
.auth-feats { display: flex; gap: 8px; margin-top: 28px; flex-wrap: wrap; justify-content: center; position: relative; }
.auth-feats span {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 12px;
    border-radius: var(--radius-xs);
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    font-size: 12.5px;
    color: rgba(255, 255, 255, .85);
    animation: slideUp .8s var(--ease-out-cubic) both;
}
.auth-feats span:nth-child(1) { animation-delay: .7s; } .auth-feats span:nth-child(2) { animation-delay: .8s; } .auth-feats span:nth-child(3) { animation-delay: .9s; }
.auth-feats .mi { font-size: 16px; color: var(--tint); }

.auth-form-wrap { display: flex; align-items: center; justify-content: center; padding: 32px 20px; }
.auth-card {
    width: 100%; max-width: 420px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 36px;
    animation: slideUp 1s var(--ease-out-cubic) .3s both;
}
.auth-card h2 { font-size: 24px; font-weight: 600; }
.auth-card .sub { color: var(--muted); margin: 4px 0 26px; }
.auth-card .form-group { margin-bottom: 16px; }
.auth-hint {
    margin-top: 20px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    background: var(--tint-2);
    color: var(--navy);
    font-size: 13px;
    display: flex; gap: 8px; align-items: flex-start;
}
.auth-hint .mi { font-size: 18px; }
.auth-error {
    display: flex; align-items: center; gap: 8px;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    background: var(--error-bg);
    border: 1px solid #EBC2C2;
    color: var(--error-text);
    font-size: 13px;
    margin-bottom: 16px;
    animation: shake .4s;
}
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--hint); cursor: pointer; padding: 6px; display: grid; }
.pw-toggle:hover { color: var(--primary); }

/* ---------------------------------------------------------------
   Responsive
   --------------------------------------------------------------- */
@media (max-width: 1200px) {
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-main { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 992px) {
    .sidebar { transform: translateX(-100%); box-shadow: none; }
    body.sidebar-open .sidebar { transform: none; box-shadow: 20px 0 40px rgba(17, 45, 78, .3); }
    body.sidebar-open .sidebar-backdrop { opacity: 1; pointer-events: auto; }
    .main { margin-left: 0; }
    .icon-btn.menu-toggle { display: inline-grid; }
    .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .auth { grid-template-columns: 1fr; }
    .auth-art { padding: 40px 20px 56px; min-height: 300px; }
    .auth-art .orbit.o1 { width: 300px; height: 300px; }
    .auth-art .orbit.o2 { width: 440px; height: 440px; }
    .auth-logo { width: 68px; height: 68px; border-radius: 18px; font-size: 30px; }
    .auth-logo .mi { font-size: 38px; }
    .auth-art h1 { font-size: 26px; margin-top: 18px; }
    .auth-feats { display: none; }
    .auth-card { padding: 28px; }
}
@media (max-width: 640px) {
    .topbar { padding: 12px 16px; }
    .topbar-title h1 { font-size: 18px; }
    .topbar-title p { display: none; }
    .profile-chip span { display: none; }
    .profile-chip { padding: 3px; }
    .content { padding: 16px 16px 24px; }
    .footer { padding: 12px 16px 20px; }
    .grid-4, .grid-3, .grid-2, .form-grid { grid-template-columns: minmax(0, 1fr); }
    .grid { gap: 14px; }
    .hero-card { padding: 20px; }
    .hero-card h2 { font-size: 19px; }
    .search-box { max-width: none; }
    .toolbar > .btn { flex: 1 1 auto; }
    .tabs { width: auto; }
    .toasts { right: 16px; left: 16px; bottom: 16px; max-width: none; }
    .toast { min-width: 0; max-width: none; }
    .modal-dialog { padding: 20px; }
    .detail-media { height: 200px; }
    .pagination { justify-content: center; }
    .auth-card { padding: 24px 20px; }
}
