/* Modern 2026 Minimalist Crypto UI - Optimized for bentpic.png aesthetic */
:root {
    --bg-app: #ffffff;
    --bg-card: #ffffff;
    --text-main: #000000;
    --text-muted: #8e8e93;
    --brand: #2563eb;
    --brand-hover: #1d4ed8;
    --border-subtle: #f2f2f7;
    --border-strong: #e5e5ea;
    --success: #34c759;
    --error: #ff3b30;
    --info: #007aff;
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --nav-height: 72px;
}

body {
    background-color: var(--bg-app);
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    margin: 0;
    padding: 0;
}

.app-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px calc(var(--nav-height) + 20px);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    background: #fff;
    position: relative;
    z-index: 1000;
}

.user-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wallet-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wallet-profile-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #111827;
}

.wallet-profile-subtitle {
    font-size: 0.75rem;
    color: #8e8e93;
    margin-top: 2px;
}

/* Hero Section */
.hero-balance-section {
    padding: 20px 0 32px;
}

.wallet-status-strip {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.wallet-status-chip {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.wallet-status-chip.pending_review {
    background: #fff7ed;
    color: #c2410c;
}

.wallet-status-chip.approved {
    background: #eefdf3;
    color: #15803d;
}

.wallet-status-chip.rejected {
    background: #fff5f5;
    color: #c53030;
}

.wallet-status-chip.not_requested,
.wallet-status-chip.neutral {
    background: #f2f2f7;
    color: #6b7280;
}

.balance-label {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 4px;
}

.balance-value {
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #111827;
}

/* Action Icons */
.wallet-action-cluster {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 32px;
}

.wallet-action-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #111827;
    font-weight: 600;
    font-size: 0.8rem;
}

.wallet-action-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.wallet-action-chip:hover .wallet-action-icon {
    opacity: 0.9;
}

.wallet-action-icon svg {
    width: 24px;
    height: 24px;
}

/* Subsection Tabs */
.subsection-tabs {
    display: flex;
    border-bottom: 1px solid #f2f2f7;
    margin-bottom: 20px;
}

.subsection-tab {
    flex: 1;
    padding: 12px 0;
    text-align: center;
    font-weight: 700;
    font-size: 0.95rem;
    color: #8e8e93;
    background: none;
    border: none;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.subsection-tab.is-active {
    color: #111827;
    border-bottom-color: #d1d1d6;
}

.subsection-panel {
    display: block;
}

/* Asset List */
.asset-list-stack {
    display: flex;
    flex-direction: column;
}

.asset-row {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    padding: 16px 0;
    text-decoration: none;
    color: inherit;
}

.asset-icon-container {
    grid-row: 1 / 3;
    grid-column: 1;
    display: flex;
    align-items: center;
}

.asset-icon-box {
    width: 34px;
    height: 34px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.asset-icon-box svg {
    width: 62%;
    height: 62%;
}

.asset-icon-box.btc { background: #f7931a; }
.asset-icon-box.eth { background: #627eea; }
.asset-icon-box.bnb { background: #f3ba2f; color: #111827; }
.asset-icon-box.matic { background: #8247e5; }
.asset-icon-box.usdt { background: #26a17b; }
.asset-icon-box.send-state { background: var(--error); }
.asset-icon-box.receive-state { background: var(--success); }
.asset-icon-box.swap-state { background: var(--info); }

.asset-name-caps {
    grid-row: 1;
    grid-column: 2;
    font-weight: 700;
    font-size: 0.85rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.asset-usd-total {
    grid-row: 1;
    grid-column: 3;
    text-align: right;
    font-weight: 700;
    font-size: 1rem;
    color: #111827;
}

.asset-token-amount {
    grid-row: 2;
    grid-column: 3;
    text-align: right;
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 600;
    margin-top: 4px;
}

.asset-price-info {
    grid-row: 2;
    grid-column: 2;
    font-size: 0.95rem;
    font-weight: 700;
    color: #111827;
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.asset-pct-change {
    color: #10b981;
}

.asset-pct-change.negative {
    color: #ef4444;
}

.asset-network-tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    background: #eef2ff;
    color: #2563eb;
    font-size: 0.72rem;
    font-weight: 700;
}

/* Bottom Nav */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: #fff;
    border-top: 1px solid #f2f2f7;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: #8e8e93;
    font-weight: 600;
    font-size: 0.65rem;
}

.bottom-nav-item.active {
    color: var(--brand);
}

.bottom-nav-item svg { width: 22px; height: 22px; }

@media (min-width: 721px) {
    .bottom-nav {
        display: none;
    }
}

.app-menu {
    position: relative;
}

.app-menu summary {
    list-style: none;
}

.app-menu summary::-webkit-details-marker {
    display: none;
}

.app-menu-trigger {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid #e5e5ea;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #111827;
}

.app-menu-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(280px, calc(100vw - 40px));
    background: #fff;
    border: 1px solid #e5e5ea;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    padding: 12px;
    z-index: 2000;
}

.app-menu-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.app-menu-label {
    padding: 6px 10px 4px;
    font-size: 0.72rem;
    color: #8e8e93;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.app-menu-link {
    display: flex;
    width: 100%;
    padding: 11px 10px;
    border-radius: 12px;
    text-decoration: none;
    color: #111827;
    font-size: 0.92rem;
    font-weight: 600;
    background: transparent;
}

.app-menu-link.active,
.app-menu-link:hover {
    background: #f2f2f7;
    color: #2563eb;
}

.app-menu-button {
    border: none;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
}

.app-menu-divider {
    height: 1px;
    background: #f2f2f7;
    margin: 10px 0;
}

.logo-brand {
    font-size: 1.18rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #111827;
}

.orbit-logo {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.orbit-logo-plaque {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.orbit-logo-image-app {
    width: 110px;
}

.orbit-logo-image-auth {
    width: 144px;
}

.auth-logo-wrap {
    display: inline-flex;
    margin-bottom: 20px;
}

.app-section-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.glass-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
    padding: 24px;
    margin-bottom: 24px;
}

.nav-pill-row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 0 2px;
    margin: 0 0 20px;
    scrollbar-width: none;
}

.nav-pill-row::-webkit-scrollbar {
    display: none;
}

.nav-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 999px;
    text-decoration: none;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    color: #4b5563;
    font-size: 0.84rem;
    font-weight: 700;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.nav-pill:hover,
.nav-pill.active {
    background: #111827;
    border-color: #111827;
    color: #fff;
}

.asset-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.asset-icon-wrapper.btc { background: linear-gradient(145deg, #f8a134, #f7931a); }
.asset-icon-wrapper.eth { background: linear-gradient(145deg, #7d92f4, #627eea); }
.asset-icon-wrapper.bnb { background: linear-gradient(145deg, #f7d767, #f3ba2f); color: #1f2937; }
.asset-icon-wrapper.matic { background: linear-gradient(145deg, #9a6dff, #8247e5); }
.asset-icon-wrapper.usdt { background: linear-gradient(145deg, #2ec38f, #26a17b); }

.action-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.action-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 102px;
    padding: 16px 12px;
    border-radius: 18px;
    text-decoration: none;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    color: #111827;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-align: center;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.action-pill:hover {
    transform: translateY(-1px);
    border-color: #cbd5e1;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.action-pill svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    stroke: #2563eb;
}

.recipient-chip {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid #e5e5ea;
    background: #fff;
    color: #111827;
    font-size: 0.75rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.recipient-chip:hover {
    border-color: #cbd5e1;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
    transform: translateY(-1px);
}

.animate-fade-in {
    animation: fadeIn 0.24s ease-out both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Utility */
.flash-message {
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.flash-success { background: #eefdf3; color: #1e7e34; }
.flash-error { background: #fff5f5; color: #c53030; }

.app-notification-layer {
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: min(560px, calc(100vw - 28px));
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 3200;
    pointer-events: none;
}

.app-toast {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(17, 24, 39, 0.96);
    color: #fff;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.24);
    backdrop-filter: blur(14px);
    pointer-events: auto;
    animation: toastIn 0.22s ease-out both;
}

.app-toast-success {
    background: rgba(10, 92, 54, 0.96);
}

.app-toast-error {
    background: rgba(122, 24, 24, 0.97);
}

.app-toast-info {
    background: rgba(17, 24, 39, 0.96);
}

.app-toast.is-leaving {
    animation: toastOut 0.2s ease-in both;
}

.app-toast-body {
    min-width: 0;
}

.app-toast-title {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.78;
    margin-bottom: 6px;
}

.app-toast-message {
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.45;
}

.app-toast-close {
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.app-confirm-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(6, 11, 21, 0.56);
    z-index: 3300;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.app-confirm-overlay.active {
    display: flex;
}

.app-confirm-modal {
    width: min(460px, 100%);
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(229, 229, 234, 0.95);
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.26);
    padding: 22px;
}

.app-confirm-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.app-confirm-eyebrow {
    font-size: 0.76rem;
    font-weight: 800;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.app-confirm-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #111827;
}

.app-confirm-message {
    margin: 16px 0 22px;
    color: #4b5563;
    font-size: 0.94rem;
    line-height: 1.6;
    font-weight: 600;
}

.app-confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.app-confirm-close {
    border: none;
    background: transparent;
    color: #6b7280;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.btn-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.btn-modern-primary { background: var(--brand); color: #fff; }
.btn-modern-outline { background: #f2f2f7; color: #111827; }

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal {
    background: #fff;
    border-radius: 24px;
    width: 100%;
    max-width: 400px;
    overflow: hidden;
}

.action-row {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 16px;
    background: #f9fafb;
    border: 1px solid #f2f2f7;
    border-radius: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    font-family: inherit;
}

.wallet-icon-box { margin-right: 12px; font-size: 1.5rem; }

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.985);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes toastOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateY(-6px) scale(0.985);
    }
}

.form-input {
    width: 100%;
    padding: 14px;
    border: 1px solid #e5e5ea;
    border-radius: 12px;
    background: #f9fafb;
    font-size: 1rem;
    box-sizing: border-box;
}

.form-label {
    display: block;
    font-weight: 700;
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 8px;
}

@media (max-width: 720px) {
    .glass-card {
        padding: 18px;
        border-radius: 20px;
        margin-bottom: 18px;
    }

    .logo-brand {
        font-size: 0.98rem;
    }

    .orbit-logo-image-app {
        width: 96px;
    }

    .orbit-logo-image-auth {
        width: 128px;
    }

    .action-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .action-pill {
        min-height: 84px;
        gap: 8px;
        padding: 14px 10px;
        font-size: 0.78rem;
    }

    .action-pill svg {
        width: 20px;
        height: 20px;
    }
}
