@font-face {
  font-family: 'IranSansX';
  src: url('/static/fonts/IRANSansXFaNum-Regular.woff2') format('woff2'),
       url('/static/fonts/IRANSansXFaNum-Regular.woff') format('woff'),
       url('/static/fonts/IRANSansXFaNum-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IranSansX';
  src: url('/static/fonts/IRANSansXFaNum-Bold.woff2') format('woff2'),
       url('/static/fonts/IRANSansXFaNum-Bold.woff') format('woff'),
       url('/static/fonts/IRANSansXFaNum-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
/* style.css */

/* فونت Vazirmatn از Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700&display=swap');

/* Fallback font loading */
@font-face {
  font-family: 'FallbackFont';
  src: local('Tahoma'), local('Arial'), local('Helvetica');
  font-display: swap;
}

:root {
    --primary-color: #1840E5; /* آبی اصلی */
    --accent-color: #34E0A1;  /* سبز برای دکمه‌های موفقیت */
    --text-color: #00354E; /* رنگ متن عمومی */
    --light-bg: #EFEFEF; /* پس‌زمینه روشن */
    --border-color: #ddd; /* رنگ بوردر */
    --shadow-light: rgba(0, 0, 0, 0.08); /* سایه روشن */
}

html, body {
    height: 100%;
}
body {
    font-family: 'IranSansX', 'Vazirmatn', 'Tahoma', 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: var(--text-color);
    direction: rtl; /* راست به چپ برای فارسی */
    text-align: right;
    line-height: 1.6;
    background-color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    /* Remove flex: 1 0 auto; from .container */
}

/* Hero Section */
.hero {
    background: linear-gradient(to right, var(--primary-color), #0056b3);
    color: #fff;
    padding: 20px 20px 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
}

.hero h1 {
    font-size: 2.8em;
    margin-bottom: 15px;
    line-height: 1.3;
    font-weight: 700;
}

.hero p {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 40px;
    opacity: 0.9;
}

.hero .cta-buttons a {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 15px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.hero .cta-buttons .primary-cta {
    background-color: var(--accent-color);
    color: #fff;
    margin-left: 20px;
    border: 2px solid rgba(52, 224, 161, 0.6);
}

.hero .cta-buttons .primary-cta:hover {
    background-color: #2BB98A ;
    transform: translateY(-2px);
}

.hero .cta-buttons .secondary-cta {
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.hero .cta-buttons .secondary-cta:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* How It Works Section */
.how-it-works {
    padding:20px 20px 80px 20px;
    background-color: var(--light-bg);
    text-align: center;
}

.how-it-works h2 {
    font-size: 2.2em;
    margin-bottom: 60px;
    color: var(--text-color);
    font-weight: 700;
}

.steps-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.step-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow-light);
    text-align: center;
    width: 300px;
    transition: transform 0.3s ease;
}

.step-item:hover {
    transform: translateY(-10px);
}

.step-item .icon {
    margin-bottom: 25px;
    width: 80px;
    height: 80px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    border-radius: 50%;
    color: #fff;
    font-size: 2.5em;
}
.step-item .icon svg {
    fill: #fff;
    width: 40px;
    height: 40px;
}

.step-item h3 {
    font-size: 1.4em;
    margin-bottom: 15px;
    color: var(--text-color);
    font-weight: 700;
}

.step-item p {
    font-size: 1em;
    color: #555;
}

/* What You Get Section */
.what-you-get {
    padding: 20px 20px 80px 20px;
    text-align: center;
    /* display: block;  این خط در CSS اصلی نیازی نیست، توسط JS مدیریت می‌شود */
}

.what-you-get h2 {
    font-size: 2.2em;
    margin-bottom: 60px;
    color: var(--text-color);
    font-weight: 700;
}

.comparison-table {
    display: flex;
    justify-content: center;
    gap: 30px;
    /* display: flex; این خط در CSS اصلی نیازی نیست، توسط JS مدیریت می‌شود */
}

.plan-card {
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 15px;
    box-shadow: 0 5px 15px var(--shadow-light);
    padding: 40px 30px;
    flex: 1;
    min-width: 300px;
    max-width: 450px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: right;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.plan-card.premium {
    font-family: 'IranSansX', sans-serif;
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.2);
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px var(--shadow-light);
}

.plan-card h3 {
    font-size: 1.8em;
    color: var(--text-color);
    margin-bottom: 25px;
    font-weight: 700;
}

.plan-card ul {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
    flex-grow: 1;
}

.plan-card ul li {
    font-size: 1.1em;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    line-height: 1.4;
}

.plan-card ul li svg {
    margin-left: 10px;
    min-width: 20px;
    height: 20px;
    fill: var(--accent-color);
}

.plan-card .price {
    font-size: 2em;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 20px;
    text-align: center;
}

.plan-card .price small {
    font-size: 0.6em;
    font-weight: normal;
    color: #777;
}

.plan-card .cta-button {
    font-family: 'IranSansX', sans-serif;
    display: block;
    width: 100%;
    padding: 15px 0;
    background-color: var(--accent-color);
    color: #fff;
    text-align: center;
    border: none;
    border-radius: 15px;
    font-weight: bold;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: auto;
    text-decoration: none;
}

.plan-card .cta-button:hover {
    background-color: #2BB98A ;
}

.plan-card.free .cta-button {
    background-color: var(--primary-color);
}
.plan-card.free .cta-button:hover {
    background-color: #0056b3;
}

/* Testimonials */
.testimonials {
    padding: 20px 20px 80px 20px;
    background-color: var(--light-bg);
    text-align: center;
    /* display: block; این خط در CSS اصلی نیازی نیست، توسط JS مدیریت می‌شود */
}

.testimonials h2 {
    font-size: 2.2em;
    margin-bottom: 60px;
    color: var(--text-color);
    font-weight: 700;
}

.testimonial-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.testimonial-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px var(--shadow-light);
    max-width: 450px;
    text-align: right;
}

.testimonial-card p {
    margin-bottom: 20px;
    font-size: 1.1em;
    color: #555;
}

.testimonial-card .author {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.testimonial-card .author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

.testimonial-card .author span {
    font-weight: bold;
    font-size: 1.1em;
    color: var(--text-color);
}
.testimonial-card .author small {
    display: block;
    font-size: 0.9em;
    color: #777;
}

/* Final CTA / Form Section */
.final-cta {
    background-color: var(--primary-color);
    color: #fff;
    padding: 60px 20px;
    text-align: center;
    border-top-left-radius: 50px;
    border-top-right-radius: 50px;
    /* display: block; این خط در CSS اصلی نیازی نیست، توسط JS مدیریت می‌شود */
}

.final-cta h2 {
    font-size: 2.5em;
    margin-bottom: 15px;
    font-weight: 700;
}

.final-cta p {
    font-size: 1.2em;
    max-width: 700px;
    margin: 0 auto 40px;
}

.registration-form {
    background-color: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    margin: 0 auto;
    text-align: right;
    color: var(--text-color);
}

.form-group {
    margin-bottom: 25px;
    text-align: right;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--text-color);
    font-size: 1.1em;
}

.form-group input[type="email"],
.form-group input[type="url"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 1em;
    box-sizing: border-box;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-group input[type="file"] {
    display: none; /* Hide default file input */
}

.form-group .file-input-label {
    display: block;
    background-color: var(--light-bg);
    border: 2px dashed var(--border-color);
    padding: 20px;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    color: #666;
    transition: background-color 0.3s ease;
}

.form-group .file-input-label:hover {
    background-color: #e9ecef;
}

.form-group .file-name {
    margin-top: 10px;
    font-size: 0.9em;
    color: #555;
    text-align: center;
}

.form-group .radio-group label {
    display: inline-flex;
    align-items: center;
    margin-left: 20px;
    margin-bottom: 10px;
    font-weight: normal;
    color: var(--text-color);
    font-size: 1em;
    cursor: pointer;
}

.form-group .radio-group input[type="radio"] {
    margin-left: 8px;
    margin-right: 0;
    transform: scale(1.2);
}

.submit-button {
    font-family: 'IranSansX', sans-serif;
    display: block;
    width: 100%;
    padding: 15px 0;
    background-color: var(--accent-color);
    color: #fff;
    text-align: center;
    border: none;
    border-radius: 15px;
    font-weight: bold;
    font-size: 1.2em;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.submit-button:hover {
    background-color: #2BB98A ;
    transform: translateY(-2px);
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
    text-align: center;
    font-size: 1.1em;
    display: none; /* توسط JS مدیریت می‌شود */
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.llm-analysis-section {
    background-color: #e2f0f7;
    border: 1px solid #b3d9f0;
    padding: 15px 15px;
    border-radius: 10px;
    text-align: right;
    width: 100%;
    box-sizing: border-box;
}

.llm-analysis-section h4 {
    color: var(--text-color);
    font-size: 1.2em;
    margin-bottom: 10px;
    font-weight: bold;
}

.llm-analysis-section p {
    font-size: 1em;
    color: #444;
    margin-bottom: 0;
}
.llm-analysis-section ul {
    list-style: disc inside;
    text-align: right;
    padding-right: 20px;
    margin-top: 10px;
}
.llm-analysis-section ul li {
    margin-bottom: 5px;
}
.llm-analysis-section .upgrade-button {
    display: inline-block;
    margin-top: 25px;
    padding: 12px 25px;
    background-color: var(--accent-color);
    color: #fff;
    text-align: center;
    border-radius: 15px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
.llm-analysis-section .upgrade-button:hover {
    background-color: #2BB98A;
    transform: translateY(-2px);
}


.loading-spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: var(--primary-color);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
    display: none; /* توسط JS مدیریت می‌شود */
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Modal styles */
.modal {
    display: none; /* توسط JS مدیریت می‌شود */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
}

/* اضافه کردن استایل برای نمایش مودال */
.modal.show {
    display: flex !important;
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    max-width: 500px;
    width: 75%;
    text-align: right;
    position: relative;
    animation: fadeIn 0.3s ease-out;
}

.modal-content h3 {
    color: var(--text-color);
    margin-bottom: 20px;
    font-size: 1em;
    font-weight: 700;
    text-align: center;
}

.modal-content p {
    margin-bottom: 25px;
    color: #555;
    font-size: 0.7em;
}

.modal-content input[type="email"] {
    width: calc(100% - 24px);
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 1em;
    box-sizing: border-box;
}

.modal-content button {
    display: block;
    width: 100%;
    padding: 12px 0;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.modal-content button:hover {
    background-color: #2BB98A ;
}

.close-button {
    color: #aaa;
    float: left;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 15px;
    left: 20px;
}

.close-button:hover,
.close-button:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

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

/* Footer */
.footer-report {
    flex-shrink: 0;
    width: 100%;
    background: #f8f9fa;
    color: #000;
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #f8f9fa;
    margin-top: auto;
}
.footer-landing {
    flex-shrink: 0;
    width: 100%;
    background: #222;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #111;
    margin-top: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 { font-size: 2em; }
    .hero p { font-size: 1em; }
    .hero .cta-buttons { flex-direction: column; gap: 15px; }
    .hero .cta-buttons .primary-cta { margin-left: 0;margin-top: 10px; }
    .how-it-works h2, .what-you-get h2, .testimonials h2, .final-cta h2 { font-size: 1.8em; }
    .steps-grid, .comparison-table, .testimonial-grid { flex-direction: column; align-items: center; }
    .step-item, .plan-card, .testimonial-card { max-width: 400px; }
    .plan-card h3 { font-size: 1.5em; }
    .plan-card ul li { font-size: 1em; }
    .plan-card .price { font-size: 1.8em; }
    .final-cta p { font-size: 1em; }
    .registration-form { padding: 25px; }
    .form-group input[type="email"], .form-group input[type="url"], .form-group textarea { width: 100%; }
    .modal-content { padding: 20px; }
    .close-button { top: 10px; left: 15px; }
}

/* Responsive Design for Very Small Screens */
@media (max-width: 400px) {
    body {
        font-size: 0.95em;
        padding: 0px;
    }
    .container {
        padding: 8px;
    }
    .hero h1 {
        font-size: 1.2em;
    }
    .hero p {
        font-size: 0.95em;
    }
    .hero {
        padding: 10px 5px 40px 5px;
        border-bottom-left-radius: 25px;
        border-bottom-right-radius: 25px;
    }
    .hero .cta-buttons {
        display: flex;
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
        width: 100%;
        margin: 0 auto;
        box-sizing: border-box;
    }
    .hero .cta-buttons a {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
        padding-left: 0;
        padding-right: 0;
    }
    .how-it-works, .what-you-get, .testimonials, .final-cta {
        padding: 10px 5px 30px 5px;
        margin-top: 20px;
    }
    .how-it-works h2, .what-you-get h2, .testimonials h2, .final-cta h2 {
        font-size: 1.1em;
        margin-bottom: 20px;
    }
    .steps-grid, .comparison-table, .testimonial-grid {
        gap: 10px;
    }
    .step-item, .plan-card, .testimonial-card {
        max-width: 85vw;
        padding: 15px;
    }
    .plan-card, .plan-card.premium {
        min-width: unset;
        width: 90vw;
        max-width: 100vw;
        padding: 15px 15px;
        box-sizing: border-box;
    }
    .plan-card h3 {
        font-size: 1.1em;
    }
    .plan-card .price {
        font-size: 1.2em;
    }
    .plan-card ul li {
        font-size: 0.95em;
    }
    .plan-card .cta-button {
        font-size: 1em;
        padding: 10px 0;
    }
    .registration-form {
        padding: 15px;
        max-width: 98vw;
    }
    .form-group label {
        font-size: 1em;
    }
    .form-group input[type="email"],
    .form-group input[type="url"],
    .form-group textarea {
        font-size: 0.95em;
        padding: 8px;
    }
    .modal-content {
        padding: 8px;
        max-width: 98vw;
    }
    .close-button {
        top: 5px;
        left: 8px;
        font-size: 22px;
    }
    .logo img {
        height: 40px;
    }
    footer {
        font-size: 0.9em;
        padding: 10px 0;
    }
}

@media (max-width: 320px) {
    .hero h1 { font-size: 1em; }
    .hero p { font-size: 0.85em; }
    .plan-card, .plan-card.premium {
        padding: 15px 15px;
        font-size: 0.95em;
    }
    .plan-card h3 { font-size: 1em; }
    .plan-card .price { font-size: 1em; }
    .plan-card .cta-button { font-size: 0.95em; padding: 8px 0; }
    .hero .cta-buttons a { font-size: 0.95em; padding: 8px 0; }
}

/* Updated Header Styles for RTL and Hero Background */
.site-header {
    width: 100%;
    background: linear-gradient(to right, var(--primary-color), #0056b3);
    position: relative;
    z-index: 100;
    padding: 18px 0 10px 0;
    box-shadow: none;

    direction: rtl;
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: center;
}
.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo img {
    height: 60px;
    width: auto;
    display: block;
}

/* Header Content Layout */
.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 20px;
    position: relative;
}

/* Navigation Menu Styles */
.nav-menu {
    display: flex;
    align-items: center;
    margin: 0 20px;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Header CTA Button */
.header-cta {
    display: flex;
    align-items: center;
}

.header-cta-btn {
    background-color: var(--accent-color);
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 15px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.header-cta-btn:hover {
    background-color: #2BB98A;
    transform: translateY(-1px);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    gap: 4px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.mobile-menu-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background-color: #fff;
    border-radius: 1px;
    transition: all 0.3s ease;
    display: block;
}

/* Premium Section Image Styles */
#premiumTabImg {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 10px;
    margin-bottom: 14px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(24, 64, 229, 0.08);
    display: block;
    object-fit: contain;
}

#premiumTabLabel {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.13em;
    text-align: center;
    margin-bottom: 10px;
    font-family: 'IranSansX', 'Vazirmatn', 'Tahoma', 'Arial', sans-serif;
}

#premiumTabDesc {
    color: #444;
    font-size: 1em;
    text-align: center;
    margin-bottom: 10px;
    font-family: 'IranSansX', 'Vazirmatn', 'Tahoma', 'Arial', sans-serif;
    line-height: 1.6;
}

.premium-tabcontent {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.premium-tabs-wrap {
    display: flex;
    gap: 0;
    background: none;
    margin: 0 auto 24px auto;
    border-radius: 18px;
    box-shadow: none;
    border: 1px solid var(--border-color);
    background: #fff;
    min-height: 340px;
}

.premium-tablist {
    flex: 0 0 300px;
    border-right: 1px solid var(--border-color);
}

.premium-tab-btn {
    text-align: right;
    width: 100%;
    padding: 18px 18px 16px 18px;
    font-size: 1.08em;
    border: none;
    background: none;
    cursor: pointer;
    color: #888;
    font-weight: 700;
    border-right: 3px solid transparent;
    border-bottom: 1px solid var(--border-color);
    transition: color 0.2s, border-right 0.2s, background 0.15s;
    font-family: 'IranSansX', 'Vazirmatn', 'Tahoma', 'Arial', sans-serif;
}

.premium-tab-btn.active {
    color: var(--primary-color);
    border-right: 3px solid var(--primary-color);
    background: #f3f6ff;
}

.premium-tab-btn:hover {
    background: #f8f9ff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: -20px;
        width: 280px;
        background-color: #fff;
        z-index: 1000;
        flex-direction: column;
        padding: 16px 0;
        box-sizing: border-box;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        border-radius: 12px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
        border: 1px solid rgba(0, 0, 0, 0.08);
    }
    
    .nav-menu.active {
        display: flex;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0;
        text-align: right;
        width: 100%;
    }
    
    .nav-link {
        font-size: 1rem;
        padding: 12px 20px;
        border-radius: 0;
        display: block;
        width: 100%;
        color: var(--text-color);
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        transition: all 0.2s ease;
        transform: translateX(10px);
        opacity: 0;
    }
    
    .nav-menu.active .nav-link {
        transform: translateX(0);
        opacity: 1;
    }
    
    .nav-menu.active .nav-link:nth-child(1) { transition-delay: 0.1s; }
    .nav-menu.active .nav-link:nth-child(2) { transition-delay: 0.15s; }
    .nav-menu.active .nav-link:nth-child(3) { transition-delay: 0.2s; }
    .nav-menu.active .nav-link:nth-child(4) { transition-delay: 0.25s; }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    .nav-link:hover {
        background-color: rgba(24, 64, 229, 0.05);
        color: var(--primary-color);
    }
    
    .header-cta {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .header-content {
        justify-content: space-between;
    }
    
    .premium-tabs-wrap {
        flex-direction: column;
    }
    
    .premium-tablist {
        flex: none;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    #premiumTabImg {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 50px;
    }
    
    .nav-menu {
        width: 240px;
    }
    
    .nav-link {
        font-size: 0.95rem;
        padding: 10px 16px;
    }
    
    .mobile-menu-toggle {
        padding: 6px;
    }
    
    .mobile-menu-toggle span {
        width: 20px;
        height: 2px;
    }
}

/* --- Premium Sub-Tabs: Horizontal Scrollable, Mobile-First --- */
.premium-subtabs {
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  overflow-y: hidden;
  gap: 0;
  border-bottom: 1.5px solid var(--border-color);
  margin-bottom: 24px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}
.premium-subtab-btn {
  background: none;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 1em;
  color: #888;
  padding: 10px 18px 8px 18px;
  cursor: pointer;
  border-bottom: 2.5px solid transparent;
  font-weight: 700;
  min-width: 140px;
  transition: color 0.2s, border-bottom 0.2s;
  white-space: nowrap;
}
.premium-subtab-btn.active {
  color: var(--primary-color);
  border-bottom: 2.5px solid var(--primary-color);
}
.premium-subtabs::-webkit-scrollbar {
  height: 5px;
  background: #f2f2f2;
}
.premium-subtabs::-webkit-scrollbar-thumb {
  background: #e0e0e0;
  border-radius: 3px;
}
@media (max-width: 600px) {
  .premium-subtabs {
    padding-bottom: 4px;
    margin-bottom: 18px;
  }
  .premium-subtab-btn {
    font-size: 0.98em;
    padding: 10px 10px 8px 10px;
    min-width: 110px;
  }
}

/* --- Premium Report Section: Accordion (Mobile) & Vertical Tabs (Desktop) --- */
.premium-accordion {
  width: 100%;
  max-width: 500px;
  margin: 0 auto 24px auto;
}
.premium-accordion-item {
  border-bottom: 1px solid var(--border-color);
  background: #fff;
}
.premium-accordion-header {
  width: 100%;
  background: none;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 1.05em;
  color: var(--text-color);
  padding: 18px 16px 16px 16px;
  text-align: right;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 700;
  transition: background 0.15s;
}
.premium-accordion-header[aria-expanded="true"] {
  background: #f3f6ff;
}
.premium-accordion-header:focus {
  background: #e8f0fe;
}
.accordion-arrow {
  font-size: 1.2em;
  margin-right: 8px;
  color: #888;
  transition: transform 0.2s;
}
.premium-accordion-panel {
  padding: 18px 16px 18px 16px;
  background: #fff;
  animation: fadeIn 0.3s;
}

/* Desktop: Vertical Tabs Layout */
@media (min-width: 900px) {
  .premium-tabs-wrap {
    display: flex;
    gap: 0;
    background: none;
    margin: 0 auto 24px auto;
    border-radius: 18px;
    box-shadow: none;
    border: 1px solid var(--border-color);
    background: #fff;
  }
  .premium-tablist {
    display: flex;
    flex-direction: column;
    min-width: 210px;
    border-left: 1px solid var(--border-color);
    background: #f7fafd;
    border-radius: 0 15px 15px 0;
    overflow: hidden;
  }
  .premium-tab-btn {
    background: none;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 1.05em;
    color: #888;
    padding: 18px 18px 16px 18px;
    text-align: right;
    cursor: pointer;
    font-weight: 700;
    border-bottom: 1px solid var(--border-color);
    border-right: 3px solid transparent;
    transition: color 0.2s, border-right 0.2s, background 0.15s;
  }
  .premium-tab-btn.active {
    color: var(--primary-color);
    background: #f3f6ff;
    border-right: 3px solid var(--primary-color);
  }
  .premium-tab-btn:focus {
    background: #e8f0fe;
  }
  .premium-tabcontent {
    flex: 1 1 ;
    padding: 32px 32px 32px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 15px 0 0 15px;
    min-width: 0;
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
p

.report-markdown {
  line-height: 2;
  font-size: 1.08em;
  color: #222;
  margin-bottom: 1.5em;
  word-break: break-word;
}
.report-markdown strong {
  color: var(--primary-color);
  font-weight: bold;
}
.report-markdown ul {
  padding-right: 24px;
  margin-bottom: 1em;
  list-style: disc inside;
}
.report-markdown li {
  margin-bottom: 0.5em;
  font-size: 1em;
  line-height: 2;
  direction: rtl;
  text-align: right;
}