/* Voice-2-Text Website Styles */
/* Modern, minimal design with accent colors */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --accent: #f59e0b;
    --accent-light: #fbbf24;
    --dark: #1e293b;
    --gray-900: #0f172a;
    --gray-800: #1e293b;
    --gray-700: #334155;
    --gray-600: #475569;
    --gray-500: #64748b;
    --gray-400: #94a3b8;
    --gray-300: #cbd5e1;
    --gray-200: #e2e8f0;
    --gray-100: #f1f5f9;
    --gray-50: #f8fafc;
    --white: #ffffff;
    --success: #10b981;
    --error: #ef4444;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--white);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-900);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    color: var(--gray-600);
    margin-bottom: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-dark);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    z-index: 1000;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    padding-right: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav a {
    color: var(--gray-600);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.nav a:hover,
.nav a.active {
    color: var(--primary);
}

.nav-btn {
    background: var(--gradient);
    color: white !important;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.85rem;
}

.nav-btn:hover {
    opacity: 0.9;
    color: white !important;
}

.nav-btn-secondary {
    background: transparent;
    color: var(--primary) !important;
    border: 2px solid var(--primary);
}

.nav-btn-secondary:hover {
    background: var(--primary);
    color: white !important;
}

/* Mobile menu */
    .header .container {
        position: relative;
    }

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-700);
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--gray-600);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-primary {
    background: var(--gradient);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.4);
    color: white;
}

.btn-secondary {
    background: var(--white);
    color: var(--gray-700);
    border: 2px solid var(--gray-300);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-accent {
    background: var(--accent);
    color: white;
}

.btn-accent:hover {
    background: var(--accent-light);
    color: white;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-gray {
    background: var(--gray-50);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--gray-200);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-light);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.feature-card h3 {
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--gray-500);
    margin-bottom: 0;
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    border: 2px solid var(--gray-200);
    transition: all 0.3s;
    position: relative;
}

.pricing-card.featured {
    border-color: var(--primary);
    transform: scale(1.05);
}

.pricing-card.featured::before {
    content: 'Популярный';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.pricing-card:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.pricing-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.pricing-header h3 {
    margin-bottom: 0.5rem;
}

.pricing-header p {
    color: var(--gray-500);
    font-size: 0.875rem;
    margin-bottom: 0;
}

.pricing-price {
    text-align: center;
    margin-bottom: 1.5rem;
}

.pricing-price .amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--gray-900);
}

.pricing-price .currency {
    font-size: 1.5rem;
    color: var(--gray-500);
}

.pricing-price .period {
    color: var(--gray-500);
    font-size: 0.875rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: var(--gray-600);
}

.pricing-features li::before {
    content: '✓';
    color: var(--success);
    font-weight: 700;
}

.pricing-card .btn {
    width: 100%;
    justify-content: center;
}

/* Instructions */
.instructions-list {
    max-width: 800px;
    margin: 0 auto;
}

.instruction-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--gray-200);
}

.instruction-number {
    width: 48px;
    height: 48px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.instruction-content h4 {
    margin-bottom: 0.5rem;
}

.instruction-content p {
    margin-bottom: 0;
    color: var(--gray-500);
}

/* Download Section */
.download-card {
    background: var(--gradient);
    border-radius: 24px;
    padding: 4rem;
    text-align: center;
    color: white;
}

.download-card h2 {
    color: white;
    margin-bottom: 1rem;
}

.download-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    max-width: 500px;
    margin: 0 auto 2rem;
}

.download-info {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.download-info-item {
    text-align: center;
}

.download-info-item .label {
    font-size: 0.875rem;
    opacity: 0.8;
}

.download-info-item .value {
    font-weight: 600;
    font-size: 1.125rem;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--gray-50);
    border-radius: 12px;
}

.stat-item .number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-item .label {
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--gray-100);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-item h4 {
    margin-bottom: 0.25rem;
}

.contact-item p {
    margin-bottom: 0;
    color: var(--gray-500);
}

.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--gray-200);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--gray-700);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.2s;
    font-family: inherit;
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* Footer */
.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand .logo {
    color: white;
    margin-bottom: 1rem;
}

.footer-brand .logo-icon {
    background: var(--primary);
}

.footer-brand p {
    color: var(--gray-400);
    font-size: 0.875rem;
}

.footer h4 {
    color: white;
    margin-bottom: 1.25rem;
    font-size: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--gray-400);
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--gray-700);
    text-align: center;
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        display: none;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .pricing-card.featured {
        transform: none;
    }

    .about-content,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Mobile menu - показываем на планшетах и телефонах */
    .header .container {
        position: relative;
    }

    .mobile-menu-btn {
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        display: block;
        padding: 0.5rem;
        font-size: 1.75rem;
        z-index: 10000;
        background: none;
        border: none;
        cursor: pointer;
        color: #334155;
    }

    .header .nav {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 20px;
        background: #ffffff;
        flex-direction: column;
        padding: 1rem 1.5rem 1.5rem;
        gap: 0;
        border-bottom: 1px solid #e2e8f0;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        z-index: 9999;
    }

    .header .nav.active {
        display: flex;
    }

    .header .nav a {
        padding: 1rem 0;
        border-bottom: 1px solid #f1f5f9;
        display: block;
        color: #334155;
        font-size: 1rem;
    }

    .header .nav a:last-child {
        border-bottom: none;
    }

    .header .nav .nav-btn {
        margin-top: 1rem;
        text-align: center;
        display: block;
        padding: 0.875rem 1.25rem;
    }

    .header .nav .nav-btn-secondary {
        margin-top: 0.5rem;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.75rem; }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 60px 0;
    }

    .download-card {
        padding: 2rem;
    }

    .download-info {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Utilities */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Code blocks */
code {
    background: var(--gray-100);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Fira Code', monospace;
    font-size: 0.875rem;
    color: var(--primary-dark);
}

pre {
    background: var(--gray-900);
    color: var(--gray-100);
    padding: 1.5rem;
    border-radius: 12px;
    overflow-x: auto;
}

pre code {
    background: none;
    color: inherit;
    padding: 0;
}

/* Highlight */
.highlight {
    background: linear-gradient(120deg, var(--accent-light) 0%, var(--accent-light) 100%);
    background-repeat: no-repeat;
    background-size: 100% 40%;
    background-position: 0 90%;
}

/* ========================================
   Улучшенные мобильные стили
   ======================================== */

@media (max-width: 768px) {
    /* Одинаковая ширина страниц - убираем лишние отступы */
    .container {
        padding: 0 1rem;
        max-width: 100%;
    }
    
    /* Все колонки последовательно (одна за другой) */
    .features-grid,
    .pricing-grid,
    .about-stats,
    .download-info,
    .footer-grid,
    .contact-grid,
    .about-content {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    /* Тарифы - полная ширина, короче по высоте */
    .pricing-grid {
        max-width: 100% !important;
    }
    
    .pricing-card {
        padding: 1.5rem;
        width: 100%;
    }
    
    .pricing-card.featured {
        transform: none;
        order: -1; /* Популярный тариф сверху */
    }
    
    /* Карточки возможностей */
    .feature-card {
        padding: 1.5rem;
    }
    
    /* Секции - меньше вертикальных отступов */
    .section {
        padding: 40px 0;
    }
    
    /* Hero секция */
    .hero {
        padding: 100px 0 40px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Инструкции */
    .instruction-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .instruction-number {
        margin: 0 auto;
    }
    
    /* Скачивание */
    .download-card {
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    .download-card h2 {
        font-size: 1.5rem;
    }
    
    /* Футер */
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-grid {
        text-align: center;
        gap: 2rem !important;
    }
    
    /* Заголовки секций */
    .section-title h2 {
        font-size: 1.5rem;
    }
    
    .section-title p {
        font-size: 1rem;
    }
}

/* Ещё более узкие экраны */
@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .header .container {
        height: 60px;
    }
    
    .logo {
        font-size: 1.25rem;
    }
    
    .logo-icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    .hero {
        padding: 80px 0 30px;
    }
    
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .pricing-card {
        padding: 1.25rem;
    }
    
    .pricing-price .amount {
        font-size: 2.25rem;
    }
    
    .feature-card {
        padding: 1.25rem;
    }
    
    .feature-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
}

/* ========================================
   Исправления мобильного бургер-меню
   ======================================== */

/* Кнопки Скачать и Войти в мобильном меню */
@media (max-width: 1024px) {
    .header .nav .nav-btn {
        display: block;
        text-align: center;
        padding: 0.875rem 1.25rem;
        margin: 0.5rem 0;
        border-radius: 8px;
        font-weight: 600;
        border: 2px solid transparent;
    }
    
    /* Скачать - светлый фон с рамкой */
    .header .nav .nav-btn:not(.nav-btn-secondary) {
        background: var(--primary-light) !important;
        color: white !important;
        border-color: var(--primary) !important;
    }
    
    /* Войти - прозрачный с рамкой */
    .header .nav .nav-btn.nav-btn-secondary {
        background: transparent !important;
        color: var(--primary) !important;
        border: 2px solid var(--primary) !important;
        margin-top: 0.25rem !important;
    }
    
    .header .nav .nav-btn:hover {
        opacity: 0.9;
    }
}

/* Topup Modal Styles */
.topup-alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}
.topup-alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}
.topup-alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}
.topup-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.topup-input-group label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}
.topup-input-wrapper {
    position: relative;
}
.topup-input-wrapper input {
    width: 100%;
    padding: 1rem 4rem 1rem 1rem;
    font-size: 1.25rem;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    transition: all 0.2s;
}
.topup-input-wrapper input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}
.topup-currency {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-500);
    font-size: 1.125rem;
}
.topup-hint {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
}
.topup-quick-amounts {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
}
.topup-quick-btn {
    padding: 1rem 0.5rem;
    background: var(--gray-100);
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-700);
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
.topup-quick-btn:hover {
    background: rgba(79, 70, 229, 0.1);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}
.topup-quick-btn.active {
    background: var(--gradient);
    border-color: var(--primary);
    color: white;
}
.topup-submit-btn {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
    background: var(--gradient);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.topup-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
}
.topup-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
.topup-info {
    margin-top: 0.5rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--gray-600);
    text-align: center;
}

/* Topup Modal Improvements */
#topup-modal .modal {
    max-width: 450px;
}
#topup-modal .modal-header {
    background: var(--gradient);
    margin: -2rem -2rem 1.5rem -2rem;
    padding: 1.5rem 2rem;
    border-radius: 16px 16px 0 0;
}
#topup-modal .modal-header h3 {
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
}
#topup-modal .modal-close {
    color: rgba(255,255,255,0.8);
}
#topup-modal .modal-close:hover {
    color: white;
}
@media (max-width: 480px) {
    .topup-quick-amounts {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================================
    color: var(--gray-500);
    margin-bottom: 1.5rem;
}

/* ============================================
   DATASET PROJECTS STYLES (Updated)
   ============================================ */

/* Dataset Projects Section */
.dataset-projects-section {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}

.dataset-projects-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.dataset-projects-header h2 {
    font-size: 1.25rem;
    color: var(--gray-800);
}

.btn-new-dataset {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: opacity 0.2s;
}

.btn-new-dataset:hover {
    opacity: 0.9;
}

/* Dataset Project Card - matching site style */
.dataset-card {
    background: #f0fdf4;
    
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: box-shadow 0.2s, transform 0.2s;
    cursor: pointer;
    position: relative;
    border: 1px solid #bbf7d0; border-left: 4px solid #10b981;
}

.dataset-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.dataset-card .project-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.dataset-card .project-name {
    font-weight: 600;
    color: var(--gray-800);
    font-size: 1rem;
    word-break: break-word;
}

/* Dataset Status Badges */
.dataset-status {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
    white-space: nowrap;
}

.dataset-status.draft {
    background: #f1f5f9;
    color: #64748b;
}

.dataset-status.active {
    background: #d1fae5;
    color: #059669;
}

.dataset-status.paused {
    background: #fef3c7;
    color: #d97706;
}

.dataset-status.completed {
    background: #dbeafe;
    color: #2563eb;
}

.dataset-status.cancelled {
    background: #fee2e2;
    color: #dc2626;
}

/* Dataset Meta Info */
.dataset-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--gray-500);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.dataset-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Dataset Progress */
.dataset-progress {
    margin-top: 0.5rem;
}

.dataset-progress .progress-bar {
    height: 4px;
    background: var(--gray-200);
    border-radius: 2px;
    overflow: hidden;
}

.dataset-progress .progress-fill {
    height: 100%;
    background: #10b981;
    transition: width 0.3s;
}

.dataset-progress .progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
}

/* Dataset Budget Info */
.dataset-budget {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--gray-100);
    font-size: 0.85rem;
}

.dataset-budget .budget-spent {
    color: var(--gray-600);
}

.dataset-budget .budget-reward {
    color: #059669;
    font-weight: 500;
}

/* Empty state for datasets */
.dataset-empty-state {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--white);
    border-radius: 12px;
}

.dataset-empty-state h3 {
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.dataset-empty-state p {
    color: var(--gray-500);
    margin-bottom: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .dataset-projects-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .btn-new-dataset {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   PROJECT FILTER BUTTONS
   ============================================ */

.projects-filters {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid var(--gray-300);
    background: var(--white);
    color: var(--gray-600);
    transition: all 0.2s;
}

.filter-btn:hover {
    border-color: var(--gray-400);
}

.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.filter-btn.active.dataset {
    background: #10b981;
    border-color: #10b981;
}

.projects-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.projects-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.projects-header-left h2 {
    font-size: 1.25rem;
    color: var(--gray-800);
    margin: 0;
}

.projects-header-actions {
    display: flex;
    gap: 0.5rem;
}

@media (max-width: 600px) {
    .projects-header-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .projects-header-actions {
        width: 100%;
    }
    .projects-header-actions .btn-upload {
        flex: 1;
    }
}

/* ============================================
   DROPDOWN NAVIGATION MENU
   Added: 2026-02-16
   ============================================ */

/* Dropdown container */
.nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

/* Dropdown button */
.nav-dropdown-btn {
    background: none;
    border: none;
    color: var(--gray-600);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-family: inherit;
}

.nav-dropdown-btn:hover {
    color: var(--primary);
}

.dropdown-arrow {
    font-size: 0.6rem;
    transition: transform 0.2s;
}

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

/* Dropdown content */
.nav-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    min-width: 180px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 0.5rem 0;
    z-index: 1001;
    margin-top: 1rem;
}

.nav-dropdown-content::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid white;
}

.nav-dropdown.active .nav-dropdown-content {
    display: block;
}

.nav-dropdown-content a {
    display: block;
    padding: 0.6rem 1rem;
    color: var(--gray-700) !important;
    font-size: 0.9rem;
    transition: background 0.2s;
    font-weight: 400;
}

.nav-dropdown-content a:hover {
    background: var(--gray-100);
    color: var(--primary) !important;
}

.nav-dropdown-content a.active {
    color: var(--primary) !important;
    background: var(--gray-50);
}

/* Mobile dropdown - inside burger menu */
@media (max-width: 992px) {
    .nav-dropdown {
        width: 100%;
        display: block;
    }

    .nav-dropdown-btn {
        width: 100%;
        justify-content: space-between;
        padding: 1rem 0;
        border-bottom: 1px solid #f1f5f9;
        color: #334155;
        font-size: 1rem;
    }

    .nav-dropdown-content {
        position: static;
        transform: none;
        box-shadow: none;
        background: #f8fafc;
        margin: 0;
        padding: 0;
        border-radius: 0;
        border-bottom: 1px solid #f1f5f9;
    }

    .nav-dropdown-content::before {
        display: none;
    }

    .nav-dropdown-content a {
        padding: 0.75rem 1rem 0.75rem 1.5rem;
        border-bottom: none;
        font-size: 0.95rem;
    }

    .nav-dropdown-content a::before {
        content: '— ';
        color: var(--gray-400);
    }
}

/* ===== ACCORDION STYLES ===== */
.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    overflow: hidden;
    background: white;
    transition: box-shadow 0.2s;
}

.accordion-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: white;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--gray-800);
    transition: background 0.2s;
    border: none;
    width: 100%;
    text-align: left;
}

.accordion-header:hover {
    background: var(--gray-50);
}

.accordion-icon {
    font-size: 0.8rem;
    color: var(--gray-500);
    transition: transform 0.3s;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-item.active .accordion-header {
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion-item.active .accordion-content {
    max-height: 3000px;
}

.accordion-body {
    padding: 1.5rem;
    background: var(--gray-50);
}

.accordion-body h4 {
    color: var(--primary);
    margin: 1.5rem 0 0.75rem 0;
    font-size: 1rem;
}

.accordion-body h4:first-child {
    margin-top: 0;
}

.accordion-body p {
    color: var(--gray-700);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.accordion-body ol,
.accordion-body ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    color: var(--gray-700);
}

.accordion-body li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.accordion-body .price-tag {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.accordion-body .tip-box {
    background: white;
    border-left: 4px solid var(--primary);
    padding: 1rem 1.25rem;
    border-radius: 0 8px 8px 0;
    margin: 1rem 0;
}

.accordion-body .tip-box p {
    margin: 0;
}

/* Instructions Hero */
.instructions-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 5rem 0 4rem 0;
    text-align: center;
    color: white;
}

.instructions-hero h1 {
    color: white;
    margin-bottom: 1rem;
    font-size: 2.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.instructions-hero .lead {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.instructions-hero .btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    background: white;
    color: var(--primary);
    border-radius: 8px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.instructions-hero .btn-lg:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    .instructions-hero {
        padding: 6rem 1rem 3rem 1rem;
    }
    
    .instructions-hero h1 {
        font-size: 1.75rem;
    }
    
    .instructions-hero .lead {
        font-size: 1rem;
    }
    
    .accordion-header {
        padding: 1rem 1.25rem;
        font-size: 1rem;
    }
    
    .accordion-body {
        padding: 1.25rem;
    }
}

/* User section in nav for dashboard */
.nav-user-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

@media (max-width: 992px) {
    .nav-user-section {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid #e2e8f0;
    }
    
    .nav-user-section .user-email {
        color: var(--gray-600);
        font-size: 0.9rem;
    }
    
    .nav-user-section .nav-btn {
        width: 100%;
        text-align: center;
    }
}
