/* ==========================================================================
   RoyalMC Official Portal & Store Stylesheet (RTL Dark Purple-Blue Theme)
   Optimized GPU Animations (transform/opacity only) + Full Mobile/Desktop
   ========================================================================== */

:root {
    --bg-deep: #060713;
    --bg-base: #0a0c1e;
    --bg-elevated: #111534;
    --bg-card: rgba(16, 20, 48, 0.76);
    --bg-card-hover: rgba(22, 27, 64, 0.9);
    --primary: #8b5cf6;
    --primary-bright: #a855f7;
    --secondary: #06b6d4;
    --blue-accent: #3b82f6;
    --pink-accent: #ec4899;
    --emerald: #10b981;
    --amber: #f59e0b;
    --danger: #ef4444;
    --text-main: #f8fafc;
    --text-soft: #cbd5e1;
    --text-muted: #94a3b8;
    --border-subtle: rgba(139, 92, 246, 0.22);
    --border-glow: rgba(56, 189, 248, 0.5);
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 24px;
    --radius-xl: 30px;
    --shadow-card: 0 18px 45px -15px rgba(3, 4, 15, 0.85);
    --shadow-glow: 0 0 36px rgba(139, 92, 246, 0.28), 0 0 64px rgba(6, 182, 212, 0.14);
    --font-fa: 'Vazirmatn', Tahoma, 'Segoe UI', sans-serif;
    --font-en: 'Orbitron', 'JetBrains Mono', monospace;
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: var(--font-fa);
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    background-color: var(--bg-deep);
    background-image:
        radial-gradient(ellipse 80% 50% at 15% -5%, rgba(139, 92, 246, 0.22), transparent 65%),
        radial-gradient(ellipse 70% 45% at 88% 8%, rgba(6, 182, 212, 0.18), transparent 65%),
        radial-gradient(ellipse 60% 50% at 50% 95%, rgba(59, 130, 246, 0.14), transparent 70%),
        linear-gradient(180deg, #060713 0%, #090b1d 50%, #060713 100%);
    color: var(--text-main);
    line-height: 1.75;
    overflow-x: clip;
    position: relative;
}

/* Subtle Voxel Pixel Grid Backdrop */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        linear-gradient(rgba(139, 92, 246, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(6, 182, 212, 0.035) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(circle at 50% 30%, black 25%, transparent 85%);
    -webkit-mask-image: radial-gradient(circle at 50% 30%, black 25%, transparent 85%);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

img {
    max-width: 100%;
    display: block;
}

button, input, select, textarea {
    font-family: inherit;
    color: inherit;
}

.ltr {
    direction: ltr;
    unicode-bidi: embed;
}

.font-en {
    font-family: var(--font-en);
    letter-spacing: 0.04em;
}

.container {
    width: 100%;
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   Top Announcement Bar
   ========================================================================== */
.top-announce {
    position: relative;
    z-index: 40;
    background: linear-gradient(90deg, rgba(91, 33, 182, 0.92) 0%, rgba(30, 64, 175, 0.92) 50%, rgba(8, 145, 178, 0.92) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    padding: 9px 16px;
    font-size: 0.88rem;
}

.top-announce-inner {
    max-width: 1260px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    text-align: center;
}

.announce-pill {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    padding: 2px 10px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.76rem;
}

.announce-cta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(6, 7, 19, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 3px 12px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.8rem;
}

.announce-cta:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   Sticky Glassmorphic Navbar
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    background: rgba(8, 10, 26, 0.82);
    border-bottom: 1px solid var(--border-subtle);
    transition: background 0.25s ease, box-shadow 0.25s ease;
}

.site-header.scrolled {
    background: rgba(6, 8, 22, 0.94);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.55);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    gap: 16px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.brand-emblem {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.28), rgba(6, 182, 212, 0.25));
    border: 1px solid rgba(168, 85, 247, 0.45);
    display: grid;
    place-items: center;
    box-shadow: 0 0 22px rgba(139, 92, 246, 0.35);
}

.brand-text-wrap {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-title {
    font-weight: 900;
    font-size: 1.18rem;
    background: linear-gradient(90deg, #ffffff 0%, #c4b5fd 50%, #67e8f9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-sub {
    font-size: 0.74rem;
    color: var(--text-muted);
    font-family: var(--font-en);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
}

.nav-link {
    padding: 9px 14px;
    border-radius: 12px;
    font-size: 0.93rem;
    font-weight: 600;
    color: var(--text-soft);
    position: relative;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover {
    color: #fff;
    background: rgba(139, 92, 246, 0.12);
}

.nav-link.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.24), rgba(6, 182, 212, 0.18));
    border: 1px solid rgba(139, 92, 246, 0.38);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-ip-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.32);
    cursor: pointer;
    font-size: 0.84rem;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.nav-ip-pill:hover {
    transform: translateY(-1px);
    background: rgba(16, 185, 129, 0.18);
    border-color: rgba(16, 185, 129, 0.6);
}

.pulse-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--emerald);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulseOnline 2s infinite;
    flex-shrink: 0;
}

.pulse-dot.offline {
    background: var(--amber);
    animation: none;
}

@keyframes pulseOnline {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.65); }
    70% { box-shadow: 0 0 0 9px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.user-chip {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 6px 13px 6px 9px;
    border-radius: 999px;
    background: rgba(139, 92, 246, 0.16);
    border: 1px solid rgba(139, 92, 246, 0.42);
    font-weight: 700;
    font-size: 0.88rem;
}

.user-chip img {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    image-rendering: pixelated;
}

.mobile-menu-btn {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(139, 92, 246, 0.14);
    border: 1px solid var(--border-subtle);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Mobile Slide-over Drawer */
.mobile-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(3, 4, 12, 0.75);
    backdrop-filter: blur(6px);
    z-index: 90;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.mobile-drawer-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 86vw);
    background: linear-gradient(180deg, #0e112b 0%, #080a1c 100%);
    border-left: 1px solid var(--border-subtle);
    z-index: 95;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    transform: translateX(102%);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    overflow-y: auto;
}

.mobile-drawer.open {
    transform: translateX(0);
}

.mobile-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-nav-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-weight: 700;
}

.mobile-nav-list a.active {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.28), rgba(6, 182, 212, 0.2));
    border-color: rgba(139, 92, 246, 0.5);
}

/* ==========================================================================
   Buttons & Interactive Elements
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 24px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 0.95rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--blue-accent) 55%, var(--secondary) 100%);
    color: #fff;
    box-shadow: 0 10px 28px -6px rgba(139, 92, 246, 0.65);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px -4px rgba(6, 182, 212, 0.55), 0 0 24px rgba(139, 92, 246, 0.5);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(168, 85, 247, 0.35);
    color: #fff;
}

.btn-glass:hover {
    background: rgba(139, 92, 246, 0.18);
    border-color: var(--secondary);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: 11px;
}

.btn-block {
    width: 100%;
}

/* ==========================================================================
   Hero Showcase Section
   ========================================================================== */
.hero-section {
    position: relative;
    padding: 58px 0 44px;
    overflow: hidden;
}

.hero-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid rgba(168, 85, 247, 0.32);
    box-shadow: var(--shadow-card), var(--shadow-glow);
    min-height: 530px;
    display: flex;
    align-items: center;
    background-color: #090b20;
}

.hero-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.52;
    transform: scale(1.03);
    animation: heroSlowFloat 18s ease-in-out infinite alternate;
    will-change: transform;
}

@keyframes heroSlowFloat {
    0% { transform: scale(1.02) translate3d(0, 0, 0); }
    100% { transform: scale(1.07) translate3d(0, -8px, 0); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(7, 8, 22, 0.62) 0%, rgba(8, 10, 28, 0.82) 48%, rgba(6, 7, 20, 0.95) 100%),
        radial-gradient(circle at 22% 35%, rgba(6, 182, 212, 0.24), transparent 55%),
        radial-gradient(circle at 80% 25%, rgba(168, 85, 247, 0.28), transparent 55%);
}

.hero-grid {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: 52px 48px;
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 36px;
    align-items: center;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 15px;
    border-radius: 999px;
    background: rgba(139, 92, 246, 0.18);
    border: 1px solid rgba(168, 85, 247, 0.42);
    font-size: 0.85rem;
    font-weight: 700;
    color: #e9d5ff;
    margin-bottom: 18px;
}

.hero-title {
    font-size: clamp(1.95rem, 4vw, 3.25rem);
    font-weight: 900;
    line-height: 1.28;
    margin-bottom: 18px;
}

.hero-title-gradient {
    display: block;
    background: linear-gradient(90deg, #c084fc 0%, #60a5fa 50%, #22d3ee 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 24px rgba(139, 92, 246, 0.35));
}

.hero-desc {
    font-size: 1.03rem;
    color: var(--text-soft);
    max-width: 630px;
    margin-bottom: 28px;
}

.hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 28px;
}

/* Interactive Server IP Box */
.ip-copy-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    max-width: 500px;
    padding: 12px 16px;
    border-radius: 18px;
    background: rgba(8, 11, 30, 0.85);
    border: 1px solid rgba(56, 189, 248, 0.38);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.ip-copy-info {
    display: flex;
    flex-direction: column;
}

.ip-copy-label {
    font-size: 0.76rem;
    color: var(--text-muted);
}

.ip-copy-value {
    font-family: var(--font-en);
    font-weight: 800;
    font-size: 1.15rem;
    color: #67e8f9;
    letter-spacing: 0.05em;
}

.ip-copy-btn {
    padding: 9px 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.25), rgba(139, 92, 246, 0.3));
    border: 1px solid rgba(103, 232, 249, 0.45);
    color: #fff;
    font-weight: 800;
    font-size: 0.84rem;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.ip-copy-btn:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, var(--secondary), var(--primary));
}

/* Right-Side Live Server Status Hud Card */
.hero-status-hud {
    background: rgba(11, 14, 36, 0.84);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(168, 85, 247, 0.38);
    border-radius: 24px;
    padding: 26px;
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.65);
    position: relative;
}

.hud-floating-icons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.mc-float-badge {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.22), rgba(6, 182, 212, 0.2));
    border: 1px solid rgba(168, 85, 247, 0.45);
    display: grid;
    place-items: center;
    animation: gentleBob 4s ease-in-out infinite;
}

@keyframes gentleBob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.hud-online-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 13px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
    background: rgba(16, 185, 129, 0.14);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.hud-online-tag.is-offline {
    background: rgba(245, 158, 11, 0.15);
    color: #fcd34d;
    border-color: rgba(245, 158, 11, 0.35);
}

.hud-player-count {
    font-size: 2.35rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 4px;
    background: linear-gradient(90deg, #fff, #a5f3fc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hud-player-sub {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.hud-progress-track {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 18px;
}

.hud-progress-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    box-shadow: 0 0 14px rgba(6, 182, 212, 0.65);
    transition: width 0.6s ease;
}

.hud-meta-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.hud-meta-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 13px;
    padding: 10px 12px;
}

.hud-meta-item span {
    display: block;
    font-size: 0.74rem;
    color: var(--text-muted);
}

.hud-meta-item strong {
    font-size: 0.86rem;
    color: #e2e8f0;
}

/* ==========================================================================
   Section Headers & Layout Utilities
   ========================================================================== */
.section {
    padding: 56px 0;
    position: relative;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 34px;
    flex-wrap: wrap;
}

.section-head.center {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 800;
    color: #c084fc;
    background: rgba(139, 92, 246, 0.14);
    border: 1px solid rgba(139, 92, 246, 0.3);
    padding: 4px 13px;
    border-radius: 999px;
    margin-bottom: 10px;
}

.section-title {
    font-size: clamp(1.55rem, 2.8vw, 2.2rem);
    font-weight: 900;
    line-height: 1.3;
}

.section-sub {
    color: var(--text-muted);
    font-size: 0.97rem;
    max-width: 640px;
    margin-top: 6px;
}

/* Scroll Reveal Animation (GPU Accelerated) */
[data-reveal] {
    opacity: 0;
    transform: translate3d(0, 22px, 0);
    transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    [data-reveal] {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ==========================================================================
   Gamemodes Grid Cards
   ========================================================================== */
.gamemodes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.gm-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-card);
    transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.gm-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-glow);
    box-shadow: 0 22px 48px -12px rgba(6, 182, 212, 0.28), 0 0 28px rgba(139, 92, 246, 0.25);
}

.gm-banner {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #0c0f29;
}

.gm-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.gm-card:hover .gm-banner img {
    transform: scale(1.06);
}

.gm-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 7, 19, 0.1) 0%, rgba(16, 20, 48, 0.96) 100%);
}

.gm-top-badges {
    position: absolute;
    top: 14px;
    right: 14px;
    left: 14px;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.gm-status-pill {
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.gm-status-pill.online {
    background: rgba(16, 185, 129, 0.22);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.45);
}

.gm-status-pill.new {
    background: rgba(236, 72, 153, 0.24);
    color: #f9a8d4;
    border: 1px solid rgba(236, 72, 153, 0.5);
}

.gm-status-pill.soon {
    background: rgba(59, 130, 246, 0.24);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.45);
}

.gm-ver-pill {
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 0.75rem;
    background: rgba(7, 9, 25, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
}

.gm-icon-float {
    position: absolute;
    bottom: 12px;
    right: 20px;
    z-index: 3;
    width: 52px;
    height: 52px;
    border-radius: 15px;
    background: rgba(12, 15, 38, 0.9);
    border: 1px solid rgba(168, 85, 247, 0.45);
    display: grid;
    place-items: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.gm-body {
    padding: 18px 24px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.gm-en {
    font-family: var(--font-en);
    font-size: 0.73rem;
    color: #67e8f9;
    letter-spacing: 0.08em;
}

.gm-title {
    font-size: 1.28rem;
    font-weight: 900;
    margin: 3px 0 10px;
}

.gm-desc {
    color: var(--text-soft);
    font-size: 0.92rem;
    margin-bottom: 16px;
    flex: 1;
}

.gm-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gm-tag {
    padding: 4px 11px;
    border-radius: 9px;
    font-size: 0.78rem;
    font-weight: 600;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.25);
    color: #ddd6fe;
}

/* ==========================================================================
   Rank Store Cards & Checkout UI
   ========================================================================== */
.mc-ign-bar {
    background: linear-gradient(135deg, rgba(19, 23, 56, 0.9), rgba(14, 30, 62, 0.88));
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: var(--radius-lg);
    padding: 22px 26px;
    margin-bottom: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    box-shadow: var(--shadow-card);
}

.mc-ign-preview {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mc-ign-avatar {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    border: 2px solid rgba(168, 85, 247, 0.6);
    background: #0b0e26;
    image-rendering: pixelated;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.35);
}

.mc-ign-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ranks-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    align-items: stretch;
}

.rank-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 26px 22px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-card);
    transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
    overflow: hidden;
}

.rank-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: var(--rank-grad, linear-gradient(90deg, var(--primary), var(--secondary)));
}

.rank-card.featured {
    border-color: rgba(168, 85, 247, 0.65);
    background: linear-gradient(180deg, rgba(32, 24, 74, 0.88) 0%, rgba(16, 20, 48, 0.88) 100%);
    box-shadow: 0 22px 52px -12px rgba(139, 92, 246, 0.45);
}

.rank-card:hover {
    transform: translateY(-7px);
    border-color: var(--rank-color, var(--secondary));
}

.rank-ribbon {
    display: inline-flex;
    align-self: flex-start;
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 800;
    background: rgba(168, 85, 247, 0.2);
    border: 1px solid rgba(168, 85, 247, 0.45);
    color: #f3e8ff;
    margin-bottom: 14px;
}

.rank-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.rank-icon-box {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.rank-icon-box img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.rank-name {
    font-size: 1.32rem;
    font-weight: 900;
}

.rank-sub {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.rank-price-box {
    background: rgba(6, 8, 22, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 18px;
}

.rank-old-price {
    font-size: 0.82rem;
    color: var(--text-muted);
    text-decoration: line-through;
    display: block;
}

.rank-price-main {
    font-size: 1.48rem;
    font-weight: 900;
    color: #fff;
}

.rank-duration {
    display: inline-block;
    font-size: 0.78rem;
    color: #67e8f9;
    margin-right: 6px;
}

.rank-perks {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 22px;
    flex: 1;
}

.rank-perks li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 0.87rem;
    color: var(--text-soft);
    line-height: 1.55;
}

.perk-check {
    color: #34d399;
    font-weight: 900;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ==========================================================================
   Bank Card-to-Card Checkout Panel
   ========================================================================== */
.checkout-wrapper {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 28px;
    align-items: start;
}

.bank-card-visual {
    background:
        radial-gradient(circle at 85% 20%, rgba(6, 182, 212, 0.38), transparent 55%),
        radial-gradient(circle at 15% 80%, rgba(168, 85, 247, 0.45), transparent 60%),
        linear-gradient(135deg, #17133a 0%, #0f1c3f 55%, #12102e 100%);
    border: 1px solid rgba(168, 85, 247, 0.5);
    border-radius: 24px;
    padding: 26px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.bank-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}

.bank-chip {
    width: 44px;
    height: 32px;
    border-radius: 7px;
    background: linear-gradient(135deg, #fde047, #d97706);
    opacity: 0.9;
}

.bank-number-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: rgba(6, 8, 22, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 13px 16px;
    border-radius: 14px;
    margin-bottom: 16px;
}

.bank-card-digits {
    font-family: var(--font-en);
    font-size: 1.18rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #fff;
    direction: ltr;
}

.bank-card-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.88rem;
}

/* ==========================================================================
   Forms, Glass Cards, Feature Cards, Tables & Status Badges
   ========================================================================== */
.glass-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-card);
}

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

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-glow);
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(6, 182, 212, 0.18));
    border: 1px solid rgba(139, 92, 246, 0.35);
    display: grid;
    place-items: center;
    margin-bottom: 16px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 26px;
    position: relative;
}

.step-num {
    font-size: 2.2rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-bright), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
    margin-bottom: 12px;
}

.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 7px;
    color: #e2e8f0;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border-radius: 13px;
    background: rgba(7, 9, 25, 0.78);
    border: 1px solid rgba(139, 92, 246, 0.28);
    color: #fff;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.18);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.file-dropzone {
    border: 2px dashed rgba(139, 92, 246, 0.45);
    border-radius: 16px;
    padding: 22px;
    text-align: center;
    background: rgba(139, 92, 246, 0.06);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.file-dropzone:hover {
    border-color: var(--secondary);
    background: rgba(6, 182, 212, 0.08);
}

.receipt-preview-img {
    max-height: 190px;
    margin: 12px auto 0;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Status Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
}

.badge-pending {
    background: rgba(245, 158, 11, 0.16);
    color: #fcd34d;
    border: 1px solid rgba(245, 158, 11, 0.38);
}

.badge-approved {
    background: rgba(16, 185, 129, 0.16);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.badge-rejected {
    background: rgba(239, 68, 68, 0.16);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.badge-info {
    background: rgba(56, 189, 248, 0.16);
    color: #7dd3fc;
    border: 1px solid rgba(56, 189, 248, 0.4);
}

/* Alerts & Toast */
.alert {
    padding: 14px 18px;
    border-radius: 14px;
    margin-bottom: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.alert-success {
    background: rgba(16, 185, 129, 0.16);
    border: 1px solid rgba(16, 185, 129, 0.45);
    color: #a7f3d0;
}

.alert-error {
    background: rgba(239, 68, 68, 0.16);
    border: 1px solid rgba(239, 68, 68, 0.45);
    color: #fecaca;
}

.toast-container {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast-msg {
    background: rgba(12, 16, 40, 0.96);
    border: 1px solid var(--secondary);
    color: #fff;
    padding: 12px 18px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.65);
    transform: translateY(16px);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.toast-msg.show {
    transform: translateY(0);
    opacity: 1;
}

/* ==========================================================================
   User Dashboard, Tickets Thread, About & Contact Grids
   ========================================================================== */
.dashboard-grid {
    display: grid;
    grid-template-columns: 310px 1fr;
    gap: 24px;
    align-items: start;
}

.data-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.data-table th, .data-table td {
    padding: 13px 14px;
    text-align: right;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.data-table th {
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.82rem;
    background: rgba(255, 255, 255, 0.02);
}

.ticket-bubble {
    padding: 16px 20px;
    border-radius: 18px;
    margin-bottom: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.ticket-bubble.user {
    background: rgba(139, 92, 246, 0.11);
    border-color: rgba(139, 92, 246, 0.3);
}

.ticket-bubble.admin {
    background: rgba(6, 182, 212, 0.12);
    border-color: rgba(6, 182, 212, 0.38);
}

.social-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.social-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    border-radius: 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    transition: transform 0.22s ease, border-color 0.22s ease;
}

.social-card:hover {
    transform: translateY(-3px);
    border-color: var(--secondary);
}

/* ==========================================================================
   Site Footer
   ========================================================================== */
.site-footer {
    margin-top: 72px;
    border-top: 1px solid var(--border-subtle);
    background: rgba(5, 6, 17, 0.92);
    padding: 52px 0 28px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.1fr;
    gap: 32px;
    margin-bottom: 36px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.92rem;
}

.footer-links a:hover {
    color: #67e8f9;
}

.footer-bottom {
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 0.84rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Full Responsive Breakpoints (Tablet & Mobile)
   ========================================================================== */
@media (max-width: 1120px) {
    .ranks-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-grid {
        grid-template-columns: 1fr;
        padding: 38px 30px;
    }
    .nav-links {
        display: none;
    }
    .mobile-menu-btn {
        display: inline-flex;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 820px) {
    .gamemodes-grid,
    .steps-grid,
    .checkout-wrapper,
    .dashboard-grid,
    .form-row-2 {
        grid-template-columns: 1fr;
    }
    .nav-ip-pill {
        display: none;
    }
}

@media (max-width: 560px) {
    .container {
        padding: 0 14px;
    }
    .ranks-grid,
    .features-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .hero-grid {
        padding: 28px 18px;
    }
    .hero-cta-row .btn {
        width: 100%;
    }
    .ip-copy-box {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .glass-panel {
        padding: 20px 16px;
    }
    .bank-card-digits {
        font-size: 0.98rem;
    }
}
