/* Basic Reset & Vazirmatn Local */
@font-face {
    font-family: 'Vazirmatn';
    src: url('fonts/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('fonts/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('fonts/Vazirmatn-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --brand-red: #dd5246;
    --brand-red-hover: #b91c1c;
    --brand-orange: #ea580c;
    --brand-green: #22c55e;
    --brand-blue: #0ea5e9;
    --text-dark: #1f2937;
    --text-gray: #4b5563;
    --bg-slate: #f8fafc;
    --bg-dark: #111827;
    --font-family: 'Vazirmatn', sans-serif;
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-slate);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.main-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #f3f4f6;
    height: 80px;
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-circle {
    width: 40px;
    height: 40px;
    background-color: var(--brand-red);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 900;
    color: #1f2937;
}

.brand-text {
    color: var(--brand-red);
}

.main-nav {
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: #6b7280;
    font-weight: 500;
    font-size: 0.95rem;
}

.main-nav a:hover {
    color: var(--brand-red);
}

/* Hero Section */
.hero-section {
    position: relative;
    /* Reduced padding */
    padding: 60px 0 40px;
    text-align: center;
    background-color: white;
    overflow: hidden;
}

.dot-pattern {
    background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
    background-size: 24px 24px;
}

.blur-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.7;
    z-index: 1;
}

.blob-red {
    top: -80px;
    right: -80px;
    width: 384px;
    height: 384px;
    background-color: #fef2f2;
}

.blob-gray {
    bottom: -80px;
    left: -80px;
    width: 320px;
    height: 320px;
    background-color: #f3f4f6;
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-title {
    font-size: 2.5rem;
    /* Larger on desktop */
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(to right, var(--brand-red), var(--brand-orange));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-gray);
    margin-bottom: 30px;
    font-weight: 500;
}

.hero-cta-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: var(--brand-red);
    color: white;
    padding: 12px 32px;
    border-radius: 16px;
    font-weight: bold;
    font-size: 1.125rem;
    box-shadow: 0 20px 25px -5px rgba(221, 82, 70, 0.3);
    transition: transform 0.3s;
}

.download-btn:hover {
    background-color: var(--brand-red-hover);
    transform: translateY(-4px) scale(1.02);
}

.icon-circle {
    width: 32px;
    height: 32px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.version-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    opacity: 0.8;
}

.version-badge {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--brand-green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.version-num {
    font-weight: bold;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.support-text {
    font-size: 0.75rem;
    color: var(--text-gray);
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

.divider {
    border: 0;
    border-top: 1px solid #e5e7eb;
    margin: 0 auto;
    max-width: 1200px;
}

.py-section {
    padding: 80px 0;
}

.bg-white {
    background-color: white;
}

.bg-slate-50 {
    background-color: #f8fafc;
}

/* Intro Grid */
.intro-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    /* More space for text, video smaller */
    /* Desktop default */
    gap: 48px;
    align-items: center;
}

.badge-pill {
    display: inline-block;
    background-color: #fef2f2;
    color: var(--brand-red);
    font-size: 0.875rem;
    font-weight: bold;
    padding: 4px 12px;
    border-radius: 9999px;
    margin-bottom: 16px;
}

.text-justify {
    text-align: justify;
    color: var(--text-gray);
    margin-bottom: 24px;
}

.intro-benefits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: #f9fafb;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #f3f4f6;
}

.benefit-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #dcfce7;
    color: var(--brand-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.benefit-item span {
    font-size: 0.875rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
    border: 1px solid #f1f5f9;
    position: relative;
    /* Decorative elements behind could be added in HTML, but keeping it clean for now */
}

/* Main Video Card Container - Matching Reference (bg-gray-100 p-2 ...) */
.video-card {
    background-color: #f3f4f6;
    /* bg-gray-100 */
    padding: 8px;
    /* p-2 */
    border-radius: 16px;
    /* rounded-2xl */
    border: 1px solid #e5e7eb;
    /* border-gray-200 */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    /* shadow-lg */
    position: relative;
    /* Removed the decorative skew blob from previous step to match strict reference */
}

/* Internal Video Box/Wrapper */
.video-placeholder-box {
    width: 100%;
    aspect-ratio: 18/9;
    /* Reference uses 18/9 */
    background: transparent;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    /* Reference removes internal border usually, handled by wrapper */
}

/* The Overlay - Exactly from Reference + Grid */
.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;

    /* Reference Gradients */
    background:
        linear-gradient(to bottom, rgba(221, 82, 70, 0.05), transparent 50%),
        radial-gradient(circle at top left, rgba(255, 240, 200, 0.1), transparent 50%),
        radial-gradient(circle at bottom right, rgba(255, 220, 200, 0.1), transparent 50%),
        /* Requested Small Grid Addition - Fainter */
        linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        #ffffff;

    background-size: 100% 100%, 100% 100%, 100% 100%, 20px 20px, 20px 20px, 100% 100%;
    /* Grid size 20px */

    border-radius: 12px;
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
    z-index: 10;
}

.play-overlay:hover {
    /* No major hover bg change in reference, but we can keep subtle */
    backdrop-filter: blur(0px);
}

.play-overlay span {
    font-weight: 800;
    font-size: 1.1rem;
    color: #1a202c;
    /* Reference color */
}

.play-btn-red {
    width: 55px;
    height: 55px;
    background-color: var(--brand-red);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 6px 15px rgba(221, 82, 70, 0.3), 0 0 0 4px rgba(221, 82, 70, 0.1);
    transition: all 0.3s ease;
}

.video-card:hover .play-btn-red {
    transform: scale(1.08);
    /* Reference hover effect */
    box-shadow: 0 10px 20px rgba(221, 82, 70, 0.4), 0 0 0 6px rgba(221, 82, 70, 0.15);
}

.video-caption {
    text-align: center;
    font-size: 0.75rem;
    color: #9ca3af;
    /* text-gray-400 */
    margin-top: 8px;
}

/* Features */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: 1.875rem;
    font-weight: bold;
    color: #111827;
}

.section-header p {
    color: #6b7280;
    margin-top: 8px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.glass-card {
    background: white;
    backdrop-filter: blur(12px);
    border: 1px solid #f3f4f6;
    padding: 24px;
    border-radius: 16px;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background-color: var(--brand-red);
    color: white;
    border-radius: 16px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.brand-bg {
    background-color: var(--brand-red);
}

.feature-card h3 {
    font-weight: bold;
    font-size: 1.125rem;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.875rem;
    color: var(--text-gray);
}

/* Pricing */
.pricing-container {
    max-width: 896px;
    margin: 0 auto;
}

.pricing-card-main {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 2px solid #f3f4f6;
    position: relative;
    transition: transform 0.3s;
}

.pricing-card-main:hover {
    transform: translateY(-4px);
}

.pricing-top-strip {
    height: 8px;
    background-color: var(--brand-red);
    width: 100%;
}

.pricing-content {
    padding: 48px;
}

.pricing-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 32px;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 20px;
}

.pricing-title-box h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 8px;
}

.badge-green {
    background-color: #dcfce7;
    color: #15803d;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: bold;
}

.pricing-price-box .price-val {
    font-size: 3rem;
    font-weight: 900;
    color: var(--brand-red);
}

.pricing-price-box .price-unit {
    font-size: 1.25rem;
    color: var(--text-gray);
    margin-right: 8px;
}

.pricing-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

.pf-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.pf-icon {
    width: 40px;
    height: 40px;
    background-color: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
}

.pf-item h4 {
    font-weight: bold;
    font-size: 1rem;
    color: var(--text-dark);
}

.pf-item p {
    font-size: 0.875rem;
    color: var(--text-gray);
}

.warning-box {
    background-color: #fff7ed;
    border: 1px solid #ffedd5;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 32px;
}

.warning-box i {
    color: var(--brand-orange);
}

.warning-box h5 {
    font-weight: bold;
    font-size: 0.875rem;
    color: #9a3412;
}

.warning-box p {
    font-size: 0.875rem;
    color: #c2410c;
    text-align: justify;
}

.pricing-cta {
    text-align: center;
}

.buy-btn {
    display: inline-block;
    background-color: var(--brand-red);
    color: white;
    font-weight: bold;
    padding: 16px 48px;
    border-radius: 12px;
    box-shadow: 0 10px 15px rgba(221, 82, 70, 0.4);
}

.buy-btn:hover {
    background-color: var(--brand-red-hover);
}

/* Videos */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.video-lesson-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    /* Soft, deep shadow for floating effect */
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05), 0 4px 10px -2px rgba(0, 0, 0, 0.01);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy transition */
    border: 1px solid white;
    position: relative;
    display: flex;
    flex-direction: column;
}

.video-lesson-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.1), 0 10px 20px -5px rgba(0, 0, 0, 0.04);
    border-color: rgba(14, 165, 233, 0.2);
    z-index: 10;
}

.video-thumb {
    width: 100%;
    /* Cinematic Aspect Ratio to reduce height */
    aspect-ratio: 2.35 / 1;
    /* Dark Gradient Background */
    background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Thumbnail Grid Pattern */
.video-thumb::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.6;
}

/* Vignette effect */
.video-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, transparent 40%, rgba(0, 0, 0, 0.6) 100%);
}

.play-btn-blue {
    width: 48px;
    height: 48px;
    background-color: var(--brand-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    transition: transform 0.3s;
    z-index: 10;
}

.video-lesson-card:hover .play-btn-blue {
    transform: scale(1.15);
    background-color: #0284c7;
    box-shadow: 0 0 0 6px rgba(14, 165, 233, 0.3);
}

.video-details {
    padding: 12px 16px;
    background-color: white;
    border-top: 1px solid #f1f5f9;
    /* Center align text */
    text-align: center;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Center horizontally */
}

.video-details p {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-dark);
    line-height: 1.4;
    margin: 0;
}

/* Override Overlay for this section specifically */
.video-lesson-card .play-overlay {
    background: transparent;
    backdrop-filter: none;
    border: none;
}

.video-lesson-card .play-overlay span {
    display: none;
    /* Hide text inside thumbnail to keep it clean, shorter height */
}

/* About Company Dark */
.about-company-section {
    position: relative;
    background-color: var(--bg-dark);
    color: white;
    padding: 50px 0;
    /* Reduced height */
    text-align: center;
    margin-top: 48px;
    /* Very faint grid */
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
}

.about-badge {
    display: inline-block;
    padding: 4px 16px;
    background-color: rgba(31, 41, 55, 0.8);
    border: 1px solid #374151;
    border-radius: 9999px;
    font-size: 0.875rem;
    color: #d1d5db;
    margin-bottom: 24px;
}

.about-title {
    font-size: 2.25rem;
    font-weight: bold;
    margin-bottom: 24px;
}

.about-desc {
    max-width: 768px;
    margin: 0 auto 40px;
    font-size: 1.125rem;
    color: #d1d5db;
    line-height: 1.8;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    border-top: 1px solid #374151;
    padding-top: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.stat-item h3 {
    font-size: 1.875rem;
    font-weight: bold;
    color: var(--brand-red);
}

.stat-item span {
    color: #9ca3af;
    font-size: 0.75rem;
}

/* Contact & Footer */
.contact-section {
    padding: 30px 0;
    /* Reduced height */
    background-color: white;
    position: relative;
    /* Faint gray grid */
    background-image:
        linear-gradient(#f3f4f6 1px, transparent 1px),
        linear-gradient(90deg, #f3f4f6 1px, transparent 1px);
    background-size: 20px 20px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
}

.contact-info h3 {
    font-weight: bold;
    margin-bottom: 8px;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.text-red {
    color: var(--brand-red);
}

.social-icons {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.social-icons a {
    width: 32px;
    height: 32px;
    background-color: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4b5563;
}

.social-icons a:hover {
    background-color: var(--brand-red);
    color: white;
}

.trust-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.trust-logo img {
    height: 96px;
}

.main-footer {
    background-color: #030712;
    color: #9ca3af;
    padding: 16px 0;
    text-align: center;
    border-top: 1px solid #111827;
}

.footer-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    opacity: 0.5;
}

.main-footer p {
    font-size: 0.75rem;
}

/* Responsive */
@media (max-width: 768px) {
    .intro-grid {
        grid-template-columns: 1fr !important;
    }

    .pricing-header-row {
        flex-direction: column;
        text-align: center;
    }

    .pricing-features-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .contact-info {
        align-items: center;
    }

    .hero-title {
        font-size: 1.8rem;
    }
}

/* FIX: Ensure video does not overflow grid container */
.intro-video {
    min-width: 0;
    width: 100%;
}

.video-element {
    /* Ensure video respects container width */
    max-width: 100%;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Ensure placeholder box maintains aspect ratio */
.video-placeholder-box {
    aspect-ratio: 18/9;
}


/* --- Voice Section Styles --- */
.voice-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #fff 0%, #fff1f2 100%); /* بک‌گراند محو قرمز */
    position: relative;
    overflow: hidden;
}

/* پترن نقطه‌ای پس‌زمینه مخصوص این سکشن */
.voice-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(221, 82, 70, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
}

.voice-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Badge */
.ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: white;
    color: var(--brand-orange);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(234, 88, 12, 0.15);
    margin-bottom: 20px;
    border: 1px solid #ffedd5;
}

.voice-title {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.voice-desc {
    color: var(--text-gray);
    margin-bottom: 32px;
    line-height: 1.8;
    text-align: justify;
}

.voice-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.voice-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 500;
}

.voice-features li i {
    color: var(--brand-red);
    background: rgba(221, 82, 70, 0.1);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

/* سمت چپ: کارت و انیمیشن */
.voice-action-card {
    background: white;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.08);
    text-align: center;
    border: 1px solid white;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

/* Mic Animation */
.mic-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.mic-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--brand-red), var(--brand-orange));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 20px rgba(221, 82, 70, 0.4);
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--brand-red);
    opacity: 0;
    animation: mic-pulse 2s infinite cubic-bezier(0.455, 0.03, 0.515, 0.955);
}

.pulse-ring.delay {
    animation-delay: 0.6s;
}

@keyframes mic-pulse {
    0% { transform: scale(0.8); opacity: 0; }
    50% { opacity: 0.5; }
    100% { transform: scale(2.2); opacity: 0; }
}

/* Download Box */
.model-download-box p {
    font-size: 0.9rem;
    margin-bottom: 16px;
    color: var(--text-gray);
}

.model-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background-color: #1f2937; /* Dark button for contrast */
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s;
    width: 100%;
    max-width: 280px;
}

.model-btn:hover {
    background-color: black;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.file-size {
    display: block;
    margin-top: 12px;
    font-size: 0.75rem;
    color: #9ca3af;
}

/* Responsive */
@media (max-width: 768px) {
    .voice-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .voice-desc {
        text-align: center;
    }

    .voice-features {
        align-items: center; /* وسط چین کردن لیست */
    }
}
/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 24, 39, 0.7); /* Darker overlay */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px); /* Stronger blur */
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    padding: 2.5rem;
    border-radius: 24px;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-align: center;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-header h3 {
    margin: 0 0 0.5rem;
    color: var(--text-dark);
    font-size: 1.5rem;
    font-weight: 800;
}

.modal-header p {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.icon-box {
    width: 72px;
    height: 72px;
    background: #fef2f2;
    color: var(--brand-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(221, 82, 70, 0.1);
}

input.serial-input {
    width: 100%;
    padding: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-family: 'Vazirmatn', sans-serif;
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    transition: all 0.3s;
    background: #f8fafc;
}

input.serial-input:focus {
    border-color: var(--brand-red);
    background: white;
    outline: none;
    box-shadow: 0 0 0 4px rgba(221, 82, 70, 0.1);
}

input.serial-input::placeholder {
    color: #cbd5e1;
    font-weight: normal;
    font-size: 1rem;
}

.modal-actions {
    display: flex;
    gap: 12px;
    flex-direction: column;
}

.pay-btn-submit {
    background: linear-gradient(135deg, var(--brand-red), var(--brand-orange));
    color: white;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-family: inherit;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 15px -3px rgba(221, 82, 70, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.pay-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(221, 82, 70, 0.4);
    filter: brightness(1.05);
}

.pay-btn-submit:active {
    transform: translateY(0);
}

.cancel-btn {
    background: white;
    color: var(--text-gray);
    border: 2px solid transparent;
    padding: 12px;
    cursor: pointer;
    font-family: inherit;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.2s;
}

.cancel-btn:hover {
    color: var(--text-dark);
    background: #f1f5f9;
}

