/* BlockPay merchant dashboard — extends blockpay-styles.css design system */

.dash-page {
  background: var(--bg);
  min-height: 100vh;
  padding-top: 60px;
}

.dash-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  max-width: 1440px;
  margin: 0 auto;
}

/* === Sidebar === */
.dash-sidebar {
  position: sticky;
  top: 60px;
  align-self: start;
  height: calc(100vh - 60px);
  border-right: 1px solid var(--border);
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--bg);
}

.dash-side-label {
  font-family: var(--fm);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--subtle);
  padding: 0 12px;
  margin: 18px 0 6px;
}
.dash-side-label:first-child { margin-top: 0; }

.dash-side-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  font-family: var(--fs);
  font-size: 13.5px;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  border: none;
  text-align: left;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}
.dash-side-link:hover {
  background: var(--bg2);
  transform: translateX(2px);
}
.dash-side-link.is-active {
  background: var(--text);
  color: var(--bg);
}
.dash-side-link.is-active .dash-side-icon { color: var(--bg); }
.dash-side-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--muted);
}

/* === Main content === */
.dash-main {
  padding: 32px 40px 80px;
  min-width: 0;
}

.dash-page-header {
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.dash-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--fm);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
}
.dash-eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  animation: blink 2.5s ease-in-out infinite;
}
.dash-page-title {
  font-family: var(--ff);
  font-size: clamp(32px, 4vw, 44px);
  letter-spacing: -1px;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 10px;
}
.dash-page-title em {
  font-style: italic;
  color: var(--muted);
}
.dash-page-sub {
  font-size: 14.5px;
  color: var(--muted);
  font-weight: 300;
  max-width: 640px;
  line-height: 1.65;
}

.dash-section {
  margin-top: 56px;
}
.dash-section:first-of-type { margin-top: 8px; }

.dash-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
}
.dash-section-title {
  font-family: var(--ff);
  font-size: 22px;
  letter-spacing: -0.4px;
  color: var(--text);
}
.dash-section-meta {
  font-family: var(--fm);
  font-size: 11px;
  color: var(--subtle);
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.dash-pulse-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(26,102,68,0.45);
  animation: dashPulse 1.8s ease-in-out infinite;
}
@keyframes dashPulse {
  0%   { box-shadow: 0 0 0 0   rgba(26,102,68,0.45); }
  70%  { box-shadow: 0 0 0 8px rgba(26,102,68,0);    }
  100% { box-shadow: 0 0 0 0   rgba(26,102,68,0);    }
}

/* === Stat grid === */
.dash-stat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.dash-stat {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background 0.15s, border-color 0.15s, transform 0.2s ease;
}
.dash-stat:hover {
  background: var(--bg2);
  border-color: #DDDDD6;
  transform: translateY(-2px);
}
.dash-stat-label {
  font-family: var(--fm);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--subtle);
}
.dash-stat-value {
  font-family: var(--ff);
  font-size: 30px;
  letter-spacing: -0.6px;
  line-height: 1;
  color: var(--text);
}
.dash-stat-foot {
  font-family: var(--fm);
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.dash-stat-foot .delta-up { color: var(--green); }

/* === Coin rate cards === */
.dash-rate-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.dash-rate-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background 0.15s, transform 0.2s ease;
}
.dash-rate-card:hover {
  background: var(--bg2);
  transform: translateY(-2px);
}
.dash-rate-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.dash-rate-mark {
  width: 32px; height: 32px; border-radius: 50%;
  display: inline-grid; place-items: center;
  font-family: var(--fm); font-size: 14px; color: #fff;
  flex-shrink: 0;
  letter-spacing: -0.4px;
}
.dash-rate-mark.usdc { background: #2775CA; }
.dash-rate-mark.usdc::before { content: '$'; font-weight: 700; }
.dash-rate-mark.rlusd { background: #1A6644; }
.dash-rate-mark.rlusd::before { content: 'R'; font-weight: 600; }
.dash-rate-mark.xrp  { background: #23292F; }
.dash-rate-mark.xrp::before  { content: '\2715'; font-weight: 700; font-size: 13px; }
.dash-rate-mark.sol  { background: linear-gradient(135deg, #9945FF 0%, #14F195 100%); }
.dash-rate-mark.sol::before  { content: 'S'; font-style: italic; font-weight: 600; }
.dash-rate-mark.btc  { background: #F7931A; }
.dash-rate-mark.btc::before  { content: '\20BF'; font-weight: 600; }

.dash-rate-meta {
  display: flex; flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}
.dash-rate-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.2px;
}
.dash-rate-sym {
  font-family: var(--fm);
  font-size: 11px;
  color: var(--subtle);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 3px;
}
.dash-rate-price {
  font-family: var(--ff);
  font-size: 24px;
  color: var(--text);
  letter-spacing: -0.4px;
  line-height: 1;
}
.dash-rate-change {
  font-family: var(--fm);
  font-size: 11.5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0.02em;
}
.dash-rate-change.up { color: var(--green); }
.dash-rate-change.down { color: #B43E3E; }
.dash-rate-spark {
  width: 100%;
  height: 36px;
  margin-top: 4px;
}
.dash-rate-spark path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.dash-rate-card.up .dash-rate-spark { color: var(--green); }
.dash-rate-card.down .dash-rate-spark { color: #B43E3E; }

/* === Customer demo split === */
.dash-demo-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  align-items: start;
}

/* Apple-Wallet-style payment card */
.dash-pay-card {
  border-radius: 16px;
  background: linear-gradient(155deg, #161614 0%, #0A0A08 65%, #050504 100%);
  padding: 28px;
  color: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
  position: relative;
  overflow: hidden;
}
.dash-pay-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 0%, rgba(0,255,136,0.08), transparent 55%);
  pointer-events: none;
}
.dash-pay-head {
  display: flex; align-items: center; justify-content: space-between;
  position: relative;
}
.dash-pay-brand {
  font-family: var(--fm);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.2px;
}
.dash-pay-status {
  font-family: var(--fm);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #00ff88;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.dash-pay-status::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: #00ff88; box-shadow: 0 0 8px rgba(0,255,136,0.6);
}
.dash-pay-status.idle::before { background: rgba(255,255,255,0.5); box-shadow: none; }
.dash-pay-status.idle { color: rgba(255,255,255,0.55); }
.dash-pay-status.proc::before {
  background: #FFD23F;
  box-shadow: 0 0 8px rgba(255,210,63,0.5);
  animation: dashPulse 1.2s ease-in-out infinite;
}
.dash-pay-status.proc { color: #FFD23F; }

.dash-pay-amount-wrap {
  margin-top: 28px;
  position: relative;
}
.dash-pay-amount {
  font-family: var(--ff);
  font-size: 56px;
  letter-spacing: -2px;
  line-height: 1;
  color: #fff;
}
.dash-pay-fiat {
  font-family: var(--fm);
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin-top: 6px;
}
.dash-pay-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,0.07);
  font-family: var(--fm);
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  position: relative;
}
.dash-pay-row span:first-child { color: rgba(255,255,255,0.45); }
.dash-pay-rows {
  margin-top: 26px;
  position: relative;
}
.dash-pay-coin-pick {
  display: flex; gap: 6px;
  margin-top: 22px;
  position: relative;
}
.dash-pay-pick {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  border-radius: 8px;
  padding: 9px 0;
  font-family: var(--fm);
  font-size: 11px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.15s;
}
.dash-pay-pick:hover {
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  color: #fff;
}
.dash-pay-pick.is-selected {
  border-color: rgba(0,255,136,0.5);
  background: rgba(0,255,136,0.06);
  color: #00ff88;
}
.dash-pay-cta {
  margin-top: 26px;
  width: 100%;
  background: #fff;
  color: #0A0A08;
  border: none;
  border-radius: 10px;
  padding: 14px 0;
  font-family: var(--fs);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: background 0.2s ease;
}
.dash-pay-cta::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 50%;
  z-index: -1;
  background: linear-gradient(120deg, transparent 0%, rgba(10,10,8,0.18) 50%, transparent 100%);
  transform: translateX(-150%) skewX(-20deg);
  transition: transform 0.6s ease;
}
.dash-pay-cta:hover::before { transform: translateX(250%) skewX(-20deg); }
.dash-pay-cta:disabled { opacity: 0.65; cursor: progress; }
.dash-pay-cta.is-confirmed { background: #00ff88; color: #0A0A08; }

/* === iPhone mock === */
.dash-phone-wrap {
  display: flex; justify-content: center;
  perspective: 1000px;
}
.dash-phone {
  width: 280px;
  height: 568px;
  background: #0A0A08;
  border-radius: 42px;
  padding: 12px;
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.20),
    inset 0 0 0 1px rgba(255,255,255,0.04);
  position: relative;
}
.dash-phone::before {
  content: '';
  position: absolute;
  top: 18px; left: 50%;
  transform: translateX(-50%);
  width: 96px; height: 26px;
  background: #0A0A08;
  border-radius: 18px;
  z-index: 2;
}
.dash-phone-screen {
  width: 100%; height: 100%;
  background: #0A0A08;
  border-radius: 32px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}
.dash-phone-statusbar {
  height: 44px;
  display: flex; align-items: flex-end;
  justify-content: space-between;
  padding: 0 24px 6px;
  font-family: var(--fs);
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}
.dash-phone-statusbar-icons {
  display: inline-flex; align-items: center; gap: 5px;
}
.dash-phone-statusbar-icons svg {
  width: 14px; height: 14px;
  color: #fff;
}
.dash-phone-app {
  flex: 1;
  padding: 18px 22px 28px;
  display: flex; flex-direction: column;
  color: #fff;
}
.dash-phone-app-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px;
}
.dash-phone-app-brand {
  font-family: var(--fm);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.3px;
}
.dash-phone-app-bell {
  width: 30px; height: 30px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  display: grid; place-items: center;
}
.dash-phone-app-bell svg { width: 14px; height: 14px; color: rgba(255,255,255,0.7); }

.dash-phone-merchant {
  font-family: var(--fm);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 4px;
}
.dash-phone-merchant-name {
  font-family: var(--ff);
  font-size: 18px;
  letter-spacing: -0.3px;
  margin-bottom: 18px;
}
.dash-phone-amount {
  font-family: var(--ff);
  font-size: 48px;
  letter-spacing: -1.6px;
  line-height: 1;
  margin-bottom: 6px;
}
.dash-phone-amount em { font-style: normal; color: rgba(255,255,255,0.45); font-size: 28px; letter-spacing: -0.8px; }
.dash-phone-fiat {
  font-family: var(--fm);
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 22px;
}

.dash-phone-confirm {
  margin-top: auto;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--fm);
  font-size: 11px;
  color: rgba(255,255,255,0.7);
}
.dash-phone-confirm strong { color: #00ff88; font-weight: 500; }

.dash-phone-receipt {
  margin-top: 14px;
  background: rgba(0,255,136,0.06);
  border: 1px solid rgba(0,255,136,0.2);
  border-radius: 14px;
  padding: 14px 16px;
  font-family: var(--fm);
  font-size: 11px;
  color: rgba(255,255,255,0.85);
  display: flex; align-items: center; gap: 10px;
}
.dash-phone-check {
  width: 22px; height: 22px;
  background: #00ff88;
  border-radius: 50%;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.dash-phone-check svg { width: 12px; height: 12px; color: #0A0A08; }

/* === Demo label section === */
.dash-disclaimer {
  margin-top: 56px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--green);
  border-radius: 12px;
  background: var(--green-bg);
  padding: 26px 32px;
}
.dash-disclaimer-label {
  font-family: var(--fm);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.dash-disclaimer-label::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
}
.dash-disclaimer h3 {
  font-family: var(--ff);
  font-size: 22px;
  letter-spacing: -0.4px;
  color: var(--text);
  margin-bottom: 8px;
}
.dash-disclaimer p {
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
  font-weight: 300;
  max-width: 760px;
}
.dash-disclaimer p + p { margin-top: 10px; }

/* === Responsive === */
@media (max-width: 1100px) {
  .dash-stat-grid { grid-template-columns: repeat(3, 1fr); }
  .dash-rate-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 960px) {
  .dash-shell { grid-template-columns: 1fr; }
  .dash-sidebar {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    gap: 6px;
    overflow-x: auto;
  }
  .dash-side-label { display: none; }
  .dash-side-link {
    flex-shrink: 0;
    font-size: 12.5px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
  }
  .dash-side-link.is-active { border-color: var(--text); }
  .dash-main { padding: 24px 24px 64px; }
  .dash-demo-grid { grid-template-columns: 1fr; gap: 28px; }
  .dash-phone { width: 260px; height: 528px; }
}

@media (max-width: 640px) {
  .dash-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-rate-grid { grid-template-columns: 1fr; }
  .dash-stat-value { font-size: 24px; }
  .dash-pay-amount { font-size: 44px; }
  .dash-disclaimer { padding: 22px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .dash-stat:hover, .dash-rate-card:hover, .dash-side-link:hover { transform: none; }
  .dash-eyebrow-dot, .dash-pulse-dot, .dash-pay-status.proc::before { animation: none; }
}

/* === Global button typography — match logo + dropdowns (Geist Mono) === */
.btn-nav,
.btn-nav-solid,
.btn-nav-ghost,
.btn-main,
.btn-sec,
.btn-submit,
.btn-download,
.plan-btn,
.plan-btn-light,
.plan-btn-inv,
.contact-cta,
.faq-q,
.dash-side-link,
.dash-pay-cta,
.dash-pay-pick,
.ext-popup-pay,
.onboard-submit,
.onboard-back,
button[type="submit"],
input[type="submit"],
input[type="button"] {
  font-family: var(--fm);
}
