/* ===========================
   CRAFTMC SERVER STORE STYLES
   =========================== */

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

:root {
  --bg-dark: #0f1117;
  --bg-card: #1a1d26;
  --bg-nav: #111318;
  --accent-green: #22c55e;
  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;
  --text-primary: #f0f0f0;
  --text-muted: #9ca3af;
  --border: rgba(255,255,255,0.08);
  --shadow: 0 8px 32px rgba(0,0,0,0.5);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ========== SALE BANNER ========== */
.sale-banner {
  background: linear-gradient(90deg, #1a1a1a 0%, #111 50%, #1a1a1a 100%);
  border-bottom: 2px solid var(--accent-green);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 100;
  animation: bannerPulse 3s ease infinite;
}

@keyframes bannerPulse {
  0%, 100% { border-color: var(--accent-green); }
  50% { border-color: #16a34a; }
}

.sale-badge {
  background: var(--accent-green);
  color: #000;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
  animation: scalePulse 1.5s ease infinite;
}

@keyframes scalePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.sale-text { color: var(--text-primary); }

.sale-ends { color: var(--text-muted); }

.countdown {
  color: #fbbf24;
  font-weight: 900;
  letter-spacing: 1px;
}

.sale-close {
  position: absolute;
  right: 16px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s;
}
.sale-close:hover { color: var(--text-primary); background: rgba(255,255,255,0.1); }

/* ========== HERO SECTION ========== */
.hero {
  position: relative;
  height: 340px;
  overflow: hidden;
  background: #87ceeb;
}

/* Actual banner image fills the hero */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--hero-bg-url, url('hero-bg.png')) center center / cover no-repeat;
  z-index: 0;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(to bottom, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0.45) 100%),
    linear-gradient(to right,  rgba(0,0,0,0.25) 0%, transparent 30%, transparent 70%, rgba(0,0,0,0.25) 100%);
  z-index: 1;
}


.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 40px;
}

.hero-char {
  flex: 0 0 auto;
}

.mc-char {
  font-size: 100px;
  filter: drop-shadow(0 0 20px rgba(59,130,246,0.5));
  user-select: none;
}

.char-left-anim { animation: floatLeft 3s ease-in-out infinite; }
.char-right-anim { animation: floatRight 3s ease-in-out infinite 0.5s; }

/* Hide emoji chars since real characters are in the bg image */
.hero-char { display: none; }

@keyframes floatLeft {
  0%, 100% { transform: translateY(0px) rotate(-2deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
}

@keyframes floatRight {
  0%, 100% { transform: translateY(-5px) rotate(2deg); }
  50% { transform: translateY(8px) rotate(-2deg); }
}

.hero-logo {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0px;
  z-index: 3;
}

/* Circular MangoSMP icon — floats & glows */
.hero-logo-icon {
  height: 130px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 8px #000) drop-shadow(0 0 25px rgba(255,165,0,0.9)) drop-shadow(0 0 55px rgba(34,197,94,0.6));
  animation: logoFloat 3s ease-in-out infinite, logoGlow 2.5s ease-in-out infinite alternate;
  transition: transform 0.3s;
  position: relative;
  z-index: 2;
}

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

/* MANGO SMP NETWORK text logo — slides up from behind the icon */
.hero-logo-text {
  height: 100px;
  width: auto;
  max-width: 520px;
  object-fit: contain;
  /* Remove white background from the PNG */
  mix-blend-mode: multiply;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.8)) drop-shadow(0 0 30px rgba(255,140,0,0.5));
  animation: textLogoFadeIn 0.8s ease-out both, logoGlow 3s ease-in-out infinite alternate 0.5s;
  transition: transform 0.3s;
  margin-top: -18px;
  position: relative;
  z-index: 1;
}

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

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


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

@keyframes logoGlow {
  from { filter: drop-shadow(0 0 20px rgba(255,165,0,0.6)) drop-shadow(0 0 40px rgba(34,197,94,0.3)); }
  to   { filter: drop-shadow(0 0 40px rgba(255,165,0,0.95)) drop-shadow(0 0 80px rgba(34,197,94,0.6)); }
}


.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255,255,255,0.4);
  border-radius: 50%;
  animation: particleFloat linear infinite;
}

@keyframes particleFloat {
  0% { transform: translateY(100%) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}

/* ========== NAVBAR ========== */
.navbar {
  background: color-mix(in srgb, var(--bg-nav) 90%, transparent);
  border: 1px solid var(--border);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 16px;
  z-index: 50;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
  border-radius: 20px;
  max-width: 1200px;
  width: calc(100% - 48px);
  margin: -40px auto 24px;
  transition: all 0.3s ease;
}

/* Navbar MangoSMP logo */
.nav-logo-wrap {
  display: flex;
  align-items: center;
  margin-right: 8px;
}
.nav-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(255,165,0,0.5));
  transition: transform 0.25s, filter 0.25s;
}
.nav-logo-img:hover {
  transform: scale(1.08);
  filter: drop-shadow(0 4px 16px rgba(255,165,0,0.8));
}


.server-selector {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #a3e635; /* Vibrant lime green button */
  border: none;
  border-radius: 12px;
  padding: 8px 16px;
  cursor: pointer;
  font-weight: 800;
  font-size: 13px;
  color: #000000;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  user-select: none;
  box-shadow: 0 4px 12px rgba(163, 230, 53, 0.2);
}

.server-selector:hover { 
  background: #b4f246; 
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(163, 230, 53, 0.4); 
}

.selector-icon { font-size: 15px; }
.selector-arrow { font-size: 10px; color: #000; margin-left: 4px; }

.selector-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #1e2130;
  border: 1px solid var(--border);
  border-radius: 12px;
  min-width: 160px;
  overflow: hidden;
  box-shadow: var(--shadow);
  z-index: 100;
  color: var(--text-primary);
}

.selector-dropdown.open { display: block; animation: fadeDown 0.2s ease; }

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

.dropdown-item {
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  color: var(--text-primary);
}

.dropdown-item:hover, .dropdown-item.active {
  background: rgba(255,255,255,0.05);
  color: #a3e635;
}

.server-ip {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #111318;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.ip-label { color: var(--text-muted); font-weight: 600; }
.ip-text { color: var(--text-primary); letter-spacing: 1px; font-weight: 800; }

.server-status {
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.server-status.online {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #a3e635;
  color: #000;
  border: none;
  padding: 2px 10px;
  font-size: 9px;
  font-weight: 900;
  border-radius: 9999px;
  white-space: nowrap;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(163, 230, 53, 0.3);
  animation: statusPulse 2s ease infinite;
}

@keyframes statusPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(163,230,53,0.4); transform: translateX(-50%) scale(1); }
  50% { box-shadow: 0 0 0 4px rgba(163,230,53,0); transform: translateX(-50%) scale(1.03); }
}

.server-status.offline {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #ef4444;
  color: #fff;
  border: none;
  padding: 2px 10px;
  font-size: 9px;
  font-weight: 900;
  border-radius: 9999px;
  white-space: nowrap;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3);
  animation: statusPulseOffline 2s ease infinite;
}

@keyframes statusPulseOffline {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); transform: translateX(-50%) scale(1); }
  50% { box-shadow: 0 0 0 4px rgba(239, 68, 68, 0); transform: translateX(-50%) scale(1.03); }
}

.copy-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 14px;
  padding: 4px;
  border-radius: 4px;
  transition: transform 0.2s;
  color: var(--text-muted);
}
.copy-btn:hover { transform: scale(1.2); color: var(--text-primary); }

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

.nav-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 12px;
  border: none;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.vote-btn {
  background: linear-gradient(135deg, #e11d48, #be123c);
  color: #fff;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.2);
}
.vote-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(225, 29, 72, 0.4); }

.staff-btn {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: #fff;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}
.staff-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(139, 92, 246, 0.4); }

.user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #111318;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 6px 14px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.user-profile:hover {
  background: #1e2130;
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.avatar-img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  object-fit: cover;
  background: #1a1d26;
}

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

.username {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
}

.user-desc {
  font-size: 9px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.cart-btn {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: 12px;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}
.cart-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(37, 99, 235, 0.4); }

/* ========== MAIN CONTENT ========== */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== SHOP SECTION ========== */
.shop-section {
  padding: 36px 0 24px;
}

.shop-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.shop-icon { font-size: 22px; }

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

/* SHOP CARDS */
.shop-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 110px;
}

.shop-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 16px 40px rgba(0,0,0,0.6);
}

.shop-card:hover .card-hover-overlay { opacity: 1; }
.shop-card:hover .card-shine { animation: shineMove 0.6s ease; }

.card-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 30px;
  height: 100%;
}

.card-text { flex: 1; }

.card-title {
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
  margin-bottom: 4px;
}

.card-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
}

.card-icon {
  font-size: 70px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
  transition: transform 0.3s;
  flex: 0 0 auto;
}

.shop-card:hover .card-icon { transform: scale(1.1) rotate(5deg); }

.card-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.07);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 1;
}

.card-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  z-index: 3;
  pointer-events: none;
}

@keyframes shineMove {
  0% { left: -100%; }
  100% { left: 200%; }
}

/* CARD COLORS */
.ranks-card {
  background: linear-gradient(135deg, #9333ea 0%, #c026d3 50%, #a855f7 100%);
}

.coins-card {
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 50%, #eab308 100%);
}

.crate-card {
  background: linear-gradient(135deg, #06b6d4 0%, #0ea5e9 50%, #22d3ee 100%);
}

.others-card {
  background: linear-gradient(135deg, #7c3aed 0%, #6366f1 50%, #8b5cf6 100%);
}

.merch-card {
  background: linear-gradient(135deg, #16a34a 0%, #22c55e 50%, #15803d 100%);
  grid-column: 1 / -1;
  max-width: 50%;
}

/* ========== INFO SECTION ========== */
.info-section {
  padding: 60px 0;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  background: #141720;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.info-card {
  padding: 48px 48px;
  text-align: center;
}

.info-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 16px;
}

.support-title { color: #3b82f6; }
.refund-title { color: #f59e0b; }

.info-text {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 12px;
}

.discord-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #7c83ff;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  margin: 8px 0;
  transition: all 0.2s;
}
.discord-link:hover { color: #a5b4fc; transform: scale(1.05); }

.discord-logo { font-size: 20px; }

.info-note {
  color: #64748b;
  font-size: 13px;
  font-style: italic;
  margin-top: 8px;
}

.info-divider {
  width: 1px;
  background: var(--border);
  margin: 24px 0;
}

/* ========== FOOTER ========== */
.footer {
  background: #0a0c12;
  border-top: 1px solid var(--border);
  padding-top: 60px;
}

.footer-top {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 60px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}

/* Footer MangoSMP logo image */
.footer-logo-img {
  height: 90px;
  width: auto;
  object-fit: contain;
  margin-bottom: 10px;
  filter: drop-shadow(0 4px 16px rgba(255,165,0,0.4));
  transition: filter 0.3s, transform 0.3s;
}
.footer-logo-img:hover {
  filter: drop-shadow(0 6px 24px rgba(255,165,0,0.7));
  transform: scale(1.05);
}

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

.footer-ip-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1e2130;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.footer-copy {
  color: #475569;
  font-size: 12px;
  margin-bottom: 4px;
}

.footer-legal {
  color: #374151;
  font-size: 11px;
}

.footer-col-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.footer-col-text {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.discord-join-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #5865f2;
  color: #fff;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.25s;
}
.discord-join-btn:hover { background: #4752c4; transform: translateY(-2px); box-shadow: 0 4px 15px rgba(88,101,242,0.4); }

.social-icons {
  display: flex;
  gap: 10px;
}

.social-btn {
  width: 40px;
  height: 40px;
  background: #1e2130;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 800;
  transition: all 0.25s;
}
.social-btn:hover { background: #252840; color: #fff; transform: translateY(-3px); border-color: rgba(255,255,255,0.2); }

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

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-primary); }

.footer-bottom {
  background: #070810;
  border-top: 1px solid var(--border);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #374151;
  max-width: 100%;
}

.footer-bottom-links {
  display: flex;
  gap: 12px;
  align-items: center;
}

.footer-bottom-links a {
  color: #4b5563;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-bottom-links a:hover { color: var(--text-muted); }

/* ========== MODAL ========== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: #1a1d26;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 40px;
  max-width: 480px;
  width: 90%;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}

.modal-overlay.active .modal { transform: scale(1); }

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255,255,255,0.1);
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.modal-close:hover { background: rgba(255,255,255,0.2); color: #fff; }

.modal-title {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #f97316, #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.modal-body {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 24px;
}

.modal-action-btn {
  background: linear-gradient(135deg, #f97316, #fbbf24);
  color: #000;
  border: none;
  padding: 12px 28px;
  border-radius: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.25s;
}
.modal-action-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(249,115,22,0.4); }

/* ========== TOAST ========== */
.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: #1e2130;
  border: 1px solid rgba(255,255,255,0.1);
  border-left: 3px solid #22c55e;
  color: var(--text-primary);
  padding: 14px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  z-index: 300;
  transform: translateX(120%);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.toast.show { transform: translateX(0); }

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: #2d3148; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #3d4168; }

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .navbar {
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 16px;
    width: calc(100% - 24px);
    margin: -20px auto 16px;
    top: 8px;
    border-radius: 16px;
  }
  .nav-center { order: 3; width: 100%; justify-content: center; }
  .shop-grid { grid-template-columns: 1fr; }
  .merch-card { max-width: 100%; grid-column: auto; }
  .info-grid { grid-template-columns: 1fr; }
  .info-divider { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .hero-char { display: none; }
  .logo-main { font-size: 28px; }
}

@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .card-title { font-size: 18px; }
  .card-icon { font-size: 50px; }
}

/* ========== PRODUCTS IN MODAL ========== */
.modal.modal-large {
  max-width: 780px;
  width: 95%;
}

.modal-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
  margin-top: 12px;
  margin-bottom: 24px;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 6px;
}

.product-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  transition: all 0.25s ease;
}

.product-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(251, 191, 36, 0.3);
  transform: translateY(-2px);
}

.product-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-emoji {
  font-size: 22px;
  background: rgba(255, 255, 255, 0.04);
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.product-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.product-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.45;
  margin-top: 2px;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.product-pricing {
  display: flex;
  flex-direction: column;
}

.product-original-price {
  font-size: 11px;
  text-decoration: line-through;
  color: #ef4444;
  font-weight: 600;
}

.product-price-tag {
  font-size: 15px;
  font-weight: 800;
  color: #22c55e;
}

.product-buy-btn {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  border: none;
  border-radius: 6px;
  color: #000;
  padding: 6px 12px;
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
}

.product-buy-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.35);
}

/* Admin footer link */
.admin-link-wrapper {
  margin-top: 12px;
  text-align: center;
}
.admin-link-wrapper a {
  font-size: 11px;
  color: #4b5563 !important;
  text-decoration: none;
  transition: color 0.2s;
  letter-spacing: 0.5px;
}
.admin-link-wrapper a:hover {
  color: #9ca3af !important;
}

/* ========== PROMO POPUP OVERLAY ========== */
.promo-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.promo-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.promo-modal {
  background: #111318;
  border: 2px solid #ea580c;
  border-radius: 20px;
  width: 90%;
  max-width: 540px;
  position: relative;
  box-shadow: 0 0 50px rgba(234, 88, 12, 0.3);
  overflow: hidden;
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.promo-overlay.active .promo-modal {
  transform: scale(1);
}

.promo-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.promo-close:hover {
  background: #ea580c;
  color: #000;
  transform: rotate(90deg);
  border-color: #ea580c;
}

.promo-banner-container {
  width: 100%;
  height: 190px;
  overflow: hidden;
  position: relative;
  border-bottom: 2px solid #ea580c;
}

.promo-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s;
}

.promo-modal:hover .promo-banner-img {
  transform: scale(1.03);
}

.promo-content {
  padding: 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.promo-content h2 {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 1.5px;
  margin-bottom: 4px;
  background: linear-gradient(135deg, #fb923c, #ea580c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.promo-content p {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.promo-offer-container {
  background: rgba(234, 88, 12, 0.05);
  border: 1px solid rgba(234, 88, 12, 0.15);
  border-radius: 12px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  margin-bottom: 24px;
  text-align: left;
}

.promo-offer-badge-wrap {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.promo-tag-icon {
  font-size: 22px;
  margin-top: 2px;
}

.promo-badge-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.promo-badge {
  font-size: 11px;
  font-weight: 900;
  color: #fb923c;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.promo-offer-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.45;
}

.promo-coupon-box {
  border: 1px dashed rgba(234, 88, 12, 0.4);
  background: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.promo-coupon-label {
  font-size: 9px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.promo-coupon-code {
  font-size: 18px;
  font-weight: 900;
  color: #f97316;
  letter-spacing: 1.5px;
}

.promo-coupon-copy-btn {
  background: #ea580c;
  color: #000;
  border: none;
  border-radius: 6px;
  padding: 6px 14px;
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  transition: all 0.2s;
}

.promo-coupon-copy-btn:hover {
  background: #fb923c;
  transform: scale(1.04);
}

.promo-cta-btn {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #000;
  border: none;
  border-radius: 12px;
  width: 100%;
  padding: 14px 28px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 4px 15px rgba(234, 88, 12, 0.2);
  margin-bottom: 12px;
}

.promo-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.45);
  background: linear-gradient(135deg, #fb923c, #f97316);
}

.promo-dismiss-link {
  background: transparent;
  border: none;
  color: #475569;
  font-family: 'Outfit', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.2s;
}

.promo-dismiss-link:hover {
  color: var(--text-muted);
}

/* ========== STAFF SECTION ========== */
.staff-section {
  padding: 60px 0;
  max-width: 1200px;
  margin: 0 auto;
}

.staff-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.staff-icon { font-size: 22px; }

.staff-subtitle {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 32px;
}

.staff-ranks-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
}

.staff-rank-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.staff-rank-title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}

.staff-rank-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
  margin-left: 10px;
}

.staff-members-flex {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.staff-member-card {
  background: #161922;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.staff-member-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 24px var(--glow-color, rgba(0,0,0,0.4));
  border-color: var(--glow-color, var(--border));
}

.staff-member-avatar-wrap {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.staff-member-avatar {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
}

.staff-member-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.staff-member-name {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
}

.staff-member-rank-badge {
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  width: fit-content;
  color: #000;
}

/* Empty State Styling */
.staff-empty-state {
  text-align: center;
  color: var(--text-muted);
  padding: 60px 0;
  background: #141720;
  border: 1px dashed var(--border);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.staff-empty-icon {
  font-size: 40px;
  margin-bottom: 12px;
  opacity: 0.3;
}

/* ========== SOCIAL SVG LOGOS ========== */
.social-btn svg {
  display: block;
  transition: transform 0.2s ease, fill 0.2s ease, stroke 0.2s ease;
}
.social-btn:hover svg {
  transform: scale(1.1);
  fill: #fff;
  stroke: #fff;
}

/* ========== CART SYSTEM ========== */
.cart-items-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 12px 16px;
  gap: 16px;
  transition: all 0.2s ease;
}

.cart-item-row:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

.cart-item-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.cart-item-emoji {
  font-size: 20px;
  background: rgba(255, 255, 255, 0.04);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cart-item-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cart-item-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.cart-item-unit-price {
  font-size: 11px;
  color: var(--text-muted);
}

.cart-item-quantity-control {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  overflow: hidden;
}

.qty-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  width: 28px;
  height: 28px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

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

.qty-val {
  width: 28px;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
}

.cart-item-subtotal {
  font-size: 15px;
  font-weight: 800;
  color: #22c55e;
  min-width: 65px;
  text-align: right;
}

.remove-item-btn {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #ef4444;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.remove-item-btn:hover {
  background: #ef4444;
  color: #000;
  border-color: #ef4444;
  transform: scale(1.05);
}

.cart-empty-state {
  text-align: center;
  color: var(--text-muted);
  padding: 40px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.cart-empty-icon {
  font-size: 48px;
  opacity: 0.3;
}

.coupon-apply-btn:hover {
  background: var(--accent-purple);
  opacity: 0.9;
  transform: translateY(-1px);
}
.checkout-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.45);
}

/* Image rendering support for URL icons */
.card-icon img {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.product-emoji img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.cart-item-emoji img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

/* ========== MAINTENANCE OVERLAY ========== */
.maintenance-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 17, 23, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.maintenance-card {
  background: rgba(26, 29, 38, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 48px;
  max-width: 500px;
  width: 100%;
  text-align: center;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  backdrop-filter: blur(10px);
}

.maintenance-icon {
  font-size: 64px;
  filter: drop-shadow(0 0 15px rgba(249, 115, 22, 0.4));
  animation: toolPulse 2s ease infinite alternate;
}

@keyframes toolPulse {
  0% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-5px) rotate(5deg); }
  100% { transform: translateY(0) rotate(0); }
}

.maintenance-card h2 {
  font-size: 28px;
  font-weight: 900;
  background: linear-gradient(135deg, #f97316, #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}

.maintenance-card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

/* ========== VOTE MODAL STYLING ========== */
.vote-link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 16px 20px;
  transition: all 0.25s ease;
  text-decoration: none;
  color: inherit;
}

.vote-link-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: #f97316;
  transform: translateY(-2px);
}

.vote-link-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.vote-link-icon {
  font-size: 20px;
  background: rgba(249, 115, 22, 0.1);
  color: #f97316;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vote-link-name {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
}

.vote-link-btn {
  background: linear-gradient(135deg, #f97316, #fbbf24);
  color: #000;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
}

.vote-link-card:hover .vote-link-btn {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}


