:root {
  --bg: #f6f8f9;
  --surface: #ffffff;
  --ink: #0f1b2d;
  --muted: #5b6b7c;
  --line: #e6ebee;
  --brand: #16a37a;       /* CryptoNow teal-green */
  --brand-ink: #0c7a5a;
  --brand-soft: #e7f6f0;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15,27,45,.04), 0 8px 24px rgba(15,27,45,.06);
  --font: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --display: 'Sora', var(--font);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -.01em; text-decoration: none; }
.brand .mark {
  width: 26px; height: 26px; border-radius: 8px;
  background: conic-gradient(from 210deg, var(--brand), #34d0a3, var(--brand));
  display: inline-block; position: relative;
}
.brand .mark::after {
  content: ''; position: absolute; inset: 7px; border-radius: 50%;
  background: var(--surface);
}
.brand small { color: var(--muted); font-weight: 500; font-family: var(--font); }
.nav { display: flex; gap: 22px; font-size: 14px; color: var(--muted); }
.nav a { text-decoration: none; }
.nav a:hover { color: var(--ink); }

/* Hero */
.hero { padding: 56px 0 28px; }
.hero h1 { font-family: var(--display); font-size: 40px; line-height: 1.1; letter-spacing: -.02em; margin: 0 0 12px; max-width: 18ch; }
.hero p { color: var(--muted); font-size: 17px; margin: 0; max-width: 52ch; }
.pill { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--brand-ink); background: var(--brand-soft); border-radius: 999px; padding: 5px 12px; margin-bottom: 18px; }
.pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }

/* Layout */
.shop { display: grid; grid-template-columns: 1fr 360px; gap: 28px; padding: 16px 0 72px; align-items: start; }
@media (max-width: 880px) { .shop { grid-template-columns: 1fr; } }

/* Products */
.products { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .products { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.thumb { height: 120px; border-radius: 10px; margin-bottom: 14px; background: var(--brand-soft); position: relative; overflow: hidden; }
.thumb span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 38px; }
.card h3 { margin: 0 0 4px; font-size: 16px; letter-spacing: -.01em; }
.card .desc { color: var(--muted); font-size: 13px; margin: 0 0 14px; flex: 1; }
.card .row { display: flex; align-items: center; justify-content: space-between; }
.price { font-weight: 700; font-size: 16px; }
.add { border: 1px solid var(--brand); color: var(--brand-ink); background: var(--surface); font-weight: 600; font-size: 13px; padding: 8px 14px; border-radius: 9px; cursor: pointer; transition: .12s; }
.add:hover { background: var(--brand-soft); }

/* Cart */
.cart { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); position: sticky; top: 92px; }
.cart h2 { font-family: var(--display); font-size: 16px; margin: 0; padding: 18px 18px 12px; border-bottom: 1px solid var(--line); }
.cart-items { padding: 6px 18px; min-height: 60px; }
.cart-empty { color: var(--muted); font-size: 14px; padding: 18px 0; }
.line { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.line:last-child { border-bottom: 0; }
.line .name { flex: 1; font-size: 14px; }
.line .name small { display: block; color: var(--muted); }
.qty { display: flex; align-items: center; gap: 8px; }
.qty button { width: 24px; height: 24px; border: 1px solid var(--line); background: var(--surface); border-radius: 7px; cursor: pointer; font-size: 15px; line-height: 1; color: var(--ink); }
.qty span { width: 18px; text-align: center; font-size: 14px; }
.cart-foot { padding: 16px 18px 18px; border-top: 1px solid var(--line); }
.total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.total .t-label { color: var(--muted); font-size: 14px; }
.total .t-val { font-family: var(--display); font-weight: 700; font-size: 22px; }

.pay {
  width: 100%; border: 0; cursor: pointer;
  background: var(--brand); color: #fff; font-weight: 600; font-size: 15px;
  padding: 13px; border-radius: 11px; display: flex; align-items: center; justify-content: center; gap: 9px;
  transition: .12s;
}
.pay:hover { background: var(--brand-ink); }
.pay:disabled { opacity: .5; cursor: not-allowed; }
.pay .coin { width: 17px; height: 17px; border-radius: 50%; background: #fff; display: inline-grid; place-items: center; color: var(--brand); font-size: 11px; font-weight: 800; }
.newtab { display: block; text-align: center; margin-top: 10px; font-size: 13px; color: var(--muted); }
.newtab a { color: var(--brand-ink); text-decoration: none; font-weight: 500; }
.newtab a[aria-disabled="true"] { pointer-events: none; opacity: .5; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding: 22px 0; color: var(--muted); font-size: 13px; }
.site-foot .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* Success page */
.status-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); max-width: 460px; margin: 64px auto; padding: 32px; text-align: center; }
.status-card .big { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center; font-size: 30px; }
.status-card .big.pending { background: var(--brand-soft); }
.status-card .big.paid { background: var(--brand); color: #fff; }
.spinner { width: 30px; height: 30px; border: 3px solid var(--brand-soft); border-top-color: var(--brand); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }
.status-card h1 { font-family: var(--display); font-size: 22px; margin: 0 0 6px; }
.status-card p { color: var(--muted); margin: 4px 0; font-size: 14px; }
.status-card .meta { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.status-card .meta code { color: var(--ink); }

/* Embed page */
.embed-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding: 16px 0 72px; align-items: start; }
@media (max-width: 880px) { .embed-grid { grid-template-columns: 1fr; } }
.frame-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.frame-wrap iframe { width: 100%; height: 720px; border: 0; display: block; }
.note { color: var(--muted); font-size: 13px; margin-top: 10px; }
