/* ============================================================
   FINANCEIRO v2.0 — Flutter/Material-Inspired Dark Theme
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Surface palette (Material 3 inspired) */
    --bg-base:        #0F0F1A;
    --bg-surface:     #1A1A2E;
    --bg-surface-2:   #222240;
    --bg-surface-3:   #2A2A4A;
    --bg-elevated:    #30305A;

    /* Accent palette */
    --primary:        #6C63FF;
    --primary-light:  #8B83FF;
    --primary-dark:   #4A42D4;
    --primary-bg:     rgba(108, 99, 255, 0.12);

    --success:        #4ECDC4;
    --success-bg:     rgba(78, 205, 196, 0.12);
    --danger:         #FF6B6B;
    --danger-bg:      rgba(255, 107, 107, 0.12);
    --warning:        #FFE66D;
    --warning-bg:     rgba(255, 230, 109, 0.12);
    --info:           #74B9FF;
    --info-bg:        rgba(116, 185, 255, 0.12);

    /* Text */
    --text-primary:   #F0F0FF;
    --text-secondary: #A0A0C0;
    --text-muted:     #6A6A8A;

    /* Misc */
    --radius-sm:      8px;
    --radius-md:      12px;
    --radius-lg:      16px;
    --radius-xl:      20px;
    --radius-pill:    50px;
    --shadow-sm:      0 2px 8px rgba(0,0,0,0.25);
    --shadow-md:      0 4px 20px rgba(0,0,0,0.35);
    --shadow-lg:      0 8px 40px rgba(0,0,0,0.45);
    --transition:     0.25s cubic-bezier(0.4, 0, 0.2, 1);

    --nav-height:     64px;
    --bottom-nav-h:   68px;
}

/* ──── RESET & BASE ──── */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-base);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    min-height: 100dvh;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Remove Bootstrap dark overrides we don't want */
[data-bs-theme="dark"] {
    --bs-body-bg: var(--bg-base);
    --bs-body-color: var(--text-primary);
}

/* ──── SCROLLBAR ──── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg-elevated); border-radius: 3px; }

/* ──── ANIMATIONS ──── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes slideDown {
    from { opacity: 0; max-height: 0; }
    to   { opacity: 1; max-height: 600px; }
}
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.05); }
}
@keyframes shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.animate-in {
    animation: fadeInUp 0.5s var(--transition) both;
}

.skeleton {
    background: linear-gradient(90deg, var(--bg-surface-2) 25%, var(--bg-surface-3) 50%, var(--bg-surface-2) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

/* ──── TOP APP BAR ──── */
.app-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 100;
    background: rgba(15, 15, 26, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.app-bar-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 16px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.app-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.app-logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #6C63FF, #4ECDC4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.app-bar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-icon {
    background: none;
    border: none;
    color: var(--text-secondary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}
.btn-icon:hover { background: var(--primary-bg); color: var(--primary-light); }
.btn-icon svg { width: 20px; height: 20px; }

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background: var(--primary-bg);
    color: var(--primary-light);
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}
.user-avatar:hover { transform: scale(1.1); box-shadow: 0 0 16px rgba(108,99,255,0.4); }

/* ──── BOTTOM NAVIGATION ──── */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-nav-h);
    background: rgba(15, 15, 26, 0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    z-index: 100;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.nav-item {
    flex: 1;
    max-width: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    border: none;
    background: none;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    border-radius: var(--radius-md);
}
.nav-item svg { width: 22px; height: 22px; transition: var(--transition); }
.nav-item.active {
    color: var(--primary-light);
}
.nav-item.active svg { transform: scale(1.1); }
.nav-item.active::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 3px;
    background: var(--primary);
    border-radius: 0 0 4px 4px;
}
.nav-item:active { transform: scale(0.92); }

/* ──── MAIN CONTENT ──── */
.app-main {
    max-width: 900px;
    margin: 0 auto;
    padding: calc(var(--nav-height) + 12px) 16px calc(var(--bottom-nav-h) + 16px);
    min-height: 100dvh;
}

.page { display: none; }
.page.active { display: block; animation: fadeIn 0.3s ease; }

/* ──── MONTH NAV ──── */
.month-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 8px 0;
}

.month-label {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    background: var(--bg-surface);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-pill);
    padding: 8px 20px;
    cursor: pointer;
    transition: var(--transition);
    min-width: 180px;
    text-align: center;
    text-transform: capitalize;
}
.month-label:hover { background: var(--bg-surface-2); border-color: var(--primary); }

/* ──── SUMMARY GRID ──── */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.summary-card {
    background: var(--bg-surface);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius-lg);
    padding: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: var(--transition);
    animation: fadeInUp 0.4s ease both;
}
.summary-card:nth-child(2) { animation-delay: 0.05s; }
.summary-card:nth-child(3) { animation-delay: 0.1s; }
.summary-card:nth-child(4) { animation-delay: 0.15s; }

.summary-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.summary-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.summary-icon svg { width: 20px; height: 20px; }

.card-income .summary-icon  { background: var(--success-bg); color: var(--success); }
.card-expense .summary-icon { background: var(--danger-bg); color: var(--danger); }
.card-pending .summary-icon { background: var(--warning-bg); color: var(--warning); }
.card-balance .summary-icon { background: var(--primary-bg); color: var(--primary-light); }

.summary-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.summary-label {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.summary-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
}
.summary-count {
    font-size: 0.72rem;
    color: var(--text-secondary);
}

.card-balance .summary-value.negative { color: var(--danger); }

/* ──── SECTION BLOCKS ──── */
.section-block {
    background: var(--bg-surface);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 16px;
    animation: fadeInUp 0.4s ease both;
}

.section-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}
.section-title svg { width: 18px; height: 18px; }

/* ──── ALERTS ──── */
.alert-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    animation: fadeInUp 0.3s ease both;
}
.alert-item.alert-danger  { background: var(--danger-bg); color: var(--danger); border-left: 3px solid var(--danger); }
.alert-item.alert-warning { background: var(--warning-bg); color: var(--warning); border-left: 3px solid var(--warning); }
.alert-item.alert-info    { background: var(--info-bg); color: var(--info); border-left: 3px solid var(--info); }

/* ──── CHARTS ──── */
.charts-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

@media (max-width: 640px) {
    .charts-row { grid-template-columns: 1fr; }
    .summary-grid { grid-template-columns: repeat(2, 1fr); }
}

.chart-card {
    background: var(--bg-surface);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius-lg);
    padding: 20px;
    animation: fadeInUp 0.4s ease 0.15s both;
}

.chart-wrap {
    position: relative;
    max-height: 220px;
    display: flex;
    justify-content: center;
}

.chart-legend {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.chart-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}
.chart-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ──── INSIGHTS ──── */
.insights-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.insight-item {
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-size: 0.82rem;
    font-weight: 500;
    border-left: 3px solid;
}
.insight-item.type-success { background: var(--success-bg); color: var(--success); border-color: var(--success); }
.insight-item.type-warning { background: var(--warning-bg); color: var(--warning); border-color: var(--warning); }
.insight-item.type-danger  { background: var(--danger-bg); color: var(--danger); border-color: var(--danger); }
.insight-item.type-info    { background: var(--info-bg); color: var(--info); border-color: var(--info); }

/* ──── LEDGER CARDS ──── */
.ledger-card {
    background: var(--bg-surface);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
    overflow: hidden;
    animation: fadeInUp 0.4s ease both;
}
.ledger-card:nth-child(2) { animation-delay: 0.05s; }

.ledger-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}
.ledger-header:hover { background: rgba(255,255,255,0.03); }

.ledger-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 0.95rem;
}
.ledger-title svg { width: 20px; height: 20px; }

.ledger-chevron {
    transition: transform var(--transition);
    color: var(--text-muted);
    width: 18px;
    height: 18px;
}
.ledger-header.open .ledger-chevron { transform: rotate(180deg); }

.ledger-body {
    padding: 0 20px 20px;
    overflow: hidden;
}

.btn-add {
    width: 100%;
    margin-bottom: 12px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 10px;
    border: 2px dashed;
    background: transparent;
    transition: var(--transition);
}
.btn-add:hover { transform: scale(1.01); }

/* ──── TRANSACTION LIST ──── */
.tx-list { display: flex; flex-direction: column; gap: 8px; }

/* ── Base card ── */
.tx-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    transition: var(--transition);
    border: 1px solid transparent;
    animation: fadeInUp 0.3s ease both;
}

/* ── PAGO / RECEBIDO: verde ── */
.tx-item.state-paid {
    background: rgba(78, 205, 196, 0.10);
    border-color: rgba(78, 205, 196, 0.25);
}
.tx-item.state-paid:hover {
    background: rgba(78, 205, 196, 0.18);
    border-color: rgba(78, 205, 196, 0.35);
}

/* ── PENDENTE: vermelho ── */
.tx-item.state-pending {
    background: rgba(255, 107, 107, 0.10);
    border-color: rgba(255, 107, 107, 0.25);
}
.tx-item.state-pending:hover {
    background: rgba(255, 107, 107, 0.18);
    border-color: rgba(255, 107, 107, 0.35);
}

/* ── VENCIDO: vermelho forte ── */
.tx-item.state-overdue {
    background: rgba(255, 107, 107, 0.18);
    border-color: rgba(255, 107, 107, 0.40);
    border-left: 4px solid var(--danger);
}
.tx-item.state-overdue:hover {
    background: rgba(255, 107, 107, 0.25);
}

/* ── Neutro (entrada sem status definido) ── */
.tx-item.state-neutral {
    background: var(--bg-surface-2);
    border-color: rgba(255,255,255,0.05);
}
.tx-item.state-neutral:hover {
    background: var(--bg-surface-3);
}

.tx-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.7rem;
    font-weight: 800;
}

.tx-info {
    flex: 1;
    min-width: 0;
}
.tx-desc {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tx-meta {
    font-size: 0.72rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tx-notes {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-top: 2px;
}

.tx-right {
    text-align: right;
    flex-shrink: 0;
}
.tx-amount {
    font-size: 0.92rem;
    font-weight: 800;
}
.tx-amount.positive { color: var(--success); }
.tx-amount.negative { color: var(--danger); }

.tx-actions {
    display: flex;
    gap: 4px;
    margin-top: 4px;
}
.tx-actions button {
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255,255,255,0.1);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}
.tx-actions button:hover { background: var(--primary-bg); color: var(--primary-light); border-color: var(--primary); }
.tx-actions .btn-pay { color: var(--success); border-color: rgba(78,205,196,0.3); }
.tx-actions .btn-pay:hover { background: var(--success-bg); }
.tx-actions .btn-del { color: var(--danger); border-color: rgba(255,107,107,0.3); }
.tx-actions .btn-del:hover { background: var(--danger-bg); }

.tx-empty {
    text-align: center;
    padding: 24px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ──── TAGS / CATEGORIES ──── */
.tags-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--bg-surface-2);
    border-radius: var(--radius-pill);
    font-size: 0.82rem;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.05);
}
.tag-chip:hover { background: var(--bg-surface-3); }

.tag-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.tag-remove {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: none;
    background: rgba(255,107,107,0.2);
    color: var(--danger);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.tag-remove:hover { background: rgba(255,107,107,0.4); transform: scale(1.1); }

/* ──── CARD CHIPS ──── */
.cards-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.card-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--bg-surface-2);
    border-radius: var(--radius-md);
    border-left: 4px solid;
    transition: var(--transition);
}
.card-chip:hover { background: var(--bg-surface-3); }

.card-chip-info { flex: 1; }
.card-chip-name { font-weight: 700; font-size: 0.9rem; }
.card-chip-meta { font-size: 0.75rem; color: var(--text-muted); }

/* ──── INSTALLMENT PREVIEW ──── */
.installment-preview {
    background: var(--bg-surface-2);
    border-radius: var(--radius-md);
    padding: 14px;
    margin-bottom: 12px;
}
.installment-preview h6 {
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--primary-light);
}
.installment-preview ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.installment-preview li {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    padding: 4px 0;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.installment-preview li:last-child { border: none; }

/* ──── BUTTONS ──── */
.btn-gradient {
    background: linear-gradient(135deg, #6C63FF 0%, #4ECDC4 100%) !important;
    border: none !important;
    color: white !important;
    font-weight: 700;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3);
}
.btn-gradient:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 25px rgba(108, 99, 255, 0.45);
}
.btn-gradient:active { transform: translateY(0); }

/* ──── MODALS ──── */
.modal-content {
    background: var(--bg-surface) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: var(--radius-xl) !important;
    box-shadow: var(--shadow-lg);
}
.modal-header {
    border-bottom-color: rgba(255,255,255,0.06) !important;
    padding: 20px 24px 16px;
}
.modal-footer {
    border-top-color: rgba(255,255,255,0.06) !important;
    padding: 16px 24px 20px;
}
.modal-body { padding: 16px 24px; }
.modal-title { font-weight: 700; font-size: 1.05rem; }

.form-control, .form-select {
    background: var(--bg-surface-2) !important;
    border-color: rgba(255,255,255,0.08) !important;
    color: var(--text-primary) !important;
    border-radius: var(--radius-md) !important;
    transition: var(--transition);
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(108,99,255,0.2) !important;
}

.form-floating > label {
    color: var(--text-muted) !important;
}

/* ──── TOAST ──── */
.toast {
    background: var(--bg-elevated) !important;
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-primary);
    border-radius: var(--radius-md) !important;
}

/* ──── DROPDOWN ──── */
.dropdown-menu {
    background: var(--bg-surface-2) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-lg);
}
.dropdown-item {
    color: var(--text-primary) !important;
    transition: var(--transition);
    border-radius: var(--radius-sm);
}
.dropdown-item:hover { background: var(--primary-bg) !important; }
.dropdown-item-text { color: var(--text-primary) !important; }

/* ──── AUTH PAGE ──── */
.auth-page {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.auth-bg-shapes {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
}
.shape-1 { width: 400px; height: 400px; background: #6C63FF; top: -100px; right: -100px; }
.shape-2 { width: 300px; height: 300px; background: #4ECDC4; bottom: -50px; left: -50px; }
.shape-3 { width: 200px; height: 200px; background: #FF6B6B; top: 50%; left: 50%; transform: translate(-50%,-50%); }

.auth-card {
    position: relative;
    z-index: 1;
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-xl);
    padding: 40px 32px 32px;
    box-shadow: var(--shadow-lg);
}

.auth-logo {
    text-align: center;
    margin-bottom: 32px;
}
.logo-icon {
    display: inline-flex;
    margin-bottom: 12px;
}
.auth-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0;
}
.auth-title span {
    background: linear-gradient(135deg, #6C63FF, #4ECDC4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.auth-subtitle {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-top: 4px;
}

.auth-switch {
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.auth-switch a {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 600;
}
.auth-switch a:hover { text-decoration: underline; }

.auth-footer {
    position: relative;
    z-index: 1;
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-top: 20px;
    text-align: center;
}

.btn-text, .btn-loader {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ──── RESPONSIVE ──── */
@media (max-width: 480px) {
    .summary-value { font-size: 0.95rem; }
    .summary-label { font-size: 0.68rem; }
    .summary-card { padding: 12px; gap: 8px; }
    .summary-icon { width: 34px; height: 34px; }
    .summary-icon svg { width: 16px; height: 16px; }
    .ledger-body { padding: 0 14px 14px; }
    .tx-item { padding: 10px 12px; gap: 10px; }
    .auth-card { padding: 32px 20px 24px; }
    .section-block { padding: 16px; }
    .modal-body { padding: 16px; }
}

/* ──── MISC ──── */
.text-success { color: var(--success) !important; }
.text-danger  { color: var(--danger) !important; }
.text-warning { color: var(--warning) !important; }
.text-info    { color: var(--info) !important; }
.text-muted   { color: var(--text-muted) !important; }

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}
.empty-state svg { width: 48px; height: 48px; margin-bottom: 12px; opacity: 0.3; }
.empty-state p { font-size: 0.88rem; }
