/* ═══════════════════════════════════════════════════════════════
   IntiBot Mini App — Liquid Glass Xianxia · Mobile-First
   Golden sunset · amber · warm cream · Inti sol
   Phase 6: High Contrast Identity (Inca Hard Cut)
   ═══════════════════════════════════════════════════════════════ */

:root {
    /* ── Core palette ── */
    --xia-bg: #141010;
    --xia-bg-mid: #1a1210;
    --xia-bg-deep: #100c08;
    --xia-text: #fff6e6;
    --xia-text-strong: #ffffff;
    --xia-hint: #c4a882;
    --xia-link: #e8a020;

    /* ── Accent tones ── */
    --xia-rose: #e88060;
    --xia-rose-strong: #d06040;
    --xia-gold: #d4920a;
    --xia-gold-soft: #f0c850;
    --xia-cream: #fff6e6;
    --xia-blush: #ffd8a8;
    --xia-sunset: #f0a040;
    --xia-amber: #e87830;
    --xia-peach: #ffc898;

    /* ── Glass ── */
    --glass-bg: rgba(255, 246, 230, 0.07);
    --glass-bg-hover: rgba(255, 246, 230, 0.12);
    --glass-border: rgba(255, 210, 160, 0.18);
    --glass-border-strong: rgba(255, 190, 120, 0.35);
    --glass-blur: 18px;
    --glass-shadow: 0 4px 20px rgba(60, 30, 10, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    --glass-glow: 0 0 30px rgba(212, 146, 10, 0.12), 0 0 60px rgba(240, 160, 64, 0.06);

    /* ── Semantic ── */
    --ok: #6ee7a0;
    --warn: #ffd06e;
    --fail: #ff8888;
    --risk-low: #6ee7a0;
    --risk-medium: #ffd06e;
    --risk-high: #ff8888;

    /* ── Geometry ── */
    --radius: 0px 20px 0px 20px;
    /* Aggressive Inca Hard Cut */
    --radius-sm: 0px 12px 0px 12px;
    --radius-pill: 2px;
    /* Slight bevel for pills */

    /* ── Bottom nav height ── */
    --bnav-h: 62px;
}

/* ── Reset ── */
*,
*::before,
*::after {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    width: 100%;
    max-width: 100%;
    margin: 0;
    overflow-x: clip;
    color: var(--xia-text);
    background: var(--xia-bg);
    font-family: "Outfit", "Segoe UI", sans-serif;
    font-size: 13px;
    line-height: 1.45;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    padding-top: calc(env(safe-area-inset-top, 0px) + 6px);
    padding-right: calc(env(safe-area-inset-right, 0px) + 6px);
    padding-bottom: calc(var(--bnav-h) + env(safe-area-inset-bottom, 0px) + 8px);
    padding-left: calc(env(safe-area-inset-left, 0px) + 6px);

    /* Celestial sunset gradient backdrop + HIGH VISIBILITY Woven Pattern */
    background:
        repeating-linear-gradient(45deg, rgba(232, 160, 96, 0.08) 0px, rgba(232, 160, 96, 0.08) 1px, transparent 1px, transparent 12px),
        repeating-linear-gradient(-45deg, rgba(232, 160, 96, 0.08) 0px, rgba(232, 160, 96, 0.08) 1px, transparent 1px, transparent 12px),
        radial-gradient(circle at 50% 0%, rgba(212, 146, 10, 0.35), transparent 60%),
        linear-gradient(170deg, #0a0808 0%, #1a1210 50%, #0a0808 100%);
    background-attachment: fixed;
    /* Frame */
    border: 4px solid var(--xia-gold);
    border-image: linear-gradient(to bottom, var(--xia-gold), var(--xia-rose)) 1;
}

/* ── Particles canvas ── */
#particles {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* ═══════════════════════════════════════════════════════════════
   Floating background orbs — xianxia qi / petal blobs
   ═══════════════════════════════════════════════════════════════ */

.bg-shape {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    border-radius: 50%;
    filter: blur(40px);
}

.bg-shape-a {
    width: 240px;
    height: 240px;
    right: -80px;
    top: -60px;
    background: radial-gradient(circle, rgba(212, 146, 10, 0.28), transparent 70%);
    animation: float-a 18s ease-in-out infinite;
}

.bg-shape-b {
    width: 280px;
    height: 280px;
    left: -120px;
    bottom: -100px;
    background: radial-gradient(circle, rgba(240, 160, 64, 0.22), transparent 70%);
    animation: float-b 22s ease-in-out infinite;
}

.bg-shape-c {
    width: 160px;
    height: 160px;
    left: 40%;
    top: 35%;
    background: radial-gradient(circle, rgba(255, 216, 168, 0.12), transparent 70%);
    animation: float-c 26s ease-in-out infinite;
}

.bg-shape-d {
    width: 140px;
    height: 140px;
    right: 8%;
    bottom: 25%;
    background: radial-gradient(circle, rgba(232, 120, 48, 0.16), transparent 70%);
    animation: float-d 20s ease-in-out infinite;
}

@keyframes float-a {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(-15px, 20px) scale(1.06);
    }

    66% {
        transform: translate(10px, -8px) scale(0.96);
    }
}

@keyframes float-b {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    40% {
        transform: translate(20px, -15px) scale(1.05);
    }

    70% {
        transform: translate(-8px, 10px) scale(0.97);
    }
}

@keyframes float-c {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.7;
    }

    50% {
        transform: translate(-18px, -10px) scale(1.1);
        opacity: 1;
    }
}

@keyframes float-d {

    0%,
    100% {
        transform: translate(0, 0);
        opacity: 0.6;
    }

    50% {
        transform: translate(14px, 8px);
        opacity: 0.85;
    }
}

/* ═══════════════════════════════════════════════════════════════
   Desktop Navigation — Clean and Performant
   ═══════════════════════════════════════════════════════════════ */

.desktop-nav {
    display: none;
}

.mobile-only {
    display: block;
}

/* ═══════════════════════════════════════════════════════════════
   Page layout
   ═══════════════════════════════════════════════════════════════ */

.page {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 600px;
    margin: 12px auto;
    display: grid;
    gap: 12px;
    padding: 0 4px;
}

/* ═══════════════════════════════════════════════════════════════
   Glass card — the core component
   ═══════════════════════════════════════════════════════════════ */

.card {
    background: var(--glass-bg);
    border: 1px solid rgba(212, 146, 10, 0.35);
    border-radius: var(--radius);
    padding: 14px;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    overflow: hidden;
    animation: card-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
    position: relative;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.card:hover {
    border-color: var(--xia-gold-soft);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(212, 146, 10, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transform: translateY(-3px) scale(1.01);
}

/* Refraction shine */
.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 12%;
    right: 12%;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 216, 160, 0.35),
            rgba(255, 255, 255, 0.2),
            rgba(212, 146, 10, 0.25),
            transparent);
    pointer-events: none;
}

@keyframes card-in {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.96);
        filter: blur(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.is-hidden {
    display: none;
}

/* ═══════════════════════════════════════════════════════════════
   Hero — compact with collapsible details
   ═══════════════════════════════════════════════════════════════ */

.hero {
    border-top: 2px solid rgba(212, 146, 10, 0.55);
    background:
        linear-gradient(135deg, rgba(212, 146, 10, 0.1), rgba(240, 160, 64, 0.08) 50%, rgba(255, 246, 230, 0.04)),
        var(--glass-bg);
    animation: border-pulse 4s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(212, 146, 10, 0.15), transparent 70%);
    pointer-events: none;
    animation: hero-glow 6s ease-in-out infinite;
}

@keyframes hero-glow {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

@keyframes border-pulse {

    0%,
    100% {
        border-color: rgba(212, 146, 10, 0.55);
        box-shadow: 0 0 0 rgba(212, 146, 10, 0);
    }

    50% {
        border-color: rgba(240, 160, 64, 0.8);
        box-shadow: 0 -2px 10px rgba(212, 146, 10, 0.15);
    }
}

.hero:hover {
    transform: none;
}

/* ═══════════════════════════════════════════════════════════════
   Banking Style Hero — Modern Financial App Design
   ═══════════════════════════════════════════════════════════════ */

.bank-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.bank-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bank-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(212, 146, 10, 0.4));
}

.bank-name {
    font-family: "Cinzel", "Georgia", serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--xia-gold);
    letter-spacing: 0.1em;
}

.bank-status {
    display: flex;
    align-items: center;
}

/* ═══════════════════════════════════════════════════════════════
   WALLET CONTROL BAR - Estilo Inca Angular
   ═══════════════════════════════════════════════════════════════ */

.wallet-control-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0 16px;
    padding: 8px;
    background: linear-gradient(135deg, rgba(26, 21, 18, 0.9) 0%, rgba(20, 16, 14, 0.95) 100%);
    border: 1px solid rgba(212, 146, 10, 0.25);
    border-radius: 0;
    position: relative;
    overflow: visible;
}

.wallet-control-bar::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 10px;
    height: 10px;
    border-top: 1px solid var(--xia-gold);
    border-left: 1px solid var(--xia-gold);
    opacity: 0.5;
}

/* Wallet Box - Muestra la dirección */
.wallet-box {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    padding: 6px 10px;
    background: rgba(212, 146, 10, 0.08);
    border: 1px solid rgba(212, 146, 10, 0.2);
    border-radius: 0;
    clip-path: polygon(6px 0%, 100% 0%, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0% 100%, 0% 6px);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.wallet-box:hover {
    background: rgba(212, 146, 10, 0.12);
    border-color: rgba(212, 146, 10, 0.35);
}

.wallet-box-label {
    font-size: 8px;
    color: var(--xia-hint);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 2px;
}

.wallet-box-address {
    font-size: 12px;
    color: var(--xia-gold-soft);
    font-weight: 600;
    letter-spacing: 0.03em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Botón Copy */
.wallet-btn-copy {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(212, 146, 10, 0.1);
    border: 1px solid rgba(212, 146, 10, 0.25);
    border-radius: 0;
    clip-path: polygon(4px 0%, 100% 0%, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0% 100%, 0% 4px);
    color: var(--xia-gold);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.wallet-btn-copy:hover {
    background: rgba(212, 146, 10, 0.2);
    border-color: rgba(212, 146, 10, 0.45);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(212, 146, 10, 0.15);
}

.wallet-btn-copy:active {
    transform: translateY(0);
}

/* Selector de Wallet */
.wallet-select-wrapper {
    position: relative;
    flex-shrink: 0;
    min-width: 170px;
}

.wallet-inka-select {
    position: relative;
    width: 170px;
}

.wallet-inka-trigger {
    appearance: none;
    width: 100%;
    height: 36px;
    padding: 0 10px;
    border: 1px solid rgba(140, 100, 60, 0.4);
    background: rgba(26, 21, 18, 0.9);
    border-radius: 0;
    clip-path: polygon(4px 0%, 100% 0%, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0% 100%, 0% 4px);
    color: var(--xia-text-strong);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    cursor: pointer;
    transition: all 0.18s ease;
}

.wallet-inka-trigger:hover {
    border-color: rgba(212, 146, 10, 0.55);
    background: rgba(32, 24, 20, 0.95);
}

.wallet-inka-trigger:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.wallet-inka-select.is-open .wallet-inka-trigger {
    border-color: var(--xia-gold);
    box-shadow: 0 0 0 1px rgba(212, 146, 10, 0.28);
}

.wallet-inka-value {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wallet-inka-chevron {
    color: var(--xia-gold);
    font-size: 10px;
    line-height: 1;
}

.wallet-inka-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    z-index: 30;
    width: 100%;
    border: 1px solid rgba(212, 146, 10, 0.35);
    background: rgba(14, 10, 8, 0.98);
    clip-path: polygon(6px 0%, 100% 0%, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0% 100%, 0% 6px);
    border-radius: 0;
    padding: 4px;
    display: grid;
    gap: 2px;
    max-height: 220px;
    overflow-y: auto;
}

.wallet-inka-menu.is-hidden {
    display: none;
}

.wallet-inka-option {
    appearance: none;
    border: none;
    border-left: 3px solid transparent;
    border-radius: 0;
    background: rgba(28, 22, 18, 0.45);
    color: var(--xia-text);
    padding: 9px 8px;
    display: grid;
    grid-template-columns: 8px 1fr auto;
    align-items: center;
    gap: 8px;
    text-align: left;
    cursor: pointer;
    transition: all 0.15s ease;
}

.wallet-inka-option:hover {
    background: linear-gradient(90deg, rgba(140, 100, 60, 0.32) 0%, rgba(80, 60, 40, 0.2) 100%);
    color: var(--xia-gold-soft);
    border-left-color: rgba(212, 146, 10, 0.65);
}

.wallet-inka-option.is-selected {
    background: linear-gradient(90deg, rgba(212, 146, 10, 0.26) 0%, rgba(140, 100, 60, 0.14) 100%);
    color: var(--xia-gold);
    border-left-color: var(--xia-gold);
}

.wallet-inka-option-mark {
    width: 6px;
    height: 6px;
    background: rgba(212, 146, 10, 0.85);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.wallet-inka-option-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wallet-inka-badge {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7ee787;
    border: 1px solid rgba(110, 231, 160, 0.45);
    background: rgba(110, 231, 160, 0.12);
    padding: 2px 5px;
    clip-path: polygon(4px 0%, 100% 0%, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0% 100%, 0% 4px);
}

/* fallback native select if custom fails */
.wallet-selector {
    appearance: none;
    -webkit-appearance: none;
    height: 36px;
    padding: 0 28px 0 10px;
    background: rgba(140, 100, 60, 0.15);
    border: 1px solid rgba(140, 100, 60, 0.35);
    border-radius: 0;
    color: var(--xia-text);
    font-size: 11px;
}

/* Botón Crear Wallet (+) */
.wallet-btn-create {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, rgba(110, 231, 160, 0.15) 0%, rgba(52, 211, 153, 0.1) 100%);
    border: 1px solid rgba(110, 231, 160, 0.35);
    border-radius: 0;
    clip-path: polygon(4px 0%, 100% 0%, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0% 100%, 0% 4px);
    color: #7ee787;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.wallet-btn-create:hover {
    background: linear-gradient(135deg, rgba(110, 231, 160, 0.25) 0%, rgba(52, 211, 153, 0.15) 100%);
    border-color: rgba(110, 231, 160, 0.55);
    transform: translateY(-1px);
    box-shadow: 0 2px 10px rgba(110, 231, 160, 0.2);
}

.wallet-btn-create:active {
    transform: translateY(0);
}

.wallet-btn-create.is-disabled,
.wallet-btn-create:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.bank-balance-section {
    text-align: center;
    margin: 20px 0 28px;
}

.balance-label {
    font-size: 12px;
    color: var(--xia-hint);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 8px;
    font-weight: 600;
}

.balance-amount {
    font-family: "Space Grotesk", ui-monospace, monospace;
    font-size: clamp(36px, 8vw, 52px);
    font-weight: 700;
    color: var(--xia-text-strong);
    margin: 0;
    line-height: 1;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 20px rgba(212, 146, 10, 0.3);
}

.balance-currency {
    font-size: 0.5em;
    color: var(--xia-gold);
    font-weight: 600;
    margin-left: 4px;
}

.balance-fiat {
    margin: 8px 0 0;
    font-size: 15px;
    letter-spacing: 0.04em;
    color: var(--xia-gold-soft);
    font-family: "Space Grotesk", monospace;
}

.balance-market-grid {
    margin: 10px auto 0;
    max-width: 320px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.balance-market-item {
    border: 1px solid rgba(212, 146, 10, 0.2);
    background: rgba(255, 246, 230, 0.05);
    border-radius: var(--radius-sm);
    padding: 7px 9px;
    text-align: left;
}

.balance-market-label {
    display: block;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--xia-hint);
}

.balance-market-value {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--xia-text-strong);
    font-family: "Space Grotesk", monospace;
}

.balance-market-value.is-up {
    color: var(--ok);
}

.balance-market-value.is-down {
    color: var(--fail);
}

.balance-updated {
    margin: 8px 0 0;
    font-size: 10px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.balance-wallet {
    font-size: 13px;
    color: var(--xia-hint);
    margin: 12px 0 0;
    font-family: "Space Grotesk", monospace;
}

.balance-wallet .wallet-address {
    color: var(--xia-gold-soft);
    cursor: pointer;
    transition: color 0.2s;
}

.balance-wallet .wallet-address:hover {
    color: var(--xia-gold);
}

.bank-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.bank-action-btn {
    appearance: none;
    border: none;
    background: linear-gradient(135deg, rgba(212, 146, 10, 0.15), rgba(240, 160, 64, 0.1));
    border: 1px solid rgba(212, 146, 10, 0.25);
    border-radius: var(--radius-sm);
    padding: 16px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
    color: var(--xia-text);
}

.bank-action-btn:hover {
    background: linear-gradient(135deg, rgba(212, 146, 10, 0.25), rgba(240, 160, 64, 0.15));
    border-color: var(--xia-gold);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 146, 10, 0.2);
}

.bank-action-btn:active {
    transform: translateY(0);
}

.bank-action-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--xia-gold), var(--xia-sunset));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--xia-bg);
    box-shadow: 0 4px 12px rgba(212, 146, 10, 0.3);
}

.bank-action-btn span {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bank-details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 16px;
}

/* Responsive adjustments for banking style */
@media (min-width: 768px) {
    .bank-balance-section {
        margin: 28px 0 32px;
    }
    
    .balance-amount {
        font-size: 56px;
    }
    
    .bank-actions {
        gap: 16px;
        margin-bottom: 20px;
    }
    
    .bank-action-btn {
        padding: 20px 12px;
    }
    
    .bank-action-icon {
        width: 48px;
        height: 48px;
    }
    
    .bank-action-btn span {
        font-size: 13px;
    }
    
    .bank-details-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 12px;
    }
}

@media (min-width: 1024px) {
    .balance-amount {
        font-size: 64px;
    }
    
    .bank-actions {
        max-width: 400px;
        margin: 0 auto 24px;
    }
}

.hero-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.hero-identity {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

.hero-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 0 8px rgba(212, 146, 10, 0.4));
    animation: logo-float 3s ease-in-out infinite;
}

@keyframes logo-float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-2px); }
}

.hero-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.hero-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.eyebrow {
    margin: 0;
    color: var(--xia-gold);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 10px;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(212, 146, 10, 0.4);
    white-space: nowrap;
}

h1,
h2 {
    margin: 0;
    font-family: "Cinzel", "Georgia", serif;
    color: var(--xia-text-strong);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    /* Monumental */
}

h1 {
    font-size: clamp(18px, 5vw, 26px);
    font-weight: 800;
    background: linear-gradient(135deg, var(--xia-cream) 0%, var(--xia-gold-soft) 50%, var(--xia-sunset) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.04em;
    filter: drop-shadow(0 2px 4px rgba(212, 146, 10, 0.2));
}

h2 {
    font-size: clamp(14px, 3vw, 18px);
    font-weight: 700;
    color: var(--xia-blush);
}

.hero-subtitle {
    margin: 6px 0 0;
    font-size: 11px;
    letter-spacing: 0.02em;
    opacity: 0.9;
}

.muted {
    color: var(--xia-hint);
}

/* ── Hero toggle button ── */
.hero-toggle-btn {
    appearance: none;
    border: none;
    background: rgba(255, 244, 236, 0.06);
    color: var(--xia-hint);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
    flex-shrink: 0;
    border: 1px solid rgba(212, 146, 10, 0.2);
}

.hero-toggle-btn:hover {
    background: rgba(212, 146, 10, 0.2);
    border-color: rgba(212, 146, 10, 0.4);
    box-shadow: 0 0 12px rgba(212, 146, 10, 0.2);
}

.hero-toggle-btn.is-open {
    transform: rotate(180deg);
}

/* ── Collapsible hero details ── */
.hero-details {
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
    max-height: 500px;
    opacity: 1;
}

.hero-details.is-collapsed {
    max-height: 0;
    opacity: 0;
}

/* ── Pill badge ── */
.pill {
    display: inline-flex;
    align-items: center;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(212, 146, 10, 0.3);
    background: rgba(212, 146, 10, 0.1);
    color: var(--xia-gold);
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    white-space: nowrap;
}

/* ── Hero metrics grid ── */
.hero-grid {
    margin-top: 8px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

/* ── Hero action chips ── */
.hero-actions {
    margin-top: 8px;
    display: flex;
    gap: 6px;
}

.action-chip {
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--xia-text);
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    border-radius: var(--radius-pill);
    padding: 5px 10px;
    cursor: pointer;
    white-space: nowrap;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.action-chip:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-strong);
    box-shadow: 0 0 14px rgba(212, 146, 10, 0.15);
}

.action-chip svg {
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════
   Fixed Bottom Navigation Bar
   ═══════════════════════════════════════════════════════════════ */

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--bnav-h);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    display: flex;
    align-items: stretch;
    background: rgba(20, 16, 16, 0.95);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    border-top: 1px solid rgba(212, 146, 10, 0.25);
    box-shadow: 0 -4px 30px rgba(60, 30, 10, 0.4);
}

.bnav-btn {
    appearance: none;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border: none;
    background: transparent;
    color: var(--xia-hint);
    font: inherit;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: color 0.25s ease;
    position: relative;
    padding: 6px 0;
}

.bnav-btn svg {
    transition: transform 0.2s ease, filter 0.25s ease;
}

.bnav-btn:active svg {
    transform: scale(0.88);
}

.bnav-btn.is-active {
    color: var(--xia-gold-soft);
}

.bnav-btn.is-active svg {
    filter: drop-shadow(0 0 6px rgba(212, 146, 10, 0.5));
}

/* Active indicator line */
.bnav-btn.is-active::before {
    content: "";
    position: absolute;
    top: 0;
    left: 25%;
    right: 25%;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: linear-gradient(90deg, transparent, var(--xia-gold-soft), var(--xia-gold), var(--xia-amber), transparent);
    box-shadow: 0 0 15px rgba(212, 146, 10, 0.6);
    animation: nav-glow 2s ease-in-out infinite;
}

@keyframes nav-glow {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* Ripple hover area */
.bnav-btn::after {
    content: "";
    position: absolute;
    inset: 6px 12px;
    border-radius: var(--radius-sm);
    background: rgba(212, 146, 10, 0);
    transition: background 0.2s ease;
    z-index: -1;
}

.bnav-btn:hover::after {
    background: rgba(212, 146, 10, 0.06);
}

/* ═══════════════════════════════════════════════════════════════
   Buttons — glass style, compact for mobile
   ═══════════════════════════════════════════════════════════════ */

.ui-btn {
    appearance: none;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--xia-text);
    font: inherit;
    font-weight: 700;
    font-size: 12px;
    text-decoration: none;
    text-align: center;
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
}

.ui-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.ui-btn:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-strong);
    box-shadow: 0 4px 20px rgba(212, 146, 10, 0.2);
    transform: translateY(-2px);
}

.ui-btn:hover::before {
    left: 100%;
}

.ui-btn:active {
    transform: translateY(0) scale(0.97);
}

.ui-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    filter: grayscale(0.5);
}

/* Primary solid gold button */
.ui-btn-primary {
    border-color: var(--xia-gold);
    background: linear-gradient(135deg, var(--xia-gold) 0%, var(--xia-sunset) 50%, var(--xia-amber) 100%);
    color: #1a1210;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(212, 146, 10, 0.3);
}

/* Gold shimmer effect */
.ui-btn-primary::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.4),
            transparent);
    transform: skewX(-20deg);
    animation: shimmer 3s infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    50% {
        left: 200%;
    }
    100% {
        left: 200%;
    }
}

.ui-btn-primary:hover {
    background: linear-gradient(135deg, var(--xia-gold-soft) 0%, var(--xia-gold) 50%, var(--xia-sunset) 100%);
    border-color: var(--xia-gold-soft);
    box-shadow: 0 6px 25px rgba(212, 146, 10, 0.45);
    transform: translateY(-2px) scale(1.02);
}

.ui-btn-primary:disabled {
    background: linear-gradient(135deg, rgba(212, 146, 10, 0.25), rgba(240, 160, 64, 0.15));
    border-color: rgba(212, 146, 10, 0.2);
    color: rgba(255, 246, 230, 0.4);
    text-shadow: none;
    box-shadow: none;
}

/* ═══════════════════════════════════════════════════════════════
   Glass sub-components
   ═══════════════════════════════════════════════════════════════ */

.metric,
.token-card,
.movement-item {
    border-radius: 0;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
    animation: stagger-in 0.5s ease backwards;
}

.metric:hover,
.token-card:hover,
.movement-item:hover {
    border-color: var(--xia-gold);
    box-shadow: 0 4px 12px rgba(212, 146, 10, 0.15);
    transform: translateY(-2px);
}

@keyframes stagger-in {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
        filter: blur(2px);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* Stagger delays */
.token-card:nth-child(1) {
    animation-delay: 0.05s;
}

.token-card:nth-child(2) {
    animation-delay: 0.1s;
}

.token-card:nth-child(3) {
    animation-delay: 0.15s;
}

.token-card:nth-child(4) {
    animation-delay: 0.2s;
}

.token-card:nth-child(5) {
    animation-delay: 0.25s;
}

.swap-card:nth-child(1) {
    animation-delay: 0.05s;
}

.swap-card:nth-child(2) {
    animation-delay: 0.1s;
}

.movement-item:nth-child(odd) {
    animation-delay: 0.1s;
}

.movement-item:nth-child(even) {
    animation-delay: 0.15s;
}

.metric {
    padding: 7px 8px;
}

.metric-label {
    margin: 0 0 2px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 9px;
    color: var(--xia-hint);
    font-weight: 600;
}

.metric-value {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    overflow-wrap: anywhere;
    color: var(--xia-text-strong);
}

.mono {
    font-family: "Space Grotesk", ui-monospace, monospace;
    font-size: 11px;
    overflow-wrap: anywhere;
}

/* ═══════════════════════════════════════════════════════════════
   Section heads
   ═══════════════════════════════════════════════════════════════ */

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.section-head h2 {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Sun-Line Separator */
.section-head h2::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--xia-gold), transparent);
    opacity: 0.5;
    display: block;
    min-width: 40px;
}

.section-head h2::before {
    content: "";
    width: 8px;
    height: 8px;
    background: var(--xia-gold);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    box-shadow: 0 0 12px rgba(212, 146, 10, 0.6);
    margin-right: 0;
    display: inline-block;
    vertical-align: middle;
}

.section-head .muted {
    font-size: 11px;
}

.section-note {
    margin: -2px 0 8px;
    font-size: 11px;
    line-height: 1.35;
}

.compact-head {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 210, 160, 0.08);
}

/* ═══════════════════════════════════════════════════════════════
   Stats grid — compact 2x2
   ═══════════════════════════════════════════════════════════════ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.stat-box {
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(26, 21, 18, 0.85);
    border: 1px solid rgba(212, 146, 10, 0.2);
    border-radius: 0;
    clip-path: polygon(6px 0%, 100% 0%, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0% 100%, 0% 6px);
    position: relative;
    transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.stat-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    border-top: 1px solid var(--xia-gold);
    border-left: 1px solid var(--xia-gold);
    opacity: 0.5;
}

.stat-box:hover {
    border-color: rgba(212, 146, 10, 0.4);
    background: rgba(30, 24, 20, 0.92);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 146, 10, 0.12);
}

.stat-box p {
    margin: 0 0 6px;
    font-size: 9px;
    color: var(--xia-hint);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.stat-box strong {
    font-size: 20px;
    color: var(--xia-text-strong);
    font-family: "Space Grotesk", monospace;
    font-weight: 700;
    letter-spacing: -0.01em;
    background: linear-gradient(135deg, var(--xia-text-strong) 0%, var(--xia-gold-soft) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ═══════════════════════════════════════════════════════════════
   Trade inputs
   ═══════════════════════════════════════════════════════════════ */

.trade-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.trade-field {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.trade-field span {
    font-size: 10px;
    color: var(--xia-hint);
    font-weight: 600;
    margin-left: 2px;
}

.trade-field-wide {
    grid-column: 1 / -1;
}

.trade-field input,
.trade-field select {
    appearance: none;
    border: 1px solid var(--glass-border);
    background: rgba(20, 16, 16, 0.5);
    color: var(--xia-text-strong);
    font-family: inherit;
    font-size: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
    width: 100%;
}

.trade-field select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23d4920a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 24px;
}

.trade-field select option {
    background: rgba(26, 21, 18, 1);
    color: var(--xia-text);
    font-size: 12px;
    padding: 8px 10px;
}

.trade-field select option:checked {
    background: linear-gradient(135deg, rgba(212, 146, 10, 0.3) 0%, rgba(240, 160, 64, 0.25) 100%);
    color: var(--xia-gold);
    font-weight: 600;
}

.trade-field select option:hover {
    background: rgba(212, 146, 10, 0.2);
}

/* ═══════════════════════════════════════════════════════════════
   SELECTS PERSONALIZADOS - Estilo Inca Individual
   ═══════════════════════════════════════════════════════════════ */

/* Buy/Sell Selector - Estilo Inti (Sol) */
.select-trade-side {
    background: linear-gradient(135deg, rgba(212, 146, 10, 0.15) 0%, rgba(240, 160, 64, 0.08) 100%) !important;
    border: 1px solid rgba(212, 146, 10, 0.35) !important;
    border-radius: 0 !important;
    clip-path: polygon(8px 0%, 100% 0%, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0% 100%, 0% 8px) !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    position: relative !important;
    padding-left: 28px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23ffd876' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"), linear-gradient(135deg, rgba(212, 146, 10, 0.15) 0%, rgba(240, 160, 64, 0.08) 100%) !important;
    background-repeat: no-repeat, no-repeat !important;
    background-position: right 10px center, 0 0 !important;
}

.select-trade-side::before {
    content: "☀";
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: var(--xia-gold);
    text-shadow: 0 0 10px rgba(212, 146, 10, 0.8);
}

.select-trade-side option {
    background: rgba(26, 21, 18, 0.98) !important;
    color: var(--xia-text) !important;
    font-weight: 600 !important;
    padding: 10px 12px !important;
}

.select-trade-side option[value="buy"] {
    color: #7ee787 !important;
    background: linear-gradient(90deg, rgba(126, 231, 135, 0.1) 0%, transparent 100%) !important;
}

.select-trade-side option[value="sell"] {
    color: #f87171 !important;
    background: linear-gradient(90deg, rgba(248, 113, 113, 0.1) 0%, transparent 100%) !important;
}

.select-trade-side option:checked {
    background: linear-gradient(135deg, rgba(212, 146, 10, 0.4) 0%, rgba(240, 160, 64, 0.3) 100%) !important;
    color: var(--xia-gold) !important;
}

/* Currency Selector - Estilo Quipu Simple */
.select-currency {
    background: rgba(26, 21, 18, 0.9) !important;
    border: 1px solid rgba(140, 100, 60, 0.5) !important;
    border-radius: 0 !important;
    font-family: "Space Grotesk", monospace !important;
    font-weight: 600 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    color: var(--xia-gold-soft) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23c4a882' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    padding: 8px 28px 8px 12px !important;
    min-width: 80px;
}

.select-currency:hover {
    border-color: rgba(212, 146, 10, 0.6) !important;
    background: rgba(30, 24, 20, 0.95) !important;
}

.select-currency:focus {
    outline: none !important;
    border-color: var(--xia-gold) !important;
    box-shadow: 0 0 0 1px rgba(212, 146, 10, 0.3) !important;
}

/* Native select hidden (custom Inka dropdown handles UI) */
.native-select-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateX(-9999px) !important;
}

/* Inka custom dropdown */
.inka-select {
    margin-top: 2px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.inka-select-trigger {
    appearance: none;
    border: 1px solid rgba(140, 100, 60, 0.5);
    background: rgba(26, 21, 18, 0.9);
    color: var(--xia-gold-soft);
    font-family: "Space Grotesk", monospace;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 9px 12px;
    border-radius: 0;
    clip-path: polygon(6px 0%, 100% 0%, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0% 100%, 0% 6px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
}

.inka-select-trigger:hover {
    border-color: rgba(212, 146, 10, 0.65);
    background: rgba(30, 24, 20, 0.95);
}

.inka-select.is-open .inka-select-trigger {
    border-color: var(--xia-gold);
    box-shadow: 0 0 0 1px rgba(212, 146, 10, 0.3);
}

.inka-select-value {
    min-width: 0;
}

.inka-select-chevron {
    color: var(--xia-gold);
    font-size: 12px;
    line-height: 1;
}

.inka-select-menu {
    border: 1px solid rgba(212, 146, 10, 0.35);
    background: rgba(16, 12, 10, 0.98);
    border-radius: 0;
    clip-path: polygon(8px 0%, 100% 0%, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0% 100%, 0% 8px);
    padding: 4px;
    display: grid;
    gap: 2px;
    max-height: 180px;
    overflow-y: auto;
}

.inka-select-menu.is-hidden {
    display: none;
}

.inka-select-option {
    appearance: none;
    border: none;
    background: rgba(30, 24, 20, 0.22);
    color: #e8d5b5;
    font-family: "Space Grotesk", monospace;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 10px 10px;
    border-left: 3px solid transparent;
    border-radius: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: left;
    cursor: pointer;
}

.inka-select-option:hover {
    background: linear-gradient(90deg, rgba(140, 100, 60, 0.35) 0%, rgba(80, 60, 40, 0.2) 100%);
    color: #ffd876;
    border-left-color: rgba(212, 146, 10, 0.65);
}

.inka-select-option.is-selected {
    background: linear-gradient(90deg, rgba(212, 146, 10, 0.28) 0%, rgba(140, 100, 60, 0.15) 100%);
    color: #ffd876;
    border-left-color: #d4920a;
    font-weight: 700;
}

.inka-select-option-mark {
    color: rgba(212, 146, 10, 0.85);
    font-size: 10px;
    line-height: 1;
}

/* Fallback for browsers forced to native options */
.select-currency option {
    background: #1a1512;
    color: #e8d5b5;
}

.trade-field input::placeholder {
    color: rgba(196, 168, 130, 0.5);
}

.trade-field input:focus,
.trade-field select:focus {
    outline: none;
    border-color: var(--xia-gold);
    box-shadow: 
        0 0 20px rgba(212, 146, 10, 0.3),
        inset 0 0 8px rgba(212, 146, 10, 0.08);
    background: rgba(255, 246, 230, 0.12);
    transform: translateY(-1px);
}

.trade-actions {
    margin-top: 10px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 8px;
}

.trade-status {
    min-height: 16px;
    margin: 6px 0 0;
    font-size: 11px;
    text-align: center;
    transition: color 0.2s;
}

.trade-status-error {
    color: var(--fail);
}

.trade-quote {
    margin-top: 8px;
    padding: 8px 10px;
    background: rgba(212, 146, 10, 0.08);
    /* slight gold tint */
    border-left: 2px solid var(--xia-gold);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 11px;
    line-height: 1.5;
}

.trade-quote p {
    margin: 2px 0;
}

.trade-quote strong {
    color: var(--xia-gold-soft);
}

.trade-quote a {
    color: var(--xia-link);
    text-decoration: none;
    border-bottom: 1px dotted var(--xia-link);
}

/* ═══════════════════════════════════════════════════════════════
   Settings panel
   ═══════════════════════════════════════════════════════════════ */

.settings-grid {
    display: grid;
    gap: 10px;
}

.settings-layout {
    display: grid;
    gap: 10px;
}

.settings-block {
    border: 1px solid rgba(212, 146, 10, 0.24);
    background: rgba(255, 246, 230, 0.04);
    border-radius: var(--radius-sm);
    padding: 10px;
}

.settings-block-title {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    color: var(--xia-gold-soft);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.settings-block-note {
    margin: 4px 0 10px;
    font-size: 11px;
}

.settings-field {
    gap: 6px;
}

.settings-add-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: center;
}

.settings-user-tag-box {
    margin-top: 10px;
    border: 1px solid rgba(212, 146, 10, 0.18);
    background: rgba(212, 146, 10, 0.05);
    clip-path: polygon(7px 0%, 100% 0%, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0% 100%, 0% 7px);
    padding: 8px;
}

.settings-tag-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 8px;
    align-items: center;
}

.settings-tag-prefix {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 36px;
    border: 1px solid rgba(212, 146, 10, 0.2);
    background: rgba(26, 21, 18, 0.85);
    color: var(--xia-gold);
    font-weight: 700;
    clip-path: polygon(5px 0%, 100% 0%, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0% 100%, 0% 5px);
}

.settings-tag-row input {
    min-width: 0;
}

.settings-tag-row .ui-btn {
    min-width: 72px;
}

.settings-tag-toggle-row {
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.settings-tag-toggle-row .ui-btn {
    min-width: 88px;
}

.settings-add-row .ui-btn {
    min-width: 80px;
}

.settings-preview {
    margin: 10px 0 0;
    font-size: 13px;
    color: var(--xia-gold);
}

.settings-inline-status {
    margin-top: 8px;
    text-align: left;
}

.settings-currency-box {
    margin-top: 8px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    background: rgba(255, 246, 230, 0.04);
    padding: 10px;
}

.settings-subtitle {
    margin: 0 0 8px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.settings-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.settings-chip-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.settings-chip {
    appearance: none;
    border: 1px solid var(--glass-border);
    background: rgba(212, 146, 10, 0.08);
    color: var(--xia-text);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    padding: 7px 11px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.settings-chip.is-active {
    border-color: var(--xia-gold);
    color: var(--xia-gold-soft);
    background: rgba(212, 146, 10, 0.16);
}

.settings-chip:hover {
    border-color: rgba(212, 146, 10, 0.45);
}

.settings-chip-remove {
    appearance: none;
    border: 1px solid var(--glass-border);
    background: rgba(255, 246, 230, 0.06);
    color: var(--xia-hint);
    border-radius: var(--radius-sm);
    width: 24px;
    height: 24px;
    cursor: pointer;
    line-height: 1;
    font-size: 11px;
}

.settings-chip-remove:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.settings-actions-row {
    margin-top: 14px;
    grid-template-columns: 1fr;
}

.settings-block-wallets {
    margin-top: 4px;
}

.wallet-create-grid {
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr;
    align-items: end;
}

.wallet-create-grid #walletCreateBtn {
    width: 100%;
}

.wallet-list {
    margin-top: 8px;
    display: grid;
    gap: 10px;
}

.wallet-item {
    border: 1px solid rgba(212, 146, 10, 0.18);
    background: rgba(255, 246, 230, 0.03);
    border-radius: var(--radius-sm);
    padding: 10px;
}

.wallet-item.is-selected {
    border-color: rgba(212, 146, 10, 0.45);
    background: rgba(212, 146, 10, 0.08);
}

.wallet-item-top {
    margin-bottom: 8px;
}

.wallet-item-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.wallet-item-title {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    color: var(--xia-gold-soft);
}

.wallet-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 6px;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 1px solid rgba(212, 146, 10, 0.25);
    border-radius: var(--radius-pill);
    color: var(--xia-hint);
}

.wallet-badge-primary {
    color: var(--xia-gold-soft);
    border-color: rgba(212, 146, 10, 0.45);
    background: rgba(212, 146, 10, 0.12);
}

.wallet-badge-selected {
    color: var(--ok);
    border-color: rgba(110, 231, 160, 0.45);
    background: rgba(110, 231, 160, 0.12);
}

.wallet-item-address {
    margin: 6px 0 0;
    font-size: 11px;
    color: var(--xia-hint);
}

.wallet-edit-grid {
    display: grid;
    gap: 8px;
}

.wallet-item-actions {
    margin-top: 8px;
    display: grid;
    gap: 6px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wallet-item-actions a.ui-btn {
    text-decoration: none;
}

.wallet-item-actions .ui-btn {
    padding: 8px 10px;
    font-size: 11px;
}

/* ═══════════════════════════════════════════════════════════════
   Token list
   ═══════════════════════════════════════════════════════════════ */

.token-list {
    display: grid;
    gap: 8px;
}

/* Empty state - Estilo Inca */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    text-align: center;
    border: 1px solid rgba(212, 146, 10, 0.15);
    background: linear-gradient(135deg, rgba(26, 21, 18, 0.6) 0%, rgba(20, 16, 14, 0.4) 100%);
    clip-path: polygon(12px 0%, 100% 0%, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0% 100%, 0% 12px);
    position: relative;
}

.empty-state::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 12px;
    height: 12px;
    border-top: 1px solid rgba(212, 146, 10, 0.4);
    border-left: 1px solid rgba(212, 146, 10, 0.4);
}

.empty-state::after {
    content: "◈";
    font-size: 24px;
    color: rgba(212, 146, 10, 0.2);
    margin-bottom: 12px;
    text-shadow: 0 0 20px rgba(212, 146, 10, 0.3);
}

.empty-state p {
    margin: 0;
    line-height: 1.5;
}

.empty-state p:first-of-type {
    font-size: 13px;
    color: var(--xia-gold-soft);
    margin-top: 8px;
}

.empty-state p:last-of-type {
    font-size: 11px;
    color: var(--xia-hint);
    opacity: 0.8;
}

.token-card {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.token-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.token-name {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--xia-gold-soft);
}

.token-category {
    margin: 0;
    font-size: 10px;
    color: var(--xia-hint);
    text-transform: lowercase;
}

.risk-chip {
    display: inline-block;
    padding: 2px 6px;
    border-radius: var(--radius-pill);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.08);
    color: var(--xia-text);
}

.risk-low {
    color: var(--risk-low);
    background: rgba(110, 231, 160, 0.1);
    border: 1px solid rgba(110, 231, 160, 0.25);
}

.risk-medium {
    color: var(--risk-medium);
    background: rgba(255, 208, 110, 0.1);
    border: 1px solid rgba(255, 208, 110, 0.25);
}

.risk-high {
    color: var(--risk-high);
    background: rgba(255, 136, 136, 0.1);
    border: 1px solid rgba(255, 136, 136, 0.25);
}

.token-meta {
    margin: 0;
    font-size: 11px;
    line-height: 1.35;
    color: rgba(255, 246, 230, 0.85);
}

.token-meta strong {
    color: var(--xia-hint);
    font-weight: 600;
    margin-right: 2px;
}

.token-links {
    margin-top: 4px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.token-link-btn {
    appearance: none;
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--xia-text);
    font: inherit;
    font-size: 10px;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.token-link-btn:hover {
    background: var(--glass-bg-hover);
    border-color: var(--xia-gold);
}

.token-pick-btn {
    background: rgba(212, 146, 10, 0.15);
    border-color: rgba(212, 146, 10, 0.3);
    color: var(--xia-gold);
}

/* ═══════════════════════════════════════════════════════════════
   Swap list
   ═══════════════════════════════════════════════════════════════ */

.swap-cards {
    display: grid;
    gap: 6px;
}

.swap-card {
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 11px;
}

.swap-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.swap-card-time {
    color: var(--xia-hint);
    font-size: 10px;
}

.swap-card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 8px;
    margin-top: 2px;
}

.swap-card-label {
    font-size: 9px;
    text-transform: uppercase;
    color: var(--xia-hint);
    margin-right: 4px;
}

.swap-card a {
    color: var(--xia-link);
    text-decoration: none;
    align-self: flex-end;
    font-size: 10px;
}

.status-chip {
    display: inline-flex;
    align-items: center;
    font-size: 9px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--xia-text);
}

.status-confirmed {
    color: var(--ok);
}

.status-failed {
    color: var(--fail);
}

.status-pending {
    color: var(--warn);
}

/* ═══════════════════════════════════════════════════════════════
   Activity tables
   ═══════════════════════════════════════════════════════════════ */

.table-scroll {
    overflow-x: auto;
    border-radius: 4px;
    /* Internal rounding */
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
    white-space: nowrap;
}

th,
td {
    padding: 6px 8px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

th {
    font-weight: 600;
    color: var(--xia-hint);
    font-size: 10px;
    text-transform: uppercase;
}

td {
    color: var(--xia-text);
}

tr:last-child td {
    border-bottom: none;
}

a {
    color: var(--xia-link);
}

/* ═══════════════════════════════════════════════════════════════
   Movements list
   ═══════════════════════════════════════════════════════════════ */

.movement-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 4px;
}

.movement-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
}

.movement-main {
    display: flex;
    flex-direction: column;
}

.movement-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.movement-kind {
    font-size: 11px;
    font-weight: 600;
}

.movement-meta {
    font-size: 10px;
    color: var(--xia-hint);
    letter-spacing: 0.02em;
}

.movement-amount {
    font-size: 11px;
    color: var(--xia-text-strong);
    text-align: right;
}

.movement-link {
    font-size: 10px;
    color: var(--xia-link);
    text-decoration: none;
}

.movement-link:hover {
    text-decoration: underline;
}

.movement-time {
    font-size: 10px;
    color: var(--xia-hint);
}

/* ═══════════════════════════════════════════════════════════════
   Status footer
   ═══════════════════════════════════════════════════════════════ */
.status {
    text-align: center;
    font-size: 10px;
    min-height: 14px;
    margin-bottom: 24px;
}

/* ═══════════════════════════════════════════════════════════════
   Splash
   ═══════════════════════════════════════════════════════════════ */

.splash {
    position: fixed;
    inset: 0;
    background: var(--xia-bg);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s;
}

.splash.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.splash-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.splash-logo {
    width: 72px;
    height: 72px;
    filter: drop-shadow(0 0 30px rgba(212, 146, 10, 0.5));
    animation: pulse-logo 2s ease-in-out infinite;
}

@keyframes pulse-logo {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.9;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

.splash-title {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--xia-cream) 0%, var(--xia-gold) 50%, var(--xia-sunset) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(212, 146, 10, 0.3));
    letter-spacing: 0.08em;
}

.splash-loader {
    width: 140px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.splash-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: var(--xia-gold);
    width: 30%;
    animation: loading-scan 1.5s ease-in-out infinite;
}

@keyframes loading-scan {
    0% {
        left: -30%;
        width: 30%;
    }

    50% {
        left: 35%;
        width: 50%;
    }

    100% {
        left: 100%;
        width: 30%;
    }
}

/* ═══════════════════════════════════════════════════════════════
   Send / Receive Interfaces
   ═══════════════════════════════════════════════════════════════ */

body.modal-open {
    overflow: hidden;
}

body.auth-gate-open {
    overflow: hidden;
}

.auth-gate {
    position: fixed;
    inset: 0;
    z-index: 1450;
    display: grid;
    place-items: center;
    padding: 14px;
}

.auth-gate.is-hidden {
    display: none;
}

.auth-gate-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(9, 8, 8, 0.78);
}

.auth-gate-card {
    position: relative;
    z-index: 1;
    width: min(460px, calc(100vw - 24px));
    padding: 16px;
    text-align: center;
}

.auth-gate-card h2 {
    margin: 0;
    font-size: 18px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--xia-gold);
}

.auth-gate-card p {
    margin: 8px 0 0;
    font-size: 12px;
}

.auth-gate-widget {
    margin-top: 14px;
    min-height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.auth-gate-actions {
    margin-top: 14px;
    display: grid;
    gap: 8px;
}

.action-modal {
    position: fixed;
    inset: 0;
    z-index: 1400;
    display: grid;
    place-items: center;
    padding: 14px;
    isolation: isolate;
}

.action-modal.is-hidden {
    display: none;
}

.action-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(9, 8, 8, 0.74);
    z-index: 0;
}

.action-modal-card {
    position: relative;
    z-index: 1;
    width: min(520px, calc(100vw - 24px));
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    padding: 14px;
}

.action-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.action-modal-head h2 {
    font-size: 16px;
}

.action-modal-close {
    appearance: none;
    border: 1px solid var(--glass-border);
    background: rgba(255, 246, 230, 0.08);
    color: var(--xia-text);
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    line-height: 1;
    font-size: 14px;
}

.action-modal-note {
    margin: 0 0 10px;
    font-size: 11px;
}

.action-modal-grid {
    gap: 10px;
}

.action-modal-actions {
    margin-top: 10px;
}

.action-modal-actions.action-modal-actions-single {
    grid-template-columns: 2fr 1fr;
}

.action-modal-result {
    min-height: 18px;
    margin-top: 8px;
}

/* Wallet Create Modal - Inka popup */
.wallet-create-modal-card {
    width: min(460px, calc(100vw - 28px));
    padding: 16px;
    border: 1px solid rgba(212, 146, 10, 0.4);
    clip-path: polygon(12px 0%, 100% 0%, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0% 100%, 0% 12px);
    background:
        linear-gradient(150deg, rgba(212, 146, 10, 0.08) 0%, transparent 35%),
        linear-gradient(145deg, rgba(28, 22, 18, 0.98) 0%, rgba(20, 16, 14, 0.99) 100%);
    box-shadow:
        0 16px 36px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(212, 146, 10, 0.08) inset;
    position: relative;
    overflow: hidden;
}

.wallet-create-modal-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 22px;
    height: 22px;
    border-top: 1px solid rgba(212, 146, 10, 0.6);
    border-left: 1px solid rgba(212, 146, 10, 0.6);
    opacity: 0.8;
    pointer-events: none;
}

.wallet-create-head {
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(212, 146, 10, 0.2);
    align-items: flex-start;
}

.wallet-create-title-wrap {
    display: grid;
    gap: 2px;
}

.wallet-create-kicker {
    font-size: 9px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(212, 146, 10, 0.9);
}

.wallet-create-modal-card .action-modal-head h2 {
    color: var(--xia-gold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 24px;
    line-height: 1;
}

.wallet-create-close {
    border-radius: 0;
    border: 1px solid rgba(212, 146, 10, 0.4);
    clip-path: polygon(5px 0%, 100% 0%, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0% 100%, 0% 5px);
    background: rgba(212, 146, 10, 0.1);
    color: var(--xia-gold-soft);
}

.wallet-create-close:hover {
    border-color: rgba(212, 146, 10, 0.7);
    background: rgba(212, 146, 10, 0.18);
    color: var(--xia-gold);
}

.wallet-create-note {
    margin-bottom: 10px;
    font-size: 11px;
    color: rgba(232, 216, 189, 0.8);
}

.wallet-create-band {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(212, 146, 10, 0.22);
    background: rgba(212, 146, 10, 0.08);
    clip-path: polygon(7px 0%, 100% 0%, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0% 100%, 0% 7px);
    padding: 7px 10px;
    margin-bottom: 12px;
}

.wallet-create-band-mark {
    width: 8px;
    height: 8px;
    background: var(--xia-gold);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    box-shadow: 0 0 8px rgba(212, 146, 10, 0.55);
    flex-shrink: 0;
}

.wallet-create-band-text {
    font-size: 10px;
    letter-spacing: 0.06em;
    color: var(--xia-gold-soft);
}

.wallet-create-form-grid {
    gap: 12px;
}

.wallet-create-modal-card .trade-field span {
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.wallet-create-input-shell {
    display: flex;
    align-items: center;
    border: 1px solid rgba(212, 146, 10, 0.24);
    background: rgba(20, 16, 14, 0.92);
    clip-path: polygon(7px 0%, 100% 0%, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0% 100%, 0% 7px);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.wallet-create-input-shell:focus-within {
    border-color: var(--xia-gold);
    box-shadow: 0 0 0 1px rgba(212, 146, 10, 0.28);
    background: rgba(26, 21, 18, 0.94);
}

.wallet-create-input-icon {
    margin-left: 10px;
    color: rgba(212, 146, 10, 0.9);
    font-size: 11px;
    width: 10px;
    text-align: center;
    flex-shrink: 0;
}

.wallet-create-modal-card .wallet-create-input-shell input {
    height: 42px;
    border: none;
    background: transparent;
    clip-path: none;
    box-shadow: none;
    padding: 0 12px 0 8px;
}

.wallet-create-modal-card .wallet-create-input-shell input:focus {
    border: none;
    box-shadow: none;
    outline: none;
}

.wallet-create-modal-card .trade-status {
    min-height: 18px;
    margin-top: 12px;
    text-align: left;
}

.wallet-create-actions {
    margin-top: 12px;
    grid-template-columns: 1fr 1.6fr;
    gap: 10px;
}

.wallet-create-actions .ui-btn {
    min-height: 44px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

#walletCreateModalCancelBtn {
    background: rgba(255, 246, 230, 0.08);
    border: 1px solid rgba(212, 146, 10, 0.24);
    color: var(--xia-hint);
}

#walletCreateModalCancelBtn:hover {
    background: rgba(255, 246, 230, 0.12);
    border-color: rgba(212, 146, 10, 0.38);
    color: var(--xia-text);
}

#walletCreateModalCreateBtn {
    background: linear-gradient(135deg, #d4920a 0%, #f0a040 100%);
    border: 1px solid rgba(255, 216, 118, 0.35);
    box-shadow: 0 6px 16px rgba(212, 146, 10, 0.22);
}

#walletCreateModalCreateBtn:hover {
    filter: brightness(1.05);
    box-shadow: 0 8px 20px rgba(212, 146, 10, 0.3);
}

.send-result-line {
    margin: 0 0 8px;
    font-size: 11px;
}

.send-recipient-meta {
    margin: 6px 0 0;
    min-height: 16px;
    font-size: 10px;
    letter-spacing: 0.04em;
    color: var(--xia-hint);
}

.send-asset-hint {
    margin: 8px 0 0;
    min-height: 14px;
    font-size: 10px;
    letter-spacing: 0.03em;
}

.send-balance-box {
    border: 1px solid var(--glass-border);
    background: rgba(255, 246, 230, 0.05);
    border-radius: var(--radius-sm);
    padding: 9px 10px;
    margin: 0 0 10px;
}

.send-balance-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.send-max-btn {
    appearance: none;
    border: 1px solid rgba(212, 146, 10, 0.35);
    background: rgba(212, 146, 10, 0.14);
    color: var(--xia-gold-soft);
    font: inherit;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    padding: 4px 10px;
    cursor: pointer;
}

.send-max-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.send-available {
    margin: 6px 0 0;
    font-size: 12px;
    color: var(--xia-gold-soft);
}

.send-quick-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.send-quick-btn {
    appearance: none;
    border: 1px solid var(--glass-border);
    background: rgba(255, 246, 230, 0.06);
    color: var(--xia-hint);
    font: inherit;
    font-size: 10px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    padding: 5px 9px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.send-quick-btn:hover {
    border-color: var(--xia-gold);
    color: var(--xia-gold-soft);
    background: rgba(212, 146, 10, 0.12);
}

.send-quick-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.send-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
}

.send-preview-item {
    border: 1px solid rgba(212, 146, 10, 0.2);
    border-radius: var(--radius-sm);
    background: rgba(212, 146, 10, 0.06);
    padding: 8px 10px;
}

.send-preview-item span {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--xia-hint);
}

.send-preview-item strong {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--xia-text-strong);
}

/* ═══════════════════════════════════════════════════════════════
   Receive Modal - Redesigned
   ═══════════════════════════════════════════════════════════════ */

.receive-card {
    padding: 16px;
}

.receive-head {
    margin-bottom: 14px;
}

.receive-head h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--xia-gold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.receive-hero {
    text-align: center;
    margin-bottom: 16px;
}

.receive-qr-container {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto 10px;
    border: 2px solid rgba(212, 146, 10, 0.3);
    border-radius: 12px;
    background: #fff;
    padding: 8px;
    box-shadow: 0 4px 20px rgba(212, 146, 10, 0.15);
}

.receive-qr-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    position: relative;
    z-index: 2;
}

.receive-qr-image[src=""] {
    visibility: hidden;
}

.receive-qr-placeholder {
    position: absolute;
    inset: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5f5, #e8e8e8);
    border-radius: 8px;
    color: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.receive-qr-placeholder.is-hidden {
    display: none;
}

.receive-qr-label {
    font-size: 12px;
    color: var(--xia-gold-soft);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0;
}

.receive-address-section {
    margin-bottom: 16px;
}

.receive-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--xia-hint);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}

.receive-address-box {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(212, 146, 10, 0.25);
    background: rgba(255, 246, 230, 0.05);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
}

.receive-address-text {
    flex: 1;
    font-size: 12px;
    color: var(--xia-text);
    overflow-wrap: anywhere;
    line-height: 1.4;
}

.receive-copy-btn {
    appearance: none;
    border: none;
    background: rgba(212, 146, 10, 0.15);
    color: var(--xia-gold);
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.receive-copy-btn:hover {
    background: rgba(212, 146, 10, 0.25);
    transform: scale(1.05);
}

.receive-copy-btn:active {
    transform: scale(0.95);
}

.receive-amount-section {
    margin-bottom: 12px;
}

.receive-amount-input-wrap {
    display: flex;
    align-items: center;
    border: 1px solid rgba(212, 146, 10, 0.25);
    background: rgba(255, 246, 230, 0.05);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.receive-amount-input {
    flex: 1;
    appearance: none;
    border: none;
    background: transparent;
    color: var(--xia-text-strong);
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    padding: 10px 12px;
    outline: none;
}

.receive-amount-input::placeholder {
    color: var(--xia-hint);
}

.receive-amount-suffix {
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 700;
    color: var(--xia-gold);
    border-left: 1px solid rgba(212, 146, 10, 0.2);
    background: rgba(212, 146, 10, 0.08);
}

.receive-uri-box {
    margin-top: 10px;
    padding: 8px 10px;
    border: 1px dashed rgba(212, 146, 10, 0.3);
    border-radius: var(--radius-sm);
    background: rgba(212, 146, 10, 0.04);
}

.receive-uri-box.is-hidden {
    display: none;
}

.receive-uri-label {
    display: block;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--xia-hint);
    margin-bottom: 4px;
}

.receive-uri-text {
    font-size: 10px;
    color: var(--xia-gold-soft);
    overflow-wrap: anywhere;
    line-height: 1.3;
}

.receive-status {
    min-height: 18px;
    margin: 8px 0;
    font-size: 11px;
    text-align: center;
    color: var(--xia-hint);
}

.receive-status:empty {
    display: none;
}

.receive-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 12px;
}

.receive-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 11px;
    padding: 10px 8px;
}

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

.receive-done-btn {
    grid-column: 1 / -1;
    font-size: 13px;
    padding: 12px;
}

/* ═══════════════════════════════════════════════════════════════
   DESKTOP VERSION — Large Screens (1024px+)
   Optimized for wide displays with sidebar navigation
   ═══════════════════════════════════════════════════════════════ */

@media (min-width: 1024px) {
    :root {
        --bnav-h: 0px;
        --glass-blur: 0px;
        /* Estilo Inca - Ángulos geométricos */
        --inca-angle: 0;
    }
    
    body {
        padding: 80px 40px 30px;
        font-size: 14px;
        border-width: 0;
        background: #0f0c0a;
        min-height: 100vh;
    }
    
    /* Hide mobile-only elements */
    .mobile-only {
        display: none !important;
    }
    
    /* ═══════════════════════════════════════════════════════════════
       INCA DESKTOP NAVIGATION - Estilo Angular y Geométrico
       ═══════════════════════════════════════════════════════════════ */
    
    .desktop-nav {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 60px;
        background: #14100e;
        border-bottom: 2px solid var(--xia-gold);
        border-image: linear-gradient(90deg, transparent 0%, var(--xia-gold) 20%, var(--xia-gold) 80%, transparent 100%) 1;
        box-shadow: 0 2px 20px rgba(212, 146, 10, 0.15);
        z-index: 1000;
        padding: 0 40px;
        align-items: center;
        justify-content: space-between;
    }
    
    .desktop-nav::before {
        content: "";
        position: absolute;
        bottom: -4px;
        left: 0;
        right: 0;
        height: 2px;
        background: linear-gradient(90deg, transparent 0%, rgba(212, 146, 10, 0.3) 50%, transparent 100%);
    }
    
    .desktop-nav-brand {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    
    .desktop-nav-logo {
        width: 32px;
        height: 32px;
        filter: drop-shadow(0 0 8px rgba(212, 146, 10, 0.5));
    }
    
    .desktop-nav-title {
        font-family: "Cinzel", "Georgia", serif;
        font-size: 20px;
        font-weight: 700;
        color: var(--xia-gold);
        letter-spacing: 0.2em;
        text-transform: uppercase;
    }
    
    .desktop-nav-menu {
        display: flex;
        gap: 4px;
        background: transparent;
        padding: 0;
        border: none;
    }
    
    .desktop-nav-item {
        appearance: none;
        border: none;
        background: transparent;
        color: var(--xia-hint);
        font-family: inherit;
        font-size: 13px;
        font-weight: 600;
        padding: 8px 20px;
        border-radius: 0;
        cursor: pointer;
        transition: all 0.2s ease;
        position: relative;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        clip-path: polygon(10% 0%, 100% 0%, 90% 100%, 0% 100%);
    }
    
    .desktop-nav-item:hover {
        color: var(--xia-text);
        background: rgba(212, 146, 10, 0.1);
    }
    
    .desktop-nav-item.is-active {
        color: var(--xia-bg);
        background: linear-gradient(135deg, var(--xia-gold) 0%, var(--xia-sunset) 100%);
    }
    
    .desktop-nav-status {
        display: flex;
        align-items: center;
    }
    
    .desktop-nav-status .pill {
        background: rgba(110, 231, 160, 0.1);
        border: 1px solid rgba(110, 231, 160, 0.4);
        color: var(--ok);
        font-size: 11px;
        padding: 4px 12px;
        font-weight: 600;
        border-radius: 0;
        clip-path: polygon(15% 0%, 100% 0%, 85% 100%, 0% 100%);
    }
    
    .page {
        max-width: 900px;
        margin: 0 auto;
        display: block;
        padding: 0;
    }
    
    /* Hide bottom nav on desktop */
    .bottom-nav {
        display: none;
    }
    
    /* ═══════════════════════════════════════════════════════════════
       INCA CARDS - Formas Geométricas Angulares
       ═══════════════════════════════════════════════════════════════ */
    
    .card {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        animation: none;
        border: 2px solid rgba(212, 146, 10, 0.3);
        background: linear-gradient(135deg, rgba(30, 24, 20, 0.98) 0%, rgba(20, 16, 14, 0.98) 100%);
        border-radius: 0;
        clip-path: polygon(20px 0%, 100% 0%, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0% 100%, 0% 20px);
        box-shadow: 
            0 4px 15px rgba(0, 0, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.05);
        transition: all 0.25s ease;
        position: relative;
    }
    
    .card:hover {
        border-color: rgba(212, 146, 10, 0.5);
        box-shadow: 
            0 8px 25px rgba(0, 0, 0, 0.5),
            inset 0 1px 0 rgba(255, 255, 255, 0.08);
    }
    
    /* Esquina decorativa Inca */
    .card::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 20px;
        height: 20px;
        border-top: 2px solid var(--xia-gold);
        border-left: 2px solid var(--xia-gold);
        opacity: 0.6;
    }
    
    /* Window-style panels - only one visible at a time */
    .panel {
        display: none;
        min-height: calc(100vh - 120px);
        max-height: calc(100vh - 120px);
        overflow-y: auto;
        padding-right: 12px;
    }
    
    .panel::-webkit-scrollbar {
        width: 8px;
    }
    
    .panel::-webkit-scrollbar-track {
        background: rgba(212, 146, 10, 0.05);
    }
    
    .panel::-webkit-scrollbar-thumb {
        background: rgba(212, 146, 10, 0.25);
        border: 2px solid #14100e;
    }
    
    .panel::-webkit-scrollbar-thumb:hover {
        background: rgba(212, 146, 10, 0.4);
    }
    
    .panel:not(.is-hidden) {
        display: block;
    }
    
    /* ═══════════════════════════════════════════════════════════════
       HERO SECTION - Estilo Inca Angular
       ═══════════════════════════════════════════════════════════════ */
    
    .hero {
        margin-bottom: 16px;
        animation: none;
        padding: 18px 22px 16px;
        border: 1px solid rgba(212, 146, 10, 0.28);
        background: linear-gradient(135deg, 
            rgba(35, 28, 24, 0.98) 0%, 
            rgba(28, 22, 18, 0.98) 100%);
        clip-path: polygon(16px 0%, 100% 0%, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0% 100%, 0% 16px);
    }
    
    .hero::before {
        display: none;
    }
    
    .bank-header {
        margin-bottom: 14px;
        padding-bottom: 12px;
        border-bottom: 1px solid rgba(212, 146, 10, 0.2);
    }
    
    .bank-logo {
        width: 28px;
        height: 28px;
        filter: drop-shadow(0 0 6px rgba(212, 146, 10, 0.35));
    }
    
    .bank-name {
        font-size: 16px;
        color: var(--xia-gold);
        letter-spacing: 0.12em;
    }

    /* Wallet Control Bar Desktop */
    .wallet-control-bar {
        margin: 16px 0 20px;
        padding: 10px 12px;
        gap: 10px;
    }

    .wallet-box {
        padding: 8px 12px;
        clip-path: polygon(8px 0%, 100% 0%, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0% 100%, 0% 8px);
    }

    .wallet-box::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 8px;
        height: 8px;
        border-top: 1px solid var(--xia-gold);
        border-left: 1px solid var(--xia-gold);
        opacity: 0.4;
    }

    .wallet-box-label {
        font-size: 9px;
        letter-spacing: 0.1em;
    }

    .wallet-box-address {
        font-size: 13px;
    }

    .wallet-btn-copy,
    .wallet-btn-create {
        width: 40px;
        height: 40px;
        clip-path: polygon(6px 0%, 100% 0%, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0% 100%, 0% 6px);
    }

    .wallet-btn-copy svg,
    .wallet-btn-create svg {
        width: 18px;
        height: 18px;
    }

    .wallet-select-wrapper {
        min-width: 190px;
    }

    .wallet-inka-select {
        width: 190px;
    }

    .wallet-inka-trigger {
        height: 40px;
        font-size: 12px;
        padding: 0 12px;
        clip-path: polygon(6px 0%, 100% 0%, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0% 100%, 0% 6px);
    }
    
    .bank-balance-section {
        margin: 12px 0;
        text-align: center;
    }
    
    .balance-label {
        font-size: 10px;
        letter-spacing: 0.18em;
        color: var(--xia-hint);
        margin-bottom: 4px;
        text-transform: uppercase;
    }
    
    .balance-amount {
        font-size: 42px;
        font-weight: 700;
        letter-spacing: -0.01em;
        color: var(--xia-text-strong);
        text-shadow: none;
        margin-bottom: 2px;
        line-height: 1;
    }
    
    .balance-currency {
        font-size: 0.32em;
        font-weight: 600;
        color: var(--xia-gold);
        margin-left: 6px;
    }
    
    .balance-wallet {
        font-size: 12px;
        color: var(--xia-hint);
        font-family: "Space Grotesk", monospace;
        margin-top: 8px;
    }

    .balance-fiat {
        margin-top: 6px;
        font-size: 14px;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--xia-gold-soft);
    }

    .balance-market-grid {
        margin: 10px auto 0;
        max-width: 280px;
        gap: 8px;
    }

    .balance-market-item {
        border: 1px solid rgba(212, 146, 10, 0.22);
        border-radius: 0;
        background: rgba(212, 146, 10, 0.06);
        clip-path: polygon(6px 0%, 100% 0%, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0% 100%, 0% 6px);
        padding: 8px 10px;
        position: relative;
        transition: all 0.2s ease;
    }
    
    .balance-market-item:hover {
        border-color: rgba(212, 146, 10, 0.4);
        background: rgba(212, 146, 10, 0.1);
    }
    
    /* Esquina decorativa */
    .balance-market-item::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 6px;
        height: 6px;
        border-top: 1px solid var(--xia-gold);
        border-left: 1px solid var(--xia-gold);
        opacity: 0.4;
    }

    .balance-market-label {
        font-size: 9px;
        letter-spacing: 0.1em;
    }

    .balance-market-value {
        font-size: 12px;
        letter-spacing: 0.03em;
    }

    .balance-updated {
        margin-top: 6px;
        font-size: 9px;
        letter-spacing: 0.1em;
    }
    
    /* Wallet Badge - Estilo Inca Angular */
    .balance-wallet .wallet-address {
        color: var(--xia-gold-soft);
        cursor: pointer;
        padding: 4px 10px;
        background: rgba(212, 146, 10, 0.08);
        border: 1px solid rgba(212, 146, 10, 0.2);
        transition: all 0.2s ease;
        font-size: 11px;
        letter-spacing: 0.04em;
        clip-path: polygon(4px 0%, 100% 0%, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0% 100%, 0% 4px);
        display: inline-block;
    }
    
    .balance-wallet .wallet-address:hover {
        background: rgba(212, 146, 10, 0.15);
        border-color: rgba(212, 146, 10, 0.4);
        color: var(--xia-gold);
        transform: translateY(-1px);
    }
    
    /* Botones de acción - Estilo Inca Angular Premium */
    .bank-actions {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        max-width: 320px;
        margin: 14px auto 0;
    }
    
    .bank-action-btn {
        background: linear-gradient(135deg, rgba(212, 146, 10, 0.08) 0%, rgba(212, 146, 10, 0.03) 100%);
        border: 1px solid rgba(212, 146, 10, 0.22);
        border-radius: 0;
        clip-path: polygon(10px 0%, 100% 0%, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0% 100%, 0% 10px);
        padding: 16px 8px 14px;
        transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
        position: relative;
    }
    
    .bank-action-btn::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 10px;
        height: 10px;
        border-top: 1px solid var(--xia-gold);
        border-left: 1px solid var(--xia-gold);
        opacity: 0.5;
        transition: opacity 0.2s ease;
    }
    
    .bank-action-btn:hover {
        background: linear-gradient(135deg, rgba(212, 146, 10, 0.15) 0%, rgba(212, 146, 10, 0.06) 100%);
        border-color: rgba(212, 146, 10, 0.45);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(212, 146, 10, 0.15);
    }
    
    .bank-action-btn:hover::before {
        opacity: 0.8;
    }
    
    .bank-action-icon {
        width: 38px;
        height: 38px;
        background: linear-gradient(135deg, var(--xia-gold) 0%, var(--xia-sunset) 100%);
        box-shadow: 0 4px 15px rgba(212, 146, 10, 0.3);
        margin-bottom: 10px;
        border-radius: 0;
        clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    
    .bank-action-btn:hover .bank-action-icon {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(212, 146, 10, 0.4);
    }
    
    .bank-action-icon svg {
        width: 16px;
        height: 16px;
    }
    
    .bank-action-btn span {
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.14em;
        text-transform: uppercase;
    }
    
    /* Details Grid */
    .bank-details-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 10px;
        margin-top: 18px;
    }
    
    /* ═══════════════════════════════════════════════════════════════
       METRICS & STATS - Premium Style
       ═══════════════════════════════════════════════════════════════ */
    
    /* Metric Cards - Estilo Inca Angular */
    .metric {
        background: linear-gradient(180deg, rgba(212, 146, 10, 0.08) 0%, rgba(212, 146, 10, 0.03) 100%);
        border: 1px solid rgba(212, 146, 10, 0.18);
        border-radius: 0;
        clip-path: polygon(8px 0%, 100% 0%, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0% 100%, 0% 8px);
        padding: 12px 10px;
        transition: all 0.2s ease;
        position: relative;
    }
    
    .metric:hover {
        border-color: rgba(212, 146, 10, 0.35);
        background: linear-gradient(180deg, rgba(212, 146, 10, 0.12) 0%, rgba(212, 146, 10, 0.05) 100%);
        transform: translateY(-1px);
    }
    
    /* Esquina decorativa dorada */
    .metric::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 8px;
        height: 8px;
        border-top: 1px solid var(--xia-gold);
        border-left: 1px solid var(--xia-gold);
        opacity: 0.5;
    }
    
    .metric-label {
        font-size: 9px;
        letter-spacing: 0.1em;
        margin-bottom: 4px;
        color: var(--xia-hint);
        text-transform: uppercase;
    }
    
    .metric-value {
        font-size: 13px;
        font-weight: 700;
        letter-spacing: 0.02em;
    }
    
    /* Stats Grid - Estilo Inca Refinado */
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
        margin-bottom: 20px;
    }
    
    .stat-box {
        background: rgba(26, 21, 18, 0.85);
        border: 1px solid rgba(212, 146, 10, 0.18);
        padding: 14px 10px;
        text-align: center;
        transition: all 0.2s ease;
        clip-path: polygon(8px 0%, 100% 0%, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0% 100%, 0% 8px);
        position: relative;
    }
    
    .stat-box:hover {
        border-color: rgba(212, 146, 10, 0.4);
        background: rgba(30, 24, 20, 0.92);
        transform: translateY(-1px);
    }
    
    /* Esquina decorativa */
    .stat-box::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 8px;
        height: 8px;
        border-top: 1px solid var(--xia-gold);
        border-left: 1px solid var(--xia-gold);
        opacity: 0.4;
    }
    
    .stat-box p {
        font-size: 9px;
        letter-spacing: 0.12em;
        margin-bottom: 4px;
        text-transform: uppercase;
        color: var(--xia-hint);
    }
    
    .stat-box strong {
        font-size: 20px;
        color: var(--xia-text-strong);
        font-weight: 700;
        letter-spacing: -0.01em;
    }
    
    /* ═══════════════════════════════════════════════════════════════
       BUTTONS - Estilo Inca Angular
       ═══════════════════════════════════════════════════════════════ */
    
    .ui-btn {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border-radius: 0;
        font-weight: 600;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        transition: all 0.15s ease;
        clip-path: polygon(8px 0%, 100% 0%, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0% 100%, 0% 8px);
    }
    
    .ui-btn:hover {
        transform: translateY(-1px);
    }
    
    .ui-btn-primary {
        background: linear-gradient(135deg, var(--xia-gold) 0%, var(--xia-sunset) 100%);
        border: none;
        box-shadow: 0 3px 12px rgba(212, 146, 10, 0.25);
    }
    
    .ui-btn-primary:hover {
        box-shadow: 0 5px 18px rgba(212, 146, 10, 0.35);
    }
    
    /* Action Chips - Estilo Inca Angular */
    .action-chip {
        border: 1px solid rgba(212, 146, 10, 0.25);
        background: rgba(212, 146, 10, 0.06);
        border-radius: 0;
        font-weight: 600;
        font-size: 10px;
        letter-spacing: 0.08em;
        padding: 6px 12px;
        transition: all 0.15s ease;
        clip-path: polygon(6px 0%, 100% 0%, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0% 100%, 0% 6px);
        text-transform: uppercase;
    }
    
    .action-chip:hover {
        border-color: rgba(212, 146, 10, 0.5);
        background: rgba(212, 146, 10, 0.12);
        transform: translateY(-1px);
    }
    
    .action-chip svg {
        width: 12px;
        height: 12px;
    }
    
    /* ═══════════════════════════════════════════════════════════════
       TYPOGRAPHY - Estilo Inca
       ═══════════════════════════════════════════════════════════════ */
    
    h1, h2, h3 {
        font-family: "Cinzel", "Georgia", serif;
    }
    
    h2 {
        font-size: 18px;
        font-weight: 700;
        letter-spacing: 0.08em;
        margin-bottom: 16px;
        text-transform: uppercase;
        color: var(--xia-gold);
    }
    
    .section-head {
        margin-bottom: 16px;
        padding-bottom: 12px;
        border-bottom: 1px solid rgba(212, 146, 10, 0.2);
        position: relative;
    }

    .section-head::after {
        content: "";
        position: absolute;
        bottom: -1px;
        left: 0;
        width: 60px;
        height: 1px;
        background: linear-gradient(90deg, var(--xia-gold), transparent);
        opacity: 0.6;
    }

    .section-head h2 {
        font-size: 14px;
        margin-bottom: 0;
        letter-spacing: 0.15em;
    }

    .section-head h2::before {
        width: 10px;
        height: 10px;
        box-shadow: 0 0 15px rgba(212, 146, 10, 0.7);
    }

    .section-head .muted {
        font-size: 11px;
        letter-spacing: 0.08em;
    }

    [data-panel="settings"] .section-head {
        margin-bottom: 12px;
    }
    
    /* ═══════════════════════════════════════════════════════════════
       FORM ELEMENTS - Inputs Angulares
       ═══════════════════════════════════════════════════════════════ */
    
    .trade-field input,
    .trade-field select {
        background: rgba(20, 16, 16, 0.8);
        border: 1px solid rgba(212, 146, 10, 0.18);
        border-radius: 0;
        font-size: 13px;
        padding: 10px 12px;
        transition: all 0.15s ease;
        clip-path: polygon(4px 0%, 100% 0%, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0% 100%, 0% 4px);
        height: 40px;
    }
    
    .trade-field input:focus,
    .trade-field select:focus {
        border-color: var(--xia-gold);
        background: rgba(26, 21, 18, 0.9);
        outline: none;
    }

    /* ═══════════════════════════════════════════════════════════════
       SELECT DROPDOWN - Estilo Inca Angular
       ═══════════════════════════════════════════════════════════════ */
    
    .trade-field select {
        cursor: pointer;
        appearance: none;
        -webkit-appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23d4920a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 10px center;
        padding-right: 30px;
    }

    /* Custom dropdown styling for webkit browsers */
    .trade-field select option {
        background: rgba(26, 21, 18, 1);
        color: var(--xia-text);
        font-size: 13px;
        padding: 10px 12px;
        border: none;
        border-bottom: 1px solid rgba(212, 146, 10, 0.15);
    }

    .trade-field select option:hover,
    .trade-field select option:focus {
        background: rgba(212, 146, 10, 0.15) !important;
        color: var(--xia-gold);
    }

    .trade-field select option:checked {
        background: linear-gradient(135deg, rgba(212, 146, 10, 0.25) 0%, rgba(240, 160, 64, 0.2) 100%);
        color: var(--xia-gold);
        font-weight: 600;
    }

    /* Firefox specific dropdown styling */
    @-moz-document url-prefix() {
        .trade-field select {
            background-color: rgba(20, 16, 16, 0.95);
        }
        
        .trade-field select option {
            background-color: rgba(26, 21, 18, 1);
        }
    }

    /* Chrome/Edge/Safari dropdown menu styling */
    select::-webkit-listbox {
        background: rgba(26, 21, 18, 1);
        border: 1px solid rgba(212, 146, 10, 0.3);
        border-radius: 0;
    }

    /* ═══════════════════════════════════════════════════════════════
       SELECTS PERSONALIZADOS DESKTOP - Estilo Inca Individual
       ═══════════════════════════════════════════════════════════════ */

    /* Buy/Sell Selector Desktop - Estilo Inti */
    .select-trade-side {
        background: linear-gradient(135deg, rgba(212, 146, 10, 0.2) 0%, rgba(240, 160, 64, 0.1) 100%) !important;
        border: 1px solid rgba(212, 146, 10, 0.4) !important;
        clip-path: polygon(10px 0%, 100% 0%, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0% 100%, 0% 10px) !important;
        font-size: 14px !important;
        padding-left: 32px !important;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23ffd876' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"), linear-gradient(135deg, rgba(212, 146, 10, 0.2) 0%, rgba(240, 160, 64, 0.1) 100%) !important;
        background-position: right 12px center, 0 0 !important;
        padding-right: 34px !important;
        transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1) !important;
    }

    .select-trade-side:hover {
        background: linear-gradient(135deg, rgba(212, 146, 10, 0.28) 0%, rgba(240, 160, 64, 0.15) 100%) !important;
        border-color: rgba(212, 146, 10, 0.55) !important;
        transform: translateY(-1px);
        box-shadow: 0 4px 15px rgba(212, 146, 10, 0.15) !important;
    }

    .select-trade-side option {
        font-size: 14px !important;
        padding: 12px 14px !important;
    }

    .select-trade-side option[value="buy"]:hover,
    .select-trade-side option[value="buy"]:focus {
        background: linear-gradient(90deg, rgba(126, 231, 135, 0.2) 0%, transparent 100%) !important;
    }

    .select-trade-side option[value="sell"]:hover,
    .select-trade-side option[value="sell"]:focus {
        background: linear-gradient(90deg, rgba(248, 113, 113, 0.2) 0%, transparent 100%) !important;
    }

    /* Currency Selector Desktop - Estilo Quipu */
    .select-currency {
        background: rgba(26, 21, 18, 0.9) !important;
        border: 1px solid rgba(140, 100, 60, 0.5) !important;
        font-size: 14px !important;
        padding: 10px 32px 10px 14px !important;
        min-width: 100px;
        transition: all 0.2s ease !important;
    }

    .select-currency:hover {
        border-color: rgba(212, 146, 10, 0.6) !important;
        background: rgba(30, 24, 20, 0.95) !important;
    }

    .settings-block .trade-field {
        margin-bottom: 0;
    }

    .settings-block .trade-field span {
        font-size: 10px;
        letter-spacing: 0.08em;
        margin-bottom: 4px;
    }

    /* Settings panel - Inca style Compact */
    .settings-layout {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-bottom: 10px;
    }

    .settings-block {
        border-radius: 0;
        border: 1px solid rgba(212, 146, 10, 0.2);
        background: rgba(20, 16, 14, 0.75);
        clip-path: polygon(8px 0%, 100% 0%, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0% 100%, 0% 8px);
        padding: 10px 12px;
    }

    .settings-block-title {
        font-size: 11px;
        letter-spacing: 0.1em;
        color: var(--xia-gold);
        margin-bottom: 6px;
    }

    .settings-block-note {
        font-size: 10px;
        min-height: 20px;
        margin-bottom: 8px;
    }

    .settings-preview {
        margin-top: 8px;
        font-size: 13px;
        color: var(--xia-gold-soft);
        letter-spacing: 0.06em;
    }

    .settings-grid {
        gap: 10px;
    }

    .settings-add-row {
        grid-template-columns: 1fr 80px;
        gap: 8px;
    }

    .settings-user-tag-box {
        margin-top: 8px;
        padding: 7px;
        clip-path: polygon(6px 0%, 100% 0%, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0% 100%, 0% 6px);
    }

    .settings-tag-row {
        grid-template-columns: 26px 1fr 72px;
        gap: 6px;
    }

    .settings-tag-prefix {
        height: 40px;
    }

    .settings-tag-row .ui-btn {
        min-width: 72px;
        padding: 8px 10px;
        font-size: 10px;
    }

    .settings-tag-toggle-row .ui-btn {
        min-width: 84px;
        padding: 8px 10px;
        font-size: 10px;
    }

    .settings-inline-status {
        min-height: 16px;
        font-size: 10px;
        margin-top: 6px;
        margin-bottom: 0;
    }

    .settings-currency-box {
        margin-top: 8px;
        border: 1px solid rgba(212, 146, 10, 0.18);
        border-radius: 0;
        background: rgba(30, 24, 20, 0.7);
        clip-path: polygon(6px 0%, 100% 0%, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0% 100%, 0% 6px);
        padding: 8px;
    }

    .settings-subtitle {
        font-size: 9px;
        letter-spacing: 0.12em;
        margin-bottom: 6px;
    }

    .settings-chip-list {
        gap: 6px;
    }

    .settings-chip {
        border-radius: 0;
        border: 1px solid rgba(212, 146, 10, 0.2);
        background: rgba(212, 146, 10, 0.06);
        clip-path: polygon(4px 0%, 100% 0%, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0% 100%, 0% 4px);
        font-size: 11px;
        letter-spacing: 0.06em;
        padding: 4px 8px;
    }

    .settings-chip.is-active {
        border-color: rgba(212, 146, 10, 0.5);
        background: rgba(212, 146, 10, 0.18);
        color: #f8d56b;
    }

    .settings-chip-remove {
        border-radius: 0;
        border: 1px solid rgba(212, 146, 10, 0.2);
        clip-path: polygon(4px 0%, 100% 0%, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0% 100%, 0% 4px);
        width: 22px;
        height: 22px;
    }

    .settings-actions-row {
        margin-top: 12px;
    }

    .settings-actions-row .ui-btn {
        padding: 8px 16px;
        font-size: 11px;
    }

    .wallet-create-grid {
        grid-template-columns: 1fr 1fr 140px;
        gap: 8px;
    }

    .wallet-create-grid #walletCreateBtn {
        height: 40px;
        font-size: 11px;
        padding: 0 12px;
    }

    .wallet-create-grid input {
        height: 40px;
        padding: 0 10px;
        font-size: 13px;
    }

    .wallet-list {
        margin-top: 10px;
        max-height: 180px;
        overflow-y: auto;
    }

    .wallet-list::-webkit-scrollbar {
        width: 4px;
    }

    .wallet-list::-webkit-scrollbar-thumb {
        background: rgba(212, 146, 10, 0.3);
    }

    .wallet-item {
        border-radius: 0;
        border: 1px solid rgba(212, 146, 10, 0.18);
        background: rgba(20, 16, 14, 0.72);
        clip-path: polygon(6px 0%, 100% 0%, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0% 100%, 0% 6px);
        padding: 8px 10px;
        margin-bottom: 8px;
    }

    .wallet-item.is-selected {
        border-color: rgba(212, 146, 10, 0.45);
        background: rgba(212, 146, 10, 0.12);
    }

    .wallet-item-title {
        font-size: 12px;
        letter-spacing: 0.06em;
        margin-bottom: 2px;
    }

    .wallet-item-address {
        font-size: 11px;
        color: var(--xia-hint);
        margin-bottom: 6px;
    }

    .wallet-edit-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-bottom: 6px;
    }

    .wallet-edit-grid input {
        height: 32px;
        padding: 0 8px;
        font-size: 12px;
    }

    .wallet-item-actions {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 6px;
    }

    .wallet-item-actions .ui-btn {
        border-radius: 0;
        clip-path: polygon(4px 0%, 100% 0%, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0% 100%, 0% 4px);
        padding: 6px 8px;
        font-size: 10px;
        min-height: 28px;
    }

    /* ═══════════════════════════════════════════════════════════════
       TOKEN CARDS - Estilo Inca
       ═══════════════════════════════════════════════════════════════ */
    
    .token-list {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 16px;
    }
    
    .token-card {
        padding: 20px;
        transition: all 0.2s ease;
    }
    
    .token-card:hover {
        border-color: rgba(212, 146, 10, 0.5);
    }
    
    .token-name {
        font-size: 16px;
        font-weight: 700;
    }

    /* Empty state desktop - Estilo Inca */
    .empty-state {
        padding: 48px 32px;
        border: 1px solid rgba(212, 146, 10, 0.2);
        clip-path: polygon(16px 0%, 100% 0%, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0% 100%, 0% 16px);
    }

    .empty-state::before {
        width: 16px;
        height: 16px;
        border-top: 1px solid rgba(212, 146, 10, 0.5);
        border-left: 1px solid rgba(212, 146, 10, 0.5);
    }

    .empty-state::after {
        font-size: 32px;
        margin-bottom: 16px;
    }

    .empty-state p:first-of-type {
        font-size: 15px;
    }

    .empty-state p:last-of-type {
        font-size: 12px;
    }

    /* ═══════════════════════════════════════════════════════════════
       SEND / RECEIVE DIALOGS - Estilo Inca
       ═══════════════════════════════════════════════════════════════ */

    .action-modal-card {
        width: min(560px, calc(100vw - 48px));
        border-radius: 0;
        clip-path: polygon(16px 0%, 100% 0%, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0% 100%, 0% 16px);
        border: 2px solid rgba(212, 146, 10, 0.3);
        padding: 18px;
    }

    .wallet-create-modal-card {
        width: min(500px, calc(100vw - 48px));
    }

    .auth-gate-card {
        border-radius: 0;
        clip-path: polygon(14px 0%, 100% 0%, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0% 100%, 0% 14px);
        border: 2px solid rgba(212, 146, 10, 0.32);
        background: rgba(20, 16, 14, 0.86);
    }

    .auth-gate-actions {
        grid-template-columns: 1fr 1fr;
    }

    .action-modal-head h2 {
        font-size: 18px;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--xia-gold);
    }

    .action-modal-close {
        border-radius: 0;
        border: 1px solid rgba(212, 146, 10, 0.35);
        background: rgba(212, 146, 10, 0.08);
        clip-path: polygon(6px 0%, 100% 0%, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0% 100%, 0% 6px);
    }

    .send-balance-box {
        border: 2px solid rgba(212, 146, 10, 0.24);
        border-radius: 0;
        background: rgba(20, 16, 14, 0.8);
        clip-path: polygon(8px 0%, 100% 0%, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0% 100%, 0% 8px);
    }

    .send-max-btn {
        border-radius: 0;
        border: 1px solid rgba(212, 146, 10, 0.45);
        clip-path: polygon(6px 0%, 100% 0%, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0% 100%, 0% 6px);
    }

    .send-quick-btn {
        border-radius: 0;
        border: 1px solid rgba(212, 146, 10, 0.25);
        clip-path: polygon(6px 0%, 100% 0%, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0% 100%, 0% 6px);
    }

    .send-preview-item {
        border: 2px solid rgba(212, 146, 10, 0.22);
        border-radius: 0;
        background: rgba(212, 146, 10, 0.08);
        clip-path: polygon(8px 0%, 100% 0%, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0% 100%, 0% 8px);
    }

    .receive-card {
        padding: 20px;
    }

    .receive-head {
        margin-bottom: 18px;
    }

    .receive-head h2 {
        font-size: 20px;
    }

    .receive-hero {
        margin-bottom: 20px;
    }

    .receive-qr-container {
        width: 180px;
        height: 180px;
        border-width: 2px;
        box-shadow: 0 6px 30px rgba(212, 146, 10, 0.2);
    }

    .receive-qr-label {
        font-size: 13px;
    }

    .receive-address-section {
        margin-bottom: 20px;
    }

    .receive-label {
        font-size: 12px;
        margin-bottom: 8px;
    }

    .receive-address-box {
        border-width: 2px;
        padding: 12px 14px;
    }

    .receive-address-text {
        font-size: 13px;
    }

    .receive-copy-btn {
        width: 36px;
        height: 36px;
    }

    .receive-amount-section {
        margin-bottom: 14px;
    }

    .receive-amount-input-wrap {
        border-width: 2px;
    }

    .receive-amount-input {
        font-size: 18px;
        padding: 12px 14px;
    }

    .receive-amount-suffix {
        font-size: 15px;
        padding: 12px 14px;
    }

    .receive-uri-box {
        margin-top: 12px;
        padding: 10px 12px;
    }

    .receive-uri-label {
        font-size: 10px;
    }

    .receive-uri-text {
        font-size: 11px;
    }

    .receive-status {
        font-size: 12px;
        margin: 10px 0;
    }

    .receive-actions {
        gap: 10px;
        margin-top: 14px;
    }

    .receive-action-btn {
        font-size: 12px;
        padding: 12px 10px;
    }

    .receive-done-btn {
        font-size: 14px;
        padding: 14px;
    }

    .action-modal-result .token-link-btn {
        border-radius: 0;
        clip-path: polygon(6px 0%, 100% 0%, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0% 100%, 0% 6px);
    }
    
    /* ═══════════════════════════════════════════════════════════════
       TABLES & LISTS - Estilo Inca
       ═══════════════════════════════════════════════════════════════ */
    
    .table-scroll {
        border: 2px solid rgba(212, 146, 10, 0.2);
        overflow: hidden;
    }
    
    table {
        font-size: 13px;
    }
    
    th {
        background: rgba(212, 146, 10, 0.1);
        font-weight: 700;
        letter-spacing: 0.06em;
        padding: 12px 14px;
        text-transform: uppercase;
        font-size: 11px;
    }
    
    td {
        padding: 12px 14px;
    }
    
    tr:hover td {
        background: rgba(212, 146, 10, 0.05);
    }
    
    /* ═══════════════════════════════════════════════════════════════
       SCROLLBAR - Estilo Angular
       ═══════════════════════════════════════════════════════════════ */
    
    ::-webkit-scrollbar {
        width: 10px;
        height: 10px;
    }
    
    ::-webkit-scrollbar-track {
        background: rgba(212, 146, 10, 0.05);
    }
    
    ::-webkit-scrollbar-thumb {
        background: rgba(212, 146, 10, 0.25);
        border: 3px solid #0f0c0a;
    }
    
    ::-webkit-scrollbar-thumb:hover {
        background: rgba(212, 146, 10, 0.4);
    }
    
    .ui-btn-primary::after {
        animation: none;
    }
}

/* ═══════════════════════════════════════════════════════════════
   TABLET VERSION — Medium Screens (768px - 1023px)
   Hybrid layout with bottom nav
   ═══════════════════════════════════════════════════════════════ */

@media (min-width: 768px) and (max-width: 1023px) {
    body {
        padding: 20px;
        font-size: 14px;
    }
    
    .page {
        max-width: 900px;
        gap: 16px;
    }
    
    .hero {
        padding: 20px;
    }
    
    .hero-logo {
        width: 40px;
        height: 40px;
    }
    
    .hero-copy h1 {
        font-size: 28px;
    }
    
    .hero-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .stat-box strong {
        font-size: 20px;
    }
    
    .trade-grid {
        gap: 12px;
    }
    
    .token-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .swap-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    table {
        font-size: 12px;
    }
    
    th, td {
        padding: 10px 12px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE VERSION — Small Screens (below 768px)
   Current mobile-first design (default styles)
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
    /* Mobile styles are already the default */
    /* This section ensures mobile-first approach is maintained */
    
    body {
        /* Keep mobile padding */
        padding-top: calc(env(safe-area-inset-top, 0px) + 6px);
        padding-right: calc(env(safe-area-inset-right, 0px) + 6px);
        padding-bottom: calc(var(--bnav-h) + env(safe-area-inset-bottom, 0px) + 8px);
        padding-left: calc(env(safe-area-inset-left, 0px) + 6px);
    }
}

/* Trade panel refresh - Inka ritual */
.trade-panel-card {
    position: relative;
    border-color: rgba(212, 146, 10, 0.42);
    background:
        linear-gradient(165deg, rgba(34, 24, 18, 0.93) 0%, rgba(18, 12, 9, 0.95) 58%, rgba(16, 11, 8, 0.98) 100%);
    box-shadow:
        0 16px 34px rgba(0, 0, 0, 0.45),
        inset 0 0 0 1px rgba(255, 216, 120, 0.08);
}

.trade-panel-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: 0;
    background: linear-gradient(100deg, rgba(212, 146, 10, 0.16), transparent 24%, transparent 76%, rgba(232, 120, 48, 0.14));
    opacity: 0.85;
}

.trade-panel-card::after {
    content: "";
    position: absolute;
    inset: 2px;
    pointer-events: none;
    border: 1px solid rgba(212, 146, 10, 0.18);
    clip-path: polygon(12px 0%, 100% 0%, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0% 100%, 0% 12px);
    opacity: 0.9;
}

.trade-panel-card > * {
    position: relative;
    z-index: 1;
}

.trade-panel-card .trade-section-head {
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom-color: rgba(212, 146, 10, 0.25);
}

.trade-panel-card .trade-section-head h2 {
    letter-spacing: 0.17em;
}

.trade-panel-card .trade-section-head .muted {
    border: 1px solid rgba(212, 146, 10, 0.28);
    background: rgba(212, 146, 10, 0.1);
    color: #f8d58c;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 10px;
    padding: 3px 8px;
    clip-path: polygon(6px 0%, 100% 0%, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0% 100%, 0% 6px);
}

.trade-inka-frame {
    position: relative;
    border: 1px solid rgba(212, 146, 10, 0.26);
    background:
        linear-gradient(180deg, rgba(20, 14, 11, 0.98), rgba(14, 10, 8, 0.98));
    clip-path: polygon(10px 0%, 100% 0%, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0% 100%, 0% 10px);
    padding: 12px;
    display: grid;
    gap: 10px;
}

.trade-inka-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        repeating-linear-gradient(90deg,
            rgba(212, 146, 10, 0.05) 0px,
            rgba(212, 146, 10, 0.05) 1px,
            transparent 1px,
            transparent 18px);
    opacity: 0.4;
}

.trade-inka-frame > * {
    position: relative;
    z-index: 1;
}

.trade-panel-card .trade-grid-inka {
    gap: 10px 12px;
}

.trade-panel-card .trade-field {
    gap: 6px;
}

.trade-panel-card .trade-field span {
    margin-left: 0;
    color: #f1c46b;
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.trade-panel-card .trade-field input,
.trade-panel-card .trade-field select {
    border: 1px solid rgba(212, 146, 10, 0.4);
    border-radius: 0;
    min-height: 44px;
    font-size: 13px;
    padding: 10px 12px;
    color: var(--xia-text-strong);
    background:
        linear-gradient(180deg, rgba(34, 24, 19, 0.96), rgba(21, 15, 12, 0.96));
    clip-path: polygon(8px 0%, 100% 0%, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0% 100%, 0% 8px);
    box-shadow: inset 0 1px 0 rgba(255, 220, 140, 0.08);
}

.trade-panel-card #tradeMintInput {
    font-family: "Space Grotesk", "Outfit", sans-serif;
    letter-spacing: 0.015em;
}

.trade-panel-card .trade-field input::placeholder,
.trade-panel-card .trade-field select::placeholder {
    color: rgba(223, 188, 134, 0.55);
}

.trade-panel-card .trade-field input:hover,
.trade-panel-card .trade-field select:hover {
    border-color: rgba(240, 195, 106, 0.62);
}

.trade-panel-card .trade-field input:focus,
.trade-panel-card .trade-field select:focus {
    border-color: rgba(247, 208, 123, 0.95);
    box-shadow:
        0 0 0 1px rgba(247, 208, 123, 0.35),
        0 0 22px rgba(212, 146, 10, 0.23),
        inset 0 0 10px rgba(232, 166, 60, 0.08);
    transform: none;
    background: linear-gradient(180deg, rgba(38, 28, 22, 0.98), rgba(23, 16, 12, 0.98));
}

.trade-panel-card .trade-field-side {
    position: relative;
}

.trade-panel-card .trade-field-side::after {
    content: "INTI";
    position: absolute;
    right: 8px;
    top: -8px;
    font-family: "Space Grotesk", monospace;
    font-size: 9px;
    letter-spacing: 0.12em;
    color: rgba(241, 196, 107, 0.8);
    padding: 1px 5px;
    border: 1px solid rgba(212, 146, 10, 0.32);
    background: rgba(24, 16, 12, 0.92);
    clip-path: polygon(4px 0%, 100% 0%, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0% 100%, 0% 4px);
}

.trade-panel-card .trade-side-inka {
    display: grid;
    gap: 6px;
}

.trade-panel-card .trade-side-inka-trigger {
    border: 1px solid rgba(212, 146, 10, 0.52);
    background: linear-gradient(180deg, rgba(42, 30, 22, 0.95), rgba(23, 16, 12, 0.96));
    color: #ffd785;
    min-height: 44px;
    width: 100%;
    padding: 8px 12px;
    border-radius: 0;
    clip-path: polygon(8px 0%, 100% 0%, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0% 100%, 0% 8px);
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 8px;
    font-family: "Space Grotesk", "Outfit", sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.trade-panel-card .trade-side-inka-trigger:hover {
    border-color: rgba(247, 208, 123, 0.9);
    box-shadow: 0 0 0 1px rgba(247, 208, 123, 0.25), 0 0 16px rgba(212, 146, 10, 0.16);
    background: linear-gradient(180deg, rgba(52, 38, 26, 0.98), rgba(28, 20, 14, 0.98));
}

.trade-panel-card .trade-side-inka.is-open .trade-side-inka-trigger {
    border-color: rgba(247, 208, 123, 0.95);
    box-shadow: 0 0 0 1px rgba(247, 208, 123, 0.35), 0 0 20px rgba(212, 146, 10, 0.2);
}

.trade-panel-card .trade-side-inka-mark {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: rgba(255, 221, 152, 0.95);
    border: 1px solid rgba(212, 146, 10, 0.36);
    background: rgba(30, 21, 15, 0.86);
    padding: 2px 6px;
    clip-path: polygon(4px 0%, 100% 0%, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0% 100%, 0% 4px);
}

.trade-panel-card .trade-side-inka-value {
    font-size: 13px;
    font-weight: 700;
    color: #ffe3ab;
}

.trade-panel-card .trade-side-inka-hint {
    font-size: 10px;
    letter-spacing: 0.04em;
    text-transform: none;
    color: rgba(222, 188, 132, 0.88);
}

.trade-panel-card .trade-side-inka-chevron {
    font-size: 12px;
    color: rgba(255, 217, 135, 0.85);
}

.trade-panel-card .trade-side-inka-menu {
    border: 1px solid rgba(212, 146, 10, 0.35);
    background: linear-gradient(180deg, rgba(27, 20, 15, 0.98), rgba(20, 15, 11, 0.98));
    clip-path: polygon(8px 0%, 100% 0%, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0% 100%, 0% 8px);
    display: grid;
    gap: 4px;
    padding: 6px;
}

.trade-panel-card .trade-side-inka-menu.is-hidden {
    display: none;
}

.trade-panel-card .trade-side-inka-option {
    border: 1px solid rgba(212, 146, 10, 0.22);
    background: linear-gradient(180deg, rgba(33, 24, 18, 0.88), rgba(24, 17, 13, 0.9));
    color: #f1ddba;
    min-height: 40px;
    width: 100%;
    padding: 7px 10px;
    border-radius: 0;
    clip-path: polygon(7px 0%, 100% 0%, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0% 100%, 0% 7px);
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 8px;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.trade-panel-card .trade-side-inka-option:hover {
    border-color: rgba(247, 208, 123, 0.75);
    background: linear-gradient(180deg, rgba(50, 36, 26, 0.95), rgba(31, 22, 16, 0.95));
}

.trade-panel-card .trade-side-inka-option.is-selected {
    border-color: rgba(247, 208, 123, 0.92);
    box-shadow: inset 0 0 0 1px rgba(247, 208, 123, 0.24);
}

.trade-panel-card .trade-side-inka-option-mark {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: rgba(255, 222, 154, 0.95);
}

.trade-panel-card .trade-side-inka-option-value {
    font-size: 12px;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.trade-panel-card .trade-side-inka-option-hint {
    font-size: 10px;
    color: rgba(222, 188, 132, 0.85);
    letter-spacing: 0.04em;
}

.trade-panel-card .trade-side-buy .trade-side-inka-value,
.trade-panel-card .trade-side-buy .trade-side-inka-option-value {
    color: #8be8a5;
}

.trade-panel-card .trade-side-sell .trade-side-inka-value,
.trade-panel-card .trade-side-sell .trade-side-inka-option-value {
    color: #ff9b9b;
}

.trade-panel-card .trade-actions-inka {
    margin-top: 2px;
    grid-template-columns: 1fr;
    gap: 10px;
}

.trade-panel-card .trade-actions-inka .ui-btn {
    min-height: 46px;
    border-radius: 0;
    clip-path: polygon(10px 0%, 100% 0%, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0% 100%, 0% 10px);
    text-transform: uppercase;
    letter-spacing: 0.09em;
    font-size: 11px;
}

.trade-panel-card .trade-actions-inka #tradeQuoteBtn {
    border-color: rgba(212, 146, 10, 0.42);
    background: linear-gradient(145deg, rgba(58, 44, 35, 0.9), rgba(37, 28, 23, 0.92));
    color: #f8d8a0;
}

.trade-panel-card .trade-actions-inka #tradeQuoteBtn:hover {
    border-color: rgba(246, 198, 107, 0.62);
    background: linear-gradient(145deg, rgba(75, 56, 42, 0.95), rgba(45, 34, 26, 0.95));
}

.trade-panel-card .trade-status {
    margin-top: 0;
    min-height: 34px;
    border: 1px solid rgba(212, 146, 10, 0.24);
    background: linear-gradient(180deg, rgba(32, 24, 19, 0.72), rgba(24, 18, 14, 0.72));
    clip-path: polygon(8px 0%, 100% 0%, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0% 100%, 0% 8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    letter-spacing: 0.02em;
}

.trade-panel-card .trade-status.trade-status-error {
    border-color: rgba(248, 113, 113, 0.42);
    background: linear-gradient(180deg, rgba(86, 28, 22, 0.42), rgba(56, 20, 16, 0.42));
}

.trade-panel-card .trade-quote {
    margin-top: 0;
    border: 1px solid rgba(212, 146, 10, 0.3);
    border-left: 1px solid rgba(212, 146, 10, 0.3);
    border-radius: 0;
    clip-path: polygon(10px 0%, 100% 0%, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0% 100%, 0% 10px);
    background:
        linear-gradient(180deg, rgba(32, 24, 19, 0.9), rgba(22, 16, 12, 0.9)),
        radial-gradient(circle at top right, rgba(212, 146, 10, 0.14), transparent 55%);
    padding: 10px 12px;
}

.trade-panel-card .trade-quote p {
    margin: 0;
    padding: 4px 0;
    border-bottom: 1px dashed rgba(212, 146, 10, 0.2);
    color: #f0e0c0;
}

.trade-panel-card .trade-quote p:last-child {
    border-bottom: none;
}

.trade-panel-card .trade-quote strong {
    color: #ffd78b;
    min-width: 104px;
    display: inline-block;
    letter-spacing: 0.04em;
}

.trade-panel-card .trade-quote a {
    margin-top: 4px;
    display: inline-block;
    border-bottom: 1px solid rgba(232, 160, 32, 0.45);
}

@media (max-width: 700px) {
    .trade-panel-card .trade-grid-inka {
        grid-template-columns: 1fr;
    }

    .trade-panel-card .trade-field-wide {
        grid-column: auto;
    }

    .trade-panel-card .trade-status {
        justify-content: flex-start;
        text-align: left;
    }

    .trade-panel-card .trade-side-inka-trigger {
        grid-template-columns: auto 1fr auto;
    }

    .trade-panel-card .trade-side-inka-hint,
    .trade-panel-card .trade-side-inka-option-hint {
        display: none;
    }

    .trade-panel-card .trade-side-inka-option {
        grid-template-columns: auto 1fr;
    }
}

@media (min-width: 740px) {
    .trade-panel-card .trade-actions-inka {
        grid-template-columns: 1fr 1.2fr;
    }
}

@media (min-width: 1024px) {
    .trade-panel-card .trade-inka-frame {
        padding: 14px 16px;
        gap: 12px;
    }

    .trade-panel-card .trade-grid-inka {
        gap: 12px 14px;
    }

    .trade-panel-card .trade-field input,
    .trade-panel-card .trade-field select {
        min-height: 46px;
        font-size: 14px;
    }

    .trade-panel-card .trade-side-inka-trigger {
        min-height: 46px;
    }
}
