/* ============================================
   SplitReel — Global Stylesheet
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
    /* Colors */
    --bg-primary: #0a0a14;
    --bg-secondary: #0f0f1e;
    --bg-tertiary: #141428;
    --glass-bg: rgba(20, 20, 40, 0.6);
    --glass-border: rgba(255, 255, 255, 0.06);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);

    --text-primary: #f0f0f5;
    --text-secondary: rgba(240, 240, 245, 0.6);
    --text-muted: rgba(240, 240, 245, 0.35);

    --accent-orange: #ff6b35;
    --accent-magenta: #ff2d7b;
    --accent-purple: #7b2dff;
    --accent-blue: #2d9bff;
    --accent-green: #00f5a0;

    --gradient-brand: linear-gradient(135deg, #ff6b35, #ff2d7b, #7b2dff, #2d9bff);
    --gradient-brand-short: linear-gradient(135deg, #ff6b35, #ff2d7b);
    --gradient-cta: linear-gradient(135deg, #ff6b35, #ff2d7b);

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;

    /* Radii */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Layout */
    --sidebar-width: 260px;
    --header-height: 60px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

img, video {
    max-width: 100%;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

input, select, textarea {
    font-family: inherit;
    color: inherit;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 700;
}

/* ---------- Custom Scrollbar ---------- */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ---------- Background Orbs ---------- */
.bg-orbs {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.bg-orbs .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.12;
    animation: orbFloat 20s ease-in-out infinite;
}
.bg-orbs .orb:nth-child(1) {
    width: 500px; height: 500px;
    background: var(--accent-orange);
    top: -10%; left: -5%;
    animation-delay: 0s;
}
.bg-orbs .orb:nth-child(2) {
    width: 400px; height: 400px;
    background: var(--accent-magenta);
    top: 50%; right: -10%;
    animation-delay: -5s;
}
.bg-orbs .orb:nth-child(3) {
    width: 350px; height: 350px;
    background: var(--accent-purple);
    bottom: -5%; left: 30%;
    animation-delay: -10s;
}
.bg-orbs .orb:nth-child(4) {
    width: 300px; height: 300px;
    background: var(--accent-blue);
    top: 30%; left: 50%;
    animation-delay: -15s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -40px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(15px, 35px) scale(1.02); }
}

/* ---------- Glass Morphism Card ---------- */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--glass-shadow);
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}
.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

/* ---------- Gradient Button ---------- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 12px 28px;
    background: var(--gradient-cta);
    color: #fff;
    border: none;
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), opacity var(--transition-fast);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}
.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
    opacity: 0;
    transition: opacity var(--transition-fast);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
}
.btn-primary:hover::before {
    opacity: 1;
}
.btn-primary:active {
    transform: translateY(0);
}
.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-sm-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: var(--gradient-cta);
    color: #fff;
    border: none;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    text-decoration: none;
}
.btn-sm-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 12px 28px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition-fast), border-color var(--transition-fast);
    text-decoration: none;
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 10px 24px;
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
}
.btn-outline:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}
.btn-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.15);
}

/* ---------- Form Inputs ---------- */
.form-group {
    margin-bottom: var(--space-lg);
}
.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}
.form-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    outline: none;
}
.form-input:focus {
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(123, 45, 255, 0.15);
}
.form-input::placeholder {
    color: var(--text-muted);
}
.form-input.error {
    border-color: #ff4444;
    box-shadow: 0 0 0 3px rgba(255, 68, 68, 0.1);
}
.form-error {
    font-size: 0.8rem;
    color: #ff4444;
    margin-top: var(--space-xs);
}

/* ---------- Dashboard Layout ---------- */
.dash-layout {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* Sidebar */
.dash-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: rgba(10, 10, 20, 0.95);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    z-index: 100;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.sidebar-logo {
    padding: var(--space-lg);
    border-bottom: 1px solid var(--glass-border);
}
.sidebar-logo a {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}
.sidebar-brand {
    font-size: 1.2rem;
    font-weight: 800;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-nav {
    flex: 1;
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.sidebar-link {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}
.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}
.sidebar-link.active {
    background: rgba(123, 45, 255, 0.1);
    color: var(--text-primary);
}
.sidebar-link.active svg {
    color: var(--accent-purple);
}
.sidebar-link.logout {
    color: var(--text-muted);
}
.sidebar-link.logout:hover {
    color: #ff4444;
    background: rgba(255, 68, 68, 0.08);
}

.sidebar-footer {
    padding: var(--space-md);
    border-top: 1px solid var(--glass-border);
}
.sidebar-user {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) 0;
    margin-bottom: var(--space-sm);
}
.sidebar-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--gradient-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}
.sidebar-user-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.sidebar-user-name {
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sidebar-user-plan {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Mobile header */
.dash-mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(10, 10, 20, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-md);
    z-index: 90;
}
.mobile-menu-btn {
    padding: var(--space-sm);
    color: var(--text-secondary);
}
.mobile-title {
    font-weight: 600;
    font-size: 1rem;
}
.mobile-logout {
    padding: var(--space-sm);
    color: var(--text-muted);
}

/* Main content */
.dash-main {
    margin-left: var(--sidebar-width);
    flex: 1;
    min-height: 100vh;
}
.dash-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: var(--space-2xl) var(--space-xl);
}

/* Welcome header */
.dash-welcome {
    margin-bottom: var(--space-xl);
}
.dash-welcome h1 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: var(--space-xs);
}
.dash-welcome-sub {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ---------- Stats ---------- */
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}
.stat-card {
    padding: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-md);
}
.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.stat-info {
    display: flex;
    flex-direction: column;
}
.stat-value {
    font-size: 1.5rem;
    font-weight: 800;
}
.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ---------- Usage Card ---------- */
.usage-card {
    padding: var(--space-lg);
    margin-bottom: var(--space-xl);
}
.usage-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-md);
}
.usage-title {
    font-weight: 600;
    font-size: 0.95rem;
}
.usage-plan-badge {
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.usage-plan-badge.plan-free {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
}
.usage-plan-badge.plan-starter {
    background: rgba(255, 107, 53, 0.12);
    color: var(--accent-orange);
}
.usage-plan-badge.plan-pro {
    background: rgba(123, 45, 255, 0.12);
    color: var(--accent-purple);
}
.usage-bar-track {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: var(--space-sm);
}
.usage-bar-fill {
    height: 100%;
    background: var(--gradient-brand);
    border-radius: 4px;
    transition: width 1s ease;
    min-width: 2px;
}
.usage-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-secondary);
}
.usage-upgrade {
    color: var(--accent-orange);
    font-weight: 600;
}
.usage-upgrade:hover {
    text-decoration: underline;
}

/* ---------- Section Header ---------- */
.dash-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
}
.dash-section-header h2 {
    font-size: 1.2rem;
    font-weight: 700;
}

/* ---------- Videos Grid ---------- */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-md);
}
.video-card {
    overflow: hidden;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    text-decoration: none;
}
.video-card:hover {
    transform: translateY(-4px);
}
.video-card-thumb {
    height: 140px;
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-bottom: 1px solid var(--glass-border);
}
.video-status-badge {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.video-status-badge.status-done {
    background: rgba(0, 245, 160, 0.12);
    color: var(--accent-green);
}
.video-status-badge.status-processing {
    background: rgba(255, 107, 53, 0.12);
    color: var(--accent-orange);
    animation: pulse 2s infinite;
}
.video-status-badge.status-error {
    background: rgba(255, 68, 68, 0.12);
    color: #ff4444;
}
.video-status-badge.status-uploaded {
    background: rgba(45, 155, 255, 0.12);
    color: var(--accent-blue);
}
.video-card-body {
    padding: var(--space-md);
}
.video-card-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.video-card-meta {
    display: flex;
    gap: var(--space-md);
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}
.video-card-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ---------- Empty State ---------- */
.empty-state {
    text-align: center;
    padding: var(--space-3xl) var(--space-xl);
}
.empty-icon {
    margin-bottom: var(--space-lg);
}
.empty-state h3 {
    font-size: 1.2rem;
    margin-bottom: var(--space-sm);
}
.empty-state p {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    font-size: 0.95rem;
}

/* ---------- Badge / Chip ---------- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge-orange {
    background: rgba(255, 107, 53, 0.12);
    color: var(--accent-orange);
}
.badge-purple {
    background: rgba(123, 45, 255, 0.12);
    color: var(--accent-purple);
}
.badge-green {
    background: rgba(0, 245, 160, 0.12);
    color: var(--accent-green);
}
.badge-blue {
    background: rgba(45, 155, 255, 0.12);
    color: var(--accent-blue);
}
.badge-white {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
}

/* ---------- Toast Notifications ---------- */
.toast-container {
    position: fixed;
    top: var(--space-lg);
    right: var(--space-lg);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    pointer-events: none;
}
.toast {
    pointer-events: auto;
    padding: 14px 20px;
    background: rgba(20, 20, 40, 0.95);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: var(--space-md);
    min-width: 280px;
    max-width: 420px;
    animation: toastIn 0.3s ease forwards;
    color: var(--text-primary);
}
.toast.toast-out {
    animation: toastOut 0.3s ease forwards;
}
.toast-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}
.toast.success {
    border-left: 3px solid var(--accent-green);
}
.toast.success .toast-icon {
    color: var(--accent-green);
}
.toast.error {
    border-left: 3px solid #ff4444;
}
.toast.error .toast-icon {
    color: #ff4444;
}
.toast.info {
    border-left: 3px solid var(--accent-blue);
}
.toast.info .toast-icon {
    color: var(--accent-blue);
}
.toast.warning {
    border-left: 3px solid var(--accent-orange);
}
.toast.warning .toast-icon {
    color: var(--accent-orange);
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(60px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes toastOut {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(60px); }
}

/* ---------- Animation Keyframes ---------- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

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

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}
.slide-up {
    animation: slideUp 0.5s ease forwards;
}

/* Staggered animation for grids */
.stagger-item {
    opacity: 0;
    animation: slideUp 0.5s ease forwards;
}
.stagger-item:nth-child(1) { animation-delay: 0.05s; }
.stagger-item:nth-child(2) { animation-delay: 0.1s; }
.stagger-item:nth-child(3) { animation-delay: 0.15s; }
.stagger-item:nth-child(4) { animation-delay: 0.2s; }
.stagger-item:nth-child(5) { animation-delay: 0.25s; }
.stagger-item:nth-child(6) { animation-delay: 0.3s; }
.stagger-item:nth-child(7) { animation-delay: 0.35s; }
.stagger-item:nth-child(8) { animation-delay: 0.4s; }
.stagger-item:nth-child(9) { animation-delay: 0.45s; }
.stagger-item:nth-child(10) { animation-delay: 0.5s; }
.stagger-item:nth-child(11) { animation-delay: 0.55s; }
.stagger-item:nth-child(12) { animation-delay: 0.6s; }

/* ---------- Results Page ---------- */
.results-header {
    margin-bottom: var(--space-xl);
}
.results-header h1 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: var(--space-md);
}
.results-header h1 .badge {
    font-size: 0.7rem;
}
.results-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg);
    color: var(--text-secondary);
    font-size: 0.85rem;
}
.results-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}
.results-meta-item svg {
    opacity: 0.5;
}

.results-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.results-actions {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

/* Clip grid */
.clips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.clip-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.clip-card-player {
    position: relative;
    background: #000;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    overflow: hidden;
    aspect-ratio: 9/16;
    max-height: 400px;
}
.clip-card-player video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.clip-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    opacity: 1;
    transition: opacity var(--transition-fast);
    cursor: pointer;
}
.clip-play-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}
.clip-play-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-fast), background var(--transition-fast);
}
.clip-play-overlay:hover .clip-play-btn {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.25);
}
.clip-duration-badge {
    position: absolute;
    bottom: var(--space-sm);
    right: var(--space-sm);
    padding: 3px 8px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: var(--radius-sm);
    font-size: 0.72rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}
.clip-score-badge {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}
.clip-score-badge.score-high {
    background: rgba(0, 245, 160, 0.2);
    color: var(--accent-green);
}
.clip-score-badge.score-mid {
    background: rgba(255, 107, 53, 0.2);
    color: var(--accent-orange);
}
.clip-score-badge.score-low {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

.clip-card-body {
    padding: var(--space-md);
    flex: 1;
    display: flex;
    flex-direction: column;
}
.clip-card-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    line-height: 1.4;
}
.clip-card-caption {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: var(--space-md);
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.clip-card-actions {
    display: flex;
    gap: var(--space-sm);
}

/* ---------- Billing / Plans Page ---------- */
.plans-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}
.plans-header h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: var(--space-sm);
}
.plans-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
    align-items: start;
}

.plan-card {
    padding: var(--space-xl);
    position: relative;
    display: flex;
    flex-direction: column;
}
.plan-card.recommended {
    border: 2px solid transparent;
    background-image: linear-gradient(var(--glass-bg), var(--glass-bg)), var(--gradient-brand);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}
.plan-card-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 16px;
    background: var(--gradient-brand);
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.plan-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}
.plan-price {
    margin-bottom: var(--space-lg);
}
.plan-price .amount {
    font-size: 2.5rem;
    font-weight: 800;
}
.plan-price .period {
    color: var(--text-muted);
    font-size: 0.9rem;
}
.plan-features {
    list-style: none;
    margin-bottom: var(--space-xl);
    flex: 1;
}
.plan-features li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: 8px 0;
    font-size: 0.88rem;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.plan-features li:last-child {
    border-bottom: none;
}
.plan-features li svg {
    flex-shrink: 0;
    margin-top: 2px;
}
.plan-features .check {
    color: var(--accent-green);
}
.plan-features .cross {
    color: var(--text-muted);
    opacity: 0.4;
}

.plan-card .btn-primary,
.plan-card .btn-secondary,
.plan-card .btn-outline {
    width: 100%;
    justify-content: center;
    text-align: center;
}

.plan-current-label {
    width: 100%;
    text-align: center;
    padding: 12px 28px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* FAQ */
.faq-section {
    max-width: 700px;
    margin: 0 auto;
}
.faq-section h2 {
    text-align: center;
    font-size: 1.4rem;
    margin-bottom: var(--space-xl);
}
.faq-item {
    padding: var(--space-lg);
    margin-bottom: var(--space-md);
}
.faq-question {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}
.faq-answer {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Manage billing link */
.billing-portal-link {
    text-align: center;
    margin-bottom: var(--space-2xl);
}
.billing-portal-link a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}
.billing-portal-link a:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

/* ---------- Utility Classes ---------- */
.text-center { text-align: center; }
.text-muted { color: var(--text-secondary); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.w-full { width: 100%; }
.hidden { display: none !important; }
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .stats-row {
        grid-template-columns: 1fr 1fr;
    }
    .results-stats {
        grid-template-columns: 1fr 1fr;
    }
    .plans-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .dash-sidebar {
        transform: translateX(-100%);
        transition: transform var(--transition-base);
    }
    .dash-sidebar.open {
        transform: translateX(0);
    }
    .dash-mobile-header {
        display: flex;
    }
    .dash-main {
        margin-left: 0;
        padding-top: var(--header-height);
    }
    .dash-content {
        padding: var(--space-lg) var(--space-md);
    }
    .dash-welcome h1 {
        font-size: 1.4rem;
    }
    .stats-row {
        grid-template-columns: 1fr;
    }
    .results-stats {
        grid-template-columns: 1fr;
    }
    .videos-grid {
        grid-template-columns: 1fr;
    }
    .clips-grid {
        grid-template-columns: 1fr;
    }
    .results-actions {
        flex-direction: column;
    }
    .results-actions .btn-primary,
    .results-actions .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    .results-meta {
        flex-direction: column;
        gap: var(--space-sm);
    }
    .toast-container {
        left: var(--space-md);
        right: var(--space-md);
    }
    .toast {
        min-width: auto;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .dash-content {
        padding: var(--space-md) var(--space-sm);
    }
    .clip-card-player {
        max-height: 320px;
    }
}


/* ============================================
   LANDING PAGE STYLES
   ============================================ */

/* ---------- Landing Wrapper ---------- */
.landing-wrapper {
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ---------- Landing Navbar ---------- */
.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 20, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background var(--transition-base);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    flex-shrink: 0;
}

.nav-logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links-desktop {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 16px;
    background: #0d0d1a;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-menu.open {
    max-height: 400px;
    padding: 12px 16px 20px;
}

.mobile-menu-link {
    display: block;
    font-size: 1.15rem;
    font-weight: 600;
    color: #e0e0e8;
    padding: 16px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.2s;
    text-align: left;
}

.mobile-menu-link:last-of-type {
    border-bottom: none;
}

.mobile-menu-link:active {
    background: rgba(255, 255, 255, 0.05);
}

.mobile-menu-cta {
    display: block;
    text-align: center;
    padding: 16px 28px;
    background: var(--gradient-cta);
    color: #fff;
    border-radius: var(--radius-full);
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 12px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
    text-decoration: none;
}

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

.nav-btn-cta {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    background: var(--gradient-cta);
    color: #fff;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.nav-btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
}

.mobile-toggle {
    display: none;
    padding: var(--space-sm);
    color: var(--text-primary);
    background: none;
    border: none;
    cursor: pointer;
}

/* ---------- Hero Section ---------- */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px var(--space-lg) 80px;
    text-align: center;
    overflow: hidden;
}

.hero-glow-orb {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(ellipse at center, rgba(123, 45, 255, 0.15) 0%, rgba(255, 45, 123, 0.08) 40%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
    animation: orbFloat 20s ease-in-out infinite;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    animation: slideUp 0.8s ease forwards;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 8px 20px;
    background: rgba(123, 45, 255, 0.1);
    border: 1px solid rgba(123, 45, 255, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent-purple);
    margin-bottom: var(--space-xl);
    letter-spacing: 0.3px;
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-green);
    animation: pulse 2s infinite;
    flex-shrink: 0;
}

.hero-h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-lg);
    color: var(--text-primary);
}

.gradient-text {
    background: linear-gradient(135deg, #ff6b35, #ff2d7b, #7b2dff, #2d9bff, #ff6b35);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 6s ease infinite;
}

.hero-sub {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto var(--space-xl);
}

.hero-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
    margin-bottom: var(--space-2xl);
}

.btn-primary-lg {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 16px 36px;
    background: var(--gradient-cta);
    color: #fff;
    border: none;
    border-radius: var(--radius-full);
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.btn-primary-lg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.btn-primary-lg:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 107, 53, 0.35);
}

.btn-primary-lg:hover::before {
    opacity: 1;
}

.btn-ghost-lg {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 16px 32px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-full);
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.btn-ghost-lg:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Hero Social Proof */
.hero-social-proof {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
}

.avatar-stack {
    display: flex;
    align-items: center;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
    border: 2px solid var(--bg-primary);
    margin-left: -8px;
    position: relative;
}

.avatar:first-child {
    margin-left: 0;
}

.hero-proof-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.hero-proof-text strong {
    color: var(--text-primary);
}

/* ---------- Hero Visual / Mockup ---------- */
.hero-visual {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 900px;
    margin: var(--space-3xl) auto 0;
    animation: slideUp 1s ease 0.3s forwards;
    opacity: 0;
}

.hero-mockup {
    background: rgba(15, 15, 30, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5), 0 0 120px rgba(123, 45, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.mockup-bar {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mockup-dots {
    display: flex;
    gap: 6px;
}

.mockup-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.mockup-dots span:nth-child(1) { background: #ff5f57; }
.mockup-dots span:nth-child(2) { background: #febc2e; }
.mockup-dots span:nth-child(3) { background: #28c840; }

.mockup-url {
    font-size: 0.78rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    padding: 4px 14px;
    border-radius: var(--radius-full);
    flex: 1;
    text-align: center;
}

.mockup-body {
    padding: var(--space-xl);
}

.mockup-timeline {
    margin-bottom: var(--space-xl);
}

.timeline-bar {
    position: relative;
    height: 40px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.timeline-segment {
    position: absolute;
    top: 6px;
    bottom: 6px;
    border-radius: 4px;
    opacity: 0.9;
    animation: pulse 3s ease-in-out infinite;
}

.timeline-segment:nth-child(2) { animation-delay: 0.5s; }
.timeline-segment:nth-child(3) { animation-delay: 1s; }
.timeline-segment:nth-child(4) { animation-delay: 1.5s; }

.mockup-clips {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.mockup-clip {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.mc-thumb {
    width: 48px;
    height: 32px;
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(123, 45, 255, 0.2), rgba(45, 155, 255, 0.2));
    flex-shrink: 0;
}

.mc-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mc-title {
    height: 10px;
    width: 60%;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
}

.mc-meta {
    height: 8px;
    width: 35%;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 4px;
}

/* ---------- Sections ---------- */
.section {
    padding: 100px var(--space-lg);
    position: relative;
}

.section-dark {
    background: rgba(255, 255, 255, 0.015);
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(123, 45, 255, 0.1);
    border: 1px solid rgba(123, 45, 255, 0.15);
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent-purple);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-md);
}

.section-h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.section-sub {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ---------- Steps Grid ---------- */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.step-card {
    text-align: center;
    padding: var(--space-xl);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.step-card:hover {
    transform: translateY(-8px);
    border-color: rgba(123, 45, 255, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.step-num {
    font-size: 3rem;
    font-weight: 900;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.25;
    line-height: 1;
    margin-bottom: var(--space-md);
}

.step-icon-wrap {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(123, 45, 255, 0.08);
    border: 1px solid rgba(123, 45, 255, 0.15);
    border-radius: var(--radius-lg);
    color: var(--accent-purple);
}

.step-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.step-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ---------- Features Grid ---------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.feature-card {
    padding: var(--space-xl);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
}

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

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

/* ---------- Pricing Grid ---------- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    align-items: start;
}

.pricing-card {
    padding: var(--space-xl) var(--space-lg);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.pricing-card.popular {
    border: 2px solid transparent;
    background-image: linear-gradient(rgba(15, 15, 30, 0.95), rgba(15, 15, 30, 0.95)), var(--gradient-brand);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    transform: scale(1.04);
    box-shadow: 0 30px 80px rgba(123, 45, 255, 0.15);
}

.pricing-card.popular:hover {
    transform: scale(1.04) translateY(-6px);
}

.popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 20px;
    background: var(--gradient-brand);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    color: #fff;
}

.pricing-head {
    text-align: center;
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pricing-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.pricing-price {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1;
}

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

.pricing-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-top: var(--space-sm);
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-xl);
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 10px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li svg {
    flex-shrink: 0;
}

.pricing-features li.muted {
    color: var(--text-muted);
}

.pricing-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.pricing-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.pricing-btn.primary {
    background: var(--gradient-cta);
    border: none;
    color: #fff;
}

.pricing-btn.primary:hover {
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
    transform: translateY(-2px);
}

/* ---------- Testimonials ---------- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.testimonial-card {
    padding: var(--space-xl);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform var(--transition-base), border-color var(--transition-base);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.12);
}

.testimonial-stars {
    color: #ffd166;
    font-size: 1rem;
    margin-bottom: var(--space-md);
    letter-spacing: 2px;
}

.testimonial-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.testimonial-author strong {
    font-size: 0.9rem;
    color: var(--text-primary);
}

.testimonial-author span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ---------- Landing FAQ (Accordion) ---------- */
.faq-list {
    max-width: 750px;
    margin: 0 auto;
}

.landing-wrapper .faq-item {
    margin-bottom: var(--space-md);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color var(--transition-base);
}

.landing-wrapper .faq-item:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

.faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    gap: var(--space-md);
    transition: color var(--transition-fast);
}

.faq-q:hover {
    color: #fff;
}

.faq-q svg {
    flex-shrink: 0;
    color: var(--text-muted);
    transition: transform var(--transition-base);
}

.faq-item.open .faq-q svg {
    transform: rotate(180deg);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.open .faq-a {
    max-height: 300px;
}

.faq-a p {
    padding: 0 24px 20px;
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ---------- CTA Section ---------- */
.cta-section {
    padding: 100px var(--space-lg);
}

.cta-box {
    text-align: center;
    padding: var(--space-3xl) var(--space-xl);
    background: rgba(123, 45, 255, 0.04);
    border: 1px solid rgba(123, 45, 255, 0.12);
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(123, 45, 255, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.cta-h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 900;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
    position: relative;
}

.cta-sub {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    position: relative;
}

/* ---------- Landing Footer ---------- */
.landing-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: var(--space-3xl);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: flex;
    justify-content: space-between;
    gap: var(--space-3xl);
}

.footer-brand {
    max-width: 300px;
}

.footer-tagline {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-top: var(--space-md);
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: var(--space-3xl);
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-col h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-col a {
    font-size: 0.88rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
    padding: 2px 0;
}

.footer-col a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-lg);
    margin-top: var(--space-2xl);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-bottom p {
    font-size: 0.82rem;
    color: var(--text-muted);
    text-align: center;
}


/* ============================================
   AUTH PAGE STYLES
   ============================================ */

.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl) var(--space-md);
    position: relative;
}

.auth-wrapper::before {
    content: '';
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse at center, rgba(123, 45, 255, 0.12) 0%, rgba(255, 45, 123, 0.06) 50%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    padding: var(--space-2xl);
    position: relative;
    z-index: 1;
    animation: slideUp 0.5s ease forwards;
}

.auth-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.auth-logo {
    display: inline-block;
    margin-bottom: var(--space-lg);
}

.auth-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.auth-subtitle {
    font-size: 0.92rem;
    color: var(--text-secondary);
}

.auth-google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    width: 100%;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.auth-google-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin: var(--space-lg) 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.auth-divider span {
    font-size: 0.82rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-form {
    display: flex;
    flex-direction: column;
}

.auth-form label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.form-link-inline {
    font-size: 0.82rem;
    color: var(--accent-purple);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.form-link-inline:hover {
    color: var(--accent-blue);
}

.form-group-row {
    margin-bottom: var(--space-lg);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.88rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.form-checkbox {
    width: 16px;
    height: 16px;
    accent-color: var(--accent-purple);
    cursor: pointer;
}

.auth-submit-btn {
    width: 100%;
    padding: 14px 28px;
    background: var(--gradient-cta);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
}

.auth-submit-btn:active {
    transform: translateY(0);
}

.auth-footer-text {
    text-align: center;
    margin-top: var(--space-xl);
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.auth-footer-text a {
    color: var(--accent-purple);
    font-weight: 600;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.auth-footer-text a:hover {
    color: var(--accent-blue);
}


/* ============================================
   LANDING RESPONSIVE (Mobile-first polish)
   ============================================ */

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

    .pricing-card.popular {
        transform: scale(1);
    }

    .pricing-card.popular:hover {
        transform: translateY(-6px);
    }

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

    .footer-inner {
        flex-direction: column;
        gap: var(--space-2xl);
    }

    .footer-brand {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    /* Mobile Navbar */
    .nav-links-desktop {
        display: none !important;
    }

    .nav-link {
        font-size: 1.1rem;
    }

    .nav-btn-cta {
        padding: 14px 32px;
        font-size: 1rem;
    }

    .mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Hero */
    .hero-section {
        padding: 100px var(--space-md) 60px;
        min-height: auto;
    }

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

    .hero-sub {
        font-size: 0.95rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary-lg,
    .btn-ghost-lg {
        width: 100%;
        justify-content: center;
        padding: 16px 28px;
    }

    .hero-social-proof {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .hero-visual {
        margin-top: var(--space-2xl);
    }

    .mockup-body {
        padding: var(--space-md);
    }

    /* Sections */
    .section {
        padding: 60px var(--space-md);
    }

    .section-header {
        margin-bottom: var(--space-2xl);
    }

    .section-h2 {
        font-size: 1.6rem;
    }

    .section-sub {
        font-size: 0.95rem;
    }

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

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

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }

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

    /* FAQ */
    .faq-q {
        padding: 16px 18px;
        font-size: 0.92rem;
    }

    .faq-a p {
        padding: 0 18px 16px;
        font-size: 0.88rem;
    }

    /* CTA */
    .cta-box {
        padding: var(--space-2xl) var(--space-md);
    }

    /* Footer */
    .footer-inner {
        flex-direction: column;
        gap: var(--space-xl);
    }

    .footer-links {
        flex-direction: column;
        gap: var(--space-xl);
    }

    .footer-bottom {
        margin-top: var(--space-xl);
    }
}

@media (max-width: 480px) {
    .nav-inner {
        padding: 0 var(--space-md);
    }

    .hero-section {
        padding: 90px var(--space-sm) 48px;
    }

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

    .hero-badge {
        font-size: 0.75rem;
        padding: 6px 14px;
    }

    .section {
        padding: 48px var(--space-sm);
    }

    .step-card,
    .feature-card,
    .pricing-card,
    .testimonial-card {
        padding: var(--space-lg);
    }

    .pricing-price {
        font-size: 2.8rem;
    }

    .cta-box {
        padding: var(--space-xl) var(--space-sm);
    }

    .cta-h2 {
        font-size: 1.5rem;
    }

    .footer-inner {
        padding: 0 var(--space-sm);
    }

    .footer-bottom {
        padding: var(--space-lg) var(--space-sm);
    }

    .auth-card {
        padding: var(--space-xl) var(--space-md);
    }

    .auth-title {
        font-size: 1.35rem;
    }
}
