:root {
  --bg: #050505;
  --panel: #10100f;
  --panel2: #151413;
  --gold: #d9a833;
  --gold2: #f1d083;
  --text: #f7f0df;
  --muted: #c9c0ab;
  --line: rgba(217, 168, 51, .33);
  --whiteLine: rgba(255,255,255,.08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 70% 5%, rgba(217,168,51,.14), transparent 28%),
    linear-gradient(180deg, #080807 0%, #050505 55%, #080807 100%);
  font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
}
body:before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image: linear-gradient(135deg, rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(45deg, rgba(217,168,51,.08) 1px, transparent 1px);
  background-size: 80px 80px, 140px 140px;
  mask-image: radial-gradient(circle at center, black, transparent 80%);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.topbar {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 8px 20px;
  font-size: 14px;
  color: #eadab7;
  border-bottom: 1px solid var(--line);
  background: #050505;
  text-align: center;
}
.topbar span { width: 1px; height: 16px; background: var(--line); }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 64px);
  background: rgba(5,5,5,.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--whiteLine);
}
.brand img { width: 290px; max-width: 52vw; }
.nav { display: flex; align-items: center; gap: 28px; text-transform: uppercase; font-size: 14px; font-weight: 700; letter-spacing: .08em; }
.nav a { color: #f5ebd6; opacity: .92; }
.nav a:hover { color: var(--gold2); }
.nav-icon, .nav-pill { color: var(--gold) !important; }
.nav-pill { border: 1px solid var(--gold); border-radius: 999px; padding: 7px 10px; }
.menu-toggle { display: none; background: none; color: var(--gold2); border: 1px solid var(--line); font-size: 24px; border-radius: 8px; padding: 6px 10px; }
.section-pad { padding: clamp(42px, 6vw, 78px) clamp(20px, 5vw, 64px); }
.hero { min-height: 590px; display: grid; grid-template-columns: .86fr 1.14fr; gap: clamp(30px, 6vw, 82px); align-items: center; border-bottom: 1px solid var(--whiteLine); }
.eyebrow { color: var(--gold2); text-transform: uppercase; letter-spacing: .16em; font-size: 13px; font-weight: 700; }
h1, h2, h3 { margin: 0; }
h1, .section-title h2, .about-main h2, .contact-card h2 { font-family: Cinzel, Georgia, serif; font-weight: 600; }
h1 { font-size: clamp(48px, 6vw, 86px); line-height: 1.05; letter-spacing: .02em; }
.gold-line { width: 76px; height: 2px; margin: 28px 0; background: linear-gradient(90deg, var(--gold), transparent); }
.hero-text { color: var(--muted); font-size: clamp(18px, 2vw, 22px); line-height: 1.7; max-width: 560px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 0 28px; border: 1px solid var(--gold); border-radius: 2px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; transition: .25s ease; }
.btn-primary { background: rgba(217,168,51,.1); color: var(--gold2); }
.btn-secondary { background: rgba(217,168,51,.1); color: var(--gold2); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(0,0,0,.35); background: rgba(217,168,51,.18); }
.hero-frame { padding: 18px; border: 1px solid var(--line); background: linear-gradient(145deg, rgba(255,255,255,.06), rgba(0,0,0,.32)); box-shadow: 0 36px 80px rgba(0,0,0,.55); transform: perspective(1000px) rotateY(-3deg); }
.hero-frame img { width: 100%; aspect-ratio: 2.8 / 1; object-fit: contain; object-position: center; background: radial-gradient(circle at center, rgba(217,168,51,.08), rgba(0,0,0,.78)); border: 1px solid rgba(255,255,255,.08); filter: contrast(1.07) saturate(.98) brightness(.94); }
.section-title { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center; margin-bottom: 34px; }
.section-title span { height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); }
.section-title h2 { color: var(--gold2); text-transform: uppercase; letter-spacing: .12em; font-size: clamp(26px, 3vw, 38px); text-align: center; }
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.category-card { overflow: hidden; border: 1px solid var(--line); background: var(--panel); border-radius: 8px; transition: .3s ease; position: relative; }
.category-card:after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 42%, rgba(0,0,0,.35)); }
.category-card img { width: 100%; aspect-ratio: 1.28 / 1; object-fit: contain; object-position: center; padding: 18px; background: radial-gradient(circle at center, rgba(217,168,51,.09), rgba(0,0,0,.76) 70%); transition: .45s ease; filter: brightness(.96) contrast(1.06); }
.category-card:hover { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(0,0,0,.45), 0 0 0 1px rgba(241,208,131,.28); }
.category-card:hover img { transform: scale(1.035); filter: brightness(1.04) contrast(1.08); }
.category-info { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; min-height: 96px; padding: 18px 24px; border-top: 1px solid rgba(255,255,255,.08); background: linear-gradient(180deg, rgba(20,20,19,.92), rgba(8,8,8,.98)); }
.category-info small { color: var(--gold); letter-spacing: .2em; }
.category-info h3 { margin-top: 4px; font-family: Cinzel, Georgia, serif; color: #f6dfab; font-size: clamp(20px, 2vw, 28px); }
.category-info span { color: var(--gold); font-size: 28px; }
.trust-strip { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; border-top: 1px solid var(--whiteLine); border-bottom: 1px solid var(--whiteLine); background: rgba(0,0,0,.2); }
.trust-item { padding: 0 28px; border-right: 1px solid var(--whiteLine); }
.trust-item:last-child { border-right: 0; }
.trust-item b { color: #fff3d4; text-transform: uppercase; letter-spacing: .08em; }
.trust-item p { color: var(--muted); line-height: 1.65; }
.about-card, .contact-card, .empty-highlight { border: 1px solid var(--line); background: linear-gradient(145deg, rgba(22,22,21,.95), rgba(6,6,6,.95)); box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.about-card { display: grid; grid-template-columns: 1.35fr .75fr; gap: 40px; padding: clamp(28px, 5vw, 56px); }
.about-main h2 { font-size: clamp(36px, 4vw, 54px); color: var(--gold2); }
.about-main h3 { margin: 10px 0 24px; color: #fff; font-weight: 500; }
.about-main p { color: var(--muted); line-height: 1.85; font-size: 17px; }
.about-main a { color: var(--gold2); font-weight: 700; }
.membership-box { padding: 30px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03); }
.membership-box h3 { font-family: Cinzel, Georgia, serif; color: var(--gold2); margin-bottom: 20px; }
.membership-box ul { margin: 0; padding: 0; list-style: none; }
.membership-box li { padding: 14px 0 14px 28px; border-bottom: 1px solid rgba(255,255,255,.07); color: var(--muted); position: relative; line-height: 1.45; }
.membership-box li:before { content: "✓"; color: var(--gold); position: absolute; left: 0; }
.empty-highlight { text-align: center; padding: 58px 24px; color: var(--muted); }
.empty-highlight h3 { font-family: Cinzel, Georgia, serif; color: var(--gold2); font-size: 34px; }
.contact-card { display: flex; justify-content: space-between; gap: 28px; align-items: center; padding: clamp(28px, 5vw, 54px); }
.contact-card h2 { font-size: clamp(32px, 4vw, 48px); color: var(--gold2); }
.contact-card p { color: var(--muted); max-width: 650px; line-height: 1.7; }
.contact-actions { display: flex; flex-direction: column; gap: 14px; min-width: 300px; }
.footer { padding: 32px; text-align: center; color: #9b927f; border-top: 1px solid var(--whiteLine); }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (max-width: 1000px) {
  .nav { display: none; position: absolute; top: 100%; right: 20px; left: 20px; flex-direction: column; align-items: flex-start; padding: 22px; background: #080808; border: 1px solid var(--line); }
  .nav.open { display: flex; }
  .menu-toggle { display: block; }
  .hero { grid-template-columns: 1fr; }
  .hero-frame { transform: none; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-strip { grid-template-columns: repeat(2,1fr); gap: 28px 0; }
  .about-card, .contact-card { grid-template-columns: 1fr; display: grid; }
}
@media (max-width: 640px) {
  .topbar { font-size: 12px; }
  .brand img { width: 220px; }
  .section-pad { padding-left: 18px; padding-right: 18px; }
  .category-grid, .trust-strip { grid-template-columns: 1fr; }
  .trust-item { border-right: 0; padding: 0; }
  .section-title { grid-template-columns: 1fr; }
  .section-title span { display: none; }
  .contact-actions { min-width: 0; }
}


/* Inventory category pages */
.page-hero {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  border-bottom: 1px solid var(--whiteLine);
}
.page-hero h1 { font-size: clamp(40px, 5vw, 72px); }
.page-hero p { color: var(--muted); line-height: 1.75; font-size: 18px; max-width: 680px; }
.page-hero-image { padding: 16px; border: 1px solid var(--line); background: linear-gradient(145deg, rgba(255,255,255,.06), rgba(0,0,0,.32)); box-shadow: 0 30px 70px rgba(0,0,0,.5); }
.page-hero-image img { width: 100%; aspect-ratio: 1.7 / 1; object-fit: contain; background: radial-gradient(circle at center, rgba(217,168,51,.08), rgba(0,0,0,.78)); }
.inventory-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 28px; flex-wrap: wrap; }
.inventory-toolbar p { color: var(--muted); margin: 0; line-height: 1.6; }
.inventory-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-card { border: 1px solid var(--line); background: linear-gradient(145deg, rgba(20,20,19,.96), rgba(7,7,7,.96)); border-radius: 8px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.28); }
.product-card img { width: 100%; aspect-ratio: 1.1 / 1; object-fit: contain; padding: 16px; background: radial-gradient(circle at center, rgba(217,168,51,.08), rgba(0,0,0,.78) 72%); }
.product-body { padding: 22px; }
.product-body h3 { font-family: Cinzel, Georgia, serif; color: #f6dfab; font-size: 24px; margin-bottom: 10px; }
.product-description { color: var(--muted); line-height: 1.65; min-height: 54px; }
.product-meta { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin: 18px 0; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.08); }
.product-price { color: var(--gold2); font-size: 24px; font-weight: 800; }
.product-status { color: #d7ccb4; font-size: 12px; text-transform: uppercase; letter-spacing: .14em; }
.buy-form { margin: 0; }
.buy-form button { width: 100%; cursor: pointer; font-family: inherit; }
.empty-inventory { border: 1px solid var(--line); background: rgba(255,255,255,.035); padding: 46px 26px; text-align: center; color: var(--muted); border-radius: 8px; }
.empty-inventory h3 { color: var(--gold2); font-family: Cinzel, Georgia, serif; font-size: 32px; margin-bottom: 10px; }
.edit-guide { margin-top: 34px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03); padding: 24px; color: var(--muted); line-height: 1.7; }
.edit-guide code { color: var(--gold2); }
.breadcrumb { color: var(--muted); margin-bottom: 18px; font-size: 14px; }
.breadcrumb a { color: var(--gold2); }
@media (max-width: 1000px) { .page-hero { grid-template-columns: 1fr; } .inventory-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .inventory-grid { grid-template-columns: 1fr; } }

/* BayardCoin V3 product tools */
.inventory-controls {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 14px;
  margin: 0 0 28px;
}
.inventory-controls input,
.inventory-controls select {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255,255,255,.045);
  color: #f7f0df;
  padding: 0 16px;
  font-family: inherit;
  font-size: 15px;
  outline: none;
}
.inventory-controls input::placeholder { color: #8f846f; }
.inventory-controls select option { background: #111; color: #f7f0df; }
.product-image-button {
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}
.product-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.product-badges span {
  border: 1px solid rgba(217,168,51,.32);
  color: #e8d09a;
  background: rgba(217,168,51,.08);
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .09em;
}
.product-details {
  color: #dfd0b4;
  margin: 0 0 10px;
  font-size: 14px;
  letter-spacing: .04em;
}
.buy-link { width: 100%; box-sizing: border-box; }
.image-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 28px;
  background: rgba(0,0,0,.92);
  backdrop-filter: blur(8px);
}
.image-modal img {
  max-width: min(94vw, 1100px);
  max-height: 82vh;
  object-fit: contain;
  border: 1px solid var(--line);
  background: #050505;
  box-shadow: 0 30px 90px rgba(0,0,0,.7);
}
.image-modal p { color: var(--gold2); margin: 0; font-weight: 700; text-align: center; }
.modal-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  color: var(--gold2);
  font-size: 28px;
  cursor: pointer;
}
@media (max-width: 640px) {
  .inventory-controls { grid-template-columns: 1fr; }
}
