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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #0a0a0a;
    min-height: 100vh;
    padding: 60px 20px;
    color: white;
}

h1 {
    color: #ffffff;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.hero {
    text-align: center;
    padding: 100px 20px 60px;
    background: #0a0a0a;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 16px;
}

.hero p {
    font-size: 1.15rem;
    color: #999;
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: inline-block;
    background: #ffffff;
    color: #0a0a0a;
    padding: 14px 36px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 80px;
}

.hero-cta:hover {
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 80px;
}

.btn-signup {
    background: #ffffff;
    color: #0a0a0a;
    padding: 14px 36px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-signup:hover {
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-signin {
    background: transparent;
    color: #ffffff;
    padding: 14px 36px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-signin:hover {
    background: #ffffff;
    color: #0a0a0a;
}

.dashboard-preview {
    max-width: 1100px;
    margin: -60px auto 80px;
    padding: 0 20px;
}

.preview-frame {
    background: #1a1a1a;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.preview-header {
    background: #141414;
    padding: 20px 32px;
    border-bottom: 1px solid #2a2a2a;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.preview-title {
    font-weight: 600;
    color: #ffffff;
}

.preview-body {
    padding: 40px;
    background: #0a0a0a;
    min-height: 500px;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.stat-box {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 24px;
}

.stat-label {
    color: #666;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.stat-value {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 700;
}

.subscriptions-sample {
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #2a2a2a;
}

.subscription-item {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #2a2a2a;
    gap: 16px;
}

.subscription-item:last-child {
    border-bottom: none;
}

.sub-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 1.2rem;
}

.sub-info {
    flex: 1;
}

.sub-name {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 4px;
}

.sub-price {
    color: #999;
    font-size: 0.9rem;
}

.sub-amount {
    color: #ffffff;
    font-weight: 600;
    font-size: 1.1rem;
}

.benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.benefit {
    text-align: center;
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.benefit-title {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.benefit-text {
    color: #999;
    line-height: 1.6;
}

@media (max-width: 768px) {
    body {
        padding: 32px 16px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

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

    .subscription-item {
        flex-direction: column;
        text-align: center;
    }

    .preview-body {
        padding: 20px;
    }

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

    .btn-signup, .btn-signin {
        width: 100%;
    }
}

/* Auth Modal Styles */
.auth-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-modal-backdrop.visible {
    display: flex;
}

.auth-modal {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    width: 100%;
    max-width: 420px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.auth-modal-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-modal-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
}

.auth-modal-subtitle {
    color: #666;
    font-size: 0.95rem;
}

.auth-form-group {
    margin-bottom: 20px;
}

.auth-form-label {
    display: block;
    color: #999;
    font-size: 0.85rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.auth-form-input {
    width: 100%;
    background: #0a0a0a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 14px 16px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.auth-form-input:focus {
    outline: none;
    border-color: #3a3a3a;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
}

.auth-form-input::placeholder {
    color: #666;
}

.auth-submit-btn {
    width: 100%;
    background: #ffffff;
    color: #0a0a0a;
    border: none;
    border-radius: 8px;
    padding: 14px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

.auth-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.auth-switch {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #2a2a2a;
    color: #666;
    font-size: 0.95rem;
}

.auth-switch-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
}

.auth-switch-link:hover {
    text-decoration: underline;
}

.auth-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: #666;
    font-size: 1.8rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.auth-close-btn:hover {
    background: #2a2a2a;
    color: #ffffff;
}

.auth-modal {
    position: relative;
}

.auth-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    display: none;
}

.auth-error.visible {
    display: block;
}

.auth-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    display: none;
}

.auth-success.visible {
    display: block;
}

/* ========================================
   Light Mode Theme for Landing Page
   ======================================== */

[data-theme="light"] body {
    background: #f8f9fa;
    color: #212529;
}

[data-theme="light"] .hero {
    background: #f8f9fa;
}

[data-theme="light"] .hero h1,
[data-theme="light"] h1 {
    color: #212529;
}

[data-theme="light"] .hero p {
    color: #6c757d;
}

[data-theme="light"] .btn-signup {
    background: #212529;
    color: #ffffff;
}

[data-theme="light"] .btn-signup:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .btn-signin {
    color: #212529;
    border-color: #212529;
}

[data-theme="light"] .btn-signin:hover {
    background: #212529;
    color: #ffffff;
}

[data-theme="light"] .preview-frame {
    background: #ffffff;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .preview-header {
    background: #f8f9fa;
    border-color: #e9ecef;
}

[data-theme="light"] .preview-title {
    color: #212529;
}

[data-theme="light"] .preview-body {
    background: #f8f9fa;
}

[data-theme="light"] .stat-box,
[data-theme="light"] .subscriptions-sample {
    background: #ffffff;
    border-color: #e9ecef;
}

[data-theme="light"] .stat-label {
    color: #6c757d;
}

[data-theme="light"] .stat-value,
[data-theme="light"] .sub-name,
[data-theme="light"] .sub-amount {
    color: #212529;
}

[data-theme="light"] .sub-price {
    color: #6c757d;
}

[data-theme="light"] .subscription-item {
    border-color: #e9ecef;
}

[data-theme="light"] .benefit-title {
    color: #212529;
}

[data-theme="light"] .benefit-text {
    color: #6c757d;
}

[data-theme="light"] .auth-modal-backdrop {
    background: rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .auth-modal {
    background: #ffffff;
    border-color: #e9ecef;
}

[data-theme="light"] .auth-modal-title {
    color: #212529;
}

[data-theme="light"] .auth-modal-subtitle,
[data-theme="light"] .auth-form-label {
    color: #6c757d;
}

[data-theme="light"] .auth-form-input {
    background: #f8f9fa;
    border-color: #e9ecef;
    color: #212529;
}

[data-theme="light"] .auth-form-input:focus {
    border-color: #dee2e6;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .auth-form-input::placeholder {
    color: #adb5bd;
}

[data-theme="light"] .auth-submit-btn {
    background: #212529;
    color: #ffffff;
}

[data-theme="light"] .auth-submit-btn:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .auth-switch {
    border-color: #e9ecef;
    color: #6c757d;
}

[data-theme="light"] .auth-switch-link {
    color: #212529;
}

[data-theme="light"] .auth-close-btn {
    color: #6c757d;
}

[data-theme="light"] .auth-close-btn:hover {
    background: #f8f9fa;
    color: #212529;
}