/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #020617;
    --bg-secondary: rgba(15, 23, 42, 0.65);
    --accent-purple: #a855f7;
    --accent-indigo: #6366f1;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.09);
    --glass-glow: rgba(168, 85, 247, 0.15);
    
    /* Theme Specific Variables */
    --navbar-bg: rgba(2, 6, 23, 0.75);
    --user-stats-bg: rgba(30, 41, 59, 0.45);
    --input-bg: rgba(15, 23, 42, 0.8);
    --faq-bg: rgba(15, 23, 42, 0.35);
    --faq-content-bg: rgba(2, 6, 23, 0.2);
    --history-item-bg: rgba(15, 23, 42, 0.4);
    --modal-overlay-bg: rgba(2, 6, 23, 0.8);
    --pricing-card-bg: rgba(15, 23, 42, 0.65);
    --step-card-bg: rgba(15, 23, 42, 0.35);
}

body.light-theme {
    --bg-primary: #f8fafc;
    --bg-secondary: rgba(255, 255, 255, 0.8);
    --text-main: #0f172a;
    --text-muted: #475569;
    --border-color: rgba(15, 23, 42, 0.08);
    --glass-glow: rgba(99, 102, 241, 0.08);
    
    /* Theme Specific Variables */
    --navbar-bg: rgba(248, 250, 252, 0.85);
    --user-stats-bg: rgba(226, 232, 240, 0.8);
    --input-bg: #ffffff;
    --faq-bg: rgba(255, 255, 255, 0.8);
    --faq-content-bg: rgba(226, 232, 240, 0.3);
    --history-item-bg: rgba(255, 255, 255, 0.8);
    --modal-overlay-bg: rgba(15, 23, 42, 0.4);
    --pricing-card-bg: rgba(255, 255, 255, 0.9);
    --step-card-bg: rgba(255, 255, 255, 0.8);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-main);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Headings typography */
h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Background glowing blobs */
.background-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, rgba(168, 85, 247, 0.05) 50%, rgba(0,0,0,0) 70%);
    z-index: -1;
    filter: blur(80px);
    pointer-events: none;
}

.glow-top {
    top: -10%;
    left: 20%;
}

.glow-middle {
    top: 40%;
    right: -10%;
}

.glow-bottom {
    bottom: -10%;
    left: 10%;
}

/* Page container (SaaS layout width constraint) */
.page-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 100px 24px 60px 24px; /* Space for fixed navbar */
    display: flex;
    flex-direction: column;
    gap: 120px;
}

/* Navbar styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 76px;
    background: var(--navbar-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
}

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

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    text-decoration: none;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    height: 32px;
    width: 32px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-indigo) 0%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-menu a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

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

.theme-toggle-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    outline: none;
}

.theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-muted);
}

body.light-theme .theme-toggle-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.nav-btn {
    padding: 10px 20px !important;
    font-size: 0.9rem !important;
    border-radius: 10px !important;
}

/* User Stats & Logout button inside nav */
.user-stats {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--user-stats-bg);
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 0.85rem;
}

#user-email-display {
    max-width: 160px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
}

.credit-badge {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(168, 85, 247, 0.2) 100%);
    border: 1px solid var(--accent-purple);
    color: #e9d5ff;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}

.logout-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    font-size: 0.8rem;
    transition: color 0.2s ease;
    padding-left: 8px;
    border-left: 1px solid var(--border-color);
}

.logout-btn:hover {
    color: #ef4444;
}

/* Hero Section */
/* Hero Section */
.hero-section {
    padding: 60px 0;
    max-width: 100%;
    margin: 0 auto;
}

.hero-content-split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.hero-content-left {
    flex: 1.2;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-content-left h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.18);
    color: var(--accent-indigo);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    border-radius: 100px;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.tagline {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 36px;
    text-align: left;
}

.hero-buttons {
    display: flex;
    justify-content: flex-start;
    gap: 16px;
}

.btn-large {
    padding: 16px 32px !important;
    font-size: 1.05rem !important;
    border-radius: 12px !important;
}

/* iPhone Reels Mockup Frame */
.hero-content-right {
    flex: 0.8;
    display: flex;
    justify-content: center;
    align-items: center;
}

.iphone-container {
    position: relative;
    perspective: 1000px;
}

.iphone-mockup {
    width: 270px;
    height: 540px;
    background: #000;
    border-radius: 44px;
    border: 12px solid #1a1b1f;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.65),
                0 0 0 2px rgba(255, 255, 255, 0.05),
                inset 0 0 10px rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.iphone-mockup:hover {
    transform: translateY(-5px) rotateY(-3deg) rotateX(2deg);
}

.iphone-screen {
    width: 100%;
    height: 100%;
    border-radius: 32px;
    position: relative;
    overflow: hidden;
    background: #050505;
}

.iphone-screen video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.iphone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 22px;
    background: #1a1b1f;
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
    z-index: 5;
}

.iphone-home-indicator {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 4px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 2px;
    z-index: 5;
}

.iphone-overlay-captions {
    position: absolute;
    bottom: 70px;
    left: 0;
    right: 0;
    padding: 0 16px;
    text-align: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.15rem;
    line-height: 1.3;
    color: #fff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.95);
    pointer-events: none;
    z-index: 3;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
}

.iphone-overlay-captions .word {
    padding: 2px 4px;
    border-radius: 4px;
}

.iphone-overlay-captions .word.accent {
    color: #facc15;
}

.iphone-overlay-ui {
    position: absolute;
    right: 12px;
    bottom: 110px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 3;
    pointer-events: none;
}

.iphone-overlay-ui .ui-item {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.65rem;
    font-weight: 700;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.85);
}

/* Feature SVG Icons */
.feature-svg-icon {
    width: 28px;
    height: 28px;
    color: var(--accent-purple);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:hover .feature-svg-icon {
    color: var(--accent-indigo);
    transform: scale(1.1) rotate(5deg);
}

/* Section titles */
.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    text-align: center;
    margin-bottom: 12px;
}

.section-subtitle {
    color: var(--text-muted);
    text-align: center;
    max-width: 500px;
    margin: 0 auto 48px auto;
    font-size: 0.98rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--bg-secondary);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 32px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 12px;
}

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

/* How It Works Section */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.step-card {
    background: var(--step-card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 32px;
    position: relative;
    text-align: center;
}

.step-num {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-indigo) 0%, var(--accent-purple) 100%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.5);
}

.step-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 10px;
    margin-bottom: 12px;
}

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

/* Dashboard Section (Video creator app panel) */
.dashboard-section {
    max-width: 620px;
    width: 100%;
    margin: 0 auto;
}

.dashboard-container {
    width: 100%;
}

.main-card {
    background: var(--bg-secondary);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 36px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    margin-top: 20px;
}

.main-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    box-shadow: 0 0 40px var(--glass-glow);
    z-index: -1;
    opacity: 0.5;
    pointer-events: none;
}

/* Form Styles */
form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.form-row {
    display: flex;
    gap: 16px;
}

.col-half {
    flex: 1;
}

label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.input-wrapper input {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    color: var(--text-main);
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: all 0.3s ease;
}

.input-wrapper input:focus {
    border-color: var(--accent-indigo);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
}

.helper-text {
    display: block;
    margin-top: 6px;
    font-size: 0.78rem;
    color: #64748b;
}

.select-wrapper select {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    color: var(--text-main);
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    transition: all 0.3s ease;
}

.select-wrapper select:focus {
    border-color: var(--accent-indigo);
}

/* Buttons */
.glow-button {
    background: linear-gradient(135deg, var(--accent-indigo) 0%, var(--accent-purple) 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    padding: 16px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(168, 85, 247, 0.25);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.glow-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(168, 85, 247, 0.45);
}

.glow-button:active {
    transform: translateY(1px);
}

.secondary-button {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.secondary-button:hover {
    background: rgba(255,255,255,0.05);
    border-color: var(--text-muted);
}

/* Views controls */
.view {
    transition: opacity 0.4s ease;
}

.hidden {
    display: none !important;
    opacity: 0;
}

/* History Section */
.history-divider {
    height: 1px;
    background: var(--border-color);
    margin: 32px 0 24px 0;
}

.history-section h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
    text-align: left;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 250px;
    overflow-y: auto;
    padding-right: 6px;
}

.history-list::-webkit-scrollbar {
    width: 6px;
}

.history-list::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.02);
    border-radius: 10px;
}

.history-list::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
}

.history-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.2);
}

.empty-history-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    padding: 20px 0;
}

.history-item {
    background: var(--history-item-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s ease;
}

.history-item:hover {
    background: rgba(15, 23, 42, 0.6);
}

.history-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
    max-width: 70%;
}

.history-title {
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-price {
    font-size: 0.78rem;
    color: var(--accent-purple);
    font-weight: 700;
}

.history-action-btn {
    text-decoration: none;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #c7d2fe;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.history-action-btn:hover {
    background: var(--accent-indigo);
    color: white;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
}

/* Spinner Styles */
.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px 0;
}

.spinner {
    width: 60px;
    height: 60px;
    position: relative;
    margin-bottom: 24px;
}

.double-bounce1, .double-bounce2 {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--accent-purple);
    opacity: 0.6;
    position: absolute;
    top: 0;
    left: 0;
    animation: sk-bounce 2.0s infinite ease-in-out;
}

.double-bounce2 {
    background-color: var(--accent-indigo);
    animation-delay: -1.0s;
}

@keyframes sk-bounce {
    0%, 100% { transform: scale(0.0); }
    50% { transform: scale(1.0); }
}

#status-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

#status-message {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 24px;
    max-width: 320px;
}

/* Progress bar */
.progress-bar-wrapper {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.06);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-indigo) 0%, var(--accent-purple) 100%);
    border-radius: 10px;
    transition: width 0.4s ease;
}

#progress-percent {
    font-weight: 700;
    color: var(--accent-purple);
    font-size: 0.9rem;
}

/* Success Container & Video Player */
.success-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.success-icon {
    width: 48px;
    height: 48px;
    background: rgba(34, 197, 94, 0.15);
    border: 2px solid #22c55e;
    color: #22c55e;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.success-container h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.video-preview-wrapper {
    width: 250px;
    height: 444px;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin-bottom: 28px;
    background-color: black;
}

.video-preview-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.button-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.download-style {
    text-decoration: none;
    text-align: center;
    display: block;
}

/* Pricing Section */
.pricing-section {
    position: relative;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.pricing-card {
    background: var(--pricing-card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px 32px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-5px);
    border-color: rgba(168, 85, 247, 0.3);
}

.pricing-card.popular {
    border-color: var(--accent-purple);
    box-shadow: 0 10px 40px rgba(168, 85, 247, 0.15);
}

.popular-tag {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-indigo) 100%);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
}

.pricing-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.price {
    font-family: 'Outfit', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 6px;
    background: linear-gradient(135deg, #f8fafc 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pricing-credits {
    color: var(--accent-purple);
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 28px;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 36px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
}

.pricing-features li {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-features li::before {
    content: '✓';
    color: #22c55e;
    font-weight: bold;
}

/* FAQ Accordion Styles */
.faq-accordion {
    max-width: 750px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--faq-bg);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    padding: 20px 24px;
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    outline: none;
}

.faq-question .arrow {
    font-size: 0.75rem;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 24px;
    background: var(--faq-content-bg);
}

.faq-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    padding-bottom: 20px;
}

/* FAQ Active state managed via JS toggle */
.faq-item.active .faq-content {
    max-height: 200px;
}

.faq-item.active .faq-question .arrow {
    transform: rotate(180deg);
    color: var(--accent-purple);
}

/* Modal overlays styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--modal-overlay-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 200;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.modal-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
    max-width: 450px;
    width: 90%;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

.checkout-modal-card {
    max-width: 500px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.8rem;
    cursor: pointer;
    transition: color 0.2s ease;
    line-height: 1;
}

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

/* Glassmorphism utility card border light */
.glassmorphic {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 
                inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Auth toggle */
.auth-toggle {
    margin-top: 20px;
    font-size: 0.88rem;
    color: var(--text-muted);
    text-align: center;
}

.text-link-button {
    background: transparent;
    border: none;
    color: var(--accent-indigo);
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: text-shadow 0.2s ease;
}

.text-link-button:hover {
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

/* Virtual Credit Card Styling */
.credit-card-view {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #1e1b4b 0%, #311042 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.card-glow {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.4) 0%, rgba(99, 102, 241, 0.1) 75%);
    filter: blur(20px);
}

.card-chip {
    width: 44px;
    height: 34px;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    border-radius: 6px;
    position: relative;
}

.card-chip::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 22px;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 4px;
}

.card-logo {
    position: absolute;
    top: 24px;
    right: 24px;
    font-family: 'Outfit', sans-serif;
    font-style: italic;
    font-weight: 800;
    font-size: 1.4rem;
    color: white;
}

.card-number-display {
    font-family: monospace;
    font-size: 1.35rem;
    letter-spacing: 0.08em;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    margin: 15px 0;
}

.card-bottom-info {
    display: flex;
    justify-content: space-between;
}

.card-label {
    display: block;
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.card-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* Checkout Summary inside checkout form */
.checkout-summary {
    background: var(--user-stats-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px;
    text-align: center;
    font-size: 0.9rem;
    margin-top: 10px;
    color: var(--text-muted);
}

.checkout-summary strong {
    color: var(--text-main);
}

/* Checkout simulated processing overlay */
.checkout-processing-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 24px;
    z-index: 10;
}

.checkout-processing-overlay h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    margin-top: 10px;
    margin-bottom: 8px;
}

.checkout-processing-overlay p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Billing Toggle Switch */
.billing-toggle-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 40px;
    margin-top: 10px;
}

.billing-toggle-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: color 0.3s;
}

.billing-toggle-label.active {
    color: var(--text-main);
}

.discount-badge {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid #22c55e;
    color: #22c55e;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    margin-left: 4px;
}

.billing-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.billing-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.billing-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255,255,255,0.08);
    border: 1px solid var(--border-color);
    transition: .4s;
}

.billing-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
}

.billing-switch input:checked + .billing-slider {
    background-color: var(--accent-indigo);
}

.billing-switch input:checked + .billing-slider:before {
    transform: translateX(22px);
}

.billing-slider.round {
    border-radius: 34px;
}

.billing-slider.round:before {
    border-radius: 50%;
}

.price-period {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Subscription Details Card */
.subscription-status-card {
    background: var(--user-stats-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 20px 24px;
    margin-bottom: 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.sub-status-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.92rem;
}

.sub-status-label {
    color: var(--text-muted);
    font-weight: 500;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
}

.status-active {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid #22c55e;
    color: #22c55e;
}

.status-canceled {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid #ef4444;
    color: #ef4444;
}

.sub-cancel-btn {
    padding: 8px 16px !important;
    font-size: 0.8rem !important;
    border-radius: 8px !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
    color: #fca5a5 !important;
}

.sub-cancel-btn:hover {
    background: rgba(239, 68, 68, 0.1) !important;
    border-color: #ef4444 !important;
    color: white !important;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
}

/* Testimonials Section */
.testimonials-section {
    padding: 20px 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.testimonial-card {
    background: var(--bg-secondary);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 32px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: rgba(191, 168, 136, 0.3);
    box-shadow: 0 10px 30px rgba(191, 168, 136, 0.05);
}

.testimonial-text {
    font-style: italic;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
}

.testimonial-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-indigo) 100%);
    color: #07080b;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.user-info h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 2px;
}

.user-info span {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Detailed Corporate Footer */
.app-footer {
    border-top: 1px solid var(--border-color);
    background: rgba(7, 8, 11, 0.4);
    padding: 60px 0 30px 0;
    margin-top: 60px;
}

.footer-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 48px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-brand {
    flex: 1.5;
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
}

.footer-brand .logo {
    font-size: 1.5rem;
}

.footer-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 320px;
}

.footer-links-group {
    flex: 2;
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

.footer-links-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}

.footer-links-col h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-main);
    margin-bottom: 4px;
}

.footer-links-col a {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links-col a:hover {
    color: var(--accent-gold);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    margin-top: 40px;
    padding-top: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #475569;
    font-size: 0.78rem;
    text-align: center;
}

.footer-tax-info {
    color: #475569;
    font-size: 0.75rem;
}

/* Mobile Menu Toggle Button */
.menu-toggle-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 110;
    padding: 0;
}

.menu-toggle-btn .bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-main);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Mobile Dropdown Drawer */
.mobile-menu-drawer {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--navbar-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid var(--border-color);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    z-index: 99;
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    pointer-events: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.mobile-menu-drawer.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 600;
    transition: all 0.2s ease;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

body.light-theme .mobile-nav-link {
    border-bottom-color: rgba(0, 0, 0, 0.03);
}

.mobile-nav-link:hover, .mobile-nav-link:active {
    color: var(--text-main);
    padding-left: 6px;
}

.mobile-menu-auth {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.mobile-auth-btn {
    width: 100%;
}

.mobile-user-stats {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mobile-user-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#mobile-user-email {
    font-weight: 600;
    font-size: 0.95rem;
    max-width: 70%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Modal Auto-Scroll & Viewport Fit Fixes */
.modal-overlay {
    overflow-y: auto;
    padding: 20px 12px;
    align-items: flex-start; /* Ensure scrolling works properly on short screens */
}

.modal-card {
    margin: auto; /* Center modal card */
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.modal-card .section-title {
    font-size: 1.5rem;
    padding-right: 32px; /* Leave space for close button */
    text-align: left;
}

.modal-card .section-subtitle {
    text-align: left;
    margin-bottom: 20px;
}

/* Compatibility Section */
.compatibility-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: -50px;
    margin-bottom: 20px;
    text-align: center;
}

.compatibility-title {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.compatibility-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.compat-badge {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.compat-badge:hover {
    border-color: var(--accent-indigo);
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.25);
    transform: translateY(-2px);
}

/* Blog Section */
.blog-section {
    position: relative;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.blog-card {
    background: var(--bg-secondary);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.1);
}

.blog-date {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--accent-purple);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.blog-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-main);
}

.blog-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    flex-grow: 1;
}

.blog-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-indigo);
    text-decoration: none;
    transition: color 0.2s;
    margin-top: 8px;
    align-self: flex-start;
}

.blog-link:hover {
    color: var(--accent-purple);
}

/* Responsive adjustments */
@media(max-width: 768px) {
    .nav-menu {
        display: none; /* Hide standard nav list on mobile */
    }
    
    .menu-toggle-btn {
        display: flex; /* Show hamburger toggle */
    }
    
    /* Hamburger animation when open */
    .menu-toggle-btn.open .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .menu-toggle-btn.open .bar:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle-btn.open .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero-content-split {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }
    
    .hero-content-left {
        align-items: center;
        text-align: center;
    }
    
    .hero-content-left h1 {
        font-size: 2.3rem;
        text-align: center;
    }
    
    .tagline {
        font-size: 1rem;
        text-align: center;
    }
    
    .page-container {
        gap: 60px;
        padding: 90px 16px 40px 16px;
    }
    
    /* Navbar mobile fixes */
    .nav-container {
        padding: 0 16px;
    }
    
    #login-nav-btn, #register-nav-btn {
        display: none; /* Hide standard buttons, accessible in mobile menu */
    }
    
    #user-stats-bar {
        display: none !important; /* Hide standard stats bar, use mobile menu drawer */
    }
    
    .logo {
        font-size: 1.4rem; /* Slightly smaller logo text to avoid overflows */
    }
    
    .nav-auth {
        gap: 12px;
    }
    
    /* Grid system stack on mobile */
    .features-grid, .steps-grid, .pricing-grid, .blog-grid, .testimonials-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    /* Main Dashboard card padding reduction to fit screen sizes */
    .main-card {
        padding: 24px 16px;
        border-radius: 16px;
    }
    
    .video-preview-wrapper {
        width: 100%;
        max-width: 240px; /* Scale nicely */
        height: 426px;
    }

    /* Modal mobile fixes */
    .modal-card {
        padding: 24px 16px;
    }
    
    /* Subscription details card mobile fix */
    .subscription-status-card {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 16px;
    }
    
    .sub-cancel-btn {
        width: 100%;
        text-align: center;
    }
    
    /* Hero button stack */
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        align-items: center;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }
    
    .hero-buttons .btn-large, .hero-buttons a {
        width: 100%;
        text-align: center;
    }
    
    /* Footer mobile stack */
    .footer-container {
        flex-direction: column;
        gap: 32px;
        text-align: left;
    }
    
    .footer-links-group {
        flex-direction: column;
        gap: 32px;
    }
}

@media(max-width: 480px) {
    .hero-content-left h1 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .pricing-card {
        padding: 24px 16px;
    }
    
    .feature-card {
        padding: 20px 16px;
    }
    
    .step-card {
        padding: 24px 16px;
    }
}

/* Light Theme Readability Overrides */
body.light-theme .credit-badge {
    color: #4f46e5; /* Indigo-600 */
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(168, 85, 247, 0.08) 100%);
    border-color: rgba(99, 102, 241, 0.3);
}

body.light-theme label {
    color: #334155; /* slate-700, darker labels for better readability */
}

body.light-theme .helper-text {
    color: #475569; /* slate-600, stronger contrast on white card */
}

body.light-theme .sub-cancel-btn {
    color: #dc2626 !important;
    border-color: rgba(220, 38, 38, 0.3) !important;
}

body.light-theme .sub-cancel-btn:hover {
    background: rgba(220, 38, 38, 0.06) !important;
    color: #b91c1c !important;
    border-color: #ef4444 !important;
}

body.light-theme .history-action-btn {
    color: #4f46e5; /* Indigo-600, much stronger contrast */
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.2);
}

body.light-theme .history-action-btn:hover {
    background: #4f46e5;
    color: white;
}

body.light-theme .history-price {
    color: #7c3aed; /* Purple-600 */
}

