/* ==========================================================================
   The Currency Bazaar — single stylesheet, no build step, no CDN.
   ========================================================================== */

:root {
  --ink:        #0a0e14;
  --surface:    #121924;
  --surface-2:  #18212e;
  --surface-3:  #1f2a3a;
  --line:       #253145;
  --line-soft:  #1c2534;
  --text:       #e8edf5;
  --muted:      #93a3ba;
  --muted-2:    #6b7c93;
  --gold:       #e3b341;
  --gold-2:     #f7dc95;
  --gold-dim:   rgba(227, 179, 65, 0.14);
  --green:      #3fb950;
  --green-dim:  rgba(63, 185, 80, 0.14);
  --red:        #f85149;
  --red-dim:    rgba(248, 81, 73, 0.14);
  --blue:       #58a6ff;
  --violet:     #a97bff;
  --radius:     14px;
  --radius-sm:  9px;
  --shadow:     0 10px 30px rgba(0, 0, 0, 0.45);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font);
  font-size: 15.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.25rem); }
h3 { font-size: 1.15rem; }
p  { margin: 0 0 1em; }
small { font-size: .82rem; }

.wrap      { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.wrap-slim { width: min(760px, 100% - 2.5rem); margin-inline: auto; }
.wrap-xs   { width: min(460px, 100% - 2.5rem); margin-inline: auto; }
.muted     { color: var(--muted); }
.center    { text-align: center; }
.mt0 { margin-top: 0; } .mb0 { margin-bottom: 0; }
.stack > * + * { margin-top: 1rem; }
.row { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.row-between { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.grow { flex: 1; }

/* ------------------------------------------------------------------ header */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 14, 20, .88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header .wrap { display: flex; align-items: center; gap: 1.25rem; height: 64px; }

.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.brand .coin {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 32% 28%, #ffe9a8, var(--gold) 45%, #9a7415);
  display: grid; place-items: center; color: #3a2a05; font-weight: 800; font-size: .95rem;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .18) inset, 0 3px 10px rgba(227, 179, 65, .3);
}
.brand b { color: var(--gold-2); font-weight: 700; }

.nav { display: flex; gap: .25rem; margin-left: auto; align-items: center; }
.nav a.navlink {
  padding: .45rem .8rem; border-radius: 999px; color: var(--muted);
  font-weight: 600; font-size: .92rem; transition: .15s;
}
.nav a.navlink:hover { color: var(--text); background: var(--surface-2); }
.nav a.navlink.active { color: var(--gold-2); background: var(--gold-dim); }

.menu-toggle { display: none; background: none; border: 0; color: var(--text); font-size: 1.5rem; cursor: pointer; padding: .2rem .5rem; }

@media (max-width: 860px) {
  .menu-toggle { display: block; margin-left: auto; }
  .nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: .2rem; padding: .8rem 1.25rem 1.2rem;
    background: var(--ink); border-bottom: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .nav a.navlink, .nav .btn { width: 100%; text-align: center; }
}

/* ------------------------------------------------------------------ buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .6rem 1.15rem; border-radius: 999px; border: 1px solid transparent;
  font-weight: 650; font-size: .93rem; cursor: pointer; white-space: nowrap;
  font-family: inherit; transition: transform .12s, filter .15s, background .15s;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #2c2005; box-shadow: 0 4px 16px rgba(227, 179, 65, .25); }
.btn-gold:hover { filter: brightness(1.07); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--gold); }
.btn-solid { background: var(--surface-3); color: var(--text); border-color: var(--line); }
.btn-solid:hover { background: var(--line); }
.btn-danger { background: var(--red-dim); color: #ff9b95; border-color: rgba(248, 81, 73, .35); }
.btn-danger:hover { background: rgba(248, 81, 73, .25); }
.btn-lg { padding: .85rem 1.7rem; font-size: 1.02rem; }
.btn-sm { padding: .35rem .75rem; font-size: .82rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }

.btn-wa    { background: #1f9d55; color: #fff; }
.btn-call  { background: #2f6fd0; color: #fff; }
.btn-mail  { background: var(--surface-3); color: var(--text); border-color: var(--line); }
.btn-wa:hover, .btn-call:hover { filter: brightness(1.1); }

/* ------------------------------------------------------------------- cards */

.card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); }
.card-pad { padding: 1.25rem; }
.panel { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 1.4rem; }

.badge {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .18rem .55rem; border-radius: 999px;
  font-size: .7rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  border: 1px solid transparent; white-space: nowrap;
}
.badge-pro       { background: rgba(88, 166, 255, .14); color: #8cc4ff; border-color: rgba(88, 166, 255, .3); }
.badge-pro-plus  { background: var(--gold-dim); color: var(--gold-2); border-color: rgba(227, 179, 65, .35); }
.badge-premium   { background: linear-gradient(135deg, rgba(169, 123, 255, .22), rgba(227, 179, 65, .22)); color: #e2c9ff; border-color: rgba(169, 123, 255, .4); }
.badge-sold      { background: var(--red-dim); color: #ff9b95; border-color: rgba(248, 81, 73, .3); }
.badge-live      { background: var(--green-dim); color: #6fdc82; border-color: rgba(63, 185, 80, .3); }
.badge-neutral   { background: var(--surface-3); color: var(--muted); border-color: var(--line); }

.pill { display: inline-block; padding: .2rem .6rem; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--line); font-size: .76rem; color: var(--muted); }

/* --------------------------------------------------------------- home hero */

.hero { position: relative; overflow: hidden; padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4.5rem); }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto -10%; height: 620px;
  background:
    radial-gradient(60% 55% at 22% 20%, rgba(227, 179, 65, .16), transparent 70%),
    radial-gradient(50% 50% at 80% 10%, rgba(169, 123, 255, .13), transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; gap: 2.25rem; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1.1rem;
  padding: .35rem .85rem .35rem .4rem; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line);
  font-size: .82rem; color: var(--muted); font-weight: 600;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-dim); margin-left: .45rem; }

.hero h1 { font-family: var(--font-display); letter-spacing: -.025em; }
.hero h1 .gold {
  background: linear-gradient(100deg, var(--gold-2), var(--gold) 55%, #b98f22);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: clamp(1rem, 1.6vw, 1.15rem); color: var(--muted); max-width: 52ch; }
.hero-cta { display: flex; gap: .75rem; flex-wrap: wrap; margin: 1.75rem 0 1.5rem; }
.hero-note { font-size: .85rem; color: var(--muted-2); display: flex; gap: 1.1rem; flex-wrap: wrap; }
.hero-note span::before { content: "✓ "; color: var(--green); font-weight: 700; }

/* Stacked-coin visual, pure CSS */
.coin-stack { position: relative; height: 340px; display: grid; place-items: center; }
.coin-stack .disc {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle at 34% 26%, #fff2c8, var(--gold) 42%, #8e6a12 78%, #6b4f0d);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .2) inset, 0 18px 45px rgba(0, 0, 0, .55);
  display: grid; place-items: center; color: #4a3607; font-weight: 800; font-family: var(--font-display);
  animation: float 6s ease-in-out infinite;
}
.coin-stack .d1 { width: 168px; height: 168px; font-size: 2.6rem; z-index: 3; }
.coin-stack .d2 { width: 104px; height: 104px; font-size: 1.6rem; transform: translate(-135px, -78px); animation-delay: -2s; opacity: .92; }
.coin-stack .d3 { width: 80px; height: 80px; font-size: 1.2rem; transform: translate(128px, 92px); animation-delay: -4s; opacity: .88; }
.coin-stack .note-card {
  position: absolute; width: 210px; height: 100px; border-radius: 8px;
  transform: translate(96px, -104px) rotate(9deg);
  background: linear-gradient(135deg, #2a3a4f, #16202d);
  border: 1px solid rgba(227, 179, 65, .35);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .5);
  display: grid; place-items: center; color: var(--gold-2);
  font-family: var(--font-display); font-size: 1.5rem; letter-spacing: .1em;
  animation: float 7s ease-in-out infinite; animation-delay: -1s;
}
@keyframes float { 0%, 100% { margin-top: 0; } 50% { margin-top: -14px; } }

/* Once the hero stacks vertically, pull the offsets in so nothing overlaps the copy above. */
@media (max-width: 900px) {
  .coin-stack { height: 260px; margin-top: 1rem; }
  .coin-stack .d1 { width: 132px; height: 132px; font-size: 2rem; }
  .coin-stack .d2 { width: 82px; height: 82px; font-size: 1.25rem; transform: translate(-104px, -44px); }
  .coin-stack .d3 { width: 62px; height: 62px; font-size: 1rem; transform: translate(100px, 74px); }
  .coin-stack .note-card { width: 168px; height: 82px; font-size: 1.2rem; transform: translate(72px, -76px) rotate(9deg); }
}

/* -------------------------------------------------------- sections & stats */

.section { padding: clamp(2.75rem, 6vw, 4.5rem) 0; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(24, 33, 46, .55) 12%, rgba(24, 33, 46, .55) 88%, transparent); }
.section-head { max-width: 62ch; margin: 0 auto 2.5rem; text-align: center; }
.section-head p { color: var(--muted); margin-bottom: 0; }
.kicker { color: var(--gold); font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; display: block; margin-bottom: .6rem; }

.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; }
.stat-strip div { background: var(--surface); padding: 1.15rem 1rem; text-align: center; }
.stat-strip b { display: block; font-size: 1.7rem; font-family: var(--font-display); color: var(--gold-2); line-height: 1.1; }
.stat-strip span { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }
@media (max-width: 620px) { .stat-strip { grid-template-columns: repeat(2, 1fr); } }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; }
.feature { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 1.4rem; transition: .18s; }
.feature:hover { border-color: rgba(227, 179, 65, .35); transform: translateY(-3px); }
.feature .ico { width: 42px; height: 42px; border-radius: 11px; background: var(--gold-dim); display: grid; place-items: center; font-size: 1.25rem; margin-bottom: .9rem; }
.feature h3 { font-size: 1.02rem; margin-bottom: .35rem; }
.feature p { color: var(--muted); font-size: .9rem; margin: 0; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.25rem; counter-reset: s; }
.step { position: relative; padding: 1.5rem 1.25rem 1.25rem; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); }
.step::before {
  counter-increment: s; content: counter(s);
  position: absolute; top: -16px; left: 1.25rem;
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #382905;
  display: grid; place-items: center; font-weight: 800; font-family: var(--font-display);
}
.step h3 { margin-top: .55rem; font-size: 1.02rem; }
.step p { color: var(--muted); font-size: .9rem; margin: 0; }

/* ------------------------------------------------------------------- plans */

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; align-items: start; }
.plan {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; padding: 1.75rem 1.5rem; display: flex; flex-direction: column;
}
.plan.popular {
  border-color: rgba(227, 179, 65, .55);
  background: linear-gradient(180deg, rgba(227, 179, 65, .07), var(--surface) 40%);
  box-shadow: var(--shadow);
}
.plan .ribbon {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #382905;
  padding: .22rem .85rem; border-radius: 999px; font-size: .7rem; font-weight: 800;
  letter-spacing: .09em; text-transform: uppercase; white-space: nowrap;
}
.plan h3 { font-size: 1.05rem; margin-bottom: .2rem; }
.plan .tagline { color: var(--muted); font-size: .87rem; min-height: 2.6em; margin-bottom: 1rem; }
.plan .price { font-family: var(--font-display); font-size: 2.8rem; line-height: 1; color: var(--gold-2); margin-bottom: .15rem; }
.plan .price sup { font-size: 1.2rem; top: -.9rem; margin-right: .1rem; }
.plan .price-note { font-size: .8rem; color: var(--muted-2); margin-bottom: 1.25rem; }
.plan ul { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .6rem; }
.plan li { position: relative; padding-left: 1.55rem; font-size: .91rem; color: #cfd8e6; }
.plan li::before {
  content: "✓"; position: absolute; left: 0; top: -1px;
  width: 18px; height: 18px; border-radius: 50%; background: var(--gold-dim);
  color: var(--gold-2); font-size: .68rem; display: grid; place-items: center; font-weight: 800;
}
.plan .btn { margin-top: auto; }

/* ------------------------------------------------------------ product grid */

.toolbar { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin-bottom: 1.5rem; }
.toolbar form { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; flex: 1; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(212px, 1fr)); gap: 1.1rem; }
/* Phones get a fixed 2-up grid — auto-fill would drop to a single huge column. */
@media (max-width: 620px) { .grid { grid-template-columns: repeat(2, 1fr); gap: .7rem; } }

.pcard { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: .18s; }
.pcard:hover { transform: translateY(-3px); border-color: rgba(227, 179, 65, .38); box-shadow: var(--shadow); }
.pcard .thumb { position: relative; aspect-ratio: 1 / 1; background: var(--surface-2); overflow: hidden; }
.pcard .thumb img { width: 100%; height: 100%; object-fit: cover; }
.pcard .thumb .ph { width: 100%; height: 100%; display: grid; place-items: center; font-size: 2.6rem; opacity: .3; }
.pcard .thumb .tag { position: absolute; top: .55rem; left: .55rem; }
/* Plan badge sits bottom-right so it can never collide with the status tag. */
.pcard .thumb .tag-r { position: absolute; bottom: .55rem; right: .55rem; max-width: calc(100% - 1.1rem); }
/* Both chips ride on top of photos, so darken them for contrast over bright coins. */
.pcard .thumb .badge {
  background-image: linear-gradient(rgba(8, 11, 16, .8), rgba(8, 11, 16, .8));
  backdrop-filter: blur(3px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .5);
  font-size: .66rem;
}
.pcard .body { padding: .85rem .9rem 1rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.pcard .ptitle { font-weight: 650; font-size: .93rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard .pprice { font-family: var(--font-display); font-size: 1.3rem; color: var(--gold-2); }
.pcard.is-sold .pprice { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; }
.pcard .pstore { font-size: .78rem; color: var(--muted-2); display: flex; align-items: center; gap: .35rem; margin-top: auto; }

.empty { text-align: center; padding: 4rem 1rem; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }
.empty .big { font-size: 2.5rem; margin-bottom: .5rem; opacity: .5; }

.pager { display: flex; gap: .4rem; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }
.pager a, .pager span { padding: .4rem .8rem; border-radius: var(--radius-sm); border: 1px solid var(--line); font-size: .88rem; color: var(--muted); }
.pager .current { background: var(--gold-dim); color: var(--gold-2); border-color: rgba(227, 179, 65, .35); }

/* -------------------------------------------------------------- item page */

.item-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 860px) { .item-grid { grid-template-columns: 1fr; gap: 1.5rem; } }
.item-photo { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-soft); background: var(--surface-2); aspect-ratio: 1/1; }
.item-photo img { width: 100%; height: 100%; object-fit: contain; background: #0d131c; }
.item-photo .ph { width: 100%; height: 100%; display: grid; place-items: center; font-size: 5rem; opacity: .25; }
.item-price { font-family: var(--font-display); font-size: 2.6rem; color: var(--gold-2); line-height: 1; }
.spec { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1.25rem; font-size: .9rem; margin: 1.25rem 0; }
.spec dt { color: var(--muted-2); }
.spec dd { margin: 0; }

.contact-box { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; margin-top: 1.5rem; }
.contact-box h3 { font-size: 1rem; margin-bottom: .35rem; }
.contact-box .btn { flex: 1 1 150px; }
.lock-note { font-size: .82rem; color: var(--muted-2); margin: .85rem 0 0; display: flex; gap: .4rem; align-items: flex-start; }

/* ------------------------------------------------------------------ forms */

label { display: block; font-size: .84rem; font-weight: 650; color: var(--muted); margin-bottom: .35rem; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=search], select, textarea {
  width: 100%; padding: .65rem .8rem; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--ink); color: var(--text);
  font-family: inherit; font-size: .94rem; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-dim); }
input::placeholder, textarea::placeholder { color: var(--muted-2); }
textarea { min-height: 96px; resize: vertical; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: right 1rem center, right .72rem center; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 2.2rem; }
.field + .field { margin-top: 1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.hint { font-size: .79rem; color: var(--muted-2); margin: .35rem 0 0; }

.check { display: flex; gap: .65rem; align-items: flex-start; font-size: .9rem; color: var(--text); font-weight: 500; margin: 0; cursor: pointer; }
.check input { width: 17px; height: 17px; margin: .18rem 0 0; accent-color: var(--gold); flex: none; cursor: pointer; }
.check-card { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .8rem .9rem; }
.check-card.on { border-color: rgba(227, 179, 65, .45); background: var(--gold-dim); }

.alert { padding: .8rem 1rem; border-radius: var(--radius-sm); font-size: .9rem; margin-bottom: 1rem; border: 1px solid transparent; }
.alert-error   { background: var(--red-dim);   color: #ffb3ae; border-color: rgba(248, 81, 73, .3); }
.alert-success { background: var(--green-dim); color: #86e29a; border-color: rgba(63, 185, 80, .3); }
.alert-info    { background: rgba(88, 166, 255, .12); color: #9dc9ff; border-color: rgba(88, 166, 255, .3); }

.auth-wrap { padding: clamp(2rem, 7vw, 4.5rem) 0; }
.auth-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 2rem; box-shadow: var(--shadow); }

/* ------------------------------------------------------------------ tables */

.table-wrap { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .89rem; min-width: 560px; }
th, td { padding: .7rem .9rem; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
th { background: var(--surface-2); color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(255, 255, 255, .017); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

.meter { height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; min-width: 90px; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-2)); }
.meter.warn i { background: linear-gradient(90deg, #f0883e, #f85149); }

/* -------------------------------------------------------------- dashboard */

.app-shell { display: grid; grid-template-columns: 216px 1fr; gap: 1.75rem; padding: 1.75rem 0 3rem; align-items: start; }
@media (max-width: 900px) { .app-shell { grid-template-columns: 1fr; gap: 1rem; } }
.side { position: sticky; top: 84px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: .6rem; }
@media (max-width: 900px) { .side { position: static; display: flex; gap: .3rem; overflow-x: auto; } }
.side a { display: flex; align-items: center; gap: .6rem; padding: .55rem .75rem; border-radius: var(--radius-sm); color: var(--muted); font-size: .9rem; font-weight: 600; white-space: nowrap; }
.side a:hover { background: var(--surface-2); color: var(--text); }
.side a.active { background: var(--gold-dim); color: var(--gold-2); }
.side .sep { height: 1px; background: var(--line-soft); margin: .45rem .35rem; }
@media (max-width: 900px) { .side .sep { display: none; } }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .9rem; }
.tile { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 1.05rem 1.15rem; }
.tile b { display: block; font-size: 1.75rem; font-family: var(--font-display); line-height: 1.1; }
.tile span { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.tile.gold b { color: var(--gold-2); }
.tile.green b { color: #6fdc82; }
.tile.red b { color: #ff9b95; }

.page-head { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 1.35rem; }
.page-head h1 { font-size: 1.5rem; margin: 0; }
.page-head p { margin: .2rem 0 0; color: var(--muted); font-size: .9rem; }

/* --------------------------------------------------------- setup checklist */

.setup-step { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.15rem 1.25rem; background: var(--surface); }
.setup-step + .setup-step { margin-top: .9rem; }
.setup-step.done { border-color: rgba(63, 185, 80, .4); background: linear-gradient(180deg, var(--green-dim), var(--surface) 60%); }
.setup-step .head { display: flex; gap: .75rem; align-items: center; margin-bottom: .35rem; }
.setup-step .n { width: 26px; height: 26px; border-radius: 50%; background: var(--surface-3); color: var(--muted); display: grid; place-items: center; font-size: .8rem; font-weight: 800; flex: none; }
.setup-step.done .n { background: var(--green); color: #06230c; }
.setup-step h3 { margin: 0; font-size: 1rem; }
.inline-form { display: flex; gap: .5rem; flex-wrap: wrap; align-items: flex-end; }
.inline-form .field { flex: 1 1 200px; margin: 0; }

.progress-bar { height: 5px; background: var(--surface-3); border-radius: 999px; overflow: hidden; margin-bottom: 1.5rem; }
.progress-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-2)); transition: width .3s; }

/* ------------------------------------------------------------------- misc */

.faq details { border-bottom: 1px solid var(--line-soft); padding: 1rem 0; }
.faq summary { cursor: pointer; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq p { color: var(--muted); margin: .75rem 0 0; font-size: .93rem; }

.cta-band { background: linear-gradient(135deg, rgba(227, 179, 65, .13), rgba(169, 123, 255, .1)); border: 1px solid rgba(227, 179, 65, .3); border-radius: 20px; padding: clamp(2rem, 5vw, 3rem); text-align: center; }

.site-footer { border-top: 1px solid var(--line-soft); padding: 2rem 0; color: var(--muted-2); font-size: .87rem; margin-top: 2rem; }
.site-footer .wrap { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: space-between; align-items: center; }
.site-footer a:hover { color: var(--gold-2); }

.dev-otp { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.35rem; letter-spacing: .35em; color: var(--gold-2); }

/* ==========================================================================
   Landing page — the seller pitch
   ========================================================================== */

/* Scroll reveal. Elements start shifted; JS adds .in when they enter view. */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.22, 1, .36, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .07s; } .reveal.d2 { transition-delay: .14s; }
.reveal.d3 { transition-delay: .21s; } .reveal.d4 { transition-delay: .28s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .coin-stack .disc, .coin-stack .note-card, .ticker-track { animation: none !important; }
}

/* ------------------------------------------------------- hero: live demo --- */

.demo-wrap { position: relative; display: grid; place-items: center; padding: 1rem 0; }
.demo-glow {
  position: absolute; width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(227, 179, 65, .22), transparent 62%);
  filter: blur(18px); animation: pulse 5s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: .85; } 50% { transform: scale(1.12); opacity: 1; } }

.demo-card {
  position: relative; width: min(330px, 100%);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
  animation: floatCard 7s ease-in-out infinite;
}
@keyframes floatCard { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-12px) rotate(1deg); } }
.demo-card .cap {
  display: flex; align-items: center; gap: .4rem;
  padding: .5rem .85rem; background: var(--surface-2); border-bottom: 1px solid var(--line-soft);
  font-size: .72rem; color: var(--muted-2); letter-spacing: .04em;
}
.demo-card .cap i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); opacity: .55; font-style: normal; }
.demo-card .cap i:nth-child(2) { background: #f0b429; } .demo-card .cap i:nth-child(3) { background: var(--green); }
.demo-card .cap span { margin-left: auto; }

.demo-photo { aspect-ratio: 16 / 10; background: #0d131c; display: grid; place-items: center; }
.demo-photo .disc {
  width: 118px; height: 118px; border-radius: 50%;
  background: radial-gradient(circle at 34% 26%, #fff2c8, var(--gold) 42%, #8e6a12 78%);
  display: grid; place-items: center; font-family: var(--font-display);
  font-size: 2rem; font-weight: 800; color: #4a3607;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .2) inset, 0 12px 30px rgba(0, 0, 0, .5);
}
.demo-info { padding: .9rem 1rem 1.1rem; }
.demo-info .t { font-weight: 650; font-size: .92rem; line-height: 1.35; }
.demo-info .p { font-family: var(--font-display); font-size: 1.5rem; color: var(--gold-2); margin: .15rem 0 .8rem; }

.demo-num {
  display: flex; align-items: center; gap: .5rem;
  background: var(--ink); border: 1px dashed var(--line); border-radius: var(--radius-sm);
  padding: .5rem .7rem; margin-bottom: .7rem; font-size: .84rem; color: var(--muted-2);
}
.demo-num b { letter-spacing: .12em; filter: blur(3px); user-select: none; }

.demo-btns { display: flex; gap: .45rem; }
.demo-btns .btn { flex: 1; font-size: .82rem; padding: .5rem .6rem; }

.demo-toast {
  position: absolute; left: 50%; bottom: 14px; transform: translate(-50%, 14px);
  background: rgba(8, 11, 16, .95); border: 1px solid rgba(63, 185, 80, .45);
  color: #86e29a; border-radius: 999px; padding: .45rem .9rem;
  font-size: .78rem; font-weight: 600; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .5);
}
.demo-toast.show { opacity: 1; transform: translate(-50%, 0); }
.demo-caption { margin: 1rem 0 0; font-size: .82rem; color: var(--muted-2); text-align: center; max-width: 30ch; }

/* -------------------------------------------------------------- ticker --- */

.ticker {
  border-block: 1px solid var(--line-soft); background: var(--surface);
  overflow: hidden; padding: .65rem 0; position: relative;
}
.ticker::before, .ticker::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 2; pointer-events: none;
}
.ticker::before { left: 0; background: linear-gradient(90deg, var(--surface), transparent); }
.ticker::after { right: 0; background: linear-gradient(270deg, var(--surface), transparent); }
.ticker-track { display: flex; gap: 2.25rem; width: max-content; animation: marquee 46s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker-item { display: flex; align-items: center; gap: .55rem; font-size: .85rem; color: var(--muted); white-space: nowrap; }
.ticker-item b { color: var(--gold-2); font-family: var(--font-display); font-size: 1rem; }
.ticker-item .dotsep { color: var(--line); }
.ticker-item .sold { color: #6fdc82; font-size: .7rem; font-weight: 800; letter-spacing: .06em; }

/* ---------------------------------------------------------- calculator --- */

.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem; align-items: center; }
@media (max-width: 800px) { .calc { grid-template-columns: 1fr; gap: 1.25rem; } }

.calc-controls .field + .field { margin-top: 1.4rem; }
.calc-controls label { display: flex; justify-content: space-between; align-items: baseline; font-size: .86rem; color: var(--muted); }
.calc-controls label b { color: var(--gold-2); font-family: var(--font-display); font-size: 1.15rem; }

input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px; background: var(--surface-3); outline: 0; margin-top: .55rem; }
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 20px; height: 20px; border-radius: 50%;
  background: linear-gradient(180deg, var(--gold-2), var(--gold)); cursor: pointer;
  box-shadow: 0 0 0 4px var(--gold-dim), 0 2px 8px rgba(0, 0, 0, .5);
}
input[type=range]::-moz-range-thumb {
  width: 20px; height: 20px; border: 0; border-radius: 50%;
  background: linear-gradient(180deg, var(--gold-2), var(--gold)); cursor: pointer;
  box-shadow: 0 0 0 4px var(--gold-dim);
}

.calc-out {
  background: linear-gradient(160deg, rgba(227, 179, 65, .1), var(--surface) 55%);
  border: 1px solid rgba(227, 179, 65, .32); border-radius: 18px; padding: 1.6rem;
}
.calc-out .lose { font-size: .84rem; color: var(--muted); }
.calc-out .big {
  font-family: var(--font-display); font-size: clamp(2.4rem, 6vw, 3.4rem);
  line-height: 1; color: var(--gold-2); margin: .3rem 0 .1rem;
}
.calc-out .sub { font-size: .84rem; color: var(--muted-2); }
.calc-out hr { border: 0; border-top: 1px solid var(--line); margin: 1.15rem 0; }
.calc-row { display: flex; justify-content: space-between; align-items: center; font-size: .88rem; padding: .3rem 0; }
.calc-row b { font-variant-numeric: tabular-nums; }
.calc-row .zero { color: #6fdc82; font-weight: 700; }

/* ---------------------------------------------------------- comparison --- */

.vs { display: grid; grid-template-columns: 1.05fr 1.05fr; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; }
@media (max-width: 700px) { .vs { grid-template-columns: 1fr; } }
.vs-col { background: var(--surface); padding: 1.5rem 1.4rem; }
.vs-col.win { background: linear-gradient(180deg, rgba(227, 179, 65, .09), var(--surface) 45%); }
.vs-col h3 { font-size: 1rem; display: flex; align-items: center; gap: .5rem; margin-bottom: 1.1rem; }
.vs-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.vs-col li { display: flex; gap: .65rem; font-size: .9rem; line-height: 1.5; }
.vs-col li span:first-child { flex: none; width: 20px; text-align: center; }
.vs-col.lose li { color: var(--muted); }
.vs-col.win li strong { color: var(--gold-2); font-weight: 650; }

/* --------------------------------------------------------- misc landing --- */

.stat-strip b[data-count] { font-variant-numeric: tabular-nums; }

.plan .per-listing {
  display: inline-block; margin-bottom: 1rem; padding: .22rem .6rem; border-radius: 999px;
  background: var(--green-dim); color: #6fdc82; font-size: .74rem; font-weight: 700;
  border: 1px solid rgba(63, 185, 80, .3);
}

.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: none;
  gap: .7rem; align-items: center; padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom));
  background: rgba(10, 14, 20, .95); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.mobile-cta .txt { font-size: .8rem; line-height: 1.25; color: var(--muted); }
.mobile-cta .txt b { display: block; color: var(--text); font-size: .92rem; }
.mobile-cta .btn { margin-left: auto; }
@media (max-width: 860px) {
  .mobile-cta.on { display: flex; }
  body:has(.mobile-cta.on) { padding-bottom: 4.5rem; }
}
