/* ============================================================
   COMPONENTS — Buttons, Cards, Forms, Tables, Modals,
                Badges, Toast, Auto-Fetch, Micro-Interactions
   ============================================================ */

/* ── Theme Toggle ── */
.btn-theme {
    height: 34px; width: 34px; border-radius: 9px;
    border: 1px solid var(--border);
    background: var(--bg-card); color: var(--text-secondary);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.btn-theme:hover {
    background: var(--teal); color: #fff; border-color: transparent;
    transform: rotate(20deg) scale(1.08);
    box-shadow: 0 4px 14px rgba(0,147,158,0.25);
}
.btn-theme:active { transform: rotate(35deg) scale(0.94); }
.btn-theme:focus-visible {
    outline: 2px solid var(--teal); outline-offset: 2px;
}
.btn-theme svg { width: 15px; height: 15px; }

/* ── Nav Buttons ── */
.btn-nav {
    height: 34px; padding: 0 14px; border-radius: 9px;
    border: 1px solid transparent; background: transparent;
    color: var(--text-secondary); font-family: inherit;
    font-size: 0.8rem; font-weight: 500; cursor: pointer;
    display: inline-flex; align-items: center; gap: 6px;
    transition: all 0.22s ease; white-space: nowrap;
    position: relative;
}
.btn-nav:hover {
    color: var(--text-primary); background: var(--hover-bg);
    border-color: var(--border);
}
.btn-nav.active {
    color: var(--teal); background: var(--teal-light);
    font-weight: 600; border-color: color-mix(in srgb, var(--teal) 20%, transparent);
}
#nav-subscriptions {
    color: var(--gold);
}
#nav-subscriptions.active {
    color: var(--gold); background: var(--gold-light);
    border-color: color-mix(in srgb, var(--gold) 20%, transparent);
}
#nav-subscriptions:hover {
    background: var(--gold-light);
}
.btn-nav:active { transform: scale(0.96); }
.btn-nav:focus-visible {
    outline: 2px solid var(--teal); outline-offset: 2px;
}
.btn-nav svg { width: 13px; height: 13px; flex-shrink: 0; }

/* ── Accent Button (Kur Güncelle) ── */
.btn-nav.btn-accent {
    background: var(--teal); color: #fff;
    border-color: transparent; font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,147,158,0.2);
}
.btn-nav.btn-accent:hover {
    background: var(--teal-hover); color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0,147,158,0.3);
}
.btn-nav.btn-accent:active { transform: translateY(0) scale(0.97); }

.btn-submit { height: 38px; padding: 0 22px; border-radius: 100px; border: none; background: var(--teal); color: #fff; font-family: inherit; font-size: 0.82rem; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: all 0.22s ease; white-space: nowrap; }
.btn-submit:hover { background: var(--teal-hover); transform: translateY(-1px); box-shadow: 0 4px 12px var(--teal-glow); }
.btn-submit:active { transform: translateY(0) scale(0.97); }
.btn-submit svg { width: 15px; height: 15px; }

.btn-icon-danger { height: 28px; width: 28px; border-radius: 7px; border: 1px solid var(--border-strong); background: var(--bg-card); color: var(--red); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: all 0.22s ease; }
.btn-icon-danger:hover { background: var(--red-light); border-color: var(--red); transform: scale(1.1); }
.btn-icon-danger svg { width: 13px; height: 13px; }

/* ── Card Components ── */
.card-header-left { display: flex; align-items: center; gap: 10px; }
.card-icon { width: 34px; height: 34px; border-radius: 9px; background: var(--teal-light); color: var(--teal); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.card-icon svg { width: 17px; height: 17px; }
.card-body { padding: 0.875rem 0 0; }

/* ── Inventory Table ── */
.inventory-table-wrapper { overflow-x: auto; }
.inventory-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.inventory-table th { text-align: left; padding: 0.65rem 0.5rem; font-size: 0.68rem; font-weight: 600; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.06em; border-bottom: 1px solid var(--border); }
.inventory-table td { padding: 0.65rem 0.5rem; border-bottom: 1px solid var(--border); font-size: 0.85rem; }
.inventory-table tr:last-child td { border-bottom: none; }

/* ============================================================
   MODALS
============================================================ */
.modal-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); z-index: 999; display: none; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease; padding: 1rem; }
.modal-overlay.active { display: flex; opacity: 1; }
.modal-card { background: var(--bg-card); width: 100%; max-width: 620px; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); padding: 1.5rem; transform: scale(0.92) translateY(12px); transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease; border: 1px solid var(--border); max-height: 90vh; overflow-y: auto; opacity: 0; }
.modal-overlay.active .modal-card { transform: scale(1) translateY(0); opacity: 1; }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; }
.modal-title { font-size: 1rem; font-weight: 650; color: var(--text-primary); letter-spacing: -0.02em; }
.modal-close { background: var(--bg); border: 1px solid var(--border); width: 30px; height: 30px; border-radius: 50%; color: var(--text-secondary); cursor: pointer; display:flex; align-items:center; justify-content:center; transition: all 0.22s ease; }
.modal-close:hover { background: var(--red-light); color: var(--red); border-color: transparent; transform: rotate(90deg) scale(1.1); }

/* P&L Detail Modal — Full-screen compact */
.pnl-modal-card { max-width: 640px; }
.pnl-modal-card .modal-header { margin-bottom: 1rem; }

.pnl-modal-hero {
    display: flex; align-items: center; gap: 16px;
    padding: 1.2rem 1.5rem; border-radius: var(--radius-lg);
    margin-bottom: 0.8rem;
    background: linear-gradient(145deg, var(--bg-input) 0%, var(--bg-card) 100%);
    border: 1px solid var(--border);
}
.pnl-modal-hero-icon {
    width: 52px; height: 52px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.pnl-modal-hero-icon svg { width: 24px; height: 24px; }
.pnl-modal-hero-icon.is-profit { background: var(--green-light); color: var(--green); }
.pnl-modal-hero-icon.is-loss { background: var(--red-light); color: var(--red); }
.pnl-modal-hero-body { flex: 1; }
.pnl-modal-hero-label { font-size: 0.68rem; font-weight: 600; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.06em; }
.pnl-modal-hero-value { font-family: 'DM Serif Display', serif; font-size: 1.8rem; font-weight: 400; letter-spacing: -0.02em; line-height: 1.2; }
.pnl-modal-hero-pct { font-size: 0.8rem; font-weight: 600; }
.pnl-modal-hero-pct.is-profit { color: var(--green); }
.pnl-modal-hero-pct.is-loss { color: var(--red); }

/* Fiyat karşılaştırma — tek satır */
.pnl-modal-compact-row {
    display: flex; align-items: stretch; gap: 6px; margin-bottom: 0.8rem;
}
.pnl-modal-compact-box {
    flex: 1; text-align: center; padding: 0.7rem 0.5rem;
    border-radius: var(--radius-md); border: 1px solid var(--border);
    background: var(--bg-input); display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 2px;
    min-width: 0;
}
.pnl-modal-compact-box-cur { border-color: var(--teal); background: var(--teal-light); }
[data-theme="dark"] .pnl-modal-compact-box-cur { border-color: rgba(46,203,214,0.25); background: rgba(46,203,214,0.05); }
.pnl-modal-compact-box-diff { border-color: var(--green); }
.pnl-modal-compact-box-diff.pnl-negative-box { border-color: var(--red); }
.pnl-modal-compact-label { font-size: 0.6rem; font-weight: 600; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.06em; }
.pnl-modal-compact-value { font-family: 'DM Serif Display', serif; font-size: 1.4rem; font-weight: 400; color: var(--text-primary); line-height: 1.15; }
.pnl-modal-compact-unit { font-size: 0.62rem; color: var(--text-tertiary); }
.pnl-modal-compact-vs {
    width: 28px; border-radius: var(--radius-sm);
    background: var(--bg); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-tertiary); flex-shrink: 0;
    align-self: stretch;
}
.pnl-modal-compact-vs svg { width: 14px; height: 14px; }

/* Bilgi gridi */
.pnl-modal-info-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 0.8rem;
}
.pnl-modal-info-grid > div {
    padding: 0.6rem 0.8rem; border-radius: var(--radius-sm);
    border: 1px solid var(--border); background: var(--bg-input);
    text-align: center;
}
.pnl-modal-info-label { font-size: 0.58rem; font-weight: 600; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.06em; display: block; margin-bottom: 2px; }
.pnl-modal-info-value { font-size: 0.85rem; font-weight: 600; color: var(--text-primary); display: block; }
.pnl-modal-info-value.pnl-positive { color: var(--green); }
.pnl-modal-info-value.pnl-negative { color: var(--red); }

/* Stats row */
.pnl-modal-stats-row {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
}
.pnl-modal-stats-row > div {
    padding: 0.6rem 0.8rem; border-radius: var(--radius-sm); text-align: center;
    border: 1px solid var(--border); background: var(--bg-input);
}

.price-grid-large { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.5rem; }
.price-grid-large .price-field label { font-size: 0.75rem; font-weight: 600; color: var(--text-secondary); display: block; margin-bottom: 4px; }
.price-grid-large .price-field input { font-size: 0.95rem; padding: 10px 14px; width: 100%; border: 1px solid var(--border-strong); border-radius: var(--radius-md); background: var(--bg-input); color: var(--text-primary); outline: none; transition: var(--transition-linear); }
.price-grid-large .price-field input:focus { border-color: var(--teal); box-shadow: 0 0 0 4px var(--teal-glow); }

/* ============================================================
   CARD, FORM, INPUT
============================================================ */
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 1.5rem; box-shadow: var(--shadow-sm); transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1); position: relative; overflow: hidden; }
.card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--teal), var(--green), var(--gold)); opacity: 0; transition: opacity 0.3s ease; }
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card:hover::before { opacity: 0.6; }
.card-header { margin-bottom: 1rem; display: flex; align-items: center; gap: 12px; }
.card-title { font-size: 0.9rem; font-weight: 650; letter-spacing: -0.02em; color: var(--text-primary); }
.card-subtitle { font-size: 0.72rem; color: var(--text-tertiary); margin-top: 2px; line-height: 1.4; }

.form-group { margin-bottom: 0.875rem; }
.form-group label { display: block; font-size: 0.72rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 5px; letter-spacing: -0.01em; text-transform: uppercase; letter-spacing: 0.04em; }
.input-field { width: 100%; padding: 10px 14px; border: 1.5px solid var(--border-strong); border-radius: var(--radius-md); background: var(--bg-input); color: var(--text-primary); font-family: inherit; font-size: 0.85rem; font-weight: 400; outline: none; transition: all 0.22s ease; -webkit-appearance: none; appearance: none; min-height: 42px; }
.input-field::placeholder { color: var(--text-tertiary); font-weight: 400; }
.input-field:focus { border-color: var(--teal); background: var(--bg-card); box-shadow: 0 0 0 3px var(--teal-glow); }
select.input-field { cursor: pointer; 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='%237A9FA5' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
[data-theme="dark"] select.input-field { 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='%236AACB3' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); }

.btn-primary { width: 100%; height: 42px; padding: 0 20px; border: none; border-radius: var(--radius-md); background: var(--teal); color: #fff; font-family: inherit; font-size: 0.85rem; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1); letter-spacing: -0.01em; }
.btn-primary:hover { background: var(--teal-hover); transform: translateY(-2px); box-shadow: 0 6px 20px var(--teal-glow); }
.btn-primary:active { transform: translateY(0) scale(0.98); }
.btn-primary svg { width: 16px; height: 16px; fill: none; stroke: currentColor; flex-shrink: 0; }

/* ============================================================
   TABLE & PANEL
============================================================ */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.83rem; }
thead tr { background: transparent; }
th { padding: 12px 16px; text-align: left; font-size: 0.68rem; font-weight: 700; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.06em; background: var(--bg); white-space: nowrap; cursor: pointer; user-select: none; border-bottom: 2px solid var(--border-strong); transition: color 0.2s; }
th:hover { color: var(--teal); }

td { padding: 14px 16px; border-bottom: 1px solid var(--border); color: var(--text-primary); vertical-align: middle; transition: background 0.15s; }
tbody tr:last-child td { border-bottom: none; }
tbody tr { transition: background 0.15s; }
tbody tr:hover td { background: var(--hover-bg); }
tbody tr:hover .row-value { color: var(--teal); }

.td-date { display: flex; flex-direction: column; gap: 1px; }
.td-date-main { font-size: 0.8rem; font-weight: 600; color: var(--text-primary); }
.td-date-sub  { font-size: 0.68rem; color: var(--text-tertiary); }
.table-wrap table tbody tr { cursor: pointer; transition: background 0.2s; }
.table-wrap table tbody tr:hover { background: var(--teal-light); }
[data-theme="dark"] .table-wrap table tbody tr:hover { background: rgba(46,203,214,0.06); }

.row-value { font-weight: 700; font-size: 0.85rem; transition: color 0.2s; }

/* ── Empty State ── */
.empty-state { padding: 3.5rem 2rem; text-align: center; }
.empty-state-icon { width: 52px; height: 52px; background: var(--teal-light); border-radius: 14px; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1); }
.empty-state-icon svg { width: 22px; height: 22px; color: var(--teal); opacity: 0.7; }
.empty-state:hover .empty-state-icon { transform: scale(1.08) rotate(-3deg); }

.ayar-tag { display: inline-flex; align-items: center; padding: 3px 12px; border-radius: 100px; font-size: 0.68rem; font-weight: 700; background: var(--teal-light); color: var(--teal); letter-spacing: 0.01em; white-space: nowrap; }
.btn-delete { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; border: 1px solid transparent; background: transparent; color: var(--text-tertiary); cursor: pointer; transition: all 0.22s ease; margin-left: auto; }
.btn-delete:hover { background: var(--red-light); color: var(--red); border-color: rgba(192,57,43,0.15); transform: scale(1.08); }
[data-theme="dark"] .btn-delete:hover { border-color: rgba(255, 120, 120, 0.2); }
.btn-delete:active { transform: scale(0.92); }

.panel-footer { padding: 0.875rem 1.5rem; border-top: 1px solid var(--border); background: var(--bg); display: flex; gap: 10px; }
.btn-pdf { flex:1; height: 40px; border: none; border-radius: 100px; background: var(--teal); color: #fff; font-family: inherit; font-size: 0.8rem; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.22s ease; letter-spacing: -0.01em; }
.btn-pdf:hover { background: var(--teal-hover); transform: translateY(-2px); box-shadow: 0 6px 20px var(--teal-glow); }
.btn-pdf:active { transform: translateY(0) scale(0.98); }
.btn-pdf svg { width: 14px; height: 14px; fill: none; stroke: currentColor; flex-shrink: 0; }
.btn-csv { background: var(--bg-card); color: var(--text-secondary); border: 1.5px solid var(--border-strong); }
.btn-csv:hover { background: var(--hover-bg); border-color: var(--teal); color: var(--teal); box-shadow: 0 4px 12px var(--teal-glow); }

/* ============================================================
   AUTO FETCH BUTTON — Prices Modal
============================================================ */
.auto-fetch-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 1.2rem; flex-wrap: wrap; }
.auto-fetch-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 20px; border-radius: 100px; border: 1.5px solid var(--teal);
    background: transparent; color: var(--teal); font-family: inherit;
    font-size: 0.82rem; font-weight: 600; cursor: pointer;
    transition: var(--transition); white-space: nowrap;
}
.auto-fetch-btn:hover { background: var(--teal); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 14px var(--teal-glow); }
.auto-fetch-btn:active { transform: translateY(0) scale(0.97); }
.auto-fetch-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }
.auto-fetch-btn:disabled:hover { background: transparent; color: var(--teal); }
.auto-fetch-icon { width: 16px; height: 16px; flex-shrink: 0; transition: transform 0.4s; }
.auto-fetch-btn.is-loading .auto-fetch-icon { animation: spin 0.8s linear infinite; }

.auto-fetch-status {
    font-size: 0.78rem; font-weight: 500; transition: opacity 0.3s;
}
.auto-fetch-status:empty { display: none; }
.auto-fetch-status.is-success { color: var(--green); }
.auto-fetch-status.is-error { color: var(--red); }
.auto-fetch-status.is-loading { color: var(--text-tertiary); }

/* ============================================================
   TOAST NOTIFICATION
============================================================ */
.toast {
    position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%) translateY(20px);
    background: var(--bg-card); border: 1px solid var(--border-strong); border-radius: 12px;
    padding: 10px 18px; box-shadow: var(--shadow-lg); z-index: 9999;
    display: flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 500;
    color: var(--text-primary); opacity: 0; transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none; max-width: 90vw;
}
.toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.toast-icon { width: 18px; height: 18px; flex-shrink: 0; }
.toast-action {
    display: none; flex-shrink: 0;
    padding: 5px 12px; border: none; border-radius: 8px;
    background: var(--teal); color: #fff; cursor: pointer;
    font-family: inherit; font-size: 0.72rem; font-weight: 700;
    letter-spacing: 0.02em; transition: all 0.2s ease;
    min-height: 32px; white-space: nowrap;
}
.toast-action:hover { background: var(--teal-hover); }
.toast-action.is-visible { display: inline-flex; align-items: center; gap: 4px; }
.toast.is-success { border-color: rgba(26, 127, 55, 0.3); }
[data-theme="dark"] .toast.is-success { border-color: rgba(61, 214, 140, 0.25); }
.toast.is-success .toast-icon { color: var(--green); }
.toast.is-error { border-color: rgba(192, 57, 43, 0.3); }
[data-theme="dark"] .toast.is-error { border-color: rgba(255, 120, 120, 0.25); }
.toast.is-error .toast-icon { color: var(--red); }
.toast.is-loading { border-color: var(--border); }
.toast.is-loading .toast-icon { color: var(--teal); animation: spin 0.8s linear infinite; }

/* ============================================================
   MODAL INPUT / INFO / ACTIONS
============================================================ */
.modal-input {
    width: 100%; padding: 10px 14px; font-size: 0.95rem;
    border: 1.5px solid var(--border-strong); border-radius: var(--radius-md);
    background: var(--bg-input); color: var(--text-primary);
    outline: none; transition: all 0.22s ease;
    font-family: inherit; text-align: center; font-weight: 600;
}
.modal-input:focus {
    border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-glow);
}
.modal-info-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 0; border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
}
.modal-info-row:last-child { border-bottom: none; }
.modal-info-label { color: var(--text-secondary); }
.modal-info-value { font-weight: 600; color: var(--text-primary); }
.modal-actions {
    display: flex; gap: 8px; margin-top: 1.25rem;
}
.modal-actions button {
    flex: 1; height: 40px; border-radius: 100px;
    font-family: inherit; font-size: 0.82rem; font-weight: 600;
    cursor: pointer; transition: all 0.22s ease;
    border: 1.5px solid transparent; display: flex;
    align-items: center; justify-content: center; gap: 5px;
}
.modal-btn-cancel {
    background: var(--bg); color: var(--text-secondary);
    border-color: var(--border-strong);
}
.modal-btn-cancel:hover {
    background: var(--red-light); color: var(--red); border-color: transparent;
}
.modal-btn-confirm {
    background: var(--green); color: #fff;
    box-shadow: 0 4px 12px rgba(26,127,55,0.2);
}
.modal-btn-confirm:hover {
    opacity: 0.92; transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(26,127,55,0.25);
}
.modal-btn-confirm:active { transform: translateY(0) scale(0.97); }

/* ============================================================
   MICRO-INTERACTIONS
============================================================ */
button:active,
.btn:active,
.settings-goal-save:active,
.settings-action-btn:active,
.debt-action-btn:active { transform: scale(0.95) !important; }

.input-field:focus {
    box-shadow: 0 0 0 3px rgba(0,147,158,0.15), 0 1px 2px rgba(0,0,0,0.04) !important;
}

.theme-color-btn {
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.2s, border-color 0.2s;
}
.theme-color-btn.active {
    box-shadow: 0 0 0 3px var(--teal), 0 4px 14px var(--teal-glow);
}

/* ============================================================
   DEEPER CARDS
============================================================ */
.settings-card, .stat-card, .card, .debt-card {
    box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 6px 18px rgba(0,0,0,0.04);
}
[data-theme="dark"] .settings-card,
[data-theme="dark"] .stat-card,
[data-theme="dark"] .card {
    box-shadow: 0 1px 2px rgba(0,0,0,0.2), 0 6px 20px rgba(0,0,0,0.18);
}

/* ============================================================
   MODAL NOTE
============================================================ */
.modal-note {
    font-size: 0.74rem; color: var(--text-tertiary);
    margin-top: 0.875rem; line-height: 1.5;
    padding: 9px 12px; background: var(--bg);
    border-radius: var(--radius-sm); border: 1px solid var(--border);
}