/* ==========================================================================
   FriendSMP - Official Website Stylesheet (Blue & Purple Gradient Theme)
   ========================================================================== */

:root {
  --bg-dark: #070814;
  --bg-card: #0f1025;
  --bg-card-hover: #161738;
  --purple-glow: rgba(147, 51, 234, 0.45);
  --blue-glow: rgba(59, 130, 246, 0.35);
  --purple-primary: #9333ea;
  --purple-secondary: #7e22ce;
  --blue-primary: #3b82f6;
  --amber-gold: #f59e0b;
  --text-white: #ffffff;
  --text-gray: #9ca3af;
  --border-color: rgba(147, 51, 234, 0.25);
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-gaming: 'Rajdhani', sans-serif;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-white);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.5;
}

/* ================= UTILITIES & HELPERS ================= */
.hidden {
  display: none !important;
}

/* ================= TAB SYSTEM (CRITICAL: Only active tab shows) ================= */
.tab-pane {
  display: none !important;
}

.tab-pane.active {
  display: block !important;
  animation: fadeInTab 0.25s ease-in-out;
}

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

.text-emerald { color: #10b981; }
.text-blue { color: #3b82f6; }
.text-amber { color: #f59e0b; }
.text-purple { color: #a855f7; }
.text-red { color: #ef4444; }

.full-width { width: 100%; }

/* Scrollbars */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: #2e2652; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #583e9b; }

/* ================= FLOATING SIDEBAR ================= */
.floating-sidebar {
  position: fixed;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(14, 15, 33, 0.9);
  backdrop-filter: blur(12px);
  padding: 8px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.sidebar-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #d1d5db;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.sidebar-btn:hover {
  background: var(--purple-primary);
  color: #fff;
  border-color: #c084fc;
}

.sidebar-btn.avatar-btn {
  padding: 2px;
  background: rgba(147, 51, 234, 0.2);
  border-color: #a855f7;
}

.sidebar-btn.avatar-btn img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
}

.sidebar-btn.discord-btn:hover {
  background: #5865F2;
  border-color: #5865F2;
}

.sidebar-btn .tooltip {
  position: absolute;
  left: 52px;
  top: 50%;
  transform: translateY(-50%);
  background: #14122b;
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.sidebar-btn:hover .tooltip {
  opacity: 1;
}

.sidebar-divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 2px 0;
}

/* ================= TOP NAVBAR ================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 24, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
  height: 64px;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.brand-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px var(--purple-glow));
}

.brand-name {
  font-size: 20px;
  font-weight: 800;
  background: linear-gradient(135deg, #d8b4fe, #fff, #fef08a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.5px;
}

.brand-name span {
  color: var(--purple-primary);
  -webkit-text-fill-color: var(--purple-primary);
}

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

.nav-item {
  background: transparent;
  border: 1px solid transparent;
  color: #d1d5db;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.nav-item i {
  color: #a855f7;
  font-size: 13px;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.nav-item.active {
  background: linear-gradient(135deg, #9333ea, #6366f1);
  color: #fff;
  border-color: #c084fc;
  box-shadow: 0 4px 15px rgba(147, 51, 234, 0.4);
}

.nav-item.active i {
  color: #fff;
}

.nav-item.store-link {
  color: #fde047;
}

.nav-item.store-link i {
  color: #facc15;
}

.badge-sale {
  background: rgba(245, 158, 11, 0.2);
  color: #fef08a;
  border: 1px solid rgba(245, 158, 11, 0.4);
  font-size: 9px;
  padding: 1px 6px;
  border-radius: 12px;
  font-weight: 800;
}

.btn-primary {
  background: linear-gradient(135deg, #9333ea, #4f46e5);
  border: 1px solid #c084fc;
  color: #fff;
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 15px var(--purple-glow);
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #a855f7, #6366f1);
  transform: translateY(-1px);
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 12px;
  background: rgba(147, 51, 234, 0.15);
  border: 1px solid var(--border-color);
  cursor: pointer;
}

.user-chip img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.user-info {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-size: 12px;
  font-weight: 800;
  color: #fff;
}

.user-rank {
  font-size: 10px;
  font-family: monospace;
  color: #c084fc;
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  background: #0e0f24;
  padding: 10px 20px;
  border-bottom: 1px solid var(--border-color);
  gap: 8px;
}

.mobile-menu button {
  background: transparent;
  border: none;
  color: #d1d5db;
  text-align: left;
  padding: 8px 0;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ================= HERO SECTION (Blue & Purple Gradient) ================= */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/hero_minecraft_citadel_1793117229155_96f0f3f6.jpg');
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 7, 40, 0.85) 0%, rgba(11, 12, 38, 0.92) 50%, var(--bg-dark) 100%);
}

.hero-container {
  position: relative;
  z-index: 10;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  width: 100%;
}

.hero-card {
  background: linear-gradient(135deg, rgba(27, 21, 59, 0.9), rgba(18, 19, 45, 0.9));
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
  text-decoration: none;
}

.hero-card:hover {
  border-color: #c084fc;
  transform: translateY(-3px);
  box-shadow: 0 15px 35px var(--purple-glow);
}

.hero-card.discord-card {
  border-color: rgba(59, 130, 246, 0.3);
}

.hero-card.discord-card:hover {
  border-color: #60a5fa;
  box-shadow: 0 15px 35px var(--blue-glow);
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.ping-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.discord-dot {
  background: #3b82f6;
  box-shadow: 0 0 8px #3b82f6;
}

.status-text {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #c084fc;
}

.discord-ind .status-text {
  color: #93c5fd;
}

.server-ip {
  font-family: var(--font-gaming);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.copy-icon {
  font-size: 14px;
  color: #9ca3af;
}

.card-hint {
  font-size: 11px;
  color: #9ca3af;
  margin-top: 2px;
}

.card-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.play-circle {
  background: linear-gradient(135deg, #9333ea, #6366f1);
}

.discord-circle {
  background: #5865F2;
}

.hero-logo-box {
  position: relative;
  display: flex;
  justify-content: center;
}

.logo-glow {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--purple-primary);
  filter: blur(40px);
  opacity: 0.6;
}

.hero-logo {
  position: relative;
  width: 160px;
  height: 160px;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.8));
  transition: transform 0.3s ease;
}

.hero-logo:hover {
  transform: scale(1.05);
}

.port-bar {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.chip {
  background: rgba(10, 10, 20, 0.6);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  color: #d1d5db;
  display: flex;
  align-items: center;
  gap: 6px;
}

.chip.clickable {
  cursor: pointer;
}

.chip.clickable:hover {
  border-color: #60a5fa;
}

/* ================= CONTENT & NEWS ================= */
.content-container {
  max-width: 1000px;
  margin: -30px auto 60px;
  padding: 0 20px;
  position: relative;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.news-card {
  background: linear-gradient(180deg, rgba(20, 18, 45, 0.95), rgba(11, 12, 22, 0.95));
  border: 1px solid var(--border-color);
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.news-header {
  padding: 24px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.news-title-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.news-title-box h2 {
  font-size: 18px;
  font-weight: 800;
  background: linear-gradient(135deg, #d8b4fe, #fbcfe8, #fef08a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.news-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-details {
  text-align: right;
}

.author-name {
  font-size: 13px;
  font-weight: 800;
  font-family: monospace;
  color: var(--amber-gold);
}

.badge-owner {
  background: rgba(245, 158, 11, 0.2);
  color: #fef08a;
  border: 1px solid rgba(245, 158, 11, 0.4);
  font-size: 9px;
  padding: 1px 6px;
  border-radius: 4px;
}

.author-time {
  display: block;
  font-size: 11px;
  color: #9ca3af;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--amber-gold);
}

.news-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.greeting h3 {
  color: var(--amber-gold);
  font-size: 16px;
  margin-bottom: 6px;
}

.greeting p {
  color: #d1d5db;
  font-size: 14px;
}

.info-box {
  background: rgba(8, 9, 20, 0.8);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 20px;
}

.info-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.badge-season {
  background: rgba(147, 51, 234, 0.2);
  color: #d8b4fe;
  border: 1px solid var(--border-color);
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 700;
}

.info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  color: #e5e7eb;
}

.info-list .cash-prize {
  color: var(--amber-gold);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.server-reminder {
  background: rgba(147, 51, 234, 0.08);
  border: 1px solid rgba(147, 51, 234, 0.2);
  padding: 12px;
  border-radius: 10px;
  text-align: center;
  font-size: 13px;
  color: #d1d5db;
}

.news-footer {
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stats-row {
  display: flex;
  gap: 10px;
}

.stat-pill {
  background: rgba(255, 255, 255, 0.05);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  color: #d1d5db;
  display: flex;
  align-items: center;
  gap: 6px;
  border: none;
}

.stat-pill.clickable {
  cursor: pointer;
}

.stat-pill.clickable:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-read {
  background: linear-gradient(135deg, #9333ea, #4f46e5);
  border: none;
  color: #fff;
  padding: 8px 18px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Comments Section */
.expandable-section {
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.rules-snippet {
  background: #090a16;
  padding: 14px;
  border-radius: 10px;
  font-size: 12px;
  color: #9ca3af;
}

.rules-snippet h4 {
  color: #c084fc;
  margin-bottom: 6px;
}

.rules-snippet ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.comments-wrap h4 {
  font-size: 14px;
  margin-bottom: 12px;
}

#commentForm {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

#commentForm input {
  flex: 1;
  background: #090a16;
  border: 1px solid var(--border-color);
  padding: 10px 14px;
  border-radius: 10px;
  color: #fff;
  font-size: 12px;
  outline: none;
}

.comment-card {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  margin-bottom: 8px;
}

.comment-card img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.comment-card .c-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 4px;
}

.comment-card p {
  font-size: 12px;
  color: #d1d5db;
}

/* ================= GAMEMODES SECTION ================= */
.gamemodes-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.section-heading h2 {
  font-size: 20px;
  font-weight: 800;
}

.section-heading p {
  font-size: 12px;
  color: #9ca3af;
}

.btn-link {
  background: transparent;
  border: none;
  color: #c084fc;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

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

.gamemode-card {
  background: #0f1025;
  border: 1px solid var(--border-color);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  transition: transform 0.3s ease;
}

.gamemode-card:hover {
  transform: translateY(-4px);
  border-color: #a855f7;
}

.gamemode-thumb {
  position: relative;
  height: 200px;
}

.gamemode-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge-mode {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 14px;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
}

.mode-red { background: rgba(220, 38, 38, 0.9); }
.mode-blue { background: rgba(37, 99, 235, 0.9); }

.mode-players {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.7);
  color: #10b981;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 10px;
}

.gamemode-info {
  padding: 20px;
}

.gamemode-info h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.gamemode-info p {
  font-size: 12px;
  color: #9ca3af;
  margin-bottom: 12px;
}

.tags-row {
  display: flex;
  gap: 6px;
}

.tags-row span {
  background: rgba(147, 51, 234, 0.15);
  border: 1px solid var(--border-color);
  color: #d8b4fe;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 6px;
}

/* ================= PAGE CONTAINER FOR TABS ================= */
.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.page-container {
  max-width: 1000px;
  margin: 40px auto 80px;
  padding: 0 20px;
}

.page-header {
  text-align: center;
  margin-bottom: 30px;
}

.sub-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(147, 51, 234, 0.15);
  border: 1px solid var(--border-color);
  color: #c084fc;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.page-header h1 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 8px;
}

.page-header p {
  font-size: 14px;
  color: #9ca3af;
}

/* Rules Tab */
.rules-filter input {
  width: 100%;
  background: #0f1025;
  border: 1px solid var(--border-color);
  padding: 12px 18px;
  border-radius: 12px;
  color: #fff;
  font-size: 13px;
  margin-bottom: 24px;
  outline: none;
}

.rules-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rule-card {
  background: #0f1025;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 20px;
}

.rule-card h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.rule-card p {
  font-size: 13px;
  color: #9ca3af;
  margin-bottom: 10px;
}

.punishment {
  font-size: 12px;
  color: var(--amber-gold);
}

/* Vote Tab */
.vote-ign-card {
  background: linear-gradient(135deg, #161338, #0d0e22);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.vote-ign-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.vote-ign-left img {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  border: 1px solid #c084fc;
}

.sub-label {
  font-size: 11px;
  color: #c084fc;
  font-weight: 700;
  text-transform: uppercase;
}

.vote-ign-input-wrap input {
  background: #080816;
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  outline: none;
}

.vote-streak-box {
  text-align: right;
}

.vote-streak-box strong {
  display: block;
  font-size: 20px;
  color: var(--amber-gold);
}

.alert-box {
  background: rgba(147, 51, 234, 0.2);
  border: 1px solid #a855f7;
  color: #e9d5ff;
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 13px;
}

.vote-sites-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.vote-card {
  background: #0f1025;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.vote-card-header {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #9ca3af;
}

.badge-tag {
  background: rgba(147, 51, 234, 0.2);
  color: #d8b4fe;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
}

.reward-pill {
  background: rgba(0, 0, 0, 0.4);
  padding: 8px;
  border-radius: 8px;
  font-size: 12px;
  color: var(--amber-gold);
}

/* Map Tab */
.map-wrapper {
  position: relative;
  height: 480px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.map-screen {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
  transition: transform 0.3s ease;
}

.map-grid-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(255,255,255,0.05) 1px, transparent 1px),
              linear-gradient(to bottom, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 4rem 4rem;
}

.map-hud-top {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
}

.hud-coords {
  background: rgba(0,0,0,0.7);
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-family: monospace;
}

.hud-buttons button {
  background: rgba(0,0,0,0.7);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
}

.map-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.map-pin i {
  background: var(--purple-primary);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.6);
}

.pin-label {
  margin-top: 4px;
  background: rgba(0,0,0,0.8);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 10px;
  white-space: nowrap;
}

.pin-1 { top: 40%; left: 50%; }
.pin-2 { top: 65%; left: 35%; }

/* Store Tab */
.store-banner {
  background: linear-gradient(135deg, #1b123f, #10122d);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.cart-trigger-btn {
  background: var(--purple-primary);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

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

.store-item {
  background: #0f1025;
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.store-item.rank-gold {
  border-color: rgba(245, 158, 11, 0.4);
}

.store-item-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 11px;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 10px 0 16px;
}

.price-row .price {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
}

.price-row .original-price {
  font-size: 14px;
  color: #6b7280;
  text-decoration: line-through;
}

.perks-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  color: #d1d5db;
  margin-bottom: 20px;
}

.perks-list i {
  color: #c084fc;
  margin-right: 6px;
}

/* Staff & Apply Tabs */
.staff-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.staff-card-v2 {
  background: linear-gradient(180deg, #161338, #0e0f22);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.staff-card-v2:hover {
  transform: translateY(-5px);
  border-color: #c084fc;
  box-shadow: 0 15px 35px var(--purple-glow);
}

.staff-avatar-wrap {
  position: relative;
  margin-bottom: 16px;
}

.staff-avatar-wrap img {
  width: 90px;
  height: 90px;
  border-radius: 20px;
  border: 2px solid #a855f7;
  background: #1e1c38;
  object-fit: contain;
}

.online-indicator {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #10b981;
  border: 2px solid #161338;
}

.staff-card-v2 h3 {
  font-size: 20px;
  font-family: monospace;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}

.badge-owner-lg {
  background: rgba(245, 158, 11, 0.2);
  color: #fef08a;
  border: 1px solid rgba(245, 158, 11, 0.5);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.badge-manager-lg {
  background: rgba(147, 51, 234, 0.2);
  color: #d8b4fe;
  border: 1px solid rgba(147, 51, 234, 0.5);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.staff-desc {
  font-size: 12px;
  color: #9ca3af;
  margin-bottom: 20px;
  flex: 1;
}

.staff-discord-link {
  width: 100%;
  background: rgba(88, 101, 242, 0.15);
  border: 1px solid rgba(88, 101, 242, 0.4);
  color: #c7d2fe;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-family: monospace;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.staff-discord-link:hover {
  background: #5865F2;
  color: #fff;
}

.discord-btn-cta {
  background: #5865F2;
  color: #fff;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s ease;
}

.discord-btn-cta:hover {
  transform: translateY(-2px);
  background: #4752c4;
}

.apply-form {
  background: #0f1025;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: #d1d5db;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: #070814;
  border: 1px solid var(--border-color);
  padding: 10px 14px;
  border-radius: 10px;
  color: #fff;
  font-size: 13px;
  outline: none;
}

/* ================= FOOTER ================= */
.footer {
  background: #05060d;
  border-top: 1px solid var(--border-color);
  padding: 60px 0 40px;
  margin-top: auto;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.col-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.col-title h3 {
  font-size: 18px;
  font-weight: 800;
}

.title-bar {
  width: 20px;
  height: 4px;
  background: linear-gradient(90deg, #9333ea, #3b82f6);
  border-radius: 4px;
}

.footer-col p {
  font-size: 13px;
  color: #9ca3af;
  margin-bottom: 14px;
}

.footer-ip-btn {
  background: #101224;
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 8px 16px;
  border-radius: 10px;
  font-family: monospace;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}

.footer-links a {
  color: #9ca3af;
  text-decoration: none;
}

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

.btn-store-red {
  background: linear-gradient(135deg, #ef4444, #9333ea);
  border: none;
  color: #fff;
  padding: 8px 20px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #6b7280;
}

.footer-bottom .disclaimer {
  font-size: 11px;
}

.bottom-links {
  display: flex;
  gap: 10px;
}

.bottom-links a {
  color: #9ca3af;
}

/* ================= MODALS & DRAWERS ================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: linear-gradient(180deg, #181438, #0e0f22);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.8);
  overflow: hidden;
}

.modal-header-bar {
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #9333ea, #f59e0b);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: transparent;
  border: none;
  color: #9ca3af;
  font-size: 18px;
  cursor: pointer;
}

.modal-body {
  padding: 28px;
}

.modal-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.modal-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(147, 51, 234, 0.2);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #c084fc;
}

.badge-green {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 10px;
}

.skin-preview-card {
  background: #090a16;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.skin-preview-card img {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  border: 1px solid #c084fc;
}

.player-ign {
  display: block;
  font-family: monospace;
  font-size: 16px;
  color: #fff;
}

.sub-text {
  font-size: 11px;
  color: #9ca3af;
}

.quick-accounts {
  margin: 14px 0 20px;
  font-size: 11px;
  color: #9ca3af;
}

.quick-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.quick-btns button {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #d1d5db;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  cursor: pointer;
}

.modal-submit-btn {
  justify-content: center;
  padding: 12px;
  font-size: 14px;
}

.modal-disclaimer {
  font-size: 11px;
  color: #9ca3af;
  text-align: center;
  margin-top: 14px;
}

/* Profile Modal */
.profile-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-header img {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  border: 2px solid #c084fc;
}

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

.stat-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 6px;
  text-align: center;
}

.stat-box i {
  font-size: 16px;
  margin-bottom: 4px;
}

.stat-box span {
  display: block;
  font-size: 10px;
  color: #9ca3af;
}

.stat-box strong {
  display: block;
  font-size: 14px;
  font-family: monospace;
  margin-top: 2px;
}

.btn-logout {
  width: 100%;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  padding: 10px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}

/* Cart Drawer */
.cart-drawer {
  position: absolute;
  top: 0;
  right: 0;
  width: 360px;
  height: 100%;
  background: #0f1025;
  border-left: 1px solid var(--border-color);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 0;
}

.cart-item-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13px;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 14px;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .gamemodes-grid,
  .vote-sites-grid,
  .store-grid,
  .staff-grid,
  .staff-cards-grid,
  .join-steps-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .vote-grid-6 {
    grid-template-columns: 1fr;
  }
}

/* ================= EXACT VOTE TAB (image_d125f41d.png) ================= */
.vote-apple-card {
  background: #141416;
  border: 1px solid #23232c;
  border-radius: 12px;
  padding: 32px 28px;
  max-width: 860px;
  margin: 30px auto;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.vote-tag-red {
  color: #ff4757;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.vote-title-center h1 {
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 24px;
}

.emerald-key-banner {
  background: #0d0e12;
  border: 1px solid #1f2029;
  border-radius: 8px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.emerald-key-banner .key-icon-wrap {
  color: #2ed573;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.emerald-key-banner p {
  color: #94a3b8;
  font-size: 14px;
  margin: 0;
}

.emerald-key-banner strong {
  color: #2ed573;
}

.vote-ign-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid #1f2029;
  border-radius: 8px;
  padding: 10px 16px;
  margin-bottom: 24px;
}

.ign-left {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #9ca3af;
}

.ign-left img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.btn-link {
  background: transparent;
  border: none;
  color: #c084fc;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

.vote-grid-6 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.btn-vote-coral {
  background: #ff4757;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 16px 24px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(255, 71, 87, 0.35);
  text-decoration: none;
}

.btn-vote-coral:hover {
  background: #ff3344;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 71, 87, 0.55);
}

.btn-vote-coral-sm {
  background: #ff4757;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-vote-coral-sm:hover {
  background: #ff3344;
}

/* ================= EXACT STAFF TAB (image_02a3dcda.png) ================= */
.space-y-staff {
  max-width: 980px;
  margin: 30px auto;
}

.staff-category-block {
  margin-bottom: 34px;
}

.staff-cat-title {
  color: #ff4757;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: 0.3px;
}

.staff-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.staff-pill-card {
  background: #141416;
  border: 1px solid #23232c;
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.staff-pill-card:hover {
  background: #1a1b1f;
  border-color: rgba(255, 71, 87, 0.4);
  transform: translateY(-2px);
}

.staff-skin {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  image-rendering: pixelated;
  flex-shrink: 0;
}

.staff-pill-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.staff-pill-name {
  color: #ff4757;
  font-size: 14px;
  font-weight: 700;
}

.staff-pill-disc {
  color: #94a3b8;
  font-size: 12px;
  font-family: monospace;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ================= PIKANETWORK STYLE LOGIN MODAL (image_2b397ffc.png) ================= */
.pika-login-card {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  max-width: 520px;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  animation: modalScaleUp 0.25s ease-out;
}

@keyframes modalScaleUp {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.pika-close {
  position: absolute;
  top: 14px;
  left: 16px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  z-index: 10;
  transition: background 0.2s ease;
}

.pika-close:hover {
  background: rgba(255, 255, 255, 0.35);
}

.pika-modal-header {
  background: linear-gradient(135deg, #7e22ce, #581c87);
  padding: 36px 28px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.pika-header-text {
  max-width: 280px;
}

.pika-store-tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.7);
  display: block;
  margin-bottom: 6px;
}

.pika-header-text h2 {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
}

.pika-skin-box img {
  width: 100px;
  height: 100px;
  image-rendering: pixelated;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.4));
}

.pika-modal-body {
  padding: 28px;
  background: #ffffff;
  color: #0f172a;
}

.pika-input-group input {
  width: 100%;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 14px 16px;
  color: #0f172a;
  font-size: 16px;
  font-weight: 600;
  outline: none;
  font-family: var(--font-main);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pika-input-group input:focus {
  border-color: #9333ea;
  box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.15);
  background: #ffffff;
}

.pika-continue-btn {
  width: 100%;
  background: linear-gradient(135deg, #fdba74, #fb923c);
  color: #7c2d12;
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 14px rgba(251, 146, 60, 0.4);
  transition: all 0.2s ease;
  margin-top: 16px;
}

.pika-continue-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(251, 146, 60, 0.6);
  background: linear-gradient(135deg, #fed7aa, #fdba74);
}

.pika-disclaimer {
  font-size: 12px;
  color: #64748b;
  text-align: center;
  margin-top: 18px;
  line-height: 1.5;
}


.step-purple { background: rgba(147, 51, 234, 0.2); color: #c084fc; border: 1px solid rgba(147, 51, 234, 0.4); }
.step-blue { background: rgba(59, 130, 246, 0.2); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.4); }
.step-emerald { background: rgba(16, 185, 129, 0.2); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.4); }

.join-step-box h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}

.join-step-box p {
  font-size: 12px;
  color: #9ca3af;
  line-height: 1.5;
}
