:root {
    --i9-bg: #f6f7fb;
    --i9-surface: #ffffff;
    --i9-surface-soft: #f8fafc;
    --i9-text: #0f172a;
    --i9-muted: #64748b;
    --i9-line: rgba(15, 23, 42, .08);
    --i9-line-strong: rgba(15, 23, 42, .14);
    --i9-navy: #0b132b;
    --i9-green: #059669;
    --i9-green-dark: #047857;
    --i9-green-soft: #ecfdf5;
    --i9-blue: #2563eb;
    --i9-blue-soft: #eff6ff;
    --i9-pink: #f51f5b;
    --i9-pink-soft: #fff1f5;
    --i9-orange: #d97706;
    --i9-orange-soft: #fffbeb;
    --i9-red: #e11d48;
    --i9-red-soft: #fff1f2;
    --i9-purple: #6d28d9;
    --i9-purple-soft: #f5f3ff;
    --i9-purple-dark: #4c1d95;
    --i9-magenta: #ff2b93;
    --i9-brand-gradient: linear-gradient(135deg, #ff2b93 0%, #9333ea 55%, #5b21b6 100%);
    --i9-shadow: 0 1px 2px rgba(15, 23, 42, .03), 0 8px 24px -4px rgba(15, 23, 42, .055);
    --i9-shadow-hover: 0 4px 12px rgba(15, 23, 42, .05), 0 18px 36px -10px rgba(109, 40, 217, .12);
    --i9-radius: 18px;
    --i9-radius-sm: 12px;
    --i9-sidebar: 276px;
    --bg: var(--i9-bg);
    --panel: var(--i9-surface);
    --text: var(--i9-text);
    --muted: var(--i9-muted);
    --line: var(--i9-line);
    --primary: var(--i9-purple);
    --primary-2: var(--i9-purple-dark);
    --green: var(--i9-green);
    --orange: var(--i9-orange);
    --red: var(--i9-red);
    --blue: var(--i9-blue);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--i9-bg); }
body {
    margin: 0;
    min-height: 100vh;
    color: var(--i9-text);
    background:
        radial-gradient(circle at 92% -4%, rgba(147, 51, 234, .075), transparent 32rem),
        radial-gradient(circle at 12% 104%, rgba(255, 43, 147, .05), transparent 28rem),
        var(--i9-bg);
    font-family: "Plus Jakarta Sans", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
    font-size: 14.5px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.premium-shell { min-height: 100vh; }
.sidebar {
    width: var(--i9-sidebar);
    height: 100vh;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 40;
    display: flex;
    flex-direction: column;
    padding: 20px 14px 16px;
    overflow-y: auto;
    overflow-x: hidden;
    background: rgba(255, 255, 255, .96);
    border-right: 1px solid var(--i9-line);
    box-shadow: 6px 0 30px rgba(15, 23, 42, .025);
    backdrop-filter: blur(12px);
}
.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 52px;
    margin: 0 8px 18px;
    padding: 6px 8px;
    border-radius: 14px;
    transition: background .18s ease;
}
.brand:hover { background: #f8fafc; }
.brand::before {
    content: "";
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 50%;
    background: #17052f url('/images/i9vando/logo-i9vando.png') center/cover no-repeat;
    box-shadow: 0 8px 20px -4px rgba(109, 40, 217, .35);
}
.brand-mark { color: var(--i9-pink); font-size: 24px; font-weight: 900; letter-spacing: -1.5px; }
.brand-word { color: var(--i9-navy); font-size: 22px; font-weight: 900; letter-spacing: -.8px; }
.brand-subtitle {
    display: block;
    color: var(--i9-muted);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.menu { display: flex; flex: 1; flex-direction: column; gap: 3px; }
.menu a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 42px;
    padding: 9px 12px;
    color: #334155;
    border: 1px solid transparent;
    border-radius: 11px;
    font-size: 14px;
    font-weight: 600;
    transition: all .16s ease;
}
.nav-group { margin: 2px 0; border: 1px solid transparent; border-radius: 13px; transition: background .16s ease; }
.nav-group[open] { padding-bottom: 6px; background: #f8fafc; border-color: rgba(15, 23, 42, .05); }
.nav-group summary {
    display: grid;
    grid-template-columns: 18px 1fr 16px;
    align-items: center;
    gap: 11px;
    min-height: 43px;
    padding: 9px 12px;
    color: #1e293b;
    border-radius: 11px;
    cursor: pointer;
    list-style: none;
    font-size: 13.5px;
    font-weight: 700;
    transition: all .16s ease;
}
.nav-group summary::-webkit-details-marker { display: none; }
.nav-group summary:hover { color: var(--i9-purple-dark); background: #f5f3ff; }
.nav-group summary i { justify-self: end; font-style: normal; color: #94a3b8; transition: transform .18s ease; }
.nav-group[open] summary i { transform: rotate(180deg); color: var(--i9-purple); }
.nav-submenu { display: grid; gap: 2px; padding: 2px 6px 2px 32px; }
.nav-submenu a { min-height: 36px; padding: 7px 11px; font-size: 13.5px; font-weight: 500; border-radius: 9px; color: #475569; }
.nav-submenu a.active::before { left: -39px; height: 22px; }
.menu a:hover { color: var(--i9-purple-dark); background: #f5f3ff; }
.menu a.active {
    color: var(--i9-purple-dark);
    background: linear-gradient(90deg, rgba(109, 40, 217, .09) 0%, rgba(255, 43, 147, .07) 100%);
    border-color: rgba(109, 40, 217, .14);
    font-weight: 700;
}
.menu a.active::before {
    content: "";
    position: absolute;
    left: -15px;
    width: 4px;
    height: 24px;
    border-radius: 0 6px 6px 0;
    background: var(--i9-brand-gradient);
}
.menu-icon { width: 18px; height: 18px; flex: 0 0 18px; stroke: currentColor; fill: none; stroke-width: 1.9; }

.sidebar-footer {
    margin-top: 14px;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid var(--i9-line);
    border-radius: 14px;
}
.sidebar-user { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.sidebar-avatar {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #fff;
    background: var(--i9-brand-gradient);
    font-size: 12.5px;
    font-weight: 800;
    box-shadow: 0 4px 10px rgba(147, 51, 234, .28);
}
.sidebar-user strong { display: block; color: var(--i9-navy); font-size: 13px; font-weight: 700; }
.sidebar-user span { display: block; color: var(--i9-muted); font-size: 11.5px; }

.content { min-height: 100vh; margin-left: var(--i9-sidebar); padding: 0 32px 48px; }
.premium-header {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 20px;
    height: 70px;
    margin: 0 -32px 26px;
    padding: 0 32px;
    background: rgba(255, 255, 255, .82);
    border-bottom: 1px solid var(--i9-line);
    backdrop-filter: blur(18px) saturate(180%);
}
.global-search { position: relative; width: min(560px, 50vw); }
.global-search svg { position: absolute; left: 14px; top: 50%; width: 17px; transform: translateY(-50%); color: #64748b; }
.global-search input {
    width: 100%;
    height: 41px;
    padding: 0 16px 0 41px;
    color: var(--i9-text);
    background: #f8fafc;
    border: 1px solid var(--i9-line);
    border-radius: 11px;
    font-size: 13.5px;
    transition: all .16s ease;
}
.global-search input:focus {
    background: #fff;
    outline: 0;
    border-color: rgba(147, 51, 234, .45);
    box-shadow: 0 0 0 3.5px rgba(147, 51, 234, .10);
}
.header-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.header-tool {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 38px;
    padding: 0 12px;
    color: #334155;
    background: #fff;
    border: 1px solid var(--i9-line);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    transition: all .15s ease;
}
.header-tool:hover { border-color: var(--i9-line-strong); background: #f8fafc; color: var(--i9-purple-dark); }
.header-tool svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; }
.profile-chip { display: flex; align-items: center; gap: 10px; padding-left: 12px; margin-left: 4px; border-left: 1px solid var(--i9-line); }
.profile-chip .avatar {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    color: #fff;
    background: var(--i9-navy);
    border-radius: 50%;
    font-size: 12.5px;
    font-weight: 800;
}
.profile-chip strong { display: block; color: var(--i9-navy); font-size: 13px; font-weight: 700; }
.profile-chip span { display: block; color: var(--i9-muted); font-size: 11.5px; }

.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.page-heading h1 {
    margin: 0 0 4px;
    color: var(--i9-navy);
    font-size: clamp(24px, 2.3vw, 34px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.03em;
}
.page-heading p { max-width: 740px; margin: 0; color: var(--i9-muted); font-size: 14.5px; line-height: 1.55; }
.page-heading-actions, .actions-inline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.page-heading-actions { justify-content: flex-end; }

.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kpi-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(340px, .9fr); gap: 16px; }

.card {
    margin-bottom: 18px;
    padding: 22px;
    color: var(--i9-text);
    background: var(--i9-surface);
    border: 1px solid var(--i9-line);
    border-radius: var(--i9-radius);
    box-shadow: var(--i9-shadow);
    transition: border-color .18s ease, box-shadow .18s ease;
}
.card:hover { border-color: rgba(109, 40, 217, .14); }
.card h2, .card h3 { margin: 0 0 8px; color: var(--i9-navy); font-weight: 750; letter-spacing: -0.02em; }
.card h2 { font-size: 19px; }
.card h3 { font-size: 16.5px; }

.premium-stat {
    position: relative;
    min-height: 132px;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.premium-stat:hover { transform: translateY(-2px); box-shadow: var(--i9-shadow-hover); }
.premium-stat::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: var(--stat-color, var(--i9-purple));
    opacity: .85;
}
.premium-stat::after {
    content: "";
    position: absolute;
    right: -24px;
    bottom: -32px;
    width: 108px;
    height: 108px;
    border-radius: 50%;
    background: var(--stat-soft, #f1f5f9);
    opacity: .8;
    pointer-events: none;
}
.stat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stat-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: var(--stat-color, var(--i9-green));
    background: var(--stat-soft, var(--i9-green-soft));
    border-radius: 12px;
    font-size: 18px;
    font-weight: 800;
}
.stat-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--stat-color, var(--i9-green));
    box-shadow: 0 0 0 5px var(--stat-soft, var(--i9-green-soft));
}
.stat-title { margin: 14px 0 4px; color: var(--i9-muted); font-size: 13px; font-weight: 600; }
.stat-value {
    position: relative;
    z-index: 1;
    color: var(--i9-navy);
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}
.stat-sub, .small { color: var(--i9-muted); font-size: 12.5px; line-height: 1.5; }
.tone-blue { --stat-color: var(--i9-blue); --stat-soft: var(--i9-blue-soft); }
.tone-pink { --stat-color: var(--i9-pink); --stat-soft: var(--i9-pink-soft); }
.tone-orange { --stat-color: var(--i9-orange); --stat-soft: var(--i9-orange-soft); }
.tone-purple { --stat-color: var(--i9-purple); --stat-soft: var(--i9-purple-soft); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 9px 15px;
    color: var(--i9-text);
    background: #fff;
    border: 1px solid var(--i9-line-strong);
    border-radius: 11px;
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.2;
    transition: all .16s ease;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(15, 23, 42, .08); }
.btn:active { transform: translateY(0) scale(.985); }
.btn-primary, .btn-green {
    color: #fff;
    background: var(--i9-brand-gradient);
    border-color: transparent;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 6px 18px -4px rgba(147, 51, 234, .42);
}
.btn-primary:hover, .btn-green:hover {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 10px 24px -4px rgba(255, 43, 147, .42);
}
.btn-dark { color: var(--i9-navy); background: #fff; border-color: var(--i9-line-strong); }
.btn-dark:hover { background: #f8fafc; }
.btn-blue { color: #1d4ed8; background: var(--i9-blue-soft); border-color: #bfdbfe; }
.btn-orange { color: #b45309; background: var(--i9-orange-soft); border-color: #fde68a; }
.btn-red { color: #be123c; background: var(--i9-red-soft); border-color: #fecdd3; }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.1; }

.premium-alert, .alert {
    position: relative;
    margin-bottom: 18px;
    padding: 15px 18px 15px 54px;
    color: #334155;
    background: linear-gradient(90deg, #fff1f5, #fff9fb);
    border: 1px solid #fecdd3;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(245, 31, 91, .04);
}
.premium-alert::before, .alert::before {
    content: "!";
    position: absolute;
    left: 16px;
    top: 50%;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    transform: translateY(-50%);
    color: #fff;
    background: var(--i9-pink);
    border-radius: 50%;
    font-size: 13px;
    font-weight: 800;
}
.alert:not(.alert-error) { color: #065f46; background: #ecfdf5; border-color: #a7f3d0; }
.alert:not(.alert-error)::before { content: "✓"; background: var(--i9-green); }
.alert-error::before { background: var(--i9-red); }
.premium-alert strong { display: block; margin-bottom: 2px; color: var(--i9-navy); font-size: 14.5px; }

.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.section-heading h2, .section-heading h3 { margin: 0; }
.section-heading p { margin: 3px 0 0; color: var(--i9-muted); font-size: 13.5px; line-height: 1.5; }

.table-wrap, .table-container, .table-wrapper {
    width: 100%;
    overflow: auto;
    border: 1px solid var(--i9-line);
    border-radius: 14px;
    background: #fff;
}
table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; }
th, td {
    padding: 13px 15px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
    font-variant-numeric: tabular-nums;
}
th {
    color: #475569;
    background: #f8fafc;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    white-space: nowrap;
}
td { color: #1e293b; font-size: 13.5px; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #faf8ff; }

.table-client { display: flex; align-items: center; gap: 10px; min-width: 160px; }
.client-avatar {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    color: var(--i9-purple-dark);
    background: var(--i9-purple-soft);
    border-radius: 50%;
    font-size: 12.5px;
    font-weight: 800;
}
.table-client strong { display: block; color: var(--i9-navy); font-weight: 700; }
.table-client span { color: var(--i9-muted); font-size: 12.5px; }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 26px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    border: 1px solid transparent;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-active { color: #047857; background: #ecfdf5; border-color: #a7f3d0; }
.badge-overdue { color: #b45309; background: #fffbeb; border-color: #fde68a; }
.badge-blocked { color: #be123c; background: #fff1f2; border-color: #fecdd3; }
.badge-pending { color: #1d4ed8; background: #eff6ff; border-color: #bfdbfe; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
label { display: block; margin-bottom: 6px; color: #334155; font-size: 13px; font-weight: 700; }
input, select, textarea {
    width: 100%;
    padding: 10px 13px;
    color: var(--i9-text);
    background: #f8fafc;
    border: 1px solid var(--i9-line-strong);
    border-radius: 10px;
    outline: 0;
    font-size: 13.5px;
    transition: all .15s ease;
}
input:focus, select:focus, textarea:focus {
    background: #fff;
    border-color: rgba(147, 51, 234, .5);
    box-shadow: 0 0 0 3.5px rgba(147, 51, 234, .10);
}
textarea { min-height: 108px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #94a3b8; opacity: 1; }

/* Garante modo claro em campos legados dentro do layout premium */
.content input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.content select,
.content textarea,
.content .field input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.content .field select,
.content .field textarea {
    color: var(--i9-text) !important;
    background: #fff !important;
    border-color: #cbd5e1 !important;
}
.content input:disabled,
.content input[readonly],
.content select:disabled,
.content textarea:disabled {
    color: #64748b !important;
    background: #f1f5f9 !important;
    opacity: 1 !important;
}
.content label[style*="background:#0d1537"],
.content label[style*="background: #0d1537"] {
    color: #334155 !important;
    background: #f8fafc !important;
    border-color: var(--i9-line) !important;
}

.quick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.quick-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 46px;
    padding: 10px 14px;
    color: var(--quick-color, var(--i9-purple-dark));
    background: var(--quick-bg, var(--i9-purple-soft));
    border: 1px solid rgba(15, 23, 42, .05);
    border-radius: 11px;
    font-size: 13.5px;
    font-weight: 700;
    transition: transform .15s ease;
}
.quick-link:hover { transform: translateY(-1px); }
.quick-link.blue { --quick-color: #1d4ed8; --quick-bg: var(--i9-blue-soft); }
.quick-link.pink { --quick-color: #be123c; --quick-bg: var(--i9-pink-soft); }
.quick-link.purple { --quick-color: #5b21b6; --quick-bg: var(--i9-purple-soft); }

.timeline-list { list-style: none; margin: 0; padding: 0; }
.timeline-list li {
    position: relative;
    display: grid;
    grid-template-columns: 82px 1fr auto;
    gap: 14px;
    padding: 13px 2px 13px 22px;
    border-bottom: 1px solid var(--i9-line);
    color: #334155;
    font-size: 13px;
}
.timeline-list li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 19px;
    width: 8px;
    height: 8px;
    background: var(--i9-purple);
    border: 3px solid #ede9fe;
    border-radius: 50%;
}
.timeline-list li:last-child { border-bottom: 0; }
.timeline-list time { color: var(--i9-muted); font-size: 11.5px; font-variant-numeric: tabular-nums; }

.safe-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.safe-step {
    position: relative;
    padding: 16px 14px;
    text-align: center;
    background: #f8fafc;
    border: 1px solid var(--i9-line);
    border-radius: 14px;
}
.safe-step b {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    margin: 0 auto 8px;
    color: #fff;
    background: var(--i9-brand-gradient);
    border-radius: 50%;
    font-size: 13px;
}
.safe-step strong { display: block; color: var(--i9-navy); font-size: 13px; }
.safe-step span { display: block; margin-top: 4px; color: var(--i9-muted); font-size: 11.5px; line-height: 1.4; }

.radio-fab {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 70;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    color: #fff;
    background: var(--i9-brand-gradient);
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 12px 30px rgba(109, 40, 217, .32);
    cursor: pointer;
    transition: transform .16s ease;
}
.radio-fab:hover { transform: scale(1.05); }
.radio-fab svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 2; }
.radio-panel {
    position: fixed;
    right: 24px;
    bottom: 90px;
    z-index: 69;
    display: none;
    width: 300px;
    padding: 16px;
    color: var(--i9-text);
    background: #fff;
    border: 1px solid var(--i9-line);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, .16);
}
.radio-panel.open { display: block; }
.radio-panel h3 { margin: 0 0 6px; font-size: 15.5px; }
.radio-panel p { margin: 0 0 12px; color: var(--i9-muted); font-size: 12.5px; line-height: 1.45; }
.radio-panel .quick-link { margin-top: 8px; }
.mobile-menu-button { display: none; }
.empty-state { padding: 36px; text-align: center; color: var(--i9-muted); }

.login-page { display: grid; min-height: 100vh; grid-template-columns: minmax(420px, 1fr) minmax(460px, .85fr); background: #fff; }
.login-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
    padding: 54px;
    color: #fff;
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(7, 3, 31, .92) 0%, rgba(35, 8, 78, .78) 50%, rgba(80, 16, 141, .62) 100%),
        url('/images/i9vando/login-mobilidade.png') center/cover no-repeat;
}
.login-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 85%, rgba(255, 43, 147, .32), transparent 36%),
        radial-gradient(circle at 88% 15%, rgba(113, 46, 255, .28), transparent 34%);
    pointer-events: none;
}
.login-brand {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -1px;
    text-shadow: 0 3px 18px rgba(0, 0, 0, .32);
}
.login-brand::before {
    content: "";
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    border-radius: 50%;
    background: #17052f url('/images/i9vando/logo-i9vando.png') center/cover no-repeat;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .28);
}
.login-brand span { color: #ff3ba7; }
.login-copy { position: relative; z-index: 1; max-width: 600px; }
.login-copy h1 { margin: 0 0 16px; font-size: clamp(40px, 4.8vw, 64px); line-height: 1.03; letter-spacing: -2.2px; text-shadow: 0 4px 24px rgba(0, 0, 0, .32); }
.login-copy p { max-width: 520px; color: #f0eaff; font-size: 17px; line-height: 1.6; text-shadow: 0 2px 12px rgba(0, 0, 0, .32); }
.login-points { position: relative; z-index: 1; display: flex; gap: 10px; flex-wrap: wrap; }
.login-points span {
    padding: 9px 13px;
    color: #fff;
    background: rgba(22, 5, 51, .50);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    backdrop-filter: blur(8px);
}
.login-form-side { display: grid; place-items: center; min-height: 100vh; padding: 36px; background: linear-gradient(180deg, #fff, #f8fafc); }
.login-card { width: 100%; max-width: 440px; }
.login-card h2 { margin: 0 0 8px; color: var(--i9-navy); font-size: 32px; font-weight: 800; letter-spacing: -1px; }
.login-card > p { margin: 0 0 26px; color: var(--i9-muted); line-height: 1.55; }
.login-card .field { margin-bottom: 16px; }
.login-card input { min-height: 48px; }
.login-card .btn { width: 100%; min-height: 48px; margin-top: 4px; font-size: 14px; }
.login-help { display: block; margin-top: 16px; color: var(--i9-blue); text-align: center; font-size: 13px; font-weight: 700; }
.login-alert { margin-bottom: 16px; padding: 13px 14px; color: #be123c; background: #fff1f2; border: 1px solid #fecdd3; border-radius: 12px; font-size: 13px; }
.login-alert.success { color: #047857; background: #ecfdf5; border-color: #a7f3d0; }

::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
* { scrollbar-width: thin; scrollbar-color: #cbd5e1 transparent; }

@media (max-width: 1220px) {
    .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-grid { grid-template-columns: 1fr; }
    .safe-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    :root { --i9-sidebar: 0px; }
    .sidebar { width: min(300px, 86vw); transform: translateX(-105%); transition: transform .22s ease; }
    body.menu-open .sidebar { transform: translateX(0); box-shadow: 25px 0 60px rgba(15, 23, 42, .22); }
    .content { margin-left: 0; padding: 0 16px 32px; }
    .premium-header { height: 64px; margin: 0 -16px 20px; padding: 0 16px; }
    .mobile-menu-button { display: grid; place-items: center; width: 40px; height: 40px; background: #fff; border: 1px solid var(--i9-line); border-radius: 10px; cursor: pointer; }
    .global-search { width: auto; flex: 1; }
    .profile-chip div:not(.avatar), .header-tool span { display: none; }
    .page-heading { flex-direction: column; align-items: flex-start; }
    .page-heading-actions { width: 100%; justify-content: flex-start; }
    .form-grid, .kpi-row { grid-template-columns: 1fr; }
    .login-page { grid-template-columns: 1fr; }
    .login-visual { display: none; }
    .login-form-side { min-height: 100vh; }
}
@media (max-width: 620px) {
    .grid, .quick-grid, .safe-steps { grid-template-columns: 1fr; }
    .global-search { display: none; }
    .page-heading h1 { font-size: 26px; }
    .card { padding: 16px; border-radius: 15px; }
    .radio-fab { right: 16px; bottom: 16px; }
    .radio-panel { right: 16px; bottom: 82px; width: calc(100vw - 32px); }
}
