/* ============================================================
   Poke Night - Pokemon-Style Theme
   ============================================================ */
   body {
    background:
        linear-gradient(rgba(4, 8, 18, 0.82), rgba(6, 10, 22, 0.9)),
        url('/img/background.png') center center / cover no-repeat fixed !important;
}
:root {
    --poke-red: #E3350D;
    --poke-red-dark: #b82a0a;
    --poke-red-light: #ff5733;
    --poke-blue: #1B1B2F;
    --poke-navy: #0f0f1e;
    --poke-gold: #FFD700;
    --poke-gold-dark: #d4a800;
    --poke-white: #f5f5f5;

    --bg-primary: #0f0f1e;
    --bg-secondary: #161630;
    --bg-card: #1c1c3a;
    --bg-card-hover: #24244a;
    --border: #2e2e55;
    --border-glow: var(--poke-red);
    --text-primary: #e8e8f0;
    --text-secondary: #a0a0c0;
    --text-muted: #6a6a90;

    --accent-blue: #3b82f6;
    --accent-purple: #00d2be;
    --accent-red: #E3350D;
    --accent-green: #22c55e;
    --accent-yellow: #FFD700;
    --accent-orange: #f97316;
    --accent-cyan: #06b6d4;
    --accent-pink: #ec4899;

    --gradient-primary: linear-gradient(135deg, #E3350D, #ff6b3d);
    --gradient-gold: linear-gradient(135deg, #FFD700, #f97316);
    --gradient-fire: linear-gradient(135deg, #ef4444, #f97316);
    --gradient-water: linear-gradient(135deg, #3b82f6, #06b6d4);
    --gradient-grass: linear-gradient(135deg, #22c55e, #84cc16);
    --gradient-pokeball: linear-gradient(180deg, var(--poke-red) 0%, var(--poke-red) 48%, #333 48%, #333 52%, #fff 52%, #fff 100%);

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.5);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.6);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.7);
    --shadow-glow: 0 0 20px rgba(227,53,13,0.25);
    --shadow-gold: 0 0 15px rgba(255,215,0,0.3);

    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Subtle Pokeball background pattern */
.stars {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse at 15% 30%, rgba(227,53,13,0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 70%, rgba(255,215,0,0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(59,130,246,0.02) 0%, transparent 60%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a { color: var(--poke-gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--poke-gold-dark); }

/* ============================================================
   POKEBALL DIVIDER
   ============================================================ */
.pokeball-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 32px 0;
    position: relative;
}

.pokeball-divider::before,
.pokeball-divider::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.pokeball-divider .pokeball-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(180deg, var(--poke-red) 45%, #333 45%, #333 55%, #fff 55%);
    margin: 0 16px;
    position: relative;
    border: 2px solid #444;
    flex-shrink: 0;
}

.pokeball-divider .pokeball-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #444;
}

/* ============================================================
   HEADER
   ============================================================ */
.main-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(180deg, rgba(180,30,10,0.15) 0%, rgba(15,15,30,0.95) 100%);
    backdrop-filter: blur(20px);
    border-bottom: 2px solid var(--poke-red);
    padding: 0;
}

/* Red accent stripe at top of page */
.main-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--poke-red), var(--poke-gold), var(--poke-red));
}

.main-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 120px;
}

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

.logo-pokeball {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 6px rgba(227,53,13,0.5));
    transition: transform 0.4s ease;
}

.logo-official-image {
    width: 190px;
    max-height: 92px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .28));
}

.logo:hover .logo-pokeball {
    transform: rotate(360deg);
}

.logo-name {
    font-family: 'Rajdhani', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 1px;
    display: block;
    line-height: 1;
}

.logo-sub {
    font-size: 11px;
    color: var(--poke-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1px;
    flex-shrink: 1;
    min-width: 0;
    margin-left: 24px;
}

.main-nav a {
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    position: relative;
    white-space: nowrap;
    line-height: 1.2;
}

/* Pokemon sprites in nav — stacked above text */
.nav-sprite {
    width: 64px;
    height: 64px;
    image-rendering: pixelated;
    filter: brightness(0.75) saturate(0.5);
    transition: filter 0.25s, transform 0.25s;
    flex-shrink: 0;
}
.main-nav a:hover .nav-sprite {
    filter: brightness(1.1) saturate(1) drop-shadow(0 0 5px rgba(255,215,0,0.6));
    transform: scale(1.15) translateY(-2px);
}
.main-nav a.active .nav-sprite {
    filter: brightness(1.1) saturate(1) drop-shadow(0 0 6px rgba(255,215,0,0.7));
}

.main-nav a:hover {
    color: var(--text-primary);
    background: rgba(227,53,13,0.1);
}

.main-nav a.active {
    color: var(--poke-gold);
    background: rgba(227,53,13,0.15);
}

/* Pokeball indicator under active tab */
.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--poke-red);
    box-shadow: 0 0 6px rgba(227,53,13,0.6);
}

.online-badge {
    background: var(--accent-green);
    color: #000;
    font-size: 11px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 20px;
    line-height: 1.4;
}

.nav-text-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: 0.2s;
}

/* ============================================================
   LANGUAGE SWITCHER
   ============================================================ */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 12px;
    padding-left: 12px;
    border-left: 1px solid var(--border);
}

.lang-flag {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 4px 8px;
    border-radius: 6px;
    opacity: 0.5;
    transition: all 0.2s;
    text-decoration: none;
    line-height: 1;
}

.lang-flag .flag-icon {
    font-size: 26px;
}

.lang-flag .flag-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
}

.lang-flag:hover { opacity: 0.8; }
.lang-flag.active { opacity: 1; background: rgba(255,255,255,0.05); }
.lang-flag.active .flag-label { color: var(--poke-gold); }

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.main-content {
    position: relative;
    z-index: 1;
    min-height: calc(100vh - 70px - 200px);
    padding: 40px 0;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    text-align: center;
    padding: 60px 0 40px;
    position: relative;
}

/* Faint Pokeball watermark behind hero */
.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(227,53,13,0.06) 48%, rgba(100,100,100,0.04) 48%, rgba(100,100,100,0.04) 52%, rgba(255,255,255,0.04) 52%);
    pointer-events: none;
    z-index: -1;
}

.hero h1 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 56px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--poke-red), var(--poke-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 32px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

/* Shiny sweep — diagonal light passes across */
@keyframes shiny-sweep {
    0%   { left: -80%; }
    100% { left: 130%; }
}

/* Glow pulse */
@keyframes pokeglow {
    0%, 100% { box-shadow: var(--btn-shadow); }
    50%      { box-shadow: var(--btn-glow); }
}

/* Shiny shine strip (::after on all btns) */
.btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -80%;
    width: 45%;
    height: 200%;
    background: linear-gradient(
        105deg,
        transparent 0%,
        transparent 35%,
        rgba(255,255,255,0.35) 45%,
        rgba(255,255,255,0.5) 50%,
        rgba(255,255,255,0.35) 55%,
        transparent 65%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 2;
}

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

.btn:hover::after {
    animation: shiny-sweep 0.6s ease-in-out;
}

/* Pokeball-style primary button */
.btn-primary {
    background: var(--poke-red);
    color: #fff;
    --btn-shadow: 0 4px 15px rgba(227,53,13,0.4);
    --btn-glow: 0 6px 30px rgba(227,53,13,0.7), 0 0 15px rgba(227,53,13,0.35);
    box-shadow: var(--btn-shadow);
}

/* Pokeball line + center dot */
.btn-primary::before {
    content: '';
    position: absolute;
    left: 0; right: 0;
    top: 50%;
    height: 2px;
    background: rgba(255,255,255,0.2);
    transform: translateY(-50%);
    pointer-events: none;
}

.btn-primary:hover {
    color: #fff;
    animation: pokeglow 0.5s ease-in-out;
}

/* Secondary */
.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 2px solid var(--border);
    --btn-shadow: 0 4px 15px rgba(0,0,0,0.3);
    --btn-glow: 0 4px 20px rgba(227,53,13,0.3), 0 0 10px rgba(227,53,13,0.15);
    box-shadow: var(--btn-shadow);
}
.btn-secondary:hover {
    border-color: var(--poke-red);
    color: var(--text-primary);
    animation: pokeglow 0.5s ease-in-out;
}

.btn-sm {
    padding: 6px 16px;
    font-size: 13px;
}

/* ============================================================
   CARDS
   ============================================================ */
.card[style*="max-width"] {
    margin-left: auto;
    margin-right: auto;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

/* Red top edge (Pokeball upper half accent) */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--poke-red), var(--poke-red-light));
}

.card:hover {
    border-color: rgba(227,53,13,0.3);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.card-header h2, .card-header h3 {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 22px;
    color: var(--text-primary);
}

/* ============================================================
   STATS GRID (Home page)
   ============================================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.stat-card:nth-child(1)::before { background: var(--gradient-primary); }
.stat-card:nth-child(2)::before { background: var(--gradient-gold); }
.stat-card:nth-child(3)::before { background: var(--gradient-fire); }
.stat-card:nth-child(4)::before { background: var(--gradient-water); }

/* Pokeball watermark in stat cards */
.stat-card::after {
    content: '';
    position: absolute;
    bottom: -15px;
    right: -15px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(227,53,13,0.08) 48%, rgba(100,100,100,0.04) 48%, rgba(100,100,100,0.04) 52%, rgba(255,255,255,0.04) 52%);
    pointer-events: none;
}

.stat-value {
    font-family: 'Rajdhani', sans-serif;
    font-size: 42px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-card:nth-child(1) .stat-value { color: var(--poke-red); }
.stat-card:nth-child(2) .stat-value { color: var(--poke-gold); }
.stat-card:nth-child(3) .stat-value { color: var(--accent-orange); }
.stat-card:nth-child(4) .stat-value { color: var(--accent-cyan); }

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================================
   HOME GRID
   ============================================================ */
.home-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 40px;
}

/* ============================================================
   FEATURES SECTION
   ============================================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    text-align: center;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(227,53,13,0.3);
    box-shadow: var(--shadow-glow);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 16px;
    display: block;
}

.feature-card h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ============================================================
   TABLES
   ============================================================ */
.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--poke-gold);
    border-bottom: 2px solid var(--poke-red);
}

table td {
    padding: 12px 16px;
    font-size: 14px;
    border-bottom: 1px solid rgba(46,46,85,0.5);
    color: var(--text-secondary);
}

table tbody tr {
    transition: background 0.2s;
}

table tbody tr:hover {
    background: rgba(227,53,13,0.05);
}

table tbody tr:hover td {
    color: var(--text-primary);
}

.rank-number {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: var(--text-muted);
    width: 40px;
    display: inline-block;
    text-align: center;
}

.rank-number.gold { color: var(--poke-gold); text-shadow: 0 0 8px rgba(255,215,0,0.4); }
.rank-number.silver { color: #c0c0c0; }
.rank-number.bronze { color: #cd7f32; }

.player-name {
    font-weight: 600;
    color: var(--text-primary);
}

.player-name a {
    color: var(--text-primary);
}

.player-name a:hover {
    color: var(--poke-gold);
}

.level-badge {
    background: rgba(227,53,13,0.15);
    color: var(--poke-red);
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
}

/* ============================================================
   PAGE HEADER
   ============================================================ */
.page-header {
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}

.page-header-sprite {
    width: 80px;
    height: 80px;
    image-rendering: pixelated;
    filter: drop-shadow(0 0 8px rgba(255,215,0,0.5));
    flex-shrink: 0;
}

.page-header-icon {
    width: 78px;
    height: 78px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    color: #1e9edb;
    filter: drop-shadow(0 10px 16px rgba(30, 158, 219, .26));
    flex-shrink: 0;
}

.page-header h1 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 4px;
    background: linear-gradient(135deg, var(--poke-red), var(--poke-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 16px;
}

/* ============================================================
   TABS / FILTERS
   ============================================================ */
.tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.tab {
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.tab:hover {
    color: var(--text-primary);
    background: var(--bg-card-hover);
    border-color: rgba(227,53,13,0.3);
}

.tab.active {
    color: #fff;
    background: var(--poke-red);
    border-color: var(--poke-red);
}

/* ============================================================
   FORM
   ============================================================ */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--poke-red);
    box-shadow: 0 0 0 3px rgba(227,53,13,0.15);
}

.form-control::placeholder {
    color: var(--text-muted);
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236a6a90' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

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

.form-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ============================================================
   ALERTS
   ============================================================ */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    margin-bottom: 20px;
    border: 1px solid;
    text-align: center;
}

.alert-success {
    background: rgba(34,197,94,0.1);
    border-color: rgba(34,197,94,0.3);
    color: var(--accent-green);
}

.alert-error {
    background: rgba(227,53,13,0.1);
    border-color: rgba(227,53,13,0.3);
    color: var(--poke-red);
}

.alert-info {
    background: rgba(59,130,246,0.1);
    border-color: rgba(59,130,246,0.3);
    color: var(--accent-blue);
}

/* ============================================================
   POKEDEX
   ============================================================ */
.pokedex-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.pokemon-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
    cursor: default;
    position: relative;
    overflow: hidden;
}

/* Red top accent on Pokemon cards */
.pokemon-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

.pokemon-card:hover {
    transform: translateY(-3px);
    border-color: rgba(227,53,13,0.3);
    box-shadow: var(--shadow-glow);
}

.pokemon-sprite {
    width: 80px;
    height: 80px;
    margin: 0 auto 12px;
    background: rgba(227,53,13,0.06);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    border: 2px solid rgba(227,53,13,0.15);
    overflow: hidden;
}

.pokemon-sprite img {
    width: 68px;
    height: 68px;
    object-fit: contain;
    image-rendering: pixelated;
}

.pokemon-card h4 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.poke-details {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 4px;
}

.poke-gender {
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
}

.poke-gender.male {
    color: var(--accent-blue);
}

.poke-gender.female {
    color: #f472b6;
}

.poke-nature {
    font-size: 12px;
    color: var(--text-muted);
    font-style: italic;
}

/* Gym Badges */
.badges-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 20px;
}

.badge-slot {
    text-align: center;
    padding: 16px 8px;
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.badge-slot.earned {
    background: rgba(255, 215, 0, 0.05);
}

.badge-slot.locked {
    opacity: 0.35;
}

.badge-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 24px;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    color: #fff;
    transition: all 0.3s ease;
}

.badge-slot.earned .badge-icon {
    border-color: transparent;
}

.badge-slot.locked .badge-icon {
    color: var(--text-muted);
}

.badge-name {
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.badge-leader {
    font-size: 11px;
    color: var(--text-muted);
}

.badge-slot.earned:hover {
    transform: translateY(-2px);
}

.badge-slot.earned:hover .badge-icon {
    transform: scale(1.1);
}

.pokemon-types {
    display: flex;
    gap: 4px;
    justify-content: center;
    flex-wrap: wrap;
}

.pokemon-type {
    display: inline-block;
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Pokemon types */
.type-normal { background: rgba(168,168,120,0.2); color: #a8a878; }
.type-fire { background: rgba(240,128,48,0.2); color: #f08030; }
.type-water { background: rgba(104,144,240,0.2); color: #6890f0; }
.type-grass { background: rgba(120,200,80,0.2); color: #78c850; }
.type-electric { background: rgba(248,208,48,0.2); color: #f8d030; }
.type-ice { background: rgba(152,216,216,0.2); color: #98d8d8; }
.type-fighting { background: rgba(192,48,40,0.2); color: #c03028; }
.type-poison { background: rgba(160,64,160,0.2); color: #a040a0; }
.type-ground { background: rgba(224,192,104,0.2); color: #e0c068; }
.type-flying { background: rgba(168,144,240,0.2); color: #a890f0; }
.type-psychic { background: rgba(248,88,136,0.2); color: #f85888; }
.type-bug { background: rgba(168,184,32,0.2); color: #a8b820; }
.type-rock { background: rgba(184,160,56,0.2); color: #b8a038; }
.type-ghost { background: rgba(112,88,152,0.2); color: #705898; }
.type-dragon { background: rgba(112,56,248,0.2); color: #7038f8; }
.type-dark { background: rgba(112,88,72,0.2); color: #705848; }
.type-steel { background: rgba(184,184,208,0.2); color: #b8b8d0; }
.type-fairy { background: rgba(238,153,172,0.2); color: #ee99ac; }

.pokemon-stats {
    margin-top: 10px;
    font-size: 13px;
    color: var(--text-muted);
}

.pokemon-stats span {
    display: inline-block;
    margin: 2px 4px;
}

/* ============================================================
   SEARCH BAR
   ============================================================ */
.search-bar {
    margin-bottom: 24px;
}

.search-bar input {
    width: 100%;
    padding: 14px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--text-primary);
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--poke-red);
    box-shadow: 0 0 0 3px rgba(227,53,13,0.15);
}

/* ============================================================
   SERVER INFO
   ============================================================ */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.info-table {
    width: 100%;
}

.info-table tr td:first-child {
    font-weight: 500;
    color: var(--text-primary);
    width: 40%;
}

.info-table tr td:last-child {
    color: var(--poke-gold);
    font-weight: 600;
}

/* ============================================================
   PLAYER PROFILE
   ============================================================ */
.profile-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--poke-red), var(--poke-gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
}

.profile-info h1 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 4px;
}

.profile-info p {
    color: var(--text-secondary);
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 24px;
}

.pagination a, .pagination span {
    padding: 8px 14px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: all 0.2s;
    text-decoration: none;
}

.pagination a:hover {
    color: var(--text-primary);
    background: var(--bg-card-hover);
}

.pagination .current {
    color: #fff;
    background: var(--poke-red);
    border-color: var(--poke-red);
}

/* ============================================================
   GUILD
   ============================================================ */
.guild-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.guild-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient-primary);
}

.guild-card:hover {
    border-color: rgba(227,53,13,0.3);
    transform: translateX(2px);
}

.guild-emblem {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--poke-red), var(--poke-gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    flex-shrink: 0;
}

.guild-info h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 20px;
    font-weight: 600;
}

.guild-info p {
    color: var(--text-secondary);
    font-size: 14px;
}

.guild-meta {
    margin-left: auto;
    text-align: right;
    font-size: 13px;
    color: var(--text-muted);
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state .empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-icon-sprite {
    width: 80px;
    height: 80px;
    image-rendering: pixelated;
    margin-bottom: 16px;
    opacity: 0.7;
    filter: drop-shadow(0 0 6px rgba(255,255,255,0.2));
}

.empty-state h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

/* ============================================================
   FOOTER
   ============================================================ */
.main-footer {
    background: var(--bg-secondary);
    border-top: 2px solid var(--poke-red);
    padding: 40px 0 20px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* Subtle Pokeball pattern in footer background */
.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 10% 50%, rgba(227,53,13,0.03) 30px, transparent 30px),
        radial-gradient(circle at 90% 30%, rgba(227,53,13,0.03) 25px, transparent 25px),
        radial-gradient(circle at 50% 80%, rgba(227,53,13,0.02) 20px, transparent 20px);
    pointer-events: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
    position: relative;
}

.footer-col h4 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--poke-gold);
}

.footer-col p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-col a {
    display: block;
    color: var(--text-secondary);
    font-size: 14px;
    padding: 4px 0;
    transition: color 0.2s, padding-left 0.2s;
}

.footer-col a:hover {
    color: var(--poke-gold);
    padding-left: 4px;
}

.server-status-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-dot.online { background: var(--accent-green); box-shadow: 0 0 8px rgba(34,197,94,0.5); }
.status-dot.offline { background: var(--accent-red); }

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.footer-stat {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.footer-stat strong { color: var(--text-secondary); }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    text-align: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--text-muted);
}

.footer-sprite {
    width: 48px;
    height: 48px;
    image-rendering: pixelated;
    filter: drop-shadow(0 0 6px rgba(255,215,0,0.4));
}

/* ============================================================
   EASTER EGG HIDDEN POKEMON
   ============================================================ */
.easter-egg-section {
    position: relative;
}

.hidden-pokemon {
    position: absolute;
    width: 28px;
    height: 28px;
    pointer-events: all;
    cursor: default;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 50%;
    z-index: 10;
}


.hidden-pokemon img {
    width: 64px;
    height: 64px;
    image-rendering: pixelated;
    opacity: 0;
    transform: scale(0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

.hidden-pokemon:hover {
    width: 64px;
    height: 64px;
    overflow: visible;
    z-index: 100;
}


.hidden-pokemon:hover img {
    opacity: 1;
    transform: scale(1);
    filter: drop-shadow(0 0 12px rgba(255,215,0,0.8));
}

.hidden-pokemon.discovered {
    width: 64px;
    height: 64px;
    overflow: visible;
}

.hidden-pokemon.discovered img {
    opacity: 0.3;
    transform: scale(0.8);
    filter: drop-shadow(0 0 6px rgba(255,215,0,0.3));
}

.pokemon-found-counter {
    position: fixed;
    bottom: 70px;
    right: 24px;
    background: var(--card-bg);
    border: 1px solid var(--poke-gold);
    border-radius: 12px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(255,215,0,0.2);
    animation: fadeInUp 0.5s ease;
}

.pokemon-found-counter.all-found {
    border-color: var(--accent-green);
    box-shadow: 0 4px 20px rgba(76,175,80,0.3);
}

.found-counter-sprite {
    width: 28px;
    height: 28px;
    image-rendering: pixelated;
}

.pokemon-found-counter span {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: var(--poke-gold);
}

.pokemon-found-counter.all-found span {
    color: var(--accent-green);
}

.pokemon-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: rgba(0,0,0,0.85);
    border: 2px solid var(--poke-gold);
    border-radius: 12px;
    padding: 16px 32px;
    color: var(--poke-gold);
    font-family: 'Rajdhani', sans-serif;
    font-size: 20px;
    font-weight: 700;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    text-align: center;
}

.pokemon-toast.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   MUSIC TOGGLE BUTTON
   ============================================================ */
.music-toggle {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(180deg, var(--poke-red) 45%, #555 45%, #555 55%, #fff 55%);
    border: 3px solid #444;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    transition: transform 0.3s, box-shadow 0.3s;
    padding: 0;
}

.music-toggle::after {
    content: '';
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #666;
    position: absolute;
    transition: background 0.3s, border-color 0.3s;
}

.music-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(227,53,13,0.4);
}

.music-toggle.playing {
    animation: pokeball-spin 2s linear infinite;
}

.music-toggle.playing::after {
    background: var(--poke-gold);
    border-color: var(--poke-gold-dark);
    box-shadow: 0 0 8px rgba(255,215,0,0.5);
}

.music-toggle .music-icon {
    position: absolute;
    top: -8px;
    right: -4px;
    font-size: 16px;
    background: var(--bg-card);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    line-height: 1;
}

@keyframes pokeball-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Tooltip on hover */
.music-toggle[title]:hover::before {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 8px;
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
    border: 1px solid var(--border);
    pointer-events: none;
    animation: none;
}

/* ============================================================
   NAV DONATE LINK (gold highlight)
   ============================================================ */
.main-nav a.nav-donate {
    color: var(--poke-gold);
    font-weight: 600;
}

.main-nav a.nav-donate:hover {
    color: #fff;
    background: rgba(255,215,0,0.15);
    text-shadow: 0 0 8px rgba(255,215,0,0.4);
}

.main-nav a.nav-donate.active {
    color: #fff;
    background: linear-gradient(135deg, var(--poke-gold-dark), var(--accent-orange));
}

/* ============================================================
   LOGIN CARD
   ============================================================ */
.login-card {
    margin: 0 auto;
}

/* ============================================================
   ACCOUNT PAGE
   ============================================================ */
.account-forms-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.character-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid rgba(46,46,85,0.5);
    gap: 16px;
}

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

.character-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.character-details {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.character-poke-list {
    font-size: 13px;
    color: var(--text-muted);
}

.character-actions {
    flex-shrink: 0;
    text-align: right;
}

.delete-confirm-form {
    margin-top: 4px;
}

/* ============================================================
   DONATE PAGE
   ============================================================ */
.donate-wrapper {
    max-width: 560px;
    margin: 0 auto;
}

.donate-card {
    text-align: center;
}

.donate-qr {
    display: flex;
    justify-content: center;
    margin: 24px 0;
}

.pix-qr-img {
    max-width: 280px;
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    border: 3px solid var(--border);
    background: #fff;
    padding: 12px;
}

.donate-instructions {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    padding: 0 12px;
}

.donate-thanks {
    font-size: 14px;
    color: var(--poke-gold);
    font-weight: 500;
}

/* ============================================================
   REFERRAL SYSTEM
   ============================================================ */
.referral-card {
    border: 1px solid rgba(255,215,0,0.2);
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(255,215,0,0.03) 100%);
}

.referral-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 8px;
}

.referral-stat-item {
    text-align: center;
    padding: 12px;
    background: rgba(255,255,255,0.03);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255,215,0,0.1);
}

.referral-stat-value {
    display: block;
    font-family: 'Rajdhani', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--poke-gold);
}

.referral-stat-label {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.referral-code {
    display: inline-block;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 8px 14px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 15px;
    font-weight: 600;
    color: var(--poke-gold);
    letter-spacing: 1px;
    user-select: all;
    flex: 1;
    min-width: 0;
}

.copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    background: rgba(255,215,0,0.1);
    border: 1px solid rgba(255,215,0,0.3);
    border-radius: 6px;
    color: var(--poke-gold);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.copy-btn:hover {
    background: rgba(255,215,0,0.2);
    border-color: var(--poke-gold);
}

.copy-btn.copied {
    background: rgba(34,197,94,0.15);
    border-color: var(--accent-green);
    color: var(--accent-green);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes bounce-in {
    0% { transform: scale(0.9); opacity: 0; }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); opacity: 1; }
}

.card, .stat-card, .feature-card, .pokemon-card, .guild-card {
    animation: bounce-in 0.4s ease-out;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1400px) {
    .main-nav a {
        padding: 4px 5px;
        font-size: 12px;
    }
    .nav-sprite { width: 48px; height: 48px; }
    .logo-name { font-size: 22px; }
    .logo-sub { font-size: 10px; }
}

@media (max-width: 1100px) {
    .main-nav a {
        padding: 3px 4px;
        font-size: 11px;
    }
    .nav-sprite { width: 40px; height: 40px; }
}

@media (max-width: 900px) {
    .mobile-toggle { display: flex; }

    .main-nav {
        display: none;
        position: absolute;
        top: 120px;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        border-bottom: 2px solid var(--poke-red);
        flex-direction: column;
        padding: 16px;
        gap: 4px;
        z-index: 200;
    }

    .main-nav a {
        flex-direction: row;
        padding: 10px 16px;
        font-size: 14px;
        gap: 10px;
    }
    .nav-sprite {
        width: 28px;
        height: 28px;
        filter: brightness(1) saturate(1);
    }
}

@media (max-width: 768px) {
    .mobile-toggle { display: flex; }

    .main-nav {
        display: none;
        position: absolute;
        top: 120px;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        border-bottom: 2px solid var(--poke-red);
        flex-direction: column;
        padding: 16px;
        gap: 4px;
    }
    .main-nav a {
        flex-direction: row;
        gap: 10px;
    }

    .main-nav.open { display: flex; }

    .hero h1 { font-size: 36px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .badges-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 12px; }
    .home-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .info-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .account-forms-grid { grid-template-columns: 1fr; }
    .character-row { flex-direction: column; align-items: flex-start; }
    .character-actions { width: 100%; text-align: left; }
    .profile-stats { grid-template-columns: repeat(2, 1fr); }
    .pokedex-grid { grid-template-columns: repeat(2, 1fr); }

    .music-toggle {
        bottom: 16px;
        right: 16px;
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .pokedex-grid { grid-template-columns: 1fr; }
    .hero-buttons { flex-direction: column; align-items: center; }
}

/* ============================================================
   ADMIN PANEL
   ============================================================ */

/* Admin nav link (purple accent) */
.main-nav a.nav-admin {
    color: var(--accent-purple);
    font-weight: 600;
}
.main-nav a.nav-admin:hover {
    color: #fff;
    background: rgba(139,92,246,0.15);
    text-shadow: 0 0 8px rgba(139,92,246,0.4);
}

/* Button variants — shake + shiny + colored glow */

.btn-danger {
    background: #dc2626;
    color: #fff;
    --btn-shadow: 0 4px 15px rgba(220,38,38,0.3);
    --btn-glow: 0 6px 30px rgba(220,38,38,0.7), 0 0 15px rgba(239,68,68,0.35);
    box-shadow: var(--btn-shadow);
}
.btn-danger:hover {
    color: #fff;
    animation: pokeglow 0.5s ease-in-out;
}

.btn-success {
    background: #16a34a;
    color: #fff;
    --btn-shadow: 0 4px 15px rgba(22,163,74,0.3);
    --btn-glow: 0 6px 30px rgba(22,163,74,0.7), 0 0 15px rgba(34,197,94,0.35);
    box-shadow: var(--btn-shadow);
}
.btn-success:hover {
    color: #fff;
    animation: pokeglow 0.5s ease-in-out;
}

.btn-warning {
    background: #d97706;
    color: #fff;
    --btn-shadow: 0 4px 15px rgba(217,119,6,0.3);
    --btn-glow: 0 6px 30px rgba(217,119,6,0.7), 0 0 15px rgba(245,158,11,0.35);
    box-shadow: var(--btn-shadow);
}
.btn-warning:hover {
    color: #fff;
    animation: pokeglow 0.5s ease-in-out;
}

/* Group badges */
.admin-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.admin-badge-god { background: rgba(139,92,246,0.2); color: #a78bfa; }
.admin-badge-gm { background: rgba(59,130,246,0.2); color: #60a5fa; }
.admin-badge-tutor { background: rgba(34,197,94,0.2); color: #4ade80; }
.admin-badge-player { background: rgba(160,160,192,0.15); color: var(--text-muted); }

/* Status indicators */
.status-online { color: var(--accent-green); font-weight: 600; }
.status-offline { color: var(--text-muted); }
.status-deleted { color: #dc2626; font-weight: 600; }
.status-banned { color: #f59e0b; font-weight: 600; }

/* Admin form grid */
.admin-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Admin inline search form */
.admin-search-form {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    align-items: center;
}
.admin-search-form .form-control {
    flex: 1;
    max-width: 400px;
}

/* Admin quick actions */
.admin-actions-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

/* Admin info display */
.admin-info-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(46,46,85,0.3);
    font-size: 14px;
}
.admin-info-row .admin-info-label {
    color: var(--text-secondary);
    min-width: 140px;
    font-weight: 500;
}
.admin-info-row .admin-info-value {
    color: var(--text-primary);
}

@media (max-width: 1024px) {
    .stats-grid[style*="repeat(6"] { grid-template-columns: repeat(3, 1fr) !important; }
}

@media (max-width: 768px) {
    .admin-form-grid { grid-template-columns: 1fr; }
    .admin-search-form { flex-direction: column; }
    .admin-search-form .form-control { max-width: 100%; }
    .stats-grid[style*="repeat(6"] { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ============================================================
   MOON SITE THEME
   ============================================================ */

:root {
    --poke-red: #20e0c8;
    --poke-red-dark: #00b8d4;
    --poke-red-light: #6aeaff;
    --poke-blue: #0b1020;
    --poke-navy: #060914;
    --poke-gold: #00d2be;
    --poke-gold-dark: #6d28d9;
    --poke-white: #eef7ff;

    --moon-bg: #050814;
    --moon-bg-2: #0a1020;
    --moon-bg-3: #10182b;
    --moon-surface: rgba(14, 22, 40, 0.84);
    --moon-surface-strong: rgba(18, 28, 52, 0.94);
    --moon-border: rgba(97, 128, 255, 0.18);
    --moon-border-bright: rgba(0, 245, 255, 0.44);

    --bg-primary: radial-gradient(circle at top, #10182b 0%, #070b17 40%, #04070f 100%);
    --bg-secondary: #0b1020;
    --bg-card: rgba(14, 22, 40, 0.84);
    --bg-card-hover: rgba(20, 31, 59, 0.96);
    --border: rgba(97, 128, 255, 0.18);
    --border-glow: #20e0c8;

    --text-primary: #eef7ff;
    --text-secondary: #a9b7d9;
    --text-muted: #6e7da6;

    --accent-blue: #4d7cff;
    --accent-purple: #00d2be;
    --accent-red: #ffcb50;
    --accent-green: #00ff9d;
    --accent-yellow: #ffd166;
    --accent-orange: #ff9f43;
    --accent-cyan: #20e0c8;
    --accent-pink: #ffcb50;

    --gradient-primary: linear-gradient(135deg, #20e0c8 0%, #4d7cff 45%, #b026ff 100%);
    --gradient-gold: linear-gradient(135deg, #00d2be 0%, #ffcb50 100%);
    --gradient-fire: linear-gradient(135deg, #4d7cff 0%, #00d2be 100%);
    --gradient-water: linear-gradient(135deg, #20e0c8 0%, #4d7cff 100%);
    --gradient-grass: linear-gradient(135deg, #00ff9d 0%, #20e0c8 100%);
    --gradient-pokeball: linear-gradient(180deg, #20e0c8 0%, #20e0c8 48%, #172033 48%, #172033 52%, #eef7ff 52%, #eef7ff 100%);
    --gradient-moon: linear-gradient(135deg, #20e0c8 0%, #4d7cff 35%, #00d2be 65%, #ffcb50 100%);
    --gradient-card: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
    --gradient-border: linear-gradient(90deg, #20e0c8, #4d7cff, #00d2be, #ffcb50);

    --shadow-sm: 0 2px 10px rgba(0,0,0,0.32);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.42);
    --shadow-lg: 0 20px 55px rgba(0,0,0,0.6);
    --shadow-glow: 0 0 22px rgba(0,245,255,0.16), 0 0 44px rgba(255,107,107,0.1);
    --shadow-gold: 0 0 18px rgba(139,92,246,0.22);

    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;
}

html {
    scroll-behavior: smooth;
    scrollbar-color: rgba(0,245,255,0.5) rgba(10,16,32,0.8);
}

body {
    background: var(--bg-primary);
    background-attachment: fixed;
    color: var(--text-primary);
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(circle at 10% 20%, rgba(0,245,255,0.12) 0%, transparent 22%),
        radial-gradient(circle at 85% 12%, rgba(255,107,107,0.12) 0%, transparent 26%),
        radial-gradient(circle at 50% 85%, rgba(77,124,255,0.08) 0%, transparent 24%),
        linear-gradient(180deg, rgba(255,255,255,0.015), transparent 25%);
}

.stars {
    background:
        radial-gradient(circle at 15% 20%, rgba(0,245,255,0.13) 0%, transparent 18%),
        radial-gradient(circle at 80% 18%, rgba(255,107,107,0.14) 0%, transparent 24%),
        radial-gradient(circle at 50% 78%, rgba(77,124,255,0.12) 0%, transparent 24%),
        radial-gradient(circle at 30% 65%, rgba(255,43,214,0.08) 0%, transparent 16%);
    filter: blur(12px);
}

::selection {
    background: rgba(0,245,255,0.25);
    color: #fff;
}

a {
    color: var(--accent-cyan);
}

a:hover {
    color: #7ceeff;
}

.pokeball-divider::before,
.pokeball-divider::after {
    background: linear-gradient(90deg, transparent, rgba(0,245,255,0.35), transparent);
}

.pokeball-divider .pokeball-icon {
    background: linear-gradient(180deg, #20e0c8 45%, #18243a 45%, #18243a 55%, #eef7ff 55%);
    border: 2px solid rgba(0,245,255,0.25);
    box-shadow: 0 0 16px rgba(0,245,255,0.2);
}

.pokeball-divider .pokeball-icon::after {
    background: #eef7ff;
    border: 2px solid rgba(0,245,255,0.3);
    box-shadow: 0 0 10px rgba(0,245,255,0.25);
}

.main-header {
    background: rgba(7, 11, 23, 0.72);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(0,245,255,0.2);
    box-shadow: 0 8px 30px rgba(0,0,0,0.35);
}

.main-header::before {
    height: 2px;
    background: var(--gradient-border);
    box-shadow: 0 0 14px rgba(0,245,255,0.35);
}

.logo-pokeball {
    filter: drop-shadow(0 0 8px rgba(0,245,255,0.35));
}

.logo-name {
    letter-spacing: 1.5px;
    text-shadow: 0 0 12px rgba(0,245,255,0.14);
}

.logo-sub {
    color: var(--accent-cyan);
    letter-spacing: 3px;
}

.main-nav a {
    padding: 6px 10px;
    border-radius: 12px;
    border: 1px solid transparent;
}

.main-nav a:hover .nav-sprite {
    filter: brightness(1.15) saturate(1) drop-shadow(0 0 7px rgba(0,245,255,0.45));
}

.main-nav a.active .nav-sprite {
    filter: brightness(1.15) saturate(1) drop-shadow(0 0 8px rgba(0,245,255,0.55));
}

.main-nav a:hover {
    color: var(--text-primary);
    background: rgba(0,245,255,0.06);
    border-color: rgba(0,245,255,0.18);
    box-shadow: inset 0 0 20px rgba(0,245,255,0.04), 0 0 12px rgba(0,245,255,0.07);
}

.main-nav a.active {
    color: var(--accent-cyan);
    background: rgba(0,245,255,0.08);
    border-color: rgba(0,245,255,0.28);
    box-shadow: 0 0 18px rgba(0,245,255,0.1);
}

.main-nav a.active::after {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--accent-cyan);
    box-shadow: 0 0 12px rgba(0,245,255,0.65);
}

.online-badge {
    background: rgba(0,255,157,0.18);
    color: var(--accent-green);
    border: 1px solid rgba(0,255,157,0.26);
    box-shadow: 0 0 10px rgba(0,255,157,0.16);
}

.lang-switcher {
    border-left: 1px solid rgba(0,245,255,0.12);
}

.lang-flag.active {
    background: rgba(0,245,255,0.06);
    box-shadow: inset 0 0 18px rgba(0,245,255,0.04);
}

.lang-flag.active .flag-label {
    color: var(--accent-cyan);
}

.hero::before {
    width: 340px;
    height: 340px;
    background:
        radial-gradient(circle at center, rgba(0,245,255,0.12) 0%, rgba(77,124,255,0.08) 34%, rgba(255,107,107,0.06) 60%, transparent 74%);
    filter: blur(8px);
    border-radius: 50%;
}

.hero h1,
.page-header h1 {
    background: linear-gradient(135deg, #ffffff 0%, #20e0c8 30%, #7f8cff 62%, #ffcb50 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 25px rgba(0,245,255,0.08);
}

.hero p,
.page-header p {
    color: var(--text-secondary);
}

.page-header-sprite {
    filter: drop-shadow(0 0 10px rgba(0,245,255,0.35));
}

.btn {
    border-radius: 14px;
    font-weight: 700;
    letter-spacing: 0.35px;
    border: 1px solid rgba(255,255,255,0.08);
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.16) 30%, transparent 60%);
    transform: translateX(-120%);
    transition: transform 0.55s ease;
    pointer-events: none;
}

.btn:hover::after {
    transform: translateX(120%);
}

.btn-primary {
    background: linear-gradient(135deg, #20e0c8 0%, #4d7cff 45%, #00d2be 100%);
    color: #07111f;
    box-shadow: 0 0 18px rgba(0,245,255,0.26), 0 12px 30px rgba(0,0,0,0.28);
}

.btn-primary::before {
    background: rgba(255,255,255,0.18);
}

.btn-primary:hover {
    box-shadow: 0 0 24px rgba(0,245,255,0.34), 0 0 40px rgba(139,92,246,0.15);
    animation: none;
}

.btn-secondary {
    background: rgba(12, 18, 34, 0.78);
    color: var(--text-primary);
    border: 1px solid rgba(97,128,255,0.2);
    box-shadow: inset 0 0 18px rgba(255,255,255,0.02), 0 8px 24px rgba(0,0,0,0.22);
}

.btn-secondary:hover {
    border-color: rgba(0,245,255,0.36);
    color: var(--accent-cyan);
    animation: none;
    box-shadow: 0 0 20px rgba(0,245,255,0.12), inset 0 0 18px rgba(255,255,255,0.03);
}

.btn-danger,
.btn-success,
.btn-warning {
    border: 1px solid rgba(255,255,255,0.08);
}

.card,
.stat-card,
.feature-card,
.pokemon-card,
.guild-card {
    background:
        var(--gradient-card),
        rgba(14, 22, 40, 0.84);
    border: 1px solid rgba(97,128,255,0.16);
    border-radius: var(--radius);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-md);
}

.card::before,
.stat-card::before,
.feature-card::before,
.pokemon-card::before,
.guild-card::before {
    height: 2px;
    background: var(--gradient-border);
    opacity: 0.95;
}

.card::after,
.feature-card::after,
.pokemon-card::after,
.guild-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,245,255,0.03), transparent 45%, rgba(255,107,107,0.035));
    pointer-events: none;
}

.card:hover,
.stat-card:hover,
.feature-card:hover,
.pokemon-card:hover,
.guild-card:hover {
    border-color: rgba(0,245,255,0.3);
    box-shadow: 0 0 0 1px rgba(0,245,255,0.08), 0 0 20px rgba(0,245,255,0.10), 0 0 35px rgba(255,107,107,0.08), 0 14px 40px rgba(0,0,0,0.45);
    transform: translateY(-4px);
}

.card-header {
    border-bottom: 1px solid rgba(97,128,255,0.14);
}

.card-header h2,
.card-header h3,
.feature-card h3,
.pokemon-card h4 {
    color: var(--text-primary);
    text-shadow: 0 0 12px rgba(0,245,255,0.06);
}

.stat-card:nth-child(1)::before,
.stat-card:nth-child(2)::before,
.stat-card:nth-child(3)::before,
.stat-card:nth-child(4)::before {
    background: var(--gradient-border);
}

.stat-card::after {
    background: radial-gradient(circle at center, rgba(0,245,255,0.08) 0%, rgba(77,124,255,0.05) 35%, transparent 68%);
    bottom: -15px;
    right: -15px;
    width: 76px;
    height: 76px;
    filter: blur(1px);
}

.stat-card:nth-child(1) .stat-value,
.stat-card:nth-child(2) .stat-value,
.stat-card:nth-child(3) .stat-value,
.stat-card:nth-child(4) .stat-value {
    background: var(--gradient-moon);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-muted);
}

.feature-card:hover::before {
    opacity: 1;
}

.table-wrapper {
    border-radius: 14px;
}

table th {
    color: var(--accent-cyan);
    border-bottom: 1px solid rgba(0,245,255,0.24);
    letter-spacing: 1.15px;
}

table td {
    border-bottom: 1px solid rgba(97,128,255,0.10);
    color: var(--text-secondary);
}

table tbody tr:hover {
    background: rgba(0,245,255,0.04);
}

.player-name a:hover,
.rank-number.gold {
    color: var(--accent-cyan);
    text-shadow: 0 0 8px rgba(0,245,255,0.28);
}

.level-badge {
    background: rgba(0,245,255,0.10);
    color: var(--accent-cyan);
    border: 1px solid rgba(0,245,255,0.18);
}

.tab {
    border-radius: 999px;
    background: rgba(14, 22, 40, 0.84);
    border: 1px solid rgba(97,128,255,0.16);
}

.tab:hover {
    background: rgba(20, 31, 59, 0.96);
    border-color: rgba(0,245,255,0.22);
    box-shadow: 0 0 16px rgba(0,245,255,0.08);
}

.tab.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(0,245,255,0.18), rgba(77,124,255,0.22), rgba(255,107,107,0.18));
    border-color: rgba(0,245,255,0.3);
    box-shadow: 0 0 18px rgba(0,245,255,0.10);
}

.form-control,
.search-bar input,
select.form-control,
textarea.form-control {
    background: rgba(10, 16, 30, 0.88);
    border: 1px solid rgba(97,128,255,0.18);
    border-radius: 12px;
    color: var(--text-primary);
    box-shadow: inset 0 0 12px rgba(255,255,255,0.015);
}

.form-control:focus,
.search-bar input:focus,
select.form-control:focus,
textarea.form-control:focus {
    outline: none;
    border-color: rgba(0,245,255,0.52);
    box-shadow: 0 0 0 3px rgba(0,245,255,0.10), 0 0 18px rgba(0,245,255,0.12);
}

.info-table td,
.admin-info-row {
    border-bottom-color: rgba(97,128,255,0.12);
}

.copy-btn {
    background: rgba(139,92,246,0.08);
    border-color: rgba(139,92,246,0.22);
    color: #cbb7ff;
}

.copy-btn:hover {
    background: rgba(0,245,255,0.12);
    border-color: rgba(0,245,255,0.28);
    color: var(--accent-cyan);
}

.main-footer {
    background: linear-gradient(180deg, rgba(8,12,24,0.96), rgba(5,8,16,1));
    border-top: 1px solid rgba(0,245,255,0.2);
    box-shadow: 0 -10px 40px rgba(0,0,0,0.35);
}

.main-footer::before {
    background:
        radial-gradient(circle at 20% 10%, rgba(0,245,255,0.06), transparent 25%),
        radial-gradient(circle at 80% 20%, rgba(255,107,107,0.06), transparent 28%),
        radial-gradient(circle at 50% 100%, rgba(77,124,255,0.05), transparent 30%);
}

.main-nav a.nav-donate {
    color: #ffd166;
}

.main-nav a.nav-donate:hover,
.main-nav a.nav-donate.active {
    background: rgba(255,209,102,0.10);
    color: #ffe29c;
    border-color: rgba(255,209,102,0.22);
}

.main-nav a.nav-admin {
    color: #c4a2ff;
}

.main-nav a.nav-admin:hover {
    color: #fff;
    background: rgba(139,92,246,0.15);
    border-color: rgba(139,92,246,0.28);
    text-shadow: 0 0 8px rgba(139,92,246,0.35);
}

.admin-badge-god { background: rgba(139,92,246,0.18); color: #c4a2ff; }
.admin-badge-gm { background: rgba(77,124,255,0.18); color: #8bb2ff; }
.admin-badge-tutor { background: rgba(0,255,157,0.16); color: #68ffbb; }
.admin-badge-player { background: rgba(169,183,217,0.10); color: var(--text-muted); }

.status-online { color: var(--accent-green); }
.status-offline { color: var(--text-muted); }
.status-deleted { color: #ff6584; }
.status-banned { color: #ffd166; }

@keyframes moonPulse {
    0%, 100% { box-shadow: 0 0 0 rgba(0,245,255,0), 0 0 0 rgba(255,107,107,0); }
    50% { box-shadow: 0 0 22px rgba(0,245,255,0.16), 0 0 30px rgba(255,107,107,0.10); }
}

.card:hover,
.stat-card:hover,
.feature-card:hover,
.pokemon-card:hover,
.guild-card:hover,
.btn-primary:hover,
.tab.active {
    animation: moonPulse 2.4s ease-in-out infinite;
}

/* ============================================================
   MOON HERO FINAL SIZE FIX
   ============================================================ */

html::after {
    background:
        linear-gradient(116deg, rgba(32, 224, 200, .26) 0 1px, transparent 1px 42px) left 132px / 240px 240px no-repeat,
        linear-gradient(63deg, rgba(255, 203, 80, .16) 0 1px, transparent 1px 54px) left 278px / 280px 280px no-repeat,
        radial-gradient(ellipse at 9% 27%, rgba(32, 224, 200, .32), transparent 31%),
        radial-gradient(ellipse at 19% 68%, rgba(125, 240, 199, .15), transparent 29%),
        radial-gradient(ellipse at 28% 18%, rgba(255, 203, 80, .12), transparent 24%),
        linear-gradient(90deg, rgba(3, 7, 13, .32) 0%, rgba(3, 7, 13, .12) 30%, rgba(3, 7, 13, .84) 68%, rgba(3, 7, 13, .94) 100%),
        linear-gradient(180deg, rgba(3, 7, 13, .58), rgba(3, 7, 13, .82) 48%, rgba(3, 7, 13, .94)) !important;
    animation: moonLeftEnergy 11s ease-in-out infinite alternate !important;
}

.moon-hero {
    min-height: 330px !important;
    gap: 12px !important;
    padding: 34px 28px 38px !important;
    margin-bottom: 24px !important;
}

.hero-official-logo {
    width: min(255px, 38vw) !important;
    max-height: 165px !important;
    margin-bottom: 0 !important;
    animation: moonLogoFloatSmall 5.5s ease-in-out infinite alternate !important;
}

.moon-hero h1 {
    font-size: clamp(32px, 4.25vw, 58px) !important;
    line-height: 1.02 !important;
    max-width: 870px !important;
}

.moon-hero .hero-buttons {
    margin-top: 4px !important;
}

@media (max-width: 720px) {
    .moon-hero {
        min-height: 300px !important;
        padding: 30px 16px 34px !important;
    }

    .hero-official-logo {
        width: min(210px, 62vw) !important;
        max-height: 136px !important;
    }

    .moon-hero h1 {
        font-size: clamp(28px, 10vw, 42px) !important;
    }
}

/* ============================================================
   MOON HERO BALANCE + LEFT ENERGY
   ============================================================ */

html::after {
    background:
        linear-gradient(116deg, rgba(32, 224, 200, .26) 0 1px, transparent 1px 42px) left 132px / 240px 240px no-repeat,
        linear-gradient(63deg, rgba(255, 203, 80, .16) 0 1px, transparent 1px 54px) left 278px / 280px 280px no-repeat,
        radial-gradient(ellipse at 9% 27%, rgba(32, 224, 200, .32), transparent 31%),
        radial-gradient(ellipse at 19% 68%, rgba(125, 240, 199, .15), transparent 29%),
        radial-gradient(ellipse at 28% 18%, rgba(255, 203, 80, .12), transparent 24%),
        linear-gradient(90deg, rgba(3, 7, 13, .32) 0%, rgba(3, 7, 13, .12) 30%, rgba(3, 7, 13, .84) 68%, rgba(3, 7, 13, .94) 100%),
        linear-gradient(180deg, rgba(3, 7, 13, .58), rgba(3, 7, 13, .82) 48%, rgba(3, 7, 13, .94)) !important;
    animation: moonLeftEnergy 11s ease-in-out infinite alternate;
}

.moon-hero {
    min-height: 330px !important;
    gap: 12px !important;
    padding: 34px 28px 38px !important;
    margin-bottom: 24px !important;
}

.hero-official-logo {
    width: min(255px, 38vw) !important;
    max-height: 165px !important;
    margin-bottom: 0 !important;
    animation: moonLogoFloatSmall 5.5s ease-in-out infinite alternate !important;
}

.moon-hero h1 {
    font-size: clamp(32px, 4.25vw, 58px) !important;
    line-height: 1.02 !important;
    max-width: 870px !important;
}

.moon-hero .hero-buttons {
    margin-top: 4px !important;
}

@keyframes moonLeftEnergy {
    from {
        opacity: .78;
        background-position: left 132px, left 278px, center, center, center, center, center;
    }
    to {
        opacity: 1;
        background-position: 28px 118px, 18px 292px, center, center, center, center, center;
    }
}

@keyframes moonLogoFloatSmall {
    from {
        transform: translateY(0) scale(1);
    }
    to {
        transform: translateY(-4px) scale(1.012);
    }
}

@media (max-width: 720px) {
    .moon-hero {
        min-height: 300px !important;
        padding: 30px 16px 34px !important;
    }

    .hero-official-logo {
        width: min(210px, 62vw) !important;
        max-height: 136px !important;
    }

    .moon-hero h1 {
        font-size: clamp(28px, 10vw, 42px) !important;
    }
}

/* ============================================================
   MOON HOME REWORK
   ============================================================ */

html::before {
    content: '';
    position: fixed;
    inset: -4%;
    z-index: -3;
    background: url('/img/background.png') center center / cover no-repeat;
    filter: saturate(1.12) contrast(1.04);
    transform: scale(1.08);
    animation: moonBackgroundDrift 34s ease-in-out infinite alternate;
    will-change: transform, background-position;
}

html::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(circle at 16% 18%, rgba(32, 224, 200, .24), transparent 28%),
        radial-gradient(circle at 82% 12%, rgba(255, 203, 80, .16), transparent 30%),
        linear-gradient(180deg, rgba(3, 7, 13, .72), rgba(3, 7, 13, .90) 48%, rgba(3, 7, 13, .96));
}

body {
    background: transparent !important;
}

.main-header,
.main-content,
.main-footer {
    position: relative;
    z-index: 1;
}

.main-content {
    padding-top: 34px;
}

.moon-hero {
    position: relative;
    overflow: hidden;
    min-height: 360px;
    display: grid;
    place-items: center;
    gap: 22px;
    padding: 76px 30px 62px;
    margin-bottom: 34px;
    background:
        linear-gradient(135deg, rgba(5, 12, 22, .64), rgba(8, 18, 30, .38)),
        radial-gradient(circle at 50% 0%, rgba(32, 224, 200, .16), transparent 34%);
    border: 1px solid rgba(32, 224, 200, .22);
    border-radius: 20px;
}

.moon-hero::before {
    content: '';
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(255, 203, 80, .18);
    border-radius: 16px;
    pointer-events: none;
}

.moon-hero::after {
    content: '';
    position: absolute;
    width: 520px;
    height: 520px;
    left: 50%;
    top: 50%;
    translate: -50% -50%;
    background: radial-gradient(circle, rgba(32, 224, 200, .14), transparent 62%);
    filter: blur(1px);
    animation: moonGlowFloat 8s ease-in-out infinite alternate;
    pointer-events: none;
}

.moon-hero h1 {
    position: relative;
    z-index: 1;
    max-width: 980px;
    margin: 0;
    font-size: clamp(42px, 6vw, 82px);
    line-height: .98;
    text-align: center;
    text-transform: uppercase;
    background: linear-gradient(135deg, #7df0c7 0%, #20e0c8 30%, #5aa7ff 58%, #ffcb50 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.moon-hero .hero-buttons {
    position: relative;
    z-index: 1;
}

.hero-orbit {
    position: relative;
    z-index: 1;
    height: 70px;
    width: min(360px, 80vw);
}

.hero-orbit img {
    position: absolute;
    width: 68px;
    height: 68px;
    object-fit: contain;
    image-rendering: auto;
    filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .62));
    animation: moonSpriteFloat 4s ease-in-out infinite alternate;
}

.hero-orbit img:nth-child(1) {
    left: 5%;
    top: 10px;
}

.hero-orbit img:nth-child(2) {
    left: 50%;
    top: -6px;
    translate: -50% 0;
    animation-delay: .4s;
}

.hero-orbit img:nth-child(3) {
    right: 5%;
    top: 12px;
    animation-delay: .8s;
}

.moon-section {
    margin: 0 auto 42px;
}

.section-heading {
    text-align: center;
    margin-bottom: 22px;
}

.section-heading span {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--moon-gold);
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.section-heading h2 {
    margin: 0;
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1;
    color: #fff;
}

.system-showcase {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.system-card {
    position: relative;
    overflow: hidden;
    min-height: 265px;
    padding: 24px;
    border-radius: 20px;
    background:
        linear-gradient(160deg, rgba(8, 20, 34, .88), rgba(3, 8, 15, .94)),
        radial-gradient(circle at 80% 0%, rgba(255, 203, 80, .14), transparent 32%);
    border: 1px solid rgba(32, 224, 200, .20);
    box-shadow: 0 22px 60px rgba(0, 0, 0, .36);
}

.system-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(32, 224, 200, .12), transparent 42%, rgba(255, 203, 80, .08));
    opacity: .62;
    pointer-events: none;
}

.system-card.featured {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 220px 1fr;
    align-items: center;
    min-height: 300px;
}

.system-art {
    position: relative;
    z-index: 1;
    min-height: 112px;
}

.system-art img {
    width: 96px;
    height: 96px;
    object-fit: contain;
    filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .58));
}

.system-card.featured .system-art img {
    width: 132px;
    height: 132px;
}

.system-card.featured .system-art img + img {
    margin-left: -38px;
    margin-top: 64px;
}

.system-kicker,
.system-card h3,
.system-card p {
    position: relative;
    z-index: 1;
}

.system-kicker {
    color: var(--moon-gold);
    font-family: 'Rajdhani', sans-serif;
    font-weight: 800;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.system-card h3 {
    margin: 8px 0 10px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 30px;
    line-height: 1;
    color: #fff;
}

.system-card p {
    margin: 0;
    color: #b8c7d8;
    line-height: 1.55;
}

.home-grid {
    margin-top: 24px;
}

@keyframes moonBackgroundDrift {
    0% {
        transform: scale(1.08) translate3d(-1.5%, -1.2%, 0);
        background-position: 42% 48%;
    }
    100% {
        transform: scale(1.16) translate3d(1.8%, 1.2%, 0);
        background-position: 58% 52%;
    }
}

@keyframes moonGlowFloat {
    from { opacity: .55; transform: scale(.92); }
    to { opacity: .86; transform: scale(1.08); }
}

@keyframes moonSpriteFloat {
    from { transform: translateY(0); }
    to { transform: translateY(-12px); }
}

@media (max-width: 1100px) {
    .system-showcase {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .moon-hero {
        min-height: 320px;
        padding: 54px 18px 42px;
    }

    .system-showcase {
        grid-template-columns: 1fr;
    }

    .system-card.featured {
        grid-column: auto;
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   MOON OFFICIAL LOGO + NEW BACKGROUND
   ============================================================ */

html::before {
    background-image: url('/img/moon-hero-bg.png') !important;
}

body {
    background:
        linear-gradient(rgba(4, 8, 18, 0.20), rgba(6, 10, 22, 0.34)),
        url('/img/moon-hero-bg.png') center center / cover no-repeat fixed !important;
}

.moon-hero {
    min-height: 420px;
    padding-top: 58px;
}

.hero-official-logo {
    position: relative;
    z-index: 2;
    display: block;
    width: min(420px, 72vw);
    height: auto;
    margin: 0 auto 4px;
    object-fit: contain;
    filter: drop-shadow(0 20px 34px rgba(0, 0, 0, .72));
    animation: moonLogoFloat 5s ease-in-out infinite alternate;
}

.hero-orbit {
    display: none;
}

@keyframes moonLogoFloat {
    from {
        transform: translateY(0) scale(1);
    }
    to {
        transform: translateY(-8px) scale(1.025);
    }
}

@media (max-width: 720px) {
    .moon-hero {
        min-height: 360px;
    }

    .hero-official-logo {
        width: min(330px, 86vw);
    }
}

@media (max-width: 900px) {
    .main-nav {
        background: rgba(8, 12, 24, 0.96);
        border-bottom: 1px solid rgba(0,245,255,0.24);
        box-shadow: 0 14px 40px rgba(0,0,0,0.45);
    }
}

@media (max-width: 768px) {
    .main-nav {
        background: rgba(8, 12, 24, 0.96);
        border-bottom: 1px solid rgba(0,245,255,0.24);
    }

    .hero h1 {
        font-size: 38px;
    }
}

/* ============================================================
   MOON FINAL FRONTEND PASS
   ============================================================ */

:root {
    --moon-ink: #050b12;
    --moon-panel: rgba(8, 17, 28, 0.88);
    --moon-panel-strong: rgba(10, 23, 38, 0.96);
    --moon-line: rgba(54, 219, 202, 0.22);
    --moon-line-strong: rgba(255, 203, 80, 0.42);
    --moon-teal: #20e0c8;
    --moon-mint: #7df0c7;
    --moon-gold: #ffcb50;
    --moon-coral: #ff6b6b;
    --gradient-moon: linear-gradient(135deg, #20e0c8 0%, #7df0c7 38%, #ffcb50 72%, #ff6b6b 100%);
    --gradient-card: linear-gradient(160deg, rgba(14, 29, 46, .92), rgba(5, 11, 18, .94));
    --gradient-border: linear-gradient(90deg, rgba(32, 224, 200, .86), rgba(255, 203, 80, .82), rgba(255, 107, 107, .72));
}

body {
    background:
        radial-gradient(circle at 16% 10%, rgba(32, 224, 200, .14), transparent 28%),
        radial-gradient(circle at 84% 0%, rgba(255, 203, 80, .12), transparent 26%),
        linear-gradient(180deg, #07111d 0%, #050b12 52%, #03070d 100%);
}

.stars {
    opacity: .34;
    filter: saturate(.65);
}

.main-header {
    background: rgba(5, 11, 18, .82);
    border-bottom: 1px solid rgba(32, 224, 200, .20);
    box-shadow: 0 16px 50px rgba(0, 0, 0, .34);
}

.logo-name,
.hero h1,
.page-header h1 {
    letter-spacing: .5px;
}

.logo-pokeball circle,
.logo-pokeball rect {
    stroke: rgba(255, 203, 80, .9);
}

.logo-sub {
    color: var(--moon-gold);
}

.main-nav a {
    background: rgba(9, 20, 33, .72);
    border: 1px solid rgba(32, 224, 200, .14);
    border-radius: 12px;
}

.main-nav a:hover,
.main-nav a.active {
    background: rgba(32, 224, 200, .10);
    border-color: rgba(255, 203, 80, .34);
    color: #fff;
}

.nav-sprite,
.page-header-sprite,
.page-header-icon,
.footer-sprite {
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .48));
}

.hero {
    background:
        linear-gradient(135deg, rgba(8, 17, 28, .84), rgba(10, 23, 38, .72)),
        radial-gradient(circle at 18% 18%, rgba(32, 224, 200, .18), transparent 28%),
        radial-gradient(circle at 82% 24%, rgba(255, 203, 80, .16), transparent 30%);
    border: 1px solid rgba(32, 224, 200, .22);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .36);
}

.hero p,
.page-header p {
    color: #b8c7d8;
}

.btn-primary {
    background: linear-gradient(135deg, #12bfae, #ffcb50);
    border-color: rgba(255, 203, 80, .42);
    color: #061018;
    text-shadow: none;
}

.btn-primary:hover {
    color: #061018;
    box-shadow: 0 0 28px rgba(255, 203, 80, .22);
}

.btn-secondary {
    background: rgba(8, 17, 28, .78);
    border-color: rgba(32, 224, 200, .28);
}

.card,
.stat-card,
.feature-card,
.pokemon-card,
.guild-card {
    background:
        linear-gradient(160deg, rgba(10, 23, 38, .94), rgba(5, 11, 18, .96));
    border: 1px solid rgba(32, 224, 200, .18);
    box-shadow: 0 20px 52px rgba(0, 0, 0, .34);
}

.card:hover,
.stat-card:hover,
.feature-card:hover,
.pokemon-card:hover,
.guild-card:hover {
    border-color: rgba(255, 203, 80, .34);
    box-shadow: 0 18px 48px rgba(0, 0, 0, .42), 0 0 24px rgba(32, 224, 200, .10);
}

.stat-card:nth-child(1) .stat-value,
.stat-card:nth-child(2) .stat-value,
.stat-card:nth-child(3) .stat-value,
.stat-card:nth-child(4) .stat-value {
    background: var(--gradient-moon);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

table th {
    color: var(--moon-mint);
    border-bottom-color: rgba(32, 224, 200, .24);
}

table tbody tr:hover {
    background: rgba(32, 224, 200, .055);
}

.rare-drops-card {
    min-height: 433px;
}

.rare-drops-card .card-header {
    align-items: center;
}

.activity-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 203, 80, .12);
    border: 1px solid rgba(255, 203, 80, .28);
    color: var(--moon-gold);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .9px;
}

.rare-drops-feed table tbody tr {
    background: linear-gradient(90deg, rgba(32, 224, 200, .055), transparent);
}

.rare-item-name span {
    color: var(--moon-gold);
    font-weight: 800;
}

.empty-activity {
    height: 190px;
    text-align: center;
    color: var(--text-muted);
}

.feature-icon {
    color: var(--moon-gold);
    text-shadow: 0 0 18px rgba(255, 203, 80, .18);
}

.download-card {
    border-color: rgba(32, 224, 200, .22);
}

.download-card h2 {
    color: #fff;
}

.download-card p {
    color: #b8c7d8;
}

.main-footer {
    background: linear-gradient(180deg, rgba(5, 11, 18, .92), #03070d);
    border-top-color: rgba(255, 203, 80, .22);
}

@keyframes moonPulse {
    0%, 100% { box-shadow: 0 0 0 rgba(32, 224, 200, 0); }
    50% { box-shadow: 0 0 26px rgba(32, 224, 200, .13), 0 0 24px rgba(255, 203, 80, .10); }
}

.card:hover,
.stat-card:hover,
.feature-card:hover,
.pokemon-card:hover,
.guild-card:hover,
.btn-primary:hover,
.tab.active {
    animation: moonPulse 2.4s ease-in-out infinite;
}


/* ============================================================
   MOON HERO LAST OVERRIDE
   ============================================================ */

html::after {
    background:
        linear-gradient(116deg, rgba(32, 224, 200, .26) 0 1px, transparent 1px 42px) left 132px / 240px 240px no-repeat,
        linear-gradient(63deg, rgba(255, 203, 80, .16) 0 1px, transparent 1px 54px) left 278px / 280px 280px no-repeat,
        radial-gradient(ellipse at 9% 27%, rgba(32, 224, 200, .32), transparent 31%),
        radial-gradient(ellipse at 19% 68%, rgba(125, 240, 199, .15), transparent 29%),
        radial-gradient(ellipse at 28% 18%, rgba(255, 203, 80, .12), transparent 24%),
        linear-gradient(90deg, rgba(3, 7, 13, .32) 0%, rgba(3, 7, 13, .12) 30%, rgba(3, 7, 13, .84) 68%, rgba(3, 7, 13, .94) 100%),
        linear-gradient(180deg, rgba(3, 7, 13, .58), rgba(3, 7, 13, .82) 48%, rgba(3, 7, 13, .94)) !important;
    animation: moonLeftEnergy 11s ease-in-out infinite alternate !important;
}

.moon-hero {
    min-height: 330px !important;
    gap: 12px !important;
    padding: 34px 28px 38px !important;
    margin-bottom: 24px !important;
}

.hero-official-logo {
    width: min(255px, 38vw) !important;
    max-height: 165px !important;
    margin-bottom: 0 !important;
    animation: moonLogoFloatSmall 5.5s ease-in-out infinite alternate !important;
}

.moon-hero h1 {
    font-size: clamp(32px, 4.25vw, 58px) !important;
    line-height: 1.02 !important;
    max-width: 870px !important;
}

.moon-hero .hero-buttons {
    margin-top: 4px !important;
}

@media (max-width: 720px) {
    .moon-hero {
        min-height: 300px !important;
        padding: 30px 16px 34px !important;
    }

    .hero-official-logo {
        width: min(210px, 62vw) !important;
        max-height: 136px !important;
    }

    .moon-hero h1 {
        font-size: clamp(28px, 10vw, 42px) !important;
    }
}

/* ============================================================
   MOON CENTERED HEADER NAV
   ============================================================ */

.main-header .container {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 16px !important;
    height: 108px !important;
    max-width: 100% !important;
    padding-left: 34px !important;
    padding-right: 34px !important;
}

.header-logo-center {
    justify-self: center !important;
    padding: 0 12px !important;
    min-width: 250px !important;
    justify-content: center !important;
}

.main-nav {
    margin-left: 0 !important;
    min-width: 0 !important;
    gap: 4px !important;
}

.main-nav-left {
    justify-content: flex-end !important;
}

.main-nav-right {
    justify-content: flex-start !important;
}

.main-nav a {
    min-width: 76px !important;
    padding: 5px 7px !important;
    border-radius: 10px !important;
    font-size: 13px !important;
}

.nav-sprite {
    width: 50px !important;
    height: 50px !important;
}

.nav-icon {
    width: 28px !important;
    height: 28px !important;
    display: block !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2.2 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
    margin-bottom: 4px !important;
    filter: drop-shadow(0 5px 8px rgba(35, 57, 84, .14)) !important;
}

.logo-pokeball {
    width: 42px !important;
    height: 42px !important;
}

.logo-official-image {
    width: 205px !important;
    max-height: 94px !important;
}

.logo-name {
    font-size: 28px !important;
}

.logo-sub {
    font-size: 11px !important;
    letter-spacing: 3px !important;
}

.lang-switcher {
    margin-left: 8px !important;
}

@media (max-width: 1250px) {
    .main-header .container {
        gap: 10px !important;
        padding-left: 18px !important;
        padding-right: 18px !important;
    }

    .header-logo-center {
        min-width: 230px !important;
        padding: 0 10px !important;
    }

    .main-nav a {
        min-width: 66px !important;
        font-size: 12px !important;
    }

    .nav-sprite {
        width: 44px !important;
        height: 44px !important;
    }

    .nav-icon {
        width: 26px !important;
        height: 26px !important;
    }

    .logo-official-image {
        width: 180px !important;
        max-height: 82px !important;
    }
}

@media (max-width: 900px) {
    .main-header .container {
        display: flex !important;
        justify-content: space-between !important;
        height: 86px !important;
    }

    .header-logo-center {
        min-width: 0 !important;
        justify-content: flex-start !important;
        padding: 0 !important;
    }

    .logo-official-image {
        width: 150px !important;
        max-height: 70px !important;
    }

    .main-nav-left,
    .main-nav-right {
        justify-content: flex-start !important;
    }
}

/* ============================================================
   MOON CLEAN LIGHT THEME TEST
   ============================================================ */

:root {
    --clean-cream: #fff7d8;
    --clean-cream-strong: #ffe889;
    --clean-paper: rgba(255, 255, 255, .88);
    --clean-paper-solid: #ffffff;
    --clean-ink: #192638;
    --clean-muted: #52657b;
    --clean-blue: #1e9edb;
    --clean-blue-soft: rgba(30, 158, 219, .28);
    --clean-yellow: #ffd84f;
    --clean-green: #28d0aa;
}

html::before {
    filter: saturate(.88) contrast(.96) brightness(1.13) !important;
    opacity: .72 !important;
}

html::after {
    background:
        linear-gradient(180deg, rgba(255, 250, 224, .86), rgba(244, 251, 255, .90) 42%, rgba(239, 247, 255, .94)) !important;
    animation: none !important;
}

body {
    background:
        radial-gradient(circle at 15% 18%, rgba(255, 216, 79, .30), transparent 26%),
        radial-gradient(circle at 86% 20%, rgba(30, 158, 219, .16), transparent 28%),
        linear-gradient(180deg, #fff9df 0%, #f2fbff 45%, #edf5fb 100%) !important;
    color: var(--clean-ink) !important;
}

.main-header {
    background: linear-gradient(180deg, rgba(255, 242, 151, .96), rgba(255, 250, 225, .92)) !important;
    border-bottom: 2px solid rgba(30, 158, 219, .42) !important;
    box-shadow: 0 14px 30px rgba(58, 77, 96, .12) !important;
}

.main-header::before {
    background: linear-gradient(90deg, #1e9edb, #ffd84f, #28d0aa) !important;
}

.logo-name {
    color: #172235 !important;
    text-shadow: none !important;
}

.logo-sub {
    color: #875f00 !important;
    text-shadow: none !important;
}

.main-nav a,
.lang-flag {
    background: rgba(255, 255, 255, .54) !important;
    border: 1px solid rgba(30, 158, 219, .28) !important;
    color: #33465f !important;
    box-shadow: 0 10px 20px rgba(36, 57, 84, .08) !important;
}

.main-nav a:hover,
.main-nav a.active,
.lang-flag:hover,
.lang-flag.active {
    background: rgba(255, 255, 255, .86) !important;
    border-color: rgba(30, 158, 219, .70) !important;
    color: #132237 !important;
    box-shadow: 0 12px 26px rgba(30, 158, 219, .18) !important;
}

.main-nav a.active::after {
    background: #1e9edb !important;
    box-shadow: 0 0 10px rgba(30, 158, 219, .46) !important;
}

.nav-sprite {
    filter: saturate(1.04) brightness(.95) drop-shadow(0 5px 8px rgba(35, 57, 84, .20)) !important;
}

.nav-icon {
    color: #1e789f !important;
}

.main-nav a:hover .nav-icon,
.main-nav a.active .nav-icon {
    color: #12608a !important;
    filter: drop-shadow(0 6px 10px rgba(30, 158, 219, .24)) !important;
}

.moon-hero,
.card,
.stat-card,
.feature-card,
.pokemon-card,
.guild-card,
.system-card,
.download-card,
.page-header,
.login-card,
.register-card {
    background:
        linear-gradient(160deg, rgba(255, 255, 255, .90), rgba(248, 253, 255, .82)) !important;
    border: 1px solid rgba(30, 158, 219, .32) !important;
    box-shadow: 0 18px 42px rgba(54, 80, 103, .13) !important;
    color: var(--clean-ink) !important;
}

.moon-hero::before,
.moon-hero::after,
.system-card::before,
.card::before,
.card::after,
.main-footer::before {
    opacity: .22 !important;
}

.moon-hero h1 {
    background: linear-gradient(135deg, #119f8d 0%, #1e9edb 54%, #d19a00 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.section-heading h2,
.system-card h3,
.card-header h2,
.card-header h3,
.page-header h1,
.download-card h2 {
    color: #152439 !important;
    text-shadow: none !important;
}

.section-heading span,
.system-kicker,
.activity-pill,
table th {
    color: #b98300 !important;
}

.system-card p,
.hero p,
.page-header p,
.download-card p,
.card p,
.main-footer p {
    color: var(--clean-muted) !important;
}

.btn-primary {
    background: rgba(255, 255, 255, .74) !important;
    border-color: rgba(30, 158, 219, .38) !important;
    color: #1c314a !important;
    box-shadow: 0 12px 24px rgba(30, 158, 219, .16) !important;
}

.btn-secondary {
    background: rgba(255, 255, 255, .74) !important;
    border-color: rgba(30, 158, 219, .38) !important;
    color: #1c314a !important;
}

table tbody tr:hover,
.rare-drops-feed table tbody tr {
    background: rgba(30, 158, 219, .08) !important;
}

.main-footer {
    background: linear-gradient(180deg, rgba(255, 249, 224, .90), rgba(235, 246, 252, .94)) !important;
    border-top: 1px solid rgba(30, 158, 219, .32) !important;
    color: var(--clean-ink) !important;
}

.music-toggle {
    background: rgba(255, 255, 255, .88) !important;
    border-color: rgba(30, 158, 219, .42) !important;
    box-shadow: 0 14px 28px rgba(36, 57, 84, .16) !important;
}

/* ============================================================
   MOON CLEAN CONTRAST FIX
   ============================================================ */

html::before {
    opacity: 1 !important;
    filter: saturate(.98) contrast(1.02) brightness(1.02) !important;
}

html::after {
    background:
        linear-gradient(90deg, rgba(255, 248, 214, .18), rgba(255, 255, 255, .08) 34%, rgba(255, 255, 255, .10) 100%),
        linear-gradient(180deg, rgba(255, 251, 232, .18), rgba(239, 248, 255, .12) 54%, rgba(230, 242, 252, .18)) !important;
}

body {
    background:
        radial-gradient(circle at 14% 20%, rgba(255, 216, 79, .12), transparent 28%),
        radial-gradient(circle at 88% 18%, rgba(30, 158, 219, .10), transparent 30%),
        linear-gradient(180deg, rgba(255, 248, 218, .34), rgba(238, 248, 255, .28)) !important;
}

.moon-hero,
.card,
.stat-card,
.feature-card,
.pokemon-card,
.guild-card,
.system-card,
.download-card,
.page-header,
.login-card,
.register-card {
    background:
        linear-gradient(160deg, rgba(255, 255, 255, .82), rgba(247, 252, 255, .74)) !important;
    color: #172235 !important;
}

.card-header,
.card-header h2,
.card-header h3,
.card h2,
.card h3,
.card h4,
.account-section h2,
.account-section h3,
.page-header h1,
.section-heading h2 {
    color: #172235 !important;
    text-shadow: none !important;
}

.card p,
.help-text,
small,
.form-help,
.text-muted,
table td,
.info-table td,
.admin-info-row,
.system-card p,
.download-card p,
.page-header p {
    color: #3e526b !important;
}

table th {
    color: #9b6900 !important;
    border-bottom: 1px solid rgba(30, 158, 219, .28) !important;
}

table td {
    border-bottom: 1px solid rgba(30, 158, 219, .14) !important;
}

.player-name,
.player-name a,
.guild-name,
.guild-name a,
.character-name,
.character-name a {
    color: #172235 !important;
    font-weight: 800 !important;
    text-shadow: none !important;
}

.player-name a:hover,
.guild-name a:hover,
.character-name a:hover {
    color: #0b85bd !important;
}

.rank-number {
    color: #5f738b !important;
}

.rank-number.gold,
.rank-number.silver,
.rank-number.bronze {
    text-shadow: none !important;
}

.rank-number.gold { color: #c48a00 !important; }
.rank-number.silver { color: #64748b !important; }
.rank-number.bronze { color: #b56a1d !important; }

.level-badge {
    background: rgba(40, 208, 170, .16) !important;
    color: #078f84 !important;
    border: 1px solid rgba(40, 208, 170, .34) !important;
}

.info-table tr td:first-child,
.form-group label,
label,
.stat-label,
.referral-stat-label,
.admin-info-label {
    color: #48617c !important;
    font-weight: 700 !important;
}

.info-table tr td:last-child,
.info-table strong,
.info-value,
.account-value {
    color: #009e93 !important;
    font-weight: 800 !important;
}

.form-control,
.search-bar input,
select.form-control,
textarea.form-control,
input[type='text'],
input[type='password'],
input[type='email'],
input[type='number'],
select,
textarea {
    background: #253044 !important;
    border: 1px solid rgba(30, 158, 219, .28) !important;
    color: #f6fbff !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04) !important;
}

.form-control::placeholder,
.search-bar input::placeholder,
textarea::placeholder,
input::placeholder {
    color: #aebbd0 !important;
}

.form-control:focus,
.search-bar input:focus,
select.form-control:focus,
textarea.form-control:focus,
input:focus,
select:focus,
textarea:focus {
    border-color: rgba(30, 158, 219, .70) !important;
    box-shadow: 0 0 0 3px rgba(30, 158, 219, .16) !important;
}

table tbody tr:hover,
.rare-drops-feed table tbody tr:hover {
    background: rgba(255, 216, 79, .16) !important;
}

.music-toggle {
    background: linear-gradient(180deg, #ff4b3f 0 45%, #26344a 45% 55%, #ffd84f 55% 100%) !important;
    border: 3px solid #1e9edb !important;
    box-shadow: 0 12px 28px rgba(30, 158, 219, .26), 0 0 0 4px rgba(255, 255, 255, .62) !important;
}

.music-toggle::after {
    background: #ffffff !important;
    border: 3px solid #26344a !important;
    box-shadow: 0 0 0 2px rgba(255, 216, 79, .70) !important;
}

.music-toggle .music-icon {
    background: #26344a !important;
    color: #ffd84f !important;
    border: 1px solid rgba(30, 158, 219, .48) !important;
}

.music-toggle:hover {
    box-shadow: 0 16px 34px rgba(30, 158, 219, .34), 0 0 0 4px rgba(255, 216, 79, .54) !important;
}

/* ============================================================
   MOON HOME DASHBOARD LAYOUT
   ============================================================ */

.home-dashboard {
    display: grid;
    grid-template-columns: minmax(620px, 1.7fr) minmax(390px, .85fr);
    gap: 22px;
    align-items: start;
    margin: 12px auto 28px;
}

.home-main-column,
.home-side-column {
    min-width: 0;
}

.home-side-column {
    display: grid;
    gap: 18px;
    position: sticky;
    top: 122px;
}

.home-dashboard .moon-hero {
    min-height: 240px !important;
    padding: 26px 24px 28px !important;
    margin-bottom: 16px !important;
}

.home-dashboard .hero-official-logo {
    width: min(330px, 44vw) !important;
    max-height: 190px !important;
}

.home-dashboard .moon-hero h1 {
    font-size: clamp(30px, 3.4vw, 52px) !important;
    max-width: 760px !important;
}

.home-dashboard .section-heading {
    margin-bottom: 14px !important;
}

.home-dashboard .section-heading h2 {
    font-size: clamp(28px, 2.8vw, 42px) !important;
}

.home-dashboard .system-showcase {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 14px !important;
}

.home-dashboard .system-card {
    min-height: 184px !important;
    padding: 18px !important;
    border-radius: 16px !important;
}

.home-dashboard .system-card.featured {
    grid-column: span 2 !important;
    grid-template-columns: 155px 1fr !important;
    min-height: 184px !important;
}

.home-dashboard .system-art {
    min-height: 70px !important;
}

.home-dashboard .system-art img {
    width: 68px !important;
    height: 68px !important;
}

.home-dashboard .system-card.featured .system-art img {
    width: 82px !important;
    height: 82px !important;
}

.home-dashboard .system-card.featured .system-art img + img {
    margin-left: -28px !important;
    margin-top: 50px !important;
}

.home-dashboard .system-card h3 {
    font-size: 24px !important;
    margin: 6px 0 8px !important;
}

.home-dashboard .system-card p {
    font-size: 15px !important;
    line-height: 1.35 !important;
}

.home-side-column .card {
    min-height: 0 !important;
    padding: 22px 24px !important;
    border-radius: 16px !important;
}

.home-side-column .card-header {
    margin-bottom: 14px !important;
    padding-bottom: 12px !important;
}

.home-side-column .card-header h3 {
    font-size: 24px !important;
}

.home-side-column table th,
.home-side-column table td {
    padding: 9px 10px !important;
    font-size: 13px !important;
}

.home-side-column .rare-drops-card {
    min-height: 260px !important;
}

.home-side-column .empty-activity {
    height: 112px !important;
}

.home-grid {
    display: contents !important;
}

@media (max-width: 1180px) {
    .home-dashboard {
        grid-template-columns: 1fr;
    }

    .home-side-column {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .home-side-column {
        grid-template-columns: 1fr;
    }

    .home-dashboard .system-showcase {
        grid-template-columns: 1fr !important;
    }

    .home-dashboard .system-card.featured {
        grid-column: auto !important;
        grid-template-columns: 1fr !important;
    }
}

/* ============================================================
   MOON HOME DASHBOARD FIXED ALIGNMENT
   ============================================================ */

.home-dashboard {
    grid-template-columns: minmax(0, 1fr) minmax(330px, .34fr) !important;
    grid-template-areas:
        "hero hero"
        "heading heading"
        "systems side";
    gap: 18px !important;
    margin-top: 10px !important;
}

.home-main-column {
    display: contents;
}

.home-main-column .moon-hero {
    grid-area: hero;
}

.home-main-column .moon-section {
    display: contents;
    margin-bottom: 0 !important;
}

.home-dashboard .section-heading {
    grid-area: heading;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center !important;
    margin-bottom: 0 !important;
}

.home-dashboard .section-heading h2 {
    width: min(100%, 760px);
    margin-inline: auto !important;
}

.home-side-column {
    grid-area: side;
    position: static !important;
    top: auto !important;
    align-self: start !important;
    gap: 16px !important;
    margin-top: 0 !important;
}

.home-dashboard .system-showcase {
    grid-area: systems;
}

.home-side-column .card {
    padding: 20px 22px !important;
}

.home-dashboard .moon-hero {
    min-height: 330px !important;
    padding: 38px 30px 40px !important;
    margin-bottom: 16px !important;
}

.home-dashboard .hero-official-logo {
    width: min(330px, 44vw) !important;
    max-height: 190px !important;
}

.home-dashboard .moon-hero h1 {
    font-size: clamp(36px, 4.2vw, 64px) !important;
    max-width: 980px !important;
}

/* Real PNG navigation icons */
img.nav-icon {
    width: 42px !important;
    height: 42px !important;
    display: block !important;
    object-fit: contain !important;
    margin-bottom: 1px !important;
    image-rendering: auto !important;
    filter: drop-shadow(0 6px 8px rgba(7, 21, 58, .28)) !important;
    transition: transform .18s ease, filter .18s ease !important;
}

.main-nav a:hover img.nav-icon,
.main-nav a.active img.nav-icon {
    transform: translateY(-2px) scale(1.08) !important;
    filter: drop-shadow(0 9px 12px rgba(0, 125, 220, .32)) drop-shadow(0 0 10px rgba(255, 220, 48, .22)) !important;
}

img.page-header-icon {
    width: 86px !important;
    height: 86px !important;
    display: block !important;
    object-fit: contain !important;
    image-rendering: auto !important;
    filter: drop-shadow(0 12px 18px rgba(7, 21, 58, .30)) !important;
    flex-shrink: 0 !important;
}

.home-dashboard .system-showcase {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, .95fr) minmax(0, .95fr) !important;
}

.home-dashboard .system-card.featured {
    grid-column: span 1 !important;
    grid-template-columns: 128px 1fr !important;
}

.home-dashboard .system-card {
    min-height: 188px !important;
}

.home-side-column .card:first-child {
    min-height: 198px !important;
}

.home-side-column .rare-drops-card {
    min-height: 278px !important;
}

@media (max-width: 1280px) {
    .home-dashboard {
        grid-template-columns: minmax(0, 1fr) minmax(320px, .42fr) !important;
    }
}

@media (max-width: 1180px) {
    .home-dashboard {
        grid-template-columns: 1fr !important;
        grid-template-areas:
            "hero"
            "heading"
            "side"
            "systems";
    }

    .home-side-column {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        margin-top: 0 !important;
    }
}

@media (max-width: 760px) {
    .home-side-column {
        grid-template-columns: 1fr !important;
    }

    .home-dashboard .system-showcase {
        grid-template-columns: 1fr !important;
    }

    .home-dashboard .system-card.featured {
        grid-column: auto !important;
        grid-template-columns: 1fr !important;
    }
}

/* ============================================================
   MOON VIVID THEME + RANKING HEADER FIX
   ============================================================ */

:root {
    --clean-cream: #dff5ff;
    --clean-cream-strong: #00aaff;
    --clean-blue: #ffdb1f;
    --clean-blue-soft: rgba(255, 219, 31, .42);
    --clean-yellow: #00aaff;
    --moon-gold: #00aaff;
    --poke-gold: #00aaff;
    --poke-gold-dark: #0077d9;
    --gradient-border: linear-gradient(90deg, #ffdb1f, #ffe970, #00aaff, #00e5ff);
}

html,
body {
    margin: 0 !important;
    padding-top: 0 !important;
}

.main-header {
    position: sticky !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    margin-top: 0 !important;
    transform: translateY(0) !important;
    background:
        linear-gradient(180deg, rgba(0, 170, 255, .96), rgba(210, 244, 255, .92)) !important;
    border-top: 2px solid #ffdb1f !important;
    border-bottom: 2px solid #ffdb1f !important;
    box-shadow:
        0 0 0 1px rgba(0, 170, 255, .55),
        0 14px 34px rgba(0, 118, 220, .30) !important;
}

.main-header::before {
    height: 4px !important;
    background: var(--gradient-border) !important;
    box-shadow: 0 0 18px rgba(255, 219, 31, .70), 0 0 18px rgba(0, 170, 255, .55) !important;
}

.main-header .container {
    margin-top: 0 !important;
}

.main-nav a,
.lang-flag,
.btn-primary,
.btn-secondary {
    border: 2px solid rgba(255, 219, 31, .68) !important;
    background: rgba(255, 255, 255, .78) !important;
    color: #10253b !important;
    box-shadow: 0 10px 22px rgba(0, 119, 204, .18) !important;
}

.main-nav a:hover,
.main-nav a.active,
.lang-flag:hover,
.lang-flag.active,
.btn-primary:hover,
.btn-secondary:hover {
    border-color: #ffdb1f !important;
    background: #ffffff !important;
    color: #061a2e !important;
    box-shadow:
        0 0 0 2px rgba(0, 170, 255, .50),
        0 12px 28px rgba(255, 219, 31, .30) !important;
}

.main-nav a.active::after {
    background: #ffdb1f !important;
    box-shadow: 0 0 12px rgba(255, 219, 31, .78), 0 0 10px rgba(0, 170, 255, .55) !important;
}

.nav-icon,
.page-header-icon {
    color: #ffdb1f !important;
}

.logo-pokeball {
    box-shadow: 0 0 0 4px rgba(0, 170, 255, .48) !important;
    border-radius: 50% !important;
}

.logo-sub,
.section-heading span,
.system-kicker,
.activity-pill,
table th {
    color: #006bc4 !important;
}

.moon-hero h1 {
    background: linear-gradient(135deg, #ffdb1f 0%, #00aaff 46%, #006eff 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.moon-hero,
.card,
.stat-card,
.feature-card,
.pokemon-card,
.guild-card,
.system-card,
.download-card,
.page-header,
.login-card,
.register-card {
    border: 2px solid rgba(255, 219, 31, .62) !important;
    box-shadow:
        0 0 0 1px rgba(0, 170, 255, .34),
        0 18px 44px rgba(0, 113, 196, .22) !important;
}

.system-card:hover,
.card:hover,
.download-card:hover {
    border-color: #ffdb1f !important;
    box-shadow:
        0 0 0 2px rgba(0, 170, 255, .44),
        0 22px 52px rgba(255, 219, 31, .25) !important;
}

table th {
    border-bottom: 2px solid rgba(255, 219, 31, .58) !important;
}

table tbody tr:hover,
.rare-drops-feed table tbody tr:hover {
    background: rgba(0, 170, 255, .18) !important;
}

/* ============================================================
   MOON REFINED VIVID THEME
   ============================================================ */

:root {
    --clean-blue: #00a8ff;
    --clean-blue-soft: rgba(0, 168, 255, .34);
    --clean-yellow: #ffd21f;
    --moon-gold: #ffd21f;
    --poke-gold: #ffd21f;
    --poke-gold-dark: #c78c00;
    --gradient-border: linear-gradient(90deg, #00a8ff, #31e4ff, #ffd21f);
}

html,
body {
    margin: 0 !important;
    padding-top: 0 !important;
}

.main-header {
    position: sticky !important;
    top: 0 !important;
    width: 100% !important;
    margin-top: 0 !important;
    background:
        linear-gradient(180deg, rgba(245, 252, 255, .94), rgba(226, 246, 255, .88)) !important;
    border-top: 2px solid #00a8ff !important;
    border-bottom: 2px solid rgba(0, 168, 255, .72) !important;
    box-shadow:
        0 12px 32px rgba(0, 92, 160, .18),
        inset 0 -1px 0 rgba(255, 210, 31, .50) !important;
}

.main-header::before {
    height: 4px !important;
    background: linear-gradient(90deg, #00a8ff, #31e4ff, #ffd21f, #00a8ff) !important;
    box-shadow: 0 0 14px rgba(0, 168, 255, .56) !important;
}

.main-nav a,
.lang-flag,
.btn-primary,
.btn-secondary {
    background: rgba(255, 255, 255, .78) !important;
    border: 2px solid rgba(0, 168, 255, .46) !important;
    color: #14243a !important;
    box-shadow: 0 8px 20px rgba(0, 104, 180, .11) !important;
}

.main-nav a:hover,
.main-nav a.active,
.lang-flag:hover,
.lang-flag.active,
.btn-primary:hover,
.btn-secondary:hover {
    background: #ffffff !important;
    border-color: #00a8ff !important;
    color: #07192d !important;
    box-shadow:
        0 0 0 2px rgba(0, 168, 255, .18),
        0 12px 26px rgba(0, 126, 220, .20) !important;
}

.main-nav a.active::after {
    background: #ffd21f !important;
    box-shadow: 0 0 10px rgba(255, 210, 31, .82) !important;
}

.nav-icon,
.page-header-icon {
    color: #007bd3 !important;
}

.logo-name {
    color: #14243a !important;
}

.logo-sub,
.section-heading span,
.system-kicker,
.activity-pill,
table th {
    color: #b47800 !important;
}

.logo-pokeball {
    box-shadow: 0 0 0 3px rgba(0, 168, 255, .32) !important;
}

.moon-hero h1,
.page-header h1 {
    background: linear-gradient(135deg, #18e6c6 0%, #00a8ff 52%, #ffd21f 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.moon-hero,
.card,
.stat-card,
.feature-card,
.pokemon-card,
.guild-card,
.system-card,
.download-card,
.page-header,
.login-card,
.register-card {
    border: 2px solid rgba(0, 168, 255, .42) !important;
    box-shadow:
        0 0 0 1px rgba(255, 210, 31, .16),
        0 18px 42px rgba(0, 102, 178, .16) !important;
}

.system-card:hover,
.card:hover,
.download-card:hover {
    border-color: #00a8ff !important;
    box-shadow:
        0 0 0 2px rgba(0, 168, 255, .22),
        0 22px 48px rgba(0, 126, 220, .20) !important;
}

table th {
    border-bottom: 2px solid rgba(0, 168, 255, .42) !important;
}

table tbody tr:hover,
.rare-drops-feed table tbody tr:hover {
    background: rgba(0, 168, 255, .10) !important;
}

/* ============================================================
   MOON FOOTER VIVID
   ============================================================ */

.main-footer {
    margin-top: 28px !important;
    padding: 42px 0 22px !important;
    background:
        linear-gradient(135deg, rgba(0, 74, 128, .82), rgba(0, 168, 255, .56)),
        radial-gradient(circle at 12% 20%, rgba(255, 210, 31, .28), transparent 28%),
        radial-gradient(circle at 82% 24%, rgba(49, 228, 255, .30), transparent 30%) !important;
    border-top: 3px solid #00a8ff !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 210, 31, .62),
        0 -16px 40px rgba(0, 92, 160, .22) !important;
}

.main-footer::before {
    opacity: .72 !important;
    background:
        linear-gradient(90deg, rgba(255, 210, 31, .14), transparent 26%, rgba(49, 228, 255, .18)),
        radial-gradient(circle at 8% 78%, rgba(255, 210, 31, .20), transparent 22%),
        radial-gradient(circle at 92% 20%, rgba(255, 255, 255, .18), transparent 24%) !important;
}

.footer-grid {
    gap: 54px !important;
}

.footer-col h4 {
    color: #ffd21f !important;
    font-size: 19px !important;
    letter-spacing: .4px !important;
    text-shadow: 0 2px 12px rgba(0, 52, 95, .34) !important;
}

.footer-col p,
.footer-bottom p {
    color: #e8f7ff !important;
    text-shadow: 0 1px 10px rgba(0, 40, 74, .35) !important;
}

.footer-col a {
    width: fit-content;
    color: #d8f3ff !important;
    border-bottom: 1px solid rgba(255, 210, 31, .0) !important;
    text-shadow: 0 1px 10px rgba(0, 40, 74, .28) !important;
}

.footer-col a:hover {
    color: #ffd21f !important;
    padding-left: 8px !important;
    border-bottom-color: rgba(255, 210, 31, .85) !important;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 210, 31, .42) !important;
}

.footer-sprite {
    filter: drop-shadow(0 0 10px rgba(255, 210, 31, .65)) drop-shadow(0 8px 12px rgba(0, 64, 112, .28)) !important;
}

/* ============================================================
   MOON MUSIC BUTTON
   ============================================================ */

.music-toggle {
    background:
        radial-gradient(circle at 35% 28%, rgba(255, 255, 255, .95), rgba(255, 255, 255, .50) 34%, transparent 35%),
        linear-gradient(145deg, rgba(0, 168, 255, .92), rgba(0, 102, 196, .94)) !important;
    border: 3px solid rgba(255, 210, 31, .86) !important;
    box-shadow:
        0 12px 28px rgba(0, 92, 160, .30),
        0 0 0 4px rgba(255, 255, 255, .44),
        inset 0 1px 0 rgba(255, 255, 255, .65) !important;
}

.music-toggle::after {
    width: 15px !important;
    height: 15px !important;
    background: #ffffff !important;
    border: 3px solid #007bd3 !important;
    box-shadow: 0 0 0 2px rgba(255, 210, 31, .62) !important;
}

.music-toggle .music-icon {
    background: #102b46 !important;
    color: #ffd21f !important;
    border: 2px solid #00a8ff !important;
    box-shadow: 0 6px 14px rgba(0, 42, 74, .26) !important;
}

.music-toggle:hover {
    box-shadow:
        0 16px 34px rgba(0, 126, 220, .34),
        0 0 0 4px rgba(255, 210, 31, .34),
        inset 0 1px 0 rgba(255, 255, 255, .72) !important;
}

.music-toggle.playing::after {
    background: #ffd21f !important;
    border-color: #007bd3 !important;
    box-shadow: 0 0 14px rgba(255, 210, 31, .74) !important;
}

/* ============================================================
   MOON FOOTER MATCH HEADER
   ============================================================ */

.main-footer {
    background:
        linear-gradient(180deg, rgba(245, 252, 255, .92), rgba(226, 246, 255, .88)) !important;
    border-top: 3px solid #00a8ff !important;
    color: #14243a !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 210, 31, .50),
        0 -12px 32px rgba(0, 92, 160, .16) !important;
}

.main-footer::before {
    opacity: .50 !important;
    background:
        linear-gradient(90deg, rgba(0, 168, 255, .14), rgba(255, 255, 255, .12) 36%, rgba(255, 210, 31, .14)),
        radial-gradient(circle at 12% 22%, rgba(0, 168, 255, .20), transparent 28%),
        radial-gradient(circle at 84% 20%, rgba(255, 210, 31, .16), transparent 26%) !important;
}

.footer-col h4 {
    color: #007bd3 !important;
    text-shadow: none !important;
}

.footer-col p,
.footer-bottom p {
    color: #3d5874 !important;
    text-shadow: none !important;
}

.footer-col a {
    color: #22506f !important;
    text-shadow: none !important;
}

.footer-col a:hover {
    color: #007bd3 !important;
    border-bottom-color: rgba(255, 210, 31, .90) !important;
}

.footer-bottom {
    border-top: 1px solid rgba(0, 168, 255, .34) !important;
}

/* ============================================================
   HOME CLAN SHOWCASE
   ============================================================ */

.clan-showcase-section {
    margin: 6px auto 34px;
    padding: 28px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(30, 158, 219, .34);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(234, 247, 255, .92), rgba(255, 249, 224, .82)),
        url('../img/moon-hero-bg-v2.png') center/cover;
    box-shadow: 0 18px 50px rgba(19, 76, 120, .14);
}

.clan-showcase-section::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(30, 158, 219, .12), transparent 28%, transparent 72%, rgba(255, 216, 79, .18)),
        repeating-linear-gradient(90deg, rgba(255,255,255,.18) 0 1px, transparent 1px 92px);
    opacity: .74;
}

.clan-heading {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 20px !important;
    text-align: center !important;
    align-items: center !important;
}

.clan-heading p {
    margin: 8px 0 0;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
    color: #3e526b;
    font-size: 16px;
    line-height: 1.55;
}

.clan-showcase-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.clan-card {
    position: relative;
    min-height: 340px;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid color-mix(in srgb, var(--clan-accent) 62%, rgba(255,255,255,.34));
    background-position: center;
    background-size: cover;
    box-shadow: 0 14px 32px rgba(8, 20, 38, .20);
    isolation: isolate;
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.clan-card::before {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 56%;
    background: linear-gradient(180deg, transparent, rgba(5, 10, 20, .92));
    z-index: -1;
}

.clan-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 0 38%, rgba(255,255,255,.18) 46%, transparent 54% 100%);
    transform: translateX(-120%);
    transition: transform .55s ease;
    pointer-events: none;
}

.clan-card:hover {
    transform: translateY(-8px);
    border-color: var(--clan-accent);
    box-shadow: 0 22px 48px color-mix(in srgb, var(--clan-accent) 25%, rgba(8, 20, 38, .28));
}

.clan-card:hover::after {
    transform: translateX(120%);
}

.clan-card-glow {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--clan-accent) 18%, transparent), transparent 36%),
        linear-gradient(90deg, rgba(0,0,0,.28), transparent 52%);
    opacity: .72;
    pointer-events: none;
}

.clan-card-head {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.clan-card-head span,
.clan-card-head strong {
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--clan-accent) 58%, rgba(255,255,255,.34));
    background: rgba(6, 12, 24, .72);
    color: #fff;
    padding: 6px 10px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.clan-card-head strong {
    color: var(--clan-accent);
}

.clan-outfit {
    position: absolute;
    z-index: 2;
    top: 56px;
    right: 18px;
    width: 126px;
    height: 126px;
    object-fit: contain;
    image-rendering: pixelated;
    filter: drop-shadow(0 18px 18px rgba(0, 0, 0, .52));
    transform: scale(1.12);
    transition: transform .28s ease, filter .28s ease;
}

.clan-card:hover .clan-outfit {
    transform: scale(1.24) translateY(-6px);
    filter: drop-shadow(0 18px 22px color-mix(in srgb, var(--clan-accent) 58%, rgba(0,0,0,.48)));
}

.clan-card-body {
    position: absolute;
    z-index: 2;
    left: 18px;
    right: 18px;
    bottom: 18px;
}

.clan-card-body h3 {
    margin: 0 0 8px;
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 34px;
    line-height: 1;
    text-shadow: 0 3px 12px rgba(0,0,0,.56);
}

.clan-card-body p {
    margin: 0 0 12px;
    max-width: 340px;
    color: rgba(238, 247, 255, .88) !important;
    font-size: 14px;
    line-height: 1.42;
}

.clan-type-list,
.clan-benefit-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.clan-type-list {
    margin-bottom: 10px;
}

.clan-type-list span,
.clan-benefit-list span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.12);
    color: #fff;
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.clan-type-list span {
    border-color: color-mix(in srgb, var(--clan-accent) 70%, rgba(255,255,255,.2));
    background: color-mix(in srgb, var(--clan-accent) 22%, rgba(6, 12, 24, .58));
}

.clan-benefit-list span {
    color: rgba(239, 247, 255, .88);
    font-weight: 700;
}

@media (max-width: 1180px) {
    .clan-showcase-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .clan-showcase-section {
        padding: 18px;
        border-radius: 14px;
    }

    .clan-showcase-grid {
        grid-template-columns: 1fr;
    }

    .clan-card {
        min-height: 320px;
    }

    .clan-outfit {
        width: 108px;
        height: 108px;
    }
}

/* ============================================================
   HOME SYSTEMS GALLERY
   ============================================================ */

.home-dashboard .systems-heading {
    max-width: 860px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.systems-heading p {
    margin: 8px auto 0;
    max-width: 760px;
    color: #3e526b;
    font-size: 16px;
    line-height: 1.55;
}

.home-dashboard .moon-system-gallery {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
}

.moon-system-card,
.home-dashboard .moon-system-card {
    position: relative !important;
    min-height: 286px !important;
    padding: 0 !important;
    overflow: hidden !important;
    border-radius: 18px !important;
    border: 1px solid color-mix(in srgb, var(--system-accent) 54%, rgba(255,255,255,.42)) !important;
    background-position: center !important;
    background-size: cover !important;
    box-shadow: 0 16px 34px rgba(13, 55, 92, .18) !important;
    isolation: isolate;
    cursor: default;
    transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease, filter .28s ease !important;
}

.moon-system-card:nth-child(1),
.moon-system-card:nth-child(2),
.moon-system-card:nth-child(3) {
    min-height: 326px !important;
}

.moon-system-card::before {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: -1 !important;
    opacity: 1 !important;
    background:
        linear-gradient(180deg, rgba(255,255,255,.05), transparent 34%),
        linear-gradient(180deg, transparent 18%, rgba(4, 9, 18, .94) 100%) !important;
}

.moon-system-card::after {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    pointer-events: none;
    background: linear-gradient(115deg, transparent 0 40%, rgba(255,255,255,.20) 48%, transparent 56% 100%) !important;
    transform: translateX(-120%);
    transition: transform .55s ease;
}

.moon-system-card:hover {
    transform: translateY(-7px) !important;
    border-color: var(--system-accent) !important;
    box-shadow: 0 24px 52px color-mix(in srgb, var(--system-accent) 24%, rgba(13,55,92,.26)) !important;
}

.moon-system-card:hover::after {
    transform: translateX(120%);
}

.system-card-shine {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, color-mix(in srgb, var(--system-accent) 18%, transparent), transparent 38%),
        linear-gradient(180deg, rgba(0,0,0,.12), transparent 45%, rgba(0,0,0,.55));
}

.system-card-head {
    position: absolute;
    z-index: 2;
    top: 14px;
    left: 14px;
    right: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.system-card-head span,
.system-card-head strong {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--system-accent) 58%, rgba(255,255,255,.32));
    background: rgba(5, 10, 20, .72);
    color: #fff;
    padding: 6px 10px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}

.system-card-head strong {
    color: var(--system-accent);
}

.system-card-body {
    position: absolute;
    z-index: 2;
    left: 18px;
    right: 18px;
    bottom: 62px;
}

.system-card-body h3,
.home-dashboard .system-card-body h3 {
    margin: 0 0 8px !important;
    color: #fff !important;
    font-family: 'Rajdhani', sans-serif;
    font-size: 32px !important;
    line-height: 1 !important;
    text-shadow: 0 4px 15px rgba(0,0,0,.62) !important;
}

.system-card-body p,
.home-dashboard .system-card-body p {
    margin: 0 0 12px !important;
    max-width: 460px;
    color: rgba(238,247,255,.91) !important;
    font-size: 14px !important;
    line-height: 1.42 !important;
}

.system-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.system-tag-list span {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--system-accent) 58%, rgba(255,255,255,.18));
    background: color-mix(in srgb, var(--system-accent) 20%, rgba(6, 12, 24, .62));
    color: #fff;
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.system-gallery-trigger {
    position: absolute;
    z-index: 3;
    left: 18px;
    bottom: 18px;
    border: 1px solid color-mix(in srgb, var(--system-accent) 72%, rgba(255,255,255,.30));
    border-radius: 999px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--system-accent) 72%, #0d1725), rgba(5, 10, 20, .86));
    color: #fff;
    min-height: 34px;
    padding: 7px 14px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .6px;
    text-transform: uppercase;
    box-shadow: 0 10px 22px rgba(0,0,0,.28);
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}

.system-gallery-trigger:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px color-mix(in srgb, var(--system-accent) 28%, rgba(0,0,0,.28));
}

.system-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.system-lightbox.is-open {
    display: flex;
}

.system-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 9, 18, .76);
    backdrop-filter: blur(10px);
}

.system-lightbox-panel {
    position: relative;
    z-index: 1;
    width: min(1100px, 96vw);
    max-height: min(860px, 92vh);
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid rgba(0, 168, 255, .42);
    background:
        linear-gradient(135deg, rgba(239, 250, 255, .96), rgba(255, 250, 230, .92)),
        url('../img/moon-hero-bg-v2.png') center/cover;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .46);
    padding: 22px;
}

.system-lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 4;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(0, 168, 255, .45);
    background: rgba(255,255,255,.72);
    color: #14243a;
    font-weight: 900;
    cursor: pointer;
}

.system-lightbox-copy {
    padding-right: 44px;
    margin-bottom: 16px;
}

.system-lightbox-copy span {
    color: #c47a00;
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.system-lightbox-copy h3 {
    margin: 4px 0 6px;
    color: #14243a;
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1;
}

.system-lightbox-copy p {
    margin: 0;
    max-width: 780px;
    color: #3e526b;
    line-height: 1.5;
}

.system-lightbox-stage {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 390px;
    max-height: 560px;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(0, 168, 255, .28);
    background: rgba(6, 12, 24, .92);
}

.system-lightbox-stage img {
    width: 100%;
    height: 100%;
    max-height: 560px;
    object-fit: contain;
    image-rendering: auto;
}

.system-lightbox-nav {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 50%;
    background: rgba(6, 12, 24, .72);
    color: #fff;
    font-size: 24px;
    font-weight: 900;
    cursor: pointer;
    transform: translateY(-50%);
}

.system-lightbox-nav.prev {
    left: 14px;
}

.system-lightbox-nav.next {
    right: 14px;
}

.system-lightbox-caption {
    margin: 12px 0;
    color: #26344a;
    font-weight: 800;
    text-align: center;
}

.system-lightbox-thumbs {
    overflow-x: auto;
    padding-bottom: 4px;
}

.system-gallery-data {
    display: none;
    gap: 8px;
}

.system-gallery-data.is-active {
    display: flex;
}

.system-thumb {
    flex: 0 0 92px;
    height: 62px;
    padding: 0;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 10px;
    background: rgba(6, 12, 24, .22);
    cursor: pointer;
    opacity: .72;
}

.system-thumb.is-active {
    border-color: #00a8ff;
    opacity: 1;
}

.system-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 1180px) {
    .home-dashboard .moon-system-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 760px) {
    .home-dashboard .moon-system-gallery {
        grid-template-columns: 1fr !important;
    }

    .moon-system-card,
    .home-dashboard .moon-system-card,
    .moon-system-card:nth-child(1),
    .moon-system-card:nth-child(2),
    .moon-system-card:nth-child(3) {
        min-height: 310px !important;
    }

    .system-lightbox {
        padding: 12px;
    }

    .system-lightbox-panel {
        padding: 16px;
        border-radius: 16px;
    }

    .system-lightbox-stage {
        min-height: 260px;
    }

    .system-lightbox-nav {
        width: 36px;
        height: 36px;
    }
}

/* ============================================================
   HOME SYSTEMS FINAL LAYOUT
   ============================================================ */

.main-header {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    z-index: 20 !important;
}

.home-dashboard {
    grid-template-columns: 1fr !important;
    grid-template-areas:
        "hero"
        "heading"
        "systems" !important;
    gap: 20px !important;
}

.home-side-column {
    display: none !important;
}

.home-main-column {
    display: contents !important;
}

.home-main-column .moon-section {
    display: contents !important;
}

.home-dashboard .systems-heading {
    width: min(100%, 980px) !important;
    max-width: 980px !important;
    padding: 26px 28px !important;
    border: 2px solid rgba(0, 168, 255, .34);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(246, 252, 255, .94), rgba(232, 247, 255, .88)),
        url('../img/moon-hero-bg-v2.png') center/cover;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.82),
        0 18px 42px rgba(0, 92, 160, .14);
    overflow: hidden;
}

.home-dashboard .moon-system-gallery {
    grid-area: systems;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 18px !important;
}

.moon-system-card,
.home-dashboard .moon-system-card,
.moon-system-card:nth-child(1),
.moon-system-card:nth-child(2),
.moon-system-card:nth-child(3) {
    min-height: 500px !important;
    padding: 16px !important;
    border-radius: 18px !important;
    border: 2px solid rgba(0, 168, 255, .36) !important;
    background:
        linear-gradient(145deg, rgba(246, 252, 255, .96), rgba(229, 246, 255, .88)) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .82),
        0 18px 38px rgba(0, 92, 160, .16) !important;
}

.moon-system-card::before {
    background:
        linear-gradient(90deg, color-mix(in srgb, var(--system-accent) 18%, transparent), transparent 48%),
        linear-gradient(180deg, rgba(255,255,255,.25), transparent) !important;
    opacity: 1 !important;
}

.moon-system-card::after {
    background: linear-gradient(115deg, transparent 0 42%, rgba(255,255,255,.62) 49%, transparent 57% 100%) !important;
}

.system-card-shine {
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--system-accent) 16%, transparent), transparent 36%),
        repeating-linear-gradient(90deg, rgba(255,255,255,.24) 0 1px, transparent 1px 72px);
    opacity: .72;
}

.system-card-head {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    margin-bottom: 12px;
}

.system-card-head span,
.system-card-head strong {
    background: rgba(255,255,255,.72);
    color: #14243a;
    border-color: color-mix(in srgb, var(--system-accent) 60%, rgba(0, 168, 255, .22));
    box-shadow: 0 8px 18px rgba(0, 92, 160, .10);
}

.system-card-head strong {
    color: color-mix(in srgb, var(--system-accent) 82%, #00324f);
}

.system-preview-stack {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.45fr .75fr;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 8px;
    height: 190px;
    margin-bottom: 16px;
}

.system-preview {
    position: relative;
    min-width: 0;
    min-height: 0;
    margin: 0;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid color-mix(in srgb, var(--system-accent) 46%, rgba(255,255,255,.55));
    background: rgba(6, 12, 24, .08);
    box-shadow: 0 12px 24px rgba(0, 42, 74, .16);
}

.system-preview.main {
    grid-row: span 2;
}

.system-preview img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.system-preview.main img {
    object-position: center;
}

.system-card-body {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    z-index: 2;
    padding-bottom: 76px;
}

.system-card-body h3,
.home-dashboard .system-card-body h3 {
    color: #172235 !important;
    font-size: 30px !important;
    text-shadow: none !important;
}

.system-card-body p,
.home-dashboard .system-card-body p {
    color: #3e526b !important;
    min-height: 82px;
    text-shadow: none !important;
}

.system-tag-list {
    align-content: flex-start;
    min-height: 66px;
    padding-right: 2px;
}

.system-tag-list span {
    color: #172235;
    background: color-mix(in srgb, var(--system-accent) 16%, rgba(255,255,255,.78));
    border-color: color-mix(in srgb, var(--system-accent) 52%, rgba(0, 168, 255, .24));
}

.system-gallery-trigger {
    left: 16px;
    right: 16px;
    bottom: 16px;
    width: calc(100% - 32px);
    border-radius: 12px;
    color: #122236;
    background:
        linear-gradient(135deg, rgba(255,255,255,.92), color-mix(in srgb, var(--system-accent) 24%, rgba(255,255,255,.82)));
    border-color: color-mix(in srgb, var(--system-accent) 66%, rgba(0, 168, 255, .32));
}

@media (max-width: 1180px) {
    .home-dashboard .moon-system-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 760px) {
    .home-dashboard .moon-system-gallery {
        grid-template-columns: 1fr !important;
    }

    .moon-system-card,
    .home-dashboard .moon-system-card,
    .moon-system-card:nth-child(1),
    .moon-system-card:nth-child(2),
    .moon-system-card:nth-child(3) {
        min-height: 500px !important;
    }

    .system-preview-stack {
        height: 180px;
    }

    .home-dashboard .systems-heading {
        padding: 20px 16px !important;
    }
}

/* ============================================================
   MOON GAME BACKGROUND
   ============================================================ */

html {
    background: #07121d !important;
}

body {
    background:
        linear-gradient(180deg, rgba(5, 11, 20, .90), rgba(8, 18, 29, .92)),
        linear-gradient(115deg, rgba(7, 85, 103, .32), transparent 36%, rgba(115, 93, 34, .18) 68%, transparent),
        #07121d !important;
    overflow-x: hidden;
}

.stars {
    position: fixed !important;
    inset: 0 !important;
    width: auto !important;
    height: auto !important;
    z-index: 0 !important;
    pointer-events: none !important;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(0, 225, 255, .09) 0 1px, transparent 1px 96px),
        linear-gradient(0deg, rgba(255, 210, 64, .06) 0 1px, transparent 1px 96px),
        radial-gradient(circle at 18% 22%, rgba(0, 234, 255, .20) 0 1px, transparent 2px),
        radial-gradient(circle at 78% 18%, rgba(255, 216, 70, .16) 0 1px, transparent 2px),
        radial-gradient(circle at 44% 76%, rgba(124, 242, 255, .14) 0 1px, transparent 2px);
    background-size: 96px 96px, 96px 96px, 180px 180px, 240px 240px, 320px 320px;
    opacity: .72;
    animation: moonGridDrift 28s linear infinite;
}

.stars::before {
    content: '';
    position: absolute;
    inset: -10%;
    background:
        repeating-linear-gradient(110deg, transparent 0 120px, rgba(0, 234, 255, .12) 121px 122px, transparent 123px 260px),
        repeating-linear-gradient(24deg, transparent 0 170px, rgba(255, 213, 72, .09) 171px 172px, transparent 173px 330px);
    opacity: .62;
    transform: translate3d(0, 0, 0);
    animation: moonCircuitSlide 38s ease-in-out infinite alternate;
}

.stars::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255,255,255,.035) 0 1px, transparent 1px 5px),
        linear-gradient(90deg, rgba(0, 0, 0, .40), transparent 22%, transparent 78%, rgba(0, 0, 0, .36)),
        linear-gradient(180deg, rgba(4, 10, 18, .26), transparent 42%, rgba(4, 10, 18, .48));
    background-size: auto, auto, auto;
    opacity: .82;
}

.page-wrapper,
.main-header,
.main-content,
.main-footer,
main,
header,
footer {
    position: relative;
    z-index: 1;
}

.moon-hero {
    background:
        linear-gradient(135deg, rgba(246, 252, 255, .92), rgba(230, 246, 255, .78)) !important;
    backdrop-filter: blur(8px);
    border-color: rgba(0, 201, 255, .44) !important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.86),
        0 18px 48px rgba(0, 22, 40, .32) !important;
}

.moon-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background:
        linear-gradient(90deg, rgba(0, 200, 255, .10), transparent 32%, rgba(255, 210, 48, .10)),
        repeating-linear-gradient(90deg, rgba(0, 168, 255, .12) 0 1px, transparent 1px 84px);
    opacity: .72;
}

.home-dashboard .systems-heading {
    background:
        linear-gradient(135deg, rgba(246, 252, 255, .94), rgba(231, 247, 255, .86)) !important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.86),
        0 16px 38px rgba(0, 22, 40, .25) !important;
}

@keyframes moonGridDrift {
    from {
        background-position: 0 0, 0 0, 0 0, 0 0, 0 0;
    }
    to {
        background-position: 96px 64px, -96px 96px, 180px 90px, -120px 160px, 160px -220px;
    }
}

@keyframes moonCircuitSlide {
    0% {
        transform: translate3d(-2%, -1%, 0) scale(1.02);
        opacity: .42;
    }
    100% {
        transform: translate3d(2%, 1%, 0) scale(1.05);
        opacity: .68;
    }
}

@media (prefers-reduced-motion: reduce) {
    .stars,
    .stars::before {
        animation: none !important;
    }
}

/* ============================================================
   FINAL REAL SERVER HOMEPAGE OVERRIDE
   ============================================================ */

body {
    background: #080506 !important;
    color: #f4f4f4 !important;
}

.stars {
    background:
        radial-gradient(circle at 22% 18%, rgba(156, 33, 18, .46), transparent 26%),
        radial-gradient(circle at 78% 42%, rgba(92, 0, 0, .42), transparent 30%),
        linear-gradient(90deg, rgba(0,0,0,.92), rgba(13, 3, 3, .62) 44%, rgba(0,0,0,.92)),
        url('../img/background.png') center center / cover no-repeat !important;
    filter: saturate(.86) contrast(1.12) brightness(.62) !important;
    opacity: 1 !important;
}

.stars::before {
    background:
        linear-gradient(90deg, rgba(0,0,0,.88), transparent 28%, transparent 68%, rgba(0,0,0,.88)),
        repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0, rgba(255,255,255,.035) 1px, transparent 1px, transparent 4px) !important;
    opacity: .78 !important;
}

.stars::after {
    background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.72)) !important;
}

.main-header {
    background: linear-gradient(180deg, rgba(12, 10, 11, .96), rgba(13, 9, 10, .82)) !important;
    border-bottom: 1px solid rgba(255, 38, 71, .45) !important;
    box-shadow: 0 18px 40px rgba(0,0,0,.42) !important;
}

.main-header::before {
    background: linear-gradient(90deg, transparent, #ff224b, #ffb02e, transparent) !important;
}

.main-header .container {
    height: 118px !important;
}

.main-nav a {
    background: transparent !important;
    border: 0 !important;
    color: #f6f6f6 !important;
    box-shadow: none !important;
    text-transform: uppercase !important;
    font-weight: 800 !important;
}

.main-nav a:hover,
.main-nav a.active {
    color: #ffcf36 !important;
    background: rgba(255, 255, 255, .05) !important;
}

.main-nav a.active::after {
    background: #ff244f !important;
    box-shadow: 0 0 12px rgba(255, 36, 79, .76) !important;
}

.main-content > .container,
.home-dashboard {
    max-width: 1180px !important;
}

.home-dashboard {
    display: block !important;
    margin: 48px auto 0 !important;
}

.server-showcase {
    width: 100% !important;
    margin: 0 auto 30px !important;
}

.server-showcase-frame {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 315px !important;
    min-height: 360px !important;
    background: #050505 !important;
    border: 1px solid rgba(255, 255, 255, .12) !important;
    box-shadow: 0 28px 70px rgba(0,0,0,.62), 0 0 0 1px rgba(255, 36, 79, .20) !important;
    overflow: hidden !important;
}

.server-showcase-media {
    position: relative !important;
    min-height: 360px !important;
    background: #0a0a0a !important;
}

.server-showcase-image {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    opacity: 0 !important;
    transform: scale(1.025) !important;
    transition: opacity .45s ease, transform 1.8s ease !important;
}

.server-showcase-image.is-active {
    opacity: 1 !important;
    transform: scale(1) !important;
}

.server-showcase-media::after {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    background:
        linear-gradient(90deg, rgba(0,0,0,.08), transparent 56%, rgba(0,0,0,.52)),
        linear-gradient(180deg, transparent 68%, rgba(0,0,0,.62)) !important;
    pointer-events: none !important;
}

.server-showcase-caption {
    position: absolute !important;
    left: 0 !important;
    bottom: 0 !important;
    z-index: 2 !important;
    padding: 8px 18px 7px !important;
    min-width: 270px !important;
    background: linear-gradient(90deg, rgba(0,0,0,.94), rgba(0,0,0,.58)) !important;
    color: #ffcf36 !important;
    font-family: 'Rajdhani', sans-serif !important;
    font-size: 26px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    text-shadow: 0 2px 0 #000 !important;
}

.server-showcase-copy {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    padding: 30px 28px !important;
    background:
        linear-gradient(135deg, rgba(7, 7, 7, .96), rgba(13, 15, 17, .90)),
        repeating-linear-gradient(45deg, rgba(255,255,255,.035) 0, rgba(255,255,255,.035) 1px, transparent 1px, transparent 7px) !important;
    border-left: 1px solid rgba(255,255,255,.10) !important;
}

.showcase-logo {
    width: 145px !important;
    max-height: 80px !important;
    object-fit: contain !important;
    margin-bottom: 22px !important;
    filter: drop-shadow(0 10px 18px rgba(0,0,0,.55)) !important;
}

.server-showcase-copy span {
    color: #ffcf36 !important;
    font-family: 'Rajdhani', sans-serif !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
}

.server-showcase-copy h1 {
    margin: 8px 0 18px !important;
    color: #fff !important;
    font-family: 'Rajdhani', sans-serif !important;
    font-size: 31px !important;
    line-height: 1.02 !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    text-shadow: 0 3px 0 rgba(0,0,0,.8) !important;
}

.server-showcase-copy p {
    margin: 0 0 24px !important;
    color: rgba(255,255,255,.86) !important;
    font-size: 15px !important;
    line-height: 1.55 !important;
}

.showcase-buttons {
    display: flex !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
}

.showcase-buttons a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 36px !important;
    padding: 0 18px !important;
    background: #fff !important;
    color: #0b0b0b !important;
    border-radius: 4px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
}

.showcase-buttons a:nth-child(2) {
    background: #ff244f !important;
    color: #fff !important;
}

.server-showcase-thumbs {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    height: 64px !important;
    background: #090909 !important;
    border: 1px solid rgba(255,255,255,.12) !important;
    border-top: 0 !important;
}

.server-showcase-thumbs button {
    position: relative !important;
    min-width: 0 !important;
    border: 0 !important;
    border-right: 1px solid rgba(255,255,255,.12) !important;
    padding: 0 !important;
    background: #111 !important;
    cursor: pointer !important;
    overflow: hidden !important;
}

.server-showcase-thumbs img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    opacity: .52 !important;
    filter: saturate(.8) contrast(1.05) !important;
    transition: opacity .18s ease, transform .18s ease, filter .18s ease !important;
}

.server-showcase-thumbs button.is-active::after {
    content: '' !important;
    position: absolute !important;
    inset: auto 0 0 0 !important;
    height: 4px !important;
    background: #ff244f !important;
    box-shadow: 0 0 16px rgba(255,36,79,.88) !important;
}

.server-showcase-thumbs button.is-active img,
.server-showcase-thumbs button:hover img {
    opacity: 1 !important;
    transform: scale(1.06) !important;
    filter: saturate(1.08) contrast(1.1) !important;
}

.showcase-actions {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 30px !important;
    margin: 30px 0 22px !important;
}

.showcase-action-card {
    display: grid !important;
    grid-template-columns: 78px 1fr !important;
    grid-template-rows: auto auto !important;
    align-items: center !important;
    min-height: 108px !important;
    padding: 20px 28px !important;
    background: rgba(25, 30, 36, .94) !important;
    border: 1px solid rgba(255,255,255,.10) !important;
    color: #fff !important;
    text-decoration: none !important;
    box-shadow: 0 18px 40px rgba(0,0,0,.36) !important;
}

.showcase-action-card img.nav-icon {
    grid-row: 1 / 3 !important;
    width: 64px !important;
    height: 64px !important;
    margin: 0 !important;
}

.showcase-action-card strong {
    font-family: 'Rajdhani', sans-serif !important;
    font-size: 23px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    line-height: 1 !important;
}

.showcase-action-card span {
    color: #ff244f !important;
    font-family: 'Rajdhani', sans-serif !important;
    font-size: 21px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    line-height: 1.05 !important;
}

.home-dashboard .systems-heading {
    background: rgba(7, 8, 10, .82) !important;
}

.moon-section,
.clan-showcase-section,
.page-header,
.card,
.system-card,
.clan-card {
    background: rgba(7, 8, 10, .82) !important;
    border-color: rgba(255,255,255,.10) !important;
    box-shadow: 0 22px 54px rgba(0,0,0,.42) !important;
}

@media (max-width: 980px) {
    .server-showcase-frame {
        grid-template-columns: 1fr !important;
    }

    .showcase-actions {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
}

/* ============================================================
   REAL SERVER HOMEPAGE PASS
   ============================================================ */

body {
    background: #080506 !important;
    color: #f4f4f4 !important;
}

.stars {
    background:
        radial-gradient(circle at 22% 18%, rgba(156, 33, 18, .46), transparent 26%),
        radial-gradient(circle at 78% 42%, rgba(92, 0, 0, .42), transparent 30%),
        linear-gradient(90deg, rgba(0,0,0,.92), rgba(13, 3, 3, .62) 44%, rgba(0,0,0,.92)),
        url('../img/background.png') center center / cover no-repeat !important;
    filter: saturate(.86) contrast(1.12) brightness(.62) !important;
    opacity: 1 !important;
}

.stars::before {
    background:
        linear-gradient(90deg, rgba(0,0,0,.88), transparent 28%, transparent 68%, rgba(0,0,0,.88)),
        repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0, rgba(255,255,255,.035) 1px, transparent 1px, transparent 4px) !important;
    opacity: .78 !important;
}

.stars::after {
    background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.72)) !important;
}

.main-header {
    background: linear-gradient(180deg, rgba(12, 10, 11, .96), rgba(13, 9, 10, .82)) !important;
    border-bottom: 1px solid rgba(255, 38, 71, .45) !important;
    box-shadow: 0 18px 40px rgba(0,0,0,.42) !important;
}

.main-header::before {
    background: linear-gradient(90deg, transparent, #ff224b, #ffb02e, transparent) !important;
    opacity: .78 !important;
}

.main-header .container {
    height: 118px !important;
}

.main-nav a {
    background: transparent !important;
    border: 0 !important;
    color: #f6f6f6 !important;
    box-shadow: none !important;
    text-transform: uppercase !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
}

.main-nav a:hover,
.main-nav a.active {
    color: #ffcf36 !important;
    background: rgba(255, 255, 255, .05) !important;
}

.main-nav a.active::after {
    background: #ff244f !important;
    box-shadow: 0 0 12px rgba(255, 36, 79, .76) !important;
}

.lang-flag {
    background: rgba(255,255,255,.06) !important;
    border-color: rgba(255,255,255,.16) !important;
    color: #fff !important;
}

.lang-flag.active {
    border-color: #ffcf36 !important;
    box-shadow: 0 0 18px rgba(255, 36, 79, .28) !important;
}

.main-content > .container {
    max-width: 1180px !important;
}

.home-dashboard {
    display: block !important;
    max-width: 1180px !important;
    margin: 48px auto 0 !important;
}

.home-main-column {
    width: 100% !important;
}

.server-showcase {
    width: 100% !important;
    margin: 0 auto 30px !important;
}

.server-showcase-frame {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 315px;
    min-height: 360px;
    background: #050505;
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 28px 70px rgba(0,0,0,.62), 0 0 0 1px rgba(255, 36, 79, .20);
    overflow: hidden;
}

.server-showcase-media {
    position: relative;
    min-height: 360px;
    background: #0a0a0a;
}

.server-showcase-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.025);
    transition: opacity .45s ease, transform 1.8s ease;
    image-rendering: auto;
}

.server-showcase-image.is-active {
    opacity: 1;
    transform: scale(1);
}

.server-showcase-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0,0,0,.08), transparent 56%, rgba(0,0,0,.52)),
        linear-gradient(180deg, transparent 68%, rgba(0,0,0,.62));
    pointer-events: none;
}

.server-showcase-caption {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 2;
    padding: 8px 18px 7px;
    min-width: 270px;
    background: linear-gradient(90deg, rgba(0,0,0,.94), rgba(0,0,0,.58));
    color: #ffcf36;
    font-family: 'Rajdhani', sans-serif;
    font-size: 26px;
    font-weight: 900;
    text-transform: uppercase;
    text-shadow: 0 2px 0 #000;
}

.server-showcase-copy {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px 28px;
    background:
        linear-gradient(135deg, rgba(7, 7, 7, .96), rgba(13, 15, 17, .90)),
        repeating-linear-gradient(45deg, rgba(255,255,255,.035) 0, rgba(255,255,255,.035) 1px, transparent 1px, transparent 7px);
    border-left: 1px solid rgba(255,255,255,.10);
}

.showcase-logo {
    width: 145px;
    max-height: 80px;
    object-fit: contain;
    margin-bottom: 22px;
    filter: drop-shadow(0 10px 18px rgba(0,0,0,.55));
}

.server-showcase-copy span {
    color: #ffcf36;
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}

.server-showcase-copy h1 {
    margin: 8px 0 18px;
    color: #fff !important;
    font-family: 'Rajdhani', sans-serif;
    font-size: 31px;
    line-height: 1.02;
    font-weight: 900;
    text-transform: uppercase;
    text-shadow: 0 3px 0 rgba(0,0,0,.8);
}

.server-showcase-copy p {
    margin: 0 0 24px;
    color: rgba(255,255,255,.86);
    font-size: 15px;
    line-height: 1.55;
}

.showcase-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.showcase-buttons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 18px;
    background: #fff;
    color: #0b0b0b;
    border-radius: 4px;
    font-weight: 900;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(0,0,0,.34);
}

.showcase-buttons a:nth-child(2) {
    background: #ff244f;
    color: #fff;
}

.server-showcase-thumbs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    height: 64px;
    background: #090909;
    border: 1px solid rgba(255,255,255,.12);
    border-top: 0;
}

.server-showcase-thumbs button {
    position: relative;
    min-width: 0;
    border: 0;
    border-right: 1px solid rgba(255,255,255,.12);
    padding: 0;
    background: #111;
    cursor: pointer;
    overflow: hidden;
}

.server-showcase-thumbs button:last-child {
    border-right: 0;
}

.server-showcase-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .52;
    filter: saturate(.8) contrast(1.05);
    transition: opacity .18s ease, transform .18s ease, filter .18s ease;
}

.server-showcase-thumbs button.is-active::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 4px;
    background: #ff244f;
    box-shadow: 0 0 16px rgba(255,36,79,.88);
}

.server-showcase-thumbs button.is-active img,
.server-showcase-thumbs button:hover img {
    opacity: 1;
    transform: scale(1.06);
    filter: saturate(1.08) contrast(1.1);
}

.showcase-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    margin: 30px 0 22px;
}

.showcase-action-card {
    display: grid;
    grid-template-columns: 78px 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    min-height: 108px;
    padding: 20px 28px;
    background: rgba(25, 30, 36, .94);
    border: 1px solid rgba(255,255,255,.10);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 18px 40px rgba(0,0,0,.36);
}

.showcase-action-card img.nav-icon {
    grid-row: 1 / 3;
    width: 64px !important;
    height: 64px !important;
    margin: 0 !important;
}

.showcase-action-card strong {
    font-family: 'Rajdhani', sans-serif;
    font-size: 23px;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1;
}

.showcase-action-card span {
    color: #ff244f;
    font-family: 'Rajdhani', sans-serif;
    font-size: 21px;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.05;
}

.moon-section,
.clan-showcase-section,
.page-header,
.card,
.system-card,
.clan-card {
    background: rgba(7, 8, 10, .82) !important;
    border-color: rgba(255,255,255,.10) !important;
    box-shadow: 0 22px 54px rgba(0,0,0,.42) !important;
}

.section-heading span,
.system-card-head span,
.clan-card-head span {
    color: #ffcf36 !important;
}

@media (max-width: 980px) {
    .server-showcase-frame {
        grid-template-columns: 1fr;
    }

    .server-showcase-copy {
        border-left: 0;
        border-top: 1px solid rgba(255,255,255,.10);
    }

    .showcase-actions {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

@media (max-width: 720px) {
    .home-dashboard {
        margin-top: 22px !important;
    }

    .server-showcase-media,
    .server-showcase-frame {
        min-height: 260px;
    }

    .server-showcase-thumbs {
        height: 48px;
    }

    .server-showcase-copy h1 {
        font-size: 26px;
    }
}

/* ============================================================
   MOON HERO TITLE
   ============================================================ */

.home-dashboard .moon-hero h1 {
    position: relative !important;
    isolation: isolate;
    display: inline-block;
    max-width: 980px !important;
    margin: 6px auto 10px !important;
    padding: 8px 18px 18px !important;
    font-weight: 900 !important;
    letter-spacing: 0 !important;
    text-transform: uppercase;
    background:
        linear-gradient(180deg, #ffffff 0%, #baf8ff 15%, #11e6ff 38%, #008aff 64%, #ffe16a 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    -webkit-text-stroke: 1px rgba(3, 38, 64, .42);
    filter:
        drop-shadow(0 3px 0 rgba(2, 32, 54, .70))
        drop-shadow(0 10px 18px rgba(0, 132, 255, .30))
        drop-shadow(0 0 18px rgba(33, 238, 255, .35));
}

.home-dashboard .moon-hero h1::before {
    content: '';
    position: absolute;
    inset: -14px -26px -8px;
    z-index: -1;
    border-radius: 20px;
    background:
        radial-gradient(ellipse at 50% 44%, rgba(0, 209, 255, .28), transparent 62%),
        linear-gradient(90deg, transparent, rgba(255, 218, 73, .18) 18%, rgba(0, 209, 255, .16) 50%, rgba(148, 236, 255, .14) 82%, transparent);
    opacity: .88;
}

.home-dashboard .moon-hero h1::after {
    content: '';
    position: absolute;
    left: 12%;
    right: 12%;
    bottom: 3px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, #ffe16a, #16e9ff, #008aff, transparent);
    box-shadow:
        0 0 16px rgba(22, 233, 255, .78),
        0 0 22px rgba(255, 225, 106, .42);
    opacity: .92;
}

@media (max-width: 760px) {
    .home-dashboard .moon-hero h1 {
        padding: 4px 8px 14px !important;
        -webkit-text-stroke: .6px rgba(3, 38, 64, .48);
    }

    .home-dashboard .moon-hero h1::before {
        inset: -8px -10px -4px;
        border-radius: 14px;
    }
}

/* ============================================================
   MOON HERO TITLE CLEAN
   ============================================================ */

.home-dashboard .moon-hero h1 {
    display: block !important;
    max-width: 900px !important;
    margin: 8px auto 14px !important;
    padding: 0 10px 16px !important;
    font-family: 'Rajdhani', sans-serif !important;
    font-weight: 900 !important;
    letter-spacing: 0 !important;
    line-height: .98 !important;
    text-transform: uppercase;
    background: linear-gradient(180deg, #0b4d7a 0%, #009bea 48%, #082f58 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    -webkit-text-stroke: 0 !important;
    filter: none !important;
    text-shadow:
        0 1px 0 rgba(255,255,255,.42),
        0 3px 0 rgba(5, 43, 74, .18),
        0 0 14px rgba(0, 169, 255, .22) !important;
}

.home-dashboard .moon-hero h1::before {
    display: none !important;
}

.home-dashboard .moon-hero h1::after {
    content: '';
    position: absolute;
    left: 22%;
    right: 22%;
    bottom: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(0, 169, 255, .72), rgba(255, 211, 74, .56), transparent);
    box-shadow: 0 0 10px rgba(0, 169, 255, .34);
    opacity: .85;
}

@media (max-width: 760px) {
    .home-dashboard .moon-hero h1 {
        padding-bottom: 12px !important;
        text-shadow:
            0 1px 0 rgba(255,255,255,.38),
            0 0 10px rgba(0, 169, 255, .20) !important;
    }
}

/* ============================================================
   MOON HERO TITLE SIMPLE
   ============================================================ */

.home-dashboard .moon-hero h1 {
    display: block !important;
    max-width: 880px !important;
    margin: 10px auto 18px !important;
    padding: 0 8px 14px !important;
    font-family: 'Rajdhani', sans-serif !important;
    font-size: clamp(34px, 4vw, 58px) !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    text-transform: uppercase;
    color: #123354 !important;
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    -webkit-text-fill-color: #123354 !important;
    -webkit-text-stroke: 0 !important;
    filter: none !important;
    text-shadow:
        0 1px 0 rgba(255,255,255,.78),
        0 8px 20px rgba(0, 68, 118, .16) !important;
}

.home-dashboard .moon-hero h1::before {
    display: none !important;
}

.home-dashboard .moon-hero h1::after {
    content: '';
    position: absolute;
    left: 30%;
    right: 30%;
    bottom: 0;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, #00a8ff, #ffd24a, transparent);
    box-shadow: 0 6px 18px rgba(0, 168, 255, .18);
    opacity: .9;
}

@media (max-width: 760px) {
    .home-dashboard .moon-hero h1 {
        font-size: clamp(28px, 9vw, 42px) !important;
    }
}

/* ============================================================
   POKEMON WORLD BACKGROUND
   ============================================================ */

body {
    background: #07111b !important;
}

.stars {
    position: fixed !important;
    inset: -24px !important;
    width: auto !important;
    height: auto !important;
    z-index: 0 !important;
    pointer-events: none !important;
    background:
        linear-gradient(90deg, rgba(5, 10, 18, .72) 0%, rgba(5, 10, 18, .18) 42%, rgba(5, 10, 18, .58) 100%),
        linear-gradient(180deg, rgba(7, 14, 24, .32) 0%, rgba(7, 14, 24, .08) 46%, rgba(7, 14, 24, .76) 100%),
        url('../img/pokemon-moon-world-bg.png') center center / cover no-repeat !important;
    filter: saturate(1.08) contrast(1.04);
    opacity: .95;
    transform: scale(1.035);
    animation: moonWorldBreathe 34s ease-in-out infinite alternate !important;
}

.stars::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(115deg, rgba(255, 214, 83, .12), transparent 22%, transparent 72%, rgba(0, 207, 255, .13)),
        linear-gradient(180deg, rgba(255,255,255,.04), transparent 38%, rgba(2, 8, 15, .30));
    opacity: .72;
    animation: moonWorldLight 18s ease-in-out infinite alternate !important;
}

.stars::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(3, 8, 14, .44), transparent 18%, transparent 82%, rgba(3, 8, 14, .44)),
        linear-gradient(180deg, transparent 0%, rgba(2, 7, 13, .20) 52%, rgba(2, 7, 13, .68) 100%);
    opacity: .86;
}

.moon-hero {
    background:
        linear-gradient(135deg, rgba(246, 252, 255, .86), rgba(231, 247, 255, .72)) !important;
}

.home-dashboard .systems-heading {
    background:
        linear-gradient(135deg, rgba(246, 252, 255, .90), rgba(231, 247, 255, .78)) !important;
}

@keyframes moonWorldBreathe {
    0% {
        transform: scale(1.035) translate3d(-8px, -4px, 0);
        background-position: 48% 50%;
    }
    100% {
        transform: scale(1.06) translate3d(8px, 4px, 0);
        background-position: 52% 50%;
    }
}

@keyframes moonWorldLight {
    0% {
        opacity: .56;
    }
    100% {
        opacity: .82;
    }
}

@media (prefers-reduced-motion: reduce) {
    .stars,
    .stars::before {
        animation: none !important;
    }
}

/* ============================================================
   ACTIVE SERVER SHOWCASE THEME - KEEP AT EOF
   ============================================================ */
body { background: #080506 !important; color: #f4f4f4 !important; }
.stars {
    background:
        radial-gradient(circle at 22% 18%, rgba(156, 33, 18, .46), transparent 26%),
        radial-gradient(circle at 78% 42%, rgba(92, 0, 0, .42), transparent 30%),
        linear-gradient(90deg, rgba(0,0,0,.92), rgba(13, 3, 3, .62) 44%, rgba(0,0,0,.92)),
        url('../img/background.png') center center / cover no-repeat !important;
    filter: saturate(.86) contrast(1.12) brightness(.62) !important;
    opacity: 1 !important;
}
.stars::before {
    background:
        linear-gradient(90deg, rgba(0,0,0,.88), transparent 28%, transparent 68%, rgba(0,0,0,.88)),
        repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0, rgba(255,255,255,.035) 1px, transparent 1px, transparent 4px) !important;
    opacity: .78 !important;
}
.stars::after { background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.72)) !important; }
.main-header {
    background: linear-gradient(180deg, rgba(12, 10, 11, .96), rgba(13, 9, 10, .82)) !important;
    border-bottom: 1px solid rgba(255, 38, 71, .45) !important;
    box-shadow: 0 18px 40px rgba(0,0,0,.42) !important;
}
.main-header::before { background: linear-gradient(90deg, transparent, #ff224b, #ffb02e, transparent) !important; }
.main-header .container { height: 118px !important; }
.main-nav a {
    background: transparent !important;
    border: 0 !important;
    color: #f6f6f6 !important;
    box-shadow: none !important;
    text-transform: uppercase !important;
    font-weight: 800 !important;
}
.main-nav a:hover, .main-nav a.active { color: #ffcf36 !important; background: rgba(255,255,255,.05) !important; }
.main-nav a.active::after { background: #ff244f !important; box-shadow: 0 0 12px rgba(255, 36, 79, .76) !important; }
.main-content > .container, .home-dashboard { max-width: 1180px !important; }
.home-dashboard { display: block !important; margin: 48px auto 0 !important; }
.server-showcase { width: 100% !important; margin: 0 auto 30px !important; }
.server-showcase-frame {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 315px !important;
    min-height: 360px !important;
    background: #050505 !important;
    border: 1px solid rgba(255,255,255,.12) !important;
    box-shadow: 0 28px 70px rgba(0,0,0,.62), 0 0 0 1px rgba(255,36,79,.20) !important;
    overflow: hidden !important;
}
.server-showcase-media { position: relative !important; min-height: 360px !important; background: #0a0a0a !important; }
.server-showcase-image {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    opacity: 0 !important;
    transform: scale(1.025) !important;
    transition: opacity .45s ease, transform 1.8s ease !important;
}
.server-showcase-image.is-active { opacity: 1 !important; transform: scale(1) !important; }
.server-showcase-media::after {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(90deg, rgba(0,0,0,.08), transparent 56%, rgba(0,0,0,.52)), linear-gradient(180deg, transparent 68%, rgba(0,0,0,.62)) !important;
    pointer-events: none !important;
}
.server-showcase-caption {
    position: absolute !important;
    left: 0 !important;
    bottom: 0 !important;
    z-index: 2 !important;
    padding: 8px 18px 7px !important;
    min-width: 270px !important;
    background: linear-gradient(90deg, rgba(0,0,0,.94), rgba(0,0,0,.58)) !important;
    color: #ffcf36 !important;
    font-family: 'Rajdhani', sans-serif !important;
    font-size: 26px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    text-shadow: 0 2px 0 #000 !important;
}
.server-showcase-copy {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    padding: 30px 28px !important;
    background: linear-gradient(135deg, rgba(7,7,7,.96), rgba(13,15,17,.90)), repeating-linear-gradient(45deg, rgba(255,255,255,.035) 0, rgba(255,255,255,.035) 1px, transparent 1px, transparent 7px) !important;
    border-left: 1px solid rgba(255,255,255,.10) !important;
}
.showcase-logo { width: 145px !important; max-height: 80px !important; object-fit: contain !important; margin-bottom: 22px !important; filter: drop-shadow(0 10px 18px rgba(0,0,0,.55)) !important; }
.server-showcase-copy span { color: #ffcf36 !important; font-family: 'Rajdhani', sans-serif !important; font-size: 13px !important; font-weight: 800 !important; text-transform: uppercase !important; }
.server-showcase-copy h1 { margin: 8px 0 18px !important; color: #fff !important; font-family: 'Rajdhani', sans-serif !important; font-size: 31px !important; line-height: 1.02 !important; font-weight: 900 !important; text-transform: uppercase !important; text-shadow: 0 3px 0 rgba(0,0,0,.8) !important; }
.server-showcase-copy p { margin: 0 0 24px !important; color: rgba(255,255,255,.86) !important; font-size: 15px !important; line-height: 1.55 !important; }
.showcase-buttons { display: flex !important; gap: 10px !important; flex-wrap: wrap !important; }
.showcase-buttons a { display: inline-flex !important; align-items: center !important; justify-content: center !important; min-height: 36px !important; padding: 0 18px !important; background: #fff !important; color: #0b0b0b !important; border-radius: 4px !important; font-weight: 900 !important; text-transform: uppercase !important; text-decoration: none !important; }
.showcase-buttons a:nth-child(2) { background: #ff244f !important; color: #fff !important; }
.server-showcase-thumbs { display: grid !important; grid-template-columns: repeat(5, minmax(0, 1fr)) !important; height: 64px !important; background: #090909 !important; border: 1px solid rgba(255,255,255,.12) !important; border-top: 0 !important; }
.server-showcase-thumbs button { position: relative !important; min-width: 0 !important; border: 0 !important; border-right: 1px solid rgba(255,255,255,.12) !important; padding: 0 !important; background: #111 !important; cursor: pointer !important; overflow: hidden !important; }
.server-showcase-thumbs img { width: 100% !important; height: 100% !important; object-fit: cover !important; opacity: .52 !important; filter: saturate(.8) contrast(1.05) !important; transition: opacity .18s ease, transform .18s ease, filter .18s ease !important; }
.server-showcase-thumbs button.is-active::after { content: '' !important; position: absolute !important; inset: auto 0 0 0 !important; height: 4px !important; background: #ff244f !important; box-shadow: 0 0 16px rgba(255,36,79,.88) !important; }
.server-showcase-thumbs button.is-active img, .server-showcase-thumbs button:hover img { opacity: 1 !important; transform: scale(1.06) !important; filter: saturate(1.08) contrast(1.1) !important; }
.showcase-actions { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 30px !important; margin: 30px 0 22px !important; }
.showcase-action-card { display: grid !important; grid-template-columns: 78px 1fr !important; grid-template-rows: auto auto !important; align-items: center !important; min-height: 108px !important; padding: 20px 28px !important; background: rgba(25,30,36,.94) !important; border: 1px solid rgba(255,255,255,.10) !important; color: #fff !important; text-decoration: none !important; box-shadow: 0 18px 40px rgba(0,0,0,.36) !important; }
.showcase-action-card img.nav-icon { grid-row: 1 / 3 !important; width: 64px !important; height: 64px !important; margin: 0 !important; }
.showcase-action-card strong { font-family: 'Rajdhani', sans-serif !important; font-size: 23px !important; font-weight: 900 !important; text-transform: uppercase !important; line-height: 1 !important; }
.showcase-action-card span { color: #ff244f !important; font-family: 'Rajdhani', sans-serif !important; font-size: 21px !important; font-weight: 900 !important; text-transform: uppercase !important; line-height: 1.05 !important; }
.home-dashboard .systems-heading, .moon-section, .clan-showcase-section, .page-header, .card, .system-card, .clan-card { background: rgba(7,8,10,.82) !important; border-color: rgba(255,255,255,.10) !important; box-shadow: 0 22px 54px rgba(0,0,0,.42) !important; }
@media (max-width: 980px) { .server-showcase-frame { grid-template-columns: 1fr !important; } .showcase-actions { grid-template-columns: 1fr !important; gap: 12px !important; } }
@media (max-width: 720px) { .home-dashboard { margin-top: 22px !important; } .server-showcase-media, .server-showcase-frame { min-height: 260px !important; } .server-showcase-thumbs { height: 48px !important; } .server-showcase-copy h1 { font-size: 26px !important; } }

/* ============================================================
   ACTIVE POKE MOON BLUE/GOLD THEME - KEEP AT EOF
   ============================================================ */
:root {
    --moon-navy: #050b18;
    --moon-navy-2: #071a36;
    --moon-navy-3: #0a2347;
    --moon-blue: #00aaff;
    --moon-blue-soft: rgba(0, 170, 255, .28);
    --moon-gold: #ffd24a;
    --moon-white: #f6fbff;
}

body {
    background: var(--moon-navy) !important;
    color: var(--moon-white) !important;
}

.stars {
    background:
        linear-gradient(90deg, rgba(1, 6, 18, .94), rgba(4, 18, 44, .64) 42%, rgba(1, 6, 18, .94)),
        linear-gradient(180deg, rgba(2, 8, 24, .38), rgba(2, 9, 24, .72)),
        url('../img/client-background.png') center center / cover no-repeat !important;
    filter: saturate(1.08) contrast(1.08) brightness(.72) !important;
    opacity: 1 !important;
}

.stars::before {
    background:
        radial-gradient(circle at 28% 18%, rgba(0, 170, 255, .22), transparent 30%),
        radial-gradient(circle at 78% 32%, rgba(255, 210, 74, .13), transparent 28%),
        repeating-linear-gradient(0deg, rgba(255,255,255,.026) 0, rgba(255,255,255,.026) 1px, transparent 1px, transparent 4px) !important;
    opacity: .82 !important;
}

.stars::after {
    background:
        linear-gradient(90deg, rgba(1, 5, 14, .84), transparent 24%, transparent 72%, rgba(1, 5, 14, .84)),
        linear-gradient(180deg, rgba(1, 5, 14, .10), rgba(1, 5, 14, .74)) !important;
    opacity: .92 !important;
}

.main-header {
    background: linear-gradient(180deg, rgba(4, 13, 31, .98), rgba(5, 18, 43, .90)) !important;
    border-bottom: 1px solid rgba(0, 170, 255, .46) !important;
    box-shadow: 0 18px 45px rgba(0, 7, 24, .68) !important;
}

.main-header::before {
    background: linear-gradient(90deg, transparent, var(--moon-blue), var(--moon-gold), var(--moon-blue), transparent) !important;
    opacity: .9 !important;
}

.main-nav a {
    color: var(--moon-white) !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--moon-gold) !important;
    background: rgba(0, 170, 255, .08) !important;
}

.main-nav a.active::after {
    background: var(--moon-gold) !important;
    box-shadow: 0 0 14px rgba(255, 210, 74, .72), 0 0 18px rgba(0, 170, 255, .45) !important;
}

.lang-flag {
    background: rgba(8, 29, 66, .72) !important;
    border-color: rgba(0, 170, 255, .24) !important;
    color: var(--moon-white) !important;
}

.lang-flag.active {
    border-color: var(--moon-blue) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 210, 74, .25), 0 0 18px rgba(0, 170, 255, .28) !important;
}

.server-showcase-frame {
    background: #030914 !important;
    border-color: rgba(0, 170, 255, .24) !important;
    box-shadow: 0 28px 70px rgba(0, 7, 24, .68), 0 0 0 1px rgba(255, 210, 74, .12) !important;
}

.server-showcase-copy {
    background:
        linear-gradient(135deg, rgba(3, 10, 24, .97), rgba(4, 21, 48, .92)),
        repeating-linear-gradient(45deg, rgba(255,255,255,.028) 0, rgba(255,255,255,.028) 1px, transparent 1px, transparent 7px) !important;
    border-left-color: rgba(0, 170, 255, .20) !important;
}

.server-showcase-copy span,
.server-showcase-caption,
.showcase-action-card span,
.section-heading span,
.clan-card-head span,
.system-card-head span {
    color: var(--moon-gold) !important;
}

.server-showcase-copy h1,
.page-header h1,
.clan-heading h2 {
    color: var(--moon-white) !important;
    -webkit-text-fill-color: var(--moon-white) !important;
    background: none !important;
    text-shadow: 0 3px 0 rgba(0,0,0,.55), 0 0 22px rgba(0, 170, 255, .20) !important;
}

.showcase-buttons a,
.btn,
.download-btn,
.download-card .btn {
    background: var(--moon-white) !important;
    color: #071a36 !important;
    border: 1px solid rgba(0, 170, 255, .68) !important;
    box-shadow: inset 0 -2px 0 rgba(0, 170, 255, .22), 0 10px 24px rgba(0, 9, 28, .34) !important;
}

.showcase-buttons a:nth-child(2),
.btn-primary,
.download-card:hover .btn {
    background: linear-gradient(180deg, #ffd85b, #f2b923) !important;
    color: #071a36 !important;
    border-color: rgba(255, 210, 74, .9) !important;
}

.server-showcase-thumbs {
    background: #030914 !important;
    border-color: rgba(0, 170, 255, .20) !important;
}

.server-showcase-thumbs button {
    background: #051226 !important;
    border-right-color: rgba(0, 170, 255, .18) !important;
}

.server-showcase-thumbs button.is-active::after {
    background: linear-gradient(90deg, var(--moon-blue), var(--moon-gold)) !important;
    box-shadow: 0 0 16px rgba(0,170,255,.68), 0 0 12px rgba(255,210,74,.38) !important;
}

.showcase-action-card,
.card,
.download-card,
.page-header,
.login-card,
.register-card,
.table-container,
.guild-card,
.pokemon-card {
    background: linear-gradient(135deg, rgba(3, 12, 28, .92), rgba(5, 22, 50, .84)) !important;
    border-color: rgba(0, 170, 255, .22) !important;
    box-shadow: 0 22px 54px rgba(0, 7, 24, .52), inset 0 1px 0 rgba(255,255,255,.04) !important;
}

.showcase-action-card:hover,
.download-card:hover,
.card:hover {
    border-color: rgba(255, 210, 74, .58) !important;
    box-shadow: 0 24px 58px rgba(0, 7, 24, .58), 0 0 24px rgba(0, 170, 255, .14) !important;
}

.page-header {
    min-height: 170px !important;
    background:
        linear-gradient(135deg, rgba(3, 12, 28, .88), rgba(5, 22, 50, .72)),
        url('../img/client-background.png') center center / cover no-repeat !important;
}

.page-header p,
.download-card p,
.server-showcase-copy p,
.clan-card-body p {
    color: rgba(246, 251, 255, .74) !important;
}

img.nav-icon,
img.page-header-icon {
    filter: drop-shadow(0 8px 10px rgba(0, 7, 24, .38)) !important;
}

.clan-showcase-section {
    max-width: 1180px !important;
    margin: 42px auto 0 !important;
    padding: 34px 34px 38px !important;
    background: linear-gradient(180deg, rgba(3, 10, 24, .94), rgba(4, 18, 42, .88)) !important;
    border: 1px solid rgba(0, 170, 255, .22) !important;
    box-shadow: 0 28px 72px rgba(0, 7, 24, .62) !important;
}

.clan-heading {
    position: relative !important;
    margin-bottom: 26px !important;
    text-align: left !important;
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
}

.clan-heading::before,
.clan-heading::after {
    content: '';
    display: inline-block;
    width: 78px;
    height: 3px;
    margin: 0 16px 8px 0;
    background: linear-gradient(90deg, transparent, var(--moon-blue));
    vertical-align: middle;
}

.clan-heading::after {
    margin: 0 0 8px 16px;
    background: linear-gradient(90deg, var(--moon-gold), transparent);
}

.clan-heading span {
    color: var(--moon-gold) !important;
    letter-spacing: 0 !important;
}

.clan-heading h2 {
    font-size: clamp(26px, 3vw, 42px) !important;
    text-transform: uppercase !important;
}

.clan-showcase-grid {
    gap: 16px !important;
}

.clan-card {
    background-color: #06152d !important;
    background-blend-mode: multiply !important;
    border: 1px solid rgba(0, 170, 255, .24) !important;
    border-radius: 0 !important;
}

.clan-card:hover {
    border-color: rgba(255, 210, 74, .62) !important;
}

.clan-card-head strong,
.clan-type-list span,
.clan-benefit-list span {
    background: rgba(0, 170, 255, .10) !important;
    border-color: rgba(0, 170, 255, .28) !important;
    color: var(--moon-white) !important;
}

.clan-card-body h3 {
    color: var(--moon-gold) !important;
}

.moon-section,
.system-showcase,
.system-card,
.system-lightbox {
    display: none !important;
}

@media (max-width: 980px) {
    .server-showcase-frame { grid-template-columns: 1fr !important; }
    .showcase-actions { grid-template-columns: 1fr !important; gap: 12px !important; }
    .server-showcase-copy { border-left: 0 !important; border-top: 1px solid rgba(0, 170, 255, .22) !important; }
}

/* ============================================================
   HOME CENTER + RANKINGS + CLAN TABS - KEEP AT EOF
   ============================================================ */
.main-content > .container,
.home-dashboard {
    max-width: 1340px !important;
    width: min(1340px, calc(100vw - 64px)) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.home-dashboard {
    margin-top: 44px !important;
}

.home-top-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 330px !important;
    gap: 24px !important;
    align-items: start !important;
    width: 100% !important;
}

.server-showcase {
    margin: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
}

.server-showcase-frame {
    grid-template-columns: minmax(0, 1fr) 285px !important;
    min-height: 340px !important;
}

.server-showcase-media {
    min-height: 340px !important;
}

.server-showcase-copy {
    padding: 24px 24px !important;
}

.showcase-logo {
    width: 124px !important;
    margin-bottom: 18px !important;
}

.server-showcase-copy h1 {
    font-size: 28px !important;
}

.showcase-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 18px !important;
    margin: 24px 0 0 !important;
}

.showcase-action-card {
    min-height: 96px !important;
    padding: 18px 22px !important;
    grid-template-columns: 62px 1fr !important;
}

.showcase-action-card img.nav-icon {
    width: 52px !important;
    height: 52px !important;
}

.home-rankings {
    display: grid !important;
    gap: 16px !important;
}

.home-ranking-card {
    overflow: hidden;
    background: linear-gradient(180deg, rgba(5, 16, 37, .98), rgba(8, 25, 53, .94)) !important;
    border: 1px solid rgba(0, 170, 255, .26) !important;
    box-shadow: 0 20px 44px rgba(0, 7, 24, .46) !important;
}

.home-ranking-card h2 {
    margin: 0 !important;
    padding: 13px 18px !important;
    background: linear-gradient(90deg, #053f86, #071a36) !important;
    border-bottom: 1px solid rgba(255, 210, 74, .22) !important;
    color: #fff !important;
    font-family: 'Rajdhani', sans-serif !important;
    font-size: 21px !important;
    line-height: 1 !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
}

.home-ranking-card:nth-child(2) h2 {
    background: linear-gradient(90deg, #062b69, #071a36) !important;
}

.home-ranking-card:nth-child(3) h2 {
    background: linear-gradient(90deg, #0b3d7d, #101d35) !important;
}

.home-ranking-card table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 0 !important;
}

.home-ranking-card th,
.home-ranking-card td {
    padding: 11px 12px !important;
    border: 1px solid rgba(0, 0, 0, .26) !important;
    color: #fff !important;
    font-size: 13px !important;
}

.home-ranking-card th {
    background: rgba(255,255,255,.055) !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
}

.home-ranking-card td:nth-child(2) {
    color: var(--moon-gold) !important;
    font-weight: 700 !important;
}

.home-ranking-card td:last-child {
    text-align: center !important;
    font-weight: 900 !important;
}

.home-ranking-card tr:nth-child(even) td {
    background: rgba(255,255,255,.035) !important;
}

.home-rank-medal {
    color: var(--moon-gold) !important;
    font-weight: 900 !important;
}

.home-ranking-empty {
    text-align: center !important;
    color: rgba(246,251,255,.56) !important;
}

.clan-master-section {
    width: min(1180px, calc(100vw - 64px)) !important;
    margin: 28px auto 0 !important;
    padding: 22px 0 26px !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.clan-master-heading {
    margin-bottom: 16px !important;
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
}

.clan-master-heading::before,
.clan-master-heading::after {
    content: '' !important;
    width: 28px !important;
    height: 3px !important;
    background: rgba(255, 210, 74, .26) !important;
}

.clan-master-heading::after {
    flex: 1 !important;
    background: linear-gradient(90deg, rgba(0, 170, 255, .34), transparent) !important;
}

.clan-master-heading span {
    color: var(--moon-gold) !important;
    font-family: 'Rajdhani', sans-serif !important;
    font-size: 24px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
}

.clan-master-heading h2 {
    margin: 0 !important;
    color: #fff !important;
    font-family: 'Rajdhani', sans-serif !important;
    font-size: 26px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
}

.clan-master-tabs {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 10px !important;
    margin-bottom: 10px !important;
}

.clan-master-tabs button {
    min-height: 38px !important;
    border: 0 !important;
    background: #1b2838 !important;
    color: #fff !important;
    font-family: 'Rajdhani', sans-serif !important;
    font-size: 15px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: background .18s ease, color .18s ease, transform .18s ease !important;
}

.clan-master-tabs button:hover,
.clan-master-tabs button.is-active {
    background: linear-gradient(90deg, #053f86, #006fc9) !important;
    color: var(--moon-gold) !important;
    transform: translateY(-1px) !important;
}

.clan-master-stage {
    background: rgba(7, 14, 24, .78) !important;
    border: 1px solid rgba(0, 170, 255, .22) !important;
    box-shadow: 0 16px 36px rgba(0, 7, 24, .38) !important;
    overflow: hidden !important;
}

.clan-master-panel {
    display: none !important;
}

.clan-master-panel.is-active {
    display: block !important;
}

.clan-master-image {
    position: relative !important;
    min-height: 360px !important;
    background-size: cover !important;
    background-position: center center !important;
    overflow: hidden !important;
}

.clan-master-image::after {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(180deg, transparent 54%, rgba(3, 10, 24, .68)) !important;
}

.clan-master-image > span {
    position: absolute !important;
    z-index: 2 !important;
    left: 0 !important;
    top: 18px !important;
    padding: 7px 20px !important;
    background: linear-gradient(90deg, #053f86, #006fc9) !important;
    color: #fff !important;
    font-size: 17px !important;
    font-weight: 800 !important;
}

.clan-master-image > img {
    position: absolute !important;
    z-index: 2 !important;
    left: 50% !important;
    top: 50% !important;
    width: 126px !important;
    height: 126px !important;
    object-fit: contain !important;
    image-rendering: pixelated !important;
    transform: translate(-50%, -42%) scale(1.4) !important;
    filter: drop-shadow(0 18px 18px rgba(0,0,0,.62)) !important;
}

.clan-master-copy {
    padding: 16px 24px 18px !important;
}

.clan-master-copy h3 {
    margin: 0 0 6px !important;
    color: #fff !important;
    font-family: 'Rajdhani', sans-serif !important;
    font-size: 27px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
}

.clan-master-copy p {
    max-width: 780px !important;
    color: rgba(246,251,255,.72) !important;
    margin: 0 !important;
}

.clan-master-tags {
    display: none !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-top: 16px !important;
}

.clan-master-tags span {
    padding: 6px 12px !important;
    border: 1px solid rgba(255, 210, 74, .34) !important;
    color: var(--moon-gold) !important;
    background: rgba(255, 210, 74, .08) !important;
    font-weight: 800 !important;
}

.clan-showcase-section,
.clan-showcase-grid,
.clan-card {
    display: none !important;
}

@media (max-width: 1120px) {
    .home-top-grid { grid-template-columns: 1fr !important; }
    .home-rankings { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}

@media (max-width: 820px) {
    .main-content > .container,
    .home-dashboard,
    .clan-master-section { width: min(100vw - 28px, 1180px) !important; }
    .home-rankings { grid-template-columns: 1fr !important; }
    .clan-master-section { padding-top: 14px !important; padding-bottom: 18px !important; }
    .clan-master-heading { align-items: flex-start !important; gap: 8px !important; margin-bottom: 12px !important; }
    .clan-master-heading::before,
    .clan-master-heading::after { display: none !important; }
    .clan-master-heading span { font-size: 17px !important; }
    .clan-master-heading h2 { font-size: 18px !important; line-height: 1.12 !important; }
    .clan-master-tabs {
        display: flex !important;
        grid-template-columns: none !important;
        gap: 8px !important;
        overflow-x: auto !important;
        padding-bottom: 4px !important;
    }
    .clan-master-tabs button {
        flex: 0 0 132px !important;
        min-height: 34px !important;
        font-size: 13px !important;
    }
    .clan-master-image { min-height: 260px !important; }
    .clan-master-image > span { top: 10px !important; padding: 5px 12px !important; font-size: 13px !important; }
    .clan-master-copy { padding: 12px 16px 14px !important; }
    .clan-master-copy h3 { font-size: 21px !important; }
    .clan-master-copy p { font-size: 14px !important; line-height: 1.35 !important; }
    .server-showcase-frame { grid-template-columns: 1fr !important; }
}

/* ============================================================
   FOOTER BLUE BACKGROUND + NO MUSIC BUTTON - KEEP AT EOF
   ============================================================ */
.music-toggle {
    display: none !important;
}

.main-footer {
    position: relative !important;
    overflow: hidden !important;
    margin-top: 64px !important;
    padding: 48px 0 28px !important;
    background:
        linear-gradient(90deg, rgba(1, 6, 18, .96), rgba(4, 18, 44, .82) 45%, rgba(1, 6, 18, .96)),
        linear-gradient(180deg, rgba(2, 8, 24, .36), rgba(2, 9, 24, .82)),
        url('../img/client-background.png') center center / cover no-repeat !important;
    border-top: 1px solid rgba(0, 170, 255, .42) !important;
    box-shadow: inset 0 1px 0 rgba(255, 210, 74, .18), 0 -24px 70px rgba(0, 7, 24, .52) !important;
}

.main-footer::before {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    background:
        radial-gradient(circle at 18% 10%, rgba(0, 170, 255, .16), transparent 28%),
        radial-gradient(circle at 82% 16%, rgba(255, 210, 74, .10), transparent 26%),
        repeating-linear-gradient(0deg, rgba(255,255,255,.026) 0, rgba(255,255,255,.026) 1px, transparent 1px, transparent 4px) !important;
    pointer-events: none !important;
}

.main-footer .container {
    position: relative !important;
    z-index: 1 !important;
}

.footer-grid {
    border-bottom: 1px solid rgba(0, 170, 255, .22) !important;
    padding-bottom: 30px !important;
}

.footer-col h4 {
    color: var(--moon-gold) !important;
    font-family: 'Rajdhani', sans-serif !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 0 !important;
}

.footer-col p,
.footer-bottom p {
    color: rgba(246, 251, 255, .72) !important;
}

.footer-col a {
    color: rgba(246, 251, 255, .82) !important;
    transition: color .18s ease, transform .18s ease !important;
}

.footer-col a:hover {
    color: var(--moon-gold) !important;
    transform: translateX(3px) !important;
}

.footer-bottom {
    border-top: 0 !important;
    padding-top: 26px !important;
}

.footer-sprite {
    filter: drop-shadow(0 8px 10px rgba(0, 7, 24, .55)) !important;
}

/* ============================================================
   FINAL HEADER + CLAN FIXES
   ============================================================ */
.main-header .container {
    width: min(1220px, calc(100vw - 44px)) !important;
    max-width: 1220px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    display: grid !important;
    grid-template-columns: minmax(390px, 1fr) 220px minmax(390px, 1fr) !important;
    justify-content: center !important;
    align-items: center !important;
    column-gap: 18px !important;
}

.main-nav-left {
    justify-content: flex-end !important;
}

.main-nav-right {
    justify-content: flex-start !important;
}

.header-logo-center {
    min-width: 220px !important;
    justify-content: center !important;
}

.main-nav {
    gap: 10px !important;
}

.main-nav a,
.lang-flag {
    min-width: 70px !important;
}

.lang-switcher {
    margin-left: 6px !important;
}

.clan-master-tabs {
    position: relative !important;
    z-index: 4 !important;
    pointer-events: auto !important;
}

.clan-master-tabs button {
    pointer-events: auto !important;
}

.clan-master-image > span {
    background: linear-gradient(90deg, #005ca8, #00aaff) !important;
    color: #fff !important;
}

@media (max-width: 1180px) {
    .main-header .container {
        grid-template-columns: 1fr !important;
        row-gap: 10px !important;
        height: auto !important;
        padding-top: 12px !important;
        padding-bottom: 12px !important;
    }

    .main-nav-left,
    .main-nav-right {
        justify-content: center !important;
    }
}

@media (min-width: 1181px) {
    .main-header .container {
        transform: translateX(-90px) !important;
    }
}

.clan-master-image {
    min-height: 360px !important;
    background-size: cover !important;
    background-position: center center !important;
}

.clan-master-image > img {
    display: none !important;
}

/* Keep the shared page headers locked on the POKE MOON mark from the site background. */
.page-header {
    position: relative !important;
    overflow: hidden !important;
    background:
        linear-gradient(135deg, rgba(3, 12, 28, .90), rgba(5, 22, 50, .72)),
        url('../img/client-background.png') center 57% / min(1040px, 122vw) auto no-repeat,
        url('../img/client-background.png') center center / cover no-repeat !important;
}

/* Animated energy across the top navigation. */
.main-header {
    position: sticky !important;
    overflow: hidden !important;
    isolation: isolate !important;
}

.main-header::before {
    z-index: 4 !important;
}

.main-header::after {
    content: '' !important;
    position: absolute !important;
    top: 3px !important;
    bottom: 0 !important;
    left: -56% !important;
    width: 56% !important;
    z-index: 1 !important;
    pointer-events: none !important;
    opacity: .62 !important;
    background:
        linear-gradient(104deg, transparent 0 34%, rgba(0, 170, 255, .04) 42%, rgba(0, 170, 255, .36) 47%, rgba(255, 210, 74, .86) 50%, rgba(77, 220, 255, .92) 52%, rgba(0, 170, 255, .30) 56%, transparent 66% 100%),
        linear-gradient(90deg, transparent 0 26%, rgba(0, 170, 255, .08) 45%, rgba(255, 210, 74, .10) 52%, transparent 74% 100%);
    filter: drop-shadow(0 0 12px rgba(0, 170, 255, .52)) drop-shadow(0 0 10px rgba(255, 210, 74, .28));
    transform: translateX(0) skewX(-10deg);
    animation: moonHeaderLightning 5.2s linear infinite;
}

.main-header .container {
    position: relative !important;
    z-index: 2 !important;
}

.main-nav a,
.lang-flag {
    position: relative !important;
    overflow: hidden !important;
}

.main-nav a::before,
.lang-flag::before {
    content: '' !important;
    position: absolute !important;
    inset: 8px 12px 22px !important;
    z-index: -1 !important;
    border-radius: 999px !important;
    background: radial-gradient(circle, rgba(0, 170, 255, .42), rgba(255, 210, 74, .15) 38%, transparent 70%) !important;
    opacity: .18 !important;
    transform: scale(.84) !important;
    animation: moonNavIconGlow 3.4s ease-in-out infinite;
}

.main-nav a:nth-child(2)::before,
.main-nav a:nth-child(5)::before,
.lang-flag:nth-child(2)::before {
    animation-delay: .7s;
}

.main-nav a:nth-child(3)::before,
.main-nav a:nth-child(6)::before,
.lang-flag:nth-child(3)::before {
    animation-delay: 1.35s;
}

.main-nav a:hover::before,
.main-nav a.active::before,
.lang-flag.active::before {
    opacity: .42 !important;
}

@keyframes moonHeaderLightning {
    0% {
        transform: translateX(0) skewX(-10deg);
        opacity: .10;
    }
    10% {
        opacity: .64;
    }
    48% {
        opacity: .38;
    }
    56% {
        opacity: .76;
    }
    100% {
        transform: translateX(285%) skewX(-10deg);
        opacity: .12;
    }
}

@keyframes moonNavIconGlow {
    0%, 100% {
        opacity: .14;
        transform: scale(.78);
    }
    50% {
        opacity: .34;
        transform: scale(1.06);
    }
}

@media (prefers-reduced-motion: reduce) {
    .main-header::after,
    .main-nav a::before,
    .lang-flag::before {
        animation: none !important;
    }
}

/* Final nav sizing: keep icon buttons readable and prevent labels like DOWNLOAD from being clipped. */
.main-nav {
    gap: 8px !important;
    flex-wrap: wrap !important;
}

.main-nav a,
.lang-flag {
    box-sizing: border-box !important;
    min-width: 86px !important;
    width: auto !important;
    padding: 7px 10px !important;
    overflow: visible !important;
    white-space: nowrap !important;
    line-height: 1.08 !important;
}

.main-nav-right a[href$="downloads.php"] {
    min-width: 104px !important;
}

@media (max-width: 640px) {
    .main-nav {
        gap: 6px !important;
    }

    .main-nav a,
    .lang-flag {
        min-width: 88px !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
        font-size: 12px !important;
    }

    .main-nav-right a[href$="downloads.php"] {
        min-width: 106px !important;
    }
}

/* Keep the full header inside the viewport after the larger nav labels. */
.main-header .container {
    width: min(1400px, calc(100vw - 8px)) !important;
    grid-template-columns: minmax(360px, 1fr) 190px minmax(575px, 575px) !important;
    column-gap: 14px !important;
    transform: none !important;
    height: auto !important;
    min-height: 118px !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    overflow: visible !important;
}

.header-logo-center {
    min-width: 190px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
}

.logo-official-image {
    width: 166px !important;
    max-height: 82px !important;
}

.header-logo-center::after {
    content: "A NOVA ERA COMECA NA LUA" !important;
    display: block !important;
    color: var(--moon-gold) !important;
    font-family: 'Rajdhani', sans-serif !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    letter-spacing: .8px !important;
    line-height: 1 !important;
    text-align: center !important;
    text-transform: uppercase !important;
    text-shadow: 0 0 10px rgba(0, 170, 255, .58), 0 2px 8px rgba(0,0,0,.72) !important;
    white-space: nowrap !important;
}

@media (min-width: 1181px) {
    .main-header .container {
        transform: none !important;
    }
}

@media (max-width: 1180px) {
    .main-header .container {
        grid-template-columns: 1fr !important;
        width: min(100vw - 20px, 760px) !important;
    }
}

/* Keep language buttons compact at the far right of the top nav. */
.main-nav {
    flex-wrap: nowrap !important;
}

.main-nav-right {
    align-items: center !important;
    justify-content: flex-end !important;
}

.main-nav-right .lang-switcher {
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 5px !important;
    margin-left: 10px !important;
    padding-left: 10px !important;
    border-left: 1px solid rgba(0, 170, 255, .28) !important;
    white-space: nowrap !important;
}

.main-nav-right .lang-flag {
    min-width: 46px !important;
    width: 46px !important;
    height: 34px !important;
    padding: 4px 3px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: visible !important;
    border-radius: 8px !important;
    opacity: .62 !important;
}

.main-nav-right .lang-flag .flag-icon {
    display: none !important;
}

.main-nav-right .lang-flag .flag-label {
    font-size: 13px !important;
    line-height: 1 !important;
    font-weight: 900 !important;
    color: rgba(246, 251, 255, .68) !important;
    text-transform: uppercase !important;
}

.main-nav-right .lang-flag.active {
    opacity: 1 !important;
    background: rgba(0, 170, 255, .15) !important;
    box-shadow: inset 0 0 0 1px rgba(0, 170, 255, .32) !important;
}

.main-nav-right .lang-flag.active .flag-label {
    color: var(--moon-gold) !important;
}

@media (max-width: 1180px) {
    .main-nav {
        flex-wrap: wrap !important;
    }

    .main-nav-right {
        justify-content: center !important;
    }
}
