/* ═══════════════════════════════════════════════════════════════════
   FYM Casino — Wallet screen (lodge re-brand, 2026-07-28)

   Owns ALL wallet styles. Legacy wallet rules still live in style.css
   (untouched, shared file) — every selector here is scoped under
   #wallet-screen so it out-specifies them regardless of load order.
   Loaded by wallet.js (injected <link>, idempotent) until index.html
   integration adds a static tag.

   Palette (lodge): golds #f8e7b0 / #f2ca50 / #e9c349 / #d9b45e /
   #c5a12a / #8a6a2c / #6d5220 · parchment #f2e9d0 / #e8d9ae · muted
   #a89c7d / #8e877d · ink #14110a / #0e0b06. Phantom violet #ab9ff2 /
   #6746d8 appears ONLY on .wallet-btn-phantom (connect / open-app).
   ═══════════════════════════════════════════════════════════════════ */

/* ── Screen shell + heading ─────────────────────────────────────── */
#wallet-screen {
    padding-bottom: 32px;
}

#wallet-screen .wallet-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 10px 0 4px;
    padding: 0;
}
/* Kill the generic section-heading gold bar — the emblem replaces it */
#wallet-screen .wallet-heading::before { display: none; content: none; }

#wallet-screen .wallet-heading-emblem {
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.55));
}
#wallet-screen .wallet-heading-emblem svg { display: block; }

#wallet-screen .wallet-heading-text { min-width: 0; }
#wallet-screen .wallet-heading-eyebrow {
    display: block;
    font-family: var(--font-body, 'Manrope', sans-serif);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.30em;
    text-transform: uppercase;
    color: var(--accent, #e9c349);
    margin-bottom: 2px;
}
#wallet-screen .wallet-heading-title {
    margin: 0;
    font-family: var(--font-display, 'Bodoni Moda', Georgia, serif);
    font-style: italic;
    font-weight: 700;
    font-size: 26px;
    line-height: 1.05;
    letter-spacing: 0.01em;
    color: #f2e9d0;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

/* ── Dual-balance plaques (play vs real) ────────────────────────── */
#wallet-screen .wallet-balance-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 14px 0 6px;
}
#wallet-screen .wallet-balance-card {
    position: relative;
    text-align: left;
    padding: 13px 14px 11px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    font-family: inherit;
    color: inherit;
    /* Steel plaque (play) — dark slate, engraved */
    background: linear-gradient(168deg, #1b1e26 0%, #101218 62%, #0b0d12 100%);
    border: 1px solid rgba(150, 162, 188, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06),
                inset 0 -8px 18px rgba(0, 0, 0, 0.35),
                0 6px 18px -10px rgba(0, 0, 0, 0.7);
    transition: transform 150ms var(--easing, ease),
                border-color 200ms ease, box-shadow 200ms ease;
}
#wallet-screen .wallet-balance-real {
    /* Gold plaque (real) — dark bronze leather */
    background: linear-gradient(168deg, #241c0e 0%, #171106 62%, #0f0b04 100%);
    border-color: rgba(233, 195, 73, 0.30);
}
#wallet-screen .wallet-balance-card:active { transform: scale(0.98); }
/* Remove the violet/green wash from style.css */
#wallet-screen .wallet-balance-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 1;
    pointer-events: none;
    /* Upper-left key light sweep */
    background: linear-gradient(118deg, rgba(255, 255, 255, 0.07) 0%,
                rgba(255, 255, 255, 0.02) 28%, transparent 55%);
}
#wallet-screen .wallet-balance-play::before,
#wallet-screen .wallet-balance-real::before {
    background: linear-gradient(118deg, rgba(255, 255, 255, 0.07) 0%,
                rgba(255, 255, 255, 0.02) 28%, transparent 55%);
}

#wallet-screen .wallet-balance-card .wallet-balance-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #9aa3b8;
    margin-bottom: 6px;
}
#wallet-screen .wallet-balance-real .wallet-balance-label { color: #b3a578; }

#wallet-screen .wallet-balance-card .wallet-balance-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    opacity: 1;
    background: radial-gradient(circle at 35% 30%, #d7dce8, #6a7288);
    box-shadow: inset 0 -1px 1px rgba(0, 0, 0, 0.4);
}
#wallet-screen .wallet-balance-real .wallet-balance-dot {
    background: radial-gradient(circle at 35% 30%, #f8e7b0, #a67c24);
}

#wallet-screen .wallet-balance-card .wallet-balance-amount {
    font-family: var(--font-display, 'Bodoni Moda', Georgia, serif);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: 0.005em;
    color: #e7eaf2;
    font-variant-numeric: tabular-nums;
}
#wallet-screen .wallet-balance-real .wallet-balance-amount { color: #f6e8bc; }
#wallet-screen .wallet-balance-card .wallet-balance-unit {
    font-family: var(--font-body, 'Manrope', sans-serif);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.10em;
    opacity: 0.65;
    margin-left: 3px;
}
#wallet-screen .wallet-balance-card .wallet-balance-sub {
    margin-top: 7px;
    font-size: 10px;
    letter-spacing: 0.02em;
    color: rgba(220, 224, 236, 0.42);
}
#wallet-screen .wallet-balance-real .wallet-balance-sub { color: rgba(232, 217, 174, 0.45); }

/* Emblem badge (SVG chip / coin) — top-right, injected by wallet.js */
#wallet-screen .wallet-plaque-emblem {
    position: absolute;
    top: 9px;
    right: 9px;
    width: 30px;
    height: 30px;
    pointer-events: none;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}
#wallet-screen .wallet-plaque-emblem svg { display: block; width: 100%; height: 100%; }
/* Emblem shares the corner with the ACTIVE stamp — drop it down when active */
#wallet-screen .wallet-balance-card.active-mode .wallet-plaque-emblem {
    top: 24px;
}

/* Active-mode: engraved gold ring, not violet */
#wallet-screen .wallet-balance-card.active-mode {
    border-color: rgba(150, 162, 188, 0.55);
    background: linear-gradient(168deg, #20242e 0%, #131620 62%, #0c0e14 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08),
                0 0 14px rgba(150, 162, 188, 0.14),
                0 6px 18px -10px rgba(0, 0, 0, 0.7);
}
#wallet-screen .wallet-balance-real.active-mode {
    border-color: rgba(233, 195, 73, 0.60);
    background: linear-gradient(168deg, #2a2110 0%, #1b1408 62%, #110c04 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08),
                0 0 16px rgba(233, 195, 73, 0.16),
                0 6px 18px -10px rgba(0, 0, 0, 0.7);
}
#wallet-screen .wallet-balance-card.active-mode::after {
    content: "EN JEU";
    position: absolute;
    top: 9px;
    right: 9px;
    padding: 2px 6px;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.18em;
    color: #cdd3e2;
    border: 1px solid rgba(150, 162, 188, 0.4);
    border-radius: 2px;
    background: rgba(12, 14, 20, 0.7);
    opacity: 1;
}
#wallet-screen .wallet-balance-real.active-mode::after {
    color: #f0d98c;
    border-color: rgba(233, 195, 73, 0.45);
    background: rgba(17, 12, 4, 0.7);
}

#wallet-screen .wallet-mode-hint {
    font-size: 10.5px;
    line-height: 1.5;
    margin: 0 2px 14px;
    color: var(--faint, #8e877d);
}
#wallet-screen .wallet-mode-hint #wallet-secondary-balance:not(:empty) {
    display: inline-block;
    margin-left: 4px;
    padding: 1px 8px;
    border-radius: 2px;
    background: rgba(233, 195, 73, 0.08);
    border: 1px solid rgba(233, 195, 73, 0.16);
    color: #e8d9ae;
    font-variant-numeric: tabular-nums;
}

/* ── Tabs ───────────────────────────────────────────────────────── */
#wallet-screen .wallet-tabs {
    display: flex;
    gap: 6px;
    margin: 10px 0 14px;
    overflow-x: auto;
    scrollbar-width: none;
}
#wallet-screen .wallet-tabs::-webkit-scrollbar { display: none; }
#wallet-screen .wallet-tab {
    flex: 1 1 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: linear-gradient(180deg, #17130a 0%, #100d07 100%);
    color: #a89c7d;
    border: 1px solid rgba(233, 195, 73, 0.14);
    border-radius: 4px;
    padding: 10px 6px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    transition: color 180ms ease, border-color 180ms ease,
                background 180ms ease, box-shadow 180ms ease;
}
#wallet-screen .wallet-tab svg { flex: 0 0 auto; }
#wallet-screen .wallet-tab .wallet-tab-glyph { opacity: 0.6; transition: opacity 180ms ease; }
#wallet-screen .wallet-tab.active {
    background: linear-gradient(180deg, rgba(233, 195, 73, 0.16) 0%, rgba(233, 195, 73, 0.05) 100%);
    color: #f0d98c;
    border-color: rgba(233, 195, 73, 0.5);
    box-shadow: inset 0 1px 0 rgba(248, 231, 176, 0.14),
                0 0 12px rgba(233, 195, 73, 0.10);
}
#wallet-screen .wallet-tab.active .wallet-tab-glyph { opacity: 1; }

/* ── Cards / panels ─────────────────────────────────────────────── */
#wallet-screen .wallet-card,
#wallet-screen .wallet-panel {
    background: linear-gradient(170deg, rgba(24, 19, 11, 0.92) 0%, rgba(13, 11, 6, 0.96) 100%);
    border: 1px solid rgba(233, 195, 73, 0.16);
    border-radius: 4px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04),
                0 8px 24px -14px rgba(0, 0, 0, 0.7);
    /* Playing-card `.card` (52x72 white flex box in style.css) must
       never bleed in — .wallet-panel replaces the old class="card"
       usage that caused the crushed-column deposit bug. */
    width: auto;
    height: auto;
    display: block;
}
#wallet-screen .wallet-card h3 {
    margin: 0 0 10px;
    font-family: var(--font-display, 'Bodoni Moda', Georgia, serif);
    font-style: italic;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #e8d9ae;
}
#wallet-screen .wallet-panel { margin-top: 16px; margin-bottom: 0; padding: 14px 14px 12px; }
#wallet-screen .wallet-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}
#wallet-screen .wallet-panel-head h4 {
    margin: 0;
    font-family: var(--font-display, 'Bodoni Moda', Georgia, serif);
    font-style: italic;
    font-size: 15px;
    font-weight: 700;
    color: #e8d9ae;
}

#wallet-screen .wallet-status { padding: 8px 0; font-size: 13px; color: #bfb79c; }
#wallet-screen .wallet-sub { font-size: 12px; color: #8e877d; margin: 14px 0 6px; }
#wallet-screen .muted { color: #8e877d; }

/* ── Inputs ─────────────────────────────────────────────────────── */
#wallet-screen .wallet-input {
    width: 100%;
    background: rgba(8, 6, 3, 0.75);
    border: 1px solid rgba(233, 195, 73, 0.20);
    color: #f2e9d0;
    padding: 10px 12px;
    border-radius: 4px;
    font-size: 13px;
    box-sizing: border-box;
    text-transform: none;
    letter-spacing: normal;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}
#wallet-screen .wallet-input:focus {
    outline: none;
    border-color: rgba(233, 195, 73, 0.6);
    box-shadow: 0 0 0 3px rgba(233, 195, 73, 0.12);
}
#wallet-screen select.wallet-input {
    appearance: none;
    -webkit-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #d9b45e 50%),
                      linear-gradient(135deg, #d9b45e 50%, transparent 50%);
    background-position: calc(100% - 18px) calc(50% - 2px), calc(100% - 13px) calc(50% - 2px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 34px;
}
#wallet-tab-withdraw label {
    display: block;
    margin-top: 10px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #a89c7d;
}
#wallet-tab-withdraw label .wallet-input { margin-top: 6px; }

/* ── Buttons ────────────────────────────────────────────────────── */
#wallet-screen .wallet-btn {
    background: linear-gradient(180deg, #2a2416 0%, #1a160d 100%);
    color: #e8d9ae;
    border: 1px solid rgba(233, 195, 73, 0.28);
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    text-align: center;
    box-shadow: inset 0 1px 0 rgba(248, 231, 176, 0.10),
                0 2px 6px rgba(0, 0, 0, 0.35);
    transition: filter 120ms ease, transform 120ms ease, box-shadow 120ms ease;
}
#wallet-screen a.wallet-btn { color: #e8d9ae; }
#wallet-screen .wallet-btn:hover:not(:disabled) { filter: brightness(1.12); }
#wallet-screen .wallet-btn:active:not(:disabled) { transform: translateY(1px); }
#wallet-screen .wallet-btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* Primary = house-gold CTA (Generate link, Submit Withdrawal) */
#wallet-screen .wallet-btn-primary {
    background: linear-gradient(180deg, #f2ca50 0%, #c5a12a 100%);
    color: #1a1206;
    border: 1px solid #8a6a2c;
    font-weight: 800;
    width: 100%;
    margin-top: 10px;
    box-shadow: inset 0 1px 0 rgba(255, 244, 205, 0.7),
                0 2px 0 #5a4415,
                0 6px 14px -6px rgba(233, 195, 73, 0.35);
    text-shadow: 0 1px 0 rgba(255, 244, 205, 0.4);
}
#wallet-screen .wallet-btn-primary:active:not(:disabled) {
    transform: translateY(2px);
    box-shadow: inset 0 1px 0 rgba(255, 244, 205, 0.7), 0 0 0 #5a4415;
}

/* Phantom actions ONLY — dark base, violet accent edge + glyph */
#wallet-screen .wallet-btn-phantom {
    background: linear-gradient(180deg, #201c30 0%, #151221 100%);
    color: #cfc8f5;
    border: 1px solid rgba(171, 159, 242, 0.45);
    box-shadow: inset 0 1px 0 rgba(214, 203, 251, 0.12),
                0 2px 0 #241a4e,
                0 6px 14px -6px rgba(124, 92, 232, 0.30);
    text-shadow: none;
}
#wallet-screen .wallet-btn-phantom:hover:not(:disabled) { filter: brightness(1.18); }
#wallet-screen .wallet-btn-phantom:active:not(:disabled) {
    transform: translateY(2px);
    box-shadow: inset 0 1px 0 rgba(214, 203, 251, 0.12), 0 0 0 #241a4e;
}

#wallet-screen .wallet-btn-ghost {
    background: rgba(233, 195, 73, 0.05) !important;
    border: 1px solid rgba(233, 195, 73, 0.22) !important;
    color: #bfb79c !important;
    box-shadow: none;
}
#wallet-screen .wallet-btn-xs {
    padding: 5px 10px !important;
    font-size: 11px !important;
    min-width: 0 !important;
}

/* ── Linked wallets ─────────────────────────────────────────────── */
#wallet-screen .wallet-linked-row {
    padding: 9px 0;
    border-bottom: 1px solid rgba(233, 195, 73, 0.08);
}
#wallet-screen .wallet-linked-row:last-child { border-bottom: 0; }

/* ── Feedback boxes ─────────────────────────────────────────────── */
#wallet-screen .wallet-err {
    background: rgba(217, 119, 87, 0.10);
    border: 1px solid rgba(217, 119, 87, 0.38);
    color: #e8a08a;
    padding: 10px 12px;
    border-radius: 4px;
    font-size: 13px;
    margin-top: 10px;
}
#wallet-screen .wallet-ok {
    background: rgba(127, 207, 150, 0.10);
    border: 1px solid rgba(127, 207, 150, 0.38);
    color: #9fdcb2;
    padding: 10px 12px;
    border-radius: 4px;
    font-size: 13px;
    margin-top: 10px;
}

/* ── Deposit: intro, treasury, form ─────────────────────────────── */
#wallet-screen .wallet-intro {
    font-size: 13px;
    line-height: 1.55;
    color: #bfb79c;
    margin: 0 0 10px;
}
#wallet-screen .wallet-treasury-card {
    background: rgba(233, 195, 73, 0.06);
    border: 1px solid rgba(233, 195, 73, 0.22);
    padding: 10px 12px;
    border-radius: 4px;
    margin-top: 10px;
    box-shadow: inset 0 1px 0 rgba(248, 231, 176, 0.06);
}
#wallet-screen .wallet-deposit-form {
    margin-top: 14px;
    padding: 14px;
    background: rgba(10, 8, 4, 0.55);
    border: 1px solid rgba(233, 195, 73, 0.18);
    border-radius: 4px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
#wallet-screen .wallet-field-label {
    display: block;
    font-size: 10px;
    color: #a89c7d;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-weight: 700;
    margin-bottom: 8px;
}
#wallet-screen .wallet-amount-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
    flex-wrap: wrap;
}
#wallet-screen .wallet-amount-input-wrap {
    position: relative;
    flex: 1 1 180px;
    min-width: 160px;
}
#wallet-screen .wallet-amount-input {
    width: 100%;
    padding: 14px 72px 14px 16px;
    border-radius: 4px;
    background: rgba(8, 6, 3, 0.75);
    border: 1.5px solid rgba(233, 195, 73, 0.20);
    color: #f6e8bc;
    font-size: 18px;
    font-weight: 700;
    font-family: var(--font-numeric, 'Manrope', sans-serif);
    font-variant-numeric: tabular-nums;
    box-sizing: border-box;
    transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
    -moz-appearance: textfield;
}
#wallet-screen .wallet-amount-input:focus {
    outline: none;
    border-color: rgba(233, 195, 73, 0.65);
    background: rgba(8, 6, 3, 0.9);
    box-shadow: 0 0 0 4px rgba(233, 195, 73, 0.12);
}
#wallet-screen .wallet-amount-input::-webkit-inner-spin-button,
#wallet-screen .wallet-amount-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
#wallet-screen .wallet-amount-input::placeholder { color: #5a5142; font-weight: 500; }
#wallet-screen .wallet-amount-suffix {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #a89c7d;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.10em;
    pointer-events: none;
}
#wallet-screen .wallet-dep-gen-btn {
    flex: 0 0 auto;
    min-width: 140px;
    padding: 14px 18px !important;
    font-weight: 800;
    width: auto;
    margin-top: 0;
}
#wallet-screen .wallet-quick-amounts {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 10px;
}
#wallet-screen .wallet-chip {
    background: linear-gradient(180deg, #1d1810 0%, #131009 100%);
    border: 1px solid rgba(233, 195, 73, 0.22);
    color: #d5c9a6;
    padding: 6px 13px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(248, 231, 176, 0.08),
                0 1px 3px rgba(0, 0, 0, 0.4);
    transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}
#wallet-screen .wallet-chip:hover {
    background: linear-gradient(180deg, rgba(233, 195, 73, 0.18) 0%, rgba(233, 195, 73, 0.06) 100%);
    border-color: rgba(233, 195, 73, 0.55);
    color: #f6e8bc;
}
#wallet-screen .wallet-chip:disabled { opacity: 0.35; cursor: not-allowed; }

/* ── Deposit intent result ──────────────────────────────────────── */
#wallet-screen .wallet-deposit-intent {
    background: rgba(10, 8, 4, 0.55);
    border: 1px solid rgba(233, 195, 73, 0.18);
    padding: 14px;
    border-radius: 4px;
}
#wallet-screen .wallet-intent-grid {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: flex-start;
    margin-top: 10px;
}
#wallet-screen .wallet-qr-wrap { flex: 0 0 auto; }
#wallet-screen .wallet-qr-img {
    width: 180px;
    height: 180px;
    background: #fdf6e3;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid rgba(233, 195, 73, 0.35);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
    display: block;
}
#wallet-screen .wallet-intent-meta { flex: 1 1 200px; min-width: 200px; font-size: 13px; color: #d5c9a6; }
#wallet-screen .wallet-intent-meta .muted {
    font-size: 10px;
    color: #8e877d;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 700;
}
#wallet-screen .wallet-intent-amount {
    font-family: var(--font-display, 'Bodoni Moda', Georgia, serif);
    font-size: 19px;
    margin-top: 2px;
    color: #f6e8bc;
}
#wallet-screen .wallet-intent-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px;
    margin-top: 14px;
}
#wallet-screen .wallet-intent-actions .wallet-btn { width: auto; margin-top: 0; }

/* ── Live deposit status bar ────────────────────────────────────── */
#wallet-screen .wallet-dep-status-bar {
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 4px;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    transition: background-color 280ms ease, border-color 280ms ease,
                box-shadow 280ms ease, transform 280ms ease;
}
#wallet-screen .wallet-dep-status-bar > * { min-width: 0; }
#wallet-screen .wallet-dep-status-bar.wallet-dep-flash {
    transform: scale(1.012);
    box-shadow: 0 0 0 2px rgba(233, 195, 73, 0.45);
}
#wallet-screen .wallet-dep-status-bar.wallet-dep-waiting {
    background: rgba(233, 195, 73, 0.06);
    border: 1px solid rgba(233, 195, 73, 0.28);
    color: #e9c349;
}
#wallet-screen .wallet-dep-status-bar.wallet-dep-matched {
    background: rgba(157, 184, 200, 0.07);
    border: 1px solid rgba(157, 184, 200, 0.32);
    color: #9db8c8;
}
#wallet-screen .wallet-dep-status-bar.wallet-dep-credited {
    background: rgba(127, 207, 150, 0.09);
    border: 1px solid rgba(127, 207, 150, 0.42);
    color: #7fcf96;
}
#wallet-screen .wallet-dep-status-bar.wallet-dep-error {
    background: rgba(217, 119, 87, 0.08);
    border: 1px solid rgba(217, 119, 87, 0.35);
    color: #d97757;
}
#wallet-screen .wallet-dep-spinner {
    display: inline-block;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid currentColor;
    border-right-color: transparent;
    animation: wallet-dep-spin 900ms linear infinite;
    flex-shrink: 0;
}
#wallet-screen .wallet-dep-credited .wallet-dep-spinner,
#wallet-screen .wallet-dep-error .wallet-dep-spinner {
    animation: none;
    border-right-color: currentColor;
}
#wallet-screen .wallet-dep-credited .wallet-dep-spinner::before {
    content: "✓";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}
#wallet-screen .wallet-dep-step {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(232, 217, 174, 0.4);
    transition: background 280ms ease, border-color 280ms ease, color 280ms ease;
}
#wallet-screen .wallet-dep-step .wallet-dep-step-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(232, 217, 174, 0.14);
    flex-shrink: 0;
}
#wallet-screen .wallet-dep-step.active {
    background: rgba(233, 195, 73, 0.10);
    border-color: rgba(233, 195, 73, 0.42);
    color: #e9c349;
}
#wallet-screen .wallet-dep-step.active .wallet-dep-step-dot {
    background: radial-gradient(circle at 35% 30%, #f8e7b0, #c5a12a);
    box-shadow: 0 0 8px rgba(233, 195, 73, 0.6);
    animation: wallet-dep-pulse 1400ms infinite ease-in-out;
}
#wallet-screen .wallet-dep-step.done {
    background: rgba(127, 207, 150, 0.08);
    border-color: rgba(127, 207, 150, 0.32);
    color: #7fcf96;
}
#wallet-screen .wallet-dep-step.done .wallet-dep-step-dot {
    background: radial-gradient(circle at 35% 30%, #b7ecc9, #2e7d4f);
}

/* ── Empty states ───────────────────────────────────────────────── */
#wallet-screen .wallet-empty-state {
    padding: 22px 12px 20px;
    text-align: center;
    background: rgba(233, 195, 73, 0.025);
    border: 1px solid rgba(233, 195, 73, 0.12);
    border-radius: 4px;
}
#wallet-screen .wallet-empty-icon {
    font-size: 0;
    line-height: 0;
    margin-bottom: 10px;
    opacity: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.5));
}
#wallet-screen .wallet-empty-title {
    font-family: var(--font-display, 'Bodoni Moda', Georgia, serif);
    font-style: italic;
    font-size: 15px;
    font-weight: 700;
    color: #e8d9ae;
}
#wallet-screen .wallet-empty-sub {
    font-size: 12px;
    color: #8e877d;
    margin-top: 4px;
    line-height: 1.5;
}

/* ── History cards ──────────────────────────────────────────────── */
#wallet-screen .wallet-hist-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
#wallet-screen .wallet-hist-card {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 4px;
    background: rgba(233, 195, 73, 0.03);
    border: 1px solid rgba(233, 195, 73, 0.10);
    transition: background 150ms ease, border-color 150ms ease;
}
#wallet-screen .wallet-hist-card:hover {
    background: rgba(233, 195, 73, 0.055);
    border-color: rgba(233, 195, 73, 0.18);
}
#wallet-screen .wallet-hist-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(8, 6, 3, 0.6);
    border: 1px solid rgba(233, 195, 73, 0.14);
    border-radius: 50%;
    flex: 0 0 auto;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.4));
}
#wallet-screen .wallet-hist-icon-out {
    background: rgba(8, 6, 3, 0.6);
    border-color: rgba(157, 184, 200, 0.20);
}
#wallet-screen .wallet-hist-amount {
    font-size: 15px;
    font-weight: 600;
    color: #7fcf96;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
#wallet-screen .wallet-hist-amount-out { color: #e8d9ae; }
#wallet-screen .wallet-hist-meta .mono,
#wallet-screen .wallet-hist-meta { color: rgba(232, 217, 174, 0.55); }
#wallet-screen .wallet-hist-meta .mono { color: rgba(242, 233, 208, 0.8); }
#wallet-screen .wallet-hist-link {
    background: rgba(233, 195, 73, 0.08);
    border-radius: 3px;
}
#wallet-screen .wallet-hist-link-icon {
    display: inline-flex;
    align-items: center;
    line-height: 0;
    opacity: 0.85;
}
#wallet-screen .wallet-hist-icon svg { display: block; }
#wallet-screen .wallet-hist-link:hover { background: rgba(233, 195, 73, 0.16); }
#wallet-screen .solscan-link { color: #d9b45e; border-bottom-color: rgba(217, 180, 94, 0.35); }
#wallet-screen .solscan-link:hover { color: #f0d98c; }
#wallet-screen .wallet-hist-time { color: rgba(232, 217, 174, 0.4); }

/* Status pills — lodge palette (pending violet → gold) */
#wallet-screen .wallet-hist-status {
    border-radius: 2px;
    font-size: 9.5px;
    letter-spacing: 0.08em;
}
#wallet-screen .wallet-hist-status.credited,
#wallet-screen .wallet-hist-status.confirmed,
#wallet-screen .wallet-hist-status.completed { background: rgba(127, 207, 150, 0.14); color: #7fcf96; }
#wallet-screen .wallet-hist-status.broadcasting { background: rgba(157, 184, 200, 0.14); color: #9db8c8; }
#wallet-screen .wallet-hist-status.matched,
#wallet-screen .wallet-hist-status.pending { background: rgba(233, 195, 73, 0.13); color: #e9c349; }
#wallet-screen .wallet-hist-status.pending_approval,
#wallet-screen .wallet-hist-status.approved { background: rgba(242, 202, 80, 0.15); color: #f2ca50; }
#wallet-screen .wallet-hist-status.refunded { background: rgba(157, 184, 200, 0.14); color: #b9c6d8; }
#wallet-screen .wallet-hist-status.rejected,
#wallet-screen .wallet-hist-status.expired,
#wallet-screen .wallet-hist-status.failed,
#wallet-screen .wallet-hist-status.cancelled { background: rgba(217, 119, 87, 0.14); color: #d97757; }

/* ── Keyframes (owned here — do not rely on legacy style.css copies;
      duplicate names are harmless, last-loaded wins) ──────────────── */
@keyframes wallet-dep-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
@keyframes wallet-dep-pulse {
    0%, 100% { transform: scale(1);    opacity: 1; }
    50%      { transform: scale(1.35); opacity: 0.75; }
}
