/* =========================================
   KASA - Gelir Gider Takibi
   Mobile-First CSS (100% Responsive)
   ========================================= */

/* --- CSS Variables --- */
:root {
    --color-primary: #6366f1;
    --color-primary-dark: #4f46e5;
    --color-primary-light: #e0e7ff;
    --color-income: #10b981;
    --color-income-light: #d1fae5;
    --color-expense: #ef4444;
    --color-expense-light: #fee2e2;
    --color-bg: #f8fafc;
    --color-surface: #ffffff;
    --color-text: #1e293b;
    --color-text-secondary: #64748b;
    --color-border: #e2e8f0;
    --color-danger: #dc2626;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.5;
    min-height: 100dvh;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
input, select, button, textarea { font-family: inherit; font-size: inherit; }
a { color: var(--color-primary); text-decoration: none; }

/* --- Page System --- */
.page { display: none; flex-direction: column; min-height: 100dvh; min-height: 100vh; }
.page.active { display: flex; }

/* --- Auth Page --- */
.auth-container {
    max-width: 400px;
    width: 90%;
    margin: auto;
    padding: 40px 0;
}
.auth-logo {
    text-align: center;
    margin-bottom: 32px;
}
.auth-logo .logo-icon {
    font-size: 48px;
    margin-bottom: 8px;
}
.auth-logo h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: -0.5px;
}
.auth-logo p {
    color: var(--color-text-secondary);
    font-size: 14px;
    margin-top: 4px;
}

.auth-tabs {
    display: flex;
    background: var(--color-surface);
    border-radius: var(--radius);
    padding: 4px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}
.auth-tab {
    flex: 1;
    padding: 10px;
    border: none;
    background: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-secondary);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}
.auth-tab.active {
    background: var(--color-primary);
    color: #fff;
}

/* --- Forms --- */
.auth-form { display: none; }
.auth-form.active { display: block; }

.form-group {
    margin-bottom: 16px;
}
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-secondary);
    margin-bottom: 6px;
}
.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    background: var(--color-surface);
    color: var(--color-text);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}
.form-group input:focus,
.form-group select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}
.form-group input[type="color"] {
    width: 60px;
    height: 44px;
    padding: 4px;
    cursor: pointer;
}

/* Type Toggle */
.type-toggle {
    display: flex;
    gap: 8px;
}
.type-toggle label {
    flex: 1;
}
.type-toggle input[type="radio"] { display: none; }
.toggle-label {
    display: block;
    text-align: center;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1.5px solid var(--color-border);
    color: var(--color-text-secondary);
}
.income-label { background: var(--color-income-light); }
.expense-label { background: var(--color-expense-light); }
.type-toggle input:checked + .toggle-label {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 1px var(--color-primary);
}
.type-toggle input:checked + .income-label {
    background: var(--color-income);
    color: #fff;
    border-color: var(--color-income);
}
.type-toggle input:checked + .expense-label {
    background: var(--color-expense);
    color: #fff;
    border-color: var(--color-expense);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    gap: 6px;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover, .btn-primary:focus { background: var(--color-primary-dark); }
.btn-outline { background: transparent; color: var(--color-primary); border: 1.5px solid var(--color-primary); }
.btn-danger { background: var(--color-danger); color: #fff; margin-top: 8px; }
.btn-full { width: 100%; }
.btn-icon {
    width: 40px; height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    color: var(--color-text-secondary);
    transition: background 0.2s;
}
.btn-icon:hover { background: var(--color-border); }

/* --- App Header --- */
.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding-top: max(16px, env(safe-area-inset-top, 0px));
}
.header-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: -0.3px;
}

/* --- Tab System --- */
.tab-content { display: none; flex: 1; padding: 20px; padding-bottom: calc(80px + var(--safe-bottom)); }
.tab-content.active { display: block; }

/* --- Bottom Nav --- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    padding: 6px 8px calc(6px + var(--safe-bottom));
    z-index: 200;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}
.nav-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 6px 4px;
    gap: 2px;
    cursor: pointer;
    color: var(--color-text-secondary);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    font-size: 10px;
}
.nav-btn.active { color: var(--color-primary); }
.nav-btn .nav-icon { font-size: 22px; }
.nav-btn .nav-label { font-weight: 500; font-size: 11px; }
.nav-btn.nav-add { background: var(--color-primary); border-radius: 50%; width: 48px; height: 48px; flex: none; margin-top: -20px; position: relative; }
.nav-btn.nav-add .nav-icon { font-size: 24px; color: #fff; }
.nav-btn.nav-add:active { background: var(--color-primary-dark); }

/* --- Dashboard --- */
.dashboard-balance { margin-bottom: 24px; }
.balance-card {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-md);
}
.balance-label {
    font-size: 13px;
    opacity: 0.85;
    font-weight: 500;
}
.balance-amount {
    font-size: 34px;
    font-weight: 700;
    margin-top: 4px;
    letter-spacing: -1px;
}
.balance-row {
    display: flex;
    gap: 12px;
}
.balance-item {
    flex: 1;
    background: var(--color-surface);
    padding: 16px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.balance-item .bi-icon { font-size: 20px; }
.balance-item .bi-label { font-size: 12px; color: var(--color-text-secondary); font-weight: 500; }
.balance-item .bi-amount { font-size: 20px; font-weight: 700; }
.balance-item.income .bi-amount { color: var(--color-income); }
.balance-item.expense .bi-amount { color: var(--color-expense); }

/* Month Selector */
.month-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}
.month-label {
    font-size: 16px;
    font-weight: 600;
    min-width: 120px;
    text-align: center;
}
.btn-month {
    width: 36px;
    height: 36px;
    font-size: 14px;
    background: var(--color-surface);
    border-radius: 50%;
    box-shadow: var(--shadow);
}

/* Charts */
.chart-container {
    background: var(--color-surface);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}
.category-chart-container {
    background: var(--color-surface);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    max-height: 320px;
}

/* FAB */
.btn-fab {
    position: sticky;
    bottom: 0;
}

/* Accounts Section */
.accounts-section {
    margin-bottom: 20px;
}
.accounts-section h4 {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.accounts-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.account-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--color-surface);
    padding: 12px 14px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.15s;
}
.account-card:active { transform: scale(0.98); }
.account-card-badge {
    width: 40px; height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.account-card-info { flex: 1; min-width: 0; }
.account-card-name { font-size: 14px; font-weight: 600; }
.account-card-sub { font-size: 11px; color: var(--color-text-secondary); }
.account-card-balance { font-size: 16px; font-weight: 700; text-align: right; }

/* Type Toggle 3 columns */
.type-toggle.three-col label { flex: 1; }
.type-toggle.three-col .toggle-label { font-size: 12px; padding: 10px 6px; }

/* --- Transactions --- */
.transaction-filters {
    display: flex;
    background: var(--color-surface);
    border-radius: var(--radius);
    padding: 4px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}
.filter-btn {
    flex: 1;
    padding: 8px 12px;
    border: none;
    background: none;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-secondary);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}
.filter-btn.active { background: var(--color-primary); color: #fff; }

.transaction-list { display: flex; flex-direction: column; gap: 8px; }
.transaction-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--color-surface);
    padding: 14px 16px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.15s;
}
.transaction-item:active { transform: scale(0.98); }
.txn-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.txn-info { flex: 1; min-width: 0; }
.txn-category { font-size: 14px; font-weight: 600; }
.txn-desc { font-size: 12px; color: var(--color-text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.txn-date { font-size: 11px; color: var(--color-text-secondary); }
.txn-amount { font-size: 16px; font-weight: 700; text-align: right; white-space: nowrap; }
.txn-amount.income { color: var(--color-income); }
.txn-amount.expense { color: var(--color-expense); }

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--color-text-secondary);
}
.empty-state span { font-size: 48px; display: block; margin-bottom: 12px; }
.empty-state p { font-size: 15px; }

.load-more { margin-top: 16px; }

/* --- Categories --- */
.category-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.cat-tab {
    padding: 8px 16px;
    border: 1.5px solid var(--color-border);
    border-radius: 20px;
    background: var(--color-surface);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--color-text-secondary);
}
.cat-tab.active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

.category-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.category-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--color-surface);
    padding: 12px 16px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.cat-color {
    width: 36px; height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.cat-info { flex: 1; }
.cat-name { font-size: 14px; font-weight: 600; }
.cat-type { font-size: 11px; color: var(--color-text-secondary); }
.cat-actions { display: flex; gap: 4px; }
.cat-actions .btn-icon { width: 34px; height: 34px; font-size: 15px; }

/* --- Reports --- */
.report-summary { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.report-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--color-surface);
    padding: 16px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.report-card span { font-size: 28px; }
.report-card h3 { font-size: 22px; font-weight: 700; margin-top: 2px; }
.report-card p { font-size: 12px; color: var(--color-text-secondary); }
.income-card h3 { color: var(--color-income); }
.expense-card h3 { color: var(--color-expense); }
.balance-card h3 { color: var(--color-primary); }

.report-detail { background: var(--color-surface); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.report-detail h4 { font-size: 15px; margin-bottom: 12px; color: var(--color-text-secondary); }
.report-cat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
}
.report-cat-item:last-child { border-bottom: none; }
.report-cat-left { display: flex; align-items: center; gap: 10px; }
.report-cat-dot { width: 12px; height: 12px; border-radius: 50%; }
.report-cat-name { font-size: 14px; font-weight: 500; }
.report-cat-amount { font-size: 14px; font-weight: 600; }
.report-cat-pct { font-size: 11px; color: var(--color-text-secondary); margin-left: 6px; }

/* --- Modal --- */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: flex-end;
    justify-content: center;
}
.modal.active { display: flex; }
.modal-content {
    background: var(--color-surface);
    border-radius: 20px 20px 0 0;
    padding: 24px 20px 20px;
    width: 100%;
    max-width: 500px;
    max-height: 90dvh;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}
@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.modal-header h3 { font-size: 18px; font-weight: 700; }
.modal-close {
    width: 32px; height: 32px;
    font-size: 16px;
    background: var(--color-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    color: var(--color-text-secondary);
}

/* --- Alert --- */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    margin-top: 16px;
}
.alert-error {
    background: var(--color-expense-light);
    color: var(--color-expense);
}

/* --- Toast --- */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--color-text);
    color: #fff;
    padding: 12px 24px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    z-index: 2000;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: var(--shadow-lg);
}
.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.toast.error { background: var(--color-expense); }
.toast.success { background: var(--color-income); }

/* --- Quick Add Buttons --- */
.quick-add-row {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}
.quick-add-btn {
    flex: 1;
    padding: 16px;
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: transform 0.15s, opacity 0.15s;
    box-shadow: var(--shadow);
}
.quick-add-btn:active { transform: scale(0.96); }
.quick-add-btn .qab-icon { font-size: 22px; }
.income-btn { background: var(--color-income); }
.expense-btn { background: var(--color-expense); }

/* --- Big Type Toggle --- */
.type-toggle-big {
    display: flex;
    margin-bottom: 20px;
    gap: 8px;
}
.type-toggle-big label { flex: 1; }
.type-toggle-big input[type="radio"] { display: none; }
.toggle-big {
    display: block;
    text-align: center;
    padding: 14px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid var(--color-border);
    color: var(--color-text-secondary);
    background: var(--color-bg);
}
.income-big { color: var(--color-income); border-color: var(--color-income-light); }
.expense-big { color: var(--color-expense); border-color: var(--color-expense-light); }
.type-toggle-big input:checked + .income-big {
    background: var(--color-income);
    color: #fff;
    border-color: var(--color-income);
}
.type-toggle-big input:checked + .expense-big {
    background: var(--color-expense);
    color: #fff;
    border-color: var(--color-expense);
}

/* --- Amount Input --- */
.amount-input-group {
    position: relative;
    margin-bottom: 20px;
    text-align: center;
}
.amount-input-group input {
    width: 100%;
    padding: 16px 0;
    border: none;
    border-bottom: 2px solid var(--color-border);
    font-size: 40px;
    font-weight: 700;
    text-align: center;
    background: transparent;
    outline: none;
    color: var(--color-text);
    transition: border-color 0.2s;
    letter-spacing: -1px;
}
.amount-input-group input:focus { border-bottom-color: var(--color-primary); }
.amount-input-group input.income-amount:focus { border-bottom-color: var(--color-income); }
.amount-input-group input.expense-amount:focus { border-bottom-color: var(--color-expense); }
.currency-label {
    position: absolute;
    right: 4px;
    bottom: 20px;
    font-size: 28px;
    font-weight: 600;
    color: var(--color-text-secondary);
}

/* --- Category Grid --- */
.category-grid-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-secondary);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.category-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
    max-height: 180px;
    overflow-y: auto;
}
.category-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 6px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-bg);
    cursor: pointer;
    transition: all 0.15s;
    min-width: 52px;
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 500;
    color: var(--color-text-secondary);
    text-align: center;
}
.category-chip:active { transform: scale(0.93); }
.category-chip.selected { border-color: var(--color-primary); background: var(--color-primary-light); color: var(--color-primary); }
.category-chip .chip-icon { font-size: 22px; }

/* --- Form Row --- */
.form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}
.form-group.half { flex: 1; margin-bottom: 0; }
.form-group.half select,
.form-group.half input { padding: 10px 12px; font-size: 14px; }

/* --- Description Input --- */
.desc-input {
    border: none;
    border-bottom: 1.5px solid var(--color-border);
    border-radius: 0;
    padding: 10px 4px !important;
    font-size: 14px !important;
}
.desc-input:focus { border-bottom-color: var(--color-primary); }

/* --- Large Button --- */
.btn-lg { padding: 16px; font-size: 16px; border-radius: 14px; margin-top: 8px; }

/* --- Delete Link --- */
.btn-delete-link {
    display: block;
    width: 100%;
    padding: 12px;
    background: none;
    border: none;
    color: var(--color-expense);
    font-size: 13px;
    cursor: pointer;
    margin-top: 8px;
    text-align: center;
    opacity: 0.7;
}
.btn-delete-link:hover { opacity: 1; }

/* --- Transaction Modal specific --- */
.txn-modal {
    border-radius: 20px 20px 0 0;
}

/* --- Transfer --- */
.transfer-arrow {
    text-align: center;
    font-size: 22px;
    color: var(--color-text-secondary);
    margin: -8px 0;
}
.transfer-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    border: none;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.transfer-btn:hover { background: var(--color-primary); color: #fff; }
.accounts-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.accounts-header-row h4 { margin-bottom: 0; }

/* --- Search Bar --- */
.search-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--color-surface);
    border-radius: var(--radius);
    padding: 8px 14px;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
}
.search-bar .search-icon { font-size: 16px; opacity: 0.5; }
.search-bar input {
    flex: 1;
    border: none;
    background: none;
    font-size: 14px;
    outline: none;
    color: var(--color-text);
}
.search-bar input::placeholder { color: var(--color-text-secondary); }

/* --- Transaction Groups --- */
.txn-group { margin-bottom: 16px; }
.txn-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 4px;
    margin-bottom: 6px;
}
.txn-group-date { font-size: 13px; font-weight: 600; color: var(--color-text-secondary); }
.txn-group-total { font-size: 13px; font-weight: 600; }

/* --- Desktop Responsive --- */
@media (min-width: 768px) {
    #page-app {
        max-width: 480px;
        margin: 0 auto;
        border-left: 1px solid var(--color-border);
        border-right: 1px solid var(--color-border);
        box-shadow: var(--shadow-lg);
    }
    .app-header {
        border-radius: 0;
    }
    .bottom-nav {
        max-width: 480px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 20px 20px 0 0;
    }
    .modal-content {
        border-radius: 20px;
        margin-bottom: 20px;
    }
    .modal {
        align-items: center;
    }
    .auth-container {
        padding: 60px 0;
    }
}

@media (min-width: 1024px) {
    #page-app {
        max-width: 480px;
    }
}
