/* Shared wallet layout. Reuse Turbo Kart Rally typography, colors and arcade controls. */
.garage-dialog {
  box-sizing: border-box;
  --wallet-muted: #ced4f5; --wallet-line: #586193; --wallet-accent: #ffd23f;
  width: min(1020px, calc(100vw - 32px)); max-height: calc(100dvh - 32px);
  padding: 32px 40px; background: #161a3a; color: #ffffff;
  border: 3px solid #ffffff; border-radius: 24px;
  box-shadow: 0 12px 0 #090d24, 0 28px 90px #0009; font-family: var(--body);
}
.garage-dialog *, .garage-dialog *::before, .garage-dialog *::after { box-sizing: border-box; }
.garage-dialog h2, .garage-dialog h3, .garage-dialog h4 { font-family: var(--display); font-weight: 400; letter-spacing: .8px; text-transform: uppercase; }
.garage-dialog h2 { color: var(--gold); font-size: clamp(32px, 4.8vw, 52px); line-height: 1.05; margin: 15px 0; }
.garage-dialog h2 span { color: var(--wallet-accent); }
.garage-dialog h3 { font-size: 26px; line-height: 1.2; margin: 22px 0 12px; }
.garage-dialog h4 { font-size: 20px; }
.garage-dialog p { color: var(--wallet-muted); font-size: 14px; line-height: 1.65; }
.garage-dialog a { color: var(--wallet-accent); text-decoration: none; }
.garage-dialog a:hover { text-decoration: underline; }
.garage-dialog button { color: inherit; font-family: inherit; }
.garage-dialog .btn { font-family: var(--display); font-weight: 400; font-size: 20px; letter-spacing: .8px; text-transform: uppercase; padding: 12px 16px; min-height: 52px; }
.garage-dialog .btn:hover { transform: translateY(-2px); }
.garage-dialog .btn:disabled { opacity: .5; cursor: not-allowed; transform: none; filter: none; }
.garage-dialog :focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }
.wallet-brand { display: flex; align-items: center; gap: 12px; color: white !important; font-size: 15px; font-weight: 900; letter-spacing: 1.6px; }
.brand-mark { position: relative; display: grid; place-items: center; width: 40px; height: 40px; background: linear-gradient(180deg, #ffcf3a, #ff8a1f); color: var(--ink); border: 2px solid white; box-shadow: 0 4px 0 #b24a00; border-radius: 11px; font-size: 28px; font-weight: 900; font-style: italic; }
.brand-mark span { position: absolute; font-size: 13px; top: 2px; right: 2px; }
.brand-caption { display: block; margin-top: 2px; font-size: 8px; letter-spacing: 1.7px; color: #ced4f5; }
.garage-close { width: 36px; height: 36px; flex-basis: 36px; border: 2px solid #7f87ba; background: #2c35a0; font-size: 16px; }
.wallet-heading { display: grid; grid-template-columns: 1.5fr 1fr; gap: 25px; margin: 46px 0 25px; align-items: center; }
.garage-eyebrow { color: var(--cyan); font-size: 11px; font-weight: 900; letter-spacing: 1.8px; }
.garage-intro { margin-bottom: 0; }
.wallet-visual { position: relative; height: 220px; display: grid; place-items: center; overflow: hidden; }
.wallet-visual-card { position: relative; z-index: 1; width: 245px; height: 155px; border: 3px solid white; border-radius: 17px; background: linear-gradient(180deg, #4a5bd8, #2c35a0); padding: 19px; transform: rotate(-8deg); box-shadow: 8px 10px 0 #161b5c, 18px 28px 36px #070d1455; }
.wallet-visual-card > span:first-child { display: flex; justify-content: space-between; color: white; font-size: 9px; font-weight: 900; letter-spacing: 2px; }
.wallet-visual-card i { font-size: 18px; line-height: 1; }
.wallet-visual-card b { display: block; margin: 12px 0; font-family: var(--display); font-weight: 400; color: var(--gold); font-size: 23px; line-height: 1.15; letter-spacing: 1px; }
.visual-base { color: #ffe27a; font-size: 8px; letter-spacing: 1.4px; }
.visual-orbit { position: absolute; width: 275px; height: 180px; border: 2px dashed var(--cyan); border-radius: 50%; transform: rotate(-28deg); }
.wallet-status-row { display: flex; gap: 15px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--wallet-line); padding-bottom: 20px; }
.onramp-mode { margin: 0; border: 1px solid #6b79ba; background: #233664; color: white; font-size: 11px; font-weight: 900; letter-spacing: .8px; border-radius: 6px; padding: 7px 10px; }
.onramp-mode[data-environment="production"] { background: #5d331b; border-color: #ffb857; color: #ffe184; }
.wallet-status-note { font-size: 11px; color: #ced4f5; }
.wallet-steps { display: flex; justify-content: space-between; gap: 12px; padding: 0; margin: 22px 0; list-style: none; color: #ced4f5; font-size: 12px; }
.wallet-steps li { display: flex; align-items: center; gap: 8px; }
.wallet-steps span { font-size: 9px; border: 1px solid #7f87ba; border-radius: 50%; padding: 5px; }
.wallet-steps .active { color: #ffd23f; }
.wallet-steps .active span { border-color: var(--gold); background: #2c35a0; }
.wallet-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 18px; }
.garage-card { margin: 0; padding: 24px; border: 1px solid var(--wallet-line); border-radius: 16px; background: #101430; min-width: 0; }
.wallet-account { background: #101430; }
.card-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 9px; font-weight: 900; letter-spacing: 1.3px; color: #3de0ff; }
.network-chip { display: flex; align-items: center; gap: 6px; font-size: 11px; letter-spacing: 0; }
.network-chip i { width: 8px; height: 8px; border-radius: 50%; background: #487fff; }
.passkey-symbol { width: 60px; height: 60px; display: grid; place-items: center; padding: 12px; color: #ffd23f; background: #233664; border: 2px solid #7f87ba; border-radius: 16px; margin-top: 30px; }
.passkey-symbol svg { width: 35px; height: 35px; }
.wallet-create { margin-top: 15px; width: 100%; display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.text-button { border: 0; background: transparent; padding: 8px 0; font-size: 12px; font-weight: 900; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.text-button:disabled { color: #a6afdc; cursor: not-allowed; }
.wallet-connect { display: block; margin: 8px auto 16px; }
.wallet-alternative { border-top: 1px solid var(--wallet-line); padding-top: 17px; margin-top: 16px; }
.wallet-alternative > span { display: block; color: var(--wallet-muted); font-size: 12px; }
.wallet-provider-note { font-size: 12px !important; line-height: 1.6 !important; }
.powered-label { font-size: 11px; letter-spacing: 0; font-weight: 700; }
.funding-asset { display: flex; align-items: center; gap: 10px; padding: 14px 0; margin-top: 12px; border-top: 1px solid var(--wallet-line); border-bottom: 1px solid var(--wallet-line); font-size: 13px; }
.usdc-symbol { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; background: #2775ca; color: white; font-size: 23px; border: 3px double #c6e0ff; }
.funding-asset small { display: block; color: var(--wallet-muted); font-size: 10px; margin-top: 2px; }
.asset-fixed { margin-left: auto; color: #bdc9f2; font-size: 9px; letter-spacing: 1px; }
.funding-form { margin-top: 20px; }
.funding-form label { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; }
.funding-form label span { color: #ced4f5; font-size: 10px; }
.funding-amount { font-family: var(--display); font-weight: 400; font-size: 34px; border: 2px solid #6377b1; background: #080e23; border-radius: 10px; margin: 9px 0 10px; }
.funding-amount > span { color: #bdc9f2; }
.amount-presets { display: flex; gap: 8px; }
.amount-presets button { border: 1px solid #6377b1; border-radius: 6px; background: transparent; padding: 7px 16px; cursor: pointer; font-size: 12px; }
.amount-presets button:hover { border-color: #ffd23f; }
.funding-hint { font-size: 12px !important; margin: 15px 0 10px; }
.quote-button { width: 100%; display: flex; justify-content: space-between; }
.onramp-availability, .funding-purpose { font-size: 12px !important; }
.funding-purpose { padding-top: 12px; border-top: 1px solid var(--wallet-line); }
.funding-review { border-color: #586193; }
.funding-review dl { font-size: 12px; }
.funding-review dd { color: #ffd23f; }
.funding-review p, .funding-consent { font-size: 12px; }
.funding-consent input { accent-color: #ffd23f; }
.wallet-kind { display: block; color: #ffd23f; font-size: 11px; margin-top: 28px; }
.balance-label { font-size: 12px !important; margin-bottom: 4px; }
.wallet-balance { font-size: 42px; font-weight: 900; letter-spacing: -1.5px; overflow-wrap: anywhere; }
.wallet-balance span { font-size: 13px; letter-spacing: 0; color: #bdc9f2; }
.balance-note { font-size: 12px !important; }
.wallet-address-box { padding: 15px; background: #161a3a; border-radius: 10px; margin: 24px 0 12px; }
.wallet-address-box > span { color: #bdc9f2; font-size: 9px; letter-spacing: 1px; }
.wallet-address { font-family: monospace; color: #f1f5f6 !important; }
.wallet-explorer { float: right; font-size: 11px; padding-top: 8px; }
.wallet-tools { display: flex; justify-content: space-between; gap: 10px; }
.manage-wallet { display: block; margin: 15px 0; font-size: 13px; }
.wallet-history, .funding-order { margin-top: 20px; }
.wallet-history h3 { margin: 0; font-size: 17px; letter-spacing: -.3px; }
.history-empty { font-size: 12px !important; margin-bottom: 0; }
.history-list { padding: 0; margin: 10px 0 0; list-style: none; }
.history-list li { padding: 13px 0; border-top: 1px solid var(--wallet-line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; }
.history-list small { display: block; color: #bdc9f2; margin-top: 4px; }
.history-list button { text-align: left; background: transparent; border: 0; color: #ffd23f; cursor: pointer; }
.order-badge { color: #ffd23f; }
.wallet-help { margin: 28px 0 0; }
.wallet-help h3 { font-size: 18px; }
.wallet-help details { border-bottom: 1px solid var(--wallet-line); padding: 15px 0; }
.wallet-help summary { cursor: pointer; color: #ced4f5; font-size: 12px; }
.wallet-help p { max-width: 75ch; font-size: 12px; }
.wallet-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; justify-content: space-between; margin-top: 26px; font-size: 10px; color: #bdc9f2; }
.wallet-footer .garage-back { width: 100%; margin: 10px 0; font-size: 22px; }
.funding-error:not(:empty) { border: 1px solid #9a575e; border-radius: 10px; background: #381f29; color: #ffd0d0; padding: 13px 16px; }
.funding-notice:not(:empty) { border: 1px solid #716144; border-radius: 10px; background: #302c23; color: #f3dba6; padding: 13px 16px; }
.wallet-document { height: auto; overflow: auto; }
.wallet-page { margin: 0; height: auto; min-height: 100dvh; background: radial-gradient(ellipse at 50% 0, #26225b, #0b1020 60%); overflow: auto; }
.wallet-page .garage-dialog { position: relative; max-height: none; display: block; margin: 24px auto 40px; }
.wallet-page .garage-close { display: none; }
@media (max-width: 650px) {
  .garage-dialog { width: calc(100vw - 16px); padding: 22px 18px; border-radius: 18px; }
  .wallet-heading { display: block; margin-top: 30px; }
  .wallet-visual { display: none; }
  .garage-dialog h2 { font-size: 38px; }
  .garage-intro br { display: none; }
  .wallet-grid { grid-template-columns: 1fr; gap: 14px; }
  .garage-card { padding: 20px; }
  .wallet-steps { gap: 6px; font-size: 9px; }
  .wallet-steps li { gap: 5px; flex: 1; align-items: flex-start; }
  .wallet-status-row { align-items: flex-start; gap: 8px; }
  .wallet-status-note { font-size: 10px; text-align: right; }
  .garage-dialog .btn { font-size: 19px; }
  .activity-network { font-size: 8px; }
  .wallet-page .garage-dialog { margin: 8px auto; }
}
@media (prefers-reduced-motion: reduce) { .garage-dialog *, .garage-button { animation: none !important; transition: none !important; } }
