:root {
  --ink: #07090e;
  --bg-deep: #05070a;
  --panel: #0d1017;
  --panel-hover: #131722;
  --panel-card: #0f131c;
  --line: rgba(255, 255, 255, 0.08);
  --line-bright: rgba(255, 255, 255, 0.16);
  --muted: #8b8e9b;
  --muted-dark: #585b68;
  --white: #f3f4f6;
  --purple: #a58aff;
  --purple-glow: rgba(165, 138, 255, 0.35);
  --cyan: #7ce8ee;
  --cyan-glow: rgba(124, 232, 238, 0.35);
  --green: #4ade80;
  --gold: #f59e0b;
  --red: #f87171;
  --display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-full: 9999px;
  --shadow-glow: 0 0 25px rgba(165, 138, 255, 0.2);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  background: var(--ink);
  color: var(--white);
  font-family: var(--body);
  font-size: 14px;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

/* Ambient background glows */
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: 
    radial-gradient(ellipse at 80% 5%, rgba(165, 138, 255, 0.12), transparent 45%),
    radial-gradient(ellipse at 15% 45%, rgba(124, 232, 238, 0.08), transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(165, 138, 255, 0.06), transparent 50%);
}

/* Announcement Bar */
.announcement-bar {
  background: linear-gradient(90deg, rgba(165, 138, 255, 0.15), rgba(124, 232, 238, 0.15));
  border-bottom: 1px solid var(--line);
  padding: 8px 16px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: #d8d9e2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.announcement-bar strong { color: var(--cyan); }

/* Navigation Topbar */
.topbar {
  height: 76px;
  position: sticky;
  top: 0;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 0 4%;
  z-index: 100;
  background: rgba(7, 9, 14, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  gap: 32px;
}

.brand {
  font: 700 18px var(--display);
  letter-spacing: 0.12em;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  user-select: none;
}
.brand-mark {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, rgba(165, 138, 255, 0.3), rgba(124, 232, 238, 0.2));
  border: 1px solid rgba(165, 138, 255, 0.5);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 800;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  box-shadow: 0 0 14px var(--purple-glow);
}
.brand-logo-img {
  max-height: 38px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(165, 138, 255, 0.45));
  transition: transform 0.2s ease;
  vertical-align: middle;
}
.brand-logo-img:hover {
  transform: scale(1.05);
}
.brand-light { font-weight: 400; color: var(--muted); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex: 1;
}
.nav-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s, transform 0.2s;
  padding: 6px 2px;
  position: relative;
  cursor: pointer;
}
.nav-link:hover { color: var(--white); }
.nav-link.active {
  color: var(--white);
  font-weight: 600;
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  border-radius: var(--radius-full);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.discord-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
  background: rgba(88, 101, 242, 0.15);
  border: 1px solid rgba(88, 101, 242, 0.35);
  border-radius: var(--radius-sm);
  color: #a4b3ff;
  transition: 0.2s;
}
.discord-nav-btn:hover {
  background: rgba(88, 101, 242, 0.28);
  border-color: rgba(88, 101, 242, 0.6);
  color: #fff;
  transform: translateY(-1px);
}

.cart-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}
.cart-nav-btn:hover {
  border-color: var(--line-bright);
  background: var(--panel-hover);
}
.cart-badge {
  background: var(--purple);
  color: #07090e;
  font-size: 11px;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: var(--radius-full);
}

.auth-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(110deg, #c1acff, #80e6eb);
  color: #080a10;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: 0.2s;
  border: 0;
}
.auth-nav-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(165, 138, 255, 0.35);
}

.user-menu-wrap {
  position: relative;
}
.user-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 5px 12px 5px 6px;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: 0.2s;
}
.user-menu-btn:hover {
  border-color: var(--purple);
}
.user-avatar-tiny {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  background: #191c28;
}
.role-badge {
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.role-badge.owner { background: rgba(245, 158, 11, 0.2); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.4); }
.role-badge.admin { background: rgba(236, 72, 153, 0.2); color: #f472b6; border: 1px solid rgba(236, 72, 153, 0.4); }
.role-badge.social_manager { background: rgba(52, 211, 153, 0.2); color: #34d399; border: 1px solid rgba(52, 211, 153, 0.4); }
.role-badge.staff { background: rgba(56, 189, 248, 0.2); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.4); }
.role-badge.user { background: rgba(255, 255, 255, 0.1); color: #ccc; }

.user-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 220px;
  background: #0f121b;
  border: 1px solid var(--line-bright);
  border-radius: var(--radius-md);
  padding: 8px 0;
  display: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  z-index: 120;
}
.user-dropdown.open { display: block; animation: dropDown 0.18s ease-out; }
.dropdown-header {
  padding: 8px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.dropdown-header strong { display: block; color: var(--white); font-size: 13px; }
.dropdown-header span { color: var(--muted); font-size: 11px; }
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  color: #ccc;
  font-size: 13px;
  transition: 0.15s;
  cursor: pointer;
}
.dropdown-item:hover { background: var(--panel-hover); color: var(--white); }
.dropdown-divider { height: 1px; background: var(--line); margin: 6px 0; }
.dropdown-item.danger { color: var(--red); }

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 22px;
  color: var(--white);
  cursor: pointer;
}

/* Page View Containers */
main { flex: 1; position: relative; }
.page-view { display: none; }
.page-view.active { display: block; animation: fadeIn 0.25s ease-out; }

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

/* Common Layout Components */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 60px 24px;
}
.page-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 50px;
}
.page-header .kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--purple);
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}
.page-header h1 {
  font: 700 clamp(32px, 5vw, 48px)/1.1 var(--display);
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}
.page-header p {
  color: var(--muted);
  font-size: 15px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: 0.2s;
  border: 0;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(110deg, #c1acff, #80e6eb);
  color: #07090e;
  box-shadow: 0 4px 20px rgba(165, 138, 255, 0.28);
}
.btn-primary:hover {
  box-shadow: 0 6px 26px rgba(165, 138, 255, 0.45);
}
.btn-secondary {
  background: var(--panel);
  border: 1px solid var(--line-bright);
  color: var(--white);
}
.btn-secondary:hover {
  background: var(--panel-hover);
  border-color: var(--purple);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--white);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--line-bright);
}
.btn-discord {
  background: #5865f2;
  color: #fff;
}
.btn-discord:hover {
  background: #4752c4;
  box-shadow: 0 4px 18px rgba(88, 101, 242, 0.4);
}
.btn-danger {
  background: rgba(248, 113, 113, 0.15);
  border: 1px solid rgba(248, 113, 113, 0.4);
  color: #fca5a5;
}
.btn-danger:hover {
  background: rgba(248, 113, 113, 0.3);
  color: #fff;
}
.btn-sm { padding: 7px 14px; font-size: 11px; }

/* 1. HOMEPAGE HERO SECTION */
.hero {
  position: relative;
  min-height: calc(100vh - 110px);
  max-height: 860px;
  display: flex;
  align-items: center;
  padding: 60px 6%;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(90deg, #07090e 5%, rgba(7, 9, 14, 0.92) 30%, rgba(7, 9, 14, 0.6) 65%, rgba(7, 9, 14, 0.3) 100%),
    linear-gradient(0deg, #07090e 0%, transparent 40%, rgba(7, 9, 14, 0.7) 100%),
    url('https://images.unsplash.com/photo-1518709268805-4e9042af9f23?auto=format&fit=crop&w=2200&q=85');
  background-position: center;
  background-size: cover;
  z-index: -1;
  filter: saturate(0.85);
}
.hero-content {
  max-width: 680px;
  position: relative;
  z-index: 2;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(165, 138, 255, 0.1);
  border: 1px solid rgba(165, 138, 255, 0.25);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #d1c4fe;
  margin-bottom: 24px;
}
.pulse-dot {
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--green);
}
.hero h1 {
  font: 700 clamp(42px, 6vw, 76px)/0.98 var(--display);
  letter-spacing: -0.04em;
  margin-bottom: 22px;
  text-transform: uppercase;
}
.hero h1 span {
  background: linear-gradient(95deg, #c3b1ff 0%, #8de8ec 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-desc {
  font-size: 16px;
  line-height: 1.7;
  color: #b5b7c4;
  margin-bottom: 32px;
  max-width: 520px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

/* Hero Server Address Box */
.server-status-card {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: rgba(15, 19, 28, 0.85);
  border: 1px solid var(--line-bright);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
}
.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
}
.server-ip-text {
  font: 600 13px var(--display);
  color: var(--white);
  letter-spacing: 0.04em;
}
.status-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}
.status-pill.online { background: rgba(74, 222, 128, 0.15); color: #4ade80; border: 1px solid rgba(74, 222, 128, 0.3); }
.status-pill.offline { background: rgba(248, 113, 113, 0.15); color: #f87171; border: 1px solid rgba(248, 113, 113, 0.3); }

/* Account Connection Hero Banner */
.connection-banner {
  margin-top: 28px;
  background: rgba(165, 138, 255, 0.06);
  border: 1px dashed rgba(165, 138, 255, 0.3);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 580px;
}
.connection-banner-info strong { display: block; font-size: 13px; color: var(--white); }
.connection-banner-info span { font-size: 11px; color: var(--muted); }
.connection-banner-btns { display: flex; gap: 8px; }

/* Ticker Bar */
.ticker-bar {
  height: 50px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--muted);
  text-transform: uppercase;
  overflow: hidden;
  white-space: nowrap;
}
.ticker-bar b { color: var(--purple); font-size: 14px; }

/* Feature Cards Grid */
.features-section {
  padding: 80px 0;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 30px;
  border-radius: var(--radius-md);
  transition: 0.25s;
  position: relative;
  overflow: hidden;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(165, 138, 255, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.feature-num {
  font: 700 11px var(--display);
  letter-spacing: 0.15em;
  color: var(--purple);
  margin-bottom: 18px;
  display: block;
}
.feature-card h3 {
  font: 600 20px var(--display);
  margin-bottom: 12px;
}
.feature-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

/* 2. STORE SECTION & PRODUCT GRID */
.store-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 34px;
  flex-wrap: wrap;
}
.category-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.cat-tab {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
  color: var(--muted);
}
.cat-tab:hover { color: var(--white); border-color: var(--line-bright); }
.cat-tab.active {
  background: rgba(165, 138, 255, 0.15);
  border-color: var(--purple);
  color: var(--white);
}

.search-sort-group {
  display: flex;
  gap: 10px;
  flex: 1;
  max-width: 440px;
  min-width: 260px;
}
.search-input {
  flex: 1;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--white);
}
.search-input:focus {
  outline: none;
  border-color: var(--purple);
}
.sort-select {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--white);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 22px;
}
.product-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: 0.25s;
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(165, 138, 255, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}
.product-thumb {
  height: 180px;
  position: relative;
  background-color: #121622;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 12px;
}
.product-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 9, 14, 0.2) 0%, rgba(7, 9, 14, 0.85) 100%);
}
.product-tag {
  position: relative;
  z-index: 1;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border-radius: 3px;
  background: rgba(7, 9, 14, 0.7);
  backdrop-filter: blur(4px);
  color: var(--cyan);
  border: 1px solid rgba(124, 232, 238, 0.3);
}
.product-tag.featured {
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.4);
}
.product-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-cat-name {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--purple);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.product-card h3 {
  font: 600 18px var(--display);
  margin-bottom: 8px;
}
.product-card p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
}
.product-perks {
  list-style: none;
  margin-bottom: 18px;
  font-size: 11px;
  color: #b3b5c2;
}
.product-perks li {
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.product-perks li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
}
.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: auto;
}
.price-display {
  display: flex;
  flex-direction: column;
}
.current-price {
  font: 700 18px var(--display);
  color: var(--white);
}
.original-price {
  font-size: 11px;
  color: var(--muted);
  text-decoration: line-through;
}

/* 3. RANKS SYSTEM & ATTRACTIVE CARDS */
.ranks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin-bottom: 60px;
}
.rank-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: 0.3s;
  overflow: hidden;
}
.rank-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}
.rank-card-glow {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 140px;
  border-radius: 50%;
  filter: blur(45px);
  pointer-events: none;
  opacity: 0.35;
}
.rank-badge-wrap {
  margin-bottom: 16px;
}
.rank-badge {
  display: inline-block;
  font: 800 13px var(--display);
  letter-spacing: 0.12em;
  padding: 4px 14px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}
.rank-card h3 {
  font: 700 24px var(--display);
  margin-bottom: 6px;
}
.rank-card .rank-desc {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 20px;
  min-height: 36px;
}
.rank-pricing {
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}
.rank-pricing .price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.rank-pricing .amount {
  font: 800 32px var(--display);
  letter-spacing: -0.03em;
}
.rank-pricing .term {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.rank-benefits-list {
  list-style: none;
  margin-bottom: 24px;
  flex: 1;
}
.rank-benefits-list li {
  font-size: 12px;
  color: #cfd2de;
  margin-bottom: 9px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.rank-benefits-list li::before {
  content: '✦';
  color: var(--purple);
  font-size: 11px;
  margin-top: 1px;
}
.rank-card .btn { width: 100%; }

/* Upgrade Callout Box */
.rank-upgrade-box {
  background: linear-gradient(135deg, rgba(165, 138, 255, 0.08), rgba(124, 232, 238, 0.04));
  border: 1px solid rgba(165, 138, 255, 0.25);
  border-radius: var(--radius-md);
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.rank-upgrade-box h3 { font: 600 22px var(--display); margin-bottom: 6px; }
.rank-upgrade-box p { color: var(--muted); font-size: 13px; max-width: 620px; }

/* 4. NEWS & ARTICLES VIEW */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}
.news-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: 0.25s;
  cursor: pointer;
}
.news-card:hover {
  transform: translateY(-4px);
  border-color: var(--purple);
}
.news-cover {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 14px;
}
.news-tag {
  background: rgba(7, 9, 14, 0.8);
  border: 1px solid var(--line-bright);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.15em;
  padding: 3px 8px;
  border-radius: 3px;
  color: var(--cyan);
}
.news-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.news-card-meta {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 10px;
  display: flex;
  gap: 8px;
}
.news-card h3 {
  font: 600 20px var(--display);
  margin-bottom: 10px;
  line-height: 1.3;
}
.news-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 18px;
  flex: 1;
}
.news-read-more {
  color: var(--purple);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Article Reader */
.article-reader {
  max-width: 820px;
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 40px;
}
.article-meta-header {
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}
.article-reader h1 {
  font: 700 clamp(28px, 4vw, 42px) var(--display);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: var(--muted);
}
.article-content {
  font-size: 15px;
  line-height: 1.8;
  color: #cfd2de;
}
.article-content h3 { font: 600 22px var(--display); color: var(--white); margin: 26px 0 12px; }
.article-content p { margin-bottom: 16px; }
.article-content ul { margin: 0 0 16px 20px; }
.article-content li { margin-bottom: 8px; }

/* 5. RULES, FAQ, & GUIDE ACCORDIONS */
.accordion-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.accordion-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: 0.2s;
}
.accordion-header {
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font: 600 15px var(--display);
  user-select: none;
}
.accordion-header:hover {
  background: var(--panel-hover);
}
.accordion-icon {
  font-size: 16px;
  color: var(--purple);
  transition: transform 0.2s;
}
.accordion-body {
  padding: 0 22px 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  display: none;
}
.accordion-item.open .accordion-body { display: block; }
.accordion-item.open .accordion-icon { transform: rotate(45deg); }

/* Steps Guide Grid */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.step-card {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 28px;
  border-radius: var(--radius-md);
  position: relative;
}
.step-badge {
  font: 800 20px var(--display);
  color: var(--cyan);
  margin-bottom: 14px;
  display: block;
}
.step-card h3 { font: 600 18px var(--display); margin-bottom: 8px; }
.step-card p { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* 6. SUPPORT TICKETS */
.support-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}
.support-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 30px;
}
.support-card h2 { font: 600 22px var(--display); margin-bottom: 10px; }
.support-card p { font-size: 13px; color: var(--muted); margin-bottom: 24px; }

.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #cfd1dc;
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  background: #090c13;
  border: 1px solid var(--line-bright);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: 13px;
  transition: border-color 0.2s;
}
.form-control:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 2px rgba(165, 138, 255, 0.15);
}
textarea.form-control { min-height: 120px; resize: vertical; }

.ticket-item {
  background: #090c13;
  border: 1px solid var(--line);
  padding: 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  cursor: pointer;
  transition: 0.2s;
}
.ticket-item:hover {
  border-color: var(--purple);
  background: #0d111a;
}
.ticket-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.ticket-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  text-transform: uppercase;
}
.ticket-badge.open { background: rgba(56, 189, 248, 0.2); color: #38bdf8; }
.ticket-badge.in_progress { background: rgba(234, 179, 8, 0.2); color: #eab308; }
.ticket-badge.answered { background: rgba(74, 222, 128, 0.2); color: #4ade80; }
.ticket-badge.closed { background: rgba(148, 163, 184, 0.2); color: #94a3b8; }

/* Ticket Thread Window & Messages */
.ticket-thread-window {
  max-width: 680px;
  width: 100%;
}
.ticket-thread-header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}
.ticket-thread-messages {
  max-height: 380px;
  overflow-y: auto;
  padding: 14px 4px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 14px 0;
}
.ticket-msg-bubble {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: #090c13;
  border: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.55;
  color: var(--text);
  word-break: break-word;
}
.ticket-msg-bubble.staff {
  background: rgba(165, 138, 255, 0.08);
  border-color: rgba(165, 138, 255, 0.35);
  box-shadow: 0 0 15px rgba(165, 138, 255, 0.06);
}
.ticket-msg-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  margin-bottom: 6px;
}
.ticket-msg-author {
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 6px;
}
.ticket-msg-time {
  color: var(--muted);
}
.staff-badge-pill {
  background: rgba(165, 138, 255, 0.25);
  color: var(--purple);
  border: 1px solid rgba(165, 138, 255, 0.4);
  font-size: 9px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
  text-transform: uppercase;
}

/* 7. ACCOUNT & CONNECTIONS HUB */
.connections-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 960px;
  margin: 0 auto;
}
.connect-box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 30px;
  display: flex;
  flex-direction: column;
}
.connect-box-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}
.connect-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  font-size: 22px;
}
.connect-icon.mc { background: rgba(74, 222, 128, 0.15); color: #4ade80; border: 1px solid rgba(74, 222, 128, 0.3); }
.connect-icon.discord { background: rgba(88, 101, 242, 0.15); color: #7289da; border: 1px solid rgba(88, 101, 242, 0.3); }

.connect-status-card {
  background: #090c13;
  border: 1px solid var(--line);
  padding: 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.skin-avatar {
  width: 52px;
  height: 52px;
  border-radius: 6px;
  border: 1px solid var(--line-bright);
  background: #151926;
  image-rendering: pixelated;
}
.verify-code-box {
  background: rgba(165, 138, 255, 0.1);
  border: 1px dashed var(--purple);
  padding: 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  text-align: center;
}
.verify-code-display {
  font: 800 24px var(--display);
  letter-spacing: 0.15em;
  color: var(--cyan);
  margin: 6px 0;
}

/* 8. SHOPPING CART & CHECKOUT */
.checkout-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
}
.checkout-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 30px;
}
.checkout-panel h2 { font: 600 22px var(--display); margin-bottom: 18px; }

.cart-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
}
.cart-table th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}
.cart-table td {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-bright);
  border-radius: var(--radius-sm);
}
.qty-stepper button {
  background: none;
  border: 0;
  padding: 3px 8px;
  cursor: pointer;
  color: var(--muted);
}
.qty-stepper button:hover { color: var(--white); }
.qty-stepper span { padding: 0 6px; font-weight: 600; font-size: 12px; }

.coupon-row {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}

.order-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--muted);
}
.order-summary-row.total {
  font: 700 18px var(--display);
  color: var(--white);
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 14px;
}

/* 9. ORDER CONFIRMATION & DELIVERY TRACKER */
.confirmation-card {
  max-width: 680px;
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 40px;
  text-align: center;
}
.confirmation-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(74, 222, 128, 0.15);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.4);
  display: grid;
  place-items: center;
  font-size: 28px;
  margin: 0 auto 20px;
}
.delivery-timeline {
  text-align: left;
  margin: 30px 0;
  background: #090c13;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px;
}

/* 10. ADMIN DASHBOARD */
.admin-layout {
  display: flex;
  min-height: calc(100vh - 120px);
}
.admin-sidebar {
  width: 240px;
  background: #0a0d15;
  border-right: 1px solid var(--line);
  padding: 24px 0;
  flex-shrink: 0;
}
.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.15s;
}
.admin-nav-item:hover {
  background: var(--panel);
  color: var(--white);
}
.admin-nav-item.active {
  background: rgba(165, 138, 255, 0.12);
  color: var(--purple);
  border-left: 3px solid var(--purple);
}
.admin-content {
  flex: 1;
  padding: 36px 40px;
  overflow-y: auto;
}
.admin-tab { display: none; }
.admin-tab.active { display: block; animation: fadeIn 0.2s ease-out; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  margin-bottom: 32px;
}
.stat-card {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 22px;
  border-radius: var(--radius-md);
}
.stat-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.stat-val {
  font: 700 28px var(--display);
  color: var(--white);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 16px;
}
.data-table th {
  background: #090c13;
  padding: 12px 18px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--line);
}
.data-table td {
  padding: 14px 18px;
  font-size: 13px;
  border-bottom: 1px solid var(--line);
}
.data-table tr:hover td {
  background: var(--panel-hover);
}

/* Modals */
.modal-scrim {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 12, 0.85);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: none;
  place-items: center;
  padding: 20px;
}
.modal-scrim.open { display: grid; }
.modal-window {
  background: #0d1017;
  border: 1px solid var(--line-bright);
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  padding: 32px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  max-height: 90vh;
  overflow-y: auto;
  animation: dropDown 0.22s ease-out;
}
.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: 0;
  font-size: 22px;
  color: var(--muted);
  cursor: pointer;
}
.modal-close:hover { color: var(--white); }

/* Slide-out Cart Drawer */
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(400px, 100%);
  background: #0c0f16;
  border-left: 1px solid var(--line);
  z-index: 210;
  padding: 28px;
  transform: translateX(102%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }
.cart-drawer-scrim {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 205;
  display: none;
}
.cart-drawer-scrim.show { display: block; }

/* Toast Notifications */
.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: #181d2a;
  border: 1px solid var(--purple);
  color: var(--white);
  padding: 14px 22px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: 0.25s;
}
.toast.show { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* Footer */
footer {
  border-top: 1px solid var(--line);
  background: #06080d;
  padding: 60px 4% 30px;
  margin-top: auto;
}
.footer-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h4 {
  font: 600 13px var(--display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}
.footer-links a:hover { color: var(--purple); }
.footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 14px;
}

/* Responsive Media Queries */
@media (max-width: 900px) {
  .topbar { padding: 0 4%; gap: 16px; }
  .main-nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: #090c13;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 20px 6%;
    gap: 16px;
  }
  .main-nav.open { display: flex; }
  .menu-toggle { display: block; }
  .hero { min-height: 580px; padding: 40px 6%; }
  .checkout-layout, .support-layout, .connections-grid { grid-template-columns: 1fr; }
  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; border-right: 0; border-bottom: 1px solid var(--line); padding: 12px; display: flex; overflow-x: auto; }
  .admin-nav-item { padding: 8px 16px; border-left: 0; white-space: nowrap; }
  .admin-nav-item.active { border-left: 0; border-bottom: 2px solid var(--purple); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 38px; }
  .discord-nav-btn span { display: none; }
}


/* ==================== SOCIALS PAGE STYLING ==================== */
.socials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.social-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.social-card:hover {
  transform: translateY(-4px);
  border-color: var(--card-color, var(--purple));
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 20px var(--card-glow, rgba(165, 138, 255, 0.2));
}

.social-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.social-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--card-color, var(--purple));
}

.social-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--card-color, var(--purple));
  border: 1px solid var(--line);
  text-transform: uppercase;
}

.social-card h3 {
  font: 700 20px var(--display);
  color: var(--white);
  margin-bottom: 8px;
}

.social-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 24px;
  flex: 1;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.social-btn:hover {
  background: var(--card-color, var(--purple));
  color: #07090e;
  border-color: var(--card-color, var(--purple));
  box-shadow: 0 0 16px var(--card-glow, rgba(165, 138, 255, 0.3));
}

.social-admin-item {
  background: #080b12;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px;
  margin-bottom: 14px;
}
