/* ═══════════════════════════════════════════════════════
   Marketplace Copywriter — Styles
   ═══════════════════════════════════════════════════════ */

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #ec4899;
    --background: #0f172a;
    --surface: #1e293b;
    --surface-light: #334155;
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --border: #334155;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --radius: 12px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    
    /* Font sizes */
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    
    /* Font weights */
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

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

/* Header */
.header {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.logo-icon {
    font-size: 1.5rem;
}

.nav {
    display: flex;
    gap: 2rem;
}

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

.nav a:hover {
    color: var(--text);
}

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: nowrap;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Login button in header (email) - remove underline, compact size */
.auth-buttons .btn-login-email,
.auth-buttons .btn-login-email:link,
.auth-buttons .btn-login-email:visited,
.auth-buttons .btn-login-email:hover,
.auth-buttons .btn-login-email:active {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.4rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none !important;
    border-bottom: none !important;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.2s ease;
    line-height: 1.2;
}

.auth-buttons .btn-login-email:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Login button in header (Telegram) - same size as email login */
#telegramLogin {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.4rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    background: linear-gradient(135deg, #2AABEE 0%, #229ED9 100%);
    color: white;
    border: none;
    transition: all 0.2s ease;
    line-height: 1.2;
}

#telegramLogin:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(42, 171, 238, 0.4);
    background: linear-gradient(135deg, #229ED9 0%, #1B8FC4 100%);
}

#langToggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

#langToggle:hover {
    background: var(--surface-light);
}

#currentLang {
    font-weight: 600;
    font-size: 0.9rem;
}

.user-balance {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--surface);
    border-radius: var(--radius);
    font-size: 0.9rem;
}

.balance-icon {
    font-size: 1.2rem;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--surface-light);
}

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

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

/* Hero Section */
.hero {
    padding: 6rem 0;
    text-align: center;
    background: radial-gradient(ellipse at top, rgba(99, 102, 241, 0.15), transparent);
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Hero Tariffs Preview */
.hero-tariffs-preview {
    margin-top: var(--spacing-lg, 2rem);
    padding: var(--spacing-md, 1.5rem);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg, 12px);
}

.tariffs-preview-title {
    margin-bottom: var(--spacing-sm, 1rem);
    font-size: var(--font-size-base, 1.1rem);
    text-align: center;
}

.tariffs-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--spacing-xs, 0.75rem);
}

.tariff-preview-card {
    background: var(--surface);
    padding: var(--spacing-sm, 0.75rem);
    border-radius: var(--radius-md, 8px);
    text-align: center;
    transition: transform 0.2s ease;
}

.tariff-preview-card:hover {
    transform: translateY(-2px);
}

.tariff-preview-icon {
    font-size: var(--font-size-2xl, 1.5rem);
    margin-bottom: var(--spacing-xs, 0.25rem);
}

.tariff-preview-name {
    font-weight: var(--font-weight-semibold, 600);
    font-size: var(--font-size-sm, 0.9rem);
    margin-bottom: var(--spacing-xs, 0.25rem);
}

.tariff-preview-price {
    color: var(--primary);
    font-weight: var(--font-weight-bold, 700);
    font-size: var(--font-size-base, 1rem);
}

.tariffs-preview-link {
    display: block;
    text-align: center;
    margin-top: var(--spacing-sm, 1rem);
    color: var(--text-muted);
    text-decoration: none;
    font-size: var(--font-size-sm, 0.9rem);
    transition: color 0.2s ease;
}

.tariffs-preview-link:hover {
    color: var(--text);
}

/* Features */
.features {
    padding: 4rem 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
}

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

@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.feature-card {
    background: linear-gradient(135deg, var(--surface) 0%, var(--background) 100%);
    padding: 2rem;
    border-radius: var(--radius);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    line-height: 1;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Tariffs */
.tariffs {
    padding: 4rem 0;
    background: var(--surface);
}

.tariffs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.tariff-card {
    background: var(--background);
    padding: 2rem;
    border-radius: var(--radius);
    border: 2px solid var(--border);
    transition: all 0.2s;
    position: relative;
}

.tariff-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.tariff-card.popular {
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
}

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

.tariff-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.tariff-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.tariff-price span {
    font-size: 1rem;
    color: var(--text-muted);
}

.tariff-generations {
    font-size: 1.25rem;
    color: var(--success);
    margin-bottom: 1.5rem;
}

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

.tariff-features li {
    padding: 0.5rem 0;
    color: var(--text-muted);
}

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

/* Examples */
.examples {
    padding: 4rem 0;
    background: var(--surface);
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: -2rem;
    margin-bottom: 3rem;
}

.examples-showcase {
    display: grid;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.example-showcase-card {
    background: var(--background);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.example-showcase-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

.example-showcase-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--surface) 0%, var(--background) 100%);
    border-bottom: 1px solid var(--border);
}

.example-badge {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px;
}

.example-rating {
    font-size: 0.95rem;
    font-weight: 600;
    color: #f59e0b;
}

.example-showcase-body {
    padding: 1.5rem;
}

.example-showcase-body h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.example-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    font-size: 0.85rem;
    padding: 0.3rem 0.8rem;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border-radius: 15px;
    font-weight: 500;
}

.example-text {
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.example-text .highlight {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-weight: 500;
    color: var(--text);
}

.example-text strong {
    color: var(--text);
    font-weight: 600;
}

.example-keywords {
    padding: 1rem;
    background: rgba(102, 126, 234, 0.05);
    border-radius: calc(var(--radius) - 4px);
    font-size: 0.9rem;
    color: var(--text-muted);
    border-left: 3px solid #667eea;
}

.example-keywords strong {
    color: #667eea;
}

/* Old styles - keep for compatibility */
.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.example-card {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
}

.example-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
}

.example-content {
    padding: 1.5rem;
}

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

.example-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

@media (max-width: 900px) {
    .sync-showcase {
        grid-template-columns: 1fr;
    }
}

.sync-card {
    background: var(--background);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sync-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.sync-card.unified {
    border: 2px solid var(--primary);
    background: linear-gradient(135deg, var(--background) 0%, rgba(102, 126, 234, 0.05) 100%);
}

.sync-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--surface) 0%, var(--background) 100%);
    border-bottom: 1px solid var(--border);
}

.sync-card-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--text);
}

.sync-icon {
    font-size: 2.5rem;
    line-height: 1;
}

.sync-card-body {
    padding: 1.5rem;
}

.sync-list {
    list-style: none;
    padding: 0;
    margin: 0;
    color: var(--text-muted);
    line-height: 2;
}

.sync-list li.success {
    color: var(--success);
    font-weight: 500;
}

.sync-list li.success.highlight {
    font-weight: 700;
    font-size: 1.1rem;
}

.sync-card-warning {
    padding: 1rem 1.5rem;
    background: rgba(245, 158, 11, 0.1);
    border-top: 1px solid var(--border);
    color: var(--warning);
    font-size: 0.9rem;
}

.sync-card-success {
    padding: 1rem 1.5rem;
    background: rgba(16, 185, 129, 0.1);
    border-top: 1px solid var(--border);
    color: var(--success);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Old sync styles - keep for compatibility */
.sync-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* Footer */
.footer {
    background: var(--surface);
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 1rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--surface);
    border-radius: var(--radius);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.25rem;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--text);
}

.modal-body {
    padding: 1.5rem;
}

/* Telegram Checkbox */
.telegram-checkbox {
    margin-bottom: 1.5rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}

.checkbox-label input:checked + .checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox-label input:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-weight: bold;
}

.checkbox-text {
    display: flex;
    flex-direction: column;
}

.checkbox-text strong {
    color: var(--text);
}

.checkbox-text small {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Payment Methods */
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.payment-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--background);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
}

.payment-method:hover,
.payment-method.active {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.method-icon {
    font-size: 1.5rem;
}

.method-info strong {
    display: block;
    color: var(--text);
}

.method-info small {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Tariff Selection in Modal */
.tariff-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.tariff-option {
    padding: 1rem;
    background: var(--background);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.tariff-option:hover,
.tariff-option.selected {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.tariff-option-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.tariff-option-price {
    color: var(--primary);
    font-weight: 700;
}

.tariff-option-generations {
    color: var(--success);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* Upload Area */
.upload-area {
    margin-bottom: 1.5rem;
}

.upload-placeholder {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.upload-placeholder:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.upload-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.upload-preview img {
    max-width: 100%;
    max-height: 300px;
    border-radius: var(--radius);
}

/* Form */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 1rem;
}

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

/* Loading Overlay */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
}

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

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Web User Info */
.web-user-info {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid var(--primary);
    border-radius: var(--radius);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Task Status */
.task-status {
    margin-bottom: 1.5rem;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.status-indicator.processing {
    background: rgba(99, 102, 241, 0.1);
    border: 2px solid var(--primary);
}

.status-indicator.completed {
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid var(--success);
    color: var(--success);
}

.status-indicator.failed {
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid var(--error);
    color: var(--error);
}

.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.task-info {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--background);
    border-radius: var(--radius);
}

.task-info p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.task-actions {
    display: flex;
    gap: 1rem;
}

.task-actions button {
    flex: 1;
}

/* FAQ Section */
.faq {
    padding: 4rem 0;
    background: var(--surface);
}

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

@media (max-width: 900px) {
    .faq-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

.faq-item {
    background: var(--background);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.faq-item h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.faq-item p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .nav {
        display: none;
    }

    .hero-actions {
        flex-direction: column;
    }

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

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile menu toggle - hidden by default */
.mobile-menu-toggle {
    display: none;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
        background: none;
        border: none;
        color: var(--text);
        font-size: 1.5rem;
        cursor: pointer;
    }
}

/* Ensure body has proper margin */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

/* Fix header overflow */
.header-content {
    flex-wrap: wrap;
}

/* Improve button visibility */
.btn {
    white-space: nowrap;
}

/* Fix modal overflow on mobile */
@media (max-width: 480px) {
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .modal-body {
        max-height: calc(95vh - 120px);
        overflow-y: auto;
    }
}

/* Documentation Pages */
.hero-small {
    padding: 3rem 0;
}

.docs-section {
    padding: 4rem 0;
    background: var(--surface);
}

.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.doc-card {
    background: var(--background);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.doc-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.doc-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.doc-card h3 {
    margin-bottom: 0.5rem;
}

.doc-card p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.doc-card ul {
    list-style: none;
    padding: 0;
}

.doc-card ul li {
    padding: 0.25rem 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.doc-card ul li::before {
    content: "• ";
    color: var(--primary);
}

/* Documentation Content */
.docs-content {
    padding: 4rem 0;
}

.content-block {
    margin-bottom: 3rem;
}

.content-block h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.content-block h3 {
    font-size: 1.25rem;
    margin: 1.5rem 0 1rem;
    color: var(--text);
}

.content-block p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.content-block ul,
.content-block ol {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.content-block ul {
    list-style: none;
    padding-left: 0;
}

.content-block ul li {
    padding-left: 1.5rem;
    position: relative;
}

.content-block ul li::before {
    content: "•";
    color: var(--primary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.content-block ol {
    padding-left: 1.5rem;
}

.content-block code {
    background: var(--surface);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--primary);
}

/* Info Boxes */
.info-box {
    padding: 1.5rem;
    border-radius: var(--radius);
    margin: 1.5rem 0;
    border-left: 4px solid var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.info-box.warning {
    border-left-color: var(--warning);
    background: rgba(245, 158, 11, 0.1);
}

.info-box h3 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.info-box ul,
.info-box ol {
    margin-bottom: 0;
}
