:root {
  --bg: #0a0908;
  --bg-alt: #131110;
  --panel: #1a1714;
  --panel-border: #2c2620;
  --gold: #d4a63c;
  --gold-bright: #f2c358;
  --gold-dim: #8a6b2a;
  --red: #b8352c;
  --text: #ede6d6;
  --text-dim: #a89e8c;
  --success: #5a9c5a;
  --radius: 6px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.5;
  background-image:
    radial-gradient(circle at 15% 0%, rgba(212, 166, 60, 0.06), transparent 40%),
    radial-gradient(circle at 85% 20%, rgba(184, 53, 44, 0.08), transparent 45%);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- NAV ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 9, 8, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--panel-border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: 1180px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 1px;
}

.brand-badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(212, 166, 60, 0.35);
}

.brand-name {
  font-size: 18px;
  color: var(--gold-bright);
}

.brand-name span {
  color: var(--text);
  font-weight: 600;
  display: block;
  font-size: 10px;
  letter-spacing: 3px;
  opacity: 0.7;
}

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

.nav-links a {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  transition: color 0.15s;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold-bright);
}

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

.icon-btn {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  border: 1px solid var(--panel-border);
  background: var(--panel);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  font-size: 16px;
  transition: border-color 0.15s, color 0.15s;
}

.icon-btn:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.12s, filter 0.12s, background 0.15s;
}

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

.btn-primary {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold-dim));
  color: #1a1508;
}

.btn-primary:hover {
  filter: brightness(1.08);
}

.btn-outline {
  background: transparent;
  border-color: var(--panel-border);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}

.btn-block {
  width: 100%;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 22px;
  cursor: pointer;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: 90px 24px;
  text-align: center;
  overflow: hidden;
  border-bottom: 1px solid var(--panel-border);
  background:
    linear-gradient(180deg, rgba(10, 9, 8, 0.45) 0%, rgba(10, 9, 8, 0.72) 55%, rgba(10, 9, 8, 0.94) 100%),
    url("assets/hero-bg.jpg") center 60% / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(45deg, rgba(212, 166, 60, 0.03) 0 2px, transparent 2px 40px);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(184, 53, 44, 0.15);
  border: 1px solid var(--red);
  color: #e8867e;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 6px var(--success);
}

.hero h1 {
  font-size: 40px;
  font-weight: 900;
  letter-spacing: 1px;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.hero h1 .gold {
  color: var(--gold-bright);
  text-shadow: 0 0 24px rgba(242, 195, 88, 0.35);
}

.hero p {
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto 28px;
  font-size: 16px;
}

/* ---------- WELCOME + SIDEBAR (home) ---------- */
.welcome-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  align-items: start;
}

.panel-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 34px;
}

.panel-card h2 {
  font-size: 22px;
  margin-bottom: 14px;
}

.panel-card > p.lead {
  color: var(--text-dim);
  margin-bottom: 28px;
  font-size: 15px;
}

.panel-card .block {
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--panel-border);
}

.panel-card .block:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.panel-card .block h3 {
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--gold-bright);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.panel-card .block p {
  font-size: 14px;
  color: var(--text-dim);
}

.panel-card .block p strong {
  color: var(--text);
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-box {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 22px;
}

.sidebar-box h3 {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.lookup-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lookup-form input {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--panel-border);
  background: var(--bg);
  color: var(--text);
  font-size: 13.5px;
}

.lookup-form input:focus {
  outline: none;
  border-color: var(--gold);
}

/* ---------- SECTIONS ---------- */
.section {
  padding: 60px 24px;
}

.section-head {
  text-align: center;
  margin-bottom: 42px;
}

.section-head h2 {
  font-size: 30px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.section-head p {
  color: var(--text-dim);
  font-size: 15px;
}

.eyebrow {
  display: block;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* ---------- SHOP ---------- */
.kit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.kit-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s;
}

.kit-card:hover {
  border-color: var(--gold-dim);
  transform: translateY(-4px);
}

.kit-media {
  position: relative;
  height: 140px;
  background: linear-gradient(160deg, #221c12, #0e0c08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  border-bottom: 1px solid var(--panel-border);
}

.kit-hint {
  position: absolute;
  bottom: 8px;
  right: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--text-dim);
  background: rgba(10, 9, 8, 0.6);
  padding: 3px 8px;
  border-radius: 999px;
  opacity: 0;
  transition: opacity 0.15s;
}

.kit-card:hover .kit-hint {
  opacity: 1;
}

.kit-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 4px 9px;
  border-radius: 999px;
  text-transform: uppercase;
}

.tag-vip { background: rgba(72, 145, 220, 0.2); color: #7db2ec; }
.tag-vip-plus { background: rgba(160, 72, 220, 0.2); color: #c290ec; }
.tag-limited { background: rgba(212, 166, 60, 0.22); color: var(--gold-bright); }
.tag-titles { background: rgba(90, 190, 150, 0.2); color: #7fe0bf; }
.tag-extras { background: rgba(160, 160, 160, 0.2); color: #c9c9c9; }

.kit-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.kit-body h3 {
  font-size: 16px;
}

.kit-includes {
  list-style: none;
  font-size: 12.5px;
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.kit-includes li::before {
  content: "▸ ";
  color: var(--gold);
}

.kit-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--panel-border);
}

.kit-price {
  font-size: 18px;
  font-weight: 900;
  color: var(--gold-bright);
}

.kit-price small {
  color: var(--text-dim);
  font-weight: 500;
  font-size: 11px;
}

.add-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  border: 1px solid var(--gold-dim);
  background: transparent;
  color: var(--gold-bright);
  font-size: 18px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.add-btn:hover {
  background: var(--gold);
  color: #1a1508;
}

.add-btn.remove {
  border-color: var(--red);
  color: #e8867e;
}

.add-btn.remove:hover {
  background: var(--red);
  color: #fff;
}

.add-btn.owned {
  border-color: var(--panel-border);
  color: var(--text-dim);
  cursor: default;
}

.add-btn.owned:hover {
  background: transparent;
  color: var(--text-dim);
}

.kit-card.owned {
  opacity: 0.55;
}

.owned-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 10px;
  border-top: 1px solid var(--panel-border);
}

.owned-badge {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--success);
  text-transform: uppercase;
}

/* ---------- CART DRAWER ---------- */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.cart-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 400px;
  max-width: 92vw;
  background: var(--bg-alt);
  border-left: 1px solid var(--panel-border);
  z-index: 201;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.25s ease;
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--panel-border);
}

.cart-header h3 {
  font-size: 17px;
}

.cart-close {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 22px;
  cursor: pointer;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-empty {
  text-align: center;
  color: var(--text-dim);
  padding: 60px 20px;
  font-size: 14px;
}

.cart-item {
  display: flex;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--panel-border);
  padding-bottom: 14px;
}

.cart-item-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.cart-item-info {
  flex: 1;
}

.cart-item-info h4 {
  font-size: 13.5px;
  margin-bottom: 2px;
}

.cart-item-info span {
  font-size: 12px;
  color: var(--gold-bright);
  font-weight: 700;
}

.remove-item {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 15px;
}

.remove-item:hover {
  color: var(--red);
}

.cart-footer {
  padding: 20px;
  border-top: 1px solid var(--panel-border);
}

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

.cart-total-row strong {
  color: var(--gold-bright);
  font-size: 19px;
}

/* ---------- KIT DETAILS MODAL ---------- */
.details-overlay {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.details-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.details-modal {
  background: var(--bg-alt);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  width: 100%;
  max-width: 620px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow);
}

.details-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--panel-border);
  position: sticky;
  top: 0;
  background: var(--bg-alt);
}

.details-header h3 {
  font-size: 17px;
}

.details-close {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 22px;
  cursor: pointer;
}

.details-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.details-section h4 {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--panel-border);
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
  gap: 10px;
}

.details-tile {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  padding: 10px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
}

.details-tile .icon {
  font-size: 24px;
}

.details-tile .qty {
  font-size: 11px;
  font-weight: 800;
  color: var(--gold-bright);
}

.details-tile .name {
  font-size: 10px;
  color: var(--text-dim);
  line-height: 1.2;
}

/* ---------- AUTH ---------- */
.auth-wrap {
  min-height: calc(100vh - 65px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  padding: 34px;
  box-shadow: var(--shadow);
}

.auth-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.auth-tabs {
  display: flex;
  background: var(--bg);
  border-radius: var(--radius);
  padding: 4px;
  margin-bottom: 24px;
  border: 1px solid var(--panel-border);
}

.auth-tab {
  flex: 1;
  text-align: center;
  padding: 9px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  color: var(--text-dim);
}

.auth-tab.active {
  background: var(--gold);
  color: #1a1508;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-dim);
}

.form-group input {
  width: 100%;
  padding: 11px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--panel-border);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
}

.form-group input:focus {
  outline: none;
  border-color: var(--gold);
}

.form-panel {
  display: none;
}

.form-panel.active {
  display: block;
}

.auth-alt {
  text-align: center;
  margin: 18px 0;
  color: var(--text-dim);
  font-size: 12px;
  position: relative;
}

.steam-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 11px;
  border-radius: var(--radius);
  border: 1px solid var(--panel-border);
  background: #171a21;
  color: #c7d5e0;
  font-weight: 700;
  cursor: pointer;
  font-size: 14px;
}

.steam-btn:hover {
  border-color: var(--gold-dim);
}

.form-note {
  text-align: center;
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 16px;
}

/* ---------- FOOTER ---------- */
.footer {
  border-top: 1px solid var(--panel-border);
  padding: 40px 24px 24px;
  margin-top: 40px;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-dim);
  font-size: 13px;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-dim);
}

.footer-links a:hover {
  color: var(--gold-bright);
}

.footer-bottom {
  text-align: center;
  font-size: 12px;
  color: #6b6355;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--panel-border);
}

/* toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--panel);
  border: 1px solid var(--gold);
  color: var(--text);
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: 13.5px;
  font-weight: 600;
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  box-shadow: var(--shadow);
}

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

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .welcome-grid { grid-template-columns: 1fr; }
  .kit-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
  .hero h1 { font-size: 30px; }
  .kit-grid { grid-template-columns: 1fr; }
  .panel-card { padding: 24px; }
}
