/* ========== HOME PAGE ========== */

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--nav-height);
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-bg .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: orb-float 12s ease-in-out infinite;
}

/* Floating Adobe logos */
.floating-logo {
    position: absolute;
    width: 60px;
    height: 60px;
    opacity: 0.12;
    animation: logo-float 10s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.floating-logo.premiere {
    top: 15%;
    left: 8%;
    animation-delay: 0s;
}

.floating-logo.aftereffects {
    top: 25%;
    right: 10%;
    animation-delay: -5s;
}

.floating-logo.premiere-2 {
    top: auto;
    left: auto;
    bottom: 20%;
    right: 6%;
    width: 50px;
    height: 50px;
    animation-delay: -8s;
}

/* Backlight effect */
.backlight-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.backlight {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    animation: backlight-pulse 6s ease-in-out infinite;
}

.backlight-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, rgba(99, 102, 241, 0.15) 40%, transparent 70%);
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0s;
}

.backlight-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.25) 0%, rgba(139, 92, 246, 0.1) 50%, transparent 70%);
    top: 10%;
    left: 10%;
    animation-delay: -2s;
}

.backlight-3 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, rgba(168, 85, 247, 0.1) 50%, transparent 70%);
    top: 5%;
    right: 5%;
    animation-delay: -4s;
}

@keyframes backlight-pulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.15);
    }
}

.backlight-1 {
    animation-name: backlight-pulse-center;
}

/* Hero Software Logos */
.hero-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 20px 0 8px;
}

.hero-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.9;
}

.hero-logo-item:hover {
    transform: scale(1.15);
    opacity: 1;
}

.hero-logo-item svg {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

@keyframes backlight-pulse-center {
    0%, 100% {
        opacity: 0.5;
        transform: translateX(-50%) scale(1);
    }
    50% {
        opacity: 0.9;
        transform: translateX(-50%) scale(1.2);
    }
}

/* RTL arrow direction fix */
.comparison-arrow {
    display: inline-block;
    transition: transform 0.2s;
}

[dir="rtl"] .comparison-arrow {
    transform: scaleX(-1);
}

.floating-logo svg {
    width: 100%;
    height: 100%;
}

.hero-bg .orb-1 {
    width: 500px; height: 500px;
    background: rgba(99, 102, 241, 0.15);
    top: -10%; right: -5%;
    animation-delay: 0s;
}

.hero-bg .orb-2 {
    width: 400px; height: 400px;
    background: rgba(139, 92, 246, 0.12);
    bottom: -15%; left: -5%;
    animation-delay: -3s;
}

.hero-bg .orb-3 {
    width: 300px; height: 300px;
    background: rgba(168, 85, 247, 0.08);
    top: 30%; left: 40%;
    animation-delay: -5s;
}

/* Grid pattern */
.hero-bg .grid-pattern {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero .container {
    position: relative;
    z-index: 1;
    text-align: center;
    padding-top: 40px;
    padding-bottom: 80px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.15);
    padding: 8px 20px;
    border-radius: 100px;
    margin-bottom: 28px;
}

.hero-badge .dot {
    width: 6px; height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: pulse-glow 2s ease-in-out infinite;
    box-shadow: 0 0 8px var(--accent-primary);
}

.hero h1 {
    max-width: 900px;
    margin: 0 auto 20px;
}

.hero-text-block {
    max-width: 700px;
    margin: 0 auto 40px;
    text-align: center;
}

.hero-headline {
    font-size: clamp(1.3rem, 3vw, 1.6rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.hero-subheadline {
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 500;
    color: var(--accent-secondary);
    margin-bottom: 16px;
}

.hero-supporting {
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    color: var(--text-secondary);
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.hero-actions .btn-lg {
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-cta-btn {
    flex-direction: column;
    gap: 1px;
    padding: 8px 36px;
    line-height: 1.2;
}

.hero-cta-subtext {
    font-size: 0.65rem;
    opacity: 0.85;
    font-weight: 400;
}

/* Hero mockup / visual */
.hero-visual {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.hero-mockup {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 4px;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.03),
        var(--shadow-card),
        0 20px 80px rgba(0, 0, 0, 0.4);
    animation: float 6s ease-in-out infinite;
    overflow: hidden;
}

.hero-mockup-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-color);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.hero-mockup-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
}

.hero-mockup-dot:nth-child(1) { background: #ef4444; }
.hero-mockup-dot:nth-child(2) { background: #f59e0b; }
.hero-mockup-dot:nth-child(3) { background: #10b981; }

.hero-mockup-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mockup-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.mockup-block {
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
}

.mockup-caption-line {
    height: 10px;
    background: rgba(99, 102, 241, 0.15);
    border-radius: 4px;
    margin: 8px 12px;
}

.mockup-caption-line:nth-child(odd) { width: 80%; }
.mockup-caption-line:nth-child(even) { width: 60%; }

.mockup-timeline {
    height: 80px;
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
}

.mockup-track {
    height: 16px;
    border-radius: 3px;
    position: relative;
    overflow: hidden;
}

.mockup-track:nth-child(1) { background: rgba(99, 102, 241, 0.15); }
.mockup-track:nth-child(2) { background: rgba(139, 92, 246, 0.12); }
.mockup-track:nth-child(3) { background: rgba(16, 185, 129, 0.12); }

.mockup-clip {
    position: absolute;
    top: 2px; bottom: 2px;
    border-radius: 2px;
}

.mockup-track:nth-child(1) .mockup-clip { background: rgba(99, 102, 241, 0.4); }
.mockup-track:nth-child(2) .mockup-clip { background: rgba(139, 92, 246, 0.35); }
.mockup-track:nth-child(3) .mockup-clip { background: rgba(16, 185, 129, 0.35); }

/* Hero floating elements */
.hero-visual .floating-tag {
    position: absolute;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 8px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: var(--shadow-card);
    animation: float 5s ease-in-out infinite;
    z-index: 2;
}

.floating-tag.tag-ai {
    top: 15%;
    right: -40px;
    color: var(--accent-primary);
    animation-delay: -1s;
}

.floating-tag.tag-lang {
    bottom: 25%;
    left: -40px;
    color: var(--success);
    animation-delay: -3s;
}

/* ========== FEATURES SECTION ========== */
.features-section .card {
    text-align: center;
    padding: 40px 28px;
}

.features-section .card-icon {
    margin: 0 auto 20px;
    width: 56px; height: 56px;
    font-size: 24px;
}

/* ========== HOW IT WORKS ========== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    position: relative;
}

.steps-grid::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 16.66%;
    right: 16.66%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary), var(--accent-tertiary));
    opacity: 0.3;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 56px; height: 56px;
    background: var(--bg-secondary);
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin: 0 auto 20px;
    position: relative;
    z-index: 1;
}

.step h3 { margin-bottom: 8px; font-size: 1.1rem; }
.step p { font-size: 0.9rem; }

@media (max-width: 768px) {
    .steps-grid { grid-template-columns: 1fr; }
    .steps-grid::before { display: none; }
}

/* ========== LANGUAGES SECTION ========== */
.languages-grid {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.lang-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 28px 36px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all var(--transition-smooth);
    min-width: 160px;
}

.lang-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.lang-flag {
    font-size: 2.5rem;
    line-height: 1;
}

.lang-code {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-md);
    padding: 8px 16px;
    font-family: var(--font-mono);
    letter-spacing: 0.05em;
}

.lang-card h4 { font-size: 1rem; }
.lang-card p { font-size: 0.8rem; color: var(--text-muted); }

/* ========== PRICING PREVIEW ========== */
.pricing-preview {
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 48px;
    max-width: 600px;
    margin: 0 auto;
}

.pricing-preview .price-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

/* ========== BUY PAGE ========== */
.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 48px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    padding: 6px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.pricing-toggle span {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 600;
    padding: 12px 32px;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
}

.pricing-toggle span:hover {
    color: var(--text-primary);
}

.pricing-toggle span.active {
    color: white;
    background: var(--accent-gradient);
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.pricing-toggle .toggle-wrapper {
    display: none;
}

.pricing-toggle .yearly-savings {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--success);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
    overflow: visible;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 36px 28px;
    text-align: center;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: visible;
}

.pricing-card.featured {
    border-color: var(--accent-primary);
    box-shadow:
        0 0 0 1px rgba(99, 102, 241, 0.4),
        0 20px 60px rgba(99, 102, 241, 0.2);
}

.most-popular-badge {
    display: inline-block;
    background: var(--accent-primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 16px;
}

.pricing-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.15);
}

.pricing-card.featured:hover { transform: translateY(-4px); }

.pricing-card .plan-name {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    margin-bottom: 8px;
}


.pricing-card .plan-price-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.pricing-card .plan-price {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.plan-taxes {
    font-size: 0.45em;
    font-weight: 400;
    color: var(--text-muted);
    margin-left: 4px;
    vertical-align: middle;
}

.pricing-card .plan-discount {
    background: var(--success);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    margin-bottom: 4px;
}

.pricing-card .plan-period {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.pricing-card .plan-original-price {
    text-decoration: line-through;
    color: var(--text-muted);
    opacity: 0.7;
}

.pricing-card .plan-minutes {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--accent-primary);
    margin-bottom: 24px;
    padding: 12px;
    background: rgba(99, 102, 241, 0.08);
    border-radius: var(--radius-md);
}

.plan-features {
    list-style: none;
    padding: 0;
    margin-bottom: 28px;
}

.plan-features li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 8px 0;
    position: relative;
    padding-left: 22px;
}

/* Checkmark - positioned absolute */
.plan-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
    font-size: 0.85rem;
}

/* RTL: Move checkmark to right side */
body.rtl .plan-features {
    direction: rtl;
    text-align: right;
}

body.rtl .plan-features li {
    padding-left: 0;
    padding-right: 22px;
}

body.rtl .plan-features li::before {
    left: auto;
    right: 0;
}

/* Purchase area (logged in state) */
.pricing-purchase-area {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.coupon-input-group {
    position: relative;
}

.coupon-input {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    color: var(--text-primary);
    text-align: center;
    font-family: var(--font-base);
}

.coupon-input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.coupon-input::placeholder {
    color: var(--text-muted);
}

.coupon-error {
    display: block;
    color: var(--error);
    font-size: 0.8rem;
    margin-top: 6px;
    text-align: center;
}

.coupon-error.hidden {
    display: none;
}

[data-theme="light"] .coupon-input {
    background: rgba(0, 0, 0, 0.02);
}

.pricing-faq {
    max-width: 700px;
    margin: 80px auto 0;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
}

.faq-question {
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: none;
    border: none;
    color: var(--text-primary);
    width: 100%;
    text-align: left;
    font-family: var(--font-display);
    padding: 0;
}

body.rtl .faq-question { text-align: right; }

.faq-question .faq-icon {
    transition: transform var(--transition-fast);
    color: var(--text-muted);
    font-size: 1.2rem;
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-smooth);
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

.faq-item.open .faq-answer {
    max-height: 300px;
    padding-top: 12px;
}

@media (max-width: 768px) {
    .pricing-cards { grid-template-columns: 1fr; max-width: 400px; }
    .pricing-card.featured { transform: none; }
    .pricing-card.featured:hover { transform: translateY(-4px); }
}

/* ========== GUIDE PAGE ========== */
.guide-section {
    padding: 48px 0;
    border-bottom: 1px solid var(--border-color);
}

.guide-section:last-child { border-bottom: none; }

.guide-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.guide-content.reverse { direction: ltr; }
.guide-content.reverse > :first-child { order: 2; }
.guide-content.reverse > :last-child { order: 1; }

body.rtl .guide-content { direction: rtl; }
body.rtl .guide-content.reverse > :first-child { order: 2; }
body.rtl .guide-content.reverse > :last-child { order: 1; }

.guide-text h3 { margin-bottom: 16px; }
.guide-text p { margin-bottom: 12px; }

.guide-visual {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    font-size: 4rem;
    opacity: 0.6;
}

@media (max-width: 768px) {
    .guide-content { grid-template-columns: 1fr; }
    /* On mobile, always show text first, then visual - use !important to override .reverse specificity */
    .guide-content .guide-text,
    .guide-content.reverse .guide-text,
    .guide-content.reverse > :first-child { order: 1 !important; }
    .guide-content .guide-visual,
    .guide-content.reverse .guide-visual,
    .guide-content.reverse > :last-child { order: 2 !important; }
}

/* Guide AI Banner */
.guide-ai-banner {
    background: linear-gradient(135deg, rgba(var(--accent-secondary-rgb), 0.12), rgba(var(--accent-primary-rgb), 0.05));
    border: 2px solid var(--accent-secondary);
    border-radius: 16px;
    padding: 24px 32px;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.guide-ai-banner-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.guide-ai-banner-icon {
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
    border-radius: 12px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.guide-ai-banner-label {
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.guide-ai-banner-title {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 700;
}

.guide-ai-banner-cta {
    background: var(--accent-gradient);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .guide-ai-banner {
        padding: 12px 0;
        margin-bottom: 24px;
        gap: 12px;
        flex-direction: column;
        text-align: center;
    }
    .guide-ai-banner-content {
        flex-direction: column;
        gap: 10px;
    }
    .guide-ai-banner-icon {
        width: 40px;
        height: 40px;
    }
    .guide-ai-banner-icon svg {
        width: 20px;
        height: 20px;
    }
    .guide-ai-banner-cta {
        align-self: center;
    }
}

/* ========== INSTALLATION PAGE ========== */
.install-steps {
    max-width: 800px;
    margin: 0 auto;
}

.install-step {
    display: flex;
    gap: 24px;
    padding: 28px 32px;
    border-bottom: 1px solid var(--border-color);
    align-items: flex-start;
    border-radius: var(--radius-lg);
    margin-bottom: 12px;
}

.install-step:last-child { border-bottom: none; margin-bottom: 0; }

.install-step-num {
    flex-shrink: 0;
    width: 40px; height: 40px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--accent-primary);
    font-size: 0.9rem;
}

.install-step h4 { margin-bottom: 6px; }
.install-step p { font-size: 0.9rem; }
.install-step p a {
    color: var(--accent-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.install-step p a:hover {
    color: var(--accent-light);
}

/* ========== DOWNLOADS PAGE ========== */
.download-hero {
    text-align: center;
    padding: 80px 0 60px;
}

.download-card {
    max-width: 500px;
    margin: 40px auto 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 40px;
    text-align: center;
}

.download-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.download-card .btn { margin-top: 20px; }

.system-reqs {
    max-width: 500px;
    margin: 40px auto 0;
}

.system-reqs h4 { margin-bottom: 16px; }

.system-reqs ul {
    list-style: none;
}

.system-reqs li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.system-reqs li::before {
    content: '•';
    color: var(--accent-primary);
    font-weight: 700;
}

/* ========== AUTH PAGES (Login/Register) ========== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--nav-height) + 40px) 24px 40px;
}

.auth-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 40px;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-card);
}

.auth-card-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-card-header .auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 auto 16px;
    direction: ltr;
}

.auth-logo-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.auth-logo-text {
    height: 36px;
    object-fit: contain;
}

/* Theme switching for auth logos */
.auth-logo .dark-mode-img { display: block; }
.auth-logo .light-mode-img { display: none; }

[data-theme="light"] .auth-logo .dark-mode-img { display: none; }
[data-theme="light"] .auth-logo .light-mode-img { display: block; }

.auth-card-header h2 { font-size: 1.5rem; margin-bottom: 6px; }
.auth-card-header p { font-size: 0.9rem; }

.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.auth-footer a { font-weight: 600; }

/* Google Sign-In Button */
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-weight: 500;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-google:hover {
    background: var(--bg-secondary);
    border-color: var(--text-muted);
}

.btn-google .google-icon {
    flex-shrink: 0;
}

[data-theme="light"] .btn-google {
    background: #fff;
    border-color: #dadce0;
}

[data-theme="light"] .btn-google:hover {
    background: #f8f9fa;
    border-color: #dadce0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* OTP section */
.otp-section {
    text-align: center;
}

.otp-section .phone-display {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    margin-bottom: 24px;
    direction: ltr;
    display: inline-block;
}

.otp-timer {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 16px;
}

.otp-resend {
    font-size: 0.85rem;
    margin-top: 12px;
}

.otp-resend button {
    background: none;
    border: none;
    color: var(--accent-primary);
    cursor: pointer;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
}

.otp-resend button:disabled {
    color: var(--text-muted);
    cursor: not-allowed;
}

/* ========== HISTORY PAGE ========== */
.caption-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.caption-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    transition: all var(--transition-fast);
}

.caption-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.12);
}

.caption-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.caption-filename {
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.caption-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.caption-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.caption-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.caption-actions .btn { font-size: 0.78rem; padding: 6px 14px; }

/* ========== TRANSCRIPTION PAGE ========== */
.transcription-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

@media (max-width: 1024px) {
    .transcription-layout { grid-template-columns: 1fr; }
}

.settings-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 28px;
}

.settings-panel h3 {
    margin-bottom: 24px;
    font-size: 1.1rem;
}

.setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.setting-row:last-child { border-bottom: none; }

.setting-label {
    font-size: 0.9rem;
    font-weight: 500;
}

.setting-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.setting-select {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 0.85rem;
    cursor: pointer;
    outline: none;
}

.setting-select option { background: var(--bg-secondary); }

.setting-select:focus { border-color: var(--accent-primary); }

.number-input {
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.number-input button {
    width: 32px; height: 32px;
    background: rgba(255, 255, 255, 0.04);
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.number-input button:hover { background: rgba(255, 255, 255, 0.1); color: var(--text-primary); }

.number-input span {
    width: 36px;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Punctuation marks checkboxes */
.marks-grid {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.mark-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.85rem;
    transition: all var(--transition-fast);
}

.mark-checkbox:hover { border-color: rgba(255, 255, 255, 0.15); }
.mark-checkbox input { display: none; }
.mark-checkbox.checked {
    border-color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-primary);
}

/* Usage preview */
.usage-preview {
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-top: 20px;
}

.usage-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    padding: 4px 0;
}

.usage-row .value {
    font-family: var(--font-mono);
    font-weight: 600;
}

/* Result panel */
.result-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 28px;
}

.result-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.caption-preview-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    max-height: 400px;
    overflow-y: auto;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1.8;
    color: var(--text-secondary);
    white-space: pre-wrap;
}

/* Processing status */
.processing-status {
    text-align: center;
    padding: 40px 20px;
}

.processing-status .status-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    animation: pulse-glow 2s infinite;
}

.processing-status .status-text {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.processing-status .elapsed {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

/* ========== COMPREHENSIVE MOBILE STYLES ========== */
@media (max-width: 768px) {
    /* Hero section */
    .hero {
        padding: 100px 0 20px;
        min-height: auto;
    }
    .hero h1 { font-size: 2rem; margin-bottom: 16px; }
    .hero h1 .premiere-pro-text { display: block; }
    .hero .subtitle { font-size: 1rem; margin-bottom: 24px; }
    .hero-actions { margin-bottom: 8px; }
    .hero-buttons { flex-direction: column; gap: 12px; }
    .hero-buttons .btn { width: 100%; justify-content: center; }

    /* Features grid */
    .features-grid { gap: 12px; }
    .feature-card { padding: 16px 14px; }
    .feature-card h3 { font-size: 1rem; }
    .features-section .card { padding: 16px 14px; }
    .features-section .card-icon { width: 44px; height: 44px; margin-bottom: 12px; }
    .features-section .card h3 { font-size: 1rem; margin-bottom: 6px; }
    .features-section .card p { font-size: 0.85rem; line-height: 1.4; }

    /* Steps */
    .steps-grid { gap: 20px; }
    .step { padding: 24px 20px; }
    .step-number { width: 36px; height: 36px; font-size: 1rem; }

    /* Language cards */
    .languages-grid { gap: 12px; }
    .lang-card {
        padding: 20px 24px;
        min-width: 130px;
        flex: 1 1 calc(50% - 6px);
    }
    .lang-flag { font-size: 2rem; }
    .lang-code { font-size: 1.2rem; padding: 6px 12px; }

    /* Pricing cards */
    .pricing-section { padding: 48px 0; }
    .pricing-cards { gap: 16px; }
    .pricing-card { padding: 28px 24px; }
    .pricing-card .price { font-size: 2.5rem; }

    /* FAQ */
    .faq-question { padding: 16px 0; font-size: 0.95rem; }
    .faq-answer { font-size: 0.9rem; }

    /* Guide page */
    .guide-section { padding: 32px 0; }
    .guide-content { gap: 24px; }
    .guide-visual { min-height: 180px; padding: 24px; font-size: 3rem; max-width: 100%; overflow: hidden; }
    .demo-container { max-width: 100%; overflow: hidden; }
    .demo-extension { max-width: 100%; }

    /* Installation page */
    .install-steps { gap: 16px; }
    .install-step { padding: 20px; }
    .install-step-header { flex-direction: column; align-items: flex-start; gap: 12px; }
    .install-step h3 { font-size: 1rem; }

    /* Downloads page */
    .download-card { padding: 28px 24px; }
    .download-card h3 { font-size: 1.2rem; }
    .download-buttons { flex-direction: column; }
    .download-buttons .btn { width: 100%; justify-content: center; }

    /* Auth pages */
    .auth-container { padding: 24px 0; }
    .auth-card { padding: 28px 24px; }
    .auth-card-header h2 { font-size: 1.4rem; }

    /* History page - caption cards */
    .caption-card { padding: 16px; }
    .caption-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .caption-filename { font-size: 0.9rem; }
    .caption-date { font-size: 0.75rem; }
    .caption-meta { gap: 8px; }
    .caption-meta .badge { font-size: 0.7rem; padding: 3px 8px; }
    .caption-actions {
        gap: 6px;
        margin-top: 4px;
    }
    .caption-actions .btn {
        font-size: 0.72rem;
        padding: 5px 10px;
        flex: 1 1 calc(50% - 3px);
        justify-content: center;
    }

    /* Transcription page */
    .transcription-layout { gap: 20px; }
    .settings-panel { padding: 20px 16px; }
    .settings-panel h3 { font-size: 1rem; margin-bottom: 16px; }
    .setting-row { padding: 12px 0; }
    .setting-label { font-size: 0.85rem; }

    .upload-area { padding: 32px 16px; }
    .upload-area h3 { font-size: 1.1rem; }

    .result-panel { padding: 20px 16px; }
    .result-actions {
        flex-direction: column;
        gap: 8px;
    }
    .result-actions .btn { width: 100%; justify-content: center; }

    /* Caption preview box */
    .caption-preview-box {
        max-height: 250px;
        font-size: 0.8rem;
        padding: 16px;
    }

    /* Number input */
    .number-input button { width: 32px; height: 32px; }
    .number-input span { min-width: 36px; font-size: 0.95rem; }
}

@media (max-width: 480px) {
    /* Extra small adjustments */
    .hero h1 { font-size: 1.7rem; }
    .hero .subtitle { font-size: 0.9rem; }

    .feature-card { padding: 20px 16px; }
    .pricing-card { padding: 24px 20px; }
    .pricing-card .price { font-size: 2.2rem; }

    .auth-card { padding: 24px 16px; }

    .caption-actions .btn {
        font-size: 0.68rem;
        padding: 5px 8px;
    }

    .lang-card {
        padding: 16px 20px;
        min-width: 110px;
    }
}

/* ========== LIGHT MODE OVERRIDES ========== */
[data-theme="light"] .hero-bg .orb {
    opacity: 0.25;
}

[data-theme="light"] .hero-bg .grid-pattern {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
}

[data-theme="light"] .hero-mockup {
    background: var(--bg-secondary);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.05),
        0 4px 24px rgba(0, 0, 0, 0.08),
        0 20px 80px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .hero-mockup-bar {
    background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .mockup-block {
    background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .floating-tag {
    background: var(--bg-secondary);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .pricing-card {
    background: var(--bg-secondary);
}

[data-theme="light"] .pricing-card.featured {
    box-shadow: 0 8px 40px rgba(99, 102, 241, 0.15);
}

/* Dark mode pricing card text - all white */
[data-theme="dark"] .pricing-card .plan-name,
[data-theme="dark"] .pricing-card .plan-price,
[data-theme="dark"] .pricing-card .plan-period,
[data-theme="dark"] .pricing-card .plan-features li {
    color: #fff;
}

[data-theme="light"] .auth-page {
    background: var(--bg-primary);
}

[data-theme="light"] .auth-card {
    background: var(--bg-secondary);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .settings-panel,
[data-theme="light"] .result-panel,
[data-theme="light"] .caption-card {
    background: var(--bg-secondary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .setting-row {
    border-bottom-color: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .setting-select {
    background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .setting-select option {
    background: var(--bg-secondary);
}

[data-theme="light"] .number-input {
    background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .number-input button {
    background: rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .number-input button:hover {
    background: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .mark-checkbox {
    background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .mark-checkbox:hover {
    border-color: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .caption-preview-box {
    background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .upload-area {
    background: rgba(0, 0, 0, 0.01);
}

[data-theme="light"] .upload-area:hover,
[data-theme="light"] .upload-area.dragover {
    background: rgba(99, 102, 241, 0.03);
}

[data-theme="light"] .lang-card {
    background: var(--bg-secondary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .step {
    background: var(--bg-secondary);
}

[data-theme="light"] .install-step {
    background: var(--bg-secondary);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border-color);
}

[data-theme="light"] .download-card {
    background: var(--bg-secondary);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .guide-visual {
    background: rgba(99, 102, 241, 0.05);
}

/* ========== CONTACT PAGE ========== */
.contact-container {
    display: flex;
    justify-content: center;
    max-width: 700px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--accent-primary);
}

.contact-item h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.contact-item a {
    color: var(--accent-primary);
}

.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 32px 40px;
    width: 100%;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: var(--font-base);
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.contact-form select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* Fix dropdown options for dark mode */
.contact-form select option {
    background: #1a1a2e;
    color: #ffffff;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* Phone input group */
.phone-input-group {
    display: flex;
    gap: 8px;
}

.contact-form .phone-input-group .country-code-select {
    width: 130px;
    min-width: 130px;
    flex: 0 0 130px;
}

.contact-form .phone-input-group input[type="tel"] {
    width: 0;
    flex: 1 1 0%;
    min-width: 0;
}

/* Validation errors */
.form-error {
    color: var(--error, #ef4444);
    font-size: 0.8rem;
    margin-top: 6px;
    display: none;
}

.form-group.error .form-error {
    display: block;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: var(--error, #ef4444);
}

.form-group.error input:focus,
.form-group.error select:focus,
.form-group.error textarea:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

/* Form status messages */
.form-status {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    font-size: 0.9rem;
    display: none;
}

.form-status.success {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success, #22c55e);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.form-status.error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error, #ef4444);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* ========== LEGAL PAGES (Terms, Privacy) ========== */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 40px;
}

.legal-section {
    margin-bottom: 32px;
}

.legal-section:last-child {
    margin-bottom: 0;
}

.legal-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.legal-section p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* RTL Support for Contact & Legal */
body.rtl .contact-container {
    direction: rtl;
}

body.rtl .contact-form select {
    background-position: left 12px center;
    padding-right: 16px;
    padding-left: 36px;
}

body.rtl .phone-input-group {
    flex-direction: row-reverse;
}

body.rtl .contact-form .phone-input-group .country-code-select {
    background-position: left 12px center;
    padding-right: 16px;
    padding-left: 36px;
}

body.rtl .legal-content {
    direction: rtl;
    text-align: right;
}

/* Light mode */
[data-theme="light"] .contact-form {
    background: var(--bg-secondary);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .contact-form input,
[data-theme="light"] .contact-form select,
[data-theme="light"] .contact-form textarea {
    background: rgba(0, 0, 0, 0.02);
}

/* Fix dropdown options for light mode */
[data-theme="light"] .contact-form select option {
    background: #ffffff;
    color: #1a1a2e;
}

[data-theme="light"] .legal-content {
    background: var(--bg-secondary);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .contact-icon {
    background: rgba(99, 102, 241, 0.08);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .contact-container {
        padding: 0 16px;
    }

    .contact-form {
        padding: 24px 20px;
    }

    .legal-content {
        padding: 24px;
    }

    .legal-section h3 {
        font-size: 1rem;
    }

    .legal-section p {
        font-size: 0.9rem;
    }
}

/* ========== EXTENSION DEMO COMPONENTS ========== */
/* These replicate the actual EasySub extension UI for the guide page */

.guide-visual.demo-container {
    padding: 0;
    overflow: hidden;
    opacity: 1;
    font-size: 1rem;
}

.demo-extension {
    --demo-bg: #0a0a0f;
    --demo-bg-card: rgba(255, 255, 255, 0.03);
    --demo-border: rgba(255, 255, 255, 0.08);
    --demo-text: #ffffff;
    --demo-text-secondary: rgba(255, 255, 255, 0.6);
    --demo-text-muted: rgba(255, 255, 255, 0.4);
    --demo-accent: #6366f1;
    --demo-accent-secondary: #8b5cf6;
    --demo-success: #10b981;
    --demo-warning: #f59e0b;
    --demo-error: #ef4444;

    background: var(--demo-bg);
    border-radius: 12px;
    padding: 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--demo-text);
    width: 100%;
    font-size: 12px;
    line-height: 1.4;
}

/* Demo Card */
.demo-card {
    background: var(--demo-bg-card);
    border: 1px solid var(--demo-border);
    border-radius: 10px;
    padding: 14px;
}

.demo-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.demo-card-icon {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.15));
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.demo-card-icon svg {
    width: 12px;
    height: 12px;
    stroke: var(--demo-accent);
}

.demo-card-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--demo-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Demo Form Elements */
.demo-form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.demo-form-group {
    flex: 1;
}

.demo-form-label {
    display: block;
    font-size: 10px;
    font-weight: 500;
    color: var(--demo-text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.demo-form-input,
.demo-form-select {
    width: 100%;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--demo-border);
    border-radius: 6px;
    color: var(--demo-text);
    font-size: 11px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.demo-form-input:focus,
.demo-form-select:focus {
    border-color: var(--demo-accent);
}

.demo-form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%236b7280' d='M5 7L1 3h8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 24px;
}

/* Demo Source Toggle */
.demo-source-toggle {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
}

.demo-source-option {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--demo-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--demo-text-muted);
    font-size: 11px;
    font-weight: 500;
}

.demo-source-option svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
}

.demo-source-option.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.1));
    border-color: var(--demo-accent);
    color: var(--demo-text);
}

.demo-source-option:hover:not(.active) {
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--demo-text-secondary);
}

/* Demo Track Chips */
.demo-track-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.demo-track-chip {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--demo-border);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--demo-text-secondary);
}

.demo-track-chip.selected {
    background: linear-gradient(135deg, var(--demo-accent), var(--demo-accent-secondary));
    border-color: transparent;
    color: white;
}

.demo-track-chip:hover:not(.selected) {
    border-color: rgba(255, 255, 255, 0.2);
}

/* Demo Range Toggle */
.demo-range-toggle {
    display: flex;
    gap: 4px;
    padding: 3px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    margin-bottom: 10px;
}

.demo-range-option {
    flex: 1;
    padding: 6px 10px;
    text-align: center;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--demo-text-muted);
}

.demo-range-option.active {
    background: rgba(255, 255, 255, 0.08);
    color: var(--demo-text);
}

/* Demo Duration Badge */
.demo-duration-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 6px;
    font-size: 10px;
}

.demo-duration-badge .label {
    color: var(--demo-text-muted);
}

.demo-duration-badge .value {
    font-family: 'SF Mono', Consolas, monospace;
    font-weight: 600;
    color: var(--demo-success);
}

/* Demo Toggle Switch */
.demo-toggle-switch {
    position: relative;
    width: 40px;
    height: 22px;
    cursor: pointer;
}

.demo-toggle-switch input {
    display: none;
}

.demo-toggle-slider {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 11px;
    transition: all 0.3s;
}

.demo-toggle-slider::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    left: 3px;
    top: 3px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s;
}

.demo-toggle-switch input:checked + .demo-toggle-slider {
    background: linear-gradient(135deg, var(--demo-accent), var(--demo-accent-secondary));
}

.demo-toggle-switch input:checked + .demo-toggle-slider::before {
    transform: translateX(18px);
}

.demo-toggle-switch.small {
    width: 36px;
    height: 20px;
}

.demo-toggle-switch.small .demo-toggle-slider {
    border-radius: 10px;
}

.demo-toggle-switch.small .demo-toggle-slider::before {
    width: 14px;
    height: 14px;
}

.demo-toggle-switch.small input:checked + .demo-toggle-slider::before {
    transform: translateX(16px);
}

/* Demo Option Row */
.demo-option-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: var(--demo-bg-card);
    border: 1px solid var(--demo-border);
    border-radius: 8px;
    margin-bottom: 8px;
}

.demo-option-row:last-child {
    margin-bottom: 0;
}

.demo-option-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.demo-option-icon {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(139, 92, 246, 0.08));
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.demo-option-icon svg {
    width: 14px;
    height: 14px;
    stroke: var(--demo-accent);
}

.demo-option-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--demo-text);
}

/* Demo AI Enhance Row (Special) */
.demo-ai-enhance-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: var(--demo-bg-card);
    border: 1px solid var(--demo-border);
    border-radius: 10px;
    transition: all 0.3s;
}

.demo-ai-enhance-row.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.05));
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.1);
}

.demo-ai-enhance-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.demo-ai-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.1));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.demo-ai-enhance-row.active .demo-ai-icon {
    background: linear-gradient(135deg, var(--demo-accent), var(--demo-accent-secondary));
    box-shadow: 0 0 16px rgba(99, 102, 241, 0.4);
}

.demo-ai-icon svg {
    width: 16px;
    height: 16px;
    stroke: var(--demo-accent);
}

.demo-ai-enhance-row.active .demo-ai-icon svg {
    stroke: white;
}

.demo-ai-label-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--demo-text);
}

.demo-ai-label-subtitle {
    font-size: 10px;
    color: var(--demo-text-muted);
}

.demo-ai-status {
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--demo-text-muted);
    margin-right: 10px;
}

.demo-ai-enhance-row.active .demo-ai-status {
    background: rgba(16, 185, 129, 0.15);
    color: var(--demo-success);
}

/* Demo Punctuation Marks */
.demo-punctuation-container {
    margin-top: 8px;
    margin-left: 38px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--demo-border);
    border-radius: 6px;
}

.demo-punctuation-label {
    font-size: 10px;
    color: var(--demo-text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.demo-punctuation-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.demo-punctuation-mark {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--demo-border);
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--demo-text-secondary);
}

.demo-punctuation-mark.checked {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--demo-accent);
    color: var(--demo-accent);
}

/* Demo Slider */
.demo-slider-container {
    margin-bottom: 12px;
}

.demo-slider-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.demo-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    direction: rtl; /* Flip slider so high values are on left, matching labels */
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    outline: none;
}

.demo-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--demo-accent);
    cursor: pointer;
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.5);
}

.demo-slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 9px;
    color: var(--demo-text-muted);
}

.demo-slider-labels .recommended {
    color: var(--demo-accent);
    font-weight: 600;
}

/* Demo History Item */
.demo-history-item {
    background: var(--demo-bg-card);
    border: 1px solid var(--demo-border);
    border-radius: 10px;
    padding: 12px;
}

.demo-history-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.demo-history-info {
    flex: 1;
    min-width: 0;
}

.demo-history-filename {
    font-size: 12px;
    font-weight: 600;
    color: var(--demo-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.demo-history-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 6px;
}

.demo-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    color: var(--demo-text-muted);
}

.demo-meta-item svg {
    width: 10px;
    height: 10px;
}

.demo-history-badges {
    display: flex;
    gap: 6px;
}

.demo-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 600;
}

.demo-badge.ai {
    background: rgba(99, 102, 241, 0.15);
    color: var(--demo-accent);
}

.demo-badge.stretch {
    background: rgba(16, 185, 129, 0.15);
    color: var(--demo-success);
}

.demo-history-actions {
    display: flex;
    gap: 6px;
}

.demo-action-btn {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.demo-action-btn svg {
    width: 14px;
    height: 14px;
}

.demo-action-btn.preview {
    background: rgba(99, 102, 241, 0.1);
    color: var(--demo-accent);
}

.demo-action-btn.edit {
    background: rgba(34, 197, 94, 0.1);
    color: var(--demo-success);
}

.demo-action-btn.download {
    background: linear-gradient(135deg, var(--demo-accent), var(--demo-accent-secondary));
    color: white;
}

.demo-action-btn.delete {
    background: rgba(239, 68, 68, 0.1);
    color: var(--demo-error);
}

.demo-action-btn:hover {
    transform: scale(1.05);
}

/* Demo User Bar / Minutes Display */
.demo-user-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: var(--demo-bg-card);
    border: 1px solid var(--demo-border);
    border-radius: 10px;
}

.demo-user-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.demo-user-name {
    font-size: 12px;
    font-weight: 500;
    color: var(--demo-text);
}

.demo-logout-btn {
    width: 24px;
    height: 24px;
    background: transparent;
    border: 1px solid var(--demo-border);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--demo-text-muted);
    transition: all 0.2s;
}

.demo-logout-btn:hover {
    border-color: var(--demo-error);
    color: var(--demo-error);
}

.demo-logout-btn svg {
    width: 12px;
    height: 12px;
}

.demo-minutes-display {
    display: flex;
    align-items: center;
    gap: 8px;
}

.demo-minutes-label {
    font-size: 10px;
    color: var(--demo-text-muted);
}

.demo-minutes-value {
    font-size: 14px;
    font-weight: 700;
    font-family: 'SF Mono', Consolas, monospace;
    color: var(--demo-success);
}

.demo-refresh-btn {
    width: 24px;
    height: 24px;
    background: transparent;
    border: 1px solid var(--demo-border);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--demo-text-muted);
    transition: all 0.2s;
}

.demo-refresh-btn:hover {
    border-color: var(--demo-accent);
    color: var(--demo-accent);
}

.demo-refresh-btn svg {
    width: 12px;
    height: 12px;
}

.demo-buy-btn {
    padding: 5px 12px;
    background: linear-gradient(135deg, var(--demo-accent), var(--demo-accent-secondary));
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.demo-buy-btn:hover {
    box-shadow: 0 2px 12px rgba(99, 102, 241, 0.4);
    transform: translateY(-1px);
}

/* Demo Tooltip */
.demo-tooltip {
    position: relative;
    display: inline-flex;
}

.demo-tooltip-icon {
    width: 14px;
    height: 14px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 600;
    color: var(--demo-text-muted);
    cursor: help;
}

.demo-tooltip-content {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    padding: 8px 10px;
    background: #1a1a24;
    border: 1px solid var(--demo-border);
    border-radius: 6px;
    font-size: 10px;
    color: var(--demo-text-secondary);
    line-height: 1.4;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    z-index: 10;
}

.demo-tooltip:hover .demo-tooltip-content {
    opacity: 1;
    visibility: visible;
}

/* RTL Support for Demos */
body.rtl .demo-extension {
    direction: rtl;
}

body.rtl .demo-form-select {
    background-position: left 8px center;
    padding-right: 10px;
    padding-left: 24px;
}

body.rtl .demo-punctuation-container {
    margin-left: 0;
    margin-right: 38px;
}

body.rtl .demo-user-bar {
    flex-direction: row-reverse;
}

body.rtl .demo-minutes-display {
    flex-direction: row-reverse;
}

body.rtl .demo-ai-status {
    margin-right: 0;
    margin-left: 10px;
}

body.rtl .demo-slider {
    direction: ltr; /* In RTL context, use LTR to maintain the same visual flip */
}

/* Responsive Demo */
@media (max-width: 768px) {
    .demo-extension {
        padding: 12px;
        font-size: 11px;
    }

    .demo-form-row {
        flex-direction: column;
        gap: 8px;
    }

    .demo-history-header {
        flex-direction: column;
    }

    .demo-history-actions {
        margin-top: 8px;
    }
}

/* ========== DEMO DROPDOWN OPTIONS ========== */
/* Fix dropdown options for dark mode */
.demo-form-select option {
    background: #1a1a2e;
    color: #ffffff;
}

/* ========== DEMO LIGHT MODE ========== */
[data-theme="light"] .demo-extension {
    --demo-bg: #f8f9fa;
    --demo-bg-card: rgba(0, 0, 0, 0.03);
    --demo-border: rgba(0, 0, 0, 0.1);
    --demo-text: #1a1a2e;
    --demo-text-secondary: rgba(0, 0, 0, 0.7);
    --demo-text-muted: rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .demo-form-input,
[data-theme="light"] .demo-form-select {
    background: rgba(0, 0, 0, 0.04);
    color: var(--demo-text);
}

/* Fix dropdown options for light mode */
[data-theme="light"] .demo-form-select option {
    background: #ffffff;
    color: #1a1a2e;
}

[data-theme="light"] .demo-source-option {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.1);
    color: rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .demo-source-option.active {
    color: var(--demo-text);
}

[data-theme="light"] .demo-track-chip {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.1);
    color: rgba(0, 0, 0, 0.6);
}

[data-theme="light"] .demo-track-chip.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.1));
    color: var(--demo-accent);
}

[data-theme="light"] .demo-range-btn {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
    color: rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .demo-range-btn.active {
    color: var(--demo-text);
}

[data-theme="light"] .demo-duration-badge {
    background: rgba(0, 0, 0, 0.04);
    color: rgba(0, 0, 0, 0.6);
}

[data-theme="light"] .demo-option-row {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .demo-toggle-slider {
    background: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .demo-ai-status {
    background: rgba(0, 0, 0, 0.06);
    color: rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .demo-ai-status.active {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
}

[data-theme="light"] .demo-punctuation-marks {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .demo-mark-checkbox {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.15);
    color: rgba(0, 0, 0, 0.7);
}

[data-theme="light"] .demo-mark-checkbox:hover {
    border-color: rgba(0, 0, 0, 0.25);
}

[data-theme="light"] .demo-slider-track {
    background: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .demo-history-item {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .demo-history-filename {
    color: var(--demo-text);
}

[data-theme="light"] .demo-history-meta {
    color: rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .demo-action-btn {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.1);
    color: rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .demo-action-btn:hover {
    background: rgba(0, 0, 0, 0.08);
    color: rgba(0, 0, 0, 0.7);
}

[data-theme="light"] .demo-user-bar {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .demo-user-name {
    color: var(--demo-text);
}

[data-theme="light"] .demo-refresh-btn {
    border-color: rgba(0, 0, 0, 0.1);
    color: rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .demo-refresh-btn:hover {
    border-color: var(--demo-accent);
    color: var(--demo-accent);
}

[data-theme="light"] .demo-tooltip-content {
    background: #1a1a2e;
    color: #ffffff;
}

/* ========== STRETCH BEFORE/AFTER VISUAL ========== */
.demo-stretch-visual {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--demo-border);
}

.demo-stretch-comparison {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.demo-stretch-side {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.demo-stretch-label {
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--demo-text-muted);
}

.demo-stretch-timeline {
    display: flex;
    height: 22px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--demo-border);
}

.demo-stretch-caption {
    background: linear-gradient(135deg, var(--demo-accent), var(--demo-accent-secondary));
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-weight: 500;
    color: white;
    margin: 2px;
}

.demo-stretch-gap {
    flex: 1;
    background: transparent;
    position: relative;
}

.demo-stretch-gap::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 1px;
    background: repeating-linear-gradient(
        90deg,
        var(--demo-text-muted) 0,
        var(--demo-text-muted) 3px,
        transparent 3px,
        transparent 6px
    );
    opacity: 0.5;
}

.demo-stretch-caption.stretched {
    background: linear-gradient(135deg, #10b981, #059669);
}

/* Light mode for stretch visual */
[data-theme="light"] .demo-stretch-timeline {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
}

/* ========== FLOATING CTA BUTTON ========== */
.floating-cta {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: floatCta 3s ease-in-out infinite;
}

@keyframes floatCta {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.floating-cta-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 28px;
    background: var(--accent-gradient);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.5), 0 0 0 4px rgba(99, 102, 241, 0.15);
    transition: all var(--transition-fast);
    border: none;
    cursor: pointer;
}

.floating-cta-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.6), 0 0 0 6px rgba(99, 102, 241, 0.2);
}

.floating-cta-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.floating-cta-subtext {
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    font-weight: 500;
}

.floating-cta.hidden {
    display: none;
}

body.rtl .floating-cta {
    right: auto;
    left: 24px;
}

@media (max-width: 768px) {
    .floating-cta {
        bottom: 16px;
        right: 16px;
    }

    .floating-cta-btn {
        padding: 14px 22px;
        font-size: 0.9rem;
    }

    body.rtl .floating-cta {
        right: auto;
        left: 16px;
    }
}

/* ========== FREE TRIAL BANNER ========== */
.free-trial-banner {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(99, 102, 241, 0.15));
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-lg);
    padding: 20px 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
    text-align: center;
}

.free-trial-banner-icon {
    font-size: 1.5rem;
}

.free-trial-banner-text {
    font-weight: 600;
    color: var(--text-primary);
}

.free-trial-banner-text span {
    color: var(--success);
}

@media (max-width: 768px) {
    .free-trial-banner {
        flex-direction: column;
        gap: 8px;
        padding: 16px 20px;
    }
}

/* ========== PROFILE PAGE ========== */

.profile-card {
    max-width: 500px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.profile-info {
    margin-bottom: 24px;
}

.profile-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.profile-row:last-child {
    border-bottom: none;
}

.profile-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.profile-value {
    font-weight: 600;
    color: var(--text-primary);
}

.profile-balance {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-primary);
}

.profile-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

[data-theme="light"] .profile-card {
    background: var(--bg-secondary);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

@media (max-width: 480px) {
    .profile-card {
        padding: 24px 16px;
    }

    .profile-actions {
        flex-direction: column;
    }

    .profile-actions .btn {
        width: 100%;
    }
}

/* ========== SUBSCRIPTIONS SECTION ========== */

.subscriptions-section {
    max-width: 600px;
    margin: 40px auto 0;
}

.subscriptions-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.subscription-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin-bottom: 16px;
}

.subscription-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.subscription-plan {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.subscription-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    text-transform: uppercase;
}

.subscription-badge.active {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.subscription-badge.cancelled {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.subscription-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.subscription-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.subscription-row-label {
    color: var(--text-muted);
}

.subscription-row-value {
    font-weight: 500;
    color: var(--text-primary);
}

.subscription-usage-bar {
    width: 100%;
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 4px;
}

.subscription-usage-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 3px;
    transition: width 0.3s ease;
}

.subscription-actions {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.subscription-actions .btn {
    font-size: 0.85rem;
    padding: 8px 16px;
}

.subscriptions-empty {
    text-align: center;
    padding: 32px;
    color: var(--text-muted);
}

.subscriptions-empty p {
    margin-bottom: 16px;
}

.subscriptions-loading {
    text-align: center;
    padding: 24px;
    color: var(--text-muted);
}

[data-theme="light"] .subscription-card {
    background: var(--bg-secondary);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

@media (max-width: 480px) {
    .subscriptions-section {
        margin-top: 32px;
    }

    .subscription-card {
        padding: 16px;
    }

    .subscription-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .subscription-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

/* ========== USER HISTORY SECTION ========== */

.history-section {
    max-width: 700px;
    margin: 40px auto 0;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    gap: 16px;
}

.history-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Filter Popup Button */
.history-filter-wrapper {
    position: relative;
}

.history-filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-primary);
    transition: all 0.2s ease;
    font-family: inherit;
}

.history-filter-btn:hover {
    border-color: var(--accent-primary);
    background: var(--bg-tertiary);
}

.history-filter-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.history-filter-btn .filter-arrow {
    width: 10px;
    height: 10px;
    opacity: 0.6;
}

/* Filter Popup */
.filter-popup {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 280px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    z-index: 100;
    overflow: hidden;
}

[dir="rtl"] .filter-popup {
    right: auto;
    left: 0;
}

.filter-popup.hidden {
    display: none;
}

.filter-popup-section {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
}

.filter-popup-section:last-of-type {
    border-bottom: none;
}

.filter-popup-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-primary);
    transition: color 0.2s ease;
}

.filter-option:hover {
    color: var(--accent-primary);
}

.filter-option input[type="radio"] {
    accent-color: var(--accent-primary);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.filter-date-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.filter-date-row:last-child {
    margin-bottom: 0;
}

.filter-date-row label {
    min-width: 35px;
    font-size: 13px;
    color: var(--text-secondary);
}

.filter-date-row input[type="date"] {
    flex: 1;
    padding: 6px 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 13px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s ease;
}

.filter-date-row input[type="date"]:hover,
.filter-date-row input[type="date"]:focus {
    border-color: var(--accent-primary);
}

.filter-date-row input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.5);
    cursor: pointer;
}

[data-theme="light"] .filter-date-row input[type="date"]::-webkit-calendar-picker-indicator {
    filter: none;
}

.filter-popup-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 16px;
    background: var(--bg-tertiary);
}

/* Table Pagination */
.table-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 12px 12px;
    font-size: 13px;
    color: var(--text-secondary);
    flex-wrap: wrap;
    gap: 12px;
}

.table-pagination.hidden {
    display: none;
}

.pagination-info {
    display: flex;
    align-items: center;
    gap: 4px;
}

.pagination-rows {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-rows select {
    padding: 4px 8px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    outline: none;
}

.pagination-rows select:hover,
.pagination-rows select:focus {
    border-color: var(--accent-primary);
}

.pagination-pages {
    display: flex;
    align-items: center;
    gap: 4px;
}

.pagination-pages button {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination-pages button:hover:not(:disabled) {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.pagination-pages button.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

.pagination-pages button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.history-summary {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.history-summary-item,
.summary-item {
    flex: 1;
    min-width: 100px;
    text-align: center;
}

.history-summary-value,
.summary-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    display: block;
}

.history-summary-label,
.summary-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
    display: block;
}

.history-table-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.history-table {
    width: 100%;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    border-collapse: collapse;
    overflow: hidden;
}

.history-table thead {
    background: var(--bg-tertiary);
}

.history-table th {
    padding: 14px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: left;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
    position: relative;
}

[dir="rtl"] .history-table th {
    text-align: right;
}

.history-table th:hover {
    background: var(--bg-hover, rgba(255, 255, 255, 0.05));
    color: var(--text-primary);
}

.history-table th.sorted {
    color: var(--accent-primary);
}

.history-table th .sort-icon {
    display: inline-block;
    margin-left: 6px;
    font-size: 0.7rem;
    opacity: 0.4;
    transition: opacity 0.2s ease;
}

[dir="rtl"] .history-table th .sort-icon {
    margin-left: 0;
    margin-right: 6px;
}

.history-table th:hover .sort-icon {
    opacity: 0.7;
}

.history-table th.sorted .sort-icon {
    opacity: 1;
}

.history-table tbody tr {
    transition: background 0.15s ease;
}

.history-table tbody tr:nth-child(even) {
    background: var(--bg-tertiary);
}

.history-table tbody tr:hover {
    background: var(--bg-hover, rgba(139, 92, 246, 0.08));
}

.history-table td {
    padding: 12px 16px;
    font-size: 0.9rem;
    color: var(--text-primary);
    border-top: 1px solid var(--border-color);
}

.history-table tbody tr:first-child td {
    border-top: none;
}

/* Legacy grid-based styles (for backwards compatibility) */
.history-table-header {
    display: grid;
    grid-template-columns: 1fr 100px 1fr;
    gap: 16px;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.history-table-header.with-type {
    grid-template-columns: 1fr 100px 100px 1fr;
}

.history-table-row {
    display: grid;
    grid-template-columns: 1fr 100px 1fr;
    gap: 16px;
    padding: 12px 16px;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    align-items: center;
}

.history-table-row.with-type {
    grid-template-columns: 1fr 100px 100px 1fr;
}

.history-table-row:first-child {
    border-top: none;
}

.history-type-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: capitalize;
}

.history-type-badge.purchase {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.history-type-badge.bonus {
    background: rgba(168, 85, 247, 0.15);
    color: #a855f7;
}

.history-empty {
    text-align: center;
    padding: 32px;
    color: var(--text-muted);
}

.history-loading {
    text-align: center;
    padding: 24px;
    color: var(--text-muted);
}

[data-theme="light"] .history-summary,
[data-theme="light"] .history-table {
    background: var(--bg-secondary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .history-table th:hover {
    background: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .history-table tbody tr:hover {
    background: rgba(139, 92, 246, 0.06);
}

[data-theme="light"] .filter-popup {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .filter-date-row input[type="date"] {
    background: #fff;
}

[data-theme="light"] .table-pagination {
    background: #f8f9fa;
}

[data-theme="light"] .pagination-rows select,
[data-theme="light"] .pagination-pages button {
    background: #fff;
}

@media (max-width: 600px) {
    /* History section header - stack title and filter */
    .history-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .history-header h3 {
        margin: 0;
    }

    .history-filter-btn {
        width: 100%;
        justify-content: center;
    }

    .filter-popup {
        position: fixed;
        top: 50%;
        left: 50%;
        right: auto;
        transform: translate(-50%, -50%);
        width: calc(100% - 32px);
        max-width: 320px;
    }

    [dir="rtl"] .filter-popup {
        left: 50%;
        right: auto;
    }

    /* Summary stats - row layout */
    .history-summary {
        flex-direction: column;
        gap: 8px;
    }

    .summary-item {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        text-align: left;
    }

    /* Make table container scrollable horizontally */
    .history-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -16px;
        padding: 0 16px;
    }

    /* Ensure minimum column widths */
    .history-table {
        min-width: 280px;
    }

    /* Hide description column on mobile */
    .history-table th:last-child,
    .history-table td:last-child {
        display: none;
    }

    .history-table th,
    .history-table td {
        padding: 10px 12px;
        font-size: 0.85rem;
        white-space: nowrap;
    }

    /* Pagination - stack vertically */
    .table-pagination {
        flex-direction: column;
        gap: 10px;
        padding: 12px;
    }

    .pagination-info {
        width: 100%;
        justify-content: center;
        order: 1;
    }

    .pagination-rows {
        width: 100%;
        justify-content: center;
        order: 3;
    }

    .pagination-pages {
        width: 100%;
        justify-content: center;
        order: 2;
    }

    .pagination-pages button {
        min-width: 32px;
        height: 32px;
        font-size: 13px;
    }

    /* Legacy grid-based styles */
    .history-table-header,
    .history-table-row {
        grid-template-columns: 1fr 80px;
    }

    .history-table-header.with-type,
    .history-table-row.with-type {
        grid-template-columns: 1fr 80px;
    }

    .history-table-header > *:nth-child(3),
    .history-table-row > *:nth-child(3),
    .history-table-header.with-type > *:nth-child(3),
    .history-table-row.with-type > *:nth-child(3),
    .history-table-header.with-type > *:nth-child(4),
    .history-table-row.with-type > *:nth-child(4) {
        display: none;
    }
}

/* Very small screens */
@media (max-width: 400px) {
    .history-table th,
    .history-table td {
        padding: 8px 10px;
        font-size: 0.8rem;
    }

    /* Hide Type column on very small screens (3rd column in payment table) */
    .history-table th:nth-child(3):not(:last-child),
    .history-table td:nth-child(3):not(:last-child) {
        display: none;
    }

    /* Smaller pagination buttons */
    .pagination-pages button {
        min-width: 28px;
        height: 28px;
        padding: 0 6px;
        font-size: 12px;
    }

    .filter-popup {
        width: calc(100% - 24px);
    }
}

/* ========== CONFIRMATION & RESULT MODALS ========== */

.confirm-modal,
.result-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 20, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: modalFadeIn 0.2s ease-out;
}

.confirm-modal.open,
.result-modal.open {
    display: flex;
}

.confirm-modal-content,
.result-modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.confirm-modal-icon,
.result-modal-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent-primary);
}

.confirm-modal-icon svg,
.result-modal-icon svg {
    width: 32px;
    height: 32px;
}

.confirm-modal-icon.danger {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.result-modal-icon.success {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.result-modal-icon.error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.confirm-modal-content h3,
.result-modal-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 12px;
    color: var(--text-primary);
}

.confirm-modal-content p,
.result-modal-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0 0 24px;
    line-height: 1.5;
}

.confirm-modal-actions,
.result-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.confirm-modal-actions .btn,
.result-modal-actions .btn {
    min-width: 100px;
    padding: 10px 20px;
}

.btn-danger {
    background: #ef4444;
    color: white;
    border: none;
}

.btn-danger:hover {
    background: #dc2626;
}

[data-theme="light"] .confirm-modal,
[data-theme="light"] .result-modal {
    background: rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .confirm-modal-content,
[data-theme="light"] .result-modal-content {
    background: #fff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

@media (max-width: 480px) {
    .confirm-modal-content,
    .result-modal-content {
        padding: 24px 20px;
    }

    .confirm-modal-actions {
        flex-direction: column;
    }

    .confirm-modal-actions .btn {
        width: 100%;
    }
}

/* ========== PRO EDITOR - GLASSMORPHISM ========== */

/* Modal Overlay */
.pro-editor-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 20, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 2000;
    display: none;
    flex-direction: column;
    animation: modalFadeIn 0.3s ease-out;
}

.pro-editor-modal.open {
    display: flex;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Container with Glass Effect */
.pro-editor-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-width: 1000px;
    margin: 20px auto;
    width: calc(100% - 40px);
    padding: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 100%);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 24px;
    box-shadow:
        0 25px 50px rgba(0,0,0,0.4),
        0 0 0 1px rgba(255,255,255,0.05) inset,
        0 1px 0 rgba(255,255,255,0.1) inset;
    overflow: hidden;
}

/* Header */
.pro-editor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    gap: 16px;
    flex-wrap: wrap;
}

.pro-editor-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: rgba(255,255,255,0.95);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 280px;
    letter-spacing: -0.01em;
}

/* Mode Toggle - Glass Pill */
.pro-editor-mode-toggle {
    display: flex;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    padding: 4px;
    gap: 4px;
    position: relative;
}

.pro-editor-mode-toggle .mode-btn {
    padding: 10px 20px;
    border: none;
    background: transparent;
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.pro-editor-mode-toggle .mode-btn:hover:not(.active) {
    color: rgba(255,255,255,0.85);
    background: rgba(255,255,255,0.05);
}

.pro-editor-mode-toggle .mode-btn.active {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4),
                0 0 0 1px rgba(255,255,255,0.1) inset;
}

/* Close Button - Glass */
.pro-editor-close {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.6);
    border-radius: 12px;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.pro-editor-close:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
    transform: scale(1.05);
}

/* Toolbar */
.pro-editor-toolbar {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.pro-editor-toolbar .btn {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.2s ease;
}

.pro-editor-toolbar .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Content Area */
.pro-editor-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    scrollbar-width: thin;
    scrollbar-color: rgba(139, 92, 246, 0.3) transparent;
}

.pro-editor-content::-webkit-scrollbar {
    width: 6px;
}

.pro-editor-content::-webkit-scrollbar-track {
    background: transparent;
}

.pro-editor-content::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.3);
    border-radius: 3px;
}

.pro-editor-content::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.5);
}

/* Caption Blocks - Glass Cards */
.pro-editor-block {
    background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: blockSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.pro-editor-block:nth-child(1) { animation-delay: 0.05s; }
.pro-editor-block:nth-child(2) { animation-delay: 0.1s; }
.pro-editor-block:nth-child(3) { animation-delay: 0.15s; }
.pro-editor-block:nth-child(4) { animation-delay: 0.2s; }
.pro-editor-block:nth-child(5) { animation-delay: 0.25s; }

@keyframes blockSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pro-editor-block:last-child {
    margin-bottom: 0;
}

.pro-editor-block:hover {
    background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.04) 100%);
    border-color: rgba(139, 92, 246, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.1),
                0 0 0 1px rgba(139, 92, 246, 0.1);
}

.pro-editor-block.split-mode {
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15),
                0 10px 30px rgba(139, 92, 246, 0.15);
}

/* Block Header */
.pro-editor-block-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.pro-editor-block-header .block-number {
    font-weight: 700;
    font-size: 0.8rem;
    color: #a78bfa;
    background: rgba(139, 92, 246, 0.15);
    padding: 4px 10px;
    border-radius: 8px;
    letter-spacing: 0.02em;
}

.pro-editor-block-header .block-timestamp {
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.05);
    padding: 5px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.06);
    letter-spacing: 0.03em;
}

/* Words Container */
.pro-editor-words {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-start;
}

/* Word Pill - Glass Style with Gradient */
.word-pill {
    display: inline-block;
    padding: 10px 18px;
    background: linear-gradient(135deg, rgba(139,92,246,0.15) 0%, rgba(99,102,241,0.1) 100%);
    border: 1px solid rgba(139,92,246,0.25);
    border-radius: 14px;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.95);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 30px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(139,92,246,0.08);
    backdrop-filter: blur(5px);
}

.word-pill:hover {
    background: linear-gradient(135deg, rgba(139,92,246,0.25) 0%, rgba(99,102,241,0.18) 100%);
    border-color: rgba(139,92,246,0.4);
    box-shadow: 0 4px 15px rgba(139,92,246,0.2);
    transform: scale(1.03);
}

/* Editable Word Pill (Text Mode) */
.word-pill.editable {
    cursor: text;
}

.word-pill.editable:hover {
    background: linear-gradient(135deg, rgba(139,92,246,0.25) 0%, rgba(99,102,241,0.18) 100%);
    border-color: rgba(139,92,246,0.5);
}

.word-pill.editable:focus {
    outline: none;
    background: linear-gradient(135deg, rgba(139,92,246,0.3) 0%, rgba(99,102,241,0.22) 100%);
    border-color: rgba(139,92,246,0.7);
    box-shadow: 0 0 0 3px rgba(139,92,246,0.2),
                0 4px 15px rgba(139,92,246,0.25);
    transform: scale(1.05);
}

/* Visual feedback on text edit */
.word-pill.edited {
    animation: wordEditGlow 0.5s ease-out;
}

@keyframes wordEditGlow {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); }
    50% { box-shadow: 0 0 15px 5px rgba(34, 197, 94, 0.3); }
    100% { box-shadow: 0 2px 8px rgba(139,92,246,0.08); }
}

/* Word Container with Move Buttons (Time Mode) */
.word-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.word-move-btn {
    width: 28px;
    height: 22px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    backdrop-filter: blur(5px);
}

.word-move-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    border-color: transparent;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.word-move-btn:active:not(:disabled) {
    transform: scale(0.95);
}

.word-move-btn:disabled {
    opacity: 0.2;
    cursor: not-allowed;
}

.word-move-btn svg {
    width: 12px;
    height: 12px;
}

/* Placeholder for words without move buttons */
.word-move-placeholder {
    width: 28px;
    height: 22px;
}

/* Words without any arrows - simpler display */
.word-container.no-arrows {
    justify-content: center;
}

.word-container.no-arrows .word-move-placeholder {
    display: none;
}

/* Split Mode - Word Container Hover Effect */
.pro-editor-block.split-mode .word-container {
    cursor: pointer;
}

.pro-editor-block.split-mode .word-container:hover .word-pill {
    background: linear-gradient(135deg, rgba(239,68,68,0.2), rgba(239,68,68,0.1));
    border-color: rgba(239, 68, 68, 0.5);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.2);
}

.pro-editor-block.split-mode .word-container:first-child {
    cursor: default;
}

.pro-editor-block.split-mode .word-container:first-child:hover .word-pill {
    background: linear-gradient(135deg, rgba(139,92,246,0.15) 0%, rgba(99,102,241,0.1) 100%);
    border-color: rgba(139,92,246,0.25);
    box-shadow: 0 2px 8px rgba(139,92,246,0.08);
}

/* Block Actions */
.pro-editor-block-actions {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding-top: 16px;
    margin-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.pro-editor-block-actions .split-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    padding: 8px 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: rgba(255,255,255,0.7);
    transition: all 0.2s ease;
}

.pro-editor-block-actions .split-btn:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.3);
    color: #a78bfa;
}

.pro-editor-block-actions .split-btn svg {
    transform: rotate(180deg);
}

/* Save Button States */
#proEditorSaveBtn {
    position: relative;
    overflow: hidden;
}

#proEditorSaveBtn.saving {
    pointer-events: none;
}

#proEditorSaveBtn.saving::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: saveShimmer 1.5s infinite;
}

@keyframes saveShimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Success state */
.pro-editor-block.save-success {
    animation: saveSuccess 0.5s ease-out;
}

@keyframes saveSuccess {
    0%, 100% { border-color: rgba(255,255,255,0.08); }
    50% { border-color: rgba(34, 197, 94, 0.5); box-shadow: 0 0 20px rgba(34, 197, 94, 0.2); }
}

/* Error shake animation */
.pro-editor-block.error {
    animation: errorShake 0.4s ease-out;
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

/* RTL Support */
[dir="rtl"] .pro-editor-words {
    direction: rtl;
}

[dir="rtl"] .pro-editor-block-text {
    direction: rtl;
    text-align: right;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .pro-editor-container {
        margin: 10px;
        width: calc(100% - 20px);
        border-radius: 20px;
    }

    .pro-editor-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 20px;
    }

    .pro-editor-header h2 {
        max-width: 100%;
        order: 1;
        font-size: 1rem;
    }

    .pro-editor-mode-toggle {
        order: 3;
        width: 100%;
    }

    .pro-editor-mode-toggle .mode-btn {
        flex: 1;
        text-align: center;
        padding: 10px 12px;
    }

    .pro-editor-close {
        position: absolute;
        top: 16px;
        right: 16px;
        width: 36px;
        height: 36px;
    }

    .pro-editor-toolbar {
        flex-wrap: wrap;
        padding: 12px 16px;
    }

    .pro-editor-content {
        padding: 16px;
    }

    .pro-editor-block {
        padding: 16px;
        border-radius: 14px;
    }

    .pro-editor-block-actions {
        flex-wrap: wrap;
    }

    .word-pill {
        padding: 8px 14px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .pro-editor-words {
        gap: 6px;
    }

    .word-pill {
        padding: 6px 12px;
        font-size: 0.85rem;
        border-radius: 10px;
    }

    .word-move-btn {
        width: 24px;
        height: 20px;
    }
}

/* ========== PRO EDITOR LIGHT MODE ========== */
[data-theme="light"] .pro-editor-modal {
    background: rgba(248, 249, 252, 0.95);
}

[data-theme="light"] .pro-editor-container {
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(248,249,252,0.9) 100%);
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

[data-theme="light"] .pro-editor-header {
    background: rgba(255,255,255,0.8);
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

[data-theme="light"] .pro-editor-header h2 {
    color: var(--text-primary);
}

[data-theme="light"] .pro-editor-mode-toggle {
    background: rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.08);
}

[data-theme="light"] .pro-editor-mode-toggle .mode-btn {
    color: var(--text-secondary);
}

[data-theme="light"] .pro-editor-mode-toggle .mode-btn:hover:not(.active) {
    color: var(--text-primary);
    background: rgba(0,0,0,0.05);
}

[data-theme="light"] .pro-editor-mode-toggle .mode-btn.active {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    color: white;
}

[data-theme="light"] .pro-editor-close {
    border: 1px solid rgba(0,0,0,0.1);
    background: rgba(0,0,0,0.03);
    color: var(--text-secondary);
}

[data-theme="light"] .pro-editor-close:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

[data-theme="light"] .pro-editor-toolbar {
    background: rgba(255,255,255,0.6);
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

/* Reset button - always visible in both modes */
.pro-editor-toolbar .btn-ghost {
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.pro-editor-toolbar .btn-ghost:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
}

[data-theme="light"] .pro-editor-toolbar .btn-ghost {
    color: var(--text-secondary);
    border: 1px solid rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .pro-editor-toolbar .btn-ghost:hover {
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .pro-editor-content {
    background: rgba(248, 249, 252, 0.5);
}

[data-theme="light"] .pro-editor-block {
    background: rgba(255,255,255,0.8);
    border: 1px solid rgba(0,0,0,0.06);
}

[data-theme="light"] .pro-editor-block:hover {
    background: rgba(255,255,255,0.95);
    border-color: rgba(99, 102, 241, 0.2);
}

[data-theme="light"] .pro-editor-block-header .block-number {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    color: white;
}

[data-theme="light"] .pro-editor-block-header .block-timestamp {
    color: var(--text-secondary);
    background: rgba(0,0,0,0.04);
}

[data-theme="light"] .word-pill {
    background: rgba(99, 102, 241, 0.1);
    color: var(--text-primary);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

[data-theme="light"] .word-pill:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.35);
}

[data-theme="light"] .word-pill.editable:focus {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

[data-theme="light"] .word-move-btn {
    background: rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.1);
    color: var(--text-secondary);
}

[data-theme="light"] .word-move-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    color: white;
    border-color: transparent;
}

[data-theme="light"] .pro-editor-block-actions {
    border-top: 1px solid rgba(0,0,0,0.06);
}

[data-theme="light"] .pro-editor-block-actions .split-btn {
    background: rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.1);
    color: var(--text-secondary);
}

[data-theme="light"] .pro-editor-block-actions .split-btn:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
    color: #7c3aed;
}

[data-theme="light"] .pro-editor-block.split-mode .word-container:hover .word-pill {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.4);
}

/* ========== PRO EDITOR DEMO (Guide Page) ========== */
.demo-pro-editor {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid var(--border-color);
}

.demo-pro-editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.demo-pro-editor-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.demo-pro-editor-modes {
    display: flex;
    gap: 4px;
    background: var(--bg-primary);
    padding: 3px;
    border-radius: 8px;
}

.demo-mode-btn {
    padding: 6px 12px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.demo-mode-btn.active {
    background: var(--accent-secondary);
    color: white;
}

.demo-pro-editor-toolbar {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.demo-toolbar-btn {
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-secondary);
    font-size: 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.demo-toolbar-btn.active {
    background: rgba(var(--accent-secondary-rgb), 0.15);
    border-color: var(--accent-secondary);
    color: var(--accent-secondary);
}

.demo-toolbar-btn.save {
    background: var(--accent-secondary);
    border-color: var(--accent-secondary);
    color: white;
    margin-left: auto;
}

[dir="rtl"] .demo-toolbar-btn.save {
    margin-left: 0;
    margin-right: auto;
}

.demo-pro-editor-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.demo-caption-block {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
}

.demo-block-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.demo-block-number {
    background: var(--accent-secondary);
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
}

.demo-block-time {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-family: monospace;
}

.demo-word-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.demo-word-pill {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 0.8rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
}

.demo-word-pill:hover {
    border-color: var(--accent-secondary);
}

.demo-word-pill.active {
    background: rgba(var(--accent-secondary-rgb), 0.15);
    border-color: var(--accent-secondary);
    color: var(--accent-secondary);
}

/* Pro Editor Actions Bar */
.demo-pro-editor-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.demo-action-pill {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.7rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.demo-action-pill:hover {
    border-color: var(--accent-secondary);
    color: var(--accent-secondary);
}

.demo-action-pill.active {
    background: rgba(var(--accent-secondary-rgb), 0.15);
    border-color: var(--accent-secondary);
    color: var(--accent-secondary);
}

.demo-action-pill svg {
    flex-shrink: 0;
}

/* Guide Feature List */
.guide-feature-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 0 0;
}

.guide-feature-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.guide-feature-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent-secondary);
    font-weight: bold;
}

.guide-feature-list li strong {
    color: var(--text-primary);
}

/* RTL support for guide feature list */
[dir="rtl"] .guide-feature-list li {
    padding-left: 0;
    padding-right: 20px;
}

[dir="rtl"] .guide-feature-list li::before {
    left: auto;
    right: 0;
}
