/* ============================================
   اپ دانشمند — استایل کامل
   ============================================ */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, Tahoma, Arial, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --bg-0:        #eef4ff;
    --bg-1:        #ffffff;
    --bg-2:        #f8fafc;
    --bg-3:        #eef2ff;
    --primary:     #3b82f6;
    --primary-2:   #2563eb;
    --primary-3:   #60a5fa;
    --yellow:      #fbbf24;
    --yellow-2:    #f59e0b;
    --yellow-3:    #fcd34d;
    --purple:      #8b5cf6;
    --purple-2:    #7c3aed;
    --purple-3:    #a78bfa;
    --pink:        #ec4899;
    --pink-2:      #db2777;
    --green:       #10b981;
    --green-2:     #059669;
    --red:         #ef4444;
    --red-2:       #dc2626;
    --text:        #0f172a;
    --text-2:      #334155;
    --text-3:      #64748b;
    --text-4:      #94a3b8;
}

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    background: url("images/bg.jpeg") center/cover no-repeat fixed;
    color: var(--text);
    height: 100vh;
    overflow: hidden;
    line-height: 1.5;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(10, 20, 50, 0.4);
    pointer-events: none;
    z-index: 0;
}

/* ---------- انیمیشن‌ها ---------- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.06); }
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}
@keyframes bounceIn {
    0%   { transform: scale(0.3); opacity: 0; }
    50%  { transform: scale(1.1); }
    70%  { transform: scale(0.95); }
    100% { transform: scale(1); opacity: 1; }
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
@keyframes shine {
    0%   { transform: translateX(-100%) rotate(20deg); }
    100% { transform: translateX(200%) rotate(20deg); }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}
@keyframes glow {
    0%, 100% { filter: drop-shadow(0 0 6px rgba(251,191,36,0.8)); }
    50%      { filter: drop-shadow(0 0 14px rgba(251,191,36,1)); }
}

/* ---------- نوار بالا ---------- */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: linear-gradient(135deg, #1e40af, #3b82f6, #8b5cf6);
    border-bottom: 3px solid #fbbf24;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(30,64,175,0.3);
    animation: slideDown 0.4s ease;
    gap: 6px;
}

.currency {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: rgba(255,255,255,0.95);
    border: 2px solid #fbbf24;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 900;
    color: #d97706;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    flex-shrink: 0;
}

.currency-icon { font-size: 16px; }

.currency-plus {
    background: linear-gradient(180deg, #22c55e, #16a34a);
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 900;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(34,197,94,0.5);
    margin-right: -4px;
}

.hearts-mini {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 5px 10px;
    background: rgba(255,255,255,0.95);
    border: 2px solid #ef4444;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 900;
    color: #dc2626;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    letter-spacing: 1px;
    white-space: nowrap;
    flex-shrink: 0;
}

.hearts-mini.empty {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #94a3b8;
}

.top-bar-title {
    font-size: 16px;
    font-weight: 900;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    letter-spacing: 0.5px;
    flex: 1;
    text-align: center;
}

.music-toggle-btn {
    background: rgba(255,255,255,0.95);
    border: 2px solid #fbbf24;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    flex-shrink: 0;
    padding: 0;
    font-family: inherit;
}

.music-toggle-btn:active {
    transform: scale(0.9);
}

/* ---------- آیکون‌های تصویری ---------- */
.currency-img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

.tab-img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.45));
}

.tab-icon-fallback {
    font-size: 46px;
    line-height: 1;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 3px 5px rgba(0,0,0,0.4));
}

.menu-btn-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    z-index: 1;
    filter: drop-shadow(0 3px 5px rgba(0,0,0,0.3));
    transition: all 0.2s ease;
}

.menu-btn:hover .menu-btn-img {
    transform: scale(1.1);
}

.shop-icon-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 3px 5px rgba(0,0,0,0.15));
}

.banner-icon-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 3px 5px rgba(0,0,0,0.3));
    animation: float 2s ease infinite;
}

/* ---------- ظرف اصلی ---------- */
.categories-container {
    max-width: 520px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100vh;
    padding: 72px 14px 112px;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.categories-container::-webkit-scrollbar { display: none; }

.categories-container.no-scroll {
    overflow-y: hidden;
    display: flex;
    flex-direction: column;
    padding: 72px 14px 112px;
    gap: 10px;
}

/* ---------- کارت پروفایل ---------- */
.profile-card {
    background: linear-gradient(135deg, #3b82f6, #6366f1, #8b5cf6);
    border: 3px solid #fbbf24;
    border-radius: 24px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow:
        0 8px 0 #1e3a8a,
        0 12px 30px rgba(30,64,175,0.4),
        inset 0 2px 0 rgba(255,255,255,0.3);
    animation: fadeInUp 0.5s ease;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shine 4s ease infinite;
    pointer-events: none;
}

.profile-name {
    font-size: 17px;
    font-weight: 900;
    color: white;
    text-align: center;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
}

.profile-mid-row {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.profile-avatar-wrapper {
    position: relative;
    width: 76px;
    height: 76px;
    flex-shrink: 0;
}

.profile-avatar-ring {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #fbbf24, #f59e0b, #ec4899, #8b5cf6, #3b82f6, #fbbf24);
    animation: spin 6s linear infinite;
    box-shadow: 0 0 20px rgba(251,191,36,0.6);
}

.profile-avatar {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #fef3c7, #fde68a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    z-index: 1;
    overflow: hidden;
    line-height: 1;
    border: 3px solid white;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.profile-stats-grid {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.stat-box {
    background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,255,255,0.85));
    border: 2px solid rgba(255,255,255,0.6);
    border-radius: 14px;
    padding: 6px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    min-height: 66px;
    box-shadow: 0 3px 0 rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.8);
}

.stat-box .stat-icon { font-size: 18px; line-height: 1; }
.stat-box .stat-value { font-size: 18px; font-weight: 900; line-height: 1; }
.stat-box .stat-label { font-size: 10px; font-weight: 700; color: #64748b; }

.stat-box.stat-level .stat-value { color: #d97706; }
.stat-box.stat-xp .stat-value { color: #db2777; }

/* ---------- دکمه‌های منو ---------- */
.menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    gap: 6px;
    width: 100%;
    height: 100%;
    min-height: 80px;
    padding: 12px 8px;
    color: white;
    border: 3px solid rgba(255,255,255,0.4);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
    position: relative;
    overflow: hidden;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.menu-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 45%;
    background: linear-gradient(180deg, rgba(255,255,255,0.35), transparent);
    border-radius: 17px 17px 0 0;
    pointer-events: none;
}

.menu-btn:hover { transform: translateY(-3px); }
.menu-btn:active { transform: translateY(2px); }

.menu-btn-icon { font-size: 30px; line-height: 1; z-index: 1; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); }
.menu-btn-text { z-index: 1; font-size: 13px; }

.menu-btn.primary {
    background: linear-gradient(180deg, #3b82f6, #1e40af);
    box-shadow: 0 5px 0 #1e3a8a, 0 8px 20px rgba(59,130,246,0.4), inset 0 2px 0 rgba(255,255,255,0.3);
}

.menu-btn.purple {
    background: linear-gradient(180deg, #8b5cf6, #6d28d9);
    box-shadow: 0 5px 0 #4c1d95, 0 8px 20px rgba(139,92,246,0.4), inset 0 2px 0 rgba(255,255,255,0.3);
}

.menu-btn.pink {
    background: linear-gradient(180deg, #ec4899, #be185d);
    box-shadow: 0 5px 0 #9d174d, 0 8px 20px rgba(236,72,153,0.4), inset 0 2px 0 rgba(255,255,255,0.3);
}

.menu-btn.danger {
    background: linear-gradient(180deg, #ef4444, #b91c1c);
    box-shadow: 0 5px 0 #7f1d1d, 0 8px 20px rgba(239,68,68,0.4), inset 0 2px 0 rgba(255,255,255,0.3);
}

.menu-btn.locked {
    background: linear-gradient(180deg, #94a3b8, #64748b);
    box-shadow: 0 5px 0 #334155, 0 8px 20px rgba(100,116,139,0.3), inset 0 2px 0 rgba(255,255,255,0.2);
    opacity: 0.9;
}

.menu-btn.locked .menu-btn-icon { filter: grayscale(0.5); }

/* ---------- بنر لیگ ---------- */
.promo-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 18px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b, #ec4899, #8b5cf6);
    border: 3px solid #fcd34d;
    box-shadow: 0 5px 0 #b45309, 0 10px 25px rgba(251,191,36,0.4);
    animation: fadeInUp 0.6s ease;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.promo-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 60%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shine 3s ease infinite;
    pointer-events: none;
}

.banner-icon {
    font-size: 30px;
    line-height: 1;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    z-index: 1;
    animation: float 2s ease infinite;
}

.banner-content { flex: 1; z-index: 1; min-width: 0; }

.banner-title {
    font-size: 13px;
    font-weight: 900;
    color: white;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.banner-subtitle {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.95);
    margin-top: 2px;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.banner-btn {
    background: white;
    color: #db2777;
    border: 2px solid #fbbf24;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 900;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
    box-shadow: 0 3px 0 #b45309, 0 4px 10px rgba(0,0,0,0.2);
    z-index: 1;
}

.banner-btn:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 #b45309;
}

/* ---------- دسته‌بندی‌ها ---------- */
.category-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 8px;
}

.category {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    padding: 18px 10px;
    background: linear-gradient(180deg, #ffffff, #f0f4ff);
    color: #1e40af;
    border: 3px solid #3b82f6;
    border-radius: 20px;
    text-align: center;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
    min-height: 100px;
    line-height: 1.4;
    gap: 6px;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.4s ease backwards;
    box-shadow: 0 5px 0 #1e40af, 0 8px 20px rgba(59,130,246,0.25), inset 0 2px 0 rgba(255,255,255,0.9);
    text-shadow: 0 1px 0 rgba(255,255,255,0.8);
}

.category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 45%;
    background: linear-gradient(180deg, rgba(255,255,255,0.8), transparent);
    border-radius: 17px 17px 0 0;
    pointer-events: none;
}

.category:hover {
    background: linear-gradient(180deg, #f0fdfa, #ccfbf1);
    border-color: #10b981;
    color: #047857;
    transform: translateY(-3px);
    box-shadow: 0 8px 0 #047857, 0 12px 25px rgba(16,185,129,0.3);
}

.category:active {
    transform: translateY(2px);
    box-shadow: 0 3px 0 #1e40af;
}

.category.correct {
    background: linear-gradient(180deg, #4ade80, #16a34a) !important;
    border-color: #15803d !important;
    color: white !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3) !important;
    box-shadow: 0 5px 0 #14532d, 0 0 30px rgba(34,197,94,0.6), inset 0 2px 0 rgba(255,255,255,0.4) !important;
    animation: pulse 0.5s ease;
}

.category.wrong {
    background: linear-gradient(180deg, #f87171, #dc2626) !important;
    border-color: #991b1b !important;
    color: white !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3) !important;
    box-shadow: 0 5px 0 #7f1d1d, 0 0 30px rgba(239,68,68,0.6), inset 0 2px 0 rgba(255,255,255,0.3) !important;
}

.category.next {
    background: linear-gradient(180deg, #fbbf24, #d97706);
    border-color: #b45309;
    color: white;
    font-weight: 900;
    margin-top: 20px;
    font-size: 15px;
    min-height: auto;
    padding: 16px 22px;
    flex-direction: row;
    justify-content: center;
    display: flex;
    box-shadow: 0 5px 0 #78350f, 0 8px 20px rgba(251,191,36,0.4), inset 0 2px 0 rgba(255,255,255,0.4);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.category:disabled { cursor: not-allowed; opacity: 0.7; }

/* ---------- تیترها ---------- */
h1 { font-size: 24px; font-weight: 900; text-align: center; margin: 12px 0 6px; color: var(--text); }
h2 { font-size: 20px; font-weight: 900; text-align: center; margin: 12px 0; color: var(--text); }
h3 { font-size: 13px; font-weight: 700; color: var(--text-3); text-align: center; margin: 10px 0; }

/* ---------- ورودی‌ها ---------- */
input {
    width: 100%;
    padding: 14px 18px;
    border-radius: 14px;
    border: 2px solid #cbd5e1;
    background: white;
    color: var(--text);
    font-size: 15px;
    font-family: inherit;
    font-weight: 600;
    transition: all 0.2s ease;
    outline: none;
}

input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59,130,246,0.15);
}

input::placeholder { color: var(--text-4); font-weight: 500; }

/* ---------- کارت ورود ---------- */
.login-card {
    max-width: 400px;
    margin: auto;
    padding: 28px 24px;
    background: white;
    border: 3px solid #3b82f6;
    border-radius: 24px;
    box-shadow: 0 8px 0 #1e40af, 0 15px 40px rgba(30,64,175,0.25);
    animation: fadeInUp 0.5s ease;
}

.login-logo-img {
    width: 100px;
    height: 100px;
    margin: 0 auto 12px;
    display: block;
    border-radius: 24px;
    box-shadow: 0 8px 24px rgba(59,130,246,0.4);
    animation: float 3s ease infinite;
    object-fit: cover;
}

.login-logo { font-size: 50px; text-align: center; margin-bottom: 12px; line-height: 1; }
.login-subtitle { text-align: center; color: var(--text-3); font-size: 13px; margin-bottom: 22px; font-weight: 600; }

.login-btn {
    width: 100%;
    padding: 14px;
    margin-top: 10px;
    border-radius: 14px;
    border: 3px solid;
    font-size: 15px;
    font-weight: 900;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s ease;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.login-btn.primary {
    background: linear-gradient(180deg, #3b82f6, #1e40af);
    border-color: #60a5fa;
    box-shadow: 0 5px 0 #1e3a8a, 0 8px 20px rgba(59,130,246,0.4);
}

.login-btn.primary:active {
    transform: translateY(3px);
    box-shadow: 0 2px 0 #1e3a8a;
}

.login-btn.secondary {
    background: linear-gradient(180deg, #8b5cf6, #6d28d9);
    border-color: #a78bfa;
    box-shadow: 0 5px 0 #4c1d95, 0 8px 20px rgba(139,92,246,0.4);
}

.login-btn.secondary:active {
    transform: translateY(3px);
    box-shadow: 0 2px 0 #4c1d95;
}

.error-msg { color: #dc2626; text-align: center; font-size: 13px; min-height: 20px; margin: 6px 0 10px; font-weight: 700; }

/* ---------- انتخاب آواتار ---------- */
.avatar-picker {
    background: white;
    border: 3px solid #8b5cf6;
    border-radius: 24px;
    padding: 24px 20px;
    text-align: center;
    animation: fadeInUp 0.5s ease;
    box-shadow: 0 8px 0 #4c1d95, 0 15px 40px rgba(139,92,246,0.25);
    max-width: 460px;
    margin: auto;
}

.avatar-preview {
    font-size: 80px;
    line-height: 1;
    margin-bottom: 20px;
    display: inline-block;
    animation: bounce 2.5s ease infinite;
    filter: drop-shadow(0 6px 12px rgba(139,92,246,0.3));
}

.avatar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 20px; }

.avatar-option {
    aspect-ratio: 1;
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #f8fafc, #e2e8f0);
    border: 2px solid #cbd5e1;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
    line-height: 1;
    font-family: inherit;
}

.avatar-option:hover {
    transform: translateY(-3px);
    border-color: #8b5cf6;
    background: #f3e8ff;
    box-shadow: 0 6px 15px rgba(139,92,246,0.3);
}

.avatar-option.selected {
    background: linear-gradient(180deg, #a78bfa, #7c3aed);
    border-color: #c4b5fd;
    transform: scale(1.08);
    box-shadow: 0 4px 0 #4c1d95, 0 8px 20px rgba(139,92,246,0.5);
}

.avatar-option img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* ---------- صفحه سوال ---------- */
.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    padding: 12px 16px;
    background: white;
    border: 2px solid #3b82f6;
    border-radius: 16px;
    font-size: 14px;
    gap: 8px;
    box-shadow: 0 3px 10px rgba(59,130,246,0.15);
}

.hearts { font-size: 16px; letter-spacing: 2px; white-space: nowrap; }
.progress-text { color: #64748b; font-weight: 800; font-size: 13px; white-space: nowrap; }

.exit-btn {
    background: linear-gradient(180deg, #ef4444, #b91c1c);
    color: white;
    border: 2px solid #f87171;
    padding: 6px 14px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 900;
    font-family: inherit;
    box-shadow: 0 3px 0 #7f1d1d;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.exit-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #7f1d1d; }

.question-box {
    background: linear-gradient(180deg, white, #f0f4ff);
    border: 3px solid #3b82f6;
    border-radius: 22px;
    padding: 24px 20px;
    margin-bottom: 16px;
    box-shadow: 0 6px 0 #1e40af, 0 10px 25px rgba(30,64,175,0.2);
}

.question-text {
    font-size: 18px;
    font-weight: 900;
    text-align: center;
    line-height: 1.7;
    color: #1e293b;
}

/* ---------- صفحه نتیجه ---------- */
.result-card {
    background: white;
    border: 3px solid #fbbf24;
    border-radius: 24px;
    padding: 28px 20px;
    text-align: center;
    box-shadow: 0 8px 0 #b45309, 0 15px 40px rgba(251,191,36,0.3);
}

.result-emoji { font-size: 80px; line-height: 1; margin-bottom: 14px; filter: drop-shadow(0 6px 12px rgba(0,0,0,0.15)); }
.result-title { font-size: 22px; font-weight: 900; margin-bottom: 20px; color: #1e293b; }
.result-score { font-size: 15px; margin-bottom: 8px; color: #475569; font-weight: 700; }
.result-xp { font-size: 22px; font-weight: 900; color: #db2777; margin: 14px 0; }

.bonus-box {
    background: linear-gradient(180deg, #fef3c7, #fde68a);
    border: 2px solid #fbbf24;
    border-radius: 16px;
    padding: 14px;
    margin: 14px 0;
    text-align: center;
    font-weight: 900;
    color: #92400e;
    box-shadow: 0 3px 10px rgba(251,191,36,0.3);
}

.bonus-box p { margin: 4px 0; font-size: 13px; }

.level-info {
    text-align: center;
    color: #1e293b;
    font-weight: 900;
    margin-top: 14px;
    padding: 12px;
    background: linear-gradient(180deg, #dbeafe, #bfdbfe);
    border: 2px solid #3b82f6;
    border-radius: 14px;
    font-size: 14px;
    box-shadow: 0 3px 0 #1e40af;
}

/* ---------- دکمه بازگشت ---------- */
.btn-back {
    background: linear-gradient(180deg, #3b82f6, #1e40af);
    color: white;
    border: 2px solid #60a5fa;
    padding: 8px 16px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 12px;
    box-shadow: 0 4px 0 #1e3a8a;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.btn-back:active { transform: translateY(2px); box-shadow: 0 2px 0 #1e3a8a; }

/* ============================================
   ⬇️ نوار تب پایین — همه آیکون‌ها یکسان
   ============================================ */
.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(180deg, #1e3a8a 0%, #1e40af 40%, #3b82f6 100%);
    border-top: 4px solid #fbbf24;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 6px 8px;
    z-index: 200;
    box-shadow:
        0 -6px 25px rgba(30,64,175,0.5),
        inset 0 2px 0 rgba(255,255,255,0.15);
}

.tab-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    padding: 8px 4px;
    border-radius: 50%;
    font-family: inherit;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    min-width: 0;
}

/* ترتیب نمایش تب‌ها: خانه در وسط */
.tab-btn[data-tab="play"]    { order: 1; }
.tab-btn[data-tab="league"]  { order: 2; }
.tab-btn[data-tab="home"]    { order: 3; }
.tab-btn[data-tab="shop"]    { order: 4; }
.tab-btn[data-tab="profile"] { order: 5; }

/* 🎯 همه آیکون‌ها یکسان — بدون استثنا */
.tab-btn .tab-img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.45));
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0.95;
    border-radius: 50%;
    padding: 5px;
    background: linear-gradient(180deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05));
    border: 2px solid rgba(255,255,255,0.2);
    box-sizing: border-box;
    box-shadow:
        0 3px 8px rgba(0,0,0,0.3),
        inset 0 1px 2px rgba(255,255,255,0.2);
}

.tab-btn .tab-icon-fallback {
    font-size: 42px;
    line-height: 1;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.45));
    opacity: 0.95;
    border-radius: 50%;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05));
    border: 2px solid rgba(255,255,255,0.2);
    box-sizing: border-box;
    box-shadow:
        0 3px 8px rgba(0,0,0,0.3),
        inset 0 1px 2px rgba(255,255,255,0.2);
}

.tab-btn .tab-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.3px;
    color: rgba(255,255,255,0.8);
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
    transition: all 0.2s ease;
}

/* حالت هاور */
.tab-btn:hover .tab-img {
    transform: translateY(-3px) scale(1.05);
    opacity: 1;
    border-color: rgba(255,255,255,0.5);
    background: linear-gradient(180deg, rgba(255,255,255,0.25), rgba(255,255,255,0.1));
}

.tab-btn:hover .tab-icon-fallback {
    transform: translateY(-3px) scale(1.05);
    opacity: 1;
    border-color: rgba(255,255,255,0.5);
    background: linear-gradient(180deg, rgba(255,255,255,0.25), rgba(255,255,255,0.1));
}

/* حالت فعال — درخشان طلایی */
.tab-btn.active .tab-img {
    transform: translateY(-3px) scale(1.1);
    filter:
        drop-shadow(0 0 12px rgba(251,191,36,0.9))
        drop-shadow(0 4px 8px rgba(0,0,0,0.4));
    opacity: 1;
    border-color: #fbbf24;
    background: radial-gradient(circle at center, rgba(251,191,36,0.4), rgba(251,191,36,0.1) 70%);
    box-shadow:
        0 0 20px rgba(251,191,36,0.5),
        inset 0 1px 3px rgba(255,255,255,0.4);
    animation: glow 2s ease infinite;
}

.tab-btn.active .tab-icon-fallback {
    transform: translateY(-3px) scale(1.1);
    filter: drop-shadow(0 0 10px rgba(251,191,36,0.9));
    opacity: 1;
    border-color: #fbbf24;
    background: radial-gradient(circle at center, rgba(251,191,36,0.4), rgba(251,191,36,0.1) 70%);
    box-shadow:
        0 0 20px rgba(251,191,36,0.5),
        inset 0 1px 3px rgba(255,255,255,0.4);
    animation: glow 2s ease infinite;
}

.tab-btn.active .tab-label {
    color: #fbbf24;
    font-weight: 900;
    font-size: 12px;
    text-shadow: 0 0 8px rgba(251,191,36,0.6), 0 2px 4px rgba(0,0,0,0.4);
}

.tab-btn:active { transform: scale(0.93); }

/* ---------- صفحه پروفایل ---------- */
.profile-header-card {
    background: linear-gradient(135deg, #3b82f6, #6366f1, #8b5cf6);
    border: 4px solid #fbbf24;
    border-radius: 26px;
    padding: 24px 20px;
    text-align: center;
    box-shadow:
        0 10px 0 #1e3a8a,
        0 15px 40px rgba(30,64,175,0.5),
        inset 0 2px 0 rgba(255,255,255,0.3);
    animation: fadeInUp 0.5s ease;
    position: relative;
    overflow: hidden;
}

.profile-header-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 60%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shine 5s ease infinite;
    pointer-events: none;
}

.profile-header-avatar {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 14px;
}

.profile-header-name {
    font-size: 22px;
    font-weight: 900;
    color: white;
    margin-bottom: 6px;
    text-shadow: 0 2px 0 rgba(0,0,0,0.4), 0 0 15px rgba(255,255,255,0.3);
    position: relative;
    z-index: 1;
}

.profile-header-subtitle {
    font-size: 14px;
    font-weight: 800;
    color: rgba(255,255,255,0.95);
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
}

.profile-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

.info-box {
    background: linear-gradient(180deg, white, #eff6ff);
    border: 3px solid #3b82f6;
    border-radius: 18px;
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    box-shadow: 0 5px 0 #1e40af, 0 8px 15px rgba(30,64,175,0.15);
    min-height: 82px;
}

.info-box .info-icon { font-size: 22px; line-height: 1; }
.info-box .info-value { font-size: 18px; font-weight: 900; line-height: 1.2; margin-top: 2px; }
.info-box .info-label { font-size: 11px; font-weight: 800; color: #64748b; }

.info-box-yellow { border-color: #fbbf24; box-shadow: 0 5px 0 #92400e, 0 8px 15px rgba(251,191,36,0.2); background: linear-gradient(180deg, #fff, #fef3c7); }
.info-box-yellow .info-value { color: #d97706; }

.info-box-blue { border-color: #3b82f6; box-shadow: 0 5px 0 #1e40af, 0 8px 15px rgba(59,130,246,0.2); }
.info-box-blue .info-value { color: #2563eb; }

.info-box-green { border-color: #22c55e; box-shadow: 0 5px 0 #14532d, 0 8px 15px rgba(34,197,94,0.2); background: linear-gradient(180deg, #fff, #d1fae5); }
.info-box-green .info-value { color: #15803d; }

.info-box-red { border-color: #ef4444; box-shadow: 0 5px 0 #7f1d1d, 0 8px 15px rgba(239,68,68,0.2); background: linear-gradient(180deg, #fff, #fee2e2); }
.info-box-red .info-value { color: #dc2626; }

.info-box-purple { border-color: #8b5cf6; box-shadow: 0 5px 0 #4c1d95, 0 8px 15px rgba(139,92,246,0.2); background: linear-gradient(180deg, #fff, #ede9fe); }
.info-box-purple .info-value { color: #7c3aed; }

.info-box-pink { border-color: #ec4899; box-shadow: 0 5px 0 #831843, 0 8px 15px rgba(236,72,153,0.2); background: linear-gradient(180deg, #fff, #fce7f3); }
.info-box-pink .info-value { color: #db2777; }

.achievements-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: white;
    border: 3px solid #cbd5e1;
    border-radius: 16px;
    box-shadow: 0 4px 0 #94a3b8, 0 6px 15px rgba(0,0,0,0.08);
    transition: all 0.2s ease;
}

.achievement-item.unlocked {
    background: linear-gradient(180deg, #ffffff, #fef3c7);
    border-color: #fbbf24;
    box-shadow: 0 5px 0 #b45309, 0 8px 20px rgba(251,191,36,0.3);
}

.achievement-item.locked {
    opacity: 0.65;
    filter: grayscale(0.4);
}

.achievement-icon {
    font-size: 30px;
    line-height: 1;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

.achievement-text { flex: 1; min-width: 0; }

.achievement-title {
    font-size: 14px;
    font-weight: 900;
    color: #1e293b;
    margin-bottom: 2px;
}

.achievement-desc {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    line-height: 1.3;
}

.achievement-status { font-size: 22px; flex-shrink: 0; }

/* ---------- صفحه لیگ ---------- */
.league-header {
    border-radius: 24px;
    padding: 22px 20px;
    text-align: center;
    color: white;
    box-shadow: 0 8px 0 rgba(0,0,0,0.2), 0 15px 40px rgba(30,64,175,0.4);
    border: 4px solid #fbbf24;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}

.league-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 60%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shine 4s ease infinite;
    pointer-events: none;
}

.league-name {
    font-size: 26px;
    font-weight: 900;
    text-shadow: 0 3px 0 rgba(0,0,0,0.4);
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.league-week {
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 6px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
}

.league-timer {
    font-size: 13px;
    font-weight: 700;
    padding: 6px 14px;
    background: rgba(0,0,0,0.25);
    border-radius: 20px;
    display: inline-block;
    position: relative;
    z-index: 1;
}

.league-table {
    background: white;
    border: 3px solid #3b82f6;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 6px 0 #1e40af, 0 10px 25px rgba(30,64,175,0.2);
}

.league-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 2px solid #e2e8f0;
    font-size: 14px;
    transition: all 0.2s ease;
}

.league-row:last-child { border-bottom: none; }

.league-row.is-user {
    background: linear-gradient(90deg, #fef3c7, #fde68a);
    font-weight: 900;
    border-right: 5px solid #fbbf24;
}

.league-rank {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 900;
    background: #f1f5f9;
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid #cbd5e1;
}

.league-rank.gold { background: linear-gradient(180deg, #fde047, #f59e0b); border-color: #b45309; }
.league-rank.silver { background: linear-gradient(180deg, #e2e8f0, #94a3b8); border-color: #475569; }
.league-rank.bronze { background: linear-gradient(180deg, #fdba74, #c2410c); border-color: #7c2d12; color: white; }

.league-avatar {
    font-size: 26px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid #e2e8f0;
    overflow: hidden;
}

.league-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.league-name-text {
    flex: 1;
    font-weight: 800;
    color: #1e293b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.league-points {
    font-size: 16px;
    font-weight: 900;
    color: #db2777;
    min-width: 36px;
    text-align: center;
}

.league-status {
    font-size: 16px;
    width: 22px;
    text-align: center;
}

.league-play-btn {
    width: 100%;
    padding: 16px;
    margin-top: 16px;
    border-radius: 18px;
    border: 4px solid #fbbf24;
    background: linear-gradient(180deg, rgba(255,255,255,0.3), transparent 45%), linear-gradient(180deg, #3b82f6, #1e40af);
    color: white;
    font-size: 16px;
    font-weight: 900;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 6px 0 #1e3a8a, 0 10px 25px rgba(59,130,246,0.4), inset 0 2px 0 rgba(255,255,255,0.3);
    text-shadow: 0 2px 0 rgba(0,0,0,0.4);
    transition: all 0.12s ease;
}

.league-play-btn:active {
    transform: translateY(3px);
    box-shadow: 0 3px 0 #1e3a8a;
}

.league-end-btn {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    border-radius: 14px;
    border: 3px solid #cbd5e1;
    background: white;
    color: #64748b;
    font-size: 13px;
    font-weight: 900;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 3px 0 #94a3b8;
}

.league-end-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #94a3b8; }

.league-legend {
    margin-top: 16px;
    padding: 12px 16px;
    background: white;
    border-radius: 14px;
    border: 2px solid #e2e8f0;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    line-height: 1.8;
}

.league-vs-card {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 10px;
    background: white;
    border-radius: 20px;
    border: 3px solid #3b82f6;
    padding: 20px;
    box-shadow: 0 6px 0 #1e40af, 0 10px 25px rgba(30,64,175,0.2);
    margin-bottom: 16px;
}

.vs-player {
    flex: 1;
    text-align: center;
    font-weight: 900;
    color: #1e293b;
    font-size: 13px;
}

.vs-avatar {
    font-size: 44px;
    margin-bottom: 6px;
    width: 60px;
    height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden;
}

.vs-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.vs-name {
    font-size: 14px;
    font-weight: 900;
    color: #1e293b;
}

.vs-symbol {
    font-size: 32px;
    color: #f59e0b;
    flex-shrink: 0;
}

.topics-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

.topic-selected {
    padding: 14px;
    border-radius: 16px;
    text-align: center;
    font-weight: 800;
    border: 3px solid;
}

.topic-random {
    background: linear-gradient(180deg, #fef3c7, #fde68a);
    border-color: #fbbf24;
    color: #92400e;
}

.topic-opponent {
    background: linear-gradient(180deg, #fee2e2, #fecaca);
    border-color: #ef4444;
    color: #991b1b;
}

.topic-label {
    font-size: 11px;
    margin-bottom: 4px;
    opacity: 0.85;
}

.topic-name {
    font-size: 14px;
    font-weight: 900;
}

.topic-picker-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 10px;
}

.topic-pick-btn {
    padding: 20px 12px;
    background: linear-gradient(180deg, rgba(255,255,255,0.9), transparent 40%), linear-gradient(180deg, #ffffff, #dbeafe);
    color: #1e40af;
    border: 4px solid #3b82f6;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 900;
    font-family: inherit;
    cursor: pointer;
    min-height: 90px;
    box-shadow: 0 6px 0 #1e40af, 0 10px 20px rgba(59,130,246,0.2);
    transition: all 0.12s ease;
    text-shadow: 0 1px 0 rgba(255,255,255,0.9);
}

.topic-pick-btn:hover {
    background: linear-gradient(180deg, rgba(255,255,255,0.9), transparent 40%), linear-gradient(180deg, #ffffff, #ccfbf1);
    border-color: #10b981;
    color: #047857;
    transform: translateY(-3px);
}

.topic-pick-btn:active {
    transform: translateY(3px);
    box-shadow: 0 3px 0 #1e40af;
}

.league-result-card {
    background: white;
    border: 4px solid #fbbf24;
    border-radius: 26px;
    padding: 30px 22px;
    text-align: center;
    box-shadow: 0 10px 0 #92400e, 0 20px 50px rgba(251,191,36,0.4);
}

.league-vs-result {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 10px;
    margin-top: 20px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 18px;
    border: 2px solid #e2e8f0;
}

.vs-result-item {
    flex: 1;
    text-align: center;
    font-size: 14px;
    font-weight: 900;
    color: #1e293b;
}

.vs-result-score {
    font-size: 28px;
    color: #db2777;
    margin-top: 6px;
    font-weight: 900;
}

.vs-divider {
    font-size: 24px;
    color: #f59e0b;
    flex-shrink: 0;
}

.league-points-earned {
    margin-top: 16px;
    padding: 12px;
    background: linear-gradient(180deg, #dbeafe, #bfdbfe);
    border: 3px solid #3b82f6;
    border-radius: 16px;
    font-size: 20px;
    font-weight: 900;
    color: #1e40af;
    box-shadow: 0 4px 0 #1e40af;
}

.league-rank-display {
    text-align: center;
    margin: 16px 0;
    font-size: 14px;
    font-weight: 800;
    color: #64748b;
}

.league-change-msg {
    margin-top: 16px;
    padding: 14px;
    background: linear-gradient(180deg, #fef3c7, #fde68a);
    border-radius: 14px;
    border: 2px solid #fbbf24;
    font-size: 15px;
    font-weight: 900;
    color: #92400e;
}

/* ---------- تایمر دایره‌ای ---------- */
.circular-timer {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.circular-timer svg {
    display: block;
    width: 100%;
    height: 100%;
}

.circular-timer-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    font-weight: 900;
    color: #10b981;
    transition: color 0.3s ease;
    line-height: 1;
}

/* ---------- کارت شروع بخش ---------- */
.section-intro-card {
    background: linear-gradient(135deg, #3b82f6, #6366f1, #8b5cf6);
    border: 4px solid #fbbf24;
    border-radius: 26px;
    padding: 30px 22px;
    text-align: center;
    color: white;
    box-shadow: 0 10px 0 #1e3a8a, 0 20px 50px rgba(30,64,175,0.4);
    animation: bounceIn 0.6s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 16px;
}

.section-intro-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 60%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shine 4s ease infinite;
    pointer-events: none;
}

.section-emoji {
    font-size: 72px;
    margin-bottom: 16px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 8px;
    text-shadow: 0 2px 0 rgba(0,0,0,0.4);
    position: relative;
    z-index: 1;
}

.section-subtitle {
    font-size: 15px;
    font-weight: 700;
    color: rgba(255,255,255,0.95);
    margin-bottom: 20px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
}

.section-info {
    display: flex;
    justify-content: space-around;
    gap: 10px;
    padding: 16px;
    background: rgba(0,0,0,0.25);
    border-radius: 18px;
    position: relative;
    z-index: 1;
}

.section-info-item {
    flex: 1;
    text-align: center;
}

.section-info-value {
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 4px;
    text-shadow: 0 2px 0 rgba(0,0,0,0.3);
}

.section-info-label {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255,255,255,0.8);
    letter-spacing: 0.3px;
}

/* ---------- برنامه مسابقات ---------- */
.match-schedule-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.match-card {
    background: white;
    border: 3px solid #cbd5e1;
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 4px 0 #94a3b8, 0 6px 15px rgba(0,0,0,0.08);
    transition: all 0.2s ease;
}

.match-card.match-active {
    border-color: #3b82f6;
    background: linear-gradient(180deg, #ffffff, #eff6ff);
    box-shadow: 0 5px 0 #1e40af, 0 8px 25px rgba(59,130,246,0.3);
    animation: pulse 2s ease infinite;
}

.match-card.match-won {
    border-color: #10b981;
    background: linear-gradient(180deg, #ffffff, #d1fae5);
    box-shadow: 0 4px 0 #047857;
}

.match-card.match-lost,
.match-card.match-missed {
    border-color: #ef4444;
    background: linear-gradient(180deg, #ffffff, #fee2e2);
    box-shadow: 0 4px 0 #991b1b;
}

.match-card.match-draw {
    border-color: #f59e0b;
    background: linear-gradient(180deg, #ffffff, #fef3c7);
    box-shadow: 0 4px 0 #b45309;
}

.match-card.match-pending {
    opacity: 0.7;
    background: #f8fafc;
}

.match-header-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.match-vs-mini {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.match-player-mini {
    font-size: 28px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
    overflow: hidden;
}

.match-player-mini img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.match-vs-text {
    font-size: 12px;
    font-weight: 900;
    color: #94a3b8;
}

.match-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.match-opponent-name {
    font-size: 15px;
    font-weight: 900;
    color: #1e293b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.match-badge {
    font-size: 11px;
    font-weight: 900;
    padding: 4px 10px;
    border-radius: 20px;
    flex-shrink: 0;
    white-space: nowrap;
}

.badge-pending { background: #f1f5f9; color: #64748b; }
.badge-active { background: #dbeafe; color: #1e40af; animation: pulse 2s ease infinite; }
.badge-won { background: #d1fae5; color: #047857; }
.badge-lost { background: #fee2e2; color: #991b1b; }
.badge-draw { background: #fef3c7; color: #92400e; }
.badge-missed { background: #fecaca; color: #7f1d1d; }

.match-time {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 6px;
}

.match-action {
    margin-top: 8px;
}

.match-btn {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: 3px solid;
    font-size: 14px;
    font-weight: 900;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.12s ease;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.match-btn-play {
    background: linear-gradient(180deg, #3b82f6, #1e40af);
    color: white;
    border-color: #60a5fa;
    box-shadow: 0 4px 0 #1e3a8a, 0 6px 15px rgba(59,130,246,0.4);
}

.match-btn-play:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #1e3a8a;
}

/* ---------- فروشگاه ---------- */
.shop-header {
    background: linear-gradient(135deg, #ec4899, #8b5cf6, #3b82f6);
    border: 4px solid #fbbf24;
    border-radius: 26px;
    padding: 22px 20px;
    text-align: center;
    color: white;
    box-shadow: 0 8px 0 #831843, 0 15px 40px rgba(236,72,153,0.4);
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.5s ease;
}

.shop-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 60%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shine 4s ease infinite;
    pointer-events: none;
}

.shop-title {
    font-size: 24px;
    font-weight: 900;
    text-shadow: 0 3px 0 rgba(0,0,0,0.4);
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.shop-coins {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(0,0,0,0.25);
    border-radius: 20px;
    font-size: 16px;
    font-weight: 900;
    position: relative;
    z-index: 1;
}

.shop-items-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.shop-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: white;
    border: 3px solid #cbd5e1;
    border-radius: 20px;
    box-shadow: 0 5px 0 #94a3b8, 0 8px 20px rgba(0,0,0,0.08);
    transition: all 0.15s ease;
}

.shop-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 0 #94a3b8, 0 12px 25px rgba(0,0,0,0.12);
}

.shop-item.owned {
    background: linear-gradient(180deg, #ffffff, #d1fae5);
    border-color: #10b981;
    box-shadow: 0 5px 0 #047857;
}

.shop-item-icon {
    font-size: 40px;
    line-height: 1;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
}

.shop-item-info {
    flex: 1;
    min-width: 0;
}

.shop-item-title {
    font-size: 15px;
    font-weight: 900;
    color: #1e293b;
    margin-bottom: 4px;
}

.shop-item-desc {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    line-height: 1.3;
}

.shop-item-count {
    display: inline-block;
    font-size: 11px;
    font-weight: 900;
    padding: 3px 8px;
    background: #dbeafe;
    color: #1e40af;
    border-radius: 12px;
    margin-top: 4px;
}

.shop-item-price {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.shop-price-value {
    font-size: 14px;
    font-weight: 900;
    color: #d97706;
    white-space: nowrap;
}

.shop-buy-btn {
    padding: 10px 18px;
    background: linear-gradient(180deg, #3b82f6, #1e40af);
    color: white;
    border: 2px solid #60a5fa;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 900;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.12s ease;
    box-shadow: 0 3px 0 #1e3a8a;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    white-space: nowrap;
}

.shop-buy-btn:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 #1e3a8a;
}

.shop-buy-btn:disabled {
    background: linear-gradient(180deg, #94a3b8, #64748b);
    border-color: #cbd5e1;
    box-shadow: 0 3px 0 #334155;
    cursor: not-allowed;
    opacity: 0.7;
}

.shop-buy-btn.owned {
    background: linear-gradient(180deg, #22c55e, #16a34a);
    border-color: #4ade80;
    box-shadow: 0 3px 0 #14532d;
}

/* ---------- آیتم‌های مسابقه ---------- */
.quiz-items-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    justify-content: flex-end;
    padding: 0 4px;
}

.quiz-item-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: linear-gradient(180deg, #fbbf24, #d97706);
    color: white;
    border: 2px solid #fcd34d;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 900;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.12s ease;
    box-shadow: 0 3px 0 #78350f;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.quiz-item-btn:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 #78350f;
}

.quiz-item-btn:disabled {
    background: linear-gradient(180deg, #94a3b8, #64748b);
    border-color: #cbd5e1;
    box-shadow: 0 3px 0 #334155;
    cursor: not-allowed;
    opacity: 0.6;
}

.quiz-item-count {
    background: rgba(0,0,0,0.3);
    padding: 1px 6px;
    border-radius: 10px;
    font-size: 11px;
}

/* ---------- تبلیغ ---------- */
.ad-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ad-card {
    max-width: 400px;
    width: 100%;
    background: white;
    border: 4px solid #fbbf24;
    border-radius: 26px;
    padding: 30px 24px;
    text-align: center;
    box-shadow: 0 15px 0 #92400e, 0 25px 60px rgba(0,0,0,0.5);
    animation: bounceIn 0.5s ease;
}

.ad-icon {
    font-size: 80px;
    margin-bottom: 16px;
    animation: float 2s ease infinite;
}

.ad-title {
    font-size: 20px;
    font-weight: 900;
    color: #1e293b;
    margin-bottom: 8px;
}

.ad-subtitle {
    font-size: 14px;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 20px;
}

.ad-timer-bar {
    width: 100%;
    height: 14px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
    border: 2px solid #cbd5e1;
}

.ad-timer-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #fbbf24, #ef4444);
    border-radius: 8px;
    transition: width 1s linear;
    box-shadow: 0 0 10px rgba(251,191,36,0.6);
}

.ad-timer-text {
    font-size: 16px;
    font-weight: 900;
    color: #dc2626;
    margin-bottom: 16px;
}

.ad-reward {
    padding: 12px;
    background: linear-gradient(180deg, #fef3c7, #fde68a);
    border: 3px solid #fbbf24;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 900;
    color: #92400e;
    margin-bottom: 16px;
}

.ad-close-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(180deg, #ef4444, #b91c1c);
    color: white;
    border: 3px solid #f87171;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 900;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.12s ease;
    box-shadow: 0 5px 0 #7f1d1d;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.ad-close-btn:disabled {
    background: linear-gradient(180deg, #94a3b8, #64748b);
    border-color: #cbd5e1;
    box-shadow: 0 5px 0 #334155;
    cursor: not-allowed;
    opacity: 0.7;
}

.ad-close-btn:active:not(:disabled) {
    transform: translateY(3px);
    box-shadow: 0 2px 0 #7f1d1d;
}

.ad-promo-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b, #ec4899);
    border: 3px solid #fcd34d;
    border-radius: 20px;
    box-shadow: 0 5px 0 #92400e, 0 8px 20px rgba(251,191,36,0.4);
    margin-top: 10px;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.ad-promo-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 60%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shine 3s ease infinite;
    pointer-events: none;
}

.ad-promo-card:active {
    transform: translateY(2px);
    box-shadow: 0 3px 0 #92400e;
}

.ad-promo-icon {
    font-size: 32px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    z-index: 1;
    flex-shrink: 0;
}

.ad-promo-text {
    flex: 1;
    z-index: 1;
    min-width: 0;
}

.ad-promo-title {
    font-size: 14px;
    font-weight: 900;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 2px;
}

.ad-promo-subtitle {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.95);
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.ad-promo-count {
    background: white;
    color: #db2777;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 900;
    flex-shrink: 0;
    z-index: 1;
    border: 2px solid #fbbf24;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* ---------- تغییر نام ---------- */
.rename-modal-content {
    max-width: 400px;
    width: 100%;
    background: white;
    border: 4px solid #3b82f6;
    border-radius: 26px;
    padding: 28px 22px;
    text-align: center;
    box-shadow: 0 15px 0 #1e40af, 0 25px 60px rgba(0,0,0,0.5);
    margin: auto;
}

.rename-icon {
    font-size: 64px;
    margin-bottom: 12px;
}

.rename-title {
    font-size: 20px;
    font-weight: 900;
    color: #1e293b;
    margin-bottom: 8px;
}

.rename-subtitle {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 18px;
}

.rename-input {
    width: 100%;
    padding: 14px 18px;
    border-radius: 14px;
    border: 3px solid #cbd5e1;
    background: white;
    color: #1e293b;
    font-size: 15px;
    font-family: inherit;
    font-weight: 700;
    text-align: center;
    outline: none;
    margin-bottom: 12px;
}

.rename-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59,130,246,0.15);
}

.rename-buttons {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.rename-btn {
    flex: 1;
    padding: 13px;
    border-radius: 14px;
    border: 3px solid;
    font-size: 14px;
    font-weight: 900;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.12s ease;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.rename-btn.confirm {
    background: linear-gradient(180deg, #22c55e, #16a34a);
    color: white;
    border-color: #4ade80;
    box-shadow: 0 4px 0 #14532d;
}

.rename-btn.cancel {
    background: linear-gradient(180deg, #94a3b8, #64748b);
    color: white;
    border-color: #cbd5e1;
    box-shadow: 0 4px 0 #334155;
}

.rename-btn:active {
    transform: translateY(2px);
}

/* ---------- اسکرول‌بار ---------- */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #3b82f6, #8b5cf6);
    border-radius: 3px;
}

/* ---------- موبایل ---------- */
@media (max-width: 400px) {
    .profile-avatar-wrapper { width: 68px; height: 68px; }
    .profile-avatar { font-size: 38px; }
    .profile-name { font-size: 16px; }
    .avatar-preview { font-size: 70px; }
    h1 { font-size: 22px; }
    .menu-btn { padding: 10px 6px; font-size: 12px; min-height: 70px; gap: 4px; }
    .menu-btn-icon { font-size: 26px; }
    .menu-btn-text { font-size: 12px; }
    .menu-btn-img { width: 32px; height: 32px; }
    .category { font-size: 13px; padding: 16px 8px; min-height: 90px; }
    .category-grid { gap: 10px; }
    .menu-grid { gap: 8px; }
    .stat-box .stat-value { font-size: 16px; }
    .stat-box .stat-icon { font-size: 18px; }
    .stat-box { min-height: 62px; padding: 6px 4px; }
    .profile-card { padding: 12px 14px; }
    .top-bar { padding: 10px 12px; height: 58px; }
    .categories-container { padding: 70px 12px 110px; }
    .bottom-bar { height: 96px; }
    .promo-banner { padding: 10px 12px; gap: 8px; }
    .banner-icon { font-size: 26px; }
    .banner-icon-img { width: 32px; height: 32px; }
    .banner-title { font-size: 12px; }
    .banner-subtitle { font-size: 10px; }
    .banner-btn { padding: 7px 12px; font-size: 11px; }
    .login-logo-img { width: 88px; height: 88px; }
    .profile-header-avatar { width: 88px; height: 88px; }
    .profile-header-name { font-size: 20px; }
    .info-box { min-height: 74px; padding: 10px 6px; }
    .info-box .info-value { font-size: 16px; }
    .info-box .info-icon { font-size: 20px; }
    .achievement-item { padding: 10px 12px; gap: 10px; }
    .achievement-icon { font-size: 26px; }
    .achievement-title { font-size: 13px; }
    .achievement-desc { font-size: 11px; }
    .circular-timer-number { font-size: 17px; }
    .section-emoji { font-size: 60px; }
    .section-title { font-size: 20px; }
    .section-info-value { font-size: 18px; }
    .league-name { font-size: 22px; }
    .league-row { font-size: 13px; padding: 10px 10px; gap: 8px; }
    .league-rank, .league-avatar { width: 32px; height: 32px; font-size: 15px; }
    .vs-avatar { font-size: 38px; width: 50px; height: 50px; }
    .vs-symbol { font-size: 26px; }
    .topic-pick-btn { padding: 16px 10px; font-size: 13px; min-height: 80px; }
    .league-vs-card { padding: 16px; }
    .result-emoji { font-size: 60px; }
    .league-result-card { padding: 24px 18px; }
    .hearts-mini { font-size: 11px; padding: 4px 8px; }
    .shop-item { padding: 12px; gap: 10px; }
    .shop-item-icon { font-size: 32px; width: 40px; height: 40px; }
    .shop-icon-img { width: 40px; height: 40px; }
    .shop-item-title { font-size: 14px; }
    .shop-buy-btn { padding: 8px 14px; font-size: 12px; }
    .ad-icon { font-size: 60px; }
    .ad-title { font-size: 18px; }
    .quiz-item-btn { padding: 5px 10px; font-size: 11px; }
    .match-player-mini { font-size: 22px; width: 34px; height: 34px; }
    .match-opponent-name { font-size: 13px; }
    .match-badge { font-size: 10px; padding: 3px 8px; }
    .match-btn { padding: 10px; font-size: 13px; }
    .match-card { padding: 12px; }
    .music-toggle-btn { width: 32px; height: 32px; font-size: 14px; }
    .tab-btn .tab-img { width: 46px; height: 46px; padding: 4px; }
    .tab-btn .tab-icon-fallback { width: 46px; height: 46px; font-size: 38px; }
    .tab-label { font-size: 10px; }
    .currency-img { width: 18px; height: 18px; }
}
.tab-btn[data-tab="home"] .tab-img {
    object-fit: cover;
    object-position: center center;
}
/* ============================================
   🎬 انیمیشن‌های دکمه آنلاین
   ============================================ */
@keyframes onlineShine {
    0%   { left: -100%; }
    50%  { left: 150%; }
    100% { left: 150%; }
}

@keyframes onlineArrow {
    0%, 100% { transform: translateX(0); opacity: 0.8; }
    50%      { transform: translateX(-6px); opacity: 1; }
}
/* ============================================
   🎬 انیمیشن‌های دکمه آنلاین هیجانی
   ============================================ */

@keyframes onlineGradientMove {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes onlineShine {
    0%   { left: -100%; }
    100% { left: 150%; }
}

@keyframes onlineCircleFloat {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.7; }
    50%      { transform: translate(10px, -10px) scale(1.15); opacity: 1; }
}

@keyframes onlineStarTwinkle {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50%      { opacity: 1; transform: scale(1.3); }
}

@keyframes onlineEnergyFlow {
    0%   { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

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

@keyframes onlineIconPulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.08); }
}

@keyframes onlineLivePulse {
    0%, 100% { transform: scale(1); box-shadow: 0 2px 8px rgba(239,68,68,0.5); }
    50%      { transform: scale(1.06); box-shadow: 0 2px 15px rgba(239,68,68,0.9); }
}

@keyframes onlineLiveDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.5; transform: scale(0.7); }
}

@keyframes onlineProgressShine {
    0%   { left: -30%; }
    100% { left: 130%; }
}

@keyframes onlineArrowBounce {
    0%, 100% { transform: translateX(0); }
    50%      { transform: translateX(-6px); }
}
@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalFadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes modalBounceIn {
    0%   { transform: scale(0.5) translateY(50px); opacity: 0; }
    60%  { transform: scale(1.05) translateY(-5px); opacity: 1; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}
/* ============================================
   🎬 انیمیشن‌های مودال لیگ
   ============================================ */
@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalFadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes modalBounceIn {
    0%   { transform: scale(0.5) translateY(50px); opacity: 0; }
    60%  { transform: scale(1.05) translateY(-5px); opacity: 1; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}
/* ============================================
   🏠 آیکون خانه — آبی اجبارى
   ============================================ */
.tab-btn[data-tab="home"] .tab-img {
    filter: 
        brightness(0) saturate(100%) 
        invert(45%) sepia(90%) saturate(3000%) 
        hue-rotate(200deg) brightness(105%) contrast(100%)
        drop-shadow(0 0 8px rgba(96,165,250,0.8)) !important;
    opacity: 1 !important;
    background: radial-gradient(circle, rgba(96,165,250,0.35), transparent 70%) !important;
    border-color: #60a5fa !important;
    padding: 6px !important;
    width: 52px !important;
    height: 52px !important;
    border-radius: 50% !important;
    border: 2px solid #60a5fa !important;
    box-sizing: border-box !important;
}

.tab-btn[data-tab="home"] .tab-label {
    color: #60a5fa !important;
    text-shadow: 0 0 8px rgba(96,165,250,0.6) !important;
}
/* ============================================
   🎨 آبی کردن کادرهای صفحه اصلی
   ============================================ */

/* ۱) کارت پروفایل — آبی */
.profile-card {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #60a5fa 100%);
    box-shadow:
        0 8px 0 #1e3a8a,
        0 12px 30px rgba(30,64,175,0.5),
        inset 0 2px 0 rgba(255,255,255,0.3);
}

/* ۲) بنر لیگ هفتگی — آبی */
.promo-banner.league-banner {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 40%, #06b6d4 100%);
    border-color: #93c5fd;
    box-shadow:
        0 5px 0 #1e3a8a,
        0 10px 25px rgba(59,130,246,0.5);
}

.promo-banner.league-banner .banner-btn {
    color: #1e40af;
    border-color: #60a5fa;
}

/* ۳) کارت تبلیغ — آبی */
.ad-promo-card {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #60a5fa 100%);
    border: 3px solid #93c5fd;
    box-shadow:
        0 5px 0 #1e3a8a,
        0 8px 20px rgba(59,130,246,0.4);
}

.ad-promo-card .ad-promo-count {
    color: #1e40af;
    border-color: #60a5fa;
}
/* ============================================
   🎨 صفحه پروفایل — طراحی جدید
   ============================================ */

/* کانتینر اصلی پروفایل */
.profile-page {
    max-width: 520px;
    margin: 0 auto;
    padding-bottom: 30px;
}

/* ─── هدر پروفایل ─── */
.profile-hero {
    position: relative;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 40%, #8b5cf6 100%);
    border-radius: 24px;
    padding: 30px 20px 25px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(30, 64, 175, 0.4),
                inset 0 2px 0 rgba(255, 255, 255, 0.2);
    overflow: hidden;
    margin-bottom: 18px;
}

.profile-hero::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 20%,
                rgba(255,255,255,0.15) 0%,
                transparent 40%);
    animation: heroShine 6s ease infinite;
    pointer-events: none;
}

@keyframes heroShine {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-10%, -10%); }
}

.profile-hero-avatar-wrap {
    position: relative;
    width: 110px;
    height: 110px;
    margin: 0 auto 15px;
}

.profile-hero-ring {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: conic-gradient(from 0deg,
                #fbbf24, #f59e0b, #fbbf24,
                #fde68a, #fbbf24);
    animation: ringSpin 4s linear infinite;
    box-shadow: 0 0 25px rgba(251, 191, 36, 0.6);
}

.profile-hero-ring::after {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
}

@keyframes ringSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.profile-hero-avatar {
    position: absolute;
    inset: 0;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: linear-gradient(180deg, #ffffff, #e0f2fe);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    border: 4px solid white;
    z-index: 2;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.profile-hero-avatar img {
    width: 100% !important;
    height: 100% !important;
}

.profile-hero-name {
    font-size: 22px;
    font-weight: 900;
    color: white;
    margin: 0 0 8px 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

.profile-hero-level {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.22);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 900;
    color: white;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* ─── بخش تیتر ─── */
.section-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 900;
    color: #1e293b;
    margin: 22px 0 12px;
    padding-right: 4px;
}

.section-label::before {
    content: "";
    width: 4px;
    height: 20px;
    background: linear-gradient(180deg, #3b82f6, #8b5cf6);
    border-radius: 4px;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
}

/* ─── آمار کلی ─── */
.stats-wrap {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.stat-card {
    position: relative;
    border-radius: 16px;
    padding: 12px 6px;
    text-align: center;
    overflow: hidden;
    transition: transform 0.2s ease;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.stat-card:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.15);
}

.stat-card-icon {
    font-size: 20px;
    display: block;
    margin-bottom: 4px;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2));
}

.stat-card-value {
    font-size: 16px;
    font-weight: 900;
    display: block;
    line-height: 1.2;
    margin-bottom: 2px;
}

.stat-card-label {
    font-size: 9px;
    font-weight: 800;
    opacity: 0.85;
    display: block;
}

/* رنگ‌های کارت آمار */
.stat-yellow {
    background: linear-gradient(180deg, #fef3c7, #fde68a);
    color: #78350f;
    border: 2px solid #fbbf24;
}

.stat-blue {
    background: linear-gradient(180deg, #dbeafe, #bfdbfe);
    color: #1e3a8a;
    border: 2px solid #60a5fa;
}

.stat-green {
    background: linear-gradient(180deg, #dcfce7, #bbf7d0);
    color: #14532d;
    border: 2px solid #4ade80;
}

.stat-red {
    background: linear-gradient(180deg, #fee2e2, #fecaca);
    color: #7f1d1d;
    border: 2px solid #f87171;
}

.stat-purple {
    background: linear-gradient(180deg, #ede9fe, #ddd6fe);
    color: #4c1d95;
    border: 2px solid #a78bfa;
}

.stat-pink {
    background: linear-gradient(180deg, #fce7f3, #fbcfe8);
    color: #831843;
    border: 2px solid #f9a8d4;
}

.stat-orange {
    background: linear-gradient(180deg, #ffedd5, #fed7aa);
    color: #7c2d12;
    border: 2px solid #fb923c;
}

.stat-cyan {
    background: linear-gradient(180deg, #cffafe, #a5f3fc);
    color: #164e63;
    border: 2px solid #22d3ee;
}

/* ─── افتخارات ─── */
.trophy-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.trophy-card {
    position: relative;
    border-radius: 20px;
    padding: 18px 12px;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 6px 0 rgba(0, 0, 0, 0.2),
                inset 0 2px 0 rgba(255, 255, 255, 0.4);
}

.trophy-card::before {
    content: "";
    position: absolute;
    top: -30%;
    left: -50%;
    width: 60%;
    height: 160%;
    background: linear-gradient(90deg,
                transparent,
                rgba(255, 255, 255, 0.5),
                transparent);
    transform: rotate(25deg);
    animation: trophyShine 3s ease infinite;
    pointer-events: none;
}

@keyframes trophyShine {
    0% { left: -50%; }
    60%, 100% { left: 150%; }
}

.trophy-gold {
    background: linear-gradient(135deg, #fbbf24, #f59e0b, #d97706);
    border: 3px solid #fcd34d;
    color: #78350f;
}

.trophy-blue {
    background: linear-gradient(135deg, #60a5fa, #3b82f6, #1e40af);
    border: 3px solid #93c5fd;
    color: white;
}

.trophy-icon {
    font-size: 42px;
    display: block;
    margin-bottom: 6px;
    filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.3));
    animation: trophyPulse 2s ease-in-out infinite;
}

@keyframes trophyPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.trophy-value {
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 6px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
    position: relative;
    z-index: 2;
}

.trophy-label {
    font-size: 11px;
    font-weight: 800;
    opacity: 0.95;
    position: relative;
    z-index: 2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* ─── آمار دسته‌بندی ─── */
.category-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.category-item {
    position: relative;
    border-radius: 16px;
    padding: 14px 16px;
    overflow: hidden;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.12),
                inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: transform 0.2s ease;
}

.category-item:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.12);
}

.category-item-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    gap: 10px;
}

.category-item-name {
    font-size: 13px;
    font-weight: 900;
    flex: 1;
}

.category-item-pct {
    font-size: 17px;
    font-weight: 900;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.category-bar-bg {
    width: 100%;
    height: 10px;
    background: rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 6px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.15);
}

.category-bar {
    height: 100%;
    border-radius: 10px;
    transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
}

.category-item-detail {
    font-size: 11px;
    font-weight: 800;
    opacity: 0.85;
    text-align: left;
}

/* رنگ‌های دسته‌بندی */
.cat-excellent {
    background: linear-gradient(180deg, #dcfce7, #bbf7d0);
    border: 3px solid #22c55e;
    color: #14532d;
}
.cat-excellent .category-bar {
    background: linear-gradient(90deg, #22c55e, #16a34a);
}

.cat-good {
    background: linear-gradient(180deg, #fef3c7, #fde68a);
    border: 3px solid #f59e0b;
    color: #78350f;
}
.cat-good .category-bar {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.cat-poor {
    background: linear-gradient(180deg, #fee2e2, #fecaca);
    border: 3px solid #ef4444;
    color: #7f1d1d;
}
.cat-poor .category-bar {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

/* پیام خالی */
.empty-state {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(180deg, #f8fafc, #f1f5f9);
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.7;
}

.empty-state-icon {
    font-size: 42px;
    display: block;
    margin-bottom: 10px;
    opacity: 0.6;
}

/* ─── دکمه‌های پروفایل ─── */
.profile-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 60px;
    padding: 14px;
    border-radius: 18px;
    font-size: 15px;
    font-weight: 900;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.12s ease;
    border: 3px solid;
    margin-top: 12px;
    position: relative;
    overflow: hidden;
}

.profile-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg,
                transparent,
                rgba(255, 255, 255, 0.3),
                transparent);
    transition: left 0.5s ease;
}

.profile-btn:active::before {
    left: 150%;
}

.profile-btn-avatar {
    background: linear-gradient(180deg, #3b82f6, #1e40af);
    color: white;
    border-color: #60a5fa;
    box-shadow: 0 6px 0 #1e3a8a, 0 8px 20px rgba(30, 64, 175, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.profile-btn-avatar:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 #1e3a8a;
}

.profile-btn-logout {
    background: linear-gradient(180deg, #ef4444, #b91c1c);
    color: white;
    border-color: #f87171;
    box-shadow: 0 6px 0 #7f1d1d, 0 8px 20px rgba(185, 28, 28, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.profile-btn-logout:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 #7f1d1d;
}

.profile-btn-icon {
    font-size: 22px;
}

/* ─── ریسپانسیو ─── */
@media (max-width: 380px) {
    .stats-wrap {
        gap: 6px;
    }
    .stat-card {
        padding: 10px 4px;
    }
    .stat-card-value {
        font-size: 14px;
    }
    .stat-card-label {
        font-size: 8px;
    }
    .trophy-value {
        font-size: 24px;
    }
}
/* 🆕 قلب‌ها در ۲ ردیف */
.hearts-mini {
    display: flex;
    flex-direction: column;
    gap: 1px;
    align-items: center;
    justify-content: center;
    padding: 3px 6px;
    background: rgba(255,255,255,0.15);
    border-radius: 12px;
    border: 2px solid rgba(255,255,255,0.3);
    min-height: 38px;
}

.hearts-mini.empty {
    background: rgba(239,68,68,0.2);
    border-color: rgba(239,68,68,0.5);
}

.hearts-row {
    display: flex;
    flex-direction: row;
    gap: 1px;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.heart-item {
    font-size: 11px;
    line-height: 1;
    width: 12px;
    height: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.heart-item.filled {
    filter: drop-shadow(0 0 2px rgba(239, 68, 68, 0.7));
}

.heart-item.empty {
    opacity: 0.4;
}
/* ============================================
   ⚔️ CSS اعلام نتیجه بازی آنلاین
   ============================================ */

/* ─── کانتینر اصلی ─── */
.online-result-screen {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    animation: onlineResultFadeIn 0.6s ease;
}

@keyframes onlineResultFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ─── کارت اصلی نتیجه ─── */
.online-result-card {
    position: relative;
    border-radius: 28px;
    padding: 30px 22px;
    text-align: center;
    color: white;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 12px 0 rgba(0,0,0,0.25), 0 20px 50px rgba(0,0,0,0.4);
}

/* ─── برد (سبز طلایی) ─── */
.online-result-win {
    background: linear-gradient(135deg, #047857 0%, #10b981 40%, #fbbf24 100%);
    border: 4px solid #fde68a;
}

/* ─── باخت (قرمز) ─── */
.online-result-lose {
    background: linear-gradient(135deg, #7f1d1d 0%, #dc2626 50%, #f87171 100%);
    border: 4px solid #fca5a5;
}

/* ─── مساوی (نارنجی) ─── */
.online-result-tie {
    background: linear-gradient(135deg, #92400e 0%, #f59e0b 50%, #fbbf24 100%);
    border: 4px solid #fcd34d;
}

/* ─── خروج (خاکستری) ─── */
.online-result-exit {
    background: linear-gradient(135deg, #334155 0%, #64748b 50%, #94a3b8 100%);
    border: 4px solid #cbd5e1;
}

/* ─── درخشش ─── */
.online-result-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 60%;
    height: 200%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255,255,255,0.45),
        transparent);
    transform: rotate(25deg);
    animation: onlineResultShine 3.5s ease infinite;
    pointer-events: none;
}

@keyframes onlineResultShine {
    0% { left: -100%; }
    60%, 100% { left: 150%; }
}

/* ─── جام/جام بزرگ ─── */
.online-result-emoji {
    font-size: 100px;
    line-height: 1;
    margin-bottom: 16px;
    filter: drop-shadow(0 8px 18px rgba(0,0,0,0.4));
    position: relative;
    z-index: 2;
    display: inline-block;
}

/* ─── انیمیشن برد ─── */
.online-result-win .online-result-emoji {
    animation: onlineTrophyBounce 1.5s ease infinite;
}

@keyframes onlineTrophyBounce {
    0%, 100% { transform: translateY(0) rotate(-5deg) scale(1); }
    50% { transform: translateY(-15px) rotate(5deg) scale(1.1); }
}

/* ─── انیمیشن باخت ─── */
.online-result-lose .online-result-emoji {
    animation: onlineLoseShake 2s ease infinite;
}

@keyframes onlineLoseShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

/* ─── انیمیشن مساوی ─── */
.online-result-tie .online-result-emoji {
    animation: onlineTiePulse 2s ease infinite;
}

@keyframes onlineTiePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

/* ─── عنوان نتیجه ─── */
.online-result-title {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 10px;
    text-shadow: 0 3px 0 rgba(0,0,0,0.4), 0 0 20px rgba(255,255,255,0.3);
    position: relative;
    z-index: 2;
    letter-spacing: 1px;
}

/* ─── زیرعنوان ─── */
.online-result-subtitle {
    font-size: 14px;
    font-weight: 700;
    color: rgba(255,255,255,0.95);
    margin-bottom: 24px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    position: relative;
    z-index: 2;
}

/* ═══════════════════════════════
   ⚔️ نبرد VS (امتیازها)
   ═══════════════════════════════ */
.online-battle-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 18px 12px;
    background: rgba(0,0,0,0.3);
    border-radius: 22px;
    border: 3px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
    box-shadow: inset 0 2px 12px rgba(0,0,0,0.3);
}

/* ─── کارت هر بازیکن ─── */
.online-player-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.online-player-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    overflow: hidden;
    border: 3px solid rgba(255,255,255,0.7);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    flex-shrink: 0;
}

.online-player-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.online-player-avatar.is-me {
    border-color: #22c55e;
    box-shadow: 0 0 15px rgba(34,197,94,0.7);
}

.online-player-avatar.is-opponent {
    border-color: #ef4444;
    box-shadow: 0 0 15px rgba(239,68,68,0.7);
}

.online-player-name {
    font-size: 12px;
    font-weight: 900;
    color: white;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.3;
}

.online-player-name.is-me {
    color: #86efac;
}

.online-player-name.is-opponent {
    color: #fca5a5;
}

/* ─── امتیاز ─── */
.online-player-score {
    font-size: 34px;
    font-weight: 900;
    color: white;
    text-shadow: 0 3px 6px rgba(0,0,0,0.5);
    line-height: 1;
    padding: 6px 16px;
    background: rgba(0,0,0,0.3);
    border-radius: 14px;
    border: 2px solid rgba(255,255,255,0.3);
    min-width: 60px;
}

.online-player-score.winner {
    background: linear-gradient(180deg, #fbbf24, #d97706);
    color: white;
    border-color: #fde68a;
    animation: onlineScoreGlow 1.5s ease infinite;
    box-shadow: 0 0 20px rgba(251,191,36,0.7);
}

@keyframes onlineScoreGlow {
    0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(251,191,36,0.7); }
    50% { transform: scale(1.08); box-shadow: 0 0 30px rgba(251,191,36,1); }
}

/* ─── VS وسط ─── */
.online-vs-symbol {
    font-size: 28px;
    font-weight: 900;
    color: #fbbf24;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5), 0 0 15px rgba(251,191,36,0.6);
    flex-shrink: 0;
    animation: onlineVsPulse 1.5s ease infinite;
}

@keyframes onlineVsPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* ═══════════════════════════════
   📊 آمار مسابقه
   ═══════════════════════════════ */
.online-stats-box {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
}

.online-stat-item {
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 14px;
    padding: 10px 6px;
    text-align: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.online-stat-value {
    font-size: 20px;
    font-weight: 900;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
    line-height: 1.2;
    display: block;
}

.online-stat-label {
    font-size: 10px;
    font-weight: 800;
    color: rgba(255,255,255,0.85);
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    margin-top: 2px;
}

/* ─── جایزه‌ها ─── */
.online-rewards-box {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 18px;
    position: relative;
    z-index: 2;
}

.online-reward-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 2px solid #fbbf24;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 900;
    color: #78350f;
    box-shadow: 0 3px 0 #b45309, 0 5px 12px rgba(0,0,0,0.2);
    animation: onlineRewardPulse 2s ease infinite;
}

@keyframes onlineRewardPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.online-reward-icon {
    font-size: 18px;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
}

/* ═══════════════════════════════
   دکمه‌ها
   ═══════════════════════════════ */
.online-result-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    z-index: 2;
}

.online-result-btn {
    width: 100%;
    padding: 16px;
    border-radius: 18px;
    border: 3px solid;
    font-size: 15px;
    font-weight: 900;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.12s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.online-result-btn-icon {
    font-size: 20px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.online-result-btn-again {
    background: linear-gradient(180deg, #f59e0b, #d97706);
    color: white;
    border-color: #fbbf24;
    box-shadow: 0 6px 0 #92400e, 0 8px 20px rgba(245,158,11,0.5);
}

.online-result-btn-again:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 #92400e;
}

.online-result-btn-home {
    background: linear-gradient(180deg, #3b82f6, #1e40af);
    color: white;
    border-color: #60a5fa;
    box-shadow: 0 6px 0 #1e3a8a, 0 8px 20px rgba(59,130,246,0.4);
}

.online-result-btn-home:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 #1e3a8a;
}

/* ═══════════════════════════════
   🎉 کانفتی برای برد
   ═══════════════════════════════ */
.online-confetti {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 2px;
    pointer-events: none;
    z-index: 1;
}

.online-result-win .online-confetti:nth-child(1) { 
    left: 5%; background: #fbbf24; 
    animation: onlineConfettiFall 3s linear infinite; animation-delay: 0s; 
}
.online-result-win .online-confetti:nth-child(2) { 
    left: 20%; background: #ec4899; 
    animation: onlineConfettiFall 3.5s linear infinite; animation-delay: 0.4s; 
}
.online-result-win .online-confetti:nth-child(3) { 
    left: 35%; background: #10b981; 
    animation: onlineConfettiFall 2.8s linear infinite; animation-delay: 0.8s; 
}
.online-result-win .online-confetti:nth-child(4) { 
    left: 50%; background: #3b82f6; 
    animation: onlineConfettiFall 3.2s linear infinite; animation-delay: 1.2s; 
}
.online-result-win .online-confetti:nth-child(5) { 
    left: 65%; background: #fbbf24; 
    animation: onlineConfettiFall 2.9s linear infinite; animation-delay: 1.6s; 
}
.online-result-win .online-confetti:nth-child(6) { 
    left: 80%; background: #a855f7; 
    animation: onlineConfettiFall 3.4s linear infinite; animation-delay: 2s; 
}
.online-result-win .online-confetti:nth-child(7) { 
    left: 92%; background: #ef4444; 
    animation: onlineConfettiFall 3.1s linear infinite; animation-delay: 2.4s; 
}

@keyframes onlineConfettiFall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(700px) rotate(720deg);
        opacity: 0;
    }
}

/* ═══════════════════════════════
   💔 انیمیشن باخت
   ═══════════════════════════════ */
.online-defeat-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, 
        rgba(0,0,0,0) 0%, 
        rgba(0,0,0,0.4) 100%);
    pointer-events: none;
    z-index: 1;
}

/* ═══════════════════════════════
   🏆 صفحه‌ی جشن قهرمانی (برای لیگ)
   ═══════════════════════════════ */
.champion-celebration {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: championFadeIn 0.5s ease;
}

@keyframes championFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.champion-celebration-card {
    max-width: 400px;
    width: 100%;
    background: linear-gradient(135deg, #92400e, #fbbf24, #f59e0b);
    border: 5px solid #fde68a;
    border-radius: 32px;
    padding: 40px 30px;
    text-align: center;
    color: white;
    box-shadow: 
        0 20px 0 #78350f,
        0 30px 80px rgba(251,191,36,0.6),
        inset 0 3px 0 rgba(255,255,255,0.4);
    animation: championPop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

@keyframes championPop {
    0% { transform: scale(0.3) rotate(-15deg); opacity: 0; }
    60% { transform: scale(1.1) rotate(5deg); }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.champion-celebration-trophy {
    font-size: 120px;
    line-height: 1;
    margin-bottom: 20px;
    filter: drop-shadow(0 10px 25px rgba(0,0,0,0.5));
    animation: championTrophyBounce 1.5s ease infinite;
    display: inline-block;
}

@keyframes championTrophyBounce {
    0%, 100% { transform: translateY(0) rotate(-8deg) scale(1); }
    50% { transform: translateY(-20px) rotate(8deg) scale(1.15); }
}

.champion-celebration-title {
    font-size: 34px;
    font-weight: 900;
    margin-bottom: 12px;
    text-shadow: 0 4px 0 rgba(0,0,0,0.4), 0 0 30px rgba(255,255,255,0.5);
    letter-spacing: 1px;
}

.champion-celebration-subtitle {
    font-size: 16px;
    font-weight: 700;
    color: rgba(255,255,255,0.95);
    margin-bottom: 24px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* ─── ریسپانسیو ─── */
@media (max-width: 400px) {
    .online-result-emoji {
        font-size: 80px;
    }
    
    .online-result-title {
        font-size: 26px;
    }
    
    .online-player-avatar {
        width: 50px;
        height: 50px;
        font-size: 28px;
    }
    
    .online-player-score {
        font-size: 26px;
        min-width: 50px;
        padding: 5px 12px;
    }
    
    .online-vs-symbol {
        font-size: 22px;
    }
    
    .online-player-name {
        font-size: 11px;
    }
    
    .online-stat-value {
        font-size: 17px;
    }
    
    .online-stat-label {
        font-size: 9px;
    }
    
    .champion-celebration-trophy {
        font-size: 90px;
    }
    
    .champion-celebration-title {
        font-size: 26px;
    }
}
