/* H3 Store
   Layout: start-aligned columns separated by hairlines; the Discord preview in the hero is the one bold element. */
:root {
  --bg: #0a0a09;
  --bg-2: #111110;
  --panel: #161614;
  --panel-2: #1d1d1a;
  --line: #2a2924;
  --text: #ece8de;
  --muted: #9b968a;
  --gold: #d4af37;
  --gold-hi: #ecd27a;
  --gold-lo: #8c7222;
  --on-gold: #17130a;
  --ok: #5fc27e;
  --warn: #e3b341;
  --bad: #e0634d;
  /* Discord preview */
  --dc-frame: #1e1f22;
  --dc-side: #2b2d31;
  --dc-chat: #313338;
  --dc-hover: #404249;
  --dc-text: #dbdee1;
  --dc-head: #f2f3f5;
  --dc-mute: #949ba4;
  --dc-blurple: #5865f2;
  --dc-green: #248046;
  --dc-grey: #4e5058;
  /* Type */
  --display: "Reem Kufi", "Readex Pro", system-ui, sans-serif;
  --body: "Readex Pro", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --radius: 10px;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  line-height: 1.75;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.3; text-wrap: balance; }
h4, b, strong { font-weight: 500; }
.wrap {
  max-width: calc(1140px + 32px); margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.gold-text { color: var(--gold); }

/* ===== Header ===== */
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--bg);
}
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 1.1rem; letter-spacing: .04em; }
.brand img { width: 36px; height: 36px; border-radius: 50%; }
.nav { display: flex; gap: 26px; }
.nav a { color: var(--muted); font-size: .92rem; padding-block: 22px; border-bottom: 2px solid transparent; transition: color .15s; }
.nav a:hover { color: var(--text); }
.nav a.active { color: var(--text); border-bottom-color: var(--gold); }
.tools { display: flex; align-items: center; gap: 12px; margin-inline-start: auto; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.lang button { background: none; border: 0; color: var(--muted); padding: 5px 9px; cursor: pointer; font: 600 .72rem var(--mono); }
.lang button + button { border-inline-start: 1px solid var(--line); }
.lang button.on { background: var(--panel-2); color: var(--gold); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 6px; width: 40px; height: 40px; font-size: 1.1rem; cursor: pointer; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 6px; border: 1px solid transparent; cursor: pointer;
  font: 500 .92rem var(--body); white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
.btn-gold { background: var(--gold); color: var(--on-gold); }
.btn-gold:hover { background: var(--gold-hi); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--gold-lo); color: var(--gold-hi); }
.btn-sm { padding: 7px 14px; font-size: .84rem; }
.btn-red { background: transparent; color: var(--bad); border-color: rgba(224, 99, 77, .45); }
.btn-green { background: transparent; color: var(--ok); border-color: rgba(95, 194, 126, .45); }
.btn:disabled { opacity: .4; cursor: not-allowed; }

/* ===== Hero ===== */
.hero { padding-block: 72px 88px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); line-height: 1.28; margin-bottom: 20px; }
.hero .lead { color: var(--muted); font-size: 1.06rem; max-width: 34em; margin-bottom: 30px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .from { color: var(--muted); font-size: .9rem; margin-top: 24px; }
.hero .from b { color: var(--text); font-family: var(--mono); font-weight: 600; }
.shot { min-width: 0; }
.shot figcaption { color: var(--muted); font-size: .78rem; margin-top: 10px; }

/* Discord preview */
.dc { background: var(--dc-frame); border: 1px solid var(--dc-side); border-radius: 10px; overflow: hidden; box-shadow: 0 30px 70px rgba(0, 0, 0, .55); font-family: var(--body); }
.dc-top { height: 36px; display: flex; align-items: center; gap: 7px; padding-inline: 12px; color: var(--dc-mute); font-size: .8rem; border-bottom: 1px solid #111214; }
.dc-top i { width: 10px; height: 10px; border-radius: 50%; background: var(--dc-grey); }
.dc-top span { margin-inline-start: 10px; color: var(--dc-head); }
.dc-body { display: grid; grid-template-columns: 180px minmax(0, 1fr); min-height: 330px; }
.dc-side { background: var(--dc-side); padding: 12px 8px; font-size: .8rem; color: var(--dc-mute); }
.dc-server { color: var(--dc-head); font-weight: 500; padding: 0 8px 10px; margin-bottom: 6px; border-bottom: 1px solid #1f2023; }
.dc-cat { font-size: .68rem; letter-spacing: .04em; padding: 10px 8px 4px; }
.dc-ch { padding: 3px 8px; border-radius: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-ch.on { background: var(--dc-hover); color: var(--dc-head); }
.dc-chat { background: var(--dc-chat); padding: 18px 16px 12px; display: flex; flex-direction: column; justify-content: flex-end; gap: 16px; min-width: 0; }
.m { display: flex; gap: 12px; }
.m .av { width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; }
.av-user { background: var(--gold-lo); color: var(--on-gold); display: grid; place-items: center; font-weight: 600; font-size: .9rem; }
.m-b { min-width: 0; }
.m-h { display: flex; align-items: center; gap: 6px; }
.m-h .who { color: var(--dc-head); font-weight: 500; font-size: .9rem; }
.m-h time { color: var(--dc-mute); font-size: .7rem; }
.tagbot { background: var(--dc-blurple); color: #fff; font-size: .6rem; font-weight: 600; padding: 1px 5px; border-radius: 3px; }
.m .txt { color: var(--dc-text); font-size: .9rem; }
.embed { margin-top: 6px; background: var(--dc-side); border-radius: 4px; border-inline-start: 4px solid var(--gold); padding: 10px 14px 12px; max-width: 360px; }
.embed h5 { color: var(--dc-head); font-size: .9rem; font-weight: 500; }
.embed .f { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin-top: 8px; }
.embed .f b { display: block; color: var(--dc-head); font-size: .74rem; }
.embed .f span { color: var(--dc-text); font-size: .82rem; }
.dc-btns { display: flex; gap: 8px; margin-top: 8px; }
.dc-btns span { background: var(--dc-grey); color: #fff; font-size: .8rem; padding: 5px 14px; border-radius: 3px; }
.dc-btns .g { background: var(--dc-green); }
.typing { color: var(--dc-mute); font-size: .72rem; display: flex; align-items: center; gap: 3px; }
.typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--dc-mute); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }
.typing span { margin-inline-start: 6px; }
@keyframes blink { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }

/* ===== Sections ===== */
section { padding-block: 88px; }
section + section { border-top: 1px solid var(--line); }
.head { max-width: 40em; margin-bottom: 40px; }
.head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 6px; }
.head p { color: var(--muted); }

/* Steps: a real sequence, so it keeps its numbers */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.steps li { padding: 22px 24px 4px 0; padding-inline: 0 24px; }
.steps li + li { padding-inline-start: 24px; border-inline-start: 1px solid var(--line); }
.steps .n { display: block; font: 600 .8rem var(--mono); color: var(--gold); margin-bottom: 10px; }
.steps h3 { font-size: 1.1rem; margin-bottom: 4px; }
.steps p { color: var(--muted); font-size: .92rem; }

/* Product */
.product { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); overflow: hidden; }
.product-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 28px; }
.bot-icon { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); color: var(--gold); flex-shrink: 0; }
.bot-icon svg { width: 50%; height: 50%; }
.kind { display: inline-block; font-size: .75rem; color: var(--gold); border: 1px solid var(--gold-lo); border-radius: 4px; padding: 0 8px; margin-bottom: 6px; }
.product-head h3 { font-size: 1.4rem; }
.product-head p { color: var(--muted); font-size: .95rem; }
.buy { display: grid; gap: 10px; justify-items: end; text-align: end; }
.price { font: 600 1.9rem var(--mono); line-height: 1; }
.price small { font: 400 .85rem var(--body); color: var(--muted); }
.feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border-top: 1px solid var(--line); }
.feat { background: var(--bg-2); padding: 24px 28px; }
.feat h4 { color: var(--gold-hi); font-size: .95rem; margin-bottom: 10px; }
.feat ul { list-style: none; display: grid; gap: 6px; }
.feat li { color: var(--muted); font-size: .88rem; padding-inline-start: 16px; position: relative; }
.feat li::before { content: ""; position: absolute; inset-inline-start: 0; top: .85em; width: 7px; height: 1px; background: var(--gold); }
.soon { margin-top: 16px; color: var(--muted); font-size: .9rem; }

/* Pricing */
.price-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 32px; }
.price-top .head { margin-bottom: 0; }
.toggle { display: flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.toggle button { background: none; border: 0; color: var(--muted); padding: 9px 16px; cursor: pointer; font: 500 .88rem var(--body); }
.toggle button + button { border-inline-start: 1px solid var(--line); }
.toggle button.on { background: var(--panel-2); color: var(--text); }
.toggle .save { color: var(--ok); font-size: .75rem; margin-inline-start: 6px; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.plan { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.plan.live { border-top: 2px solid var(--gold); }
.plan .state { font-size: .78rem; color: var(--muted); }
.plan.live .state { color: var(--gold); }
.plan h3 { font-size: 1.2rem; }
.plan .desc { color: var(--muted); font-size: .9rem; min-height: 3.2em; }
.plan .amount { font: 600 2.3rem var(--mono); line-height: 1.15; }
.plan .amount small { font: 400 .9rem var(--body); color: var(--muted); }
.plan .amount.word { font: 700 1.5rem var(--display); line-height: 1.55; }
.plan ul { list-style: none; display: grid; gap: 7px; flex: 1; padding-top: 14px; margin-top: 4px; border-top: 1px solid var(--line); }
.plan li { font-size: .9rem; display: flex; gap: 10px; align-items: center; }
.plan li::before { content: ""; width: 8px; height: 1px; background: var(--gold); flex-shrink: 0; }
.plan .btn { width: 100%; margin-top: 8px; }

/* Safety */
.safe { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.safe > div { padding-top: 22px; border-top: 1px solid var(--line); }
.safe .ico { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line); color: var(--gold); margin-bottom: 14px; }
.safe .ico svg { width: 20px; height: 20px; }
.safe h4 { font-size: 1rem; margin-bottom: 4px; }
.safe p { color: var(--muted); font-size: .9rem; }

/* Contact */
.cta { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 34px 36px; border: 1px solid var(--gold-lo); border-radius: var(--radius); background: var(--bg-2); }
.cta h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 4px; }
.cta p { color: var(--muted); }
.cta-act { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.cta code { font: 500 .9rem var(--mono); color: var(--gold-hi); user-select: all; direction: ltr; }

/* Footer */
footer { border-top: 1px solid var(--line); padding-block: 28px; color: var(--muted); font-size: .88rem; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
footer a:hover { color: var(--gold-hi); }

/* ===== Forms / panels ===== */
.page { padding-block: 56px; }
.page-head { margin-bottom: 28px; }
.page-head h1 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
.page-head p { color: var(--muted); }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.panel { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.panel h3 { margin-bottom: 14px; font-size: 1.1rem; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 500; margin-bottom: 6px; font-size: .92rem; }
.field .hint { color: var(--muted); font-size: .8rem; margin-top: 5px; }
input, select, textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--line); color: var(--text);
  padding: 11px 13px; border-radius: 6px; font: inherit; font-size: .95rem; transition: border-color .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); }
input.ok { border-color: var(--ok); }
input.bad { border-color: var(--bad); }
.msg { font-size: .82rem; margin-top: 6px; min-height: 1.2em; }
.msg.ok { color: var(--ok); }
.msg.bad { color: var(--bad); }
.sec { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); }
.sec h3 { margin-bottom: 4px; }
.sec h3 + .field, .sec h3 + .two { margin-top: 14px; }
.sec-d { color: var(--muted); font-size: .85rem; margin-bottom: 16px; }
.sec-d.req { color: var(--gold-hi); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.two > * { min-width: 0; }
.tip { font-size: .85rem; color: var(--muted); background: var(--bg); border: 1px dashed var(--line); border-radius: 6px; padding: 10px 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.check input { width: auto; margin-top: 6px; accent-color: var(--gold); }
.check a { color: var(--gold-hi); text-decoration: underline; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding-block: 10px; border-bottom: 1px solid var(--line); font-size: .95rem; }
.sum-row span:first-child { color: var(--muted); }
.sum-total { font: 600 1.8rem var(--mono); margin: 14px 0; }
.note { background: rgba(227, 179, 65, .07); border: 1px solid rgba(227, 179, 65, .3); color: var(--warn); padding: 12px 14px; border-radius: 6px; font-size: .86rem; margin: 14px 0; }
.methods { display: grid; gap: 8px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.methods .lbl { color: var(--muted); font-size: .95rem; }
.method { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 6px; padding: 11px 14px; cursor: pointer; transition: border-color .15s; }
.method:hover { border-color: var(--gold-lo); }
.method:has(input:checked) { border-color: var(--gold); background: var(--panel); }
.method input { width: auto; accent-color: var(--gold); flex-shrink: 0; }
.method .m-t { display: grid; min-width: 0; }
.method b { font-size: .92rem; }
.method small { color: var(--muted); font-size: .78rem; }
.method .cur { margin-inline-start: auto; font: 600 .92rem var(--mono); font-style: normal; white-space: nowrap; }
.plan .alt { color: var(--muted); font-size: .82rem; margin-top: -6px; }
.left { font-size: .85rem; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 10px 14px; margin-bottom: 12px; }
.left b { display: block; color: var(--text); margin-bottom: 4px; }
.left ul { list-style: none; display: grid; gap: 2px; }
.left li { padding-inline-start: 14px; position: relative; }
.left li::before { content: ""; position: absolute; inset-inline-start: 0; top: .85em; width: 6px; height: 6px; border-radius: 50%; background: var(--bad); }
.left.ready { color: var(--ok); border-color: rgba(95, 194, 126, .4); }
.pay-logos { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; justify-content: center; }
.pay-logos span { font: 600 .72rem var(--mono); border: 1px solid var(--line); border-radius: 4px; padding: 3px 9px; color: var(--muted); }

/* Dashboard / admin */
.cards { display: grid; gap: 12px; }
.bcard { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.bcard .info { flex: 1; min-width: 200px; }
.bcard h4 { font-size: 1rem; }
.bcard .meta { color: var(--muted); font-size: .85rem; }
.bcard .btns { display: flex; gap: 8px; flex-wrap: wrap; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 500; padding: 2px 10px; border-radius: 4px; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.s-run { color: var(--ok); background: rgba(95, 194, 126, .1); }
.s-stop { color: var(--bad); background: rgba(224, 99, 77, .1); }
.s-pend { color: var(--warn); background: rgba(227, 179, 65, .1); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; }
.stat { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.stat b { display: block; font: 600 1.7rem var(--mono); }
.stat span { color: var(--muted); font-size: .85rem; }
.log { font-family: var(--mono); font-size: .8rem; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 14px; max-height: 280px; overflow: auto; direction: ltr; text-align: left; }
.log div { padding-block: 3px; color: var(--muted); border-bottom: 1px dashed var(--line); }
.log b { color: var(--gold); font-weight: 500; }
.empty { color: var(--muted); text-align: center; padding: 26px; }
.req-body { width: 100%; font-size: .84rem; color: var(--muted); display: grid; gap: 4px; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 12px; }
.req-body code { color: var(--text); font-family: var(--mono); word-break: break-all; }
.toast {
  position: fixed; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); inset-inline-start: 50%; transform: translateX(-50%);
  max-width: calc(100% - 32px); background: var(--panel-2); border: 1px solid var(--gold-lo); padding: 11px 20px; border-radius: 6px;
  opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 99;
}
[dir="rtl"] .toast { transform: translateX(50%); }
.toast.show { opacity: 1; }

/* Terms */
.terms { max-width: 800px; }
.terms h3 { color: var(--gold-hi); margin: 22px 0 6px; font-size: 1.1rem; }
.terms p { color: var(--muted); }

/* ===== Smaller screens ===== */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .steps li:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .feats, .plans, .safe, .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .menu-btn { display: block; }
  .nav {
    display: none; position: absolute; top: 68px; inset-inline: 0; flex-direction: column; gap: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  }
  .nav.open { display: flex; }
  .nav a { padding-block: 14px; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
}
@media (max-width: 600px) {
  .steps, .stats, .two { grid-template-columns: minmax(0, 1fr); }
  .steps li, .steps li + li { padding-inline: 0; border-inline-start: 0; }
  .product-head { grid-template-columns: auto minmax(0, 1fr); padding: 22px; }
  .buy { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; text-align: start; }
  .feat { padding: 20px 22px; }
  .dc-body { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .dc-side { display: none; }
  .brand span { display: none; }
  .tools .btn { display: none; }
  .hero { padding-block: 44px 60px; }
  section { padding-block: 60px; }
  .cta { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .typing i { animation: none; }
}
