/* FinAI - Glassmorphism Design */
/* Dark theme with colorful gradient circles */

:root {
    --primary-blue: #3D5AFE;
    --primary-blue-light: #5C7CFA;
    --primary-blue-dark: #304FFE;
    --accent-blue: #00D4FF;
    --accent-pink: #FF6B9D;
    --accent-yellow: #FFD93D;
    --accent-orange: #FFA500;
    --accent-green: #6BCF7F;
    --bg-black: #000000;
    --white: #FFFFFF;
    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1E293B;
    --gray-900: #0F172A;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.6);
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.18);
    --border-radius: 24px;
    --border-radius-sm: 16px;
    --border-radius-lg: 32px;
}

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

body {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    background: var(--bg-black);
    color: var(--white);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    /* Скрываем скроллбар, но оставляем прокрутку */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE и Edge */
}

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

/* Цветной круг - Зеленый (слева внизу) */
body::before {
    content: '';
    position: fixed;
    bottom: -150px;
    left: -150px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(107, 207, 127, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
    animation: pulse 8s ease-in-out infinite;
}

/* Цветной круг - Желто-оранжевый (справа вверху) */
body::after {
    content: '';
    position: fixed;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 217, 61, 0.3) 0%, rgba(255, 165, 0, 0.3) 50%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
    animation: pulse 10s ease-in-out infinite reverse;
}

/* Дополнительный круг - Красно-розовый (справа) */
.bg-circle-pink {
    position: fixed;
    top: 50%;
    right: -250px;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(255, 107, 157, 0.35) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(70px);
    pointer-events: none;
    z-index: 0;
    animation: pulse 12s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-black);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-circle {
    width: 80px;
    height: 80px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loader-text {
    font-size: 32px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 3px;
    font-family: 'Space Grotesk', sans-serif;
}

/* Access Denied */
.access-denied {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-black);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.access-denied-content {
    text-align: center;
    color: var(--white);
    padding: 40px;
}

.access-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.access-denied h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 0.5px;
}

.access-denied p {
    font-size: 16px;
    opacity: 0.9;
    font-family: 'Space Grotesk', sans-serif;
}

/* Container */
.container {
    position: relative;
    z-index: 1;
    padding-bottom: 50px;
    transition: opacity 0.5s;
}

/* Header - Hidden */
.header {
    display: none;
}

/* Glass Card - Glassmorphism Style */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: var(--border-radius);
    padding: 28px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    border: 1px solid var(--glass-border);
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

/* Gradient border effect */
.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--border-radius);
    padding: 1px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.3) 0%, 
        rgba(255, 255, 255, 0.05) 50%, 
        rgba(255, 255, 255, 0.3) 100%);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    pointer-events: none;
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 48px 0 rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.25);
}

/* Income Panel - Main Balance Card */
.income-panel {
    margin: 32px 0 16px 0;
    text-align: center;
    position: relative;
    overflow: visible;
}

/* Gradient overlay for income panel */
.income-panel::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(107, 207, 127, 0.15) 0%, 
        rgba(255, 217, 61, 0.15) 40%, 
        rgba(255, 165, 0, 0.15) 60%,
        rgba(255, 107, 157, 0.15) 100%);
    border-radius: var(--border-radius);
    z-index: -1;
    opacity: 0.6;
    filter: blur(20px);
}

.income-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

/* Month Navigation */
.month-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.current-period {
    font-size: 17px;
    font-weight: 600;
    color: var(--white);
    min-width: 160px;
    text-align: center;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: default;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 0.5px;
}

.current-period:hover {
    transform: scale(1.08);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.1);
}

.btn-month-nav {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-month-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    transform: scale(1.2) rotate(10deg);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.2);
}

.btn-month-nav:active {
    transform: scale(1);
}

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

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--white);
    margin: 0;
    opacity: 0.9;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: default;
    display: inline-block;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 0.5px;
}

.section-title:hover {
    transform: scale(1.15);
    opacity: 1;
    text-shadow: 0 0 20px rgba(255, 217, 61, 0.4);
}

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: absolute;
    right: 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    transform: scale(1.2) rotate(-10deg);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.2);
}

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

.income-value {
    font-size: 64px;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #FFD93D 0%, #FFA500 50%, #FF6B9D 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -1px;
    font-variant-numeric: tabular-nums;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: default;
    display: inline-block;
}

.income-value:hover {
    transform: scale(1.12);
    letter-spacing: 0px;
    filter: drop-shadow(0 0 30px rgba(255, 217, 61, 0.6));
}

.gradient-text {
    background: linear-gradient(135deg, #FFD93D 0%, #FFA500 50%, #FF6B9D 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.income-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-sm);
    padding: 16px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
}

.stat-card:hover {
    transform: scale(1.08);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 255, 255, 0.1);
}

.stat-label {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    font-family: 'Space Grotesk', sans-serif;
}

.stat-card:hover .stat-label {
    color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--white);
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 0px;
    font-variant-numeric: tabular-nums;
    transition: all 0.3s ease;
}

.stat-card:hover .stat-value {
    transform: scale(1.1);
}

.stat-card:hover .stat-value.spent {
    text-shadow: 0 0 20px rgba(255, 107, 157, 0.6);
}

.stat-card:hover .stat-value.remaining {
    text-shadow: 0 0 20px rgba(107, 207, 127, 0.6);
}

.stat-value.spent {
    color: #FF6B9D;
}

.stat-value.remaining {
    color: #6BCF7F;
}

/* Categories Section */
.categories-section {
    margin: 0 0 24px 0;
    position: relative;
}

.categories-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Add Category Button - Above Categories */
.btn-add-category-top {
    width: 100%;
    padding: 20px;
    margin-bottom: 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-size: 17px;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 1;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 0.5px;
}

.btn-add-category-top:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-add-category-top:hover svg {
    transform: rotate(90deg);
}

.btn-add-category-top:active {
    transform: translateY(0);
}

.btn-add-category-top svg {
    width: 24px;
    height: 24px;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-add-category-top::after {
    content: 'Добавить категорию';
}

/* Category Card */
.category-card {
    background: var(--glass-bg);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: var(--border-radius);
    padding: 20px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    position: relative;
    z-index: 1;
}

.category-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 60px 0 rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.12);
}

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

.category-name {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 600;
    color: var(--white);
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 0.3px;
}

.category-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.category-icon svg {
    width: 24px;
    height: 24px;
}

.category-percentage {
    font-size: 17px;
    font-weight: 700;
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 0px;
    font-variant-numeric: tabular-nums;
}

.category-amounts {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 13px;
}

.amount-spent {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0px;
}

.amount-limit {
    font-weight: 700;
    font-size: 16px;
    color: var(--white);
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 0px;
    font-variant-numeric: tabular-nums;
}

.amount-limit.remaining-good {
    color: #6BCF7F;
}

.amount-limit.remaining-warning {
    color: #FFD93D;
}

.amount-limit.remaining-danger {
    color: #FF6B9D;
}

/* Progress Bar */
.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #6BCF7F 0%, #34D399 100%);
    border-radius: 8px;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(107, 207, 127, 0.5);
}

.progress-fill.warning {
    background: linear-gradient(90deg, #FFD93D 0%, #FFA500 100%);
    box-shadow: 0 0 10px rgba(255, 217, 61, 0.5);
}

.progress-fill.danger {
    background: linear-gradient(90deg, #FF6B9D 0%, #FF4081 100%);
    box-shadow: 0 0 10px rgba(255, 107, 157, 0.5);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10001;
}

.modal-content {
    position: relative;
    max-width: 480px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideUp 0.3s ease;
    z-index: 10002;
    margin: auto;
}

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

.modal-large {
    max-width: 600px;
    width: 95%;
}

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

.modal-header h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--white);
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 0.5px;
}

.btn-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-close:hover {
    background: #FF6B9D;
    color: var(--white);
    transform: rotate(90deg);
    border-color: #FF6B9D;
}

/* Modal Form */
.modal-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 13px;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.9;
    font-family: 'Space Grotesk', sans-serif;
}

.modal-form input,
.modal-form select {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-sm);
    font-size: 16px;
    font-weight: 500;
    color: var(--white);
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    font-family: 'Space Grotesk', sans-serif;
}

.modal-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.modal-form input:focus,
.modal-form select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
}

.modal-form select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23FFFFFF' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 48px;
}

.modal-form select option {
    background: #1a1a1a;
    color: var(--white);
}

.btn-primary {
    width: 100%;
    padding: 16px 32px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius-sm);
    font-size: 17px;
    font-weight: 600;
    color: var(--white);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 1;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.2) 100%);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Category Modal */
.category-modal-header {
    text-align: center;
    margin-bottom: 32px;
    position: relative;
}

.category-modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.15) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 40px;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.category-modal-icon svg {
    width: 48px;
    height: 48px;
}

.category-modal-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--white);
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 0.5px;
}

.btn-delete-category {
    position: absolute;
    top: 0;
    right: 0;
    padding: 8px 16px;
    border: 1px solid rgba(255, 107, 157, 0.5);
    border-radius: 10px;
    font-size: 20px;
    background: rgba(255, 107, 157, 0.2);
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-delete-category:hover {
    background: #FF6B9D;
    border-color: #FF6B9D;
    transform: scale(1.05);
}

/* Add Transaction Form */
.add-transaction-form {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-sm);
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.add-transaction-form h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 16px;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 0.5px;
}

.transaction-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.transaction-form input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    color: var(--white);
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    font-family: 'Space Grotesk', sans-serif;
}

.transaction-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.transaction-form input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.1);
}

.btn-add-transaction {
    width: 100%;
    padding: 14px 24px;
    border: 1px solid rgba(107, 207, 127, 0.5);
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    color: var(--white);
    background: linear-gradient(135deg, rgba(107, 207, 127, 0.3) 0%, rgba(52, 211, 153, 0.3) 100%);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.btn-add-transaction:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, rgba(107, 207, 127, 0.4) 0%, rgba(52, 211, 153, 0.4) 100%);
    border-color: #6BCF7F;
}

/* Transactions List */
.transactions-list {
    margin-top: 24px;
}

.transactions-list h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 16px;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 0.5px;
}

.transaction-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-sm);
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.transaction-item:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-sm);
}

.transaction-info {
    flex: 1;
}

.transaction-amount {
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 4px;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 0px;
    font-variant-numeric: tabular-nums;
}

.transaction-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 4px;
}

.transaction-date {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
}

.transaction-actions {
    margin-left: 16px;
}

.btn-delete-transaction {
    padding: 8px 16px;
    border: 1px solid rgba(255, 107, 157, 0.5);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--white);
    background: rgba(255, 107, 157, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-delete-transaction:hover {
    background: #FF6B9D;
    border-color: #FF6B9D;
    transform: scale(1.05);
}

.empty-transactions {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 15px;
    font-weight: 600;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 0;
    display: flex;
    justify-content: space-around;
    z-index: 999;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.5);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.5);
}

.nav-item:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.nav-item.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.15);
}

.nav-icon {
    width: 24px;
    height: 24px;
}

.nav-icon svg {
    width: 100%;
    height: 100%;
}

.nav-label {
    display: none;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.visible {
    animation: fadeIn 0.5s ease;
}

/* Icon Selector */
.icon-selector {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 12px;
    max-height: 300px;
    overflow-y: auto;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.icon-option {
    width: 60px;
    height: 60px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px;
    color: rgba(255, 255, 255, 0.7);
}

.icon-option:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
    color: var(--white);
}

.icon-option.selected {
    border-color: rgba(255, 255, 255, 0.5);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.15) 100%);
    color: var(--white);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.icon-option svg {
    width: 32px;
    height: 32px;
}

/* Scrollbar - Скрыт визуально, но прокрутка работает */
* {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE и Edge */
}

*::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
    width: 0;
    height: 0;
}


