:root {
  --ink: #f7f4e8;
  --muted: #aeb6aa;
  --paper: #07120f;
  --surface: rgba(255, 255, 255, 0.07);
  --line: rgba(246, 223, 153, 0.18);
  --gold: #f6c95f;
  --gold-2: #fff1b8;
  --green: #19c793;
  --dark: #07120f;
  --danger: #b64040;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.35);
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(246, 201, 95, 0.2), transparent 28%),
    radial-gradient(circle at 82% 14%, rgba(25, 199, 147, 0.16), transparent 30%),
    linear-gradient(180deg, #07120f 0, #0d1714 420px, #101512 100%),
    var(--paper);
  font-family: Inter, Arial, Helvetica, sans-serif;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 5vw, 76px);
  background: rgba(255, 250, 240, 0.9);
  background: rgba(7, 18, 15, 0.76);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand,
.desktop-nav,
.hero-actions,
.checkout-actions,
.mobile-tabbar {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
}

.brand small {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #07120f;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  font-weight: 900;
}

.desktop-nav {
  gap: 20px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 700;
}

.nav-cta,
.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
}

.nav-cta,
.btn.primary {
  color: #06110e;
  background: linear-gradient(135deg, var(--green), var(--gold));
  box-shadow: 0 14px 34px rgba(25, 199, 147, 0.2);
}

.btn.secondary,
.btn.ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--line);
  backdrop-filter: blur(12px);
}

.hero {
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 32px;
  align-items: center;
  padding: 84px clamp(18px, 5vw, 76px) 120px;
  color: white;
  background:
    radial-gradient(circle at 70% 35%, rgba(246, 201, 95, 0.16), transparent 30%),
    linear-gradient(90deg, rgba(7, 18, 15, 0.98), rgba(7, 18, 15, 0.72) 44%, rgba(7, 18, 15, 0.18)),
    url("/images/gold-hero.png") center right / cover no-repeat;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--gold-2);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.04;
}

h1 {
  font-size: clamp(43px, 7vw, 80px);
}

h2 {
  font-size: clamp(30px, 4vw, 50px);
}

h3 {
  font-size: 21px;
}

p {
  line-height: 1.65;
}

.hero-copy p:not(.eyebrow) {
  max-width: 630px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.price-board {
  display: grid;
  gap: 12px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.price-board span,
.price-board small,
.muted,
label {
  color: var(--muted);
}

.price-board strong {
  color: var(--gold);
  font-size: 36px;
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: -54px clamp(18px, 5vw, 76px) 0;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.quick-stats article {
  padding: 24px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.quick-stats span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.quick-stats strong {
  display: block;
  margin-top: 8px;
  font-size: 22px;
}

.section {
  padding: 92px clamp(18px, 5vw, 76px);
}

.section-title {
  max-width: 780px;
  margin-bottom: 28px;
}

.section-title .eyebrow {
  color: var(--gold);
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.chip {
  min-height: 38px;
  padding: 0 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
}

.chip.active {
  color: #07120f;
  background: linear-gradient(135deg, var(--gold-2), var(--green));
  border-color: transparent;
}

.product-grid,
.blog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.blog-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-card,
.blog-card,
.checkout-card,
.partner-card,
.chart-card,
.admin-card,
.wp-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 36px rgba(55, 42, 16, 0.08);
}

.product-card {
  display: grid;
  min-height: 410px;
  overflow: hidden;
  backdrop-filter: blur(18px);
}

.product-media {
  min-height: 155px;
  background: url("/images/gold-hero.png") center / cover no-repeat;
}

.product-body,
.blog-card,
.admin-card,
.wp-card {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.pill {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  color: #07120f;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.product-price {
  color: var(--gold);
  font-size: 25px;
  font-weight: 950;
}

.stock {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: auto;
}

.sell-section {
  background:
    radial-gradient(circle at 8% 12%, rgba(246, 201, 95, 0.16), transparent 28%),
    rgba(255, 255, 255, 0.025);
}

.sell-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.65fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.sell-panel {
  display: grid;
  gap: 18px;
  align-content: start;
  padding: 28px;
  background: linear-gradient(145deg, rgba(246, 201, 95, 0.13), rgba(25, 199, 147, 0.08));
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.sell-panel strong {
  color: var(--gold-2);
  font-size: clamp(34px, 5vw, 54px);
}

.product-grid.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sell-card {
  min-height: 0;
}

.chart-section,
.checkout-shell {
  background:
    radial-gradient(circle at 84% 12%, rgba(25, 199, 147, 0.12), transparent 26%),
    rgba(255, 255, 255, 0.035);
}

.chart-filter {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.chart-card {
  padding: 18px;
  overflow: hidden;
}

canvas {
  width: 100%;
  max-height: 420px;
}

.checkout-card,
.partner-card {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.mode-switch label {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
}

.mode-switch label:has(input:checked) {
  color: #07120f;
  background: linear-gradient(135deg, var(--gold-2), var(--green));
}

.form-grid,
.admin-grid,
.dashboardGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.dashboardGrid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.span2 {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: 8px;
}

textarea {
  min-height: 96px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

select option {
  color: #07120f;
}

.checkout-actions {
  gap: 12px;
  justify-content: flex-end;
}

.summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 18px;
  background: rgba(246, 223, 153, 0.08);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.summary span {
  color: var(--muted);
}

.summary strong:last-child {
  color: var(--green);
  font-size: 24px;
}

.status {
  color: var(--green);
  font-weight: 800;
}

.status.error {
  color: var(--danger);
}

.reseller-section {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(246,201,95,0.08));
}

.footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 36px clamp(18px, 5vw, 76px) 96px;
  color: white;
  background: var(--dark);
}

.footer p {
  color: rgba(255, 255, 255, 0.75);
}

.mobile-tabbar {
  display: none;
}

.auth-page,
.admin-page {
  min-height: 100vh;
}

.auth-page {
  display: grid;
  place-items: center;
  padding: 32px 18px;
  background:
    linear-gradient(rgba(255, 250, 240, 0.88), rgba(255, 250, 240, 0.96)),
    url("/images/gold-hero.png") center / cover no-repeat;
}

.auth-card {
  width: min(470px, 100%);
}

.admin-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  min-height: 100vh;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px;
  color: white;
  background: var(--dark);
}

.admin-menu {
  display: grid;
  gap: 8px;
  margin-top: 28px;
}

.admin-menu button,
.admin-menu a {
  min-height: 42px;
  padding: 0 12px;
  color: rgba(255, 255, 255, 0.78);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  font-weight: 900;
}

.admin-menu button.active {
  color: white;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(246, 223, 153, 0.26);
}

.admin-main {
  padding: 34px clamp(18px, 4vw, 54px);
}

.admin-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.admin-tab {
  display: none;
}

.admin-tab.active {
  display: grid;
  gap: 16px;
}

.wp-table {
  display: grid;
  gap: 10px;
}

.wp-row {
  display: grid;
  grid-template-columns: 1fr 130px 120px auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

@media (max-width: 1080px) {
  .product-grid,
  .blog-grid,
  .sell-grid,
  .quick-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 760px) {
  body {
    padding-bottom: 76px;
  }

  .desktop-nav,
  .nav-cta {
    display: none;
  }

  .topbar {
    position: static;
    padding: 14px 18px;
  }

  .hero {
    min-height: 620px;
    align-items: end;
    padding: 42px 18px 32px;
    background:
      linear-gradient(180deg, rgba(16, 24, 22, 0.22), rgba(16, 24, 22, 0.98)),
      url("/images/gold-hero.png") center / cover no-repeat;
  }

  h1 {
    font-size: 42px;
  }

  .quick-stats,
  .product-grid,
  .product-grid.compact,
  .sell-grid,
  .blog-grid,
  .chart-filter,
  .form-grid,
  .admin-grid,
  .dashboardGrid,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .quick-stats {
    margin: 0;
    border-radius: 0;
  }

  .section {
    padding: 58px 18px;
  }

  .product-card {
    grid-template-columns: 130px 1fr;
    min-height: 0;
  }

  .product-media {
    min-height: 100%;
  }

  .checkout-actions,
  .footer {
    align-items: stretch;
    flex-direction: column;
  }

  .mobile-tabbar {
    position: fixed;
    right: 10px;
    bottom: 10px;
    left: 10px;
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 8px;
    background: rgba(16, 24, 22, 0.95);
    border: 1px solid rgba(246, 223, 153, 0.34);
    border-radius: 18px;
    box-shadow: var(--shadow);
  }

  .mobile-tabbar a {
    display: grid;
    gap: 4px;
    place-items: center;
    color: white;
    font-size: 12px;
    font-weight: 900;
  }

  .mobile-tabbar span {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    color: var(--dark);
    background: var(--gold-2);
    border-radius: 8px;
    font-size: 13px;
  }

  .admin-sidebar {
    position: static;
    height: auto;
  }

  .admin-top,
  .wp-row {
    display: grid;
    grid-template-columns: 1fr;
  }
}
