:root {
  color-scheme: light;
  --ink: #17212f;
  --muted: #637083;
  --line: #dce3eb;
  --surface: #ffffff;
  --page: #f4f7fb;
  --brand: #185adb;
  --brand-dark: #1046b4;
  --positive: #13794b;
  --warning: #986200;
  --danger: #b42318;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--ink); line-height: 1.5; }
a { color: var(--brand); }
button, input { font: inherit; }
button, .btn { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #9cbcff; outline-offset: 2px; }
.site-nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px clamp(18px, 5vw, 72px); background: #fff; border-bottom: 1px solid var(--line); }
.brand { text-decoration: none; color: var(--ink); font-weight: 800; letter-spacing: -.03em; font-size: 1.16rem; }
.nav-right { display: flex; align-items: center; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border: 1px solid transparent; border-radius: 10px; padding: 10px 16px; text-decoration: none; font-weight: 700; transition: background .15s ease, transform .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-outline { background: white; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { background: #f5f7fa; }
.btn-invest, .btn-primary { background: var(--brand); color: white; }
.btn-invest:hover, .btn-primary:hover { background: var(--brand-dark); }
.btn-secondary { background: #edf2fa; color: var(--ink); }
.btn:disabled { cursor: not-allowed; opacity: .62; transform: none; }
.hero { max-width: 1120px; margin: 0 auto; padding: clamp(54px, 9vw, 110px) 24px 70px; }
.eyebrow { color: var(--brand); letter-spacing: .1em; text-transform: uppercase; font-size: .78rem; font-weight: 800; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); letter-spacing: -.055em; line-height: 1.03; max-width: 800px; margin: 12px 0 22px; }
.hero p { color: var(--muted); max-width: 650px; font-size: 1.1rem; }
.section { max-width: 1120px; margin: 0 auto; padding: 28px 24px 70px; }
.surface, .stat-card, .panel { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 12px 34px rgba(18, 40, 72, .045); }
.surface { padding: clamp(22px, 4vw, 38px); }
.section-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 22px; align-items: stretch; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.form-stack { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-weight: 700; font-size: .92rem; }
.field input { width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; color: var(--ink); }
.form-help { margin: 0; color: var(--muted); font-size: .85rem; }
.notice { display: none; border-radius: 10px; padding: 12px 14px; font-size: .92rem; }
.notice.visible { display: block; }
.notice.error { background: #fff1f0; color: var(--danger); border: 1px solid #ffd2ce; }
.notice.success { background: #effaf4; color: var(--positive); border: 1px solid #ccebd8; }
.notice.info { background: #eef5ff; color: #174ba8; border: 1px solid #cfe0ff; }
.page-header { max-width: 1120px; margin: 0 auto; padding: 42px 24px 18px; }
.page-header h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 4px 0 8px; }
.page-wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px 64px; }
.dashboard-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 20px 0; }
.stat-card { padding: 20px; }
.stat-label { color: var(--muted); font-weight: 700; font-size: .88rem; }
.stat-value { margin-top: 8px; font-size: clamp(1.5rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -.04em; overflow-wrap: anywhere; }
.panel { padding: clamp(18px, 3vw, 28px); margin-top: 18px; }
.panel-head { display: flex; justify-content: space-between; align-items: start; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.panel-head h2 { margin-bottom: 4px; font-size: 1.2rem; }
.chart-wrap { width: 100%; min-height: 250px; }
#investmentChart { display: block; width: 100%; height: 280px; }
.chart-legend { color: var(--muted); font-size: .85rem; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .93rem; }
th, td { padding: 13px 12px; border-bottom: 1px solid #e7ecf2; white-space: nowrap; }
th { color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
tbody tr:last-child td { border-bottom: 0; }
.status { display: inline-flex; border-radius: 999px; padding: 4px 9px; font-size: .78rem; font-weight: 800; text-transform: capitalize; background: #eef2f6; color: #475569; }
.status.paid { color: #11663e; background: #e5f8ed; }
.status.pending { color: #805400; background: #fff5d9; }
.status.failed { color: #9f1d15; background: #fff0ef; }
.empty-state { color: var(--muted); padding: 26px 0; text-align: center; }
.footer { padding: 25px 20px; text-align: center; color: var(--muted); font-size: .86rem; }

/* Authentication dialog added by auth.js to your existing homepage. */
.auth-dialog { width: min(460px, calc(100% - 28px)); max-width: 460px; border: 1px solid var(--line); border-radius: 18px; padding: 0; color: var(--ink); box-shadow: 0 28px 90px rgba(9, 24, 44, .25); }
.auth-dialog::backdrop { background: rgba(14, 25, 42, .58); backdrop-filter: blur(3px); }
.auth-dialog-inner { padding: 26px; }
.auth-dialog-head { display: flex; align-items: start; justify-content: space-between; gap: 14px; }
.auth-dialog-head h2 { margin: 0 0 6px; font-size: 1.45rem; }
.auth-close { width: 36px; height: 36px; border: 0; border-radius: 9px; background: #f0f3f8; color: var(--ink); font-size: 1.2rem; }
.auth-switch { background: transparent; border: 0; color: var(--brand); text-decoration: underline; padding: 0; font-weight: 700; }

@media (max-width: 760px) {
  .site-nav { padding: 14px 16px; }
  .nav-right { gap: 7px; }
  .btn { min-height: 42px; padding: 9px 12px; font-size: .9rem; }
  .section-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-card { padding: 17px; }
  .page-header { padding-top: 32px; }
  #investmentChart { height: 240px; }
}

/* Crypto payment experience: wallet picker, QR payment panel, and responsive layout. */
.crypto-page { background: #f5f7fb; }
.crypto-header { padding-top: 44px; padding-bottom: 24px; }
.crypto-header h1 { max-width: 850px; margin-top: 12px; }
.crypto-header > p { max-width: 720px; }
.eyebrow-dot { display: inline-block; width: 7px; height: 7px; margin: 0 7px 1px 0; border-radius: 50%; background: #18a66a; }
.crypto-only-note { display: inline-flex; align-items: center; gap: 9px; padding: 8px 12px; border: 1px solid #cdebd9; border-radius: 999px; background: #effaf4; color: #11663e; font-size: .88rem; font-weight: 800; }
.crypto-only-note span { font-size: 1.1rem; }
.crypto-wrap { max-width: 1240px; }
.crypto-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 22px; align-items: start; }
.crypto-main-card, .crypto-sidebar { padding: clamp(20px, 3.1vw, 34px); }
.crypto-main-card { min-width: 0; }
.section-title-row, .wallet-section-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.section-title-row h2, .wallet-section-head h2, .crypto-sidebar h2 { margin: 4px 0 0; font-size: clamp(1.2rem, 2vw, 1.55rem); letter-spacing: -.025em; }
.secure-mark { flex-shrink: 0; display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border-radius: 999px; background: #effaf4; color: #11663e; font-weight: 800; font-size: .78rem; }
.secure-mark span { display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: #178652; color: white; font-size: .7rem; }
.crypto-main-card > .notice { margin-top: 18px; }
.credential-grid { margin-top: 16px; }
.investment-amount-field { margin-top: 3px; }
.label-suffix { margin-left: 5px; color: var(--muted); font-size: .8rem; font-weight: 800; }
.amount-input-wrap { position: relative; }
.amount-input-wrap > span { position: absolute; top: 50%; left: 14px; transform: translateY(-50%); color: #617084; font-weight: 800; }
.amount-input-wrap input { padding-left: 49px; font-size: 1.17rem; font-weight: 800; letter-spacing: -.02em; }
.wallet-section { padding-top: 24px; margin-top: 4px; border-top: 1px solid var(--line); }
.wallet-section-head { align-items: end; }
.wallet-count { color: var(--muted); font-size: .8rem; font-weight: 800; white-space: nowrap; }
.wallet-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.wallet-option { width: 100%; min-width: 0; min-height: 74px; display: flex; align-items: center; gap: 11px; position: relative; padding: 12px; border: 1px solid #dce3eb; border-radius: 13px; background: #fff; text-align: left; color: var(--ink); transition: border-color .15s ease, background .15s ease, box-shadow .15s ease; }
.wallet-option:hover { border-color: #a9bce0; background: #fbfcff; }
.wallet-option.selected { border-color: #185adb; background: #f3f7ff; box-shadow: 0 0 0 2px rgba(24, 90, 219, .08); }
.coin-icon { flex: 0 0 37px; height: 37px; display: grid; place-items: center; overflow: hidden; border-radius: 50%; background: #eef2f8; color: #30445f; font-size: .65rem; font-weight: 900; letter-spacing: -.03em; }
.coin-btc { background: #fff0dc; color: #b66b00; }
.coin-eth { background: #edf0f6; color: #53627e; }
.coin-ltc { background: #eef1f3; color: #506176; }
.coin-doge { background: #fff7d9; color: #92720a; }
.coin-bch { background: #e6f7e9; color: #21824a; }
.coin-sol, .coin-usdtsol { background: #eee7ff; color: #7350b7; }
.coin-ada { background: #e7efff; color: #2863c7; }
.coin-trx, .coin-usdttrc20 { background: #ffebed; color: #bf3142; }
.coin-usdterc20, .coin-usdtbsc, .coin-usdtmatic, .coin-usdc, .coin-usdcmatic { background: #e6f7f4; color: #147b70; }
.coin-dash { background: #e6efff; color: #2863c7; }
.wallet-option-copy { min-width: 0; display: grid; gap: 3px; }
.wallet-option-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .88rem; }
.wallet-option-copy small { overflow: hidden; color: var(--muted); font-size: .73rem; line-height: 1.25; text-overflow: ellipsis; }
.wallet-radio-indicator { width: 16px; height: 16px; flex: 0 0 16px; margin-left: auto; border: 1.5px solid #c2cbd8; border-radius: 50%; }
.wallet-option.selected .wallet-radio-indicator { border: 5px solid var(--brand); }
.wallet-loading { grid-column: 1 / -1; margin: 0; padding: 18px; border: 1px dashed #cbd5e1; border-radius: 12px; color: var(--muted); text-align: center; font-size: .9rem; }
.crypto-submit { width: 100%; justify-content: space-between; min-height: 52px; margin-top: 22px; padding: 13px 18px; }
.terms-note { margin: 12px 0 0; color: var(--muted); font-size: .79rem; }
.crypto-sidebar { position: sticky; top: 20px; }
.sidebar-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px; border-radius: 14px; background: #eaf0ff; color: var(--brand); font-size: 1.9rem; line-height: 1; }
.crypto-sidebar h2 { margin: 5px 0 22px; line-height: 1.25; }
.crypto-steps { list-style: none; display: grid; gap: 22px; padding: 0; margin: 0; }
.crypto-steps li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; }
.crypto-steps li > span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #f0f4fb; color: #345277; font-size: .78rem; font-weight: 900; }
.crypto-steps strong { display: block; margin: 2px 0 4px; font-size: .92rem; }
.crypto-steps p, .account-link-note p, .crypto-support-note p { margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.55; }
.account-link-note { display: grid; grid-template-columns: 26px 1fr; gap: 11px; margin-top: 28px; padding: 16px; border-radius: 13px; background: #f0faf4; border: 1px solid #d2eddd; }
.account-link-icon { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #1b8a52; color: #fff; font-size: .78rem; font-weight: 900; }
.account-link-note strong { display: block; margin: 2px 0 5px; font-size: .87rem; }
.crypto-support-note { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.crypto-support-note strong { display: block; margin-bottom: 5px; font-size: .86rem; }
.payment-instructions { margin-top: 28px; padding-top: 25px; border-top: 1px solid var(--line); }
.payment-title-row { margin-bottom: 10px; }
.payment-status-badge { display: inline-flex; flex-shrink: 0; max-width: 45%; padding: 7px 10px; border-radius: 999px; background: #fff5d9; color: #805400; font-size: .75rem; font-weight: 900; }
.payment-status-badge.status-finished { background: #e5f8ed; color: #11663e; }
.payment-status-badge.status-failed, .payment-status-badge.status-expired, .payment-status-badge.status-refunded { background: #fff0ef; color: #9f1d15; }
.payment-status-badge.status-confirming, .payment-status-badge.status-confirmed, .payment-status-badge.status-sending { background: #eaf1ff; color: #174ba8; }
.qr-payment-panel { display: grid; grid-template-columns: minmax(180px, 250px) minmax(0, 1fr); gap: 23px; align-items: start; margin-top: 18px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: #fbfcfe; }
.qr-frame { display: grid; place-items: center; padding: 10px; border-radius: 13px; background: #fff; border: 1px solid #e2e8f0; }
.qr-frame img { display: block; width: 100%; max-width: 230px; height: auto; aspect-ratio: 1; image-rendering: pixelated; }
.qr-payment-details { min-width: 0; }
.qr-label { margin: 0 0 6px; color: var(--muted); font-size: .75rem; font-weight: 900; text-transform: uppercase; letter-spacing: .055em; }
.crypto-amount-line { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.crypto-amount-line strong { min-width: 0; color: #14233a; font-size: clamp(1.1rem, 2vw, 1.5rem); letter-spacing: -.035em; overflow-wrap: anywhere; }
.icon-copy { width: 32px; height: 32px; flex: 0 0 32px; border: 1px solid #dce3eb; border-radius: 8px; background: #fff; color: #344760; }
.address-label { margin-top: 22px; }
.address-box { display: grid; gap: 9px; }
.address-box code { display: block; overflow-wrap: anywhere; padding: 11px; border: 1px solid #dce3eb; border-radius: 9px; background: white; color: #344760; font-size: .78rem; line-height: 1.5; }
.copy-address-btn { width: 100%; }
.network-warning { margin: 15px 0 0; padding: 10px 12px; border-radius: 9px; background: #fff8e7; color: #754e06; font-size: .8rem; overflow-wrap: anywhere; }
.payment-status-text { margin-top: 16px; padding: 13px 14px; border-radius: 11px; background: #eef5ff; border: 1px solid #d4e3ff; color: #174ba8; font-size: .88rem; }
.payment-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 15px 0 12px; }
.payment-actions > * { flex: 1 1 180px; }
.demo-complete-wrap { margin-top: 20px; }
.demo-complete-wrap .btn { width: 100%; margin-top: 12px; }
.crypto-footer { max-width: 1240px; margin: 0 auto; }

@media (max-width: 940px) {
  .crypto-layout { grid-template-columns: minmax(0, 1fr); }
  .crypto-sidebar { position: static; }
  .crypto-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .crypto-steps li { grid-template-columns: 32px 1fr; gap: 9px; }
  .account-link-note { margin-top: 22px; }
}
@media (max-width: 640px) {
  .crypto-header { padding-top: 32px; }
  .crypto-header h1 { font-size: clamp(2.2rem, 11vw, 3rem); }
  .crypto-layout { gap: 14px; }
  .wallet-grid { grid-template-columns: minmax(0, 1fr); }
  .wallet-option { min-height: 68px; }
  .qr-payment-panel { grid-template-columns: minmax(0, 1fr); }
  .qr-frame img { max-width: 235px; }
  .crypto-steps { grid-template-columns: minmax(0, 1fr); }
  .section-title-row { align-items: start; }
  .secure-mark { font-size: .72rem; }
  .payment-status-badge { max-width: 48%; white-space: normal; }
}

/* Consistent dark navy / green skin and responsive admin dashboard additions. */
:root {
  color-scheme: dark;
  --ink: #e2e8f0;
  --muted: #94a3b8;
  --line: #26344b;
  --surface: #111827;
  --page: #0a0e17;
  --brand: #22c55e;
  --brand-dark: #16a34a;
  --positive: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
}
body { background: var(--page); color: var(--ink); }
.site-nav { background: rgba(10, 14, 23, .96); border-bottom-color: var(--line); }
.brand { color: var(--ink); }
.btn-primary, .btn-invest { color: #04160b; box-shadow: 0 4px 18px rgba(34, 197, 94, .2); }
.btn-primary:hover, .btn-invest:hover { background: #16a34a; }
.btn-outline { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { background: #172235; border-color: var(--brand); }
.btn-secondary { background: #1a2235; color: var(--ink); border-color: var(--line); }
.hero { border-bottom: 1px solid rgba(148, 163, 184, .08); }
.eyebrow { color: var(--brand); }
.hero p, .muted, .form-help, .chart-legend { color: var(--muted); }
.surface, .stat-card, .panel { background: var(--surface); border-color: var(--line); box-shadow: 0 16px 44px rgba(0, 0, 0, .16); }
.field input { background: #0b1220; border-color: #344258; color: var(--ink); }
.field input::placeholder { color: #718096; }
.notice.error { background: rgba(239, 68, 68, .12); color: #fecaca; border-color: rgba(239, 68, 68, .35); }
.notice.success { background: rgba(34, 197, 94, .12); color: #bbf7d0; border-color: rgba(34, 197, 94, .3); }
.notice.info { background: rgba(59, 130, 246, .12); color: #bfdbfe; border-color: rgba(59, 130, 246, .3); }
th, td { border-bottom-color: #26344b; }
th { color: #94a3b8; }
.status { background: #263247; color: #cbd5e1; }
.status.paid { color: #bbf7d0; background: rgba(34, 197, 94, .14); }
.status.pending { color: #fde68a; background: rgba(245, 158, 11, .14); }
.status.failed, .status.locked { color: #fecaca; background: rgba(239, 68, 68, .14); }
.empty-state { color: var(--muted); }
.auth-dialog { background: #111827; border-color: #344258; color: var(--ink); }
.auth-close { background: #1a2235; color: var(--ink); }
.auth-switch { color: #4ade80; }
.wallet-option { background: #0b1220; border-color: #26344b; color: var(--ink); }
.wallet-option:hover { background: #121e30; border-color: #43617f; }
.wallet-option.selected { background: rgba(34, 197, 94, .09); border-color: var(--brand); box-shadow: 0 0 0 2px rgba(34, 197, 94, .08); }
.wallet-option-copy small { color: var(--muted); }
.wallet-loading { border-color: #344258; }
.wallet-section { border-top-color: var(--line); }
.crypto-only-note, .secure-mark { background: rgba(34, 197, 94, .12); color: #bbf7d0; border-color: rgba(34, 197, 94, .3); }
.sidebar-icon { background: #172a24; color: #4ade80; }
.crypto-steps li > span { background: #1a2235; color: #cbd5e1; }
.account-link-note { background: rgba(34, 197, 94, .08); border-color: rgba(34, 197, 94, .22); }
.crypto-support-note, .payment-instructions { border-top-color: var(--line); }
.qr-payment-panel { background: #0b1220; border-color: var(--line); }
.qr-frame { background: #fff; border-color: #344258; }
.crypto-amount-line strong { color: #e2e8f0; }
.address-box code { background: #070d17; color: #dbeafe; border-color: #344258; }
.icon-copy { background: #111827; color: var(--ink); border-color: #344258; }
.network-warning { background: rgba(245, 158, 11, .12); color: #fde68a; }
.payment-status-text { background: rgba(59, 130, 246, .12); color: #bfdbfe; border-color: rgba(59, 130, 246, .28); }
.payment-status-badge.status-finished { background: rgba(34, 197, 94, .14); color: #bbf7d0; }
.payment-status-badge.status-failed, .payment-status-badge.status-expired, .payment-status-badge.status-refunded { background: rgba(239, 68, 68, .14); color: #fecaca; }
.crypto-footer { color: var(--muted); }
.admin-brand-tag { display: inline-flex; vertical-align: middle; margin-left: 8px; padding: 3px 7px; border-radius: 999px; color: #04160b; background: var(--brand); font-size: .65rem; letter-spacing: .08em; }
.admin-wrap { max-width: 1440px; }
.admin-header { max-width: 1440px; }
.admin-header .dashboard-top { align-items: end; }
.admin-header h1 { max-width: 100%; }
.admin-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.admin-filter-label { display: grid; gap: 6px; min-width: min(100%, 230px); color: var(--muted); font-size: .8rem; font-weight: 700; }
.admin-filter-label input { min-height: 40px; width: 100%; padding: 8px 11px; border: 1px solid #344258; border-radius: 9px; background: #0b1220; color: var(--ink); }
.admin-filter-label input::placeholder { color: #718096; }
.amount-cell { color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 700; }
.admin-action { min-height: 36px; padding: 7px 11px; font-size: .8rem; white-space: nowrap; }
.btn-danger { background: rgba(239, 68, 68, .13); color: #fecaca; border-color: rgba(239, 68, 68, .4); }
.btn-danger:hover { background: rgba(239, 68, 68, .22); }
.unlock-action { color: #bbf7d0; border-color: rgba(34, 197, 94, .35); }
.admin-footnote { margin: 14px 0 0; }
.admin-page .panel { overflow: hidden; }
.admin-page .table-wrap { max-width: 100%; }
.admin-page table { min-width: 800px; }
.admin-page .footer { border-top: 1px solid var(--line); }

@media (max-width: 1000px) {
  .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .site-nav { flex-wrap: wrap; }
  .brand { font-size: 1rem; }
  .admin-header { padding-top: 28px; }
  .admin-stats { grid-template-columns: 1fr; }
  .panel-head { align-items: stretch; }
  .admin-filter-label { min-width: 100%; }
  .nav-right { flex-wrap: wrap; }
  .btn { min-height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}


/* Compact cryptocurrency selector with visible coin icons */
.crypto-page .wallet-grid {
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 8px;
}

.crypto-page .wallet-option {
  min-width: 0;
  min-height: 58px;
  padding: 8px 10px;
  gap: 9px;
  border-radius: 12px;
}

.crypto-page .coin-icon {
  width: 30px;
  height: 30px;
  min-width: 30px;
  flex: 0 0 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 50%;
}

.crypto-page .coin-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.crypto-page .wallet-option-copy {
  min-width: 0;
  gap: 3px;
}

.crypto-page .wallet-option-copy strong {
  font-size: 0.88rem;
  line-height: 1.2;
}

.crypto-page .wallet-option-copy small {
  font-size: 0.72rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

@media (max-width: 380px) {
  .crypto-page .wallet-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .crypto-page .wallet-option {
    padding: 7px;
    gap: 6px;
  }

  .crypto-page .coin-icon {
    width: 26px;
    height: 26px;
    min-width: 26px;
    flex-basis: 26px;
  }
}

/* Cardano ADA icon contrast background */

/* Cardano ADA icon contrast background */
.crypto-page .coin-icon.coin-ada {
  background-color: #dbeafe !important;
  border: 1px solid #60a5fa;
  box-shadow: inset 0 0 0 2px #eff6ff;
}
.crypto-page .coin-icon.coin-ada img {
  background-color: #dbeafe;
  border-radius: 50%;
}


/* AXIOM_INVITE_BUTTON_V1 */
.btn-invite {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #eef6ff;
  background: linear-gradient(115deg, #123d75, #1769c2, #123d75);
  background-size: 220% 100%;
  border: 1px solid rgba(117, 184, 255, 0.65);
  box-shadow: 0 0 14px rgba(32, 116, 220, 0.22);
  animation: axiomInviteGlow 2.8s ease-in-out infinite,
             axiomInviteShimmer 5s linear infinite;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.btn-invite:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 22px rgba(52, 145, 255, 0.4);
}

.btn-invite:focus-visible {
  outline: 2px solid #9bcaff;
  outline-offset: 3px;
}

@keyframes axiomInviteGlow {
  0%, 100% { box-shadow: 0 0 10px rgba(32, 116, 220, 0.2); }
  50% { box-shadow: 0 0 19px rgba(32, 116, 220, 0.42); }
}

@keyframes axiomInviteShimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -120% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .btn-invite { animation: none; }
}


/* AXIOM_INVITE_BUTTON_V5 */
.nav-right #inviteButton {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
  margin: 0 14px 0 0;
  padding: 8px 5px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #9bd5ff;
  font-weight: 800;
  letter-spacing: .05em;
  cursor: pointer;
  animation: axInviteGlow 2s ease-in-out infinite;
  transition: color .2s ease, text-shadow .2s ease;
}
.nav-right #inviteButton::after {
  content: " ↗";
  color: #35aaff;
}
.nav-right #inviteButton::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #35aaff, #fff, #35aaff, transparent);
  background-size: 200% 100%;
  animation: axInviteSweep 1.5s linear infinite;
}
.nav-right #inviteButton:hover {
  color: #fff;
  text-shadow: 0 0 12px #249cff;
}
@keyframes axInviteGlow {
  0%, 100% { text-shadow: 0 0 3px #168cff; }
  50% { text-shadow: 0 0 13px #168cff; }
}
@keyframes axInviteSweep {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-right #inviteButton,
  .nav-right #inviteButton::before {
    animation: none;
  }
}


/* AXIOM_INVITE_NEON_V6 */
.nav-right #inviteButton {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow: hidden;
  margin: 0 14px 0 0;
  padding: 10px 17px;
  border: 1px solid rgba(65, 174, 255, .85);
  border-radius: 10px;
  background: linear-gradient(135deg, #102d50, #071426 65%, #123a63);
  color: #eaf7ff;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(62, 174, 255, .5);
  box-shadow: 0 0 0 1px rgba(28, 137, 255, .12),
              0 0 16px rgba(0, 132, 255, .2),
              inset 0 0 14px rgba(38, 139, 255, .1);
  cursor: pointer;
  animation: axInviteNeonPulse 2.4s ease-in-out infinite;
  transition: transform .2s ease, border-color .2s ease,
             box-shadow .2s ease, background .2s ease;
}
.nav-right #inviteButton::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -30%;
  bottom: -30%;
  left: -75%;
  width: 45%;
  transform: skewX(-22deg);
  background: linear-gradient(90deg, transparent,
              rgba(255,255,255,.05), rgba(115,210,255,.55), transparent);
  animation: axInviteLightSweep 3s ease-in-out infinite;
}
.nav-right #inviteButton::after {
  content: "↗";
  color: #61c4ff;
  font-size: 15px;
  transition: transform .2s ease;
}
.nav-right #inviteButton:hover {
  transform: translateY(-2px);
  border-color: #a2e2ff;
  background: linear-gradient(135deg, #164574, #0a1d35 65%, #15538a);
  box-shadow: 0 0 8px rgba(47, 165, 255, .45),
              0 0 28px rgba(0, 132, 255, .35),
              inset 0 0 18px rgba(69, 175, 255, .15);
}
.nav-right #inviteButton:hover::after {
  transform: translate(3px, -2px);
}
@keyframes axInviteNeonPulse {
  0%, 100% {
    box-shadow: 0 0 0 1px rgba(28,137,255,.12),
                0 0 12px rgba(0,132,255,.18),
                inset 0 0 12px rgba(38,139,255,.08);
  }
  50% {
    box-shadow: 0 0 0 1px rgba(80,190,255,.3),
                0 0 23px rgba(0,132,255,.4),
                inset 0 0 17px rgba(38,139,255,.16);
  }
}
@keyframes axInviteLightSweep {
  0%, 15% { left: -75%; }
  65%, 100% { left: 140%; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-right #inviteButton,
  .nav-right #inviteButton::before {
    animation: none;
  }
}

/* ===== Payment page: dark theme + countdown timer ===== */
body.crypto-page { color-scheme: dark; --page:#0a0e17; --surface:#111827; --ink:#e5e7eb; --muted:#94a3b8; --line:#1f2a3d; --brand:#22c55e; --brand-dark:#16a34a; background:#0a0e17; }
.crypto-page .site-nav { background:rgba(10,14,23,.95); border-bottom-color:var(--line); }
.crypto-page .surface, .crypto-page .crypto-main-card, .crypto-page .crypto-sidebar { box-shadow:none; }
.crypto-page .btn-primary, .crypto-page .btn-invest, .crypto-page .crypto-submit { color:#04160b; }
.crypto-page .btn-outline { background:transparent; color:var(--ink); border-color:#2a3650; }
.crypto-page .btn-outline:hover { background:#1a2335; }
.crypto-page .btn-secondary { background:#1a2335; color:var(--ink); }
.crypto-page .field input { background:#0d1422; border-color:#2a3650; color:var(--ink); }
.crypto-page .wallet-option { background:#0d1422; border-color:#243049; color:var(--ink); }
.crypto-page .wallet-option:hover { background:#131c2e; border-color:#3a4c70; }
.crypto-page .wallet-option.selected { background:rgba(34,197,94,.10); border-color:#22c55e; box-shadow:0 0 0 2px rgba(34,197,94,.12); }
.crypto-page .wallet-radio-indicator { border-color:#475569; }
.crypto-page .wallet-loading { border-color:#2a3650; }
.crypto-page .coin-icon { background:#1a2335; color:#cbd5e1; }
.crypto-page .sidebar-icon, .crypto-page .crypto-steps li > span { background:#1a2335; color:#cbd5e1; }
.crypto-page .secure-mark, .crypto-page .crypto-only-note, .crypto-page .account-link-note { background:rgba(34,197,94,.10); border-color:rgba(34,197,94,.30); color:#86efac; }
.crypto-page .notice { background:#131c2e; border:1px solid #2a3650; color:var(--ink); }
.crypto-page .notice.info { background:rgba(56,130,246,.12); border-color:rgba(56,130,246,.35); color:#bfdbfe; }
.crypto-page .notice.success { background:rgba(34,197,94,.12); border-color:rgba(34,197,94,.35); color:#bbf7d0; }
.crypto-page .notice.error { background:rgba(239,68,68,.12); border-color:rgba(239,68,68,.35); color:#fecaca; }
.crypto-page .qr-payment-panel, .crypto-page .address-box { background:#0d1422; border-color:#243049; color:var(--ink); }
.crypto-page .qr-frame { background:#fff; }
.crypto-page .network-warning { background:rgba(245,158,11,.10); border-color:rgba(245,158,11,.35); color:#fcd34d; }
.crypto-page .payment-status-badge { background:rgba(245,158,11,.15); color:#fcd34d; }
.crypto-page .payment-status-badge.status-finished { background:rgba(34,197,94,.15); color:#86efac; }
.crypto-page .payment-status-badge.status-failed, .crypto-page .payment-status-badge.status-expired, .crypto-page .payment-status-badge.status-refunded { background:rgba(239,68,68,.15); color:#fecaca; }
.crypto-page .payment-status-badge.status-confirming, .crypto-page .payment-status-badge.status-confirmed, .crypto-page .payment-status-badge.status-sending { background:rgba(56,130,246,.15); color:#bfdbfe; }

.pay-timer { margin-top:18px; padding:22px 16px; text-align:center; border:1px solid rgba(34,197,94,.35); border-radius:16px; background:rgba(34,197,94,.07); }
.pay-timer-label { display:block; color:var(--muted); font-size:.8rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.pay-timer-time { display:block; margin-top:6px; color:#22c55e; font-size:clamp(3.2rem, 10vw, 5rem); font-weight:900; line-height:1.05; font-variant-numeric:tabular-nums; letter-spacing:-.02em; }
.pay-timer.warn { border-color:rgba(245,158,11,.5); background:rgba(245,158,11,.08); }
.pay-timer.warn .pay-timer-time { color:#f59e0b; }
.pay-timer.expired { border-color:rgba(239,68,68,.5); background:rgba(239,68,68,.08); }
.pay-timer.expired .pay-timer-time { color:#ef4444; }
