/* ===== CSS VARIABLES ===== */
:root {
  --primary: #00ff88;
  --secondary: #0066ff;
  --bg: #0a0b0f;
  --bg2: #111318;
  --bg3: #181b22;
  --card: #13151c;
  --border: #1e2230;
  --border2: #252836;
  --text: #e8eaf0;
  --text2: #8892a4;
  --text3: #555f73;
  --success: #00d96f;
  --danger: #ff3d57;
  --warn: #ffaa00;
  --gold: #f0a500;
  --platinum: #c8d0e0;
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(0,0,0,.4);
  --glow: 0 0 20px rgba(0,255,136,.15);
  --transition: .2s ease;
  --font-display: 'Rajdhani', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 15px; line-height: 1.6; min-height: 100vh; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { opacity: .85; }
img { max-width: 100%; display: block; }
code { font-family: 'Courier New', monospace; background: var(--bg3); padding: 2px 6px; border-radius: 4px; font-size: .875em; color: var(--primary); }
input, select, textarea, button { font-family: inherit; }

/* ===== LAYOUT ===== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.main-content { min-height: calc(100vh - 64px - 280px); }

/* ===== NAVBAR ===== */
.navbar { position: sticky; top: 0; z-index: 100; background: rgba(10,11,15,.9); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); height: 64px; }
.navbar-inner { display: flex; align-items: center; gap: 2rem; height: 64px; }
.brand { display: flex; align-items: center; gap: .5rem; font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--text); letter-spacing: .05em; }
.brand:hover { color: var(--primary); opacity: 1; }
.brand-icon { color: var(--primary); font-size: 1.6rem; }
.nav-links { display: flex; gap: .25rem; margin-left: auto; }
.nav-link { padding: .4rem .9rem; border-radius: var(--radius-sm); color: var(--text2); font-size: .9rem; font-weight: 500; transition: var(--transition); }
.nav-link:hover { color: var(--text); background: var(--bg3); opacity: 1; }
.nav-actions { display: flex; align-items: center; gap: .75rem; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: .5rem; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text2); border-radius: 2px; transition: var(--transition); }

/* USER MENU */
.user-menu { position: relative; }
.user-btn { display: flex; align-items: center; gap: .5rem; background: var(--bg3); border: 1px solid var(--border2); border-radius: var(--radius-sm); padding: .4rem .8rem; cursor: pointer; color: var(--text); font-size: .875rem; transition: var(--transition); }
.user-btn:hover { border-color: var(--primary); box-shadow: var(--glow); }
.user-avatar-circle { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--secondary)); display: flex; align-items: center; justify-content: center; font-size: .7rem; font-weight: 700; color: var(--bg); flex-shrink: 0; }
.user-dropdown { position: absolute; top: calc(100% + 8px); right: 0; background: var(--card); border: 1px solid var(--border2); border-radius: var(--radius); min-width: 180px; padding: .5rem; box-shadow: var(--shadow); display: none; z-index: 200; }
.user-menu:hover .user-dropdown, .user-menu:focus-within .user-dropdown { display: block; }
.user-dropdown a { display: block; padding: .5rem .75rem; border-radius: var(--radius-sm); color: var(--text2); font-size: .875rem; transition: var(--transition); }
.user-dropdown a:hover { color: var(--text); background: var(--bg3); opacity: 1; }
.admin-link { color: var(--warn) !important; }
.logout-link { color: var(--danger) !important; }
.dropdown-divider { height: 1px; background: var(--border); margin: .4rem 0; }

/* ===== BUTTONS ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .55rem 1.2rem; border-radius: var(--radius-sm); font-weight: 600; font-size: .875rem; cursor: pointer; border: 1px solid transparent; transition: var(--transition); white-space: nowrap; text-decoration: none; }
.btn:hover { opacity: .9; transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-primary { background: var(--primary); color: var(--bg); border-color: var(--primary); }
.btn-primary:hover { box-shadow: 0 0 16px rgba(0,255,136,.35); }
.btn-secondary { background: var(--secondary); color: #fff; border-color: var(--secondary); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: rgba(0,255,136,.08); }
.btn-ghost { background: var(--bg3); color: var(--text2); border-color: var(--border2); }
.btn-ghost:hover { color: var(--text); background: var(--border2); }
.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-success { background: var(--success); color: var(--bg); border-color: var(--success); }
.btn-warn { background: var(--warn); color: var(--bg); border-color: var(--warn); }
.btn-boost { background: linear-gradient(135deg, var(--gold), #ff6b00); color: var(--bg); border: none; }
.btn-boost:hover { box-shadow: 0 0 20px rgba(240,165,0,.4); }
.btn-lg { padding: .75rem 2rem; font-size: 1rem; border-radius: var(--radius); }
.btn-sm { padding: .35rem .8rem; font-size: .8rem; }
.btn-xs { padding: .2rem .55rem; font-size: .75rem; }
.btn-full { width: 100%; }
.btn[disabled] { opacity: .4; cursor: not-allowed; transform: none !important; }

/* ===== FLASH MESSAGES ===== */
.flash { position: fixed; top: 72px; left: 50%; transform: translateX(-50%); z-index: 1000; padding: .75rem 1.5rem; border-radius: var(--radius); font-size: .9rem; font-weight: 500; display: flex; align-items: center; gap: .75rem; max-width: 500px; box-shadow: var(--shadow); animation: slideDown .3s ease; }
.flash button { background: none; border: none; cursor: pointer; font-size: 1.1rem; margin-left: auto; opacity: .7; color: inherit; }
.flash-success { background: rgba(0,217,111,.15); border: 1px solid var(--success); color: var(--success); }
.flash-error { background: rgba(255,61,87,.15); border: 1px solid var(--danger); color: var(--danger); }
.flash-info { background: rgba(0,102,255,.15); border: 1px solid var(--secondary); color: var(--secondary); }
@keyframes slideDown { from { opacity: 0; transform: translateX(-50%) translateY(-10px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }

/* ===== HERO ===== */
.hero { position: relative; padding: 5rem 0 4rem; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: radial-gradient(ellipse 80% 60% at 60% 50%, rgba(0,255,136,.07) 0%, transparent 70%), radial-gradient(ellipse 50% 80% at 0% 100%, rgba(0,102,255,.06) 0%, transparent 60%); pointer-events: none; }
.hero-inner { display: grid; grid-template-columns: 1fr auto; gap: 3rem; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: .5rem; background: rgba(0,255,136,.08); border: 1px solid rgba(0,255,136,.2); border-radius: 20px; padding: .35rem 1rem; font-size: .8rem; color: var(--primary); font-weight: 600; margin-bottom: 1.5rem; letter-spacing: .05em; }
.hero-title { font-family: var(--font-display); font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 700; line-height: 1.1; margin-bottom: 1.2rem; letter-spacing: .02em; }
.gradient-text { background: linear-gradient(135deg, var(--primary), var(--secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-desc { color: var(--text2); font-size: 1.05rem; line-height: 1.7; margin-bottom: 2rem; max-width: 520px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats { display: flex; flex-direction: column; gap: 1rem; }
.stat-card { background: var(--card); border: 1px solid var(--border2); border-radius: var(--radius); padding: 1.25rem 2rem; text-align: center; min-width: 130px; }
.stat-card.online { border-color: rgba(0,255,136,.3); }
.stat-card.online .stat-num { color: var(--primary); }
.stat-num { font-family: var(--font-display); font-size: 2rem; font-weight: 700; line-height: 1; }
.stat-label { font-size: .8rem; color: var(--text3); margin-top: .3rem; text-transform: uppercase; letter-spacing: .08em; }

/* ===== SECTIONS ===== */
.section { padding: 3.5rem 0; }
.section-featured { background: linear-gradient(180deg, transparent, rgba(0,255,136,.03) 50%, transparent); }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.section-title { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; letter-spacing: .03em; }
.section-more { color: var(--text2); font-size: .875rem; transition: var(--transition); }
.section-more:hover { color: var(--primary); }
.boost-hint { font-size: .8rem; color: var(--text3); background: rgba(0,255,136,.06); border: 1px solid rgba(0,255,136,.15); padding: .3rem .8rem; border-radius: 20px; }

/* ===== GAMES GRID ===== */
.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.game-card { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); transition: var(--transition); position: relative; overflow: hidden; color: var(--text); }
.game-card:hover { border-color: var(--game-color, var(--primary)); box-shadow: 0 0 20px rgba(0,0,0,.3); transform: translateY(-2px); opacity: 1; }
.game-card-glow { position: absolute; inset: 0; background: radial-gradient(circle at 20% 50%, var(--game-color, #00ff88), transparent 70%); opacity: 0; transition: var(--transition); }
.game-card:hover .game-card-glow { opacity: .06; }
.game-icon-wrap { width: 40px; height: 40px; flex-shrink: 0; }
.game-icon-placeholder { width: 40px; height: 40px; border-radius: var(--radius-sm); background: var(--game-color, var(--primary)); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.game-name { font-weight: 600; font-size: .9rem; }
.game-meta { display: flex; gap: .75rem; margin-top: .2rem; }
.game-servers, .game-players { font-size: .75rem; color: var(--text3); }
.game-arrow { margin-left: auto; color: var(--text3); font-size: .9rem; transition: var(--transition); }
.game-card:hover .game-arrow { color: var(--game-color, var(--primary)); transform: translateX(3px); }

/* ===== SERVER CARDS ===== */
.servers-grid, .servers-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1.25rem; }
.server-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; transition: var(--transition); position: relative; overflow: hidden; }
.server-card:hover { border-color: var(--border2); transform: translateY(-2px); box-shadow: var(--shadow); }
.server-card--boosted { border-color: rgba(240,165,0,.3) !important; }
.server-card--boosted.boost-gold { border-color: rgba(240,165,0,.5) !important; box-shadow: 0 0 20px rgba(240,165,0,.1); }
.server-card--boosted.boost-platinum { border-color: rgba(200,208,224,.4) !important; box-shadow: 0 0 24px rgba(200,208,224,.1); }
.boost-ribbon { position: absolute; top: 0; right: 0; background: var(--gold); color: var(--bg); font-size: .65rem; font-weight: 700; padding: .25rem .6rem; border-bottom-left-radius: var(--radius-sm); letter-spacing: .08em; }
.server-card-header { display: flex; align-items: flex-start; gap: .9rem; margin-bottom: .9rem; }
.server-logo, .server-logo-placeholder { width: 48px; height: 48px; border-radius: var(--radius-sm); flex-shrink: 0; object-fit: cover; }
.server-logo-placeholder { display: flex; align-items: center; justify-content: center; font-size: 1rem; font-weight: 700; color: var(--bg); }
.server-title-block { flex: 1; min-width: 0; }
.server-name { display: block; font-weight: 600; font-size: .95rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.server-name:hover { color: var(--primary); }
.server-game-tag { font-size: .75rem; font-weight: 600; margin-top: .2rem; text-transform: uppercase; letter-spacing: .06em; }
.server-status { display: flex; align-items: center; gap: .3rem; font-size: .75rem; font-weight: 600; margin-left: auto; flex-shrink: 0; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; }
.status-online .status-dot { background: var(--success); box-shadow: 0 0 6px var(--success); animation: pulse-dot 2s infinite; }
.status-offline .status-dot { background: var(--text3); }
.status-online { color: var(--success); }
.status-offline { color: var(--text3); }
@keyframes pulse-dot { 0%,100%{opacity:1}50%{opacity:.5} }
.server-card-body { margin-bottom: .9rem; }
.server-desc { font-size: .825rem; color: var(--text2); margin-bottom: .6rem; line-height: 1.5; }
.server-meta { display: flex; gap: .9rem; flex-wrap: wrap; }
.meta-item { display: flex; align-items: center; gap: .3rem; font-size: .775rem; color: var(--text3); }
.meta-icon { font-size: .85rem; }
.server-ip { margin-top: .5rem; }
.server-ip code { font-size: .8rem; }
.server-card-footer { display: flex; gap: .5rem; flex-wrap: wrap; }

/* ===== PAGE HEADER ===== */
.page-header { background: var(--bg2); border-bottom: 1px solid var(--border); padding: 2.5rem 0; margin-bottom: 2rem; }
.page-title { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; letter-spacing: .03em; }
.page-subtitle { color: var(--text2); margin-top: .4rem; }

/* ===== FILTERS BAR ===== */
.filters-bar { display: flex; gap: 1rem; align-items: center; margin-bottom: 1.5rem; flex-wrap: wrap; }
.filters-form { display: flex; gap: .75rem; flex: 1; flex-wrap: wrap; }
.filter-input, .filter-select { background: var(--bg3); border: 1px solid var(--border2); border-radius: var(--radius-sm); color: var(--text); padding: .5rem 1rem; font-size: .875rem; outline: none; transition: var(--transition); }
.filter-input:focus, .filter-select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,255,136,.08); }
.filter-select { cursor: pointer; }
.filter-select option { background: var(--bg3); }

/* ===== SERVER DETAIL ===== */
.server-detail-hero { padding: 3rem 0 2rem; background: linear-gradient(to bottom, var(--bg2), var(--bg)); border-bottom: 1px solid var(--border); position: relative; }
.server-banner { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .15; }
.server-detail-header { position: relative; display: flex; align-items: flex-start; gap: 1.5rem; flex-wrap: wrap; }
.server-detail-logo, .server-detail-logo-placeholder { width: 80px; height: 80px; border-radius: var(--radius); flex-shrink: 0; object-fit: cover; }
.server-detail-logo-placeholder { display: flex; align-items: center; justify-content: center; font-size: 1.4rem; font-weight: 700; color: var(--bg); background: var(--primary); }
.server-detail-title { flex: 1; }
.server-detail-game { font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .4rem; display: flex; align-items: center; gap: .75rem; }
.server-detail-title h1 { font-family: var(--font-display); font-size: 2rem; font-weight: 700; line-height: 1.2; }
.server-status-row { display: flex; align-items: center; gap: 1.5rem; margin-top: .75rem; flex-wrap: wrap; }
.status-badge { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; font-weight: 600; padding: .3rem .8rem; border-radius: 20px; }
.status-badge.online { background: rgba(0,217,111,.1); color: var(--success); border: 1px solid rgba(0,217,111,.3); }
.status-badge.offline { background: rgba(100,110,130,.1); color: var(--text3); border: 1px solid var(--border); }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: pulse-dot 2s infinite; }
.players-count, .map-name, .ping { font-size: .875rem; color: var(--text2); }
.server-detail-actions { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin-left: auto; }
.server-detail-body { padding: 2rem 0; }
.server-detail-grid { display: grid; grid-template-columns: 1fr 300px; gap: 2rem; }
.detail-block { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.25rem; }
.detail-block h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem; letter-spacing: .03em; }
.server-description { color: var(--text2); line-height: 1.7; font-size: .9rem; }
.connect-block { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; flex-wrap: wrap; }
.server-address { font-size: 1rem; padding: .5rem 1rem; }
.meta-row { display: flex; justify-content: space-between; padding: .5rem 0; border-bottom: 1px solid var(--border); font-size: .875rem; }
.meta-row:last-child { border-bottom: none; }
.meta-row span:first-child { color: var(--text3); }
.social-link { display: flex; align-items: center; gap: .5rem; padding: .5rem .75rem; border-radius: var(--radius-sm); color: var(--text2); font-size: .875rem; transition: var(--transition); border: 1px solid var(--border); margin-bottom: .4rem; }
.social-link:hover { color: var(--primary); border-color: var(--primary); background: rgba(0,255,136,.04); opacity: 1; }
.boost-badge { font-size: .65rem; font-weight: 700; padding: .2rem .5rem; border-radius: 4px; letter-spacing: .06em; }
.boost-badge.boost-standard { background: rgba(0,102,255,.2); color: var(--secondary); }
.boost-badge.boost-gold { background: rgba(240,165,0,.2); color: var(--gold); }
.boost-badge.boost-platinum { background: rgba(200,208,224,.15); color: var(--platinum); }
.boost-section { background: linear-gradient(135deg, rgba(0,102,255,.05), rgba(0,255,136,.05)); border-color: rgba(0,255,136,.2); }
.boost-info { color: var(--text2); font-size: .875rem; margin-bottom: 1rem; }
.boost-packages-mini { display: flex; gap: 1rem; flex-wrap: wrap; }
.boost-pkg-mini { background: var(--bg3); border: 1px solid var(--border2); border-radius: var(--radius-sm); padding: 1rem; text-align: center; flex: 1; min-width: 100px; }
.boost-standard.boost-pkg-mini { border-color: rgba(0,102,255,.3); }
.boost-gold.boost-pkg-mini { border-color: rgba(240,165,0,.3); }
.boost-platinum.boost-pkg-mini { border-color: rgba(200,208,224,.3); }
.pkg-name { font-weight: 600; font-size: .85rem; margin-bottom: .3rem; }
.pkg-price { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--primary); }
.pkg-days { font-size: .75rem; color: var(--text3); margin-bottom: .6rem; }

/* ===== BOOST PACKAGES PAGE ===== */
.boost-packages-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; padding: 2rem 0; }
.boost-pkg { background: var(--card); border: 1px solid var(--border2); border-radius: var(--radius-lg); padding: 2rem; text-align: center; position: relative; }
.boost-pkg.boost-standard { border-color: rgba(0,102,255,.3); }
.boost-pkg.boost-gold { border-color: rgba(240,165,0,.4); box-shadow: 0 0 30px rgba(240,165,0,.1); }
.boost-pkg.boost-platinum { border-color: rgba(200,208,224,.4); box-shadow: 0 0 30px rgba(200,208,224,.1); }
.pkg-type-badge { display: inline-block; font-size: .7rem; font-weight: 800; letter-spacing: .1em; padding: .25rem .75rem; border-radius: 20px; margin-bottom: 1rem; }
.boost-standard .pkg-type-badge { background: rgba(0,102,255,.15); color: var(--secondary); }
.boost-gold .pkg-type-badge { background: rgba(240,165,0,.15); color: var(--gold); }
.boost-platinum .pkg-type-badge { background: rgba(200,208,224,.12); color: var(--platinum); }
.boost-pkg h3 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; margin-bottom: .5rem; }
.pkg-price-big { font-family: var(--font-display); font-size: 2.8rem; font-weight: 700; color: var(--primary); line-height: 1; margin: 1rem 0 .25rem; }
.pkg-price-big span { font-size: 1.2rem; color: var(--text2); }
.pkg-duration { font-size: .875rem; color: var(--text3); margin-bottom: 1.5rem; }
.pkg-features { list-style: none; text-align: left; margin-bottom: 1.5rem; }
.pkg-features li { padding: .4rem 0; border-bottom: 1px solid var(--border); font-size: .875rem; color: var(--text2); }
.pkg-features li:last-child { border-bottom: none; }
.pkg-payment-section { border-top: 1px solid var(--border); padding-top: 1.25rem; }
.pkg-payment-section h4 { font-size: .85rem; color: var(--text2); margin-bottom: .75rem; }
.payment-methods { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.pay-method { display: flex; align-items: center; gap: .4rem; background: var(--bg3); border: 1px solid var(--border2); border-radius: var(--radius-sm); padding: .4rem .75rem; cursor: pointer; font-size: .8rem; color: var(--text2); transition: var(--transition); }
.pay-method:has(input:checked) { border-color: var(--primary); color: var(--primary); background: rgba(0,255,136,.06); }
.pay-method input { display: none; }

/* ===== AUTH ===== */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem; background: radial-gradient(ellipse at 50% 0%, rgba(0,255,136,.06) 0%, transparent 60%); }
.auth-card { background: var(--card); border: 1px solid var(--border2); border-radius: var(--radius-lg); padding: 2.5rem; width: 100%; max-width: 420px; }
.auth-header { text-align: center; margin-bottom: 2rem; }
.auth-header .brand { justify-content: center; margin-bottom: 1.5rem; }
.auth-header h2 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; }
.auth-form { display: flex; flex-direction: column; gap: 1rem; }
.auth-footer { text-align: center; margin-top: 1.5rem; font-size: .875rem; color: var(--text2); display: flex; gap: .5rem; justify-content: center; }

/* ===== FORMS ===== */
.form-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; max-width: 760px; }
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group label { font-size: .85rem; font-weight: 500; color: var(--text2); }
.form-control { background: var(--bg3); border: 1px solid var(--border2); border-radius: var(--radius-sm); color: var(--text); padding: .6rem 1rem; font-size: .9rem; outline: none; transition: var(--transition); width: 100%; }
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,255,136,.08); }
textarea.form-control { resize: vertical; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.server-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ===== PROFILE ===== */
.profile-layout { display: grid; grid-template-columns: 240px 1fr; gap: 2rem; padding: 2rem 0; }
.profile-sidebar { display: flex; flex-direction: column; gap: 1rem; }
.profile-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; text-align: center; }
.profile-avatar { width: 72px; height: 72px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--secondary)); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; font-weight: 700; color: var(--bg); margin: 0 auto 1rem; }
.profile-username { font-weight: 700; font-size: 1.1rem; }
.profile-role { font-size: .8rem; color: var(--text3); text-transform: uppercase; letter-spacing: .06em; margin: .2rem 0 .75rem; }
.profile-balance { font-size: .875rem; color: var(--primary); font-weight: 600; }
.profile-nav { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: .5rem; display: flex; flex-direction: column; gap: .25rem; }
.profile-nav-link { display: block; padding: .6rem 1rem; border-radius: var(--radius-sm); color: var(--text2); font-size: .875rem; font-weight: 500; transition: var(--transition); }
.profile-nav-link:hover, .profile-nav-link.active { color: var(--text); background: var(--bg3); opacity: 1; }
.profile-nav-link.active { color: var(--primary); }
.profile-stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.profile-stat { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; text-align: center; }
.profile-stat .stat-num { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; color: var(--primary); display: block; }
.profile-section { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1rem; }
.profile-section h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem; }
.servers-mini-list { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1rem; }
.server-mini-row { display: flex; align-items: center; gap: 1rem; padding: .5rem .75rem; background: var(--bg3); border-radius: var(--radius-sm); font-size: .875rem; }
.server-mini-name { font-weight: 600; flex: 1; }
.server-mini-game { font-size: .75rem; font-weight: 600; }
.server-mini-status.online { color: var(--success); }
.server-mini-status.offline { color: var(--text3); }

/* ===== GAMES BIG GRID ===== */
.games-grid-big { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.game-card-big { display: flex; flex-direction: column; align-items: center; gap: .75rem; padding: 2rem 1rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); text-align: center; color: var(--text); transition: var(--transition); position: relative; overflow: hidden; }
.game-card-big:hover { border-color: var(--game-color, var(--primary)); transform: translateY(-3px); opacity: 1; }
.game-card-big:hover .game-card-glow { opacity: .08; }
.game-big-icon { font-size: 2.5rem; }
.game-big-name { font-weight: 700; font-size: .95rem; }
.game-big-stats { display: flex; flex-direction: column; gap: .2rem; }
.game-big-stats span { font-size: .75rem; color: var(--text3); }

/* ===== NEWS ===== */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; padding-bottom: 2rem; }
.news-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: var(--transition); }
.news-card:hover { border-color: var(--border2); transform: translateY(-2px); }
.news-img { width: 100%; height: 180px; object-fit: cover; }
.news-body { padding: 1.25rem; }
.news-meta { font-size: .775rem; color: var(--text3); margin-bottom: .5rem; }
.news-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: .6rem; }
.news-card h3 a { color: var(--text); }
.news-card h3 a:hover { color: var(--primary); }
.news-card p { font-size: .875rem; color: var(--text2); margin-bottom: 1rem; }

/* ===== ARTICLE ===== */
.article-wrap { max-width: 760px; margin: 0 auto; padding: 2.5rem 1.5rem; }
.article-header { margin-bottom: 2rem; }
.article-meta { font-size: .8rem; color: var(--text3); margin-bottom: .75rem; }
.article-header h1 { font-family: var(--font-display); font-size: 2rem; font-weight: 700; line-height: 1.3; }
.article-content { line-height: 1.8; color: var(--text2); }
.article-content h2, .article-content h3 { color: var(--text); font-family: var(--font-display); margin: 1.5rem 0 .75rem; }
.article-content p { margin-bottom: 1rem; }

/* ===== PAGINATION ===== */
.pagination { display: flex; gap: .4rem; justify-content: center; padding: 2rem 0; flex-wrap: wrap; }
.page-btn { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: var(--radius-sm); background: var(--card); border: 1px solid var(--border2); color: var(--text2); font-size: .875rem; transition: var(--transition); }
.page-btn:hover { color: var(--text); border-color: var(--border2); opacity: 1; }
.page-btn.active { background: var(--primary); color: var(--bg); border-color: var(--primary); font-weight: 700; }

/* ===== EMPTY STATE ===== */
.empty-state { text-align: center; padding: 4rem 2rem; color: var(--text2); }
.empty-icon { font-size: 3rem; margin-bottom: 1rem; }
.empty-state h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: .5rem; color: var(--text); }
.empty-state p { color: var(--text3); margin-bottom: 1.5rem; }

/* ===== ALERT ===== */
.alert { padding: .75rem 1rem; border-radius: var(--radius-sm); font-size: .875rem; margin-bottom: 1rem; }
.alert-error { background: rgba(255,61,87,.12); border: 1px solid rgba(255,61,87,.3); color: var(--danger); }
.alert-success { background: rgba(0,217,111,.12); border: 1px solid rgba(0,217,111,.3); color: var(--success); }

/* ===== BADGES ===== */
.badge { display: inline-flex; align-items: center; padding: .2rem .55rem; border-radius: 4px; font-size: .7rem; font-weight: 700; letter-spacing: .04em; background: var(--bg3); color: var(--text3); border: 1px solid var(--border); }
.badge-success { background: rgba(0,217,111,.12); color: var(--success); border-color: rgba(0,217,111,.3); }
.badge-danger { background: rgba(255,61,87,.12); color: var(--danger); border-color: rgba(255,61,87,.3); }
.badge-warn { background: rgba(255,170,0,.12); color: var(--warn); border-color: rgba(255,170,0,.3); }

/* ===== FOOTER ===== */
.footer { background: var(--bg2); border-top: 1px solid var(--border); padding: 3rem 0 1.5rem; margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-brand .brand { margin-bottom: .75rem; }
.footer-tagline { font-size: .875rem; color: var(--text3); line-height: 1.6; }
.footer-links h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text3); margin-bottom: .75rem; font-weight: 600; }
.footer-links a { display: block; font-size: .875rem; color: var(--text2); margin-bottom: .4rem; transition: var(--transition); }
.footer-links a:hover { color: var(--text); opacity: 1; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 1.25rem; font-size: .8rem; color: var(--text3); }

/* ===== TOGGLE ===== */
.toggle-switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle-slider { position: absolute; inset: 0; background: var(--bg3); border: 1px solid var(--border2); border-radius: 24px; cursor: pointer; transition: var(--transition); }
.toggle-slider::before { content: ''; position: absolute; width: 16px; height: 16px; left: 3px; top: 50%; transform: translateY(-50%); background: var(--text3); border-radius: 50%; transition: var(--transition); }
.toggle-switch input:checked + .toggle-slider { background: rgba(0,255,136,.15); border-color: var(--primary); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px) translateY(-50%); background: var(--primary); }

/* ===== MODAL ===== */
.modal { position: fixed; inset: 0; z-index: 500; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.7); }
.modal-box { position: relative; background: var(--card); border: 1px solid var(--border2); border-radius: var(--radius-lg); padding: 2rem; max-width: 500px; width: 100%; z-index: 1; max-height: 90vh; overflow-y: auto; }
.modal-box-lg { max-width: 700px; }
.modal-box h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; margin-bottom: 1.5rem; }

/* ===== ERROR PAGE ===== */
.error-page { text-align: center; padding: 6rem 2rem; }
.error-code { font-family: var(--font-display); font-size: 8rem; font-weight: 700; color: var(--border2); line-height: 1; margin-bottom: 1rem; }
.error-page h2 { font-size: 1.6rem; font-weight: 600; margin-bottom: .75rem; }
.error-page p { color: var(--text2); margin-bottom: 2rem; }

/* ===== TABLE ===== */
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.data-table th { text-align: left; padding: .7rem 1rem; background: var(--bg2); border-bottom: 1px solid var(--border); color: var(--text3); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; white-space: nowrap; }
.data-table td { padding: .75rem 1rem; border-bottom: 1px solid var(--border); color: var(--text); vertical-align: middle; }
.data-table tr:hover td { background: var(--bg3); }
.row-actions { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.text-center { text-align: center; }
.text-muted { color: var(--text3); }

/* STATUS BADGES */
.status-badge-sm { font-size: .7rem; font-weight: 700; padding: .15rem .5rem; border-radius: 4px; text-transform: uppercase; }
.status-paid { background: rgba(0,217,111,.1); color: var(--success); }
.status-pending { background: rgba(255,170,0,.1); color: var(--warn); }
.status-failed { background: rgba(255,61,87,.1); color: var(--danger); }
.role-admin { background: rgba(255,61,87,.1); color: var(--danger); }
.role-moderator { background: rgba(255,170,0,.1); color: var(--warn); }
.role-user { background: var(--bg3); color: var(--text3); }
.color-swatch { display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: middle; margin-right: 4px; border: 1px solid var(--border); }
.status-dot-sm { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--text3); }
.status-dot-sm.online { background: var(--success); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: row; }
  .server-detail-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .profile-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .hamburger { display: flex; }
  .servers-grid, .servers-list { grid-template-columns: 1fr; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .games-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .filters-form { flex-direction: column; }
}
