/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background-color: #ffffff;
    min-height: 100%;
    margin: 0;
    padding: 0;
}

body {
    background-color: #ffffff;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #000000;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== REMOVE NUMBER INPUT SPINNERS ===== */
/* Chrome, Safari, Edge, Opera */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ===== HEADER STYLES ===== */
.header {
    padding: 0;
    border-bottom: 1px solid #f0f0f0;
    width: 100%;
    /* ✅ ДОБАВЛЯЕМ FIXED ПОЗИЦИОНИРОВАНИЕ */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 24px;
    max-width: none;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 40px;
}

.logo h1 {
    font-size: 26px;
    font-weight: 700;
    color: #000000;
    margin: 0;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none; /* Убирает точки */
    margin: 0;
    padding: 0;
}



.nav-link {
    text-decoration: none;
    color: #999999;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #5b7ffe;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* ===== ENHANCED NAVIGATION STYLES ===== */
.nav-link {
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
    position: relative;
    border-radius: 8px;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
    color: #111827;
    background: #f9fafb;
}

.nav-link.active {
    color: #5b7ffe;
    background: #eff6ff;
    font-weight: 600;
}


/* ===== COMING SOON TOOLTIP ===== */
.nav-link {
    display: inline-block;
    position: relative;
}

.coming-soon-tooltip {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #111827;
    color: #ffffff;
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 8px;
    font-weight: 500;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.coming-soon-tooltip::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-bottom-color: #111827;
}

.nav-link:hover .coming-soon-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(4px);
}

/* ===== COMING SOON SECTIONS ===== */
.section-content {
    /* ✅ ДОБАВЛЯЕМ PADDING-TOP */
    padding: 100px 0 40px; /* Компенсируем header */
    min-height: 100vh;
}

.coming-soon-section {
    display: flex;
    align-items: center;
    justify-content: center;
}

.coming-soon-section .container {
    width: 100%;
    display: flex;
    justify-content: center;
}

.coming-soon-content {
    text-align: center;
    max-width: 500px;
    padding: 3rem 2rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.coming-soon-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.7;
}

.coming-soon-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
}

.coming-soon-content p {
    font-size: 1.125rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

/* ===== STATISTICS SECTION ===== */
.statistics-content {
    padding: 2rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

.statistics-header {
    text-align: center;
    margin-bottom: 3rem;
}

.statistics-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 1rem 0;
}

.statistics-header p {
    font-size: 1.125rem;
    color: #6b7280;
    margin: 0;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
}

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

.stat-info h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    margin: 0 0 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-value {
    font-size: 1.875rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.75rem;
    color: #9ca3af;
    font-weight: 500;
}

/* Stat Card Variants */
.stat-card.primary {
    border-color: #5b7ffe;
}
.stat-card.primary .stat-icon {
    background: #eff6ff;
    color: #5b7ffe;
}
.stat-card.primary .stat-value {
    color: #5b7ffe;
}

.stat-card.success {
    border-color: #10b981;
}
.stat-card.success .stat-icon {
    background: #d1fae5;
    color: #10b981;
}
.stat-card.success .stat-value {
    color: #10b981;
}

.stat-card.positive {
    border-color: #059669;
}
.stat-card.positive .stat-icon {
    background: #ecfdf5;
    color: #059669;
}
.stat-card.positive .stat-value {
    color: #059669;
}

.stat-card.warning {
    border-color: #f59e0b;
}
.stat-card.warning .stat-icon {
    background: #fef3c7;
    color: #f59e0b;
}
.stat-card.warning .stat-value {
    color: #f59e0b;
}

.stat-card.info {
    border-color: #3b82f6;
}
.stat-card.info .stat-icon {
    background: #dbeafe;
    color: #3b82f6;
}
.stat-card.info .stat-value {
    color: #3b82f6;
}

.stat-card.neutral {
    border-color: #6b7280;
}
.stat-card.neutral .stat-icon {
    background: #f3f4f6;
    color: #6b7280;
}
.stat-card.neutral .stat-value {
    color: #6b7280;
}

/* Progress Overview */
.progress-overview {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-overview h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 1.5rem 0;
}

.platform-progress {
    width: 100%;
}

.progress-bar-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #5b7ffe 0%, #10b981 100%);
    border-radius: 6px;
    transition: width 0.8s ease;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
}

/* ===== DARK THEME FOR STATISTICS ===== */
[data-theme="dark"] .statistics-header h2 {
    color: #ffffff;
}

[data-theme="dark"] .statistics-header p {
    color: #d1d5db;
}

[data-theme="dark"] .stat-card {
    background: #2d3748;
    border-color: #4a5568;
}

[data-theme="dark"] .stat-info h3 {
    color: #a0aec0;
}

[data-theme="dark"] .stat-label {
    color: #718096;
}

[data-theme="dark"] .progress-overview {
    background: #2d3748;
    border-color: #4a5568;
}

[data-theme="dark"] .progress-overview h3 {
    color: #ffffff;
}

[data-theme="dark"] .progress-bar {
    background: #4a5568;
}

[data-theme="dark"] .progress-text {
    color: #d1d5db;
}

/* Dark theme stat card variants */
[data-theme="dark"] .stat-card.primary .stat-icon {
    background: rgba(91, 127, 254, 0.1);
}

[data-theme="dark"] .stat-card.success .stat-icon {
    background: rgba(16, 185, 129, 0.1);
}

[data-theme="dark"] .stat-card.positive .stat-icon {
    background: rgba(5, 150, 105, 0.1);
}

[data-theme="dark"] .stat-card.warning .stat-icon {
    background: rgba(245, 158, 11, 0.1);
}

[data-theme="dark"] .stat-card.info .stat-icon {
    background: rgba(59, 130, 246, 0.1);
}

[data-theme="dark"] .stat-card.neutral .stat-icon {
    background: rgba(107, 114, 128, 0.1);
}

/* ===== RESPONSIVE STATISTICS ===== */
@media (max-width: 768px) {
    .statistics-header h2 {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-icon {
        font-size: 2rem;
        width: 50px;
        height: 50px;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .progress-overview {
        padding: 1.5rem;
    }

    .hero {
        padding-top: 120px; /* Больше отступ на мобильных */
    }
    
    .dashboard {
        padding-top: 110px;
    }
    
    .section-content {
        padding-top: 110px;
    }
}

@media (max-width: 480px) {
    .stat-card {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .progress-text {
        flex-direction: column;
        gap: 0.25rem;
        text-align: center;
    }

    .hero {
        padding-top: 120px;
    }
    
    .dashboard {
        padding-top: 130px;
    }
    
    .section-content {
        padding-top: 130px;
    }
}


/* ===== DARK THEME FOR NAVIGATION ===== */
[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link:focus {
    color: #ffffff;
    background: #374151;
}

[data-theme="dark"] .nav-link.active {
    color: #5b7ffe;
    background: #1e3a8a;
    background: rgba(91, 127, 254, 0.1);
}

[data-theme="dark"] .coming-soon-tooltip {
    background: #374151;
    color: #ffffff;
}

[data-theme="dark"] .coming-soon-tooltip::before {
    border-bottom-color: #374151;
}

[data-theme="dark"] .coming-soon-content {
    background: #2d3748;
    border: 1px solid #4a5568;
}

[data-theme="dark"] .coming-soon-content h2 {
    color: #ffffff;
}

[data-theme="dark"] .coming-soon-content p {
    color: #d1d5db;
}


/* ===== THEME TOGGLE BUTTON ===== */
.theme-toggle-btn {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 22px;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    opacity: 0.7;
    box-shadow: none !important;
}

.theme-toggle-btn:hover {
    opacity: 1;
    transform: scale(1.15);
    background: transparent !important;
    border: none !important;
}

.theme-toggle-btn:focus {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* ===== WALLET BUTTON ===== */
.connect-wallet-btn {
    background: #5b7ffe;
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(91, 127, 254, 0.2);
    min-width: 140px;
}

.connect-wallet-btn:hover {
    background: #4c6bfd;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(91, 127, 254, 0.3);
}

.connect-wallet-btn.dropdown-open {
    border-radius: 10px 10px 0 0;
    transform: none;
}

/* ===== HERO SECTION ===== */
.hero {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 60px; /* Компенсируем высоту header */
    z-index: 50; /* Ниже header (100), но выше остального контента */
    background-color: #ffffff;
}

.hero-content {
    max-width: 600px;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 24px;
    line-height: 1.2;
}

.hero-subtitle {
    margin-bottom: 24px;
}

.hero-subtitle p {
    font-size: 18px;
    color: #666666;
    margin-bottom: 4px;
}

.create-vault-btn {
    background: linear-gradient(135deg, #8B5CF6 0%, #6366F1 45%, #3B82F6 100%);
    color: #ffffff;
    border: none;
    padding: 14px 22px;
    border-radius: 14px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: filter 0.2s ease;
    box-shadow: 0px 8px 24px rgba(99, 102, 241, 0.35);
}

.create-vault-btn:hover {
    filter: brightness(1.05);
}

[data-theme="dark"] .create-vault-btn {
    background: linear-gradient(135deg, #6366F1 0%, #4F46E5 45%, #3B82F6 100%);
    border: 1px solid rgba(99, 102, 241, 0.4);
    color: #ffffff;
    box-shadow:
        0 0 0 transparent,
        0 0 20px rgba(99, 102, 241, 0.35);
}

[data-theme="dark"] .create-vault-btn:hover {
    filter: brightness(1.08);
}

[data-theme="dark"] .create-first-vault-btn {
    background: linear-gradient(135deg, #6366F1 0%, #4F46E5 45%, #3B82F6 100%);
    border: 1px solid rgba(99, 102, 241, 0.4);
    color: #ffffff;
    box-shadow:
        0 0 0 transparent,
        0 0 20px rgba(99, 102, 241, 0.35);
}

[data-theme="dark"] .create-first-vault-btn:hover {
    filter: brightness(1.08);
}

/* ===== MODAL STYLES ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(17, 24, 39, 0.4);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: #f8f7ff;
    border: 1px solid #e7e5fb;
    border-radius: 16px;
    padding: 32px;
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(80, 86, 160, 0.18);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

.modal-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #2b2f43;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #8a8fa8;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: #4f5bd2;
}

/* ===== FORM STYLES ===== */
.vault-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

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

.form-group label {
    font-size: 16px;
    font-weight: 600;
    color: #2b2f43;
}

.form-group input[type="text"],
.form-group input[type="number"] {
    padding: 16px;
    border: 1px solid #e3e1fb;
    border-radius: 12px;
    font-size: 16px;
    background: #ffffff;
    color: #2b2f43;
    outline: none;
    transition: border-color 0.2s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="number"]:focus {
    border-color: #6366F1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
}

.form-group input::placeholder {
    color: #999999;
}

/* ===== ASSET DROPDOWN ===== */
.asset-dropdown {
    position: relative;
}

.asset-selected {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border: 1px solid #e3e1fb;
    border-radius: 0.5rem;
    background: #ffffff;
    color: #2b2f43;
    cursor: pointer;
    transition: border-color 0.2s ease;
    width: 100%;
    text-align: left;
    font-size: 1rem;
    /* ДЕЛАЕМ КАК ОБЫЧНЫЙ INPUT */
    appearance: none;
    outline: none;
}

.asset-selected:hover {
    border-color: #6366F1;
}

.asset-selected.active {
    border-color: #6366F1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
}

.asset-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.asset-name {
    flex: 1;
    font-size: 16px;
    font-weight: 500;
    color: #2b2f43;
}

.dropdown-arrow {
    transition: transform 0.2s ease;
    color: #666666;
    font-size: 12px;
}

.asset-selected.active .dropdown-arrow {
    transform: rotate(180deg);
}

.asset-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e3e1fb;
    border-top: none;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 100;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.asset-options.active {
    max-height: 200px;
}

.asset-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 16px;
    color: #2b2f43;
}

.asset-option:hover {
    background-color: #f3f1ff;
}

/* ===== DATE INPUT ===== */
.date-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.date-input-wrapper input[type="date"] {
    padding: 16px 50px 16px 16px;
    border: 1px solid #e3e1fb;
    border-radius: 12px;
    font-size: 16px;
    background: #ffffff;
    color: #2b2f43;
    outline: none;
    width: 100%;
    transition: border-color 0.2s ease;
}

.date-input-wrapper input[type="date"]:focus {
    border-color: #6366F1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
}

.calendar-icon {
    position: absolute;
    right: 16px;
    width: 18px;
    height: 18px;
    color: #7b81a6;
    cursor: pointer;
    transition: all 0.2s ease;
    pointer-events: none;
}

.calendar-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.date-input-wrapper:hover .calendar-icon {
    color: #5b7ffe;
    transform: scale(1.05);
}

.date-input-wrapper input[type="date"]:focus + .calendar-icon {
    color: #5b7ffe;
}

.date-input-wrapper input[type="date"]::-webkit-calendar-picker-indicator {
    position: absolute;
    right: 16px;
    opacity: 0;
    cursor: pointer;
    width: 20px;
    height: 20px;
}

/* ===== SUBMIT BUTTON ===== */
.create-vault-form-btn {
    background: #5b7ffe;
    color: white;
    border: none;
    padding: 18px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(91, 127, 254, 0.3);
    margin-top: 16px;
}

.create-vault-form-btn:hover {
    background: #4c6bfd;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(91, 127, 254, 0.4);
}

/* ===== DARK THEME ===== */
[data-theme="dark"] html {
    background-color: #1a2332 !important;
}

[data-theme="dark"] body {
    background-color: #1a2332 !important;
    color: #ffffff !important;
}

[data-theme="dark"] .header {
    background-color: #1a2332 !important;
    border-bottom: 1px solid #2d3748;
}

[data-theme="dark"] .hero {
    background-color: #1a2332 !important;
}

[data-theme="dark"] .logo h1 {
    color: #ffffff !important;
}

[data-theme="dark"] .nav-link {
    color: #a0aec0 !important;
}

[data-theme="dark"] .nav-link:hover {
    color: #5b7ffe !important;
}

[data-theme="dark"] .hero-title {
    color: #ffffff !important;
}

[data-theme="dark"] .hero-subtitle p {
    color: #a0aec0 !important;
}

[data-theme="dark"] .theme-toggle-btn {
    background: transparent !important;
    border: none !important;
    color: #ffffff !important;
    opacity: 0.8;
}

[data-theme="dark"] .theme-toggle-btn:hover {
    opacity: 1;
    transform: scale(1.15);
    background: transparent !important;
}

[data-theme="dark"] .connect-wallet-btn,
[data-theme="dark"] .create-vault-btn {
    background: #5b7ffe !important;
    color: white !important;
}

[data-theme="dark"] .connect-wallet-btn:hover,
[data-theme="dark"] .create-vault-btn:hover {
    background: #4c6bfd !important;
}

/* ===== DARK THEME FOR MODAL ===== */
/* ===== DARK THEME FOR MODAL ===== */
[data-theme="dark"] .modal-overlay {
    background-color: rgba(7, 10, 20, 0.65);
}

[data-theme="dark"] .modal-content {
    background: #1e2436;
    border: 1px solid #2b3249;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .modal-header h2 {
    color: #e8ecff;
}

[data-theme="dark"] .modal-close {
    color: #a5afc6;
}

[data-theme="dark"] .modal-close:hover {
    color: #e8ecff;
}

/* ===== DARK THEME FOR FORM ===== */
[data-theme="dark"] .form-group label {
    color: #e8ecff;
}

[data-theme="dark"] .form-group input[type="text"],
[data-theme="dark"] .form-group input[type="number"],
[data-theme="dark"] .date-input-wrapper input[type="date"] {
    background: #1f2438;
    border: 1px solid #2e3651;
    color: #e5e7eb;
}

[data-theme="dark"] .form-group input[type="text"]:focus,
[data-theme="dark"] .form-group input[type="number"]:focus,
[data-theme="dark"] .date-input-wrapper input[type="date"]:focus {
    border-color: #6366F1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

[data-theme="dark"] .form-group input::placeholder {
    color: #a5afc6;
}

[data-theme="dark"] .asset-selected {
    background: #1f2438;
    border: 1px solid #2e3651;
    color: #e5e7eb;
}

[data-theme="dark"] .asset-selected:hover,
[data-theme="dark"] .asset-selected.active {
    border-color: #6366F1;
}

[data-theme="dark"] .asset-name {
    color: #e5e7eb;
}

[data-theme="dark"] .asset-options {
    background: #1f2438;
    border: 1px solid #2e3651;
    border-top: none;
}

[data-theme="dark"] .asset-option {
    color: #e5e7eb;
}

[data-theme="dark"] .asset-option:hover {
    background-color: #2a314a;
}

[data-theme="dark"] .calendar-icon {
    color: #a5afc6;
}

[data-theme="dark"] .date-input-wrapper:hover .calendar-icon,
[data-theme="dark"] .date-input-wrapper input[type="date"]:focus + .calendar-icon {
    color: #6366F1;
}

/* ===== CONFIRMATION MODAL STYLES ===== */
.confirmation-modal-content {
    max-width: 520px;
    padding: 24px;
}

.confirmation-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.warning-icon {
    font-size: 24px;
    color: #8B5CF6;
}

.confirmation-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #000000;
    margin: 0;
}

.confirmation-body {
    margin-bottom: 32px;
}

.lock-message {
    font-size: 18px;
    color: #000000;
    margin-bottom: 20px;
    text-align: left;
}

.warning-section {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
    padding: 16px;
    background-color: #f3f0ff;
    border-radius: 8px;
    border: 1px solid #d9d6ff;
}

.warning-triangle {
    font-size: 20px;
    color: #8B5CF6;
    margin-top: 2px;
    flex-shrink: 0;
}

.warning-content {
    flex: 1;
}

.warning-title {
    font-size: 16px;
    font-weight: 600;
    color: #000000;
    margin: 0 0 8px 0;
}

.warning-list {
    margin: 0;
    padding-left: 20px;
    color: #000000;
}

.warning-list li {
    font-size: 15px;
    margin-bottom: 4px;
}

.proceed-message {
    font-size: 16px;
    color: #000000;
    margin: 0;
    text-align: left;
}

.confirmation-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.cancel-btn {
    flex: 1;
    background: #ffffff;
    color: #5b7ffe;
    border: 2px solid #5b7ffe;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cancel-btn:hover {
    background: #f8f9ff;
    transform: translateY(-1px);
}

.confirm-btn {
    flex: 1;
    background: linear-gradient(135deg, #8B5CF6 0%, #6366F1 45%, #3B82F6 100%);
    color: #ffffff;
    border: none;
    padding: 16px 24px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: filter 0.2s ease;
    box-shadow: 0px 8px 24px rgba(99, 102, 241, 0.35);
}

.confirm-btn:hover {
    filter: brightness(1.05);
}

.penalty-notice {
    font-size: 13px;
    color: #666666;
    text-align: center;
    margin: 0;
    line-height: 1.4;
}

/* ===== DARK THEME FOR CONFIRMATION MODAL ===== */
[data-theme="dark"] .confirmation-header h2 {
    color: #ffffff;
}

[data-theme="dark"] .lock-message,
[data-theme="dark"] .proceed-message {
    color: #ffffff;
}

[data-theme="dark"] .warning-section {
    background-color: #232a41;
    border: 1px solid #394060;
}

[data-theme="dark"] .warning-title {
    color: #ffffff;
}

[data-theme="dark"] .warning-list {
    color: #ffffff;
}

[data-theme="dark"] .cancel-btn {
    background: #2d3748;
    color: #5b7ffe;
    border: 2px solid #5b7ffe;
}

[data-theme="dark"] .cancel-btn:hover {
    background: #4a5568;
}

[data-theme="dark"] .penalty-notice {
    color: #a0aec0;
}

/* ===== ADD FUNDS MODAL STYLES ===== */
.add-funds-modal {
    max-width: 420px;
    padding: 24px;
}

.add-funds-modal .modal-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #000000;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.add-funds-logo {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.add-funds-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 24px;
}

.add-amount-input {
    position: relative;
    display: flex;
    align-items: center;
}

.add-amount-input input {
    padding: 16px 60px 16px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    background: #ffffff;
    color: #000000;
    outline: none;
    width: 100%;
    transition: border-color 0.2s ease;
}

.add-amount-input input:focus {
    border-color: #5b7ffe;
    box-shadow: 0 0 0 3px rgba(91, 127, 254, 0.1);
}

.add-amount-input input::placeholder {
    color: #999999;
}

.asset-label {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #666666;
    font-size: 14px;
    font-weight: 500;
    pointer-events: none;
}

.add-funds-btn {
    background: linear-gradient(135deg, #8B5CF6 0%, #6366F1 45%, #3B82F6 100%);
    color: #ffffff;
    border: none;
    padding: 16px 32px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: filter 0.2s ease;
    box-shadow: 0px 8px 24px rgba(99, 102, 241, 0.35);
}

.add-funds-btn:hover {
    filter: brightness(1.05);
}

/* ===== DARK THEME FOR ADD FUNDS MODAL ===== */
[data-theme="dark"] .add-funds-modal .modal-header h2 {
    color: #ffffff;
}

[data-theme="dark"] .add-funds-btn {
    background: linear-gradient(135deg, #6366F1 0%, #4F46E5 45%, #3B82F6 100%);
    border: 1px solid rgba(99, 102, 241, 0.4);
    color: #ffffff;
    box-shadow: 0 0 0 transparent, 0 0 20px rgba(99, 102, 241, 0.35);
}

[data-theme="dark"] .add-funds-btn:hover {
    filter: brightness(1.08);
}

[data-theme="dark"] .add-amount-input input {
    background: #2d3748;
    border: 1px solid #4a5568;
    color: #ffffff;
}

[data-theme="dark"] .add-amount-input input:focus {
    border-color: #5b7ffe;
    box-shadow: 0 0 0 3px rgba(91, 127, 254, 0.2);
}

[data-theme="dark"] .add-amount-input input::placeholder {
    color: #a0aec0;
}

[data-theme="dark"] .asset-label {
    color: #a0aec0;
}

/* ===== FIX: Withdraw Success Modal Layout ===== */

/* Модалка Withdraw */
.withdraw-modal {
    position: relative;
    max-width: 520px;
    padding: 32px 40px 40px;
    text-align: center;
}

/* Крестик в правом верхнем углу */
.withdraw-modal .modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    color: #999999;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s ease;
    z-index: 10;
}

.withdraw-modal .modal-close:hover {
    color: #666666;
}

/* Заголовок с иконкой */
.withdraw-modal .modal-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
    padding: 0;
}

.withdraw-modal .modal-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #000000;
    margin: 0;
    text-align: center;
}

/* Тело модалки */
.withdraw-modal .modal-body {
    margin-bottom: 32px;
}

.withdraw-modal .modal-body p {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin-bottom: 24px;
    text-align: center;
}

/* Сумма вывода */
.withdraw-modal .withdraw-amount-label {
    font-size: 18px;
    text-align: center;
    margin: 24px 0;
    color: #374151;
}

.withdraw-modal .withdraw-amount-label strong {
    font-size: 32px;
    font-weight: 700;
    color: #000000;
    display: block;
    margin-top: 12px;
}

/* Футер с кнопкой */
.withdraw-modal .modal-footer {
    display: flex;
    justify-content: center;
    padding: 0;
    margin-top: 32px;
}

/* Кнопка вывода */
.withdraw-modal .withdraw-funds-btn {
    width: 100%;
    max-width: 100%;
    padding: 18px 32px;
    font-size: 18px;
    background: linear-gradient(135deg, #8B5CF6 0%, #6366F1 45%, #3B82F6 100%);
    color: #ffffff;
    border: none;
    border-radius: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: filter 0.2s ease;
    box-shadow: 0px 8px 24px rgba(99, 102, 241, 0.35);
}

.withdraw-modal .withdraw-funds-btn:hover {
    filter: brightness(1.05);
}

/* Dark theme */
[data-theme="dark"] .withdraw-modal {
    background: #1e2436;
    border: 1px solid #2b3249;
}

[data-theme="dark"] .withdraw-modal .modal-header h2 {
    color: #ffffff;
}

[data-theme="dark"] .withdraw-modal .modal-body p {
    color: #d1d5db;
}

[data-theme="dark"] .withdraw-modal .withdraw-amount-label {
    color: #d1d5db;
}

[data-theme="dark"] .withdraw-modal .withdraw-amount-label strong {
    color: #ffffff;
}

[data-theme="dark"] .withdraw-modal .modal-close {
    color: #a0aec0;
}

[data-theme="dark"] .withdraw-modal .modal-close:hover {
    color: #ffffff;
}

[data-theme="dark"] .withdraw-modal .withdraw-funds-btn {
    background: linear-gradient(135deg, #6366F1 0%, #4F46E5 45%, #3B82F6 100%);
    border: 1px solid rgba(99, 102, 241, 0.4);
    color: #ffffff;
    box-shadow: 0 0 0 transparent, 0 0 20px rgba(99, 102, 241, 0.35);
}

[data-theme="dark"] .withdraw-modal .withdraw-funds-btn:hover {
    filter: brightness(1.08);
}

/* ===== EARLY WITHDRAW MODAL STYLES ===== */
.early-withdraw-modal {
    padding: 20px 32px 32px;
}

.early-withdraw-modal .modal-header {
    margin-bottom: 12px;
}

.early-withdraw-modal .modal-body {
    margin-bottom: 0;
}

.early-withdraw-modal .modal-body .penalty-warning {
    margin-bottom: 12px;
}

.early-withdraw-modal .penalty-calculation {
    margin: 0;
}

.early-withdraw-modal .modal-actions {
    margin-top: 24px;
}

/* ===== FIX: Early Withdraw Warning Modal Button ===== */
.warning-modal .warning-confirm-btn,
#confirmEarlyWithdrawBtn,
.early-withdraw-confirm-btn {
    background: linear-gradient(135deg, #8B5CF6 0%, #6366F1 45%, #3B82F6 100%) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0px 8px 24px rgba(99, 102, 241, 0.35);
    width: 100%;
    min-width: 180px;
}

.warning-modal .warning-confirm-btn:hover,
#confirmEarlyWithdrawBtn:hover {
    filter: brightness(1.05);
    transform: translateY(-2px);
}

/* Dark theme */
[data-theme="dark"] .warning-modal .warning-confirm-btn,
[data-theme="dark"] #confirmEarlyWithdrawBtn {
    background: linear-gradient(135deg, #6366F1 0%, #4F46E5 45%, #3B82F6 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(99, 102, 241, 0.4) !important;
    box-shadow: 0 0 0 transparent, 0 0 20px rgba(99, 102, 241, 0.35);
}

[data-theme="dark"] .warning-modal .warning-confirm-btn:hover,
[data-theme="dark"] #confirmEarlyWithdrawBtn:hover {
    filter: brightness(1.08);
}


/* ===== DARK THEME FOR WARNING MODAL ===== */
[data-theme="dark"] .warning-modal h2 {
    color: #ffffff;
}

[data-theme="dark"] .warning-message {
    color: #d1d5db;
}

/* ===== PENALTY CALCULATION STYLES ===== */
.penalty-calculation {
    background: #f3f0ff;
    border: 1px solid #d9d6ff;
    border-radius: 8px;
    padding: 16px;
    margin: 20px 0;
    font-size: 14px;
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.12);
}

.calculation-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 8px 0;
    padding: 4px 0;
}

.calculation-row .label {
    font-weight: 500;
    color: #374151;
}

.calculation-row .amount {
    font-weight: 600;
    color: #111827;
}

.calculation-row.penalty {
    border-top: 1px solid #d9d6ff;
    border-bottom: 1px solid #d9d6ff;
    margin: 12px 0;
    padding: 8px 0;
}

.calculation-row.penalty .label,
.calculation-row.penalty .amount {
    color: #dc2626;
    font-weight: 600;
}

.calculation-row.total {
    border-radius: 4px;
    padding: 8px;
    margin-top: 8px;
}

.calculation-row.total .label,
.calculation-row.total .amount {
    font-weight: 700;
    color: #059669;
    font-size: 15px;
}

/* ===== DARK THEME FOR PENALTY CALCULATION ===== */
[data-theme="dark"] .penalty-calculation {
    background: #232a41;
    border: 1px solid #394060;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
}

[data-theme="dark"] .calculation-row .label {
    color: #d1d5db;
}

[data-theme="dark"] .calculation-row .amount {
    color: #ffffff;
}

[data-theme="dark"] .calculation-row.penalty .label,
[data-theme="dark"] .calculation-row.penalty .amount {
    color: #fca5a5;
}

[data-theme="dark"] .calculation-row.total .label,
[data-theme="dark"] .calculation-row.total .amount {
    color: #6ee7b7;
}


/* ===== DASHBOARD STYLES ===== */
.dashboard {
    min-height: 100vh;
    /* ✅ ДОБАВЛЯЕМ PADDING-TOP */
    padding: 100px 0 40px; /* Компенсируем header */
}

.dashboard-header {
    margin-bottom: 32px;
}

.dashboard-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #000000;
    margin: 0;
}

.vaults-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.add-new-vault-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6b7cff 0%, #5b6bff 100%);
    color: white;
    font-size: 28px;
    font-weight: 300;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(91, 107, 255, 0.35);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 100;
}

.add-new-vault-btn:hover {
    background: linear-gradient(135deg, #6072ff 0%, #4f5fff 100%);
    transform: scale(1.05);
    box-shadow: 0 14px 28px rgba(91, 107, 255, 0.4);
}

/* ===== FINISHED VAULTS SECTION ===== */
.finished-vaults-section {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.finished-header {
    margin-bottom: 24px;
}

.finished-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #6b7280;
    margin: 0;
}

/* Finished Vault Cards - приглушенный стиль */
.vault-card.finished {
    opacity: 0.7;
    border-color: #d1d5db;
    background: #f9fafb;
}

.vault-card.finished:hover {
    opacity: 0.85;
    transform: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.vault-card.finished .vault-name {
    color: #6b7280;
}

.vault-card.finished .vault-current-amount {
    color: #6b7280;
}

.vault-card.finished .vault-progress-fill {
    background: #9ca3af;
}

/* Finished Status Badge */
.finished-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    margin-top: 8px;
}

.finished-badge .checkmark {
    color: #059669;
    font-weight: 600;
}

/* ===== DARK THEME FOR FINISHED SECTION ===== */
[data-theme="dark"] .finished-vaults-section {
    border-top: 1px solid #4a5568;
}

[data-theme="dark"] .finished-header h2 {
    color: #a0aec0;
}

[data-theme="dark"] .vault-card.finished {
    background: #2d3748;
    border-color: #4a5568;
}

[data-theme="dark"] .vault-card.finished .vault-name,
[data-theme="dark"] .vault-card.finished .vault-current-amount {
    color: #a0aec0;
}

[data-theme="dark"] .vault-card.finished .vault-progress-fill {
    background: #718096;
}

[data-theme="dark"] .finished-badge {
    background: #4a5568;
    border-color: #718096;
    color: #a0aec0;
}

[data-theme="dark"] .finished-badge .checkmark {
    color: #68d391;
}


/* ===== NO VAULTS MESSAGE ===== */
.no-vaults-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    min-height: 400px;
}

.no-vaults-message p {
    font-size: 18px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 32px 0;
    max-width: 400px;
}

.create-first-vault-btn {
    background: linear-gradient(135deg, #8B5CF6 0%, #6366F1 45%, #3B82F6 100%);
    color: #ffffff;
    border: none;
    padding: 14px 22px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: filter 0.2s ease;
    box-shadow: 0px 8px 24px rgba(99, 102, 241, 0.35);
}

.create-first-vault-btn:hover {
    filter: brightness(1.05);
}

/* Dark theme no vaults */
[data-theme="dark"] .no-vaults-message p {
    color: #9ca3af;
}

/* ===== VAULT CARD STYLES ===== */
.vault-card {
    background: #f8f7ff;
    border: 1px solid #e7e5fb;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 22px rgba(88, 92, 170, 0.12);
}

.vault-card:hover {
    box-shadow: 0 14px 26px rgba(88, 92, 170, 0.18);
    transform: translateY(-2px);
}

.vault-card-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vault-name {
    font-size: 20px;
    font-weight: 700;
    color: #000000;
    margin: 0;
}

.vault-asset {
    display: flex;
    align-items: center;
    gap: 8px;
}

.vault-asset-logo {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}

.vault-asset-name {
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
}

.vault-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.vault-amounts {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vault-current-amount {
    font-size: 18px;
    font-weight: 700;
    color: #000000;
}

.vault-unlock-date {
    font-size: 14px;
    color: #6b7280;
}

.vault-time-left {
    font-size: 13px;
    color: #9ca3af;
    margin-top: 2px;
}

.vault-progress-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vault-progress-bar {
    width: 100%;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
}

.vault-progress-fill {
    height: 100%;
    background: #5b7ffe;
    transition: width 0.3s ease;
    border-radius: 3px;
}

.vault-progress-text {
    font-size: 12px;
    color: #6b7280;
    text-align: right;
}

.vault-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.vault-btn {
    flex: 1;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.vault-btn.add-funds {
    background: #5b7ffe;
    color: white;
}

.vault-btn.add-funds:hover {
    background: #4c6bfd;
    transform: translateY(-1px);
}

.vault-btn.withdraw {
    background: #ffffff;
    color: #374151;
    border: 1px solid #d1d5db;
}

.vault-btn.withdraw:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.vault-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.vault-btn:disabled:hover {
    transform: none;
}

/* ===== DARK THEME FOR DASHBOARD ===== */
[data-theme="dark"] .dashboard-header h1 {
    color: #ffffff;
}

[data-theme="dark"] .vault-card {
    background: #1f2438;
    border: 1px solid #2e3651;
}

[data-theme="dark"] .vault-name {
    color: #ffffff;
}

[data-theme="dark"] .vault-asset-name {
    color: #a0aec0;
}

[data-theme="dark"] .vault-current-amount {
    color: #ffffff;
}

[data-theme="dark"] .vault-unlock-date {
    color: #a0aec0;
}

[data-theme="dark"] .vault-time-left {
    color: #718096;
}

[data-theme="dark"] .vault-progress-bar {
    background: #4a5568;
}

[data-theme="dark"] .vault-progress-text {
    color: #a0aec0;
}

[data-theme="dark"] .vault-btn.withdraw {
    background: #4a5568;
    color: #ffffff;
    border: 1px solid #718096;
}

[data-theme="dark"] .vault-btn.withdraw:hover {
    background: #2d3748;
    border-color: #a0aec0;
}


/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .header {
        padding: 10px 0;
    }
    
    .nav {
        height: auto;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        row-gap: 10px;
        column-gap: 12px;
        padding: 12px 16px;
        width: calc(100% - 32px);
        margin: 10px 16px 0;
    }
    
    .nav-left {
        flex-direction: row;
        gap: 16px;
        align-items: center;
        width: auto;
        order: 1;
    }
    
    .mobile-nav-tabs {
        width: 100%;
        order: 3;
    }

    .nav-menu {
        width: 100%;
        justify-content: space-between;
        gap: 8px;
        flex-wrap: nowrap;
    }

    .nav-menu .nav-link {
        flex: 1;
        text-align: center;
    }
    
    .nav-right {
        gap: 12px;
        flex-wrap: nowrap;
        justify-content: flex-end;
        width: auto;
        order: 2;
    }

    .hero {
        padding-top: 150px;
    }

    .dashboard {
        padding-top: 150px;
    }

    .section-content {
        padding-top: 150px;
    }
    
    .theme-toggle-btn {
        font-size: 20px;
    }

    .social-menu-btn {
        width: 32px;
        height: 32px;
        border-radius: 10px;
    }

    .hamburger-line {
        width: 16px;
    }
    
    .connect-wallet-btn {
        padding: 10px 16px;
        font-size: 14px;
        min-width: 110px;
    }

    .logo {
        width: 80px;
        height: 56px;
    }

    .logo-img {
        width: 80px;
        height: 80px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .create-vault-btn {
        padding: 14px 22px;
        font-size: 16px;
    }

    .hero-illustration {
        width: 160px;
        height: 160px;
    }
    
    .modal-content {
        padding: 24px;
        width: 95%;
    }
    
    .modal-header h2 {
        font-size: 24px;
    }
    
    .vault-form {
        gap: 20px;
    }
    
    .form-group input[type="text"],
    .form-group input[type="number"],
    .date-input-wrapper input[type="date"] {
        padding: 14px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 8px 0;
    }
    
    .nav {
        padding: 12px 12px;
        width: calc(100% - 16px);
        margin: 10px 8px 0;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        row-gap: 8px;
        column-gap: 10px;
        height: auto;
    }
    
    .nav-left {
        gap: 10px;
        align-items: center;
        width: auto;
        order: 1;
    }
    
    .mobile-nav-tabs {
        width: 100%;
        order: 3;
    }

    .nav-menu {
        gap: 8px;
        flex-wrap: nowrap;
        justify-content: space-between;
        width: 100%;
    }

    .nav-menu .nav-link {
        flex: 1;
        text-align: center;
    }
    
    .nav-right {
        gap: 8px;
        flex-wrap: nowrap;
        justify-content: flex-end;
        width: auto;
        order: 2;
    }

    .hero {
        padding-top: 140px;
    }

    .dashboard {
        padding-top: 140px;
    }

    .section-content {
        padding-top: 140px;
    }
    
    .theme-toggle-btn {
        font-size: 18px;
    }

    .social-menu-btn {
        width: 30px;
        height: 30px;
        border-radius: 10px;
    }

    .hamburger-line {
        width: 15px;
    }
    
    .connect-wallet-btn {
        padding: 8px 12px;
        font-size: 12px;
        min-width: 90px;
    }

    .logo {
        width: 72px;
        height: 52px;
    }

    .logo-img {
        width: 72px;
        height: 72px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle p {
        font-size: 16px;
    }

    .hero-illustration {
        width: 140px;
        height: 140px;
    }
    
    .modal-content {
        padding: 20px;
        width: 98%;
    }
    
    .modal-header h2 {
        font-size: 22px;
    }
    
    .create-vault-form-btn {
        padding: 16px 24px;
        font-size: 15px;
    }

    .no-vaults-message {
        padding: 60px 16px 64px;
        min-height: 320px;
    }

    .no-vaults-illustration {
        width: 140px;
        height: 140px;
    }
}

/* ===== WALLET DROPDOWN STYLES ===== */
.wallet-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #6b7280;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: all 0.2s ease;
    overflow: hidden;
}

.wallet-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Когда дропдаун открыт - скругление кнопки только сверху */
.wallet-dropdown.active ~ .connect-wallet-btn,
.connect-wallet-btn.dropdown-open {
    border-radius: 10px 10px 0 0;
}

.wallet-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 28px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    background: transparent;
    border: none;
    width: 100%;
    box-sizing: border-box;
}

.wallet-dropdown-item:hover {
    background: #5b6370;
}

/* Dark theme wallet dropdown */
[data-theme="dark"] .wallet-dropdown {
    background: #4a5568;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .wallet-dropdown-item {
    color: #e2e8f0;
}

[data-theme="dark"] .wallet-dropdown-item:hover {
    background: #3d4654;
}

/* Position the connect wallet button relative */
.nav-right {
    position: relative;
}

/* Social menu */
.social-menu {
    position: relative;
    display: flex;
    align-items: center;
}

.social-menu-btn {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    border: 1px solid #d9dcff;
    background: #eef0ff;
    color: #5a61c8;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    transition: filter 0.2s ease, transform 0.2s ease;
}

.social-menu-btn:hover {
    filter: brightness(1.05);
    transform: scale(1.15);
}

[data-theme="dark"] .social-menu-btn {
    background: #252c44;
    border: 1px solid #3a4163;
    color: #e5e7ff;
}

.hamburger-line {
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    display: block;
}

/* Ensure light theme toggle matches social menu border */
[data-theme="light"] .theme-toggle-btn {
    background: #eef0ff !important;
    border: 1px solid #d9dcff !important;
}

.social-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #f8f7ff;
    border: 1px solid #e7e5fb;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(88, 92, 170, 0.18);
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all 0.2s ease;
    z-index: 1000;
    min-width: 160px;
}

.social-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.social-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    color: #2b2f43;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s ease;
}

.social-dropdown-item:hover {
    background: #f0efff;
}

.social-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

[data-theme="dark"] .social-dropdown {
    background: #1e2436;
    border: 1px solid #2b3249;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .social-dropdown-item {
    color: #e5e7ff;
}

[data-theme="dark"] .social-dropdown-item:hover {
    background: #2a314a;
}

/* ===== VAULTLY UI THEME OVERRIDES ===== */
html {
    background-color: #f3f0ff;
}

body {
    background: linear-gradient(140deg, #f3f0ff 0%, #f7f6ff 45%, #eef1ff 100%);
    color: #1f2333;
}

[data-theme="dark"] html {
    background-color: #14192a !important;
}

[data-theme="dark"] body {
    background:
        radial-gradient(1000px circle at 55% -120px, rgba(92, 104, 255, 0.18), transparent 60%),
        linear-gradient(135deg, #1b2134 0%, #141a2b 45%, #101625 100%) !important;
    color: #e5e7eb !important;
}

/* Header and navigation container */
.header {
    background: transparent;
    border-bottom: none;
    backdrop-filter: none;
}

[data-theme="dark"] .header {
    background: transparent !important;
    border-bottom: none;
    backdrop-filter: none;
}

/* Hero background should match page */
.hero {
    background: transparent;
}

[data-theme="dark"] .hero {
    background: transparent !important;
}

.nav {
    max-width: 100%;
    width: calc(100% - 40px);
    margin: 10px 20px 0;
    height: 64px;
    padding: 0 20px;
    border-radius: 16px;
    background: #f7f5ff;
    border: 1px solid #e7e5fb;
    box-shadow: 0 10px 26px rgba(88, 92, 170, 0.14);
}

[data-theme="dark"] .nav {
    background: #1e2436;
    border: 1px solid #2b3249;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.nav-left {
    gap: 28px;
}

/* Logo */
.logo {
    position: relative;
    width: 96px;
    height: 64px;
    display: flex;
    align-items: center;
    overflow: visible;
}

.logo-img {
    position: absolute;
    top: 50%;
    left: 0;
    width: 96px;
    height: 96px;
    object-fit: contain;
    transform: translateY(-50%);
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    color: #2b2f43;
}

[data-theme="dark"] .logo-text {
    color: #e8ecff;
}

.logo-img-dark {
    display: none;
}

[data-theme="dark"] .logo-img-dark {
    display: block;
}

[data-theme="dark"] .logo-img-light {
    display: none;
}

/* Nav links */
.nav-link {
    color: #6b7280;
    font-size: 0.95rem;
    padding: 0.55rem 1rem;
}

.nav-link:hover,
.nav-link:focus {
    color: #4f5bd2;
    background: #f0efff;
}

.nav-link.active {
    color: #2b2f43;
    background: #eceaff;
    border: 1px solid #d9d6ff;
    font-weight: 600;
}

[data-theme="dark"] .nav-link {
    color: #a5afc6;
}

[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link:focus {
    color: #e3e7ff;
    background: #2a3047;
}

[data-theme="dark"] .nav-link.active {
    color: #eef1ff;
    background: #2a314a;
    border: 1px solid #394060;
}

/* Theme toggle */
.theme-toggle-btn {
    background: #eef0ff !important;
    border: 1px solid #d9dcff !important;
    border-radius: 12px;
    width: 36px;
    height: 36px;
    font-size: 18px;
    opacity: 1;
}

[data-theme="dark"] .theme-toggle-btn {
    background: #252c44 !important;
    border: 1px solid #3a4163 !important;
    color: #dbe0ff !important;
}

.theme-icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
}

.theme-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.theme-icon-sun {
    display: none;
}

[data-theme="light"] .theme-icon-moon {
    color: #5f6bff;
}

[data-theme="dark"] .theme-icon-sun {
    display: inline-flex;
}

[data-theme="dark"] .theme-icon-moon {
    display: none;
}

/* Connect wallet */
.connect-wallet-btn {
    background: linear-gradient(135deg, #ffffff 0%, #e1e6ff 100%);
    color: #4b52c4;
    border: 1px solid #c7d0ff;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 10px 18px rgba(123, 130, 200, 0.18);
}

.connect-wallet-btn:hover {
    background: linear-gradient(135deg, #f7f8ff 0%, #d6ddff 100%);
    transform: translateY(-1px);
}

.connect-wallet-btn.connected {
    background: linear-gradient(135deg, #ffffff 0%, #e1e6ff 100%);
    color: #4b52c4;
    border: 1px solid #c7d0ff;
    box-shadow: 0 10px 18px rgba(123, 130, 200, 0.18);
}

[data-theme="dark"] .connect-wallet-btn {
    background: linear-gradient(135deg, #2d3452 0%, #242a44 100%);
    color: #e5e7ff;
    border: 1px solid #3a4165;
    box-shadow: 0 10px 20px rgba(18, 22, 38, 0.55);
}

[data-theme="dark"] .connect-wallet-btn:hover {
    background: linear-gradient(135deg, #323a5a 0%, #262d4b 100%);
}

[data-theme="dark"] .connect-wallet-btn.connected {
    background: linear-gradient(135deg, #2d3452 0%, #242a44 100%);
    color: #e5e7ff;
    border: 1px solid #3a4165;
    box-shadow: 0 10px 20px rgba(18, 22, 38, 0.55);
}

/* WalletAddressButton — dark theme only */
[data-theme="dark"] .connect-wallet-btn.wallet-address-btn {
    background: #5F7CFA;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #FFFFFF;
    border-radius: 14px;
    height: 40px;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.2px;
    box-shadow: 0px 0px 0px transparent, 0px 6px 18px rgba(95, 124, 250, 0.45);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: filter 0.2s ease;
    transform: none;
}

[data-theme="dark"] .connect-wallet-btn.wallet-address-btn:hover {
    filter: brightness(1.05);
}

/* Empty state */
.no-vaults-message {
    padding: 70px 20px 74px;
}

.no-vaults-illustration {
    width: 170px;
    height: 170px;
    object-fit: contain;
    margin-bottom: 18px;
    filter: drop-shadow(0 10px 22px rgba(88, 92, 170, 0.25));
}

.no-vaults-message p {
    color: #6b7280;
}

[data-theme="dark"] .no-vaults-message p {
    color: #cbd5e1;
}

[data-theme="dark"] .no-vaults-illustration {
    filter:
        drop-shadow(0 0 26px rgba(111, 92, 255, 0.55))
        drop-shadow(0 0 70px rgba(111, 92, 255, 0.25));
}

/* Hero lock illustration */
.hero-illustration {
    width: 190px;
    height: 190px;
    object-fit: contain;
    margin: 0 0 20px;
    filter: drop-shadow(0 10px 22px rgba(88, 92, 170, 0.25));
}

[data-theme="dark"] .hero-illustration {
    filter:
        drop-shadow(0 0 26px rgba(111, 92, 255, 0.55))
        drop-shadow(0 0 70px rgba(111, 92, 255, 0.25));
}

.create-first-vault-btn {
    padding: 12px 34px;
    font-size: 16px;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(88, 92, 170, 0.28);
}

/* Dashboard headings */
.dashboard-header h1 {
    color: #2b2f43;
    font-size: 28px;
}

[data-theme="dark"] .dashboard-header h1 {
    color: #e8ecff;
}

.finished-vaults-section {
    border-top: 1px solid rgba(120, 124, 160, 0.2);
}

[data-theme="dark"] .finished-vaults-section {
    border-top: 1px solid rgba(120, 124, 160, 0.35);
}
