/* --- فونت و پایه‌ها - تم حرفه‌ای با ابهت و سبز لجنی --- */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800;900&display=swap');

/* ============================================
   تعریف متغیرها (ریشه)
   ============================================ */
:root {
    /* رنگ‌های اصلی برند */
    --cyber-crimson: #6B1010;
    --cyber-dark-red: #4A0A0A;
    --cyber-jungle-green: #1A3A2A;
    --cyber-green-bright: #2A5A3A;
    --cyber-green-accent: #3A7A4A;
    --cyber-yellow: #D4A010;
    --cyber-yellow-bright: #E8B820;

    /* حالت پیش‌فرض (دارک) */
    --cyber-dark: #0A0C0E;
    --cyber-gray: #111315;
    --cyber-card: #16181C;
    --cyber-border: #2A2D32;
    --cyber-text: #E8E6E0;
    --cyber-text-dim: #8A8578;
    --cyber-success: #2A5A3A;
    --cyber-blue: #1A4A6A;

    /* گرادیان‌ها */
    --gradient-crimson: linear-gradient(135deg, var(--cyber-crimson) 0%, var(--cyber-dark-red) 100%);
    --gradient-green: linear-gradient(135deg, var(--cyber-jungle-green) 0%, var(--cyber-green-bright) 100%);
    --gradient-yellow: linear-gradient(135deg, var(--cyber-yellow) 0%, var(--cyber-yellow-bright) 100%);

    /* متغیرهای باینری و آیکون */
    --binary-opacity-light: 0.70;
    --binary-opacity-dark: 0.40;
    --binary-color-light: #011007;
    --binary-color-dark: #b0e7be;
    --icon-color-light: #6B1010;
    --icon-color-dark: #D4A010;
    --highlight-color-light: #D4A010;
    --highlight-color-dark: #D4A010;

    /* متغیرهای وابسته به تم (پیش‌فرض دارک) */
    --icon-color: var(--icon-color-dark);
    --highlight-color: var(--highlight-color-dark);
    --logo-title-color: #ffffff;
}

/* ===== لایت مود ===== */
html.light {
    --cyber-dark: #E8E4DC;
    --cyber-gray: #DDD8CE;
    --cyber-card: #F5F2EC;
    --cyber-border: #C8C0B0;
    --cyber-text: #1A1A18;
    --cyber-text-dim: #5A5548;
    --icon-color: var(--icon-color-light);
    --highlight-color: var(--highlight-color-light);
    --logo-title-color: #000000;
}

/* ===== دارک مود ===== */
html.dark {
    --cyber-dark: #0A0C0E;
    --cyber-gray: #111315;
    --cyber-card: #16181C;
    --cyber-border: #2A2D32;
    --cyber-text: #E8E6E0;
    --cyber-text-dim: #8A8578;
    --icon-color: var(--icon-color-dark);
    --highlight-color: var(--highlight-color-dark);
    --logo-title-color: #ffffff;
}

/* ============================================
   ریست و استایل پایه
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: var(--cyber-dark);
    color: var(--cyber-text);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.2s ease;
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: var(--cyber-crimson);
    text-decoration: none;
    transition: all 0.2s ease;
}
a:hover {
    color: var(--cyber-yellow-bright);
}

/* ============================================
   دکمه تغییر تم
   ============================================ */
.theme-toggle {
    display: none;
}
.theme-toggle-nav {
    background: var(--cyber-card);
    border: 1px solid var(--cyber-crimson);
    border-radius: 50px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--cyber-crimson);
    transition: all 0.3s ease;
    margin-right: 15px;
}
.theme-toggle-nav:hover {
    background: var(--cyber-crimson);
    color: white;
    transform: scale(1.05);
}

/* ============================================
   پس‌زمینه باینری
   ============================================ */
.binary-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
html.light .binary-bg {
    opacity: var(--binary-opacity-light);
}
html.dark .binary-bg {
    opacity: var(--binary-opacity-dark);
}

.binary-column {
    position: fixed;
    bottom: -100px;
    font-family: monospace;
    white-space: nowrap;
    animation: floatUp linear infinite;
    pointer-events: none;
}
html.light .binary-column {
    color: var(--binary-color-light);
    text-shadow: 0 0 5px rgba(42, 90, 58, 0.3);
}
html.dark .binary-column {
    color: var(--binary-color-dark);
    text-shadow: 0 0 8px rgba(58, 122, 74, 0.4);
}

@keyframes floatUp {
    0% {
        transform: translateY(0);
        opacity: 0.9;
    }
    100% {
        transform: translateY(-120vh);
        opacity: 0;
    }
}

/* ============================================
   هدر و ناوبری
   ============================================ */
header,
.main-container,
footer,
.alert-ticker {
    position: relative;
    z-index: 1;
}

header {
    background-color: var(--cyber-gray);
    border-bottom: 2px solid var(--cyber-yellow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 32px;
}

/* --- لوگو --- */
.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}
.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.logo-placeholder {
    width: 48px;
    height: 48px;
    background: var(--gradient-crimson);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--cyber-yellow-bright) !important;
}
.logo-placeholder i {
    color: var(--cyber-yellow-bright) !important;
}
.logo-text h1 {
    font-size: 22px;
    font-weight: 900;
    color: var(--logo-title-color);
}
.logo-text p {
    font-size: 10px;
    color: var(--cyber-text-dim);
}

/* --- منو --- */
nav {
    flex: 1;
}
nav ul {
    display: flex;
    list-style: none;
    gap: 5px;
    align-items: center;
    margin: 0;
    padding: 0;
}
nav ul li {
    position: relative;
}
nav ul li a {
    color: var(--cyber-text);
    text-decoration: none;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 8px;
    transition: all 0.2s;
}
nav ul li a:hover,
nav ul li a.active {
    background-color: var(--cyber-crimson);
    color: white;
}
/* دکمه تلگرام */
.tg-btn {
    background: var(--cyber-crimson) !important;
    color: white !important;
    border-radius: 30px !important;
}
.tg-btn:hover {
    background: var(--cyber-dark-red) !important;
    color: white !important;
}

/* --- منوی کشویی --- */
.dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--cyber-card);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    border-radius: 12px;
    border: 1px solid var(--cyber-border);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    transition: all 0.2s;
    z-index: 100;
}
nav ul li:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown a {
    padding: 12px 20px;
    border-bottom: 1px solid var(--cyber-border);
    display: block;
    color: var(--cyber-text-dim);
}
.dropdown a:hover {
    color: var(--cyber-crimson);
    background: none;
}
.dropdown a:last-child {
    border-bottom: none;
}

/* --- منوی همبرگر --- */
.menu-toggle {
    display: none;
    font-size: 26px;
    cursor: pointer;
    color: var(--cyber-crimson);
    background: none;
    border: none;
}

/* ============================================
   Ticker (اخبار فوری)
   ============================================ */
.alert-ticker {
    background-color: var(--cyber-crimson);
    padding: 14px 0;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-bottom: 3px solid var(--cyber-yellow);
    position: relative;
    z-index: 1001;
}
.ticker-title {
    background: var(--cyber-dark-red);
    padding: 0 30px;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: 900;
    font-size: 18px;
    gap: 10px;
    white-space: nowrap;
    color: white;
    z-index: 2;
}
.ticker-wrap {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 38px;
}
.ticker-content {
    position: absolute;
    white-space: nowrap;
    font-size: 18px;
    font-weight: 500;
    color: white;
    line-height: 38px;
    animation: tickerMove 35s linear infinite;
    direction: ltr;
}
.ticker-content a {
    color: white;
    text-decoration: underline;
}
.ticker-content a:hover {
    color: var(--cyber-yellow-bright);
}
@keyframes tickerMove {
    0% {
        left: 100%;
        transform: translateX(0);
    }
    100% {
        left: 0;
        transform: translateX(-100%);
    }
}
.alert-ticker:hover .ticker-content {
    animation-play-state: paused;
}

/* ============================================
   محتوای اصلی
   ============================================ */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
}

/* --- بخش قهرمان (Hero) --- */
.hero-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    background: var(--cyber-card);
    border-radius: 24px;
    padding: 60px 50px;
    margin: 40px 0;
    border: 1px solid var(--cyber-border);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(107, 16, 16, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    flex: 1;
    text-align: center;
}
.hero-content h2 {
    font-size: 38px;
    font-weight: 900;
    margin-bottom: 20px;
    color: var(--cyber-text);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}
.hero-content h2 .highlight-text {
    color: var(--highlight-color);
    font-size: 48px;
    letter-spacing: 2px;
}
.hero-content h2 .subtitle-text {
    font-size: 22px;
    font-weight: 500;
    color: var(--cyber-text-dim);
    letter-spacing: 1px;
}
.hero-content p {
    font-size: 16px;
    color: var(--cyber-text-dim);
    max-width: 550px;
    margin: 0 auto 30px auto;
    line-height: 1.8;
}
.hero-stats {
    display: flex;
    gap: 35px;
    margin-bottom: 35px;
    justify-content: center;
}
.hero-stat {
    text-align: center;
}
.stat-number {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: var(--cyber-green-bright);
}
.stat-label {
    font-size: 13px;
    color: var(--cyber-text-dim);
}
.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--gradient-crimson);
    color: white;
    text-decoration: none;
    padding: 14px 32px;
    border-radius: 40px;
    font-weight: 800;
    transition: all 0.2s;
}
.hero-btn:hover {
    transform: translateX(-5px);
    box-shadow: 0 5px 20px rgba(107, 16, 16, 0.4);
    color: white;
}
.hero-image {
    flex: 0 0 auto;
    max-width: 650px;
    width: 100%;
}
.hero-banner {
    width: 100%;
    height: auto;
    border-radius: 20px;
    border: 2px solid var(--cyber-crimson);
    box-shadow: 0 0 25px rgba(107, 16, 16, 0.4);
    transition: all 0.3s ease;
}
.hero-banner:hover {
    transform: scale(1.02);
    box-shadow: 0 0 35px rgba(107, 16, 16, 0.5);
}

/* --- سرتیتر بخش‌ها --- */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 50px 0 25px 0;
}
.section-title {
    font-size: 24px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--cyber-crimson);
    border-right: 4px solid var(--cyber-crimson);
    padding-right: 16px;
}
html.dark .section-title,
html.dark .section-title i {
    color: #ffffff;
}
html.dark .section-title {
    border-right-color: #ffffff;
}
.view-all {
    color: var(--cyber-text-dim);
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}
.view-all:hover {
    color: var(--cyber-green-bright);
}

/* --- شبکه اخبار --- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}
.news-card {
    background: var(--cyber-card);
    border-radius: 20px;
    padding: 28px;
    border: 1px solid var(--cyber-border);
    transition: all 0.3s;
    position: relative;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.news-card.featured {
    background: linear-gradient(135deg, var(--cyber-card) 0%, rgba(107, 16, 16, 0.08) 100%);
    border-color: var(--cyber-yellow);
}
.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
    border-color: var(--cyber-green-bright);
}
.news-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--cyber-yellow);
    color: #0A0C0E;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
}
.news-badge.danger {
    background: var(--cyber-crimson);
    color: white;
}
.news-badge.intl {
    background: var(--cyber-blue);
    color: white;
}
.news-icon {
    font-size: 48px;
    color: var(--cyber-crimson);
    margin-bottom: 20px;
}
.news-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
    line-height: 1.5;
}
.news-card h3 a {
    color: var(--cyber-text);
    text-decoration: none;
}
.news-card h3 a:hover {
    color: var(--cyber-green-bright);
}
.news-card p {
    font-size: 13px;
    color: var(--cyber-text-dim);
    margin-bottom: 18px;
    line-height: 1.7;
}
.news-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: var(--cyber-text-dim);
    margin-bottom: 18px;
}
.read-more {
    color: var(--cyber-crimson);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.read-more:hover {
    gap: 12px;
    color: var(--cyber-green-bright);
}

/* --- شبکه اسناد --- */
.docs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.doc-card {
    background: var(--cyber-card);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 18px;
    border: 1px solid var(--cyber-border);
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.doc-card:hover {
    border-color: var(--cyber-green-bright);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}
.doc-card i {
    font-size: 44px;
    color: var(--cyber-crimson);
}
.doc-info {
    flex: 1;
}
.doc-info h3 {
    font-size: 15px;
    margin-bottom: 5px;
}
.doc-info h3 a {
    color: var(--cyber-text);
    text-decoration: none;
}
.doc-info h3 a:hover {
    color: var(--cyber-green-bright);
}
.doc-info p {
    font-size: 12px;
    color: var(--cyber-text-dim);
    margin-bottom: 4px;
}
.doc-size {
    font-size: 10px;
    color: var(--cyber-text-dim);
}
.download-btn {
    background: var(--cyber-gray);
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cyber-crimson);
    text-decoration: none;
    transition: all 0.2s;
}
.download-btn:hover {
    background: var(--cyber-green-bright);
    color: white;
}

/* --- بخش گزارش --- */
.report-section {
    margin: 60px 0;
    background: var(--cyber-card);
    border-radius: 28px;
    padding: 40px;
    border: 1px solid var(--cyber-border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.report-header {
    text-align: center;
    margin-bottom: 35px;
}
.report-header h2 {
    font-size: 28px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--cyber-crimson);
}
html.dark .report-header h2,
html.dark .report-header h2 i {
    color: #ffffff;
}
.report-header p {
    color: var(--cyber-text-dim);
}
.report-form-container {
    max-width: 700px;
    margin: 0 auto;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--cyber-crimson);
}
.form-group input,
.form-group textarea {
    width: 100%;
    background: var(--cyber-dark);
    border: 1px solid var(--cyber-border);
    padding: 14px 16px;
    color: var(--cyber-text);
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--cyber-green-bright);
    background: var(--cyber-card);
    box-shadow: 0 0 0 3px rgba(42, 90, 58, 0.15);
}
.file-group input[type="file"] {
    padding: 10px;
    background: transparent;
}
.file-hint {
    display: block;
    font-size: 11px;
    color: var(--cyber-text-dim);
    margin-top: 8px;
}
.submit-btn {
    background: var(--gradient-green);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 40px;
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    justify-content: center;
    transition: all 0.2s;
}
.ticker-content a {
    display: inline-block;
    padding: 0 6px;
}

/*.ticker-content a:not(:last-child)::after {
    content: " • ";
    padding: 0 10px;
    color: rgba(255,255,255,0.4);
    text-decoration: none;
}*/

/* دارک مود */
html.dark .ticker-content a:not(:last-child)::after {
    color: rgba(255,255,255,0.3);
}

/* لایت مود */
html.light .ticker-content a:not(:last-child)::after {
    color: rgba(0,0,0,0.3);
}
.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(42, 90, 58, 0.4);
    background: var(--cyber-green-bright);
}

/* ============================================
   فوتر
   ============================================ */
footer {
    background: var(--cyber-gray);
    border-top: 1px solid var(--cyber-border);
    margin-top: 60px;
    padding: 50px 24px 20px;
}
.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding: 0 32px;
}
.footer-logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
}
.footer-logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.footer-logo-box {
    width: 32px;
    height: 32px;
    background: var(--gradient-crimson);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--cyber-yellow-bright) !important;
    flex-shrink: 0;
}
.footer-logo-box i {
    color: var(--cyber-yellow-bright) !important;
}
.footer-logo-text span {
    font-size: 16px;
    font-weight: 900;
    color: var(--logo-title-color);
    display: block;
    line-height: 1.2;
}
.footer-col p {
    font-size: 13px;
    color: var(--cyber-text-dim);
    line-height: 1.8;
    margin-bottom: 20px;
}
.social-links {
    display: flex;
    gap: 15px;
}
.social-links a {
    width: 40px;
    height: 40px;
    background: var(--cyber-card);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cyber-text-dim);
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid var(--cyber-border);
}
.social-links a:hover {
    background: var(--cyber-green-bright);
    color: white;
    border-color: var(--cyber-green-bright);
}
.footer-col h3 {
    font-size: 16px;
    margin-bottom: 20px;
    color: var(--cyber-crimson);
}
.footer-col ul {
    list-style: none;
}
.footer-col ul li {
    margin-bottom: 12px;
}
.footer-col ul li a {
    color: var(--cyber-text-dim);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}
.footer-col ul li a:hover {
    color: var(--cyber-green-bright);
}
.footer-bottom {
    text-align: center;
    padding-top: 35px;
    margin-top: 35px;
    border-top: 1px solid var(--cyber-border);
    font-size: 12px;
    color: var(--cyber-text-dim);
}

/* ============================================
   مودال
   ============================================ */
.modal-notify {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: all 0.2s;
}
.modal-notify.show {
    visibility: visible;
    opacity: 1;
}
.modal-content {
    background: var(--cyber-card);
    border: 2px solid var(--cyber-yellow);
    border-radius: 24px;
    padding: 35px;
    text-align: center;
    max-width: 400px;
    width: 90%;
}
.modal-content i {
    font-size: 60px;
    color: var(--cyber-green-bright);
    margin-bottom: 20px;
}
.modal-content h3 {
    color: var(--cyber-crimson);
    margin-bottom: 15px;
}
.modal-close {
    margin-top: 20px;
    background: var(--gradient-green);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
}
.modal-close:hover {
    background: var(--cyber-green-bright);
}

/* ============================================
   ریسپانسیو - کنترل کامل با کلاس‌ها
   ============================================ */

/* ===== حالت دسکتاپ مود (غیرفعال کردن همه استایل‌های موبایل) ===== */
body.desktop-mode .menu-toggle {
    display: none !important;
}

body.desktop-mode nav ul {
    display: flex !important;
    position: static !important;
    flex-direction: row !important;
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
}

body.desktop-mode .dropdown {
    position: absolute !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

body.desktop-mode nav ul li:hover .dropdown {
    opacity: 1 !important;
    visibility: visible !important;
}

body.desktop-mode .nav-container {
    justify-content: space-between !important;
    padding: 12px 32px !important;
}

body.desktop-mode .logo-area {
    margin-right: 0 !important;
}

body.desktop-mode .theme-toggle-li {
    margin-top: 0 !important;
}

/* ===== حالت موبایل واقعی (فقط دستگاه‌های لمسی با عرض کم) ===== */
@media (max-width: 768px) {
    /* منوی همبرگر */
    .menu-toggle {
        display: block;
    }
    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--cyber-card);
        flex-direction: column;
        padding: 20px;
        border-top: 2px solid var(--cyber-crimson);
        z-index: 999;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
        margin: 0 !important;
    }
    nav ul.show {
        display: flex;
    }
    /* کشویی در موبایل به صورت آکاردئونی */
    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        margin-top: 10px;
        box-shadow: none;
        border: 1px solid var(--cyber-border);
    }
    .has-dropdown.open .dropdown {
        display: block;
    }
    /* دکمه تم در منوی موبایل */
    nav ul li:last-child {
        margin-top: 15px;
        justify-content: center;
    }

    /* گریدها تک‌ستونی */
    .news-grid,
    .docs-grid,
    .form-row {
        grid-template-columns: 1fr;
    }
    .footer-content {
        grid-template-columns: 1fr;
    }
    .nav-container {
        justify-content: space-between;
    }
    
    /* ===== تغییرات ticker در موبایل ===== */
    .alert-ticker .ticker-title {
        font-size: 15px !important;
        padding: 0 18px !important;
    }
    .alert-ticker .ticker-content {
        font-size: 15px !important;
        line-height: 38px !important;
        animation-duration: 18s !important;
    }
    .alert-ticker .ticker-wrap {
        height: 38px !important;
    }
    
    /* ===== منوی همبرگر به چپ در موبایل ===== */
    .menu-toggle {
        position: absolute;
        left: 20px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 28px;
        z-index: 1001;
    }
    .nav-container {
        position: relative;
        justify-content: center;
        padding: 12px 16px;
    }
    .logo-area {
        margin-right: 0;
    }
}

/* ===== گوشی‌های خیلی کوچک ===== */
@media (max-width: 480px) {
    .hero-content h2 {
        font-size: 28px;
    }
    .hero-content h2 .highlight-text {
        font-size: 32px;
    }
    .hero-content h2 .subtitle-text {
        font-size: 18px;
    }
    .hero-section {
        padding: 30px 20px;
    }
    .section-title {
        font-size: 20px;
    }
    .news-card {
        padding: 20px;
    }
    
    /* ===== تغییرات ticker در گوشی کوچک ===== */
    .alert-ticker .ticker-title {
        font-size: 13px !important;
        padding: 0 14px !important;
    }
    .alert-ticker .ticker-content {
        font-size: 13px !important;
        line-height: 36px !important;
        animation-duration: 15s !important;
    }
    .alert-ticker .ticker-wrap {
        height: 36px !important;
    }
    .menu-toggle {
        left: 15px;
        font-size: 26px;
    }
}

/* ===== تبلت ===== */
@media (max-width: 992px) {
    .news-grid,
    .docs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-section {
        flex-direction: column;
        text-align: center;
    }
    .hero-content p {
        margin: 0 auto 25px auto;
    }
    .hero-stats {
        justify-content: center;
    }
    .hero-image {
        max-width: 100%;
        margin-top: 30px;
    }
}