/* =============================================
   SRT SNAP — Premium Stylesheet
   Professional subtitle editor with CRO-optimized
   sales psychology and dark accent design
   ============================================= */

/* ----- Google Fonts (Inter + Poppins) ----- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Poppins:wght@600;700;800&display=swap');

/* ----- CSS Custom Properties ----- */
:root {
    --c-primary: #FF6B35;
    --c-primary-dark: #E55A2B;
    --c-primary-light: #FF8F66;
    --c-gold: #FFB703;
    --c-gold-light: #FFD166;
    --c-accent: #2EC4B6;
    --c-dark: #0F172A;
    --c-dark-2: #1E293B;
    --c-dark-3: #334155;
    --c-light: #F8FAFC;
    --c-light-2: #E2E8F0;
    --c-gray: #94A3B8;
    --c-gray-dark: #64748B;
    --c-success: #10B981;
    --c-warning: #F59E0B;
    --c-error: #EF4444;
    --c-pro-bg: linear-gradient(135deg, #FF6B35, #FFB703);
    --c-pro-bg-hover: linear-gradient(135deg, #E55A2B, #F59E0B);
    --c-free-bg: linear-gradient(135deg, #64748B, #94A3B8);
    --c-card-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --c-card-shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --c-card-shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    --c-glow: 0 0 20px rgba(255, 107, 53, 0.3);
    --c-glow-gold: 0 0 20px rgba(255, 183, 3, 0.25);
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Poppins', 'Inter', sans-serif;
    --font-mono: 'SF Mono', 'Monaco', 'Menlo', 'Cascadia Code', 'Courier New', monospace;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition-fast: 0.15s ease;
    --transition-base: 0.25s ease;
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--c-dark);
    background: var(--c-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color var(--transition-slow), color var(--transition-slow);
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ----- Scrollbar Styling ----- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--c-light-2);
    border-radius: 4px;
    transition: background var(--transition-fast);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--c-gray);
}

/* ----- Text Selection ----- */
::selection {
    background: var(--c-primary);
    color: white;
}

::-moz-selection {
    background: var(--c-primary);
    color: white;
}

/* ----- Focus Ring ----- */
:focus-visible {
    outline: 2px solid var(--c-primary);
    outline-offset: 2px;
    border-radius: 4px;
}

button:focus-visible {
    outline: 2px solid var(--c-primary);
    outline-offset: 2px;
    border-radius: 6px;
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--c-primary);
    outline-offset: -1px;
}

/* ----- Loading Shimmer ----- */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.shimmer {
    background: linear-gradient(90deg, var(--c-light) 25%, var(--c-light-2) 50%, var(--c-light) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

/* ----- Smooth Transitions for theme changes ----- */
.content, .nav-tabs, .tab, .pricing-card, .testimonial-card, .missing-item,
.faq-item, .trust-badge, .roi-item, .upload-section, .file-item, .auth-modal,
.editor-section, .preview-list, .batch-ops-panel, .editor-toolbar,
.srt-editor-textarea, .timeline-srt-editor, .auth-field input,
.batch-ops-row input, .batch-ops-row select, .preview-speed-control select,
.editor-btn-sm, .editor-btn-xs, .lock-info, .pricing-features-list li,
.pricing-card-footer, .pricing-card-header {
    transition: background-color var(--transition-slow),
                border-color var(--transition-slow),
                color var(--transition-slow),
                box-shadow var(--transition-slow);
}

/* ----- TOP URGENCY BAR ----- */
.top-urgency-bar {
    background: linear-gradient(135deg, #1E293B, #0F172A);
    color: white;
    padding: 10px 16px;
    text-align: center;
    font-size: 0.85rem;
    position: relative;
    z-index: 1001;
    border-bottom: 2px solid var(--c-gold);
}

.urgency-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.urgency-content span {
    color: var(--c-light-2);
}

.urgency-content strong {
    color: white;
    font-weight: 700;
}

.urgency-strikethrough {
    text-decoration: line-through;
    color: var(--c-gray) !important;
    font-weight: 500 !important;
}

.countdown-display {
    color: var(--c-gold) !important;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    background: rgba(255, 183, 3, 0.15);
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 1px;
}

.urgency-btn {
    display: inline-block;
    background: var(--c-pro-bg);
    color: white;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 6px 18px;
    border-radius: 50px;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.urgency-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.4);
}

.urgency-close {
    background: none;
    border: none;
    color: var(--c-gray);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.2s;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
}

.urgency-close:hover {
    color: white;
    background: rgba(255,255,255,0.1);
}

/* ----- KEYFRAMES ----- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

@keyframes pulsePro {
    0%, 100% { box-shadow: 0 4px 14px rgba(255, 107, 53, 0.3); }
    50% { box-shadow: 0 4px 24px rgba(255, 107, 53, 0.55); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes glow {
    0%, 100% { box-shadow: var(--c-glow); }
    50% { box-shadow: var(--c-glow), 0 0 40px rgba(255, 107, 53, 0.15); }
}

/* ----- LAYOUT ----- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    padding-bottom: 80px;
}

/* ----- HEADER ----- */
.header {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #0F172A 100%);
    color: white;
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: var(--c-card-shadow-lg), inset 0 1px 0 rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.06);
    position: relative;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,183,3,0.4), transparent);
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px;
    flex-wrap: wrap;
    gap: 12px;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-logo {
    font-size: 2.2rem;
    line-height: 1;
    animation: float 4s ease-in-out infinite;
}

.header-brand-text h1 {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: var(--c-pro-bg);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-tagline {
    font-size: 0.78rem;
    color: var(--c-gray);
    font-weight: 500;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.header-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--c-gray);
}

.header-stat strong {
    color: var(--c-gold);
    font-weight: 700;
    font-size: 0.95rem;
}

.header-stat-sep {
    color: var(--c-dark-3);
}

.header-cta-btn {
    display: inline-block;
    background: var(--c-pro-bg);
    color: white;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 10px 24px;
    border-radius: 50px;
    transition: all var(--transition-base);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    cursor: pointer;
    border: none;
    font-family: var(--font-body);
}

.header-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.5);
}

.header-cta-btn:active {
    transform: translateY(0) scale(0.98);
}

.header-icon-btn {
    background: rgba(255,255,255,0.08) !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    font-size: 1.15rem !important;
    cursor: pointer !important;
    padding: 8px !important;
    border-radius: 50% !important;
    transition: all var(--transition-base) !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: 38px !important;
}

.header-icon-btn:hover {
    background: rgba(255,255,255,0.15) !important;
    border-color: rgba(255,255,255,0.25) !important;
    transform: translateY(-1px) scale(1.05);
}

.header-icon-btn:active {
    transform: translateY(0) scale(0.95);
}

.header-value-prop {
    padding: 0 28px 16px;
    font-size: 0.92rem;
    color: var(--c-light-2);
}

.header-value-prop strong {
    color: var(--c-gold);
}

.header-badges {
    display: flex;
    gap: 8px;
    padding: 0 28px 20px;
    flex-wrap: wrap;
}

.header-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 50px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    transition: all var(--transition-fast);
}

.header-badge:hover {
    transform: scale(1.05);
}

.free-badge {
    background: rgba(148, 163, 184, 0.2);
    color: var(--c-gray);
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.pro-badge-header {
    background: rgba(255, 183, 3, 0.15);
    color: var(--c-gold);
    border: 1px solid rgba(255, 183, 3, 0.3);
}

.secure-badge {
    background: rgba(46, 196, 182, 0.15);
    color: var(--c-accent);
    border: 1px solid rgba(46, 196, 182, 0.3);
}

/* ----- NAVIGATION TABS ----- */
.nav-tabs {
    display: flex;
    background: white;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: var(--c-card-shadow);
    border: 1px solid var(--c-light-2);
    position: relative;
}

.tab {
    flex: 1;
    padding: 14px 10px;
    text-align: center;
    cursor: pointer;
    border: none;
    background: none;
    font-size: 0.92rem;
    font-weight: 500;
    transition: all var(--transition-base);
    position: relative;
    color: var(--c-gray-dark);
    font-family: var(--font-body);
    overflow: hidden;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.tab::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--c-light);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.tab:hover::before {
    opacity: 1;
}

.tab:active::before {
    opacity: 0.5;
}

.tab.active {
    background: white;
    color: var(--c-primary);
    font-weight: 700;
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    right: 20%;
    height: 3px;
    background: var(--c-pro-bg);
    border-radius: 3px 3px 0 0;
    animation: scaleIn 0.3s ease;
}

.tab span {
    position: relative;
    z-index: 1;
}

/* ----- CONTENT SECTIONS ----- */
.content {
    background: white;
    border-radius: var(--radius-lg);
    padding: 28px 30px;
    box-shadow: var(--c-card-shadow);
    border: 1px solid var(--c-light-2);
    min-height: 400px;
    transition: background-color var(--transition-slow), border-color var(--transition-slow), box-shadow var(--transition-slow);
}

.content h2 {
    font-size: 1.4rem;
    margin-bottom: 16px;
    color: var(--c-dark);
    letter-spacing: -0.3px;
}

.tab-content {
    display: none;
    animation: fadeIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-content.active {
    display: block;
}



/* ----- UPLOAD INPUT (hidden, triggered by label) ----- */
.upload-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ----- UPLOAD SECTION ----- */
.upload-section {
    border: 2px dashed var(--c-light-2);
    border-radius: var(--radius-lg);
    padding: 50px 40px;
    text-align: center;
    background: var(--c-light);
    transition: all var(--transition-base);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.upload-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255,107,53,0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.upload-section:hover::before {
    opacity: 1;
}

.upload-section:hover {
    border-color: var(--c-primary);
    background: #FFF5F0;
}

.upload-section.drag-over {
    border-color: var(--c-primary);
    background: #FFEDE6;
    transform: scale(1.015);
    box-shadow: 0 0 30px rgba(255, 107, 53, 0.15);
    border-style: solid;
}

.upload-icon {
    font-size: 3.5rem;
    color: var(--c-primary);
    margin-bottom: 16px;
    display: block;
    transition: transform var(--transition-base);
    position: relative;
}

.upload-section:hover .upload-icon {
    transform: scale(1.1) translateY(-4px);
}

.upload-section.drag-over .upload-icon {
    animation: float 1s ease-in-out infinite;
}

.upload-section h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--c-dark);
}

.upload-section p {
    color: var(--c-gray-dark);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-top: 10px;
}

.upload-label {
    display: inline-block;
    padding: 12px 32px;
    background: var(--c-pro-bg);
    color: white;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all var(--transition-base);
    margin-top: 18px;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.25);
    position: relative;
    z-index: 1;
}

.upload-label:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 107, 53, 0.35);
}

.upload-label:active {
    transform: translateY(0) scale(0.97);
}

/* ----- FILE LIST ----- */
.file-list {
    margin-top: 20px;
}

.file-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border: 1px solid var(--c-light-2);
    border-radius: var(--radius-md);
    margin-bottom: 10px;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: all var(--transition-base);
    animation: fadeIn 0.3s ease;
}

.file-item:hover {
    box-shadow: var(--c-card-shadow-lg);
    border-color: var(--c-primary);
    transform: translateX(4px);
}

.file-item:last-child {
    margin-bottom: 0;
}

.file-icon {
    font-size: 1.8rem;
    margin-right: 16px;
    color: var(--c-primary);
    transition: transform var(--transition-fast);
}

.file-item:hover .file-icon {
    transform: scale(1.15);
}

.file-info {
    flex: 1;
}

.file-name {
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--c-dark);
}

.file-size {
    color: var(--c-gray-dark);
    font-size: 0.85rem;
}

/* ----- BUTTON SYSTEM ----- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all var(--transition-base);
    font-family: var(--font-body);
    position: relative;
    overflow: hidden;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0);
    transition: background var(--transition-fast);
}

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

.btn:active {
    transform: translateY(0) scale(0.97);
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.btn:hover::after {
    background: rgba(255,255,255,0.1);
}

.btn-primary {
    background: #3B82F6;
    color: white;
}
.btn-primary:hover { background: #2563EB; }

.btn-success {
    background: var(--c-success);
    color: white;
}
.btn-success:hover { background: #059669; }

.btn-danger {
    background: var(--c-error);
    color: white;
}
.btn-danger:hover { background: #DC2626; }

.btn-small {
    padding: 6px 14px;
    font-size: 0.8rem;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.8rem;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    transition: all var(--transition-base);
    font-family: var(--font-body);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-sm:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.btn-sm:active {
    transform: translateY(0) scale(0.97);
}

/* Export format buttons */
.btn-export-ass {
    background: #7C3AED;
    color: white;
}
.btn-export-ass:hover { background: #6D28D9; }

.btn-export-vtt {
    background: #0891B2;
    color: white;
}
.btn-export-vtt:hover { background: #0E7490; }

.btn-export-txt {
    background: #4B5563;
    color: white;
}
.btn-export-txt:hover { background: #374151; }

.btn-batch-toggle {
    background: var(--c-light-2);
    color: var(--c-dark-2);
    border: 1px solid var(--c-light-2);
}
.btn-batch-toggle:hover {
    background: var(--c-gray);
    color: white;
    border-color: var(--c-gray);
}

/* Export toolbar */
.export-toolbar {
    display: flex;
    gap: 6px;
    margin-top: 12px;
    flex-wrap: wrap;
    align-items: center;
}

/* Pro-gated features */
.pro-gated {
    display: none;
}

.pro-gated.visible {
    display: flex;
    gap: inherit;
    flex-wrap: inherit;
}

.btn-pro-mini {
    background: var(--c-pro-bg);
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: var(--font-body);
    white-space: nowrap;
}

.btn-pro-mini:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 10px rgba(255, 107, 53, 0.3);
}

/* Batch ops pro lock */
.batch-ops-pro-lock {
    display: none;
    padding: 20px;
    text-align: center;
    background: linear-gradient(135deg, #FFFBEB, #FFF8F0);
    border: 2px dashed #FDE68A;
    border-radius: var(--radius-md);
    color: #92400E;
    font-size: 0.9rem;
}

.batch-ops-pro-lock.visible {
    display: block;
    animation: fadeIn 0.25s ease;
}

.batch-ops-pro-lock .btn {
    margin-top: 10px;
}

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

.preview-description {
    color: var(--c-gray-dark);
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.preview-empty-state {
    color: var(--c-gray);
    font-size: 0.85rem;
    text-align: center;
    padding: 30px 0;
}

.batch-ops-hint {
    font-size: 0.78rem;
    color: var(--c-gray);
}

.batch-ops-checkbox-label {
    font-size: 0.78rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.lock-info-note {
    margin-top: 12px;
    font-size: 0.85rem;
    color: #A16207;
}

.lock-info-cta-btn {
    margin-bottom: 6px;
}

.mono-input {
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ----- SUCCESS / ERROR MESSAGES ----- */
.success-message, .error-message {
    display: none;
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-weight: 500;
    font-size: 0.9rem;
    animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding-left: 42px;
}

.success-message::before, .error-message::before {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
}

.success-message::before {
    content: '✅';
}

.error-message::before {
    content: '❌';
}

.success-message.show, .error-message.show {
    display: block;
}

.success-message {
    background: #ECFDF5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.error-message {
    background: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

/* ----- LOCK INFO (UPGRADE PROMPT) ----- */
.lock-info {
    background: linear-gradient(135deg, #FFFBEB, #FFF8F0);
    border: 2px solid #FDE68A;
    color: #92400E;
    padding: 20px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.lock-info-left {
    flex-shrink: 0;
}

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

.lock-info-content {
    flex: 1;
    min-width: 200px;
}

.lock-info-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.lock-info-header strong {
    font-size: 1.1rem;
    color: #78350F;
}

.pro-badge-sm {
    display: inline-block;
    background: var(--c-pro-bg);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lock-info-content p {
    font-size: 0.9rem;
    color: #A16207;
    margin-bottom: 12px;
}

.lock-info-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin-bottom: 12px;
}

.lock-info-benefits span {
    font-size: 0.85rem;
    color: #92400E;
    display: flex;
    align-items: center;
    gap: 4px;
}

.check-icon {
    color: var(--c-success);
    font-weight: 700;
}

.lock-info-roi {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    padding: 10px 14px;
    background: rgba(255, 183, 3, 0.1);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 183, 3, 0.2);
}

.lock-info-roi span {
    font-size: 0.82rem;
    color: #92400E;
}

.lock-info-roi strong {
    color: #78350F;
}

.lock-info-cta {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 160px;
}

.lock-info-compare {
    color: var(--c-primary);
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.lock-info-compare:hover {
    color: var(--c-primary-dark);
}

/* ----- PREVIEW TAB ----- */
#srt-preview {
    line-height: 1.8;
}

/* Enhanced preview styles */
.preview-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

.preview-overlay {
    background: #000;
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    min-height: 220px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 60px rgba(0,0,0,0.5);
}

/* Scanline effect */
.preview-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(255,255,255,0.02) 2px,
        rgba(255,255,255,0.02) 4px
    );
    pointer-events: none;
}

.preview-overlay-text {
    color: white;
    font-size: 1.4rem;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.9), 0 0 12px rgba(0,0,0,0.5);
    font-family: 'Arial', 'Helvetica', sans-serif;
    line-height: 1.6;
    max-width: 88%;
    word-wrap: break-word;
    margin-bottom: 12px;
    padding: 10px 20px;
    background: rgba(0,0,0,0.6);
    border-radius: 6px;
    position: relative;
    z-index: 1;
    transition: all var(--transition-base);
}

.preview-overlay-timer {
    position: absolute;
    bottom: 12px;
    right: 16px;
    color: rgba(255,255,255,0.5);
    font-size: 0.78rem;
    font-family: var(--font-mono);
    letter-spacing: 1px;
    z-index: 1;
}

.preview-overlay-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--c-pro-bg);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%;
    z-index: 2;
    box-shadow: 0 0 8px rgba(255, 107, 53, 0.5);
}

/* Raw SRT list in preview */
.preview-list {
    background: var(--c-light);
    border: 1px solid var(--c-light-2);
    border-radius: var(--radius-md);
    padding: 8px;
    max-height: 400px;
    overflow-y: auto;
}

.preview-list-item {
    padding: 10px 12px;
    border-bottom: 1px solid var(--c-light-2);
    cursor: pointer;
    transition: all var(--transition-fast);
    border-radius: 6px;
    margin-bottom: 2px;
}

.preview-list-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.preview-list-item:hover {
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transform: translateX(4px);
}

.preview-list-item.active {
    background: #FFF5F0;
    border-left: 3px solid var(--c-primary);
    box-shadow: 0 2px 8px rgba(255,107,53,0.08);
}

.preview-list-seq {
    color: var(--c-gray);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.preview-list-time {
    color: var(--c-primary);
    font-size: 0.8rem;
    font-weight: 600;
    font-family: var(--font-mono);
    margin-bottom: 4px;
}

.preview-list-text {
    color: var(--c-dark-2);
    font-size: 0.88rem;
    line-height: 1.5;
}

.preview-controls {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.preview-controls .btn {
    padding: 8px 16px;
    font-size: 0.82rem;
}

.preview-controls .btn.active {
    background: var(--c-primary);
    color: white;
}

.preview-speed-control {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    font-size: 0.82rem;
    color: var(--c-gray-dark);
}

.preview-speed-control select {
    padding: 6px 10px;
    border: 1px solid var(--c-light-2);
    border-radius: 6px;
    font-size: 0.82rem;
    background: white;
    cursor: pointer;
    transition: border-color var(--transition-fast);
}

.preview-speed-control select:focus {
    border-color: var(--c-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255,107,53,0.1);
}

/* ----- SCARCITY BAR (Pricing Tab) ----- */
.scarcity-bar {
    background: linear-gradient(135deg, #1E293B, #0F172A);
    color: white;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 183, 3, 0.2);
}

.pricing-info-bar strong {
    color: white;
}

.countdown-timer {
    color: var(--c-gold);
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 2px;
    background: rgba(255, 183, 3, 0.12);
    padding: 2px 10px;
    border-radius: 4px;
}

.info-divider {
    color: var(--c-dark-3);
}

.old-price-strikethrough {
    text-decoration: line-through;
    color: var(--c-gray) !important;
}

.price-badge {
    display: inline-block;
    background: var(--c-success);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 50px;
    text-transform: uppercase;
}

/* ----- PRICING HERO ----- */
.pricing-hero {
    text-align: center;
    margin-bottom: 36px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--c-light-2);
}

.pricing-hero-badge {
    display: inline-block;
    background: rgba(255, 107, 53, 0.1);
    color: var(--c-primary);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 6px 18px;
    border-radius: 50px;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 107, 53, 0.2);
}

.pricing-hero h2 {
    font-size: 2.4rem;
    color: var(--c-dark);
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.text-gradient {
    background: var(--c-pro-bg);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-hero .pricing-subtitle {
    font-size: 1.05rem;
    color: var(--c-gray-dark);
    max-width: 520px;
    margin: 0 auto;
}

/* ----- PRICING COMPARISON ----- */
.pricing-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    max-width: 860px;
    margin: 0 auto 40px;
}

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

.pricing-card {
    background: white;
    border: 2px solid var(--c-light-2);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-slow);
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--c-card-shadow-xl), 0 12px 30px rgba(0,0,0,0.08);
}

.pricing-card.featured {
    border-color: var(--c-primary);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.12);
}

.pricing-card.featured:hover {
    box-shadow: 0 12px 40px rgba(255, 107, 53, 0.2);
    border-color: var(--c-primary-light);
}

.pricing-card.featured::after {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    height: 4px;
    background: var(--c-pro-bg);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.pricing-card.free-card {
    border-color: var(--c-light-2);
    opacity: 0.85;
}

.pricing-card.free-card:hover {
    opacity: 1;
}

.pricing-card.free-card::after {
    display: none;
}

/* Popular Badge */
.popular-badge {
    background: var(--c-pro-bg);
    color: white;
    text-align: center;
    padding: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Card Header */
.pricing-card-header {
    padding: 28px 24px 20px;
    text-align: center;
}

.pricing-tier-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.free-card .pricing-tier-label {
    color: var(--c-gray-dark);
}

.pro-card .pricing-tier-label {
    color: var(--c-primary);
}

.pricing-amount {
    font-size: 3rem;
    font-weight: 800;
    color: var(--c-dark);
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.pricing-amount-free {
    color: var(--c-gray);
}

.pricing-amount-regular {
    font-size: 1.2rem;
    color: var(--c-gray);
    text-decoration: line-through;
    font-weight: 500;
}

.pricing-duration {
    color: var(--c-gray-dark);
    font-size: 0.9rem;
    margin-top: 8px;
}

.pricing-savings-old {
    background: linear-gradient(135deg, #ECFDF5, #D1FAE5);
    color: #065F46;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 50px;
    display: inline-block;
    margin-top: 10px;
}

/* Features List */
.pricing-features-list {
    list-style: none;
    padding: 0 24px;
    margin: 0 0 16px;
    flex: 1;
}

.pricing-features-list li {
    padding: 9px 0;
    font-size: 0.9rem;
    color: var(--c-dark-2);
    border-bottom: 1px solid var(--c-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.pricing-features-list li.disabled {
    color: var(--c-gray);
    text-decoration: line-through;
}

.pricing-features-list li.bonus {
    background: linear-gradient(135deg, #FFFBEB, #FFF8F0);
    color: #92400E;
    border-radius: var(--radius-sm);
    padding: 10px;
    margin-top: 4px;
    font-weight: 600;
    border: 1px dashed #FDE68A;
}

.pricing-features-list .check,
.pricing-features-list .cross {
    min-width: 20px;
    font-size: 0.85rem;
}

/* Card Footer */
.pricing-card-footer {
    padding: 16px 24px 24px;
    text-align: center;
}

.free-plan-notice {
    display: inline-block;
    background: var(--c-light);
    color: var(--c-gray-dark);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    font-style: italic;
}

.cta-trust {
    color: var(--c-gray);
    font-size: 0.78rem;
    margin-top: 10px;
}

.pricing-card-bottom {
    padding: 0 24px 18px;
    text-align: center;
}

.already-purchased {
    color: var(--c-primary);
    font-size: 0.82rem;
    text-decoration: none;
    border-bottom: 1px dashed var(--c-primary);
    font-weight: 500;
}

.already-purchased:hover {
    color: var(--c-primary-dark);
    border-bottom-style: solid;
}

/* ----- PRO CTA BUTTONS ----- */
.btn-pro-cta {
    display: inline-block;
    background: var(--c-pro-bg);
    color: white;
    font-size: 1.05rem;
    font-weight: 700;
    padding: 16px 38px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(255, 107, 53, 0.35);
    letter-spacing: 0.3px;
}

.btn-pro-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(255, 107, 53, 0.5);
    background: var(--c-pro-bg-hover);
}

.btn-pro-cta:active {
    transform: translateY(0);
}

.btn-pro-cta-large {
    font-size: 1.2rem;
    padding: 18px 44px;
}

.btn-pro-lock {
    display: inline-block;
    background: var(--c-pro-bg);
    color: white;
    font-size: 0.92rem;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(255, 107, 53, 0.3);
    white-space: nowrap;
    animation: pulsePro 2s infinite;
}

.btn-pro-lock:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.5);
    background: var(--c-pro-bg-hover);
}

/* ----- "WHAT YOU'RE MISSING" SECTION ----- */
.missing-out-section {
    max-width: 800px;
    margin: 0 auto 40px;
}

.missing-out-section h3 {
    text-align: center;
    font-size: 1.4rem;
    color: var(--c-dark);
    margin-bottom: 24px;
}

.missing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

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

.missing-item {
    display: flex;
    gap: 14px;
    background: var(--c-light);
    border: 1px solid var(--c-light-2);
    border-radius: var(--radius-md);
    padding: 18px;
    transition: all 0.2s ease;
}

.missing-item:hover {
    border-color: var(--c-primary);
    background: #FFF5F0;
}

.missing-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.missing-content strong {
    display: block;
    color: var(--c-dark);
    margin-bottom: 4px;
    font-size: 0.95rem;
}

.missing-content p {
    color: var(--c-gray-dark);
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
}

/* ----- TRUST BADGES ----- */
.pricing-trust {
    max-width: 900px;
    margin: 0 auto 40px;
}

.trust-badges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.trust-badge {
    background: var(--c-light);
    border: 1px solid var(--c-light-2);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    font-size: 0.85rem;
    color: var(--c-dark-2);
    text-align: center;
    transition: all 0.2s ease;
}

.trust-badge:hover {
    border-color: var(--c-primary);
    background: #FFF5F0;
}

.trust-badge strong {
    color: var(--c-dark);
}

/* ----- TESTIMONIALS ----- */
.pricing-testimonials {
    max-width: 860px;
    margin: 0 auto 40px;
}

.pricing-testimonials h3 {
    text-align: center;
    font-size: 1.4rem;
    color: var(--c-dark);
    margin-bottom: 24px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}

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

.testimonial-card {
    background: var(--c-light);
    border: 1px solid var(--c-light-2);
    border-radius: var(--radius-md);
    padding: 22px;
    transition: all 0.2s ease;
}

.testimonial-card:hover {
    border-color: var(--c-primary);
    box-shadow: var(--c-card-shadow);
}

.testimonial-stars {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.testimonial-card p {
    font-size: 0.88rem;
    font-style: italic;
    color: var(--c-dark-2);
    line-height: 1.6;
    margin-bottom: 16px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.testimonial-avatar {
    font-size: 1.6rem;
}

.testimonial-author strong {
    display: block;
    font-size: 0.88rem;
    color: var(--c-dark);
}

.testimonial-author span {
    font-size: 0.78rem;
    color: var(--c-gray-dark);
}

/* ----- ROI CALCULATOR ----- */
.value-section {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
}

.value-section h3 {
    font-size: 1.4rem;
    color: var(--c-dark);
    margin-bottom: 24px;
}

.roi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

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

.roi-item {
    background: var(--c-light);
    border: 1px solid var(--c-light-2);
    border-radius: var(--radius-md);
    padding: 20px 12px;
}

.roi-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--c-primary);
    margin-bottom: 6px;
    line-height: 1;
}

.roi-investment {
    color: var(--c-success) !important;
}

.roi-item p {
    color: var(--c-gray-dark);
    font-size: 0.82rem;
    margin: 0;
}

.roi-conclusion {
    margin-top: 20px;
    font-size: 1.05rem;
    color: var(--c-dark-2);
    padding: 14px 20px;
    background: linear-gradient(135deg, #ECFDF5, #D1FAE5);
    border-radius: var(--radius-md);
    border: 1px solid #A7F3D0;
}

.roi-conclusion strong {
    color: #065F46;
    font-size: 1.2rem;
}

/* ----- FAQ ----- */
.pricing-faq {
    max-width: 800px;
    margin: 0 auto 40px;
}

.pricing-faq h3 {
    text-align: center;
    font-size: 1.3rem;
    color: var(--c-dark);
    margin-bottom: 24px;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

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

.faq-item {
    background: var(--c-light);
    border: 1px solid var(--c-light-2);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    transition: all 0.2s ease;
}

.faq-item:hover {
    border-color: var(--c-primary);
}

.faq-item strong {
    display: block;
    color: var(--c-dark);
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.faq-item p {
    color: var(--c-gray-dark);
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.5;
}

/* ----- BOTTOM CTA ----- */
.pricing-bottom-cta {
    text-align: center;
    padding: 32px 0 10px;
    border-top: 1px solid var(--c-light-2);
}

.cta-badge-old {
    display: inline-block;
    background: rgba(255, 107, 53, 0.1);
    color: var(--c-primary);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 6px 18px;
    border-radius: 50px;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 107, 53, 0.2);
}

.pricing-bottom-cta h3 {
    font-size: 1.6rem;
    color: var(--c-dark);
    margin-bottom: 8px;
}

.pricing-bottom-cta > p {
    color: var(--c-gray-dark);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.pricing-bottom-cta .btn-pro-cta-large {
    margin-bottom: 12px;
}

.pricing-bottom-cta .cta-subtext {
    color: var(--c-gray);
    font-size: 0.85rem;
    margin-bottom: 14px;
}

.cta-badges {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.cta-badges span {
    color: var(--c-success);
    font-size: 0.85rem;
    font-weight: 500;
}

/* ----- STICKY CTA BAR ----- */
.sticky-cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #0F172A, #1E293B);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
    z-index: 1000;
    padding: 12px 20px;
    display: none;
    animation: slideUp 0.35s ease;
    border-top: 2px solid var(--c-gold);
}

.sticky-cta-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.sticky-cta-text {
    color: white;
    font-size: 0.95rem;
    font-weight: 500;
}

.btn-sticky-cta {
    display: inline-block;
    background: var(--c-pro-bg);
    color: white;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(255, 107, 53, 0.3);
    white-space: nowrap;
    animation: pulsePro 2s infinite;
}

.btn-sticky-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(255, 107, 53, 0.5);
    background: var(--c-pro-bg-hover);
}

/* ----- ADMIN BADGE ----- */
.admin-badge {
    display: inline-block;
    background: linear-gradient(135deg, #7C3AED, #A78BFA);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: glow 2s infinite;
}

/* ----- SRT EDITOR SECTION (Upload tab) ----- */
.editor-section {
    border: 1px solid var(--c-light-2);
    border-radius: var(--radius-md);
    padding: 20px;
    background: var(--c-light);
}

.editor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.editor-header h3 {
    font-size: 1.05rem;
    color: var(--c-dark);
}

.editor-actions {
    display: flex;
    gap: 6px;
}

/* ----- BATCH OPERATIONS PANEL ----- */
.batch-ops-panel {
    background: var(--c-light);
    border: 1px solid var(--c-light-2);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    margin-bottom: 16px;
    display: none;
}

.batch-ops-panel.show {
    display: block;
    animation: fadeIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.batch-ops-panel h4 {
    font-size: 0.95rem;
    color: var(--c-dark);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.batch-ops-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.batch-ops-tab {
    padding: 6px 14px;
    border: 1px solid var(--c-light-2);
    border-radius: 50px;
    background: none;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--c-gray-dark);
    transition: all var(--transition-fast);
    font-family: var(--font-body);
}

.batch-ops-tab:hover {
    border-color: var(--c-primary);
    color: var(--c-primary);
    background: rgba(255,107,53,0.05);
}

.batch-ops-tab.active {
    background: var(--c-primary);
    border-color: var(--c-primary);
    color: white;
}

.batch-ops-pane {
    display: none;
}

.batch-ops-pane.active {
    display: block;
}

.batch-ops-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.batch-ops-row label {
    font-size: 0.85rem;
    color: var(--c-dark-2);
    font-weight: 500;
    min-width: 70px;
}

.batch-ops-row input,
.batch-ops-row select {
    padding: 6px 10px;
    border: 1px solid var(--c-light-2);
    border-radius: 6px;
    font-size: 0.85rem;
    background: white;
    font-family: var(--font-body);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.batch-ops-row input:focus,
.batch-ops-row select:focus {
    border-color: var(--c-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255,107,53,0.1);
}

.batch-ops-row input[type="number"] {
    width: 100px;
}

.batch-ops-row input[type="text"] {
    flex: 1;
    min-width: 120px;
}

.batch-ops-row .btn {
    padding: 6px 14px;
    font-size: 0.82rem;
}

.batch-ops-result {
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.82rem;
    margin-top: 8px;
    display: none;
    background: #ECFDF5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.batch-ops-result.show {
    display: block;
}

.batch-ops-result.error {
    background: #FEF2F2;
    color: #991B1B;
    border-color: #FECACA;
}

/* ----- KEYBOARD SHORTCUTS MODAL ----- */
.shortcuts-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.shortcuts-modal-content {
    background: white;
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    max-width: 520px;
    width: 92%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--c-card-shadow-xl);
    animation: scaleIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.shortcuts-modal-content h3 {
    font-size: 1.2rem;
    color: var(--c-dark);
    margin-bottom: 6px;
}

.shortcuts-modal-content p {
    color: var(--c-gray-dark);
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.shortcuts-grid {
    border-top: 1px solid var(--c-light-2);
    padding-top: 12px;
}

.shortcuts-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px;
    border-bottom: 1px solid var(--c-light);
    transition: background var(--transition-fast);
    border-radius: 4px;
}

.shortcuts-row:hover {
    background: var(--c-light);
}

.shortcuts-key {
    display: inline-block;
    background: var(--c-light);
    border: 1px solid var(--c-light-2);
    border-radius: 6px;
    padding: 3px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: var(--font-mono);
    color: var(--c-dark);
    min-width: 60px;
    text-align: center;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.shortcuts-desc {
    font-size: 0.85rem;
    color: var(--c-dark-2);
    text-align: right;
}

.shortcuts-close-btn {
    margin-top: 16px;
    width: 100%;
    padding: 10px;
    border: none;
    background: var(--c-light);
    color: var(--c-dark);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all var(--transition-fast);
    font-family: var(--font-body);
}

.shortcuts-close-btn:hover {
    background: var(--c-light-2);
    transform: translateY(-1px);
}

.shortcuts-close-btn:active {
    transform: translateY(0);
}

/* ----- DARK MODE ----- */
@media (prefers-color-scheme: dark) {
    :root {
        --c-dark: #F8FAFC;
        --c-dark-2: #E2E8F0;
        --c-dark-3: #CBD5E1;
        --c-light: #0F172A;
        --c-light-2: #1E293B;
        --c-gray: #64748B;
        --c-gray-dark: #94A3B8;
        --c-card-shadow: 0 4px 6px -1px rgba(0,0,0,0.3), 0 2px 4px -2px rgba(0,0,0,0.3);
        --c-card-shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.3), 0 4px 6px -4px rgba(0,0,0,0.3);
        --c-card-shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.4), 0 8px 10px -6px rgba(0,0,0,0.4);
    }
    
    body { background: #020617; }
    
    .content { background: #0F172A; border-color: #1E293B; }
    .nav-tabs { background: #0F172A; border-color: #1E293B; }
    .tab { color: var(--c-gray); }
    .tab:hover { background: #1E293B; color: var(--c-light); }
    .tab.active { background: #0F172A; }
    
    .pricing-card { background: #0F172A; border-color: #1E293B; }
    .pricing-card.featured { border-color: var(--c-primary); }
    .pricing-card.free-card { border-color: #1E293B; }
    .pricing-amount { color: var(--c-light); }
    .pricing-features-list li { color: var(--c-dark-2); border-color: #1E293B; }
    .pricing-features-list li.disabled { color: var(--c-dark-3); }
    
    .testimonial-card { background: #0F172A; border-color: #1E293B; }
    .testimonial-card p { color: var(--c-dark-2); }
    .testimonial-author strong { color: var(--c-light); }
    .testimonial-author span { color: var(--c-gray); }
    
    .missing-item { background: #0F172A; border-color: #1E293B; }
    .missing-item:hover { background: #1E293B; }
    .missing-content strong { color: var(--c-light); }
    .missing-content p { color: var(--c-gray); }
    
    .faq-item { background: #0F172A; border-color: #1E293B; }
    .faq-item strong { color: var(--c-light); }
    .faq-item p { color: var(--c-gray); }
    
    .trust-badge { background: #0F172A; border-color: #1E293B; color: var(--c-dark-2); }
    .trust-badge:hover { background: #1E293B; }
    .trust-badge strong { color: var(--c-light); }
    
    .roi-item { background: #0F172A; border-color: #1E293B; }
    .roi-item p { color: var(--c-gray); }
    
    .roi-conclusion { background: linear-gradient(135deg, #064E3B, #065F46); border-color: #059669; }
    .roi-conclusion strong { color: #A7F3D0; }
    .roi-conclusion { color: #D1FAE5; }
    
    .upload-section { background: #0F172A; border-color: #1E293B; }
    .upload-section:hover { background: #1E293B; border-color: var(--c-primary); }
    .upload-section h3 { color: var(--c-light); }
    
    .file-item { background: #0F172A; border-color: #1E293B; }
    .file-item:hover { border-color: #334155; }
    .file-name { color: var(--c-light); }
    
    .auth-modal { background: #0F172A; border: 1px solid #1E293B; }
    .auth-modal h3 { color: var(--c-light); }
    .auth-modal .auth-subtitle { color: var(--c-gray); }
    .auth-field label { color: var(--c-dark-2); }
    .auth-field input { background: #1E293B; border-color: #334155; color: var(--c-light); }
    .auth-field input:focus { border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(255,107,53,0.15); }
    .auth-tab { color: var(--c-gray); }
    .auth-tab.active { color: var(--c-primary); }
    .auth-modal-header { border-color: #1E293B; }
    .auth-switch { color: var(--c-gray); }
    .auth-error { background: #7F1D1D; border-color: #991B1B; color: #FECACA; }
    
    .verification-key-display { background: #1E293B; color: var(--c-gold); border-color: #334155; }
    .verification-key-section { background: #0F172A; border-color: #334155; }
    .verification-key-hint { color: var(--c-gray); }
    
    .editor-section { border-color: #1E293B; }
    .editor-header h3 { color: var(--c-light); }
    .srt-editor-textarea { background: #0F172A; border-color: #1E293B; color: var(--c-light); }
    .srt-editor-textarea:focus { border-color: var(--c-primary); background: #1E293B; }
    
    .preview-list { background: #0F172A; border-color: #1E293B; }
    .preview-list-item { border-color: #1E293B; }
    .preview-list-item:hover { background: #1E293B; }
    .preview-list-item.active { background: rgba(255,107,53,0.1); }
    .preview-list-text { color: var(--c-dark-2); }
    .preview-speed-control select { background: #1E293B; border-color: #334155; color: var(--c-light); }
    
    .batch-ops-panel { background: #0F172A; border-color: #1E293B; }
    .batch-ops-panel h4 { color: var(--c-light); }
    .batch-ops-row label { color: var(--c-dark-2); }
    .batch-ops-row input,
    .batch-ops-row select { background: #1E293B; border-color: #334155; color: var(--c-light); }
    .batch-ops-row input:focus,
    .batch-ops-row select:focus { border-color: var(--c-primary); }
    .batch-ops-result { background: #1E293B; color: var(--c-accent); border-color: #334155; }
    
    .batch-ops-pro-lock { background: linear-gradient(135deg, #422006, #713F12); border-color: #A16207; color: #FDE68A; }
    .btn-pro-mini { box-shadow: 0 2px 10px rgba(255, 107, 53, 0.2); }
    .shortcuts-modal-content { background: #0F172A; border: 1px solid #1E293B; }
    .shortcuts-modal-content h3 { color: var(--c-light); }
    .shortcuts-modal-content p { color: var(--c-gray); }
    .shortcuts-grid { border-color: #1E293B; }
    .shortcuts-key { background: #1E293B; color: var(--c-light); border-color: #334155; }
    .shortcuts-desc { color: var(--c-dark-2); }
    
    .editor-toolbar { background: #0F172A; border-color: #1E293B; }
    .editor-btn { color: var(--c-gray); }
    .editor-btn:hover { background: #1E293B; color: var(--c-light); }
    .editor-zoom-level { color: var(--c-light); }
    .editor-sep { background: #1E293B; }
    .editor-btn-sm { background: #1E293B; color: var(--c-dark-2); border-color: #334155; }
    .editor-btn-sm:hover { background: #334155; color: var(--c-light); }
    .editor-timeline-header { border-color: #1E293B; }
    .editor-sub-ops { border-color: #1E293B; }
    .editor-btn-xs { background: #1E293B; color: var(--c-dark-2); border-color: #334155; }
    .editor-btn-xs:hover { background: #334155; color: var(--c-light); }
    .editor-srt-section { border-color: #1E293B; }
    .timeline-srt-editor { background: #0F172A; border-color: #1E293B; color: var(--c-light); }
    .timeline-srt-editor:focus { border-color: var(--c-primary); }
    .timeline-srt-editor::placeholder,
    .srt-editor-textarea::placeholder { color: var(--c-dark-3); }
    .lock-info { background: linear-gradient(135deg, #422006, #713F12); border-color: #A16207; }
    .lock-info-note { color: #FDE68A; }
    .lock-info-header strong { color: #FDE68A; }
    .lock-info-content p { color: #FDE68A; }
    .lock-info-benefits span { color: #FEF3C7; }
    .lock-info-roi { background: rgba(255,183,3,0.1); border-color: rgba(255,183,3,0.2); }
    .lock-info-roi span { color: #FDE68A; }
    .lock-info-roi strong { color: #FEF3C7; }
    
    .editor-section { background: #0F172A; }
    .editor-section-label { color: var(--c-dark-2); }
    .shortcuts-close-btn { background: #1E293B; color: var(--c-light); border: 1px solid #334155; }
    .shortcuts-close-btn:hover { background: #334155; }
    .btn-batch-toggle { background: #1E293B; border-color: #334155; color: var(--c-dark-2); }
    .btn-batch-toggle:hover { background: #334155; color: var(--c-light); border-color: #334155; }
    .upload-section p { color: var(--c-gray); }
}

/* Manual dark mode toggle override */
body.dark-mode {
    --c-dark: #F8FAFC;
    --c-dark-2: #E2E8F0;
    --c-dark-3: #CBD5E1;
    --c-light: #0F172A;
    --c-light-2: #1E293B;
    --c-gray: #64748B;
    --c-gray-dark: #94A3B8;
    background: #020617;
}

body.dark-mode .content,
body.dark-mode .nav-tabs,
body.dark-mode .pricing-card,
body.dark-mode .testimonial-card,
body.dark-mode .missing-item,
body.dark-mode .faq-item,
body.dark-mode .trust-badge,
body.dark-mode .roi-item,
body.dark-mode .upload-section,
body.dark-mode .file-item,
body.dark-mode .auth-modal,
body.dark-mode .editor-section,
body.dark-mode .preview-list,
body.dark-mode .batch-ops-panel,
body.dark-mode .editor-toolbar { background: #0F172A; }

body.dark-mode .content { border-color: #1E293B; }
body.dark-mode .nav-tabs { border-color: #1E293B; }
body.dark-mode .tab { color: var(--c-gray); }
body.dark-mode .tab:hover { background: #1E293B; color: var(--c-light); }
body.dark-mode .tab.active { background: #0F172A; }
body.dark-mode .batch-ops-pro-lock { background: linear-gradient(135deg, #422006, #713F12); border-color: #A16207; color: #FDE68A; }
body.dark-mode .shortcuts-close-btn { background: #1E293B; color: var(--c-light); border-color: #334155; }
body.dark-mode .shortcuts-close-btn:hover { background: #334155; }
body.dark-mode .btn-batch-toggle { background: #1E293B; border-color: #334155; color: var(--c-dark-2); }
body.dark-mode .btn-batch-toggle:hover { background: #334155; color: var(--c-light); border-color: #334155; }
body.dark-mode .editor-section-label { color: var(--c-dark-2); }
body.dark-mode .upload-section p { color: var(--c-gray); }
body.dark-mode .srt-editor-textarea::placeholder,
body.dark-mode .timeline-srt-editor::placeholder { color: var(--c-dark-3); }
body.dark-mode .srt-editor-textarea,
body.dark-mode .timeline-srt-editor,
body.dark-mode .auth-field input,
body.dark-mode .batch-ops-row input,
body.dark-mode .batch-ops-row select,
body.dark-mode .preview-speed-control select,
body.dark-mode .editor-btn-sm,
body.dark-mode .editor-btn-xs { background: #1E293B; border-color: #334155; color: var(--c-light); }

/* Footer & Skip-link dark mode */
body.dark-mode .site-footer { background: linear-gradient(135deg, #0F172A, #0B1120); border-color: #1E293B; }
body.dark-mode .footer-links a { color: var(--c-gray-dark); }
body.dark-mode .footer-links a:hover { color: var(--c-primary); }
body.dark-mode .skip-link { background: var(--c-primary); }

/* ----- RESPONSIVE ----- */
@media (max-width: 768px) {
    .container {
        padding: 12px;
        padding-bottom: 80px;
    }

    .header-top {
        flex-direction: column;
        text-align: center;
        padding: 16px 18px;
    }

    .header-brand {
        flex-direction: column;
        text-align: center;
    }

    .header-stats {
        font-size: 0.78rem;
    }

    .header-cta-btn {
        width: 100%;
        text-align: center;
    }

    .header-value-prop {
        text-align: center;
        padding: 0 18px 12px;
    }

    .header-badges {
        justify-content: center;
        padding: 0 18px 16px;
    }

    .nav-tabs {
        flex-direction: column;
    }

    .tab.active::after {
        left: 0;
        right: 0;
        bottom: auto;
        top: 0;
        height: 100%;
        width: 3px;
    }

    .content {
        padding: 18px;
    }

    .lock-info {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .lock-info-left {
        text-align: center;
    }

    .lock-info-header {
        justify-content: center;
    }

    .lock-info-benefits {
        justify-content: center;
    }

    .lock-info-roi {
        justify-content: center;
    }

    .lock-info-cta {
        min-width: auto;
    }

    .btn {
        flex: 1;
        min-width: 80px;
        font-size: 0.82rem;
        padding: 8px 14px;
    }

    .pricing-hero h2 {
        font-size: 1.8rem;
    }

    .pricing-amount {
        font-size: 2.4rem;
    }

    .pricing-info-bar {
        font-size: 0.8rem;
        padding: 10px 14px;
    }

    .top-info-bar {
        font-size: 0.75rem;
        padding: 8px 12px;
    }

    .urgency-btn {
        font-size: 0.72rem;
        padding: 4px 14px;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.3rem;
    }

    .pricing-hero h2 {
        font-size: 1.4rem;
    }

    .roi-value {
        font-size: 1.5rem;
    }

    .sticky-cta-text {
        font-size: 0.82rem;
        text-align: center;
        width: 100%;
    }

    .sticky-cta-content {
        justify-content: center;
    }

    .btn-sticky-cta, .btn-pro-cta {
        font-size: 0.85rem;
        padding: 10px 20px;
    }

    .btn-pro-cta-large {
        font-size: 1rem;
        padding: 14px 28px;
    }
}

@media print {
    .top-info-bar, .sticky-cta-bar { display: none !important; }
    .container { padding: 0; }
}

/* =============================================
   USER BAR — Logged-in indicator (top-right)
   ============================================= */
.user-bar {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(16px) saturate(1.5);
    -webkit-backdrop-filter: blur(16px) saturate(1.5);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50px;
    padding: 6px 14px 6px 18px;
    font-size: 0.78rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    animation: slideDown 0.3s ease;
}

.user-bar-email {
    color: var(--c-light-2);
    font-weight: 500;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-bar-btn {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--c-gray);
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.72rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: var(--font-body);
}

.user-bar-btn:hover {
    border-color: var(--c-primary);
    color: white;
    background: rgba(255,107,53,0.2);
    transform: translateY(-1px);
}

.user-bar-btn:active {
    transform: translateY(0);
}

/* =============================================
   AUTH MODAL
   ============================================= */
.auth-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.auth-modal {
    background: white;
    border-radius: var(--radius-lg);
    width: 92%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 80px rgba(0,0,0,0.2);
    animation: scaleIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-modal-header {
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--c-light-2);
    padding: 0;
}

.auth-tab {
    flex: 1;
    padding: 14px 10px;
    text-align: center;
    cursor: pointer;
    border: none;
    background: none;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--c-gray-dark);
    transition: all 0.2s;
    position: relative;
    font-family: var(--font-body);
}

.auth-tab.active {
    color: var(--c-primary);
}

.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 12%;
    right: 12%;
    height: 3px;
    background: var(--c-pro-bg);
    border-radius: 3px 3px 0 0;
}

.auth-close {
    width: 44px;
    height: 44px;
    border: none;
    background: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--c-gray);
    transition: all 0.2s;
    flex-shrink: 0;
}

.auth-close:hover {
    color: var(--c-error);
    background: rgba(239,68,68,0.08);
}

.auth-form {
    display: none;
    padding: 28px 30px 30px;
}

.auth-form.active {
    display: block;
    animation: fadeIn 0.25s ease;
}

.auth-form h3 {
    font-size: 1.3rem;
    color: var(--c-dark);
    margin-bottom: 6px;
}

.auth-subtitle {
    color: var(--c-gray-dark);
    font-size: 0.85rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.auth-field {
    margin-bottom: 16px;
}

.auth-field label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--c-dark-2);
    margin-bottom: 5px;
}

.auth-field input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--c-light-2);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: var(--font-body);
    transition: all 0.2s;
    background: var(--c-light);
}

.auth-field input:focus {
    outline: none;
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(255,107,53,0.1);
    background: white;
}

.auth-error {
    color: var(--c-error);
    font-size: 0.82rem;
    margin-top: 10px;
    min-height: 20px;
    text-align: center;
}

.auth-switch {
    text-align: center;
    font-size: 0.85rem;
    color: var(--c-gray-dark);
    margin-top: 14px;
}

.auth-switch a {
    color: var(--c-primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.auth-switch a:hover {
    color: var(--c-primary-dark);
}

/* =============================================
   LEGAL MODALS — Privacy Policy & Terms of Service
   ============================================= */
.legal-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

.legal-modal {
    background: white;
    border-radius: var(--radius-lg);
    max-width: 720px;
    width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 60px rgba(0,0,0,0.3);
    animation: slideUp 0.25s ease;
}

body.dark-mode .legal-modal {
    background: #0F172A;
    border: 1px solid #1E293B;
}

.legal-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px;
    border-bottom: 1px solid var(--c-light-2);
    flex-shrink: 0;
}

body.dark-mode .legal-modal-header {
    border-color: #1E293B;
}

.legal-modal-header h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--c-dark);
    margin: 0;
}

body.dark-mode .legal-modal-header h2 {
    color: var(--c-light);
}

.legal-modal-body {
    padding: 24px 28px;
    overflow-y: auto;
    flex: 1;
    line-height: 1.7;
    font-size: 0.88rem;
    color: var(--c-dark-2);
}

body.dark-mode .legal-modal-body {
    color: var(--c-gray-light);
}

.legal-modal-body h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--c-dark);
    margin: 20px 0 8px;
}

body.dark-mode .legal-modal-body h3 {
    color: var(--c-light);
}

.legal-modal-body h3:first-child {
    margin-top: 0;
}

.legal-modal-body p {
    margin: 0 0 12px;
    color: var(--c-gray-dark);
}

body.dark-mode .legal-modal-body p {
    color: var(--c-gray);
}

.legal-modal-body ul {
    margin: 0 0 12px;
    padding-left: 20px;
}

.legal-modal-body li {
    margin-bottom: 4px;
    color: var(--c-gray-dark);
}

body.dark-mode .legal-modal-body li {
    color: var(--c-gray);
}

.legal-modal-body code {
    font-size: 0.82rem;
    background: rgba(255,107,53,0.08);
    padding: 1px 5px;
    border-radius: 3px;
    color: var(--c-primary);
}

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

/* =============================================
   CUSTOMER SUPPORT FORM (inside legal modals)
   ============================================= */
.support-field {
    margin-bottom: 16px;
}

.support-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--c-dark-2);
    margin-bottom: 5px;
}

body.dark-mode .support-field label {
    color: var(--c-light);
}

.support-field input,
.support-field select,
.support-field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--c-light-2);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: var(--font-body);
    transition: all 0.2s;
    background: var(--c-light);
    color: var(--c-dark-2);
    box-sizing: border-box;
}

body.dark-mode .support-field input,
body.dark-mode .support-field select,
body.dark-mode .support-field textarea {
    background: #1E293B;
    border-color: #334155;
    color: var(--c-light);
}

.support-field input:focus,
.support-field select:focus,
.support-field textarea:focus {
    outline: none;
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(255,107,53,0.1);
    background: white;
}

body.dark-mode .support-field input:focus,
body.dark-mode .support-field select:focus,
body.dark-mode .support-field textarea:focus {
    background: #0F172A;
    border-color: var(--c-primary);
}

.support-field textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

.support-field-info {
    margin: 12px 0 16px;
    padding: 10px 14px;
    background: rgba(46, 196, 182, 0.08);
    border: 1px solid rgba(46, 196, 182, 0.2);
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    color: var(--c-gray-dark);
    line-height: 1.5;
}

body.dark-mode .support-field-info {
    background: rgba(46, 196, 182, 0.06);
    border-color: rgba(46, 196, 182, 0.15);
    color: var(--c-gray);
}

.support-submit-btn {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0;
}

.support-error {
    color: var(--c-error);
    font-size: 0.85rem;
    margin-top: 10px;
    min-height: 20px;
    text-align: center;
}

/* =============================================
   EDITOR TAB — Timeline Editor UI
   ============================================= */

/* Lock overlay (shown to non-Pro users) */
.editor-lock-overlay {
    display: block;
}

.editor-lock-overlay .lock-info {
    background: linear-gradient(135deg, #FFFBEB, #FFF8F0);
    border: 2px solid #FDE68A;
}

/* Editor main area (hidden for non-Pro) */
.editor-main {
    display: none;
}

/* Editor Toolbar */
.editor-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: linear-gradient(135deg, #1E293B, #0F172A);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.editor-toolbar-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.editor-toolbar-title {
    font-weight: 700;
    font-size: 0.92rem;
    color: white;
    font-family: var(--font-heading);
}

.editor-subtitle-count {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--c-gold);
    font-family: 'Courier New', monospace;
}

.editor-subtitle-label {
    font-size: 0.78rem;
    color: var(--c-gray);
}

.editor-toolbar-right {
    display: flex;
    align-items: center;
    gap: 4px;
}

.editor-btn {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--c-light-2);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-body);
    display: flex;
    align-items: center;
    gap: 4px;
}

.editor-btn:hover {
    background: rgba(255,255,255,0.15);
    color: white;
    border-color: rgba(255,255,255,0.25);
}

.editor-sep {
    width: 1px;
    height: 20px;
    background: rgba(255,255,255,0.12);
    margin: 0 6px;
}

.editor-zoom-level {
    font-size: 0.78rem;
    color: var(--c-gray);
    font-family: 'Courier New', monospace;
    min-width: 40px;
    text-align: center;
}

/* Editor Video Player */
.editor-video-player {
    background: #0a0a0a;
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    overflow: hidden;
    min-height: 200px;
    border: 1px solid var(--c-dark-3);
}

.editor-video-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: var(--c-gray);
    text-align: center;
}

.editor-video-empty-icon {
    font-size: 3rem;
    margin-bottom: 12px;
    opacity: 0.5;
}

.editor-video-empty-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--c-gray-dark);
    margin-bottom: 6px;
}

.editor-video-empty-sub {
    font-size: 0.82rem;
    color: var(--c-gray);
}

.editor-video-wrapper {
    position: relative;
}

.editor-video-element {
    width: 100%;
    max-height: 400px;
    display: block;
    background: #000;
}

.editor-video-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    flex-wrap: wrap;
}

.editor-btn-icon {
    background: none;
    border: none;
    color: white;
    font-size: 1.1rem;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.editor-btn-icon:hover {
    background: rgba(255,255,255,0.1);
}

.editor-time-display {
    color: var(--c-gold);
    font-family: 'Courier New', monospace;
    font-size: 0.82rem;
    letter-spacing: 0.5px;
    flex: 1;
}

.editor-speed-control {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    color: var(--c-gray);
}

.editor-speed-control select {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.78rem;
    cursor: pointer;
    font-family: var(--font-body);
}

.editor-snap-label {
    font-size: 0.72rem;
    color: var(--c-gray);
}

/* Timeline Area */
.editor-timeline-area {
    margin-bottom: 12px;
}

.editor-timeline-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}

.editor-section-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--c-dark-2);
}

.editor-timeline-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.editor-btn-sm {
    background: var(--c-light);
    border: 1px solid var(--c-light-2);
    color: var(--c-dark-2);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-body);
}

.editor-btn-sm:hover {
    background: var(--c-primary);
    border-color: var(--c-primary);
    color: white;
}

.btn-export-video {
    background: var(--c-pro-bg) !important;
    border-color: transparent !important;
    color: white !important;
}

.btn-export-video:hover {
    background: var(--c-pro-bg-hover) !important;
}

/* Timeline Container */
.timeline-editor-container {
    background: var(--c-dark-2);
    border-radius: var(--radius-md);
    border: 1px solid var(--c-dark-3);
    min-height: 120px;
    max-height: 500px;
    overflow: auto;
    position: relative;
}

.timeline-editor-container::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.timeline-editor-container::-webkit-scrollbar-track {
    background: var(--c-dark-3);
}

.timeline-editor-container::-webkit-scrollbar-thumb {
    background: var(--c-gray-dark);
    border-radius: 4px;
}

.timeline-editor-container::-webkit-scrollbar-thumb:hover {
    background: var(--c-gray);
}

/* Subtitle Operations Bar */
.editor-sub-ops {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: var(--c-light);
    border: 1px solid var(--c-light-2);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    flex-wrap: wrap;
    transition: background-color var(--transition-slow), border-color var(--transition-slow);
}

.editor-sub-ops-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--c-gray-dark);
    margin-right: 6px;
}

.editor-btn-xs {
    background: white;
    border: 1px solid var(--c-light-2);
    color: var(--c-dark-2);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: var(--font-body);
}

.editor-btn-xs:hover {
    background: var(--c-light);
    border-color: var(--c-primary);
    color: var(--c-primary);
}

/* SRT Source Section */
.editor-srt-section {
    margin-bottom: 12px;
}

.editor-srt-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}

.editor-srt-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.timeline-srt-editor {
    width: 100%;
    min-height: 120px;
    max-height: 250px;
    padding: 14px 16px;
    border: 1px solid var(--c-light-2);
    border-radius: var(--radius-sm);
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Cascadia Code', monospace;
    font-size: 0.82rem;
    line-height: 1.6;
    resize: vertical;
    background: var(--c-light);
    color: var(--c-dark);
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.timeline-srt-editor::placeholder {
    color: var(--c-gray);
    font-size: 0.82rem;
}

.timeline-srt-editor:focus {
    outline: none;
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(255,107,53,0.1);
    background: white;
}

/* Basic SRT Editor (Upload tab) */
.srt-editor-textarea {
    width: 100%;
    min-height: 200px;
    padding: 14px 16px;
    border: 1px solid var(--c-light-2);
    border-radius: var(--radius-sm);
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Cascadia Code', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    resize: vertical;
    background: var(--c-light);
    color: var(--c-dark);
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
    box-sizing: border-box;
    margin-top: 8px;
}

.srt-editor-textarea::placeholder {
    color: var(--c-gray);
    font-size: 0.85rem;
}

.srt-editor-textarea:focus {
    outline: none;
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(255,107,53,0.1);
    background: white;
}

/* Editor section header in upload tab */
.editor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.editor-header h3 {
    margin: 0;
    font-size: 1rem;
    color: var(--c-dark);
}

.editor-actions {
    display: flex;
    gap: 6px;
}

.btn-sm {
    padding: 5px 12px;
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--c-light-2);
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-sm:hover {
    background: var(--c-light);
}

/* Toast Container */
.editor-toast-container {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    pointer-events: none;
}

.editor-toast-container > * {
    pointer-events: auto;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(100%); }
    to { opacity: 1; transform: translateX(0); }
}

/* =============================================
   EDITOR RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
    .editor-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .editor-toolbar-left,
    .editor-toolbar-right {
        justify-content: center;
    }

    .editor-timeline-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .editor-video-controls {
        justify-content: center;
    }

    .editor-time-display {
        text-align: center;
        width: 100%;
    }

    .user-bar {
        top: auto;
        bottom: 80px;
        right: 10px;
        left: 10px;
        border-radius: var(--radius-md);
        justify-content: center;
    }

    .auth-modal {
        max-width: 100%;
        margin: 10px;
        border-radius: var(--radius-md);
    }
}

/* =============================================
   SKIP TO MAIN CONTENT (accessibility)
   ============================================= */
.skip-link {
    position: absolute;
    top: -60px;
    left: 10px;
    background: var(--c-primary);
    color: white;
    padding: 8px 16px;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 1000;
    text-decoration: none;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
    outline: 2px solid white;
    outline-offset: 2px;
}

/* =============================================
   SEO CONTENT SECTIONS (FAQ + How-to Guide)
   ============================================= */
.seo-faq-section,
.seo-guide-section {
    margin: 40px 0 20px;
    padding: 28px 32px;
    background: var(--c-light);
    border: 1px solid var(--c-light-2);
    border-radius: var(--radius-lg);
    transition: background-color var(--transition-slow), border-color var(--transition-slow);
}

body.dark-mode .seo-faq-section,
body.dark-mode .seo-guide-section {
    background: var(--c-dark);
    border-color: var(--c-dark-3);
}

.seo-faq-section h2,
.seo-guide-section h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--c-dark-2);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--c-primary);
}

body.dark-mode .seo-faq-section h2,
body.dark-mode .seo-guide-section h2 {
    color: var(--c-light);
}

.seo-faq-item {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--c-light-2);
}

.seo-faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

body.dark-mode .seo-faq-item {
    border-color: var(--c-dark-3);
}

.seo-faq-item h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--c-dark-2);
    margin-bottom: 6px;
    cursor: pointer;
}

body.dark-mode .seo-faq-item h3 {
    color: var(--c-gold);
}

.seo-faq-item h3:hover {
    color: var(--c-primary);
}

.seo-faq-item p {
    font-size: 0.85rem;
    color: var(--c-gray-dark);
    line-height: 1.6;
    margin: 0;
}

body.dark-mode .seo-faq-item p {
    color: var(--c-gray);
}

.seo-faq-item code {
    font-size: 0.8rem;
    background: rgba(255,107,53,0.1);
    padding: 1px 5px;
    border-radius: 3px;
    color: var(--c-primary);
}

/* How-to Guide */
.seo-guide-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.seo-guide-step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.seo-guide-step-num {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--c-primary), var(--c-gold));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    margin-top: 2px;
}

.seo-guide-step-content {
    flex: 1;
}

.seo-guide-step-content h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--c-dark-2);
    margin-bottom: 4px;
}

body.dark-mode .seo-guide-step-content h3 {
    color: var(--c-light);
}

.seo-guide-step-content p {
    font-size: 0.85rem;
    color: var(--c-gray-dark);
    line-height: 1.6;
    margin: 0;
}

body.dark-mode .seo-guide-step-content p {
    color: var(--c-gray);
}

.seo-guide-step-content code {
    font-size: 0.8rem;
    background: rgba(255,107,53,0.1);
    padding: 1px 5px;
    border-radius: 3px;
    color: var(--c-primary);
}

.seo-guide-tip {
    margin-top: 16px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #FFF7ED, #FFFBEB);
    border-left: 4px solid var(--c-gold);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: #92400E;
    line-height: 1.5;
}

body.dark-mode .seo-guide-tip {
    background: linear-gradient(135deg, #422006, #713F12);
    color: #FDE68A;
    border-left-color: var(--c-gold);
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
    background: linear-gradient(135deg, var(--c-dark), #0B1120);
    border-top: 1px solid var(--c-dark-3);
    padding: 24px 20px;
    margin-top: 40px;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo {
    font-size: 1.1rem;
    color: var(--c-light);
}

.footer-tagline {
    font-size: 0.82rem;
    color: var(--c-gray);
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
}

.footer-links a {
    color: var(--c-gray);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--c-primary);
}

.footer-sep {
    color: var(--c-dark-3);
    font-size: 0.7rem;
}

.footer-copy {
    font-size: 0.75rem;
    color: var(--c-gray-dark);
}

/* =============================================
   VERIFICATION KEY DISPLAY (shown after register)
   ============================================= */
.verification-key-section {
    background: linear-gradient(135deg, #FFF7ED, #FFFBEB);
    border: 2px solid #FDE68A;
    border-radius: var(--radius-md);
    padding: 16px 18px;
    margin-top: 18px;
    text-align: center;
    animation: slideUp 0.3s ease;
}

.verification-key-icon {
    font-size: 2rem;
    margin-bottom: 6px;
}

.verification-key-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #92400E;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.verification-key-display {
    background: white;
    border: 2px dashed #F59E0B;
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-family: 'Courier New', 'Monaco', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    color: #B45309;
    letter-spacing: 2px;
    margin-bottom: 10px;
    user-select: all;
    cursor: copy;
}

.verification-key-hint {
    font-size: 0.78rem;
    color: #A16207;
    line-height: 1.5;
    margin-bottom: 6px;
}

.verification-key-email {
    font-size: 0.78rem;
    color: #78716C;
    font-style: italic;
}

/* =============================================
   ADMIN BADGE
   ============================================= */
.admin-badge {
    background: linear-gradient(135deg, #7C3AED, #6D28D9);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
