/* ================================================================
   LifeStyleMod – Public Pages (v6.2)
   ----------------------------------------------------------------
   v6.2:
   ▸ 🐛 Fix: حذف complete sticky filters روی موبایل
     — قبلاً filters در /explore و /creators روی موبایل چسبان
       می‌شد و فضای صفحه رو می‌گرفت
     — الان مثل قبل از scroll عادی استفاده می‌کنه

   v6.1:
   ▸ 🐛 Fix: Mobile Sticky Filters (top:0)

   v6.0:
   ▸ 🐛 Fix: Filters Container Layout (display:flex روی .filters)
   ▸ 🐛 Fix: Mobile Filters (flex-direction: column)

   v5.9:
   ▸ 🆕 Explore: Filter Counts، Clear Filters، Results Info
   ▸ 🆕 Explore: Pack Badges، Empty State، Smooth Re-render

   شامل:
   ▸ Page Wrappers
   ▸ صفحه اصلی (index)
   ▸ Explore (کاوش)
   ▸ Creators (سازندگان)
   ▸ Category (دسته‌بندی)
   ▸ Support، Feedback، Disabled
   ▸ Pack Details، Mods، Servers، Polls، Tutorials، Saved

   ⚠️ بدون backdrop-filter — بدون رنگ hardcode
   ================================================================ */

/* ═══════════════════════════════════════════════════════════
   1. PAGE WRAPPERS
   ═══════════════════════════════════════════════════════════ */
.creators-page-wrapper,
.cat-page-wrapper,
.explore-page-wrapper,
.support-page-wrapper,
.page-wrapper {
    flex: 1 0 auto;
    width: 100%;
    display: block;
    padding-bottom: var(--s-7);
}

body:has(.creators-page-wrapper),
body:has(.cat-page-wrapper),
body:has(.explore-page-wrapper),
body:has(.support-page-wrapper),
body:has(.owner-page-container),
body:has(.owner-users-container),
body:has(.owner-pp-container),
body:has(.owner-logs-container),
body:has(.owner-polls-container),
body:has(.os-container),
body:has(.owner-sms-container),
body:has(.ovpp-container),
body:has(.owner-announce-container),
body:has(.page-wrapper) {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.page-flex-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ═══════════════════════════════════════════════════════════
   2. HOMEPAGE (index.php)
   ═══════════════════════════════════════════════════════════ */
.stats-section {
    padding: 0 var(--s-5);
    margin-bottom: var(--s-8);
}

.stats-grid {
    grid-template-columns: repeat(4, 1fr);
}

.intro-seo {
    max-width: var(--container);
    margin: 0 auto var(--s-8);
    padding: var(--s-6) var(--s-7);
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    color: var(--c-text-soft);
    font-size: var(--fs-base);
    line-height: 1.9;
    text-align: center;
}

.intro-seo h2 {
    font-size: var(--fs-lg);
    color: var(--c-primary-light);
    margin-bottom: var(--s-3);
    font-weight: var(--fw-bold);
}

.intro-seo strong {
    color: var(--c-primary-light);
    font-weight: var(--fw-semi);
}

.intro-seo p {
    color: var(--c-text-soft);
    margin: 0;
    line-height: 2;
}

.top-pack-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
}

.top-pack-card:hover {
    transform: translate3d(0, -4px, 0);
    border-color: var(--c-border-hover);
    box-shadow: var(--shadow-md);
}

.category-card .category-icon {
    transition: transform var(--t-slow);
}

.category-card:hover .category-icon {
    transform: scale(1.08);
}

.contact-section {
    max-width: var(--container);
    margin: 0 auto var(--s-8);
}

#scrollTop {
    font-size: 18px;
    line-height: 1;
}

/* ─── Hero Live Line ─── */
.hero-live-line {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 18px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-full);
    font-size: var(--fs-sm);
    color: var(--c-text-muted);
    margin: 0 auto var(--s-5);
    width: fit-content;
    max-width: 100%;
}

.hero-live-line strong {
    color: var(--c-primary-light);
    font-weight: var(--fw-bold);
    font-variant-numeric: tabular-nums;
}

.hero-live-sep {
    color: var(--c-text-dim);
    opacity: 0.6;
}

/* ═══════════════════════════════════════════════════════════
   3. EXPLORE PAGE
   ═══════════════════════════════════════════════════════════ */
.results-count {
    text-align: center;
    color: var(--c-text-muted);
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    margin-bottom: var(--s-5);
    padding: var(--s-2) var(--s-4);
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-full);
    display: table;
    margin-inline: auto;
}

.seo-desc {
    color: var(--c-text-dim);
    font-size: var(--fs-sm);
    margin-top: var(--s-2);
    text-align: center;
}

#tab-packs,
#tab-mods {
    animation: fadeIn 0.25s ease;
}

.explore-page-wrapper .container {
    padding-top: 0;
}

/* ═══════════════════════════════════════════════════════════
   🐛 Fix v6.0: Filters Container Layout
   ═══════════════════════════════════════════════════════════ */
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-3);
    align-items: center;
    justify-content: center;
    margin-bottom: var(--s-5);
    padding: var(--s-3);
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
}

.pack-img-wrap .no-img,
.no-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    background: var(--c-bg-alt);
    color: var(--c-text-dim);
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--s-8) var(--s-5);
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    color: var(--c-text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--s-3);
}

.no-results .icon {
    font-size: 48px;
    line-height: 1;
    display: block;
    opacity: 0.6;
}

.no-results h3 {
    color: var(--c-text);
    font-size: var(--fs-lg);
    font-weight: var(--fw-bold);
    margin: 0;
}

.no-results p {
    color: var(--c-text-muted);
    font-size: var(--fs-sm);
    line-height: 1.7;
    margin: 0;
    max-width: 380px;
}

.explore-page-wrapper .tab-bar {
    display: inline-flex;
    margin: 0 auto var(--s-5);
    width: 100%;
    max-width: 380px;
    justify-content: center;
}

.explore-page-wrapper .tab-content {
    animation: fadeIn 0.25s ease;
}

#tab-mods .tag-chip {
    padding: 6px 14px;
    font-size: var(--fs-sm);
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-full);
    color: var(--c-text-muted);
    font-weight: var(--fw-medium);
    cursor: pointer;
    font-family: inherit;
    transition: background var(--t-fast), color var(--t-fast),
                border-color var(--t-fast), transform var(--t-fast);
}

#tab-mods .tag-chip:hover {
    color: var(--c-text);
    border-color: var(--c-border-hover);
    transform: translate3d(0, -1px, 0);
}

#tab-mods .tag-chip.active {
    background: var(--c-primary);
    color: var(--c-text-on-primary);
    border-color: var(--c-primary);
}

#tab-packs .filter-group,
#tab-mods .filter-group {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    padding: 3px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
}

/* ─── 🆕 Filter Counts ─── */
.filter-btn .filter-count {
    display: inline-block;
    padding: 0 6px;
    margin-inline-start: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--r-full);
    font-size: 10px;
    font-weight: var(--fw-semi);
    color: var(--c-text-muted);
    line-height: 1.7;
    min-width: 22px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.filter-btn.active .filter-count {
    background: rgba(255, 255, 255, 0.22);
    color: var(--c-text-on-primary);
}

/* ─── 🆕 Clear Filters Button ─── */
.clear-filters-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: transparent;
    border: 1px dashed var(--c-border);
    border-radius: var(--r-md);
    color: var(--c-danger);
    font-family: inherit;
    font-size: var(--fs-sm);
    font-weight: var(--fw-semi);
    cursor: pointer;
    transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
    white-space: nowrap;
}

.clear-filters-btn:hover {
    background: var(--c-danger-bg);
    border-color: var(--c-danger-border);
    color: var(--c-danger);
}

.clear-filters-btn[hidden] {
    display: none;
}

/* ─── 🆕 Results Info Bar ─── */
.results-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--s-3);
    flex-wrap: wrap;
    margin-bottom: var(--s-4);
}

.results-info-text {
    color: var(--c-text-muted);
    font-size: var(--fs-sm);
    font-variant-numeric: tabular-nums;
}

.results-info-text strong {
    color: var(--c-text);
    font-weight: var(--fw-semi);
}

/* ─── 🆕 Pack Badges on Card ─── */
.pack-img-wrap {
    position: relative;
}

.pack-badges {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 2;
    pointer-events: none;
}

.pack-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: var(--r-xs);
    font-size: 10px;
    font-weight: var(--fw-bold);
    line-height: 1.4;
    white-space: nowrap;
    color: #ffffff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.pack-badge--new {
    background: var(--c-success);
}

.pack-badge--hot {
    background: var(--c-danger);
}

/* ─── 🆕 Empty State Actions ─── */
.empty-state-actions {
    display: flex;
    gap: var(--s-2);
    flex-wrap: wrap;
    justify-content: center;
    margin-top: var(--s-3);
}

/* ─── 🆕 Smooth Re-render ─── */
.packs-grid {
    transition: opacity var(--t-fast);
}

.packs-grid.is-updating {
    opacity: 0.5;
    pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════
   🐛 Fix v6.2: Mobile Filters — بدون sticky
   ═══════════════════════════════════════════════════════════
   ▸ قبلاً (v6.1): filters روی موبایل sticky بود
   ▸ مشکل: فضای صفحه رو می‌گرفت روی /explore و /creators
   ▸ راه‌حل: حذف complete sticky → scroll عادی
   ▸ چیدمان: عمودی (column) برای موبایل حفظ شده
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .filters {
        flex-direction: column;
        align-items: stretch;
        gap: var(--s-2);
        padding: var(--s-3);
        /* ⚠️ sticky حذف شد */
    }

    .filter-group {
        width: 100%;
        justify-content: center;
    }

    .clear-filters-btn {
        width: 100%;
        justify-content: center;
    }

    .results-info {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
}

/* ═══════════════════════════════════════════════════════════
   4. CREATORS PAGE
   ═══════════════════════════════════════════════════════════ */
.creators-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--s-4) var(--s-8);
    position: relative;
    z-index: var(--z-base);
}

.creator-stats.stats-five {
    grid-template-columns: repeat(5, 1fr);
    gap: var(--s-2);
}

.creator-stats.stats-five .creator-stat .number {
    font-size: var(--fs-base);
}

.creator-stats.stats-five .creator-stat .label {
    font-size: 10px;
}

/* ═══════════════════════════════════════════════════════════
   5. CATEGORY PAGE
   ═══════════════════════════════════════════════════════════ */
.filter-bar {
    padding-bottom: var(--s-2);
    justify-content: center;
    margin-bottom: var(--s-6);
}

.filter-bar .filter-btn {
    padding: 9px 20px;
    font-size: var(--fs-sm);
}

.category-hero {
    padding: var(--s-7) var(--s-5);
    margin-bottom: var(--s-6);
    text-align: center;
}

.category-hero .icon {
    font-size: 56px;
    margin-bottom: var(--s-4);
    display: inline-block;
    line-height: 1;
}

.category-hero h1 {
    margin-bottom: var(--s-5);
}

.category-hero .stats {
    display: flex;
    justify-content: center;
    gap: var(--s-3);
    flex-wrap: wrap;
}

.category-hero .stat-badge {
    background: var(--c-surface-2);
    border: 1px solid var(--c-border);
    color: var(--c-text-soft);
    font-size: var(--fs-base);
    padding: 8px 18px;
}

.category-hero .stat-badge span {
    color: var(--c-primary-light);
    font-weight: var(--fw-bold);
    font-size: var(--fs-lg);
    margin: 0 4px;
}

.packs-grid {
    align-items: stretch;
}

.packs-grid .pack-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pack-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    background: var(--c-bg-alt);
    color: var(--c-text-dim);
}

.page-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 6px;
    color: var(--c-text-dim);
    font-size: var(--fs-sm);
    user-select: none;
}

/* ═══════════════════════════════════════════════════════════
   6. SUPPORT PAGE
   ═══════════════════════════════════════════════════════════ */
.support-container {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 var(--s-4) var(--s-7);
}

.support-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    padding: var(--s-6);
    margin-bottom: var(--s-4);
    transition: border-color var(--t-base);
}

.support-card:hover {
    border-color: var(--c-border-hover);
}

.support-card .support-btn {
    padding: 11px 24px;
}

/* ═══════════════════════════════════════════════════════════
   7. FEEDBACK PAGE
   ═══════════════════════════════════════════════════════════ */
.feedback-container {
    max-width: 600px;
    margin: 0 auto;
    padding: var(--s-5) var(--s-4) var(--s-7);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--nav-h) - 100px);
}

.feedback-card {
    width: 100%;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-xl);
    padding: var(--s-7) var(--s-6);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.feedback-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--g-rainbow-line);
    opacity: 0.5;
    pointer-events: none;
}

.feedback-title {
    text-align: center;
    font-size: var(--fs-2xl);
    font-weight: var(--fw-black);
    color: var(--c-text);
    margin-bottom: var(--s-2);
    letter-spacing: var(--ls-tight);
    line-height: 1.3;
}

.feedback-subtitle {
    text-align: center;
    color: var(--c-text-muted);
    font-size: var(--fs-sm);
    line-height: 1.85;
    margin-bottom: var(--s-6);
    max-width: 440px;
    margin-inline: auto;
}

.feedback-form {
    width: 100%;
}

.feedback-form .form-group {
    margin-bottom: var(--s-3);
}

.feedback-form label {
    display: block;
    margin-bottom: var(--s-2);
    font-weight: var(--fw-semi);
    color: var(--c-text-soft);
    font-size: var(--fs-sm);
}

.feedback-textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--c-bg-alt);
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    color: var(--c-text);
    font-size: var(--fs-base);
    font-family: inherit;
    resize: vertical;
    min-height: 160px;
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
    outline: none;
    line-height: 1.8;
}

.feedback-textarea:focus {
    border-color: var(--c-primary);
    box-shadow: var(--glow-focus);
    background: var(--c-surface-2);
}

.feedback-textarea::placeholder {
    color: var(--c-text-dim);
}

.char-count {
    text-align: left;
    font-size: var(--fs-xs);
    color: var(--c-text-muted);
    margin-top: var(--s-2);
    font-variant-numeric: tabular-nums;
}

.char-count #charCurrent {
    color: var(--c-primary-light);
    font-weight: var(--fw-semi);
}

.feedback-submit {
    display: flex;
    width: 100%;
    margin-top: var(--s-5);
    padding: 13px 24px;
    font-size: var(--fs-base);
    font-weight: var(--fw-bold);
}

/* ═══════════════════════════════════════════════════════════
   8. DISABLED / MAINTENANCE PAGE
   ═══════════════════════════════════════════════════════════ */
body.disabled-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: var(--s-5);
    padding-top: var(--s-5);
    background-color: var(--c-bg);
    background-image:
        radial-gradient(ellipse at 30% 20%, rgba(109, 159, 201, 0.10) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(95, 184, 154, 0.06) 0%, transparent 50%);
    background-repeat: no-repeat;
    overflow-x: hidden;
}

.disabled-container {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.disabled-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-xl);
    padding: var(--s-8) var(--s-6);
    text-align: center;
    box-shadow: var(--shadow-lg);
    animation: fadeUp 0.5s ease both;
    position: relative;
    overflow: hidden;
}

.disabled-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--g-rainbow-line);
    opacity: 0.5;
    pointer-events: none;
}

.disabled-icon {
    font-size: 64px;
    line-height: 1;
    display: inline-block;
    margin-bottom: var(--s-4);
    animation: spin 12s linear infinite;
    opacity: 0.9;
}

.disabled-title {
    font-size: var(--fs-2xl);
    font-weight: var(--fw-black);
    color: var(--c-text);
    margin-bottom: var(--s-3);
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.disabled-message {
    color: var(--c-text-muted);
    font-size: var(--fs-base);
    line-height: 1.9;
    margin-bottom: var(--s-6);
    max-width: 400px;
    margin-inline: auto;
}

.progress-bar-wrap {
    width: 100%;
    max-width: 280px;
    height: 4px;
    background: var(--c-bg-alt);
    border-radius: var(--r-full);
    overflow: hidden;
    margin: 0 auto var(--s-6);
    position: relative;
    border: 1px solid var(--c-border-soft);
}

.progress-bar-fill {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40%;
    background: var(--g-primary);
    border-radius: var(--r-full);
    animation: progressSlide 2s ease-in-out infinite;
    will-change: left;
}

@keyframes progressSlide {
    0%   { left: -40%; }
    50%  { left: 40%; }
    100% { left: 100%; }
}

.disabled-actions {
    display: flex;
    flex-direction: column;
    gap: var(--s-3);
    margin-bottom: var(--s-5);
}

.disabled-actions .btn-primary,
.disabled-actions .btn-explore {
    width: 100%;
    padding: 12px 20px;
    font-size: var(--fs-base);
}

.home-link {
    display: inline-block;
    color: var(--c-text-muted);
    font-size: var(--fs-sm);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: var(--r-md);
    transition: color var(--t-fast), background var(--t-fast);
    margin-bottom: var(--s-4);
}

.home-link:hover {
    color: var(--c-primary-light);
    background: var(--c-surface-hover);
}

.disabled-footer-text {
    color: var(--c-text-dim);
    font-size: var(--fs-xs);
    line-height: 1.7;
    padding-top: var(--s-4);
    border-top: 1px solid var(--c-border-soft);
    max-width: 360px;
    margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════
   9. PACK DETAILS PAGE
   ═══════════════════════════════════════════════════════════ */
.pack-detail-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--s-4) var(--s-8);
}

.pack-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: var(--s-3);
    margin-bottom: var(--s-6);
}

.pack-gallery img,
.pack-gallery video {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: var(--r-md);
    border: 1px solid var(--c-border);
    cursor: pointer;
    transition: transform var(--t-base), border-color var(--t-base);
}

.pack-gallery img:hover,
.pack-gallery video:hover {
    transform: scale(1.03);
    border-color: var(--c-border-hover);
}

.pack-main-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: var(--r-lg);
    border: 1px solid var(--c-border);
    margin-bottom: var(--s-5);
}

.pack-info-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    padding: var(--s-5);
    margin-bottom: var(--s-5);
}

.pack-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--s-3) 0;
    border-bottom: 1px solid var(--c-border-soft);
    font-size: var(--fs-sm);
}

.pack-info-row:last-child {
    border-bottom: none;
}

.pack-info-row .label {
    color: var(--c-text-muted);
}

.pack-info-row .value {
    color: var(--c-text);
    font-weight: var(--fw-semi);
}

.comments-section {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    padding: var(--s-5);
}

.comment-item {
    padding: var(--s-4) 0;
    border-bottom: 1px solid var(--c-border-soft);
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: var(--s-3);
    margin-bottom: var(--s-2);
}

.comment-author {
    font-weight: var(--fw-semi);
    color: var(--c-text);
    font-size: var(--fs-sm);
}

.comment-date {
    color: var(--c-text-dim);
    font-size: var(--fs-xs);
    margin-inline-start: auto;
}

.comment-body {
    color: var(--c-text-soft);
    font-size: var(--fs-sm);
    line-height: 1.8;
}

/* ═══════════════════════════════════════════════════════════
   10. MODS PAGE
   ═══════════════════════════════════════════════════════════ */
.mods-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--s-4) var(--s-8);
}

.mods-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--gap);
    margin-bottom: var(--s-7);
}

/* ═══════════════════════════════════════════════════════════
   11. SERVERS PAGE
   ═══════════════════════════════════════════════════════════ */
.servers-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--s-4) var(--s-8);
}

.server-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    padding: var(--s-5);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--s-4);
    flex-wrap: wrap;
    margin-bottom: var(--s-3);
    transition: border-color var(--t-base);
}

.server-card:hover {
    border-color: var(--c-border-hover);
}

.server-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: var(--r-full);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semi);
}

.server-status.online {
    background: var(--c-success-bg);
    color: var(--c-success);
    border: 1px solid var(--c-success-border);
}

.server-status.offline {
    background: var(--c-danger-bg);
    color: var(--c-danger);
    border: 1px solid var(--c-danger-border);
}

.server-status::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    display: inline-block;
}

/* ═══════════════════════════════════════════════════════════
   12. POLLS PAGE
   ═══════════════════════════════════════════════════════════ */
.polls-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--s-4) var(--s-8);
}

.poll-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    padding: var(--s-5);
    margin-bottom: var(--s-4);
}

.poll-card h3 {
    color: var(--c-text);
    font-size: var(--fs-lg);
    margin-bottom: var(--s-4);
}

/* ═══════════════════════════════════════════════════════════
   13. TUTORIALS PAGE
   ═══════════════════════════════════════════════════════════ */
.tutorials-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--s-4) var(--s-8);
}

.tutorial-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    padding: var(--s-5);
    transition: border-color var(--t-base), transform var(--t-base);
}

.tutorial-card:hover {
    border-color: var(--c-border-hover);
    transform: translate3d(0, -3px, 0);
}

/* ═══════════════════════════════════════════════════════════
   14. SAVED PAGE
   ═══════════════════════════════════════════════════════════ */
.saved-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--s-4) var(--s-8);
}

/* ═══════════════════════════════════════════════════════════
   15. RESPONSIVE
   ═══════════════════════════════════════════════════════════ */

/* ─── تبلت ─── */
@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .creator-stats.stats-five {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ─── موبایل بزرگ ─── */
@media (max-width: 768px) {
    .creators-container,
    .support-container,
    .pack-detail-container,
    .mods-container,
    .servers-container,
    .polls-container,
    .tutorials-container,
    .saved-container {
        padding: 0 var(--s-3) var(--s-6);
    }

    .intro-seo {
        padding: var(--s-5) var(--s-4);
        margin: 0 var(--s-2) var(--s-6);
        font-size: var(--fs-sm);
        border-radius: var(--r-md);
    }

    .intro-seo h2 {
        font-size: var(--fs-base);
    }

    .support-card {
        padding: var(--s-5) var(--s-4);
    }

    .support-card h2 {
        font-size: var(--fs-base);
    }

    .pack-gallery {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }

    .creator-stats.stats-five {
        grid-template-columns: repeat(3, 1fr);
    }

    .server-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .category-hero {
        padding: var(--s-5) var(--s-4);
    }

    .category-hero .icon {
        font-size: 48px;
    }

    .category-hero h1 {
        font-size: var(--fs-xl);
    }

    .feedback-container {
        padding: var(--s-4) var(--s-3) var(--s-6);
        min-height: auto;
    }

    .feedback-card {
        padding: var(--s-6) var(--s-4);
        border-radius: var(--r-lg);
    }

    .feedback-title {
        font-size: var(--fs-xl);
    }

    .feedback-textarea {
        min-height: 140px;
    }

    .hero-live-line {
        flex-direction: column;
        gap: 4px;
        padding: 10px 16px;
        text-align: center;
    }

    .hero-live-sep {
        display: none;
    }
}

/* ─── موبایل کوچک ─── */
@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .creator-stats.stats-five {
        grid-template-columns: repeat(3, 1fr);
    }

    .intro-seo {
        padding: var(--s-4) var(--s-3);
        font-size: var(--fs-sm);
        line-height: 1.9;
    }

    .pack-gallery {
        grid-template-columns: 1fr 1fr;
    }

    .page-btn {
        min-width: 34px;
        height: 34px;
        font-size: var(--fs-xs);
    }

    .tab-bar {
        padding: 3px;
    }

    .tab-btn {
        font-size: var(--fs-xs);
        padding: 7px 12px;
    }

    body.disabled-body {
        padding: var(--s-3);
    }

    .disabled-card {
        padding: var(--s-6) var(--s-4);
        border-radius: var(--r-lg);
    }

    .disabled-icon {
        font-size: 52px;
    }

    .disabled-title {
        font-size: var(--fs-xl);
    }

    .disabled-message {
        font-size: var(--fs-sm);
    }

    .hero-live-line {
        font-size: var(--fs-xs);
        padding: 8px 12px;
    }

    /* ─── Explore – موبایل کوچک ─── */
    .pack-badge {
        font-size: 9px;
        padding: 2px 6px;
    }

    .filter-btn {
        font-size: var(--fs-xs);
        padding: 6px 10px;
    }

    .filter-btn .filter-count {
        font-size: 9px;
        padding: 0 5px;
    }

    .empty-state-actions {
        flex-direction: column;
    }

    .empty-state-actions .btn-primary,
    .empty-state-actions .btn-explore {
        width: 100%;
    }
}

/* ═══════════════════════════════════════════════════════════
   16. REDUCED MOTION
   ═══════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    .disabled-icon,
    .progress-bar-fill {
        animation: none;
    }

    .progress-bar-fill {
        left: 30%;
        width: 40%;
    }

    .category-card:hover .category-icon,
    .pack-gallery img:hover,
    .pack-gallery video:hover,
    .top-pack-card:hover,
    .tutorial-card:hover,
    .tag-chip:hover {
        transform: none;
    }

    .packs-grid {
        transition: none;
    }
}

/* ═══════════════════════════════════════════════════════════
   17. PRINT
   ═══════════════════════════════════════════════════════════ */
@media print {
    .creators-page-wrapper,
    .cat-page-wrapper,
    .explore-page-wrapper,
    .support-page-wrapper,
    .page-wrapper {
        padding: 0;
    }

    .intro-seo,
    .contact-section,
    .filters,
    .results-info,
    .clear-filters-btn,
    .pagination {
        display: none;
    }
}