@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800;900&display=swap');

/* ============ تنظیمات پایه ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg: #0a0a12;
    --bg-card: #13131f;
    --bg-input: #1e1e30;
    --bg-hover: #1a1a2e;
    --border: #2a2a3e;
    --text: #f1f5f9;
    --text-muted: #6b7280;
    --purple: #8B5CF6;
    --purple-dark: #7c3aed;
    --pink: #EC4899;
    --gold: #F59E0B;
    --green: #10B981;
    --red: #EF4444;
    --blue: #3B82F6;
    --radius: 0.75rem;
    --font: 'Vazirmatn', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    direction: rtl;
    line-height: 1.7;
    min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: var(--font); }
input, textarea, select { font-family: var(--font); }

/* Focus styles (accessibility) */
:focus-visible {
    outline: 2px solid var(--purple);
    outline-offset: 2px;
}
.btn:focus-visible {
    outline: 2px solid var(--purple);
    outline-offset: 2px;
}
.form-input:focus-visible {
    outline: 2px solid var(--purple);
    outline-offset: 2px;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.breadcrumb a {
    color: var(--text-muted);
    transition: color 0.2s;
}
.breadcrumb a:hover {
    color: var(--purple);
}
.breadcrumb .separator {
    color: rgba(255,255,255,0.2);
}
.breadcrumb .current {
    color: var(--purple);
    font-weight: 500;
}

/* Loading overlay */
.loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(10,10,18,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--purple);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ============ اسکرولبار ============ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--purple); }

/* ============ کلاس‌های سفارشی ============ */
.anime-gradient { background: linear-gradient(135deg, #8B5CF6 0%, #EC4899 50%, #F59E0B 100%); }
.anime-gradient-text {
    background: linear-gradient(135deg, #8B5CF6, #EC4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.glass-card {
    background: rgba(19, 19, 31, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(139, 92, 246, 0.15);
}
.glow-purple { box-shadow: 0 0 20px rgba(139, 92, 246, 0.3), 0 0 40px rgba(139, 92, 246, 0.1); }
.glow-pink { box-shadow: 0 0 20px rgba(236, 72, 153, 0.3); }

.hero-bg {
    background:
        radial-gradient(ellipse at 20% 50%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(236, 72, 153, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(245, 158, 11, 0.05) 0%, transparent 50%),
        linear-gradient(180deg, #0a0a12 0%, #0f0f1a 100%);
}

/* بج‌های وضعیت */
.badge-ongoing { background: #10B981; color: white; }
.badge-completed { background: #8B5CF6; color: white; }
.badge-upcoming { background: #F59E0B; color: white; }

/* انیمیشن‌ها */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes pulse-glow { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(5px, -8px) scale(1.1); }
    66% { transform: translate(-3px, 4px) scale(0.95); }
}
@keyframes float2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-6px, 5px) scale(0.9); }
    66% { transform: translate(4px, -6px) scale(1.05); }
}
@keyframes float3 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(8px, 6px); }
}

.animate-fade-in { animation: fadeIn 0.4s ease-out; }
.animate-spin { animation: spin 1s linear infinite; }
.shimmer {
    background: linear-gradient(90deg, #13131f 25%, #1e1e30 50%, #13131f 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* ============ هدر ============ */
.header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(10, 10, 18, 0.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

/* ============ کارت انیمه ============ */
.anime-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}
.anime-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.4);
}
.anime-card .card-art {
    position: relative;
    height: 9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
@media (min-width: 640px) {
    .anime-card .card-art { height: 10rem; }
}
.anime-card .card-art .float-circle-1 {
    position: absolute;
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    filter: blur(2rem);
    opacity: 0.3;
    animation: float1 8s ease-in-out infinite;
}
.anime-card .card-art .float-circle-2 {
    position: absolute;
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    filter: blur(2rem);
    opacity: 0.2;
    animation: float2 10s ease-in-out infinite;
}
.anime-card .card-art .float-circle-3 {
    position: absolute;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    filter: blur(1.5rem);
    opacity: 0.15;
    animation: float3 7s ease-in-out infinite;
}
.anime-card .card-art .dot-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.04;
}
.anime-card .card-art .diagonal-line {
    position: absolute;
    width: 200%;
    height: 1px;
    opacity: 0.1;
    transform: rotate(-30deg);
}
.anime-card .card-art .diagonal-line-2 {
    position: absolute;
    width: 200%;
    height: 1px;
    opacity: 0.06;
    transform: rotate(-30deg);
}
.anime-card .card-art .initial-char {
    position: relative;
    z-index: 10;
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1;
    user-select: none;
    transition: transform 0.5s ease;
    text-shadow: 0 0 40px currentColor;
}
@media (min-width: 640px) {
    .anime-card .card-art .initial-char { font-size: 4rem; }
}
.anime-card:hover .card-art .initial-char {
    transform: scale(1.1);
}
.anime-card .card-art .shine-line {
    position: relative;
    z-index: 10;
    width: 2rem;
    height: 2px;
    border-radius: 9999px;
    opacity: 0.4;
    transition: width 0.5s ease;
    margin-top: 0.5rem;
}
.anime-card:hover .card-art .shine-line {
    width: 3.5rem;
}
.anime-card .card-art .status-badge {
    position: absolute;
    top: 0.625rem;
    right: 0.625rem;
    padding: 0.25rem 0.625rem;
    border-radius: 0.5rem;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: white;
    z-index: 5;
}
.anime-card .card-art .subtitle-badge {
    position: absolute;
    bottom: 0.625rem;
    left: 0.625rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    border-radius: 0.5rem;
    padding: 0.25rem 0.5rem;
    backdrop-filter: blur(12px);
    z-index: 5;
    font-size: 0.6875rem;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
}
.anime-card .card-art .view-badge {
    position: absolute;
    top: 0.625rem;
    left: 0.625rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: rgba(255,255,255,0.4);
    font-size: 0.625rem;
    z-index: 5;
}
.anime-card .card-body {
    padding: 0.875rem;
    position: relative;
}
.anime-card .card-body .glow-top {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 75%;
    height: 1px;
    opacity: 0.3;
}
.anime-card .card-body .card-title {
    font-size: 0.875rem;
    font-weight: 800;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
    margin-bottom: 0.25rem;
}
.anime-card .card-body .card-title-jp {
    font-size: 0.6875rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.anime-card .card-body .card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.375rem;
    flex-wrap: wrap;
}
.anime-card .card-body .card-year {
    font-size: 0.6875rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.anime-card .card-body .card-genre {
    font-size: 0.5625rem;
    padding: 0 0.375rem;
    height: 1.125rem;
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    font-weight: 500;
    max-width: 70px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.anime-card .card-body .card-genre-more {
    font-size: 0.5625rem;
    color: var(--text-muted);
}

/* بنر تزئینی صفحه جزئیات */
.detail-banner {
    position: relative;
    height: 12rem;
    overflow: hidden;
    border-radius: 1rem;
    margin: -0.5rem -1rem 0;
}
@media (min-width: 640px) {
    .detail-banner { height: 14rem; }
}
.detail-banner .banner-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(3rem);
}
.detail-banner .banner-circle-1 { width: 10rem; height: 10rem; opacity: 0.4; animation: float1 8s ease-in-out infinite; }
.detail-banner .banner-circle-2 { width: 9rem; height: 9rem; opacity: 0.3; animation: float2 10s ease-in-out infinite; }
.detail-banner .banner-circle-3 { width: 6rem; height: 6rem; opacity: 0.25; animation: float3 7s ease-in-out infinite; }
.detail-banner .banner-dots {
    position: absolute;
    inset: 0;
    opacity: 0.06;
}
.detail-banner .banner-line {
    position: absolute;
    width: 300%;
    height: 1px;
    opacity: 0.12;
    transform: rotate(-25deg);
}
.detail-banner .banner-ghost-char {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 7.5rem;
    font-weight: 900;
    color: rgba(255,255,255,0.06);
    user-select: none;
    text-shadow: 0 0 80px rgba(139,92,246,0.2);
}
@media (min-width: 640px) {
    .detail-banner .banner-ghost-char { font-size: 9.375rem; }
}
.detail-banner .banner-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 6rem;
    background: linear-gradient(to top, var(--bg), transparent);
}
.detail-title-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, var(--purple), var(--pink));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 10px 30px rgba(139,92,246,0.4);
    border: 1px solid rgba(255,255,255,0.1);
    font-size: 1.75rem;
    font-weight: 900;
    color: white;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* مودال اینتراستیشال دانلود */
.interstitial-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.interstitial-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(4px);
}
.interstitial-card {
    position: relative;
    width: 100%;
    max-width: 28rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5), 0 0 30px rgba(139,92,246,0.1);
    animation: fadeIn 0.3s ease-out;
}
.interstitial-close {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 10;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    color: var(--text-muted);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
}
.interstitial-close:hover { color: white; background: rgba(0,0,0,0.7); }
.interstitial-ad {
    width: 100%;
    max-height: 250px;
    object-fit: contain;
    background: var(--bg);
}
.interstitial-placeholder {
    width: 100%;
    height: 12rem;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.75rem;
}
.interstitial-body { padding: 1.25rem; }
.interstitial-file-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.interstitial-file-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    background: rgba(139,92,246,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}
.interstitial-btn-download {
    width: 100%;
    height: 3rem;
    font-size: 1rem;
    font-weight: 600;
    background: linear-gradient(to right, var(--purple), #7c3aed);
    color: white;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 8px 25px rgba(139,92,246,0.3);
    transition: all 0.2s;
    font-family: var(--font);
}
.interstitial-btn-download:hover { opacity: 0.9; box-shadow: 0 8px 30px rgba(139,92,246,0.5); }
.interstitial-btn-download:disabled { opacity: 0.5; cursor: not-allowed; }
.interstitial-countdown {
    width: 100%;
    height: 3rem;
    border-radius: 0.75rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}
.interstitial-hint {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-top: 1rem;
}

/* ============ دکمه‌ها ============ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
}
.btn-primary { background: var(--purple); color: white; }
.btn-primary:hover { background: var(--purple-dark); }
.btn-outline { background: transparent; border-color: rgba(139,92,246,0.5); color: var(--purple); }
.btn-outline:hover { background: rgba(139,92,246,0.1); }
.btn-danger { background: var(--red); color: white; }
.btn-danger:hover { background: #dc2626; }
.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); color: white; }
.btn-sm { padding: 0.35rem 0.75rem; font-size: 0.75rem; }
.btn-lg { padding: 0.75rem 1.5rem; font-size: 1rem; }

/* ============ ورودی‌ها ============ */
.form-input {
    width: 100%;
    padding: 0.625rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: white;
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.2s;
}
.form-input:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(139,92,246,0.15); }
.form-input::placeholder { color: var(--text-muted); }

/* ============ فوتر ============ */
.footer {
    margin-top: auto;
    border-top: 1px solid var(--border);
    background: rgba(10, 10, 18, 0.95);
}

/* ============ تب‌ها ============ */
.tabs { display: flex; gap: 0.25rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.25rem; }
.tab-btn {
    flex: 1;
    padding: 0.625rem;
    border: none;
    background: transparent;
    color: var(--text-muted);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.tab-btn.active { background: var(--purple); color: white; }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ============ جدول ============ */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 0.75rem 1rem; text-align: right; border-bottom: 1px solid var(--border); font-size: 0.875rem; }
.data-table th { color: var(--text-muted); font-weight: 500; }
.data-table tr:hover td { background: rgba(255,255,255,0.03); }

/* ============ مودال ============ */
.modal-overlay {
    position: fixed; inset: 0; z-index: 50;
    background: rgba(0,0,0,0.6);
    display: none; align-items: center; justify-content: center;
    padding: 1rem;
}
.modal-overlay.open {
    display: flex;
}
.modal-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.5rem;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

/* ============ تبلیغات ============ */
.ad-banner {
    border-radius: var(--radius);
    overflow: hidden;
    transition: opacity 0.3s;
}
.ad-banner img { width: 100%; display: block; }
.ad-close {
    position: absolute; top: 0.5rem; left: 0.5rem;
    background: rgba(0,0,0,0.6); color: white;
    border: none; border-radius: 50%;
    width: 24px; height: 24px;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px;
}

/* بنر پایین */
.bottom-ad {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 45;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}
.bottom-ad.open { transform: translateY(0); }

/* ============ توست ============ */
.toast-container { position: fixed; top: 5rem; left: 1.5rem; z-index: 60; display: flex; flex-direction: column; gap: 0.5rem; }
.toast {
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    min-width: 250px;
    animation: fadeIn 0.3s ease-out;
    display: flex; align-items: center; gap: 0.5rem;
}
.toast-success { background: rgba(16, 185, 129, 0.15); border: 1px solid rgba(16, 185, 129, 0.3); color: #10B981; }
.toast-error { background: rgba(239, 68, 68, 0.15); border: 1px solid rgba(239, 68, 68, 0.3); color: #EF4444; }
.toast-info { background: rgba(139, 92, 246, 0.15); border: 1px solid rgba(139, 92, 246, 0.3); color: #8B5CF6; }

/* ============ ریسپانسیو ============ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

@media (max-width: 1024px) {
    .grid-5 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .grid-5 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-2 { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 480px) {
    .grid-5, .grid-4, .grid-3, .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: 1fr !important; }
}

/* ============ سوئیچ ============ */
.switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch-slider {
    position: absolute; inset: 0; cursor: pointer;
    background: var(--border); border-radius: 12px; transition: 0.3s;
}
.switch-slider::before {
    content: ''; position: absolute;
    height: 18px; width: 18px;
    right: 3px; bottom: 3px;
    background: white; border-radius: 50%; transition: 0.3s;
}
.switch input:checked + .switch-slider { background: var(--purple); }
.switch input:checked + .switch-slider::before { transform: translateX(-20px); }

/* ============ بج ============ */
.badge {
    display: inline-flex; align-items: center; gap: 0.25rem;
    padding: 0.2rem 0.6rem; border-radius: 9999px;
    font-size: 0.7rem; font-weight: 500;
    border: 1px solid transparent;
}

/* ============ صفحه‌بندی ============ */
.pagination { display: flex; gap: 0.25rem; justify-content: center; margin-top: 2rem; }
.page-btn {
    padding: 0.5rem 0.75rem; border: 1px solid var(--border);
    background: var(--bg-card); color: var(--text-muted);
    border-radius: 0.5rem; font-size: 0.875rem; transition: all 0.2s;
}
.page-btn:hover, .page-btn.active { background: var(--purple); color: white; border-color: var(--purple); }

/* ============ select ============ */
.form-select {
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: white;
    font-size: 0.875rem;
    appearance: none;
    cursor: pointer;
    outline: none;
}
.form-select:focus { border-color: var(--purple); }

/* ============ Skeleton ============ */
.skeleton {
    border-radius: var(--radius);
    animation: shimmer 1.5s infinite;
    background: linear-gradient(90deg, #13131f 25%, #1e1e30 50%, #13131f 75%);
    background-size: 200% 100%;
}

/* ============ Admin ============ */
.admin-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
}
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    text-align: center;
}
.stat-icon {
    width: 48px; height: 48px;
    border-radius: 0.75rem;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 0.75rem;
    font-size: 1.25rem;
}

/* ============ Subscription Plans ============ */
.plan-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}
.plan-card:hover { border-color: rgba(139, 92, 246, 0.4); transform: translateY(-4px); box-shadow: 0 8px 30px rgba(139,92,246,0.15); }
.plan-card.featured { border-color: var(--purple); box-shadow: 0 0 30px rgba(139,92,246,0.2); }
.plan-card.featured::before {
    content: 'پیشنهاد ویژه';
    position: absolute; top: 1rem; left: -2.5rem;
    background: var(--purple); color: white;
    padding: 0.2rem 3rem; font-size: 0.7rem;
    transform: rotate(-45deg);
}

/* ============ Mobile Nav ============ */
.mobile-menu {
    display: none;
    position: fixed; top: 0; right: 0; bottom: 0;
    width: 280px; z-index: 50;
    background: var(--bg-card);
    border-left: 1px solid var(--border);
    padding: 1.5rem;
    overflow-y: auto;
}
.mobile-menu.open { display: block; }
.mobile-overlay {
    display: none; position: fixed; inset: 0; z-index: 49;
    background: rgba(0,0,0,0.5);
}
.mobile-overlay.open { display: block; }