/* Light theme override (App Settings -> App Theme -> Light/System). */
body.theme-light {
    --bg-base: #eef0f4;
    --bg-sidebar: #ffffff;
    --bg-content: #f4f5f8;
    --bg-card: #ffffff;
    --bg-card-hover: #f0f1f5;
    --bg-elevated: #e7e8ee;
    --bg-input: #ffffff;
    --text-primary: #0d0d12;
    --text-secondary: #5f5f6b;
    --text-tertiary: #9a9aa6;
    --border: rgba(0,0,0,0.08);
}

:root {
    --bg-base: #000000;
    --bg-sidebar: #0c0c0e;
    --bg-content: #0f0f12;
    --bg-card: #18181d;
    --bg-card-hover: #1f1f26;
    --bg-elevated: #26262e;
    --bg-input: #18181d;
    --text-primary: #ffffff;
    --text-secondary: #9a9aab;
    --text-tertiary: #5e5e6e;
    --accent: #58d97b;
    --accent-hover: #6ae08a;
    --accent-dim: rgba(88, 217, 123, 0.1);
    --blue: #5b9cf6;
    --blue-dim: rgba(91, 156, 246, 0.1);
    --orange: #f5a623;
    --orange-dim: rgba(245, 166, 35, 0.1);
    --red: #f25c54;
    --red-dim: rgba(242, 92, 84, 0.1);
    --purple: #a855f7;
    --purple-dim: rgba(168, 85, 247, 0.1);
    --teal: #14b8a6;
    --teal-dim: rgba(20, 184, 166, 0.1);
    --border: rgba(255, 255, 255, 0.05);
    --radius: 14px;
    --radius-sm: 10px;
    --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', system-ui, sans-serif;
    --transition: 0.15s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    height: 100%;
    font-family: var(--font);
    background: var(--bg-base);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
}

#app {
    display: flex;
    height: 100vh;
}

/* ===== SIDEBAR ===== */
#sidebar {
    width: 220px;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 16px 12px;
    -webkit-app-region: drag;
    flex-shrink: 0;
}
#sidebar.hidden { display: none; }

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px 20px;
    -webkit-app-region: drag;
}
.sidebar-logo { width: 28px; height: 28px; border-radius: 7px; background: #fff; }
.sidebar-title { font-size: 15px; font-weight: 700; letter-spacing: -0.2px; }

.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    -webkit-app-region: no-drag;
}
.nav-item:hover { color: var(--text-primary); background: rgba(255, 255, 255, 0.04); }
.nav-item.active { color: var(--text-primary); background: rgba(255, 255, 255, 0.07); }

.sidebar-bottom { border-top: 1px solid var(--border); padding-top: 12px; }
.lock-btn { color: var(--text-tertiary); }
.lock-btn:hover { color: var(--red); }

/* ===== MAIN CONTENT ===== */
#content {
    flex: 1;
    overflow-y: auto;
    background: var(--bg-content);
    padding: 32px 40px;
}
#content::-webkit-scrollbar { width: 8px; }
#content::-webkit-scrollbar-track { background: transparent; }
#content::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 4px; }
#content::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.12); }

/* ===== PAGE ANIMATION ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.page-enter { animation: fadeIn 0.25s ease forwards; }

/* ===== PORTFOLIO HEADER ===== */
.portfolio-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.wallet-header { margin-bottom: 28px; }
.wallet-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
}
.wallet-balance { font-size: 40px; font-weight: 700; letter-spacing: -1px; margin-bottom: 6px; }
.wallet-change { font-size: 14px; font-weight: 500; }
.wallet-change.positive { color: var(--accent); }
.wallet-change.negative { color: var(--red); }

.refresh-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition);
}
.refresh-btn:hover { color: var(--text-primary); background: var(--bg-card-hover); border-color: rgba(255,255,255,0.1); }
.refresh-btn:active { transform: scale(0.92); }
.refresh-btn.spinning svg { animation: spin 0.8s linear infinite; }
.refresh-btn svg { width: 18px; height: 18px; }

/* ===== ACTION PILLS ===== */
.actions-row {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.action-pill {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}
.action-pill:active { transform: scale(0.95); }
.action-pill svg { width: 16px; height: 16px; flex-shrink: 0; }

.action-pill.buy-pill { color: var(--accent); }
.action-pill.buy-pill:hover { background: var(--accent-dim); border-color: rgba(88,217,123,0.25); }
.action-pill.sell-pill { color: var(--blue); }
.action-pill.sell-pill:hover { background: var(--blue-dim); border-color: rgba(91,156,246,0.25); }
.action-pill.swap-pill { color: var(--orange); }
.action-pill.swap-pill:hover { background: var(--orange-dim); border-color: rgba(245,166,35,0.25); }
.action-pill.send-pill { color: var(--purple); }
.action-pill.send-pill:hover { background: var(--purple-dim); border-color: rgba(168,85,247,0.25); }
.action-pill.receive-pill { color: var(--teal); }
.action-pill.receive-pill:hover { background: var(--teal-dim); border-color: rgba(20,184,166,0.25); }

/* ===== TOKEN LIST ===== */
.section-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.tokens-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.token-row {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    cursor: pointer;
    transition: background var(--transition), transform 0.1s ease;
}
.token-row:hover { background: var(--bg-card-hover); }
.token-row:active { transform: scale(0.995); }
.token-row:not(:last-child) { border-bottom: 1px solid var(--border); }

.token-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    margin-right: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    color: #fff;
    flex-shrink: 0;
    overflow: hidden;
}
.token-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.token-info { flex: 1; min-width: 0; }
.token-name { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.token-network { font-size: 12px; color: var(--text-tertiary); }

.token-values { text-align: right; }
.token-fiat { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.token-amount { font-size: 12px; color: var(--text-tertiary); }

.token-change { width: 65px; text-align: right; font-size: 12px; font-weight: 600; margin-left: 16px; }
.token-change.positive { color: var(--accent); }
.token-change.negative { color: var(--red); }

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 56px 20px;
    color: var(--text-tertiary);
}
.empty-state-icon {
    width: 80px;
    height: 80px;
    border-radius: 24px;
    background: rgba(88,217,123,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}
.empty-state-icon svg { width: 36px; height: 36px; color: var(--accent); opacity: 0.6; }
.empty-state h3 { font-size: 16px; color: var(--text-secondary); margin-bottom: 6px; font-weight: 600; }
.empty-state p { font-size: 13px; color: var(--text-tertiary); line-height: 1.5; }
.empty-state .btn { max-width: 200px; margin: 18px auto 0; }

/* ===== TOKEN DETAIL ===== */
.detail-back {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    background: none;
    border: none;
    margin-bottom: 20px;
    padding: 4px 0;
    transition: all var(--transition);
}
.detail-back:hover { color: var(--text-primary); transform: translateX(-3px); }

.detail-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}
.detail-header-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    overflow: hidden;
}
.detail-header-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.detail-header-text h1 { font-size: 22px; font-weight: 700; }
.detail-header-text span { font-size: 13px; color: var(--text-tertiary); }

.detail-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}
.detail-stat {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
}
.detail-stat .label { font-size: 11px; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.detail-stat .value { font-size: 18px; font-weight: 700; }
.detail-stat .sub { font-size: 12px; color: var(--text-secondary); margin-top: 3px; }

.chart-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
}
.chart-periods { display: flex; gap: 4px; margin-bottom: 14px; }
.period-btn {
    background: none;
    border: none;
    color: var(--text-tertiary);
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition);
}
.period-btn:hover { color: var(--text-secondary); background: rgba(255,255,255,0.03); }
.period-btn.active { color: var(--text-primary); background: var(--bg-elevated); }

.chart-area { width: 100%; height: 180px; }
.chart-area canvas { width: 100%; height: 100%; }

.address-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
}
.address-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}
.address-header .label { font-size: 11px; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.5px; }
.address-copy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: none;
    border: 1px solid var(--border);
    color: var(--text-tertiary);
    cursor: pointer;
    transition: all var(--transition);
}
.address-copy-btn:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }
.address-copy-btn:active { transform: scale(0.9); }
.address-copy-btn svg { width: 14px; height: 14px; }
.address-box .addr {
    font-family: 'SF Mono', 'Menlo', monospace;
    font-size: 12.5px;
    color: var(--text-secondary);
    overflow-wrap: anywhere;
    line-height: 1.75;
    letter-spacing: 0.4px;
    background: var(--bg-input);
    border-radius: 8px;
    padding: 10px 12px;
}

/* ===== MARKETS ===== */
.markets-header { margin-bottom: 20px; }
.markets-header h1 { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.markets-header p { font-size: 13px; color: var(--text-secondary); }

.search-box { margin-bottom: 16px; }
.search-input {
    width: 100%;
    max-width: 320px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 13px;
    color: var(--text-primary);
    font-family: var(--font);
    outline: none;
    transition: border-color var(--transition);
}
.search-input:focus { border-color: rgba(255,255,255,0.15); }
.search-input::placeholder { color: var(--text-tertiary); }

.market-list {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.market-row {
    display: flex;
    align-items: center;
    padding: 12px 18px;
    cursor: pointer;
    transition: background var(--transition);
}
.market-row:hover { background: var(--bg-card-hover); }
.market-row:not(:last-child) { border-bottom: 1px solid var(--border); }

.market-rank { width: 28px; font-size: 12px; color: var(--text-tertiary); font-weight: 500; }

.market-info { flex: 1; min-width: 0; }
.market-name { font-size: 14px; font-weight: 600; margin-bottom: 1px; }
.market-symbol { font-size: 11px; color: var(--text-tertiary); text-transform: uppercase; }

.market-price { width: 110px; text-align: right; font-size: 14px; font-weight: 600; }
.market-change { width: 70px; text-align: right; font-size: 12px; font-weight: 600; }
.market-change.positive { color: var(--accent); }
.market-change.negative { color: var(--red); }
.market-mcap { width: 100px; text-align: right; font-size: 12px; color: var(--text-tertiary); }

/* Market Expanded Detail */
.market-expanded {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,0.015);
    opacity: 0;
}
.market-expanded.visible {
    max-height: 220px;
    opacity: 1;
}
.market-expanded-inner {
    padding: 16px 18px 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.market-expanded-chart { height: 120px; }
.market-expanded-chart canvas { width: 100%; height: 100%; }
.market-expanded-stats { display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.market-expanded-stat .label {
    font-size: 10px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}
.market-expanded-stat .value { font-size: 14px; font-weight: 600; }

/* ===== SETTINGS ===== */
.settings-header { margin-bottom: 28px; }
.settings-header h1 { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.settings-header p { font-size: 13px; color: var(--text-secondary); }

.settings-group { margin-bottom: 28px; }
.settings-group-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 10px;
}

.settings-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
}
.settings-row:not(:last-child) { border-bottom: 1px solid var(--border); }
.settings-row h4 { font-size: 14px; font-weight: 500; margin-bottom: 2px; }
.settings-row p { font-size: 12px; color: var(--text-tertiary); }

.settings-btn {
    padding: 6px 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}
.settings-btn:hover { background: rgba(255,255,255,0.1); }
.settings-btn:active { transform: scale(0.95); }
.settings-btn.danger { color: var(--red); border-color: rgba(242,92,84,0.2); background: var(--red-dim); }
.settings-btn.danger:hover { border-color: var(--red); }

/* ===== iOS-style Settings rows ===== */
.settings-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background var(--transition);
}
.settings-item.static { cursor: default; }
.settings-item:hover:not(.static) { background: var(--bg-card-hover); }
.settings-item:not(:last-child) { border-bottom: 1px solid var(--border); }

/* Faithful to Tangem: plain tinted glyph on the card, NO colored square. */
.settings-item-icon {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.settings-item-icon svg { width: 22px; height: 22px; }
/* Real ds-core SVGs ship with dark fills; tint them to the muted icon color. */
.settings-item-glyph { width: 22px; height: 22px; filter: brightness(0) invert(0.62); display: block; }
.settings-item-icon.danger .settings-item-glyph {
    /* approximate Tangem's warning/red icon tint */
    filter: brightness(0) saturate(100%) invert(45%) sepia(58%) saturate(2300%) hue-rotate(330deg) brightness(95%);
}

.settings-item-body { flex: 1; min-width: 0; }
.settings-item-title { font-size: 14px; font-weight: 500; color: var(--text-primary); }
.settings-item-sub { font-size: 12px; color: var(--text-tertiary); margin-top: 1px; }

.settings-item-value {
    font-size: 13px;
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    gap: 4px;
}
.settings-item-value svg { width: 16px; height: 16px; opacity: 0.6; }
/* Chevron.svg ships with a near-black fill; invert to a muted grey disclosure. */
.settings-chevron { width: 15px; height: 15px; filter: brightness(0) invert(0.42); vertical-align: middle; }
.settings-item-title.danger { color: var(--red); }

/* iOS toggle switch */
.ios-toggle {
    position: relative;
    width: 42px;
    height: 25px;
    border-radius: 13px;
    background: var(--bg-elevated);
    border: none;
    cursor: pointer;
    transition: background 0.25s ease;
    flex-shrink: 0;
}
.ios-toggle::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.25s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.ios-toggle.on { background: var(--accent); }
.ios-toggle.on::after { transform: translateX(17px); }

/* Settings footer with social icons + version */
.settings-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 32px 0 16px;
}
.social-row { display: flex; gap: 14px; }
.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition);
}
.social-btn:hover { color: var(--text-primary); background: var(--bg-card-hover); transform: translateY(-2px); }
.social-btn svg { width: 18px; height: 18px; }
.app-version { font-size: 12px; color: var(--text-tertiary); }

/* ===== Markets pagination ===== */
.market-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
    padding-bottom: 8px;
}
.page-btn {
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border-radius: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}
.page-btn:hover:not(:disabled) { background: var(--bg-card-hover); color: var(--text-primary); }
.page-btn.active { background: var(--accent); color: #000; border-color: var(--accent); }
.page-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.page-ellipsis { min-width: 20px; text-align: center; color: var(--text-tertiary); font-size: 13px; align-self: center; user-select: none; }
.market-count { text-align: center; font-size: 12px; color: var(--text-tertiary); margin-top: 8px; }

/* Markets loading hint */
.markets-loading {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
    font-size: 12px;
    color: var(--text-tertiary);
}
.mini-spinner {
    width: 12px;
    height: 12px;
    border: 2px solid rgba(127,127,140,0.35);
    border-top-color: var(--accent);
    border-radius: 50%;
    display: inline-block;
    animation: spin 0.7s linear infinite;
}

/* Modal select list (currency/theme) */
.select-list { display: flex; flex-direction: column; margin: 4px 0 8px; }
.select-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 14px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: background var(--transition);
}
.select-item:hover { background: var(--bg-card-hover); }
.select-item.selected { color: var(--accent); }
.select-check { color: var(--accent); font-weight: 700; }

/* ===== WELCOME / UNLOCK ===== */
.welcome-page, .unlock-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    padding: 40px;
}
.welcome-card {
    max-width: 400px;
    width: 100%;
    text-align: center;
}
.welcome-card.welcome-card-wide {
    max-width: 520px;
}
.welcome-card .logo { margin-bottom: 20px; }
.welcome-card .logo img { width: 56px; height: 56px; border-radius: 14px; background: #fff; }
.welcome-card h1 { font-size: 24px; font-weight: 700; margin-bottom: 6px; }
.welcome-card .subtitle { font-size: 14px; color: var(--text-secondary); margin-bottom: 28px; line-height: 1.5; }

/* Welcome Options */
.welcome-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}
.welcome-option-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 28px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    font-family: var(--font);
}
.welcome-option-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255,255,255,0.12);
    transform: translateY(-2px);
}
.welcome-option-card:active { transform: translateY(0) scale(0.98); }
.welcome-option-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.welcome-option-icon svg { width: 24px; height: 24px; }
.welcome-option-icon.green { background: var(--accent-dim); color: var(--accent); }
.welcome-option-icon.blue { background: var(--blue-dim); color: var(--blue); }
.welcome-option-text h3 { font-size: 14px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.welcome-option-text p { font-size: 12px; color: var(--text-tertiary); line-height: 1.4; }

.btn-link {
    background: none;
    border: none;
    color: var(--text-tertiary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px;
    font-family: var(--font);
    transition: color var(--transition);
}
.btn-link:hover { color: var(--text-secondary); }

/* ===== CREATE WALLET FLOW ===== */
.create-wallet-steps { margin-bottom: 28px; }

.steps-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}
.step-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-tertiary);
    transition: all 0.3s ease;
}
.step-dot.active {
    background: var(--accent-dim);
    border-color: var(--accent);
    color: var(--accent);
}
.step-line {
    width: 40px;
    height: 2px;
    background: var(--border);
    transition: background 0.3s ease;
}
.step-line.active { background: var(--accent); }

.create-step { text-align: center; }
.create-step h2 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.step-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}
.step-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}
.step-icon svg { width: 28px; height: 28px; }
.step-icon.green { background: var(--accent-dim); color: var(--accent); }
.step-icon.blue { background: var(--blue-dim); color: var(--blue); }

/* Seed Phrase Grid */
.seed-phrase-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 18px;
}
.seed-word-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: left;
}
.seed-word-num {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-tertiary);
    min-width: 16px;
}
.seed-word-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    font-family: 'SF Mono', 'Menlo', monospace;
}

.seed-warning {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--red-dim);
    border: 1px solid rgba(242,92,84,0.2);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    color: var(--red);
    margin-bottom: 18px;
}

.checkbox-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 18px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}
.checkbox-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    accent-color: var(--accent);
    cursor: pointer;
}

.create-success-anim {
    margin-bottom: 20px;
}
.success-circle.large {
    width: 80px;
    height: 80px;
    margin: 0 auto;
}

.import-tabs {
    display: flex;
    background: var(--bg-card);
    border-radius: 8px;
    padding: 3px;
    margin-bottom: 20px;
}
.import-tab {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-tertiary);
    font-size: 13px;
    font-weight: 600;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition);
}
.import-tab.active { background: var(--bg-elevated); color: var(--text-primary); }

.form-group { margin-bottom: 14px; text-align: left; }
.form-group label { display: block; font-size: 12px; font-weight: 500; color: var(--text-secondary); margin-bottom: 5px; }

.form-group textarea, .form-group input {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 11px 14px;
    font-size: 14px;
    color: var(--text-primary);
    font-family: var(--font);
    outline: none;
    transition: border-color var(--transition);
}
.form-group textarea { height: 80px; resize: none; }
.form-group textarea:focus, .form-group input:focus { border-color: var(--accent); }
.form-group .hint { font-size: 11px; color: var(--text-tertiary); margin-top: 4px; }

.btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    margin-top: 6px;
}
.btn:active { transform: scale(0.97); }
.btn.primary { background: var(--accent); color: #000; }
.btn.primary:hover { background: var(--accent-hover); }
.btn.primary:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.btn.secondary { background: var(--bg-card); color: var(--text-primary); border: 1px solid var(--border); }
.btn.secondary:hover { background: var(--bg-card-hover); }
.btn.danger { background: var(--red); color: #fff; }
.btn.danger:hover { filter: brightness(1.08); }

/* Confirm / wallet-details modal content */
.modal-confirm-text { color: var(--text-secondary); font-size: 14px; line-height: 1.5; text-align: center; margin: 4px 0 8px; }
.wallet-detail-sub { color: var(--text-tertiary); font-size: 12px; text-align: center; margin-bottom: 12px; }
.wallet-addr-list { display: flex; flex-direction: column; gap: 10px; max-height: 400px; overflow-y: auto; }
.wallet-addr-row {
    display: flex; align-items: center; gap: 12px;
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); border-radius: 14px;
    padding: 14px 16px; cursor: pointer; transition: all 0.15s ease;
}
.wallet-addr-row:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); }
.wallet-addr-info { flex: 1; min-width: 0; }
.wallet-addr-net { font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 3px; }
.wallet-addr-sub { font-size: 11px; color: rgba(255,255,255,0.4); margin-bottom: 6px; }
.wallet-addr-val { font-family: 'SF Mono','Menlo',monospace; font-size: 11.5px; color: rgba(255,255,255,0.6); word-break: break-all; line-height: 1.4; }
.wallet-addr-copy {
    background: none; border: none; cursor: pointer; color: rgba(255,255,255,0.4);
    padding: 8px; border-radius: 8px; flex-shrink: 0; display: flex; align-items: center;
    transition: all 0.15s ease;
}
.wallet-addr-copy:hover { background: rgba(255,255,255,0.08); color: #fff; }

.manage-token-list { display: flex; flex-direction: column; gap: 8px; }
.manage-token-row {
    display: flex; align-items: center; gap: 12px;
    background: var(--bg-input); border: 1px solid var(--border); border-radius: 10px;
    padding: 10px 12px;
}
.manage-token-info { flex: 1; min-width: 0; }
.manage-token-name { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.manage-token-sym { font-size: 11px; color: var(--text-tertiary); }
.wallet-addr-copy svg { width: 16px; height: 16px; }

/* ===== MODAL SYSTEM ===== */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    pointer-events: none;
}
.modal-backdrop.visible {
    background: rgba(0, 0, 0, 0.6);
    pointer-events: auto;
}

.modal-card {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 32px;
    width: 480px;
    max-width: 92%;
    text-align: center;
    transform: translateY(40px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 24px 80px rgba(0,0,0,0.5);
    position: relative;
}
/* Content-heavy modals (Support / Terms / Privacy) are noticeably wider */
.modal-card:has(.modal-scroll) {
    width: 720px;
}
.modal-backdrop.visible .modal-card {
    transform: translateY(0);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}
.modal-close:hover { background: rgba(255,255,255,0.1); color: var(--text-primary); }
.modal-close svg { width: 16px; height: 16px; }

.modal-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}
.modal-icon svg { width: 28px; height: 28px; }
.modal-icon.green { background: var(--accent-dim); color: var(--accent); }
.modal-icon.orange { background: var(--orange-dim); color: var(--orange); }
.modal-icon.blue { background: var(--blue-dim); color: var(--blue); }
.modal-icon.purple { background: var(--purple-dim); color: var(--purple); }
.modal-icon.teal { background: var(--teal-dim); color: var(--teal); }
.modal-icon.red { background: var(--red-dim); color: var(--red); }

.modal-card h2 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.modal-card .modal-desc { font-size: 13px; color: var(--text-secondary); margin-bottom: 22px; line-height: 1.5; }

.modal-form-group { text-align: left; margin-bottom: 14px; }
.modal-form-group label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}
.modal-form-group input,
.modal-form-group select {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 14px;
    color: var(--text-primary);
    font-family: var(--font);
    outline: none;
    transition: border-color var(--transition);
}
.modal-form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%239a9aab' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
    cursor: pointer;
}
.modal-form-group textarea {
    width: 100%;
    min-height: 100px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 11px 14px;
    font-size: 14px;
    color: var(--text-primary);
    font-family: var(--font);
    outline: none;
    resize: vertical;
    transition: border-color var(--transition);
}
.modal-form-group input:focus,
.modal-form-group select:focus,
.modal-form-group textarea:focus { border-color: rgba(255,255,255,0.15); }

/* Scrollable modal body for tall content (Support / Terms / Privacy) */
.modal-scroll {
    max-height: 62vh;
    overflow-y: auto;
    text-align: left;
    margin: 0 -6px 4px;
    padding: 0 6px;
}
.modal-scroll::-webkit-scrollbar { width: 6px; }
.modal-scroll::-webkit-scrollbar-thumb { background: rgba(127,127,140,0.3); border-radius: 3px; }
.modal-section-title {
    font-size: 11px; font-weight: 600; color: var(--text-tertiary);
    text-transform: uppercase; letter-spacing: 0.6px; margin: 20px 0 10px; text-align: left;
}
#support-form-card .btn { width: 100%; margin-top: 4px; }
.legal-list .legal-section:first-child { padding-top: 4px; }

.modal-hint {
    font-size: 11px;
    color: var(--text-tertiary);
    margin-top: 4px;
}

.modal-estimate {
    background: var(--bg-elevated);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: center;
    margin: 4px 0 8px;
    min-height: 20px;
}

.modal-btn-row { display: flex; gap: 10px; margin-top: 20px; }
.modal-btn-row .btn { margin-top: 0; }

/* ===== MODAL SUCCESS ANIMATION ===== */
.modal-success {
    text-align: center;
    padding: 24px 0 8px;
}
.modal-success h2 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 4px;
}

.success-circle {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    animation: scaleIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.success-circle svg { width: 100%; height: 100%; }
.success-circle circle {
    stroke: var(--accent);
    fill: var(--accent-dim);
    stroke-dasharray: 160;
    stroke-dashoffset: 160;
    animation: drawCircle 0.5s 0.1s ease forwards;
}
.success-circle path {
    stroke: var(--accent);
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: drawCheck 0.3s 0.5s ease forwards;
}

@keyframes scaleIn { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes drawCircle { to { stroke-dashoffset: 0; } }
@keyframes drawCheck { to { stroke-dashoffset: 0; } }

/* ===== RECEIVE MODAL ===== */
.receive-address-box {
    background: rgba(255,255,255,0.03);
    border-radius: 14px;
    padding: 14px 12px 14px 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255,255,255,0.06);
}
.receive-address-box:hover {
    border-color: rgba(255,255,255,0.12);
}
.receive-address {
    font-family: 'SF Mono', 'Menlo', 'Courier New', monospace;
    font-size: 12.5px;
    color: rgba(255,255,255,0.85);
    line-height: 1.5;
    letter-spacing: 0.2px;
    flex: 1;
    word-break: break-all;
}
.receive-copy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    background: none;
    border: none;
    border-radius: 8px;
    color: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.15s ease;
}
.receive-copy-btn:hover {
    color: #fff;
    background: rgba(255,255,255,0.08);
}
.receive-copy-btn svg {
    width: 16px;
    height: 16px;
}
}
.receive-copy-btn:hover { color: var(--text-primary); background: var(--bg-card-hover); }
.receive-copy-btn:active { transform: scale(0.95); }
.receive-copy-btn svg { width: 14px; height: 14px; }

.receive-qr {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}
.receive-qr canvas {
    border-radius: 12px;
    background: #fff;
    padding: 12px;
}

/* ===== UTILITY ===== */
.loading { display: flex; align-items: center; justify-content: center; padding: 60px; }
.spinner {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(255,255,255,0.08);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.chart-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    box-shadow: 0 8px 32px rgba(0,0,0,0.6);
    z-index: 9999;
    animation: fadeUp 0.2s ease;
}
.toast.error { border-color: rgba(242,92,84,0.4); }
@keyframes fadeUp {
    from { opacity: 0; transform: translateX(-50%) translateY(8px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ===== WELCOME STORY CAROUSEL ===== */
.story-screen {
    position: fixed;
    inset: 0;
    z-index: 500;
    background: #010101;
    display: flex;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
    user-select: none;
    cursor: pointer;
}

.story-progress {
    display: flex;
    gap: 5px;
    padding: 16px 28px 0;
    flex-shrink: 0;
}
.story-progress-track {
    flex: 1;
    height: 2px;
    border-radius: 2px;
    background: rgba(255,255,255,0.2);
    overflow: hidden;
}
.story-progress-fill {
    height: 100%;
    width: 0;
    background: #fff;
    border-radius: 2px;
}

.story-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 28px;
    flex-shrink: 0;
}
.story-logo { height: 24px; width: auto; border-radius: 6px; background: #fff; }
.story-skip {
    background: none;
    border: none;
    color: #919191;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 8px;
    transition: color 0.15s ease, background 0.15s ease;
}
.story-skip:hover { color: #fff; background: rgba(255,255,255,0.06); }

.story-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 40px;
    min-height: 0;
}

.story-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 56px;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}
.story-text {
    flex: 0 0 42%;
    text-align: center;
    animation: storyFade 0.5s ease;
}
.story-title {
    color: #fff;
    font-weight: 700;
    font-size: 34px;
    line-height: 1.15;
    letter-spacing: -0.4px;
    margin-bottom: 16px;
}
.story-screen.slide-big .story-title {
    font-size: 48px;
    font-weight: 600;
}
.story-subtitle {
    color: #919191;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    max-width: 420px;
    margin: 0 auto;
}
.story-hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 70vh;
    animation: storyFade 0.6s ease;
}

@keyframes storyFade {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.story-footer {
    padding: 20px 40px 44px;
    display: flex;
    justify-content: center;
    flex-shrink: 0;
}
.story-cta {
    height: 46px;
    border-radius: 14px;
    background: #C9C9C9;
    color: #1E1E1E;
    font-weight: 600;
    font-size: 16px;
    border: none;
    cursor: pointer;
    width: 100%;
    max-width: 360px;
    transition: filter 0.15s ease, transform 0.1s ease;
}
.story-cta:hover { filter: brightness(1.06); }
.story-cta:active { transform: scale(0.98); }

/* Hero illustrations */
.story-hero .hero-glow {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(88,217,123,0.12), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-brand {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 260px;
    height: 260px;
}
.hero-brand img {
    width: 150px;
    height: 150px;
    border-radius: 34px;
    position: relative;
    z-index: 1;
    background: #fff;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.hero-card-wrap, .hero-tap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 340px;
    height: 300px;
}
.hero-card {
    position: relative;
    width: 300px;
    height: 189px;
    border-radius: 20px;
    background: linear-gradient(135deg, #23232b 0%, #101014 100%);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 24px 60px rgba(0,0,0,0.55);
    z-index: 3;
    overflow: hidden;
}
.hero-card-chip {
    position: absolute;
    top: 28px;
    left: 28px;
    width: 42px;
    height: 32px;
    border-radius: 7px;
    background: linear-gradient(135deg, #e6c05a, #b8912f);
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.2);
}
.hero-card-logo {
    background: #fff;
    position: absolute;
    bottom: 22px;
    right: 24px;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    opacity: 0.95;
}
.hero-card-1 { z-index: 3; }
.hero-card-2 {
    position: absolute;
    z-index: 2;
    transform: translate(-26px, 20px) rotate(-8deg);
    background: linear-gradient(135deg, #1c1c22, #0c0c0f);
    opacity: 0.9;
}
.hero-card-3 {
    position: absolute;
    z-index: 1;
    transform: translate(26px, 38px) rotate(8deg);
    background: linear-gradient(135deg, #16161b, #0a0a0d);
    opacity: 0.75;
}

/* Tokens grid */
.hero-tokens {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    max-width: 320px;
}
.hero-token {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #16161b;
    border: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.4);
    animation: storyFade 0.5s ease backwards;
}
.hero-token:nth-child(2) { animation-delay: 0.04s; }
.hero-token:nth-child(3) { animation-delay: 0.08s; }
.hero-token:nth-child(4) { animation-delay: 0.12s; }
.hero-token:nth-child(5) { animation-delay: 0.16s; }
.hero-token:nth-child(6) { animation-delay: 0.2s; }
.hero-token:nth-child(7) { animation-delay: 0.24s; }
.hero-token:nth-child(8) { animation-delay: 0.28s; }
.hero-token img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }

/* Tap / NFC waves */
.hero-card-tap { transform: rotate(-6deg); }
.hero-wave {
    position: absolute;
    border: 2px solid rgba(88,217,123,0.5);
    border-radius: 50%;
    z-index: 1;
    animation: heroWave 2.4s ease-out infinite;
}
.hero-wave.w1 { width: 200px; height: 200px; }
.hero-wave.w2 { width: 280px; height: 280px; animation-delay: 0.5s; }
.hero-wave.w3 { width: 360px; height: 360px; animation-delay: 1s; }
@keyframes heroWave {
    0% { opacity: 0.6; transform: scale(0.6); }
    100% { opacity: 0; transform: scale(1.05); }
}

/* Single-column stack on narrow windows */
@media (max-width: 900px) {
    .story-inner { flex-direction: column; gap: 32px; }
    .story-text { flex: none; }
    .story-title { font-size: 30px; }
    .story-screen.slide-big .story-title { font-size: 40px; }
}

/* ===== IN-APP INFO PAGES (Support / Terms / Privacy) ===== */
.info-page { max-width: 640px; }
.info-title { font-size: 24px; font-weight: 700; margin: 8px 0 6px; }
.info-lead { font-size: 14px; color: var(--text-secondary); line-height: 1.5; margin-bottom: 20px; }
.info-section-title {
    font-size: 12px; font-weight: 600; color: var(--text-tertiary);
    text-transform: uppercase; letter-spacing: 0.6px; margin: 24px 0 10px;
}
.info-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 18px;
}
.info-select {
    width: 100%; background: var(--bg-input); border: 1px solid var(--border);
    border-radius: 8px; padding: 11px 12px; font-size: 14px; color: var(--text-primary);
    font-family: var(--font); outline: none; cursor: pointer;
}
.info-card .form-field { margin-bottom: 14px; }
.info-card .btn { width: 100%; margin-top: 4px; }

/* Support success state */
.support-success { text-align: center; padding: 12px 4px; }
.support-success-icon {
    width: 52px; height: 52px; border-radius: 50%; margin: 0 auto 14px;
    background: var(--accent-dim); color: var(--accent);
    display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 700;
}
.support-success-icon svg { width: 26px; height: 26px; }
.support-success h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.support-success p { font-size: 13px; color: var(--text-secondary); line-height: 1.5; margin-bottom: 16px; }

/* FAQ accordion */
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
}
.faq-q {
    width: 100%; background: none; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 15px 16px; font-size: 14px; font-weight: 500; color: var(--text-primary); text-align: left;
    font-family: var(--font);
}
.faq-q:hover { background: var(--bg-card-hover); }
.faq-chevron { display: flex; transform: rotate(-90deg); transition: transform 0.2s ease; color: var(--text-tertiary); }
.faq-chevron svg { width: 16px; height: 16px; }
.faq-item.open .faq-chevron { transform: rotate(90deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq-item.open .faq-a { max-height: 240px; }
.faq-a p { padding: 0 16px 15px; font-size: 13px; color: var(--text-secondary); line-height: 1.55; }

/* Legal sections */
.legal-card { padding: 6px 18px; }
.legal-section { padding: 14px 0; }
.legal-section:not(:last-child) { border-bottom: 1px solid var(--border); }
.legal-section h3 { font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--text-primary); }
.legal-section p { font-size: 13px; color: var(--text-secondary); line-height: 1.55; }
.legal-footnote { font-size: 11px; color: var(--text-tertiary); text-align: center; margin-top: 16px; }

/* Seed phrase input grid */
.seed-input-cell {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 10px;
}
.seed-input-num {
    font-size: 11px;
    color: var(--text-tertiary);
    min-width: 18px;
    font-weight: 600;
}
.seed-word-input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    width: 100%;
    font-family: var(--font);
}
.seed-word-input::placeholder {
    color: var(--text-tertiary);
}
