/* ==========================================
   AXCORD FINANCE — style.css
   ========================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Raleway', 'Segoe UI', system-ui, sans-serif;
    font-feature-settings: "lnum" 1;
    background-color: #040C0C;
    color: #ffffff;
    height: 100vh;
    display: flex;
    overflow: hidden;
}

/* ==========================================
   SIDEBAR
   ========================================== */

.sidebar {
    width: 260px;
    height: 100vh;
    background-color: #040C0C;
    display: flex;
    flex-direction: column;
    padding: 24px 14px;
    flex-shrink: 0;
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
    z-index: 10;
}

.sidebar.collapsed { width: 72px; padding: 24px 12px; }

/* --- Header --- */

.sidebar-header {
    display: flex;
    align-items: baseline;
    margin-bottom: 24px;
    padding: 0 10px;
    min-height: 32px;
    white-space: nowrap;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar.collapsed .sidebar-header {
    justify-content: center;
    padding: 0;
    margin-bottom: 16px;
}

.logo-name {
    font-size: 21px;
    font-weight: 800;
    color: #fff;
    transition: opacity 0.3s, transform 0.3s;
}

.logo-finance {
    font-size: 21px;
    font-weight: 800;
    color: #2FA0A5;
    margin-left: 8px;
    transition: opacity 0.3s, transform 0.3s;
}

.sidebar.collapsed .logo-name,
.sidebar.collapsed .logo-finance {
    opacity: 0;
    transform: translateX(-10px);
    position: absolute;
    pointer-events: none;
}

.logo-collapsed {
    display: none;
    width: 44px;
    height: 44px;
    min-width: 44px;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2FA0A5, #229CB1);
    border-radius: 14px;
}

.logo-collapsed svg {
    width: 24px;
    height: 24px;
    stroke: #fff;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sidebar.collapsed .logo-collapsed { display: flex; }

/* --- Mode Switcher --- */

.mode-switcher {
    display: flex;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 4px;
    margin: 0 4px 20px 4px;
    min-height: 38px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.sidebar.collapsed .mode-switcher {
    background: transparent;
    border-color: transparent;
    padding: 0;
    flex-direction: column;
    gap: 4px;
    margin: 0 2px 16px 2px;
    align-items: center;
}

.mode-switcher-btn {
    flex: 1;
    padding: 7px 0;
    border: none;
    background: transparent;
    color: #556;
    font-family: 'Raleway', sans-serif;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 9px;
    transition: all 0.25s;
    white-space: nowrap;
}

.mode-switcher-btn.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.mode-switcher-btn:not(.active):hover { color: #999; }
.mode-switcher-btn .mode-icon { display: none; }

.sidebar.collapsed .mode-switcher-btn {
    width: 44px;
    height: 36px;
    min-width: 44px;
    flex: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.sidebar.collapsed .mode-switcher-btn .mode-label { display: none; }
.sidebar.collapsed .mode-switcher-btn .mode-icon { display: flex; }

.mode-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* --- Section Label --- */

.sidebar-section-label {
    font-size: 10px;
    font-weight: 700;
    color: #556;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 0 14px;
    margin-bottom: 8px;
    flex-shrink: 0;
    transition: opacity 0.25s, height 0.25s, margin 0.25s;
    overflow: hidden;
}

.sidebar.collapsed .sidebar-section-label {
    opacity: 0;
    height: 0;
    margin: 0;
}

/* --- Navigation --- */

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
}

.sidebar-nav::-webkit-scrollbar { display: none; }

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 14px;
    height: 42px;
    min-height: 42px;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    color: #7a8a8a;
    white-space: nowrap;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.sidebar.collapsed .sidebar-item {
    padding: 0 12px;
    justify-content: center;
    gap: 0;
}

.sidebar-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #c0cccc;
}

.sidebar-item.active {
    background: rgba(47, 160, 165, 0.12);
    color: #ffffff;
}

.sidebar-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 24px;
    background: #2FA0A5;
    border-radius: 0 4px 4px 0;
    box-shadow: 0 0 10px rgba(47, 160, 165, 0.4);
}

.sidebar.collapsed .sidebar-item.active::before { height: 20px; }

.sidebar-item-icon {
    width: 20px;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.sidebar-item-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sidebar-item:hover .sidebar-item-icon { transform: scale(1.1); }

.sidebar-item-text {
    font-size: 13.5px;
    font-weight: 600;
    opacity: 1;
    transition: opacity 0.2s, width 0.3s;
    overflow: hidden;
}

.sidebar.collapsed .sidebar-item-text {
    opacity: 0;
    width: 0;
    pointer-events: none;
}

/* --- Bottom --- */

.sidebar-bottom {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    flex-shrink: 0;
    margin-top: 8px;
}

.sidebar-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    overflow: hidden;
    white-space: nowrap;
    margin-bottom: 2px;
}

.sidebar.collapsed .sidebar-profile {
    justify-content: center;
    padding: 8px 0;
    gap: 0;
}

.sidebar-profile:hover { background: rgba(255, 255, 255, 0.04); }

.profile-avatar {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: linear-gradient(135deg, #2FA0A5, #229CB1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.profile-info {
    display: flex;
    flex-direction: column;
    opacity: 1;
    transition: opacity 0.2s, width 0.3s;
    overflow: hidden;
}

.sidebar.collapsed .profile-info {
    opacity: 0;
    width: 0;
    pointer-events: none;
}

.profile-name { font-size: 13px; font-weight: 700; color: #dde8e8; }
.profile-role { font-size: 10.5px; color: #5a6868; font-weight: 500; }

/* ==========================================
   TOOLTIP
   ========================================== */

.tooltip {
    position: fixed;
    transform: translateY(-50%) scale(0.92);
    background: #0c2324;
    color: #c0e0e0;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s, transform 0.18s;
    z-index: 9999;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(47, 160, 165, 0.15);
}

.tooltip::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background: #0c2324;
    border-left: 1px solid rgba(47, 160, 165, 0.15);
    border-bottom: 1px solid rgba(47, 160, 165, 0.15);
}

/* ==========================================
   CONTENT AREA
   ========================================== */

.content-wrapper {
    flex: 1;
    position: relative;
    margin: 12px 12px 12px 0;
}

.content-area {
    width: 100%;
    height: 100%;
    background: linear-gradient(150deg, #E8F4F8 0%, #F3FAFD 45%, #EBF5F8 100%);
    border-radius: 50px;
    color: #1e1e1e;
    padding: 20px 28px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #c4d8de transparent;
}

.content-area::-webkit-scrollbar { width: 6px; }
.content-area::-webkit-scrollbar-track { background: transparent; }
.content-area::-webkit-scrollbar-thumb { background: #d0dfe4; border-radius: 3px; }

/* ==========================================
   TAB NOTCH
   ========================================== */

.tab-notch {
    position: absolute;
    left: 0;
    bottom: 140px;
    width: 0;
    height: 0;
    z-index: 20;
    cursor: pointer;
}

.tab-notch-shape {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #F4FAFC;
    border-radius: 50%;
    margin-right: -20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.08);
}

.tab-notch:hover .tab-notch-shape { background: #e6f0f4; }

.tab-notch-shape svg {
    width: 14px;
    height: 14px;
    stroke: #2FA0A5;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    margin-left: -2px;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-notch.flipped .tab-notch-shape svg { transform: rotate(180deg); }

/* ==========================================
   TOP CARD
   ========================================== */

.top-card {
    background: #ffffff;
    border-radius: 28px;
    padding: 20px 28px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(18,38,42,0.06), 0 8px 28px rgba(18,38,42,0.07), 0 0 0 1px rgba(18,38,42,0.025);
}

.top-card-slim { padding: 16px 28px; }
.top-card-slim .top-card-header { margin-bottom: 0; }

.top-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 12px;
}

.page-title { font-size: 26px; font-weight: 800; color: #0f1e20; letter-spacing: -0.5px; }

.top-card-actions { display: flex; align-items: center; gap: 10px; }

.top-card-divider { height: 1px; background: #edf4f6; margin-bottom: 16px; }

/* --- Balance --- */

.balance-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #f3fafb 0%, #edf6f8 100%);
    border: 1px solid #d8eaed;
    border-radius: 14px;
    padding: 9px 16px;
    font-size: 13.5px;
    font-weight: 600;
    color: #1a2a2a;
    cursor: pointer;
    transition: all 0.2s;
}

.balance-badge:hover { border-color: #aacdd4; background: linear-gradient(135deg, #eaf6f8 0%, #e4f3f6 100%); }

.balance-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #2FA0A5;
    flex-shrink: 0;
}

.balance-amount { color: #2FA0A5; font-weight: 700; }

.balance-badge svg {
    width: 14px; height: 14px;
    stroke: #aaa; fill: none; stroke-width: 2;
    stroke-linecap: round; stroke-linejoin: round;
}

/* --- Buttons --- */

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid #e4eef0;
    background: #f6fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.icon-btn:hover { background: #eef6f8; border-color: #c0d8dc; }

.icon-btn svg {
    width: 17px; height: 17px;
    stroke: #778; fill: none; stroke-width: 1.8;
    stroke-linecap: round; stroke-linejoin: round;
}

.btn-primary {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #2FA0A5 0%, #1e8f96 100%);
    color: #fff;
    border: none;
    border-radius: 14px;
    padding: 10px 22px;
    font-family: 'Raleway', sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 0 4px 14px rgba(47,160,165,0.28), 0 1px 3px rgba(0,0,0,0.1);
    letter-spacing: 0.1px;
}

.btn-primary:hover {
    box-shadow: 0 8px 24px rgba(47,160,165,0.38), 0 2px 6px rgba(0,0,0,0.12);
    transform: translateY(-2px);
    background: linear-gradient(135deg, #34adb2 0%, #2299a8 100%);
}
.btn-primary:active { transform: translateY(0); }

.btn-primary svg {
    width: 16px; height: 16px;
    stroke: currentColor; fill: none; stroke-width: 2.5;
    stroke-linecap: round; stroke-linejoin: round;
}

/* ==========================================
   FILTERS
   ========================================== */

.filters-row {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
    min-width: 130px;
}

.filter-label {
    font-size: 9.5px;
    font-weight: 700;
    color: #2FA0A5;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.filter-select {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    background: #f6fafb;
    border: 1px solid #e4eef0;
    border-radius: 12px;
    font-family: 'Raleway', sans-serif;
    font-feature-settings: "lnum" 1;
    font-size: 13px;
    font-weight: 600;
    color: #1a2a2a;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.filter-select:hover { border-color: #c0d8dc; }

.filter-select svg {
    width: 14px; height: 14px;
    stroke: #aaa; fill: none; stroke-width: 2;
    stroke-linecap: round; stroke-linejoin: round;
    margin-left: auto; flex-shrink: 0;
}

.filter-select .cal-icon {
    width: 15px; height: 15px;
    stroke: #2FA0A5; margin-right: 2px;
}

.btn-apply {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #1a2a2a;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 9px 18px;
    font-family: 'Raleway', sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    height: 40px;
}

.btn-apply:hover { background: #0f1e1e; }

.btn-apply svg {
    width: 15px; height: 15px;
    stroke: currentColor; fill: none; stroke-width: 2;
    stroke-linecap: round; stroke-linejoin: round;
}

/* ==========================================
   BLOCK CARDS
   ========================================== */

.blocks-row {
    display: grid;
    grid-template-columns: 65fr 35fr;
    gap: 20px;
    margin-bottom: 20px;
}

.block-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(18,38,42,0.05), 0 8px 28px rgba(18,38,42,0.07), 0 0 0 1px rgba(18,38,42,0.025);
    transition: box-shadow 0.2s;
}
.block-card:hover {
    box-shadow: 0 4px 12px rgba(18,38,42,0.07), 0 12px 36px rgba(18,38,42,0.09), 0 0 0 1px rgba(18,38,42,0.03);
}

.block-full { margin-bottom: 20px; }

.block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.block-title { font-size: 16px; font-weight: 800; color: #0f1e20; }

.block-link {
    font-size: 12px;
    font-weight: 600;
    color: #2FA0A5;
    cursor: pointer;
    transition: color 0.2s;
}

.block-link:hover { color: #1d7a7f; }

/* ==========================================
   TRANSACTIONS
   ========================================== */

.tx-list { display: flex; flex-direction: column; gap: 4px; }

.tx-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 16px;
    transition: all 0.15s;
    cursor: pointer;
}

.tx-item:hover {
    background: linear-gradient(135deg, #f0f9fa 0%, #edf7f8 100%);
    transform: translateX(3px);
}

.tx-date {
    width: 48px;
    min-width: 48px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
}

.tx-date-day { font-size: 18px; font-weight: 800; line-height: 1; }

.tx-date-month {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.7;
}

.tx-date.upcoming { background: #edf8f8; color: #2FA0A5; }
.tx-date.warning { background: #fff5ed; color: #e68a3a; }
.tx-date.neutral { background: #f0f4f6; color: #667; }

.tx-info { flex: 1; min-width: 0; }

.tx-name {
    font-size: 13.5px;
    font-weight: 700;
    color: #1a2a2a;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tx-category { font-size: 11.5px; font-weight: 500; color: #99a8a8; }

.tx-badge {
    font-size: 9px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.tx-badge.pending { background: #edf8f8; color: #2FA0A5; }
.tx-badge.overdue { background: #fff5ed; color: #e68a3a; }

.tx-amount {
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    text-align: right;
}

.tx-amount.income { color: #2FA0A5; }
.tx-amount.expense { color: #1a2a2a; }

/* ==========================================
   ACCOUNTS
   ========================================== */

.accounts-list { display: flex; flex-direction: column; gap: 6px; }

.account-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 18px;
    background: linear-gradient(135deg, #f8fbfc 0%, #f4fafb 100%);
    border: 1px solid #e8f2f4;
    transition: all 0.2s;
    cursor: pointer;
}

.account-item:hover {
    border-color: #c4dce0;
    box-shadow: 0 4px 16px rgba(18,38,42,0.08);
    transform: translateY(-2px);
    background: linear-gradient(135deg, #f0f9fa 0%, #ecf7f9 100%);
}

.account-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    color: #fff;
}

.account-icon.cash { background: linear-gradient(135deg, #f59e0b, #d97706); }
.account-icon.bank { background: linear-gradient(135deg, #2FA0A5, #229CB1); }
.account-icon.invest { background: linear-gradient(135deg, #7c3aed, #6d28d9); }

.account-info { flex: 1; }
.account-name { font-size: 13.5px; font-weight: 700; color: #1a2a2a; margin-bottom: 2px; }
.account-type { font-size: 11.5px; font-weight: 500; color: #99a8a8; }

.account-balance { text-align: right; }
.account-balance-amount { font-size: 15px; font-weight: 700; color: #1a2a2a; }
.account-balance-label { font-size: 10.5px; font-weight: 500; color: #b0bec0; }

/* ==========================================
   PROFIT CHART
   ========================================== */

.chart-header-row {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.chart-stat { display: flex; flex-direction: column; gap: 2px; }
.chart-stat-label { font-size: 11px; font-weight: 600; color: #99a8a8; }
.chart-stat-value { font-size: 20px; font-weight: 800; }
.chart-stat-value.income { color: #2FA0A5; }
.chart-stat-value.expense { color: #e85454; }
.chart-stat-value.profit { color: #1a2a2a; }
.chart-stat-sub { font-size: 10px; font-weight: 600; color: #b0bec0; }

.chart-toggle { display: flex; gap: 4px; margin-left: auto; }

.chart-toggle-btn {
    padding: 6px 14px;
    border: 1px solid #e4eef0;
    border-radius: 10px;
    background: transparent;
    font-family: 'Raleway', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #778;
    cursor: pointer;
    transition: all 0.2s;
}

.chart-toggle-btn.active {
    background: #1a2a2a;
    color: #fff;
    border-color: #1a2a2a;
}

.chart-toggle-btn:hover:not(.active) { border-color: #c0d8dc; }

.chart-area { width: 100%; overflow: hidden; }
.chart-area svg { width: 100%; display: block; }

.chart-legend { display: flex; gap: 20px; margin-top: 14px; }

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 600;
    color: #778;
}

.legend-dot { width: 10px; height: 10px; border-radius: 3px; }

/* ==========================================
   BUDGET
   ========================================== */

.budget-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 24px;
    align-items: center;
}

.budget-stats { display: flex; flex-direction: column; gap: 14px; }

.budget-stat { display: flex; align-items: center; gap: 10px; }

.budget-stat-dot {
    width: 12px;
    height: 12px;
    border-radius: 4px;
    flex-shrink: 0;
}

.budget-stat-info { display: flex; flex-direction: column; }
.budget-stat-label { font-size: 11px; font-weight: 600; color: #99a8a8; }
.budget-stat-value { font-size: 16px; font-weight: 800; color: #1a2a2a; }

.budget-bar-wrap { display: flex; flex-direction: column; gap: 8px; }
.budget-bar-labels { display: flex; justify-content: space-between; }
.budget-bar-label { font-size: 10px; font-weight: 600; color: #b0bec0; }

.budget-bar {
    height: 32px;
    background: #f0f4f6;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.budget-bar-fill {
    height: 100%;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 12px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.budget-categories {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.budget-cat {
    padding: 5px 12px;
    background: #f6fafb;
    border: 1px solid #eef4f6;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    color: #667;
    display: flex;
    align-items: center;
    gap: 6px;
}

.budget-cat-amount { font-weight: 700; color: #1a2a2a; }

/* ==========================================
   OPERATIONS PAGE
   ========================================== */

/* Layout */
.ops-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 28px;
}

.ops-filter-sidebar {
    width: 248px;
    min-width: 248px;
    background: #ffffff;
    border-radius: 24px;
    padding: 24px 20px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ops-content {
    flex: 1;
    min-width: 0;
}

.filter-sidebar-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a2a2a;
    margin-bottom: 20px;
}

.filter-sidebar-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.filter-sidebar-label {
    font-size: 9.5px;
    font-weight: 700;
    color: #99a8a8;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.filter-checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    font-weight: 600;
    color: #1a2a2a;
    cursor: pointer;
}

.filter-checkbox {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border-radius: 7px;
    border: 1.5px solid #e4eef0;
    background: #f6fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.filter-checkbox.checked {
    background: linear-gradient(135deg, #2FA0A5, #229CB1);
    border-color: #2FA0A5;
}

.filter-sidebar-select {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #f6fafb;
    border: 1px solid #e4eef0;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    color: #1a2a2a;
    cursor: pointer;
    transition: border-color 0.2s;
}

.filter-sidebar-select:hover { border-color: #c0d8dc; }

.filter-sidebar-select svg {
    width: 14px;
    height: 14px;
    stroke: #aaa;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.filter-range-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-range-input {
    flex: 1;
    padding: 10px 12px;
    background: #f6fafb;
    border: 1px solid #e4eef0;
    border-radius: 12px;
    font-family: 'Raleway', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #1a2a2a;
    outline: none;
    transition: border-color 0.2s;
    min-width: 0;
}

.filter-range-input::placeholder { color: #c0ccd0; }
.filter-range-input:focus { border-color: #2FA0A5; }

.filter-range-dash {
    font-size: 14px;
    color: #c0ccd0;
    font-weight: 600;
    flex-shrink: 0;
}

.filter-date-wrap {
    position: relative;
}

.filter-date-input {
    width: 100%;
    padding: 10px 38px 10px 14px;
    background: #f6fafb;
    border: 1px solid #e4eef0;
    border-radius: 12px;
    font-family: 'Raleway', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #1a2a2a;
    outline: none;
    transition: border-color 0.2s;
}

.filter-date-input::placeholder { color: #c0ccd0; }
.filter-date-input:focus { border-color: #2FA0A5; }

.filter-date-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    stroke: #b0bec0;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

.filter-sidebar-apply {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #2FA0A5, #229CB1);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-family: 'Raleway', sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 16px rgba(47, 160, 165, 0.2);
    margin-bottom: 8px;
}

.filter-sidebar-apply:hover {
    box-shadow: 0 6px 20px rgba(47, 160, 165, 0.3);
    transform: translateY(-1px);
}

.filter-sidebar-apply svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.filter-sidebar-reset {
    width: 100%;
    padding: 11px;
    background: transparent;
    border: 1px solid #e4eef0;
    border-radius: 14px;
    font-family: 'Raleway', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #7a8a8a;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-sidebar-reset:hover {
    border-color: #c0d8dc;
    color: #445;
}

/* --- Import / Export outline button --- */
.btn-outline-icon {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    background: transparent;
    border: 1.5px solid #e4eef0;
    border-radius: 12px;
    font-family: 'Raleway', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #445;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-outline-icon:hover { border-color: #2FA0A5; color: #2FA0A5; background: #f0fbfc; }

.btn-outline-icon svg {
    width: 15px; height: 15px;
    stroke: currentColor; fill: none;
    stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* --- Operations search --- */
.ops-search-wrap {
    position: relative;
    margin-bottom: 16px;
}

.ops-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px; height: 16px;
    stroke: #b0bec0; fill: none;
    stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
    pointer-events: none;
}

.ops-search-input {
    width: 100%;
    padding: 11px 16px 11px 42px;
    background: #f6fafb;
    border: 1.5px solid #e4eef0;
    border-radius: 14px;
    font-family: 'Raleway', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #1a2a2a;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ops-search-input::placeholder { color: #c0ccd0; }
.ops-search-input:focus { border-color: #2FA0A5; box-shadow: 0 0 0 3px rgba(47,160,165,0.08); }

.ops-tabs-bar {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    background: #f6fafb;
    border-radius: 16px;
    padding: 4px;
}

.ops-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 16px;
    border: none;
    background: transparent;
    border-radius: 12px;
    font-family: 'Raleway', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #7a8a8a;
    cursor: pointer;
    transition: all 0.2s;
}

.ops-tab.active {
    background: #ffffff;
    color: #1a2a2a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.ops-tab:not(.active):hover { color: #445; }

.ops-tab-count {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
}

.ops-count-income { background: #edf8f8; color: #2FA0A5; }
.ops-count-expense { background: #fff5f5; color: #e85454; }
.ops-count-transfer { background: #f0f4f6; color: #667; }

/* --- Bulk bar --- */
.ops-bulk-bar {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #1a2a2a;
    border-radius: 14px;
    margin-bottom: 12px;
    animation: slideDown 0.2s ease;
}

.ops-bulk-bar.visible { display: flex; }

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.ops-bulk-left {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 700; color: #fff;
}

.ops-bulk-left svg { stroke: #2FA0A5; }

.ops-bulk-action {
    display: flex; align-items: center; gap: 6px;
    padding: 6px 14px;
    background: rgba(255,255,255,0.1);
    border: none; border-radius: 9px;
    font-family: 'Raleway', sans-serif;
    font-size: 12px; font-weight: 600; color: #fff;
    cursor: pointer; transition: background 0.2s;
}

.ops-bulk-action:hover { background: rgba(255,255,255,0.18); }
.ops-bulk-action svg { stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ops-bulk-del { color: #ff8a8a; }

.ops-bulk-cancel-btn {
    margin-left: auto;
    padding: 6px 14px;
    background: transparent; border: none;
    font-family: 'Raleway', sans-serif;
    font-size: 12px; font-weight: 600; color: #7a9a9a;
    cursor: pointer; transition: color 0.2s;
}

.ops-bulk-cancel-btn:hover { color: #fff; }

/* --- Checkbox --- */
.ops-chk-wrap {
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; flex-shrink: 0;
}

.ops-chk-wrap input { display: none; }

.ops-chk-box {
    width: 18px; height: 18px;
    border-radius: 6px;
    border: 1.5px solid #d0dfe4;
    background: #fff;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.15s;
    flex-shrink: 0;
}

.ops-chk-wrap input:checked + .ops-chk-box {
    background: #2FA0A5;
    border-color: #2FA0A5;
}

.ops-chk-wrap input:checked + .ops-chk-box::after {
    content: '';
    width: 9px; height: 6px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) translateY(-1px);
    display: block;
}

.ops-chk-wrap:hover .ops-chk-box { border-color: #2FA0A5; }

/* --- Ops list header & rows --- */
.ops-list-header {
    display: grid;
    grid-template-columns: 36px 80px 1fr 1fr 1fr 120px;
    padding: 0 14px 10px;
    font-size: 10px;
    font-weight: 700;
    color: #b0bec0;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-bottom: 1px solid #f0f4f6;
    margin-bottom: 6px;
    gap: 8px;
}

.ops-list-header.ops-list-header-transfer {
    grid-template-columns: 36px 80px 1fr 1fr 120px;
}

.ops-row {
    display: grid;
    grid-template-columns: 36px 80px 1fr 1fr 1fr 120px;
    align-items: center;
    padding: 11px 14px;
    border-radius: 14px;
    transition: background 0.15s;
    cursor: pointer;
    gap: 8px;
}

.ops-row.ops-row-transfer {
    grid-template-columns: 36px 80px 1fr 1fr 120px;
}

.ops-row:hover { background: #f8fbfc; }
.ops-row-selected { background: #edf8f8 !important; }

/* --- Edit modal --- */
.ops-edit-overlay {
    position: fixed; inset: 0; z-index: 9000;
    background: rgba(10,30,30,0);
    display: flex; align-items: center; justify-content: center;
    transition: background 0.25s;
}

.ops-edit-overlay.visible { background: rgba(10,30,30,0.45); }

.ops-edit-modal {
    background: #fff;
    border-radius: 24px;
    width: 480px;
    max-width: calc(100vw - 40px);
    box-shadow: 0 24px 80px rgba(0,0,0,0.2);
    transform: translateY(20px) scale(0.97);
    opacity: 0;
    transition: transform 0.25s cubic-bezier(0.4,0,0.2,1), opacity 0.25s;
}

.ops-edit-overlay.visible .ops-edit-modal {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.ops-edit-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #f0f4f6;
}

.ops-edit-title { font-size: 16px; font-weight: 700; color: #1a2a2a; display: flex; align-items: center; gap: 10px; }

.ops-edit-badge {
    font-size: 11px; font-weight: 700;
    background: #edf8f8; color: #2FA0A5;
    padding: 3px 10px; border-radius: 8px;
}

.ops-edit-close {
    width: 32px; height: 32px; border-radius: 10px;
    border: none; background: #f6fafb;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: background 0.2s; color: #667;
}
.ops-edit-close:hover { background: #eef6f8; }

.ops-edit-body { padding: 20px 24px; display: flex; flex-direction: column; gap: 14px; }

.ops-edit-hint { font-size: 12.5px; color: #99a8a8; font-weight: 500; line-height: 1.5; }

.ops-edit-type-row { display: flex; gap: 6px; }

.ops-edit-type-btn {
    flex: 1; padding: 8px;
    border: 1.5px solid #e4eef0; border-radius: 10px;
    background: transparent;
    font-family: 'Raleway', sans-serif;
    font-size: 12.5px; font-weight: 600; color: #7a8a8a;
    cursor: pointer; transition: all 0.2s;
}

.et-active-income  { background: #edf8f8; border-color: #2FA0A5; color: #2FA0A5; }
.et-active-expense { background: #fff5f5; border-color: #e85454; color: #e85454; }
.et-active-transfer{ background: #f0f4f6; border-color: #667; color: #445; }
.ops-edit-type-btn:hover:not(.et-active-income):not(.et-active-expense):not(.et-active-transfer) { border-color: #c0d8dc; }

.ops-edit-field { display: flex; flex-direction: column; gap: 6px; }
.ops-edit-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ops-edit-label { font-size: 10px; font-weight: 700; color: #2FA0A5; letter-spacing: 1.2px; text-transform: uppercase; }

.ops-edit-input, .ops-edit-textarea {
    padding: 10px 14px;
    background: #f6fafb; border: 1.5px solid #e4eef0;
    border-radius: 12px;
    font-family: 'Raleway', sans-serif;
    font-size: 13px; font-weight: 600; color: #1a2a2a;
    outline: none; transition: border-color 0.2s;
}

.ops-edit-input:focus, .ops-edit-textarea:focus { border-color: #2FA0A5; }
.ops-edit-textarea { resize: none; height: 72px; }

.ops-edit-select {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 14px;
    background: #f6fafb; border: 1.5px solid #e4eef0;
    border-radius: 12px;
    font-family: 'Raleway', sans-serif;
    font-size: 13px; font-weight: 600; color: #1a2a2a;
    cursor: pointer; transition: border-color 0.2s;
}

.ops-edit-select:hover { border-color: #c0d8dc; }

.ops-edit-footer {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 24px 20px;
    border-top: 1px solid #f0f4f6;
}

.ops-edit-footer-right { display: flex; gap: 8px; }

.ops-edit-delete-btn {
    display: flex; align-items: center; gap: 6px;
    padding: 9px 16px; border-radius: 12px;
    border: 1.5px solid #fdd8d8; background: transparent;
    font-family: 'Raleway', sans-serif;
    font-size: 12.5px; font-weight: 600; color: #e85454;
    cursor: pointer; transition: all 0.2s;
}

.ops-edit-delete-btn:hover { background: #fff5f5; }

.ops-edit-cancel {
    padding: 10px 18px; border-radius: 12px;
    border: 1.5px solid #e4eef0; background: transparent;
    font-family: 'Raleway', sans-serif;
    font-size: 13px; font-weight: 600; color: #667;
    cursor: pointer; transition: all 0.2s;
}

.ops-edit-cancel:hover { border-color: #c0d8dc; }

.ops-edit-save {
    padding: 10px 22px; border-radius: 12px;
    border: none; background: linear-gradient(135deg, #2FA0A5, #229CB1);
    font-family: 'Raleway', sans-serif;
    font-size: 13px; font-weight: 700; color: #fff;
    cursor: pointer; transition: all 0.2s;
    box-shadow: 0 4px 14px rgba(47,160,165,0.25);
}

.ops-edit-save:hover { box-shadow: 0 6px 20px rgba(47,160,165,0.35); transform: translateY(-1px); }

.ops-row-date {
    font-size: 12px;
    font-weight: 600;
    color: #99a8a8;
    white-space: nowrap;
}

.ops-row-name {
    font-size: 13.5px;
    font-weight: 700;
    color: #1a2a2a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ops-row-category {
    font-size: 12px;
    font-weight: 500;
    color: #99a8a8;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ops-row-account-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: #f6fafb;
    border: 1px solid #eef4f6;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    color: #667;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.ops-row-amount {
    font-size: 14px;
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
}

.ops-row-amount.income { color: #2FA0A5; }
.ops-row-amount.expense { color: #1a2a2a; }
.ops-row-amount.transfer { color: #667; }

/* ==========================================
   PLANNED PAYMENTS / CALENDAR PAGE
   ========================================== */

/* Toolbar */
.cal-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 12px;
    flex-wrap: wrap;
}

.cal-nav-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cal-nav-arrow {
    width: 36px; height: 36px;
    border-radius: 10px;
    border: 1.5px solid #e4eef0;
    background: #f6fafb;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: #556;
}

.cal-nav-arrow:hover { border-color: #2FA0A5; color: #2FA0A5; background: #f0fbfc; }

.cal-nav-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a2a2a;
    min-width: 160px;
    text-align: center;
}

.cal-view-group {
    display: flex;
    gap: 4px;
    background: #f6fafb;
    border-radius: 12px;
    padding: 4px;
}

.cal-view-btn {
    padding: 7px 16px;
    border: none;
    background: transparent;
    border-radius: 9px;
    font-family: 'Raleway', sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    color: #7a8a8a;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.cal-view-btn.active { background: #fff; color: #1a2a2a; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.cal-view-btn:not(.active):hover { color: #445; }

/* Stats row */
.cal-stats-row {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.cal-stat-card {
    flex: 1;
    padding: 16px 20px;
    border-radius: 18px;
    background: #f6fafb;
    border: 1.5px solid #eef4f6;
    transition: box-shadow 0.2s;
}
.cal-stat-card:hover { box-shadow: 0 4px 16px rgba(18,38,42,0.07); }

.cal-stat-card.income-card { background: linear-gradient(135deg, #e8f8f8 0%, #edfaf9 100%); border-color: #bce8e8; }
.cal-stat-card.expense-card { background: linear-gradient(135deg, #fff4f4 0%, #fff7f7 100%); border-color: #fccece; }

.cal-stat-label { font-size: 11px; font-weight: 600; color: #99a8a8; margin-bottom: 4px; }

.cal-stat-val { font-size: 18px; font-weight: 800; color: #1a2a2a; }
.cal-stat-card.income-card .cal-stat-val { color: #2FA0A5; }
.cal-stat-card.expense-card .cal-stat-val { color: #e85454; }
.cal-stat-val.neutral { color: #1a2a2a; }

/* ── Month view ── */
.cal-month-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.cal-weekday {
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    color: #b0bec0;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 8px 0;
}

.cal-cell {
    min-height: 100px;
    padding: 9px 10px;
    border-radius: 12px;
    border: 1.5px solid #eef3f5;
    background: #fff;
    transition: all 0.15s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cal-cell:hover {
    background: #f0fbfc;
    border-color: #b8e2e4;
    box-shadow: 0 3px 12px rgba(47,160,165,0.1);
    z-index: 1;
    position: relative;
}

.cal-cell-other { opacity: 0.28; pointer-events: none; }

.cal-cell-today {
    background: linear-gradient(145deg, #e8f8f8 0%, #edf9f9 100%);
    border-color: #2FA0A5;
    box-shadow: 0 0 0 3px rgba(47,160,165,0.1);
}

.cal-cell-num {
    font-size: 13px;
    font-weight: 700;
    color: #1a2a2a;
    line-height: 1;
}

.cal-cell-today .cal-cell-num {
    color: #fff;
    background: #2FA0A5;
    width: 26px; height: 26px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}

.cal-pill {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cal-pill-income  { background: #edf8f8; color: #2FA0A5; }
.cal-pill-expense { background: #f0f4f6; color: #556; }
.cal-pill-overdue { background: #fff5ed; color: #e68a3a; }

/* ── Week view ── */
.cal-week-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.cal-week-col {
    border-radius: 14px;
    border: 1.5px solid #eef3f5;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.cal-week-col:hover {
    box-shadow: 0 4px 16px rgba(18,38,42,0.07);
    border-color: #d8e8ec;
}

.cal-week-today {
    border-color: #2FA0A5;
    box-shadow: 0 0 0 3px rgba(47,160,165,0.1);
}

.cal-week-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 6px;
    border-bottom: 1px solid #f0f4f6;
    background: #fafcfd;
}

.cal-week-dname {
    font-size: 10px;
    font-weight: 700;
    color: #99a8a8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cal-week-dnum {
    font-size: 16px;
    font-weight: 800;
    color: #1a2a2a;
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}

.cal-dnum-today { background: #2FA0A5; color: #fff; }

.cal-week-body {
    padding: 8px 6px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 120px;
}

.cal-week-item {
    padding: 7px 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.15s;
}

.cal-week-item:hover { opacity: 0.8; }
.cal-week-income  { background: #edf8f8; }
.cal-week-expense { background: #f0f4f6; }
.cal-week-overdue { background: #fff5ed; }

.cal-week-item-name { font-size: 11px; font-weight: 700; color: #1a2a2a; margin-bottom: 2px; }
.cal-week-item-amount { font-size: 10px; font-weight: 600; color: #2FA0A5; }
.cal-week-expense .cal-week-item-amount { color: #667; }
.cal-week-overdue .cal-week-item-amount { color: #e68a3a; }

/* ── Day view ── */
.cal-day-view { }

.cal-day-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a2a2a;
    margin-bottom: 16px;
}

.cal-day-section-label {
    font-size: 10px;
    font-weight: 700;
    color: #99a8a8;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.cal-empty {
    padding: 20px;
    text-align: center;
    color: #b0bec0;
    font-size: 13px;
    font-weight: 600;
}

/* ── List view ── */
.cal-list-view { display: flex; flex-direction: column; gap: 20px; }

.cal-list-group { }

.cal-list-date-hdr {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f4f6;
}

.cal-list-fullday { font-size: 14px; font-weight: 700; color: #1a2a2a; }
.cal-list-shortdate { font-size: 12px; font-weight: 600; color: #99a8a8; }

/* ── Shared list item (day + list views) ── */
.cal-list-items { display: flex; flex-direction: column; gap: 4px; }

.cal-list-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 14px;
    cursor: pointer;
    transition: background 0.15s;
}

.cal-list-item:hover { background: #f6fafb; }

.cal-item-dot {
    width: 10px; height: 10px; min-width: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.cal-dot-income  { background: #2FA0A5; }
.cal-dot-expense { background: #b0bec0; }
.cal-dot-overdue { background: #e68a3a; }

.cal-item-info { flex: 1; min-width: 0; }
.cal-item-name { font-size: 13.5px; font-weight: 700; color: #1a2a2a; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-item-cat  { font-size: 11.5px; font-weight: 500; color: #99a8a8; }

.cal-item-badge {
    font-size: 9px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.cal-badge-income  { background: #edf8f8; color: #2FA0A5; }
.cal-badge-expense { background: #f0f4f6; color: #667; }
.cal-badge-overdue { background: #fff5ed; color: #e68a3a; }

.cal-item-amount {
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    text-align: right;
}

.cal-item-amount.income  { color: #2FA0A5; }
.cal-item-amount.expense { color: #1a2a2a; }

/* ── List view — date group header (TickTick-style) ── */
.cal-list-view { gap: 8px; }

.cal-list-group {
    background: #fff;
    border-radius: 16px;
    border: 1.5px solid #f0f4f6;
    overflow: hidden;
    transition: box-shadow 0.15s;
}
.cal-list-group:hover { box-shadow: 0 4px 18px rgba(47,160,165,0.06); }

.cal-list-date-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: #f8fbfc;
    border-bottom: 1.5px solid #f0f4f6;
}

.cal-list-date-num {
    width: 46px;
    height: 46px;
    background: #ffffff;
    border: 1.5px solid #e4eef0;
    border-radius: 14px;
    font-size: 22px;
    font-weight: 800;
    color: #1a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: -1px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.cal-list-date-meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cal-list-day-name {
    font-size: 13.5px;
    font-weight: 700;
    color: #1a2a2a;
}

.cal-list-month {
    font-size: 11.5px;
    font-weight: 500;
    color: #99a8a8;
}

.cal-list-day-badges {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-shrink: 0;
}

.cll-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.cll-inc {
    background: #edf8f8;
    color: #2FA0A5;
    border: 1px solid #c8eaea;
}

.cll-exp {
    background: #fff5f5;
    color: #e85454;
    border: 1px solid #fdd8d8;
}

.cal-list-items {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cal-list-item {
    border-radius: 10px;
    padding: 11px 12px;
}

/* ── Month view — missing styles ── */
.cal-wday-hdr {
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    color: #99a8a8;
    padding: 10px 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.cal-cell-hdr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5px;
}

.cal-num-today {
    display: inline-flex;
    width: 24px;
    height: 24px;
    background: #2FA0A5;
    color: #fff;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
}

.cal-wnum {
    font-size: 8px;
    font-weight: 700;
    color: #c0cece;
    background: #f0f4f6;
    padding: 2px 5px;
    border-radius: 5px;
    letter-spacing: 0.02em;
}

.cal-cell-events {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cal-event {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 3px 6px;
    border-radius: 6px;
    font-size: 10.5px;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.15s;
}
.cal-event:hover { opacity: 0.78; transform: translateX(1px); }

.cal-event-income  { background: rgba(47,160,165,0.12); border-left: 2px solid rgba(47,160,165,0.4); }
.cal-event-expense { background: rgba(176,190,192,0.14); border-left: 2px solid rgba(176,190,192,0.4); }
.cal-event-overdue { background: rgba(230,138,58,0.13); border-left: 2px solid rgba(230,138,58,0.5); }

.cal-event-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    flex-shrink: 0;
}
.cal-event-income .cal-event-dot  { background: #2FA0A5; }
.cal-event-expense .cal-event-dot { background: #b0bec0; }
.cal-event-overdue .cal-event-dot { background: #e68a3a; }

.cal-event-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #1a2a2a;
    font-weight: 600;
}
.cal-event-income .cal-event-name  { color: #1a7a80; }
.cal-event-overdue .cal-event-name { color: #c07020; }

.cal-event-val {
    font-weight: 700;
    color: #445;
    flex-shrink: 0;
}
.cal-event-income .cal-event-val  { color: #2FA0A5; }
.cal-event-overdue .cal-event-val { color: #e68a3a; }

/* ==========================================
   ACCOUNTS PAGE
   ========================================== */

/* --- Tabs --- */
.acc-tabs-bar {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    background: #f6fafb;
    border-radius: 16px;
    padding: 4px;
}

.acc-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 10px;
    border: none;
    background: transparent;
    border-radius: 12px;
    font-family: 'Raleway', sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    color: #7a8a8a;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.acc-tab svg { stroke: currentColor; fill: none; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.acc-tab.active {
    background: #ffffff;
    color: #1a2a2a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.acc-tab:not(.active):hover { color: #445; }

/* --- Account Groups --- */
.acc-group { margin-bottom: 32px; }
.acc-group:last-child { margin-bottom: 0; }

.acc-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding: 0 4px;
}

.acc-group-name { font-size: 16px; font-weight: 700; color: #1a2a2a; }
.acc-group-balance { font-size: 16px; font-weight: 700; color: #2FA0A5; }

.acc-cards-row {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.acc-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 320px));
    gap: 20px;
}

/* --- Add Card Button --- */
.acc-add-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 220px;
    min-width: 220px;
    aspect-ratio: 1.586;
    border: 2px dashed #d4e4e8;
    border-radius: 20px;
    background: transparent;
    font-family: 'Raleway', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #b0c8cc;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.acc-add-card:hover {
    border-color: #2FA0A5;
    color: #2FA0A5;
    background: #f0fbfc;
}

/* --- Bank Cards --- */
.bank-card {
    position: relative;
    width: 100%;
    max-width: 320px;
    aspect-ratio: 1.586;
    border-radius: 22px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    flex-shrink: 0;
}

.bank-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 28px 64px rgba(0, 0, 0, 0.28);
}

/* Shine sweep on hover */
.bank-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -70%;
    width: 40%;
    height: 200%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0) 100%);
    transform: rotate(20deg);
    transition: left 0.55s ease;
    pointer-events: none;
    z-index: 2;
}

.bank-card:hover::after { left: 130%; }

.bc-pattern-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.bc-inner {
    position: relative;
    z-index: 1;
    height: 100%;
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #fff;
}

.bc-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bc-bank-name {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.bc-chip {
    width: 32px;
    height: 24px;
    opacity: 0.85;
}

.bc-number {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 3px;
    opacity: 0.85;
    font-variant-numeric: tabular-nums;
}

.bc-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
}

.bc-bottom-info { display: flex; flex-direction: column; gap: 2px; }

.bc-label {
    font-size: 8.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.6;
}

.bc-balance-val { font-size: 14px; font-weight: 700; }
.bc-owner-val { font-size: 11px; font-weight: 600; opacity: 0.85; letter-spacing: 0.5px; }

.bc-type-wrap { display: flex; align-items: center; justify-content: flex-end; }

/* Card brand logos */
.bc-type-visa {
    font-size: 16px;
    font-weight: 900;
    font-style: italic;
    letter-spacing: -0.5px;
    opacity: 0.9;
}

.bc-type-mc { display: flex; align-items: center; }

.bc-mc-l, .bc-mc-r {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.bc-mc-l { background: rgba(235, 0, 27, 0.88); margin-right: -8px; z-index: 1; }
.bc-mc-r { background: rgba(255, 163, 0, 0.88); }

.bc-type-mir {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    background: rgba(255,255,255,0.18);
    padding: 3px 8px;
    border-radius: 6px;
}

.bc-type-coin { font-size: 20px; font-weight: 700; opacity: 0.88; }

/* Card gradient colors */
.bc-dark   { background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%); }
.bc-teal   { background: linear-gradient(135deg, #2FA0A5 0%, #0d5f64 100%); }
.bc-blue   { background: linear-gradient(135deg, #3b82f6 0%, #1e3a8a 100%); }
.bc-green  { background: linear-gradient(135deg, #059669 0%, #064e3b 100%); }
.bc-slate  { background: linear-gradient(135deg, #475569 0%, #1e293b 100%); }
.bc-purple { background: linear-gradient(135deg, #7c3aed 0%, #4c1d95 100%); }
.bc-gold   { background: linear-gradient(135deg, #f59e0b 0%, #92400e 100%); }
.bc-rose   { background: linear-gradient(135deg, #ec4899 0%, #881337 100%); }
.bc-btc    { background: linear-gradient(135deg, #f7931a 0%, #b35b0a 100%); }
.bc-usdt   { background: linear-gradient(135deg, #26a17b 0%, #145c44 100%); }

/* ==========================================
   STUB PAGE
   ========================================== */

.stub-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
    padding: 40px;
}

.stub-icon {
    width: 80px;
    height: 80px;
    border-radius: 24px;
    background: #edf8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.stub-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a2a2a;
    margin-bottom: 12px;
}

.stub-desc {
    font-size: 14px;
    font-weight: 500;
    color: #7a8a8a;
    max-width: 440px;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* ==========================================
   АНАЛИТИКА
   ========================================== */

/* KPI row */
.anl-kpi-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

.anl-kpi-card {
    border-radius: 18px;
    padding: 20px 22px;
    position: relative;
    overflow: hidden;
    border: 1.5px solid transparent;
}

.anl-kpi-income  { background: linear-gradient(135deg, #e4f7f8 0%, #edfafa 100%); border-color: #b8e4e4; }
.anl-kpi-expense { background: linear-gradient(135deg, #fff2f2 0%, #fff6f6 100%); border-color: #f8c8c8; }
.anl-kpi-profit  { background: linear-gradient(135deg, #ecfdf5 0%, #f0fef8 100%); border-color: #a8edcc; }
.anl-kpi-margin  { background: linear-gradient(135deg, #fff8e8 0%, #fffbf0 100%); border-color: #fad878; }

.anl-kpi-icon {
    width: 32px; height: 32px;
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 12px;
    background: rgba(255,255,255,0.7);
}
.anl-kpi-income .anl-kpi-icon  { color: #2FA0A5; }
.anl-kpi-expense .anl-kpi-icon { color: #e85454; }
.anl-kpi-profit .anl-kpi-icon  { color: #22c55e; }
.anl-kpi-margin .anl-kpi-icon  { color: #f59e0b; }

.anl-kpi-label { font-size: 10.5px; font-weight: 700; color: #99a8a8; text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 6px; }
.anl-kpi-val   { font-size: 21px; font-weight: 800; margin-bottom: 5px; letter-spacing: -0.5px; }
.anl-kpi-sub   { font-size: 11.5px; font-weight: 600; color: #99a8a8; }

.anl-kpi-income .anl-kpi-val  { color: #2FA0A5; }
.anl-kpi-expense .anl-kpi-val { color: #e85454; }
.anl-kpi-profit .anl-kpi-val  { color: #16a34a; }
.anl-kpi-margin .anl-kpi-val  { color: #d97706; }

/* Donut section */
.anl-donut-card { flex: 1.1; min-width: 0; }
.anl-cats-card  { flex: 1.3; min-width: 0; }

.anl-total-badge {
    font-size: 12px;
    font-weight: 700;
    color: #556;
    background: #f0f4f6;
    padding: 4px 10px;
    border-radius: 8px;
}
.anl-badge-income { background: #edf8f8; color: #2FA0A5; }

.anl-donut-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 16px;
}
.anl-donut-svg { flex-shrink: 0; }

.anl-donut-cats { flex: 1; display: flex; flex-direction: column; gap: 11px; }

.anl-dc-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.anl-dc-swatch { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.anl-dc-name   { font-size: 12.5px; font-weight: 600; color: #1a2a2a; min-width: 64px; }
.anl-dc-bar-wrap { flex: 1; height: 6px; background: #f0f4f6; border-radius: 4px; overflow: hidden; }
.anl-dc-pct    { font-size: 11px; font-weight: 700; color: #99a8a8; min-width: 28px; text-align: right; }
.anl-dc-amt    { font-size: 12px; font-weight: 700; color: #1a2a2a; min-width: 88px; text-align: right; }

/* Category bars */
.anl-cats-list { display: flex; flex-direction: column; gap: 13px; }
.anl-cats-divider { height: 1px; background: #f0f4f6; margin: 18px 0 14px; }

.anl-cat-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.anl-cat-dot    { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.anl-cat-label  { font-size: 12.5px; font-weight: 600; color: #1a2a2a; min-width: 88px; }
.anl-cat-bar-wrap {
    flex: 1;
    height: 7px;
    background: #f0f4f6;
    border-radius: 4px;
    overflow: hidden;
}
.anl-cat-bar-fill { height: 100%; border-radius: 4px; transition: width 0.4s ease; }
.anl-cat-pct    { font-size: 11.5px; font-weight: 700; color: #99a8a8; min-width: 30px; text-align: right; }
.anl-cat-amount { font-size: 12.5px; font-weight: 700; color: #1a2a2a; min-width: 90px; text-align: right; }

/* Comparison table */
.anl-cmp-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    padding: 0 16px 10px;
    border-bottom: 1.5px solid #f0f4f6;
    margin-bottom: 4px;
}
.anl-cmp-col-hdr { font-size: 11px; font-weight: 700; color: #99a8a8; text-align: right; letter-spacing: 0.3px; }
.anl-cmp-header span:first-child { text-align: left; }

.anl-cmp-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    align-items: center;
    padding: 12px 16px;
    border-radius: 10px;
    transition: background 0.15s;
}
.anl-cmp-row-alt { background: #fafcfd; }
.anl-cmp-row:hover { background: #f0f6f8; }

.anl-cmp-label { font-size: 13px; font-weight: 700; color: #1a2a2a; }
.anl-cmp-val   { font-size: 13px; font-weight: 700; color: #1a2a2a; text-align: right; }
.anl-cmp-prev  { color: #99a8a8; font-weight: 600; }
.anl-cmp-diff  { font-size: 13px; font-weight: 700; text-align: right; }
.anl-cmp-diff.up   { color: #2FA0A5; }
.anl-cmp-diff.down { color: #e85454; }

/* ==========================================
   АКТИВЫ
   ========================================== */

/* Overview card — full width, 3-section */
.ast-overview {
    display: grid;
    grid-template-columns: 240px 190px 1fr;
    gap: 28px;
    align-items: start;
    margin-bottom: 20px;
    padding: 28px;
}

.ast-ov-label  { font-size: 10.5px; font-weight: 700; color: #99a8a8; text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 8px; }
.ast-ov-total  { font-size: 26px; font-weight: 800; color: #1a2a2a; letter-spacing: -1px; margin-bottom: 6px; }
.ast-ov-growth { font-size: 13px; font-weight: 700; color: #2FA0A5; margin-bottom: 18px; }

.ast-ov-chips { display: flex; flex-direction: column; gap: 6px; }
.ast-chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 11.5px;
    font-weight: 700;
    width: fit-content;
}
.ast-chip-up { background: #edf8f8; color: #2FA0A5; }
.ast-chip-dn { background: #fff5f5; color: #e85454; }

.ast-ov-donut { display: flex; justify-content: center; align-items: center; }

.ast-ov-cats { display: flex; flex-direction: column; gap: 14px; }

.ast-ov-cat-row {
    display: grid;
    grid-template-columns: 10px 110px 1fr 36px 130px 64px;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid #f4f8fa;
}
.ast-ov-cat-row:last-child { border-bottom: none; }
.ast-ov-cat-dot  { width: 10px; height: 10px; border-radius: 50%; }
.ast-ov-cat-name { font-size: 13px; font-weight: 700; color: #1a2a2a; }
.ast-ov-cat-bar-wrap { height: 8px; background: #f0f4f6; border-radius: 5px; overflow: hidden; }
.ast-ov-cat-pct  { font-size: 12px; font-weight: 700; color: #99a8a8; text-align: right; }
.ast-ov-cat-amt  { font-size: 13px; font-weight: 700; color: #1a2a2a; text-align: right; }
.ast-ov-cat-chg  { font-size: 12px; font-weight: 700; text-align: right; }

/* Tabs */
.ast-tabs-bar {
    display: flex;
    gap: 4px;
    background: #f6fafb;
    border-radius: 14px;
    padding: 4px;
    margin-bottom: 20px;
    width: fit-content;
}
.ast-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border: none;
    background: transparent;
    border-radius: 10px;
    font-family: 'Raleway', sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    color: #7a8a8a;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.ast-tab svg { stroke: currentColor; }
.ast-tab.active { background: #fff; color: #1a2a2a; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.ast-tab:not(.active):hover { color: #445; }

/* Asset list header */
.ast-list-header {
    display: grid;
    grid-template-columns: 52px 1fr 130px 145px 145px 100px;
    gap: 12px;
    padding: 0 16px 10px;
    border-bottom: 1.5px solid #f0f4f6;
    margin-bottom: 4px;
    font-size: 11px;
    font-weight: 700;
    color: #b0bec0;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

/* Asset item — no col-labels, clean grid */
.ast-item {
    display: grid;
    grid-template-columns: 52px 1fr 130px 145px 145px 100px;
    gap: 12px;
    align-items: center;
    padding: 13px 16px;
    border-radius: 14px;
    transition: background 0.15s;
    cursor: pointer;
}
.ast-item:hover { background: #f6fbfc; }

.ast-avatar {
    width: 44px; height: 44px;
    border-radius: 13px;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 800;
    color: #fff; flex-shrink: 0;
}
.ast-info  { min-width: 0; }
.ast-name  { font-size: 13.5px; font-weight: 700; color: #1a2a2a; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ast-type  { font-size: 11.5px; font-weight: 500; color: #99a8a8; }

.ast-val       { font-size: 13px; font-weight: 700; color: #1a2a2a; }
.ast-val-cur   { color: #2FA0A5; }

.ast-change-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    justify-self: start;
    white-space: nowrap;
}

.stub-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    background: #f6fafb;
    border: 1px solid #e4eef0;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    color: #2FA0A5;
    letter-spacing: 0.5px;
}
