/* === CSS Custom Properties === */
:root {
    --bg-primary: #0a0f1e;
    --bg-secondary: #111827;
    --electric-blue: #00d4ff;
    --cyan: #00ffcc;
    --amber: #ffaa00;
    --success-green: #00ff88;
    --danger-red: #ff4444;
    --text-primary: #f0f0f0;
    --text-secondary: #a0a0b0;
    --text-muted: #6b7280;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: 20px;
    --sidebar-width: 260px;
    --topbar-height: 60px;
    --font-primary: 'Space Grotesk', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
}
a { color: var(--electric-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.3; }
.mono { font-family: var(--font-mono); }
.text-success { color: var(--success-green); }
.text-danger { color: var(--danger-red); }
.text-amber { color: var(--amber); }
.text-muted { color: var(--text-muted); }

/* === Glass Panel === */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
}

/* === Sidebar === */
.sidebar {
    position: fixed; top: 0; left: 0; bottom: 0;
    width: var(--sidebar-width);
    background: rgba(10, 15, 30, 0.95);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--glass-border);
    display: flex; flex-direction: column;
    z-index: 100;
    transition: transform 0.3s ease;
}
.sidebar-brand {
    display: flex; align-items: center; gap: 10px;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--glass-border);
}
.brand-icon { color: var(--electric-blue); display: flex; }
.brand-text { font-weight: 700; font-size: 1.1rem; }
.sidebar-nav { flex: 1; padding: 0.75rem 0; overflow-y: auto; }
.nav-item {
    display: flex; align-items: center; gap: 12px;
    padding: 0.65rem 1.5rem; margin: 2px 0.5rem;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.9rem; font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
}
.nav-item:hover { background: rgba(255,255,255,0.08); color: var(--text-primary); text-decoration: none; }
.nav-item.active { background: rgba(0, 212, 255, 0.12); color: var(--electric-blue); }
.nav-item svg { flex-shrink: 0; opacity: 0.7; }
.nav-item.active svg { opacity: 1; }
.sidebar-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--glass-border);
    display: flex; flex-direction: column; gap: 0.5rem;
}
.logout-btn { color: var(--text-muted) !important; }
.logout-btn:hover { color: var(--danger-red) !important; }

/* === Main Content === */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
}
.topbar {
    height: var(--topbar-height);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 2rem;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(10, 15, 30, 0.8);
    backdrop-filter: blur(10px);
    position: sticky; top: 0; z-index: 50;
}
.topbar-right { display: flex; align-items: center; gap: 12px; }
.user-greeting { font-weight: 500; color: var(--text-secondary); }
.hamburger {
    display: none; background: none; border: none;
    color: var(--text-primary); cursor: pointer; padding: 4px;
}
.content-area { padding: 1.5rem 2rem 3rem; max-width: 1400px; }

/* === Page Header === */
.page-header { margin-bottom: 1.5rem; }
.page-header h1 { font-size: 1.75rem; }
.page-subtitle { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.25rem; }
.page-header-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.page-actions { display: flex; gap: 0.5rem; }

/* === Card Grid === */
.card-grid { display: grid; gap: 1rem; margin-bottom: 1rem; }
.two-col { grid-template-columns: repeat(2, 1fr); }
.three-col { grid-template-columns: repeat(3, 1fr); }
.four-col { grid-template-columns: repeat(4, 1fr); }

/* === Cards === */
.card { padding: 1.25rem; }
.card-title { font-size: 1rem; font-weight: 600; margin-bottom: 1rem; color: var(--text-secondary); }
.stat-card { padding: 1.25rem; text-align: center; }
.stat-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.stat-value { font-size: 1.5rem; font-weight: 700; font-family: var(--font-mono); margin-top: 0.25rem; }
.stat-sublabel { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.25rem; }
.stat-mini { display: flex; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px solid var(--glass-border); }
.stat-mini-label { color: var(--text-muted); font-size: 0.85rem; }
.stat-mini-value { font-family: var(--font-mono); font-weight: 600; }
.stat-mini-block { text-align: center; }

/* === Chart Container === */
.chart-container { position: relative; height: 280px; }

/* === Buttons === */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-primary); font-size: 0.875rem; font-weight: 600;
    border: none; cursor: pointer; transition: all 0.2s;
    text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--electric-blue); color: #000; }
.btn-primary:hover { background: #00b8e6; box-shadow: 0 0 20px rgba(0, 212, 255, 0.3); }
.btn-secondary { background: rgba(255,255,255,0.1); color: var(--text-primary); border: 1px solid var(--glass-border); }
.btn-secondary:hover { background: rgba(255,255,255,0.15); }
.btn-danger { background: var(--danger-red); color: white; }
.btn-danger:hover { background: #e03030; }
.btn-success { background: var(--success-green); color: #000; }
.btn-success:hover { background: #00e077; }
.btn-google { background: white; color: #333; border: 1px solid #ddd; }
.btn-google:hover { background: #f5f5f5; }
.btn-full { width: 100%; }
.btn-sm { padding: 0.35rem 0.75rem; font-size: 0.8rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* === Forms === */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 500; margin-bottom: 0.35rem; color: var(--text-secondary); }
.form-input, .form-select {
    width: 100%; padding: 0.65rem 0.9rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-primary); font-size: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus, .form-select:focus {
    outline: none;
    border-color: var(--electric-blue);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15);
}
.form-input::placeholder { color: var(--text-muted); }
.form-select option { background: var(--bg-secondary); color: var(--text-primary); }
textarea.form-input { resize: vertical; min-height: 60px; }
.form-grid { display: grid; gap: 1rem; }
.form-grid.two-col { grid-template-columns: 1fr 1fr; }
.form-grid.three-col { grid-template-columns: 1fr 1fr 1fr; }
.form-row { display: flex; justify-content: flex-end; margin-bottom: 0.75rem; }
.form-link { font-size: 0.85rem; color: var(--electric-blue); }
.form-checkbox { display: flex; align-items: center; gap: 8px; }
.form-checkbox label { display: flex; align-items: center; gap: 8px; cursor: pointer; margin: 0; }
.form-inline { display: flex; gap: 0.75rem; align-items: flex-end; flex-wrap: wrap; }
.form-inline .form-input, .form-inline .form-select { width: auto; min-width: 150px; }
.form-label { font-size: 0.85rem; font-weight: 500; color: var(--text-secondary); margin-bottom: 0.5rem; display: block; }

/* === Tables === */
.table-responsive { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
    text-align: left; padding: 0.75rem; font-size: 0.8rem;
    text-transform: uppercase; letter-spacing: 0.5px;
    color: var(--text-muted); border-bottom: 1px solid var(--glass-border);
}
.data-table td { padding: 0.75rem; border-bottom: 1px solid rgba(255,255,255,0.04); font-size: 0.9rem; }
.data-table tbody tr:hover { background: rgba(255,255,255,0.03); }
.data-table tfoot td { font-weight: 700; border-top: 2px solid var(--glass-border); }
.actions-cell { display: flex; gap: 0.35rem; }

/* === Badges === */
.badge {
    display: inline-block; padding: 0.2rem 0.6rem;
    border-radius: 20px; font-size: 0.75rem; font-weight: 600;
    background: rgba(255,255,255,0.1); color: var(--text-secondary);
}
.badge-success { background: rgba(0,255,136,0.15); color: var(--success-green); }
.badge-danger { background: rgba(255,68,68,0.15); color: var(--danger-red); }
.badge-warning { background: rgba(255,170,0,0.15); color: var(--amber); }
.badge-neutral { background: rgba(255,255,255,0.08); color: var(--text-muted); }
.plan-badge {
    display: inline-block; padding: 0.15rem 0.65rem;
    border-radius: 20px; font-size: 0.7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.plan-free { background: rgba(255,255,255,0.1); color: var(--text-muted); }
.plan-starter { background: rgba(0,212,255,0.15); color: var(--electric-blue); }
.plan-pro { background: rgba(0,255,204,0.15); color: var(--cyan); }

/* === Tabs === */
.tab-nav { display: flex; gap: 0.25rem; border-bottom: 1px solid var(--glass-border); margin-bottom: 1.5rem; }
.tab-btn {
    padding: 0.65rem 1.25rem; background: none; border: none;
    color: var(--text-muted); font-family: var(--font-primary);
    font-size: 0.9rem; font-weight: 500; cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s; text-decoration: none;
}
.tab-btn:hover { color: var(--text-primary); }
.tab-btn.active { color: var(--electric-blue); border-bottom-color: var(--electric-blue); }

/* === Modals === */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.6);
    display: flex; align-items: center; justify-content: center;
    z-index: 200; padding: 1rem;
}
.modal { width: 100%; max-width: 600px; padding: 1.75rem; max-height: 90vh; overflow-y: auto; }
.modal h3 { margin-bottom: 1.25rem; font-size: 1.2rem; }
.modal-actions { display: flex; gap: 0.75rem; justify-content: flex-end; margin-top: 1.5rem; }

/* === Flash Messages === */
.flash-container { padding: 0 2rem; margin-bottom: -0.5rem; }
.flash-auth { position: fixed; top: 1rem; left: 50%; transform: translateX(-50%); z-index: 300; width: auto; padding: 0; }
.flash-message {
    padding: 0.75rem 1.25rem; border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    margin-bottom: 0.5rem; font-size: 0.9rem;
    animation: slideDown 0.3s ease;
}
.flash-success { background: rgba(0,255,136,0.12); border: 1px solid rgba(0,255,136,0.3); color: var(--success-green); }
.flash-error { background: rgba(255,68,68,0.12); border: 1px solid rgba(255,68,68,0.3); color: var(--danger-red); }
.flash-close { background: none; border: none; color: inherit; font-size: 1.2rem; cursor: pointer; opacity: 0.7; }

/* === Auth Pages === */
.auth-page {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    padding: 2rem; position: relative; overflow: hidden;
}
.auth-bg {
    position: absolute; inset: 0; z-index: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(0,212,255,0.08) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 50%, rgba(0,255,204,0.06) 0%, transparent 50%),
                var(--bg-primary);
}
.auth-card {
    position: relative; z-index: 1;
    width: 100%; max-width: 440px; padding: 2.5rem;
}
.auth-logo {
    display: flex; align-items: center; gap: 10px; justify-content: center; margin-bottom: 1.5rem;
}
.auth-logo h1 { font-size: 1.3rem; font-weight: 700; }
.auth-card h2 { text-align: center; font-size: 1.4rem; margin-bottom: 0.25rem; }
.auth-subtitle { text-align: center; color: var(--text-muted); margin-bottom: 1.5rem; font-size: 0.9rem; }
.auth-form { margin-top: 1.5rem; }
.auth-divider {
    display: flex; align-items: center; gap: 1rem; margin: 1.5rem 0;
    color: var(--text-muted); font-size: 0.85rem;
}
.auth-divider::before, .auth-divider::after {
    content: ''; flex: 1; height: 1px; background: var(--glass-border);
}
.auth-footer { text-align: center; margin-top: 1.5rem; color: var(--text-muted); font-size: 0.9rem; }

/* === Account Type Toggle === */
.account-type-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin: 0.75rem 0 1.25rem; }
.type-card, .type-card-lg {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 1rem; border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.04); border: 2px solid var(--glass-border);
    color: var(--text-secondary); cursor: pointer; transition: all 0.2s;
    font-family: var(--font-primary);
}
.type-card:hover, .type-card-lg:hover { background: rgba(255,255,255,0.08); }
.type-card.active, .type-card-lg.active { border-color: var(--electric-blue); background: rgba(0,212,255,0.08); color: var(--electric-blue); }
.type-card small, .type-card-lg small { font-size: 0.75rem; color: var(--text-muted); }
.type-card-lg { padding: 1.5rem; }
.type-card-lg h3 { font-size: 1.1rem; margin-top: 0.5rem; }
.type-card-lg p { font-size: 0.8rem; color: var(--text-muted); text-align: center; }
.type-cards-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.type-cards-row.three-col { grid-template-columns: repeat(3, 1fr); }

/* === Onboarding === */
.onboarding-container { position: relative; z-index: 1; width: 100%; max-width: 700px; padding: 2.5rem; }
.onboarding-title { text-align: center; font-size: 1.3rem; margin-bottom: 1.5rem; }
.onboarding-nav { display: flex; justify-content: space-between; margin-top: 2rem; }
.progress-bar-container { height: 4px; background: rgba(255,255,255,0.1); border-radius: 2px; overflow: hidden; }
.progress-bar { height: 100%; background: var(--electric-blue); border-radius: 2px; transition: width 0.4s ease; }
.progress-label { text-align: center; font-size: 0.8rem; color: var(--text-muted); margin: 0.5rem 0 1.5rem; }

/* === Pricing Cards === */
.pricing-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.pricing-card {
    padding: 1.5rem; border-radius: var(--radius);
    background: rgba(255,255,255,0.04); border: 2px solid var(--glass-border);
    text-align: center; cursor: pointer; transition: all 0.2s; position: relative;
}
.pricing-card:hover { border-color: rgba(255,255,255,0.2); }
.pricing-card.active { border-color: var(--electric-blue); background: rgba(0,212,255,0.06); }
.pricing-card.featured { border-color: var(--electric-blue); }
.pricing-badge {
    position: absolute; top: -10px; right: 1rem;
    background: var(--electric-blue); color: #000;
    padding: 0.15rem 0.75rem; border-radius: 20px;
    font-size: 0.7rem; font-weight: 700;
}
.pricing-card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.price { font-size: 2rem; font-weight: 700; font-family: var(--font-mono); margin-bottom: 1rem; }
.price span { font-size: 0.9rem; font-weight: 400; color: var(--text-muted); }
.pricing-card ul { list-style: none; margin-bottom: 1.5rem; }
.pricing-card li { padding: 0.35rem 0; font-size: 0.85rem; color: var(--text-secondary); }
.pricing-card li::before { content: '✓ '; color: var(--success-green); }

/* === Progress Bars === */
.progress-bar-bg { height: 6px; background: rgba(255,255,255,0.08); border-radius: 3px; overflow: hidden; margin-top: 0.35rem; }
.progress-bar-fill {
    height: 100%; background: linear-gradient(90deg, var(--electric-blue), var(--cyan));
    border-radius: 3px; transition: width 0.8s ease;
}

/* === Category / Detail Lists === */
.category-list { display: flex; flex-direction: column; gap: 0.75rem; }
.category-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.category-name { min-width: 120px; font-size: 0.85rem; color: var(--text-secondary); }
.category-amount { font-family: var(--font-mono); font-size: 0.85rem; min-width: 80px; text-align: right; }
.detail-list { display: flex; flex-direction: column; }
.detail-row { display: flex; justify-content: space-between; padding: 0.6rem 0; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 0.9rem; }
.detail-row.highlight { font-weight: 700; color: var(--electric-blue); border-bottom: none; margin-top: 0.25rem; }
.detail-row span:last-child { font-family: var(--font-mono); }

/* === Transaction List === */
.transaction-list { display: flex; flex-direction: column; }
.transaction-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.65rem 0; border-bottom: 1px solid rgba(255,255,255,0.04);
}
.transaction-info { display: flex; flex-direction: column; gap: 2px; }
.transaction-desc { font-size: 0.9rem; font-weight: 500; }
.transaction-date { font-size: 0.75rem; color: var(--text-muted); }
.transaction-category { font-size: 0.7rem; }
.transaction-amount { font-family: var(--font-mono); font-weight: 600; white-space: nowrap; }

/* === Tax Widgets === */
.tax-estimate-widget { text-align: center; padding: 1rem 0; }
.tax-amount { font-size: 2rem; font-weight: 700; font-family: var(--font-mono); }
.tax-label { color: var(--text-muted); font-size: 0.85rem; margin-top: 0.25rem; }
.tax-rate { color: var(--text-secondary); font-size: 0.9rem; margin-top: 0.5rem; }
.next-payment-alert { padding: 1rem; text-align: center; background: rgba(255,170,0,0.08); border: 1px solid rgba(255,170,0,0.2); }
.ar-aging-mini { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.5rem; }

/* === Chat === */
.chat-page { display: flex; flex-direction: column; height: calc(100vh - var(--topbar-height)); }
.chat-header { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.25rem; border-bottom: 1px solid var(--glass-border); flex-shrink: 0; }
.chat-header h1 { font-size: 1.2rem; }
.chat-usage { font-size: 0.8rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.75rem; }
.chat-messages { flex: 1; overflow-y: auto; padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.chat-welcome { text-align: center; padding: 3rem 1rem; color: var(--text-muted); }
.chat-welcome h2 { color: var(--text-primary); margin-top: 1rem; font-size: 1.2rem; }
.chat-bubble { max-width: 80%; padding: 0.85rem 1.15rem; border-radius: var(--radius); animation: fadeIn 0.3s ease; }
.chat-user { align-self: flex-end; background: rgba(0,212,255,0.12); border: 1px solid rgba(0,212,255,0.2); }
.chat-assistant { align-self: flex-start; background: var(--glass-bg); border: 1px solid var(--glass-border); }
.chat-bubble-content { font-size: 0.9rem; line-height: 1.6; }
.chat-bubble-content code { background: rgba(255,255,255,0.1); padding: 0.15rem 0.4rem; border-radius: 4px; font-family: var(--font-mono); font-size: 0.85rem; }
.chat-bubble-content h3, .chat-bubble-content h4 { margin: 0.75rem 0 0.35rem; }
.chat-bubble-content ul { margin: 0.5rem 0; padding-left: 1.25rem; }
.chat-bubble-content li { margin: 0.25rem 0; }
.chat-loading { display: flex; gap: 6px; padding: 0.5rem 0; }
.chat-loading span {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--electric-blue); animation: chatPulse 1.2s infinite;
}
.chat-loading span:nth-child(2) { animation-delay: 0.2s; }
.chat-loading span:nth-child(3) { animation-delay: 0.4s; }
.chat-suggestions { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0 1.5rem 1rem; }
.suggestion-chip {
    padding: 0.5rem 1rem; border-radius: 20px;
    background: rgba(0,212,255,0.08); border: 1px solid rgba(0,212,255,0.2);
    color: var(--electric-blue); font-size: 0.85rem; cursor: pointer;
    font-family: var(--font-primary); transition: all 0.2s;
}
.suggestion-chip:hover { background: rgba(0,212,255,0.15); }
.chat-input-container { padding: 1rem 1.25rem; border-top: 1px solid var(--glass-border); flex-shrink: 0; }
.chat-input-form { display: flex; gap: 0.75rem; align-items: flex-end; }
.chat-input {
    flex: 1; resize: none; padding: 0.65rem 1rem;
    background: rgba(255,255,255,0.06); border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm); color: var(--text-primary);
    font-family: var(--font-primary); font-size: 0.9rem;
}
.chat-input:focus { outline: none; border-color: var(--electric-blue); }
.chat-send { padding: 0.65rem 0.85rem; border-radius: var(--radius-sm); }

/* === Pagination === */
.pagination { display: flex; gap: 0.35rem; justify-content: center; margin-top: 1.25rem; }

/* === Filter Bar === */
.filter-bar { display: flex; gap: 0.75rem; padding: 1rem; align-items: flex-end; flex-wrap: wrap; margin-top: 1rem; }
.filter-bar .form-input, .filter-bar .form-select { width: auto; min-width: 130px; }

/* === Quick Actions === */
.quick-actions { display: flex; gap: 0.75rem; margin-top: 1.5rem; flex-wrap: wrap; }

/* === Toggle Switch === */
.toggle-list { display: flex; flex-direction: column; }
.toggle-row { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.switch { position: relative; width: 44px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute; cursor: pointer; inset: 0;
    background: rgba(255,255,255,0.15); border-radius: 24px; transition: 0.3s;
}
.slider::before {
    content: ''; position: absolute; width: 18px; height: 18px;
    left: 3px; bottom: 3px; background: white; border-radius: 50%; transition: 0.3s;
}
.switch input:checked + .slider { background: var(--electric-blue); }
.switch input:checked + .slider::before { transform: translateX(20px); }

/* === Report Cards === */
.report-card { display: flex; flex-direction: column; }
.report-card h3 { font-size: 1rem; margin-bottom: 0.35rem; color: var(--text-primary); }
.report-actions { display: flex; gap: 0.35rem; margin-top: auto; }

/* === Plan Card === */
.plan-current { text-align: center; margin: 1rem 0; }

/* === Empty State === */
.empty-state { text-align: center; padding: 2rem; color: var(--text-muted); }

/* === Invoice Totals === */
.invoice-totals .detail-row { max-width: 350px; margin-left: auto; }

/* === Animations === */
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes chatPulse {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-8px); opacity: 1; }
}

/* === Responsive === */
@media (max-width: 1024px) {
    .four-col { grid-template-columns: repeat(2, 1fr); }
    .three-col { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.show { transform: translateX(0); }
    .main-content { margin-left: 0; }
    .hamburger { display: block; }
    .content-area { padding: 1rem; }
    .four-col, .three-col, .two-col { grid-template-columns: 1fr; }
    .pricing-cards { grid-template-columns: 1fr; }
    .type-cards-row, .type-cards-row.three-col { grid-template-columns: 1fr; }
    .account-type-toggle { grid-template-columns: 1fr; }
    .form-grid.two-col, .form-grid.three-col { grid-template-columns: 1fr; }
    .filter-bar { flex-direction: column; }
    .filter-bar .form-input, .filter-bar .form-select { width: 100%; min-width: 0; }
    .chat-bubble { max-width: 95%; }
    .auth-card { padding: 1.5rem; }
    .topbar { padding: 0 1rem; }
}
