/* ====================== رنگ‌ها و فونت ====================== */
:root {
  --bg: #0c0c0c;
  --card-bg: #1a1a1a;
  --gold: #F5B042;
  --gold-dark: #E68A2E;
  --t-color: #FF9100;
  --ct-color: #29B6F6;
  --text: #e0e0e0;
  --border: #333;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn[wght].woff2') format('woff2');
    font-weight: 100 900;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #000000;
    font-family: 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif;
    color: #e0e0e0;
    line-height: 1.5;
}

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

.app-container {
    height: 100vh;
    overflow: hidden;
    display: flex;
    padding: 20px;
    gap: 24px;
}

/* ========== مخفی‌سازی پیش‌فرض المان‌های موبایل ========== */
.mobile-header,
.mobile-overlay,
.mobile-nav {
    display: none;
}

/* ========== سایدبار (desktop) ========== */
#sidebar {
    width: 80px;
    background: rgba(12, 12, 12, 0.75);
    backdrop-filter: blur(16px);
    border-radius: 32px;
    padding: 32px 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    height: calc(100vh - 40px);
    position: sticky;
    top: 20px;
    transition: width 0.35s cubic-bezier(0.25, 0.8, 0.25, 1.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(245, 176, 66, 0.15);
    z-index: 1000;
    will-change: width;
    transform: translateZ(0);
}
#sidebar:not(.collapsed) {
    width: 280px;
}

/* هدر لوگو */
.sidebar-header {
    text-align: center;
    margin-bottom: 48px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    gap: 12px;
}
.logo-icon {
    width: 43.19px;
    height: 43.19px;
    object-fit: contain;
    display: block;          /* همیشه نمایش داده شود */
}
.logo-text {
    display: none;           /* همیشه مخفی */
}

/* ناوبری */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}
.nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 12px 20px;
    border-radius: 60px;
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    color: #f0f0f0;
    background: linear-gradient(95deg, #1f1f1f, #151515);
    transition: all 0.2s ease;
    white-space: nowrap;
}
.nav-link i {
    width: 28px;
    font-size: 1.3rem;
    color: #F5B042;
    text-align: center;
}
.nav-link span {
    display: none;
    flex: 1;
    text-align: right;
}
#sidebar:not(.collapsed) .nav-link {
    justify-content: flex-start;
    padding: 12px 20px;
}
#sidebar:not(.collapsed) .nav-link span {
    display: inline-block;
}
.nav-link:hover {
    background: linear-gradient(95deg, #F5B042, #E68A2E);
    color: #0a0a0a;
    transform: translateX(-4px);
    transition: all 0.2s ease;
}
.nav-link.active {
    background: linear-gradient(95deg, #F5B042, #E68A2E);
    color: #0a0a0a;
    box-shadow: 0 4px 12px rgba(245, 176, 66, 0.3);
    transition: all 0.2s ease;
}
.nav-link.active i {
    color: #1f1f1f;
}

/* Dropdown فروشگاه */
.store-dropdown {
    position: relative;
}
.store-btn {
    justify-content: space-between;
    cursor: pointer;
}
.dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.2s;
    display: none;
}
#sidebar:not(.collapsed) .dropdown-arrow {
    display: inline-block;
}
.store-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}
.store-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 8px 0;
    z-index: 1005;
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}
.store-dropdown.open .store-menu {
    display: block;
}
.store-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #ccc;
    text-decoration: none;
    transition: background 0.2s;
    font-weight: 500;
    font-size: 0.95rem;
}
.store-item:hover,
.store-item.active {
    background: rgba(245, 176, 66, 0.15);
    color: #F5B042;
}
.store-item i {
    width: 24px;
    text-align: center;
    font-size: 1.1rem;
}

/* بخش کاربری سایدبار */
.sidebar-user-section {
    margin-top: auto;
    padding: 16px 8px 10px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.user-profile-row {
    display: flex;
    align-items: center;
    gap: 4px;
}
.profile-link {
    overflow: hidden;
}
.user-info {
    overflow: hidden;
    min-width: 0;
}
.user-display-name,
.user-steam-id {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    font-size: inherit;
    line-height: 1.4;
}
.logout-link i {
    width: 22px;
    text-align: center;
    font-size: 1.05rem;
}

/* ========== محتوای اصلی ========== */
.main-content {
    flex: 1;
    background: rgba(12, 12, 12, 0.65);
    backdrop-filter: blur(16px);
    border-radius: 32px;
    padding: 32px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    overflow-y: auto;
    height: 100%;
    border: 1px solid rgba(245, 176, 66, 0.15);
    position: relative;
}
.main-content::-webkit-scrollbar {
    width: 6px;
}
.main-content::-webkit-scrollbar-track {
    background: #1e1e1e;
    border-radius: 10px;
}
.main-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #F5B042, #E68A2E);
    border-radius: 10px;
}

/* Fade wrapper */
.content-fader {
    opacity: 1;
    transition: opacity 0.15s ease;
    will-change: opacity;
    min-height: 100%;
}
.content-fader.fade-out {
    opacity: 0;
}

/* ====================== کارت‌ها و عناصر عمومی ====================== */
.card-skin {
    background: rgba(20, 20, 20, 0.55);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.card-skin:hover {
    border-color: var(--gold);
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #0a0a0a;
  border: none;
  border-radius: 2rem;
  font-weight: bold;
  padding: 0.5rem 1.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-gold:hover {
  opacity: 0.95;
  box-shadow: 0 0 18px rgba(245, 176, 66, 0.6);
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, #F5B042, #E68A2E);
    color: #0a0a0a;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 40px;
    text-decoration: none;
    border: none;
    font-family: 'Vazirmatn', sans-serif;
    cursor: pointer;
    transition: opacity 0.2s;
}
.btn:hover {
    opacity: 0.9;
}
.btn-sm {
    padding: 0.25rem 1rem;
    font-size: 0.875rem;
}
.btn-t { background: #FF9100; border: none; color: #fff; border-radius: 2rem; }
.btn-ct { background: #29B6F6; border: none; color: #fff; border-radius: 2rem; }
.team-btn.active { outline: 2px solid white; }

/* ====================== استایل‌های واکنش‌گرا (فقط تنظیمات مشترک) ====================== */
/* (قبلاً اینجا قوانین موبایل اشتباه نوشته شده بود – حذف شد) */

/* ============================================================================================
   ========== استایل‌های صفحه سرورها (همان‌طور که بود) ==========
   ============================================================================================ */
.page-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; margin-bottom: 32px; }
.servers-header { margin-bottom: 28px; }
.header-title h1 { font-size: 2rem; font-weight: 700; color: #F5B042; border-right: 5px solid #F5B042; padding-right: 20px; display: flex; align-items: center; gap: 12px; }
.header-title p { color: #aaa; margin-top: 8px; font-size: 0.9rem; padding-right: 26px; }
.filter-box { background: #1a1a1a; border-radius: 60px; padding: 5px 15px; display: flex; align-items: center; gap: 12px; border: 1px solid #333; }
.filter-box i { color: #F5B042; font-size: 1rem; }
.filter-select { background: transparent; border: none; color: #f0f0f0; font-family: 'Vazirmatn', sans-serif; font-size: 0.9rem; padding: 8px 0; cursor: pointer; outline: none; }
.filter-select option { background: #1a1a1a; color: #fff; }
.server-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 28px; }

/* -------- کارت‌ها (با هم‌پوشانی کامل) -------- */
.server-card {
    position: relative;
    border-radius: 28px;
    background-size: cover;
    background-position: center;
    background-color: #1a1a1a;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin: 0;
}
.server-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 32px rgba(0, 0, 0, 0.8);
    border-color: rgba(245, 176, 66, 0.3);
}
.server-card.offline {
    opacity: 0.7;
    filter: grayscale(0.1);
}

.card-main {
    position: relative;
    z-index: 2;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 70%, rgba(0, 0, 0, 0.2) 100%);
    padding: 20px 18px 18px;
    backdrop-filter: blur(2px);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.server-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.server-name { font-size: 1.1rem; font-weight: 700; color: #ffffff; line-height: 1.4; text-shadow: 0 2px 5px rgba(0, 0, 0, 0.6); word-break: break-word; flex: 1; }
.ping-badge { background: rgba(129, 199, 132, 0.18); backdrop-filter: blur(4px); padding: 5px 12px; border-radius: 40px; font-size: 0.75rem; font-weight: 600; color: #a5d6a7; white-space: nowrap; border: 0.5px solid rgba(165, 214, 167, 0.3); }
.ping-badge.offline { background: rgba(255, 82, 82, 0.2); color: #ff8a80; border-color: rgba(255, 138, 128, 0.2); }
.map-players { display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; color: #e0e0e0; font-weight: 500; }
.map-name { display: flex; align-items: center; gap: 6px; }
.map-name i { color: #F5B042; font-size: 0.85rem; }
.players-count { display: flex; align-items: center; gap: 6px; background: rgba(0, 0, 0, 0.4); padding: 4px 10px; border-radius: 30px; }
.players-count i { color: #90caf9; }
.progress-bar { width: 100%; height: 6px; background: rgba(255, 255, 255, 0.2); border-radius: 10px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, #F5B042, #E68A2E); border-radius: 10px; transition: width 0.2s ease; }

/* -------- هاور – دقیقاً روی کارت می‌نشیند (هیچ فاصله‌ای ندارد) -------- */
.card-hover {
    position: absolute;
    inset: 0;
    z-index: 10;
    background: rgba(8, 8, 12, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}
.server-card:hover .card-hover {
    opacity: 1;
    visibility: visible;
}

.hover-details {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px;
    width: 100%;
    text-align: center;
}
.detail-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.06);
    padding: 8px 16px;
    border-radius: 60px;
    font-size: 0.85rem;
    font-weight: 500;
    width: fit-content;
    margin: 0 auto;
}
.detail-row i { width: 24px; font-size: 1rem; color: #F5B042; }
.badge-secure { color: #81c784; }
.badge-unsecure { color: #ef9a9a; }
.detail-row span.label { font-weight: 400; opacity: 0.8; margin-left: 4px; }
.error-message { background: rgba(255, 80, 80, 0.2); border-right: 4px solid #ff5252; padding: 20px; border-radius: 24px; text-align: center; color: #ffab91; }

/* ========== استایل‌های صفحه سرورها (لیست افقی) ========== */
.server-list { display: flex; flex-direction: column; gap: 0.75rem; }
.server-row { background: rgba(12, 12, 12, 0.7); backdrop-filter: blur(5px); border-radius: 1.5rem; border: 1px solid rgba(255,255,255,0.1); overflow: hidden; transition: all 0.2s; background-size: cover; background-position: center; position: relative; direction: ltr; text-align: left; }
.server-row::before { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.78); backdrop-filter: blur(5px); z-index: 0; border-radius: inherit; }
.server-row.offline { opacity: 0.65; }
.server-row.online .server-main { padding: 1.6rem 2rem; }
.server-row.offline .server-main { padding: 1.2rem 1.5rem; }
.server-main { position: relative; z-index: 1; display: flex; align-items: center; gap: 2.5rem; flex-wrap: wrap; }
.server-cell { display: flex; align-items: center; gap: 0.5rem; font-size: 0.95rem; color: #e0e0e0; }
.server-name { font-weight: 600; color: #F5B042; flex: 1 1 220px; word-break: break-word; }
.server-ip .ip-text { font-family: 'Courier New', monospace; color: #cccccc; background: rgba(255,255,255,0.08); padding: 0.3rem 0.8rem; border-radius: 2rem; font-size: 0.85rem; }
.server-map, .server-players, .server-lock, .server-security, .server-ping { white-space: nowrap; }
.ping-value { font-family: monospace; color: #a5d6a7; }
.server-lock i { font-size: 1.1rem; color: #F5B042; }
.vac-badge { font-size: 0.75rem; padding: 2px 10px; border-radius: 12px; color: #fff; font-weight: 500; }
.vac-badge.secure { background: #2e7d32; }
.vac-badge.unsecure { background: #c62828; }
.btn-details { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15); color: #F5B042; font-weight: 500; border-radius: 2rem; display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.4rem 1.2rem; font-size: 0.85rem; backdrop-filter: blur(5px); }
.btn-details:hover { background: rgba(245,176,66,0.2); color: #FFD966; }
.server-details { position: relative; z-index: 1; border-top: 1px solid rgba(255,255,255,0.1); padding: 1rem 2rem; background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(5px); color: #e0e0e0; }
.details-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.5rem 1rem; margin-bottom: 0.75rem; font-size: 0.85rem; }
.details-grid strong { color: #F5B042; margin-right: 0.3rem; }
.extra-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; justify-content: flex-end; }
.extra-result { width: 100%; margin-top: 0.5rem; font-size: 0.85rem; color: #ccc; text-align: right; }
.extra-result ul { list-style: none; padding: 0.5rem 0; }
.extra-result li { padding: 0.25rem 0; border-bottom: 1px solid #2c2c2c; }
.extra-result li:last-child { border-bottom: none; }
.status-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-left: 8px; flex-shrink: 0; }
.status-dot.online { background-color: #2ecc71; box-shadow: 0 0 8px rgba(46, 204, 113, 0.6); }
.status-dot.offline { background-color: #e74c3c; box-shadow: 0 0 8px rgba(231, 76, 60, 0.6); }

/* ========== استایل‌های صفحه پشتیبانی ========== */
.support-page { width: 100%; }
.support-header { margin-bottom: 32px; }
.support-header h1 { font-size: 2rem; margin-bottom: 0.5rem; border-right: 5px solid #F5B042; padding-right: 20px; display: inline-block; }
.glow-text { background: linear-gradient(135deg, #F5B042, #E68A2E); background-clip: text; -webkit-background-clip: text; color: transparent; }
.section-subhead { color: #b0b0b0; border-bottom: 1px dashed #2c2c2c; padding-bottom: 12px; margin-bottom: 20px; font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.section-subhead i { color: #F5B042; font-size: 1.2rem; }
.support-intro { margin-bottom: 28px; font-size: 1rem; line-height: 1.6; }
.support-card { background: #111111; border-radius: 28px; padding: 28px 26px; margin-bottom: 24px; border: 1px solid #222; transition: border-color 0.2s; }
.support-card:hover { border-color: #F5B04240; }
.card-title-icon { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.card-title-icon i { color: #F5B042; font-size: 1.7rem; }
.card-title-icon h2 { margin-bottom: 0; font-size: 1.6rem; }
.social-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin: 10px 0 18px; }
.social-item { display: flex; align-items: center; gap: 24px; background: #0b0b0b; padding: 18px 24px; border-radius: 40px; transition: all 0.2s; border: 1px solid #242424; text-decoration: none; color: #ececec; }
.social-item:hover { background: #1a1a1a; transform: translateY(-3px); border-color: #F5B04270; }
.social-icon { width: 64px; height: 64px; object-fit: contain; background: #0a0a0a; border-radius: 50%; padding: 8px; }
.social-info { flex: 1; }
.social-info h3 { margin-bottom: 6px; font-size: 1.4rem; font-weight: 700; color: #F5B042c9; }
.social-info p { font-size: 0.85rem; color: #aaa; display: flex; align-items: center; gap: 6px; }
.arrow-link { color: #F5B042; font-size: 1.5rem; transition: transform 0.2s; }
.social-item:hover .arrow-link { transform: translateX(-4px); }
.response-time { font-size: 0.85rem; color: #aaa; text-align: center; margin-top: 16px; }
.divider-custom { margin: 20px 0 28px; border: 0; height: 1px; background: linear-gradient(90deg, transparent, #F5B04260, #E68A2E60, transparent); }
.teamspeak-card { background: #0e0e0e; }
.ts-header-flex { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.ts-header-flex i { font-size: 2rem; color: #F5B042; }
.ts-header-flex h2 { margin-bottom: 0; }
.quality-badge { background: #F5B04220; border-radius: 60px; padding: 5px 14px; font-size: 0.75rem; color: #F5B042; border: 0.5px solid #F5B04230; display: inline-flex; align-items: center; gap: 6px; }
.teamspeak-container { display: flex; flex-wrap: wrap; align-items: center; gap: 32px; }
.ts-logo-area { flex-shrink: 0; text-align: center; }
.ts-logo { width: 110px; height: auto; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5)); background: #0c0c0c; border-radius: 28px; padding: 10px; }
.ts-details { flex: 1; }
.server-badge { background: #1a1a1a; border-radius: 60px; padding: 12px 20px; display: inline-flex; align-items: center; gap: 20px; font-family: monospace; font-size: 1rem; margin: 16px 0 20px; border: 1px solid #333; flex-wrap: wrap; }
.server-badge code { direction: ltr; unicode-bidi: embed; background: transparent; color: #F5B042; font-size: 0.95rem; }
.copy-btn { background: #2a2a2a; border: none; color: #F5B042; font-size: 0.9rem; padding: 6px 16px; border-radius: 40px; cursor: pointer; transition: 0.2s; font-family: 'Vazirmatn', sans-serif; display: inline-flex; align-items: center; gap: 8px; }
.copy-btn:hover { background: #F5B042; color: #0a0a0a; }
.btn-join { display: inline-flex; align-items: center; gap: 12px; background: linear-gradient(135deg, #F5B042, #E68A2E); color: #0a0a0a; font-weight: 700; padding: 10px 28px; border-radius: 40px; text-decoration: none; margin-top: 8px; transition: 0.2s; font-size: 0.95rem; border: none; }
.btn-join:hover { opacity: 0.9; transform: scale(0.98); box-shadow: 0 4px 12px rgba(245,176,66,0.3); }
.helper-note { font-size: 0.8rem; color: #a0a0a0; margin-top: 20px; border-top: 1px solid #272727; padding-top: 16px; }
.support-footer { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: center; }
.vip-support { display: flex; gap: 12px; align-items: center; }
.vip-support i { font-size: 1.5rem; color: #F5B042; }
.email-support a { color: #F5B042; text-decoration: none; font-weight: 500; }
.email-support a:hover { text-decoration: underline; }

@media (max-width: 780px) {
    .social-grid { grid-template-columns: 1fr; gap: 18px; }
    .social-icon { width: 52px; height: 52px; }
    .teamspeak-container { flex-direction: column; text-align: center; }
    .ts-header-flex { justify-content: center; }
    .support-header h1 { font-size: 1.8rem; }
    .support-footer { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
    .server-badge { gap: 12px; justify-content: center; }
    .server-badge code { font-size: 0.8rem; }
}

/* ========== استایل‌های صفحه درباره ما ========== */
.about-page { width: 100%; }
.logo-wrapper { text-align: center; margin-bottom: 1.2rem; position: relative; display: flex; justify-content: center; }
.logo-img { max-width: 210px; width: 100%; height: auto; filter: drop-shadow(0 0 6px rgba(245, 176, 66, 0.3)); position: relative; z-index: 2; }
.logo-wrapper::before { content: ''; position: absolute; width: 200px; height: 200px; background: radial-gradient(circle, rgba(245,176,66,0.1) 0%, rgba(245,176,66,0) 70%); border-radius: 50%; filter: blur(20px); top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 1; pointer-events: none; }
.frag-city-title { text-align: center; font-size: 4.2rem; font-weight: 900; letter-spacing: -1px; margin: 0.3rem 0 1.2rem 0; background: linear-gradient(135deg, #F5B042, #FFD966, #FF8C42, #F5B042, #FFB347, #FFD966); background-size: 400% 400%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: gradientFlow 5s ease infinite, gentleFade 3s ease-in-out infinite; display: inline-block; width: 100%; }
@keyframes gradientFlow { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes gentleFade { 0% { opacity: 1; } 50% { opacity: 0.8; } 100% { opacity: 1; } }
.section-title { font-size: 1.9rem; font-weight: 800; color: #F5B042; margin: 1rem 0 1.2rem 0; border-right: 5px solid #F5B042; padding-right: 1rem; display: inline-block; }
.about-text { font-size: 1.05rem; margin: 1.5rem 0; color: #e5e5e5; text-align: justify; }
.about-text p { margin-bottom: 1.2rem; line-height: 1.8; }
.highlight-quote { background: linear-gradient(135deg, #1a1a1a, #111111); border-right: 4px solid #F5B042; padding: 1.2rem 1.8rem; margin: 1.8rem 0; border-radius: 24px; font-size: 1.1rem; font-weight: 500; color: #f0f0f0; }
.highlight-quote i { color: #F5B042; margin-left: 10px; font-size: 1.3rem; opacity: 0.8; }
.quote-highlight { font-weight: 500; color: #F5B042; background: linear-gradient(90deg, #F5B04220, transparent); padding: 0.2rem 0.5rem; border-radius: 20px; display: inline-block; }
.values-grid { display: flex; flex-wrap: wrap; gap: 1.5rem; margin: 2rem 0 1.8rem; justify-content: center; }
.value-item { background: #111111; border-radius: 28px; padding: 1.2rem 1.5rem; flex: 1; min-width: 150px; text-align: center; border: 1px solid #262626; transition: border-color 0.2s; }
.value-item:hover { border-color: #F5B04240; }
.value-item i { font-size: 2rem; color: #F5B042; margin-bottom: 0.6rem; display: inline-block; }
.value-item h3 { font-size: 1.2rem; margin: 0.5rem 0; font-weight: 700; color: #ffffff; }
.value-item p { font-size: 0.85rem; color: #b0b0b0; }
.team-signature { margin-top: 2rem; padding-top: 1.8rem; text-align: center; font-size: 1rem; color: #c0c0c0; display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; position: relative; }
.team-signature::before { content: ''; position: absolute; top: 0; left: 5%; width: 90%; height: 1px; background: linear-gradient(90deg, transparent, #F5B042, #F5B042, transparent); opacity: 0.7; }
.team-signature i { color: #F5B042; font-size: 1.2rem; }
.team-name { font-weight: 700; background: linear-gradient(120deg, #F5B042, #FFB347); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 680px) { .frag-city-title { font-size: 2.8rem; } .section-title { font-size: 1.6rem; } .values-grid { gap: 1rem; } .value-item { padding: 0.9rem; min-width: 120px; } .logo-img { max-width: 150px; } .logo-wrapper::before { width: 160px; height: 160px; } .highlight-quote { padding: 1rem 1.2rem; font-size: 1rem; } }
@media (max-width: 480px) { .frag-city-title { font-size: 2.2rem; } .logo-img { max-width: 120px; } }

/* ========== استایل‌های صفحه اصلی (خانه) ========== */
.home-page { position: relative; width: 100%; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: calc(100vh - 120px); overflow: hidden; }
.floating-icons { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.float-icon { position: absolute; color: #F5B042; opacity: 0.09; animation: floatSoft 10s ease-in-out infinite; will-change: transform; }
.float-icon:nth-child(1) { top: 10%; left: 5%; font-size: 1.8rem; animation-delay: 0s; animation-duration: 8s; }
.float-icon:nth-child(2) { top: 25%; right: 8%; font-size: 2.2rem; animation-delay: 1.5s; animation-duration: 10s; }
.float-icon:nth-child(3) { bottom: 15%; left: 12%; font-size: 1.5rem; animation-delay: 0.6s; animation-duration: 9s; }
.float-icon:nth-child(4) { bottom: 25%; right: 5%; font-size: 1.9rem; animation-delay: 2.1s; animation-duration: 11s; }
.float-icon:nth-child(5) { top: 45%; left: 3%; font-size: 1.3rem; animation-delay: 3s; animation-duration: 7.5s; }
.float-icon:nth-child(6) { top: 60%; right: 14%; font-size: 2.4rem; animation-delay: 0.9s; animation-duration: 9.5s; }
.float-icon:nth-child(7) { top: 5%; right: 28%; font-size: 2rem; animation-delay: 2.6s; animation-duration: 8.5s; }
.float-icon:nth-child(8) { bottom: 8%; left: 32%; font-size: 1.6rem; animation-delay: 1.3s; animation-duration: 10.5s; }
.float-icon:nth-child(9) { top: 70%; left: 20%; font-size: 1.2rem; animation-delay: 0.4s; animation-duration: 12s; }
.float-icon:nth-child(10) { bottom: 35%; right: 22%; font-size: 2rem; animation-delay: 3.2s; animation-duration: 9.8s; }
@keyframes floatSoft { 0%,100% { transform: translateY(0px) rotate(0deg); } 25% { transform: translateY(-12px) rotate(1deg); } 50% { transform: translateY(-20px) rotate(0deg); } 75% { transform: translateY(-8px) rotate(-1deg); } }
.logo-container { margin-bottom: 32px; z-index: 1; }
.logo-main { width: min(240px, 40vw); height: auto; filter: drop-shadow(0 0 25px rgba(245, 176, 66, 0.5)); animation: logoPulse 4s ease-in-out infinite alternate; transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.logo-main:hover { transform: scale(1.08); }
@keyframes logoPulse { 0% { filter: drop-shadow(0 0 20px rgba(245, 176, 66, 0.4)); } 100% { filter: drop-shadow(0 0 45px rgba(245, 176, 66, 0.8)); } }
.tagline-wrapper { display: flex; align-items: center; justify-content: center; width: 100%; gap: 0; margin: 24px 0 12px; z-index: 1; }
.tagline-line { flex: 1; height: 3px; background: linear-gradient(90deg, transparent 0%, #F5B042 35%, #E68A2E 50%, #F5B042 65%, transparent 100%); background-size: 300% 100%; animation: lineShimmer 5s ease-in-out infinite alternate; border-radius: 4px; }
@keyframes lineShimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.tagline { font-size: clamp(1.6rem, 5vw, 2.6rem); font-weight: 900; background: linear-gradient(135deg, #F5B042 20%, #E68A2E 50%, #FFD580 80%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; white-space: nowrap; padding: 0 24px; margin: 0; animation: textGlow 3s ease-in-out infinite alternate; letter-spacing: -0.5px; }
@keyframes textGlow { 0% { filter: drop-shadow(0 0 5px rgba(245, 176, 66, 0.3)); } 100% { filter: drop-shadow(0 0 10px rgba(245, 176, 66, 0.5)); } }
.sub-tagline { font-size: 1.2rem; font-weight: 400; color: #b0b0b0; margin: 0 auto 48px; max-width: 600px; padding: 0 20px; animation: fadeInUp 0.8s ease-out 0.2s both; z-index: 1; }
.btn-servers { display: inline-flex; align-items: center; gap: 14px; background: linear-gradient(135deg, #F5B042 0%, #E68A2E 100%); color: #0a0a0a; font-weight: 800; font-size: 1.3rem; padding: 16px 44px; border-radius: 60px; text-decoration: none; border: none; cursor: pointer; font-family: 'Vazirmatn', sans-serif; box-shadow: 0 8px 30px rgba(245, 176, 66, 0.4); transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1.2); animation: fadeInUp 0.8s ease-out 0.4s both; position: relative; overflow: hidden; z-index: 1; }
.btn-servers::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent); transition: left 0.5s; }
.btn-servers:hover::before { left: 100%; }
.btn-servers:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(245, 176, 66, 0.55); }
.btn-servers i { font-size: 1.4rem; transition: transform 0.3s; }
.btn-servers:hover i { transform: translateX(-6px); }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 768px) { .tagline { white-space: normal; padding: 0 12px; } .btn-servers { font-size: 1.1rem; padding: 14px 32px; } .sub-tagline { font-size: 1rem; } .home-page { min-height: auto; padding: 40px 0; } }

/* ========== استایل‌های صفحه دانلود لانچر ========== */
.launcher-page { width: 100%; padding: 20px 0; }
.launcher-content { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.launcher-info { display: flex; flex-direction: column; gap: 28px; }
.release-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(34, 197, 94, 0.15); color: #22c55e; padding: 10px 20px; border-radius: 50px; font-size: 0.9rem; font-weight: 600; width: fit-content; border: 1px solid rgba(34, 197, 94, 0.3); }
.release-badge i { font-size: 0.8rem; }
.launcher-title { font-size: 2.5rem; font-weight: 800; background: linear-gradient(135deg, #F5B042, #E68A2E); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 8px; }
.launcher-description { font-size: 1rem; color: #b0b0b0; line-height: 1.8; margin-bottom: 12px; }
.version-info { display: flex; flex-direction: column; gap: 12px; background: #111111; padding: 20px; border-radius: 24px; border: 1px solid #222; }
.info-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid #1a1a1a; }
.info-row:last-child { border-bottom: none; }
.info-label { color: #808080; font-size: 0.95rem; display: flex; align-items: center; gap: 8px; }
.info-label i { color: #F5B042; width: 20px; }
.info-value { color: #f0f0f0; font-weight: 600; font-size: 1rem; }
.download-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; background: linear-gradient(135deg, #F5B042, #E68A2E); color: #0a0a0a; font-weight: 700; font-size: 1.1rem; padding: 16px 40px; border-radius: 60px; text-decoration: none; border: none; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 4px 20px rgba(245, 176, 66, 0.4); width: fit-content; }
.download-button:hover { transform: translateY(-2px); box-shadow: 0 6px 25px rgba(245, 176, 66, 0.5); opacity: 0.95; }
.download-button i { font-size: 1.2rem; }
.support-notice { display: flex; align-items: flex-start; gap: 12px; background: rgba(59, 130, 246, 0.1); border: 1px solid rgba(59, 130, 246, 0.3); padding: 16px 20px; border-radius: 24px; color: #93c5fd; font-size: 0.95rem; line-height: 1.6; }
.support-notice i { color: #3b82f6; font-size: 1.2rem; margin-top: 2px; flex-shrink: 0; }
.screenshot-container { position: relative; display: flex; justify-content: center; align-items: center; }
.screenshot-wrapper { position: relative; border-radius: 28px; overflow: hidden; border: 2px solid rgba(245, 176, 66, 0.3); transition: border-color 0.2s; }
.screenshot-wrapper:hover { border-color: rgba(245, 176, 66, 0.6); }
.screenshot-wrapper img { display: block; width: 100%; height: auto; border-radius: 26px; }
@media (max-width: 968px) { .launcher-content { grid-template-columns: 1fr; gap: 40px; } .screenshot-container { order: -1; } .launcher-title { font-size: 2rem; } .download-button { padding: 14px 32px; font-size: 1rem; } }
@media (max-width: 640px) { .launcher-title { font-size: 1.6rem; } .info-row { flex-direction: column; align-items: flex-start; gap: 6px; } .version-info { padding: 16px; } .support-notice { font-size: 0.85rem; } }

/* ========== استایل‌های صفحه به‌زودی ========== */
.coming-soon-page { display: flex; justify-content: center; align-items: center; min-height: calc(100vh - 120px); width: 100%; }
.coming-soon-card { text-align: center; max-width: 550px; width: 100%; }
.coming-soon-card:hover { border-color: #F5B04240; }
.coming-soon-icon { font-size: 5rem; color: #F5B042; margin-bottom: 24px; animation: comingSoonFloat 3s ease-in-out infinite; display: inline-block; }
@keyframes comingSoonFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }
.coming-soon-title { font-size: 2.5rem; font-weight: 800; background: linear-gradient(135deg, #F5B042, #E68A2E); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 16px; animation: comingSoonPulse 2s infinite; }
@keyframes comingSoonPulse { 0% { opacity: 0.9; } 50% { opacity: 1; } 100% { opacity: 0.9; } }
.coming-soon-text { font-size: 1.1rem; color: #aaaaaa; margin-bottom: 32px; line-height: 1.7; }
.coming-soon-loader { display: flex; justify-content: center; gap: 8px; margin-top: 8px; }
.coming-soon-loader span { width: 10px; height: 10px; background: #F5B042; border-radius: 50%; animation: comingSoonBounce 1.4s infinite ease-in-out both; }
.coming-soon-loader span:nth-child(1) { animation-delay: -0.32s; } .coming-soon-loader span:nth-child(2) { animation-delay: -0.16s; } .coming-soon-loader span:nth-child(3) { animation-delay: 0s; }
@keyframes comingSoonBounce { 0%,80%,100% { transform: scale(0); } 40% { transform: scale(1); } }
@media (max-width: 640px) { .coming-soon-card { padding: 32px 24px; } .coming-soon-title { font-size: 2rem; } .coming-soon-icon { font-size: 4rem; } .coming-soon-text { font-size: 1rem; } }

/* ========== صفحه راهنمای کاربر (usermanual.php) ========== */
.manual-container { max-width: 1000px; margin: 0 auto; background: #111; border-radius: 2rem; padding: 2.5rem; border: 1px solid #222; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.accordion-item { border-bottom: 1px solid #333; }
.accordion-header { padding: 1.2rem 0; font-size: 1.2rem; font-weight: 600; color: #F5B042; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.accordion-header i { transition: transform 0.3s; }
.accordion-body { display: none; padding: 0.5rem 0 1.5rem; color: #ccc; }
.command-block { background: #1a1a1a; border-radius: 0.8rem; padding: 0.8rem 1rem; margin-bottom: 0.8rem; }
.command-block code { color: #F5B042; direction: ltr; display: inline-block; background: #222; padding: 0.2rem 0.6rem; border-radius: 0.4rem; }
.command-block strong { color: #fff; margin-left: 5px; }
.warning-box { background: rgba(231, 76, 60, 0.1); border: 1px solid rgba(231, 76, 60, 0.3); padding: 1rem; border-radius: 1rem; color: #e74c3c; margin-top: 2rem; display: flex; gap: 10px; align-items: flex-start; }
.mode-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 0.5rem; margin: 1rem 0; }
.mode-grid span { background: #1a1a1a; padding: 0.4rem 0.8rem; border-radius: 0.5rem; color: #ccc; font-size: 0.9rem; }

/* ========== صفحه ورود و ثبت‌نام ========== */
.auth-page { display: flex; justify-content: center; align-items: center; min-height: 80vh; padding: 2rem; }
.auth-container { background: #111; border: 1px solid #222; border-radius: 24px; padding: 2.5rem; width: 100%; max-width: 480px; box-sizing: border-box; }
.auth-container h2 { color: #F5B042; margin-bottom: 1.5rem; text-align: center; font-size: 1.8rem; }
.form-group { margin-bottom: 1.2rem; }
.form-group label { color: #ccc; display: block; margin-bottom: 0.3rem; }
.form-group input { width: 100%; padding: 0.8rem 1rem; background: #1a1a1a; border: 1px solid #333; color: #fff; border-radius: 0.8rem; font-family: inherit; }
.btn-auth-submit { width: 100%; padding: 0.8rem; background: linear-gradient(135deg, #F5B042, #E68A2E); color: #000; font-weight: bold; border: none; border-radius: 2rem; cursor: pointer; font-family: inherit; font-size: 1rem; margin-top: 0.5rem; }
.auth-error { background: rgba(231, 76, 60, 0.15); border: 1px solid rgba(231, 76, 60, 0.3); color: #ff8a80; padding: 0.8rem; border-radius: 0.8rem; margin-bottom: 1rem; text-align: center; font-size: 0.9rem; }
.auth-switch { text-align: center; margin-top: 1.5rem; color: #aaa; }
.auth-switch a { color: #F5B042; text-decoration: none; }

/* ========== صفحه پروفایل ========== */
.profile-premium-page { height: 100%; display: flex; flex-direction: column; background: #0a0a0a; color: #e0e0e0; font-family: 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif; }
.toast-message { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 12px 30px; border-radius: 30px; font-weight: 600; font-size: 0.9rem; box-shadow: 0 4px 15px rgba(0,0,0,0.4); animation: toastFadeInOut 3s ease forwards; pointer-events: none; white-space: nowrap; }
.toast-message.success { background: #2ecc71; color: #fff; }
.toast-message.error { background: #e74c3c; color: #fff; }
@keyframes toastFadeInOut { 0% { opacity: 0; transform: translate(-50%, -20px); } 10% { opacity: 1; transform: translate(-50%, 0); } 80% { opacity: 1; } 100% { opacity: 0; } }
.banner-section { height: 180px; background-size: cover; background-position: center; position: relative; flex-shrink: 0; background-color: #1a1a1a; }
.upload-btn { position: absolute; bottom: 12px; right: 16px; background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.2); color: #fff; border-radius: 50%; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; cursor: pointer; backdrop-filter: blur(4px); transition: background 0.2s; }
.upload-btn:hover { background: rgba(0,0,0,0.7); }
#bannerInput { display: none; }
.profile-hero { display: flex; align-items: center; gap: 1.2rem; padding: 1.2rem 1.5rem; background: #111; border-bottom: 1px solid #222; flex-shrink: 0; }
.avatar-section { position: relative; width: 80px; height: 80px; flex-shrink: 0; margin-top: -40px; }
.main-avatar, .main-avatar-placeholder { width: 100%; height: 100%; border-radius: 50%; border: 2px solid #F5B042; object-fit: cover; }
.main-avatar-placeholder { background: #1e1e1e; display: flex; align-items: center; justify-content: center; font-size: 2rem; color: #F5B042; }
.coach-badge { position: absolute; bottom: -5px; right: -5px; background: #F5B042; color: #000; border-radius: 8px; padding: 2px 8px; font-weight: 800; font-size: 0.65rem; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,0.5); }
.name-and-xp { flex: 1; min-width: 0; }
.name-and-xp h1 { font-size: 1.5rem; margin: 0 0 0.2rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buy-premium-hint { color: #777; margin: 0.2rem 0 0.4rem; font-size: 0.75rem; }
.xp-bar-container { background: #1a1a1a; border-radius: 20px; height: 20px; width: 100%; position: relative; overflow: hidden; }
.xp-bar { background: linear-gradient(90deg, #F5B042, #E68A2E); height: 100%; border-radius: 20px; transition: width 0.4s ease; }
.xp-text { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 0.65rem; font-weight: 700; color: #fff; white-space: nowrap; text-shadow: 0 1px 2px rgba(0,0,0,0.5); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 0.6rem; padding: 1rem 1.5rem; background: #0a0a0a; flex-shrink: 0; }
.stat-card { background: #1a1a1a; border-radius: 12px; padding: 0.8rem 0.5rem; text-align: center; border: 1px solid #222; transition: all 0.2s ease; }
.stat-card:hover { border-color: #F5B042; box-shadow: 0 0 18px rgba(245, 176, 66, 0.6); transform: translateY(-2px); }
.stat-label { color: #F5B042; font-weight: 600; font-size: 0.65rem; display: block; margin-bottom: 0.4rem; letter-spacing: 0.5px; }
.stat-label i { margin-right: 3px; font-size: 0.65rem; }
.stat-value { font-size: 1.1rem; font-weight: 700; color: #fff; }
.profile-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; padding: 1rem 1.5rem; background: #111; border-top: 1px solid #222; margin-top: auto; flex-shrink: 0; }
.profile-links a { display: inline-block; padding: 8px 16px; background: #1a1a1a; color: #aaa; border-radius: 20px; text-decoration: none; font-weight: 600; font-size: 0.75rem; transition: background 0.2s, color 0.2s; border: 1px solid #222; }
.profile-links a:hover, .profile-links a.active { background: #F5B042; color: #000; border-color: #F5B042; }

/* ========== صفحه VIP ========== */
.vip-page { padding: 1rem; }
.vip-message { padding: 1rem; border-radius: 12px; margin-bottom: 1.5rem; text-align: center; font-weight: 600; max-width: 1200px; margin-left: auto; margin-right: auto; }
.vip-message.success { background: rgba(46, 204, 113, 0.2); border: 1px solid rgba(46, 204, 113, 0.4); color: #2ecc71; }
.vip-message.error { background: rgba(231, 76, 60, 0.2); border: 1px solid rgba(231, 76, 60, 0.4); color: #e74c3c; }
.plan-card { background: rgba(20, 20, 20, 0.6); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; padding: 1.5rem; text-align: center; }
.plan-card.bronze { border-top: 3px solid #cd7f32; }
.plan-card.silver { border-top: 3px solid #c0c0c0; }
.plan-card.gold { border-top: 3px solid #F5B042; }
.plan-header { font-size: 1.5rem; color: #F5B042; margin-bottom: 1rem; }
.plan-price { font-size: 2rem; font-weight: 800; color: #fff; margin-bottom: 1rem; }
.plan-card ul { list-style: none; padding: 0; color: #ccc; }
.plan-card li { padding: 0.3rem 0; }
.gold-btn { background: linear-gradient(135deg, #F5B042, #E68A2E); color: #000; border: none; border-radius: 25px; font-weight: 700; cursor: pointer; font-family: inherit; width: 100%; padding: 0.8rem; }

/* ========== صفحه پنل ادمین ========== */
.admin-premium-page { height: 100%; display: flex; flex-direction: column; background: #0a0a0a; color: #e0e0e0; font-family: 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif; }
.admin-hero { display: flex; align-items: center; gap: 1.2rem; padding: 1.5rem; background: #111; border-bottom: 1px solid #222; flex-shrink: 0; }
.admin-avatar-section { width: 70px; height: 70px; flex-shrink: 0; }
.admin-icon-box { width: 100%; height: 100%; border-radius: 50%; background: #1e1e1e; border: 2px solid #F5B042; display: flex; align-items: center; justify-content: center; font-size: 2rem; color: #F5B042; }
.admin-name-and-select { flex: 1; min-width: 0; }
.admin-name-and-select h1 { font-size: 1.5rem; margin: 0 0 0.5rem; color: #fff; }
.server-choice-row { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; }
.server-dropdown { background: #1a1a1a; color: #fff; padding: 0.5rem 1rem; border: 1px solid #333; border-radius: 0.5rem; font-size: 0.9rem; font-family: inherit; }
.admin-nav { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 1rem 1.5rem; background: #111; border-bottom: 1px solid #222; flex-shrink: 0; overflow-x: auto; }
.admin-tab { background: #1a1a1a; border: 1px solid #222; color: #aaa; padding: 0.6rem 1.2rem; border-radius: 20px; font-weight: 600; font-size: 0.8rem; cursor: pointer; font-family: inherit; transition: background 0.2s, color 0.2s; white-space: nowrap; }
.admin-tab:hover, .admin-tab.active { background: #F5B042; color: #000; border-color: #F5B042; }
.tab-pane { display: none; }
.tab-pane.active { display: block; }
.admin-tab-content { flex: 1; overflow-y: auto; padding: 1.5rem; background: #0a0a0a; }
.server-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; }
.power-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.server-detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.hint-text { color: #888; font-size: 0.75rem; margin: 0.5rem 0; }
.premium-players-table { width: 100%; border-collapse: collapse; background: #1a1a1a; border-radius: 12px; overflow: hidden; }
.premium-players-table th { background: #222; color: #F5B042; padding: 0.8rem; font-weight: 600; font-size: 0.8rem; }
.premium-players-table td { padding: 0.8rem; text-align: center; border-bottom: 1px solid #2a2a2a; }
.premium-players-table tr:hover td { background: rgba(245,176,66,0.05); }
.console-wrapper { display: flex; flex-direction: column; gap: 1rem; }
.console-output { width: 100%; background: #000; color: #0f0; padding: 0.8rem; border: 1px solid #333; border-radius: 12px; resize: vertical; font-family: 'Courier New', monospace; font-size: 0.85rem; }
.console-input-group { display: flex; gap: 0.5rem; }
.console-input-group input { flex: 1; background: #111; border: 1px solid #333; color: #fff; padding: 0.6rem; border-radius: 20px; font-family: inherit; }
.killfeed-section { margin-top: 1.5rem; }
.killfeed-section h4 { color: #F5B042; margin-bottom: 0.5rem; }
.killfeed-box { background: #0a0a0a; border: 1px solid #222; border-radius: 12px; padding: 1rem; max-height: 200px; overflow-y: auto; color: #aaa; font-size: 0.8rem; }
.action-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.action-card select, .action-card input { width: 100%; padding: 0.5rem; background: #111; border: 1px solid #333; color: #fff; border-radius: 8px; margin: 0.5rem 0; font-family: inherit; }
.action-btns { display: flex; gap: 0.5rem; justify-content: center; }
.guide-box { background: #1a1a1a; border-radius: 12px; padding: 1.5rem; border: 1px solid #222; }
.guide-box h5 { color: #F5B042; margin: 1rem 0 0.3rem; }
.guide-box code { background: #000; padding: 0.3rem 0.6rem; border-radius: 6px; display: block; margin-bottom: 0.8rem; direction: ltr; text-align: left; }

/* ========== صفحه اسکین‌ها (skins.php) ========== */
.skins-iframe { position: absolute; top: 0; left: 0; right: 0; bottom: 0; width: 100%; height: 100%; border: none; display: block; background: #000; }

/* ========== استایل‌های weaponpaints.php (با کلاس اختصاصی wp-body) ========== */
body.wp-body {
    font-family: 'Vazirmatn', sans-serif;
    background: #000;
    color: #e0e0e0;
    height: 100vh;
    overflow-y: auto;
}
body.wp-body::-webkit-scrollbar { width: 8px; }
body.wp-body::-webkit-scrollbar-track { background: #1e1e1e; border-radius: 10px; }
body.wp-body::-webkit-scrollbar-thumb { background: linear-gradient(135deg, #F5B042, #E68A2E); border-radius: 10px; }
body.wp-body::-webkit-scrollbar-thumb:hover { background: #F5B042; }
.wp-body .app-container { min-height: 100vh; background: #0c0c0c; }

.wp-body .nav-tabs { border: none; gap: 8px; flex-wrap: wrap; justify-content: center; padding: 32px 32px 0; }
.wp-body .nav-tabs .nav-link {
    background: linear-gradient(95deg, #1f1f1f, #151515);
    border: none;
    border-radius: 60px;
    padding: 12px 28px;
    font-weight: 600;
    color: #ccc;
    transition: all 0.2s;
}
.wp-body .nav-tabs .nav-link:hover { background: #2a2a2a; color: #fff; }
.wp-body .nav-tabs .nav-link.active {
    background: linear-gradient(95deg, #F5B042, #E68A2E) !important;
    color: #0a0a0a !important;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(245, 176, 66, 0.3);
}
.wp-body .card-skin { background: #111; border-radius: 28px; padding: 20px; border: 1px solid #222; transition: all 0.2s; cursor: pointer; text-align: center; }
.wp-body .card-skin:hover { border-color: #F5B04240; transform: translateY(-2px); }
.wp-body .card-skin img { border-radius: 12px; max-height: 120px; object-fit: contain; }
.wp-body .filter-bar { display: flex; gap: 12px; margin: 0 auto 24px; flex-wrap: wrap; align-items: center; justify-content: center; padding: 0 20px; }
.wp-body .filter-bar input { flex: 1; background: #111; border: 1px solid #333; color: #fff; border-radius: 30px; padding: 10px 20px; font-family: inherit; }
.wp-body .filter-bar select { background: #111; border: 1px solid #333; color: #fff; border-radius: 30px; padding: 10px 20px; font-family: inherit; }
.wp-body .filter-bar .btn { padding: 10px 20px; border-radius: 40px; }
.wp-body .team-btn-group { display: flex; gap: 16px; justify-content: center; margin-bottom: 24px; flex-wrap: wrap; }
.wp-body .btn-t, .wp-body .btn-ct, .wp-body .btn-both { border: 2px solid transparent; color: #fff; font-weight: 600; padding: 10px 28px; border-radius: 40px; }
.wp-body .btn-t { background: #c0392b; border-color: #c0392b; }
.wp-body .btn-t:hover, .wp-body .btn-t.active { background: #e74c3c; border-color: #fff; box-shadow: 0 0 15px rgba(231, 76, 60, 0.6); }
.wp-body .btn-ct { background: #2980b9; border-color: #2980b9; }
.wp-body .btn-ct:hover, .wp-body .btn-ct.active { background: #3498db; border-color: #fff; box-shadow: 0 0 15px rgba(52, 152, 219, 0.6); }
.wp-body .btn-both { background: #F5B042; border-color: #E68A2E; color: #0a0a0a; }
.wp-body .btn-both:hover, .wp-body .btn-both.active { background: #E68A2E; border-color: #fff; box-shadow: 0 0 15px rgba(245, 176, 66, 0.6); }
.wp-body .modal-dialog { max-width: 1000px; }
.wp-body .modal-content.bg-site-dark { background: #0c0c0c; border-radius: 28px; border: 1px solid #222; color: #fff; }
.wp-body .modal-backdrop { backdrop-filter: blur(12px) !important; background-color: rgba(0, 0, 0, 0.7) !important; }
.wp-body .tab-content { padding: 32px; }
.wp-body .img-placeholder { width: 120px; height: 90px; background: #1a1a1a; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; color: #666; font-size: 0.8rem; }
.wp-body .btn { display: inline-block; background: linear-gradient(135deg, #F5B042, #E68A2E); color: #0a0a0a; font-weight: 600; padding: 10px 24px; border-radius: 40px; text-decoration: none; border: none; font-family: 'Vazirmatn'; cursor: pointer; transition: opacity 0.2s; font-size: 0.95rem; }
.wp-body .btn:hover { opacity: 0.9; }
.wp-body .btn-sm { padding: 6px 18px; font-size: 0.85rem; }

/* ========== فوتر ========== */
.footer-container { position: fixed; bottom: 0; left: 0; right: 0; height: 20px; z-index: 1001; display: flex; justify-content: center; background: transparent; }
.site-footer { position: absolute; bottom: 0; left: 50%; transform: translate(-50%, 100%); width: min(650px, 90vw); background: rgba(10, 10, 10, 0.5); backdrop-filter: blur(12px); border: 1px solid rgba(245, 176, 66, 0.2); border-radius: 20px 20px 0 0; box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5); transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1); }
.footer-container:hover .site-footer { transform: translate(-50%, 0); }
.footer-content { padding: 1.2rem 1.2rem 0.8rem; color: #ccc; font-size: 0.85rem; max-height: 60vh; overflow-y: auto; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; max-width: 600px; margin: 0 auto; }
.footer-col h4, .footer-col h5 { color: #F5B042; margin-bottom: 0.5rem; font-size: 0.9rem; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 0.3rem; }
.footer-col ul li a { color: #aaa; text-decoration: none; font-size: 0.8rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: #F5B042; }
.footer-socials { display: flex; gap: 0.5rem; margin-top: 0.5rem; }
.footer-socials a { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,0.05); color: #ccc; text-decoration: none; font-size: 1rem; border: 1px solid rgba(255,255,255,0.1); transition: background 0.2s, color 0.2s; }
.footer-socials a:hover { background: #F5B042; color: #000; border-color: #F5B042; }
.trust-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.trust-placeholder { background: rgba(255,255,255,0.05); border: 1px dashed rgba(255,255,255,0.2); border-radius: 8px; padding: 0.4rem 0.6rem; color: #aaa; font-size: 0.7rem; text-align: center; }
.footer-bottom { text-align: center; margin-top: 1rem; padding-top: 0.5rem; border-top: 1px solid rgba(255,255,255,0.1); color: #888; font-size: 0.7rem; }
.footer-bottom p { margin: 0.2rem 0; }
@media (max-width: 600px) { .site-footer { width: 95vw; } .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ====================== سایر استایل‌های عمومی ====================== */
h1, h2, h3 { font-weight: 700; margin-bottom: 1rem; color: #F5B042; }
h1 { font-size: 2rem; border-right: 5px solid #F5B042; padding-right: 16px; }
.card { background: #111111; border-radius: 28px; padding: 24px; margin-bottom: 24px; border: 1px solid #222; transition: transform 0.2s; }
.card:hover { border-color: #F5B04240; }
/* پیغام‌های عمومی (موفقیت / خطا) */
.auth-message {
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 600;
}
.auth-message.success { background: rgba(46,204,113,0.2); border:1px solid rgba(46,204,113,0.4); color:#2ecc71; }
.auth-message.error { background: rgba(231,76,60,0.2); border:1px solid rgba(231,76,60,0.4); color:#e74c3c; }

/* ========== انیمیشن‌های عمومی (۲۴۰ هرتز بهینه) ========== */
.fade-in {
    animation: fadeIn 0.2s ease both;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* -------- تنظیمات نهایی سایدبار (برای تراز شدن دکمه‌ها) -------- */
#sidebar.collapsed .store-btn .dropdown-arrow,
#sidebar.collapsed .store-btn span {
    display: none;
}
#sidebar.collapsed .store-btn {
    justify-content: center;
}

#sidebar.collapsed .auth-entry-btn span {
    display: none;
}
#sidebar.collapsed .auth-entry-btn {
    padding: 12px 0;
    width: 100%;
    justify-content: center;
}

/* ============================================================
   MOBILE MENU – only applies on screens ≤ 800px
   ============================================================ */
@media screen and (max-width: 800px) {

    /* Show mobile header */
    .mobile-header {
        display: flex !important;
        position: fixed;
        top: 0; left: 0; right: 0;
        height: 56px;
        background: rgba(12,12,12,0.95);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid rgba(245,176,66,0.15);
        z-index: 1050;
        align-items: center;
        justify-content: space-between;
        padding: 0 16px;
    }

    /* Center the logo */
    .mobile-logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    .mobile-logo img { height: 36px; }

    /* Hamburger */
    .mobile-hamburger {
        background: none;
        border: none;
        color: #F5B042;
        font-size: 1.5rem;
        cursor: pointer;
    }

    /* Login / profile button */
    .mobile-login-btn {
        background: none;
        border: none;
        color: #F5B042;
        font-size: 1.4rem;
        cursor: pointer;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
    }

    /* Overlay */
    .mobile-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.6);
        z-index: 1060;
    }
    .mobile-overlay.show { display: block; }

    /* Slide‑out panel */
    .mobile-nav {
        display: block;                /* overridden by .open transform */
        position: fixed;
        top: 0; right: 0; bottom: 0;
        width: 280px;
        background: #111;
        z-index: 1070;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        box-shadow: -4px 0 20px rgba(0,0,0,0.5);
    }
    .mobile-nav.open { transform: translateX(0); }

    .mobile-nav-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .mobile-nav-logo img { height: 36px; }
    .mobile-nav-close {
        background: none; border: none;
        color: #F5B042; font-size: 1.5rem; cursor: pointer;
    }

    .mobile-nav-links {
        display: flex; flex-direction: column; gap: 6px; padding: 16px;
    }
    .mobile-nav-link {
        display: flex; align-items: center; gap: 12px;
        padding: 14px 16px; border-radius: 12px;
        color: #ccc; text-decoration: none; font-weight: 500; font-size: 0.95rem;
        transition: background 0.15s;
    }
    .mobile-nav-link i {
        width: 24px; font-size: 1.2rem; color: #F5B042; text-align: center;
    }
    .mobile-nav-link:hover,
    .mobile-nav-link.active {
        background: rgba(245,176,66,0.15); color: #F5B042;
    }

    /* Hide desktop sidebar ONLY on mobile */
    body.mobile-view #sidebar {
        display: none !important;
    }

    /* Make room for the fixed header */
    .app-container {
        padding-top: 72px !important;
    }
}