/* KnexPay Components — Futuristic Neon Transparent + iOS Native */

/* ========================================
   BUTTONS — BIGGER
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 1px solid var(--stroke-light);
    background: var(--glass);
    backdrop-filter: blur(var(--blur-soft));
    -webkit-backdrop-filter: blur(var(--blur-soft));
    box-shadow: var(--shadow-sm);
    min-height: 44px;
    color: var(--text);
    letter-spacing: -0.01em;
    position: relative;
    overflow: hidden;
}

.btn:active {
    transform: scale(0.96);
    opacity: 0.9;
}

.btn .icon { width: 18px; height: 18px; fill: currentColor; }

.btn-primary {
    background: var(--neon);
    color: #000;
    border-color: rgba(127,255,0, 0.6);
    text-shadow: none;
}
.btn-primary:hover {
    background: rgba(57,255,20, 0.85);
    box-shadow: var(--glow-neon), var(--shadow-sm);
}
.btn-primary .icon { fill: #000; }

.btn-secondary {
    background: rgba(0,0,0, 0.45) !important;
    color: rgba(255,255,255, 0.95) !important;
    border-color: rgba(255,255,255, 0.30) !important;
    backdrop-filter: blur(var(--blur-med));
    -webkit-backdrop-filter: blur(var(--blur-med));
}
.btn-secondary:hover {
    background: rgba(0,0,0, 0.55) !important;
    box-shadow: 0 0 12px rgba(255,255,255,0.1), var(--shadow-sm);
}

.btn-accent {
    background: rgba(255,51,51, 0.06);
    color: var(--red);
    border-color: rgba(255,51,51, 0.28);
}
.btn-accent:hover {
    background: rgba(255,51,51, 0.12);
    box-shadow: var(--glow-red), var(--shadow-sm);
}

.btn-danger {
    background: rgba(255,51,51, 0.05);
    color: var(--red);
    border-color: rgba(255,51,51, 0.2);
}
.btn-danger:hover {
    background: rgba(255,51,51, 0.10);
    border-color: rgba(255,51,51, 0.35);
}

.btn-copy-key {
    background: #000 !important;
    color: #fff !important;
    border: 1px solid rgba(255,51,51, 0.6) !important;
    animation: pulse-red-border 1s ease-in-out infinite;
}
.btn-copy-key .icon { fill: var(--red) !important; }
@keyframes pulse-red-border {
    0%, 100% { border-color: rgba(255,51,51, 0.2); box-shadow: 0 0 0 0 rgba(255,51,51, 0); }
    50% { border-color: rgba(255,51,51, 1); box-shadow: 0 0 10px rgba(255,51,51, 0.25); }
}

.btn-full {
    width: 100%;
    margin-bottom: var(--spacing-sm);
}

.btn-save {
    background: rgba(255,255,255, 0.92) !important;
    color: #000 !important;
    border: 1px solid rgba(0,0,0, 0.12) !important;
    box-shadow: 0 1px 3px rgba(0,0,0, 0.08);
}
.btn-save:active {
    background: rgba(255,255,255, 0.80) !important;
}

/* ========================================
   SLIDE TO SEND
   ======================================== */

.slide-to-send-wrapper {
    position: fixed;
    bottom: 76px;
    left: 0;
    right: 0;
    padding: 10px var(--spacing-md);
    z-index: 50;
    pointer-events: none;
}
.slide-to-send-wrapper .slide-to-send {
    pointer-events: auto;
}
.slide-to-send {
    position: relative;
    width: 100%;
    height: 76px;
    background: rgba(57,255,20, 0.08);
    border: 1px solid rgba(57,255,20, 0.3);
    border-radius: 38px;
    overflow: visible;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}
/* Disabled state — not ready to send */
.slide-to-send:not(.ready) {
    opacity: 0.35;
    pointer-events: none;
}

/* Green label on right (uncovered) side */
.slide-to-send-track {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    border-radius: 38px;
    overflow: hidden;
}
.slide-to-send-label {
    font-size: 14px;
    font-weight: 700;
    color: rgba(57,255,20, 0.9);
    letter-spacing: 1px;
    text-transform: uppercase;
    pointer-events: none;
}

/* Black label overlay on green (covered) side — above thumb */
.slide-to-send-fill {
    position: absolute;
    left: 0;
    top: -1px;
    bottom: -1px;
    width: 0;
    background: transparent;
    border-radius: 38px;
    pointer-events: none;
    z-index: 4;
    overflow: hidden;
}
.slide-to-send-fill-label {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #000;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
    pointer-events: none;
}

/* Thumb with Lottie */
.slide-to-send-thumb {
    position: absolute;
    left: 3px;
    top: 3px;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: var(--neon);
    overflow: hidden;
    cursor: grab;
    z-index: 3;
    transition: box-shadow 0.2s;
    box-shadow: 0 0 12px rgba(57,255,20, 0.4);
}
.slide-to-send-thumb:active {
    cursor: grabbing;
    box-shadow: 0 0 20px rgba(57,255,20, 0.6);
}
#slideToSendLottie {
    width: 120px;
    height: 68px;
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
}
#slideToSendLottie svg {
    width: 100% !important;
    height: 100% !important;
}

/* Ready state — Lottie plays when ready */
.slide-to-send.ready .slide-to-send-label {
    color: rgba(57,255,20, 0.9);
    animation: slide-label-pulse 1.5s ease-in-out infinite;
}
@keyframes slide-label-pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Completed state */
.slide-to-send.completed .slide-to-send-thumb {
    box-shadow: 0 0 24px rgba(57,255,20, 0.8);
}

/* Send screen explainer */
.send-explainer {
    font-size: 11px;
    line-height: 1.4;
    color: var(--yellow);
    margin-bottom: var(--spacing-sm);
    border: 1px solid rgba(255,189,46, 0.25);
    border-radius: var(--radius-lg);
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(255,189,46, 0.04);
    backdrop-filter: blur(var(--blur-soft));
    -webkit-backdrop-filter: blur(var(--blur-soft));
}

/* Send screen — no scroll, flex fill.
   Bottom padding matches #sendScreen rule in screens.css. */
#sendScreen.active {
    overflow: hidden;
    padding-bottom: calc(68px + var(--safe-bottom, 0px) + 15px);
}

/* ========================================
   CUSTOM KEYPADS
   ======================================== */

/* Backdrop */
.custom-keypad-backdrop {
    position: fixed;
    inset: 0;
    background: transparent;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.custom-keypad-backdrop.active {
    opacity: 1;
    pointer-events: none;
}

/* Base keypad container — fully transparent glass */
.custom-keypad {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2010;
    background: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0 4px calc(6px + var(--safe-bottom));
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}
.custom-keypad.visible {
    transform: translateY(0);
}

/* Centered drag handle at top */
.keypad-handle {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 0 4px;
    cursor: pointer;
}
.keypad-handle-bar {
    width: 36px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255,255,255, 0.25);
}
.keypad-handle:active .keypad-handle-bar {
    background: rgba(57,255,20, 0.5);
}

/* Header row */
.keypad-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 10px 6px;
}
.keypad-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.keypad-dismiss {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.keypad-dismiss:active {
    background: rgba(255, 255, 255, 0.10);
}
.keypad-dismiss-red {
    background: rgba(255, 51, 51, 1);
    border-color: rgba(255, 51, 51, 1);
    color: #000;
    animation: pulse-red 1.5s ease-in-out infinite;
}
.keypad-dismiss-red:active {
    background: rgba(200, 30, 30, 1);
    animation: none;
}
@keyframes pulse-red {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 51, 51, 0.5); }
    50% { box-shadow: 0 0 12px 4px rgba(255, 51, 51, 0.35); }
}

/* Tab switcher (ABC / Emoji) */
.keypad-tabs {
    display: flex;
    gap: 2px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 2px;
}
.keypad-tab {
    padding: 4px 14px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font);
}
.keypad-tab.active {
    background: rgba(255, 255, 255, 0.08);
    color: var(--neon);
}

/* ---- Numeric Keypad Grid (4x3) ---- */
.keypad-grid-4x3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 4px 8px;
}

/* ---- QWERTY Rows ---- */
.keypad-panel {
    padding: 0 2px;
}
.keypad-row {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 6px;
}
.keypad-row-spacer {
    flex: 0.5;
}

/* ---- Key Buttons (shared) — transparent glass ---- */
.keypad-key {
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    color: var(--text);
    font-family: var(--font);
    font-size: 20px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.08s ease;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}
.keypad-key:active,
.keypad-key.pressed {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.18);
    transform: scale(0.93);
}

/* QWERTY letter keys — flex sizing */
.custom-keypad-qwerty .keypad-key {
    flex: 1;
    min-width: 26px;
    max-width: 38px;
    height: 42px;
    font-size: 18px;
}

/* Numeric keypad keys — taller */
.custom-keypad-numeric .keypad-key {
    height: 50px;
    font-size: 24px;
    font-weight: 600;
    border-radius: 12px;
}

/* Backspace key */
.keypad-key-backspace {
    background: rgba(255, 51, 51, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: var(--red);
}
.keypad-key-backspace:active,
.keypad-key-backspace.pressed {
    background: rgba(255, 51, 51, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

/* Decimal dot — disabled in RAW mode */
.keypad-key-dot.disabled {
    opacity: 0.2;
    pointer-events: none;
}

/* Shift key */
.keypad-key-shift {
    flex: 1.4 !important;
    max-width: 44px !important;
    font-size: 18px !important;
    background: rgba(255, 255, 255, 0.04);
}
.keypad-key-shift.active {
    background: rgba(255, 255, 255, 0.10) !important;
    color: var(--neon);
}

/* Space bar */
.keypad-key-space {
    flex: 4 !important;
    max-width: none !important;
    font-size: 13px !important;
    text-transform: lowercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
}

/* 123 / ABC toggle key */
.keypad-key-123 {
    flex: 1.3 !important;
    max-width: 52px !important;
    font-size: 14px !important;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Done key */
.keypad-key-done {
    flex: 1.3 !important;
    max-width: 52px !important;
    font-size: 14px !important;
    font-weight: 700;
    background: rgba(57, 255, 20, 0.06);
    border-color: rgba(255, 255, 255, 0.10) !important;
    color: var(--neon);
}
.keypad-key-done:active {
    background: rgba(57, 255, 20, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
}

/* ---- Emoji Grid ---- */
.keypad-emoji-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 2px;
    padding: 4px 6px;
    max-height: 200px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.keypad-emoji-grid button {
    height: 40px;
    border: none;
    background: transparent;
    font-size: 24px;
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.keypad-emoji-grid button:active {
    background: rgba(255,255,255, 0.10);
}

/* When keypad is visible, hide slide-to-send and nav bar */
body.keypad-open .slide-to-send-wrapper {
    display: none;
}
body.keypad-open .tab-nav {
    display: none;
}

/* Focused input styling when keypad is active */
.form-input.keypad-active {
    border-color: rgba(127,255,0, 0.5);
    background: rgba(57,255,20, 0.06);
    box-shadow: 0 0 0 3px rgba(57,255,20, 0.1);
}

/* ========================================
   CARDS — BIGGER
   ======================================== */

.card {
    border-radius: var(--radius-xl);
    border: 1px solid var(--stroke-light);
    background: var(--glass);
    backdrop-filter: blur(var(--blur-med));
    -webkit-backdrop-filter: blur(var(--blur-med));
    box-shadow: var(--shadow-md);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.card h3 {
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

/* Balance Card — hero */
.balance-card {
    border-radius: var(--radius-xl);
    border: 1px solid var(--stroke);
    background: rgba(57,255,20, 0.04);
    backdrop-filter: blur(var(--blur-strong));
    -webkit-backdrop-filter: blur(var(--blur-strong));
    box-shadow: var(--shadow-lg), var(--shadow-neon);
    padding: var(--spacing-lg) var(--spacing-md);
    text-align: center;
    position: relative;
    margin-bottom: var(--spacing-md);
    overflow: hidden;
}

.balance-logo {
    width: 48px;
    height: 48px;
    margin: 0 auto var(--spacing-xs);
}

.balance-logo svg { width: 100%; height: 100%; }

.balance-amount {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2px;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.03em;
}

.balance-label {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 500;
}

/* About Card */
.about-card {
    border-radius: var(--radius-xl);
    border: 1px solid var(--stroke-light);
    background: var(--glass);
    backdrop-filter: blur(var(--blur-med));
    -webkit-backdrop-filter: blur(var(--blur-med));
    padding: var(--spacing-lg);
    text-align: center;
    margin-top: var(--spacing-lg);
}

.about-card h4 { color: var(--text); font-size: 17px; font-weight: 600; margin-bottom: var(--spacing-md); }
.about-card p { color: var(--text-secondary); font-size: 14px; line-height: 1.8; }
.about-card strong { color: var(--neon); }

/* ========================================
   FORMS — BIGGER
   ======================================== */

.form-group { margin-bottom: var(--spacing-md); }

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

.form-input {
    width: 100%;
    padding: 12px 14px;
    background: var(--glass-input);
    border: 1px solid var(--stroke-subtle);
    border-radius: var(--radius-md);
    color: var(--text);
    font-family: var(--font);
    font-size: 15px;
    transition: all var(--transition-fast);
    backdrop-filter: blur(var(--blur-soft));
    -webkit-backdrop-filter: blur(var(--blur-soft));
}

.form-input::placeholder { color: var(--text-dim); }

.form-input:focus {
    border-color: rgba(127,255,0, 0.5);
    background: rgba(57,255,20, 0.06);
    box-shadow: 0 0 0 3px rgba(57,255,20, 0.1), var(--glow-neon);
}

.input-with-action { position: relative; display: flex; align-items: center; }
.input-with-action .form-input { padding-right: 56px; }

.input-action-btn {
    position: absolute;
    right: 8px;
    width: 44px;
    height: 44px;
    background: var(--glass);
    border: 1px solid var(--stroke-subtle);
    border-radius: var(--radius-md);
    color: var(--neon);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.input-action-btn:hover { background: rgba(57,255,20, 0.10); border-color: rgba(127,255,0, 0.35); }
.input-action-btn .icon { width: 20px; height: 20px; fill: currentColor; }

/* Dual destination button (paste / QR) */
.dest-dual-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--radius-md);
    color: var(--text);
    font-family: var(--font);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.dest-dual-btn:active {
    background: rgba(255, 255, 255, 0.10);
    transform: scale(0.98);
}
.dest-dual-btn.has-address {
    border-color: rgba(57, 255, 20, 0.25);
    background: rgba(57, 255, 20, 0.04);
}
.dest-dual-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neon);
    flex-shrink: 0;
}
.dest-dual-label {
    flex: 1;
    text-align: left;
    color: var(--text-secondary);
}
.dest-dual-addr {
    flex: 1;
    text-align: left;
    color: var(--neon);
    font-size: 12px;
    font-family: var(--font-mono, monospace);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dest-dual-btn .dest-clear {
    color: var(--text-muted);
    font-size: 18px;
    padding: 0 4px;
}

/* ========================================
   ADDRESS DISPLAY
   ======================================== */

.address-display {
    border-radius: var(--radius-xl);
    border: 1px solid var(--stroke-light);
    background: var(--glass);
    backdrop-filter: blur(var(--blur-med));
    -webkit-backdrop-filter: blur(var(--blur-med));
    padding: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.address-text {
    flex: 1;
    font-size: 13px;
    font-family: var(--font-mono);
    color: var(--text-secondary);
    word-break: break-all;
    line-height: 1.4;
}

.copy-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 10px 16px;
    background: rgba(57,255,20, 0.08);
    border: 1px solid rgba(127,255,0, 0.28);
    border-radius: var(--radius-md);
    color: var(--neon);
    font-family: var(--font);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.copy-btn:hover { background: rgba(57,255,20, 0.15); box-shadow: var(--glow-neon); }
.copy-btn:active { transform: scale(0.95); }
.copy-btn.copied { background: rgba(57,255,20, 0.2); color: var(--text); }
.copy-btn .icon { width: 14px; height: 14px; fill: currentColor; }

/* ========================================
   ALERTS
   ======================================== */

.alert {
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: var(--spacing-md);
    backdrop-filter: blur(var(--blur-soft));
    -webkit-backdrop-filter: blur(var(--blur-soft));
}

.alert strong { display: block; margin-bottom: var(--spacing-xs); }

.alert-info {
    background: rgba(57,255,20, 0.04);
    border: 1px solid rgba(127,255,0, 0.15);
    border-left: 3px solid var(--neon);
    color: var(--text-secondary);
}
.alert-info strong { color: var(--neon); }

.alert-warning {
    background: rgba(255,255,255, 0.92);
    border: 1px solid rgba(0,0,0, 0.12);
    border-left: 3px solid var(--yellow);
    color: #000;
}
.alert-warning strong { color: #b8860b; }

.alert-error {
    background: rgba(255,51,51, 0.04);
    border: 1px solid rgba(255,51,51, 0.15);
    border-left: 3px solid var(--red);
    color: var(--text-secondary);
}
.alert-error strong { color: var(--red); }

/* ========================================
   EMPTY STATE
   ======================================== */

.empty-state { text-align: center; padding: var(--spacing-lg) var(--spacing-md); }
.empty-state-icon { margin-bottom: var(--spacing-sm); }
.empty-state-icon .icon-large, .icon-large { width: 44px; height: 44px; fill: var(--text-muted); }
.empty-state-text { font-size: 17px; font-weight: 600; color: var(--text); margin-bottom: var(--spacing-xs); }
.empty-state-subtext { font-size: 13px; color: var(--text-secondary); margin-bottom: var(--spacing-md); }

/* ========================================
   QR CODE
   ======================================== */

.qr-container {
    border-radius: var(--radius-xl);
    border: 1px solid var(--stroke-light);
    background: var(--glass);
    backdrop-filter: blur(var(--blur-med));
    -webkit-backdrop-filter: blur(var(--blur-med));
    padding: var(--spacing-lg);
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.qr-code-box { width: 240px; height: 240px; margin: 0 auto; background: white; padding: var(--spacing-sm); border-radius: var(--radius-lg); }
.qr-placeholder { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--text-muted); font-size: 14px; }

/* ========================================
   TRANSACTIONS
   ======================================== */

.tx-item {
    border-radius: var(--radius-lg);
    border: 1px solid var(--stroke-subtle);
    background: var(--glass-soft);
    backdrop-filter: blur(var(--blur-soft));
    -webkit-backdrop-filter: blur(var(--blur-soft));
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.tx-item:hover { background: var(--glass); border-color: var(--stroke-light); }
.tx-item:active { transform: scale(0.99); }

.tx-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--spacing-xs); }

.tx-type { display: flex; align-items: center; gap: var(--spacing-sm); font-size: 13px; font-weight: 600; }
.tx-type.sent { color: var(--red); }
.tx-type.received { color: var(--neon); }
.tx-type.pending { color: var(--yellow); }
.tx-type .icon { width: 18px; height: 18px; fill: currentColor; }

.tx-amount { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tx-amount.sent { color: var(--red); }
.tx-amount.received { color: var(--neon); }
.tx-amount.pending { color: var(--yellow); }

.tx-pending { opacity: 0.8; border-left: 2px solid var(--yellow); }
.tx-nfc { border-left: 2px solid var(--neon); }
.tx-method-badge { font-size: 9px; font-weight: 500; padding: 1px 5px; border-radius: 3px; background: rgba(255,255,255,0.08); color: var(--text-muted); vertical-align: middle; white-space: nowrap; }

.tx-header { flex-wrap: nowrap; gap: var(--spacing-sm); }
.tx-type { flex-shrink: 0; }
.tx-amount { text-align: right; min-width: 0; word-break: break-word; }
.tx-details { font-size: 11px; color: var(--text-secondary); }
.tx-details .address { color: var(--text-muted); font-family: var(--font-mono); }
.tx-details .tx-memo { color: var(--text-secondary); margin-top: 2px; font-size: 10px; opacity: 0.8; }
.tx-details .time { color: var(--text-muted); margin-top: 2px; }

/* ========================================
   ACTION BUTTONS
   ======================================== */

.action-buttons { display: flex; gap: var(--spacing-sm); margin-bottom: var(--spacing-md); }
.action-buttons .btn { flex: 1; }

/* ========================================
   ICONS
   ======================================== */

.icon { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 24px; height: 24px; }

/* ========================================
   SETTINGS — MAGENTA THEME + iOS TOGGLES
   ======================================== */

.settings-group {
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255,0,255, 0.20);
    background: rgba(255,0,255, 0.03);
    backdrop-filter: blur(var(--blur-med));
    -webkit-backdrop-filter: blur(var(--blur-med));
    overflow: hidden;
    margin-bottom: var(--spacing-md);
}

.settings-row {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: 12px var(--spacing-md);
    cursor: pointer;
    transition: background var(--transition-fast);
    border-bottom: 1px solid rgba(255,0,255, 0.10);
    color: var(--text);
    font-size: 14px;
    font-weight: 400;
}

.settings-row:last-child { border-bottom: none; }
.settings-row:active { background: rgba(255,0,255, 0.06); }

.settings-row .settings-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.settings-row .settings-icon svg { width: 16px; height: 16px; fill: white; }

.settings-row .settings-icon.orange { background: var(--neon); box-shadow: 0 0 8px rgba(57,255,20,0.3); }
.settings-row .settings-icon.gold { background: var(--cyan); box-shadow: 0 0 8px rgba(127,255,0,0.3); }
.settings-row .settings-icon.red { background: var(--red); box-shadow: 0 0 8px rgba(255,51,51,0.3); }
.settings-row .settings-icon.purple { background: var(--magenta); box-shadow: 0 0 8px rgba(255,0,255,0.3); }

.settings-row .settings-label { flex: 1; }

.settings-row .settings-chevron {
    color: rgba(255,0,255, 0.4);
    font-size: 22px;
    font-weight: 300;
}

.settings-row.disabled {
    opacity: 0.35;
    pointer-events: none;
}

/* ========================================
   iOS TOGGLE SWITCH (pure CSS)
   ======================================== */

.ios-toggle {
    position: relative;
    display: inline-block;
    width: 51px;
    height: 31px;
    flex-shrink: 0;
}

.ios-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.ios-toggle .toggle-slider {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255, 0.12);
    border: 1.5px solid rgba(255,255,255, 0.18);
    border-radius: 31px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.ios-toggle .toggle-slider::before {
    content: '';
    position: absolute;
    width: 27px;
    height: 27px;
    left: 2px;
    bottom: 2px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.ios-toggle input:checked + .toggle-slider {
    background: var(--magenta);
    border-color: var(--magenta);
    box-shadow: 0 0 12px rgba(255,0,255,0.3);
}

.ios-toggle input:checked + .toggle-slider::before {
    transform: translateX(20px);
}

/* Neon orange variant */
.ios-toggle.orange input:checked + .toggle-slider {
    background: var(--neon);
    border-color: var(--neon);
    box-shadow: 0 0 12px rgba(57,255,20,0.3);
}

/* Gold variant */
.ios-toggle.gold input:checked + .toggle-slider {
    background: var(--cyan);
    border-color: var(--cyan);
    box-shadow: 0 0 12px rgba(127,255,0,0.3);
}

/* Cyan variant */
.ios-toggle.cyan input:checked + .toggle-slider {
    background: var(--cyan);
    border-color: var(--cyan);
    box-shadow: 0 0 12px rgba(0,255,255,0.3);
}

/* Green variant */
.ios-toggle.green input:checked + .toggle-slider {
    background: var(--green);
    border-color: var(--green);
    box-shadow: 0 0 12px rgba(52,199,89,0.3);
}

/* Network switch control */
.network-switch-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.network-switch-label {
    font-size: 13px;
    color: var(--text-dim);
    min-width: 55px;
    text-align: right;
}

/* Settings hint text */
.settings-hint {
    padding: 4px 16px 10px;
    font-size: 11px;
    color: var(--text-dim);
    opacity: 0.7;
}

/* Green settings icon */
.settings-row .settings-icon.green {
    background: var(--green);
    box-shadow: 0 0 8px rgba(52,199,89,0.3);
}

/* ========================================
   PENDING SETTLEMENT BANNER
   ======================================== */

.pending-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    margin: 8px 16px 0;
    background: rgba(57, 255, 20, 0.08);
    border: 1px solid rgba(57, 255, 20, 0.22);
    border-radius: var(--radius-md);
    backdrop-filter: blur(var(--blur-soft));
    -webkit-backdrop-filter: blur(var(--blur-soft));
    animation: pendingPulse 2.5s ease-in-out infinite;
}

@keyframes pendingPulse {
    0%, 100% { border-color: rgba(57, 255, 20, 0.22); }
    50% { border-color: rgba(57, 255, 20, 0.45); }
}

.pending-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pending-count {
    font-size: 18px;
    font-weight: 700;
    color: var(--neon);
    font-family: var(--font);
}

.pending-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.settle-btn {
    padding: 8px 20px;
    border-radius: var(--radius-pill);
    border: none;
    background: var(--neon);
    color: var(--bg);
    font-weight: 600;
    font-size: 13px;
    font-family: var(--font);
    cursor: pointer;
    transition: all var(--transition-fast);
    -webkit-tap-highlight-color: transparent;
}

.settle-btn:active {
    transform: scale(0.95);
    opacity: 0.9;
}

/* ========================================
   PROMO CARD
   ======================================== */

.promo-card {
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255,0,255, 0.22);
    background: rgba(255,0,255, 0.04);
    backdrop-filter: blur(var(--blur-med));
    -webkit-backdrop-filter: blur(var(--blur-med));
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.promo-card:hover {
    background: rgba(255,0,255, 0.08);
    border-color: rgba(255,0,255, 0.35);
    box-shadow: var(--glow-magenta);
    transform: translateY(-1px);
}

.promo-card:active { transform: translateY(0) scale(0.99); }

.promo-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, var(--magenta), var(--neon));
    color: #000;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    letter-spacing: 0.08em;
}

.promo-content { display: flex; align-items: center; gap: var(--spacing-md); position: relative; z-index: 1; }
.promo-icon { width: 44px; height: 44px; color: var(--magenta); flex-shrink: 0; filter: drop-shadow(0 0 8px rgba(255,0,255,0.3)); }
.promo-text { display: flex; flex-direction: column; gap: 3px; }
.promo-text strong { color: var(--text); font-size: 16px; font-weight: 600; }
.promo-text span { color: var(--text-secondary); font-size: 13px; }
.promo-cta { color: var(--magenta) !important; font-weight: 600 !important; margin-top: 4px; }

/* ========================================
   BG UPLOAD
   ======================================== */

.bg-controls { display: flex; gap: var(--spacing-sm); margin-bottom: var(--spacing-md); padding: 0 var(--spacing-xs); }

.bg-controls .bg-btn {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    border: 1px solid var(--stroke-subtle);
    background: var(--glass-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 20px;
    transition: all var(--transition-fast);
}

.bg-controls .bg-btn:active { transform: scale(0.92); background: var(--glass); }

/* ========================================
   SMALL SCREEN TOUCH TARGETS
   ======================================== */

@media screen and (max-width: 375px) {
    .btn { min-height: 48px; padding: 14px 20px; font-size: 15px; }
    .card { padding: var(--spacing-md); }
    .settings-row { padding: 14px var(--spacing-md); }
    .form-input { padding: 14px 16px; font-size: 16px; }
    .copy-btn { padding: 8px 12px; font-size: 12px; }
    .action-buttons { gap: var(--spacing-xs); }
}

/* ========================================
   NFC CARD PROVISIONING
   ======================================== */

.provision-modal {
    padding-bottom: var(--spacing-lg);
}

.provision-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--spacing-xl) var(--spacing-lg);
    gap: var(--spacing-md);
    text-align: center;
}

.provision-icon,
.provision-success-icon,
.provision-error-icon {
    margin-bottom: var(--spacing-sm);
}

.provision-desc {
    font-size: 14px;
    color: var(--text);
    font-weight: 600;
    margin: 0;
    line-height: 1.5;
}

.provision-hint {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.provision-btn {
    width: 100%;
    max-width: 260px;
    margin-top: var(--spacing-sm);
}

.provision-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--stroke-subtle);
    border-top: 3px solid var(--neon);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
    margin-bottom: var(--spacing-sm);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.provision-status {
    font-size: 15px;
    color: var(--text);
    font-weight: 600;
    margin: 0;
}

.provision-substatus {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
}

.provision-details,
.card-status-details {
    width: 100%;
    border-radius: var(--radius-md);
    background: var(--glass);
    border: 1px solid var(--stroke-subtle);
    padding: var(--spacing-md);
}

.card-status-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: var(--spacing-xs) 0;
}

.card-status-row + .card-status-row {
    border-top: 1px solid var(--stroke-subtle);
}

.card-status-label {
    font-size: 12px;
    color: var(--text-secondary);
    flex-shrink: 0;
    margin-right: var(--spacing-sm);
}

.card-status-value {
    font-size: 12px;
    color: var(--text);
    text-align: right;
    word-break: break-all;
}

.card-status-value.mono {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--neon);
}

.card-status-empty {
    text-align: center;
    padding: var(--spacing-lg);
}

.btn-primary.provision-btn {
    background: var(--neon);
    color: #000;
    border: none;
    font-weight: 700;
    border-radius: var(--radius-md);
    padding: 12px 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-primary.provision-btn:active {
    opacity: 0.8;
    transform: scale(0.98);
}

.btn-secondary.provision-btn {
    background: var(--glass);
    color: var(--text-secondary);
    border: 1px solid var(--stroke-light);
    border-radius: var(--radius-md);
    padding: 12px 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-secondary.provision-btn:active {
    opacity: 0.8;
}

.modal-close {
    background: none;
    border: none;
    color: #000;
    font-size: 24px;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
}

/* ========================================
   PAY SCREEN — TAP / SCAN / LEGACY
   ======================================== */

/* 3-button pay mode toggle (extends .pos-mode-toggle) */
.pay-mode-toggle .pos-mode-btn {
    font-size: 12px;
    gap: 4px;
    padding: 9px 6px;
}

.pay-mode-toggle .pos-mode-btn .icon {
    width: 14px;
    height: 14px;
}

/* --- Tap-to-Pay view --- */

/* Mode views must fill remaining flex space so glass container can grow */
.pos-mode-view {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

/* Idle wrapper fills the mode view so the glass container can flex-grow */
#payTapIdle {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.pay-tap-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-md);
    gap: var(--spacing-md);
    min-height: auto;
    flex-shrink: 1;
    flex-grow: 1;
    border-radius: var(--radius-xl);
    border: 1px solid var(--stroke-light);
    background: var(--glass);
    backdrop-filter: blur(var(--blur-med));
    -webkit-backdrop-filter: blur(var(--blur-med));
    box-shadow: var(--shadow-sm);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.pay-tap-icon {
    position: relative;
}

.pay-tap-icon::before {
    content: '';
    position: absolute;
    inset: -16px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(57,255,20,0.08) 0%, transparent 70%);
    animation: nfcPulse 2.5s ease-in-out infinite;
}

@keyframes nfcPulse {
    0%, 100% { transform: scale(0.9); opacity: 0.4; }
    50% { transform: scale(1.15); opacity: 1; }
}

.pay-tap-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.pay-tap-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
    max-width: 260px;
}

.pay-tap-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--neon);
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    background: rgba(57,255,20,0.06);
    border: 1px solid rgba(57,255,20,0.15);
}

.pay-tap-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--neon);
    animation: nfcDotPulse 1.5s ease-in-out infinite;
}

@keyframes nfcDotPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; box-shadow: 0 0 6px var(--neon); }
}

/* NFC Glass Cutout — canvas compositing approach.
   A visible canvas samples the Three.js background, then
   composites through the lottie stroke mask using
   globalCompositeOperation = 'destination-in'.
   Result: Three.js particles visible ONLY through lottie strokes. */

/* Spacer inside glass container reserves layout flow.
   margin-top:auto pushes the circle (and hint below) to the bottom of the flex container,
   so the NFC portal orb sits low in the glass card. */
.pay-nfc-spacer {
    width: 120px;
    height: 120px;
    margin: auto auto var(--spacing-sm);
    flex-shrink: 0;
}

/* Portal is anchored to the Pay view so desktop shell transforms do not
   reinterpret viewport coordinates and push the circle outside the phone. */
.pay-nfc-portal {
    position: absolute;
    width: 120px;
    height: 120px;
    z-index: 100;
    pointer-events: auto;
    overflow: visible;
    cursor: pointer;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

/* The composited result canvas — this is what the user sees */
.pay-nfc-mask-canvas {
    position: absolute;
    inset: 0;
    width: 120px;
    height: 120px;
}

/* Lottie source — full width so canvas gets real dimensions,
   height:0 + overflow:hidden so it takes no layout space. */
.pay-nfc-lottie {
    width: 280px;
    height: 0;
    overflow: hidden;
    pointer-events: none;
}

.pay-tap-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(255,255,255,0.85);
    margin-top: 0;
}

.pay-tap-hint svg {
    fill: currentColor;
    flex-shrink: 0;
}

/* --- Confirmation Card (shared by Tap + Scan) --- */

.pay-confirm-card {
    border-radius: var(--radius-xl);
    border: 1px solid var(--stroke-light);
    background: var(--glass);
    backdrop-filter: blur(var(--blur-med));
    -webkit-backdrop-filter: blur(var(--blur-med));
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.pay-confirm-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 var(--spacing-md);
    text-align: center;
}

.pay-confirm-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid var(--stroke-subtle);
}

.pay-confirm-row:last-child {
    border-bottom: none;
}

.pay-confirm-label {
    font-size: 13px;
    color: var(--text-secondary);
    flex-shrink: 0;
    margin-right: var(--spacing-sm);
}

.pay-confirm-value {
    font-size: 13px;
    color: var(--text);
    text-align: right;
    word-break: break-all;
    font-family: var(--font-mono);
}

.pay-confirm-amount {
    font-size: 15px;
    font-weight: 700;
    color: var(--neon);
    font-family: var(--font);
}

.pay-confirm-total {
    margin-top: 4px;
    padding-top: 12px;
    border-top: 1px solid rgba(57,255,20,0.2);
    border-bottom: none;
}

.pay-confirm-total .pay-confirm-label {
    font-weight: 700;
    color: var(--text);
}

.pay-confirm-total .pay-confirm-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--neon);
    font-family: var(--font);
}

/* --- Slide-to-pay wrappers --- */

.pay-slide-wrapper {
    margin-top: var(--spacing-md);
}

/* --- Scan-to-Pay inline scanner --- */

.pay-scanner-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    max-height: 340px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: #000;
    margin-bottom: var(--spacing-sm);
}

.pay-scanner-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pay-scanner-container .qr-scanner-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pay-scanner-container .qr-scanner-frame {
    width: 200px;
    height: 200px;
    border: 2px solid rgba(127,255,0,0.5);
    border-radius: var(--radius-lg);
    box-shadow: 0 0 0 9999px rgba(0,0,0,0.4);
    position: relative;
}

.pay-scanner-container .qr-scanner-frame::before,
.pay-scanner-container .qr-scanner-frame::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    border-color: var(--neon);
    border-style: solid;
}

.pay-scanner-container .qr-scanner-frame::before {
    top: -1px;
    left: -1px;
    border-width: 3px 0 0 3px;
    border-radius: 4px 0 0 0;
}

.pay-scanner-container .qr-scanner-frame::after {
    bottom: -1px;
    right: -1px;
    border-width: 0 3px 3px 0;
    border-radius: 0 0 4px 0;
}

.pay-scanner-hint {
    font-size: 13px;
    color: var(--text-secondary);
    text-align: center;
    margin: var(--spacing-sm) 0;
}

/* Pay Legacy View spacing */
#payLegacyView {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1;
}

#payLegacyView .send-explainer {
    margin-bottom: var(--spacing-sm);
}

/* =========================================
   VIRTUAL CRYPTO CARD — Image-based
   (matches knexcoin.com reference design)
   ========================================= */

.vcard-wrapper {
    perspective: 800px;
    width: 100%;
    max-width: 300px;
    cursor: pointer;
}

.vcard {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 30px rgba(57,255,20,0.06);
    will-change: transform;
}

.vcard:active {
    transform: scale(0.97);
}

.vcard-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
}

.vcard-hex-overlay {
    position: absolute;
    bottom: 10%;
    left: 8%;
    font-family: var(--font-mono);
    font-size: clamp(14px, 4vw, 18px);
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    letter-spacing: 0.15em;
    text-shadow: 0 1px 4px rgba(0,0,0,0.7);
    pointer-events: none;
}

.vcard-hex {
    display: inline-block;
    transition: opacity 0.15s;
}

.vcard-status-badge {
    position: absolute;
    top: 16%;
    left: 8%;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-dim);
    pointer-events: none;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.3s;
}

/* Only show status badge when card has a status */
.vcard-status-badge.active,
.vcard-status-badge.frozen,
.vcard-status-badge.revoked {
    opacity: 1;
}

.vcard-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-dim);
}

.vcard-status-badge.active .vcard-status-dot {
    background: var(--neon);
    box-shadow: 0 0 6px var(--neon);
}

.vcard-status-badge.active {
    color: var(--neon);
}

.vcard-status-badge.frozen .vcard-status-dot {
    background: #5bc0eb;
    box-shadow: 0 0 6px #5bc0eb;
}

.vcard-status-badge.frozen {
    color: #5bc0eb;
}

.vcard-status-badge.revoked .vcard-status-dot {
    background: #ff4444;
}

.vcard-status-badge.revoked {
    color: #ff4444;
}

/* Glitter canvas overlay — z-index above everything */
.vcard-glitter {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    border-radius: 16px;
    mix-blend-mode: screen;
    z-index: 20;
}

/* --- Card Actions --- */

.vcard-actions {
    display: flex;
    gap: 8px;
    margin-top: var(--spacing-md);
    width: 100%;
    max-width: 100%;
    justify-content: center;
    box-sizing: border-box;
    flex-wrap: wrap;
}

.vcard-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 10px 12px;
    border: 1px solid var(--stroke-light);
    border-radius: var(--radius-pill);
    background: var(--glass);
    backdrop-filter: blur(var(--blur-sm));
    -webkit-backdrop-filter: blur(var(--blur-sm));
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    flex: 0 1 auto;
    white-space: nowrap;
    max-width: calc(33% - 6px);
    box-sizing: border-box;
}

.vcard-action-btn:active {
    transform: scale(0.95);
    background: rgba(255,255,255,0.08);
}

.vcard-action-btn svg {
    flex-shrink: 0;
}

.vcard-action-danger {
    border-color: rgba(255,68,68,0.2);
    color: #ff4444;
}

.vcard-action-danger:active {
    background: rgba(255,68,68,0.08);
}

/* Lock status badge — between Freeze and Revoke */
.vcard-lock-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    transition: all 0.4s ease;
}
.vcard-lock-badge.locked {
    background: rgba(50,215,75,0.12);
    border: 1px solid rgba(50,215,75,0.3);
    color: #32d74b;
}
.vcard-lock-badge.unlocked {
    background: rgba(255,230,0,0.12);
    border: 1px solid rgba(255,230,0,0.3);
    color: #ffe600;
}
.vcard-lock-icon {
    display: flex;
    align-items: center;
}

/* ═══════════════════════════════════════════════
   LINK-TO-PAY — Merchant App Grid
   ═══════════════════════════════════════════════ */

.link-content {
    padding: 0 var(--spacing-sm);
    overflow-y: auto;
    max-height: calc(100vh - 340px);
    -webkit-overflow-scrolling: touch;
}

.link-category {
    margin-bottom: var(--spacing-md);
}

.link-category-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 4px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--neon);
    opacity: 0.7;
}

.link-category-icon {
    font-size: 10px;
}

.link-category-count {
    margin-left: auto;
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    font-weight: 400;
}

.link-merchant-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.link-merchant-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 8px 10px;
    border-radius: 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.2s ease;
}

.link-merchant-card:active {
    background: rgba(57,255,20,0.08);
    border-color: rgba(57,255,20,0.2);
    transform: scale(0.97);
}

.link-merchant-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(57,255,20,0.15), rgba(57,255,20,0.05));
    border: 1px solid rgba(57,255,20,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: var(--neon);
    margin-bottom: 8px;
}

.link-merchant-name {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.link-merchant-status {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 9px;
    color: rgba(57,255,20,0.6);
    margin-top: 4px;
}

.link-merchant-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--neon);
    opacity: 0.6;
}

/* Empty state */
.link-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

.link-empty-icon {
    opacity: 0.4;
    margin-bottom: 16px;
}

.link-empty-title {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    margin: 0 0 8px;
}

.link-empty-desc {
    font-size: 13px;
    color: rgba(255,255,255,0.4);
    margin: 0;
    line-height: 1.4;
}

/* Loading state */
.link-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.link-loading-spinner {
    width: 32px;
    height: 32px;
    border: 2px solid rgba(57,255,20,0.2);
    border-top: 2px solid var(--neon);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 12px;
}

.link-loading p {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

/* Footer */
.link-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px 0 10px;
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-top: 8px;
}

.link-footer-text {
    font-size: 11px;
    color: rgba(255,255,255,0.3);
    text-align: center;
    margin: 0;
}

.link-footer-text code {
    color: var(--neon);
    opacity: 0.7;
    font-family: 'Courier New', monospace;
    font-size: 10px;
}

/* Deep Link Payment Modal */
.deeplink-pay-modal {
    padding: var(--spacing-sm) 0;
}

.deeplink-pay-merchant {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.deeplink-pay-merchant-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(57,255,20,0.2), rgba(57,255,20,0.05));
    border: 1px solid rgba(57,255,20,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 700;
    color: var(--neon);
    margin-bottom: 8px;
}

.deeplink-pay-merchant-name {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
}

/* ========================================
   PAY ID — Registration, KYC, Directory
   Glass Morphism + Readable Contrast
   ======================================== */

/* ── Container glass wrapper ─────────── */

#posPayIdView {
    padding: 8px;
}

.payid-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    opacity: 0.7;
}

.payid-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--glass-strong);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.payid-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 16px;
    backdrop-filter: blur(var(--blur-med));
    -webkit-backdrop-filter: blur(var(--blur-med));
    color: #111;
}

/* ── KYC Section ─────────────────────── */

.payid-kyc-section {
    padding: 16px;
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 16px;
    backdrop-filter: blur(var(--blur-strong));
    -webkit-backdrop-filter: blur(var(--blur-strong));
    margin: 8px;
    color: #111;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.payid-kyc-header {
    text-align: center;
    padding: 20px 0 16px;
}

.payid-kyc-title {
    margin: 12px 0 6px;
    font-size: 18px;
    font-weight: 700;
    color: #111;
}

.payid-kyc-subtitle {
    font-size: 13px;
    opacity: 0.8;
    margin: 0;
    color: #222;
}

.payid-kyc-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    margin: 12px 0;
    backdrop-filter: blur(var(--blur-soft));
    -webkit-backdrop-filter: blur(var(--blur-soft));
}

.payid-kyc-pending {
    background: rgba(255,180,0,0.15);
    color: #ffb400;
    border: 1px solid rgba(255,180,0,0.3);
}

.payid-kyc-rejected {
    background: rgba(255,59,48,0.15);
    color: #ff3b30;
    border: 1px solid rgba(255,59,48,0.3);
}

.payid-kyc-requirements {
    background: rgba(245,245,247,0.9);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 14px;
    padding: 16px;
    margin: 16px 0;
}

.payid-kyc-req-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: 13px;
    opacity: 1;
    line-height: 1.4;
    color: #222;
}

.payid-kyc-req-item .icon {
    flex-shrink: 0;
    opacity: 1;
    color: #111;
}

.payid-kyc-legal-scroll {
    max-height: 180px;
    overflow-y: auto;
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 12px;
    padding: 14px;
    margin: 16px 0;
    background: rgba(255,255,255,0.95);
    -webkit-overflow-scrolling: touch;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.06);
}

.payid-kyc-legal-text {
    font-size: 10px;
    line-height: 1.6;
    opacity: 1;
    font-family: 'SF Mono', 'Menlo', monospace;
    color: #111;
}

.payid-kyc-consent {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px;
    background: rgba(245,245,247,0.9);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    margin: 12px 0;
    cursor: pointer;
}

.payid-kyc-consent input[type="checkbox"] {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--accent-primary);
}

.payid-kyc-consent span {
    font-size: 11px;
    line-height: 1.5;
    opacity: 1;
    color: #222;
}

.payid-kyc-submit-btn {
    width: 100%;
    margin: 16px 0;
    padding: 14px;
    font-size: 15px;
    font-weight: 600;
}

.payid-kyc-footnote {
    font-size: 10px;
    line-height: 1.6;
    opacity: 0.8;
    margin: 16px 0 0;
    padding: 12px;
    border-top: 1px solid rgba(0,0,0,0.1);
    color: #333;
}

/* ── Pay ID Card (current registered) ──── */

.payid-card {
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 18px;
    padding: 22px;
    margin: 8px;
    backdrop-filter: blur(var(--blur-strong));
    -webkit-backdrop-filter: blur(var(--blur-strong));
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    color: #111;
}

.payid-card-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.payid-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(52,199,89,0.18);
    color: #34c759;
    border: 1px solid rgba(52,199,89,0.35);
    backdrop-filter: blur(var(--blur-soft));
    -webkit-backdrop-filter: blur(var(--blur-soft));
}

.payid-card-identity {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.payid-card-identicon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(245,245,247,0.9);
    border: 1px solid rgba(0,0,0,0.08);
}

.payid-card-info {
    flex: 1;
    min-width: 0;
}

.payid-card-username {
    font-size: 22px;
    font-weight: 700;
    color: #111;
    line-height: 1.2;
}

.payid-card-domains {
    display: flex;
    gap: 6px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.payid-domain-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;
    background: rgba(var(--accent-primary-rgb, 0,122,255), 0.18);
    color: var(--accent-primary);
    border: 1px solid rgba(var(--accent-primary-rgb, 0,122,255), 0.3);
}

.payid-card-address {
    background: rgba(245,245,247,0.9);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 12px;
}

.payid-card-addr-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
    margin-bottom: 4px;
    color: #333;
}

.payid-card-addr-text {
    font-size: 13px;
    font-family: 'SF Mono', monospace;
    opacity: 1;
    color: #222;
}

.payid-card-meta {
    display: flex;
    gap: 8px;
    font-size: 11px;
    opacity: 0.7;
    margin-bottom: 16px;
    color: #333;
}

.payid-card-actions {
    display: flex;
    gap: 8px;
}

.payid-share-btn {
    flex: 1;
}

.payid-revoke-btn {
    background: rgba(255,59,48,0.15) !important;
    color: #ff3b30 !important;
    border: 1px solid rgba(255,59,48,0.3) !important;
    font-size: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(var(--blur-soft));
    -webkit-backdrop-filter: blur(var(--blur-soft));
}

/* ── Registration Form ─────────────────── */

.payid-register-section {
    padding: 16px;
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 16px;
    backdrop-filter: blur(var(--blur-strong));
    -webkit-backdrop-filter: blur(var(--blur-strong));
    margin: 8px;
    color: #111;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.payid-register-header {
    text-align: center;
    padding: 16px 0;
}

.payid-input-group {
    display: flex;
    align-items: center;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--stroke-light);
    border-radius: 14px;
    overflow: hidden;
    margin: 16px 0 8px;
    backdrop-filter: blur(var(--blur-med));
    -webkit-backdrop-filter: blur(var(--blur-med));
}

.payid-username-input {
    flex: 1;
    background: none;
    border: none;
    padding: 14px 16px;
    font-size: 16px;
    color: rgba(255,255,255,0.95);
    outline: none;
    font-family: 'SF Mono', monospace;
}

.payid-username-input::placeholder {
    color: rgba(255,255,255,0.35);
}

.payid-domain-display {
    display: flex;
    align-items: center;
    padding: 0 14px;
    font-size: 14px;
    opacity: 0.7;
    flex-shrink: 0;
    border-left: 1px solid var(--stroke-light);
    color: rgba(255,255,255,0.8);
}

.payid-at {
    opacity: 0.5;
    margin-right: 2px;
}

.payid-username-hint {
    font-size: 11px;
    opacity: 0.5;
    padding: 0 4px;
    transition: all 0.2s ease;
}

.payid-hint-error {
    color: #ff3b30;
    opacity: 1;
}

.payid-hint-valid {
    color: #34c759;
    opacity: 1;
}

.payid-preview {
    background: rgba(245,245,247,0.9);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    padding: 12px 16px;
    margin: 12px 0;
}

.payid-preview-label {
    font-size: 11px;
    opacity: 0.8;
    margin-bottom: 6px;
    color: #333;
}

.payid-preview-addr {
    font-size: 13px;
    font-family: 'SF Mono', monospace;
    color: var(--accent-primary);
    padding: 2px 0;
}

.payid-claim-btn {
    width: 100%;
    margin: 16px 0;
    padding: 14px;
    font-size: 15px;
    font-weight: 600;
}

.payid-register-notice {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    padding: 12px;
    background: rgba(255,240,210,0.9);
    border: 1px solid rgba(255,180,0,0.25);
    border-radius: 12px;
    font-size: 11px;
    line-height: 1.5;
    color: #333;
}

/* ── Search + Directory ────────────────── */

.payid-search-section {
    padding: 16px;
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 16px;
    backdrop-filter: blur(var(--blur-strong));
    -webkit-backdrop-filter: blur(var(--blur-strong));
    margin: 8px;
    margin-top: 10px;
    color: #111;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.payid-search-header {
    margin-bottom: 10px;
}

.payid-search-group {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.payid-search-input {
    flex: 1;
    background: rgba(255,255,255,0.85);
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 14px;
    color: #111;
    outline: none;
}

.payid-search-input::placeholder {
    color: rgba(0,0,0,0.35);
}

.payid-search-btn {
    background: rgba(245,245,247,0.9);
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 12px;
    padding: 10px 14px;
    color: #111;
    cursor: pointer;
    transition: background 0.15s ease;
}

.payid-search-btn:active {
    background: rgba(230,230,232,0.9);
}

.payid-search-results {
    margin-bottom: 8px;
}

.payid-search-loading,
.payid-search-empty {
    padding: 16px;
    text-align: center;
    font-size: 13px;
    opacity: 0.8;
    color: #333;
}

.payid-search-result {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: rgba(245,245,247,0.9);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 12px;
    margin-bottom: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.payid-search-result:active {
    background: rgba(230,230,232,0.9);
}

.payid-search-result-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(0,0,0,0.06);
}

.payid-search-result-info {
    flex: 1;
    min-width: 0;
}

.payid-search-result-name {
    font-size: 13px;
    font-weight: 600;
    color: #111;
}

.payid-search-result-addr {
    font-size: 11px;
    font-family: 'SF Mono', monospace;
    opacity: 0.7;
    margin-top: 2px;
    color: #333;
}

/* ── Directory ─────────────────────────── */

.payid-directory {
    margin-top: 12px;
}

.payid-dir-filters {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.payid-dir-filters::-webkit-scrollbar {
    display: none;
}

.payid-dir-filter {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    background: rgba(245,245,247,0.9);
    border: 1px solid rgba(0,0,0,0.08);
    color: #333;
    cursor: pointer;
    transition: all 0.15s ease;
}

.payid-dir-filter.active {
    background: rgba(var(--accent-primary-rgb, 0,122,255), 0.18);
    border-color: rgba(var(--accent-primary-rgb, 0,122,255), 0.35);
    color: var(--accent-primary);
}

.payid-directory-list {
    max-height: 320px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: rgba(250,250,252,0.95);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 14px;
}

.payid-directory-entry {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    cursor: pointer;
    transition: background 0.15s ease;
}

.payid-directory-entry:last-child {
    border-bottom: none;
}

.payid-directory-entry:active {
    background: var(--glass-strong);
}

.payid-dir-entry-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(0,0,0,0.06);
}

.payid-dir-entry-info {
    flex: 1;
    min-width: 0;
}

.payid-dir-entry-name {
    font-size: 12px;
    font-weight: 600;
    color: #111;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.payid-dir-entry-label {
    font-size: 11px;
    opacity: 0.8;
    margin-top: 1px;
    color: #333;
}

.payid-dir-entry-addr {
    font-size: 10px;
    font-family: 'SF Mono', monospace;
    opacity: 0.7;
    margin-top: 2px;
    color: #444;
}

.payid-verified-badge {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 600;
    background: rgba(52,199,89,0.18);
    color: #34c759;
    border: 1px solid rgba(52,199,89,0.25);
}

.payid-unverified-badge {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 600;
    background: rgba(255,180,0,0.15);
    color: #ffb400;
    border: 1px solid rgba(255,180,0,0.2);
}

.payid-region-tag {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 500;
    background: rgba(230,230,232,0.8);
    color: #555;
    border: 1px solid rgba(0,0,0,0.06);
}

.payid-type-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.payid-type-whitelist {
    background: rgba(52,199,89,0.15);
    color: #34c759;
    border: 1px solid rgba(52,199,89,0.2);
}

.payid-type-business {
    background: rgba(0,122,255,0.15);
    color: #007aff;
    border: 1px solid rgba(0,122,255,0.2);
}

.payid-type-government {
    background: rgba(175,130,255,0.15);
    color: #af82ff;
    border: 1px solid rgba(175,130,255,0.2);
}

.payid-type-institutional {
    background: rgba(255,159,10,0.15);
    color: #ff9f0a;
    border: 1px solid rgba(255,159,10,0.2);
}

.payid-dir-empty {
    padding: 24px;
    text-align: center;
    font-size: 13px;
    opacity: 0.7;
    color: #333;
}

/* ── Legal Footer ──────────────────────── */

.payid-legal-footer {
    padding: 14px 16px;
    background: rgba(250,250,252,0.9);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 14px;
    margin: 10px 8px 8px;
}

.payid-legal-text {
    font-size: 9px;
    line-height: 1.6;
    opacity: 0.8;
    margin: 0 0 10px;
    color: #333;
}

.payid-legal-links {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 10px;
}

.payid-legal-links a {
    color: var(--accent-primary);
    text-decoration: none;
    opacity: 0.7;
}

.payid-legal-links span {
    opacity: 0.3;
}

/* ── Legacy Tab Actions (Print QR + Explorer) ── */

.legacy-actions {
    display: flex;
    gap: 8px;
    padding: 12px 0;
    margin-top: 8px;
}

.legacy-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px;
    font-size: 13px;
}

/* ── Bank Support Bar (VOIP Call) ────── */

/* ── Keypad Paste Button ──────────── */

.keypad-paste-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(255,59,48,0.9);
    border: 1px solid rgba(255,59,48,1);
    color: #000;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.keypad-paste-btn svg {
    color: #000;
}

.keypad-paste-btn:active {
    background: rgba(255,59,48,1);
    transform: scale(0.96);
}

.bank-support-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    margin: 10px 0;
    background: var(--glass);
    border: 1px solid var(--stroke-light);
    border-radius: 14px;
    backdrop-filter: blur(var(--blur-med));
    -webkit-backdrop-filter: blur(var(--blur-med));
}

.bank-support-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.6);
}

.bank-support-label {
    font-size: 12px;
    font-weight: 500;
    opacity: 0.8;
}

.bank-call-btn {
    display: flex !important;
    align-items: center;
    gap: 6px;
    padding: 8px 14px !important;
    font-size: 13px !important;
    font-weight: 600;
    border-radius: 10px !important;
    min-height: auto !important;
    white-space: nowrap;
}

/* ========================================
   ENTROPY SCREEN — Touch Key Generation
   ======================================== */

.entropy-screen {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: #050505;
    display: none;
    flex-direction: column;
}
.entropy-screen.active {
    display: flex;
}

/* ── Canvas (full-screen, behind everything) ── */
.entropy-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    touch-action: none;
    z-index: 1;
}

/* ── Halo layer ── */
.entropy-halo-layer {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}
.entropy-halo-ring {
    position: absolute;
    border-radius: 50%;
    border: 3px solid rgba(0,229,255,0.45);
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0);
    /* duration overridden per-element in JS (2.5–3.8s) */
    animation: entropyHaloExpand 3s cubic-bezier(0.08, 0.82, 0.17, 1) forwards;
}
@keyframes entropyHaloExpand {
    0%   { transform: translate(-50%, -50%) scale(0); opacity: 0.7; }
    10%  { transform: translate(-50%, -50%) scale(0.15); opacity: 0.6; }
    30%  { transform: translate(-50%, -50%) scale(0.4); opacity: 0.45; }
    55%  { transform: translate(-50%, -50%) scale(0.65); opacity: 0.25; }
    80%  { transform: translate(-50%, -50%) scale(0.85); opacity: 0.1; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}

/* ── TOP zone: title + stats ── */
.entropy-top {
    position: relative;
    z-index: 3;
    pointer-events: none;
    padding-top: env(safe-area-inset-top, 20px);
    background: rgba(5,5,5,0.35);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.entropy-header {
    text-align: center;
    padding: 0 20px 2px;
    color: #fff;
}
.entropy-header h2 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-shadow: 0 0 20px rgba(57,255,20,0.3);
    margin: 0;
}
.entropy-header p {
    color: rgba(255,255,255,0.4);
    font-size: 14px;
    margin-top: 2px;
}
.entropy-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px 0;
    padding: 2px 20px 0;
}
.entropy-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.entropy-stat-val {
    font-family: var(--font-mono, 'SF Mono', monospace);
    font-size: 16px;
    font-weight: 700;
    color: #00e5ff;
    letter-spacing: 0.02em;
    text-shadow: 0 0 10px rgba(0,229,255,0.5);
}
.entropy-stat-lbl {
    font-size: 8.5px;
    font-weight: 600;
    color: rgba(255,255,255,0.22);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 1px;
}

/* ── BOTTOM zone: progress + button ── */
.entropy-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    padding: 16px 24px calc(env(safe-area-inset-bottom, 20px) + 20px);
    pointer-events: none;
    background: rgba(5,5,5,0.35);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border-top: 1px solid rgba(255,255,255,0.06);
}
.entropy-bottom > * {
    pointer-events: auto;
}
.entropy-progress-track {
    height: 4px;
    background: rgba(255,255,255,0.08);
    border-radius: 2px;
    overflow: hidden;
}
.entropy-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--neon, #39FF14);
    box-shadow: 0 0 10px rgba(57,255,20,0.5), 0 0 4px rgba(57,255,20,0.3);
    transition: width 0.15s ease-out;
}
.entropy-label {
    color: rgba(255,255,255,0.4);
    font-size: 13px;
    margin-top: 10px;
    text-align: center;
}
.entropy-btn {
    width: 100%;
    padding: 16px;
    border-radius: 14px;
    border: none;
    background: var(--neon, #39FF14);
    color: #000;
    font-size: 16px;
    font-weight: 700;
    margin-top: 16px;
    opacity: 0.25;
    pointer-events: none;
    transition: opacity 0.3s ease, box-shadow 0.3s ease;
    font-family: var(--font);
}
.entropy-btn:not([disabled]) {
    opacity: 1;
    pointer-events: auto;
    box-shadow: 0 0 20px rgba(57,255,20,0.3), 0 0 8px rgba(57,255,20,0.2);
}
.entropy-btn:not([disabled]):active {
    transform: scale(0.97);
}
.entropy-btn-pulse {
    animation: entropyBtnPulse 2s ease-in-out infinite;
}
@keyframes entropyBtnPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(57,255,20,0.3), 0 0 8px rgba(57,255,20,0.2); }
    50%      { box-shadow: 0 0 30px rgba(57,255,20,0.5), 0 0 14px rgba(57,255,20,0.35); }
}

/* ── Confirmation overlay ── */
.entropy-confirm {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(5,5,5,0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}
.entropy-confirm.active {
    opacity: 1;
}
.entropy-confirm-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(57,255,20,0.12);
    border: 2px solid rgba(57,255,20,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--neon, #39FF14);
    margin-bottom: 20px;
    box-shadow: 0 0 30px rgba(57,255,20,0.2);
}
.entropy-confirm-text {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
    text-shadow: 0 0 16px rgba(57,255,20,0.3);
}

/* ========================================
   FoLR PIN SETUP — FULL-SCREEN
   ======================================== */
.folr-pin-screen {
    position: fixed;
    inset: 0;
    z-index: 9500;
    background: #000;
    display: none;
    flex-direction: column;
    overflow: hidden;
}
.folr-pin-screen.active {
    display: flex;
}

/* Lottie container — top area */
.folr-pin-lottie {
    width: 180px;
    height: 180px;
    margin: 0 auto;
    margin-top: calc(env(safe-area-inset-top, 20px) + 24px);
    flex-shrink: 0;
}

/* Content overlay */
.folr-pin-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 24px;
}

/* Header — fixed height so dots never jump when text changes */
.folr-pin-header {
    text-align: center;
    margin-top: 12px;
    margin-bottom: 20px;
    height: 56px;
    overflow: hidden;
}
.folr-pin-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
    margin: 0 0 6px;
}
.folr-pin-header p {
    color: rgba(255,255,255,0.45);
    font-size: 14px;
    line-height: 1.4;
    max-width: 300px;
    margin: 0 auto;
}

/* Salt dots row — 3 groups of 3 */
.folr-pin-dots-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 8px;
}
.folr-dot-group {
    display: flex;
    gap: 10px;
}
.folr-pin-dots {
    display: flex;
}
.folr-pin-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.25);
    background: transparent;
    transition: all 0.2s ease;
}
.folr-pin-dot.filled {
    background: var(--neon, #39FF14);
    border-color: var(--neon, #39FF14);
    box-shadow: 0 0 10px rgba(57,255,20,0.4);
}
.folr-pin-dot.error {
    border-color: #ff4444;
    background: rgba(255,68,68,0.3);
    animation: folrDotShake 0.4s ease;
}

/* Error text */
.folr-pin-error {
    color: #ff4444;
    font-size: 13px;
    min-height: 20px;
    text-align: center;
    margin: 0 0 4px;
}

/* ── 4x4 hexadecimal keypad ── */
.folr-pin-keypad {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    width: 100%;
    max-width: 320px;
    margin-top: auto;
    padding-bottom: calc(env(safe-area-inset-bottom, 20px) + 16px);
}
.folr-key {
    height: 56px;
    border-radius: 14px;
    border: 2.5px solid #fff;
    background: #000;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    color: #fff;
    font-size: 24px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.folr-key:active {
    background: #000;
    border-color: var(--neon, #39FF14);
    transform: scale(0.94);
}
.folr-key-hex {
    color: #000;
    background: #fff;
    border-color: rgba(255,255,255,0.6);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
.folr-key-hex:active {
    color: #000;
    background: #fff;
    border-color: var(--neon, #39FF14);
}

/* ── Literature / onboarding completion screen — Apple-inspired ── */
.folr-pin-literature {
    position: absolute;
    inset: 0;
    z-index: 10;
    background: #000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    overflow: hidden;
    font-family: -apple-system, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
.folr-pin-literature.active {
    opacity: 1;
    pointer-events: auto;
}
.folr-lit-body {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: calc(env(safe-area-inset-top, 20px) + 16px) 24px calc(env(safe-area-inset-bottom, 20px) + 12px);
    max-width: 400px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Lottie icon — frame 70, static */
.folr-lit-lottie {
    width: 80px;
    height: 80px;
    margin: 0 auto 12px;
    flex-shrink: 0;
}

.folr-lit-body h2 {
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    text-align: center;
    margin: 0 0 16px;
    letter-spacing: -0.02em;
}

/* Terms items */
.folr-lit-terms {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
}
.folr-lit-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.folr-lit-item-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}
.folr-lit-item h4 {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 2px;
    letter-spacing: -0.01em;
}
.folr-lit-item p {
    color: rgba(255,255,255,0.4);
    font-size: 11px;
    line-height: 1.45;
    margin: 0;
}

/* Print check notice */
.folr-lit-print-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    margin-top: 14px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    flex-shrink: 0;
}
.folr-lit-print-check svg {
    flex-shrink: 0;
    margin-top: 1px;
}
.folr-lit-print-priority {
    color: rgba(255,255,255,0.55);
    font-size: 11px;
    line-height: 1.45;
    margin: 0;
}
.folr-lit-print-priority strong {
    color: #fff;
}

/* Continue button — green */
.folr-lit-continue-btn {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: none;
    background: var(--neon, #39FF14);
    color: #000;
    font-family: -apple-system, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 12px;
    flex-shrink: 0;
    letter-spacing: -0.01em;
}
.folr-lit-continue-btn:active {
    transform: scale(0.97);
    opacity: 0.85;
}

/* Shake animation for mismatched PIN */
@keyframes folrDotShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

/* ── NFC Slide-In Overlay ─────────────────────────────────── */

.nfc-overlay {
    position: fixed;
    inset: 0;
    z-index: 9600;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.45s ease;
}
.nfc-overlay.active {
    pointer-events: auto;
    opacity: 1;
}

.nfc-overlay-scrim {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
}

.nfc-overlay-panel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10,10,10,0.94);
    backdrop-filter: blur(24px) saturate(1.4);
    border-left: 13px solid rgba(255,255,255,0.85);
    border-bottom: 13px solid rgba(255,255,255,0.85);
    border-right: 13px solid rgba(255,255,255,0.85);
    border-top: none;
    border-radius: 0 0 36px 36px;
    padding: calc(env(safe-area-inset-top, 44px) + 16px) 24px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateY(-100%);
    transition: transform 0.9s cubic-bezier(0.12, 0.6, 0.15, 0.96);
}
.nfc-overlay.active .nfc-overlay-panel {
    transform: translateY(0);
    animation: nfcBorderGlow 2.2s ease-in-out infinite;
}

@keyframes nfcBorderGlow {
    0%, 100% { box-shadow: 0 4px 24px rgba(255,255,255,0.15), inset 0 0 14px rgba(255,255,255,0.05); }
    50% { box-shadow: 0 6px 55px rgba(255,255,255,0.55), inset 0 0 35px rgba(255,255,255,0.18); }
}

/* Lottie animation container */
.nfc-lottie-container {
    width: 160px;
    height: 160px;
    margin-bottom: 12px;
}

.nfc-overlay-title {
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    font-family: -apple-system, 'SF Pro Display', 'Helvetica Neue', sans-serif;
    margin: 0 0 6px;
    text-align: center;
    letter-spacing: -0.02em;
}

.nfc-overlay-subtitle {
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    font-weight: 400;
    font-family: -apple-system, 'SF Pro Text', 'Helvetica Neue', sans-serif;
    margin: 0 0 20px;
    text-align: center;
}

/* Success state */
.nfc-overlay.nfc-success .nfc-overlay-title {
    color: #00e676;
}

.nfc-overlay-cancel {
    background: none;
    border: 1px solid rgba(255,59,48,0.6);
    border-radius: 8px;
    color: #ff3b30;
    font-size: 14px;
    font-family: -apple-system, 'SF Pro Text', 'Helvetica Neue', sans-serif;
    cursor: pointer;
    padding: 8px 20px;
}
.nfc-overlay-cancel:active {
    color: #ff6961;
    border-color: rgba(255,105,97,0.7);
    background: rgba(255,59,48,0.08);
}

/* ========================================
   LEGACY QR SEND — Full-Screen Glassmorphism
   ======================================== */

.legacy-send-screen {
    position: fixed;
    inset: 0;
    z-index: 9500;
    background: rgba(0,0,0,0.55);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: calc(env(safe-area-inset-top, 44px) + 30px);
}
.legacy-send-screen.active {
    display: flex;
}

.legacy-send-card {
    width: calc(100% - 32px);
    max-width: 360px;
    background: rgba(57,255,20, 0.03);
    backdrop-filter: blur(14px) saturate(1.2);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    border: 1px solid rgba(127,255,0, 0.28);
    border-radius: 24px;
    box-shadow: 0 16px 48px rgba(57,255,20,0.10), 0 0 2px rgba(127,255,0,0.45);
    padding: 28px 24px;
    text-align: center;
}

.legacy-send-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--neon, #39ff14);
    margin-bottom: 16px;
}

.legacy-send-address {
    font-family: 'SF Mono', 'Menlo', 'Courier New', monospace;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 24px;
    word-break: break-all;
}

.legacy-send-amount-display {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 16px 0;
    border-top: 1px solid rgba(127,255,0, 0.12);
    border-bottom: 1px solid rgba(127,255,0, 0.12);
}

.legacy-send-amount-value {
    font-size: 42px;
    font-weight: 200;
    color: #fff;
    letter-spacing: -1px;
    min-width: 60px;
}

.legacy-send-unit {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255,255,255,0.35);
    letter-spacing: 1px;
}

.legacy-send-memo-input {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    outline: none;
    text-align: center;
    -webkit-appearance: none;
    box-sizing: border-box;
}
.legacy-send-memo-input::placeholder {
    color: rgba(255,255,255,0.25);
}
.legacy-send-memo-input:focus {
    border-color: rgba(127,255,0, 0.4);
    background: rgba(255,255,255,0.08);
}

.legacy-send-error {
    color: #ff4444;
    font-size: 12px;
    margin-top: 8px;
    min-height: 16px;
}

/* ---- Numeric Keypad ---- */

.legacy-send-keypad {
    position: fixed;
    left: 0;
    bottom: 0;
    right: 0;
    background: rgba(10,10,10,0.88);
    backdrop-filter: blur(24px) saturate(1.3);
    -webkit-backdrop-filter: blur(24px) saturate(1.3);
    border-top: 1px solid rgba(255,255,255,0.06);
    border-radius: 28px 28px 0 0;
    padding: 14px 16px calc(env(safe-area-inset-bottom, 20px) + 12px);
    z-index: 9501;
}

.legacy-send-keypad-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    max-width: 340px;
    margin: 0 auto;
}

.lsk-key {
    height: 52px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.06);
    color: #fff;
    font-size: 24px;
    font-weight: 400;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
    transition: background 0.1s, transform 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lsk-key:active, .lsk-key.pressed {
    background: rgba(255,255,255,0.16);
    transform: scale(0.94);
}

.lsk-key-dot {
    font-size: 28px;
    font-weight: 700;
}

.lsk-key-backspace {
    background: rgba(255,51,51,0.04);
    color: #ff6961;
    font-size: 20px;
}
.lsk-key-backspace:active {
    background: rgba(255,51,51,0.12);
}

.legacy-send-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
}

.lsk-action {
    flex: 1;
    height: 50px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    -webkit-tap-highlight-color: transparent;
    transition: all 0.15s;
}
.lsk-action:active {
    transform: scale(0.96);
    opacity: 0.85;
}

.lsk-action-cancel {
    background: rgba(255,255,255,0.06);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.10);
}

.lsk-action-send {
    background: var(--neon, #39ff14);
    color: #000;
}

/* ---- Confirm View ---- */

.legacy-send-detail-rows {
    text-align: left;
    margin: 8px 0 20px;
}

.legacy-send-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.legacy-send-row:last-child {
    border-bottom: none;
}

.legacy-send-row-label {
    font-size: 13px;
    color: rgba(255,255,255,0.45);
    font-weight: 500;
}

.legacy-send-row-value {
    font-size: 14px;
    color: #fff;
    font-weight: 500;
    text-align: right;
    max-width: 60%;
    word-break: break-all;
}

.legacy-send-row-total {
    border-top: 1px solid rgba(127,255,0, 0.2);
    padding-top: 12px;
    margin-top: 4px;
}
.legacy-send-row-total .legacy-send-row-label,
.legacy-send-row-total .legacy-send-row-value {
    font-weight: 700;
    color: var(--neon, #39ff14);
}

.legacy-send-confirm-actions {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

/* Tab bar hide */
.tab-nav-hidden {
    display: none !important;
}
