/* ============================================================
   billyung — premium design system
   ============================================================ */
:root {
  --bg: #08090d;
  --bg-2: #0c0e14;
  --panel: rgba(22, 25, 34, 0.72);
  --panel-solid: #14171f;
  --panel-2: rgba(30, 34, 46, 0.7);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #eef1f7;
  --muted: #9aa3b2;
  --faint: #6b7280;
  --brand: #7c8cff;
  --brand-2: #a874ff;
  --brand-3: #4dd0ff;
  --green: #37d99a;
  --red: #ff6b7d;
  --yellow: #ffc34d;
  --radius: 16px;
  --radius-sm: 11px;
  --shadow: 0 10px 40px -12px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 8px 30px -6px rgba(124, 140, 255, 0.45);
  --grad: linear-gradient(120deg, var(--brand), var(--brand-2) 55%, var(--brand-3));
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  background:
    radial-gradient(900px 500px at 12% -8%, rgba(124, 140, 255, 0.18), transparent 60%),
    radial-gradient(1000px 600px at 100% 0%, rgba(168, 116, 255, 0.14), transparent 55%),
    radial-gradient(700px 500px at 50% 120%, rgba(77, 208, 255, 0.10), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: #a6b2ff; }

h1, h2, h3 { letter-spacing: -0.025em; font-weight: 750; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- nav ---------- */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 26px; max-width: 1140px; margin: 0 auto;
  position: relative; z-index: 5;
}
.logo { font-weight: 850; font-size: 21px; letter-spacing: -0.04em; display: inline-flex; align-items: center; gap: 8px; }
.logo .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--grad); box-shadow: var(--shadow-glow); }
.logo span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-actions { display: flex; gap: 10px; align-items: center; }

/* ---------- buttons ---------- */
.btn {
  --pad-y: 11px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: var(--pad-y) 18px; border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text); font-weight: 650; font-size: 14px; font-family: inherit;
  cursor: pointer; transition: transform 0.12s ease, border-color 0.15s, background 0.15s, box-shadow 0.2s;
  text-decoration: none; white-space: nowrap; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.btn:hover { border-color: var(--brand); background: rgba(124, 140, 255, 0.08); color: var(--text); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--grad); border: none; color: #fff;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover { color: #fff; filter: brightness(1.06); box-shadow: 0 12px 34px -6px rgba(124, 140, 255, 0.6); }
.btn-danger { color: var(--red); border-color: rgba(255, 107, 125, 0.28); background: rgba(255, 107, 125, 0.06); }
.btn-danger:hover { border-color: var(--red); background: rgba(255, 107, 125, 0.12); color: var(--red); }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 10px; }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,0.05); border-color: var(--border); }

/* ---------- hero ---------- */
.hero { max-width: 860px; margin: 70px auto 30px; padding: 0 26px; text-align: center; position: relative; z-index: 2; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 26px;
  padding: 7px 15px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted);
  border: 1px solid var(--border); background: rgba(255,255,255,0.03); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.badge .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(55,217,154,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(55,217,154,.5)} 70%{box-shadow:0 0 0 8px rgba(55,217,154,0)} 100%{box-shadow:0 0 0 0 rgba(55,217,154,0)} }
.hero h1 { font-size: clamp(34px, 6vw, 58px); line-height: 1.04; margin: 0 0 20px; font-weight: 820; }
.hero p { color: var(--muted); font-size: clamp(16px, 2.2vw, 19px); margin: 0 auto 32px; max-width: 600px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-cta .btn { padding: 14px 24px; font-size: 15px; }

/* dashboard preview mock */
.preview {
  max-width: 940px; margin: 60px auto 0; padding: 0 26px; position: relative; z-index: 2;
}
.preview-frame {
  border: 1px solid var(--border-strong); border-radius: 20px; overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  box-shadow: 0 40px 120px -30px rgba(0,0,0,0.8); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.preview-bar { display: flex; gap: 7px; padding: 13px 16px; border-bottom: 1px solid var(--border); }
.preview-bar i { width: 11px; height: 11px; border-radius: 50%; background: #2c3140; display: block; }
.preview-body { padding: 26px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

/* ---------- features ---------- */
.features {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px;
  max-width: 1000px; margin: 70px auto; padding: 0 26px; position: relative; z-index: 2;
}
.feature {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; text-align: left; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: transform 0.15s, border-color 0.15s;
}
.feature:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.feature .ic {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 21px;
  background: rgba(124,140,255,0.12); border: 1px solid rgba(124,140,255,0.2); margin-bottom: 14px;
}
.feature h3 { margin: 0 0 6px; font-size: 16px; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }

.foot { text-align: center; color: var(--faint); font-size: 13px; padding: 30px; }

/* ---------- auth ---------- */
.auth-wrap { max-width: 420px; margin: 8vh auto; padding: 0 22px; position: relative; z-index: 2; }
.card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: var(--shadow);
}
.card h1 { margin: 0 0 6px; font-size: 26px; }
.card .sub { color: var(--muted); margin: 0 0 22px; font-size: 14px; }

label { display: block; font-size: 13px; color: var(--muted); margin: 15px 0 7px; font-weight: 550; }
input, textarea, select {
  width: 100%; padding: 12px 13px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong); background: rgba(8, 9, 13, 0.5); color: var(--text);
  font-size: 14px; font-family: inherit; transition: border-color 0.15s, box-shadow 0.15s;
}
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(124,140,255,0.16); }
textarea { resize: vertical; min-height: 82px; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239aa3b2' d='M6 8L2 4h8z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }

.form-actions { margin-top: 22px; }
.form-actions .btn { width: 100%; padding: 13px; }
.alt { text-align: center; margin-top: 18px; font-size: 14px; color: var(--muted); }
.msg { margin-top: 14px; padding: 11px 13px; border-radius: var(--radius-sm); font-size: 14px; display: none; }
.msg.error { display: block; background: rgba(255,107,125,0.1); color: var(--red); border: 1px solid rgba(255,107,125,0.25); }
.msg.ok { display: block; background: rgba(55,217,154,0.1); color: var(--green); border: 1px solid rgba(55,217,154,0.25); }

/* ---------- dashboard ---------- */
.dash { max-width: 1140px; margin: 0 auto; padding: 8px 26px 70px; position: relative; z-index: 2; }
.section {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; margin-bottom: 22px; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: var(--shadow);
}
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 4px; }
.section h2 { margin: 0; font-size: 19px; display: flex; align-items: center; gap: 10px; }
.section h2 .ic { font-size: 20px; }
.section .hint { color: var(--muted); font-size: 13px; margin: 6px 0 20px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.row > div { flex: 1; min-width: 130px; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
th { color: var(--faint); font-weight: 650; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; }
td .mono, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.table-wrap { overflow-x: auto; margin: 0 -6px; }

.pill { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: 12px; font-weight: 650; }
.pill.paid, .pill.on { background: rgba(55,217,154,0.12); color: var(--green); }
.pill.pending { background: rgba(255,195,77,0.12); color: var(--yellow); }
.pill.failed { background: rgba(255,107,125,0.12); color: var(--red); }
.pill.off, .pill.capped { background: rgba(255,255,255,0.06); color: var(--muted); }
.pill.capped { color: var(--yellow); background: rgba(255,195,77,0.10); }
.empty { color: var(--muted); font-size: 14px; padding: 18px 0; text-align: center; }
.copy-link { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; color: var(--brand); font-size: 13px; font-weight: 600; }
.copy-link:hover { color: #a6b2ff; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.stat {
  background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 18px;
}
.stat .n { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.stat .n.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .l { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 2px; }

.inline-input { width: 68px; padding: 7px 8px; font-size: 13px; }
.inline-input.cap { width: 84px; }
.mini-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.seg { display: inline-flex; border: 1px solid var(--border-strong); border-radius: 10px; overflow: hidden; }
.seg button { background: transparent; border: none; color: var(--muted); padding: 8px 14px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; }
.seg button.active { background: var(--grad); color: #fff; }
.acct-label { font-weight: 650; }
.acct-email { color: var(--muted); font-size: 12px; }
.progress { height: 5px; border-radius: 999px; background: rgba(255,255,255,0.08); overflow: hidden; margin-top: 5px; min-width: 90px; }
.progress > i { display: block; height: 100%; background: var(--grad); border-radius: 999px; }

/* ---------- checkout / product / success ---------- */
.checkout-body { display: flex; align-items: center; justify-content: center; padding: 26px; min-height: 100vh; }
.product-card {
  background: var(--panel); border: 1px solid var(--border-strong); border-radius: 22px;
  padding: 38px; max-width: 440px; width: 100%; text-align: center;
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: 0 30px 90px -25px rgba(0,0,0,0.8);
}
.product-card .brand { font-weight: 850; letter-spacing: -0.03em; margin-bottom: 22px; font-size: 18px; }
.product-card .brand span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.product-card h1 { margin: 0 0 12px; font-size: 27px; }
.product-card .desc { color: var(--muted); font-size: 15px; margin: 0 0 22px; }
.product-card .price { font-size: 40px; font-weight: 850; margin: 8px 0; letter-spacing: -0.03em; }
.product-card .stock { color: var(--yellow); font-size: 13px; margin: 0 0 16px; }
.buy {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%; padding: 15px; margin-top: 14px; border-radius: 13px; border: none; cursor: pointer;
  background: var(--grad); color: #fff; font-size: 16px; font-weight: 750; text-decoration: none;
  box-shadow: var(--shadow-glow); transition: filter 0.15s, transform 0.12s;
}
.buy:hover { filter: brightness(1.06); transform: translateY(-1px); color: #fff; }
.buy:disabled { background: #262b36; box-shadow: none; cursor: not-allowed; color: var(--faint); }
.secure { color: var(--muted); font-size: 13px; margin-top: 18px; display: flex; align-items: center; justify-content: center; gap: 6px; }

.delivery-box {
  margin-top: 18px; padding: 17px; border-radius: 13px;
  background: rgba(8,9,13,0.55); border: 1px solid var(--border-strong);
  text-align: left; word-break: break-word; white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px;
}
.spinner {
  width: 36px; height: 36px; margin: 22px auto; border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.1); border-top-color: var(--brand); animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hide { display: none !important; }
.center { text-align: center; }
.fade-in { animation: fade 0.5s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 640px) {
  .preview-body { grid-template-columns: 1fr; }
  .section, .card { padding: 20px; }
  .nav { padding: 14px 18px; }
}

/* ============================================================
   marketing sections + policies
   ============================================================ */
.wrap { max-width: 1000px; margin: 0 auto; padding: 0 26px; position: relative; z-index: 2; }
.block { padding: 70px 0; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 12px; font-weight: 700; color: var(--brand); margin-bottom: 12px; text-align: center; }
.block h2 { text-align: center; font-size: clamp(26px, 4vw, 38px); margin: 0 0 12px; }
.block .lead { text-align: center; color: var(--muted); max-width: 620px; margin: 0 auto 44px; font-size: 17px; }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.step { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); position: relative; }
.step .num { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 17px; background: var(--grad); color: #fff; margin-bottom: 16px; box-shadow: var(--shadow-glow); }
.step h3 { margin: 0 0 7px; font-size: 17px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }

/* faq */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.faq summary { padding: 18px 20px; cursor: pointer; font-weight: 650; font-size: 15px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 22px; font-weight: 400; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 20px 18px; color: var(--muted); font-size: 14.5px; }

/* cta band */
.cta-band { text-align: center; padding: 64px 26px; }
.cta-band h2 { font-size: clamp(26px, 4vw, 36px); margin: 0 0 12px; }
.cta-band p { color: var(--muted); margin: 0 0 26px; }

/* footer */
.site-footer { border-top: 1px solid var(--border); margin-top: 40px; padding: 46px 26px 30px; }
.footer-grid { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.footer-grid .brand { font-weight: 850; font-size: 19px; display: inline-flex; align-items: center; gap: 8px; }
.footer-grid .brand span.t { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer-grid p { color: var(--muted); font-size: 13.5px; margin: 12px 0 0; max-width: 280px; }
.footer-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint); margin: 0 0 14px; }
.footer-col a { display: block; color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { max-width: 1000px; margin: 34px auto 0; padding-top: 22px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: var(--faint); font-size: 13px; }

/* legal / prose pages */
.legal { max-width: 780px; margin: 40px auto 0; padding: 0 26px 60px; position: relative; z-index: 2; }
.legal .updated { color: var(--faint); font-size: 13px; margin-bottom: 8px; }
.legal h1 { font-size: 34px; margin: 0 0 10px; }
.legal h2 { font-size: 20px; margin: 34px 0 10px; }
.legal p, .legal li { color: var(--muted); font-size: 15px; line-height: 1.7; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 7px; }
.legal a { color: var(--brand); }
.legal .back { display: inline-block; margin-bottom: 24px; font-size: 14px; }

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid .brand-col { grid-column: 1 / -1; }
  .block { padding: 50px 0; }
}

/* ============================================================
   svg icons + premium hero
   ============================================================ */
.ico { width: 22px; height: 22px; display: block; }
.feature .ic { display: grid; place-items: center; }
.feature .ic .ico { width: 24px; height: 24px; }
.section h2 .ico { width: 20px; height: 20px; }

/* hero two-column */
.hero-grid {
  max-width: 1140px; margin: 40px auto 10px; padding: 0 26px;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 44px; align-items: center;
  position: relative; z-index: 2;
}
.hero-copy .badge { margin-bottom: 22px; }
.hero-copy h1 { font-size: clamp(34px, 5.2vw, 56px); line-height: 1.05; margin: 0 0 20px; font-weight: 820; }
.hero-copy p { color: var(--muted); font-size: clamp(16px, 2vw, 19px); margin: 0 0 30px; max-width: 520px; }
.hero-copy .hero-cta { justify-content: flex-start; }

/* category chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip {
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--border);
  background: rgba(255,255,255,0.03); color: var(--muted); font-size: 14px; font-weight: 600;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}

/* hero visual mock */
.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; min-height: 320px; }
.service-mock {
  width: 320px; max-width: 100%; background: var(--panel); border: 1px solid var(--border-strong);
  border-radius: 22px; padding: 28px; box-shadow: 0 40px 100px -30px rgba(0,0,0,0.85);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.service-mock .tag { font-size: 12px; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: 0.08em; }
.service-mock h4 { margin: 9px 0 3px; font-size: 21px; }
.service-mock .m-sub { color: var(--muted); font-size: 13.5px; margin: 0; }
.service-mock .m-price { font-size: 32px; font-weight: 850; margin: 16px 0; letter-spacing: -0.02em; }
.service-mock .m-btn { background: var(--grad); color: #fff; text-align: center; padding: 13px; border-radius: 13px; font-weight: 750; box-shadow: var(--shadow-glow); display: flex; align-items: center; justify-content: center; gap: 8px; }
.float-badge {
  position: absolute; background: var(--panel-solid); border: 1px solid var(--border-strong);
  border-radius: 13px; padding: 11px 15px; font-size: 13px; font-weight: 650;
  display: flex; align-items: center; gap: 9px; box-shadow: var(--shadow);
}
.float-badge.b1 { top: 6px; right: -6px; animation: floaty 5s ease-in-out infinite; }
.float-badge.b2 { bottom: 14px; left: -14px; animation: floaty 7s ease-in-out infinite; }
.float-badge .g { color: var(--green); display: inline-flex; }
.float-badge .ico { width: 16px; height: 16px; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-copy p { margin-left: auto; margin-right: auto; }
  .hero-copy .hero-cta { justify-content: center; }
  .hero-visual { margin-top: 26px; min-height: auto; }
}

/* ============================================================
   mobile polish
   ============================================================ */
@media (max-width: 720px) {
  .nav { flex-wrap: wrap; gap: 10px; padding: 14px 16px; }
  .nav-actions { gap: 8px; }
  .btn { padding: 9px 13px; font-size: 13.5px; }

  .hero-grid { margin-top: 20px; padding: 0 18px; }
  .hero-copy h1 { font-size: clamp(28px, 8vw, 40px); }
  .hero-cta { width: 100%; }
  .hero-cta .btn { flex: 1; min-width: 140px; }

  .wrap, .legal { padding-left: 18px; padding-right: 18px; }
  .block { padding: 44px 0; }
  .block h2 { font-size: 24px; }
  .block .lead { font-size: 15px; margin-bottom: 32px; }

  .features { grid-template-columns: 1fr; gap: 12px; }
  .steps { grid-template-columns: 1fr; }

  /* forms: stack every field full-width */
  .row { flex-direction: column; align-items: stretch; gap: 12px; }
  .row > div { width: 100% !important; max-width: none !important; min-width: 0 !important; }
  .row > div[style*="flex:0"] .btn, .row .btn[type="submit"] { width: 100%; }
  #ppForm button[type="submit"], #prodForm button[type="submit"] { width: 100%; }

  .section-head { flex-direction: column; align-items: flex-start; }

  .product-card { padding: 26px 22px; }
  .product-card .price { font-size: 34px; }

  .float-badge.b1 { right: 0; }
  .float-badge.b2 { left: 0; }
  .cta-band { padding: 48px 20px; }
}

@media (max-width: 420px) {
  .hero-copy h1 { font-size: 27px; }
  .service-mock { width: 100%; padding: 22px; }
  .float-badge { font-size: 12px; padding: 8px 11px; }
  .stat .n { font-size: 22px; }
  th, td { padding: 10px 7px; font-size: 13px; }
}

/* ============================================================
   premium checkout page (buyer-facing)
   ============================================================ */
.co-page { min-height: 100vh; display: flex; flex-direction: column; }
.co-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 26px; max-width: 920px; margin: 0 auto; width: 100%;
}
.co-secure-top { color: var(--muted); font-size: 13px; display: flex; gap: 7px; align-items: center; }
.co-secure-top svg { width: 15px; height: 15px; }
.co-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 20px 20px 44px; }
.checkout-card {
  width: 100%; max-width: 460px; background: var(--panel); border: 1px solid var(--border-strong);
  border-radius: 24px; padding: 34px; box-shadow: 0 34px 100px -28px rgba(0,0,0,0.85);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
}
.co-thumb {
  width: 74px; height: 74px; border-radius: 19px; display: grid; place-items: center;
  font-size: 33px; font-weight: 850; color: #fff; background: var(--grad);
  box-shadow: var(--shadow-glow); margin: 0 auto 20px;
}
.co-title { text-align: center; font-size: 26px; margin: 0 0 8px; }
.co-desc { text-align: center; color: var(--muted); font-size: 15px; margin: 0 0 22px; line-height: 1.6; }
.co-pricebox { text-align: center; margin-bottom: 6px; }
.co-pricebox .amt { font-size: 42px; font-weight: 850; letter-spacing: -0.03em; display: block; }
.co-pricebox .once { color: var(--faint); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.06em; }
.co-stock { text-align: center; color: var(--yellow); font-size: 13px; margin: 8px 0 0; }
.checkout-card .buy { margin-top: 20px; }
.co-buy { display: flex; flex-direction: column; margin-top: 20px; text-align: left; }
.co-email-label { font-size: 13px; color: var(--muted); font-weight: 600; margin: 0 0 7px; }
.co-email { width: 100%; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--border-strong); background: rgba(8,9,13,0.5); color: var(--text); font-size: 15px; font-family: inherit; }
.co-email:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(124,140,255,0.16); }
.co-email-hint { font-size: 12px; color: var(--faint); margin: 7px 0 0; }
.co-buy .buy { margin-top: 16px; }
.co-trust { display: flex; justify-content: center; gap: 16px; margin-top: 22px; flex-wrap: wrap; }
.co-trust .t { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; font-weight: 550; }
.co-trust .t svg { width: 15px; height: 15px; color: var(--green); }
.co-deliver {
  margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border);
  text-align: center; color: var(--muted); font-size: 13px; display: flex; align-items: center; justify-content: center; gap: 7px;
}
.co-deliver svg { width: 15px; height: 15px; color: var(--brand); }
.co-foot { text-align: center; padding: 22px; color: var(--faint); font-size: 12.5px; }
.co-foot a { color: var(--muted); margin: 0 4px; }
.co-foot a:hover { color: var(--text); }
.co-foot .sep { opacity: 0.4; }

@media (max-width: 480px) {
  .checkout-card { padding: 26px 22px; }
  .co-top { padding: 14px 18px; }
  .co-pricebox .amt { font-size: 36px; }
}

/* ============================================================
   buyer support chat widget
   ============================================================ */
.bch-btn {
  position: fixed; right: 22px; bottom: 22px; z-index: 9999;
  width: 56px; height: 56px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--grad); box-shadow: 0 10px 30px -6px rgba(124,140,255,0.6);
  display: grid; place-items: center; transition: transform 0.12s;
}
.bch-btn:hover { transform: translateY(-2px); }
.bch-btn svg { width: 26px; height: 26px; }
.bch-panel {
  position: fixed; right: 22px; bottom: 90px; z-index: 9999;
  width: 360px; max-width: calc(100vw - 32px); height: 500px; max-height: calc(100vh - 130px);
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--panel-solid); border: 1px solid var(--border-strong); border-radius: 18px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.85); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.bch-panel.bch-hide { display: none; }
.bch-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid var(--border); background: rgba(255,255,255,0.03);
}
.bch-title { font-weight: 750; font-size: 15px; }
.bch-close { background: none; border: none; color: var(--muted); font-size: 16px; cursor: pointer; padding: 4px; }
.bch-close:hover { color: var(--text); }
.bch-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.bch-msg {
  max-width: 82%; padding: 10px 13px; border-radius: 14px; font-size: 14px; line-height: 1.5;
  white-space: pre-wrap; word-break: break-word;
}
.bch-msg.bot { align-self: flex-start; background: var(--panel-2); border: 1px solid var(--border); border-bottom-left-radius: 5px; }
.bch-msg.user { align-self: flex-end; background: var(--grad); color: #fff; border-bottom-right-radius: 5px; }
.bch-typing { color: var(--muted); letter-spacing: 3px; }
.bch-input-row { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); }
.bch-input {
  flex: 1; padding: 11px 12px; border-radius: 11px; border: 1px solid var(--border-strong);
  background: rgba(8,9,13,0.5); color: var(--text); font-size: 14px; font-family: inherit;
}
.bch-input:focus { outline: none; border-color: var(--brand); }
.bch-send {
  border: none; border-radius: 11px; background: var(--grad); cursor: pointer;
  width: 44px; display: grid; place-items: center;
}
.bch-send svg { width: 18px; height: 18px; }
.bch-head-actions { display: flex; align-items: center; gap: 10px; }
.bch-human {
  background: none; border: 1px solid var(--border-strong); color: var(--brand);
  font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; cursor: pointer; font-family: inherit;
}
.bch-human:hover { border-color: var(--brand); background: rgba(124,140,255,0.08); }
.bch-handoff {
  align-self: stretch; background: var(--panel-2); border: 1px solid var(--border-strong);
  border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 4px;
}
.bch-hf-title { font-weight: 700; font-size: 14px; }
.bch-hf-sub { color: var(--muted); font-size: 12.5px; margin-bottom: 6px; }
.bch-hf-label { color: var(--muted); font-size: 11px; margin: 8px 0 3px; }
.bch-hf-msg { min-height: 62px; resize: vertical; }
.bch-hf-err { color: var(--red); font-size: 12px; min-height: 14px; }
.bch-hf-actions { display: flex; gap: 8px; margin-top: 8px; }
.bch-hf-send { flex: 1; border: none; border-radius: 10px; background: var(--grad); color: #fff; font-weight: 700; padding: 10px; cursor: pointer; font-family: inherit; }
.bch-hf-cancel { border: 1px solid var(--border-strong); background: transparent; color: var(--muted); border-radius: 10px; padding: 10px 14px; cursor: pointer; font-family: inherit; }

/* live-chat additions: specialist bubbles, banner, launcher badge */
.bch-msg-body { white-space: pre-wrap; word-break: break-word; }
.bch-msg-tag { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--brand-3); margin-bottom: 3px; }
.bch-msg.spec { align-self: flex-start; background: rgba(77,208,255,0.09); border: 1px solid rgba(77,208,255,0.30); border-bottom-left-radius: 5px; }
.bch-msg.sys { align-self: center; max-width: 95%; text-align: center; background: none; border: none; color: var(--muted); font-size: 12.5px; padding: 4px 8px; }
.bch-banner { padding: 8px 14px; font-size: 12px; font-weight: 600; color: #37d99a; background: rgba(55,217,154,0.08); border-bottom: 1px solid var(--border); }
.bch-dot {
  position: absolute; top: -2px; right: -2px; min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 999px; background: var(--red); color: #fff; font-size: 10px; font-weight: 700;
  display: grid; place-items: center; border: 2px solid var(--bg);
}

/* ============================================================
   specialist support inbox (/inbox)
   ============================================================ */
.inbox-wrap { display: grid; grid-template-columns: 340px 1fr; height: calc(100dvh - 62px); }
.inbox-list { border-right: 1px solid var(--border); display: flex; flex-direction: column; min-height: 0; }
.inbox-list-head { display: flex; align-items: center; justify-content: space-between; padding: 15px 16px; border-bottom: 1px solid var(--border); }
.inbox-list-head h2 { margin: 0; font-size: 15px; }
.inbox-count { background: rgba(255,195,77,0.16); color: #ffc34d; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.inbox-convs { overflow-y: auto; flex: 1; }
.inbox-conv {
  display: flex; gap: 10px; width: 100%; text-align: left; background: none; border: none;
  border-bottom: 1px solid var(--border); padding: 12px 14px; cursor: pointer; color: var(--text);
  font-family: inherit; position: relative;
}
.inbox-conv:hover { background: rgba(255,255,255,0.03); }
.inbox-conv.active { background: rgba(124,140,255,0.10); }
.inbox-conv-dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 5px; flex: 0 0 auto; background: var(--muted); }
.inbox-conv-dot.st-waiting { background: #ffc34d; }
.inbox-conv-dot.st-live { background: #37d99a; }
.inbox-conv-dot.st-bot { background: #7c8cff; }
.inbox-conv-dot.st-closed { background: #55607a; }
.inbox-conv-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.inbox-conv-top { display: flex; justify-content: space-between; gap: 8px; }
.inbox-conv-who { font-weight: 650; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox-conv-time { color: var(--muted); font-size: 11px; flex: 0 0 auto; }
.inbox-conv-prev { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox-conv-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 2px; }
.inbox-tag { font-size: 10.5px; padding: 2px 7px; border-radius: 999px; background: rgba(255,255,255,0.06); color: var(--muted); }
.inbox-tag.t-waiting { background: rgba(255,195,77,0.16); color: #ffc34d; }
.inbox-tag.t-live { background: rgba(55,217,154,0.16); color: #37d99a; }
.inbox-tag.t-bot { background: rgba(124,140,255,0.16); color: #a6b0ff; }
.inbox-tag.t-closed { background: rgba(255,255,255,0.05); color: var(--muted); }
.inbox-conv-badge {
  position: absolute; right: 12px; top: 12px; background: var(--red); color: #fff;
  font-size: 10px; font-weight: 700; min-width: 16px; height: 16px; border-radius: 999px;
  display: grid; place-items: center; padding: 0 4px;
}
.inbox-thread { display: flex; flex-direction: column; min-height: 0; }
.inbox-empty { flex: 1; display: grid; place-items: center; color: var(--muted); text-align: center; }
.inbox-empty p { margin: 12px 0 0; }
.inbox-thread-view { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.inbox-thread-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.inbox-back { display: none; }
.inbox-thread-who { flex: 1; min-width: 0; }
.inbox-thread-name { font-weight: 650; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox-thread-meta { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox-thread-actions { display: flex; gap: 8px; flex: 0 0 auto; }
.inbox-msgs { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.inbox-msg { max-width: 66%; display: flex; flex-direction: column; gap: 3px; }
.inbox-msg.client { align-self: flex-start; }
.inbox-msg.bot { align-self: flex-start; }
.inbox-msg.me { align-self: flex-end; align-items: flex-end; }
.inbox-bubble { padding: 10px 13px; border-radius: 14px; font-size: 14px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.inbox-msg.client .inbox-bubble { background: var(--panel-2); border: 1px solid var(--border); border-bottom-left-radius: 5px; }
.inbox-msg.bot .inbox-bubble { background: rgba(124,140,255,0.07); border: 1px solid var(--border); border-bottom-left-radius: 5px; color: var(--muted); }
.inbox-msg.me .inbox-bubble { background: var(--grad); color: #fff; border-bottom-right-radius: 5px; }
.inbox-msg-tag { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.inbox-msg-time { font-size: 10.5px; color: var(--faint); }
.inbox-reply { display: flex; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--border); }
.inbox-reply input { flex: 1; padding: 11px 13px; border-radius: 11px; border: 1px solid var(--border-strong); background: rgba(8,9,13,0.5); color: var(--text); font-size: 14px; font-family: inherit; margin: 0; }
.inbox-reply input:focus { outline: none; border-color: var(--brand); }
@media (max-width: 820px) {
  .inbox-wrap { grid-template-columns: 1fr; }
  .inbox-thread { display: none; }
  body.inbox-viewing .inbox-list { display: none; }
  body.inbox-viewing .inbox-thread { display: flex; }
  .inbox-back { display: inline-flex; }
}

/* ============================================================
   chat widget — professional polish (branded header, chips,
   timestamps, typing dots, email capture)
   ============================================================ */
.bch-id { display: flex; align-items: center; gap: 11px; min-width: 0; }
.bch-ava { width: 38px; height: 38px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; flex: 0 0 auto; box-shadow: 0 4px 14px -4px rgba(124,140,255,0.6); }
.bch-ava svg { width: 22px; height: 22px; }
.bch-id-text { min-width: 0; }
.bch-status { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.bch-online { width: 7px; height: 7px; border-radius: 50%; background: #37d99a; box-shadow: 0 0 0 3px rgba(55,217,154,0.18); flex: 0 0 auto; }
.bch-head-actions { display: flex; align-items: center; gap: 8px; }
.bch-human { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border-strong); background: none; color: var(--muted); cursor: pointer; padding: 0; }
.bch-human svg { width: 17px; height: 17px; }
.bch-human:hover { color: var(--brand); border-color: var(--brand); background: rgba(124,140,255,0.08); }

.bch-time { font-size: 10px; color: var(--faint); margin-top: 4px; }
.bch-msg.user .bch-time { text-align: right; color: rgba(255,255,255,0.75); }
.bch-msg.spec .bch-time { color: var(--muted); }

.bch-chips { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 2px; }
.bch-chip { background: rgba(124,140,255,0.08); border: 1px solid var(--border-strong); color: var(--text); font-size: 13px; font-weight: 550; padding: 9px 13px; border-radius: 12px; cursor: pointer; font-family: inherit; text-align: left; transition: border-color 0.12s, background 0.12s, transform 0.12s; }
.bch-chip:hover { border-color: var(--brand); background: rgba(124,140,255,0.15); transform: translateY(-1px); }

.bch-banner { display: flex; align-items: center; gap: 7px; padding: 9px 14px; font-size: 12px; font-weight: 600; color: #37d99a; background: rgba(55,217,154,0.08); border-bottom: 1px solid var(--border); }

.bch-typing .bch-msg-body { display: flex; gap: 4px; align-items: center; }
.bch-typing .bch-msg-body span { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: bch-blink 1.2s infinite; }
.bch-typing .bch-msg-body span:nth-child(2) { animation-delay: 0.2s; }
.bch-typing .bch-msg-body span:nth-child(3) { animation-delay: 0.4s; }
@keyframes bch-blink { 0%, 60%, 100% { opacity: 0.25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-2px); } }

.bch-email { align-self: stretch; background: var(--panel-2); border: 1px solid var(--border-strong); border-radius: 14px; padding: 12px; }
.bch-email-sub { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.bch-email-row { display: flex; gap: 8px; }
.bch-email-row .bch-input { flex: 1; }
.bch-email-save { border: none; border-radius: 10px; background: var(--grad); color: #fff; font-weight: 700; padding: 0 16px; cursor: pointer; font-family: inherit; }

/* ============================================================
   language switcher (buyer funnel)
   ============================================================ */
.i18n-switch { position: fixed; left: 18px; bottom: 18px; z-index: 9998; }
.i18n-btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px; border-radius: 999px;
  border: 1px solid var(--border-strong); background: var(--panel-solid); color: var(--text);
  font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit;
  box-shadow: 0 8px 24px -10px rgba(0,0,0,0.7); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: border-color 0.12s, transform 0.12s;
}
.i18n-btn:hover { border-color: var(--brand); transform: translateY(-1px); }
.i18n-btn svg { width: 16px; height: 16px; color: var(--muted); }
.i18n-menu {
  position: absolute; left: 0; bottom: calc(100% + 8px); min-width: 150px; padding: 6px;
  background: var(--panel-solid); border: 1px solid var(--border-strong); border-radius: 12px;
  box-shadow: 0 18px 44px -16px rgba(0,0,0,0.8); display: flex; flex-direction: column; gap: 2px;
  max-height: 60vh; overflow-y: auto;
}
.i18n-menu.i18n-hide { display: none; }
.i18n-item {
  text-align: left; background: none; border: none; color: var(--text); font-family: inherit;
  font-size: 14px; padding: 9px 12px; border-radius: 8px; cursor: pointer;
}
.i18n-item:hover { background: rgba(124,140,255,0.10); }
.i18n-item.active { color: var(--brand); font-weight: 650; background: rgba(124,140,255,0.08); }

/* ============================================================
   blocked-countries picker (admin)
   ============================================================ */
.bc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; }
.bc-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 8px 6px 12px; border-radius: 999px; background: rgba(255,95,109,0.12); border: 1px solid rgba(255,95,109,0.35); color: var(--text); font-size: 13px; }
.bc-x { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 13px; padding: 0 2px; line-height: 1; }
.bc-x:hover { color: var(--red); }
.bc-list { margin-top: 12px; max-height: 320px; overflow-y: auto; border: 1px solid var(--border); border-radius: 12px; }
.bc-row { display: flex; align-items: center; gap: 12px; padding: 9px 14px; border-bottom: 1px solid var(--border); cursor: pointer; font-size: 14px; }
.bc-row:last-child { border-bottom: none; }
.bc-row:hover { background: rgba(255,255,255,0.03); }
.bc-row.on { background: rgba(124,140,255,0.08); }
.bc-row input { width: 16px; height: 16px; margin: 0; flex: 0 0 auto; accent-color: var(--brand); }
.bc-name { flex: 1; }
.bc-code { color: var(--faint); font-size: 12px; font-family: ui-monospace, monospace; }

/* ============================================================
   stores hub (/stores) + public storefront (/store/:slug)
   ============================================================ */
.store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.store-card { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 14px; transition: border-color 0.15s, transform 0.12s; }
.store-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.store-head { display: flex; align-items: center; gap: 12px; }
.store-badge { width: 44px; height: 44px; border-radius: 12px; background: var(--grad); display: grid; place-items: center; font-weight: 800; font-size: 20px; color: #fff; flex: 0 0 auto; }
.store-name { font-weight: 700; font-size: 16px; }
.store-slug { color: var(--muted); font-size: 12px; }
.store-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 12px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.store-stat { text-align: center; }
.store-stat .sv { font-weight: 700; font-size: 16px; }
.store-stat .sl { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; margin-top: 2px; }
.store-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.store-actions .btn-primary { flex: 1; }

.st-page { max-width: 960px; margin: 0 auto; padding: 0 20px; }
.st-top { display: flex; align-items: center; padding: 22px 0; }
.st-main { padding: 12px 0 60px; }
.st-title { font-size: clamp(24px, 4vw, 34px); margin: 0 0 6px; }
.st-sub { color: var(--muted); margin: 0 0 30px; }
.st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.st-card { display: flex; gap: 14px; background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 16px; transition: border-color 0.15s, transform 0.12s; }
.st-card:hover { border-color: var(--brand); transform: translateY(-2px); }
.st-thumb { width: 52px; height: 52px; border-radius: 12px; background: var(--grad); display: grid; place-items: center; font-weight: 800; font-size: 22px; color: #fff; flex: 0 0 auto; }
.st-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.st-body h3 { margin: 0 0 4px; font-size: 16px; }
.st-desc { color: var(--muted); font-size: 13px; margin: 0 0 10px; }
.st-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; gap: 10px; }
.st-price { font-weight: 800; font-size: 17px; }
.st-buy { color: var(--brand); font-weight: 700; font-size: 14px; }
.st-sold { color: var(--faint); font-size: 13px; }

/* order actions "…" menu + details modal */
.omenu { position: relative; display: inline-block; }
.omenu-btn { padding: 4px 10px; }
.omenu-list { position: absolute; right: 0; top: calc(100% + 4px); z-index: 50; min-width: 160px; background: var(--panel-solid); border: 1px solid var(--border-strong); border-radius: 12px; box-shadow: 0 18px 44px -16px rgba(0,0,0,0.8); padding: 6px; display: flex; flex-direction: column; gap: 2px; }
.omenu-list.hide { display: none; }
.omenu-item { text-align: left; background: none; border: none; color: var(--text); font-family: inherit; font-size: 14px; padding: 9px 12px; border-radius: 8px; cursor: pointer; white-space: nowrap; }
.omenu-item:hover { background: rgba(124,140,255,0.10); }
.omenu-item.danger { color: var(--red); }

.modal-overlay { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,0.6); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 20px; }
.modal-card { width: 100%; max-width: 520px; max-height: 85vh; overflow-y: auto; background: var(--panel-solid); border: 1px solid var(--border-strong); border-radius: 18px; padding: 22px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.modal-head h3 { margin: 0; font-size: 17px; }
.modal-x { background: none; border: none; color: var(--muted); font-size: 17px; cursor: pointer; }
.od-row { display: flex; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.od-row:last-child { border-bottom: none; }
.od-k { color: var(--muted); flex: 0 0 110px; }
.od-v { flex: 1; min-width: 0; word-break: break-word; }

/* ============================================================
   dashboard — professional sidebar layout (store admin)
   ============================================================ */
.app { display: grid; grid-template-columns: 254px 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--panel); border-right: 1px solid var(--border); display: flex; flex-direction: column; padding: 18px 14px; }
.side-brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 18px; color: var(--text); text-decoration: none; padding: 6px 8px; }
.side-brand .dot { width: 9px; height: 9px; }
.side-store { display: flex; align-items: center; gap: 11px; padding: 13px 8px; margin: 12px 0 8px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.side-store-badge { width: 36px; height: 36px; border-radius: 10px; background: var(--grad); display: grid; place-items: center; font-weight: 800; color: #fff; font-size: 16px; flex: 0 0 auto; }
.side-store-meta { min-width: 0; }
.side-store-name { font-weight: 700; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-store-sub { font-size: 11px; color: var(--muted); }
.side-nav { display: flex; flex-direction: column; gap: 3px; margin-top: 6px; }
.side-item { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px; border: none; background: none; color: var(--muted); font-family: inherit; font-size: 14px; font-weight: 550; cursor: pointer; text-align: left; width: 100%; transition: background 0.12s, color 0.12s; }
.side-item svg { width: 18px; height: 18px; flex: 0 0 auto; }
.side-item:hover { background: rgba(255,255,255,0.04); color: var(--text); }
.side-item.active { background: rgba(124,140,255,0.14); color: var(--text); }
.side-item.active svg { stroke: var(--brand-2); }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 7px; padding-top: 16px; border-top: 1px solid var(--border); }
.side-link { color: var(--muted); font-size: 13px; text-decoration: none; padding: 3px 8px; }
.side-link:hover { color: var(--text); }
.side-user { padding: 3px 8px; color: var(--faint); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.main { padding: 0 30px 60px; min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 0 16px; margin-bottom: 6px; background: linear-gradient(var(--bg), var(--bg) 72%, transparent); }
.topbar h1 { margin: 0; font-size: 22px; }
.panel.hide { display: none; }
.card-surface { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 20px; }
.card-title { margin: 0 0 4px; font-size: 16px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.search-bar { display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--border-strong); border-radius: 12px; padding: 0 14px; margin-bottom: 16px; }
.search-bar svg { width: 18px; height: 18px; color: var(--muted); flex: 0 0 auto; }
.search-bar input { flex: 1; border: none; background: none; padding: 13px 0; margin: 0; color: var(--text); font-size: 15px; font-family: inherit; outline: none; }

@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .side { position: static; height: auto; }
  .side-nav { flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
  .side-item { white-space: nowrap; }
  .main { padding: 0 16px 44px; }
}

/* secondary "Pay with Card" (Stripe) button */
.buy-card { background: #171b26; box-shadow: none; margin-top: 12px; border: 1px solid var(--border-strong); }
.buy-card:hover { background: #1f2431; filter: none; }
