:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f6f7fb;
  background: #08090d;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --bg: #08090d;
  --panel: #0e1016;
  --panel-2: #131620;
  --panel-3: #171a24;
  --line: rgba(255,255,255,.08);
  --line-strong: rgba(255,255,255,.13);
  --muted: #9299a9;
  --muted-2: #6e7585;
  --white: #f7f8fc;
  --accent: #b8ff3b;
  --accent-2: #71ff9a;
  --danger: #ff5b6e;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --content-max: 760px;
  --radius-card: 24px;
}

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; background: var(--bg); }
body, #root { min-width: 320px; min-height: 100%; margin: 0; }
body {
  min-height: 100vh;
  min-height: 100dvh;
  background: radial-gradient(circle at 50% -18%, #1b2029 0, #08090d 42%, #06070a 100%);
  color: var(--white);
  overflow-x: hidden;
}
button, input, textarea { font: inherit; }
button { color: inherit; }
button:disabled { cursor: not-allowed; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
input, textarea { -webkit-appearance: none; appearance: none; }
::selection { background: rgba(184,255,59,.25); }
:focus-visible { outline: 2px solid rgba(184,255,59,.72); outline-offset: 2px; }

/* AUTH */
.auth-shell {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding: calc(22px + var(--safe-top)) 16px calc(20px + var(--safe-bottom));
  display: grid;
  place-items: center;
  overflow: hidden;
}
.auth-panel { width: min(100%, 520px); position: relative; z-index: 2; }
.auth-orb { position: fixed; border-radius: 50%; filter: blur(82px); opacity: .17; pointer-events: none; }
.orb-one { width: 420px; height: 420px; background: #b8ff3b; right: -190px; top: -170px; }
.orb-two { width: 390px; height: 390px; background: #6b7cff; left: -230px; bottom: -140px; opacity: .09; }
.brand-lockup { display: flex; align-items: center; gap: 13px; margin-bottom: clamp(24px, 5vh, 42px); }
.du-logo {
  width: 52px; height: 52px; flex: 0 0 auto; border-radius: 17px; display: grid; place-items: center;
  font-weight: 950; font-size: 17px; letter-spacing: -1.5px; color: #07090b;
  background: linear-gradient(135deg, #efffb8, #b8ff3b 58%, #64f59d);
  box-shadow: 0 12px 38px rgba(184,255,59,.16);
}
.du-logo.small { width: 44px; height: 44px; border-radius: 14px; font-size: 14px; }
.brand-lockup h1 { margin: 0; font-size: 19px; letter-spacing: .12em; }
.brand-lockup p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.auth-hero-copy { margin-bottom: 24px; }
.security-pill {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border-radius: 999px;
  background: rgba(184,255,59,.08); color: #d6ff89; border: 1px solid rgba(184,255,59,.13);
  font-size: 11px; font-weight: 760;
}
.auth-hero-copy h2 { margin: 17px 0 11px; max-width: 500px; font-size: clamp(29px, 7.2vw, 44px); line-height: 1; letter-spacing: -.05em; }
.auth-hero-copy p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.58; max-width: 490px; }
.segmented { padding: 4px; background: #0d0f14; border: 1px solid var(--line); border-radius: 15px; display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 14px; }
.segmented button { min-height: 44px; border: 0; background: transparent; border-radius: 11px; padding: 10px; color: var(--muted); cursor: pointer; font-weight: 800; font-size: 13px; transition: background .16s ease, color .16s ease, transform .16s ease; }
.segmented button.active { color: #080a0c; background: var(--white); }
.auth-form {
  background: rgba(14,16,22,.92); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--line); border-radius: 24px; padding: clamp(16px, 4.5vw, 22px);
  box-shadow: 0 25px 70px rgba(0,0,0,.3);
}
.field-label-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.field-label-row .field-label { margin: 0; }
.field-label { display: flex; align-items: center; gap: 7px; color: #cbd0da; font-size: 12px; font-weight: 780; margin: 0 0 8px; }
.field-label:not(:first-child) { margin-top: 17px; }
.field-label span { color: var(--muted-2); font-weight: 680; }
.word-counter { flex: 0 0 auto; color: #697180; font-size: 10px; font-weight: 750; }
.word-counter.valid { color: #b8ff78; }
.textarea-wrap, .input-wrap { position: relative; display: flex; align-items: flex-start; background: #090b10; border: 1px solid rgba(255,255,255,.09); border-radius: 15px; transition: border-color .16s ease, box-shadow .16s ease; }
.input-wrap { align-items: center; }
.textarea-wrap:focus-within, .input-wrap:focus-within, .plain-input:focus, .amount-input:focus-within { border-color: rgba(184,255,59,.46); box-shadow: 0 0 0 3px rgba(184,255,59,.065); }
.textarea-wrap > svg { position: absolute; left: 14px; top: 15px; color: #6f7686; }
.textarea-wrap textarea { width: 100%; min-height: 112px; resize: vertical; border: 0; outline: 0; color: #eef1f7; background: transparent; padding: 14px 14px 14px 45px; line-height: 1.58; font-size: 16px; }
.input-wrap > svg { margin-left: 14px; color: #6f7686; flex: 0 0 auto; }
.input-wrap input { min-width: 0; flex: 1; min-height: 48px; padding: 12px 10px; border: 0; outline: 0; background: transparent; color: #eef1f7; font-size: 16px; }
.inline-icon { min-width: 44px; min-height: 44px; border: 0; background: transparent; color: #7c8494; padding: 10px 13px; display: grid; place-items: center; cursor: pointer; }
.field-hint { margin: 7px 2px 0; color: #c58b91; font-size: 11px; line-height: 1.45; }
.mini-warning { margin: 11px 2px 0; color: #808797; font-size: 11px; line-height: 1.48; }
.form-error { margin-top: 12px; border: 1px solid rgba(255,91,110,.22); background: rgba(255,91,110,.08); color: #ff9aa6; border-radius: 13px; padding: 11px 12px; font-size: 12px; line-height: 1.48; overflow-wrap: anywhere; }
.form-error.compact-error { width: 100%; margin-top: 10px; }
.primary-button { width: 100%; min-height: 50px; margin-top: 18px; border: 0; border-radius: 14px; padding: 12px 16px; display: flex; align-items: center; justify-content: center; gap: 8px; background: linear-gradient(135deg, #eaff9f, #b8ff3b); color: #080a0d; font-weight: 880; font-size: 13px; cursor: pointer; box-shadow: 0 10px 30px rgba(184,255,59,.11); transition: transform .14s ease, opacity .14s ease; }
.primary-button:active:not(:disabled) { transform: scale(.99); }
.primary-button:disabled { opacity: .4; box-shadow: none; }
.text-button { width: 100%; min-height: 42px; border: 0; background: transparent; color: #9299a9; padding: 12px 0 0; font-size: 12px; cursor: pointer; }
.word-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.word-choice button { min-height: 76px; border: 1px solid var(--line); background: #090b10; border-radius: 15px; padding: 14px; text-align: left; cursor: pointer; }
.word-choice button strong, .word-choice button span { display: block; }
.word-choice button strong { font-size: 14px; }
.word-choice button span { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.35; }
.word-choice button.active { border-color: rgba(184,255,59,.38); background: rgba(184,255,59,.065); }
.creation-note { display: flex; gap: 10px; margin-top: 15px; padding: 13px; border-radius: 13px; background: rgba(255,255,255,.025); border: 1px solid var(--line); color: var(--muted); }
.creation-note svg { color: #c6ff60; flex: 0 0 auto; }
.creation-note p { margin: 0; font-size: 12px; line-height: 1.52; }
.phrase-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.phrase-header .field-label { margin: 0; }
.phrase-header p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.48; }
.phrase-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; padding: 11px; border-radius: 15px; border: 1px solid var(--line); background: #090b10; }
.phrase-grid div { min-width: 0; min-height: 38px; display: flex; align-items: center; gap: 6px; padding: 8px; border-radius: 9px; background: rgba(255,255,255,.026); }
.phrase-grid div span { color: #626a79; width: 17px; flex: 0 0 auto; font-size: 9px; }
.phrase-grid div strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 11px; font-weight: 750; }
.confirm-check { position: relative; display: grid; grid-template-columns: 22px 1fr; gap: 10px; margin-top: 15px; cursor: pointer; align-items: start; }
.confirm-check input { position: absolute; opacity: 0; pointer-events: none; }
.confirm-check > span { width: 22px; height: 22px; border-radius: 7px; border: 1px solid #3d4350; display: grid; place-items: center; color: transparent; background: #090b10; }
.confirm-check input:focus-visible + span { outline: 2px solid rgba(184,255,59,.72); outline-offset: 2px; }
.confirm-check input:checked + span { color: #090b10; background: var(--accent); border-color: var(--accent); }
.confirm-check p { margin: 1px 0 0; color: #9ca3b0; font-size: 11px; line-height: 1.48; }
.auth-footer { margin-top: 14px; text-align: center; color: #4c5360; font-size: 9px; line-height: 1.4; letter-spacing: .055em; }

/* APP SHELL */
.app-shell { min-height: 100vh; min-height: 100dvh; background: var(--bg); padding-bottom: calc(82px + var(--safe-bottom)); overscroll-behavior-y: contain; }
.app-frame { width: 100%; min-height: calc(100dvh - 82px); margin: 0 auto; }
.app-header, .detail-header {
  position: sticky; top: 0; z-index: 20; min-height: calc(62px + var(--safe-top));
  padding: calc(10px + var(--safe-top)) 14px 10px;
  display: flex; align-items: center; gap: 8px;
  background: rgba(8,9,13,.88); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,.045);
}
.header-center { min-width: 0; flex: 1; display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.header-center strong { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; letter-spacing: .12em; }
.header-center span { margin-top: 4px; color: #838b9b; font-size: 10px; white-space: nowrap; }
.profile-button, .icon-button { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 13px; border: 1px solid var(--line); background: #101219; color: #cbd0d9; cursor: pointer; text-decoration: none; }
.profile-button { border-radius: 50%; background: linear-gradient(145deg, #202532, #0e1016); }
.icon-button.compact { width: 36px; height: 36px; border-radius: 11px; }
.fiat-pill { min-width: 48px; height: 34px; flex: 0 0 auto; border: 1px solid var(--line); background: #101219; color: #d9dde5; border-radius: 999px; font-size: 10px; font-weight: 850; cursor: pointer; }
.offline-banner { width: min(calc(100% - 24px), var(--content-max)); margin: 10px auto 0; padding: 10px 12px; border: 1px solid rgba(246,190,74,.16); border-radius: 13px; background: rgba(246,190,74,.065); color: #c5b27f; display: flex; gap: 9px; align-items: flex-start; font-size: 11px; line-height: 1.45; }
.offline-banner svg { flex: 0 0 auto; margin-top: 1px; }
.app-content { width: 100%; max-width: var(--content-max); margin: 0 auto; padding: 12px 12px 26px; }
.balance-card { position: relative; overflow: hidden; min-height: 204px; border: 1px solid rgba(255,255,255,.095); border-radius: var(--radius-card); padding: 19px; background: radial-gradient(circle at 84% 20%, rgba(184,255,59,.17), transparent 31%), linear-gradient(135deg, #1a1e27, #11131a 56%, #0c0e13); box-shadow: 0 28px 70px rgba(0,0,0,.28); }
.balance-card::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, rgba(255,255,255,.038), transparent 39%); }
.card-grid { position: absolute; inset: 0; opacity: .25; background-image: radial-gradient(circle at center, rgba(255,255,255,.19) 0 1px, transparent 1.2px); background-size: 8px 8px; mask-image: radial-gradient(circle at 80% 50%, #000, transparent 52%); -webkit-mask-image: radial-gradient(circle at 80% 50%, #000, transparent 52%); transform: perspective(500px) rotate(-5deg) scale(1.15); }
.balance-card-top { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.eyebrow { font-size: 10px; letter-spacing: .14em; color: #cbd0da; font-weight: 880; }
.wallet-status { margin-top: 7px; color: #818999; font-size: 10px; display: flex; align-items: center; gap: 6px; }
.status-dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: #a8f443; box-shadow: 0 0 10px rgba(168,244,67,.6); }
.card-icon-button { width: 36px; height: 36px; flex: 0 0 auto; border: 1px solid rgba(255,255,255,.09); background: rgba(0,0,0,.17); border-radius: 12px; display: grid; place-items: center; cursor: pointer; color: #adb4c1; }
.card-icon-button:disabled { opacity: .65; }
.balance-label { position: relative; z-index: 2; margin-top: clamp(27px, 7vw, 36px); color: #8e96a5; font-size: 11px; }
.balance-value-row { position: relative; z-index: 2; min-width: 0; display: flex; align-items: center; gap: 7px; }
.balance-value { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: clamp(30px, 9.2vw, 45px); letter-spacing: -.055em; line-height: 1.1; }
.ghost-eye { width: 38px; height: 38px; flex: 0 0 auto; border: 0; background: transparent; color: #7b8392; display: grid; place-items: center; padding: 0; cursor: pointer; }
.balance-meta { position: relative; z-index: 2; margin-top: 10px; color: #6f7787; font-size: 10px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.meta-dot { opacity: .55; }
.spin { animation: spin .85s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.section-block { margin-top: 22px; }
.section-block.no-pad { margin-top: 22px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin: 0 3px 10px; }
.section-heading h2 { margin: 0; font-size: 19px; letter-spacing: -.025em; }
.section-heading p { margin: 4px 0 0; color: #778091; font-size: 11px; }
.refresh-text { min-height: 36px; border: 0; background: transparent; color: #939baa; display: flex; align-items: center; gap: 6px; padding: 0 2px; font-size: 11px; cursor: pointer; }
.refresh-text:disabled { opacity: .45; }
.asset-list { overflow: hidden; border: 1px solid var(--line); border-radius: 19px; background: #0d0f14; }
.asset-row { width: 100%; min-height: 74px; border: 0; border-bottom: 1px solid rgba(255,255,255,.055); background: transparent; padding: 12px 11px; display: flex; gap: 11px; align-items: center; text-align: left; cursor: pointer; transition: background .13s ease; }
.asset-row:last-child { border-bottom: 0; }
.asset-row:hover { background: rgba(255,255,255,.024); }
.asset-row:active { background: rgba(255,255,255,.036); }
.asset-main { min-width: 0; flex: 1; }
.asset-main strong, .asset-main span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.asset-main strong { font-size: 13px; }
.asset-main span { margin-top: 5px; color: #7b8393; font-size: 10px; }
.asset-main span.asset-error-text { color: #a48689; }
.asset-balance { min-width: 88px; max-width: 42%; text-align: right; }
.asset-balance strong, .asset-balance span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.asset-balance strong { font-size: 12px; }
.asset-balance span { margin-top: 5px; color: #7d8594; font-size: 10px; }
.row-chevron { color: #444a57; flex: 0 0 auto; }
.coin-icon { display: inline-grid; place-items: center; border-radius: 50%; font-weight: 920; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 5px 16px rgba(0,0,0,.16); }
.coin-btc { background: #f7931a; color: #fff; }
.coin-eth { background: #5f65a8; color: #fff; }
.coin-bnb { background: #f3ba2f; color: #16130a; }
.coin-sol { background: linear-gradient(145deg, #14f195, #9945ff); color: #07110c; }
.coin-trx { background: #ef4040; color: white; }
.coin-arb { background: #2d75b5; color: white; }
.coin-pol { background: #8247e5; color: white; }
.coin-base { background: #2354ff; color: white; }
.coin-avax { background: #e84142; color: white; }
.coin-ltc { background: #9da5af; color: white; }
.coin-doge { background: #c7aa38; color: #fff7d4; }
.bottom-nav { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; padding-bottom: var(--safe-bottom); background: rgba(10,11,15,.92); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border-top: 1px solid rgba(255,255,255,.065); }
.bottom-nav-inner { height: 72px; max-width: var(--content-max); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); }
.bottom-nav button { min-width: 0; border: 0; background: transparent; color: #697181; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer; }
.bottom-nav button span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; font-weight: 760; }
.bottom-nav button.active { color: #d8ff8b; }
.bottom-nav button[aria-current="page"] { background: radial-gradient(circle at 50% 110%, rgba(184,255,59,.09), transparent 55%); }
.standalone-section { padding: 4px 0 30px; }
.page-title { margin: 10px 3px 22px; }
.page-title h1 { margin: 0; font-size: clamp(28px, 9vw, 34px); letter-spacing: -.045em; }
.page-title p { max-width: 560px; margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.subheading { margin: 21px 3px 10px; color: #c3c8d1; font-size: 12px; font-weight: 820; }
.compact-list .asset-row { min-height: 64px; }
.security-cards { display: grid; gap: 10px; }
.info-card { display: flex; gap: 12px; padding: 16px; border: 1px solid var(--line); background: #0d0f14; border-radius: 17px; }
.info-icon { width: 40px; height: 40px; border-radius: 12px; flex: 0 0 auto; display: grid; place-items: center; color: #c8ff67; background: rgba(184,255,59,.07); }
.info-icon svg { width: 20px; height: 20px; }
.info-card strong { font-size: 13px; }
.info-card p { margin: 6px 0 0; color: #838b9b; font-size: 11px; line-height: 1.5; }
.danger-button { width: 100%; margin-top: 18px; min-height: 48px; border: 1px solid rgba(255,91,110,.17); background: rgba(255,91,110,.065); color: #ff8998; border-radius: 14px; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12px; font-weight: 820; cursor: pointer; }
.settings-group { padding: 16px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 17px; background: #0d0f14; }
.setting-label { display: block; color: #c5cad4; font-size: 12px; font-weight: 820; margin-bottom: 11px; }
.fiat-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fiat-choice button { min-height: 44px; border: 1px solid var(--line); background: #090b10; color: #858d9d; border-radius: 11px; padding: 10px; cursor: pointer; font-weight: 820; font-size: 12px; }
.fiat-choice button.active { background: #f4f6f8; color: #090b0d; }
.build-status { display: flex; align-items: center; gap: 8px; color: #939baa; font-size: 11px; font-weight: 760; }
.build-status > span { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: #f2bd4f; }
.build-status.enabled { color: #b8ff78; }
.build-status.enabled > span { background: #a9f448; }
.setting-help { margin: 9px 0 0; color: #737b8b; font-size: 10px; line-height: 1.48; }

/* DETAIL */
.detail-shell { padding-bottom: calc(82px + var(--safe-bottom)); }
.detail-header { justify-content: space-between; }
.detail-header > div { min-width: 0; flex: 1; text-align: center; }
.detail-header > div strong, .detail-header > div span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.detail-header > div strong { font-size: 13px; }
.detail-header > div span { color: #747c8c; font-size: 9px; margin-top: 3px; }
.detail-content { padding-bottom: calc(34px + var(--safe-bottom)); }
.asset-hero { overflow: hidden; position: relative; min-height: 270px; border-radius: 24px; padding: 18px; border: 1px solid rgba(255,255,255,.09); background: radial-gradient(circle at 90% 0%, rgba(184,255,59,.105), transparent 29%), linear-gradient(150deg, #151923, #0e1016); }
.asset-hero-head { position: relative; z-index: 2; display: flex; align-items: center; gap: 11px; }
.asset-hero-head > div:nth-child(2) { min-width: 0; flex: 1; }
.asset-hero-head > div:nth-child(2) span, .asset-hero-head > div:nth-child(2) strong { display: block; }
.asset-hero-head > div:nth-child(2) span { color: #7e8696; font-size: 10px; }
.asset-hero-head > div:nth-child(2) strong { margin-top: 4px; font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.change { flex: 0 0 auto; padding: 6px 8px; border-radius: 999px; font-size: 9px; font-weight: 850; }
.change.positive { color: #baff7b; background: rgba(184,255,59,.07); }
.change.negative { color: #ff8b9a; background: rgba(255,91,110,.07); }
.sparkline { position: relative; z-index: 1; display: block; width: calc(100% + 4px); height: 82px; margin: 16px -2px 8px; overflow: visible; }
.sparkline-line { fill: none; stroke: #b8ff3b; stroke-width: 2.2; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.sparkline-fill { fill: rgba(184,255,59,.055); stroke: none; }
.sparkline.negative .sparkline-line { stroke: #ff7082; }
.sparkline.negative .sparkline-fill { fill: rgba(255,91,110,.055); }
.asset-owned { position: relative; z-index: 2; margin-top: 7px; }
.asset-owned span, .asset-owned strong, .asset-owned small { display: block; }
.asset-owned span { color: #7d8594; font-size: 10px; }
.asset-owned strong { margin-top: 3px; font-size: clamp(25px, 8vw, 30px); letter-spacing: -.035em; overflow-wrap: anywhere; }
.asset-owned small { margin-top: 4px; color: #9da4b1; font-size: 11px; }
.network-warning { margin-top: 10px; padding: 10px 12px; border: 1px solid rgba(255,166,87,.14); background: rgba(255,166,87,.055); color: #b79b7d; border-radius: 13px; font-size: 10px; line-height: 1.45; }
.action-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 11px; }
.action-button { min-width: 0; min-height: 66px; border: 1px solid var(--line); border-radius: 17px; background: #101219; display: flex; align-items: center; gap: 10px; padding: 12px 13px; text-align: left; cursor: pointer; }
.action-button:disabled { opacity: .45; }
.action-button > svg { width: 36px; height: 36px; flex: 0 0 auto; padding: 8px; border-radius: 11px; color: #d2ff81; background: rgba(184,255,59,.07); }
.action-button span { min-width: 0; }
.action-button span strong, .action-button span small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.action-button span strong { font-size: 12px; }
.action-button span small { margin-top: 4px; color: #798190; font-size: 9px; }
.address-card { width: 100%; min-height: 57px; margin-top: 10px; border: 1px solid var(--line); border-radius: 15px; background: #0d0f14; padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; cursor: pointer; }
.address-card div { min-width: 0; }
.address-card span, .address-card strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.address-card span { color: #767e8e; font-size: 9px; }
.address-card strong { margin-top: 5px; font-size: 11px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.address-card > svg { flex: 0 0 auto; color: #8c94a3; }
.activity-list { overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: #0d0f14; }
.tx-row { min-height: 68px; padding: 11px 12px; display: flex; gap: 10px; align-items: center; border-bottom: 1px solid rgba(255,255,255,.05); }
.tx-row:last-child { border-bottom: 0; }
.tx-direction { width: 36px; height: 36px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 11px; background: rgba(255,255,255,.04); color: #a8afbd; }
.tx-direction.incoming { color: #b9ff77; background: rgba(184,255,59,.06); }
.tx-main { min-width: 0; flex: 1; }
.tx-main strong, .tx-main span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx-main strong { font-size: 11px; }
.tx-main span { margin-top: 4px; color: #737b8b; font-size: 9px; }
.tx-amount { min-width: 0; max-width: 44%; text-align: right; }
.tx-amount strong, .tx-amount span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx-amount strong { font-size: 10px; }
.tx-status { margin-top: 4px; font-size: 8px; color: #78808f; }
.tx-status.confirmed { color: #8acb61; }
.tx-status.failed { color: #ff7f90; }
.empty-state { min-height: 105px; border: 1px solid var(--line); border-radius: 17px; background: #0d0f14; color: #757d8d; display: flex; justify-content: center; align-items: center; gap: 8px; padding: 20px; text-align: center; font-size: 11px; line-height: 1.5; }
.empty-state.compact-empty { min-height: 74px; }

/* MODAL */
.modal-backdrop { position: fixed; z-index: 100; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding: calc(14px + var(--safe-top)) 0 0; background: rgba(0,0,0,.68); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); }
.modal-sheet { width: 100%; max-width: 580px; max-height: calc(94dvh - var(--safe-top)); overflow: auto; overscroll-behavior: contain; border: 1px solid rgba(255,255,255,.09); border-bottom: 0; border-radius: 26px 26px 0 0; background: #0d0f15; box-shadow: 0 -30px 90px rgba(0,0,0,.48); padding-bottom: calc(18px + var(--safe-bottom)); animation: sheetUp .19s ease-out; }
.modal-wide { max-width: 680px; }
@keyframes sheetUp { from { transform: translateY(24px); opacity: .5; } }
.modal-grab { width: 36px; height: 4px; border-radius: 999px; background: #303440; margin: 9px auto 2px; }
.modal-header { min-height: 58px; padding: 8px 14px 7px 18px; display: flex; justify-content: space-between; align-items: center; gap: 10px; border-bottom: 1px solid rgba(255,255,255,.055); }
.modal-header h2 { margin: 0; font-size: 15px; }
.modal-body { padding: 16px; }
.profile-summary { display: flex; align-items: center; gap: 11px; padding: 3px 2px 14px; }
.profile-summary > div:last-child { min-width: 0; }
.profile-summary strong, .profile-summary span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-summary strong { font-size: 13px; }
.profile-summary span { margin-top: 4px; color: #798190; font-size: 10px; }
.address-stack { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; }
.address-line { min-height: 60px; padding: 10px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid rgba(255,255,255,.05); background: #090b10; }
.address-line:last-child { border-bottom: 0; }
.address-line > div { min-width: 0; flex: 1; }
.address-line strong, .address-line span { display: block; }
.address-line strong { font-size: 11px; }
.address-line span { margin-top: 4px; color: #737b8b; font: 9px ui-monospace, SFMono-Regular, Menlo, monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.receive-content { display: flex; flex-direction: column; align-items: center; text-align: center; }
.qr-card { width: min(242px, 78vw); aspect-ratio: 1; padding: 14px; border-radius: 21px; background: white; margin: 4px 0 16px; display: grid; place-items: center; }
.qr-card svg { width: 100%; height: 100%; }
.receive-content > strong { margin-top: 8px; font-size: 14px; }
.receive-content > p { max-width: 360px; color: #838b9b; font-size: 11px; line-height: 1.5; }
.copy-address { width: 100%; margin-top: 4px; min-height: 54px; border: 1px solid var(--line); background: #090b10; border-radius: 14px; padding: 10px 12px; display: flex; align-items: center; gap: 9px; cursor: pointer; }
.copy-address span { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 10px ui-monospace, SFMono-Regular, Menlo, monospace; color: #b1b7c2; }
.copy-address svg { flex: 0 0 auto; color: #929aa8; }
.send-form { display: grid; }
.send-balance { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 13px; padding: 12px; border-radius: 12px; background: rgba(255,255,255,.028); }
.send-balance span { color: #7e8696; font-size: 10px; }
.send-balance strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.plain-input { width: 100%; min-height: 49px; border: 1px solid var(--line); outline: 0; background: #090b10; color: white; border-radius: 13px; padding: 11px 12px; font-size: 16px; }
.amount-input { min-height: 58px; border: 1px solid var(--line); border-radius: 13px; background: #090b10; display: flex; align-items: center; padding: 0 9px 0 12px; }
.amount-input input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: white; font-size: 22px; font-weight: 840; }
.amount-input > span { flex: 0 0 auto; color: #b2b8c3; font-size: 10px; font-weight: 850; margin-right: 8px; }
.amount-input button { min-width: 45px; min-height: 32px; border: 1px solid rgba(184,255,59,.16); background: rgba(184,255,59,.065); color: #c9ff72; border-radius: 9px; padding: 6px 8px; font-size: 9px; font-weight: 880; cursor: pointer; }
.fiat-estimate { margin-top: 6px; color: #697180; font-size: 10px; text-align: right; }
.fee-box { margin-top: 14px; padding: 13px; border: 1px solid var(--line); background: #101219; border-radius: 13px; }
.fee-box > div { display: flex; justify-content: space-between; gap: 12px; }
.fee-box > div + div { margin-top: 6px; }
.fee-box span, .fee-box strong { font-size: 10px; }
.fee-box span { color: #8c94a3; }
.fee-box strong { text-align: right; }
.fee-box p { margin: 7px 0 0; color: #6f7787; font-size: 9px; line-height: 1.45; }
.fee-fiat { padding-top: 6px; border-top: 1px solid rgba(255,255,255,.04); }
.test-banner { display: flex; gap: 9px; align-items: flex-start; margin-top: 12px; padding: 11px; border-radius: 12px; border: 1px solid rgba(246,190,74,.15); background: rgba(246,190,74,.06); color: #bba879; }
.test-banner svg { flex: 0 0 auto; }
.test-banner span { font-size: 10px; line-height: 1.47; }
.test-banner strong { color: #e3c573; }

@media (min-width: 420px) {
  .app-content { padding-left: 15px; padding-right: 15px; }
  .app-header, .detail-header { padding-left: 17px; padding-right: 17px; gap: 10px; }
  .phrase-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .balance-card { min-height: 214px; padding: 20px; }
}

@media (min-width: 620px) {
  .auth-shell { padding-left: 24px; padding-right: 24px; }
  .auth-panel { width: min(100%, 560px); }
  .phrase-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .app-shell { background: radial-gradient(circle at 50% -10%, #161a22, #08090d 37%); }
  .app-frame { max-width: 820px; border-left: 1px solid rgba(255,255,255,.035); border-right: 1px solid rgba(255,255,255,.035); }
  .app-content { padding: 16px 24px 30px; }
  .balance-card { min-height: 230px; padding: 23px; }
  .asset-list { border-radius: 21px; }
  .asset-row { padding-left: 15px; padding-right: 15px; }
  .modal-backdrop { align-items: center; padding: calc(22px + var(--safe-top)) 22px calc(22px + var(--safe-bottom)); }
  .modal-sheet { border-bottom: 1px solid rgba(255,255,255,.09); border-radius: 25px; max-height: min(800px, calc(92dvh - var(--safe-top) - var(--safe-bottom))); padding-bottom: 18px; }
  .modal-grab { display: none; }
  .modal-body { padding: 18px; }
  .security-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .info-card { flex-direction: column; }
}

@media (min-width: 900px) {
  :root { --content-max: 780px; }
  .auth-panel { width: min(100%, 590px); }
  .app-frame { max-width: 860px; }
  .app-content { max-width: 780px; }
  .balance-card { min-height: 242px; border-radius: 28px; }
  .bottom-nav { left: 50%; right: auto; bottom: calc(16px + var(--safe-bottom)); width: min(560px, calc(100% - 36px)); transform: translateX(-50%); padding-bottom: 0; border: 1px solid rgba(255,255,255,.09); border-radius: 22px; box-shadow: 0 18px 55px rgba(0,0,0,.34); overflow: hidden; }
  .bottom-nav-inner { height: 66px; }
  .app-shell { padding-bottom: calc(108px + var(--safe-bottom)); }
  .app-frame { min-height: calc(100dvh - 108px); }
}

@media (max-width: 359px) {
  .auth-shell { padding-left: 11px; padding-right: 11px; place-items: start center; }
  .brand-lockup { margin-bottom: 22px; }
  .du-logo { width: 47px; height: 47px; border-radius: 15px; }
  .brand-lockup p { font-size: 10px; }
  .auth-hero-copy h2 { font-size: 28px; }
  .auth-hero-copy p { font-size: 12px; }
  .auth-form { padding: 14px; border-radius: 20px; }
  .word-choice { grid-template-columns: 1fr; }
  .app-header, .detail-header { padding-left: 9px; padding-right: 9px; gap: 6px; }
  .profile-button, .icon-button { width: 38px; height: 38px; border-radius: 11px; }
  .profile-button { border-radius: 50%; }
  .fiat-pill { min-width: 43px; height: 31px; }
  .header-center span { display: none; }
  .app-content { padding-left: 9px; padding-right: 9px; }
  .balance-card { min-height: 196px; padding: 16px; border-radius: 21px; }
  .balance-label { margin-top: 26px; }
  .balance-value { font-size: 29px; }
  .asset-row { gap: 8px; padding-left: 8px; padding-right: 8px; }
  .asset-main strong { font-size: 12px; }
  .asset-main span { font-size: 9px; }
  .asset-balance { min-width: 72px; }
  .asset-balance strong { font-size: 11px; }
  .asset-balance span { font-size: 9px; }
  .row-chevron { display: none; }
  .action-pair { gap: 8px; }
  .action-button { padding: 10px; gap: 7px; }
  .action-button > svg { width: 33px; height: 33px; }
  .action-button span small { display: none; }
  .modal-body { padding: 13px; }
  .phrase-grid { padding: 8px; }
}

@media (max-height: 700px) and (orientation: landscape) {
  .auth-shell { place-items: start center; overflow-y: auto; }
  .brand-lockup { margin-bottom: 18px; }
  .auth-hero-copy { margin-bottom: 16px; }
  .auth-hero-copy h2 { margin-top: 12px; font-size: 30px; }
  .modal-sheet { max-height: 94dvh; }
}

@media (hover: hover) and (pointer: fine) {
  .primary-button:hover:not(:disabled) { transform: translateY(-1px); }
  .profile-button:hover, .icon-button:hover, .fiat-pill:hover, .card-icon-button:hover, .action-button:hover, .address-card:hover, .copy-address:hover { border-color: var(--line-strong); background-color: #131620; }
  .bottom-nav button:hover { color: #a7afbd; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* FAIL-SAFE */
.fatal-shell { min-height: 100vh; min-height: 100dvh; padding: calc(24px + var(--safe-top)) 16px calc(24px + var(--safe-bottom)); display: grid; place-items: center; background: radial-gradient(circle at 50% -10%, #1b2029, var(--bg) 45%); }
.fatal-card { width: min(100%, 430px); padding: 22px; border: 1px solid var(--line); border-radius: 24px; background: #0e1016; box-shadow: 0 24px 70px rgba(0,0,0,.35); }
.fatal-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; color: #ffc56d; background: rgba(255,183,77,.07); border: 1px solid rgba(255,183,77,.12); }
.fatal-card h1 { margin: 18px 0 8px; font-size: 24px; letter-spacing: -.035em; }
.fatal-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }

/* Boot local: mantém a tela de acesso visível enquanto os módulos são carregados. */
.boot-auth .boot-status {
  min-height: 20px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted, #8d93a5);
  text-align: center;
}
.boot-screen { min-height: 100dvh; display:grid; place-items:center; padding:24px; background:#08090d; }
.boot-card { padding:18px 22px; border:1px solid rgba(255,255,255,.08); border-radius:18px; background:rgba(255,255,255,.04); color:#fff; }

/* V2 audit + direct upload fixes */
.orb-three { width: 420px; height: 420px; background: #b8ff3b; left: -190px; top: -170px; opacity: .12; }
.auth-panel-centered { margin-inline: auto; }
.static-field-icon {
  position: absolute;
  left: 14px;
  top: 15px;
  color: #6f7686;
  font-size: 16px;
  line-height: 1;
  width: 20px;
  text-align: center;
  pointer-events: none;
}
.input-wrap .static-field-icon { top: 50%; transform: translateY(-50%); }
.textarea-wrap textarea,
.input-wrap input { padding-left: 45px; }
.action-button .info-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #d2ff81;
  background: rgba(184,255,59,.07);
}
.action-button .info-icon svg,
.profile-button svg,
.icon-button svg,
.card-icon-button svg,
.bottom-nav svg,
.inline-icon svg,
.copy-address svg,
.address-card svg,
.tx-direction svg,
.info-icon svg,
.fiat-pill svg,
.refresh-text svg,
.primary-button svg,
.danger-button svg,
.security-pill svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}
.profile-button svg,
.icon-button svg,
.card-icon-button svg,
.bottom-nav svg,
.inline-icon svg,
.copy-address svg,
.address-card svg,
.refresh-text svg,
.danger-button svg,
.primary-button svg,
.action-button .info-icon svg { width: 18px; height: 18px; }
.primary-button svg { flex: 0 0 auto; }
.creation-note .info-icon { width: 40px; height: 40px; }
.auth-form .empty-state { min-height: 80px; }
@media (min-width: 900px) {
  .auth-shell {
    padding-left: 24px;
    padding-right: 24px;
  }
  .auth-panel,
  .auth-panel-centered {
    width: min(100%, 560px);
  }
  .brand-lockup,
  .auth-hero-copy,
  .auth-footer {
    text-align: center;
  }
  .brand-lockup {
    justify-content: center;
  }
  .auth-hero-copy p,
  .auth-hero-copy h2 {
    margin-left: auto;
    margin-right: auto;
  }
  .security-pill {
    margin-left: auto;
    margin-right: auto;
  }
}

/* V3 app-card / intuitive redesign */
:root {
  --device-width: 430px;
}
body {
  background:
    radial-gradient(circle at 10% 5%, rgba(184,255,59,.08), transparent 28%),
    radial-gradient(circle at 90% 4%, rgba(184,255,59,.08), transparent 28%),
    #06080c;
}
.site-stage {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  position: relative;
  overflow: hidden;
}
.page-orb {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: #b8ff3b;
  filter: blur(90px);
  opacity: .09;
  pointer-events: none;
}
.page-orb-left { left: -170px; top: -150px; }
.page-orb-right { right: -170px; top: -150px; }
.device-shell {
  position: relative;
  width: min(100%, var(--device-width));
  min-height: min(920px, calc(100dvh - 28px));
  background: linear-gradient(180deg, rgba(17,20,28,.96), rgba(9,11,16,.98));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.05);
}
.device-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.03), transparent 18%);
}
.auth-device,
.app-device,
.detail-device { backdrop-filter: blur(10px); }
.card-bound-auth.auth-shell,
.device-shell .app-shell {
  min-height: min(920px, calc(100dvh - 28px));
  background: transparent;
}
.card-bound-auth.auth-shell {
  padding: calc(14px + var(--safe-top)) 14px 16px;
}
.card-bound-auth .auth-panel {
  width: 100%;
  max-width: none;
  min-height: auto;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.auth-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.brand-lockup-tight {
  min-width: 0;
  gap: 10px;
}
.brand-lockup-tight h1 {
  font-size: 22px;
}
.brand-lockup-tight p {
  font-size: 11px;
}
.lang-switch {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
}
.lang-switch button {
  min-width: 60px;
  height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #9ca5b5;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}
.lang-switch button.active {
  background: #f3f6f9;
  color: #0b0d12;
}
.compact-copy {
  padding: 0 2px;
}
.compact-copy h2 {
  font-size: clamp(34px, 8vw, 42px);
  line-height: .95;
  letter-spacing: -.05em;
  margin-top: 12px;
}
.compact-copy p {
  max-width: none;
  font-size: 13px;
  line-height: 1.5;
}
.security-pill {
  font-size: 10px;
}
.segmented {
  margin-top: 18px;
  background: rgba(255,255,255,.03);
}
.compact-auth-form {
  margin-top: 14px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.075);
  background: rgba(6,8,12,.56);
}
.word-choice button span,
.creation-note p,
.mini-warning,
.field-hint,
.auth-footer {
  font-size: 11px;
}
.textarea-wrap textarea { min-height: 132px; }
.field-label { font-size: 12px; }
.confirm-check { align-items: flex-start; }
.confirm-check p { font-size: 11px; }
.primary-button,
.text-button,
.copy-address,
.action-button,
.danger-button,
.fiat-choice button { min-height: 50px; }
.primary-button {
  font-size: 14px;
}
.device-shell .app-shell {
  padding-bottom: 86px;
  overflow: hidden;
}
.device-shell .app-frame {
  min-height: auto;
  height: 100%;
}
.device-shell .app-header,
.device-shell .detail-header {
  position: sticky;
  top: 0;
  padding: calc(12px + var(--safe-top)) 12px 10px;
  background: rgba(8,10,15,.92);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}
.header-actions .lang-switch {
  display: none;
}
.device-shell .app-content {
  padding: 12px 12px 22px;
}
.compact-balance-card {
  min-height: 188px;
  padding: 17px;
}
.balance-value { font-size: clamp(29px, 8vw, 42px); }
.device-shell .bottom-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: auto;
  transform: none;
  border-radius: 22px 22px 0 0;
  border-top: 1px solid rgba(255,255,255,.075);
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  box-shadow: 0 -20px 50px rgba(0,0,0,.34);
  padding-bottom: var(--safe-bottom);
  background: rgba(10,11,15,.97);
}
.device-shell .bottom-nav-inner {
  max-width: none;
  height: 74px;
}
.device-shell .modal-backdrop {
  position: absolute;
  inset: 0;
  padding-top: 60px;
}
.device-shell .modal-sheet {
  max-height: calc(100% - 10px);
}
.device-shell .offline-banner {
  width: calc(100% - 24px);
}
.asset-row {
  min-height: 70px;
}
.page-title h1 {
  font-size: clamp(24px, 7vw, 30px);
}
.page-title p {
  font-size: 12px;
}
@media (max-width: 760px) {
  .site-stage {
    padding: 0;
  }
  .device-shell {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }
  .card-bound-auth.auth-shell,
  .device-shell .app-shell {
    min-height: 100vh;
    min-height: 100dvh;
  }
  .header-actions .lang-switch {
    display: none;
  }
  .lang-switch button {
    min-width: 56px;
  }
}
@media (min-width: 761px) {
  .header-actions .lang-switch {
    display: inline-flex;
  }
  .auth-top-row .lang-switch {
    display: inline-flex;
  }
}
.header-brand-center { gap: 3px; }
.header-brand-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}
.header-brand-line .lang-switch {
  transform: scale(.92);
  transform-origin: center;
}
.header-brand-line .lang-switch button {
  min-width: 46px;
  height: 28px;
  font-size: 10px;
  padding: 0 8px;
}
.header-actions .lang-switch { display: none !important; }
@media (max-width: 760px) {
  .header-brand-line {
    gap: 6px;
  }
  .header-brand-line .lang-switch {
    transform: scale(.84);
  }
}

/* V4 — top-aligned app-card, single-language flag, fixed 12-word creation */
.flag-toggle {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 14px;
  background: rgba(255,255,255,.045);
  color: #fff;
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}
.flag-toggle:hover { border-color: rgba(184,255,59,.25); background: rgba(184,255,59,.055); }
.flag-toggle:active { transform: scale(.97); }

.auth-device {
  min-height: auto;
  max-height: calc(100dvh - 28px);
  overflow-y: auto;
  scrollbar-width: none;
}
.auth-device::-webkit-scrollbar { display: none; }
.auth-device .card-bound-auth.auth-shell {
  min-height: 0;
  display: block;
  place-items: initial;
  overflow: visible;
  padding: calc(16px + var(--safe-top)) 14px calc(18px + var(--safe-bottom));
}
.auth-top-fixed {
  margin: 0 0 18px;
  padding: 0 1px;
}
.auth-top-fixed .brand-lockup { margin: 0; }
.ultra-compact-hero {
  margin: 0 2px 16px;
  text-align: left;
}
.ultra-compact-hero h2 {
  margin: 0 0 7px;
  font-size: clamp(34px, 8vw, 42px);
  line-height: .98;
}
.ultra-compact-hero p {
  margin: 0;
  max-width: 360px;
  font-size: 12px;
  line-height: 1.45;
}
.auth-mode-switch { margin: 0 0 12px; }
.auth-mode-switch button { min-height: 42px; }
.compact-auth-form { margin-top: 0; }
.auth-form-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.auth-form-title > div { min-width: 0; }
.auth-form-title strong,
.auth-form-title span { display: block; }
.auth-form-title strong { font-size: 15px; letter-spacing: -.015em; }
.auth-form-title > div > span { margin-top: 4px; color: #7e8696; font-size: 10px; }
.seed-length-badge {
  width: 38px;
  height: 30px;
  display: grid !important;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(184,255,59,.08);
  border: 1px solid rgba(184,255,59,.17);
  color: #d6ff89;
  font-size: 11px !important;
  font-weight: 900;
}
.critical-wallet-warning {
  display: grid;
  grid-template-columns: 38px minmax(0,1fr);
  gap: 11px;
  align-items: start;
  margin-bottom: 15px;
  padding: 13px;
  border: 1px solid rgba(255,174,80,.18);
  border-radius: 15px;
  background: rgba(255,174,80,.06);
}
.critical-wallet-warning.compact-warning { margin-bottom: 13px; }
.critical-wallet-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255,174,80,.09);
  color: #ffd28f;
  font-weight: 900;
}
.critical-wallet-icon svg { width: 18px; height: 18px; }
.critical-wallet-warning strong { display: block; font-size: 12px; color: #f4d8aa; }
.critical-wallet-warning p { margin: 5px 0 0; color: #ad9b82; font-size: 10.5px; line-height: 1.5; }
.passphrase-explainer {
  margin: 10px 1px 0;
  padding: 10px 11px;
  border-radius: 12px;
  background: rgba(255,255,255,.026);
  color: #7f8797;
  font-size: 10px;
  line-height: 1.45;
}
.creation-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.025);
}
.creation-summary-row span { color: #808898; font-size: 10px; }
.creation-summary-row strong { color: #d6ff89; font-size: 10px; }
.create-wallet-form .field-label:not(:first-child) { margin-top: 14px; }

/* app header: brand + one flag on top, USD/EUR explicit below */
.device-shell .app-header-two-row {
  display: block;
  min-height: auto;
  padding: calc(10px + var(--safe-top)) 11px 9px;
}
.app-header-main {
  display: flex;
  align-items: center;
  gap: 8px;
}
.app-header-main .header-center { flex: 1; }
.header-brand-line .flag-toggle {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  font-size: 16px;
}
.fiat-header-switch {
  width: 118px;
  margin: 8px auto 0;
  padding: 3px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.07);
  background: rgba(255,255,255,.03);
}
.fiat-header-switch button {
  min-height: 28px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #777f8f;
  font-size: 9px;
  font-weight: 900;
  cursor: pointer;
}
.fiat-header-switch button.active { background: #f3f5f8; color: #090b10; }

@media (min-width: 761px) {
  .auth-device { width: min(100%, 430px); }
  .auth-device .card-bound-auth.auth-shell { min-height: 0 !important; }
  .auth-top-fixed,
  .ultra-compact-hero,
  .auth-footer { text-align: left; }
  .auth-top-fixed .brand-lockup { justify-content: flex-start; }
}

@media (max-width: 760px) {
  .auth-device {
    min-height: 100dvh;
    max-height: none;
  }
  .auth-device .card-bound-auth.auth-shell { min-height: 100dvh; }
  .ultra-compact-hero { margin-top: 2px; }
  .flag-toggle { width: 40px; height: 40px; }
}

/* V5 — compact dashboard header, fixed bottom navigation, wallet visibility drawer */
.coin-logo-image {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 5px 16px rgba(0,0,0,.2);
}
.coin-logo-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.app-device {
  height: min(920px, calc(100dvh - 28px));
  min-height: 0;
}
.app-device .app-shell {
  position: relative;
  height: 100%;
  min-height: 0;
  padding-bottom: 0;
  overflow: hidden;
}
.app-device .app-frame {
  height: calc(100% - 74px - var(--safe-bottom));
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.app-device .app-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.app-device .app-content::-webkit-scrollbar { display: none; }

.device-shell .dashboard-header-compact {
  position: relative;
  top: auto;
  flex: 0 0 auto;
  min-height: calc(58px + var(--safe-top));
  padding: calc(9px + var(--safe-top)) 11px 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(8,10,15,.94);
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.header-left-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}
.dashboard-brand-name {
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  letter-spacing: .08em;
  font-weight: 900;
}
.dashboard-header-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  flex: 0 0 auto;
}
.dashboard-header-compact .profile-button,
.dashboard-header-compact .flag-toggle,
.dashboard-header-compact .icon-button {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  border-radius: 12px;
}
.dashboard-header-compact .profile-button { border-radius: 50%; }
.dashboard-header-compact .flag-toggle {
  font-size: 20px;
  padding: 0;
}
.fiat-compact-button {
  width: 54px;
  height: 40px;
  min-width: 54px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #101219;
  color: #e6e9ef;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .04em;
  cursor: pointer;
}
.dashboard-scroll-content { padding-top: 10px !important; padding-bottom: 22px !important; }
.compact-balance-card { min-height: 178px; }
.balance-label { margin-top: 22px; }

.wallet-manager-card {
  width: 100%;
  min-height: 68px;
  margin-top: 11px;
  padding: 10px 11px;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 17px;
  background: linear-gradient(135deg, rgba(255,255,255,.035), rgba(255,255,255,.015));
  color: inherit;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  cursor: pointer;
}
.wallet-manager-preview {
  min-width: 62px;
  height: 32px;
  display: flex;
  align-items: center;
  padding-left: 1px;
}
.wallet-manager-preview .coin-logo-image {
  margin-right: -8px;
  border: 2px solid #101219;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
}
.wallet-manager-copy { min-width: 0; flex: 1; }
.wallet-manager-copy strong,
.wallet-manager-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wallet-manager-copy strong { font-size: 12px; }
.wallet-manager-copy span { margin-top: 4px; color: #737c8c; font-size: 9px; }
.wallet-manager-eye {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 10px;
  background: rgba(184,255,59,.06);
  color: #ccff78;
}
.wallet-manager-eye svg { width: 17px; height: 17px; }
.wallet-list-section { margin-top: 17px; }

.wallet-manager-overlay {
  position: absolute;
  z-index: 90;
  inset: 0;
  background: rgba(0,0,0,.44);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  justify-content: flex-end;
  overflow: hidden;
}
.wallet-manager-panel {
  width: min(90%, 385px);
  height: 100%;
  background: #0c0e14;
  border-left: 1px solid rgba(255,255,255,.085);
  box-shadow: -28px 0 70px rgba(0,0,0,.42);
  display: flex;
  flex-direction: column;
  animation: walletPanelIn .2s ease-out;
}
@keyframes walletPanelIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
.wallet-manager-panel-header {
  min-height: calc(62px + var(--safe-top));
  padding: calc(12px + var(--safe-top)) 12px 10px 15px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.wallet-manager-panel-header > div { min-width: 0; }
.wallet-manager-panel-header strong,
.wallet-manager-panel-header span { display: block; }
.wallet-manager-panel-header strong { font-size: 14px; }
.wallet-manager-panel-header span { margin-top: 4px; color: #7d8595; font-size: 9px; }
.wallet-manager-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 9px 10px calc(16px + var(--safe-bottom));
  scrollbar-width: none;
}
.wallet-manager-list::-webkit-scrollbar { display: none; }
.wallet-manager-row {
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 8px;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.wallet-manager-row-copy { min-width: 0; flex: 1; }
.wallet-manager-row-copy strong,
.wallet-manager-row-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wallet-manager-row-copy strong { font-size: 12px; }
.wallet-manager-row-copy span { margin-top: 4px; color: #747c8c; font-size: 9px; }
.visibility-toggle {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.visibility-toggle svg { width: 18px; height: 18px; }
.visibility-toggle.visible { color: #cfff76; background: rgba(184,255,59,.055); border-color: rgba(184,255,59,.13); }
.visibility-toggle.hidden { color: #626a79; }

@media (max-width: 760px) {
  .app-device {
    height: 100dvh;
    min-height: 100dvh;
  }
  .app-device .app-shell { height: 100dvh; min-height: 100dvh; }
  .app-device .app-frame { height: calc(100dvh - 74px - var(--safe-bottom)); }
  .dashboard-brand-name { font-size: 12px; max-width: 94px; }
  .dashboard-header-controls { gap: 6px; }
  .dashboard-header-compact .profile-button,
  .dashboard-header-compact .flag-toggle,
  .dashboard-header-compact .icon-button { width: 38px; height: 38px; min-width: 38px; min-height: 38px; }
  .fiat-compact-button { width: 50px; min-width: 50px; height: 38px; }
}

@media (max-width: 370px) {
  .dashboard-brand-name { display: none; }
  .header-left-brand { gap: 0; }
  .dashboard-header-controls { gap: 5px; }
  .dashboard-header-compact .profile-button,
  .dashboard-header-compact .flag-toggle,
  .dashboard-header-compact .icon-button { width: 36px; height: 36px; min-width: 36px; min-height: 36px; }
  .fiat-compact-button { width: 46px; min-width: 46px; height: 36px; }
}

/* V6 — simplified create-wallet flow */
.ultra-compact-hero {
  margin-bottom: 10px;
}
.ultra-compact-hero h2 {
  margin: 0 0 5px;
  font-size: clamp(22px, 5.2vw, 26px);
  line-height: 1;
  letter-spacing: -.035em;
}
.ultra-compact-hero p {
  max-width: 330px;
  font-size: 10px;
  line-height: 1.4;
}
.auth-mode-switch {
  padding: 3px;
  margin-bottom: 9px;
  border-radius: 13px;
}
.auth-mode-switch button {
  min-height: 32px;
  padding: 5px 8px;
  border-radius: 9px;
  font-size: 11px;
}
.create-first-warning {
  margin-bottom: 12px;
  padding: 11px;
}
.create-first-warning .critical-wallet-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}
.create-first-warning strong { font-size: 11px; }
.create-first-warning p { font-size: 9.8px; line-height: 1.45; }
.seed-review-form .auth-form-title { margin-bottom: 10px; }
.seed-short-warning {
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(184,255,59,.13);
  border-radius: 13px;
  background: rgba(184,255,59,.045);
}
.seed-short-warning strong,
.seed-short-warning span {
  display: block;
}
.seed-short-warning strong {
  color: #d9ff96;
  font-size: 11px;
}
.seed-short-warning span {
  margin-top: 3px;
  color: #899384;
  font-size: 9.5px;
  line-height: 1.4;
}
.seed-reveal-card {
  width: 100%;
  min-height: 126px;
  border: 1px dashed rgba(255,255,255,.12);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.012));
  color: #cbd1db;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}
.seed-reveal-card:hover {
  border-color: rgba(184,255,59,.28);
  background: rgba(184,255,59,.035);
}
.seed-reveal-eye {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(184,255,59,.08);
  color: #d7ff8f;
}
.seed-reveal-eye svg { width: 19px; height: 19px; }
.seed-reveal-card strong { font-size: 12px; }
.seed-reveal-card > span:last-child { color: #727a89; font-size: 9.5px; }
.revealed-seed {
  margin-top: 0;
  border-color: rgba(184,255,59,.12);
}
.seed-visibility-toggle {
  min-height: 32px;
  margin: 7px auto 0;
  padding: 5px 10px;
  border: 0;
  background: transparent;
  color: #818a9a;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 9.5px;
  cursor: pointer;
}
.seed-visibility-toggle svg { width: 15px; height: 15px; }
.seed-action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}
.seed-action-button {
  min-height: 40px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  background: rgba(255,255,255,.025);
  color: #b9c0cc;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}
.seed-action-button svg { width: 16px; height: 16px; }
.seed-action-button:hover:not(:disabled) {
  border-color: rgba(184,255,59,.22);
  color: #d9ff99;
  background: rgba(184,255,59,.035);
}
.seed-action-button:disabled {
  opacity: .32;
  cursor: not-allowed;
}
.seed-action-message {
  margin: 7px 1px 0;
  color: #a4bb83;
  font-size: 9.5px;
  text-align: center;
}
.passphrase-stage {
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.055);
}
.passphrase-stage .field-label:not(:first-child),
.pass-confirm-wrap .field-label {
  margin-top: 11px;
}
.pass-confirm-wrap.is-hidden,
.field-hint.is-hidden {
  display: none !important;
}
.passphrase-stage .passphrase-explainer {
  margin-top: 8px;
  padding: 8px 10px;
  font-size: 9.2px;
}
.seed-review-form .confirm-check {
  margin-top: 12px;
}
.seed-review-form .primary-button {
  margin-top: 13px;
}

@media (max-width: 420px) {
  .ultra-compact-hero h2 { font-size: 22px; }
  .ultra-compact-hero p { font-size: 9.5px; }
  .auth-mode-switch button { min-height: 31px; }
  .seed-reveal-card { min-height: 116px; }
  .phrase-grid.phrase-12 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* V7 navigation, security, activity and flag fixes */
.flag-toggle {
  overflow: hidden;
  padding: 0;
  display: grid;
  place-items: center;
}
.flag-toggle img {
  width: 22px;
  height: 15px;
  display: block;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.12);
}
.dashboard-header-controls {
  gap: 9px;
}
.security-cards,
.security-cards-stacked {
  grid-template-columns: 1fr !important;
  display: grid;
  gap: 10px;
}
.security-cards-stacked .info-card {
  min-height: 0;
  align-items: flex-start;
}
.page-title-with-back {
  display: grid;
  grid-template-columns: 40px minmax(0,1fr);
  align-items: start;
  gap: 10px;
}
.page-back-button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #101219;
  color: #d2d7e0;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.page-back-button svg { width: 18px; height: 18px; }
.manage-wallets-page {
  min-height: 100%;
}
.wallet-manager-list-inline {
  max-height: none;
  overflow: visible;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #0d0f14;
}
.wallet-manager-list-inline .wallet-manager-row:last-child { border-bottom: 0; }
.page-title-activity {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.page-title-activity > div { min-width: 0; }
.activity-refresh {
  flex: 0 0 auto;
  margin-top: 2px;
}
.activity-sync-banner {
  display: flex;
  gap: 9px;
  align-items: center;
  margin-bottom: 10px;
  padding: 11px 12px;
  border-radius: 13px;
  border: 1px solid rgba(184,255,59,.13);
  background: rgba(184,255,59,.055);
  color: #bdcf9f;
  font-size: 10px;
  line-height: 1.45;
}
.activity-sync-banner svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  animation: spin .85s linear infinite;
}
.activity-list-full {
  overflow: visible;
}
.tx-row-full {
  display: grid;
  grid-template-columns: 36px minmax(0,1fr) auto 34px;
  align-items: center;
  gap: 9px;
}
.tx-direction.outgoing {
  color: #ff9aa6;
  background: rgba(255,91,110,.06);
}
.tx-explorer-button {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #101219;
  color: #9ea6b4;
  display: grid;
  place-items: center;
  text-decoration: none;
}
.tx-explorer-button svg { width: 15px; height: 15px; }
@media (max-width: 380px) {
  .dashboard-header-controls { gap: 7px; }
  .tx-row-full { grid-template-columns: 34px minmax(0,1fr) 30px; }
  .tx-row-full .tx-amount { grid-column: 2 / 3; text-align: left; max-width: none; }
  .tx-row-full .tx-explorer-button { grid-column: 3; grid-row: 1 / span 2; }
  .page-title-activity { display: block; }
  .activity-refresh { margin-top: 10px; }
}

/* V8 — seed actions, legal links, smaller coin logos */
.seed-title-row {
  align-items: center;
}
.seed-header-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
}
.seed-icon-action {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 10px;
  background: rgba(255,255,255,.025);
  color: #bbc3cf;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color .14s ease, background .14s ease, color .14s ease;
}
.seed-icon-action svg {
  width: 15px;
  height: 15px;
}
.seed-icon-action:hover:not(:disabled) {
  color: #d8ff93;
  border-color: rgba(184,255,59,.24);
  background: rgba(184,255,59,.04);
}
.seed-icon-action:disabled {
  opacity: .28;
  cursor: not-allowed;
}
.seed-review-form #new-passphrase,
.seed-review-form #confirm-passphrase {
  font-size: 13px;
}
.seed-review-form .confirm-check {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}
.seed-review-form .confirm-check > span {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  flex: 0 0 18px;
}
.seed-review-form .confirm-check > span svg {
  width: 11px;
  height: 11px;
}
.seed-review-form .confirm-check p {
  margin: 0;
  min-width: 0;
  font-size: 8.3px;
  line-height: 1.1;
  letter-spacing: -.01em;
  white-space: nowrap;
  color: #8a929f;
}
.legal-footer {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  text-align: center;
  color: #5f6774;
}
.legal-footer > div:first-child {
  font-size: 8.5px;
  letter-spacing: .01em;
  line-height: 1.35;
}
.legal-footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.legal-footer-links button {
  border: 0;
  background: transparent;
  color: #89919f;
  padding: 3px 4px;
  font-size: 9px;
  font-weight: 760;
  cursor: pointer;
}
.legal-footer-links button:hover { color: #d5ff8a; }
.legal-settings-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 11px;
}
.legal-settings-actions button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #090b10;
  color: #a6adba;
  font-size: 11px;
  font-weight: 820;
  cursor: pointer;
}
.legal-settings-actions button:hover {
  border-color: rgba(184,255,59,.22);
  color: #d6ff8a;
}
.legal-modal .modal-body {
  padding-top: 12px;
}
.legal-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #090b10;
}
.legal-tabs button {
  min-height: 38px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #858d9c;
  font-size: 11px;
  font-weight: 820;
  cursor: pointer;
}
.legal-tabs button.active {
  background: #f3f6f8;
  color: #090b0e;
}
.legal-copy {
  padding: 2px 2px 12px;
}
.legal-copy h3 {
  margin: 0 0 12px;
  font-size: 17px;
  letter-spacing: -.025em;
}
.legal-copy p {
  margin: 0 0 12px;
  color: #949baa;
  font-size: 10.5px;
  line-height: 1.58;
}
.legal-copy strong { color: #d4d9e1; }
@media (max-width: 380px) {
  .seed-review-form .confirm-check p {
    font-size: 7.4px;
  }
  .seed-header-actions { gap: 7px; }
  .seed-icon-action { width: 32px; height: 32px; }
  .legal-footer > div:first-child { font-size: 7.8px; }
}
