:root {
  --primary: #008DFF;
  --primary-hover: #0077db;
  --primary-glow: rgba(0, 141, 255, 0.45);
  --accent-gold: #FFD445;
  --accent-gold-hover: #e0ab28;
  --bg-darkest: #1a1a1a;
  --bg-darker: #1e1e1e;
  --bg-dark: #222222;
  --bg-card: #232323;
  --bg-card-hover: #2a2a2a;
  --bg-well: #1e1e1e;
  --border-card: #282932;
  --text-main: #ffffff;
  --text-muted: #9aa0a6;
  --text-subtle: #686e77;
  --danger: #ef4444;
  --success: #10b981;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-darkest);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-darkest);
}
::-webkit-scrollbar-thumb {
  background: #282932;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* 1. HEADER BACKGROUND WITH BLUR (Uses img/background.png) */
.header-bg-wrapper {
  position: relative;
  width: 100%;
  background: 
    linear-gradient(180deg, rgba(26, 26, 26, 0.45) 0%, rgba(26, 26, 26, 0.75) 60%, var(--bg-darkest) 100%),
    url('../img/background.png') no-repeat center top / cover;
  padding-bottom: 20px;
}

/* 2. TOP NAV (Centered: Store, Rules, Staff, Vote) */
.top-nav-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px 20px 14px 20px;
}

.top-nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
}

.top-nav-links a {
  color: #c9d1d9;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  cursor: pointer;
  transition: var(--transition);
}

.top-nav-links a:hover,
.top-nav-links a.active {
  color: #ffffff;
  text-shadow: 0 0 14px rgba(0, 141, 255, 0.65);
}

/* 3. HERO SECTION (Spacious Horizontal Hero: IP on left, Logo in center, Discord on right) */
.header-hero {
  max-width: 1180px;
  margin: 34px auto 50px auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  min-height: 140px;
}

/* Left side: Server IP section (No pill container, separate circular button + text) */
.hero-ip-section {
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  user-select: none;
  transition: var(--transition);
  z-index: 2;
}

/* Circular button wrapper with count badge */
.hero-circle-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Orange/Gold count badge on top of logo/button (matches screenshot 3) */
.hero-count-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #ffa228;
  color: #0b0b0b;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 2px 10px;
  border-radius: 9999px;
  white-space: nowrap;
  letter-spacing: 0.4px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  z-index: 5;
  line-height: 1.25;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.hero-circle-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid #008DFF;
  background: rgba(0, 141, 255, 0.22);
  backdrop-filter: blur(8px);
  box-shadow: none;
  color: #ffffff;
}

.hero-play-btn {
  font-size: 1.15rem;
  color: #ffffff;
}
.hero-play-btn i {
  margin-left: 3px;
}

.hero-text-col {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hero-ip-text {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.6px;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
  transition: var(--transition);
}

.hero-ip-sub {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-gold);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}

/* Center Logo: Prominent, significantly larger, exactly in horizontal center */
.center-logo-box {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.center-logo-img {
  height: 155px;
  width: auto;
  max-width: 360px;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.8));
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), filter 0.28s ease;
}
.center-logo-box:hover .center-logo-img {
  transform: translateY(-6px) scale(1.06);
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.9));
}

/* Right side: Discord section (No pill container, text on left + circular Discord button on right) */
.hero-discord-section {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  transition: var(--transition);
  z-index: 2;
}

.hero-discord-text {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.6px;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
  transition: var(--transition);
}

.hero-discord-sub {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-gold);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}

.hero-discord-btn {
  font-size: 1.35rem;
  color: #ffffff;
}

/* 4. STORE WELCOME BANNER (Tall 125px, Wide, #242424 Charcoal, Diagonal Polygon Cut) */
.subheader-wrapper {
  max-width: 1180px;
  width: 100%;
  margin: 0 auto 48px auto;
  padding: 0 24px;
}

.subheader-bar {
  background: #242424;
  border: 1px solid #333333;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.7);
  height: 125px;
  min-height: 125px;
  position: relative;
}

.subheader-left {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 0 0 36px;
  flex: 1 1 58%;
  height: 100%;
  text-decoration: none;
  user-select: none;
}

.subheader-mini-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.6));
  flex-shrink: 0;
}

.subheader-brand-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.subheader-brand-info h3 {
  font-size: 1.65rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.4px;
  line-height: 1.15;
}

.subheader-brand-info p {
  font-size: 0.98rem;
  color: #FFD445;
  font-weight: 700;
  margin-top: 4px;
  line-height: 1.2;
}

.subheader-right-slanted {
  display: flex;
  height: 100%;
  align-items: stretch;
  width: 560px;
  max-width: 560px;
  flex-shrink: 0;
  position: relative;
}

/* Blue Basket Section */
.slanted-basket-btn {
  background: #008DFF;
  color: #ffffff;
  flex: 1;
  min-width: 0;
  padding: 0 42px 0 54px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  border: none;
  clip-path: polygon(36px 0%, 100% 0%, calc(100% - 36px) 100%, 0% 100%);
  transition: flex 400ms cubic-bezier(0.25, 1, 0.5, 1), background-color 250ms ease;
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.slanted-basket-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  white-space: nowrap;
}

.slanted-basket-top {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: #ffffff;
  opacity: 0.95;
  line-height: 1.2;
}

.slanted-basket-title {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 0.8px;
  color: #ffffff;
  margin-top: 4px;
  line-height: 1.2;
}

/* Yellow Login Section */
.slanted-login-btn {
  background: #FFD445;
  color: #ffffff;
  flex: 1.45;
  min-width: 0;
  padding: 0 16px 0 54px;
  display: flex;
  align-items: center;
  cursor: pointer;
  border: none;
  clip-path: polygon(36px 0%, 100% 0%, 100% 100%, 0% 100%);
  margin-left: -36px;
  position: relative;
  z-index: 1;
  transition: flex 400ms cubic-bezier(0.25, 1, 0.5, 1), background-color 250ms ease;
  overflow: hidden;
}

.slanted-login-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  width: 100%;
  height: 100%;
}

.slanted-login-texts {
  display: flex;
  flex-direction: column;
  text-align: right;
  justify-content: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.slanted-login-sub {
  font-size: 0.84rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: none;
  letter-spacing: 0.3px;
  line-height: 1.2;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.slanted-login-name {
  font-size: 1.26rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.6px;
  margin-top: 3px;
  line-height: 1.2;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.slanted-avatar-wrap {
  display: flex;
  align-items: flex-end;
  height: 100%;
  padding-bottom: 0;
  flex-shrink: 0;
  overflow: hidden;
}

/* Minecraft bust pose: head, torso and arms (matches the reference screenshot) */
.slanted-player-skin {
  height: 112px;
  width: auto;
  max-width: 112px;
  object-fit: contain;
  object-position: bottom center;
  margin-bottom: -2px;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
  transform: none;
  transform-origin: center bottom;
  transition: transform 380ms cubic-bezier(0.25, 1, 0.5, 1), filter 300ms ease;
  user-select: none;
  pointer-events: none;
}

/* INTERACTIVE HOVER EXPANSION ANIMATIONS (Subtle, smooth, low shift) */
/* Basket Hover: Gentle expansion of Blue Basket (~20-25px) */
.subheader-right-slanted:has(.slanted-basket-btn:hover) .slanted-basket-btn,
.subheader-right-slanted.hover-basket .slanted-basket-btn {
  flex: 1.15;
  background-color: #0077db;
}
.subheader-right-slanted:has(.slanted-basket-btn:hover) .slanted-login-btn,
.subheader-right-slanted.hover-basket .slanted-login-btn {
  flex: 1.30;
}

/* Login Hover: Gentle expansion of Yellow Login (~20-25px) */
.subheader-right-slanted:has(.slanted-login-btn:hover) .slanted-login-btn,
.subheader-right-slanted.hover-login .slanted-login-btn {
  flex: 1.60;
  background-color: #ffd445;
}
.subheader-right-slanted:has(.slanted-login-btn:hover) .slanted-login-btn .slanted-player-skin,
.subheader-right-slanted.hover-login .slanted-login-btn .slanted-player-skin {
  transform: scale(1.04);
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.45));
}
.subheader-right-slanted:has(.slanted-login-btn:hover) .slanted-basket-btn,
.subheader-right-slanted.hover-login .slanted-basket-btn {
  flex: 0.88;
}

/* 5. MAIN CONTAINER */
.main-content-area {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 80px 24px;
}

/* Page Views */
.page-view {
  display: none;
}
.page-view.active {
  display: block;
}

/* 6. CATEGORY CARDS GRID (Gems, Ranks, Crate Keys) */
.category-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 28px;
}

.category-card {
  background: 
    radial-gradient(circle at 82% 50%, rgba(255, 235, 120, 0.45) 0%, rgba(255, 235, 120, 0) 55%),
    linear-gradient(135deg, #FFD445 0%, #dfa522 100%);
  border-radius: 14px;
  padding: 30px 34px;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  box-shadow: 0 10px 25px rgba(245, 190, 56, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(245, 190, 56, 0.45);
}

.cat-card-texts {
  display: flex;
  flex-direction: column;
}
.cat-card-title {
  font-size: 1.85rem;
  font-weight: 900;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
.cat-card-sub {
  font-size: 0.88rem;
  color: #fff8e1;
  font-weight: 600;
  margin-top: 4px;
}

.cat-card-art {
  width: 90px;
  height: 90px;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35));
  transition: var(--transition);
}
.category-card:hover .cat-card-art {
  transform: scale(1.1) rotate(-3deg);
}

/* 7. PACKAGE CARDS (Matches media_1794678625915_93c65307.jpg) */
.category-packages-view {
  display: none;
  margin-bottom: 30px;
}
.category-packages-view.active {
  display: block;
}

.category-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 20px;
  transition: var(--transition);
}
.category-back-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.packages-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.product-row-card {
  background: #232323;
  border: 1px solid #282932;
  border-radius: 12px;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: var(--transition);
}
.product-row-card:hover {
  border-color: #383a48;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transform: translateY(-2px);
}

.product-well-icon {
  background: #1e1e1e;
  border-radius: 10px;
  width: 92px;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.product-well-icon img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
}

.product-details-col {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-name-heading {
  font-size: 1.15rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 8px;
}

.product-price-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
}
.original-price-red {
  color: #ef4444;
  text-decoration: line-through;
  font-size: 0.95rem;
  font-weight: 700;
}
.current-price-gold {
  color: #FFD445;
  font-size: 1.1rem;
  font-weight: 900;
}

.product-btn-row {
  display: flex;
  gap: 12px;
}

.btn-card-info {
  background: #FFD445;
  color: #111;
  border: none;
  border-radius: 8px;
  flex: 1;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
}
.btn-card-info:hover {
  background: #e0ab28;
}

.btn-card-cart {
  background: #008DFF;
  color: #fff;
  border: none;
  border-radius: 8px;
  flex: 1;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
}
.btn-card-cart:hover {
  background: #0077db;
  transform: translateY(-1px);
}

/* 8. INFORMATION & PRIVACY BOXES */
.info-boxes-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 10px;
}

.info-box-card {
  background: #232323;
  border: 1px solid #282932;
  border-radius: 14px;
  padding: 28px 30px;
  text-align: center;
}

.info-box-pill {
  width: 44px;
  height: 6px;
  background: #FFD445;
  border-radius: 10px;
  margin: 0 auto 16px auto;
}

.info-box-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
}

.info-box-text {
  font-size: 0.88rem;
  color: #9aa0a6;
  line-height: 1.6;
}

/* 9. NETWORK RULES PAGE */
.rules-card-container {
  background: #232323;
  border: 1px solid #2e2e2e;
  border-radius: 14px;
  padding: 36px 32px;
}

.rules-top-pill {
  display: none;
}

.rules-heading {
  text-align: center;
  font-size: 1.65rem;
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 28px;
}

.rules-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rule-item {
  background: #2a2a2a;
  border-radius: 10px;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  transition: var(--transition);
}
.rule-item:hover {
  background: #303030;
}

.rule-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #eb4f4f;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rule-text-col {
  display: flex;
  flex-direction: column;
}

.rule-main-text {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.4;
}

.rule-subtag {
  display: block;
  font-size: 0.82rem;
  color: #8b929e;
  font-style: italic;
  font-weight: 600;
  margin-top: 4px;
}

/* 10. STAFF PAGE */
.staff-page-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.staff-group-section {
  display: flex;
  flex-direction: column;
}

.staff-role-bar {
  background: #d31a1a;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.staff-cards-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 14px;
}

.staff-card {
  background: #232323;
  border: 1px solid #2e2e2e;
  border-radius: 10px;
  padding: 16px 14px 14px 14px;
  width: 148px;
  height: 148px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  position: relative;
}
.staff-card:hover {
  border-color: #3e3e3e;
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.7);
}

.staff-bust-wrap {
  width: 84px;
  height: 76px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
}

.staff-bust-img {
  width: 78px;
  height: auto;
  object-fit: cover;
  object-position: top center;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

.staff-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  margin-top: 10px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 130px;
}

/* 11. VOTE PAGE (Matches media_1794686798222_23b9f560.png) */
.vote-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
}
.vote-link-card {
  position: relative;
  overflow: hidden;
  background: 
    radial-gradient(circle at 10% 50%, rgba(200, 140, 20, 0.25) 0%, rgba(200, 140, 20, 0) 65%),
    linear-gradient(135deg, #e5b238 0%, #d89f26 100%);
  border-radius: 12px;
  padding: 26px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 8px 20px rgba(220, 160, 35, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.vote-link-card::before {
  content: "";
  position: absolute;
  left: -80px;
  top: -50px;
  width: 210px;
  height: 220px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 50%;
  pointer-events: none;
}
.vote-link-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(229, 178, 56, 0.45);
}
.vote-link-title {
  font-size: 1.7rem;
  font-weight: 900;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  position: relative;
  z-index: 1;
}
.vote-link-sub {
  font-size: 0.92rem;
  color: #fff9e6;
  font-weight: 700;
  margin-top: 4px;
  position: relative;
  z-index: 1;
}

/* 12. CHECKOUT / BASKET VIEW */
.checkout-view-card {
  background: #232323;
  border: 1px solid #282932;
  border-radius: 14px;
  padding: 32px;
  position: relative;
}

.checkout-top-pill {
  width: 44px;
  height: 5px;
  background: #008DFF;
  border-radius: 99px;
  margin: 0 auto 20px auto;
}

.checkout-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.checkout-main-title {
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
}
.checkout-total-price {
  font-size: 1.55rem;
  font-weight: 900;
  color: #2cdb78;
  letter-spacing: 0.5px;
}

.checkout-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
  margin-bottom: 28px;
}
.checkout-table th {
  text-align: left;
  font-size: 0.78rem;
  font-weight: 800;
  color: #7b8290;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 10px 18px;
  border-bottom: none;
}
.checkout-table td {
  padding: 18px;
  background: #121316;
}
.checkout-table td:first-child {
  border-radius: 10px 0 0 10px;
}
.checkout-table td:last-child {
  border-radius: 0 10px 10px 0;
}

.qty-controls {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #252525;
  border: 1px solid #333333;
  padding: 4px 10px;
  border-radius: 8px;
}
.btn-qty {
  width: 22px;
  height: 22px;
  background: transparent;
  border: none;
  color: #cbd5e1;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.btn-qty:hover {
  color: #fff;
}

.btn-item-info {
  background: #FFD445;
  color: #111;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  margin-right: 8px;
  font-weight: 900;
  font-size: 0.95rem;
  transition: var(--transition);
}
.btn-item-info:hover {
  background: #e0ab28;
}
.btn-item-delete {
  background: #e84545;
  color: #fff;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: var(--transition);
}
.btn-item-delete:hover {
  background: #d43535;
}

.complete-purchase-box {
  margin-top: 24px;
}
.complete-purchase-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 18px;
}

.terms-checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
}
.terms-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.5;
  cursor: pointer;
}
.terms-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #FFD445;
  margin-top: 2px;
  cursor: pointer;
}
.terms-item a {
  color: #FFD445;
  text-decoration: none;
}

.checkout-btns-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.btn-continue-shopping {
  background: #008DFF;
  color: #fff;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.btn-continue-shopping:hover {
  background: #0077db;
}

.btn-execute-checkout {
  background: #FFD445;
  color: #111;
  padding: 12px 32px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.btn-execute-checkout:hover {
  background: #e0ab28;
}

/* 13. MODALS (Login & Payment) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  background: #232323;
  border: 1px solid #282932;
  border-radius: 16px;
  width: 100%;
  max-width: 580px;
  padding: 36px 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  position: relative;
}

.login-top-pill {
  width: 44px;
  height: 6px;
  background: #008DFF;
  border-radius: 10px;
  margin: 0 auto 16px auto;
}

.modal-dialog-title {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.modal-dialog-sub {
  text-align: center;
  font-size: 0.88rem;
  color: #9aa0a6;
  margin-bottom: 24px;
}

.platform-toggle-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 24px;
}
.platform-btn {
  background: #2a2a2a;
  border: 1px solid #282932;
  color: #fff;
  padding: 14px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
}
.platform-btn.active {
  background: #2e2e2e;
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 0 12px rgba(0, 141, 255, 0.3);
}

.login-input-row {
  display: flex;
  gap: 12px;
}

.login-username-input {
  flex: 1;
  background: #2a2a2a;
  border: 1px solid #282932;
  border-radius: 10px;
  padding: 14px 18px;
  color: #fff;
  font-size: 1rem;
  outline: none;
  text-transform: none; /* Allows small letters */
}
.login-username-input:focus {
  border-color: var(--primary);
}

.btn-login-submit {
  background: #FFD445;
  color: #111;
  border: none;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition);
}
.btn-login-submit:hover {
  background: #e0ab28;
}

/* 14. FOOTER (Removed TikTok, Patrons, Admin) */
.site-footer {
  background: #090a0d;
  border-top: 1px solid #252525;
  padding: 40px 20px 24px 20px;
  position: relative;
  z-index: 10;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.footer-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-copy-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-rights {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
}
.footer-mojang {
  font-size: 0.78rem;
  color: #686e77;
}

.footer-links-row {
  display: flex;
  gap: 24px;
  list-style: none;
  margin-top: 10px;
}
.footer-links-row a {
  color: #9aa0a6;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.footer-links-row a:hover {
  color: #fff;
}

.footer-social-row {
  display: flex;
  gap: 12px;
}
.social-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.15rem;
  text-decoration: none;
  transition: var(--transition);
}
.social-icon-box.yt { background: #e50914; }
.social-icon-box.ig { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.social-icon-box.dc { background: #5865F2; }

.social-icon-box:hover {
  transform: translateY(-2px);
  filter: brightness(1.15);
}

.footer-sub-disclaimer {
  border-top: 1px solid #181920;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: #555b64;
  flex-wrap: wrap;
  gap: 12px;
}
.tebex-tag {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-legal-links {
  display: flex;
  gap: 14px;
}
.footer-legal-links a {
  color: #71767f;
  text-decoration: none;
}
.footer-legal-links a:hover {
  color: #fff;
}

/* Toast */
.toast-notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 3000;
  background: #232323;
  border: 1px solid var(--primary);
  border-radius: 10px;
  padding: 12px 20px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 15px var(--primary-glow);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInToast 0.25s ease;
}
@keyframes slideInToast {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 992px) {
  .header-hero {
    flex-direction: column;
    gap: 32px;
    margin: 20px auto 36px auto;
    min-height: auto;
  }
  .center-logo-box {
    position: static;
    transform: none;
    order: 1;
  }
  .center-logo-img {
    height: 110px;
  }
  .hero-ip-section {
    order: 2;
  }
  .hero-discord-section {
    order: 3;
  }
  .subheader-bar {
    height: auto;
    min-height: auto;
    flex-direction: column;
    padding: 18px 0 0 0;
  }
  .subheader-left {
    padding: 8px 24px 18px 24px;
    flex: none;
    width: 100%;
    justify-content: center;
  }
  .subheader-right-slanted {
    width: 100%;
    height: auto;
  }
  .slanted-basket-btn,
  .slanted-login-btn {
    flex: 1;
    clip-path: none;
    margin: 0;
    padding: 18px 24px;
    height: auto;
    min-width: auto;
    border-radius: 0;
  }
  .slanted-basket-inner,
  .slanted-login-inner {
    justify-content: center;
  }
  .slanted-avatar-wrap {
    height: auto;
  }
  .slanted-player-skin {
    height: 72px;
  }
}

@media (max-width: 640px) {
  .top-nav-links {
    gap: 20px;
  }
  .top-nav-links a {
    font-size: 0.88rem;
  }
  .header-hero {
    padding: 0 16px;
    gap: 24px;
  }
  .hero-ip-text,
  .hero-discord-text {
    font-size: 1rem;
  }
  .hero-circle-btn {
    width: 46px;
    height: 46px;
    font-size: 1rem;
  }
  .center-logo-img {
    height: 88px;
  }
  .subheader-wrapper {
    padding: 0 16px;
  }
  .main-content-area {
    padding: 0 16px 60px 16px;
  }
  .subheader-right-slanted {
    flex-direction: column;
  }
  .category-grid,
  .packages-cards-grid,
  .info-boxes-row {
    grid-template-columns: 1fr;
  }
}
