@import url('https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700');
:root {
  --moto-blue: #005fbe;
  --moto-blue-dark: #004a95;
  --moto-blue-soft: #edf6ff;
  --ink: #050505;
  --muted: #66707a;
  --line: #e1e6eb;
  --surface: #ffffff;
  --bg: #f5f7f9;
  --success: #138a52;
  --shadow: 0 12px 30px rgba(16, 43, 69, .08);
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  font-family: Roboto, Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
button, a { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
.shell {
  width: min(100%, 560px);
  margin: 0 auto;
  min-height: 100vh;
  padding: 0 16px calc(42px + env(safe-area-inset-bottom));
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: calc(14px + env(safe-area-inset-top)) 2px 8px;
}
.brand-logo {
  display: block;
  width: 164px;
  height: auto;
  object-fit: contain;
}
.mode {
  flex: 0 0 auto;
  font-size: 9px;
  letter-spacing: .09em;
  font-weight: 700;
  padding: 6px 9px;
  border: 1px solid #cfd7df;
  border-radius: 999px;
  background: #fff;
  color: #5f6872;
}
.mode.live {
  color: var(--success);
  background: #edf9f3;
  border-color: #c6ead7;
}

.hero {
  margin-top: 8px;
  border-radius: 26px;
  padding: 30px 24px 28px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 14%, rgba(255,255,255,.20), transparent 25%),
    linear-gradient(145deg, var(--moto-blue), #0074d9);
  box-shadow: 0 15px 34px rgba(0, 95, 190, .18);
  overflow: hidden;
  position: relative;
}
.hero::after {
  content: "M";
  position: absolute;
  right: -22px;
  bottom: -74px;
  font-size: 190px;
  line-height: 1;
  font-weight: 700;
  color: rgba(255,255,255,.08);
}
.eyebrow, .kicker {
  color: var(--moto-blue);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .13em;
}
.hero .eyebrow { color: rgba(255,255,255,.82); }
.hero h1 {
  position: relative;
  z-index: 1;
  margin: 7px 0 8px;
  font-size: clamp(34px, 10vw, 46px);
  line-height: .98;
  letter-spacing: -.04em;
  font-weight: 600;
}
.hero p {
  position: relative;
  z-index: 1;
  max-width: 400px;
  margin: 0;
  color: rgba(255,255,255,.90);
  line-height: 1.45;
  font-size: 14px;
}

.products {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.product-card {
  position: relative;
  display: grid;
  grid-template-columns: 88px 1fr 26px;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 2px solid transparent;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
  cursor: pointer;
  outline: none;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.product-card:active { transform: scale(.992); }
.product-card:focus-visible { box-shadow: 0 0 0 4px rgba(0,95,190,.14), var(--shadow); }
.product-card.selected { border-color: var(--moto-blue); }
.product-art {
  width: 88px;
  height: 88px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
}
.product-art.mug { background: linear-gradient(155deg, #0b0d10, #343b43); }
.product-art.mug::before {
  content: "";
  width: 42px;
  height: 58px;
  border-radius: 6px 6px 12px 12px;
  background: linear-gradient(90deg, #c9d0d7, #f5f7f8 50%, #9da7b0);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.45);
}
.product-art.mug::after {
  content: "";
  position: absolute;
  width: 30px;
  height: 5px;
  top: 17px;
  border-radius: 99px;
  background: #20252a;
}
.m-logo {
  position: absolute;
  z-index: 2;
  top: 42px;
  font-size: 15px;
  color: var(--moto-blue);
  font-weight: 700;
}
.product-art.club {
  background: linear-gradient(150deg, #e8f4ff, #c7e4ff);
}
.club-badge {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--moto-blue);
  font-weight: 600;
  font-size: 20px;
  box-shadow: 0 7px 16px rgba(0,95,190,.22);
}
.product-copy { min-width: 0; }
.product-copy h2 {
  margin: 5px 0 3px;
  font-size: 16px;
  line-height: 1.15;
  font-weight: 600;
}
.product-copy p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.38;
}
.price { font-size: 19px; font-weight: 600; }
.price small { color: var(--muted); font-size: 11px; font-weight: 400; }
.check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid #d7dde3;
  background: #f4f6f8;
  color: transparent;
  font-size: 13px;
  font-weight: 600;
}
.product-card.selected .check {
  background: var(--moto-blue);
  border-color: var(--moto-blue);
  color: #fff;
}

.cart, .payment-panel, .developer-panel {
  margin-top: 16px;
  padding: 19px;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.summary-heading {
  margin-bottom: 13px;
  font-size: 13px;
  font-weight: 600;
}
.cart-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 4px 0;
  font-size: 13px;
}
.cart-row.muted { color: var(--muted); font-size: 11px; }
.cart-row.total { padding: 4px 0 15px; font-size: 18px; }
.divider { height: 1px; margin: 10px 0; background: var(--line); }

.primary, .secondary {
  min-height: 54px;
  width: 100%;
  padding: 13px 16px;
  border-radius: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, transform .08s ease;
  text-align: center;
}
.primary {
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  background: var(--moto-blue);
  box-shadow: 0 9px 20px rgba(0,95,190,.23);
}
.primary:hover { background: var(--moto-blue-dark); }
.primary:active, .secondary:active { transform: scale(.99); }
.secondary {
  border: 1px solid #d9e0e6;
  color: #15191d;
  background: #f7f9fa;
}
button:disabled { opacity: .6; cursor: wait; }
.pay-mark {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--moto-blue);
  font-size: 13px;
  font-weight: 700;
}
.secure {
  margin-top: 12px;
  text-align: center;
  color: #7a838d;
  font-size: 10px;
}
.lock { color: var(--moto-blue); font-size: 7px; vertical-align: middle; margin-right: 3px; }

.payment-panel { text-align: center; }
.success-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 10px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e9f8f1;
  color: var(--success);
  font-size: 20px;
  font-weight: 600;
}
.centered { text-align: center; }
.payment-panel h2 { margin: 5px 0 8px; font-size: 22px; font-weight: 600; }
.payment-panel > p { margin: 0 0 15px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.detail-row {
  display: grid;
  gap: 5px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: left;
  background: #fafcfd;
  font-size: 10px;
}
.detail-row span { color: var(--muted); }
.detail-row code { overflow-wrap: anywhere; }

.qr-section {
  margin-top: 14px;
  padding: 16px 14px 13px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fafcfd;
  text-align: center;
}
.qr-title {
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 600;
}
.qr-frame {
  width: min(220px, 72vw);
  aspect-ratio: 1;
  margin: 0 auto;
  padding: 10px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #dce3e9;
  box-shadow: 0 6px 18px rgba(16, 43, 69, .07);
}
.qr-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.qr-section p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.actions { display: grid; gap: 9px; margin-top: 12px; }
.link-button { text-decoration: none; }

.developer-panel { border: 1px dashed #b9c6d2; box-shadow: none; }
.developer-title { font-size: 13px; font-weight: 600; }
.developer-panel p { color: var(--muted); font-size: 11px; line-height: 1.48; }
.status-output {
  margin: 10px 0 0;
  padding: 12px;
  border-radius: 12px;
  overflow: auto;
  white-space: pre-wrap;
  text-align: left;
  background: #0e1318;
  color: #cceaff;
  font: 10px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
}

footer {
  display: grid;
  place-items: center;
  gap: 2px;
  padding: 27px 0 4px;
  color: #9aa2aa;
  font-size: 9px;
}
footer img { width: 112px; opacity: .68; }
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(22px + env(safe-area-inset-bottom));
  z-index: 10;
  transform: translateX(-50%);
  width: min(calc(100% - 32px), 480px);
  padding: 12px 14px;
  border-radius: 12px;
  background: #11161b;
  color: #fff;
  text-align: center;
  font-size: 11px;
  box-shadow: var(--shadow);
}
.hidden { display: none !important; }

@media (min-width: 520px) {
  .shell { padding-left: 24px; padding-right: 24px; }
  .product-card { grid-template-columns: 98px 1fr 26px; }
  .product-art { width: 98px; height: 98px; }
}

.environment-card {
  margin-top: 10px;
  padding: 16px;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
}
.environment-title {
  margin-top: 3px;
  font-size: 17px;
  font-weight: 600;
}
.environment-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 13px;
}
.environment-option {
  appearance: none;
  border: 1.5px solid var(--line);
  border-radius: 15px;
  background: #fff;
  color: var(--ink);
  padding: 11px 10px;
  text-align: left;
  cursor: pointer;
}
.environment-option span {
  display: block;
  font-weight: 600;
  font-size: 14px;
}
.environment-option small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  overflow-wrap: anywhere;
}
.environment-option.selected {
  border-color: var(--moto-blue);
  background: var(--moto-blue-soft);
  box-shadow: inset 0 0 0 1px var(--moto-blue);
}
.environment-option.selected span { color: var(--moto-blue-dark); }
.environment-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

/* Merchant admin */
.top-actions { display:flex; align-items:center; gap:8px; }
.admin-link { color:var(--moto-blue); text-decoration:none; font-size:11px; font-weight:600; padding:7px 10px; border-radius:999px; background:var(--moto-blue-soft); }
.admin-shell { width:min(100%, 920px); margin:0 auto; min-height:100vh; padding:0 16px calc(42px + env(safe-area-inset-bottom)); }
.admin-hero { margin-top:8px; padding:24px; border-radius:24px; background:var(--moto-blue); color:#fff; box-shadow:0 15px 34px rgba(0,95,190,.18); }
.admin-hero .eyebrow { color:rgba(255,255,255,.82); }
.admin-hero h1 { margin:6px 0 7px; font-size:clamp(27px,7vw,38px); letter-spacing:-.035em; }
.admin-hero p { margin:0; max-width:680px; color:rgba(255,255,255,.88); font-size:13px; line-height:1.45; }
.admin-toolbar { display:grid; grid-template-columns:1fr auto; gap:12px; align-items:end; margin-top:16px; }
.admin-env { margin-top:0; }
.compact { min-height:44px; width:auto; padding:10px 14px; }
.order-list { display:grid; gap:14px; margin-top:16px; }
.order-card { padding:18px; border-radius:22px; background:#fff; box-shadow:var(--shadow); }
.order-head { display:flex; justify-content:space-between; gap:14px; align-items:flex-start; }
.order-head h2 { margin:5px 0 0; font-size:17px; }
.status-pill { flex:0 0 auto; padding:6px 9px; border-radius:999px; background:#eef1f4; color:#5e6872; font-size:9px; font-weight:700; letter-spacing:.05em; }
.status-pill.good { color:#087444; background:#e9f8f1; }
.status-pill.pending { color:#8a6200; background:#fff5d6; }
.status-pill.bad { color:#a72a2a; background:#fff0f0; }
.order-amount-row { display:flex; justify-content:space-between; align-items:baseline; margin-top:14px; padding:12px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.order-amount-row strong { font-size:22px; }
.order-amount-row span { color:var(--muted); font-size:11px; }
.order-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px 18px; padding:13px 0 2px; }
.order-grid div { min-width:0; display:grid; gap:3px; }
.order-grid label, .recurring-box label { color:var(--muted); font-size:9px; text-transform:uppercase; letter-spacing:.08em; }
.order-grid span, .order-grid code { font-size:11px; overflow-wrap:anywhere; }
.recurring-box, .refund-box { margin-top:14px; padding:14px; border-radius:16px; background:#f8fafc; border:1px solid var(--line); }
.recurring-due { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:11px; }
.recurring-due > div { display:grid; gap:4px; }
.recurring-due strong { font-size:13px; }
.due-chip { padding:5px 8px; border-radius:999px; background:#eaf1f7; color:#5d6974; font-size:8px; font-weight:700; letter-spacing:.06em; }
.due-chip.due { background:#e8f8f0; color:#087444; }
.admin-help { display:block; margin-top:8px; color:var(--muted); font-size:9px; line-height:1.4; }
.refund-title { display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; font-size:12px; font-weight:600; }
.refund-title small { color:var(--muted); font-weight:400; }
.refund-row { display:grid; grid-template-columns:1fr auto; gap:9px; }
.money-input { display:flex; align-items:center; border:1px solid #d7dfe6; border-radius:12px; background:#fff; overflow:hidden; }
.money-input span { padding-left:12px; color:#65717d; }
.money-input input { width:100%; min-height:44px; border:0; outline:0; padding:10px 12px 10px 5px; font:inherit; background:transparent; }
.refund-button { min-height:44px; padding:10px 16px; border:0; border-radius:12px; background:#111820; color:#fff; font-weight:600; cursor:pointer; }
.refund-button:disabled { opacity:.45; cursor:not-allowed; }
.refund-history { display:grid; gap:5px; margin-top:11px; padding-top:10px; border-top:1px solid var(--line); }
.refund-history div { display:flex; justify-content:space-between; gap:12px; color:var(--muted); font-size:9px; }
.refund-history strong { color:#1f2a34; }
.inline-error, .inline-warning, .admin-notice { margin-top:11px; padding:10px 12px; border-radius:12px; font-size:10px; line-height:1.4; }
.inline-error { color:#9e2020; background:#fff0f0; }
.inline-warning { color:#785800; background:#fff7dc; }
.admin-notice { color:#785800; background:#fff7dc; }
.empty-state { margin-top:16px; padding:34px 22px; border-radius:22px; background:#fff; box-shadow:var(--shadow); text-align:center; }
.empty-icon { width:54px; height:54px; margin:0 auto 12px; border-radius:50%; display:grid; place-items:center; background:var(--moto-blue); color:#fff; font-weight:700; }
.empty-state h2 { margin:0 0 6px; }
.empty-state p { color:var(--muted); font-size:11px; margin:0 0 16px; }
@media (max-width: 620px) {
  .admin-toolbar { grid-template-columns:1fr; }
  .compact { width:100%; }
  .order-grid { grid-template-columns:1fr; }
}

.admin-toolbar-actions { display:flex; gap:8px; }
@media (max-width:620px){ .admin-toolbar-actions{display:grid;grid-template-columns:1fr 1fr;} }


/* Refund OTP input */
.refund-otp {
  min-width: 118px;
  max-width: 145px;
  border: 1px solid #d9e1ea;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
}
.refund-otp:focus { outline: 2px solid rgba(0,95,190,.18); border-color: #005FBE; }
@media (max-width: 640px) {
  .refund-row { flex-wrap: wrap; }
  .refund-otp { flex: 1 1 120px; max-width: none; }
  .refund-button { flex: 1 1 100%; }
}

/* Admin order date filters */
.admin-filters {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}
.filter-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.filter-heading > div { display: grid; gap: 2px; }
.filter-label { font-size: 12px; font-weight: 600; }
.filter-heading small, .filter-summary { color: var(--muted); font-size: 9px; }
.text-button {
  appearance: none;
  border: 0;
  background: var(--moto-blue-soft);
  color: var(--moto-blue);
  border-radius: 999px;
  padding: 7px 10px;
  font: inherit;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
}
.date-filter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 11px;
}
.date-filter-grid label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.date-filter-grid input {
  width: 100%;
  min-height: 42px;
  box-sizing: border-box;
  border: 1px solid #d7dfe6;
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
  padding: 8px 10px;
  font: inherit;
  font-size: 11px;
}
.date-filter-grid input:focus { outline: 2px solid rgba(0,95,190,.15); border-color: var(--moto-blue); }
.filter-summary { margin-top: 9px; }

.status-filter-row { margin-top: 10px; }
.status-filter-row label { display: grid; gap: 5px; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .07em; }
.status-filter-row select { width: 100%; min-height: 42px; box-sizing: border-box; border: 1px solid #d7dfe6; border-radius: 11px; background: #fff; color: var(--ink); padding: 8px 10px; font: inherit; font-size: 11px; }
.status-filter-row select:focus { outline: 2px solid rgba(0,95,190,.15); border-color: var(--moto-blue); }

/* Multi-brand theme */
:root[data-brand="coinzoom"] {
  --moto-blue: #39B54A;
  --moto-blue-dark: #278a36;
  --moto-blue-soft: #eef9f0;
  --success: #218c3a;
}
:root[data-brand="coinzoom"] .hero,
:root[data-brand="coinzoom"] .admin-hero {
  background: linear-gradient(145deg, #111, #242424);
  box-shadow: 0 15px 34px rgba(0,0,0,.16);
}
:root[data-brand="coinzoom"] .hero::after { content:"Z"; color:rgba(57,181,74,.16); }
:root[data-brand="coinzoom"] .brand-logo { width: 190px; }
:root[data-brand="coinzoom"] .primary { box-shadow: 0 9px 20px rgba(57,181,74,.23); }

.live-status { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background:#fff7dc; color:#755600; font-size:11px; text-align:center; }
.live-status.good { background:#e9f8f1; color:#087444; }
.mobile-device .qr-section { order: 2; }
.mobile-device #openPayment { order: 0; }

.metrics-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin-top:14px; }
.metric-card { padding:14px; border-radius:16px; background:#fff; box-shadow:var(--shadow); display:grid; gap:4px; }
.metric-card span { color:var(--muted); font-size:9px; text-transform:uppercase; letter-spacing:.07em; }
.metric-card strong { font-size:20px; }
.action-grid { display:grid; grid-template-columns:1fr 1fr; gap:9px; }
.order-details { margin-top:14px; border-top:1px solid var(--line); padding-top:12px; }
.order-details summary { cursor:pointer; color:var(--moto-blue-dark); font-size:11px; font-weight:600; }
.detail-actions { margin:10px 0; }
.timeline { display:grid; gap:10px; margin-top:8px; }
.timeline-event { display:grid; grid-template-columns:12px 1fr; gap:8px; align-items:start; }
.timeline-dot { width:9px; height:9px; border-radius:50%; background:var(--moto-blue); margin-top:4px; }
.timeline-event > div { display:grid; gap:2px; }
.timeline-event strong { font-size:10px; text-transform:capitalize; }
.timeline-event small,.timeline-event p,.timeline-empty { margin:0; color:var(--muted); font-size:9px; }
@media(max-width:760px){.metrics-grid{grid-template-columns:1fr 1fr}.action-grid{grid-template-columns:1fr}.admin-toolbar-actions{grid-template-columns:1fr!important}.brand-logo{max-width:46vw}}

.billing-panel{display:flex;align-items:center;justify-content:space-between;gap:22px;background:#fff;border:1px solid #dce4ee;border-radius:22px;padding:22px 24px;margin:18px 0 20px;box-shadow:0 10px 28px rgba(29,56,90,.06)}
.billing-panel strong{display:block;font-size:20px;margin-top:4px}.billing-panel p{margin:6px 0 0;color:#687585;font-size:14px}.billing-run{min-width:190px;white-space:nowrap}
@media(max-width:620px){.billing-panel{align-items:stretch;flex-direction:column}.billing-run{width:100%}}

/* v2.2 dashboard */
.admin-view-tabs { display:flex; gap:8px; margin-top:14px; padding:4px; border-radius:14px; background:rgba(127,127,127,.08); width:max-content; max-width:100%; }
.admin-view-tab { border:0; border-radius:10px; background:transparent; padding:10px 20px; font:inherit; font-weight:700; cursor:pointer; color:var(--muted); }
.admin-view-tab.selected { background:#fff; color:var(--text); box-shadow:0 2px 10px rgba(0,0,0,.08); }
.dashboard-metrics-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-top:14px; }
.dashboard-metric-card { min-height:132px; padding:18px; border-radius:18px; background:#fff; box-shadow:var(--shadow); display:flex; flex-direction:column; gap:7px; }
.dashboard-metric-card span { color:var(--muted); font-size:10px; text-transform:uppercase; letter-spacing:.07em; font-weight:700; }
.dashboard-metric-card strong { font-size:26px; line-height:1.1; }
.dashboard-metric-card small { margin-top:auto; color:var(--muted); line-height:1.35; }
.dashboard-secondary-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-top:10px; }
@media(max-width:900px){.dashboard-metrics-grid{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.dashboard-metrics-grid,.dashboard-secondary-grid{grid-template-columns:1fr 1fr}.dashboard-metric-card{min-height:118px;padding:14px}.dashboard-metric-card strong{font-size:22px}.admin-view-tabs{width:100%}.admin-view-tab{flex:1}}


/* CoinZoom brand treatment — best-effort implementation from the public CoinZoom Design System.
   The public guide currently exposes the official logo asset and names Poppins as a supported font,
   while the dedicated Colors page is still unpublished. The black/green treatment follows CoinZoom's
   current public app identity. MotoPay styles above remain unchanged. */
:root[data-brand="coinzoom"] {
  --moto-blue: #39B54A;
  --moto-blue-dark: #2f963d;
  --moto-blue-soft: #edf8ef;
  --ink: #151718;
  --muted: #687078;
  --line: #dfe4e1;
  --surface: #ffffff;
  --bg: #f4f6f5;
  --success: #238a43;
  --shadow: 0 12px 30px rgba(12, 22, 16, .08);
}
:root[data-brand="coinzoom"] body {
  font-family: Poppins, Arial, Helvetica, sans-serif;
  background: #f4f6f5;
}
:root[data-brand="coinzoom"] .topbar {
  padding-top: calc(18px + env(safe-area-inset-top));
}
:root[data-brand="coinzoom"] .brand-logo {
  width: 190px;
  max-height: 48px;
  object-fit: contain;
  object-position: left center;
}
:root[data-brand="coinzoom"] .hero,
:root[data-brand="coinzoom"] .admin-hero {
  background:
    radial-gradient(circle at 88% 10%, rgba(57,181,74,.22), transparent 29%),
    linear-gradient(145deg, #0b0d0c, #171b18 72%, #112216);
  color: #fff;
  box-shadow: 0 18px 38px rgba(0,0,0,.16);
}
:root[data-brand="coinzoom"] .hero::after {
  content: "Z";
  color: rgba(57,181,74,.13);
}
:root[data-brand="coinzoom"] .hero .eyebrow,
:root[data-brand="coinzoom"] .admin-hero .eyebrow {
  color: #77d783;
}
:root[data-brand="coinzoom"] .kicker,
:root[data-brand="coinzoom"] .eyebrow:not(.hero .eyebrow):not(.admin-hero .eyebrow) {
  color: #2f963d;
}
:root[data-brand="coinzoom"] .product-card.selected {
  border-color: #39B54A;
  box-shadow: 0 0 0 1px rgba(57,181,74,.08), var(--shadow);
}
:root[data-brand="coinzoom"] .product-art.club {
  background: linear-gradient(150deg, #eef8ef, #d9f0dd);
}
:root[data-brand="coinzoom"] .club-badge,
:root[data-brand="coinzoom"] .product-card.selected .check,
:root[data-brand="coinzoom"] .empty-icon {
  background: #39B54A;
  color: #fff;
}
:root[data-brand="coinzoom"] .primary {
  background: #39B54A;
  border-color: #39B54A;
  color: #07120a;
  box-shadow: 0 9px 20px rgba(57,181,74,.24);
}
:root[data-brand="coinzoom"] .primary:hover { background: #47c657; }
:root[data-brand="coinzoom"] .pay-mark {
  background: #0b0d0c;
  color: #57c765;
}
:root[data-brand="coinzoom"] .secondary,
:root[data-brand="coinzoom"] .refund-button {
  border-color: #d8dfda;
}
:root[data-brand="coinzoom"] .admin-link {
  color: #207d30;
  background: #edf8ef;
}
:root[data-brand="coinzoom"] .environment-option.selected {
  border-color: #39B54A;
  background: #edf8ef;
  box-shadow: inset 0 0 0 1px #39B54A;
}
:root[data-brand="coinzoom"] .environment-option.selected span { color: #207d30; }
:root[data-brand="coinzoom"] .dashboard-metric-card.primary-metric {
  border-color: rgba(57,181,74,.45);
  background: linear-gradient(145deg, #f7fff8, #edf8ef);
}
:root[data-brand="coinzoom"] .admin-view-tab.selected {
  color: #207d30;
  border-color: #39B54A;
}
:root[data-brand="coinzoom"] .billing-panel {
  border-color: rgba(57,181,74,.28);
}
:root[data-brand="coinzoom"] footer img { width: 140px; opacity: .75; }

/* Product branding: use the real brand logo rather than placeholder M / M+ marks. */
.product-brand-logo {
  display: block;
  object-fit: contain;
  max-width: 100%;
  max-height: 100%;
}
.product-brand-logo-mug {
  position: absolute;
  z-index: 3;
  width: 25px;
  max-height: 19px;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  filter: none;
}
.club-badge {
  padding: 10px;
}
.product-brand-logo-club {
  width: 43px;
  max-height: 35px;
}
.pay-brand-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex: 0 0 auto;
}
:root[data-brand="motopay"] .product-brand-logo-mug {
  width: 28px;
  max-height: 18px;
}
:root[data-brand="motopay"] .product-brand-logo-club {
  width: 44px;
  max-height: 31px;
}
:root[data-brand="coinzoom"] .product-brand-logo-mug {
  width: 30px;
  max-height: 18px;
}
:root[data-brand="coinzoom"] .product-brand-logo-club {
  width: 45px;
  max-height: 32px;
}
:root[data-brand="coinzoom"] .club-badge {
  background: #ffffff;
  border: 1px solid rgba(57,181,74,.22);
  box-shadow: 0 7px 16px rgba(57,181,74,.16);
}


/* v2.5 MotoPay logo contrast fix — keep the official logo unchanged and place it on light surfaces. */
:root[data-brand="motopay"] .club-badge {
  background: #ffffff;
  border: 1px solid #d9e4ef;
  box-shadow: 0 7px 16px rgba(0,95,190,.12);
}
:root[data-brand="motopay"] .product-art.club {
  background: linear-gradient(150deg, #f7fbff, #eaf4ff);
}
:root[data-brand="motopay"] .pay-brand-logo {
  width: 38px;
  height: 28px;
  padding: 4px 5px;
  border-radius: 7px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}


/* v2.6 CoinZoom official logo supplied from the CoinZoom branding library.
   Keep the artwork unchanged; only size/place it for the demo product surfaces. */
:root[data-brand="coinzoom"] .product-brand-logo-mug {
  width: 38px;
  max-height: 18px;
  top: 40px;
}
:root[data-brand="coinzoom"] .product-brand-logo-club {
  width: 48px;
  max-height: 24px;
}
:root[data-brand="coinzoom"] .club-badge {
  background: #ffffff;
  border: 1px solid rgba(57,181,74,.18);
}
:root[data-brand="coinzoom"] .pay-brand-logo {
  width: 42px;
  height: 26px;
  padding: 3px 5px;
  border-radius: 7px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
