/* ===== EXPENSEFLOW v2 - PREMIUM REDESIGN ===== */

/* ===== GOOGLE FONTS FALLBACK ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
    --primary: #7C5CFC;
    --primary-soft: rgba(124, 92, 252, 0.12);
    --primary-medium: rgba(124, 92, 252, 0.25);
    --primary-glow: rgba(124, 92, 252, 0.35);
    --accent: #36D1DC;
    --accent-soft: rgba(54, 209, 220, 0.12);
    --income: #34D399;
    --income-soft: rgba(52, 211, 153, 0.12);
    --income-medium: rgba(52, 211, 153, 0.25);
    --expense: #F87171;
    --expense-soft: rgba(248, 113, 113, 0.12);
    --expense-medium: rgba(248, 113, 113, 0.25);
    --warning: #FBBF24;
    --warning-soft: rgba(251, 191, 36, 0.12);
    --danger: #EF4444;

    --font: 'Inter', system-ui, -apple-system, sans-serif;
    --radius-xl: 24px;
    --radius: 18px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --radius-xs: 8px;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition: 0.3s var(--ease);

    --nav-height: 76px;
    --header-height: 68px;
    --app-pad-x: 20px;
}

/* ===== DARK THEME ===== */
[data-theme="dark"] {
    --bg: #0a0a12;
    --bg-elevated: #12121e;
    --bg-card: #181828;
    --bg-card-hover: #1e1e30;
    --bg-input: rgba(255, 255, 255, 0.05);
    --bg-input-focus: rgba(255, 255, 255, 0.08);
    --text: #F1F1F6;
    --text-secondary: #9494AC;
    --text-muted: #5C5C72;
    --border: rgba(255, 255, 255, 0.06);
    --border-light: rgba(255, 255, 255, 0.03);
    --overlay: rgba(0, 0, 0, 0.7);
    --nav-bg: rgba(10, 10, 18, 0.92);
    --header-bg: rgba(10, 10, 18, 0.85);
    --modal-bg: #181828;
    --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
    --glow-1: rgba(124, 92, 252, 0.08);
    --glow-2: rgba(54, 209, 220, 0.06);
}

/* ===== LIGHT THEME ===== */
[data-theme="light"] {
    --bg: #F4F3F9;
    --bg-elevated: #FFFFFF;
    --bg-card: #FFFFFF;
    --bg-card-hover: #F8F7FC;
    --bg-input: rgba(0, 0, 0, 0.04);
    --bg-input-focus: rgba(0, 0, 0, 0.06);
    --text: #1A1A2E;
    --text-secondary: #6B6B80;
    --text-muted: #A0A0B0;
    --border: rgba(0, 0, 0, 0.06);
    --border-light: rgba(0, 0, 0, 0.03);
    --overlay: rgba(0, 0, 0, 0.45);
    --nav-bg: rgba(255, 255, 255, 0.92);
    --header-bg: rgba(244, 243, 249, 0.85);
    --modal-bg: #FFFFFF;
    --card-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    --glow-1: rgba(124, 92, 252, 0.05);
    --glow-2: rgba(54, 209, 220, 0.04);
}

/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    font-size: 16px;
    -webkit-tap-highlight-color: transparent;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    min-height: 100dvh;
    overflow-x: hidden;
    transition: background 0.4s var(--ease), color 0.3s var(--ease);
    -webkit-font-smoothing: antialiased;
}

input, select, button, textarea {
    font-family: inherit;
    font-size: inherit;
    border: none;
    outline: none;
    background: none;
    color: inherit;
}

button { cursor: pointer; -webkit-appearance: none; }
a { text-decoration: none; color: inherit; }
.hidden { display: none !important; }
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ===== SPLASH SCREEN ===== */
.splash-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.splash-screen.fade-out { opacity: 0; visibility: hidden; }
.splash-content { text-align: center; }

.splash-rings {
    width: 100px;
    height: 100px;
    position: relative;
    margin: 0 auto 24px;
}

.ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid transparent;
}

.ring-1 {
    border-top-color: var(--primary);
    animation: spinRing 1.2s linear infinite;
}

.ring-2 {
    inset: 8px;
    border-right-color: var(--accent);
    animation: spinRing 1.5s linear infinite reverse;
}

.ring-3 {
    inset: 16px;
    border-bottom-color: var(--income);
    animation: spinRing 2s linear infinite;
}

.splash-logo-icon {
    position: absolute;
    inset: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.splash-logo-icon svg { width: 36px; height: 36px; }

@keyframes spinRing { to { transform: rotate(360deg); } }

.splash-title {
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.splash-subtitle {
    color: var(--text-muted);
    margin-top: 6px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.splash-dots {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 32px;
}

.splash-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    animation: dotPulse 1.2s ease infinite;
}

.splash-dots span:nth-child(2) { animation-delay: 0.2s; }
.splash-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.3); }
}

/* ===== CARD ELEVATED ===== */
.card-elevated {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    padding: 18px;
    transition: all var(--transition);
}

/* ===== APP LAYOUT ===== */
.app {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100dvh;
    position: relative;
    padding-bottom: calc(var(--nav-height) + 20px);
}

/* ===== HEADER ===== */
.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    margin: 0 calc(var(--app-pad-x, 20px) * -1);
    height: var(--header-height);
    background: linear-gradient(135deg, #FF8C00, #FF6B00, #E85D04);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 4px 20px rgba(255, 107, 0, 0.25);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2C3E8F;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15), 0 2px 6px rgba(0,0,0,0.15);
    flex-shrink: 0;
}

.header-avatar svg { width: 26px; height: 26px; }

.header-greeting {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
}

.header-title {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.3px;
    color: #fff;
}

.header-right { display: flex; gap: 8px; }

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    position: relative;
}

.glass-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
}

.icon-btn:active { transform: scale(0.9); }
.icon-btn svg { width: 18px; height: 18px; }

.notification-badge {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 16px;
    height: 16px;
    background: var(--expense);
    border-radius: 50%;
    font-size: 9px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border: 2px solid var(--bg);
}

/* ===== DATE LABEL ===== */
.date-label {
    padding: 0 20px;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 4px;
}

/* ===== SEARCH BAR ===== */
.search-bar {
    padding: 0 20px 12px;
    animation: slideDown 0.3s var(--ease);
}

.search-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    transition: border-color var(--transition);
}

.search-input-wrap:focus-within { border-color: var(--primary); }
.search-input-wrap svg { width: 18px; height: 18px; color: var(--text-muted); flex-shrink: 0; }
.search-input-wrap input { flex: 1; background: none; font-size: 15px; font-weight: 500; }
.search-close { font-size: 22px; color: var(--text-muted); padding: 0 4px; }

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== PAGES ===== */
.pages-container { padding: 0 20px 20px; }
.page { display: none; animation: fadeIn 0.35s var(--ease); }
.page.active { display: block; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== BALANCE RING CARD ===== */
.balance-ring-card {
    margin-top: 10px;
    padding: 28px 20px 22px;
    border-radius: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.balance-ring-card::before {
    content: '';
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 92, 252, 0.06) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
    pointer-events: none;
}

.ring-card-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    text-align: center;
}

.ring-container {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 0 auto;
}

.ring-container canvas {
    width: 100%;
    height: 100%;
}

.ring-center-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.ring-center-amount {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -1px;
    color: var(--text);
}

.ring-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 22px;
    width: 100%;
    flex-wrap: wrap;
}

.ring-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ring-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.15);
}

.ring-legend-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

.ring-legend-value {
    font-size: 13px;
    font-weight: 800;
    color: var(--text);
}

/* ===== ACTION GRID ===== */
.action-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 20px;
}

.action-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    transition: all 0.3s var(--spring);
    background: var(--bg-card);
}

.action-card:active {
    transform: scale(0.95);
}

.action-glow {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    filter: blur(30px);
    opacity: 0.15;
    top: -20px;
    right: -20px;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.action-card:active .action-glow { opacity: 0.3; }

.action-income .action-glow { background: #34D399; }
.action-expense .action-glow { background: #F87171; }
.action-transfer .action-glow { background: #7C5CFC; }
.action-budget .action-glow { background: #FBBF24; }

.action-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s var(--spring);
}

.action-card:active .action-icon-wrap {
    transform: rotate(-8deg) scale(1.12);
}

.action-icon-wrap svg {
    width: 20px;
    height: 20px;
    color: #fff;
}

.action-income .action-icon-wrap {
    background: linear-gradient(135deg, #34D399, #059669);
    box-shadow: 0 4px 14px rgba(52, 211, 153, 0.35);
}

.action-expense .action-icon-wrap {
    background: linear-gradient(135deg, #F87171, #DC2626);
    box-shadow: 0 4px 14px rgba(248, 113, 113, 0.35);
}

.action-transfer .action-icon-wrap {
    background: linear-gradient(135deg, #7C5CFC, #5B3FD9);
    box-shadow: 0 4px 14px rgba(124, 92, 252, 0.35);
}

.action-budget .action-icon-wrap {
    background: linear-gradient(135deg, #FBBF24, #D97706);
    box-shadow: 0 4px 14px rgba(251, 191, 36, 0.35);
}

.action-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.action-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.2px;
}

.action-desc {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
}

/* ===== SECTION HEADER ===== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 24px 0 12px;
}

.section-header h3 {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.2px;
}

.link-btn {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 20px;
    background: var(--primary-soft);
    transition: all var(--transition);
}

.link-btn:active { transform: scale(0.95); }

.pill-select {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

/* ===== CHART CARD ===== */
.card-elevated canvas {
    margin: -4px;
    max-height: 320px;
}

#category-chart { height: 260px !important; }
#income-expense-chart { height: 220px !important; }
#trend-chart { height: 200px !important; }

.chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border-light);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ===== BUDGET PROGRESS ===== */
.budget-progress-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.budget-progress-item {
    padding: 16px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.budget-progress-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.budget-progress-header span:first-child {
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.budget-progress-header span:last-child {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.progress-bar {
    height: 8px;
    background: var(--bg-input);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 1s var(--ease);
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.progress-fill.warning { background: linear-gradient(90deg, #FBBF24, #F59E0B); }
.progress-fill.danger { background: linear-gradient(90deg, #F87171, #EF4444); }

/* ===== GOALS ===== */
.goals-list {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}

.goals-list::-webkit-scrollbar { display: none; }

.goal-card {
    min-width: 200px;
    padding: 16px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border);
    flex-shrink: 0;
    scroll-snap-align: start;
    transition: all var(--transition);
}

.goal-card-title { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.goal-card-date { font-size: 11px; color: var(--text-muted); margin-bottom: 10px; font-weight: 500; }

.goal-card-amounts {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 8px;
}

.goal-card-amounts span:first-child { color: var(--primary); font-weight: 700; }
.goal-card-amounts span:last-child { color: var(--text-muted); }

.goal-progress-ring { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.goal-percent { font-size: 20px; font-weight: 900; color: var(--primary); }

/* ===== TRANSACTIONS ===== */
.transactions-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.transactions-list.full { padding-bottom: 20px; }

.tx-group-header {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    padding: 10px 0 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tx-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: all var(--transition);
    animation: txSlide 0.35s var(--ease) both;
    cursor: pointer;
}

.tx-item:active { transform: scale(0.98); background: var(--bg-card-hover); }

@keyframes txSlide {
    from { opacity: 0; transform: translateX(-12px); }
    to { opacity: 1; transform: translateX(0); }
}

.tx-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.tx-details { flex: 1; min-width: 0; }

.tx-category {
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tx-note {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
    font-weight: 500;
}

.tx-right { text-align: right; flex-shrink: 0; }

.tx-amount { font-size: 15px; font-weight: 800; }
.tx-amount.income { color: var(--income); }
.tx-amount.expense { color: var(--expense); }

.tx-date { font-size: 11px; color: var(--text-muted); margin-top: 2px; font-weight: 500; }

/* ===== EMPTY STATES ===== */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

.empty-state.small { padding: 24px 16px; }

.empty-illustration { width: 80px; height: 80px; margin-bottom: 16px; color: var(--text-muted); }
.empty-illustration svg { width: 100%; height: 100%; }

.empty-state p { font-size: 15px; font-weight: 700; color: var(--text-secondary); }
.empty-state span { font-size: 13px; color: var(--text-muted); margin-top: 4px; font-weight: 500; }

/* ===== FILTER BAR ===== */
.filter-bar { margin-top: 8px; }

.filter-chips { display: flex; gap: 8px; margin-bottom: 12px; }

.chip {
    padding: 8px 18px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 700;
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    transition: all var(--transition);
    white-space: nowrap;
}

.chip.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px var(--primary-glow);
}

.chip:active { transform: scale(0.95); }

.filter-row { display: flex; gap: 8px; margin-bottom: 16px; }

.filter-select {
    flex: 1;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
}

/* ===== ANALYTICS ===== */
.analytics-period { display: flex; gap: 8px; margin: 12px 0 16px; }

.stats-bento {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

.stats-bento-header { display: flex; align-items: center; justify-content: space-between; margin: 14px 0 6px; }
.stats-bento-title { font-size: 13px; font-weight: 700; color: var(--text-muted); letter-spacing: 0.5px; text-transform: uppercase; margin: 0; }

.stats-bento-4 {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 14px;
}
@media (min-width: 640px) {
    .stats-bento-4 { grid-template-columns: repeat(4, 1fr); }
}
.stat-count { background: var(--warning-soft); }
.stat-count .stat-icon-wrap { background: rgba(251, 191, 36, 0.25); color: var(--warning); }
.stat-count .stat-value { color: var(--warning); }
.stat-savings .stat-value { color: var(--primary); }

.stat-card {
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.04;
    border-radius: inherit;
}

.stat-income { background: var(--income-soft); }
.stat-expense { background: var(--expense-soft); }
.stat-savings { background: var(--primary-soft); }
.stat-count { background: var(--accent-soft); }

.stat-icon-wrap {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.stat-income .stat-icon-wrap { background: var(--income-medium); color: var(--income); }
.stat-expense .stat-icon-wrap { background: var(--expense-medium); color: var(--expense); }
.stat-savings .stat-icon-wrap { background: var(--primary-medium); color: var(--primary); }
.stat-count .stat-icon-wrap { background: var(--accent-soft); color: var(--accent); }

.stat-icon-wrap svg { width: 14px; height: 14px; }
.stat-label { font-size: 12px; color: var(--text-muted); font-weight: 600; }
.stat-value { font-size: 22px; font-weight: 900; margin-top: 2px; letter-spacing: -0.5px; }

.stat-income .stat-value { color: var(--income); }
.stat-expense .stat-value { color: var(--expense); }

.insights-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }

.insight-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.insight-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.insight-text { font-size: 13px; color: var(--text-secondary); line-height: 1.5; font-weight: 500; }
.insight-text strong { color: var(--text); font-weight: 700; }

/* ===== SETTINGS ===== */
.settings-group { margin-top: 20px; }

.settings-group:first-child { margin-top: 12px; }

.settings-group-title {
    font-size: 11px;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    margin-bottom: 8px;
}

.setting-item.clickable { cursor: pointer; }
.setting-item.clickable:active { transform: scale(0.98); }

.setting-info { display: flex; align-items: center; gap: 14px; }

.setting-icon-wrap {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.setting-icon-wrap svg { width: 18px; height: 18px; }

.si-theme { background: var(--primary-soft); color: var(--primary); }
.si-currency { background: var(--income-soft); color: var(--income); }
.si-alert { background: var(--warning-soft); color: var(--warning); }
.si-export { background: var(--accent-soft); color: var(--accent); }
.si-danger { background: var(--expense-soft); color: var(--expense); }

.setting-label { font-size: 15px; font-weight: 700; }
.setting-desc { font-size: 12px; color: var(--text-muted); margin-top: 2px; font-weight: 500; }

.setting-select {
    padding: 8px 12px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    font-size: 13px;
    font-weight: 700;
}

.chevron { width: 18px; height: 18px; color: var(--text-muted); }

/* ===== TOGGLE SWITCH ===== */
.toggle-switch { position: relative; width: 52px; height: 28px; flex-shrink: 0; }
.toggle-switch input { display: none; }

.toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--bg-input);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.4s var(--ease);
    border: 2px solid var(--border);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--text-muted);
    top: 2px;
    left: 2px;
    transition: all 0.4s var(--spring);
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--primary);
    border-color: var(--primary);
}

.toggle-switch input:checked + .toggle-slider::before {
    background: #fff;
    transform: translateX(24px);
}

/* ===== ABOUT ===== */
.about-card {
    text-align: center;
    margin-bottom: 32px;
    padding: 28px !important;
}

.about-logo-wrap {
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;
}

.about-logo-wrap svg { width: 100%; height: 100%; }

.about-card h3 {
    font-size: 20px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-card p { font-size: 13px; color: var(--text-muted); margin-top: 4px; font-weight: 500; }
.about-copy { font-size: 12px !important; }

/* ===== FAB ===== */
.fab {
    position: fixed;
    bottom: calc(var(--nav-height) + 8px);
    left: 50%;
    transform: translateX(-50%);
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: linear-gradient(135deg, #FF8C00, #FF6B00, #E85D04);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(255, 107, 0, 0.35), 0 0 0 4px var(--bg);
    z-index: 200;
    transition: all var(--transition);
}

.fab:active { transform: translateX(-50%) scale(0.88) rotate(90deg); }
.fab svg { width: 24px; height: 24px; color: #fff; }

/* ===== BOTTOM NAV ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-around;
    background: var(--nav-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid var(--border);
    z-index: 150;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 8px 14px;
    transition: all var(--transition);
    position: relative;
}

.nav-icon-wrap {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-xs);
    transition: all 0.3s var(--spring);
}

.nav-item svg { width: 20px; height: 20px; color: var(--text-muted); transition: all var(--transition); }
.nav-item span { font-size: 10px; font-weight: 700; color: var(--text-muted); transition: all var(--transition); }

.nav-item.active .nav-icon-wrap {
    background: rgba(255, 107, 0, 0.12);
    transform: scale(1.1);
}

.nav-item.active svg { color: #FF6B00; }
.nav-item.active span { color: #FF6B00; }

.nav-spacer { width: 62px; }

/* ===== MODALS ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: var(--overlay);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s ease;
}

.modal-overlay.active { opacity: 1; visibility: visible; }

.modal {
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--modal-bg);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    transform: translateY(100%);
    transition: transform 0.45s var(--spring);
    padding-bottom: env(safe-area-inset-bottom, 16px);
}

.modal-overlay.active .modal { transform: translateY(0); }
.modal.small-modal { max-height: 50vh; }

.modal-handle {
    width: 36px;
    height: 4px;
    border-radius: 2px;
    background: var(--border);
    margin: 10px auto 0;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 8px;
    position: sticky;
    top: 0;
    z-index: 1;
    background: inherit;
}

.modal-header h3 { font-size: 20px; font-weight: 900; letter-spacing: -0.3px; }

.modal-close {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: var(--bg-input);
    color: var(--text-secondary);
    transition: all var(--transition);
}

.modal-close:active { transform: scale(0.9); }

.modal-body { padding: 12px 20px 20px; }
.modal-body.center { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }

/* ===== FORM ELEMENTS ===== */
.type-toggle {
    display: flex;
    gap: 0;
    margin-bottom: 22px;
    background: var(--bg-input);
    border-radius: var(--radius-md);
    padding: 4px;
    position: relative;
}

.type-btn {
    flex: 1;
    padding: 11px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 700;
    transition: all var(--transition);
    color: var(--text-muted);
    position: relative;
    z-index: 1;
}

.type-btn.active { color: #fff; }

.type-slider {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    background: #FF6B00;
    border-radius: var(--radius-sm);
    transition: all 0.35s var(--spring);
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.35);
}

.type-btn[data-type="income"].active ~ .type-slider {
    transform: translateX(100%);
}

.form-group { margin-bottom: 18px; }

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.amount-input-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-input);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    transition: border-color 0.3s ease;
}

.amount-input-wrap:focus-within { border-color: var(--primary); }

.currency-symbol { font-size: 22px; font-weight: 900; color: var(--text-muted); }

.amount-input-wrap input {
    flex: 1;
    font-size: 28px;
    font-weight: 900;
    background: none;
    letter-spacing: -1px;
}

.form-group input[type="text"],
.form-group input[type="date"],
.form-select {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-input);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 500;
    transition: border-color 0.3s ease;
    color: var(--text);
}

.form-group input:focus, .form-select:focus { border-color: var(--primary); }

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.cat-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 4px;
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    border: 2px solid transparent;
    transition: all 0.25s var(--spring);
}

.cat-btn.active {
    border-color: var(--primary);
    background: var(--primary-soft);
    transform: scale(1.02);
}

.cat-btn:active { transform: scale(0.93); }
.cat-btn-icon { font-size: 24px; }

.cat-btn-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.2;
}

/* Buttons */
.btn-primary {
    width: 100%;
    padding: 16px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #FF8C00, #FF6B00, #E85D04);
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    transition: all var(--transition);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary:active { transform: scale(0.97); }
.btn-primary svg { width: 18px; height: 18px; }

.btn-ghost {
    padding: 13px 24px;
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    border: 1px solid var(--border);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-secondary);
}

.btn-danger {
    padding: 13px 24px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, #EF4444, #DC2626);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Confirm */
.confirm-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--warning-soft);
    display: flex;
    align-items: center;
    justify-content: center;
}

.confirm-icon-wrap svg { width: 28px; height: 28px; color: var(--warning); }

.confirm-actions { display: flex; gap: 12px; width: 100%; margin-top: 8px; }
.confirm-actions button { flex: 1; }

/* ===== TOAST ===== */
.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 400px;
    width: calc(100% - 40px);
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    animation: toastSlide 0.4s var(--spring), toastOut 0.35s ease 2.65s forwards;
    font-size: 14px;
    font-weight: 600;
    backdrop-filter: blur(16px);
}

.toast.success { border-left: 4px solid var(--income); }
.toast.error { border-left: 4px solid var(--expense); }
.toast.warning { border-left: 4px solid var(--warning); }
.toast.info { border-left: 4px solid var(--primary); }

@keyframes toastSlide {
    from { opacity: 0; transform: translateY(-16px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toastOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-16px); }
}

/* ===== BUDGET & GOAL LISTS ===== */
.budget-list, .goals-manage-list { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }

.budget-list-item, .goal-manage-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.budget-list-item span, .goal-manage-item span { font-size: 13px; font-weight: 700; }

.delete-mini-btn {
    width: 30px;
    height: 30px;
    border-radius: var(--radius-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all var(--transition);
    background: var(--expense-soft);
    color: var(--expense);
}

.delete-mini-btn:active { transform: scale(0.9); }

/* ===== NOTIFICATIONS ===== */
.notifications-modal { max-height: 70vh; }
.notifications-list { display: flex; flex-direction: column; gap: 8px; }

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.notification-item .notif-icon { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.notification-item .notif-text { font-size: 13px; color: var(--text-secondary); line-height: 1.5; font-weight: 500; }
.notification-item .notif-time { font-size: 11px; color: var(--text-muted); margin-top: 4px; font-weight: 600; }

/* ===== CONTEXT MENU ===== */
.tx-context-menu {
    position: fixed;
    z-index: 2000;
    background: var(--modal-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
    min-width: 170px;
    overflow: hidden;
    animation: contextPop 0.2s var(--spring);
}

.tx-context-menu button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 14px 18px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    transition: background 0.15s;
}

.tx-context-menu button:active { background: var(--bg-input); }
.tx-context-menu button.danger-text { color: var(--danger); }
.tx-context-menu button svg { width: 18px; height: 18px; }

@keyframes contextPop {
    from { opacity: 0; transform: scale(0.92) translateY(4px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* ===== RESPONSIVE ===== */

/* iPhone SE / mini: up to 375 px */
@media (max-width: 375px) {
    :root {
        --radius-xl: 20px;
        --radius: 16px;
        --radius-md: 12px;
        --radius-sm: 8px;
        --header-height: 64px;
        --nav-height: 72px;
    }

    html { font-size: 15px; }

    .app { padding: 0 12px calc(var(--nav-height) + 16px); --app-pad-x: 12px; }
    .app-header { padding: 8px 14px; }
    .header-avatar { width: 36px; height: 36px; }
    .header-title { font-size: 18px; }
    .header-greeting { font-size: 11px; }
    .icon-btn { width: 36px; height: 36px; }
    .icon-btn svg { width: 17px; height: 17px; }

    .dashboard-content { padding: 12px 0 16px; }
    .card-elevated { padding: 14px; }
    .action-card { padding: 11px; gap: 8px; }
    .action-icon-wrap { width: 38px; height: 38px; }
    .action-title { font-size: 12px; }
    .action-desc { font-size: 10px; }

    .bottom-nav { height: var(--nav-height); }
    .fab { width: 50px; height: 50px; bottom: calc(var(--nav-height) + 6px); }
    .fab svg { width: 22px; height: 22px; }
}

/* iPhone 14/15/16 base: 376px - 430px */
@media (min-width: 376px) and (max-width: 430px) {
    :root { --header-height: 66px; }
    .app { padding: 0 14px calc(var(--nav-height) + 18px); --app-pad-x: 14px; }
    .app-header { padding: 9px 16px; }
    .header-title { font-size: 19px; }
    .dashboard-content { padding: 14px 0 18px; }
    .card-elevated { padding: 16px; }
}

/* iPhone 16 Pro Max / large phones: 431px - 767px */
@media (min-width: 431px) and (max-width: 767px) {
    :root {
        --header-height: 70px;
        --nav-height: 78px;
    }

    html { font-size: 16.5px; }

    .app { padding: 0 20px calc(var(--nav-height) + 22px); --app-pad-x: 20px; }
    .app-header { padding: 11px 22px; }
    .header-title { font-size: 21px; }
    .header-avatar { width: 42px; height: 42px; }
    .icon-btn { width: 42px; height: 42px; }

    .dashboard-content { padding: 18px 0 24px; }
    .card-elevated { padding: 20px; border-radius: 20px; }
    .balance-ring-card { min-height: 340px; }
    .ring-label { font-size: 38px; }

    .action-grid { gap: 14px; }
    .action-card { padding: 16px; }
    .action-icon-wrap { width: 48px; height: 48px; }
    .action-title { font-size: 14px; }
    .action-desc { font-size: 11px; }

    .fab { width: 60px; height: 60px; bottom: calc(var(--nav-height) + 10px); }
    .fab svg { width: 26px; height: 26px; }
}

/* iPad / tablets: 768px - 1023px */
@media (min-width: 768px) and (max-width: 1023px) {
    :root {
        --header-height: 74px;
        --nav-height: 84px;
        --radius: 18px;
        --radius-xl: 26px;
    }

    html { font-size: 16.5px; }

    .app {
        max-width: 100%;
        padding: 0 32px calc(var(--nav-height) + 24px);
        --app-pad-x: 32px;
    }

    .app-header { padding: 12px 32px; }
    .header-title { font-size: 22px; }
    .header-avatar { width: 44px; height: 44px; }
    .header-avatar svg { width: 24px; height: 24px; }
    .icon-btn { width: 42px; height: 42px; }
    .icon-btn svg { width: 20px; height: 20px; }

    .dashboard-content { padding: 18px 0 24px; }
    .card-elevated { padding: 18px; border-radius: 20px; }
    .section-header { margin-bottom: 16px; }

    .balance-ring-card { min-height: 320px; }
    .ring-label { font-size: 38px; }
    .ring-legend { gap: 18px; font-size: 13px; }

    .action-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .action-card {
        flex-direction: row;
        align-items: center;
        padding: 14px 12px;
        gap: 12px;
    }
    .action-icon-wrap { width: 46px; height: 46px; }
    .action-icon-wrap svg { width: 22px; height: 22px; }
    .action-title { font-size: 14px; }
    .action-desc { font-size: 11px; }

    .fab {
        width: 58px;
        height: 58px;
        border-radius: 20px;
        bottom: calc(var(--nav-height) + 10px);
    }
    .fab svg { width: 24px; height: 24px; }

    .bottom-nav { height: var(--nav-height); max-width: 100%; }
    .nav-item svg { width: 22px; height: 22px; }
    .nav-item span { font-size: 11px; }
    .nav-spacer { width: 70px; }

    .modal-panel {
        border-radius: 26px 26px 0 0;
        padding: 24px 26px;
    }
    .modal-title { font-size: 20px; }
    .form-group label { font-size: 12px; }
    .category-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; }
    .category-item { padding: 14px 10px; border-radius: 16px; }
    .category-icon { width: 42px; height: 42px; }
    .category-name { font-size: 12px; }

    .stats-bento { gap: 10px; margin-bottom: 12px; }
    .stat-card { padding: 16px; }
    .stat-icon-wrap { width: 32px; height: 32px; }
    .stat-icon-wrap svg { width: 16px; height: 16px; }
    .stat-value { font-size: 18px; }
    .stat-label { font-size: 12px; }

    .analytics-period { gap: 8px; margin: 12px 0 14px; }
    .chip { padding: 8px 16px; font-size: 12px; }

    .transaction-item { padding: 14px; }
    .tx-icon-wrap { width: 44px; height: 44px; }
    .tx-category { font-size: 14px; }
    .tx-amount { font-size: 14px; }

    .setting-item { padding: 16px; }
    .setting-icon-wrap { width: 38px; height: 38px; }
    .setting-label { font-size: 15px; }
    .setting-subtitle { font-size: 12px; }

    .btn-primary { padding: 16px; font-size: 15px; border-radius: 14px; }
    .type-btn { padding: 12px 10px; font-size: 14px; }

    #category-chart { height: 240px !important; }
    #income-expense-chart { height: 200px !important; }
    #trend-chart { height: 180px !important; }
}

/* iPad Air/Pro portrait / large tablets: 1024px - 1200px */
@media (min-width: 1024px) and (max-width: 1200px) {
    :root {
        --header-height: 80px;
        --nav-height: 90px;
    }

    html { font-size: 18px; }

    .app {
        max-width: 100%;
        padding: 0 40px calc(var(--nav-height) + 28px);
        --app-pad-x: 40px;
    }

    .app-header { padding: 14px 40px; }
    .header-title { font-size: 26px; }
    .header-avatar { width: 50px; height: 50px; }
    .header-avatar svg { width: 28px; height: 28px; }
    .icon-btn { width: 46px; height: 46px; }

    .dashboard-content { padding: 24px 0 32px; }
    .card-elevated { padding: 24px; }
    .balance-ring-card { min-height: 360px; }
    .ring-label { font-size: 42px; }

    .action-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }
    .action-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 18px 14px;
        gap: 14px;
    }
    .action-icon-wrap { width: 52px; height: 52px; }
    .action-title { font-size: 15px; }
    .action-desc { font-size: 12px; }

    .fab {
        width: 66px;
        height: 66px;
        bottom: calc(var(--nav-height) + 12px);
    }

    .bottom-nav { max-width: 100%; height: var(--nav-height); }

    .stat-card { padding: 20px; }
    .stat-value { font-size: 22px; }

    #category-chart { height: 280px !important; }
    #income-expense-chart { height: 240px !important; }
    #trend-chart { height: 220px !important; }
}

/* Desktop / very large screens: > 1200px */
@media (min-width: 1201px) {
    :root {
        --header-height: 88px;
        --nav-height: 100px;
    }

    html { font-size: 20px; }

    .app {
        max-width: 920px;
        padding: 0 48px calc(var(--nav-height) + 48px);
        --app-pad-x: 48px;
    }

    .app-header { padding: 18px 48px; }
    .header-title { font-size: 30px; }
    .header-avatar { width: 60px; height: 60px; }

    .dashboard-content { padding: 34px 0 44px; }
    .card-elevated { padding: 34px; }
    .balance-ring-card { min-height: 460px; }
    .ring-label { font-size: 52px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
