/* NexPay Portal – Native feel on all devices */
.nexpay-wrap {
    max-width: 420px;
    margin: 0 auto;
    background: #fff;
    min-height: 100vh;
    min-height: 100dvh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 30px rgba(0,0,0,0.08);
    -webkit-font-smoothing: antialiased;
}

@media (max-width: 480px) {
    .nexpay-wrap {
        max-width: 100%;
        box-shadow: none;
        min-height: 100vh;
        min-height: 100dvh;
    }
}

.nexpay-screen { display: none; }
.nexpay-screen.active { display: block; }
.nexpay-nav-item.active { color: #0D9488; }

.nexpay-btn {
    background: #0D9488;
    color: #fff;
    border: none;
    border-radius: 14px;
    padding: 16px 20px;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    font-size: 16px;
    min-height: 52px;
    transition: background 0.15s ease, transform 0.1s ease;
    -webkit-tap-highlight-color: transparent;
}
.nexpay-btn:active { transform: scale(0.98); background: #0F766E; }
.nexpay-btn:hover { background: #0F766E; }

.nexpay-btn-outline {
    background: #fff;
    color: #0D9488;
    border: 1.5px solid #0D9488;
}
.nexpay-btn-outline:active { background: #f0fdfa; }

.nexpay-card {
    background: linear-gradient(135deg, #0D9488, #14B8A6);
    color: #fff;
    border-radius: 20px;
    padding: 22px;
    margin-bottom: 20px;
}

.nexpay-input {
    width: 100%;
    border: 1.5px solid #e5e7eb;
    border-radius: 14px;
    padding: 14px 16px;
    font-size: 16px;
    margin-bottom: 12px;
    box-sizing: border-box;
    min-height: 52px;
    transition: border-color 0.15s ease;
    -webkit-appearance: none;
}
.nexpay-input:focus {
    outline: none;
    border-color: #0D9488;
    box-shadow: 0 0 0 3px rgba(13,148,136,0.12);
}

.nexpay-bottom-nav {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-around;
    padding: 6px 0 calc(10px + env(safe-area-inset-bottom));
    font-size: 11px;
    color: #6b7280;
    z-index: 20;
    backdrop-filter: blur(10px);
}
.nexpay-bottom-nav button {
    background: none; border: none;
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    cursor: pointer; color: inherit;
    padding: 8px 12px;
    min-width: 60px;
    min-height: 48px;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.15s ease;
}
.nexpay-bottom-nav button:active { transform: scale(0.95); }

.nexpay-quick-btn {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    background: none; border: none; cursor: pointer; font-size: 12px;
    -webkit-tap-highlight-color: transparent;
    padding: 4px;
}
.nexpay-quick-btn:active { transform: scale(0.95); }
.nexpay-quick-btn .icon {
    width: 58px; height: 58px;
    background: #f0fdfa; border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    color: #0D9488; font-size: 22px;
    transition: background 0.15s ease;
}
.nexpay-quick-btn:active .icon { background: #ccfbf1; }

.nexpay-list-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #f3f4f6;
    min-height: 52px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.nexpay-list-item:active { background: #f9fafb; }

.nexpay-badge {
    background: #dcfce7; color: #166534; font-size: 11px;
    padding: 4px 10px; border-radius: 999px;
    font-weight: 600;
}

/* Smooth scrolling */
#nexpay-app > div { 
    -webkit-overflow-scrolling: touch;
}

/* Hide number input spinners */
.nexpay-input[type=number]::-webkit-inner-spin-button,
.nexpay-input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}