/* ==========================================================
   ONE VOICE - Modern Mobile-First Design System
   Exact visual implementation matching reference specifications
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --primary-green: #10b981;
    --primary-green-dark: #059669;
    --primary-blue: #2563eb;
    --primary-blue-dark: #1d4ed8;
    --primary-blue-light: #3b82f6;
    --bg-page: #f8fafc;
    --bg-surface: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border-light: #e2e8f0;
    --border-subtle: #f1f5f9;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 28px rgba(0, 0, 0, 0.08);
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-pill: 9999px;
    --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    min-height: 100vh;
    font-family: var(--font-main);
    color: var(--text-primary);
    background-color: #0b1329;
    line-height: 1.5;
    overflow-x: hidden;
}

/* Centered Mobile Shell for Desktop & Native on Mobile */
.app-shell {
    width: 100%;
    max-width: 440px;
    min-height: 100vh;
    margin: 0 auto;
    background: #ffffff;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

@media (max-width: 500px) {
    html, body {
        background-color: #ffffff;
    }
    .app-shell {
        max-width: 100%;
        box-shadow: none;
        border-radius: 0;
    }
}

/* ==========================================================
   Header & App Branding
   ========================================================== */
.app-top-header {
    width: 100%;
    padding: 10px 16px;
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #006b38;
    color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 16px rgba(0, 107, 56, 0.22);
}

.header-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
    transition: transform 0.15s ease, background 0.15s ease;
    flex-shrink: 0;
    padding: 0;
}
.header-icon-btn:hover {
    background: #f1f5f9;
}
.header-icon-btn:active {
    transform: scale(0.92);
}
.header-icon-btn svg {
    fill: #006b38;
}

.header-center-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
}

.header-center-brand .brand-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    line-height: 1.1;
}

.header-center-brand .brand-one {
    color: #ffffff;
    font-weight: 900;
    font-size: 1.45rem;
    letter-spacing: -0.5px;
}

.header-center-brand .brand-voice {
    color: #76c827;
    font-weight: 900;
    font-size: 1.45rem;
    letter-spacing: -0.5px;
}

.header-center-brand .brand-sub-title {
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    opacity: 0.95;
    margin-top: 1px;
}

.header-mins-badge {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.2px;
    white-space: nowrap;
    padding: 4px 6px;
    border-radius: 8px;
}

/* Floating Popover Menu matching reference image */
.popover-menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1040;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.popover-menu-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.floating-popover-menu {
    position: absolute;
    top: 60px;
    left: 12px;
    width: 205px;
    background: #ffffff;
    border-radius: 20px;
    padding: 8px 6px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22), 0 6px 14px rgba(0, 0, 0, 0.1);
    z-index: 1050;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px) scale(0.96);
    transform-origin: top left;
    transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.floating-popover-menu.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.popover-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.15s ease;
    color: #111827;
    font-weight: 700;
    font-size: 0.92rem;
    margin-bottom: 3px;
    user-select: none;
}

.popover-menu-item:last-child {
    margin-bottom: 0;
}

.popover-menu-item:hover {
    background: #f1f5f9;
}

.popover-menu-item.active {
    background: #e8f5e9;
    color: #007a3d;
}

.popover-menu-item .popover-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.popover-menu-item .popover-item-text {
    flex: 1;
}

.header-right-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-install-btn {
    background: #ecfdf5;
    color: var(--primary-green-dark);
    border: 1px solid #a7f3d0;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.header-install-btn:hover {
    background: var(--primary-green);
    color: #ffffff;
}

.brand-logo-text {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 4px;
    line-height: 1;
}

.brand-one {
    color: var(--primary-green);
}

.brand-voice {
    color: var(--primary-blue);
}

.brand-wave-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    font-size: 1.1rem;
    margin-top: 2px;
}

.brand-wave-svg {
    width: 22px;
    height: 16px;
    fill: none;
    stroke: var(--primary-blue);
    stroke-width: 2.2;
    stroke-linecap: round;
}

/* ==========================================================
   Pages & Routing Container
   ========================================================== */
.app-page {
    display: none;
    width: 100%;
    flex: 1;
    padding: 16px 18px 90px;
    background: #ffffff;
    animation: fadeIn 0.25s ease;
}

.app-page.active {
    display: block !important;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================
   Buttons & Interactive Elements
   ========================================================== */
.btn-green-pill {
    width: 100%;
    padding: 15px 20px;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark));
    color: #ffffff;
    border: none;
    border-radius: var(--radius-pill);
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-green-pill:active {
    transform: scale(0.98);
}

.btn-outline-pill {
    width: 100%;
    padding: 14px 20px;
    background: #ffffff;
    color: var(--primary-blue);
    border: 1.8px solid var(--primary-blue);
    border-radius: var(--radius-pill);
    font-family: var(--font-main);
    font-size: 0.98rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-outline-pill:active {
    background: #eff6ff;
}

/* Input Fields with Icons */
.form-input-group {
    margin-bottom: 14px;
    position: relative;
}

.form-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
    pointer-events: none;
}

.form-input-eye {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
    background: none;
    border: none;
    cursor: pointer;
}

.app-input {
    width: 100%;
    padding: 14px 16px 14px 44px;
    background: #f8fafc;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-md);
    font-family: var(--font-main);
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: all 0.2s ease;
    outline: none;
}

.app-input:focus {
    border-color: var(--primary-blue);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.phone-input-split {
    display: flex;
    gap: 8px;
}

.phone-prefix-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 12px;
    background: #f8fafc;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    cursor: pointer;
}

/* ==========================================================
   Screen 1: Welcome Screen
   ========================================================== */
.welcome-screen-wrap {
    min-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    padding: 24px 10px 30px;
}

.welcome-hero-header {
    margin-top: 10px;
}

.welcome-logo-big {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
}

.welcome-wave-big {
    display: flex;
    justify-content: center;
    margin: 4px 0 16px;
}

.welcome-tagline {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 4px;
}

.welcome-subtagline {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.welcome-logo-badge-container {
    margin: 16px auto 12px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.welcome-official-logo {
    width: 200px;
    max-width: 70vw;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    border-radius: 28px;
    box-shadow: 0 16px 36px rgba(37, 99, 235, 0.22), 0 4px 12px rgba(16, 185, 129, 0.15);
    background: #ffffff;
    padding: 6px;
    transition: transform 0.3s ease;
}

.welcome-official-logo:hover {
    transform: scale(1.03);
}

.auth-logo-badge {
    width: 58px;
    height: 58px;
    object-fit: contain;
    border-radius: 14px;
    margin: 0 auto 10px;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.15);
    background: #ffffff;
    display: block;
}

.drawer-brand-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 14px;
    margin-bottom: 12px;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.drawer-install-item {
    background: #ecfdf5 !important;
    color: var(--primary-green-dark) !important;
    font-weight: 700 !important;
    border: 1px solid #a7f3d0 !important;
}

/* PWA Dashboard Install Banner */
.pwa-install-banner {
    background: linear-gradient(135deg, #ecfdf5 0%, #eff6ff 100%);
    border: 1px solid #a7f3d0;
    border-radius: var(--radius-card);
    padding: 12px 14px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.08);
}

.pwa-banner-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pwa-banner-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    object-fit: contain;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    background: #ffffff;
    flex-shrink: 0;
}

.pwa-banner-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
}

.pwa-banner-sub {
    font-size: 0.74rem;
    color: var(--text-secondary);
}

.btn-sm-install {
    background: var(--primary-green);
    color: #ffffff;
    border: none;
    padding: 7px 14px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
    transition: all 0.2s ease;
}

.btn-sm-install:hover {
    background: var(--primary-green-dark);
}

.welcome-actions-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.welcome-lang-selector {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #f1f5f9;
    border-radius: var(--radius-pill);
    padding: 6px 16px;
    margin: 16px auto 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.welcome-lang-btn {
    border: none;
    background: none;
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    font-size: 0.85rem;
}

.welcome-lang-btn.active {
    color: var(--primary-blue);
    font-weight: 800;
}

/* ==========================================================
   Screen 2 & 4: Auth Screens (Register & Login)
   ========================================================== */
.auth-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.auth-header-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary-blue);
}

.auth-brand-center {
    text-align: center;
    margin-bottom: 24px;
}

.auth-form-title {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.auth-form-subtitle {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.auth-link-row {
    text-align: center;
    margin-top: 18px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.auth-link-bold {
    color: var(--primary-blue);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

/* ==========================================================
   Screen 3: Account Created Success
   ========================================================== */
.success-screen-wrap {
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px 20px;
}

.success-check-badge {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: #dcfce7;
    color: var(--primary-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin-bottom: 20px;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.25);
}

.success-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.success-subtitle {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin-bottom: 28px;
    line-height: 1.5;
}

/* ==========================================================
   Screen 6: Main Dashboard
   ========================================================== */
.dashboard-user-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0 16px;
}

.user-avatar-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0284c7, #2563eb);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.user-greeting-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
}

.user-member-id {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* Green Wallet Balance Banner */
.wallet-balance-banner {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: var(--radius-xl);
    padding: 18px 20px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 24px rgba(16, 185, 129, 0.28);
    margin-bottom: 22px;
}

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

.wallet-currency-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 800;
}

.wallet-balance-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.wallet-balance-value {
    font-size: 1.7rem;
    font-weight: 800;
    line-height: 1.1;
    font-family: var(--font-main);
}

.wallet-topup-btn {
    background: rgba(255, 255, 255, 0.22);
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    color: #ffffff;
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: all 0.2s ease;
}

.wallet-topup-btn:active {
    background: #ffffff;
    color: var(--primary-green-dark);
}

/* 3x3 Dashboard Action Grid */
.dash-action-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.dash-action-tile {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 16px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dash-action-tile:active {
    transform: scale(0.96);
}

.dash-tile-icon-box {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

.dash-tile-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Tile Icon Themes */
.icon-make-call { background: #ecfdf5; color: #059669; }
.icon-contacts { background: #eff6ff; color: #2563eb; }
.icon-rates { background: #ecfeff; color: #0891b2; }
.icon-history { background: #fffbeb; color: #d97706; }
.icon-wallet { background: #f5f3ff; color: #7c3aed; }
.icon-settings { background: #f1f5f9; color: #475569; }
.icon-support { background: #ecfdf5; color: #059669; }
.icon-help { background: #f0f9ff; color: #0284c7; }
.icon-logout { background: #fff1f2; color: #e11d48; }

/* Phone Account Card (Embedded on Dashboard) */
.dash-account-card {
    background: #f8fafc;
    border: 1.5px dashed #cbd5e1;
    border-radius: var(--radius-lg);
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.dash-account-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
}

.dash-account-num {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-blue);
    letter-spacing: 1px;
}

/* ==========================================================
   Screen 7: Dialer Screen
   ========================================================== */
.dialer-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.status-active-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: #ecfdf5;
    color: #059669;
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: var(--radius-pill);
}

.status-mins-text {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
}

.dialer-country-picker-btn {
    width: 100%;
    padding: 10px 14px;
    background: #f8fafc;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-main);
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    margin-bottom: 12px;
}

/* Image 2 Style Rounded Dialer Display with Green Cursor and Tag Backspace */
.dialer-display-card-modern {
    width: 100%;
    min-height: 58px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    margin-bottom: 20px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.03);
}

.dialer-display-text-wrapper {
    display: flex;
    align-items: center;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}

.dialer-display-text-wrapper::-webkit-scrollbar {
    display: none;
}

.dialer-display-number {
    font-size: 1.65rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.dialer-cursor-blink {
    display: inline-block;
    width: 2.5px;
    height: 1.6rem;
    background: #10b981;
    margin-left: 2px;
    border-radius: 2px;
    animation: cursorBlink 1s infinite ease-in-out;
}

@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Tag-style delete button circled in Red in Image 2 */
.btn-dialer-tag-backspace {
    background: #94a3b8;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 6px 9px 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, transform 0.1s ease;
    box-shadow: 0 2px 6px rgba(100, 116, 139, 0.25);
    flex-shrink: 0;
    margin-left: 8px;
}

.btn-dialer-tag-backspace:hover {
    background: #64748b;
}

.btn-dialer-tag-backspace:active {
    background: #475569;
    transform: scale(0.92);
}

.tag-backspace-svg {
    display: block;
}

/* 3x4 Dialpad Grid */
.dialpad-grid-3x4 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-width: 310px;
    margin: 0 auto 16px;
}

.dial-key-btn {
    width: 72px;
    height: 72px;
    margin: 0 auto;
    border-radius: 50%;
    background: #f8fafc;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.dial-key-btn:active {
    background: #e2e8f0;
    transform: scale(0.94);
}

.dial-key-num {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1;
    color: var(--text-primary);
}

.dial-key-letters {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-top: 2px;
}

.dialer-action-row {
    display: flex;
    align-items: center;
    justify-content: space-around;
    max-width: 310px;
    margin: 0 auto;
}

.btn-add-contact-pill {
    padding: 8px 14px;
    background: #eff6ff;
    color: var(--primary-blue);
    border: none;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
}

.btn-call-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark));
    color: #ffffff;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
    transition: all 0.2s ease;
}

.btn-call-circle:active {
    transform: scale(0.94);
}

.btn-backspace-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f8fafc;
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* ==========================================================
   Screen 8: In-Call Overlay Screen
   ========================================================== */
.in-call-screen-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #0f172a 0%, #1e3a8a 50%, #0369a1 100%);
    color: #ffffff;
    z-index: 1000;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 40px 24px 50px;
    animation: fadeIn 0.3s ease;
}

.in-call-screen-overlay.active {
    display: flex !important;
}

.in-call-header {
    text-align: center;
}

.in-call-avatar-pulse {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 20px auto;
    animation: pulseRing 2s infinite;
}

@keyframes pulseRing {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.in-call-number {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.in-call-country {
    font-size: 0.95rem;
    opacity: 0.85;
    margin-top: 4px;
}

.in-call-timer {
    font-size: 1.1rem;
    font-weight: 700;
    font-family: var(--font-main);
    margin-top: 8px;
    color: #a5f3fc;
}

.in-call-controls-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
    max-width: 320px;
}

.in-call-btn-circle {
    width: 60px;
    height: 60px;
    margin: 0 auto;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    cursor: pointer;
    backdrop-filter: blur(8px);
}

.in-call-btn-label {
    font-size: 0.68rem;
    margin-top: 2px;
    opacity: 0.8;
}

.btn-end-call-red {
    background: #ef4444 !important;
    border: none !important;
    box-shadow: 0 6px 18px rgba(239, 68, 68, 0.4) !important;
}

/* ==========================================================
   Screen 9: Side Navigation Drawer
   ========================================================== */
.drawer-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.5);
    z-index: 500;
    backdrop-filter: blur(4px);
}

.drawer-backdrop.active {
    display: block;
}

.side-drawer-panel {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100%;
    background: #ffffff;
    z-index: 600;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    transition: left 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow-y: auto;
}

.side-drawer-panel.active {
    left: 0;
}

.drawer-user-header {
    background: linear-gradient(135deg, #0284c7, #2563eb);
    padding: 30px 20px 20px;
    color: #ffffff;
}

.drawer-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.drawer-user-name {
    font-size: 1.1rem;
    font-weight: 800;
}

.drawer-user-id {
    font-size: 0.8rem;
    opacity: 0.85;
}

.drawer-menu-list {
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.drawer-menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease;
}

.drawer-menu-item:hover, .drawer-menu-item.active {
    background: #f1f5f9;
    color: var(--primary-blue);
}

.drawer-menu-item.logout-item {
    color: #ef4444;
}

/* ==========================================================
   Screen 10 & Modals: Country Selector & Top Up
   ========================================================== */
.app-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.55);
    z-index: 800;
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.app-modal-overlay.active {
    display: flex !important;
}

.app-modal-card {
    background: #ffffff;
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 400px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 22px 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: modalPop 0.25s ease;
}

@keyframes modalPop {
    from { transform: scale(0.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.modal-title {
    font-size: 1.2rem;
    font-weight: 800;
}

.modal-close-x {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f5f9;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.country-search-input {
    width: 100%;
    padding: 12px 14px 12px 38px;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-md);
    background: #f8fafc;
    font-family: var(--font-main);
    font-size: 0.92rem;
    margin-bottom: 14px;
    outline: none;
}

.country-list-scroll {
    max-height: 300px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.country-item-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    background: #f8fafc;
    cursor: pointer;
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.15s ease;
}

.country-item-btn:hover, .country-item-btn.selected {
    background: #eff6ff;
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

/* ==========================================================
   Bottom Navigation Dock (Screens 6 & 7 - Image 1 Style)
   ========================================================== */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 440px;
    background: #ffffff;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    padding: 6px 6px 10px;
    z-index: 90;
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.06);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: none;
    border: none;
    color: #1e293b;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    padding: 4px 6px;
    flex: 1;
    transition: all 0.15s ease;
}

.bottom-nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #10b981;
}

.bottom-nav-item.active {
    color: #059669;
}

.bottom-nav-item.active .bottom-nav-icon {
    color: #059669;
}

/* Center Dial Button: Circular Floating Green Bubble */
.bottom-nav-dial-center {
    position: relative;
    top: -14px;
}

.bottom-nav-dial-bubble {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #10b981;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
    transition: transform 0.15s ease, background 0.15s ease;
}

.bottom-nav-dial-center:active .bottom-nav-dial-bubble {
    transform: scale(0.92);
}

.bottom-nav-dial-center.active .bottom-nav-dial-bubble {
    background: #059669;
}

.bottom-nav-dial-center span:last-child {
    color: #059669;
    font-weight: 800;
}

/* Toast System */
.toast-wrap {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 90%;
    max-width: 380px;
    pointer-events: none;
}

.app-toast-item {
    background: #0f172a;
    color: #ffffff;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: toastSlide 0.3s ease;
}

@keyframes toastSlide {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================
   Settings Screen & Action Buttons
   ========================================================== */
.btn-blue-pill {
    width: 100%;
    padding: 15px 20px;
    background: linear-gradient(135deg, var(--primary-blue), #1d4ed8);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-pill);
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-blue-pill:active {
    transform: scale(0.98);
}

.settings-profile-badge {
    background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-card);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.settings-avatar-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
}

.settings-badge-name {
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--text-primary);
}

.settings-badge-phone {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-top: 1px;
}

.settings-badge-id {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--primary-green-dark);
    background: #dcfce7;
    padding: 2px 8px;
    border-radius: 10px;
    margin-top: 4px;
}

.settings-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-card);
    padding: 18px 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.settings-card-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.settings-card-icon {
    font-size: 1.35rem;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.settings-card-title {
    font-weight: 800;
    font-size: 0.96rem;
    color: var(--text-primary);
}

.settings-card-sub {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* ==========================================================
   Image 4 Settings Design: Green Top Navbar & iOS-style Rows
   ========================================================== */
.settings-top-navbar-green {
    background: #059669;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    margin: -16px -16px 16px;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.2);
}

.settings-back-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.settings-navbar-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.2px;
}

.settings-menu-list-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.settings-grouped-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.settings-list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f8fafc;
    transition: background 0.15s ease;
}

.settings-list-row:last-child {
    border-bottom: none;
}

.settings-list-row:active {
    background: #f8fafc;
}

.settings-row-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.settings-row-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bg-green-box {
    background: #10b981;
}

.bg-blue-box {
    background: #2563eb;
}

.bg-orange-box {
    background: #f97316;
}

.bg-white-green-icon {
    background: #f0fdf4;
}

.settings-row-texts {
    display: flex;
    flex-direction: column;
}

.settings-row-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
}

.settings-row-sub {
    font-size: 0.76rem;
    color: #64748b;
    font-weight: 500;
    margin-top: 2px;
}

.settings-row-arrow {
    font-size: 1.35rem;
    color: #cbd5e1;
    font-weight: 600;
    margin-left: 8px;
}

/* ==========================================================
   Avatar Upload & Circular Frame Styling
   ========================================================== */
.settings-avatar-wrap {
    position: relative;
    width: 96px;
    height: 96px;
    margin: 0 auto 12px;
}

.settings-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    background: #f1f5f9;
}

.settings-avatar-edit-badge {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 32px;
    height: 32px;
    background: #007a3d;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
    border: 2px solid #ffffff;
    font-size: 0.95rem;
    transition: transform 0.15s ease, background 0.15s ease;
}

.settings-avatar-edit-badge:hover {
    transform: scale(1.1);
    background: #059669;
}

.dash-user-avatar-badge {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #ffffff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    background: #ecfdf5;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
}

.dash-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

