/* ================================================================
   FINSECURETECH CRM — DESIGN SYSTEM
   Matches AI Accident Pilot style
   Navy #1B2A4A · Gold #FFD700 · Red #8B0000
   Font: Inter
   ================================================================ */

/* -------- TOKENS -------- */
:root {
    --navy:      #1B2A4A;
    --navy-700:  #16233d;
    --navy-900:  #0f1830;
    --red:       #8B0000;
    --gold:      #FFD700;
    --gold-soft: #fff7d6;
    --success:   #0ecb81;
    --danger:    #e74c3c;
    --warning:   #f39c12;
    --info:      #3498db;
    --bg:        #f0f2f5;
    --card:      #ffffff;
    --border:    #e5e7eb;
    --text:      #1B2A4A;
    --muted:     #6b7280;
    --muted-2:   #9ca3af;

    --radius-sm: 6px;
    --radius:    10px;
    --radius-lg: 14px;

    --shadow-sm: 0 1px 2px rgba(15,24,48,.05);
    --shadow:    0 4px 16px rgba(15,24,48,.06);
    --shadow-lg: 0 8px 24px rgba(15,24,48,.10);

    --sidebar-w: 240px;
    --topbar-h:  56px;

    --t: 160ms ease;
}

/* -------- RESET -------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
}
h1,h2,h3,h4,h5,h6 { margin: 0 0 .4em; line-height: 1.25; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; }
img { max-width: 100%; height: auto; display: block; }
table { border-collapse: collapse; width: 100%; }
code { background: rgba(27,42,74,.06); padding: 1px 5px; border-radius: 4px; font-size: .9em; }
.text-muted { color: var(--muted); }

/* ================================================================
   APP SHELL
   ================================================================ */
.app-body {
    display: block;
    padding-left: var(--sidebar-w);
    min-height: 100vh;
}
.app-main {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.page-content {
    padding: 24px 28px 48px;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

/* ================================================================
   SIDEBAR
   ================================================================ */
.sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: var(--sidebar-w);
    background: linear-gradient(180deg, var(--navy) 0%, var(--navy-900) 100%);
    color: #cfd6e6;
    display: flex;
    flex-direction: column;
    z-index: 1040;
    transition: transform var(--t);
    overflow: hidden;
}
.sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 14px 12px;
    border-bottom: 1px solid rgba(255,255,255,.06);
    flex-shrink: 0;
}
.brand-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
}
.brand-link:hover { text-decoration: none; }
.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--gold);
    color: var(--navy);
    border-radius: 8px;
    font-weight: 900;
    font-size: 13px;
    letter-spacing: .5px;
    flex-shrink: 0;
}
.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}
.brand-text strong { font-size: 13px; color: #fff; }
.brand-text small { color: #a9b4cc; font-size: 11px; }

.sidebar-close {
    background: transparent;
    border: 0;
    color: #a9b4cc;
    font-size: 16px;
    display: none;
    padding: 6px;
    border-radius: 6px;
}
.sidebar-close:hover { color: #fff; background: rgba(255,255,255,.08); }

/* Nav */
.sidebar-nav {
    flex: 1;
    padding: 12px 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.15) transparent;
}
.sidebar-nav::-webkit-scrollbar { width: 5px; }
.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.15);
    border-radius: 3px;
}

.nav-section {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.nav-title {
    font-size: 11px;
    color: #8a97b3;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 800;
    padding: 8px 12px 4px;
}
.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    color: #cfd6e6;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: background var(--t), color var(--t);
    min-height: 36px;
}
.nav-item i {
    width: 18px;
    text-align: center;
    font-size: 14px;
    color: #93a1c0;
}
.nav-item:hover {
    background: rgba(255,255,255,.06);
    color: #fff;
    text-decoration: none;
}
.nav-item:hover i { color: var(--gold); }
.nav-item.active {
    background: linear-gradient(90deg, rgba(255,215,0,.15), rgba(255,215,0,.05));
    color: #fff;
    border-left: 3px solid var(--gold);
    padding-left: 9px;
}
.nav-item.active i { color: var(--gold); }

/* User Footer */
.sidebar-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-top: 1px solid rgba(255,255,255,.06);
    background: rgba(0,0,0,.15);
    flex-shrink: 0;
}
.user-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}
.user-avatar {
    width: 34px;
    height: 34px;
    background: var(--gold);
    color: var(--navy);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 12px;
    flex-shrink: 0;
}
.user-meta { min-width: 0; }
.user-meta strong {
    display: block;
    color: #fff;
    font-size: 12.5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.user-meta small { color: #a9b4cc; font-size: 11px; }
.btn-logout {
    color: #a9b4cc;
    padding: 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--t);
}
.btn-logout:hover {
    color: #fff;
    background: rgba(255,255,255,.08);
    text-decoration: none;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15,24,48,.5);
    z-index: 1030;
}

/* ================================================================
   TOPBAR (mobile)
   ================================================================ */
.topbar {
    display: none;
    position: sticky;
    top: 0;
    height: var(--topbar-h);
    background: #fff;
    border-bottom: 1px solid var(--border);
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 1010;
    box-shadow: var(--shadow-sm);
}
.hamburger {
    background: transparent;
    border: 0;
    font-size: 18px;
    color: var(--navy);
    padding: 8px;
    border-radius: 6px;
    min-width: 44px;
    min-height: 44px;
}
.hamburger:hover { background: rgba(27,42,74,.06); }
.topbar-title { font-size: 16px; font-weight: 700; margin: 0; }

/* ================================================================
   HEADINGS / WELCOME ROW
   ================================================================ */
.welcome-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}
.page-heading {
    font-size: 22px;
    font-weight: 800;
    color: var(--navy);
    margin: 0 0 4px;
}
.page-subheading {
    color: var(--muted);
    font-size: 13.5px;
    margin: 0;
}
.welcome-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13.5px;
    line-height: 1;
    text-decoration: none;
    transition: var(--t);
    cursor: pointer;
    min-height: 40px;
    white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
}
.btn-primary:hover {
    background: var(--navy-700);
    border-color: var(--navy-700);
    color: #fff;
}
.btn-secondary {
    background: #fff;
    color: var(--navy);
    border-color: var(--border);
}
.btn-secondary:hover {
    background: #f7f8fb;
    border-color: #ccd2dc;
    color: var(--navy);
}
.btn-danger {
    background: var(--red);
    color: #fff;
    border-color: var(--red);
}
.btn-danger:hover { background: #a30000; color: #fff; }
.btn-accent {
    background: var(--gold);
    color: var(--navy);
    border-color: var(--gold);
}
.btn-accent:hover { background: #ffcf00; color: var(--navy); }
.btn-link {
    background: transparent;
    border: 0;
    color: var(--navy);
    padding: 6px 8px;
    font-weight: 600;
    font-size: 13px;
    border-radius: 6px;
}
.btn-link:hover { background: rgba(27,42,74,.06); text-decoration: none; }
.btn-link-danger { color: var(--danger); }
.btn-link-danger:hover { background: rgba(231,76,60,.08); }
.btn-sm { padding: 6px 12px; min-height: 32px; font-size: 12.5px; }
.btn-lg { padding: 14px 26px; min-height: 48px; font-size: 15px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ================================================================
   CARDS
   ================================================================ */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 20px;
    margin-bottom: 20px;
}
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.card-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--navy);
}
.card-link {
    color: var(--navy);
    font-weight: 600;
    font-size: 13px;
}
.card-link:hover { color: var(--red); text-decoration: none; }

.grid-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}
.grid-2col .card { margin-bottom: 0; }

/* ================================================================
   STATS
   ================================================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}
.stat-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow-sm);
    transition: var(--t);
}
.stat-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-1px);
}
.stat-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(27,42,74,.08);
    color: var(--navy);
    border-radius: 10px;
    font-size: 18px;
    flex-shrink: 0;
}
.stat-icon-success { background: rgba(14,203,129,.12); color: var(--success); }
.stat-icon-warning { background: rgba(243,156,18,.12); color: var(--warning); }
.stat-icon-info    { background: rgba(52,152,219,.12); color: var(--info); }
.stat-icon-danger  { background: rgba(231,76,60,.12); color: var(--danger); }
.stat-body { display: flex; flex-direction: column; min-width: 0; }
.stat-label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.stat-value {
    font-size: 22px;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.2;
}
.stat-body small { font-size: 11.5px; color: var(--muted); }

/* ================================================================
   TABLES
   ================================================================ */
.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius);
}
.data-table { width: 100%; font-size: 13.5px; }
.data-table th, .data-table td {
    padding: 12px 10px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid var(--border);
}
.data-table th {
    background: #f7f8fb;
    color: var(--navy);
    font-weight: 700;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: .04em;
    white-space: nowrap;
}
.data-table tbody tr:hover { background: #fafbfd; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table td strong { color: var(--navy); }
.row-actions {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    align-items: center;
}

/* ================================================================
   BADGES
   ================================================================ */
.badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    white-space: nowrap;
}
.badge-success { background: rgba(14,203,129,.14); color: #0a9c62; }
.badge-danger  { background: rgba(231,76,60,.14); color: var(--red); }
.badge-warning { background: rgba(243,156,18,.16); color: #b06a00; }
.badge-info    { background: rgba(52,152,219,.14); color: #1e6fa8; }
.badge-accent  { background: rgba(255,215,0,.22); color: #7a5d00; }
.badge-muted   { background: rgba(107,114,128,.12); color: #4b5563; }

/* ================================================================
   FLASH MESSAGES
   ================================================================ */
.flash {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 14px;
    font-size: 13.5px;
    line-height: 1.45;
    border-left: 4px solid;
    position: relative;
}
.flash i { font-size: 15px; margin-top: 2px; }
.flash-success { background: #ecfdf5; border-color: var(--success); color: #065f46; }
.flash-error   { background: #fef2f2; border-color: var(--danger); color: #7f1d1d; }
.flash-warning { background: #fffbeb; border-color: var(--warning); color: #78350f; }
.flash-info    { background: #eff6ff; border-color: var(--info); color: #1e40af; }
.flash-close {
    margin-left: auto;
    background: transparent;
    border: 0;
    color: inherit;
    opacity: .55;
    font-size: 20px;
    line-height: 1;
    padding: 0 4px;
    align-self: flex-start;
}
.flash-close:hover { opacity: 1; }

/* ================================================================
   FORMS
   ================================================================ */
.field { display: block; margin-bottom: 14px; }
.field-label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 6px;
}
.field-label em { color: var(--red); font-style: normal; }
.field-input {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: var(--t);
}
.field-input:focus-within {
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(27,42,74,.08);
}
.field-input > i {
    color: var(--muted-2);
    padding: 0 0 0 12px;
    font-size: 13px;
    flex-shrink: 0;
}
.field-input input,
.field-input select,
.field-input textarea {
    flex: 1;
    width: 100%;
    border: 0;
    background: transparent;
    padding: 10px 12px;
    font-size: 14px;
    color: var(--text);
    outline: none;
    min-height: 42px;
    font-family: inherit;
}
.field-input textarea {
    padding: 10px 12px;
    resize: vertical;
    min-height: 90px;
}
.field-input input::placeholder { color: var(--muted-2); }
.field-hint {
    display: block;
    color: var(--muted);
    font-size: 11.5px;
    margin-top: 4px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 16px;
    margin-bottom: 8px;
}
.form-grid .col-2 { grid-column: 1 / -1; }

.form-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    gap: 12px;
    flex-wrap: wrap;
}
.form-nav-right { display: flex; gap: 8px; }

.form-section-title {
    font-size: 14px;
    color: var(--navy);
    font-weight: 700;
    margin: 12px 0 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
}

/* Checkbox group */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    transition: var(--t);
}
.checkbox-item:hover { border-color: var(--navy); }
.checkbox-item input {
    width: 16px;
    height: 16px;
    accent-color: var(--navy);
    cursor: pointer;
}
.checkbox-item.checked {
    background: rgba(27,42,74,.04);
    border-color: var(--navy);
}

/* ================================================================
   PROGRESS BAR
   ================================================================ */
.progress-bar {
    height: 8px;
    background: var(--border);
    border-radius: 10px;
    overflow: hidden;
    margin: 6px 0;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--navy), var(--gold));
    transition: width .3s ease;
}

/* ================================================================
   EMPTY STATE
   ================================================================ */
.empty-state {
    text-align: center;
    padding: 48px 20px;
    color: var(--muted);
}
.empty-state i {
    font-size: 44px;
    color: #c9d1e1;
    margin-bottom: 12px;
    display: block;
}
.empty-state h4 {
    font-size: 16px;
    color: var(--navy);
    margin: 0 0 6px;
}
.empty-state p {
    max-width: 420px;
    margin: 0 auto 18px;
    font-size: 13.5px;
}

/* ================================================================
   LOGIN PAGE
   ================================================================ */
.auth-page {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-900) 100%);
    min-height: 100vh;
    padding: 24px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.auth-card {
    background: #fff;
    padding: 24px 26px 20px;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0,0,0,.18);
    width: 100%;
    max-width: 420px;
}
.auth-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}
.auth-brand .brand-mark { width: 36px; height: 36px; font-size: 12px; }
.auth-brand div { display: flex; flex-direction: column; }
.auth-brand strong { color: var(--navy); font-size: 13.5px; }
.auth-brand small { color: var(--muted); font-size: 10.5px; }

.auth-title {
    font-size: 20px;
    color: var(--navy);
    margin: 0 0 4px;
    font-weight: 800;
}
.auth-subtitle {
    color: var(--muted);
    margin: 0 0 18px;
    font-size: 13px;
}
.auth-form .field { margin-bottom: 12px; }
.auth-form .btn { min-height: 44px; font-size: 14px; }

/* ================================================================
   RESPONSIVE — TABLET (max 1023px)
   ================================================================ */
@media (max-width: 1023px) {
    .app-body { padding-left: 0; }
    .sidebar {
        transform: translateX(-100%);
        box-shadow: 0 0 40px rgba(0,0,0,.3);
    }
    body.sidebar-open .sidebar { transform: translateX(0); }
    body.sidebar-open .sidebar-overlay { display: block; }
    .sidebar-close { display: inline-flex; align-items: center; justify-content: center; }
    .topbar { display: flex; }
    .grid-2col { grid-template-columns: 1fr; }
    .page-content { padding: 18px 16px 40px; }
}

/* ================================================================
   RESPONSIVE — MOBILE (max 767px)
   ================================================================ */
@media (max-width: 767px) {
    body { font-size: 14.5px; }
    .page-heading { font-size: 19px; }

    .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .stat-card { padding: 12px; gap: 10px; }
    .stat-icon { width: 38px; height: 38px; font-size: 15px; }
    .stat-value { font-size: 19px; }

    .form-grid { grid-template-columns: 1fr; }
    .checkbox-group { grid-template-columns: 1fr 1fr; }

    .card { padding: 16px; }
    .card-header h3 { font-size: 15px; }

    .welcome-actions { width: 100%; }
    .welcome-actions .btn { flex: 1; }
}

/* ================================================================
   RESPONSIVE — SMALL MOBILE (max 419px)
   ================================================================ */
@media (max-width: 419px) {
    .stats-grid { grid-template-columns: 1fr; }
    .checkbox-group { grid-template-columns: 1fr; }
    .page-content { padding: 14px 12px 36px; }
    .page-heading { font-size: 17px; }
}

/* ================================================================
   PHASE 2 ADDITIONS
   ================================================================ */

/* -------- Mobile Card View for Tables -------- */
@media (max-width: 767px) {
    .table-wrap table.data-table thead { display: none; }

    .table-wrap table.data-table,
    .table-wrap table.data-table tbody,
    .table-wrap table.data-table tr,
    .table-wrap table.data-table td {
        display: block;
        width: 100%;
    }

    .table-wrap table.data-table tr {
        border: 1px solid var(--border);
        border-radius: 10px;
        margin-bottom: 10px;
        padding: 12px;
        background: #fff;
        box-shadow: var(--shadow-sm);
    }

    .table-wrap table.data-table td {
        border: 0;
        padding: 6px 0;
        text-align: left;
        font-size: 13px;
    }

    .table-wrap table.data-table td::before {
        content: attr(data-label);
        display: inline-block;
        font-weight: 700;
        color: var(--muted);
        font-size: 10.5px;
        text-transform: uppercase;
        letter-spacing: .04em;
        min-width: 70px;
        margin-right: 8px;
    }

    .table-wrap table.data-table td:empty { display: none; }

    .row-actions {
        display: flex;
        gap: 6px;
        flex-wrap: wrap;
        margin-top: 6px;
    }

    .row-actions .btn { flex: 1; }
}

/* -------- Notification Bell -------- */
.topbar-notify {
    position: relative;
    background: transparent;
    border: 0;
    font-size: 17px;
    color: var(--navy);
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.topbar-notify:hover { background: rgba(27,42,74,.06); }
.topbar-notify .dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 10px;
    height: 10px;
    background: var(--danger);
    border-radius: 50%;
    border: 2px solid #fff;
    animation: pulse-badge 2s infinite;
}

/* -------- Call Flow Improvements -------- */
.call-flow-step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: #fafbfd;
    border-radius: 10px;
    margin-bottom: 8px;
    border-left: 3px solid var(--gold);
}
.call-flow-step .num {
    width: 26px;
    height: 26px;
    background: var(--navy);
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 12px;
    flex-shrink: 0;
}
.call-flow-step .txt {
    font-size: 13px;
    color: var(--navy);
    font-weight: 500;
}

/* -------- Save & Next Button -------- */
.btn-save-next {
    background: linear-gradient(135deg, var(--success), #0a9c62);
    color: #fff;
    border: 0;
    font-weight: 700;
    padding: 14px 24px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    transition: all .2s;
    min-height: 48px;
    box-shadow: 0 4px 12px rgba(14,203,129,.3);
}
.btn-save-next:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(14,203,129,.4);
}

/* -------- Auto-save Indicator -------- */
.autosave-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: var(--muted);
    padding: 4px 10px;
    background: rgba(14,203,129,.1);
    color: #0a9c62;
    border-radius: 20px;
    font-weight: 600;
    transition: all .3s;
}
.autosave-badge.saving {
    background: rgba(243,156,18,.15);
    color: #b06a00;
}
.autosave-badge.saved {
    background: rgba(14,203,129,.15);
    color: #0a9c62;
}

/* -------- Pulse Animation -------- */
@keyframes pulse-badge {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.85; }
}
