:root {
  --bg: #06100c;
  --panel: #0b1913;
  --panel-2: #10231a;
  --line: #1c3a2c;
  --text: #f3f8f5;
  --muted: #91a99c;
  --green: #1edf84;
  --green-2: #15b66a;
  --danger: #ff6b75;
  --warning: #ffc857;
  --radius: 18px;
  --shadow: 0 22px 70px rgba(0, 0, 0, .32);
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 10% -10%, rgba(30, 223, 132, .13), transparent 35%),
    radial-gradient(circle at 90% 10%, rgba(30, 223, 132, .07), transparent 26%),
    var(--bg);
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 850; letter-spacing: -.4px; }
.brand-mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: var(--green); color: #06100c; box-shadow: 0 0 28px rgba(30,223,132,.25);
}
.nav-links { display: flex; align-items: center; gap: 26px; color: var(--muted); font-size: 14px; }
.nav-links a:hover { color: var(--text); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px;
  padding: 0 18px; border: 1px solid var(--line); border-radius: 12px; color: var(--text);
  background: var(--panel-2); font-weight: 720; transition: .18s ease;
}
.btn:hover { transform: translateY(-1px); border-color: #2a5c43; }
.btn-primary { background: var(--green); border-color: var(--green); color: #04100a; }
.btn-danger { color: #ffdfe2; border-color: #6b2e35; background: #31171b; }
.btn-small { min-height: 34px; padding: 0 12px; font-size: 12px; border-radius: 9px; }
.full-width { width: 100%; }
.hero { padding: 92px 0 108px; display: grid; grid-template-columns: 1.08fr .92fr; gap: 70px; align-items: center; }
.eyebrow { color: var(--green); text-transform: uppercase; letter-spacing: 1.8px; font-size: 12px; font-weight: 850; }
h1 { font-size: clamp(44px, 6vw, 76px); letter-spacing: -4px; line-height: .98; margin: 18px 0 24px; }
.hero p { max-width: 650px; color: var(--muted); font-size: 18px; line-height: 1.75; }
.hero-actions { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.code-card, .panel {
  background: linear-gradient(150deg, rgba(16,35,26,.96), rgba(7,18,13,.96));
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.code-card { padding: 20px; transform: rotate(1deg); }
.window-dots { display: flex; gap: 7px; margin-bottom: 22px; }
.window-dots i { width: 9px; height: 9px; border-radius: 50%; background: #2a4739; }
pre { margin: 0; overflow: auto; color: #c8f7df; line-height: 1.7; font: 13px/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.features { padding: 30px 0 110px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: rgba(11,25,19,.72); }
.feature span { color: var(--green); font-size: 12px; font-weight: 850; }
.feature h3 { margin: 12px 0 9px; }
.feature p { color: var(--muted); line-height: 1.6; margin: 0; font-size: 14px; }
.footer { border-top: 1px solid var(--line); color: var(--muted); padding: 26px 0; font-size: 13px; }
.footer-row { display: flex; justify-content: space-between; gap: 20px; }

.center-page { min-height: 100vh; display: grid; place-items: center; padding: 30px 0; }
.payment-shell { width: min(540px, calc(100% - 28px)); }
.payment-head { text-align: center; margin-bottom: 24px; }
.payment-head .brand { justify-content: center; }
.payment-card { padding: 26px; }
.merchant-name { color: var(--muted); font-size: 13px; text-align: center; }
.coin-selection { padding-top: 16px; }
.selection-copy { margin-bottom: 18px; text-align: center; }
.selection-copy h2 { margin: 0 0 7px; font-size: 22px; }
.selection-copy p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.coin-options { display: grid; gap: 9px; }
.coin-option { display: grid; grid-template-columns: 42px 1fr auto; gap: 12px; align-items: center; width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 11px; color: var(--text); background: #09120d; text-align: left; cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
.coin-option:hover { border-color: #2a6446; background: #0c1b12; transform: translateY(-1px); }
.coin-option:disabled { opacity: .58; cursor: wait; }
.coin-option img { width: 42px; height: 42px; }
.coin-option span { display: grid; gap: 3px; }
.coin-option strong { font-size: 14px; }
.coin-option small { color: var(--muted); font-size: 10px; }
.coin-option i { color: var(--green); font-size: 18px; font-style: normal; }
.coin-lock-note { margin: 13px 0 0; color: #6f8277; font-size: 10px; text-align: center; }
.selected-asset { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 16px 0 8px; }
.selected-asset img { width: 34px; height: 34px; }
.selected-asset div { display: grid; gap: 2px; }
.selected-asset strong { font-size: 12px; }
.selected-asset span { color: var(--muted); font-size: 9px; }
.amount-main { text-align: center; font-size: clamp(34px, 8vw, 48px); letter-spacing: -2px; font-weight: 900; margin: 7px 0 3px; }
.amount-sub { text-align: center; color: var(--muted); font-size: 14px; }
.qr-wrap { width: 230px; margin: 24px auto; border-radius: 18px; background: white; padding: 11px; }
.qr-wrap img { width: 100%; display: block; border-radius: 10px; }
.field-copy { margin: 12px 0; }
.field-copy label { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; display: block; margin-bottom: 7px; }
.copy-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.copy-value { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 12px 13px; border: 1px solid var(--line); background: #07130e; border-radius: 11px; font: 13px ui-monospace, monospace; }
.notice { color: var(--muted); font-size: 12px; line-height: 1.65; padding: 13px; border: 1px solid var(--line); border-radius: 11px; margin-top: 17px; }
.status-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 13px 0 0; }
.badge { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border-radius: 999px; background: #17251e; color: #b5c9be; font-size: 12px; font-weight: 750; }
.badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.pending { color: var(--warning); }
.badge.confirmed { color: var(--green); }
.badge.expired, .badge.cancelled { color: var(--danger); }
.timer { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 13px; }
.success-state { text-align: center; padding: 36px 4px 10px; }
.return-action { text-align: center; padding: 8px 0 12px; }
.return-action p { margin: 0 0 13px; }
.success-icon { width: 70px; height: 70px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center; color: #04100a; background: var(--green); font-size: 34px; font-weight: 900; }
.hidden { display: none !important; }
.loading { color: var(--muted); text-align: center; padding: 50px 0; }

.dashboard-body {
  --panel: #0d1511;
  --panel-2: #121d17;
  --line: #1d2c24;
  --muted: #84988d;
  background: #080d0a;
}
.backoffice-login {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #060a08;
}
.backoffice-login::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: .32;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}
.backoffice-login::after {
  content: '';
  position: absolute;
  width: 620px;
  height: 620px;
  left: 50%;
  top: 48%;
  z-index: -1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30,223,132,.075), transparent 67%);
  pointer-events: none;
}
.dash-shell { display: grid; grid-template-columns: 274px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 26px 18px 20px;
  border-right: 1px solid #17231d;
  background: #070c09;
}
.sidebar-brand, .login-brand { display: flex; align-items: center; gap: 12px; }
.sidebar-brand { padding: 0 10px 25px; border-bottom: 1px solid #17231d; }
.sidebar-brand .brand-mark, .login-brand .brand-mark { width: 38px; height: 38px; border-radius: 10px; font-size: 15px; }
.sidebar-brand div, .login-brand div { display: grid; gap: 3px; min-width: 0; }
.sidebar-brand strong, .login-brand strong { color: #f7faf8; font-size: 14px; letter-spacing: -.2px; }
.sidebar-brand div > span, .login-brand div > span { color: #63776c; font-size: 8px; font-weight: 800; letter-spacing: 1.35px; }
.side-nav { display: grid; gap: 4px; margin-top: 20px; }
.nav-label {
  display: block;
  padding: 15px 11px 7px;
  color: #52645a;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 1.25px;
  text-transform: uppercase;
}
.nav-label:first-child { padding-top: 0; }
.side-nav button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 43px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #82948a;
  background: transparent;
  text-align: left;
  font-size: 13px;
  font-weight: 620;
}
.side-nav button::before {
  display: grid;
  place-items: center;
  flex: 0 0 23px;
  width: 23px;
  height: 23px;
  border-radius: 7px;
  color: #71847a;
  background: #101813;
  font-size: 12px;
  font-weight: 800;
}
.side-nav button[data-icon="overview"]::before { content: '⌂'; }
.side-nav button[data-icon="merchants"]::before { content: '◇'; }
.side-nav button[data-icon="reconciliation"]::before { content: '≋'; }
.side-nav button[data-icon="payments"]::before { content: '₮'; }
.side-nav button[data-icon="network"]::before { content: '◎'; }
.side-nav button[data-icon="transfer"]::before { content: '↔'; }
.side-nav button[data-icon="audit"]::before { content: '✓'; }
.side-nav button[data-icon="settings"]::before { content: '⚙'; }
.side-nav button[data-icon="key"]::before { content: '⌁'; }
.side-nav button:hover { color: #dbe5df; background: #0d1511; }
.side-nav button.active {
  color: #f5faf7;
  border-color: #244333;
  background: linear-gradient(90deg, rgba(30,223,132,.12), rgba(30,223,132,.035));
}
.side-nav button.active::before { color: #06100c; background: var(--green); }
.sidebar-bottom {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border: 1px solid #1a2821;
  border-radius: 11px;
  background: #0b120e;
}
.sidebar-account { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.account-avatar { display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; border-radius: 9px; color: #06100c; background: var(--green); font-size: 12px; font-weight: 900; }
.sidebar-account div { display: grid; gap: 2px; min-width: 0; }
.sidebar-account strong { overflow: hidden; color: #e9f0ec; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-account span:not(.account-avatar) { color: #66796e; font-size: 9px; }
.logout-button { display: grid; place-items: center; flex: 0 0 31px; width: 31px; height: 31px; border: 0; border-radius: 8px; color: #788b80; background: #121c17; font-size: 14px; transform: rotate(90deg); }
.logout-button:hover { color: #ffadb3; background: #291619; }
.dash-main { min-width: 0; padding: 31px 42px 70px; background: #090e0b; }
.dash-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; padding-bottom: 23px; border-bottom: 1px solid #18231e; }
.page-kicker { margin-bottom: 5px; color: #5d7065; font-size: 9px; font-weight: 850; letter-spacing: 1.5px; }
.dash-top h1 { font-size: 26px; letter-spacing: -1px; margin: 0; }
.top-actions { display: flex; align-items: center; gap: 12px; }
.top-date { color: #687c71; font-size: 11px; }
.build-version { padding: 4px 7px; border: 1px solid #203129; border-radius: 6px; color: #6f8277; background: #0d1511; font: 9px/1 ui-monospace, monospace; }
.dash-top .btn { min-height: 38px; padding: 0 14px; border-color: #26372e; border-radius: 9px; background: #0f1713; font-size: 11px; }
.muted { color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 11px; margin-bottom: 18px; }
.stat { position: relative; overflow: hidden; min-height: 104px; border: 1px solid var(--line); background: #0d1410; border-radius: 11px; padding: 14px 15px 13px; }
.stat::after { content: ''; position: absolute; right: -25px; bottom: -45px; width: 95px; height: 95px; border-radius: 50%; background: rgba(30,223,132,.045); }
.stat-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; }
.stat label { display: block; color: #778b80; font-size: 10px; font-weight: 650; letter-spacing: .2px; }
.stat-top span { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 8px; color: var(--green); background: rgba(30,223,132,.08); font-size: 12px; }
.stat strong { display: block; font-size: 21px; letter-spacing: -.7px; }
.stat-line { width: 21px; height: 2px; margin-top: 10px; border-radius: 99px; background: var(--green); opacity: .75; }
.overview-stats, .reconciliation-stats { width: 100%; gap: 0; padding: 0 4px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #0c1310; }
.overview-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 12px; }
.overview-stats .stat, .reconciliation-stats .stat { overflow: visible; border: 0; border-radius: 0; background: transparent; }
.overview-stats .stat::after, .reconciliation-stats .stat::after { display: none; }
.overview-stats .stat + .stat, .reconciliation-stats .stat + .stat { border-left: 1px solid var(--line); }
.overview-stats .stat { min-height: 74px; padding: 10px 16px; }
.overview-stats .stat-top { margin-bottom: 3px; }
.overview-stats .stat label { color: #71857a; font-size: 9px; }
.overview-stats .stat-top span { width: 24px; height: 24px; border-radius: 6px; font-size: 10px; }
.overview-stats .stat strong { font-size: 23px; line-height: 1; letter-spacing: -.65px; font-variant-numeric: tabular-nums; }
.overview-stats .stat-line { display: none; }
.reconciliation-stats { grid-template-columns: repeat(6, minmax(0, 1fr)); margin-bottom: 12px; }
.reconciliation-stats .stat { display: flex; min-height: 70px; flex-direction: column; justify-content: center; padding: 10px 15px; }
.reconciliation-stats .stat label { color: #71857a; font-size: 9px; }
.reconciliation-stats .stat strong { overflow: hidden; margin-top: 6px; font-size: 20px; line-height: 1; letter-spacing: -.5px; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.panel { padding: 22px; margin-bottom: 18px; border-color: var(--line); border-radius: 13px; background: #0c1310; box-shadow: none; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.panel-head h2 { margin: 0; font-size: 16px; letter-spacing: -.25px; }
.compact-copy { margin: 6px 0 0; font-size: 13px; }
.health-panel { padding: 0; }
.health-panel .panel-head { margin: 0; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.live-indicator { display: inline-flex; align-items: center; gap: 7px; color: #6f8277; font-size: 9px; font-weight: 850; letter-spacing: 1px; }
.live-indicator i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(30,223,132,.08); }
.health-grid { display: grid; grid-template-columns: 1fr 1fr; }
.health-item { display: flex; align-items: flex-start; gap: 14px; min-width: 0; padding: 20px; }
.health-item + .health-item { border-left: 1px solid var(--line); }
.health-icon { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; border: 1px solid #264433; border-radius: 10px; color: var(--green); background: rgba(30,223,132,.06); font-size: 15px; font-weight: 900; }
.chain-icon { font-size: 12px; }
.health-item label { display: block; margin-bottom: 6px; color: #e6ede9; font-size: 11px; font-weight: 750; }
.health-item p { margin: 0; color: #73867b; font-size: 11px; line-height: 1.65; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.grid-wallet { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(180px, .8fr); gap: 15px; }
.filter-grid { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)) minmax(110px, .65fr); gap: 12px; align-items: end; }
.payment-filter-grid, .log-filter-grid { grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); }
.filter-grid .form-group { margin-bottom: 0; }
.filter-action { align-self: end; }
.ip-form { margin-top: 18px; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; color: var(--muted); font-size: 12px; margin-bottom: 7px; }
.input { width: 100%; min-height: 44px; padding: 0 13px; border-radius: 9px; border: 1px solid var(--line); color: var(--text); background: #080f0b; outline: none; }
.input:focus { border-color: var(--green-2); box-shadow: 0 0 0 3px rgba(30,223,132,.08); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { color: #65786d; background: #0a110d; text-align: left; font-size: 9px; text-transform: uppercase; letter-spacing: .85px; font-weight: 800; }
th, td { padding: 13px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
tbody tr { transition: background .15s ease; }
tbody tr:hover { background: rgba(255,255,255,.014); }
td code { color: #b7e8ce; }
.login-shell { width: min(405px, calc(100% - 28px)); }
.login-card { padding: 32px; border-color: #1b2d24; border-radius: 15px; background: rgba(10,17,13,.96); box-shadow: 0 32px 100px rgba(0,0,0,.46); }
.login-brand { padding-bottom: 24px; border-bottom: 1px solid #1b2821; }
.login-heading { padding: 23px 0 19px; }
.login-heading h1 { margin: 0; font-size: 24px; letter-spacing: -.8px; text-align: left; }
.login-card .form-group { margin-bottom: 16px; }
.login-card .form-group label { color: #899b91; font-size: 10px; font-weight: 700; letter-spacing: .2px; }
.login-card .form-group label span { float: right; padding: 2px 6px; border-radius: 4px; color: #587065; background: #101a15; font-size: 8px; text-transform: uppercase; letter-spacing: .7px; }
.login-card .input { min-height: 49px; padding: 0 14px; border-color: #213128; background: #080e0b; }
.login-card .input::placeholder { color: #3f5047; }
.login-card .code-input { letter-spacing: 4px; font-variant-numeric: tabular-nums; }
.login-submit { min-height: 49px; margin-top: 5px; border-radius: 9px; box-shadow: 0 9px 30px rgba(30,223,132,.1); }
.login-submit span { margin-left: auto; font-size: 16px; }
.error-box, .success-box { padding: 12px 13px; border-radius: 10px; margin: 12px 0; font-size: 13px; }
.error-box { background: #32171b; color: #ffc4c9; border: 1px solid #6f2d35; }
.success-box { background: #0e2c1d; color: #baf4d4; border: 1px solid #21623f; }
.secret-box { word-break: break-all; padding: 14px; border: 1px solid #2b6547; background: #07130e; border-radius: 10px; color: var(--green); font: 12px/1.6 ui-monospace, monospace; }
.credential-head { margin-top: 30px; }

.overview-grid { display: grid; grid-template-columns: minmax(400px, 5fr) minmax(520px, 7fr); gap: 12px; align-items: stretch; }
.chart-panel, .overview-detail-panel { min-height: 220px; padding: 16px 18px; margin-bottom: 12px; }
.chart-panel .panel-head, .overview-detail-panel .panel-head { margin-bottom: 9px; }
.donut-layout { display: flex; align-items: center; justify-content: center; gap: 24px; min-height: 154px; }
.payment-donut {
  display: grid;
  place-items: center;
  flex: 0 0 156px;
  width: 156px;
  height: 156px;
  border-radius: 50%;
  background: conic-gradient(#1edf84 0 33.33%, #ff6b75 33.33% 66.66%, #ffc857 66.66% 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.035), 0 18px 35px rgba(0,0,0,.22);
}
.payment-donut > div { display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; border: 1px solid #213129; background: #0a110d; box-shadow: inset 0 10px 28px rgba(0,0,0,.22); }
.payment-donut strong { font-size: 28px; letter-spacing: -1px; }
.payment-donut span { margin-top: -9px; color: #667a6f; font-size: 8px; text-transform: uppercase; letter-spacing: 1px; }
.status-legend { display: grid; flex: 1; gap: 0; min-width: 170px; max-width: 220px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.legend-row { display: grid; grid-template-columns: 9px 1fr auto; gap: 9px; align-items: center; min-height: 42px; padding: 0 4px; }
.legend-row + .legend-row { border-top: 1px solid var(--line); }
.legend-dot { display: block; width: 9px; height: 9px; border-radius: 50%; }
.legend-row label { color: #82958a; font-size: 11px; }
.legend-row strong { font-size: 13px; }
.detail-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; overflow: hidden; border: 1px solid #1a2921; border-radius: 9px; background: #09100c; }
.detail-metric { min-height: 69px; padding: 12px 14px; border: 0; background: transparent; }
.detail-metric:not(:nth-child(3n + 1)) { border-left: 1px solid #1a2921; }
.detail-metric:nth-child(n + 4) { border-top: 1px solid #1a2921; }
.detail-metric span { display: block; margin-bottom: 7px; color: #6d8176; font-size: 9px; }
.detail-metric strong { display: block; overflow: hidden; font-size: 17px; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dashboard-lower-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(300px, .7fr); gap: 12px; align-items: stretch; }
.dashboard-lower-grid .panel { margin-bottom: 18px; }
.daily-panel { padding: 16px 18px; }
.daily-panel .panel-head { margin-bottom: 8px; }
.daily-panel th, .daily-panel td { padding: 9px 10px; }
.daily-panel td { font-size: 11px; }
.daily-panel td:first-child { font-weight: 750; }
.dashboard-lower-grid .health-panel { display: flex; min-height: 0; flex-direction: column; }
.dashboard-lower-grid .health-panel .panel-head { padding: 16px 18px; }
.dashboard-lower-grid .health-grid { grid-template-columns: 1fr; flex: 1; }
.dashboard-lower-grid .health-item { align-items: center; padding: 18px; }
.dashboard-lower-grid .health-item + .health-item { border-top: 1px solid var(--line); border-left: 0; }
.rate-override { display: grid; gap: 9px; padding: 13px 16px; border-top: 1px solid var(--line); background: #09100c; }
.rate-override > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rate-override strong { font-size: 10px; }
.rate-override span { color: #71857a; font-size: 9px; }
.rate-override form { display: grid; grid-template-columns: 62px minmax(80px, 1fr) 70px auto auto; gap: 6px; }
.rate-override .input, .rate-override .btn { min-height: 32px; padding: 0 8px; font-size: 9px; }

.reconciliation-filter-panel { padding: 16px 18px; margin-bottom: 12px; }
.reconciliation-filter-panel .panel-head { margin-bottom: 12px; }
.reconciliation-filter-panel .input { min-height: 40px; }
.reconciliation-brand-panel, .reconciliation-movements-panel { padding: 16px 18px; }
.reconciliation-brand-panel .panel-head, .reconciliation-movements-panel .panel-head { margin-bottom: 8px; }
.reconciliation-brand-panel th, .reconciliation-brand-panel td,
.reconciliation-movements-panel th, .reconciliation-movements-panel td { padding: 10px 11px; }
.asset-summary-panel { margin: 12px 0; padding: 15px 18px; }
.asset-summary-panel .panel-head { margin-bottom: 10px; }
.asset-select { width: 190px; min-height: 36px; }
.asset-summary-cards { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.asset-total-card { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px 11px; border: 1px solid var(--line); border-radius: 9px; background: #09110d; }
.asset-total-card img { width: 30px; height: 30px; flex: none; }
.asset-total-card div { display: grid; min-width: 0; gap: 3px; }
.asset-total-card span { overflow: hidden; color: #708379; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.asset-total-card strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.asset-total-card small { color: var(--muted); font-size: 8px; }
.wallet-list-group { grid-column: 1 / -1; }
.wallet-input-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.wallet-input-row { display: grid; grid-template-columns: 32px 90px minmax(0, 1fr); gap: 9px; align-items: center; padding: 8px 9px; border: 1px solid #1a2921; border-radius: 9px; background: #080f0b; }
.wallet-input-row img { width: 30px; height: 30px; }
.wallet-input-row > span { display: grid; gap: 2px; }
.wallet-input-row strong { font-size: 10px; }
.wallet-input-row small { color: var(--muted); font-size: 8px; }
.wallet-input-row .input { min-height: 36px; font-size: 10px; }
.wallet-input-row.xrp-wallet-row { grid-template-columns: 32px 90px minmax(0, 1fr) 120px; }
.wallet-input-row .tag-input { min-width: 0; }
.full-grid { grid-column: 1 / -1; }
.wallet-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.wallet-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 6px; border: 1px solid var(--line); border-radius: 20px; color: #b8c8bf; font-size: 8px; }
.wallet-chip img { width: 14px; height: 14px; }
.coin-badge { display: inline-flex; align-items: center; gap: 7px; }
.coin-badge img { width: 24px; height: 24px; }
.coin-badge span { display: grid; gap: 1px; }
.coin-badge strong { font-size: 10px; }
.coin-badge small { color: var(--muted); font-size: 7px; }
.coin-payment-cell { display: grid; gap: 5px; }
.mini-assets { display: flex; flex-wrap: wrap; gap: 5px; }
.mini-asset { display: inline-flex; align-items: center; gap: 4px; padding: 3px 6px; border: 1px solid var(--line); border-radius: 20px; font-size: 8px; }
.mini-asset img { width: 14px; height: 14px; }
.wallet-settings-list { display: grid; gap: 8px; }
.wallet-setting { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 9px; }
.wallet-setting img { width: 32px; height: 32px; }
.wallet-setting div { display: grid; gap: 3px; }
.wallet-setting code { overflow: hidden; color: #9db2a6; font-size: 9px; text-overflow: ellipsis; }

.merchant-create-panel { padding: 0; overflow: hidden; }
.merchant-create-head { display: grid; grid-template-columns: auto 1fr auto; gap: 15px; align-items: center; padding: 22px 24px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, rgba(30,223,132,.065), transparent 55%); }
.section-number { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #28503a; border-radius: 11px; color: var(--green); background: #0b1811; font-size: 11px; font-weight: 850; }
.merchant-create-head h2 { margin: 3px 0 5px; font-size: 18px; }
.merchant-create-head p { margin: 0; color: #71857a; font-size: 12px; }
.secure-pill { padding: 7px 10px; border: 1px solid #21432f; border-radius: 999px; color: #7fcba3; background: rgba(30,223,132,.055); font-size: 9px; font-weight: 750; text-transform: uppercase; letter-spacing: .7px; }
.merchant-create-form { padding: 20px 24px 24px; }
.merchant-form-section { padding: 18px 18px 3px; border: 1px solid #1a2921; border-radius: 11px; background: #09100c; }
.merchant-form-section + .merchant-form-section { margin-top: 12px; }
.form-section-title { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.form-section-title > span { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 7px; color: #06100c; background: var(--green); font-size: 10px; font-weight: 900; }
.form-section-title div { display: grid; gap: 2px; }
.form-section-title strong { font-size: 12px; }
.form-section-title small { color: #687b70; font-size: 9px; }
.field-help { min-height: 15px; margin: 6px 0 0; color: #63766b; font-size: 9px; line-height: 1.45; }
.mono-input { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.suffix-input { position: relative; }
.suffix-input .input { padding-right: 54px; }
.suffix-input span { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); color: #66796e; font-size: 9px; font-weight: 800; }
.merchant-form-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 18px; }
.merchant-form-footer > div { display: grid; gap: 4px; }
.merchant-form-footer strong { font-size: 11px; }
.merchant-form-footer > div span { color: #697c71; font-size: 9px; }
.merchant-form-footer .btn span { margin-left: 7px; }
.cell-stack { display: grid; gap: 4px; min-width: 0; }
.cell-stack strong { font-size: 12px; }
.cell-stack span, .cell-stack small { max-width: 230px; overflow: hidden; color: #6e8277; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.wallet-balance { color: var(--green) !important; font-size: 12px !important; font-weight: 800; }
.wallet-balance.unavailable { color: #73867b !important; }
.payment-summary { display: flex; gap: 7px; }
.payment-summary span { padding: 4px 7px; border: 1px solid #203128; border-radius: 6px; color: #83968b; background: #0a110d; font-size: 9px; }
.payment-summary .ok { color: var(--green); border-color: #214831; }
.payment-summary .bad { color: #ff9ca4; border-color: #4b252b; }
.log-detail { display: block; max-width: 360px; overflow: hidden; color: #8aa395; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 55px; gap: 42px; }
  .features { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .grid-2, .grid-3, .grid-wallet, .filter-grid { grid-template-columns: 1fr 1fr; }
  .overview-grid { grid-template-columns: 1fr; }
  .dashboard-lower-grid { grid-template-columns: 1fr; }
  .overview-stats .stat:nth-child(odd), .reconciliation-stats .stat:nth-child(odd) { border-left: 0; }
  .overview-stats .stat:nth-child(n + 3), .reconciliation-stats .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .dash-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; padding: 15px 18px; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar-brand { padding: 0 0 14px; }
  .side-nav { display: flex; gap: 7px; overflow-x: auto; margin-top: 15px; padding-bottom: 4px; scrollbar-width: thin; }
  .side-nav button { flex: 0 0 auto; white-space: nowrap; }
  .nav-label { display: none; }
  .sidebar-bottom { position: static; margin-top: 12px; }
  .dash-main { padding: 25px 20px 60px; }
  .health-grid { grid-template-columns: 1fr; }
  .health-item + .health-item { border-left: 0; border-top: 1px solid var(--line); }
  .asset-summary-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wallet-input-list { grid-template-columns: 1fr; }
}

@media (max-width: 1320px) and (min-width: 901px) {
  .overview-grid { grid-template-columns: 1fr; }
  .dashboard-lower-grid { grid-template-columns: 1fr; }
  .chart-panel { width: 100%; }
  .reconciliation-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .reconciliation-stats .stat:nth-child(4) { border-left: 0; }
  .reconciliation-stats .stat:nth-child(n + 4) { border-top: 1px solid var(--line); }
}

@media (max-width: 600px) {
  .container { width: min(100% - 28px, 1160px); }
  .nav-links a:not(.btn) { display: none; }
  h1 { letter-spacing: -2.5px; }
  .grid-2, .grid-3, .grid-wallet, .filter-grid, .stats, .detail-metrics { grid-template-columns: 1fr; }
  .overview-stats .stat + .stat, .reconciliation-stats .stat + .stat { border-top: 1px solid var(--line); border-left: 0; }
  .detail-metric:not(:first-child) { border-top: 1px solid #1a2921; border-left: 0; }
  .donut-layout, .merchant-form-footer { align-items: stretch; flex-direction: column; }
  .merchant-create-head { grid-template-columns: auto 1fr; }
  .secure-pill { display: none; }
  .dash-top { align-items: flex-start; }
  .top-date { display: none; }
  .dash-top .btn { padding: 0 10px; }
  .login-card { padding: 25px 21px; }
  .payment-card { padding: 20px; }
  .asset-summary-cards { grid-template-columns: 1fr 1fr; }
  .asset-summary-panel .panel-head { align-items: stretch; flex-direction: column; }
  .asset-select { width: 100%; }
  .wallet-input-row, .wallet-input-row.xrp-wallet-row { grid-template-columns: 28px 72px minmax(0, 1fr); }
  .wallet-input-row.xrp-wallet-row .tag-input { grid-column: 3; }
  .rate-override form { grid-template-columns: 1fr 1fr; }
  .rate-override form .btn { width: 100%; }
  .footer-row { flex-direction: column; }
}
