/* ======================================================
   TREKO NETWORK — Design System & Global Styles
   Minecraft Server Website
   ====================================================== */

/* Google Fonts — Press Start 2P (pixel) + Inter (body) */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Inter:wght@400;500;600;700&display=swap');

/* ── CSS Variables ─────────────────────────────────── */
:root {
  /* Background & Surface */
  --bg-body: #141210;
  --bg-surface: #1e1b17;
  --bg-card: #252219;
  --bg-card-hover: #2d2a20;
  --bg-input: #1a1814;
  --bg-nav: #1e1b17;

  /* Borders */
  --border: #3d3529;
  --border-light: #4a4238;
  --border-dark: #1a1612;

  /* Text */
  --text: #b0a898;
  --text-light: #d4ccc0;
  --text-dim: #7a7068;
  --text-muted: #5a5248;

  /* Accent Colors */
  --gold: #d4a017;
  --gold-light: #e8b830;
  --gold-dark: #a07810;
  --orange: #e08020;
  --orange-light: #f0a040;
  --green: #55aa55;
  --green-dark: #338833;
  --green-glow: rgba(85, 170, 85, 0.3);
  --red: #cc4444;
  --red-glow: rgba(204, 68, 68, 0.3);
  --blue: #5588cc;
  --purple: #aa55cc;

  /* Minecraft Colors */
  --mc-dark-red: #AA0000;
  --mc-gold: #FFAA00;
  --mc-yellow: #FFFF55;
  --mc-green: #55FF55;
  --mc-aqua: #55FFFF;
  --mc-light-purple: #FF55FF;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;

  /* Typography */
  --font-pixel: 'Press Start 2P', monospace;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --max-width: 960px;
  --sidebar-width: 300px;
  --nav-height: 48px;

  /* Effects */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.5);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.6);
  --transition: 0.2s ease;
}

/* ── Reset & Base ─────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-body);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Subtle noise texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.03;
  background-image: 
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(255,255,255,0.03) 2px,
      rgba(255,255,255,0.03) 4px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 2px,
      rgba(255,255,255,0.02) 2px,
      rgba(255,255,255,0.02) 4px
    );
  pointer-events: none;
}

/* Dark vignette effect */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
    ellipse at center,
    transparent 40%,
    rgba(0,0,0,0.4) 100%
  );
  pointer-events: none;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--gold-light);
}

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

ul, ol {
  list-style: none;
}

/* ── Typography ───────────────────────────────────── */
.pixel-font {
  font-family: var(--font-pixel);
  letter-spacing: 1px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-pixel);
  color: var(--gold);
  letter-spacing: 1px;
  line-height: 1.4;
}

h1 { font-size: 14px; }
h2 { font-size: 12px; }
h3 { font-size: 11px; }
h4 { font-size: 10px; }

p + p {
  margin-top: var(--space-md);
}

/* ── Layout ───────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
  width: 100%;
}

.main-layout {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: var(--space-lg);
  padding: var(--space-lg) 0;
}

.content-area {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

/* ── Card / Panel ─────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  position: relative;
  padding: var(--space-lg);
  transition: border-color var(--transition), background var(--transition);
  /* Minecraft-style inset shadow */
  box-shadow:
    inset 1px 1px 0 rgba(255,255,255,0.04),
    inset -1px -1px 0 rgba(0,0,0,0.3),
    var(--shadow-sm);
}

.card:hover {
  border-color: var(--border-light);
}

.card-title {
  font-family: var(--font-pixel);
  font-size: 12px;
  color: var(--gold);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
}

.card-title--green {
  color: var(--green);
}

/* ── Header / Logo ────────────────────────────────── */
.site-header {
  text-align: center;
  padding: var(--space-2xl) 0 var(--space-lg);
  position: relative;
}

.logo {
  font-family: var(--font-pixel);
  font-size: 64px;
  color: var(--gold);
  text-shadow:
    0 0 10px rgba(212, 160, 23, 0.3),
    3px 3px 0 #5a4510,
    4px 4px 0 #3a2d0a,
    5px 5px 0 #2a2008,
    6px 6px 8px rgba(0,0,0,0.6);
  letter-spacing: 8px;
  line-height: 1;
  margin-bottom: var(--space-md);
  /* Gradient text */
  background: linear-gradient(
    180deg,
    #e8c840 0%,
    #d4a017 40%,
    #a07810 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(3px 3px 0 #5a4510)
          drop-shadow(5px 5px 0 #3a2d0a)
          drop-shadow(6px 6px 6px rgba(0,0,0,0.7));
  animation: logoGlow 4s ease-in-out infinite alternate;
}

@keyframes logoGlow {
  0% { filter: drop-shadow(3px 3px 0 #5a4510) drop-shadow(5px 5px 0 #3a2d0a) drop-shadow(6px 6px 6px rgba(0,0,0,0.7)) drop-shadow(0 0 20px rgba(212,160,23,0.1)); }
  100% { filter: drop-shadow(3px 3px 0 #5a4510) drop-shadow(5px 5px 0 #3a2d0a) drop-shadow(6px 6px 6px rgba(0,0,0,0.7)) drop-shadow(0 0 30px rgba(212,160,23,0.25)); }
}

.tagline {
  font-family: var(--font-pixel);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 6px;
  text-transform: uppercase;
}

.tagline .dot {
  color: var(--gold-dark);
  margin: 0 4px;
}

/* ── Navigation ───────────────────────────────────── */
.site-nav {
  background: var(--bg-nav);
  border-top: 2px solid var(--border);
  border-bottom: 2px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.03),
    0 4px 12px rgba(0,0,0,0.5);
}

.nav-list {
  display: flex;
  justify-content: center;
  align-items: center;
  height: var(--nav-height);
  gap: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-pixel);
  font-size: 10px;
  color: var(--text);
  padding: 0 var(--space-xl);
  height: var(--nav-height);
  text-transform: uppercase;
  transition: color var(--transition), background var(--transition);
  position: relative;
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--text-light);
  background: rgba(255,255,255,0.03);
}

.nav-link:hover::after {
  width: 60%;
}

.nav-link.active {
  color: var(--orange);
}

.nav-link.active::after {
  width: 80%;
  background: var(--orange);
}

.nav-link .nav-icon {
  font-size: 12px;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 24px;
  cursor: pointer;
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-pixel);
}

/* ── Welcome / IP Box ─────────────────────────────── */
.welcome-text {
  color: var(--text-light);
  margin-bottom: var(--space-lg);
  font-size: 14px;
  line-height: 1.8;
}

.ip-box {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 2px solid var(--border);
  padding: var(--space-md) var(--space-lg);
  gap: var(--space-md);
  box-shadow:
    inset 0 2px 4px rgba(0,0,0,0.3),
    inset 0 0 0 1px rgba(255,255,255,0.02);
}

.ip-box .ip-icon {
  color: var(--text-dim);
  font-size: 16px;
  flex-shrink: 0;
}

.ip-box .ip-address {
  font-family: var(--font-pixel);
  font-size: 11px;
  color: var(--text-light);
  flex: 1;
  letter-spacing: 1px;
}

.btn-copy {
  font-family: var(--font-pixel);
  font-size: 9px;
  background: linear-gradient(180deg, #4a4238 0%, #3a3228 100%);
  color: var(--text-light);
  border: 2px solid var(--border-light);
  padding: var(--space-sm) var(--space-md);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all var(--transition);
  box-shadow:
    inset 1px 1px 0 rgba(255,255,255,0.08),
    inset -1px -1px 0 rgba(0,0,0,0.2);
  white-space: nowrap;
}

.btn-copy:hover {
  background: linear-gradient(180deg, #5a5248 0%, #4a4238 100%);
  border-color: var(--gold-dark);
  color: var(--gold-light);
}

.btn-copy:active {
  transform: translateY(1px);
  box-shadow:
    inset -1px -1px 0 rgba(255,255,255,0.08),
    inset 1px 1px 0 rgba(0,0,0,0.2);
}

.btn-copy.copied {
  background: linear-gradient(180deg, var(--green) 0%, var(--green-dark) 100%);
  border-color: var(--green);
  color: #fff;
}

/* ── Status Widget ────────────────────────────────── */
.status-indicator {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot.online {
  background: var(--green);
  box-shadow: 0 0 8px var(--green-glow), 0 0 16px var(--green-glow);
  animation: pulse 2s ease-in-out infinite;
}

.status-dot.offline {
  background: var(--red);
  box-shadow: 0 0 8px var(--red-glow);
}

.status-dot.loading {
  background: var(--text-dim);
  animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(0.9); }
}

.status-label {
  font-family: var(--font-pixel);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.status-label.online { color: var(--green); }
.status-label.offline { color: var(--red); }
.status-label.loading { color: var(--text-dim); }

.status-players {
  font-size: 13px;
  color: var(--text);
}

.status-players strong {
  color: var(--text-light);
}

.status-bar-container {
  margin-top: var(--space-md);
  background: var(--bg-input);
  border: 1px solid var(--border);
  height: 8px;
  overflow: hidden;
}

.status-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--green-dark), var(--green));
  transition: width 1s ease;
  box-shadow: 0 0 6px var(--green-glow);
}

/* ── Info List ─────────────────────────────────────── */
.info-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.info-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) 0;
  font-size: 13px;
}

.info-label {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--text-dim);
  text-transform: uppercase;
  min-width: 75px;
  flex-shrink: 0;
}

.info-value {
  color: var(--text-light);
}

.info-value a {
  color: var(--blue);
  transition: color var(--transition);
}

.info-value a:hover {
  color: var(--gold-light);
  text-decoration: underline;
}

/* ── Social Links ─────────────────────────────────── */
.social-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.social-link {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  border: 1px solid transparent;
  transition: all var(--transition);
  color: var(--text);
}

.social-link:hover {
  background: rgba(255,255,255,0.03);
  border-color: var(--border);
  color: var(--text-light);
}

.social-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.social-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.social-name {
  font-family: var(--font-pixel);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.social-link.discord:hover {
  color: #5865F2;
  border-color: rgba(88,101,242,0.3);
}

.social-link.twitter:hover {
  color: #1DA1F2;
  border-color: rgba(29,161,242,0.3);
}

/* ── Buttons ──────────────────────────────────────── */
.btn {
  font-family: var(--font-pixel);
  font-size: 9px;
  padding: var(--space-sm) var(--space-lg);
  border: 2px solid var(--border-light);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  text-decoration: none;
  box-shadow:
    inset 1px 1px 0 rgba(255,255,255,0.08),
    inset -1px -1px 0 rgba(0,0,0,0.2);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #1a1410;
  border-color: var(--gold);
  font-weight: 600;
}

.btn-primary:hover {
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 100%);
  color: #1a1410;
  box-shadow:
    inset 1px 1px 0 rgba(255,255,255,0.15),
    inset -1px -1px 0 rgba(0,0,0,0.2),
    0 0 12px rgba(212,160,23,0.3);
}

.btn-secondary {
  background: linear-gradient(180deg, #4a4238 0%, #3a3228 100%);
  color: var(--text-light);
}

.btn-secondary:hover {
  background: linear-gradient(180deg, #5a5248 0%, #4a4238 100%);
  border-color: var(--gold-dark);
  color: var(--gold-light);
}

.btn-discord {
  background: linear-gradient(180deg, #5865F2 0%, #4752C4 100%);
  color: #fff;
  border-color: #5865F2;
}

.btn-discord:hover {
  background: linear-gradient(180deg, #6874f3 0%, #5865F2 100%);
  color: #fff;
  box-shadow:
    inset 1px 1px 0 rgba(255,255,255,0.15),
    0 0 12px rgba(88,101,242,0.3);
}

/* ── Footer ───────────────────────────────────────── */
.site-footer {
  margin-top: auto;
  text-align: center;
  padding: var(--space-xl) 0;
  border-top: 2px solid var(--border);
  background: var(--bg-surface);
}

.footer-text {
  font-family: var(--font-pixel);
  font-size: 8px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* ── Page Header (Internal Pages) ─────────────────── */
.page-header {
  text-align: center;
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-lg);
}

.page-header h1 {
  font-size: 16px;
  margin-bottom: var(--space-sm);
}

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

/* ── Rules Page ───────────────────────────────────── */
.rules-section {
  margin-bottom: var(--space-xl);
}

.rules-section .card-title {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.rules-section .card-title .rule-icon {
  font-size: 14px;
}

.rule-list {
  counter-reset: rule;
}

.rule-item {
  counter-increment: rule;
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid rgba(61,53,41,0.5);
  transition: background var(--transition);
}

.rule-item:last-child {
  border-bottom: none;
}

.rule-item:hover {
  background: rgba(255,255,255,0.015);
}

.rule-number {
  font-family: var(--font-pixel);
  font-size: 10px;
  color: var(--gold-dark);
  min-width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212,160,23,0.08);
  border: 1px solid rgba(212,160,23,0.15);
  flex-shrink: 0;
}

.rule-number::before {
  content: counter(rule, decimal-leading-zero);
}

.rule-text {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.6;
  padding-top: 4px;
}

.rule-text strong {
  color: var(--gold);
  font-family: var(--font-pixel);
  font-size: 10px;
}

/* ── Staff Page ───────────────────────────────────── */
.staff-category {
  margin-bottom: var(--space-xl);
}

.staff-category-title {
  font-family: var(--font-pixel);
  font-size: 12px;
  text-transform: uppercase;
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--border);
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-lg);
}

.staff-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  padding: var(--space-lg);
  text-align: center;
  transition: all 0.3s ease;
  box-shadow:
    inset 1px 1px 0 rgba(255,255,255,0.04),
    inset -1px -1px 0 rgba(0,0,0,0.3),
    var(--shadow-sm);
}

.staff-card:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
  box-shadow:
    inset 1px 1px 0 rgba(255,255,255,0.04),
    var(--shadow-lg);
}

.staff-avatar {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-md);
  image-rendering: pixelated;
  border: 2px solid var(--border);
  background: var(--bg-input);
}

.staff-name {
  font-family: var(--font-pixel);
  font-size: 10px;
  color: var(--text-light);
  margin-bottom: var(--space-xs);
}

.staff-role {
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1px;
}

.staff-role.owner { color: var(--red); }
.staff-role.admin { color: var(--orange); }
.staff-role.mod { color: var(--blue); }
.staff-role.helper { color: var(--green); }

/* ── Map Page ─────────────────────────────────────── */
.map-container {
  background: var(--bg-card);
  border: 2px solid var(--border);
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--space-lg);
  box-shadow: var(--shadow-md);
}

.map-container iframe {
  width: 100%;
  height: 600px;
  border: none;
}

.map-placeholder {
  text-align: center;
  padding: var(--space-2xl);
}

.map-placeholder .map-icon {
  font-size: 64px;
  margin-bottom: var(--space-lg);
  opacity: 0.5;
}

.map-placeholder p {
  color: var(--text-dim);
  font-size: 14px;
}

/* ── Shop Page ────────────────────────────────────── */
.shop-categories {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
  justify-content: center;
}

.shop-category-btn {
  font-family: var(--font-pixel);
  font-size: 9px;
  padding: var(--space-sm) var(--space-lg);
  background: var(--bg-card);
  border: 2px solid var(--border);
  color: var(--text);
  cursor: pointer;
  text-transform: uppercase;
  transition: all var(--transition);
}

.shop-category-btn:hover,
.shop-category-btn.active {
  border-color: var(--gold-dark);
  color: var(--gold);
  background: rgba(212,160,23,0.08);
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.shop-item {
  background: var(--bg-card);
  border: 2px solid var(--border);
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow:
    inset 1px 1px 0 rgba(255,255,255,0.04),
    inset -1px -1px 0 rgba(0,0,0,0.3),
    var(--shadow-sm);
}

.shop-item:hover {
  border-color: var(--gold-dark);
  transform: translateY(-4px);
  box-shadow:
    inset 1px 1px 0 rgba(255,255,255,0.04),
    var(--shadow-lg),
    0 0 20px rgba(212,160,23,0.1);
}

.shop-item-header {
  padding: var(--space-lg);
  border-bottom: 1px solid var(--border);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.shop-item-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(212,160,23,0.05) 0%, transparent 60%);
  pointer-events: none;
}

.shop-item-icon {
  font-size: 48px;
  margin-bottom: var(--space-sm);
}

.shop-item-name {
  font-family: var(--font-pixel);
  font-size: 12px;
  color: var(--gold);
  margin-bottom: var(--space-xs);
}

.shop-item-price {
  font-family: var(--font-pixel);
  font-size: 14px;
  color: var(--green);
}

.shop-item-body {
  padding: var(--space-lg);
}

.shop-item-features {
  margin-bottom: var(--space-lg);
}

.shop-feature {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) 0;
  font-size: 13px;
  color: var(--text);
}

.shop-feature::before {
  content: '✦';
  color: var(--gold-dark);
  font-size: 10px;
  flex-shrink: 0;
}

.shop-item-footer {
  padding: 0 var(--space-lg) var(--space-lg);
}

.shop-item-footer .btn {
  width: 100%;
}

/* Rank tiers */
.shop-item.tier-vip { --tier-color: var(--green); }
.shop-item.tier-vip .shop-item-header { border-bottom-color: var(--green-dark); }
.shop-item.tier-vip .shop-item-name { color: var(--green); }

.shop-item.tier-mvp { --tier-color: var(--blue); }
.shop-item.tier-mvp .shop-item-header { border-bottom-color: var(--blue); }
.shop-item.tier-mvp .shop-item-name { color: var(--blue); }

.shop-item.tier-elite { --tier-color: var(--purple); }
.shop-item.tier-elite .shop-item-header { border-bottom-color: var(--purple); }
.shop-item.tier-elite .shop-item-name { color: var(--purple); }

.shop-item.tier-legend { --tier-color: var(--orange); }
.shop-item.tier-legend .shop-item-header { border-bottom-color: var(--orange); }
.shop-item.tier-legend .shop-item-name { color: var(--orange); }

/* ── Toast Notification ───────────────────────────── */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg-card);
  border: 2px solid var(--green);
  padding: var(--space-md) var(--space-xl);
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--green);
  z-index: 1000;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  box-shadow: 0 4px 20px rgba(85,170,85,0.2);
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Particles Background ─────────────────────────── */
.particles-container {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(212,160,23,0.2);
  animation: float linear infinite;
}

@keyframes float {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-10vh) rotate(720deg);
    opacity: 0;
  }
}

/* ── Animations ───────────────────────────────────── */
.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

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

.stagger > * {
  opacity: 0;
  animation: fadeIn 0.4s ease forwards;
}

.stagger > *:nth-child(1) { animation-delay: 0.05s; }
.stagger > *:nth-child(2) { animation-delay: 0.1s; }
.stagger > *:nth-child(3) { animation-delay: 0.15s; }
.stagger > *:nth-child(4) { animation-delay: 0.2s; }
.stagger > *:nth-child(5) { animation-delay: 0.25s; }
.stagger > *:nth-child(6) { animation-delay: 0.3s; }
.stagger > *:nth-child(7) { animation-delay: 0.35s; }
.stagger > *:nth-child(8) { animation-delay: 0.4s; }

/* ── Scrollbar ────────────────────────────────────── */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-body);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border: 1px solid var(--bg-body);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-light);
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 768px) {
  .logo {
    font-size: 36px;
    letter-spacing: 4px;
  }

  .tagline {
    font-size: 8px;
    letter-spacing: 3px;
  }

  .main-layout {
    grid-template-columns: 1fr;
  }

  .nav-list {
    flex-direction: column;
    height: auto;
    display: none;
    padding: var(--space-sm) 0;
  }

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

  .nav-link {
    padding: var(--space-md) var(--space-xl);
    height: auto;
    justify-content: center;
  }

  .nav-link::after {
    display: none;
  }

  .menu-toggle {
    display: block;
    width: 100%;
    text-align: center;
    padding: var(--space-md);
  }

  .shop-grid {
    grid-template-columns: 1fr;
  }

  .staff-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ip-box {
    flex-direction: column;
    text-align: center;
  }

  .ip-box .ip-icon {
    display: none;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 28px;
    letter-spacing: 2px;
  }

  .staff-grid {
    grid-template-columns: 1fr;
  }

  h1 { font-size: 12px; }
  h2 { font-size: 10px; }

  .card {
    padding: var(--space-md);
  }

  .container {
    padding: 0 var(--space-sm);
  }
}

/* ── Utility Classes ──────────────────────────────── */
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-green { color: var(--green); }
.text-dim { color: var(--text-dim); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.hidden { display: none !important; }
