:root {
  --navy: #16324f;
  --navy-2: #0f2740;
  --ink: #122033;
  --muted: #667384;
  --line: #e6edf4;
  --paper: #f6f8fb;
  --white: #ffffff;
  --gold: #f5b400;
  --gold-2: #ffc21a;
  --gold-ink: #1b1608;
  --max: 1180px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
.wrap { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }

/* Header — screenshot 1 */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid #edf2f7;
}
.topbar-row {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 74px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}
.brand img { width: 38px; height: 38px; }
.brand-name {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}
.brand-name b { color: var(--gold); font-weight: 800; }
.nav {
  margin-left: auto;
  display: none;
  align-items: center;
  gap: 6px;
}
.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #4a5a6e;
}
.nav a:hover,
.nav a.is-on { color: var(--ink); background: #f3f6fa; }
.nav .pill {
  background: #3B82F6;
  color: #fff;
  font-weight: 800;
  padding: 10px 16px;
}
.nav .pill:hover { background: #2563EB; color: #fff; }
.pwa-install {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  background: var(--navy);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  white-space: nowrap;
  line-height: 1;
}
.pwa-install:hover { background: var(--navy-2); color: #fff; }
.pwa-install svg { width: 16px; height: 16px; }
.pwa-install span { display: none; }
.pwa-tip {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(15, 23, 42, 0.45);
  display: grid;
  place-items: center;
  padding: 20px;
}
.pwa-tip[hidden] { display: none; }
.pwa-tip-card {
  position: relative;
  width: min(420px, 100%);
  background: #fff;
  border-radius: 18px;
  padding: 24px 22px 20px;
  box-shadow: 0 20px 50px rgba(18, 32, 51, 0.22);
}
.pwa-tip-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: transparent;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--muted);
}
.pwa-tip-body h3 { margin: 0 0 8px; font-size: 1.1rem; }
.pwa-tip-body p { margin: 0; color: var(--muted); }
.menu-btn {
  margin-left: auto;
  display: inline-flex;
  border: 0;
  background: #f3f6fa;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: 86vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(14, 36, 58, 0.78), rgba(12, 32, 52, 0.86)),
    url("../img/hero.jpg") center / cover no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto -8% -18% auto;
  width: min(42vw, 420px);
  height: min(70vh, 560px);
  background:
    radial-gradient(circle at 40% 30%, rgba(255,255,255,0.14), transparent 55%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 88px 0 96px;
  max-width: 820px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.18);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 18px 0 0;
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 800;
}
.hero-lead {
  margin: 16px auto 0;
  max-width: 560px;
  color: rgba(255,255,255,0.86);
  font-size: 1.05rem;
}
.search {
  margin: 32px auto 0;
  width: min(560px, 100%);
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
}
.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 16px 8px 16px 20px;
  color: var(--ink);
}
.search input:focus { outline: none; }
.search button {
  border: 0;
  background: var(--gold);
  color: var(--gold-ink);
  font-weight: 800;
  padding: 12px 22px;
  margin: 6px;
  border-radius: 999px;
}
.hero-cta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 800;
  font-size: 0.95rem;
  border: 0;
}
.btn-gold { background: #3B82F6; color: #fff; }
.btn-gold:hover { background: #2563EB; }
.btn-ghost {
  background: rgba(20, 34, 52, 0.55);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.22);
}
.btn-ghost:hover { background: rgba(20, 34, 52, 0.75); }
.btn-navy { background: var(--navy); color: #fff; }

.discord-tab {
  position: fixed;
  right: 16px;
  top: 48%;
  z-index: 80;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 0;
  outline: none;
  border-radius: 16px;
  background: #5865f2;
  color: #fff;
  box-shadow: 0 8px 24px rgba(88, 101, 242, 0.38);
  transform: translateY(-50%);
  transition: transform 0.15s ease, filter 0.15s ease;
}
.discord-tab:hover { color: #fff; filter: brightness(1.06); transform: translateY(-50%) scale(1.04); }
.discord-tab svg { display: block; width: 30px; height: 30px; }
@media (max-width: 720px) {
  .discord-tab { top: auto; bottom: 96px; transform: none; }
  .discord-tab:hover { transform: scale(1.04); }
}

/* Categories — screenshot 2 */
.section { padding: 72px 0; }
.center { text-align: center; }
.kicker {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: #eaf0f7;
  color: #3d5673;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.section h2 {
  margin: 12px 0 0;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -0.03em;
}
.section .muted {
  margin: 10px auto 0;
  max-width: 520px;
  color: var(--muted);
}
.shop-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.shop-card {
  background: #fff;
  border-radius: 22px;
  padding: 16px 14px 14px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(18, 32, 51, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.shop-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(18, 32, 51, 0.1);
}
.shop-card img {
  width: 100%;
  height: 132px;
  object-fit: contain;
  background: #fff;
}
.shop-card span {
  display: block;
  margin-top: 10px;
  font-weight: 700;
}

.brand-grid {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.brand-grid a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 118px;
  padding: 12px 18px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(18, 32, 51, 0.06);
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.brand-grid a:hover {
  transform: translateY(-2px);
  background: var(--gold);
  color: var(--gold-ink);
  box-shadow: 0 12px 28px rgba(18, 32, 51, 0.1);
}

/* Kakobuy-style content blocks */
.trust {
  background: #fff;
  border-radius: 24px;
  padding: 28px;
  border: 1px solid var(--line);
}
.trust-lead { font-size: 1.05rem; color: #3d4c5e; }
.hl { color: var(--navy); }
.banner {
  margin-top: 22px;
  padding: 20px 22px;
  border-radius: 16px;
  background: #eef4fb;
}
.banner h3 { margin: 0 0 8px; }
.why {
  margin-top: 22px;
  display: grid;
  gap: 14px;
}
.why article {
  background: var(--paper);
  border-radius: 16px;
  padding: 18px;
}
.why h4 { margin: 0 0 8px; }
.why p { margin: 0; color: var(--muted); }

.table-wrap { overflow-x: auto; margin-top: 24px; }
.status-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
}
.status-table th, .status-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.status-table th { font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.pill {
  display: inline-block;
  background: #e8f7ee;
  color: #176b3a;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 700;
}

.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 10px;
}
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { margin: 10px 0 0; color: var(--muted); }

.post-grid {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}
.post-card {
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  border: 1px solid var(--line);
}
.post-card h3 { margin: 6px 0 8px; }
.post-card p { margin: 0; color: var(--muted); }

.site-footer {
  margin-top: auto;
  background: var(--navy-2);
  color: rgba(255,255,255,0.78);
  padding: 42px 0 20px;
}
.foot-grid {
  display: grid;
  gap: 24px;
}
.site-footer h3 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 6px 0; }
.foot-note {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.82rem;
}

@media (min-width: 760px) {
  .nav { display: flex; }
  .menu-btn { display: none; }
  .pwa-install span { display: inline; }
  .shop-grid { grid-template-columns: repeat(3, 1fr); }
  .why { grid-template-columns: repeat(2, 1fr); }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .shop-card img { height: 148px; }
}
@media (min-width: 1024px) {
  .shop-grid { grid-template-columns: repeat(6, 1fr); }
  .hero { min-height: 78vh; }
}

/* Inner pages (browse / product) */
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; }
.site-header .brand { flex-direction: column; align-items: flex-start; gap: 2px; }
.site-header .brand strong { font-size: 1.2rem; }
.site-header .brand span { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.cat-bar { display: flex; gap: 12px; overflow-x: auto; padding: 10px 0 14px; }
.cat-bar a { flex: 0 0 auto; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.page-hero { padding: 40px 0 8px; }
.page-hero h1 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.prose { max-width: 42rem; color: var(--muted); }
.legal { padding: 48px 0 72px; max-width: 46rem; }
.legal h1 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.4rem); letter-spacing: -0.03em; }
.legal .updated { margin: 8px 0 20px; color: var(--muted); font-size: 0.85rem; }
.legal h2 { margin: 28px 0 8px; font-size: 1.15rem; }
.legal p, .legal li { color: var(--muted); line-height: 1.65; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
.search-box { display: flex; background: #fff; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.search-box input { flex: 1; border: 0; padding: 14px 16px; }
.search-box button { border: 0; background: var(--gold); font-weight: 800; padding: 0 18px; }
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.product-card .thumb { aspect-ratio: 4/5; border-radius: 16px; position: relative; overflow: hidden; }
.product-card .thumb-meta { position: absolute; inset: auto 10px 10px 10px; display: flex; justify-content: space-between; color: #fff; }
.product-card h3 { margin: 10px 0 0; font-size: 0.95rem; }
.product-card .price { font-weight: 800; }
.product-card .cat { margin: 4px 0 0; font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.tone-1 { background: linear-gradient(145deg, #1a2332, #2d3a4f); }
.tone-2 { background: linear-gradient(145deg, #1f2a24, #33483c); }
.tone-3 { background: linear-gradient(145deg, #2a1f28, #453040); }
.tone-4 { background: linear-gradient(145deg, #1e2430, #3a4558); }
.tone-5 { background: linear-gradient(145deg, #242018, #3f3a28); }
.btn-accent { background: #3B82F6; color: #fff; }
.btn-sm { padding: 10px 14px; font-size: 0.8rem; }
.crumbs { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.product-layout { display: grid; gap: 24px; padding-bottom: 48px; }
.product-visual { min-height: 360px; border-radius: 20px; padding: 24px; color: #fff; }
.price-lg { font-size: 2rem; font-weight: 800; }
.checklist { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin-top: 20px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
@media (min-width: 768px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); }
  .product-layout { grid-template-columns: 0.9fr 1.1fr; }
}

.catalog { padding: 28px 0 72px; }
.catalog-intro h1 { margin: 0 0 8px; font-size: clamp(1.8rem, 4vw, 2.4rem); }
.catalog-intro p { margin: 0; color: var(--muted); max-width: 60ch; }
.catalog-search {
  display: flex;
  max-width: 520px;
  margin: 22px 0 16px;
  background: #fff;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.catalog-search input { flex: 1; border: 0; padding: 14px 18px; }
.catalog-search button { border: 0; margin: 5px; }
.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.cat-chips a {
  padding: 7px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 0.85rem;
  font-weight: 700;
}
.cat-chips a:hover { border-color: var(--ink); }
.catalog-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}
.catalog-top p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.catalog-top select {
  min-width: 220px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 10px 12px;
}
.catalog .product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px 14px;
}
.catalog .product-card,
.related .product-card {
  text-align: center;
  background: transparent;
}
.catalog .product-card .thumb,
.related .product-card .thumb {
  aspect-ratio: 1;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.catalog .product-card img,
.related .product-card img { width: 100%; height: 100%; object-fit: cover; }
.catalog .product-card h3,
.related .product-card h3 {
  margin: 10px 0 4px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #4d5a6a;
  line-height: 1.35;
}
.catalog .product-card b,
.related .product-card b { display: block; margin-top: 4px; font-weight: 800; }
.stars { color: #e4b000; font-size: 0.78rem; letter-spacing: 1px; }
.pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 36px 0 8px;
}
.pager a, .pager span {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  font-weight: 700;
}
.pager .is-on { background: var(--navy); border-color: var(--navy); color: #fff; }

.item-page { padding: 28px 0 64px; }
.item-layout { display: grid; gap: 32px; }
.item-page .gallery .main {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 1;
}
.item-page .gallery img { width: 100%; height: 100%; object-fit: cover; }
.item-info h1 { margin: 0 0 10px; font-size: clamp(1.6rem, 3vw, 2.1rem); }
.item-info .price { font-size: 1.7rem; font-weight: 800; margin: 0 0 8px; }
.item-rating { color: var(--muted); margin: 0 0 18px; }
.btn-buy { min-width: 220px; }
.item-note { color: var(--muted); font-size: 0.92rem; line-height: 1.6; }
.related { margin-top: 48px; }
.related h2 { margin: 0 0 18px; }
.related .product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 12px;
}
@media (min-width: 768px) {
  .catalog .product-grid { grid-template-columns: repeat(4, 1fr); }
  .related .product-grid { grid-template-columns: repeat(4, 1fr); }
  .item-layout { grid-template-columns: 1.05fr 0.9fr; align-items: start; }
}
@media (min-width: 1100px) {
  .catalog .product-grid { grid-template-columns: repeat(6, 1fr); }
}
