/* ============================================================
   eLife Merchant - Main Stylesheet v1.0.100
   Dark Theme | Mobile-First | Cambodia Marketplace
   ============================================================ */

/* ── CSS Variables ──────────────────────────────────────── */
:root {
    --primary: #E91E63;
    --primary-dark: #C2185B;
    --primary-light: #F48FB1;
    --secondary: #4CAF50;
    --secondary-dark: #388E3C;

    --bg-primary: #121212;
    --bg-secondary: #1E1E1E;
    --bg-surface: #252525;
    --bg-card: #2D2D2D;
    --bg-input: #333333;

    --text-primary: #FFFFFF;
    --text-secondary: #B0B0B0;
    --text-disabled: #555555;

    --success: #4CAF50;
    --warning: #FF9800;
    --error: #F44336;
    --info: #2196F3;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 50%;

    --shadow: 0 4px 12px rgba(0,0,0,0.4);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; -webkit-tap-highlight-color: transparent; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans Khmer', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}
input, button { font-family: inherit; }
a { color: var(--primary); text-decoration: none; }

/* ── App Container ──────────────────────────────────────── */
.app-container {
    max-width: 480px;
    margin: 0 auto;
    height: 100vh;
    position: relative;
    overflow: hidden;
    background: var(--bg-primary);
}

/* ── Screen System ──────────────────────────────────────── */
.screen {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transform: translateX(100%);
    transition: var(--transition);
    background: var(--bg-primary);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.screen.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}
.screen.slide-out-left {
    transform: translateX(-30%);
    opacity: 0.5;
}
.screen.slide-out-right {
    transform: translateX(100%);
    opacity: 0;
}
.screen.slide-in-right {
    transform: translateX(100%);
}
.screen.slide-in-left {
    transform: translateX(-100%);
}

/* ── Header ─────────────────────────────────────────────── */
.screen-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    padding-top: env(safe-area-inset-top, 12px);
    min-height: 56px;
    gap: 8px;
    flex-shrink: 0;
}
.header-btn {
    width: 40px; height: 40px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    transition: var(--transition);
}
.header-btn:active { background: rgba(255,255,255,0.1); }
.header-title {
    font-size: 18px;
    font-weight: 500;
    flex: 1;
    text-align: center;
}
.header-spacer { flex: 1; }

.lang-btn {
    width: auto;
    padding: 4px 10px;
    background: rgba(233,30,99,0.15);
    border: 1px solid var(--primary);
    border-radius: 6px;
    gap: 6px;
    font-size: 13px;
}
.lang-code { color: var(--text-primary); font-weight: 600; font-size: 13px; }
.lang-flag { font-size: 16px; }

/* ── Splash Screen ──────────────────────────────────────── */
#splash-screen {
    justify-content: center;
    align-items: center;
}
.splash-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
}
.splash-progress {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.splash-loading { color: var(--text-secondary); font-size: 14px; }
.progress-dots { display: flex; gap: 4px; }
.dot {
    width: 6px; height: 6px;
    background: var(--text-secondary);
    border-radius: 50%;
}

/* ── Logo ───────────────────────────────────────────────── */
.logo-circle {
    width: 160px; height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #66BB6A, #2E7D32);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(76,175,80,0.3);
    position: relative;
    overflow: hidden;
}
.logo-circle::before {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.2);
}
.logo-circle.small { width: 120px; height: 120px; }
.logo-khmer { font-size: 9px; color: rgba(255,255,255,0.8); text-align: center; line-height: 1.2; }
.logo-circle.small .logo-khmer { font-size: 7px; }
.logo-text {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    font-style: italic;
    line-height: 1;
}
.logo-circle.small .logo-text { font-size: 28px; }
.logo-tagline {
    font-size: 11px;
    color: rgba(255,255,255,0.9);
    font-style: italic;
}
.logo-circle.small .logo-tagline { font-size: 9px; }

/* ── Logo Image (LOGO_ELIFE.png) ───────────────────────── */
.logo-img {
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 30px rgba(76,175,80,0.3);
}
.logo-img-lg {
    width: 180px;
    height: 180px;
}
.logo-img-md {
    width: 120px;
    height: 120px;
}

/* ── Sign Up Screen ─────────────────────────────────────── */
#signup-screen {
    overflow: hidden;
}
.signup-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 24px;
    gap: 16px;
    overflow: hidden;
}
.signup-logo { margin: 8px 0; }

.phone-input-section { width: 100%; }
.input-label {
    font-size: 12px;
    color: var(--text-secondary);
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: block;
}
.phone-input-row {
    display: flex;
    gap: 8px;
    width: 100%;
}
.country-select {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    border: 1px solid #444;
    cursor: pointer;
    white-space: nowrap;
    font-size: 14px;
}
.country-flag { font-size: 20px; }
.country-code { color: var(--text-primary); font-weight: 500; }
.dropdown-arrow { color: var(--text-secondary); font-size: 12px; }

.phone-input-wrapper {
    flex: 1;
    position: relative;
}
.phone-input {
    width: 100%;
    padding: 12px 36px 12px 14px;
    background: var(--bg-input);
    border: 1px solid #444;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
}
.phone-input::placeholder { color: var(--text-disabled); }
.phone-input:focus { border-color: var(--primary); }
.clear-input {
    position: absolute;
    right: 8px; top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    border: none;
    color: var(--text-secondary);
    width: 24px; height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
    padding: 14px 24px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
}
.btn-full { width: 100%; }
.btn-primary {
    background: linear-gradient(135deg, #26A69A, #00897B);
    color: #fff;
}
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled {
    background: var(--bg-card);
    color: var(--text-disabled);
    cursor: not-allowed;
}
.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}
.btn-outline:active { background: rgba(233,30,99,0.1); }
.btn-text {
    background: transparent;
    border: none;
    color: var(--primary);
    font-size: 15px;
    cursor: pointer;
    padding: 8px 16px;
    font-weight: 500;
}
.btn-otp-enter {
    width: 160px;
    border-radius: 30px;
    padding: 14px;
    margin: 16px auto;
    font-size: 18px;
}

/* ── Signup Footer ──────────────────────────────────────── */
.signup-footer {
    width: 100%;
    margin-top: auto;
    padding-bottom: env(safe-area-inset-bottom, 16px);
}
.footer-text {
    text-align: center;
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 12px;
}
.consumer-badge {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    background: var(--primary-dark);
    border-radius: var(--radius-md);
    align-items: center;
}
.badge-icon { width: 40px; height: 40px; }
.mini-logo {
    width: 40px; height: 40px;
    background: var(--secondary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: white;
}
.badge-text strong { display: block; font-size: 14px; }
.badge-text span { font-size: 12px; color: rgba(255,255,255,0.7); }

/* ── Language Screen ────────────────────────────────────── */
.language-body {
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex: 1;
}
.language-subtitle { color: var(--text-secondary); font-size: 14px; text-align: center; line-height: 1.5; }
.language-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.language-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 12px;
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}
.language-item.selected { border-color: var(--primary); background: rgba(233,30,99,0.1); }
.language-item:active { transform: scale(0.96); }
.language-item .flag { font-size: 48px; }
.language-item .name { font-size: 14px; color: var(--text-primary); font-weight: 500; }

/* ── Modal ──────────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 24px;
}
.modal-content {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    max-width: 400px;
    width: 100%;
    text-align: center;
}
.modal-icon { margin-bottom: 16px; }
.info-circle {
    display: inline-flex;
    width: 64px; height: 64px;
    border-radius: 50%;
    border: 3px solid var(--text-secondary);
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--text-secondary);
}
.modal-title { font-size: 20px; font-weight: 600; margin-bottom: 12px; }
.modal-text { color: var(--text-secondary); font-size: 14px; line-height: 1.6; margin-bottom: 12px; }
.modal-footer-link { margin-top: 16px; font-size: 13px; color: var(--text-secondary); }
.link-accent { color: var(--primary); font-weight: 500; }

/* ── PIN Screen ─────────────────────────────────────────── */
#pin-screen {
    overflow: hidden;
}
.pin-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 24px 8px;
    overflow: hidden;
}
.pin-logo { margin-bottom: 12px; }
.pin-logo .logo-img-md { width: 80px; height: 80px; }
.pin-title { font-size: 18px; font-weight: 500; margin-bottom: 2px; }
.pin-subtitle { font-size: 13px; color: var(--text-secondary); margin-bottom: 12px; }

.pin-dots {
    display: flex;
    gap: 14px;
    margin-bottom: 8px;
}
.pin-dot {
    width: 13px; height: 13px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background: transparent;
    transition: background 0.2s;
}
.pin-dot.filled { background: var(--primary); }
.pin-dot.error { border-color: var(--error); background: var(--error); }

.shuffle-btn {
    background: transparent;
    border: none;
    color: var(--primary);
    font-size: 13px;
    cursor: pointer;
    padding: 4px;
    margin-bottom: 8px;
}

/* ── Numpad ──────────────────────────────────────────────── */
.numpad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 4px;
    max-width: 280px;
    width: 100%;
}
.numpad-key {
    width: 62px; height: 62px;
    border-radius: 50%;
    border: 1px solid #444;
    background: var(--bg-surface);
    color: var(--text-primary);
    font-size: 22px;
    font-weight: 400;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    margin: 0 auto;
    -webkit-user-select: none;
    user-select: none;
}
.numpad-key:active {
    background: var(--primary);
    transform: scale(0.95);
}
.numpad-key.empty {
    border: none;
    background: transparent;
    cursor: default;
}
.numpad-key.empty:active { transform: none; background: transparent; }
.numpad-key.text-key {
    font-size: 14px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
}

.pin-actions {
    display: flex;
    width: 100%;
    max-width: 280px;
    justify-content: space-between;
    margin-top: 4px;
}
.pin-spacer { flex: 1; }
.reset-pin-link {
    margin-top: 8px;
    font-size: 13px;
}

/* ── OTP Screen ─────────────────────────────────────────── */
.otp-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px;
}
.otp-sent-msg {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}
.otp-sent-msg strong { color: var(--text-primary); font-size: 16px; }
.otp-resend { margin: 12px 0 24px; font-size: 13px; }
.otp-resend a { color: var(--text-secondary); text-decoration: underline; }

/* ── Merchant List ──────────────────────────────────────── */
.merchant-list-header {
    justify-content: space-between;
    background: var(--bg-secondary);
}
.merchant-list-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 16px;
    gap: 12px;
}
.search-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid #444;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 15px;
    outline: none;
}
.search-input::placeholder { color: var(--text-disabled); }
.search-input:focus { border-color: var(--primary); }

.merchant-list { flex: 1; overflow-y: auto; }
.merchant-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 12px;
    background: var(--bg-surface);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    cursor: pointer;
    transition: var(--transition);
}
.merchant-item:active { background: var(--bg-card); }
.merchant-item .avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--info);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    color: white;
    overflow: hidden;
}
.merchant-item .details { flex: 1; }
.merchant-item .details strong { font-size: 15px; display: block; }
.merchant-item .details span { font-size: 12px; color: var(--text-secondary); }

/* ── Fast Signup ────────────────────────────────────────── */
.fast-signup-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 24px;
    text-align: center;
}
.exclamation-icon {
    width: 64px; height: 64px;
    border-radius: 50%;
    border: 3px solid var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
}
.fast-signup-title { font-size: 22px; font-weight: 700; letter-spacing: 1px; }
.divider { width: 80px; height: 2px; background: var(--text-disabled); margin: 16px 0; }
.fast-signup-question { font-size: 15px; margin-bottom: 16px; line-height: 1.5; }
.fast-signup-hint { font-size: 13px; color: var(--text-secondary); line-height: 1.5; margin-bottom: 32px; }
.fast-signup-actions { width: 100%; display: flex; flex-direction: column; gap: 12px; }

/* ── Business Type ──────────────────────────────────────── */
.business-type-body {
    flex: 1;
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
}
.bt-question { color: var(--text-secondary); font-size: 14px; margin-bottom: 16px; }
.radio-group { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.radio-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 12px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}
.radio-item:active { background: var(--bg-surface); }
.radio-circle {
    width: 22px; height: 22px;
    border-radius: 50%;
    border: 2px solid var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}
.radio-item.selected .radio-circle {
    border-color: var(--primary);
}
.radio-item.selected .radio-circle::after {
    content: '';
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--primary);
}
.radio-item .radio-label { font-size: 15px; }

/* ── Home Screen ────────────────────────────────────────── */
.home-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    padding-top: env(safe-area-inset-top, 12px);
    gap: 8px;
}
.home-body {
    flex: 1;
    overflow-y: auto;
    padding: 0 16px 16px;
}
.merchant-profile {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 0;
}
.merchant-avatar {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 3px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}
.merchant-label { font-size: 14px; color: var(--text-secondary); }
.merchant-name { font-size: 22px; font-weight: 700; letter-spacing: 1px; }

.notification-banner {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary);
    margin-bottom: 20px;
    align-items: flex-start;
}
.notif-icon {
    width: 32px; height: 32px;
    background: var(--secondary);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}
.notif-text strong { font-size: 14px; display: block; margin-bottom: 4px; }
.notif-text p { font-size: 12px; color: var(--text-secondary); line-height: 1.4; }

.action-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}
.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}
.action-btn:active { transform: scale(0.95); }
.action-icon {
    width: 52px; height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}
.action-btn span { font-size: 11px; color: var(--text-secondary); text-align: center; }

.account-summary-section {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 16px;
}
.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.summary-header h3 { font-size: 16px; font-weight: 500; }
.visibility-toggle {
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
}
.summary-balance { display: flex; gap: 8px; align-items: baseline; }
.balance-amount { font-size: 28px; font-weight: 700; color: var(--secondary); }
.balance-currency { font-size: 14px; color: var(--text-secondary); }

/* ── Bottom Nav ─────────────────────────────────────────── */
.bottom-nav {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 8px 16px;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
    background: var(--bg-secondary);
    border-top: 1px solid #333;
    flex-shrink: 0;
}
.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 6px 12px;
}
.nav-item.active { color: var(--primary); }
.nav-icon { font-size: 20px; }
.nav-qr { margin-top: -20px; }
.qr-btn {
    width: 56px; height: 56px;
    background: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    box-shadow: var(--shadow);
}

/* ── Toast ──────────────────────────────────────────────── */
.toast {
    position: fixed;
    bottom: 80px;
    left: 50%; transform: translateX(-50%);
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 12px 24px;
    border-radius: var(--radius-lg);
    font-size: 14px;
    z-index: 2000;
    box-shadow: var(--shadow);
    max-width: 90%;
    text-align: center;
}

/* ── Loading ────────────────────────────────────────────── */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}
.loading-spinner {
    width: 44px; height: 44px;
    border: 3px solid rgba(255,255,255,0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ── Error Dialog ───────────────────────────────────────── */
.modal-error { padding: 24px; }
.modal-error .modal-title { color: var(--error); }

/* ── Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #444; border-radius: 2px; }


/* ═══════════════════════════════════════════════════════════
   NEW FEATURE STYLES v1.0.100
   QR Display, Account Summary Sheet, Public Info,
   QR Scanner, Confirmation, Payments, Success
   ═══════════════════════════════════════════════════════════ */

/* ── QR Display Modal ──────────────────────────────────── */
.qr-modal {
    background: var(--bg-secondary);
    padding: 32px 24px;
    border-radius: 16px;
    text-align: center;
    position: relative;
    max-width: 320px;
    width: 90%;
}
.qr-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.qr-close-btn:active { background: rgba(255,255,255,0.1); }
.qr-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 16px 0;
    min-height: 200px;
}
.qr-container canvas {
    border: 4px solid #4CAF50;
    border-radius: 12px;
}
.qr-label {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 500;
    margin-top: 12px;
}
.qr-sublabel {
    color: var(--text-secondary);
    font-size: 13px;
    margin-top: 4px;
}

/* ── Account Summary Bottom Sheet ──────────────────────── */
.bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    width: 100%;
    max-width: 480px;
    background: var(--bg-card);
    border-radius: 16px 16px 0 0;
    padding: 0 20px 24px;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 900;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}
.bottom-sheet.open {
    transform: translateX(-50%) translateY(0);
}
.sheet-handle {
    display: flex;
    justify-content: center;
    padding: 12px 0 8px;
    cursor: grab;
}
.handle-bar {
    width: 40px;
    height: 4px;
    background: var(--text-disabled);
    border-radius: 2px;
}
.sheet-content { padding: 8px 0; }
.sheet-row {
    display: flex;
    justify-content: space-around;
    gap: 16px;
}
.sheet-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.sheet-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-style: italic;
}
.sheet-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}

/* ── Public Info Screen ────────────────────────────────── */
.public-info-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 8px 24px 24px;
    gap: 24px;
}
.pi-subtitle {
    text-align: center;
    color: var(--primary);
    font-size: 13px;
}
.pi-avatar-section {
    display: flex;
    justify-content: center;
}
.pi-avatar-circle {
    width: 100px; height: 100px;
    border-radius: 50%;
    background: #009688;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    position: relative;
    cursor: pointer;
}
.avatar-edit-badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 28px; height: 28px;
    background: var(--bg-surface);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border: 2px solid var(--bg-primary);
}
.pi-name-section { margin-top: 8px; }
.pi-section-title {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    text-align: center;
}
.radio-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    cursor: pointer;
    transition: var(--transition);
}
.radio-item:active { background: rgba(255,255,255,0.05); }
.radio-circle {
    width: 24px; height: 24px;
    border-radius: 50%;
    border: 2px solid var(--text-disabled);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}
.radio-circle.checked {
    border-color: var(--secondary);
    background: rgba(76,175,80,0.1);
}
.radio-label {
    font-size: 15px;
    color: var(--text-primary);
}

/* ── QR Scanner Screen ─────────────────────────────────── */
.qr-scanner-header {
    background: rgba(0,0,0,0.7);
    position: relative;
    z-index: 10;
}
.qr-scanner-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #000;
    position: relative;
}
.qr-instruction {
    text-align: center;
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    padding: 12px 24px;
    position: relative;
    z-index: 5;
}
.qr-viewfinder {
    flex: 1;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.qr-viewfinder video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.qr-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.8);
    z-index: 5;
}
.camera-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-align: center;
    padding: 24px;
}
.camera-error-icon { font-size: 48px; }
.camera-error-sub { font-size: 12px; color: var(--text-disabled); }
.scan-frame {
    position: absolute;
    width: 240px; height: 240px;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 6;
    pointer-events: none;
}
.scan-corner {
    position: absolute;
    width: 24px; height: 24px;
    border-color: #4CAF50;
    border-style: solid;
    border-width: 0;
}
.scan-corner.tl { top: 0; left: 0; border-top-width: 3px; border-left-width: 3px; border-top-left-radius: 8px; }
.scan-corner.tr { top: 0; right: 0; border-top-width: 3px; border-right-width: 3px; border-top-right-radius: 8px; }
.scan-corner.bl { bottom: 0; left: 0; border-bottom-width: 3px; border-left-width: 3px; border-bottom-left-radius: 8px; }
.scan-corner.br { bottom: 0; right: 0; border-bottom-width: 3px; border-right-width: 3px; border-bottom-right-radius: 8px; }

.flash-btn {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    width: 56px; height: 56px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.3);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}
.flash-btn.active { background: #FFD600; color: #000; border-color: #FFD600; }
.flash-btn:active { transform: translateX(-50%) scale(0.9); }

/* ── Confirmation Screen ───────────────────────────────── */
.confirmation-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 24px;
    gap: 24px;
}
.confirm-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.confirm-avatar {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: #009688;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
}
.confirm-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}
.confirm-amount-section {
    width: 100%;
    text-align: center;
}
.confirm-amount-label {
    font-size: 12px;
    color: var(--text-secondary);
}
.confirm-amount-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}
.confirm-amount {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
}
.confirm-currency {
    font-size: 16px;
    color: var(--text-secondary);
}
.confirm-source-section {
    width: 100%;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 16px;
}
.confirm-source-label {
    font-size: 11px;
    color: var(--text-secondary);
    letter-spacing: 1px;
    text-transform: uppercase;
}
.confirm-source-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}
.source-icon .mini-logo {
    width: 32px; height: 32px;
    background: var(--secondary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.source-name {
    flex: 1;
    font-size: 14px;
    color: var(--text-primary);
}
.source-balance {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ── Swipe to Confirm ──────────────────────────────────── */
.swipe-section {
    width: 100%;
    margin-top: auto;
    padding: 8px 0;
}
.swipe-slider {
    position: relative;
    width: 100%;
    height: 56px;
    background: var(--bg-surface);
    border-radius: 28px;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.swipe-thumb {
    position: absolute;
    left: 4px;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--info);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    z-index: 5;
    transition: transform 0.15s ease;
    touch-action: none;
    user-select: none;
}
.swipe-thumb.active {
    cursor: grabbing;
    transform: scale(1.05);
}
.swipe-text {
    width: 100%;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.swipe-slider.confirmed .swipe-thumb { background: var(--secondary); }
.cancel-link {
    font-size: 14px;
    color: var(--text-primary);
    text-align: center;
    display: block;
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    padding: 12px;
}

/* ── Payments Screen ───────────────────────────────────── */
.payments-header {
    background: linear-gradient(135deg, var(--info), #1565C0);
}
.payments-body {
    flex: 1;
    padding: 0 16px;
    overflow-y: auto;
}
.payments-section-title {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 16px 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.payments-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.payment-request-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 12px;
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}
.payment-request-item:active { background: var(--bg-card); }
.req-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: #009688;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}
.req-info { flex: 1; min-width: 0; }
.req-name { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.req-code { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.req-status { font-size: 11px; color: var(--info); margin-top: 2px; }
.req-amount { text-align: right; flex-shrink: 0; }
.req-amount-value { font-size: 15px; font-weight: 600; color: var(--text-primary); }

.payments-fab {
    position: absolute;
    bottom: 24px;
    right: 24px;
}
.fab-btn {
    width: 56px; height: 56px;
    border-radius: 16px;
    background: var(--info);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(33,150,243,0.3);
    transition: var(--transition);
}
.fab-btn:active { transform: scale(0.92); }

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 48px 0;
    color: var(--text-disabled);
}
.empty-icon { font-size: 48px; }

/* ── Success Screen ────────────────────────────────────── */
#success-screen {
    justify-content: center;
    align-items: center;
}
.success-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 24px;
    gap: 16px;
    width: 100%;
    position: relative;
}
.success-dots-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    opacity: 0.15;
}
.dot-pattern {
    width: 100%; height: 100%;
    background-image: radial-gradient(circle, var(--text-disabled) 1px, transparent 1px);
    background-size: 16px 16px;
}
.success-checkmark-circle {
    position: relative;
    z-index: 1;
    width: 100px; height: 100px;
}
.checkmark-svg {
    width: 100px; height: 100px;
}
.checkmark-circle {
    stroke: var(--secondary);
    stroke-width: 2;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    fill: none;
    transition: stroke-dashoffset 0.6s ease;
}
.checkmark-check {
    stroke: var(--secondary);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    transition: stroke-dashoffset 0.4s ease 0.4s;
}
.success-checkmark-circle.animate .checkmark-circle {
    stroke-dashoffset: 0;
}
.success-checkmark-circle.animate .checkmark-check {
    stroke-dashoffset: 0;
}
.success-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}
.success-message {
    font-size: 14px;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}
.success-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
    max-width: 280px;
}
.success-btn {
    margin-top: 32px;
    position: relative;
    z-index: 1;
}

/* ── Visibility Toggle (SVG icon) ──────────────────────── */
.visibility-toggle {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.visibility-toggle svg { width: 20px; height: 20px; }

/* ── Merchant Profile clickable ────────────────────────── */
.merchant-profile { cursor: pointer; }
.merchant-profile:active .merchant-avatar { transform: scale(0.95); }
.merchant-avatar { transition: transform 0.15s ease; }


/* ── Transactions Screen ───────────────────────────────── */
.txn-filters {
    display: flex;
    gap: 8px;
    padding: 8px 16px;
    overflow-x: auto;
    flex-shrink: 0;
    -webkit-overflow-scrolling: touch;
}
.txn-filter-btn {
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid var(--text-disabled);
    background: transparent;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}
.txn-filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.transactions-body {
    flex: 1;
    padding: 0 16px 16px;
    overflow-y: auto;
}
.txn-date-header {
    font-size: 12px;
    color: var(--text-secondary);
    padding: 16px 0 8px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 4px;
}
.txn-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 4px;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.txn-item:active { background: rgba(255,255,255,0.05); }
.txn-icon {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.txn-info { flex: 1; min-width: 0; }
.txn-name { display: block; font-size: 14px; font-weight: 500; color: var(--text-primary); }
.txn-status { display: block; font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.txn-status.completed { color: var(--secondary); }
.txn-amount { font-size: 15px; font-weight: 600; flex-shrink: 0; }

/* ── Menu Screen ───────────────────────────────────────── */
.menu-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 8px 0;
}
.menu-profile-section {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.menu-avatar {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}
.menu-user-info h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}
.menu-user-info p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}
.menu-list {
    flex: 1;
    padding: 8px 0;
}
.menu-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    cursor: pointer;
    transition: var(--transition);
}
.menu-item:active { background: rgba(255,255,255,0.05); }
.menu-item-icon { font-size: 22px; width: 32px; text-align: center; }
.menu-item-label { flex: 1; font-size: 15px; color: var(--text-primary); }
.menu-item-arrow { color: var(--text-disabled); font-size: 20px; }
.menu-footer {
    padding: 16px 24px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.logout-btn {
    border-color: var(--error) !important;
    color: var(--error) !important;
}
.menu-version {
    text-align: center;
    color: var(--text-disabled);
    font-size: 12px;
    margin-top: 12px;
}

/* ── Responsive: No-scroll PIN & Signup ─────────────────── */
@media screen and (max-height: 700px) {
    .pin-logo .logo-img-md { width: 60px; height: 60px; }
    .pin-content { padding: 6px 24px 4px; }
    .pin-logo { margin-bottom: 6px; }
    .pin-title { font-size: 16px; }
    .pin-subtitle { font-size: 12px; margin-bottom: 6px; }
    .pin-dots { gap: 10px; margin-bottom: 4px; }
    .pin-dot { width: 11px; height: 11px; }
    .shuffle-btn { font-size: 12px; padding: 2px; margin-bottom: 4px; }
    .numpad { gap: 6px; padding: 2px; max-width: 250px; }
    .numpad-key { width: 54px; height: 54px; font-size: 20px; }
    .pin-actions { margin-top: 2px; max-width: 250px; }

    .signup-body { padding: 4px 24px; gap: 10px; }
    .signup-logo { margin: 4px 0; }
    #signup-screen .logo-img-md { width: 80px; height: 80px; }
}

@media screen and (max-height: 580px) {
    .pin-logo .logo-img-md { width: 48px; height: 48px; }
    .pin-content { padding: 2px 20px 2px; }
    .pin-logo { margin-bottom: 4px; }
    .pin-title { font-size: 15px; margin-bottom: 1px; }
    .pin-subtitle { font-size: 11px; margin-bottom: 4px; }
    .pin-dots { gap: 8px; margin-bottom: 3px; }
    .pin-dot { width: 10px; height: 10px; border-width: 1.5px; }
    .shuffle-btn { font-size: 11px; padding: 1px; margin-bottom: 3px; }
    .numpad { gap: 4px; padding: 0; max-width: 220px; }
    .numpad-key { width: 48px; height: 48px; font-size: 18px; }
    .numpad-key.text-key { font-size: 12px; }
    .pin-actions { margin-top: 1px; max-width: 220px; }
    .pin-actions .btn-text { font-size: 13px; }

    .signup-body { padding: 2px 20px; gap: 6px; }
    .signup-logo { margin: 2px 0; }
    #signup-screen .logo-img-md { width: 60px; height: 60px; }
    .signup-footer { gap: 6px; }
}

/* ══════════════ AMOUNT ENTRY SCREEN ══════════════ */
#amount-entry-screen {
    background: #121212;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}
.amount-entry-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 8px;
    position: relative;
}
.amount-entry-header-spacer { width: 36px; }
.amount-entry-header-center { flex: 1; text-align: center; }
.amount-entry-header-center .screen-title {
    font-size: 20px;
    font-weight: 600;
    color: #FFFFFF;
}
.amount-entry-subtitle {
    text-align: center;
    font-size: 13px;
    color: #4DD0E1;
    margin-bottom: 12px;
}
.theme-refund .amount-entry-subtitle { color: #FFA000; }
.theme-withdraw .amount-entry-subtitle { color: #2196F3; }
.theme-topup .amount-entry-subtitle { color: #2196F3; }

.amount-entry-display-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 8px 24px 16px;
}
.amount-entry-value {
    font-size: 40px;
    font-weight: 500;
    color: #FFFFFF;
    letter-spacing: 1px;
}
.amount-entry-symbol { font-size: 32px; margin-right: 2px; }
.amount-entry-currency-badge {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    background: #1E1E1E;
    border: 1px solid #333333;
    color: #4DD0E1;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}
.theme-refund .amount-entry-currency-badge { color: #FFA000; }

.amount-entry-action-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 36px 12px;
    max-width: 340px;
    margin: 0 auto;
    width: 100%;
}
.amount-entry-action-btn {
    background: none;
    border: none;
    color: #888888;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    transition: color 0.2s;
}
.amount-entry-action-btn:active { color: #FFFFFF; }

.amount-entry-numpad {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 320px;
    width: 100%;
    margin: 0 auto;
    padding: 0 16px;
}
.amount-entry-numpad-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}
.amount-entry-numpad .numpad-key {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    border: 1px solid #333333;
    background: #1A1A1A;
    color: #FFFFFF;
    font-size: 24px;
    font-weight: 400;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, transform 0.1s;
}
.amount-entry-numpad .numpad-key:active {
    background: #333333;
    transform: scale(0.95);
}

.amount-entry-proceed-wrap {
    padding: 16px 24px 20px;
    max-width: 360px;
    width: 100%;
    margin: auto auto 0;
}
.amount-entry-proceed-btn {
    background: #4DD0E1 !important;
    color: #121212 !important;
    font-weight: 600;
    font-size: 16px;
    border-radius: 12px;
    opacity: 0.4;
    cursor: not-allowed;
    transition: opacity 0.2s, background 0.2s;
}
.amount-entry-proceed-btn.active {
    opacity: 1;
    cursor: pointer;
}
.btn-refund {
    background: #FFA000 !important;
    color: #121212 !important;
}
.btn-topup {
    background: #2196F3 !important;
    color: #FFFFFF !important;
}

/* ══════════════ CURRENCY SCREEN ══════════════ */
#currency-screen {
    background: #121212;
    display: flex;
    flex-direction: column;
}
.currency-body {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.currency-subtitle {
    color: #888888;
    font-size: 13px;
    text-align: center;
    margin-bottom: 36px;
    max-width: 280px;
    line-height: 1.4;
}
.currency-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
    margin-top: 20px;
}
.currency-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 12px;
    border-radius: 16px;
    transition: transform 0.15s;
}
.currency-option:active { transform: scale(0.96); }
.currency-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #242424;
    border: 2px solid #333333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 700;
    color: #FFFFFF;
    transition: border-color 0.2s, background 0.2s;
}
.currency-option.selected .currency-icon {
    background: #4DD0E1;
    border-color: #4DD0E1;
    color: #121212;
    font-weight: bold;
}
.currency-name {
    font-size: 13px;
    color: #CCCCCC;
    text-align: center;
    max-width: 110px;
    line-height: 1.3;
}
.currency-option.selected .currency-name {
    color: #4DD0E1;
    font-weight: 500;
}
.currency-footer {
    padding: 16px 24px 24px;
}

/* ══════════════ PAYMENT QR SCREEN ══════════════ */
#payment-qr-screen {
    background: #121212;
    display: flex;
    flex-direction: column;
}
.payment-qr-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 24px 24px;
    overflow-y: auto;
}
.pqr-merchant-card {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    background: #1C1C1E;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 16px;
    border: 1px solid rgba(255,255,255,0.06);
}
.pqr-avatar img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}
.pqr-merchant-info { flex: 1; min-width: 0; }
.pqr-name { font-size: 15px; font-weight: 600; color: #FFFFFF; }
.pqr-location { font-size: 12px; color: #888888; margin-top: 1px; }
.pqr-uuid {
    font-size: 11px;
    color: #666666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 2px;
}

.pqr-amount-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 16px;
}
.pqr-amount { font-size: 32px; font-weight: 700; color: #FFFFFF; }
.pqr-currency { font-size: 14px; font-weight: 600; color: #888888; }

.pqr-tabs {
    display: flex;
    gap: 24px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    width: 100%;
    justify-content: center;
}
.pqr-tab {
    background: none;
    border: none;
    color: #888888;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 16px 12px;
    cursor: pointer;
    position: relative;
}
.pqr-tab.active {
    color: #4DD0E1;
}
.pqr-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: #4DD0E1;
    border-radius: 2px;
}

.pqr-instruction {
    font-size: 13px;
    color: #888888;
    margin-bottom: 20px;
    text-align: center;
}
.pqr-canvas-wrapper {
    background: #FFFFFF;
    padding: 16px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    margin-bottom: 24px;
}
.pqr-nfc-icon {
    color: #666666;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ══════════════ RECEIPT SCREEN ══════════════ */
#receipt-screen {
    background: #121212;
    display: flex;
    flex-direction: column;
}
.receipt-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 8px;
}
.receipt-title {
    font-size: 16px;
    font-weight: 600;
    color: #FFFFFF;
    text-align: center;
    flex: 1;
}
.receipt-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 20px 16px;
    overflow-y: auto;
}
.receipt-icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}
.receipt-amount-display {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 4px;
}
.receipt-datetime {
    font-size: 12px;
    color: #888888;
    text-align: center;
    line-height: 1.4;
    margin-bottom: 10px;
}
.receipt-fee-badge {
    background: #FCE4EC;
    color: #E91E63;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 12px;
    border-radius: 12px;
    margin-bottom: 14px;
}
.receipt-card {
    width: 100%;
    background: #1C1C1E;
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 14px;
    border: 1px solid rgba(255,255,255,0.06);
}
.receipt-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.receipt-type-badge {
    font-size: 12px;
    font-weight: 700;
    color: #AAAAAA;
    letter-spacing: 0.5px;
}
.receipt-txno-label {
    font-size: 10px;
    color: #666666;
    letter-spacing: 0.5px;
}
.receipt-user-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.receipt-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #FFFFFF;
}
.receipt-user-name {
    font-size: 14px;
    font-weight: 600;
    color: #FFFFFF;
    flex: 1;
}
.receipt-user-txno {
    font-size: 12px;
    color: #888888;
}
.receipt-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.receipt-rate-row {
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.receipt-stars {
    color: #FFD700;
    font-size: 15px;
    letter-spacing: 2px;
}
.receipt-label {
    font-size: 10px;
    color: #666666;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}
.receipt-value {
    font-size: 13px;
    color: #CCCCCC;
}
.text-right { text-align: right; }

.receipt-success-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 10px;
}
.receipt-success-check {
    color: #4CAF50;
    font-weight: 700;
    font-size: 16px;
}
.receipt-success-text {
    color: #4CAF50;
    font-size: 13px;
    font-weight: 500;
}
.receipt-mini-qr {
    width: 44px;
    height: 44px;
    border-radius: 4px;
}
.receipt-refund-btn {
    color: #FFA000 !important;
    font-size: 13px;
    cursor: pointer;
    text-decoration: underline;
    margin-bottom: 6px;
}
.receipt-actions {
    padding: 12px 20px 20px;
}

/* Refund mode confirmation slider */
#swipe-slider.refund-mode .swipe-thumb {
    background: #FFA000 !important;
}

/* ── Withdraw Theme Styles ──────────────────────────────── */
.theme-withdraw .amount-entry-subtitle { color: #BA68C8; }
.theme-withdraw .amount-entry-currency-badge { color: #BA68C8; }
.btn-withdraw {
    background: #9C27B0 !important;
    color: #FFFFFF !important;
}

.amount-entry-proceed-wrap.has-booking-btn {
    display: flex;
    align-items: center;
    gap: 12px;
}
.amount-entry-booking-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #9C27B0;
    border: none;
    color: #FFFFFF;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.15s, background 0.2s;
}
.amount-entry-booking-btn:active {
    transform: scale(0.92);
    background: #7B1FA2;
}

.amount-entry-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.map-btn {
    color: #888888;
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.map-btn:active { color: #FFFFFF; }

#payment-qr-screen.theme-withdraw .payment-qr-header {
    background: #7B1FA2;
}
#payment-qr-screen.theme-withdraw .payment-qr-header .header-title {
    color: #FFFFFF;
}
#payment-qr-screen.theme-withdraw .pqr-tab.active {
    color: #BA68C8;
}
#payment-qr-screen.theme-withdraw .pqr-tab.active::after {
    background: #BA68C8;
}

#swipe-slider.withdraw-mode .swipe-thumb {
    background: #9C27B0 !important;
}


/* ── v1.0.103 Added Styles: Pill, Wallet, Loyalty, Messenger, Notifications, Menu, Security, Change PIN ── */

.screen-indicator-pill {
    width: 36px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    margin: 6px auto 12px;
}

/* Wallet Screen */
.wallet-header {
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.wallet-tabs {
    display: flex;
    padding: 0 16px 12px;
    gap: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.wallet-tab {
    background: none;
    border: none;
    color: #888888;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding-bottom: 6px;
    position: relative;
}
.wallet-tab.active {
    color: #00BCD4;
    font-weight: 600;
}
.wallet-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #00BCD4;
    border-radius: 1px;
}
.wallet-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}
.combined-balance-card {
    background: #1E1E1E;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.balance-top-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}
.balance-label {
    font-size: 11px;
    color: #888888;
    margin-bottom: 4px;
}
.balance-amount-main {
    font-size: 24px;
    font-weight: 700;
    color: #FFFFFF;
}
.balance-amount-rewards {
    font-size: 20px;
    font-weight: 700;
    color: #00BCD4;
}
.balance-currency-row {
    display: flex;
    gap: 20px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.currency-split-item {
    font-size: 12px;
    color: #AAAAAA;
}
.currency-split-item strong {
    color: #FFFFFF;
    margin-left: 4px;
}
.daily-total-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #666666;
    margin: 16px 0 8px;
    padding: 0 4px;
}
.wallet-txn-item {
    display: flex;
    align-items: center;
    background: #181818;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: background 0.15s;
}
.wallet-txn-item:active {
    background: #242424;
}
.wallet-txn-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #FFFFFF;
    margin-right: 12px;
    flex-shrink: 0;
}
.wallet-txn-details {
    flex: 1;
}
.wallet-txn-name {
    font-size: 13px;
    font-weight: 600;
    color: #FFFFFF;
}
.wallet-txn-sub {
    font-size: 11px;
    color: #888888;
}
.wallet-txn-amount-wrap {
    text-align: right;
}
.wallet-txn-amount {
    font-size: 14px;
    font-weight: 700;
}
.wallet-txn-amount.positive { color: #00BCD4; }
.wallet-txn-amount.negative { color: #FF5252; }
.wallet-txn-wallet {
    font-size: 10px;
    color: #666666;
}

/* Loyalty Plans Screen */
.loyalty-header {
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.loyalty-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px 16px;
}
.merchant-loyalty-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.loyalty-merchant-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #1E1E1E;
    border-radius: 10px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
}
.loyalty-merchant-card:active {
    background: #252525;
}
.loyalty-merchant-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: #FFFFFF;
    flex-shrink: 0;
}
.loyalty-merchant-info {
    flex: 1;
}
.loyalty-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}
.loyalty-merchant-name {
    font-size: 15px;
    font-weight: 600;
    color: #FFFFFF;
    margin: 0;
}
.loyalty-rating {
    font-size: 12px;
    font-weight: 500;
}
.loyalty-rating.rated { color: #FFA000; font-weight: 700; }
.loyalty-rating.unrated { color: #888888; }
.loyalty-address {
    font-size: 11px;
    color: #888888;
    margin: 0 0 2px;
}
.loyalty-branches {
    font-size: 11px;
    color: #666666;
    margin: 0 0 4px;
}
.loyalty-plans-link {
    font-size: 12px;
    color: #00BCD4;
    font-weight: 500;
    margin: 0;
}
.loyalty-status {
    font-size: 11px;
    color: #4CAF50;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}
.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4CAF50;
    display: inline-block;
}

/* Messenger & Chat Screen */
.messenger-header {
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.messenger-body {
    flex: 1;
    overflow-y: auto;
    padding: 8px 16px;
}
.messenger-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.messenger-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 10px;
    background: #181818;
    cursor: pointer;
    transition: background 0.15s;
}
.messenger-item:active {
    background: #242424;
}
.messenger-avatar-wrapper {
    position: relative;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}
.messenger-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #FFFFFF;
}
.avatar-gradient {
    background: conic-gradient(from 180deg at 50% 50%, #FF2E93 0deg, #FF8A00 90deg, #00BCD4 180deg, #7C4DFF 270deg, #FF2E93 360deg);
}
.online-indicator {
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 10px;
    height: 10px;
    background: #4CAF50;
    border: 2px solid #121212;
    border-radius: 50%;
}
.messenger-info {
    flex: 1;
}
.messenger-name {
    font-size: 14px;
    font-weight: 600;
    color: #FFFFFF;
    margin: 0 0 2px;
}
.messenger-last-msg {
    font-size: 12px;
    color: #888888;
    margin: 0;
}

/* Chat Screen */
.chat-header {
    background: #181818;
    display: flex;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.chat-header-user {
    display: flex;
    align-items: center;
    gap: 10px;
}
.chat-header-avatar {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #FFFFFF;
}
.online-indicator-small {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 8px;
    height: 8px;
    background: #4CAF50;
    border: 1.5px solid #181818;
    border-radius: 50%;
}
.chat-header-name {
    font-size: 14px;
    font-weight: 600;
    color: #FFFFFF;
}
.chat-header-status {
    font-size: 10px;
    color: #4CAF50;
}
.chat-messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.chat-bubble-row {
    display: flex;
    width: 100%;
}
.chat-bubble-row.me {
    justify-content: flex-end;
}
.chat-bubble-row.them {
    justify-content: flex-start;
}
.chat-bubble {
    max-width: 78%;
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1.4;
    word-break: break-word;
}
.bubble-me {
    background: #00838F;
    color: #FFFFFF;
    border-bottom-right-radius: 2px;
}
.bubble-them {
    background: #252525;
    color: #E0E0E0;
    border-bottom-left-radius: 2px;
}
.chat-attached-image {
    max-width: 100%;
    max-height: 180px;
    border-radius: 8px;
    display: block;
    margin-bottom: 4px;
    object-fit: cover;
}
.chat-bubble-text {
    margin: 0;
}
.chat-bubble-time {
    display: block;
    font-size: 9px;
    opacity: 0.6;
    margin-top: 4px;
    text-align: right;
}
.chat-input-bar {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    background: #181818;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    gap: 8px;
}
.chat-input {
    flex: 1;
    background: #242424;
    border: none;
    border-radius: 20px;
    padding: 10px 16px;
    color: #FFFFFF;
    font-size: 13px;
    outline: none;
}
.chat-input::placeholder {
    color: #777777;
}
.chat-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: none;
    border: none;
    color: #888888;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s, background 0.15s;
}
.chat-icon-btn:active {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.1);
}
.chat-send-btn {
    color: #00BCD4;
}

/* Notifications Screen */
.notif-header {
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.notifications-body {
    flex: 1;
    overflow-y: auto;
    padding: 8px 16px;
}
.notifications-body.empty-body {
    display: flex;
    align-items: center;
    justify-content: center;
}
.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.notification-feed-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    background: #181818;
    cursor: pointer;
    transition: background 0.15s;
}
.notification-feed-item:active {
    background: #242424;
}
.notif-feed-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #FFFFFF;
    flex-shrink: 0;
}
.notif-emoji {
    font-size: 18px;
}
.notif-feed-content {
    flex: 1;
}
.notif-feed-title {
    font-size: 13px;
    color: #DDDDDD;
    margin-bottom: 2px;
    line-height: 1.3;
}
.notif-feed-time {
    font-size: 11px;
    color: #777777;
}
.notifications-empty {
    text-align: center;
    padding: 40px 20px;
}
.empty-bell-icon {
    font-size: 48px;
    color: #555555;
    margin-bottom: 12px;
}
.empty-notif-text {
    font-size: 14px;
    color: #888888;
}

/* Menu And More Screen */
.menu-more-header {
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.menu-search-wrapper {
    padding: 0 16px 8px;
}
.menu-search-bar {
    position: relative;
    display: flex;
    align-items: center;
    background: #1E1E1E;
    border-radius: 8px;
    padding: 2px 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.menu-search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #FFFFFF;
    padding: 8px 6px;
    font-size: 13px;
    outline: none;
}
.menu-search-input::placeholder {
    color: #666666;
}
.menu-search-clear {
    background: none;
    border: none;
    color: #888888;
    font-size: 14px;
    cursor: pointer;
    padding: 4px;
}
.menu-and-more-body {
    flex: 1;
    overflow-y: auto;
    padding: 0 16px 20px;
}
.menu-rich-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}
.menu-rich-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 8px;
    background: #181818;
    cursor: pointer;
    transition: background 0.15s;
}
.menu-rich-item:active {
    background: #242424;
}
.menu-rich-icon {
    font-size: 20px;
    width: 28px;
    text-align: center;
    flex-shrink: 0;
}
.menu-rich-details {
    flex: 1;
}
.menu-rich-title {
    font-size: 14px;
    font-weight: 600;
    color: #FFFFFF;
    margin: 0 0 2px;
}
.menu-rich-subtitle {
    font-size: 11px;
    color: #777777;
    margin: 0;
}
.menu-version-row {
    font-size: 12px;
    color: #888888;
    padding: 8px 4px;
    margin-bottom: 8px;
}
.menu-section-header {
    font-size: 12px;
    font-weight: 700;
    color: #999999;
    margin: 12px 4px 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.menu-text-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 8px 4px;
}
.menu-text-link {
    font-size: 13px;
    color: #AAAAAA;
    cursor: pointer;
    padding: 4px 0;
}
.menu-text-link:active {
    color: #FFFFFF;
}
.sign-out-link {
    color: #FF5252 !important;
    font-weight: 600;
}

/* Security Screen */
.security-header {
    background: transparent;
    display: flex;
    align-items: center;
}
.security-body {
    flex: 1;
    overflow-y: auto;
    padding: 8px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.security-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border-radius: 8px;
    background: #181818;
    cursor: pointer;
    transition: background 0.15s;
}
.security-item:active {
    background: #242424;
}
.security-icon {
    font-size: 20px;
    width: 28px;
    text-align: center;
    flex-shrink: 0;
}
.security-info {
    flex: 1;
}
.security-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.security-title {
    font-size: 14px;
    font-weight: 600;
    color: #FFFFFF;
    margin: 0 0 2px;
}
.security-subtitle {
    font-size: 11px;
    color: #777777;
    margin: 0;
}
.security-status-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}
.security-status-badge.status-on {
    color: #00BCD4;
}
.security-status-badge.status-off {
    color: #FF5252;
}

/* Change PIN Screen & Same PIN Dialog & Success screen */
#change-pin-screen {
    overflow: hidden !important;
    height: 100% !important;
}
.change-pin-wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px 24px 30px;
    overflow: hidden;
    box-sizing: border-box;
}
.change-pin-header-section {
    text-align: center;
    padding-top: 20px;
}
.change-pin-title {
    font-size: 18px;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 6px;
}
.change-pin-subtitle {
    font-size: 12px;
    color: #888888;
    margin-bottom: 20px;
}
.change-pin-numpad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 300px;
    margin: 0 auto;
    width: 100%;
}
.same-pin-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.same-pin-dialog {
    background: #FFFFFF !important;
    color: #121212 !important;
    border-radius: 6px;
    padding: 20px 24px 16px;
    width: 82%;
    max-width: 320px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.same-pin-title {
    font-size: 16px;
    font-weight: 700;
    color: #121212;
    margin: 0 0 10px;
}
.same-pin-body {
    font-size: 13px;
    color: #555555;
    margin: 0 0 20px;
    line-height: 1.4;
}
.same-pin-actions {
    display: flex;
    justify-content: flex-end;
}
.btn-same-pin-ok {
    background: none;
    border: none;
    color: #00BCD4;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    padding: 6px 12px;
}

/* Success Screen */
.change-pin-success-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #FFFFFF;
    color: #121212;
    padding: 40px 24px 30px;
    box-sizing: border-box;
}
.success-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.success-check-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #00BCD4;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}
.success-screen-title {
    font-size: 20px;
    font-weight: 700;
    color: #121212;
    margin-bottom: 12px;
}
.success-screen-desc {
    font-size: 14px;
    color: #444444;
    margin-bottom: 16px;
}
.success-screen-subtext {
    font-size: 12px;
    color: #777777;
    line-height: 1.5;
    max-width: 280px;
}
.success-btn-wrapper {
    width: 100%;
}
.success-got-it-btn {
    background: #00BCD4 !important;
    color: #FFFFFF !important;
    height: 48px;
    font-weight: 600;
}


/* ── v1.0.104 Added Styles: Attention, Touch ID, Settings & Subscreens ── */

/* Attention Screen */
.security-attention-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px 24px 30px;
    background: #181818;
    color: #FFFFFF;
    box-sizing: border-box;
}
.attention-content-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 10px;
}
.attention-warning-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #FF9800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    font-weight: 700;
    color: #FF9800;
    margin-bottom: 24px;
}
.attention-title {
    font-size: 20px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 16px;
}
.attention-body-text {
    font-size: 13px;
    color: #CCCCCC;
    line-height: 1.5;
    max-width: 320px;
}
.attention-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
}
.btn-attention-yes {
    background: #E65100 !important;
    color: #FFFFFF !important;
    width: 100%;
    height: 48px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    border: none;
    cursor: pointer;
}
.btn-attention-yes:active {
    background: #BF360C !important;
}
.btn-attention-no {
    background: none;
    border: none;
    color: #888888;
    font-size: 14px;
    cursor: pointer;
    padding: 8px;
}
.btn-attention-no:active {
    color: #FFFFFF;
}

/* Touch ID Modal */
.touch-id-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
}
.touch-id-dialog {
    background: #FFFFFF !important;
    color: #121212 !important;
    border-radius: 14px;
    padding: 24px 20px 16px;
    width: 78%;
    max-width: 290px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    cursor: pointer;
}
.touch-id-icon-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #FFEBEE;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: 26px;
}
.touch-id-fingerprint {
    color: #E91E63;
}
.touch-id-title {
    font-size: 15px;
    font-weight: 700;
    color: #121212;
    margin: 0 0 6px;
}
.touch-id-subtitle {
    font-size: 12px;
    color: #666666;
    margin: 0 0 18px;
}
.btn-touch-id-cancel {
    background: none;
    border: none;
    border-top: 1px solid #EEEEEE;
    color: #007AFF;
    font-size: 15px;
    font-weight: 600;
    width: 100%;
    padding-top: 12px;
    cursor: pointer;
}

/* Settings Screen */
.settings-header {
    background: transparent;
    display: flex;
    align-items: center;
}
.settings-body {
    flex: 1;
    overflow-y: auto;
    padding: 8px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.settings-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 14px;
    border-radius: 8px;
    background: #181818;
    cursor: pointer;
    transition: background 0.15s;
}
.settings-item:active {
    background: #242424;
}
.settings-icon {
    font-size: 20px;
    width: 28px;
    text-align: center;
    flex-shrink: 0;
}
.settings-info {
    flex: 1;
}
.settings-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.settings-title {
    font-size: 14px;
    font-weight: 600;
    color: #FFFFFF;
    margin: 0 0 2px;
}
.settings-subtitle {
    font-size: 11px;
    color: #777777;
    margin: 0;
}
.settings-currency-badge,
.settings-lang-badge {
    font-size: 11px;
    font-weight: 700;
    color: #00BCD4;
}

/* Settings Subscreen general */
.settings-subscreen-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px 18px 24px;
    display: flex;
    flex-direction: column;
}
.settings-btn-bottom {
    margin-top: auto;
    padding-top: 24px;
}

/* Public Information */
.public-info-hint {
    font-size: 11px;
    color: #888888;
    text-align: center;
    margin-bottom: 16px;
}
.public-info-avatar-section {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}
.public-info-avatar-circle {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #00838F;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: #FFFFFF;
}
.avatar-edit-pencil {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #FFFFFF;
    color: #121212;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #181818;
}
.public-info-select-title {
    font-size: 13px;
    font-weight: 600;
    color: #999999;
    margin: 0 0 12px;
}
.public-name-radio-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.public-name-radio-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
}
.public-radio-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #666666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: transparent;
}
.public-radio-circle.checked {
    border-color: #00BCD4;
    background: #00BCD4;
    color: #FFFFFF;
}
.public-radio-label {
    font-size: 14px;
    color: #DDDDDD;
}

/* Payment Preference */
.payment-pref-desc {
    font-size: 12px;
    color: #888888;
    line-height: 1.45;
    margin-bottom: 20px;
}
.payment-pref-section {
    margin-bottom: 16px;
}
.payment-pref-label {
    font-size: 12px;
    font-weight: 600;
    color: #AAAAAA;
    display: block;
    margin-bottom: 8px;
}
.payment-source-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #1E1E1E;
    border-radius: 8px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
}
.payment-source-card:active {
    background: #252525;
}
.drag-handle-dots {
    color: #666666;
    font-size: 14px;
    letter-spacing: -2px;
}
.source-card-logo {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #4CAF50;
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.source-card-name {
    flex: 1;
    font-size: 13px;
    color: #FFFFFF;
    font-weight: 500;
}
.drag-pill-badge {
    background: #E91E63;
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 12px;
}
.source-card-more {
    color: #666666;
    font-size: 12px;
}
.payment-pref-hint {
    font-size: 11px;
    color: #00BCD4;
    text-align: center;
    cursor: pointer;
    margin: 8px 0;
}

/* Transaction Limits */
.limit-input-group {
    margin-bottom: 20px;
}
.limit-label {
    font-size: 12px;
    font-weight: 600;
    color: #AAAAAA;
    display: block;
    margin-bottom: 8px;
}
.limit-options-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
.limit-opt-btn {
    background: #1E1E1E;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #888888;
    border-radius: 6px;
    padding: 10px 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}
.limit-opt-btn.active {
    border-color: #00BCD4;
    color: #00BCD4;
    background: rgba(0, 188, 212, 0.1);
}

/* Currency Screen */
.currency-circles-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin: 30px 0;
}
.currency-circle-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}
.currency-big-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    color: #FFFFFF;
    transition: transform 0.15s, box-shadow 0.15s;
}
.circle-usd {
    background: #00838F;
}
.circle-khr {
    background: #AD1457;
}
.circle-tzs {
    background: #1eb53a;
}
.currency-circle-item.active .currency-big-circle {
    box-shadow: 0 0 0 4px #00BCD4, 0 0 15px rgba(0, 188, 212, 0.4);
    transform: scale(1.05);
}
.currency-circle-label {
    font-size: 12px;
    color: #CCCCCC;
    text-align: center;
    max-width: 110px;
}

/* Languages Subscreen */
.languages-circles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 20px 0;
}
.lang-circle-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 12px;
    border-radius: 12px;
    background: #181818;
    border: 1px solid transparent;
}
.lang-circle-item.active {
    border-color: #00BCD4;
    background: rgba(0, 188, 212, 0.08);
}
.lang-flag-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #252525;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}
.lang-circle-label {
    font-size: 13px;
    color: #FFFFFF;
    font-weight: 500;
}

/* Notification Settings Subscreen */
.notif-settings-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.notif-setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1E1E1E;
    border-radius: 8px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
}
.notif-setting-text {
    flex: 1;
    margin-right: 12px;
}
.notif-setting-title {
    font-size: 13px;
    font-weight: 600;
    color: #FFFFFF;
    margin: 0 0 2px;
}
.notif-setting-desc {
    font-size: 11px;
    color: #777777;
    margin: 0;
}
.toggle-switch {
    width: 44px;
    height: 24px;
    border-radius: 12px;
    position: relative;
    transition: background 0.2s;
    flex-shrink: 0;
}
.toggle-switch.on {
    background: #00BCD4;
}
.toggle-switch.off {
    background: #444444;
}
.toggle-knob {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #FFFFFF;
    position: absolute;
    top: 2px;
    transition: left 0.2s;
}
.toggle-switch.on .toggle-knob {
    left: 22px;
}
.toggle-switch.off .toggle-knob {
    left: 2px;
}


/* ── v1.0.105 Added Styles: Staff Members, Support Messenger, Legal Screen ── */

/* Staff Screen */
.staff-header {
    background: transparent;
    display: flex;
    align-items: center;
}
.staff-body {
    flex: 1;
    overflow-y: auto;
    padding: 8px 16px 24px;
    display: flex;
    flex-direction: column;
}
.staff-subtitle {
    font-size: 12px;
    color: #888888;
    margin-bottom: 16px;
}
.staff-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}
.staff-item-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #1E1E1E;
    border-radius: 8px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.staff-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #00897B;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #FFFFFF;
    flex-shrink: 0;
}
.staff-info {
    flex: 1;
}
.staff-name-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
}
.staff-name {
    font-size: 14px;
    font-weight: 600;
    color: #FFFFFF;
    margin: 0;
}
.staff-status-badge {
    font-size: 10px;
    font-weight: 600;
    color: #4CAF50;
    background: rgba(76, 175, 80, 0.12);
    padding: 2px 8px;
    border-radius: 10px;
}
.staff-role {
    font-size: 12px;
    color: #00BCD4;
    margin: 0 0 2px;
}
.staff-phone {
    font-size: 11px;
    color: #777777;
    margin: 0;
}
.staff-add-section {
    margin-top: auto;
}

/* Support Messenger Welcome & Chat */
.support-welcome-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #FFFFFF;
    color: #121212;
    padding: 20px 20px 24px;
    box-sizing: border-box;
}
.support-welcome-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #EEEEEE;
}
.support-back-badge {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    font-size: 24px;
    font-weight: 600;
    color: #007AFF;
    cursor: pointer;
}
.support-badge-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #007AFF;
    color: #FFFFFF;
    font-size: 11px;
    margin-left: 2px;
}
.support-header-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}
.support-header-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    overflow: hidden;
}
.support-header-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.support-header-title {
    font-size: 14px;
    font-weight: 700;
    color: #121212;
    line-height: 1.2;
}
.support-header-sub {
    font-size: 11px;
    color: #888888;
}
.support-welcome-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.support-main-logo-wrapper {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.support-main-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.support-app-title {
    font-size: 22px;
    font-weight: 700;
    color: #121212;
    margin-bottom: 4px;
}
.support-app-subtitle {
    font-size: 13px;
    color: #666666;
}
.support-welcome-footer {
    text-align: center;
}
.support-privacy-hint {
    font-size: 11px;
    color: #888888;
    margin-bottom: 14px;
    line-height: 1.4;
}
.support-get-started-btn {
    background: #00BCD4 !important;
    color: #FFFFFF !important;
    height: 48px;
    font-weight: 600;
}

/* Support Live Chat */
.support-chat-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #121212;
}
.support-chat-header {
    background: #181818;
    display: flex;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.support-chat-header-user {
    display: flex;
    align-items: center;
    gap: 10px;
}
.support-chat-header-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
}
.support-chat-header-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.support-chat-name {
    font-size: 14px;
    font-weight: 600;
    color: #FFFFFF;
}
.support-chat-status {
    font-size: 10px;
    color: #4CAF50;
}
.support-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.support-chat-input-bar {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    background: #181818;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    gap: 8px;
}

/* Legal Screen */
.legal-screen-wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    color: #121212;
}
.legal-header {
    background: #FFFFFF;
    display: flex;
    align-items: center;
    padding: 12px 14px;
    border-bottom: 1px solid #F0F0F0;
}
.legal-header .header-title {
    color: #121212 !important;
}
.legal-header .header-btn {
    color: #121212 !important;
}
.screen-indicator-pill-dark {
    width: 36px;
    height: 4px;
    background: #D0D0D0;
    border-radius: 2px;
    margin: 8px auto 16px;
}
.legal-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px 20px 24px;
}
.legal-items-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.legal-item-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 4px;
    border-bottom: 1px solid #EEEEEE;
    cursor: pointer;
    transition: background 0.15s;
}
.legal-item-row:active {
    background: #F9F9F9;
}
.legal-item-icon {
    font-size: 22px;
    width: 32px;
    text-align: center;
    flex-shrink: 0;
}
.legal-item-info {
    flex: 1;
}
.legal-item-title {
    font-size: 15px;
    font-weight: 600;
    color: #121212;
    margin: 0 0 4px;
}
.legal-item-desc {
    font-size: 12px;
    color: #888888;
    margin: 0;
}
/* =========================================================================
   APPLE iOS CLEAN WHITE & SILVER-GREY ULTRA-TRANSLUCENT CRYSTAL GLASS (v1.0.115)
   Airy Frosted Acrylic | Zero Dark Gradients | Crystal Specular Edges
   ========================================================================= */

:root {
    --primary: #0A84FF;
    --primary-dark: #0066CC;
    --primary-light: #38BDF8;
    --secondary: #059669;
    --secondary-dark: #047857;

    --bg-primary: #EEF2F6;
    --bg-secondary: rgba(255, 255, 255, 0.45);
    --bg-surface: rgba(255, 255, 255, 0.48);
    --bg-card: rgba(255, 255, 255, 0.44);
    --bg-input: rgba(255, 255, 255, 0.52);

    --text-primary: #1E293B;
    --text-secondary: #64748B;
    --text-disabled: #94A3B8;

    --ios-pink: #FF375F;
    --ios-green: #059669;
    --ios-teal: #0284C7;
    --ios-orange: #D97706;
    --ios-indigo: #4F46E5;
    --ios-blue: #0A84FF;

    --blur-md: blur(28px) saturate(180%);
    --blur-lg: blur(36px) saturate(200%);

    --radius-sm: 14px;
    --radius-md: 20px;
    --radius-lg: 26px;
    --transition: all 0.28s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", system-ui, sans-serif !important;
    background:
        radial-gradient(circle at 15% 15%, rgba(255, 255, 255, 0.95) 0%, transparent 48%),
        radial-gradient(circle at 85% 20%, rgba(226, 232, 240, 0.75) 0%, transparent 52%),
        radial-gradient(circle at 50% 75%, rgba(241, 245, 249, 0.90) 0%, transparent 55%),
        linear-gradient(145deg, #F8FAFC 0%, #E6EBF2 48%, #F1F5F9 100%) !important;
    background-attachment: fixed !important;
    color: #1E293B !important;
}

.app-container {
    background:
        radial-gradient(circle at 15% 15%, rgba(255, 255, 255, 0.95) 0%, transparent 48%),
        radial-gradient(circle at 85% 20%, rgba(226, 232, 240, 0.75) 0%, transparent 52%),
        radial-gradient(circle at 50% 75%, rgba(241, 245, 249, 0.90) 0%, transparent 55%),
        linear-gradient(145deg, #F8FAFC 0%, #E6EBF2 48%, #F1F5F9 100%) !important;
    box-shadow: 0 24px 60px rgba(148, 163, 184, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.85);
}

.screen,
#amount-entry-screen,
#currency-screen,
#payment-qr-screen,
#receipt-screen,
.support-chat-container,
.security-attention-container {
    background: transparent !important;
    color: #1E293B;
}

/* ── Top Headers & Circular iOS Crystal Glass Controls ─────────────────── */
.screen-header,
.home-header,
.merchant-list-header,
.menu-more-header,
.settings-header,
.security-header,
.staff-header,
.wallet-header,
.loyalty-header,
.messenger-header,
.amount-entry-header,
.receipt-header,
.support-chat-header,
.payments-header {
    background: rgba(255, 255, 255, 0.38) !important;
    backdrop-filter: var(--blur-md);
    -webkit-backdrop-filter: var(--blur-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.85) !important;
}

.header-btn {
    width: 40px;
    height: 40px;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.52) !important;
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.92) !important;
    box-shadow: 0 4px 14px rgba(148, 163, 184, 0.18), inset 0 1px 0 #FFFFFF;
    color: #1E293B !important;
}

.header-btn:active {
    transform: scale(0.92);
    background: rgba(255, 255, 255, 0.82) !important;
}

.header-title,
.amount-entry-header-center .screen-title,
.receipt-title {
    font-weight: 700;
    letter-spacing: -0.2px;
    color: #0F172A !important;
}

.lang-btn {
    width: auto !important;
    border-radius: 9999px !important;
    padding: 6px 14px !important;
    background: rgba(255, 255, 255, 0.56) !important;
    border: 1px solid rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.lang-code {
    color: #0F172A !important;
}

/* ── Home Screen Crystal Glass Modules ─────────────────────────────────── */
.home-body {
    padding: 10px 16px 18px;
}

.merchant-profile {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    padding: 13px 14px !important;
    margin: 4px 0 14px !important;
    border-radius: 22px !important;
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.86) 0%, rgba(248, 250, 252, 0.68) 100%) !important;
    backdrop-filter: blur(28px) saturate(185%) !important;
    -webkit-backdrop-filter: blur(28px) saturate(185%) !important;
    border: 1px solid rgba(255, 255, 255, 0.96) !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.055), 0 1px 2px rgba(15, 23, 42, 0.035), inset 0 1px 0 rgba(255, 255, 255, 1) !important;
    transition: transform 0.16s cubic-bezier(0.25, 0.46, 0.45, 0.94), background 0.16s ease !important;
}

.merchant-profile:active {
    transform: scale(0.988);
    background: rgba(255, 255, 255, 0.82) !important;
}

.merchant-avatar {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    flex-shrink: 0 !important;
    border-radius: 50% !important;
    border: 2px solid #FFFFFF !important;
    background: linear-gradient(145deg, #FFFFFF 0%, #E9EFF6 100%) !important;
    color: #0F172A !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
    line-height: 1 !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(203, 213, 225, 0.55), inset 0 1px 2px rgba(255, 255, 255, 1) !important;
}

.merchant-avatar span {
    display: block;
    line-height: 1;
}

.merchant-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
}

.merchant-label {
    margin: 0 !important;
    font-size: 11.5px !important;
    font-weight: 500 !important;
    color: #64748B !important;
    letter-spacing: 0.01em !important;
    line-height: 1.25 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.merchant-name {
    margin: 0 !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    letter-spacing: -0.015em !important;
    line-height: 1.25 !important;
    color: #0F172A !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notification-banner {
    background: rgba(255, 255, 255, 0.42) !important;
    backdrop-filter: blur(30px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(30px) saturate(190%) !important;
    border: 1px solid rgba(255, 255, 255, 0.88) !important;
    border-left: 4px solid #0A84FF !important;
    border-radius: 22px !important;
    box-shadow: 0 10px 28px rgba(148, 163, 184, 0.16), inset 0 1px 1px rgba(255, 255, 255, 0.95) !important;
    padding: 14px 16px !important;
    margin-bottom: 14px !important;
    transition: var(--transition);
}

.notification-banner:active {
    transform: scale(0.985);
}

.notif-icon {
    background: linear-gradient(135deg, #059669, #0A84FF) !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 12px rgba(10, 132, 255, 0.25);
}

.notif-text strong {
    color: #0F172A !important;
}

.notif-text p {
    color: #475569 !important;
}

.action-buttons {
    gap: 10px !important;
    margin-bottom: 16px !important;
}

.action-btn {
    background: rgba(255, 255, 255, 0.42) !important;
    backdrop-filter: blur(30px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(30px) saturate(190%) !important;
    border: 1px solid rgba(255, 255, 255, 0.88) !important;
    border-radius: 24px;
    padding: 14px 6px 12px;
    box-shadow: 0 10px 28px rgba(148, 163, 184, 0.16), inset 0 1px 1px rgba(255, 255, 255, 0.95) !important;
    transition: transform 0.22s cubic-bezier(0.25, 0.8, 0.25, 1), background 0.22s;
}

.action-btn:active {
    transform: scale(0.93);
    background: rgba(255, 255, 255, 0.72) !important;
}

.action-btn span {
    font-size: 11px;
    font-weight: 600;
    color: #475569 !important;
    line-height: 1.25;
}

.account-summary-section {
    background: rgba(255, 255, 255, 0.42) !important;
    backdrop-filter: blur(30px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(30px) saturate(190%) !important;
    border: 1px solid rgba(255, 255, 255, 0.88) !important;
    border-radius: 26px !important;
    padding: 18px 20px !important;
    box-shadow: 0 10px 28px rgba(148, 163, 184, 0.16), inset 0 1px 1px rgba(255, 255, 255, 0.95) !important;
}

.summary-header h3 {
    color: #0F172A !important;
    font-weight: 700;
    font-size: 15px;
}

.visibility-toggle {
    color: #475569 !important;
    background: rgba(255, 255, 255, 0.55) !important;
    border: 1px solid rgba(255, 255, 255, 0.9) !important;
    border-radius: 50%;
    width: 34px;
    height: 34px;
}

.balance-amount {
    color: #059669 !important;
    text-shadow: none;
    letter-spacing: -0.5px;
}

.balance-currency {
    color: #64748B !important;
    font-weight: 600;
}

/* ── Floating Crystal Glass Bottom Dock ────────────────────────────────── */
.bottom-nav {
    margin: 0 14px max(12px, env(safe-area-inset-bottom)) !important;
    border-radius: 28px !important;
    background: rgba(255, 255, 255, 0.50) !important;
    backdrop-filter: blur(34px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(34px) saturate(200%) !important;
    border: 1px solid rgba(255, 255, 255, 0.92) !important;
    box-shadow: 0 12px 32px rgba(148, 163, 184, 0.22), inset 0 1px 1px #FFFFFF !important;
    padding: 8px 16px !important;
}

.nav-item {
    color: #64748B !important;
    font-weight: 600;
    transition: var(--transition);
}

.nav-item.active {
    color: #0284C7 !important;
    font-weight: 700;
}

.qr-btn {
    background: linear-gradient(135deg, #38BDF8, #0A84FF) !important;
    border-radius: 20px !important;
    border: 2px solid #FFFFFF !important;
    box-shadow: 0 8px 22px rgba(10, 132, 255, 0.30) !important;
    transition: var(--transition);
}

.qr-btn:active {
    transform: scale(0.92);
}

/* ── Crystal Glass Lists, Menu, Settings, Stock & Bank Cards ───────────── */
.menu-rich-item,
.settings-item,
.security-item,
.staff-item-card,
.loyalty-merchant-card,
.wallet-txn-item,
.payment-request-item,
.merchant-item,
.notif-setting-item,
.payment-source-card,
.combined-balance-card,
.receipt-card,
.pqr-merchant-card,
.language-item,
.lang-circle-item,
.consumer-badge,
.txn-item,
.stock-stat-box,
.stock-form-card,
.bank-form-card,
.stock-item-card,
.merchant-ops-card {
    background: rgba(255, 255, 255, 0.45) !important;
    backdrop-filter: blur(26px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(26px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.88) !important;
    border-radius: 20px !important;
    box-shadow: 0 8px 24px rgba(148, 163, 184, 0.14), inset 0 1px 0 #FFFFFF !important;
    color: #1E293B !important;
    transition: var(--transition);
}

.txn-item {
    padding: 12px 14px !important;
    margin-bottom: 8px;
}

.menu-rich-item:active,
.settings-item:active,
.security-item:active,
.loyalty-merchant-card:active,
.wallet-txn-item:active,
.payment-request-item:active,
.merchant-item:active,
.payment-source-card:active,
.language-item:active,
.lang-circle-item:active,
.txn-item:active,
.merchant-ops-card:active {
    background: rgba(255, 255, 255, 0.78) !important;
    transform: scale(0.985);
}

.language-item.selected,
.lang-circle-item.active {
    border-color: #0A84FF !important;
    background: rgba(224, 242, 254, 0.72) !important;
    box-shadow: 0 6px 20px rgba(10, 132, 255, 0.18), inset 0 1px 0 #FFFFFF !important;
}

/* Primary & Secondary Typography for Crystal Light Backdrop */
.menu-rich-title,
.settings-title,
.security-title,
.staff-name,
.loyalty-merchant-name,
.wallet-txn-name,
.pqr-name,
.pqr-amount,
.receipt-user-name,
.amount-entry-value,
.stock-stat-val,
.stock-item-main strong,
.change-pin-title,
.attention-title,
.pin-title,
.fast-signup-title,
.source-card-name,
.notif-setting-title,
.lang-circle-label,
.txn-name,
.req-name,
.req-amount-value,
.confirm-name,
.confirm-amount,
.sheet-value,
.menu-user-info h3,
.menu-item-label,
.merchant-ops-info strong,
.balance-amount-main,
.language-item .name,
.merchant-item .details strong {
    color: #0F172A !important;
}

.menu-rich-subtitle,
.settings-subtitle,
.security-subtitle,
.notif-setting-desc,
.staff-subtitle,
.loyalty-address,
.loyalty-branches,
.stock-stat-lbl,
.bank-field-lbl,
.public-radio-label,
.receipt-value,
.txn-status,
.txn-date-header,
.req-code,
.confirm-amount-label,
.confirm-source-label,
.source-balance,
.sheet-label,
.menu-version-row,
.menu-section-header,
.menu-text-link,
.change-pin-subtitle,
.pin-subtitle,
.splash-loading,
.pi-section-title,
.footer-text,
.currency-subtitle,
.currency-name,
.currency-circle-label,
.attention-body-text,
.staff-phone,
.pqr-location,
.pqr-uuid,
.pqr-instruction,
.payment-pref-desc,
.payment-pref-label,
.limit-label,
.merchant-item .details span {
    color: #64748B !important;
}

.stock-item-main > div:last-child {
    color: #475569 !important;
}

.settings-currency-badge,
.settings-lang-badge,
.loyalty-plans-link,
.payment-pref-hint,
.merchant-ops-info span,
.amount-entry-subtitle,
.pqr-tab.active,
.wallet-tab.active {
    color: #0284C7 !important;
}

.menu-icon-pill,
.lang-flag-circle,
.txn-icon {
    background: rgba(255, 255, 255, 0.72) !important;
    border: 1px solid rgba(255, 255, 255, 0.95);
    color: #0F172A !important;
}

.screen-indicator-pill,
.handle-bar {
    background: rgba(148, 163, 184, 0.45) !important;
}

/* ── iOS Light Frosted Circular Numpads ────────────────────────────────── */
.numpad-key,
.amount-entry-numpad .numpad-key {
    background: rgba(255, 255, 255, 0.52) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.92) !important;
    box-shadow: 0 6px 18px rgba(148, 163, 184, 0.16), inset 0 1px 0 #FFFFFF !important;
    color: #0F172A !important;
    font-weight: 500;
}

.numpad-key:active,
.amount-entry-numpad .numpad-key:active {
    background: rgba(255, 255, 255, 0.88) !important;
    transform: scale(0.94);
}

.numpad-key.empty,
.numpad-key.empty:active {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.pin-dot {
    border-color: #94A3B8 !important;
}

.pin-dot.filled {
    background: #0A84FF !important;
    border-color: #0A84FF !important;
    box-shadow: 0 0 10px rgba(10, 132, 255, 0.35);
}

/* ── Frosted Inputs, Search Bars & Pills ───────────────────────────────── */
.phone-input,
.country-select,
.search-input,
.menu-search-bar,
.menu-search-input {
    background: rgba(255, 255, 255, 0.55) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.92) !important;
    border-radius: 16px !important;
    color: #0F172A !important;
    box-shadow: 0 4px 12px rgba(148, 163, 184, 0.10), inset 0 1px 0 #FFFFFF;
}

.country-code {
    color: #0F172A !important;
}

.phone-input:focus,
.search-input:focus {
    border-color: #0A84FF !important;
    background: rgba(255, 255, 255, 0.85) !important;
}

.phone-input::placeholder,
.search-input::placeholder,
.menu-search-input::placeholder {
    color: #94A3B8 !important;
}

.txn-filter-btn,
.limit-opt-btn,
.amount-entry-currency-badge {
    background: rgba(255, 255, 255, 0.52) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.90) !important;
    border-radius: 9999px !important;
    color: #475569 !important;
}

.txn-filter-btn.active,
.limit-opt-btn.active {
    background: linear-gradient(135deg, #0A84FF, #38BDF8) !important;
    border-color: transparent !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 14px rgba(10, 132, 255, 0.28);
}

/* ── Crystal Buttons, Switches & Sliders ───────────────────────────────── */
.btn-primary {
    background: linear-gradient(135deg, #0A84FF, #38BDF8) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: 18px !important;
    color: #FFFFFF !important;
    box-shadow: 0 8px 22px rgba(10, 132, 255, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.btn-primary:disabled {
    background: rgba(203, 213, 225, 0.65) !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
    color: #64748B !important;
    box-shadow: none !important;
}

.btn-outline {
    background: rgba(255, 255, 255, 0.55) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1.5px solid #0A84FF !important;
    border-radius: 18px !important;
    color: #0A84FF !important;
}

.amount-entry-proceed-btn.active {
    background: linear-gradient(135deg, #0A84FF, #0284C7) !important;
    color: #FFFFFF !important;
    border-radius: 18px !important;
    box-shadow: 0 8px 22px rgba(10, 132, 255, 0.28);
}

.fab-btn {
    border-radius: 20px !important;
    background: linear-gradient(135deg, #0A84FF, #38BDF8) !important;
    border: 2px solid #FFFFFF !important;
    box-shadow: 0 8px 24px rgba(10, 132, 255, 0.30) !important;
}

.toggle-switch.on {
    background: #10B981 !important;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.toggle-switch.off {
    background: rgba(148, 163, 184, 0.35) !important;
}

.swipe-slider {
    background: rgba(255, 255, 255, 0.55) !important;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.9) !important;
    border-radius: 9999px !important;
}

.swipe-thumb {
    background: linear-gradient(135deg, #0A84FF, #38BDF8) !important;
    box-shadow: 0 4px 16px rgba(10, 132, 255, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

/* ── Currency Selection Circles ────────────────────────────────────────── */
.currency-icon,
.currency-big-circle {
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 2px solid #FFFFFF !important;
    box-shadow: 0 8px 22px rgba(148, 163, 184, 0.22);
}

.currency-circle-item.active .currency-big-circle,
.currency-option.selected .currency-icon {
    box-shadow: 0 0 0 3px #0A84FF, 0 8px 22px rgba(10, 132, 255, 0.28) !important;
}

/* ── Frosted Crystal Modals, Bottom Sheets & Toasts ────────────────────── */
.modal-overlay {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(148, 163, 184, 0.35) !important;
}

.modal-content,
.qr-modal,
.bottom-sheet {
    background: rgba(248, 250, 252, 0.82) !important;
    backdrop-filter: blur(36px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(36px) saturate(200%) !important;
    border: 1px solid rgba(255, 255, 255, 0.95) !important;
    border-radius: 28px !important;
    color: #0F172A !important;
    box-shadow: 0 20px 50px rgba(100, 116, 139, 0.25), inset 0 1px 0 #FFFFFF !important;
}

.bottom-sheet {
    border-radius: 28px 28px 0 0 !important;
    border-bottom: none !important;
}

.toast {
    background: rgba(255, 255, 255, 0.86) !important;
    backdrop-filter: var(--blur-md);
    -webkit-backdrop-filter: var(--blur-md);
    border: 1px solid #FFFFFF !important;
    color: #0F172A !important;
    border-radius: 9999px !important;
    box-shadow: 0 12px 30px rgba(100, 116, 139, 0.22) !important;
}

/* ── Local SVG Icons & Stock/Bank Cards ────────────────────────────────── */
.ios-app-svg-sm {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    display: block;
}

.ios-app-action-svg {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    box-shadow: 0 8px 18px rgba(148, 163, 184, 0.28);
}

.ios-app-nav-svg {
    width: 24px;
    height: 24px;
    border-radius: 8px;
}

.merchant-ops-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

.merchant-ops-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    cursor: pointer;
}

.merchant-ops-svg {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    flex-shrink: 0;
}

.merchant-ops-info {
    min-width: 0;
    flex: 1;
}

.merchant-ops-info strong {
    display: block;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
}

.merchant-ops-info span {
    display: block;
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.stock-screen-body {
    flex: 1;
    overflow-y: auto;
    padding: 8px 16px 28px;
    display: flex;
    flex-direction: column;
}

.ios-network-pill-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 16px;
    background: rgba(224, 242, 254, 0.65);
    border: 1px solid rgba(186, 230, 253, 0.9);
    font-size: 11.5px;
    color: #0F172A;
    margin-bottom: 12px;
}

.stock-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.stock-stat-box {
    padding: 10px 8px;
    text-align: center;
}

.stock-stat-val {
    display: block;
    font-size: 18px;
    font-weight: 700;
}

.stock-stat-lbl {
    font-size: 10.5px;
}

.stock-form-card,
.bank-form-card {
    padding: 16px;
    margin-bottom: 14px;
}

.stock-items-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stock-item-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
}

.stock-item-main {
    flex: 1;
    min-width: 0;
    cursor: pointer;
}

.stock-qty-pill {
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 9999px;
}

.stock-qty-pill.ok {
    background: #DCFCE7;
    color: #15803D;
}

.stock-qty-pill.low {
    background: #FEF3C7;
    color: #B45309;
}

.stock-qty-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.stock-step-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.72);
    color: #0F172A;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(148, 163, 184, 0.18);
}

.stock-step-btn.plus {
    background: #0A84FF;
    border-color: #0A84FF;
    color: #FFFFFF;
}

.bank-notice-card {
    background: rgba(224, 242, 254, 0.72);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(186, 230, 253, 0.95);
    border-radius: 20px;
    padding: 14px 16px;
    margin-bottom: 14px;
}

.bank-field-lbl {
    display: block;
    font-size: 11.5px;
    font-weight: 600;
    margin-bottom: 5px;
}

.legal-screen-wrapper,
.support-welcome-container {
    background: rgba(248, 250, 252, 0.90) !important;
    backdrop-filter: var(--blur-lg);
    -webkit-backdrop-filter: var(--blur-lg);
}

.legal-header {
    background: rgba(255, 255, 255, 0.65) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.9) !important;
}

.legal-item-row {
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 18px !important;
    padding: 14px 16px !important;
    border-bottom: none !important;
    box-shadow: 0 4px 14px rgba(148, 163, 184, 0.12);
}

/* ── Bottom Dock Center Menu Button & Consumer/Merchant Role Pills ─────── */
.nav-menu-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin-top: -18px !important;
    padding: 0 12px 2px !important;
}

.nav-center-label {
    font-size: 11.5px;
    font-weight: 700;
    color: #0F172A !important;
    margin-top: 2px;
    letter-spacing: 0.1px;
}

.ios-role-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.ios-role-badge.consumer {
    background: rgba(224, 242, 254, 0.85);
    color: #0284C7;
    border: 1px solid rgba(56, 189, 248, 0.45);
}

.ios-role-badge.merchant {
    background: rgba(209, 250, 229, 0.88);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.45);
}

.ios-role-upgrade-btn {
    padding: 8px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(10, 132, 255, 0.35);
    color: #0284C7;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(148, 163, 184, 0.16), inset 0 1px 0 #FFFFFF;
    white-space: nowrap;
    flex-shrink: 0;
}

.ios-role-upgrade-btn:active {
    transform: scale(0.95);
    background: rgba(224, 242, 254, 0.9);
}

.shop-country-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0 12px;
    scrollbar-width: none;
}

.shop-country-pill {
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.56);
    border: 1px solid rgba(255, 255, 255, 0.9);
    color: #475569;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.shop-country-pill.active {
    background: rgba(10, 132, 255, 0.14);
    border-color: rgba(10, 132, 255, 0.5);
    color: #0284C7;
    font-weight: 700;
}

.role-status-banner {
    background: rgba(255, 255, 255, 0.54);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.92);
    border-radius: 22px;
    padding: 16px;
    margin-bottom: 14px;
    box-shadow: 0 8px 24px rgba(148, 163, 184, 0.15), inset 0 1px 0 #FFFFFF;
}

/* ── Initial Screen Register Button, Country Dropdown & Legible Badge ──── */
.register-entry-btn {
    margin-top: 12px !important;
    background: rgba(255, 255, 255, 0.65) !important;
    border: 1.5px solid rgba(10, 132, 255, 0.42) !important;
    color: #0284C7 !important;
    font-weight: 700 !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 6px 18px rgba(148, 163, 184, 0.15), inset 0 1px 0 #FFFFFF !important;
}

.register-entry-btn:active {
    background: rgba(224, 242, 254, 0.85) !important;
    transform: scale(0.98);
}

.country-select-native {
    background: transparent;
    border: none;
    outline: none;
    color: #0F172A;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    padding: 2px 0;
    width: 100%;
}

.consumer-badge .badge-text strong {
    color: #0F172A !important;
}

.consumer-badge .badge-text span {
    color: #64748B !important;
}

.reg-pin-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 4px 0 18px;
}

.reg-pin-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(148, 163, 184, 0.25);
    border: 1.5px solid rgba(148, 163, 184, 0.50);
    transition: all 0.16s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reg-pin-dot.filled {
    background: #0A84FF;
    border-color: #0A84FF;
    box-shadow: 0 0 10px rgba(10, 132, 255, 0.42);
    transform: scale(1.15);
}

/* ── Registration 6-Digit PIN Button Keypad (Apple Crystal Glass v1.0.124) ─ */
#register-screen .screen-header {
    display: grid !important;
    grid-template-columns: 40px 1fr 40px !important;
    align-items: center !important;
}

#register-screen .header-title {
    text-align: center !important;
    margin: 0 !important;
}

.reg-screen-body {
    padding: 8px 18px 20px !important;
    overflow-y: auto;
    justify-content: flex-start !important;
}

.reg-logo-compact {
    margin: 2px 0 10px !important;
}

.reg-logo-img {
    width: 58px !important;
    height: 58px !important;
}

.reg-form-card {
    width: 100%;
    padding: 15px 16px 16px !important;
    margin-bottom: 10px !important;
}

.reg-intro-text {
    font-size: 12px;
    line-height: 1.4;
    color: #475569;
    margin: 0 0 12px;
    text-align: center;
}

.reg-field-label {
    display: block;
    margin-bottom: 6px;
    font-size: 10.5px !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em !important;
    color: #64748B !important;
}

.reg-phone-row {
    margin-bottom: 14px !important;
}

.reg-pin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.reg-pin-meta-controls {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.reg-pin-counter {
    font-size: 11px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #64748B;
    background: rgba(241, 245, 249, 0.85);
    border: 1px solid rgba(203, 213, 225, 0.7);
    padding: 2px 8px;
    border-radius: 999px;
    transition: all 0.16s ease;
}

.reg-pin-counter.complete {
    color: #059669;
    background: rgba(209, 250, 229, 0.85);
    border-color: rgba(16, 185, 129, 0.4);
}

.reg-pin-eye-btn {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 999px;
    border: 1px solid rgba(203, 213, 225, 0.8);
    background: rgba(255, 255, 255, 0.82);
    color: #475569;
    font-size: 11px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s ease;
}

.reg-pin-eye-btn.active {
    background: rgba(224, 242, 254, 0.92);
    border-color: rgba(10, 132, 255, 0.45);
    color: #0284C7;
}

.reg-pin-slots {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}

.reg-pin-slot {
    height: 44px;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.84);
    border: 1.5px solid rgba(203, 213, 225, 0.78);
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03), 0 2px 6px rgba(15, 23, 42, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.reg-pin-slot.active {
    border-color: #0A84FF;
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.13);
}

.reg-pin-slot.filled {
    border-color: rgba(10, 132, 255, 0.42);
    background: rgba(255, 255, 255, 0.96);
}

.reg-pin-slot.complete {
    border-color: rgba(16, 185, 129, 0.55);
    background: rgba(236, 253, 245, 0.75);
}

.reg-pin-digit {
    font-size: 18px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #0F172A;
    line-height: 1;
}

.reg-numpad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    max-width: 286px;
    margin: 0 auto 14px;
}

.reg-numpad-key {
    appearance: none;
    -webkit-appearance: none;
    height: 46px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.98);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 250, 252, 0.80) 100%);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06), 0 1px 1px rgba(15, 23, 42, 0.04), inset 0 1px 0 #FFFFFF;
    color: #0F172A;
    font-size: 20px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.1s ease, background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.reg-numpad-key:active:not(:disabled) {
    transform: scale(0.94);
    background: rgba(224, 242, 254, 0.95);
    border-color: rgba(10, 132, 255, 0.42);
    color: #0A84FF;
    box-shadow: 0 2px 6px rgba(10, 132, 255, 0.14);
}

.reg-numpad-key.action-key {
    background: rgba(241, 245, 249, 0.82);
    border-color: rgba(226, 232, 240, 0.95);
    color: #475569;
    font-size: 13px;
    font-weight: 600;
}

.reg-numpad-key:disabled {
    opacity: 0.42;
    cursor: default;
}

.reg-signin-link {
    color: #0284C7;
    font-weight: 600;
    font-size: 13px;
    margin-top: 2px;
}

@media (max-height: 700px) {
    .reg-logo-img { width: 48px !important; height: 48px !important; }
    .reg-pin-slot { height: 38px; border-radius: 11px; }
    .reg-numpad { gap: 6px; margin-bottom: 12px; }
    .reg-numpad-key { height: 42px; font-size: 18px; border-radius: 12px; }
}

/* ── Bank-Style Bill Payment Center (Crystal Glass Light) ──────────────── */
.bill-cat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.bill-cat-card {
    background: rgba(255, 255, 255, 0.50);
    backdrop-filter: blur(26px) saturate(180%);
    -webkit-backdrop-filter: blur(26px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.90);
    border-radius: 22px;
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(148, 163, 184, 0.14), inset 0 1px 0 #FFFFFF;
    transition: transform 0.16s ease, background 0.16s ease;
}

.bill-cat-card:active {
    transform: scale(0.97);
    background: rgba(255, 255, 255, 0.80);
}

.bill-cat-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 2px;
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 12px rgba(148, 163, 184, 0.15);
}

.bill-cat-title {
    font-size: 14.5px;
    font-weight: 700;
    color: #0F172A;
}

.bill-cat-sub {
    font-size: 11px;
    color: #64748B;
    line-height: 1.3;
}

.bill-summary-card,
.bill-receipt-card {
    background: rgba(255, 255, 255, 0.58);
    backdrop-filter: blur(26px) saturate(180%);
    -webkit-backdrop-filter: blur(26px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.92);
    border-radius: 24px;
    padding: 18px 16px;
    box-shadow: 0 10px 28px rgba(148, 163, 184, 0.16), inset 0 1px 0 #FFFFFF;
}

.bill-kv-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    font-size: 12.5px;
    color: #64748B;
}

.bill-kv-row:last-child {
    border-bottom: none;
}

.bill-kv-row strong {
    color: #0F172A;
    text-align: right;
}

/* ── Home Search Bar (Voice-to-Text + Camera Image Search) ─────────────── */
.home-search-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px 8px 14px;
    margin-bottom: 14px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.56);
    backdrop-filter: blur(28px) saturate(190%);
    -webkit-backdrop-filter: blur(28px) saturate(190%);
    border: 1px solid rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 26px rgba(148, 163, 184, 0.16), inset 0 1px 1px #FFFFFF;
}

.home-search-icon {
    font-size: 16px;
    color: #64748B;
    cursor: pointer;
    flex-shrink: 0;
}

.home-search-input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    outline: none;
    color: #0F172A;
    font-size: 14px;
    font-weight: 500;
    padding: 6px 2px;
}

.home-search-input::placeholder {
    color: #64748B;
}

.home-search-tool-btn {
    width: 38px;
    height: 38px;
    border-radius: 13px;
    border: 1px solid rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(148, 163, 184, 0.16), inset 0 1px 0 #FFFFFF;
    transition: transform 0.15s ease;
}

.home-search-tool-btn:active {
    transform: scale(0.92);
}

.home-search-tool-btn img {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: block;
}

.ios-search-modal {
    background: rgba(248, 250, 252, 0.96) !important;
    backdrop-filter: blur(32px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(32px) saturate(190%) !important;
    border: 1px solid #FFFFFF !important;
    border-radius: 28px !important;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22) !important;
    width: 92% !important;
    max-width: 390px !important;
    padding: 20px !important;
    text-align: center;
}

.voice-pulse-wrap {
    display: flex;
    justify-content: center;
    padding: 10px 0;
    cursor: pointer;
}

.voice-mic-circle {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: rgba(56, 189, 248, 0.16);
    border: 2px solid rgba(10, 132, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.voice-mic-circle.listening {
    animation: voicePulseRing 1.4s ease-in-out infinite;
}

@keyframes voicePulseRing {
    0% { box-shadow: 0 0 0 0 rgba(10, 132, 255, 0.45); transform: scale(1); }
    70% { box-shadow: 0 0 0 18px rgba(10, 132, 255, 0); transform: scale(1.06); }
    100% { box-shadow: 0 0 0 0 rgba(10, 132, 255, 0); transform: scale(1); }
}

.visual-match-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.62);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border: 1px solid rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 22px rgba(148, 163, 184, 0.16), inset 0 1px 0 #FFFFFF;
}

.visual-match-thumb {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    object-fit: cover;
    border: 2px solid #FFFFFF;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.14);
    flex-shrink: 0;
}

.product-result-card {
    background: rgba(255, 255, 255, 0.56);
    backdrop-filter: blur(26px) saturate(180%);
    -webkit-backdrop-filter: blur(26px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.92);
    border-radius: 22px;
    padding: 14px;
    margin-bottom: 12px;
    box-shadow: 0 8px 24px rgba(148, 163, 184, 0.15), inset 0 1px 0 #FFFFFF;
}

.product-result-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.product-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: rgba(241, 245, 249, 0.9);
    border: 1px solid #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(148, 163, 184, 0.16);
}

.product-result-name {
    font-size: 14.5px;
    font-weight: 700;
    color: #0F172A;
    line-height: 1.3;
}

.product-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 5px;
}

.product-price-tag {
    font-size: 15.5px;
    font-weight: 800;
    color: #059669;
}

.product-meta-grid {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(241, 245, 249, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.85);
    margin-bottom: 10px;
}

.product-meta-line {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 12px;
    color: #475569;
    line-height: 1.4;
}

.product-result-actions {
    display: flex;
    gap: 8px;
}

/* ── 2-Part Summary Cashback Card (Summary + Nearly Expired) & Challenges ─ */
.cb-home-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.cb-home-box {
    border-radius: 18px;
    padding: 12px 12px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.92);
    box-shadow: 0 6px 18px rgba(148, 163, 184, 0.14), inset 0 1px 0 #FFFFFF;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cb-home-box:active {
    transform: scale(0.97);
}

.cb-home-box.summary {
    background: rgba(236, 253, 245, 0.72);
    border-color: rgba(16, 185, 129, 0.30);
}

.cb-home-box.expiring {
    background: rgba(255, 247, 237, 0.78);
    border-color: rgba(245, 158, 11, 0.38);
}

.cb-home-box.active-box {
    box-shadow: 0 0 0 2px #0A84FF, 0 8px 20px rgba(10, 132, 255, 0.16);
}

.cb-home-box-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    margin-bottom: 6px;
}

.cb-home-pill {
    font-size: 10.5px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 999px;
}

.cb-home-pill.summary {
    background: rgba(16, 185, 129, 0.16);
    color: #047857;
}

.cb-home-pill.expiring {
    background: rgba(245, 158, 11, 0.18);
    color: #B45309;
}

.cb-home-count {
    font-size: 10.5px;
    font-weight: 700;
    color: #475569;
}

.cb-home-count.urgent {
    color: #D97706;
}

.cb-home-amount {
    font-size: 20px;
    font-weight: 800;
    color: #059669;
    letter-spacing: -0.4px;
    margin-bottom: 4px;
}

.cb-home-amount.expiring {
    color: #D97706;
}

.cb-home-amount small {
    font-size: 11px;
    font-weight: 700;
    color: #64748B;
}

.cb-home-sub {
    font-size: 10.5px;
    color: #475569;
    line-height: 1.3;
    font-weight: 500;
}

.cb-home-challenge-cta {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(224, 242, 254, 0.65);
    border: 1px solid rgba(56, 189, 248, 0.35);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 11.5px;
    color: #0F172A;
    cursor: pointer;
}

.cb-home-challenge-cta strong {
    color: #0284C7;
    white-space: nowrap;
}

.cb-tabs-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 14px;
}

.cb-tab-btn {
    padding: 9px 6px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.56);
    color: #475569;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(148, 163, 184, 0.12);
}

.cb-tab-btn.active {
    background: #0A84FF;
    color: #FFFFFF;
    border-color: #0A84FF;
    box-shadow: 0 6px 16px rgba(10, 132, 255, 0.25);
}

.cb-challenge-card,
.cb-minigame-card,
.cb-voucher-card {
    background: rgba(255, 255, 255, 0.56);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.92);
    border-radius: 20px;
    padding: 14px;
    box-shadow: 0 8px 22px rgba(148, 163, 184, 0.14), inset 0 1px 0 #FFFFFF;
}

.cb-voucher-card.urgent {
    border-color: rgba(245, 158, 11, 0.45);
    background: rgba(255, 251, 235, 0.72);
}

.cb-daily-strip {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.cb-day-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px 2px;
    border-radius: 12px;
    background: rgba(241, 245, 249, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.9);
    font-size: 10px;
    color: #64748B;
}

.cb-day-box strong {
    font-size: 10px;
    color: #0F172A;
    margin-top: 2px;
}

.cb-day-box.done {
    background: rgba(209, 250, 229, 0.88);
    color: #047857;
    border-color: rgba(16, 185, 129, 0.35);
}

.cb-day-box.done strong {
    color: #059669;
    font-size: 12px;
}

.cb-day-box.today {
    background: rgba(224, 242, 254, 0.95);
    border: 1.5px solid #0A84FF;
    color: #0284C7;
}

.cb-day-box.vip {
    background: rgba(254, 243, 199, 0.85);
    border-color: rgba(245, 158, 11, 0.4);
}

.cb-game-wheel {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(224, 242, 254, 0.8);
    border: 1px solid #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.cb-game-wheel.spinning {
    animation: spinWheel 0.55s linear infinite;
}

@keyframes spinWheel {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cb-source-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.cb-source-tile {
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.92);
    border-radius: 16px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #475569;
}

.cb-source-tile strong {
    color: #059669;
    font-size: 14px;
}

/* ── Consumer Point Pill & Hero Card ───────────────────────────────────── */
.ios-role-badge.points {
    background: rgba(254, 243, 199, 0.90);
    color: #B45309;
    border: 1px solid rgba(245, 158, 11, 0.45);
    box-shadow: 0 3px 10px rgba(245, 158, 11, 0.14);
}

.cp-hero-card {
    background: rgba(255, 251, 235, 0.72);
    backdrop-filter: blur(26px) saturate(185%);
    -webkit-backdrop-filter: blur(26px) saturate(185%);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 22px;
    padding: 16px;
    box-shadow: 0 10px 26px rgba(148, 163, 184, 0.15), inset 0 1px 0 #FFFFFF;
}

/* ── Apple-Precision Profile Consumer Point Widget (v1.0.123) ──────────── */
.cp-profile-pill {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-left: auto;
    padding: 6px 9px 6px 6px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 253, 245, 0.96) 0%, rgba(254, 245, 214, 0.78) 100%);
    border: 1px solid rgba(217, 119, 6, 0.22);
    box-shadow: 0 3px 10px rgba(180, 83, 9, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.98);
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: transform 0.14s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.14s ease, border-color 0.14s ease;
}

.cp-profile-pill:hover {
    border-color: rgba(217, 119, 6, 0.36);
    box-shadow: 0 5px 14px rgba(180, 83, 9, 0.13), inset 0 1px 0 rgba(255, 255, 255, 1);
}

.cp-profile-pill:active {
    transform: scale(0.965);
    box-shadow: 0 1px 5px rgba(180, 83, 9, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.cp-pill-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #FCD34D 0%, #F59E0B 55%, #D97706 100%);
    box-shadow: 0 2px 7px rgba(217, 119, 6, 0.30), inset 0 1px 1px rgba(255, 255, 255, 0.65);
}

.cp-pill-meta {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1px;
    min-width: 0;
}

.cp-pill-label {
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.015em;
    color: #A16207;
    line-height: 1.15;
    white-space: nowrap;
}

.cp-pill-value {
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
    line-height: 1.15;
    white-space: nowrap;
}

.cp-pill-value strong {
    font-size: 14.5px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    color: #78350F;
}

.cp-pill-value small {
    font-size: 10px;
    font-weight: 600;
    color: #B45309;
    letter-spacing: 0.01em;
}

.cp-pill-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #B45309;
    opacity: 0.62;
    margin-left: -2px;
    flex-shrink: 0;
}

.cp-profile-pill.merchant {
    background: linear-gradient(135deg, rgba(236, 253, 245, 0.96) 0%, rgba(209, 250, 229, 0.80) 100%);
    border-color: rgba(16, 185, 129, 0.28);
    box-shadow: 0 3px 10px rgba(5, 150, 105, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

.cp-profile-pill.merchant .cp-pill-icon {
    background: linear-gradient(145deg, #34D399 0%, #10B981 55%, #059669 100%);
    box-shadow: 0 2px 7px rgba(5, 150, 105, 0.28), inset 0 1px 1px rgba(255, 255, 255, 0.65);
}

.cp-profile-pill.merchant .cp-pill-label,
.cp-profile-pill.merchant .cp-pill-value small,
.cp-profile-pill.merchant .cp-pill-chevron {
    color: #047857;
}

.cp-profile-pill.merchant .cp-pill-value strong {
    color: #065F46;
}

@media (max-width: 380px) {
    .merchant-profile {
        gap: 10px !important;
        padding: 11px 12px !important;
    }
    .merchant-avatar {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        font-size: 16px !important;
    }
    .merchant-label {
        font-size: 11px !important;
    }
    .merchant-name {
        font-size: 15.5px !important;
    }
    .cp-profile-pill {
        gap: 6px;
        padding: 5px 7px 5px 5px;
        border-radius: 14px;
    }
    .cp-pill-icon {
        width: 24px;
        height: 24px;
    }
    .cp-pill-label {
        font-size: 9px;
    }
    .cp-pill-value strong {
        font-size: 13.5px;
    }
}


/* ============================================================
   Shop Near Me - Map & List View (v1.0.125)
   ============================================================ */

/* --- Toolbar --- */
.snm-toolbar {
    padding: 12px 16px 8px;
    background: transparent;
}
.snm-search-input {
    width: 100%;
    padding: 10px 16px;
    border: none;
    border-radius: 12px;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-size: 14px;
    color: #1a1d26;
    outline: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s;
}
.snm-search-input:focus {
    box-shadow: 0 2px 12px rgba(74,144,226,0.18);
}
.snm-search-input::placeholder {
    color: #9ca3af;
}

/* --- Controls Row --- */
.snm-controls-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 16px;
    gap: 8px;
}

/* --- Country Pills --- */
.snm-country-pills {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    flex: 1;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 2px 0;
}
.snm-country-pills::-webkit-scrollbar { display: none; }

.snm-country-pill {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    border: 1.5px solid rgba(74,144,226,0.2);
    background: rgba(255,255,255,0.5);
    color: #64748b;
    transition: all 0.2s;
    user-select: none;
}
.snm-country-pill.active {
    background: linear-gradient(135deg, #4a90e2, #357abd);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(74,144,226,0.3);
}

/* --- View Toggle --- */
.snm-view-toggle {
    display: flex;
    background: rgba(255,255,255,0.5);
    border-radius: 10px;
    overflow: hidden;
    border: 1.5px solid rgba(74,144,226,0.15);
    flex-shrink: 0;
}
.snm-view-btn {
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    color: #64748b;
    background: transparent;
    border: none;
    transition: all 0.2s;
    user-select: none;
}
.snm-view-btn.active {
    background: linear-gradient(135deg, #4a90e2, #357abd);
    color: #fff;
}

/* --- Location Row --- */
.snm-loc-row {
    display: flex;
    align-items: center;
    padding: 4px 16px 8px;
    gap: 8px;
}
.snm-loc-text {
    flex: 1;
    font-size: 12px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.snm-recenter-btn {
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    background: rgba(74,144,226,0.1);
    color: #4a90e2;
    border: 1px solid rgba(74,144,226,0.2);
    white-space: nowrap;
    transition: all 0.2s;
}
.snm-recenter-btn:active {
    background: rgba(74,144,226,0.2);
}

/* --- Map Container --- */
.snm-map-box {
    position: relative;
    width: calc(100% - 32px);
    margin: 0 16px;
    height: 55vh;
    min-height: 280px;
    max-height: 500px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    background: #e8ecf1;
}
.snm-map-box .leaflet-container {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    font-family: 'Inter', -apple-system, sans-serif;
}

/* --- List Container --- */
.snm-list-box {
    padding: 8px 16px 100px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* --- Merchant Card --- */
.snm-merchant-card {
    background: rgba(255,255,255,0.65);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 10px;
    border: 1.5px solid rgba(255,255,255,0.4);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}
.snm-merchant-card:active {
    transform: scale(0.98);
    box-shadow: 0 1px 6px rgba(0,0,0,0.08);
}

.snm-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 6px;
}
.snm-card-name {
    font-size: 15px;
    font-weight: 600;
    color: #1a1d26;
    line-height: 1.3;
}
.snm-card-flag {
    font-size: 20px;
    flex-shrink: 0;
    margin-left: 8px;
}
.snm-card-addr {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 8px;
    line-height: 1.4;
}
.snm-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}
.snm-card-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 500;
    gap: 4px;
}
.snm-badge-rating {
    background: rgba(245,158,11,0.12);
    color: #d97706;
}
.snm-badge-discount {
    background: rgba(16,185,129,0.12);
    color: #059669;
}
.snm-badge-category {
    background: rgba(74,144,226,0.1);
    color: #4a90e2;
}
.snm-card-bank {
    font-size: 11px;
    color: #94a3b8;
    padding-top: 6px;
    border-top: 1px solid rgba(0,0,0,0.04);
}
.snm-card-stock {
    font-size: 11px;
    color: #64748b;
    margin-top: 4px;
}
.snm-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px solid rgba(0,0,0,0.04);
}
.snm-card-dist {
    font-size: 12px;
    font-weight: 500;
    color: #4a90e2;
}

/* --- Detail Screen --- */
.snm-detail-back {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #4a90e2;
    cursor: pointer;
    background: none;
    border: none;
}
.snm-detail-map-box {
    width: calc(100% - 32px);
    margin: 8px 16px;
    height: 180px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    background: #e8ecf1;
}
.snm-detail-map-box .leaflet-container {
    width: 100%;
    height: 100%;
    border-radius: 14px;
}
.snm-detail-info {
    padding: 12px 16px 100px;
}
.snm-detail-name {
    font-size: 20px;
    font-weight: 700;
    color: #1a1d26;
    margin-bottom: 4px;
}
.snm-detail-addr {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 12px;
}
.snm-detail-info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    font-size: 13px;
}
.snm-detail-info-row .label {
    color: #94a3b8;
}
.snm-detail-info-row .value {
    color: #1a1d26;
    font-weight: 500;
    text-align: right;
}
.snm-detail-stock-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1d26;
    margin: 16px 0 8px;
}
.snm-detail-stock-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(255,255,255,0.5);
    border-radius: 10px;
    margin-bottom: 6px;
    font-size: 13px;
}
.snm-detail-stock-name {
    color: #1a1d26;
    font-weight: 500;
}
.snm-detail-stock-info {
    text-align: right;
    color: #64748b;
    font-size: 12px;
}

/* --- User Location Marker --- */
.snm-user-marker {
    position: relative;
    width: 20px;
    height: 20px;
}
.snm-user-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: #4a90e2;
    border-radius: 50%;
    border: 2.5px solid #fff;
    box-shadow: 0 1px 4px rgba(74,144,226,0.4);
    z-index: 2;
}
.snm-user-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background: rgba(74,144,226,0.2);
    border-radius: 50%;
    animation: snm-pulse 2s ease-out infinite;
    z-index: 1;
}
@keyframes snm-pulse {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(2); opacity: 0; }
}

/* --- Empty State --- */
.snm-empty {
    text-align: center;
    padding: 40px 20px;
    color: #94a3b8;
    font-size: 14px;
}
.snm-empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
    display: block;
}

/* --- Leaflet Popup Overrides --- */
.leaflet-popup-content-wrapper {
    border-radius: 12px !important;
    font-family: 'Inter', -apple-system, sans-serif !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12) !important;
}
.leaflet-popup-content {
    margin: 10px 14px !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
}
.snm-popup-name {
    font-weight: 600;
    color: #1a1d26;
    font-size: 14px;
    margin-bottom: 4px;
}
.snm-popup-addr {
    color: #64748b;
    font-size: 12px;
    margin-bottom: 6px;
}
.snm-popup-btn {
    display: inline-block;
    padding: 5px 14px;
    background: linear-gradient(135deg, #4a90e2, #357abd);
    color: #fff;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: opacity 0.2s;
}
.snm-popup-btn:active {
    opacity: 0.8;
}

/* --- Responsive --- */
@media (max-width: 360px) {
    .snm-map-box {
        height: 45vh;
        min-height: 220px;
    }
    .snm-card-name {
        font-size: 14px;
    }
    .snm-country-pill {
        font-size: 11px;
        padding: 4px 10px;
    }
}
