:root {
    --bg-base: #000000;
    --bg-panel: #111111;
    --text-light: #FFFFFF;
    --text-muted: rgba(255, 255, 255, 0.5);
    --surface-light: rgba(255, 255, 255, 0.1);
    --surface-dark: #1E1E1E;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    -webkit-tap-highlight-color: transparent;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

*::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

body {
    background-color: #000000;
    color: #FFFFFF;
}

.app-container {
    width: 100%;
    max-width: 414px;
    margin: 0 auto;
    background-color: #000000;
    background-image: url('Frame 114717.png');
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden; /* Скрываем общий скролл */
    box-shadow: 0 0 40px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    height: 100vh; /* Фиксированная высота */
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 20px;
    position: relative;
    z-index: 1;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.greeting {
    display: flex;
    flex-direction: column;
}

.hello {
    font-size: 11px;
    color: var(--text-muted);
}

.name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-light);
}

.header-actions {
    display: flex;
    gap: 12px;
}

.icon-btn {
    width: 36px;
    height: 36px;
    background: var(--surface-light);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-light);
    position: relative;
    backdrop-filter: blur(10px);
}

.icon-btn svg {
    width: 16px;
    height: 16px;
}

.badge {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 6px;
    height: 6px;
    background: #000;
    border-radius: 50%;
    border: 1px solid #FFFFFF;
}

/* Toggle Pill */
.toggle-container {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    position: relative;
    z-index: 1;
}

.toggle-pill {
    display: flex;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    padding: 4px;
    backdrop-filter: blur(10px);
}

.toggle-item {
    padding: 10px 30px;
    border-radius: 26px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-item.active {
    background: #FFFFFF;
    color: #000000;
}

/* Eye Icon */
.eye-icon {
    display: flex;
    justify-content: flex-start;
    padding: 20px 24px 0;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
}

.eye-icon svg {
    width: 18px;
    height: 18px;
}

/* Balance */
.balance-container {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.balance-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.balance-amount {
    font-size: 40px;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: -0.5px;
}

.cents {
    font-size: 24px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Dots Indicator */
.dots-indicator {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-muted);
}

.dot.active {
    background: var(--text-light);
}

/* Quick Actions (Row format) */
.quick-actions {
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 22%;
}

.action-btn {
    width: 100%;
    aspect-ratio: 1.2;
    background: var(--surface-light);
    border: none;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-light);
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(0.95);
}

.action-btn svg {
    width: 20px;
    height: 20px;
}

.action-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-light);
    text-align: center;
}

/* Bottom Panel */
.bottom-panel {
    background: var(--bg-panel);
    flex: 1 0 auto;
    border-top-left-radius: 32px;
    border-top-right-radius: 32px;
    padding: 30px 24px 90px 24px; /* Added padding for bottom nav */
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 380px); /* Гарантируем растягивание плашки до самого низа */
}

/* Panel Tabs */
.panel-tabs {
    display: flex;
    gap: 12px;
}

.panel-tab {
    background: var(--surface-dark);
    padding: 12px 24px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    flex: 1;
    text-align: center;
    transition: background 0.2s;
}

.panel-tab.active {
    background: rgba(255,255,255,0.08);
    color: var(--text-light);
}

/* Tab Panes */
.tab-pane {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Card Info Box */
.card-info-box {
    background: var(--surface-dark);
    border-radius: 24px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.card-logo {
    width: 40px;
    height: 40px;
    background: #000;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
}

.card-logo svg {
    width: 20px;
    height: 20px;
}

.card-details {
    flex: 1;
}

.card-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 4px;
}

.card-number {
    font-size: 13px;
    color: var(--text-muted);
}

.card-balance {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-light);
}

/* Widgets (Analytics & Cashback) */
.widget-box {
    background: #1A1A1A;
    border-radius: 24px;
    padding: 20px;
    margin-top: 16px;
}

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

.widget-title {
    font-size: 16px;
    font-weight: 600;
    color: #FFFFFF;
}

.widget-action {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.4);
}

/* Analytics */
.analytics-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-item:last-child {
    align-items: flex-end;
}

.stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 4px;
}

.stat-value {
    font-size: 16px;
    font-weight: 600;
    color: #FFFFFF;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #FFFFFF; /* Нейтральный цвет, никаких ярких градиентов */
    border-radius: 3px;
}

/* Cashback */
.cashback-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.cb-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cb-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05); /* Нейтральный фон иконки */
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #FFFFFF;
}

.cb-icon svg {
    width: 20px;
    height: 20px;
}

.cb-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cb-name {
    font-size: 15px;
    font-weight: 500;
    color: #FFFFFF;
}

.cb-val {
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
}

.widget-btn {
    width: 100%;
    height: 48px;
    background: transparent;
    border: none; background: rgba(255,255,255,0.05);
    border-radius: 16px;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 600;
    outline: none;
    cursor: pointer;
}

/* Transactions in Dark Mode */
.tx-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tx-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.tx-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tx-icon svg {
    width: 18px;
    height: 18px;
}

.tx-info {
    flex: 1;
}

.tx-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 4px;
}

.tx-desc {
    font-size: 12px;
    color: var(--text-muted);
}

.tx-amount {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-light);
}

.tx-amount.positive {
    color: #FFFFFF;
}

#monthly-incomes-amount,
#monthly-expenses-amount {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
    width: 100% !important;
}

/* Bottom Nav (Floating Pill) */
.bottom-nav {
    position: fixed;
    bottom: 24px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: calc(100% - 48px);
    max-width: 366px;
    height: 70px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-image: url('Frame 114719.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 100;
    border-radius: 40px;
    padding: 0 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.bottom-nav .nav-item {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: all 0.2s ease;
}

.bottom-nav .nav-item.active {
    background: rgba(255, 255, 255, 0.15); /* Круглое выделение как на референсе */
    color: #FFFFFF;
}

.bottom-nav .nav-item svg {
    width: 24px;
    height: 24px;
}

/* Animations Framework */
.anim-init {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.anim-active {
    opacity: 1;
    transform: translateY(0);
}

/* Micro-interactions */
.action-btn:active, .icon-btn:active, .nav-item:active, .panel-tab:active, .tx-item:active {
    transform: scale(0.92) !important;
    opacity: 0.8;
}

.action-btn {
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Modals & Bottom Sheets */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.bottom-sheet {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 100%;
    max-width: 414px;
    background: #1A1A1A;
    border-top-left-radius: 32px;
    border-top-right-radius: 32px;
    padding: 30px 24px 50px;
    z-index: 1000;
    transition: bottom 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
}

.bottom-sheet.active {
    bottom: 0;
}

.sheet-handle {
    width: 40px;
    height: 5px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    margin: 0 auto 24px;
}

.sheet-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 12px;
    text-align: center;
}

.sheet-content {
    font-size: 15px;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.5;
}

/* View switching */
.main-view {
    display: none;
    animation: fadeIn 0.3s ease;
    flex-direction: column;
    flex: 1;
    overflow-y: auto;
    padding-bottom: 0; /* Убираем внешний отступ под навбар */
}

.main-view.active {
    display: flex;
}

#view-chat {
    overflow: hidden; /* Чат не должен скроллиться целиком */
    height: 100%;
    display: none;
    flex-direction: column;
}

#view-chat.active {
    display: flex;
}


#chat-messages {
    flex: 1;
    overflow-y: auto;
    min-height: 0; /* Важно для сжатия во flex-контейнере */
}



/* --- NFC & Chat Styles --- */
.nfc-wave {
    position: absolute;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    animation: nfcPulse 2.5s infinite ease-out;
    opacity: 0;
}
.wave-1 { width: 60px; height: 60px; animation-delay: 0s; }
.wave-2 { width: 100px; height: 100px; animation-delay: 0.8s; }
.wave-3 { width: 140px; height: 140px; animation-delay: 1.6s; }

@keyframes nfcPulse {
    0% { transform: scale(0.6); opacity: 0; }
    50% { opacity: 0.7; }
    100% { transform: scale(1.3); opacity: 0; }
}

.suggest-btn {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    border-radius: 12px;
    padding: 8px 16px;
    color: white;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
    outline: none;
}
.suggest-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Chat bubble types */
.chat-bubble.user {
    background: rgba(255,255,255,0.9);
    color: black !important;
    padding: 14px 16px;
    border-radius: 18px;
    border-top-right-radius: 4px;
    max-width: 85%;
    align-self: flex-end;
    font-size: 14px;
    line-height: 1.4;
    animation: fadeInBubble 0.25s ease forwards;
}

.chat-bubble.ai {
    animation: fadeInBubble 0.3s ease forwards;
}

@keyframes fadeInBubble {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Custom switch representation */
.custom-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}
.custom-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(255,255,255,0.15);
    transition: .3s;
    border-radius: 24px;
}
.switch-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}
input:checked + .switch-slider {
    background-color: white;
}
input:checked + .switch-slider:before {
    transform: translateX(20px);
    background-color: black;
}



/* --- UTILITY CLASSES --- */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }

.gap-4 { gap: 4px; }
.gap-8 { gap: 8px; }
.gap-10 { gap: 10px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.gap-30 { gap: 30px; }

.mt-5 { margin-top: 5px; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.ml-12 { margin-left: 12px; }

.p-12 { padding: 12px; }
.p-20 { padding: 20px; }
.p-30 { padding: 30px; }

.text-xs { font-size: 11px; }
.text-sm { font-size: 12px; }
.text-base { font-size: 14px; }
.text-lg { font-size: 16px; }
.text-xl { font-size: 20px; }
.text-2xl { font-size: 24px; }
.text-3xl { font-size: 28px; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.text-center { text-align: center; }

.text-muted { color: rgba(255, 255, 255, 0.4); }
.text-light { color: rgba(255, 255, 255, 0.6); }
.text-white { color: #ffffff; }

.bg-glass { background: rgba(255, 255, 255, 0.02); }
.bg-glass-light { background: rgba(255, 255, 255, 0.04); }

.rounded-lg { border-radius: 12px; }
.rounded-xl { border-radius: 16px; }
.rounded-full { border-radius: 50%; }

.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flex-1 { flex: 1; min-width: 0; }
.flex-shrink-0 { flex-shrink: 0; }

.w-full { width: 100%; }
.h-full { height: 100%; }

.hidden { display: none; }

/* Pure Borderless Card & Widget Design (Quick Action aesthetics) */
.widget-box,
.widget-card,
.card-info-box,
.tx-item,
.auth-card,
.bottom-panel,
.main-view div[class*="widget"],
.main-view div[class*="card"] {
    border: none !important;
    outline: none !important;
}

.main-view {
    min-height: 100vh;
    box-sizing: border-box;
}

.main-view.active {
    display: flex !important;
    flex-direction: column;
    animation: viewFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes viewFadeIn {
    0% {
        opacity: 0;
        transform: translateY(8px) scale(0.99);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Auth Screen Styling (Pure Dark Glass Aesthetics) */
.auth-card {
    background: rgba(255, 255, 255, 0.05) !important;
    border: none !important;
    border-radius: 28px !important;
    padding: 32px 24px !important;
    backdrop-filter: blur(30px) !important;
    -webkit-backdrop-filter: blur(30px) !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7) !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 400px !important;
}

.auth-input {
    width: 100% !important;
    height: 52px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: none !important;
    border-radius: 16px !important;
    padding: 0 18px !important;
    color: #FFFFFF !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    outline: none !important;
    box-sizing: border-box !important;
    transition: background 0.2s ease !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

.auth-input:focus {
    background: rgba(255, 255, 255, 0.1) !important;
}

.auth-input::placeholder {
    color: rgba(255, 255, 255, 0.3) !important;
}

.auth-btn {
    width: 100% !important;
    height: 52px !important;
    background: #FFFFFF !important;
    color: #000000 !important;
    border: none !important;
    border-radius: 16px !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    cursor: pointer !important;
    margin-top: 8px !important;
    transition: transform 0.15s ease, opacity 0.15s ease !important;
}

.auth-btn:hover {
    opacity: 0.92 !important;
    transform: translateY(-1px) !important;
}

.auth-btn:active {
    transform: translateY(0) !important;
}

/* Floating Bottom Navigation Island (Reference 2 & 4 style) */
.bottom-nav-bar {
    position: fixed !important;
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: calc(100% - 32px) !important;
    max-width: 420px !important;
    background: rgba(18, 18, 18, 0.9) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    border-radius: 36px !important;
    border: none !important;
    display: flex !important;
    justify-content: space-around !important;
    align-items: center !important;
    padding: 8px 10px !important;
    z-index: 900 !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7) !important;
    box-sizing: border-box !important;
}

.nav-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    padding: 6px 12px !important;
    border-radius: 20px !important;
    color: rgba(255, 255, 255, 0.4) !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.nav-item.active {
    color: #FFFFFF !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

.nav-item svg {
    width: 20px !important;
    height: 20px !important;
}

.nav-item span {
    font-size: 10px !important;
    font-weight: 600 !important;
    letter-spacing: 0.2px !important;
}

/* Segmented Control Pill (Reference 4 style) */
.segmented-control {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 18px;
    padding: 4px;
    gap: 4px;
}

.segmented-control-btn {
    flex: 1;
    height: 38px;
    border-radius: 14px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.segmented-control-btn.active {
    background: #FFFFFF;
    color: #000000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Vertical Bar Chart (Reference 4 style) */
.bar-chart-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 140px;
    padding: 24px 8px 8px 8px;
    gap: 8px;
    position: relative;
}

.bar-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: flex-end;
    position: relative;
    cursor: pointer;
}

.bar-fill {
    width: 100%;
    max-width: 32px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s;
    min-height: 12px;
}

.bar-column:hover .bar-fill,
.bar-column.active .bar-fill {
    background: #FFFFFF;
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.3);
}

.bar-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
    margin-top: 8px;
}

.bar-column.active .bar-label {
    color: #FFFFFF;
    font-weight: 600;
}

.bar-tooltip {
    position: absolute;
    top: -28px;
    background: rgba(20, 20, 20, 0.95);
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    display: block;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    z-index: 20;
}

.bar-column:hover .bar-tooltip,
.bar-column:active .bar-tooltip {
    opacity: 1;
    transform: translateY(0);
}

/* Asset Allocation Category Design (Reference Style) */
.allocation-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 20px 18px;
    margin-bottom: 16px;
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
}

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

.allocation-card-title {
    font-size: 13px;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: -0.2px;
}

.allocation-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 14px;
    width: 100%;
    box-sizing: border-box;
}

.allocation-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.allocation-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    min-width: 0;
    width: 100%;
}

.allocation-item-left {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    flex: 1;
    overflow: hidden;
}

.allocation-badge {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #FFFFFF;
}

.allocation-badge svg {
    width: 13px;
    height: 13px;
}

.allocation-name {
    font-size: 12px;
    font-weight: 600;
    color: #FFFFFF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.allocation-percent {
    font-size: 12px;
    font-weight: 700;
    color: #FFFFFF;
    flex-shrink: 0;
}

.allocation-bar-track {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
    box-sizing: border-box;
}

.allocation-bar-fill {
    height: 100%;
    background: #FFFFFF;
    border-radius: 4px;
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.allocation-amount {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.4);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}



/* Interactive Real Calendar Grid */
.calendar-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 20px;
    margin-bottom: 16px;
    box-sizing: border-box;
}

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

.calendar-month-title {
    font-size: 17px;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: -0.3px;
}

.calendar-nav-btn {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    border: none;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

.calendar-nav-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    margin-bottom: 8px;
}

.calendar-weekday {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
}

.calendar-days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    row-gap: 6px;
    column-gap: 4px;
    text-align: center;
}

.calendar-day-cell {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    position: relative;
    transition: background 0.2s ease, color 0.2s ease;
}

.calendar-day-cell:hover {
    background: rgba(255, 255, 255, 0.1);
}

.calendar-day-cell.other-month {
    color: rgba(255, 255, 255, 0.15);
    pointer-events: none;
}

.calendar-day-cell.today {
    box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.4);
}

.calendar-day-cell.selected {
    background: #FFFFFF !important;
    color: #000000 !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 14px rgba(255, 255, 255, 0.25);
}

.calendar-day-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    position: absolute;
    bottom: 3px;
}

.calendar-day-dot.income {
    background: #4ade80;
}

.calendar-day-dot.expense {
    background: #f87171;
}

.calendar-day-dot.tax {
    background: #c084fc;
}

.calendar-day-cell.selected .calendar-day-dot {
    bottom: 4px;
    background: #000000;
}






