:root {
  --bg: #05060f;
  --bg-soft: #0a0d1e;
  --panel: rgba(12, 16, 38, 0.88);
  --panel-2: rgba(14, 19, 44, 0.96);
  --border: rgba(79, 70, 229, 0.16);
  --border-hover: rgba(79, 70, 229, 0.40);
  --text: #f0f1fa;
  --muted: #8a90b8;
  --primary: #4f46e5;
  --primary-2: #6366f1;
  --primary-glow: rgba(79, 70, 229, 0.25);
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.40);
  --shadow-glow: 0 0 40px rgba(79, 70, 229, 0.12);
  --container: 1240px;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 24px;
  --radius-xl: 28px;
  --font-heading: 'Urbanist', sans-serif;
  --font-body: 'Epilogue', sans-serif;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }

body {
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse at 20% -5%, rgba(79, 70, 229, 0.14), transparent 45%),
    radial-gradient(ellipse at 80% 105%, rgba(99, 102, 241, 0.08), transparent 40%);
  background-attachment: fixed;
  min-height: 100vh;
}

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

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

/* ─── HEADER ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  background: rgba(5, 6, 15, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.header-row {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.brand-main { color: #fff; }
.brand-accent { color: var(--primary-2); }

.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.main-nav a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.main-nav a:hover { color: #fff; }

.header-button {
  border: 1px solid var(--border);
  background: rgba(79, 70, 229, 0.06);
  color: #fff;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  transition: all 0.25s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-button:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
  background: rgba(79, 70, 229, 0.10);
}
.header-button span {
  font-weight: 800;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  min-width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

/* ─── HERO ─── */
.hero-section {
  padding: 80px 0 40px;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.20), transparent 65%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
  position: relative;
}

.eyebrow,
.section-kicker,
.panel-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(79, 70, 229, 0.25);
  background: rgba(79, 70, 229, 0.08);
  color: #a5a3f7;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 20px 0 18px;
  font-family: var(--font-heading);
  font-size: clamp(42px, 6.5vw, 78px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.05em;
  max-width: 700px;
}

.hero-copy h1 .gradient-text {
  background: linear-gradient(135deg, var(--primary-2), #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-copy p {
  margin: 0;
  max-width: 560px;
  font-size: 18px;
  line-height: 1.65;
  color: var(--muted);
}

.hero-cta {
  display: flex;
  gap: 14px;
  margin-top: 32px;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.25s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 14px 32px var(--primary-glow);
}
.btn-primary:hover {
  box-shadow: 0 18px 40px rgba(79, 70, 229, 0.35);
}

.btn-secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border);
}
.btn-secondary:hover {
  border-color: var(--border-hover);
}

.small-btn { padding: 10px 16px; font-size: 13px; }
.full-btn { width: 100%; }

/* ─── HERO MINI STATS ─── */
.hero-mini {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 36px;
}

.hero-mini-card {
  padding: 20px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel-2), rgba(8, 11, 26, 0.96));
  border: 1px solid var(--border);
}

.hero-mini-card strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
}
.hero-mini-card span {
  color: var(--muted);
  font-size: 12px;
}

/* ─── GLASS CARDS ─── */
.hero-panel,
.glass-card {
  background: linear-gradient(180deg, rgba(14, 19, 46, 0.92), rgba(8, 11, 28, 0.96));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}
.glass-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow), var(--shadow-glow);
}

.hero-panel {
  padding: 28px;
  box-shadow: var(--shadow), 0 0 60px rgba(79, 70, 229, 0.08);
}

.hero-featured-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.mini-product {
  padding: 20px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: border-color 0.2s, background 0.2s;
}
.mini-product:hover {
  border-color: rgba(79, 70, 229, 0.25);
  background: rgba(79, 70, 229, 0.04);
}

.mini-product-top {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mini-badge,
.product-badge {
  width: fit-content;
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.10);
  border: 1px solid rgba(79, 70, 229, 0.22);
  color: #a5a3f7;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mini-product strong {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
}

.mini-meta,
.product-sub {
  color: var(--muted);
  font-size: 13px;
}

.mini-price,
.product-price {
  margin-top: 12px;
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

/* ─── SECTIONS ─── */
.section-block,
.community-section {
  padding: 48px 0 32px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 28px;
}
.section-head h2 {
  margin: 10px 0 10px;
  font-family: var(--font-heading);
  font-size: clamp(30px, 5vw, 50px);
  font-weight: 800;
  letter-spacing: -0.04em;
}
.section-head p {
  margin: 0;
  color: var(--muted);
}

/* ─── BROWSER / SHOP ─── */
.browser-layout {
  display: grid;
  gap: 28px;
}
.browser-step {
  display: grid;
  gap: 16px;
}
.browser-label {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}

.server-grid,
.category-browser-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.server-card,
.category-browser-card {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  text-align: left;
  padding: 24px;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(14, 19, 46, 0.92), rgba(8, 11, 28, 0.96));
  color: #ffffff !important;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.28s ease;
}
.server-card:hover,
.category-browser-card:hover,
.server-card.active,
.category-browser-card.active {
  border-color: var(--border-hover);
  box-shadow: 0 20px 48px rgba(79, 70, 229, 0.12);
  transform: translateY(-3px);
}

.server-card *,
.category-browser-card * { color: #ffffff !important; }
.server-card p, .category-browser-card p,
.server-card-text p, .category-browser-text p { color: var(--muted) !important; }

.server-card-icon,
.category-browser-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  background: rgba(79, 70, 229, 0.10);
  border: 1px solid rgba(79, 70, 229, 0.22);
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: #a5a3f7 !important;
  flex-shrink: 0;
}

.server-card-text h3,
.category-browser-text h3 {
  margin: 0 0 6px;
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.server-card-text p,
.category-browser-text p {
  margin: 0;
  line-height: 1.5;
  font-size: 14px;
}

.store-notice {
  padding: 16px 18px;
  border-radius: var(--radius);
  color: var(--muted);
}

.divider-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.10);
  border-radius: 999px;
  margin: 0 12px;
}

/* ─── PRODUCTS & FAQ GRID ─── */
.product-grid,
.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.product-card {
  padding: 24px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.product-card h3 {
  margin: 12px 0 8px;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
}

.product-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
}

.add-button {
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 8px 20px var(--primary-glow);
  transition: all 0.25s;
}
.add-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(79, 70, 229, 0.35);
}

/* ─── FAQ ─── */
.faq-card {
  padding: 24px;
}
.faq-card h3 {
  margin: 0 0 12px;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
}
.faq-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}

/* ─── COMMUNITY ─── */
.community-box {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
  padding: 32px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(14, 19, 46, 0.95), rgba(8, 12, 32, 0.98));
  border: 1px solid var(--border);
  box-shadow: var(--shadow), var(--shadow-glow);
}
.community-box h2 {
  margin: 10px 0 10px;
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.04em;
}
.community-box p {
  margin: 0;
  color: var(--muted);
  max-width: 600px;
}

/* ─── CART DRAWER ─── */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(3, 4, 12, 0.72);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: flex-end;
}
.drawer.hidden { display: none; }

.drawer-panel {
  width: min(460px, 100%);
  height: 100%;
  overflow-y: auto;
  background: linear-gradient(180deg, #080c1e 0%, #060915 100%);
  border-left: 1px solid var(--border);
  padding: 26px;
  box-shadow: -24px 0 64px rgba(0, 0, 0, 0.40);
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.drawer-head h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
}

.icon-button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(79, 70, 229, 0.06);
  color: white;
  cursor: pointer;
  font-size: 14px;
  transition: border-color 0.2s;
}
.icon-button:hover {
  border-color: var(--border-hover);
}

.cart-items {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.cart-item-card { padding: 18px; }

.cart-item-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.qty-button {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(79, 70, 229, 0.06);
  color: white;
  cursor: pointer;
  font-size: 16px;
  transition: border-color 0.2s;
}
.qty-button:hover { border-color: var(--border-hover); }

.coupon-row,
.checkout-form {
  display: grid;
  gap: 12px;
}
.coupon-row {
  grid-template-columns: 1fr auto;
  margin-bottom: 10px;
}
.checkout-form {
  margin-top: 14px;
  margin-bottom: 16px;
}

input {
  width: 100%;
  border: 1px solid var(--border);
  background: rgba(79, 70, 229, 0.04);
  color: white;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  outline: none;
  font-size: 14px;
  transition: border-color 0.2s;
}
input:focus { border-color: var(--border-hover); }
input::placeholder { color: #6a6f96; }

.payment-methods { margin: 14px 0 18px; }

.payment-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(79, 70, 229, 0.04);
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color 0.2s;
  font-size: 14px;
}
.payment-option:hover { border-color: var(--border-hover); }
.payment-option input { width: auto; margin: 0; accent-color: var(--primary); }

.payment-title { font-size: 12px; margin-bottom: 8px; }

.summary {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 16px;
  margin-top: 12px;
  margin-bottom: 16px;
}
.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 14px;
}
.summary-line strong {
  color: white;
  font-family: var(--font-heading);
  font-size: 16px;
}
.total-line strong {
  font-size: 22px;
}

.muted { color: var(--muted); }
.empty-card { padding: 22px; text-align: center; }

/* ─── SUCCESS PAGE TABLE ─── */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.table th, .table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1100px) {
  .hero-grid,
  .product-grid,
  .faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .header-row {
    flex-wrap: wrap;
    justify-content: center;
    padding: 14px 0;
    min-height: auto;
    gap: 12px;
  }
  .main-nav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
  }
  .hero-grid,
  .hero-mini,
  .server-grid,
  .category-browser-grid,
  .product-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }
  .hero-copy h1 { font-size: 38px; }
  .hero-copy p { font-size: 16px; }
  .hero-cta { flex-direction: column; }
  .community-box {
    flex-direction: column;
    align-items: flex-start;
  }
  .coupon-row { grid-template-columns: 1fr; }
  .product-bottom {
    flex-direction: column;
    align-items: stretch;
  }
  .server-card-text h3,
  .category-browser-text h3 { font-size: 20px; }
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(79, 70, 229, 0.25);
  border-radius: 3px;
}

/* ─── ADMIN / SUCCESS SHARED ─── */
.success-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 40px 20px;
}
.success-card {
  max-width: 500px;
  width: 100%;
  padding: 40px;
  text-align: center;
}
.success-card h1 {
  font-family: var(--font-heading);
  font-weight: 800;
  color: #4ade80;
  font-size: 28px;
  margin-bottom: 12px;
}
.success-card p {
  color: var(--muted);
  margin-bottom: 8px;
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-copy { animation: fadeUp 0.7s ease both; }
.hero-panel { animation: fadeUp 0.7s 0.2s ease both; }
.hero-mini-card:nth-child(1) { animation: fadeUp 0.5s 0.3s ease both; }
.hero-mini-card:nth-child(2) { animation: fadeUp 0.5s 0.4s ease both; }
.hero-mini-card:nth-child(3) { animation: fadeUp 0.5s 0.5s ease both; }

@keyframes slideIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}
.drawer:not(.hidden) .drawer-panel {
  animation: slideIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}
