/* ============================================
   Nomveer - Premium Mobile Webapp
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    --c-p: #6C5CE7;
    --c-p-l: #A29BFE;
    --c-p-d: #5241C5;
    --c-p-bg: rgba(108,92,231,.07);
    --c-p-bg2: rgba(108,92,231,.13);
    --c-s: #E84393;
    --c-ok: #00B894;
    --c-ok-bg: rgba(0,184,148,.1);
    --c-err: #FF6B6B;
    --c-err-bg: rgba(255,107,107,.1);
    --c-warn: #F59E0B;
    --c-warn-bg: rgba(245,158,11,.1);
    --c-accent: #00CEC9;
    --c-accent-bg: rgba(0,206,201,.1);

    --bg: #F2F3F7;
    --surf: #FFFFFF;
    --surf2: #F7F8FA;
    --txt: #111827;
    --txt2: #4B5563;
    --txt3: #9CA3AF;
    --brd: #E5E7EB;
    --brd-lt: #F3F4F6;

    --sh-xs: 0 1px 2px rgba(0,0,0,.04);
    --sh-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --sh-md: 0 4px 14px rgba(0,0,0,.07);
    --sh-lg: 0 10px 30px rgba(0,0,0,.1);
    --sh-xl: 0 20px 50px rgba(0,0,0,.16);

    --r: 18px;
    --r-md: 14px;
    --r-sm: 10px;
    --r-xs: 8px;
    --r-pill: 100px;

    --nav-h: 72px;
    --bar-h: 60px;
    --ff: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

/* Reset */
.nv-app, .nv-app * { box-sizing: border-box; margin: 0; padding: 0; }

.nv-app {
    font-family: var(--ff);
    color: var(--txt);
    background: var(--bg);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    overflow: hidden;
    min-height: 420px;
    max-width: 100%;
}

/* ===== AUTH PAGES ===== */
.nv-app-auth {
    background: var(--surf);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nv-auth-wrap {
    width: 100%;
    max-width: 380px;
    padding: 24px 20px;
}

.nv-auth-card {
    width: 100%;
}

.nv-auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.nv-auth-logo {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--c-p), var(--c-p-d));
    color: #fff;
    border-radius: 20px;
    margin: 0 auto 16px;
    box-shadow: 0 8px 24px rgba(108,92,231,.3);
}

.nv-auth-header h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--txt);
    margin-bottom: 4px;
}

.nv-auth-header p {
    font-size: 14px;
    color: var(--txt3);
}

.nv-auth-form {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nv-auth-error {
    background: var(--c-err-bg);
    color: var(--c-err);
    padding: 12px 14px;
    border-radius: var(--r-sm);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 8px;
}

.nv-auth-success {
    background: var(--c-ok-bg);
    color: var(--c-ok);
    padding: 12px 14px;
    border-radius: var(--r-sm);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 8px;
}

.nv-auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--txt3);
}

.nv-auth-link {
    color: var(--c-p);
    font-weight: 700;
    text-decoration: none;
}

.nv-auth-link:hover {
    text-decoration: underline;
}

/* ===== TOPBAR ===== */
.nv-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--bar-h);
    background: rgba(255,255,255,.88);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0,0,0,.04);
}

.nv-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 20px;
}

.nv-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nv-brand-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--c-p) 0%, var(--c-p-d) 100%);
    color: #fff;
    border-radius: var(--r-sm);
    box-shadow: 0 4px 12px rgba(108,92,231,.25);
}

.nv-brand-name {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -.4px;
    background: linear-gradient(135deg, var(--c-p) 0%, var(--c-p-d) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Topbar Right */
.nv-topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nv-balance-pill {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    background: var(--c-p-bg);
    color: var(--c-p);
    border-radius: var(--r-pill);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all .15s ease;
    border: 1px solid rgba(108,92,231,.1);
}

.nv-balance-pill:active { transform: scale(.95); }
.nv-balance-pill-icon { display: flex; }

/* User Button & Menu */
.nv-user-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: linear-gradient(135deg, var(--c-p), var(--c-p-d));
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    font-family: var(--ff);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(108,92,231,.25);
    transition: all .15s ease;
}

.nv-user-btn:active { transform: scale(.9); }

.nv-user-avatar {
    font-weight: 700;
}

.nv-user-menu {
    position: absolute;
    top: calc(var(--bar-h) - 8px);
    right: 12px;
    background: var(--surf);
    border-radius: var(--r-md);
    box-shadow: var(--sh-lg);
    border: 1px solid var(--brd);
    min-width: 220px;
    z-index: 200;
    overflow: hidden;
    animation: nvMenuIn .15s ease;
}

@keyframes nvMenuIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.nv-user-menu-header {
    padding: 16px;
    border-bottom: 1px solid var(--brd-lt);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nv-user-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--txt);
    text-decoration: none;
    transition: background .1s ease;
    border-bottom: 1px solid var(--brd-lt);
}

.nv-user-menu-item:hover {
    background: var(--surf2);
}

.nv-user-menu-item-red {
    color: var(--c-err);
}

/* ===== PAGES ===== */
.nv-page {
    display: none;
    padding-bottom: calc(var(--nav-h) + 16px);
}

.nv-page.active {
    display: block;
    animation: nvIn .2s ease;
}

@keyframes nvIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.nv-scroll {
    padding: 16px 16px 24px;
}

/* ===== BOTTOM NAV ===== */
.nv-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    display: flex;
    align-items: stretch;
    height: var(--nav-h);
    background: rgba(255,255,255,.92);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-top: 1px solid rgba(0,0,0,.05);
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.nv-nav-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: none;
    background: none;
    color: var(--txt3);
    font-family: var(--ff);
    font-size: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: color .15s ease;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    letter-spacing: .2px;
}

.nv-nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--r-sm);
    transition: all .15s ease;
}

.nv-nav-btn.active {
    color: var(--c-p);
    font-weight: 700;
}

.nv-nav-btn.active .nv-nav-icon {
    background: var(--c-p-bg);
    color: var(--c-p);
}

.nv-nav-btn:active { transform: scale(.9); }

/* ===== SEGMENT CONTROL ===== */
.nv-seg-control {
    display: flex;
    position: relative;
    background: var(--surf);
    border-radius: var(--r-md);
    padding: 4px;
    margin-bottom: 16px;
    box-shadow: var(--sh-xs);
    border: 1px solid var(--brd-lt);
}

.nv-seg-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 11px 12px;
    border: none;
    background: transparent;
    border-radius: calc(var(--r-md) - 4px);
    font-size: 13px;
    font-weight: 600;
    color: var(--txt3);
    cursor: pointer;
    transition: all .2s ease;
    font-family: var(--ff);
    z-index: 1;
}

.nv-seg-btn.active {
    color: #fff;
}

.nv-seg-slider {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    background: linear-gradient(135deg, var(--c-p), var(--c-p-d));
    border-radius: calc(var(--r-md) - 4px);
    box-shadow: 0 4px 12px rgba(108,92,231,.3);
    transition: transform .25s cubic-bezier(.4,0,.2,1);
}

.nv-seg-control.s2 .nv-seg-slider {
    transform: translateX(100%);
}

/* ===== FIELDS ===== */
.nv-field { margin-bottom: 14px; }

.nv-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--txt2);
    text-transform: uppercase;
    letter-spacing: .7px;
    margin-bottom: 8px;
}

.nv-sublabel {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--txt3);
    margin-bottom: 6px;
}

.nv-mt-8 { margin-top: 8px; }

/* Select */
.nv-sel-wrap { position: relative; }

.nv-select {
    width: 100%;
    height: 48px;
    padding: 0 40px 0 14px;
    border: 1.5px solid var(--brd);
    border-radius: var(--r-sm);
    font-size: 14px;
    font-family: var(--ff);
    font-weight: 500;
    color: var(--txt);
    background: var(--surf);
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: all .15s ease;
    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='%239CA3AF' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.nv-select:focus {
    outline: none;
    border-color: var(--c-p);
    box-shadow: 0 0 0 3px rgba(108,92,231,.1);
}

.nv-select:disabled {
    opacity: .4;
    cursor: not-allowed;
    background-color: var(--surf2);
}

/* ===== INPUT ===== */
.nv-input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1.5px solid var(--brd);
    border-radius: var(--r-sm);
    font-size: 15px;
    font-family: var(--ff);
    font-weight: 500;
    color: var(--txt);
    background: var(--surf);
    transition: all .15s ease;
}

.nv-input:focus {
    outline: none;
    border-color: var(--c-p);
    box-shadow: 0 0 0 3px rgba(108,92,231,.1);
}

.nv-input::placeholder { color: var(--txt3); }

/* ===== CHIPS ===== */
.nv-chips {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.nv-chip {
    padding: 10px 6px;
    font-size: 13px;
    font-weight: 700;
    border: 1.5px solid var(--brd);
    background: var(--surf);
    color: var(--txt2);
    border-radius: var(--r-sm);
    cursor: pointer;
    transition: all .12s ease;
    font-family: var(--ff);
    text-align: center;
}

.nv-chip:hover {
    border-color: var(--c-p-l);
    color: var(--c-p);
    background: var(--c-p-bg);
}

.nv-chip.active {
    border-color: var(--c-p);
    background: var(--c-p);
    color: #fff;
}

.nv-chip:active { transform: scale(.93); }

/* ===== CARD ===== */
.nv-card {
    background: var(--surf);
    border-radius: var(--r);
    border: 1px solid var(--brd-lt);
    box-shadow: var(--sh-sm);
    overflow: hidden;
}

.nv-card-body { padding: 16px; }
.nv-card-rows { padding: 4px 0; }

.nv-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 16px;
    border-bottom: 1px solid var(--brd-lt);
}

.nv-row:last-child { border-bottom: none; }

.nv-row-lbl {
    font-size: 13px;
    color: var(--txt3);
    font-weight: 500;
}

.nv-row-val {
    font-size: 13px;
    font-weight: 600;
    color: var(--txt);
}

/* ===== BADGES ===== */
.nv-badge {
    display: inline-flex;
    padding: 3px 10px;
    border-radius: var(--r-pill);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.nv-badge.pending { background: var(--c-warn-bg); color: #92400E; }
.nv-badge.otp_received { background: var(--c-accent-bg); color: #0F766E; }
.nv-badge.success, .nv-badge.completed { background: var(--c-ok-bg); color: #065F46; }
.nv-badge.cancelled, .nv-badge.failed { background: var(--c-err-bg); color: #991B1B; }
.nv-badge.finished { background: var(--c-p-bg); color: var(--c-p-d); }
.nv-badge.replaced { background: rgba(232,67,147,.1); color: var(--c-s); }

/* ===== PRODUCT LIST ===== */
.nv-product-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nv-product-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: var(--surf);
    border: 1.5px solid var(--brd);
    border-radius: var(--r-md);
    cursor: pointer;
    transition: all .15s ease;
}

.nv-product-card:hover {
    border-color: var(--c-p-l);
    box-shadow: var(--sh-md);
}

.nv-product-card:active { transform: scale(.985); }

.nv-product-card.selected {
    border-color: var(--c-p);
    background: var(--c-p-bg);
    box-shadow: 0 0 0 2px rgba(108,92,231,.08);
}

.nv-product-info { flex: 1; min-width: 0; }

.nv-product-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--txt);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nv-product-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nv-product-price {
    font-size: 14px;
    font-weight: 800;
    color: var(--c-p);
}

.nv-product-stock {
    padding: 2px 8px;
    border-radius: var(--r-pill);
    font-size: 11px;
    font-weight: 600;
}

.nv-product-stock.in-stock { background: var(--c-ok-bg); color: var(--c-ok); }
.nv-product-stock.low-stock { background: var(--c-warn-bg); color: #92400E; }
.nv-product-stock.out-of-stock { background: var(--c-err-bg); color: var(--c-err); }

/* ===== PAYMENT CARD (QR + Countdown) ===== */
.nv-payment-card {
    overflow: visible;
}

.nv-payment-header {
    display: flex;
    justify-content: center;
    padding: 20px 16px 8px;
}

.nv-payment-countdown {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--c-p), var(--c-p-d));
    color: #fff;
    border-radius: var(--r-pill);
    font-size: 24px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: 2px;
    box-shadow: 0 4px 16px rgba(108,92,231,.3);
}

.nv-payment-countdown.warning {
    background: linear-gradient(135deg, var(--c-err), #DC2626);
    box-shadow: 0 4px 16px rgba(255,107,107,.3);
    animation: nvPulse .5s ease-in-out infinite;
}

.nv-payment-countdown.expired {
    background: var(--txt3);
    box-shadow: none;
    animation: none;
}

@keyframes nvPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.nv-payment-countdown svg {
    width: 20px;
    height: 20px;
}

.nv-payment-qr-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 24px;
}

.nv-payment-qr {
    width: 220px;
    height: 220px;
    border-radius: var(--r-md);
    box-shadow: var(--sh-md);
    background: var(--surf);
    padding: 8px;
    border: 2px dashed var(--brd);
    object-fit: contain;
}

.nv-payment-qr-hint {
    margin-top: 12px;
    font-size: 12px;
    color: var(--txt3);
    font-weight: 500;
    text-align: center;
}

.nv-payment-details {
    padding: 0 16px 16px;
}

.nv-payment-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--brd-lt);
}

.nv-payment-row:last-child {
    border-bottom: none;
}

.nv-payment-label {
    font-size: 13px;
    color: var(--txt3);
    font-weight: 500;
}

.nv-payment-value {
    font-size: 13px;
    font-weight: 700;
    color: var(--txt);
}

.nv-unique-code {
    color: var(--c-s);
    font-family: 'SF Mono', 'Fira Code', monospace;
}

.nv-payment-total {
    background: var(--c-ok-bg);
    margin: 0 -16px;
    padding: 12px 16px !important;
    border-radius: 0 0 var(--r) var(--r);
}

.nv-payment-total .nv-payment-label {
    color: var(--c-ok);
    font-weight: 700;
    font-size: 14px;
}

.nv-payment-total-val {
    color: var(--c-ok) !important;
    font-size: 16px !important;
}

.nv-payment-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    border-top: 1px solid var(--brd-lt);
    font-size: 13px;
    font-weight: 600;
    color: var(--txt3);
}

/* ===== STORE BOTTOM ACTIONS ===== */
.nv-store-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--brd-lt);
}

/* ===== ORDER PANEL ===== */
.nv-order-panel {
    margin-top: 20px;
    animation: nvSlideUp .3s ease;
}

@keyframes nvSlideUp {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

.nv-panel-head {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 700;
    color: var(--txt2);
    text-transform: uppercase;
    letter-spacing: .7px;
    margin-bottom: 10px;
}

/* ===== OTP BOX ===== */
.nv-otp-box {
    background: linear-gradient(135deg, var(--c-p) 0%, #7C3AED 50%, var(--c-p-d) 100%);
    border-radius: var(--r-md);
    padding: 20px;
    text-align: center;
    margin: 16px;
    position: relative;
    overflow: hidden;
    animation: nvGlow 3s ease-in-out infinite;
}

.nv-otp-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,.08) 0%, transparent 60%);
    pointer-events: none;
}

.nv-otp-lg {
    padding: 32px 24px;
    border-radius: var(--r);
    margin: 0 0 20px;
}

@keyframes nvGlow {
    0%, 100% { box-shadow: 0 8px 30px rgba(108,92,231,.25); }
    50% { box-shadow: 0 8px 40px rgba(108,92,231,.45); }
}

.nv-otp-tag {
    font-size: 10px;
    color: rgba(255,255,255,.55);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 8px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.nv-otp-val {
    font-size: 40px;
    font-weight: 900;
    color: #fff;
    letter-spacing: 10px;
    font-family: 'SF Mono', 'Fira Code', 'JetBrains Mono', 'Consolas', monospace;
    line-height: 1.2;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(0,0,0,.15);
}

.nv-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 14px;
    padding: 6px 16px;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: var(--r-pill);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    font-family: var(--ff);
    cursor: pointer;
    transition: all .15s ease;
    position: relative;
    z-index: 1;
}

.nv-copy-btn:active { transform: scale(.93); background: rgba(255,255,255,.25); }

/* ===== POLLING ===== */
.nv-polling {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    color: var(--txt3);
    font-size: 13px;
    font-weight: 500;
}

.nv-spinner {
    width: 20px;
    height: 20px;
    border: 2.5px solid var(--brd);
    border-top-color: var(--c-p);
    border-radius: 50%;
    animation: nvSpin .65s linear infinite;
}

@keyframes nvSpin { to { transform: rotate(360deg); } }

/* ===== BUTTONS ===== */
.nv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 48px;
    padding: 0 22px;
    border: none;
    border-radius: var(--r-sm);
    font-size: 14px;
    font-weight: 600;
    font-family: var(--ff);
    cursor: pointer;
    transition: all .15s ease;
    text-decoration: none;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
}

.nv-btn:active { transform: scale(.96); }
.nv-btn:disabled { opacity: .35; cursor: not-allowed; transform: none !important; }

.nv-btn-sm { height: 38px; padding: 0 14px; font-size: 12px; border-radius: var(--r-xs); }
.nv-btn-block { width: 100%; }

.nv-btn-primary {
    background: linear-gradient(135deg, var(--c-p) 0%, var(--c-p-d) 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(108,92,231,.3);
}

.nv-btn-primary:hover { box-shadow: 0 6px 20px rgba(108,92,231,.4); }

.nv-btn-green {
    background: linear-gradient(135deg, var(--c-ok) 0%, #059669 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,184,148,.25);
}

.nv-btn-red {
    background: linear-gradient(135deg, var(--c-err) 0%, #DC2626 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(255,107,107,.25);
}

.nv-btn-ghost {
    background: var(--surf2);
    color: var(--txt2);
    border: 1px solid var(--brd);
}

.nv-btn-ghost:hover { background: var(--brd-lt); }

/* ===== ACTIONS ===== */
.nv-actions {
    display: flex;
    gap: 8px;
    padding: 16px;
    flex-wrap: wrap;
}

/* ===== HERO (DEPOSIT) ===== */
.nv-hero {
    background: linear-gradient(135deg, #6C5CE7 0%, #7C3AED 35%, #8B5CF6 65%, #6C5CE7 100%);
    border-radius: var(--r);
    padding: 36px 24px;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(108,92,231,.35);
}

.nv-hero-orb {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,.06);
    pointer-events: none;
}

.nv-hero-orb-1 { width: 180px; height: 180px; top: -60px; right: -40px; }
.nv-hero-orb-2 { width: 120px; height: 120px; bottom: -40px; left: -30px; background: rgba(255,255,255,.04); }
.nv-hero-orb-3 { width: 80px; height: 80px; top: 30%; left: 60%; background: rgba(255,255,255,.05); }

.nv-hero-content { position: relative; z-index: 1; }

.nv-hero-label {
    font-size: 11px;
    color: rgba(255,255,255,.55);
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin-bottom: 10px;
    font-weight: 700;
}

.nv-hero-amount {
    font-size: 44px;
    font-weight: 900;
    color: #fff;
    letter-spacing: -1px;
    line-height: 1;
    margin-bottom: 4px;
    text-shadow: 0 2px 10px rgba(0,0,0,.1);
}

.nv-hero-currency {
    font-size: 13px;
    color: rgba(255,255,255,.45);
    font-weight: 600;
}

/* ===== EMPTY STATES ===== */
.nv-empty {
    text-align: center;
    padding: 28px 16px;
    color: var(--txt3);
    font-size: 13px;
}

.nv-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 64px 24px;
    text-align: center;
    gap: 12px;
}

.nv-empty-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--c-p-bg);
    border-radius: 50%;
    color: var(--c-p);
    margin-bottom: 4px;
}

.nv-empty-state h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--txt);
}

.nv-empty-state p {
    font-size: 13px;
    color: var(--txt3);
    max-width: 260px;
    line-height: 1.5;
    margin-bottom: 8px;
}

/* ===== HISTORY LIST ===== */
.nv-history-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nv-history-item {
    background: var(--surf);
    border-radius: var(--r-md);
    padding: 14px 16px;
    border: 1px solid var(--brd-lt);
    transition: all .15s ease;
    cursor: pointer;
}

.nv-history-item:hover {
    box-shadow: var(--sh-sm);
    border-color: var(--c-p-l);
}

.nv-history-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.nv-history-id {
    font-size: 13px;
    font-weight: 700;
    color: var(--txt);
}

.nv-history-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    color: var(--txt3);
}

.nv-history-detail {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nv-history-detail svg { flex-shrink: 0; opacity: .45; }

/* ===== TOAST ===== */
.nv-toast {
    position: fixed;
    bottom: calc(var(--nav-h) + 16px);
    left: 50%;
    transform: translateX(-50%) translateY(16px);
    background: var(--txt);
    color: #fff;
    padding: 12px 24px;
    border-radius: var(--r-pill);
    font-size: 13px;
    font-weight: 600;
    font-family: var(--ff);
    z-index: 10000;
    opacity: 0;
    transition: all .25s cubic-bezier(.4,0,.2,1);
    max-width: 88%;
    text-align: center;
    box-shadow: var(--sh-lg);
    pointer-events: none;
}

.nv-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.nv-toast.success { background: var(--c-ok); }
.nv-toast.error { background: var(--c-err); }
.nv-toast.warning { background: var(--c-warn); color: var(--txt); }

/* ===== LOADING ===== */
.nv-loading {
    position: fixed;
    inset: 0;
    background: rgba(242,243,247,.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.nv-loader {
    width: 42px;
    height: 42px;
    border: 3px solid var(--brd);
    border-top-color: var(--c-p);
    border-radius: 50%;
    animation: nvSpin .6s linear infinite;
}

/* ===== MODAL ===== */
.nv-modal-bg {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 5000;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.nv-modal-bg.show { display: flex; }

.nv-modal {
    background: var(--surf);
    border-radius: var(--r);
    padding: 28px 24px 24px;
    max-width: 320px;
    width: 100%;
    box-shadow: var(--sh-xl);
    animation: nvModalIn .2s ease;
}

@keyframes nvModalIn {
    from { opacity: 0; transform: scale(.9) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.nv-modal-text {
    text-align: center;
    margin-bottom: 22px;
    font-size: 15px;
    font-weight: 500;
    color: var(--txt);
    line-height: 1.5;
}

.nv-modal-btns {
    display: flex;
    gap: 10px;
}

.nv-modal-btns .nv-btn { flex: 1; }

/* ===== RESPONSIVE ===== */
@media (min-width: 480px) {
    .nv-chips { grid-template-columns: repeat(6, 1fr); }
    .nv-product-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
}

@media (min-width: 768px) {
    .nv-scroll { max-width: 560px; margin: 0 auto; padding: 20px 24px; }
    .nv-hero-amount { font-size: 56px; }
    .nv-otp-val { font-size: 52px; letter-spacing: 12px; }
}

/* Selection */
.nv-app ::selection { background: var(--c-p-l); color: #fff; }