/* ============================
   Login Screen
   ============================ */
#login-screen {
    background: var(--bg-primary);
    justify-content: center;
    align-items: center;
    padding: 24px;
    z-index: 1000;
    background-image: radial-gradient(circle at top right, rgba(147, 51, 234, 0.15), transparent),
        radial-gradient(circle at bottom left, rgba(59, 130, 246, 0.15), transparent);
}

.login-container {
    width: 100%;
    max-width: 360px;
    text-align: center;
    background: var(--bg-secondary);
    padding: 40px 30px;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.login-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.login-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--text-primary);
}

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    padding-right: 50px !important;
}

.eye-btn {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.eye-btn:hover {
    opacity: 1;
}

/* ============================
   Header Actions
   ============================ */
.action-btns {
    display: flex;
    gap: 6px;
}

.header-btn {
    height: 32px;
    padding: 0 12px;
    border-radius: 12px;
    border: none;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: white;
    white-space: nowrap;
}

.header-btn.income {
    background: var(--success);
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.2);
}

.header-btn.expense {
    background: var(--accent-gradient);
    box-shadow: 0 4px 10px rgba(147, 51, 234, 0.2);
}

@media (max-width: 380px) {
    .header-btn {
        padding: 0 8px;
        font-size: 12px;
    }

    .user-name-header {
        display: none;
    }
}

.header-btn:active {
    transform: scale(0.95);
}

/* ============================
   CSS Variables & Reset
   ============================ */
:root {
    --bg-primary: #0f0f1a;
    --bg-secondary: #1a1a2e;
    --bg-card: #252542;
    --bg-card-hover: #2d2d4a;
    --bg-modal: #1e1e35;

    --text-primary: #ffffff;
    --text-secondary: #a0a0b8;
    --text-muted: #6b6b80;

    --accent-primary: #6366f1;
    --accent-primary-dark: #4f46e5;
    --accent-secondary: #8b5cf6;
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);

    --david-color: #3b82f6;
    --david-bg: rgba(59, 130, 246, 0.15);
    --jeannine-color: #ec4899;
    --jeannine-bg: rgba(236, 72, 153, 0.15);

    --success: #10b981;
    --success-bg: rgba(16, 185, 129, 0.15);
    --danger: #ef4444;
    --danger-bg: rgba(239, 68, 68, 0.15);

    --border-radius: 16px;
    --border-radius-sm: 12px;
    --border-radius-xs: 8px;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.4);

    --safe-area-top: env(safe-area-inset-top, 0px);
    --safe-area-bottom: env(safe-area-inset-bottom, 0px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* ============================
   Splash Screen
   ============================ */
.splash-screen {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: opacity 0.5s, visibility 0.5s;
}

.splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.splash-content {
    text-align: center;
}

.splash-icon {
    font-size: 64px;
    margin-bottom: 16px;
    animation: bounce 1s ease-in-out infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.splash-content h1 {
    font-size: 28px;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 24px;
}

.splash-loader {
    width: 40px;
    height: 40px;
    border: 3px solid var(--bg-card);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    margin: 0 auto;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================
   Screen Base
   ============================ */
.screen {
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--bg-primary);
}

.screen.hidden {
    display: none;
}

/* ============================
   App Layout
   ============================ */
.app-header {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    padding-top: calc(var(--safe-area-top) + 12px);
    background: var(--bg-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar-small {
    font-size: 20px;
    background: var(--bg-card);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.user-name-header {
    font-weight: 600;
    font-size: 16px;
    color: var(--text-primary);
}

.app-main {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 24px;
}

.page-content {
    display: none;
    padding: 16px;
    animation: fadeIn 0.3s ease-out;
}

.page-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================
   Bottom Navigation
   ============================ */
.bottom-nav {
    flex-shrink: 0;
    background: var(--bg-secondary);
    display: flex;
    justify-content: space-around;
    padding: 8px 12px;
    padding-bottom: calc(var(--safe-area-bottom) + 8px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    padding: 4px 0;
}

.nav-item svg {
    width: 24px;
    height: 24px;
}

.nav-item span {
    font-size: 10px;
    font-weight: 500;
}

.nav-item.active {
    color: var(--accent-primary);
}

.nav-item.active svg {
    stroke: var(--accent-primary);
}

.nav-item.refresh-btn.loading svg {
    animation: spin 1s linear infinite;
}

/* ============================
   User Selection Screen
   ============================ */
#user-select-screen {
    background: var(--bg-primary);
    justify-content: center;
    align-items: center;
    padding: 24px;
    background-image: radial-gradient(circle at top right, rgba(147, 51, 234, 0.1), transparent),
        radial-gradient(circle at bottom left, rgba(59, 130, 246, 0.1), transparent);
}

.user-select-container {
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.user-select-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--text-primary);
    text-shadow: 0 0 20px rgba(147, 51, 234, 0.3);
}

.user-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.user-btn {
    flex: 1;
    max-width: 160px;
    aspect-ratio: 1 / 1.1;
    padding: 24px 16px;
    border: none;
    border-radius: 28px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

.user-btn:active {
    transform: scale(0.92);
}

.user-avatar {
    font-size: 64px;
    /* Larger icons */
    line-height: 1;
    height: 80px;
    width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border-radius: 24px;
    transition: transform 0.3s ease;
}

.user-btn span {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.user-btn.david {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.05));
    border-color: rgba(59, 130, 246, 0.3);
}

.user-btn.david .user-avatar {
    background: rgba(59, 130, 246, 0.2);
}

.user-btn.jeannine {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.15), rgba(147, 51, 234, 0.05));
    border-color: rgba(147, 51, 234, 0.3);
}

.user-btn.jeannine .user-avatar {
    background: rgba(147, 51, 234, 0.2);
}

/* ============================
   Summary Section
   ============================ */
.summary-section {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.summary-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 16px 20px;
    box-shadow: var(--shadow-sm);
}

.summary-card.total {
    background: var(--accent-gradient);
    text-align: center;
}

.summary-card.total .card-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-bottom: 4px;
}

.summary-card.total .card-value {
    font-size: 32px;
    font-weight: 700;
}

.summary-cards-row {
    display: flex;
    gap: 12px;
}

.summary-cards-row .summary-card {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.david-card {
    border-left: 3px solid var(--david-color);
}

.jeannine-card {
    border-left: 3px solid var(--jeannine-color);
}

.card-icon {
    font-size: 28px;
}

.card-info {
    flex: 1;
}

.card-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-value {
    font-size: 20px;
    font-weight: 600;
}

.summary-card.transfer {
    background: var(--success-bg);
    border: 1px solid var(--success);
    text-align: center;
}

.transfer-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 8px;
}

.transfer-arrow svg {
    color: var(--success);
}

.transfer-amount {
    font-size: 28px;
    font-weight: 700;
    color: var(--success);
}

/* ============================
   Tabs
   ============================ */
.tabs {
    display: flex;
    padding: 0 16px;
    gap: 8px;
    margin-bottom: 8px;
}

.tab {
    flex: 1;
    padding: 12px;
    border: none;
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.tab.active {
    background: var(--accent-gradient);
    color: white;
}

.tab:active {
    transform: scale(0.98);
}

/* ============================
   Tab Content
   ============================ */
.tab-content {
    flex: 1;
    overflow-y: auto;
    padding: 8px 16px;
    padding-bottom: calc(100px + var(--safe-area-bottom));
    display: none;
}

.tab-content.active {
    display: block;
}

/* ============================
   Expenses List
   ============================ */
.expenses-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.expense-item {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border-radius: var(--border-radius-sm);
    padding: 16px;
    gap: 12px;
    transition: all 0.2s;
    cursor: pointer;
}

.expense-item:active {
    background: var(--bg-card-hover);
    transform: scale(0.98);
}

.expense-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.expense-info {
    flex: 1;
}

.expense-name {
    font-weight: 500;
    margin-bottom: 2px;
}

.expense-category {
    font-size: 12px;
    color: var(--text-muted);
}

.expense-amount {
    font-size: 18px;
    font-weight: 600;
}

.expense-actions {
    display: flex;
    gap: 8px;
}

.expense-actions button {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.edit-btn {
    background: var(--accent-primary);
    color: white;
}

.delete-btn {
    background: var(--danger-bg);
    color: var(--danger);
}

.expense-actions button:active {
    transform: scale(0.9);
}

/* ============================
   Overview Section
   ============================ */
.overview-section {
    margin-bottom: 24px;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

/* ============================
   Calculation Card
   ============================ */
.calculation-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 20px;
}

.calc-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 15px;
}

.calc-row span:first-child {
    color: var(--text-secondary);
}

.calc-row .positive {
    color: var(--success);
}

.calc-row .negative {
    color: var(--danger);
}

.calc-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 8px 0;
}

.calc-row.final {
    font-size: 18px;
    font-weight: 600;
    padding-top: 12px;
}

.calc-row.final span:first-child {
    color: var(--text-primary);
}

.calc-row.final span:last-child {
    color: var(--success);
}

/* ============================
   FAB (Floating Action Buttons)
   ============================ */
.fab-container {
    position: fixed;
    bottom: calc(24px + var(--safe-area-bottom));
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 100;
}

.fab-container.hidden {
    display: none;
}

.fab {
    height: 48px;
    padding: 0 20px;
    border: none;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.fab-primary {
    background: var(--accent-gradient);
    color: white;
}

.fab-secondary {
    background: var(--success);
    color: white;
}

.fab:active {
    transform: scale(0.95);
}

.fab-label {
    font-size: 14px;
    font-weight: 600;
}

/* ============================
   Income Styling
   ============================ */
.income-item {
    border-left: 3px solid var(--success);
}

.income-amount {
    color: var(--success) !important;
}

.income-text {
    color: var(--success);
}

/* ============================
   Sections
   ============================ */
.section {
    margin-bottom: 24px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.subsection {
    margin-bottom: 16px;
}

.subsection-title {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================
   Calculation Card Improvements
   ============================ */
.calc-section-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.8px;
    margin-bottom: 20px;
    opacity: 0.8;
}

.calc-group {
    margin-bottom: 16px;
}

.calc-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.calc-row.main {
    font-weight: 600;
    color: var(--text-primary);
}

.calc-row.sub {
    font-size: 13px;
    color: var(--text-secondary);
    padding-left: 16px;
    opacity: 0.9;
}

.calc-row.share {
    font-size: 13px;
    font-weight: 600;
    color: var(--david-color);
    padding-left: 16px;
    margin-top: 4px;
    padding-bottom: 4px;
}

.calc-row.highlight {
    background: var(--bg-secondary);
    margin: 12px -20px 8px;
    padding: 12px 20px;
    font-weight: 600;
}

.transfer-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

/* ============================
   Modal
   ============================ */
.modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: flex-end;
    transition: all 0.3s;
}

.modal.hidden {
    visibility: hidden;
    pointer-events: none;
}

.modal.hidden .modal-backdrop {
    opacity: 0;
}

.modal.hidden .modal-sheet {
    transform: translateY(100%);
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    transition: opacity 0.3s;
}

.modal-sheet {
    position: relative;
    width: 100%;
    background: var(--bg-modal);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    padding: 24px;
    padding-bottom: calc(24px + var(--safe-area-bottom));
    transition: transform 0.3s ease-out;
}

.modal-small {
    padding: 24px;
}

.modal-handle {
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    margin: 0 auto 20px;
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 24px;
    text-align: center;
}

.modal-text {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 24px;
}

/* ============================
   Form
   ============================ */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--bg-card);
    border-radius: var(--border-radius-sm);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.btn-primary,
.btn-secondary,
.btn-danger {
    flex: 1;
    padding: 16px;
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-secondary);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-primary:active,
.btn-secondary:active,
.btn-danger:active {
    transform: scale(0.98);
}

/* ============================
   Toast
   ============================ */
.toast {
    position: fixed;
    bottom: calc(100px + var(--safe-area-bottom));
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 16px 24px;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-lg);
    z-index: 300;
    transition: transform 0.3s ease-out;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

.toast.hidden {
    display: none;
}

/* ============================
   Empty State
   ============================ */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.empty-state-text {
    font-size: 16px;
}

/* ============================
   Scrollbar
   ============================ */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--bg-card);
    border-radius: 2px;

}

.expense-interval {
    font-size: 12px;
    color: var(--accent-secondary);
    font-weight: 500;
    margin-bottom: 2px;
}

/* ============================
   Collapse & Accordion
   ============================ */
.collapsible-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 8px 0;
    user-select: none;
}

.collapsible-header .chevron {
    transition: transform 0.3s ease;
    font-size: 12px;
    color: var(--text-muted);
}

.collapsible-header.collapsed .chevron {
    transform: rotate(-90deg);
}

.collapsible-content {
    max-height: 2000px;
    /* Arbitrary large height */
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
    opacity: 1;
}

.collapsible-content.collapsed {
    max-height: 0;
    opacity: 0;
}

/* ============================
   Form Improvements
   ============================ */
.form-row {
    display: flex;
    gap: 12px;
}

.form-group.amount-group {
    flex: 2;
}

.form-group.interval-group {
    flex: 3;
}

select {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--bg-card);
    border-radius: var(--border-radius-sm);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 16px;
    font-family: inherit;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a0a0b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
}

select:focus {
    outline: none;
    border-color: var(--accent-primary);
}

/* ============================
   Nav Badge
   ============================ */
.nav-item {
    position: relative;
}

.nav-badge {
    position: absolute;
    top: 0;
    right: calc(50% - 18px);
    background: var(--danger);
    color: white;
    font-size: 9px;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    z-index: 1;
}

.nav-badge.hidden {
    display: none;
}

/* ============================
   Type Toggle (One-Time Modal)
   ============================ */
.type-toggle {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.type-btn {
    flex: 1;
    padding: 12px;
    border: 2px solid var(--bg-card);
    border-radius: var(--border-radius-sm);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
}

.type-btn.active {
    background: var(--accent-gradient);
    color: white;
    border-color: transparent;
}

.type-btn:active {
    transform: scale(0.97);
}

/* ============================
   One-Time Balance Card
   ============================ */
.one-time-balance-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 16px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
}

.one-time-balance-card.balanced {
    color: var(--success);
    background: var(--success-bg);
    border: 1px solid var(--success);
}

.one-time-balance-card.positive {
    color: var(--success);
    background: var(--success-bg);
    border: 1px solid var(--success);
}

.one-time-balance-card.negative {
    color: var(--danger);
    background: var(--danger-bg);
    border: 1px solid var(--danger);
}

/* ============================
   One-Time Add Button
   ============================ */
.btn-add-onetime {
    padding: 8px 16px;
    background: var(--accent-gradient);
    color: white;
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-add-onetime:active {
    transform: scale(0.97);
}

/* ============================
   One-Time Dashboard Card
   ============================ */
.one-time-card.pending {
    background: var(--danger-bg);
    border: 1px solid var(--danger);
    text-align: center;
}

.one-time-card.pending .transfer-amount {
    color: var(--danger);
}

.one-time-card.pending .transfer-arrow svg {
    stroke: var(--danger);
}

.one-time-card.balanced {
    background: var(--success-bg);
    border: 1px solid var(--success);
    text-align: center;
}

.one-time-status {
    font-size: 16px;
    font-weight: 600;
    color: var(--success);
    padding: 8px 0;
}

/* ============================
   Deleted / History Items
   ============================ */
.deleted-item {
    opacity: 0.4;
    filter: grayscale(0.6);
    cursor: default;
    pointer-events: auto;
}

.deleted-item:active {
    transform: none;
    background: var(--bg-card);
}

.history-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0 8px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.history-divider::before,
.history-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}