/* AURA GROUP - KNOCK (knock.at)
 * Native Mobile Web Dialer - Ultra-Glossy Crystal Glass Stylesheet
 * 100% Pink-Free & Anti-Glare: Hyper-Polished Liquid Glass, Refractive Specular Sheens & Smooth Slate Grey Typography
 */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

*::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

html, body {
  height: 100%;
  height: 100dvh;
  margin: 0;
  padding: 0;
  background-color: var(--bg-body, #f8fafc);
  color: var(--color-text-primary, #0f172a);
  overflow: hidden; /* Lock viewport to phone frame */
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

:root {
  /* ☀️ STRICT LIGHT MODE MANDATE (Knock Default Charter) */
  color-scheme: light;
  
  --bg-body: #f8fafc;
  --bg-gradient-1: rgba(2, 132, 199, 0.07);
  --bg-gradient-2: rgba(6, 182, 212, 0.05);
  --bg-gradient-3: rgba(14, 165, 233, 0.03);
  
  --color-text-primary: #0f172a;
  --color-text-secondary: #475569;
  --color-text-muted: #64748b;
  
  --bg-container: rgba(255, 255, 255, 0.85);
  --border-container: rgba(15, 23, 42, 0.08);
  --border-divider: rgba(0, 0, 0, 0.06);
  
  --bg-row-hover: rgba(0, 0, 0, 0.03);
  --bg-row-expanded: rgba(0, 0, 0, 0.015);
  --bg-drawer: rgba(0, 0, 0, 0.04);
  --bg-modal-backdrop: rgba(15, 23, 42, 0.35);
  
  --bg-bottom-bar: rgba(255, 255, 255, 0.96);
  --border-bottom-bar: rgba(0, 0, 0, 0.08);
  --color-nav-inactive: #64748b;
  --bg-nav-active-pill: rgba(2, 132, 199, 0.1);
  
  --bg-keypad-btn: #e2e8f0;
  --bg-keypad-btn-active: #cbd5e1;
  --color-keypad-text: #0f172a;
  --color-keypad-subtext: #64748b;
  
  --bg-dropdown: #ffffff;
  --border-dropdown: rgba(0, 0, 0, 0.12);

  --bg-card: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(241, 245, 249, 0.95) 60%, rgba(226, 232, 240, 0.98) 100%);
  --border-card: rgba(2, 132, 199, 0.25);
  --bg-url: rgba(0, 0, 0, 0.04);
  --border-url: rgba(0, 0, 0, 0.08);
  --color-input: #0f172a;
  --color-input-focus: #0284c7;

  --bg-qwerty-card: #f1f5f9;
  --bg-qwerty-key: #ffffff;
  --color-qwerty-key: #0f172a;
  --bg-qwerty-func: #cbd5e1;
  --color-qwerty-func: #475569;
}

/* Optional Dark Mode Override (Only if user explicitly requests data-theme="dark") */
html[data-theme="dark"], body.dark-theme {
  color-scheme: dark;
  --bg-body: #04060a;
  --bg-gradient-1: rgba(2, 132, 199, 0.18);
  --bg-gradient-2: rgba(6, 182, 212, 0.12);
  --bg-gradient-3: rgba(14, 165, 233, 0.06);
  --color-text-primary: #ffffff;
  --color-text-secondary: #94a3b8;
  --color-text-muted: #64748b;
  --bg-container: rgba(15, 23, 42, 0.4);
  --border-container: rgba(255, 255, 255, 0.06);
  --border-divider: rgba(255, 255, 255, 0.05);
  --bg-row-hover: rgba(255, 255, 255, 0.04);
  --bg-row-expanded: rgba(255, 255, 255, 0.02);
  --bg-drawer: rgba(0, 0, 0, 0.35);
  --bg-modal-backdrop: rgba(5, 7, 15, 0.75);
  --bg-bottom-bar: rgba(15, 23, 42, 0.96);
  --border-bottom-bar: rgba(255, 255, 255, 0.08);
  --color-nav-inactive: #94a3b8;
  --bg-nav-active-pill: rgba(56, 189, 248, 0.14);
  --bg-keypad-btn: #181d28;
  --bg-keypad-btn-active: #313a4d;
  --color-keypad-text: #ffffff;
  --color-keypad-subtext: #94a3b8;
  --bg-dropdown: #1e293b;
  --border-dropdown: rgba(255, 255, 255, 0.15);
  --bg-card: linear-gradient(145deg, rgba(18, 28, 54, 0.85) 0%, rgba(12, 18, 36, 0.9) 60%, rgba(7, 10, 20, 0.95) 100%);
  --border-card: rgba(56, 189, 248, 0.35);
  --bg-url: rgba(255, 255, 255, 0.04);
  --border-url: rgba(255, 255, 255, 0.08);
  --color-input: #94a3b8;
  --color-input-focus: #cbd5e1;
  --bg-qwerty-card: #11141b;
  --bg-qwerty-key: #252a36;
  --color-qwerty-key: #f1f5f9;
  --bg-qwerty-func: #1b1f28;
  --color-qwerty-func: #94a3b8;
}

  /* 1. Modal & Scrim Backdrops */
  .availability-modal-backdrop,
  .courtesy-modal-backdrop,
  .host-presence-modal-backdrop,
  .post-call-summary-backdrop,
  .incoming-call-backdrop {
    display: none;
    background: rgba(15, 23, 42, 0.25) !important;
    backdrop-filter: blur(16px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(160%) !important;
  }

  .availability-modal-backdrop.open,
  .availability-modal-backdrop.active,
  .courtesy-modal-backdrop.open,
  .courtesy-modal-backdrop.active,
  .host-presence-modal-backdrop.open,
  .host-presence-modal-backdrop.active,
  .post-call-summary-backdrop.open,
  .post-call-summary-backdrop.active,
  .incoming-call-backdrop.open,
  .incoming-call-backdrop.active {
    display: flex !important;
  }

  /* 2. All Availability / Studio Modal Cards */
  .availability-modal-card {
    background: #ffffff !important;
    border-color: rgba(2, 132, 199, 0.2) !important;
    color: #0f172a !important;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12), 0 4px 16px rgba(15, 23, 42, 0.06) !important;
  }

  .availability-modal-card h3,
  .availability-modal-card h4,
  .availability-modal-card strong {
    color: #0f172a !important;
  }

  .availability-modal-card p,
  .availability-modal-card label,
  .availability-modal-card .studio-request-banner {
    color: #475569 !important;
  }

  .availability-modal-card .studio-request-banner {
    background: rgba(2, 132, 199, 0.06) !important;
    border-color: rgba(2, 132, 199, 0.18) !important;
  }

  .availability-modal-card div[style*="background: #080c16"],
  .availability-modal-card div[style*="background: #0c120e"],
  .availability-modal-card div[style*="background: #0c101c"],
  .availability-modal-card div[style*="background: #070a10"],
  .availability-modal-card div[style*="background: #040906"],
  .availability-modal-card div[style*="background: #090c15"] {
    background: #f8fafc !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
    color: #0f172a !important;
  }

  .availability-modal-card textarea,
  .availability-modal-card input {
    background: #f8fafc !important;
    border-color: rgba(15, 23, 42, 0.12) !important;
    color: #0f172a !important;
  }

  /* 3. Search Dial Banner & Quick Toasts */
  .search-dial-banner {
    background: #ffffff !important;
    border-color: rgba(2, 132, 199, 0.25) !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08) !important;
  }

  .search-dial-banner .search-dial-number {
    color: #0f172a !important;
  }

  .toast-message {
    background: rgba(255, 255, 255, 0.96) !important;
    color: #0f172a !important;
    border: 1px solid rgba(2, 132, 199, 0.25) !important;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(15, 23, 42, 0.06) !important;
  }

  /* 4. Fullscreen Incoming Call Stage (Light Mode Continuity) */
  
.incoming-call-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: 9999px;
  background: #ffffff !important;
  color: #0284c7 !important;
  border: 1.5px solid rgba(2, 132, 199, 0.2) !important;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.08), inset 0 1px 1px #ffffff !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.incoming-call-status-header {
    color: #ffffff !important;
  }
  .incoming-caller-name {
    color: #ffffff !important;
  }
  .incoming-caller-location {
    color: #94a3b8 !important;
  }
  .incoming-caller-handle {
    color: #67e8f9 !important;
  }
  .android-incoming-label {
    color: #cbd5e1 !important;
  }

  /* 5. 🪐 ACTIVE IN-CALL FULLSCREEN STAGE (AURA GLASSMORPHISM LIGHT MODE) */
  .active-call-fullscreen-overlay {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    z-index: 99999999 !important;
    margin: 0 !important;
    display: none;
    flex-direction: column !important;
    justify-content: space-between !important;
    align-items: center !important;
    box-sizing: border-box !important;
    padding-top: max(24px, env(safe-area-inset-top, 24px)) !important;
    padding-bottom: max(32px, env(safe-area-inset-bottom, 32px)) !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
    background: 
      radial-gradient(circle 380px at 50% 10%, rgba(2, 132, 199, 0.08) 0%, transparent 70%),
      radial-gradient(circle 420px at 80% 80%, rgba(16, 185, 129, 0.06) 0%, transparent 65%),
      linear-gradient(180deg, #ffffff 0%, #f8fafc 45%, #f1f5f9 100%) !important;
    color: #0f172a !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-font-smoothing: antialiased;
  }

  .active-call-fullscreen-overlay.open,
  .active-call-fullscreen-overlay.active {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 99999999 !important;
  }

  /* Calling Top Status Header */
  .active-call-status-header {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    margin-top: 4px;
    z-index: 10;
  }

  .btn-minimize-active-call {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffffff !important;
    color: #475569 !important;
    border: 1.5px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
  }

  .btn-minimize-active-call:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
  }

  .btn-minimize-active-call:active {
    transform: translateY(-50%) scale(0.92);
  }

  .active-call-timer-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    border-radius: 9999px;
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1.5px solid #e2e8f0;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06), inset 0 1px 1px #ffffff;
  }

  .active-call-timer-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
    animation: live-pulse-dot 1.8s infinite;
  }

  @keyframes live-pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
  }

  .active-call-timer-text {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a !important;
    letter-spacing: 0.2px;
    font-variant-numeric: tabular-nums;
    font-family: var(--font-mono, monospace);
  }

  /* Center Contact Hero Details */
  .active-call-hero-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    max-width: 380px;
    margin-top: 14px;
    margin-bottom: auto;
    z-index: 10;
    color: #0f172a !important;
  }

  .active-call-avatar-ring {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
    color: #ffffff !important;
    border: 3.5px solid #ffffff;
    box-shadow: 0 12px 32px rgba(2, 132, 199, 0.35), inset 0 2px 3px rgba(255, 255, 255, 0.5);
    position: relative;
  }

  .active-call-avatar-text {
    font-size: 42px;
    font-weight: 800;
    color: #ffffff !important;
    letter-spacing: -0.5px;
    font-family: var(--font-main);
  }

  .active-call-peer-name {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a !important;
    margin: 0 0 4px 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
    font-family: var(--font-main);
    word-break: break-word;
  }

  .active-call-peer-location {
    font-size: 16px;
    font-weight: 600;
    color: #2563eb !important;
    margin: 0 0 8px 0;
    line-height: 1.25;
    letter-spacing: 0.1px;
    font-family: var(--font-main);
  }

  .active-call-peer-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #047857 !important;
    background: #ecfdf5 !important;
    border: 1px solid #a7f3d0 !important;
    padding: 5px 14px;
    border-radius: 9999px;
  }

  .active-call-peer-badge .badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    display: inline-block;
  }

  /* Live Voice Waveform Visualizer */
  .audio-vu-meter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 28px;
    padding: 4px 14px;
    border-radius: 9999px;
    background: #ffffff !important;
    color: #0284c7 !important;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    margin: 8px auto 10px auto;
  }

  .vu-bar {
    width: 4px;
    min-height: 4px;
    max-height: 22px;
    border-radius: 9999px;
    background: #0284c7;
    transition: height 0.08s ease, background 0.1s ease;
  }

  /* In-Call Controls Bottom Section */
  .active-call-controls-wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
  }

  .samsung-calling-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px 28px;
    width: 100%;
    max-width: 320px;
    justify-items: center;
    margin-bottom: 28px;
  }

  .samsung-ctrl-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .btn-samsung-ctrl {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #ffffff !important;
    color: #334155 !important;
    border: 1.5px solid #e2e8f0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-tap-highlight-color: transparent;
    outline: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06), inset 0 1px 1px #ffffff !important;
  }

  .btn-samsung-ctrl svg {
    stroke: #334155 !important;
    fill: none !important;
  }

  .btn-samsung-ctrl:hover {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
  }

  .btn-samsung-ctrl:active {
    transform: scale(0.92);
  }

  .btn-samsung-ctrl.active,
  .btn-samsung-ctrl[data-bind="btn-speaker-boost"].active,
  .btn-samsung-ctrl.speaker-active {
    background: #eff6ff !important;
    border-color: #93c5fd !important;
    color: #2563eb !important;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.18) !important;
  }

  .btn-samsung-ctrl.active svg,
  .btn-samsung-ctrl.speaker-active svg {
    stroke: #2563eb !important;
    fill: #2563eb !important;
  }

  .btn-samsung-ctrl.muted {
    background: #fef2f2 !important;
    border-color: #fca5a5 !important;
    color: #dc2626 !important;
  }

  .btn-samsung-ctrl.muted svg {
    stroke: #dc2626 !important;
  }

  #btn-call-video-toggle {
    display: flex !important;
  }
  #btn-call-video-toggle svg {
    stroke: #334155 !important;
    fill: none !important;
  }
  #btn-call-video-toggle.active {
    background: #eff6ff !important;
    border-color: #93c5fd !important;
    color: #2563eb !important;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.18) !important;
  }
  #btn-call-video-toggle.active svg {
    stroke: #2563eb !important;
    fill: #eff6ff !important;
  }

  .samsung-ctrl-label {
    font-family: var(--font-main);
    font-size: 12px;
    font-weight: 700;
    color: #475569 !important;
    letter-spacing: 0.02em;
  }

  .btn-samsung-hangup {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    color: #ffffff !important;
    border: none !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(239, 68, 68, 0.45) !important;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    outline: none;
    -webkit-tap-highlight-color: transparent;
  }

  .btn-samsung-hangup:active {
    transform: scale(0.92);
  }

  /* 🪐 IN-FLIGHT CALL DYNAMIC MULTITASKING STATUS BAR */
  .inflight-call-bar {
    position: fixed;
    top: max(12px, env(safe-area-inset-top, 12px));
    left: 16px;
    right: 16px;
    max-width: 440px;
    margin: 0 auto;
    z-index: 999999;
    background: rgba(255, 255, 255, 0.96) !important;
    color: #0f172a !important;
    border: 1.5px solid rgba(2, 132, 199, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 9999px;
    padding: 6px 14px 6px 10px;
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.16), 0 2px 6px rgba(15, 23, 42, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: inflightSlideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
  }

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

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

  .inflight-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
    color: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 15px;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.3);
  }

  .inflight-info {
    display: flex;
    flex-direction: column;
  }

  .inflight-name {
    font-size: 13.5px;
    font-weight: 800;
    color: #0f172a !important;
    line-height: 1.2;
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .inflight-timer-wrap {
    display: flex;
    align-items: center;
    gap: 5px;
  }

  .inflight-pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 6px #10b981;
    animation: live-pulse-dot 1.5s infinite;
  }

  .inflight-timer {
    font-size: 12px;
    font-weight: 700;
    color: #059669 !important;
    font-variant-numeric: tabular-nums;
    font-family: var(--font-mono, monospace);
  }

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

  .btn-inflight-return {
    padding: 6px 10px;
    border-radius: 9999px;
    background: #f1f5f9 !important;
    color: #0f172a !important;
    font-size: 11.5px;
    font-weight: 700;
    border: 1px solid #cbd5e1;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.15s ease;
  }

  .btn-inflight-return:hover {
    background: #e2e8f0 !important;
  }

  .btn-inflight-end {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #ef4444 !important;
    color: #ffffff !important;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.4);
    transition: transform 0.15s ease;
  }

  .btn-inflight-end:hover {
    transform: scale(1.08);
  }

  .btn-inflight-end:active {
    transform: scale(0.92);
  }


  .active-pip-local-video {
    background: #e2e8f0 !important;
    border-color: #0284c7 !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15) !important;
  }

  /* 6. In-Call Ephemeral Chat Drawer */
  .incall-chat-drawer {
    background: rgba(255, 255, 255, 0.96) !important;
    border: 1px solid rgba(15, 23, 42, 0.12) !important;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12) !important;
  }

  .incall-chat-header {
    background: rgba(0, 0, 0, 0.03) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
  }

  .incall-chat-header span[style*="color: #fff"] {
    color: #0f172a !important;
  }

  .incall-chat-input-wrap {
    background: rgba(0, 0, 0, 0.03) !important;
    border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
  }

  .incall-chat-input-wrap input {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid rgba(15, 23, 42, 0.15) !important;
  }

  .chat-bubble.theirs {
    background: rgba(0, 0, 0, 0.06) !important;
    color: #1e293b !important;
  }

  /* 7. Post-Call Summary Modal */
  .post-call-summary-card {
    background: #ffffff !important;
    border-color: rgba(2, 132, 199, 0.2) !important;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12) !important;
  }

  .post-call-summary-card h3 {
    color: #0f172a !important;
  }

  .post-stat-box {
    background: #f8fafc !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
  }

  /* 8. Host Dead-Air Presence Modal */
  .host-presence-card {
    background: #ffffff !important;
    box-shadow: 0 10px 40px rgba(239, 68, 68, 0.15) !important;
  }

  .host-presence-card h4 {
    color: #0f172a !important;
  }

  /* 9. 🎁 Post-Call Reward & Voucher Modal (High Contrast & Crystal Clear) */
  .post-call-completed-title {
    color: #0f172a !important;
  }

  .post-call-data-stat {
    color: #059669 !important;
  }

  .post-call-reward-brand {
    color: #b45309 !important;
  }

  .post-call-verified-perk {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #047857 !important;
    border: 1px solid rgba(16, 185, 129, 0.35) !important;
  }

  .post-call-voucher-card,
  #post-call-voucher-card {
    background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 100%) !important;
    border: 1.5px solid rgba(2, 132, 199, 0.22) !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06) !important;
  }

  #post-call-reward-headline {
    color: #0f172a !important;
  }

  #post-call-reward-desc {
    color: #475569 !important;
  }

  /* Voucher Code Box (Circle 1: High Contrast & Crystal Clear) */
  .post-call-voucher-code-wrap {
    background: #ffffff !important;
    border: 1.5px dashed #0284c7 !important;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.08) !important;
  }

  .post-call-voucher-label {
    color: #0369a1 !important;
    font-weight: 800 !important;
  }

  #post-call-voucher-code {
    color: #059669 !important;
    font-weight: 900 !important;
    font-size: 16px !important;
    letter-spacing: 1.5px !important;
    text-shadow: none !important;
  }

  /* Earned GSM Minutes Alert Strip (Circle 2: Vibrant Purple & Sharp Text) */
  .post-call-minutes-strip {
    background: rgba(147, 51, 234, 0.08) !important;
    border: 1.5px solid rgba(147, 51, 234, 0.25) !important;
  }

  .post-call-minutes-title {
    color: #6b21a8 !important;
    font-weight: 800 !important;
  }

  .post-call-minutes-subtext {
    color: #475569 !important;
  }

  #post-call-wallet-minutes {
    color: #0f172a !important;
    font-weight: 900 !important;
  }

  .btn-view-bank {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 6px 14px !important;
    font-size: 11.5px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    box-shadow: 0 2px 8px rgba(109, 40, 217, 0.3) !important;
  }

  .btn-view-bank:hover {
    background: linear-gradient(135deg, #6d28d9 0%, #5b21b6 100%) !important;
    transform: translateY(-1px) !important;
  }

  /* Subtle Close/Done Buttons inside Modals */
  .btn-modal-action-subtle {
    background: #f1f5f9 !important;
    border: 1px solid rgba(15, 23, 42, 0.12) !important;
    color: #475569 !important;
    transition: all 0.2s ease !important;
  }

  .btn-modal-action-subtle:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
  }

  /* Contact Details Encrypted Voice Rail */
  .contact-modal-knock-section {
    background: rgba(147, 51, 234, 0.08) !important;
    border: 1.5px solid rgba(147, 51, 234, 0.22) !important;
  }

  .contact-modal-knock-rail-title {
    color: #6b21a8 !important;
  }

  .contact-modal-knock-handle {
    color: #0f172a !important;
  }

  .btn-contact-knock-audio {
    background: rgba(147, 51, 234, 0.12) !important;
    border: 1.5px solid #7c3aed !important;
    color: #6b21a8 !important;
  }

  .btn-contact-knock-video {
    background: linear-gradient(135deg, #9333ea 0%, #7c3aed 100%) !important;
    color: #ffffff !important;
    border: none !important;
  }

  /* Device Pairing & Restore Handle Modals */
  .pairing-active-handle {
    color: #0284c7 !important;
  }

  .pairing-pin-card {
    background: #f8fafc !important;
    border: 1.5px solid rgba(15, 23, 42, 0.1) !important;
  }

  .pairing-pin-label {
    color: #475569 !important;
  }

  .btn-pin-action {
    background: #f1f5f9 !important;
    border: 1px solid rgba(15, 23, 42, 0.15) !important;
    color: #0f172a !important;
  }

  .modal-input-wrap {
    background: #f8fafc !important;
    border: 1.5px solid rgba(15, 23, 42, 0.14) !important;
  }

  .modal-clean-input {
    color: #0f172a !important;
  }

  .modal-pin-input {
    background: #f8fafc !important;
    border: 1.5px solid rgba(15, 23, 42, 0.14) !important;
    color: #059669 !important;
  }

  /* Free Minutes Wallet Modal */
  .wallet-spin-strip {
    background: #f8fafc !important;
    border: 1.5px solid rgba(15, 23, 42, 0.1) !important;
  }

  .wallet-spin-title {
    color: #0f172a !important;
  }

  .wallet-spin-desc {
    color: #475569 !important;
  }

  .btn-spin-now {
    background: linear-gradient(135deg, #9333ea 0%, #7c3aed 100%) !important;
    color: #ffffff !important;
  }

  .wallet-pass-card {
    background: rgba(2, 132, 199, 0.08) !important;
    border: 1.5px solid rgba(2, 132, 199, 0.25) !important;
  }

  .wallet-pass-brand {
    color: #0369a1 !important;
  }

  .wallet-pass-pill {
    background: #0284c7 !important;
    color: #ffffff !important;
  }

  .wallet-pass-desc {
    color: #334155 !important;
  }

  .btn-unlock-pass {
    background: #0284c7 !important;
    border: none !important;
    color: #ffffff !important;
  }

  /* Direct GSM Dial Modal */
  .direct-gsm-guarantee {
    background: rgba(16, 185, 129, 0.08) !important;
    border: 1.5px solid rgba(16, 185, 129, 0.25) !important;
    color: #475569 !important;
  }

  .direct-gsm-guarantee-bold {
    color: #047857 !important;
  }

body {
  background-color: var(--bg-body);
  background-image: 
    radial-gradient(circle at 20% 12%, var(--bg-gradient-1) 0px, transparent 42%),
    radial-gradient(circle at 80% 88%, var(--bg-gradient-2) 0px, transparent 45%),
    radial-gradient(circle at 50% 50%, var(--bg-gradient-3) 0px, transparent 65%);
  background-attachment: fixed;
  color: var(--color-text-secondary);
  font-family: var(--font-main);
  display: flex;
  justify-content: center;
  align-items: center;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Master Centered App Layout Container */
.app-layout-container {
  display: flex;
  align-items: stretch;
  justify-content: center;
  height: 100%;
  height: 100dvh;
  width: 100%;
  padding: 0;
  overflow: hidden;
  background-color: var(--bg-body);
  background-image: 
    radial-gradient(circle at 20% 12%, var(--bg-gradient-1) 0px, transparent 42%),
    radial-gradient(circle at 80% 88%, var(--bg-gradient-2) 0px, transparent 45%),
    radial-gradient(circle at 50% 50%, var(--bg-gradient-3) 0px, transparent 65%);
}

/* Edge-to-Edge Native Screen Container (Invisible Frame) */
.phone-frame-wrapper {
  width: 100%;
  max-width: 480px;
  height: 100%;
  height: 100dvh;
  max-height: 100dvh;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  display: flex;
  flex-direction: column;
  padding-top: max(env(safe-area-inset-top, 0px), 8px);
  padding-bottom: max(env(safe-area-inset-bottom, 0px), 10px);
  padding-left: max(env(safe-area-inset-left, 0px), 16px);
  padding-right: max(env(safe-area-inset-right, 0px), 16px);
  box-shadow: none;
  border: none;
  border-radius: 0;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

/* Top Edge Crystal Reflection (Disabled for clean native look) */
.phone-frame-wrapper::before {
  display: none;
}

/* ======================================================
   1. TOP APP HEADER
   ====================================================== */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0px;
  margin-bottom: clamp(4px, 0.8vh, 8px);
  flex-shrink: 0;
  width: 100%;
}

.app-brand-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 6px 18px rgba(2, 132, 199, 0.4),
    inset 0 1.5px 1.5px rgba(255, 255, 255, 0.55),
    inset 0 -1px 1px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.25);
  position: relative;
  overflow: hidden;
}

.app-brand-logo::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 45%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, transparent 100%);
}

.logo-k {
  font-family: var(--font-main);
  font-size: 18px;
  font-weight: 800;
  color: #f1f5f9;
  position: relative;
  z-index: 2;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.app-brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text-secondary);
}

.brand-sub {
  font-family: var(--font-main);
  font-size: 10px;
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

.app-header-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 100;
  pointer-events: auto; /* Ensure clickable */
}

.btn-online-toggle {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.22) 0%, rgba(5, 150, 105, 0.12) 100%);
  border: 1px solid rgba(52, 211, 153, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 9999px;
  padding: 7px 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  font-family: var(--font-main);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #34d399;
  box-shadow: 
    0 4px 14px rgba(16, 185, 129, 0.25),
    inset 0 1px 1.5px rgba(255, 255, 255, 0.35);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-online-toggle:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}

.btn-online-toggle.offline {
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.22) 0%, rgba(185, 28, 28, 0.12) 100%);
  border-color: rgba(248, 113, 113, 0.45);
  color: #f87171;
}

.online-indicator-dot {
  width: 7.5px;
  height: 7.5px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #34d399;
  animation: pulseGreen 2s infinite ease-in-out;
}

@keyframes pulseGreen {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.btn-online-toggle.offline .online-indicator-dot {
  background: #ef4444;
  box-shadow: 0 0 10px #ef4444;
  animation: none;
}

.btn-header-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--color-text-primary);
  font-size: 13.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
}

.btn-header-icon:hover {
  background: var(--bg-row-hover);
  color: var(--color-text-primary);
  transform: translateY(-1px) scale(1.04);
}

/* ======================================================
   2. DIGITAL CALLING PASS (Apple Wallet Card)
   ====================================================== */
.calling-pass-card {
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid var(--border-card);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  padding: clamp(8px,1.4vh,12px) clamp(10px,2.5vw,14px);
  display: flex;
  flex-direction: column;
  gap: clamp(4px,0.8vh,8px);
  width: 100%;
  margin-bottom: 2px;
  transition: transform 0.2s ease;
}

.calling-pass-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

/* Streamlined compact pass when on Keypad mode so full dialer fits on any phone */
.phone-frame-wrapper.keypad-active .calling-pass-card {
  padding: 6px 12px;
  gap: 0;
  margin-bottom: 6px;
  border-radius: 14px;
}

.phone-frame-wrapper.keypad-active .calling-pass-card .pass-top-row,
.phone-frame-wrapper.keypad-active .calling-pass-card .pass-actions-strip {
  display: none;
}

.calling-pass-card:hover {
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 
    0 24px 60px -10px rgba(0, 0, 0, 0.85),
    0 0 45px rgba(2, 132, 199, 0.32),
    inset 0 1.5px 1.5px rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

/* Glare effect removed */

.pass-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pass-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-main);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #64748b;
  text-transform: uppercase;
}

.pass-badge-green {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #22c55e;
  padding: 3px 8px;
  border-radius: 6px;
}

.pass-badge-green .pass-badge-dot {
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
}

@media (prefers-color-scheme: light) {
  .pass-badge-green {
    background: rgba(22, 163, 74, 0.12);
    border: 1px solid rgba(22, 163, 74, 0.3);
    color: #15803d;
  }
  .pass-badge-green .pass-badge-dot {
    background: #15803d;
    box-shadow: none;
  }
}

.pass-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
}

.pass-chip-icon {
  font-family: var(--font-main);
  font-size: 10px;
  font-weight: 600;
  color: var(--color-text-secondary);
  background: var(--bg-url);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid var(--border-url);
}

.pass-main-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.pass-url-display {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  gap: 0;
  max-width: calc(100% - 105px);
  background: var(--bg-url);
  border: 1px solid var(--border-url);
  border-radius: 9999px;
  padding: 5px 10px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.pass-url-display:hover {
  background: var(--bg-row-hover);
  border-color: rgba(56, 189, 248, 0.3);
}

.pass-url-prefix {
  font-family: var(--font-main);
  font-size: 13.5px;
  font-weight: 600;
  color: #64748b;
  letter-spacing: -0.01em;
  white-space: nowrap;
  flex-shrink: 0;
}

.pass-handle-input {
  background: transparent;
  border: none;
  color: var(--color-input);
  font-family: var(--font-main);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  outline: none;
  padding: 0 2px;
  margin: 0;
  min-width: 40px;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
  vertical-align: baseline;
  transition: all 0.2s ease;
}

.pass-handle-input:focus {
  max-width: 130px;
  color: var(--color-input-focus);
}

.btn-handle-random {
  background: transparent;
  border: none;
  font-size: 13px;
  cursor: pointer;
  padding: 2px;
  margin-left: 2px;
  color: #64748b;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-handle-random:hover {
  transform: rotate(45deg) scale(1.2);
  color: #38bdf8;
}

.btn-handle-random:active {
  transform: scale(0.9);
}

.btn-pass-copy {
  background: var(--bg-url);
  color: var(--color-text-secondary);
  border: 1px solid var(--border-url);
  border-radius: 9999px;
  padding: 6px 14px;
  font-family: var(--font-main);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: none;
  transition: all 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-pass-copy:hover {
  background: var(--bg-row-hover);
  border-color: rgba(56, 189, 248, 0.3);
  color: var(--color-text-primary);
  box-shadow: none;
  transform: none;
}

.btn-pass-copy:active {
  transform: scale(0.96);
}

.pass-actions-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
  padding-top: 8px;
  border-top: 1px solid var(--border-divider);
}

.pass-action-chip {
  flex: 1;
  min-width: 0;
  background: var(--bg-url);
  border: 1px solid var(--border-url);
  border-radius: 9999px;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--color-text-secondary);
  font-family: var(--font-main);
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  user-select: none;
}

.pass-action-chip span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pass-action-chip:hover {
  background: var(--bg-row-hover);
  border-color: var(--border-card);
  color: var(--color-text-primary);
  transform: translateY(-1px);
}

.pass-action-chip:active {
  transform: scale(0.96);
  background: var(--bg-row-expanded);
}

#hero-creator-mode .pass-actions-strip {
  gap: 5px;
}

#hero-creator-mode .pass-action-chip {
  padding: 6px 6px;
  font-size: 10px;
}

/* ======================================================
   3. SEGMENTED NAVIGATION CONTROLLER (Clean Android Style - Matching Section B)
   ====================================================== */
.segmented-control {
  display: flex;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  padding: 4px;
  gap: 4px;
  width: 100%;
  margin-bottom: 4px;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.segment-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 44px;
  padding: 4px 12px;
  border-radius: 9999px;
  background: transparent;
  color: #64748b;
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  font-size: 11px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  user-select: none;
}

.segment-btn svg {
  width: 22px;
  height: 22px;
  opacity: 0.85;
  transition: all 0.2s;
}

.segment-btn:hover {
  color: #334155;
}

.segment-btn.active {
  background: #eef2f6;
  color: #0f172a;
  font-weight: 700;
  border: none;
  box-shadow: none;
}
.segment-btn.active svg {
  opacity: 1;
  color: #0f172a;
}

/* ======================================================
   4. TAB CONTENTS & CONTACT LISTS
   ====================================================== */
.tab-content-container,
main.tab-content-container {
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  overscroll-behavior-y: contain !important;
  -webkit-overflow-scrolling: touch !important;
  box-sizing: border-box !important;
  touch-action: pan-y !important;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.phone-frame-wrapper.keypad-active .tab-content-container {
  overflow: hidden; /* Keypad view stays 100% within phone screen with no scrollbars */
}

.tab-pane {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  animation: fadeInPane 0.22s ease-out;
}

@keyframes fadeInPane {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.contacts-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

#wallet-tutorials-section,
#wallet-balance-section,
#wallet-rewards-section,
#wallet-history-section {
  scroll-margin-top: 58px;
}

.group-header-label {
  font-family: var(--font-main);
  font-size: 10.5px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-left: 2px;
}

.group-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.btn-clear-contacts {
  background: transparent;
  border: none;
  color: #64748b;
  font-family: var(--font-main);
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.btn-clear-contacts:hover {
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.06);
}

/* Polished Light Mode Contact & Wallet Card */
.contact-card-row {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
}

.contact-card-row:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.contact-avatar-wrap {
  position: relative;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.contact-initials-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-main);
  font-size: 11.5px;
  font-weight: 700;
  color: #f1f5f9;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  box-shadow: 
    0 3px 10px rgba(0, 0, 0, 0.45),
    inset 0 1.5px 1.5px rgba(255, 255, 255, 0.45),
    inset 0 -1px 1px rgba(0, 0, 0, 0.35);
  transition: all 0.2s ease;
}

.contact-initials-avatar.avatar-blue {
  background: linear-gradient(145deg, #0284c7 0%, #1e40af 100%);
  border: 1px solid rgba(56, 189, 248, 0.5);
}

.contact-initials-avatar.avatar-cyan {
  background: linear-gradient(145deg, #0891b2 0%, #0369a1 100%);
  border: 1px solid rgba(34, 211, 238, 0.5);
}

.contact-initials-avatar.avatar-emerald {
  background: linear-gradient(145deg, #059669 0%, #047857 100%);
  border: 1px solid rgba(52, 211, 153, 0.5);
}

.contact-initials-avatar.avatar-amber {
  background: linear-gradient(145deg, #d97706 0%, #b45309 100%);
  border: 1px solid rgba(251, 191, 36, 0.5);
}

.contact-status-online {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 8.5px;
  height: 8.5px;
  border-radius: 50%;
  background: #10b981;
  border: 1.5px solid #0a0e1a;
  box-shadow: 0 0 6px #10b981;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.contact-name {
  font-family: var(--font-main);
  font-size: 14.5px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-subtitle {
  font-family: var(--font-main);
  font-size: 11px;
  font-weight: 500;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-subtitle-phone {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-action-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.btn-action-pill {
  padding: 7px 13px;
  font-family: var(--font-main);
  font-size: 11.5px;
  font-weight: 700;
  border-radius: 9999px;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  border: none;
}

.btn-pill-audio {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #94a3b8;
  box-shadow: 
    0 3px 10px rgba(0, 0, 0, 0.3),
    inset 0 1px 1.5px rgba(255, 255, 255, 0.3);
}

.btn-pill-audio:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.08) 100%);
  color: #cbd5e1;
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.4);
}

.btn-pill-video {
  background: linear-gradient(180deg, #0ea5e9 0%, #0284c7 50%, #0369a1 100%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #f1f5f9;
  box-shadow: 
    0 4px 16px rgba(2, 132, 199, 0.45),
    inset 0 1.5px 1.5px rgba(255, 255, 255, 0.6),
    inset 0 -1px 1px rgba(0, 0, 0, 0.35);
}

.btn-pill-video:hover {
  transform: translateY(-1px) scale(1.05);
  box-shadow: 
    0 6px 22px rgba(2, 132, 199, 0.65),
    inset 0 1.5px 2px rgba(255, 255, 255, 0.7);
  background: linear-gradient(180deg, #38bdf8 0%, #0ea5e9 50%, #0284c7 100%);
}

.dynamic-contacts-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

/* ======================================================
   TAB 2: SEARCH & ALL CONTACTS
   ====================================================== */
.search-bar-wrap {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 20px;
  padding: 9px 16px;
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  box-shadow: 
    0 6px 22px rgba(0, 0, 0, 0.45),
    inset 0 1px 1px #ffffff;
  transition: all 0.22s ease;
}

.search-bar-wrap:focus-within {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.55), 0 0 0 2px #38bdf8;
}

.search-glass-icon {
  font-size: 13.5px;
  color: #64748b;
}

.search-input-field {
  background: transparent;
  border: none;
  color: #0f172a;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 500;
  width: 100%;
  outline: none;
}

.search-input-field::placeholder {
  color: #64748b;
  font-size: 12.5px;
}

.btn-search-clear {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 12px;
  cursor: pointer;
}

.search-dial-banner {
  background: linear-gradient(145deg, rgba(18, 28, 54, 0.95) 0%, rgba(10, 15, 30, 0.96) 100%);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 18px;
  padding: 13px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.5),
    inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.phonebook-tools-bar {
  display: flex;
  gap: 8px;
  width: 100%;
}

.btn-tool-tile {
  flex: 1;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 10px 12px;
  color: #64748b;
  font-family: var(--font-main);
  font-size: 11.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.22s ease;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.18);
}

.btn-tool-tile:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.06) 100%);
  color: #94a3b8;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3), inset 0 1px 1.5px rgba(255, 255, 255, 0.3);
}

/* ======================================================
   TAB 3: INTERACTIVE GLOWING KEYPAD (Crystal Glass Beads)
   ====================================================== */
#tab-keypad {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  gap: 0;
  padding: 0;
}

/* Keypad display styles are consolidated in the Android Native Keypad section */

.keypad-ussd-preview-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 10px;
  padding: clamp(3px, 0.6vh, 5px) 8px;
  margin-bottom: clamp(4px, 0.8vh, 6px);
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.keypad-ussd-preview-pill:hover {
  background: rgba(16, 185, 129, 0.16);
  border-color: #10b981;
  transform: translateY(-1px);
}

.ussd-pill-badge {
  font-size: 9.5px;
  font-weight: 800;
  color: #34d399;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.ussd-pill-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(9.5px, 2.4vw, 11px);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.3px;
}

.ussd-pill-tag {
  font-size: 8.5px;
  font-weight: 700;
  color: #a7f3d0;
  background: rgba(16, 185, 129, 0.2);
  padding: 2px 5px;
  border-radius: 5px;
}

.keypad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(3px, 0.8vh, 6px);
  width: 100%;
  max-width: 275px;
  margin: 0 auto clamp(3px, 0.8vh, 6px) auto;
  flex-shrink: 0;
}

.keypad-btn {
  width: clamp(42px, 11.5vw, 54px);
  height: clamp(42px, 11.5vw, 54px);
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.03) 60%, rgba(0, 0, 0, 0.2) 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin: 0 auto;
  transition: all 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.4),
    inset 0 1.5px 1.5px rgba(255, 255, 255, 0.35),
    inset 0 -1px 1px rgba(0, 0, 0, 0.4);
  user-select: none;
  -webkit-user-select: none;
}

.keypad-btn:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.08) 60%, rgba(0, 0, 0, 0.15) 100%);
  border-color: rgba(56, 189, 248, 0.5);
  transform: scale(1.06);
  box-shadow: 
    0 6px 18px rgba(0, 0, 0, 0.5),
    0 0 12px rgba(2, 132, 199, 0.2),
    inset 0 2px 2px rgba(255, 255, 255, 0.5);
}

.keypad-btn:active {
  transform: scale(0.92);
  background: rgba(2, 132, 199, 0.3);
}

.key-digit {
  font-family: var(--font-main);
  font-size: clamp(15px, 3.8vw, 19px);
  font-weight: 700;
  color: #94a3b8;
  line-height: 1;
}

.key-letters {
  font-family: var(--font-main);
  font-size: 7px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.1em;
  margin-top: 1px;
  line-height: 1;
}

.keypad-call-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(10px, 3vw, 16px);
  width: 100%;
  margin-top: auto;
  padding-bottom: 2px;
  flex-shrink: 0;
}

.btn-keypad-call {
  width: clamp(44px, 11.5vw, 50px);
  height: clamp(44px, 11.5vw, 50px);
  border-radius: 50%;
  background: linear-gradient(180deg, #34d399 0%, #10b981 50%, #059669 100%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #f8fafc;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 
    0 6px 18px rgba(16, 185, 129, 0.5),
    inset 0 2px 2px rgba(255, 255, 255, 0.6),
    inset 0 -1px 2px rgba(0, 0, 0, 0.4);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
  gap: 1px;
}

.btn-keypad-call span {
  font-size: clamp(14px, 3.5vw, 17px);
  line-height: 1;
}

.btn-keypad-call small {
  font-size: 6.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0.95;
}

.btn-keypad-call:hover {
  transform: scale(1.07);
  box-shadow: 0 10px 26px rgba(16, 185, 129, 0.7), inset 0 2px 3px rgba(255, 255, 255, 0.7);
}

.btn-keypad-ussd {
  background: linear-gradient(180deg, #10b981 0%, #047857 50%, #064e3b 100%);
  border-color: #34d399;
  box-shadow: 
    0 6px 18px rgba(16, 185, 129, 0.6),
    0 0 12px rgba(52, 211, 153, 0.3),
    inset 0 2px 2px rgba(255, 255, 255, 0.6);
  position: relative;
}

.btn-keypad-ussd:hover {
  background: linear-gradient(180deg, #34d399 0%, #10b981 50%, #047857 100%);
  box-shadow: 0 10px 26px rgba(52, 211, 153, 0.8), inset 0 2px 3px rgba(255, 255, 255, 0.8);
}

.btn-keypad-video {
  background: linear-gradient(180deg, #38bdf8 0%, #0284c7 50%, #0369a1 100%);
  color: #f8fafc;
  box-shadow: 
    0 6px 18px rgba(2, 132, 199, 0.5),
    inset 0 2px 2px rgba(255, 255, 255, 0.6),
    inset 0 -1px 2px rgba(0, 0, 0, 0.4);
}

.btn-keypad-video:hover {
  box-shadow: 0 10px 26px rgba(2, 132, 199, 0.7), inset 0 2px 3px rgba(255, 255, 255, 0.7);
  background: linear-gradient(180deg, #7dd3fc 0%, #38bdf8 50%, #0284c7 100%);
}

/* ======================================================
   5. LIVE INCOMING CALL FULLSCREEN STAGE (SAMSUNG ONE UI / ANDROID)
   ====================================================== */
.incoming-call-backdrop {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  z-index: 9999999 !important;
  margin: 0 !important;
  display: none;
  flex-direction: column !important;
  justify-content: space-between !important;
  align-items: center !important;
  box-sizing: border-box !important;
  padding-top: max(48px, env(safe-area-inset-top, 48px)) !important;
  padding-bottom: max(48px, env(safe-area-inset-bottom, 48px)) !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
  background: 
    radial-gradient(circle 380px at 50% 10%, rgba(2, 132, 199, 0.08) 0%, transparent 70%),
    radial-gradient(circle 420px at 80% 80%, rgba(16, 185, 129, 0.06) 0%, transparent 65%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 45%, #f1f5f9 100%) !important;
  color: #0f172a !important;
  overflow: hidden !important;
  -webkit-font-smoothing: antialiased;
}

.incoming-call-backdrop.open,
.incoming-call-backdrop.active {
  display: flex !important;
}

/* Incoming Call Status Header */
.incoming-call-status-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #64748b !important;
}

.incoming-call-pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #0284c7;
  box-shadow: 0 0 12px rgba(2, 132, 199, 0.7);
  animation: dotBlink 1.2s infinite ease-in-out;
}

@keyframes dotBlink {
  0%, 100% { opacity: 0.35; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.25); }
}

.incoming-call-status-text {
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 700;
  color: #475569 !important;
  letter-spacing: 0.02em;
}

/* Incoming Call Hero Details */
.incoming-call-hero-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 360px;
  color: #0f172a !important;
}

.incoming-caller-avatar-ring {
  position: relative;
  width: 116px;
  height: 116px;
  margin: 0 auto 20px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.incoming-initials-display {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid #ffffff;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-main);
  font-size: 38px;
  font-weight: 800;
  color: #ffffff !important;
  position: relative;
  z-index: 2;
  box-shadow: 
    0 12px 30px rgba(2, 132, 199, 0.35),
    inset 0 1.5px 2px rgba(255, 255, 255, 0.5);
}

.incoming-ring-pulse {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2.5px solid rgba(2, 132, 199, 0.45);
  animation: ringPulse 1.8s infinite ease-out;
  z-index: 1;
}

.incoming-caller-name {
  font-family: var(--font-main);
  font-size: 32px;
  font-weight: 800;
  color: #0f172a !important;
  margin: 0 0 6px 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.incoming-caller-location {
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 600;
  color: #64748b !important;
  margin-bottom: 4px;
}

.incoming-caller-handle {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 600;
  color: #0284c7 !important;
  letter-spacing: 0.01em;
}

/* Android Action Bar at Bottom */
.android-incoming-actions-wrap {
  width: 100%;
  max-width: 360px;
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.android-incoming-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 100%;
  gap: 20px;
}

.android-incoming-btn-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 72px;
}

.btn-android-incoming-circle {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.btn-android-incoming-circle:active {
  transform: scale(0.92);
}

.btn-incoming-decline {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  box-shadow: 0 10px 24px rgba(239, 68, 68, 0.45) !important;
  color: #ffffff !important;
}

.btn-incoming-video {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  box-shadow: 0 10px 24px rgba(2, 132, 199, 0.45) !important;
  color: #ffffff !important;
}

.btn-incoming-accept {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
  box-shadow: 0 10px 24px rgba(34, 197, 94, 0.45) !important;
  color: #ffffff !important;
  animation: greenAnswerPulse 2s infinite ease-in-out;
}

@keyframes greenAnswerPulse {
  0%, 100% {
    box-shadow: 0 10px 24px rgba(34, 197, 94, 0.45);
  }
  50% {
    box-shadow: 0 10px 32px rgba(34, 197, 94, 0.75), 0 0 0 10px rgba(34, 197, 94, 0.2);
  }
}

.android-incoming-label {
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 700;
  color: #475569 !important;
  letter-spacing: 0.02em;
}

/* ======================================================
   6. ACTIVE IN-CALL FULLSCREEN STAGE (100% PHONE FRAME IS VIDEO)
   ====================================================== */
.active-call-fullscreen-overlay {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  z-index: 99999999 !important;
  display: none;
  flex-direction: column !important;
  color: #ffffff !important;
  border-radius: 0 !important;
  overflow: hidden;
}

.active-call-fullscreen-overlay.open,
.active-call-fullscreen-overlay.active {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 99999999 !important;
}

.active-call-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px 26px 20px;
  background: linear-gradient(180deg, rgba(5, 7, 15, 0.9) 0%, rgba(5, 7, 15, 0.4) 60%, transparent 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 10;
}

.active-call-timer-pill {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.25) 0%, rgba(5, 150, 105, 0.15) 100%);
  border: 1px solid rgba(52, 211, 153, 0.5);
  color: #34d399;
  border-radius: 9999px;
  padding: 5px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 
    0 0 16px rgba(16, 185, 129, 0.35),
    inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.active-call-stage-body {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(circle at 50% 50%, #0f1934 0%, #04060d 100%);
  z-index: 1;
}

.active-remote-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  z-index: 2;
  border-radius: inherit;
}

.active-remote-video.visible {
  display: block !important;
}

.active-call-audio-avatar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  z-index: 3;
}

.incall-audio-initials-ring {
  width: 94px;
  height: 94px;
  border-radius: 50%;
  background: linear-gradient(145deg, #0284c7 0%, #1d4ed8 100%);
  border: 2.5px solid #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  color: #f8fafc;
  box-shadow: 
    0 0 50px rgba(2, 132, 199, 0.6),
    inset 0 2px 2px rgba(255, 255, 255, 0.5);
  animation: floatPulse 3s infinite ease-in-out;
}

@keyframes floatPulse {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-6px) scale(1.02); }
}

.active-pip-local-video {
  position: absolute;
  bottom: 90px;
  right: 18px;
  width: 98px;
  height: 140px;
  border-radius: 18px;
  border: 2px solid #38bdf8;
  object-fit: cover;
  background: #020617;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.9), 0 0 25px rgba(6, 182, 212, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.3);
  z-index: 20;
  display: none;
}

.active-pip-local-video.visible {
  display: block !important;
}

.active-call-bottom-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 24px 20px 30px 20px;
  background: linear-gradient(0deg, rgba(5, 7, 15, 0.94) 0%, rgba(5, 7, 15, 0.5) 60%, transparent 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 10;
}

.btn-call-ctrl {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.03) 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #94a3b8;
  font-size: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 
    0 4px 14px rgba(0, 0, 0, 0.4),
    inset 0 1.5px 1.5px rgba(255, 255, 255, 0.3);
  transition: all 0.22s ease;
}

.btn-call-ctrl:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.06) 100%);
  color: #cbd5e1;
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5), inset 0 2px 2px rgba(255, 255, 255, 0.4);
}

.btn-call-ctrl.muted {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.35) 0%, rgba(185, 28, 28, 0.2) 100%);
  border-color: #ef4444;
  color: #fca5a5;
}

.btn-call-hangup {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(180deg, #f87171 0%, #ef4444 50%, #dc2626 100%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  font-size: 23px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 
    0 8px 28px rgba(239, 68, 68, 0.7),
    inset 0 2px 2px rgba(255, 255, 255, 0.6),
    inset 0 -1px 2px rgba(0, 0, 0, 0.4);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-call-hangup:hover {
  transform: translateY(-2px) scale(1.08);
  box-shadow: 0 12px 35px rgba(239, 68, 68, 0.85), inset 0 2px 3px rgba(255, 255, 255, 0.7);
}

/* Floating Toast Message (Liquid Glass Pill) */
.toast-container {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
  width: 90%;
}

.toast-message {
  background: linear-gradient(145deg, rgba(18, 28, 54, 0.96) 0%, rgba(10, 14, 28, 0.98) 100%);
  backdrop-filter: blur(28px) saturate(210%);
  -webkit-backdrop-filter: blur(28px) saturate(210%);
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #94a3b8;
  padding: 10px 20px;
  border-radius: 9999px;
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 600;
  box-shadow: 
    0 12px 35px rgba(0, 0, 0, 0.85),
    0 0 25px rgba(2, 132, 199, 0.3),
    inset 0 1.5px 1.5px rgba(255, 255, 255, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  animation: toastSlideUp 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes toastSlideUp {
  from { opacity: 0; transform: translateY(14px) scale(0.94); }
  to { opacity: 1; transform: translateY(0); }
}

/* Live Audio Visualizer */
.audio-vu-meter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 24px;
  margin-top: 10px;
  padding: 4px 10px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.08) 100%);
  border: 1px solid rgba(52, 211, 153, 0.35);
  border-radius: 9999px;
}

.vu-bar {
  width: 3px;
  height: 6px;
  background: #10b981;
  border-radius: 2px;
  transition: all 0.08s ease;
}

.audio-vu-meter.active .vu-bar:nth-child(1) { animation: vuPulse 0.4s infinite ease-in-out alternate; }
.audio-vu-meter.active .vu-bar:nth-child(2) { animation: vuPulse 0.3s infinite ease-in-out alternate 0.1s; }
.audio-vu-meter.active .vu-bar:nth-child(3) { animation: vuPulse 0.5s infinite ease-in-out alternate 0.05s; }
.audio-vu-meter.active .vu-bar:nth-child(4) { animation: vuPulse 0.35s infinite ease-in-out alternate 0.15s; }
.audio-vu-meter.active .vu-bar:nth-child(5) { animation: vuPulse 0.45s infinite ease-in-out alternate 0.08s; }

@keyframes vuPulse {
  0% { height: 4px; background: #10b981; }
  100% { height: 16px; background: #34d399; box-shadow: 0 0 10px rgba(52, 211, 153, 0.9); }
}

/* ======================================================
   AVAILABILITY & OFFICE HOURS MODAL
   ====================================================== */
.availability-modal-backdrop {
  position: fixed;
  inset: 0;
  background: var(--bg-modal-backdrop, rgba(5, 7, 15, 0.75));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.2s ease-out;
}

.availability-modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4), 0 0 40px rgba(16, 185, 129, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.15);
  color: var(--color-text-primary);
  padding: 22px;
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.availability-modal-card h3,
.availability-modal-card h4 {
  color: var(--color-text-primary);
}

.availability-modal-card p {
  color: var(--color-text-secondary);
}

.availability-modal-card label {
  color: var(--color-text-muted);
}

.availability-modal-card input,
.availability-modal-card select {
  background: var(--bg-keypad-btn);
  border: 1.5px solid var(--border-container);
  color: var(--color-text-primary);
}

.availability-modal-card input:focus,
.availability-modal-card select:focus {
  border-color: #10b981;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.3);
}

.availability-modal-card input::placeholder {
  color: var(--color-text-muted);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-title-wrap h3 {
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0;
}

.modal-close-btn {
  background: var(--bg-url);
  border: 1px solid var(--border-url);
  color: var(--color-text-secondary);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.availability-status-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  color: #38bdf8;
}

.availability-mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.avail-mode-tab {
  background: var(--bg-url);
  border: 1px solid var(--border-url);
  border-radius: 12px;
  padding: 10px 8px;
  color: var(--color-text-secondary);
  font-family: var(--font-main);
  font-size: 11.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.avail-mode-tab:hover {
  background: var(--bg-row-hover);
  color: var(--color-text-primary);
}

.avail-mode-tab.active {
  background: var(--bg-nav-active-pill);
  border-color: #38bdf8;
  color: #38bdf8;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.25);
}

.avail-section {
  background: var(--bg-drawer);
  border: 1px solid var(--border-container);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.avail-label {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.time-range-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.time-input-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.time-input-wrap span {
  font-size: 10.5px;
  color: var(--color-text-secondary);
}

.avail-time-input {
  background: var(--bg-url);
  border: 1px solid var(--border-url);
  border-radius: 8px;
  padding: 6px 10px;
  color: var(--color-text-primary);
  font-family: var(--font-main);
  font-size: 13px;
  outline: none;
}

.avail-time-input:focus {
  border-color: #38bdf8;
}

.time-separator {
  color: var(--color-text-muted);
  font-size: 12px;
  margin-top: 16px;
}

.days-chips-row {
  display: flex;
  gap: 6px;
  justify-content: space-between;
}

.day-chip {
  flex: 1;
  height: 32px;
  border-radius: 8px;
  background: var(--bg-url);
  border: 1px solid var(--border-url);
  color: var(--color-text-secondary);
  font-weight: 700;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.day-chip.active {
  background: var(--bg-nav-active-pill);
  border-color: #38bdf8;
  color: #38bdf8;
}

.quick-timer-chips {
  display: flex;
  gap: 8px;
}

.quick-chip {
  flex: 1;
  padding: 8px 4px;
  border-radius: 10px;
  background: var(--bg-url);
  border: 1px solid var(--border-url);
  color: var(--color-text-secondary);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quick-chip.active {
  background: var(--bg-nav-active-pill);
  border-color: #38bdf8;
  color: #38bdf8;
}

.btn-save-availability {
  width: 100%;
  padding: 10px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #fff;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.35);
  transition: all 0.2s ease;
}

.btn-save-availability:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.5);
}

.social-share-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
}

.social-share-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid var(--border-url);
}

.social-icon-box {
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-share-btn.share-whatsapp {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border-color: rgba(34, 197, 94, 0.3);
}
.social-share-btn.share-whatsapp:hover {
  background: rgba(34, 197, 94, 0.2);
}

.social-share-btn.share-facebook {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  border-color: rgba(59, 130, 246, 0.3);
}
.social-share-btn.share-facebook:hover {
  background: rgba(59, 130, 246, 0.2);
}

.social-share-btn.share-x {
  background: var(--bg-url);
  color: var(--color-text-primary);
  border-color: var(--border-url);
}
.social-share-btn.share-x:hover {
  background: var(--bg-row-hover);
}

.social-share-btn.share-instagram {
  background: rgba(236, 72, 153, 0.1);
  color: #ec4899;
  border-color: rgba(236, 72, 153, 0.3);
}
.social-share-btn.share-instagram:hover {
  background: rgba(236, 72, 153, 0.2);
}

.social-share-btn.share-tiktok {
  background: rgba(14, 165, 233, 0.1);
  color: #0ea5e9;
  border-color: rgba(14, 165, 233, 0.3);
}
.social-share-btn.share-tiktok:hover {
  background: rgba(14, 165, 233, 0.2);
}

.social-share-btn.share-copy {
  background: var(--bg-keypad-btn);
  color: var(--color-text-secondary);
  border-color: var(--border-container);
}
.social-share-btn.share-copy:hover {
  background: var(--bg-keypad-btn-active);
  color: var(--color-text-primary);
}



/* Ensure per‑link action buttons are on top and receive pointer events */
.link-item .btn-link-paid,
.link-item .btn-link-share,
.link-item .btn-link-schedule,
.link-item .btn-link-delete {
  position: relative;
  z-index: 10;
  pointer-events: auto;
}

/* Per‑link action buttons styling (matching btn-header-icon style) */
.btn-link-paid,
.btn-link-share,
.btn-link-schedule,
.btn-link-delete {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.03) 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #94a3b8;
  font-size: 13.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.3),
    inset 0 1px 1px rgba(255, 255, 255, 0.3);
  transition: all 0.2s ease;
  padding: 0;
  margin: 0;
  line-height: 1;
}

.btn-link-paid {
  font-family: var(--font-main, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.5px;
}

.btn-link-paid:hover,
.btn-link-share:hover,
.btn-link-schedule:hover,
.btn-link-delete:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.06) 100%);
  color: #cbd5e1;
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4), inset 0 1px 1.5px rgba(255, 255, 255, 0.45);
}

/* Ensure top‑link action buttons receive pointer events */
.top-link-actions {
  pointer-events: auto;
  display: flex;
  gap: 0.5rem;
}

.top-link-actions button:hover {
  opacity: 0.9;
}

/* Inline + Create Link Button */
.btn-create-link-inline {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--color-text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: all 0.18s ease;
  padding: 0;
  margin: 0;
  line-height: 1;
}

.btn-create-link-inline:hover {
  background: var(--bg-row-hover);
  color: var(--color-text-primary);
  transform: scale(1.08);
}

/* ─── Knock Handles Tab ─── */
.top-links-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 0;
}

.top-link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  min-width: 0;
  gap: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.top-link-card:hover {
  background: var(--bg-row-hover);
  border-color: rgba(56, 189, 248, 0.5);
}

.top-link-card-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.top-link-card-text {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
}

.top-link-card-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.link-prefix {
  color: var(--color-text-secondary);
  font-size: 13.5px;
  font-weight: 500;
  font-family: var(--font-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
}

.link-suffix-input {
  background: transparent;
  border: none;
  border-bottom: 1.5px dashed rgba(2, 132, 199, 0.45);
  color: var(--color-text-primary);
  font-size: 13.5px;
  font-family: var(--font-main);
  font-weight: 700;
  padding: 1px 4px;
  min-width: 70px;
  width: auto;
  max-width: 140px;
  flex-shrink: 0;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.link-suffix-input:hover {
  border-bottom-color: rgba(2, 132, 199, 0.8);
}

.link-suffix-input:focus {
  border-bottom: 1.5px solid var(--color-accent, #0284c7);
  background: rgba(56, 189, 248, 0.12);
  border-radius: 4px 4px 0 0;
  color: var(--color-text-primary);
}

.top-link-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.top-link-actions button {
  background: var(--bg-row-hover);
  border: 1px solid var(--border-card);
  color: var(--color-text-primary);
  border-radius: 8px;
  padding: 6px 7px;
  font-size: 12px;
  cursor: pointer;
  line-height: 1;
  transition: background 0.2s ease, transform 0.15s ease;
}

.top-link-actions button:hover {
  background: var(--bg-card);
  transform: scale(1.08);
}

/* Segment‑btn: slightly smaller font so 4 tabs fit */
.segmented-control .segment-btn {
  font-size: 11px;
  gap: 3px;
  padding: 7px 0;
}

/* --- AUTH GATE --- */
.auth-gate-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: #ffffff; z-index: 999999; display: flex; align-items: center; justify-content: center; padding: 24px; transition: opacity 0.4s ease, visibility 0.4s ease; }
.auth-gate-overlay.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.auth-card { width: 100%; max-width: 360px; background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 24px; padding: 32px 24px; display: flex; flex-direction: column; align-items: center; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); }
.auth-logo-wrap { width: 64px; height: 64px; border-radius: 20px; background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%); display: flex; align-items: center; justify-content: center; margin-bottom: 24px; box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3); }
.auth-logo { font-size: 32px; font-weight: 800; color: #fff; font-family: 'Plus Jakarta Sans', sans-serif; }
.auth-title { font-size: 24px; font-weight: 700; color: #fff; margin-bottom: 8px; text-align: center; }
.auth-subtitle { font-size: 14px; color: #94a3b8; text-align: center; margin-bottom: 32px; line-height: 1.5; }
.auth-form-group { width: 100%; margin-bottom: 20px; display: flex; flex-direction: column; gap: 8px; }
.auth-label { font-size: 13px; font-weight: 600; color: #cbd5e1; text-transform: uppercase; letter-spacing: 0.5px; }
.auth-input { width: 100%; background: rgba(0, 0, 0, 0.2); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; padding: 14px 16px; font-size: 16px; color: #fff; outline: none; transition: all 0.2s ease; font-family: inherit; }
.auth-input:focus { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2); background: rgba(0, 0, 0, 0.3); }
.auth-input::placeholder { color: #475569; }
.btn-auth-submit { width: 100%; background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); color: #fff; border: none; border-radius: 12px; padding: 16px; font-size: 16px; font-weight: 700; margin-top: 12px; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; box-shadow: 0 8px 16px rgba(37, 99, 235, 0.3); }
.btn-auth-submit:active { transform: scale(0.98); }


/* ======================================================
   ADVANCED FEATURES: RECENTS, IN-CALL CHAT & POST-CALL
   ====================================================== */

/* Contacts Sub Toggle (Directory / Recents) */
.contacts-sub-toggle-bar {
  display: flex;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 3px;
  margin-bottom: 12px;
  gap: 4px;
}

.sub-toggle-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 8px 12px;
  border-radius: 9px;
  font-family: var(--font-main, 'Plus Jakarta Sans', sans-serif);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.sub-toggle-btn.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2) 0%, rgba(37, 99, 235, 0.2) 100%);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Recents Filters */
.recents-filter-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.recents-filter-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 4px 10px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.recents-filter-chip.active {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38bdf8;
  color: #38bdf8;
}

/* Recents Cards */
.recents-list-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.recent-call-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(20, 26, 46, 0.6) 0%, rgba(12, 17, 34, 0.7) 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 10px 12px;
  transition: all 0.2s ease;
}

.recent-call-card:hover {
  border-color: rgba(56, 189, 248, 0.3);
  background: rgba(20, 26, 46, 0.85);
}

.recent-call-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.recent-call-icon-wrap {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.recent-call-icon-wrap.incoming {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
}

.recent-call-icon-wrap.missed {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.recent-call-icon-wrap.paid {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #f59e0b;
}

.recent-call-info {
  display: flex;
  flex-direction: column;
}

.recent-call-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.recent-call-meta {
  font-size: 11px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.recent-call-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-recent-redial {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.btn-recent-redial:hover {
  background: #10b981;
  color: #fff;
}

.btn-recent-wa {
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.25);
  color: #25d366;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-recent-wa:hover {
  background: #25d366;
  color: #fff;
}

/* In-Call Ephemeral Chat Drawer */
.incall-chat-drawer {
  position: absolute;
  bottom: 90px;
  left: 12px;
  right: 12px;
  height: 240px;
  background: rgba(10, 14, 28, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.incall-chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-chat-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 14px;
  cursor: pointer;
}

.incall-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.incall-chat-empty {
  font-size: 11px;
  color: #64748b;
  text-align: center;
  margin-top: 30px;
  padding: 0 16px;
  line-height: 1.4;
}

.chat-bubble {
  max-width: 80%;
  padding: 6px 10px;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.35;
  word-break: break-word;
}

.chat-bubble.mine {
  align-self: flex-end;
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  color: #fff;
  border-bottom-right-radius: 2px;
}

.chat-bubble.theirs {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  border-bottom-left-radius: 2px;
}

.incall-chat-input-wrap {
  display: flex;
  gap: 6px;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.incall-chat-input-wrap input {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 6px 10px;
  color: #fff;
  font-size: 12px;
  font-family: inherit;
  outline: none;
}

.btn-send-chat {
  background: #38bdf8;
  color: #04101e;
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

/* Post Call Summary Modal (Host) */
.post-call-summary-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(16px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
}

.post-call-summary-card {
  width: 86%;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 20px;
  padding: 24px 20px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.post-call-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.post-stat-box {
  background: var(--bg-url);
  border: 1px solid var(--border-url);
  border-radius: 12px;
  padding: 10px 8px;
}

.stat-label {
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  display: block;
}

.stat-val {
  font-size: 15px;
  font-weight: 800;
  color: #38bdf8;
  margin-top: 2px;
  display: block;
}

.btn-close-summary {
  width: 100%;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}


/* Host Presence & Dead-Air Check */
.host-presence-modal-backdrop {
  position: absolute;
  inset: 0;
  background: var(--bg-modal-backdrop, rgba(0, 0, 0, 0.85));
  backdrop-filter: blur(16px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
}

.host-presence-card {
  width: 88%;
  background: linear-gradient(180deg, #1e1b2e 0%, #0d0e17 100%);
  border: 2px solid #ef4444;
  border-radius: 20px;
  padding: 22px 18px;
  text-align: center;
  box-shadow: 0 0 30px rgba(239, 68, 68, 0.4);
  animation: presencePulse 1.5s infinite alternate;
}

@keyframes presencePulse {
  0% { transform: scale(0.98); box-shadow: 0 0 20px rgba(239, 68, 68, 0.3); }
  100% { transform: scale(1.02); box-shadow: 0 0 40px rgba(239, 68, 68, 0.7); }
}

.presence-countdown-pill {
  display: inline-block;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.btn-confirm-presence {
  width: 100%;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

/* Post-Call Reward, Wallet & Modal Base Theme Styles */
.post-call-completed-title {
  color: #ffffff;
}

.post-call-data-stat {
  color: #34d399;
}

.post-call-reward-brand {
  color: #fbbf24;
}

.post-call-verified-perk {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.post-call-voucher-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

#post-call-reward-headline {
  color: #ffffff;
}

#post-call-reward-desc {
  color: #94a3b8;
}

.post-call-voucher-code-wrap {
  background: rgba(0, 0, 0, 0.45);
  border: 1.5px dashed rgba(56, 189, 248, 0.4);
}

.post-call-voucher-label {
  color: #94a3b8;
}

#post-call-voucher-code {
  color: #10b981;
}

.post-call-minutes-strip {
  background: rgba(168, 85, 247, 0.14);
  border: 1px solid rgba(168, 85, 247, 0.35);
}

.post-call-minutes-title {
  color: #c084fc;
}

.post-call-minutes-subtext {
  color: #94a3b8;
}

#post-call-wallet-minutes {
  color: #ffffff;
}

.btn-view-bank {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-view-bank:hover {
  background: rgba(255, 255, 255, 0.25);
}

.btn-modal-action-subtle {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  transition: all 0.2s ease;
}

.btn-modal-action-subtle:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.contact-modal-knock-section {
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.25);
}

.contact-modal-knock-rail-title {
  color: #c084fc;
}

.contact-modal-knock-handle {
  color: #ffffff;
}

.btn-contact-knock-audio {
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid #c084fc;
  color: #c084fc;
}

.btn-contact-knock-video {
  background: #a855f7;
  border: none;
  color: #ffffff;
}

.pairing-active-handle {
  color: #38bdf8;
}

.pairing-pin-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.pairing-pin-label {
  color: #94a3b8;
}

.btn-pin-action {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #ffffff;
}

.modal-input-wrap {
  background: #0b0f19;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.modal-clean-input {
  color: #ffffff;
}

.modal-pin-input {
  background: #0b0f19;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #10b981;
}

.wallet-spin-strip {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.wallet-spin-title {
  color: #ffffff;
}

.wallet-spin-desc {
  color: #94a3b8;
}

.btn-spin-now {
  background: linear-gradient(135deg, #a855f7 0%, #7e22ce 100%);
  color: #ffffff;
}

.wallet-pass-card {
  background: rgba(2, 132, 199, 0.1);
  border: 1px solid rgba(2, 132, 199, 0.3);
}

.wallet-pass-brand {
  color: #38bdf8;
}

.wallet-pass-pill {
  background: #0284c7;
  color: #ffffff;
}

.wallet-pass-desc {
  color: #e2e8f0;
}

.btn-unlock-pass {
  background: rgba(2, 132, 199, 0.25);
  border: 1px solid rgba(2, 132, 199, 0.5);
  color: #38bdf8;
}

.direct-gsm-guarantee {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.direct-gsm-guarantee-bold {
  color: #34d399;
}

/* ========================================================
   📱 PHONEBOOK SYNC & DEFAULT CALLER STYLES
   ======================================================== */
.subtab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  font-size: 9.5px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 10px;
  margin-left: 4px;
}

.btn-tool-primary {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.25) 0%, rgba(3, 105, 161, 0.15) 100%) !important;
  border-color: rgba(56, 189, 248, 0.4) !important;
  color: #38bdf8 !important;
}

.phone-contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 10px 12px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.phone-contact-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(56, 189, 248, 0.3);
  transform: translateY(-1px);
}

.phone-number-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 8px 12px;
}

.phone-number-digits {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
}

.phone-type-badge {
  font-size: 9px;
  text-transform: uppercase;
  color: #94a3b8;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
}

.phone-action-btns {
  display: flex;
  gap: 5px;
}

.contact-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 9px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: transform 0.15s ease;
}

.contact-action-btn:hover {
  transform: scale(1.05);
}

.contact-action-btn.btn-ussd {
  background: linear-gradient(135deg, #008751 0%, #005a36 100%);
  color: #fff;
}

.contact-action-btn.btn-tel {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
}

.contact-action-btn.btn-whatsapp {
  background: rgba(37, 211, 102, 0.15);
  border: 1px solid rgba(37, 211, 102, 0.4);
  color: #25d366;
}

/* ========================================================
   🤖 ANDROID MATERIAL PHONEBOOK PRESENTATION
   ======================================================== */
.android-phonebook-container {
  position: relative;
  width: 100%;
}

.android-letter-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  color: #0284c7;
  letter-spacing: 0.06em;
  margin: 14px 0 6px 4px;
  text-transform: uppercase;
}

.android-letter-header:first-of-type,
.android-phonebook-container > .android-letter-header:first-child,
#phonebook-contacts-list > .android-letter-header:first-child {
  margin-top: 2px;
}

.android-letter-header::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, #e2e8f0 0%, transparent 100%);
}

.android-contacts-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: transparent !important;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
  overflow: visible !important;
  margin-bottom: 8px;
}

.android-contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border-divider);
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
}

.android-contact-row:hover {
  background: var(--bg-row-hover);
}

.android-contact-row:last-child {
  border-bottom: none;
}

.android-contact-row.expanded {
  background: var(--bg-row-expanded);
}

.contact-quick-actions {
  display: none;
  padding: 8px 16px 10px 16px;
  background: var(--bg-row-hover);
  border-bottom: 1px solid var(--border-divider);
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  animation: slideDownFade 0.2s ease-out;
}

.android-contact-row.expanded + .contact-quick-actions {
  display: flex;
}

.android-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
  box-shadow: none;
}

.android-avatar.avatar-blue, .avatar-blue { background: rgba(2, 132, 199, 0.12); color: #0284c7; border: 1px solid rgba(2, 132, 199, 0.22); }
.android-avatar.avatar-cyan, .avatar-cyan { background: rgba(8, 145, 178, 0.12); color: #0891b2; border: 1px solid rgba(8, 145, 178, 0.22); }
.android-avatar.avatar-amber, .avatar-amber { background: rgba(217, 119, 6, 0.12); color: #d97706; border: 1px solid rgba(217, 119, 6, 0.22); }
.android-avatar.avatar-rose, .avatar-rose { background: rgba(225, 29, 72, 0.12); color: #e11d48; border: 1px solid rgba(225, 29, 72, 0.22); }
.android-avatar.avatar-emerald, .avatar-emerald { background: rgba(5, 150, 105, 0.12); color: #059669; border: 1px solid rgba(5, 150, 105, 0.22); }
.android-avatar.avatar-purple, .avatar-purple { background: rgba(147, 51, 234, 0.12); color: #9333ea; border: 1px solid rgba(147, 51, 234, 0.22); }
.android-avatar.avatar-teal, .avatar-teal { background: rgba(13, 148, 136, 0.12); color: #0d9488; border: 1px solid rgba(13, 148, 136, 0.22); }

@media (prefers-color-scheme: dark) {
  .android-avatar.avatar-blue, .avatar-blue { background: rgba(56, 189, 248, 0.14); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.25); }
  .android-avatar.avatar-cyan, .avatar-cyan { background: rgba(34, 211, 238, 0.14); color: #22d3ee; border: 1px solid rgba(34, 211, 238, 0.25); }
  .android-avatar.avatar-amber, .avatar-amber { background: rgba(251, 191, 36, 0.14); color: #fbbf24; border: 1px solid rgba(251, 191, 36, 0.25); }
  .android-avatar.avatar-rose, .avatar-rose { background: rgba(251, 113, 133, 0.14); color: #fb7185; border: 1px solid rgba(251, 113, 133, 0.25); }
  .android-avatar.avatar-emerald, .avatar-emerald { background: rgba(52, 211, 153, 0.14); color: #34d399; border: 1px solid rgba(52, 211, 153, 0.25); }
  .android-avatar.avatar-purple, .avatar-purple { background: rgba(192, 132, 252, 0.14); color: #c084fc; border: 1px solid rgba(192, 132, 252, 0.25); }
  .android-avatar.avatar-teal, .avatar-teal { background: rgba(45, 212, 191, 0.14); color: #2dd4bf; border: 1px solid rgba(45, 212, 191, 0.25); }
}

.btn-contact-quick-call {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.18s ease;
}

.btn-contact-quick-call:hover {
  background: #10b981;
  color: #ffffff;
  border-color: #10b981;
  transform: scale(1.05);
}

.btn-contact-quick-call:active {
  transform: scale(0.95);
}

.android-contact-info {
  flex: 1;
  min-width: 0;
  margin-left: 12px;
  text-align: left;
}

.android-contact-name {
  font-size: 14px;
  font-weight: 600;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 5px;
}

.android-contact-subtitle {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 4px;
}

.android-type-dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #64748b;
}

.android-actions-group {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  margin-left: auto;
}

.btn-contact-quick-call {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #22c55e;
  color: #ffffff;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.4);
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}

.btn-contact-quick-call:hover {
  background: #16a34a;
  transform: scale(1.08);
}

.btn-contact-quick-call:active {
  transform: scale(0.92);
  background: #15803d;
}

/* Section B Style: Clean, Subtle, Standard Android Translucent Pill Buttons */
.btn-android-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.btn-android-action:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.btn-android-action:active {
  transform: scale(0.95);
  background: rgba(255, 255, 255, 0.24);
}

.btn-android-action svg {
  display: block;
  stroke: currentColor;
  transition: transform 0.15s ease;
}

.btn-android-action.btn-ussd {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #4ade80;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.btn-android-action.btn-ussd:hover {
  background: rgba(34, 197, 94, 0.22);
  border-color: rgba(34, 197, 94, 0.5);
  color: #ffffff;
}

.btn-android-action.btn-call,
.btn-android-action.btn-video {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

/* ========================================================
   👑 DUAL-PERSONA SWITCHER (FREE ANONYMOUS vs CREATOR STUDIO)
   ======================================================== */
.persona-mode-bar {
  display: flex;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 4px;
  margin: 10px 14px 14px 14px;
  gap: 4px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.persona-switch-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 12px;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.persona-switch-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.persona-switch-btn.active {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.35) 0%, rgba(3, 105, 161, 0.2) 100%);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  box-shadow: 0 2px 10px rgba(56, 189, 248, 0.2);
}

.persona-switch-btn[data-action="set-persona-creator"].active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.3) 0%, rgba(217, 119, 6, 0.2) 100%);
  border-color: rgba(245, 158, 11, 0.5);
  color: #fbbf24;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.25);
}

.creator-promo-card {
  margin: 18px 14px 10px 14px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 16px;
  padding: 14px 16px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.creator-promo-card:hover {
  border-color: rgba(245, 158, 11, 0.5);
  transform: translateY(-1px);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18) 0%, rgba(15, 23, 42, 0.9) 100%);
}

.creator-promo-badge {
  display: inline-flex;
  align-items: center;
  font-size: 9.5px;
  font-weight: 800;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 2px 8px;
  border-radius: 12px;
  margin-bottom: 6px;
}

.creator-promo-title {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 2px;
}

.creator-promo-desc {
  font-size: 11px;
  color: #cbd5e1;
  line-height: 1.4;
  margin-bottom: 10px;
}

.btn-creator-promo-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #0f172a;
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

/* ========================================================
   📱 AUTHENTIC ANDROID / SAMSUNG PHONE DIALER & RECENTS
   ======================================================== */
#tab-calls {
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 520px;
  padding-bottom: 75px; /* Leave space for floating pill bar */
}

.calls-subview {
  width: 100%;
}

.calls-top-tools-wrap {
  margin-bottom: 4px;
}

/* Android Recents Native Header Icons */
.android-recents-header-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 4px 4px 4px;
  width: 100%;
  box-sizing: border-box;
}

.recents-header-right-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-recents-hdr-icon {
  background: transparent;
  border: none;
  color: var(--color-text-secondary);
  padding: 6px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.btn-recents-hdr-icon:hover {
  color: var(--color-text-primary);
  background: var(--bg-row-hover);
}

/* Android Recents Call Log Container */
/* No wrapper card — individual rows float directly on the grey page background */
.android-recents-container {
  display: flex;
  flex-direction: column;
  gap: 0px;
  background: transparent;
  border-radius: 0;
  border: none;
  overflow: visible;
}

.android-recents-group-header {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-secondary);
  padding: 14px 16px 8px 16px;
  letter-spacing: 0.2px;
}

.android-recent-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border-divider);
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
}

.android-recent-row:hover {
  background: var(--bg-row-hover);
}

.android-recent-row:last-child {
  border-bottom: none;
}

.recent-left-group {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.recent-dir-icon {
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
}

.recent-dir-icon.outgoing {
  color: #22c55e; /* Green ↗ */
}

.recent-dir-icon.incoming {
  color: #38bdf8; /* Blue ↙ */
}

.recent-dir-icon.missed {
  color: #ef4444; /* Red ↙ */
}

.recent-title-group {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 2px;
}

.recent-name-number {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--color-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recent-name-number.missed-text {
  color: #fca5a5;
}

.recent-sub-detail {
  font-size: 11px;
  color: #64748b;
}

.recent-right-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.recent-missed-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
}

.recent-timestamp {
  font-size: 12.5px;
  color: #94a3b8;
  font-weight: 500;
}

/* Expanded Action Tray on Tapping Recents Row */
.recent-quick-actions {
  display: none;
  padding: 8px 16px 10px 16px;
  background: var(--bg-row-hover);
  border-bottom: 1px solid var(--border-divider);
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  animation: slideDownFade 0.2s ease-out;
}

.android-recent-row.expanded + .recent-quick-actions {
  display: flex;
}

@keyframes slideDownFade {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn-android-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 9999px;
  font-family: var(--font-main);
  font-size: 11.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--color-text-primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  line-height: 1;
}

.btn-android-action .action-svg {
  flex-shrink: 0;
}

.btn-android-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.btn-android-action:active {
  transform: scale(0.96);
}

/* Specific button styles */
.btn-android-action.btn-ussd {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.35);
  color: #059669;
}

.btn-android-action.btn-call {
  background: var(--bg-card);
  border-color: var(--border-card);
  color: var(--color-text-primary);
}

.btn-android-action.btn-video {
  background: rgba(2, 132, 199, 0.08);
  border-color: rgba(2, 132, 199, 0.25);
  color: var(--color-accent, #0284c7);
}

@media (prefers-color-scheme: dark) {
  .btn-android-action.btn-ussd {
    background: rgba(52, 211, 153, 0.14);
    border-color: rgba(52, 211, 153, 0.35);
    color: #34d399;
  }
  .btn-android-action.btn-video {
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.3);
    color: #38bdf8;
  }
}

/* ========================================================
   📱 NATIVE ANDROID / SAMSUNG KEYPAD & CALL ACTIONS
   ======================================================== */
/* ========================================================
   📱 NATIVE ANDROID / SAMSUNG KEYPAD (100% RIGID - NO SCROLL)
   ======================================================== */
#tab-calls,
.calls-subview,
#calls-subpane-keypad,
#calls-subpane-recents {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

#calls-subpane-keypad {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  padding: 4px 6px 8px 6px;
  box-sizing: border-box;
  overflow: hidden !important;
  touch-action: none !important;
  overscroll-behavior: none !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  position: relative;
}

#calls-subpane-keypad[style*="display: flex"],
#calls-subpane-keypad[style*="display: block"] {
  display: flex !important;
  flex-direction: column !important;
}

.keypad-top-meta {
  min-height: 0px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0px;
  margin-bottom: 0px;
}

.btn-keypad-add-contact {
  background: rgba(2, 132, 199, 0.1);
  border: 1px solid rgba(2, 132, 199, 0.25);
  color: #0284c7;
  border-radius: 9999px;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 2px;
  transition: all 0.15s ease;
}

.btn-keypad-add-contact:hover {
  background: rgba(2, 132, 199, 0.18);
  transform: scale(1.02);
}

.btn-keypad-paste {
  background: rgba(2, 132, 199, 0.08);
  border: 1px solid rgba(2, 132, 199, 0.25);
  color: #0284c7;
  border-radius: 9999px;
  padding: 3px 12px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 2px;
  transition: all 0.15s ease;
  user-select: none;
}

.btn-keypad-paste:hover {
  background: rgba(2, 132, 199, 0.18);
  color: #0369a1;
  transform: scale(1.02);
}

.btn-keypad-paste:active {
  transform: scale(0.97);
}

.keypad-display-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 320px;
  position: relative;
  height: 40px;
  margin: 0 auto 4px auto;
  padding: 0 10px;
  box-sizing: border-box;
}

.keypad-number-display {
  width: 100%;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  font-size: clamp(22px, 5.2vw, 28px);
  font-weight: 500;
  color: var(--color-text-primary);
  text-align: center;
  letter-spacing: 1.5px;
  outline: none;
  font-family: var(--font-main);
  caret-color: #38bdf8;
  padding: 0 32px 0 32px;
  cursor: text;
}

.keypad-number-display::placeholder {
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0px;
}

.btn-keypad-backspace {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--color-text-secondary);
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.15s ease;
}

.btn-keypad-backspace:hover {
  color: var(--color-text-primary);
  background: var(--bg-row-hover);
}

.btn-keypad-backspace:active,
.btn-keypad-backspace.key-active {
  color: #0f172a !important;
  transform: translateY(-50%) scale(0.88);
}

.keypad-btn.key-active {
  background: #e2e8f0 !important;
  color: #0f172a !important;
  transform: scale(0.94);
  transition: transform 0.08s ease, background 0.08s ease;
}

.keypad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(6px, 1.1vh, 10px) clamp(14px, 4vw, 20px);
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  place-items: center;
  touch-action: none !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}

.keypad-btn {
  width: clamp(52px, 13.5vw, 62px);
  height: clamp(52px, 13.5vw, 62px);
  border-radius: 50%;
  background: var(--bg-keypad-btn);
  border: 1px solid var(--border-container);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.1s cubic-bezier(0.16, 1, 0.3, 1), background 0.1s ease;
  user-select: none !important;
  -webkit-user-select: none !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation !important;
}

.keypad-btn:hover {
  background: var(--bg-keypad-btn-active);
}

.keypad-btn:active {
  background: var(--bg-keypad-btn-active);
  transform: scale(0.92);
}

.keypad-btn .key-digit {
  font-size: clamp(20px, 5.2vw, 24px);
  font-weight: 500;
  line-height: 1;
  color: var(--color-keypad-text);
}

.keypad-btn .key-letters {
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 1.2px;
  color: var(--color-keypad-subtext);
  margin-top: 2px;
  line-height: 1;
  text-transform: uppercase;
}

/* Single Centered Circular Android Green Call Button */
.keypad-call-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 300px;
  margin: 8px auto 4px auto;
}

.btn-dial-primary-circle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(34, 197, 94, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.btn-dial-primary-circle:hover {
  background: #16a34a;
  transform: scale(1.05);
  box-shadow: 0 6px 22px rgba(34, 197, 94, 0.5);
}

.btn-dial-primary-circle:active {
  transform: scale(0.93);
  background: #15803d;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.5);
}

/* 📱 FIXED ANDROID / SAMSUNG BOTTOM PILL BAR (SAFE FROM 3-BUTTON NAV) */
#tab-calls {
  padding-bottom: calc(max(env(safe-area-inset-bottom, 0px), 8px) + 62px) !important;
}

#tab-wallet,
#tab-handles {
  padding-bottom: calc(max(env(safe-area-inset-bottom, 0px), 24px) + 96px) !important;
}

.android-phone-pill-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  transform: none;
  width: 100%;
  background: var(--bg-bottom-bar);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: none;
  border-left: none;
  border-right: none;
  border-bottom: none;
  border-radius: 0;
  padding: 8px 0 calc(max(env(safe-area-inset-bottom, 0px), 8px));
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 0;
  box-shadow: 0 -2px 10px rgba(15, 23, 42, 0.03);
  z-index: 500;
  pointer-events: auto;
  box-sizing: border-box;
}

.android-phone-pill-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px 0;
  min-width: 0;
  border-radius: 0;
  border: none;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.android-phone-pill-btn:hover {
  color: #fff;
}

.android-phone-pill-btn.active {
  color: #38bdf8;
  box-shadow: none;
  background: transparent;
}

.android-phone-pill-btn .pill-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 32px;
  border-radius: 16px;
  background: transparent;
  transition: background-color 0.15s ease;
}

.android-phone-pill-btn.active .pill-icon-wrap {
  background: rgba(56, 189, 248, 0.14);
}

.android-phone-pill-btn .pill-svg {
  display: block;
  width: 22px;
  height: 22px;
  color: #94a3b8;
  transition: color 0.15s ease, transform 0.15s ease;
}

.android-phone-pill-btn.active .pill-svg {
  color: #38bdf8;
  transform: scale(1.05);
}

.android-phone-pill-btn .pill-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2px;
  color: #94a3b8;
  transition: color 0.15s ease;
}

.android-phone-pill-btn.active .pill-label {
  font-weight: 700;
  color: #38bdf8;
}

/* ======================================================
   📱 SAMSUNG / ANDROID INTERACTIVE SEARCH SCREEN & KEYBOARD
   ====================================================== */
.calls-subview {
  width: 100%;
  box-sizing: border-box;
}

#calls-subpane-search {
  display: none;
  flex-direction: column !important;
  width: 100% !important;
  box-sizing: border-box;
  gap: 6px;
}

#calls-subpane-search[style*="display: flex"],
#calls-subpane-search[style*="display: block"] {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
}

.android-search-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  box-sizing: border-box;
  padding: 4px 6px 10px 6px;
  border-bottom: 1px solid var(--border-divider);
  margin-bottom: 6px;
}

.btn-search-back {
  background: transparent;
  border: none;
  color: var(--color-text-secondary);
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.btn-search-back:hover {
  background: var(--bg-row-hover);
  color: var(--color-text-primary);
}

.search-filters-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: all 0.15s ease;
}

.search-filters-pill:hover {
  color: var(--color-text-primary);
  background: var(--bg-row-hover);
}

.search-results-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 8px 8px 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--color-text-muted);
}

.search-count-label {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
}

.android-search-results-list {
  display: flex;
  flex-direction: column;
  background: var(--bg-container);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid var(--border-container);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.search-contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-divider);
  cursor: pointer;
  transition: background 0.15s ease;
}

.search-contact-card:last-child {
  border-bottom: none;
}

.search-contact-card:hover {
  background: var(--bg-row-hover);
}

.search-contact-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  flex-shrink: 0;
}

.search-contact-avatar.color-blue { background: #38bdf8; }
.search-contact-avatar.color-cyan { background: #06b6d4; }
.search-contact-avatar.color-amber { background: #f59e0b; }
.search-contact-avatar.color-purple { background: #a855f7; }
.search-contact-avatar.color-emerald { background: #10b981; }
.search-contact-avatar.color-rose { background: #f43f5e; }
.search-contact-avatar.color-teal { background: #14b8a6; }

.search-contact-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.search-contact-name {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--color-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-matched-text {
  color: #38bdf8;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.search-contact-sub {
  font-size: 12px;
  color: var(--color-text-secondary);
  font-weight: 500;
}

/* Floating Search Input Capsule Above Keyboard */
.android-search-capsule-wrap {
  margin-top: auto;
  margin-bottom: 8px;
  display: flex;
  justify-content: center;
}

.android-search-capsule {
  width: 100%;
  background: var(--bg-keypad-btn);
  border: 1px solid var(--border-container);
  border-radius: 9999px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.search-capsule-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  letter-spacing: 0.2px;
}

.search-capsule-cursor {
  color: #38bdf8;
  font-weight: 300;
  animation: blinkCursor 1s infinite;
  margin-left: 1px;
  margin-right: auto;
}

@keyframes blinkCursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.btn-capsule-clear {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #94a3b8;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-capsule-clear:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

/* Samsung / Android Interactive On-Screen QWERTY Keyboard */
.samsung-keyboard-card {
  background: var(--bg-qwerty-card);
  border: 1px solid var(--border-container);
  border-radius: 18px;
  padding: 8px 6px 12px 6px;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.4);
  user-select: none;
}

.keyboard-suggestions-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 4px 6px 8px 6px;
  border-bottom: 1px solid var(--border-divider);
  margin-bottom: 6px;
}

.kb-sugg-chip {
  background: transparent;
  border: none;
  color: var(--color-text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 8px;
  transition: background 0.15s ease;
}

.kb-sugg-chip:hover {
  background: var(--bg-row-hover);
  color: var(--color-text-primary);
}

.kb-sugg-more {
  color: var(--color-text-muted);
  font-size: 14px;
  letter-spacing: 2px;
}

.keyboard-row {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-bottom: 5px;
}

.keyboard-row.row-indent {
  padding: 0 12px;
}

.kb-key {
  background: var(--bg-qwerty-key);
  border: none;
  border-radius: 6px;
  color: var(--color-qwerty-key);
  font-size: 16px;
  font-weight: 500;
  height: 38px;
  min-width: 24px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1.5px 2px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: all 0.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.kb-key:hover {
  filter: brightness(0.9);
}

.kb-key:active {
  background: #3b82f6;
  color: #ffffff;
  transform: scale(0.94);
}

.kb-key-shift, .kb-key-backspace {
  background: var(--bg-qwerty-func);
  flex: 1.4;
  font-size: 15px;
  color: var(--color-qwerty-func);
}

.kb-key-shift.active {
  background: #3b82f6;
  color: #fff;
}

.kb-key-fn {
  background: var(--bg-qwerty-func);
  flex: 1.2;
  font-size: 12.5px;
  color: var(--color-qwerty-func);
}

.kb-key-space {
  background: var(--bg-qwerty-key);
  flex: 4.2;
  font-size: 12.5px;
  color: var(--color-qwerty-func);
}

.kb-key-search {
  background: var(--bg-qwerty-func);
  color: #38bdf8;
  flex: 1.2;
}

.kb-key-search:active {
  background: #0284c7;
  color: #fff;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08) !important;
}

/* ==========================================================================
   💰 CASH WALLET & PRE-CALL SPONSOR PREDICTOR STYLES
   ========================================================================== */

.cash-wallet-pill {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.15);
}

.cash-wallet-pill:hover {
  transform: translateY(-1px);
  background: rgba(16, 185, 129, 0.2) !important;
  border-color: #10b981 !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.predictor-modal-card {
  max-width: 420px;
  text-align: center;
}

.predictor-progress-track {
  width: 100%;
  height: 5px;
  background: var(--border-container);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 14px;
}

.predictor-choice-btn {
  background: var(--bg-keypad-btn);
  border: 1.5px solid var(--border-container);
  border-radius: 12px;
  padding: 12px 10px;
  color: var(--color-text-primary);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: all 0.18s ease;
  user-select: none;
}

.predictor-choice-btn:hover {
  background: rgba(16, 185, 129, 0.12);
  border-color: #10b981;
  transform: translateY(-2px);
}

.predictor-choice-btn.selected {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(5, 150, 105, 0.3) 100%);
  border-color: #10b981;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.3);
}

.predictor-brand-icon {
  font-size: 26px;
  line-height: 1;
}

.predictor-brand-info {
  width: 100%;
  text-align: center;
}

.predictor-brand-name {
  font-weight: 800;
  font-size: 13px;
  color: var(--color-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.predictor-cash-tag {
  font-size: 11px;
  color: #10b981;
  font-weight: 700;
  margin-top: 2px;
}

.predictor-skip-btn {
  width: 100%;
  padding: 10px;
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s ease;
}

.predictor-skip-btn:hover {
  color: var(--color-text-primary);
}

.payout-rail-card {
  background: var(--bg-keypad-btn);
  border: 1.5px solid var(--border-container);
  border-radius: 12px;
  padding: 10px;
  text-align: left;
  cursor: pointer;
  color: var(--color-text-primary);
  transition: all 0.15s ease;
  user-select: none;
}

.payout-rail-card:hover {
  border-color: #10b981 !important;
}

.payout-rail-card.active {
  background: rgba(16, 185, 129, 0.15) !important;
  border-color: #10b981 !important;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.25);
}

.btn-poll-option {
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-poll-option:hover {
  transform: translateY(-2px);
}

/* ==========================================================================
   🔒 COURTESY 1-TIME CALL LOCK & LINE CAPACITY MODALS
   ========================================================================== */

.courtesy-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: var(--bg-modal-backdrop, rgba(0, 0, 0, 0.65));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.25s ease-out;
}

.courtesy-modal-card {
  background: var(--bg-card);
  border: 1px solid rgba(239, 68, 68, 0.4);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 35px rgba(239, 68, 68, 0.2);
  border-radius: 24px;
  max-width: 360px;
  width: 100%;
  padding: 26px;
  text-align: center;
  color: var(--color-text-primary);
}

.courtesy-busy-card {
  background: var(--bg-card);
  border: 1px solid rgba(245, 158, 11, 0.4);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 35px rgba(245, 158, 11, 0.2);
  border-radius: 24px;
  max-width: 360px;
  width: 100%;
  padding: 26px;
  text-align: center;
  color: var(--color-text-primary);
}


/* ============================================================
   ☀️ LIGHT MODE MANDATE — COMPREHENSIVE COMPONENT OVERRIDE
   Per AGENTS.md Rule 3 (Lead UI/UX Designer & Zero-Ghost-Text Rule):
   All backgrounds must pair with an explicit text color in the same block.
   These !important rules guarantee light mode on every component.
   ============================================================ */

/* --- AUTH GATE (frosted light glass, Apple-grade) --- */
.auth-gate-overlay {
  background: rgba(248, 250, 252, 0.98) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  color: #0f172a !important;
}
.auth-card {
  background: #ffffff !important;
  border: 1px solid rgba(2, 132, 199, 0.18) !important;
  box-shadow: 0 25px 50px rgba(15, 23, 42, 0.12), 0 4px 16px rgba(15, 23, 42, 0.06) !important;
  color: #0f172a !important;
}
.auth-logo-wrap {
  background: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%) !important;
}
.auth-logo {
  color: #ffffff !important;
}
.auth-title {
  color: #0f172a !important;
}
.auth-subtitle {
  color: #475569 !important;
}
.auth-label {
  color: #475569 !important;
}
.auth-input {
  background: #f8fafc !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  color: #0f172a !important;
}
.auth-input:focus {
  border-color: #0284c7 !important;
  background: #f1f5f9 !important;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12) !important;
  color: #0f172a !important;
}
.auth-input::placeholder {
  color: #94a3b8 !important;
}

/* --- CONTACTS SUB-TOGGLE BAR & RECENTS FILTERS --- */
.contacts-sub-toggle-bar {
  background: rgba(15, 23, 42, 0.05) !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  color: #475569 !important;
}
.sub-toggle-btn {
  color: #64748b !important;
  background: transparent !important;
}
.sub-toggle-btn.active {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.12) 0%, rgba(3, 105, 161, 0.08) 100%) !important;
  color: #0284c7 !important;
  border: 1px solid rgba(2, 132, 199, 0.25) !important;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.1) !important;
}
.recents-filter-chip {
  background: rgba(15, 23, 42, 0.05) !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  color: #64748b !important;
}
.recents-filter-chip.active {
  background: rgba(2, 132, 199, 0.1) !important;
  border-color: rgba(2, 132, 199, 0.3) !important;
  color: #0284c7 !important;
}

/* --- RECENT CALL CARDS --- */
.recent-call-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
  border: 1px solid rgba(15, 23, 42, 0.07) !important;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05) !important;
  color: #0f172a !important;
}
.recent-call-card:hover {
  border-color: rgba(2, 132, 199, 0.25) !important;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%) !important;
}
.recent-call-title {
  color: #0f172a !important;
}
.recent-call-meta {
  color: #64748b !important;
}

/* --- POST-CALL REWARD, WALLET & SUMMARY MODALS --- */
.post-call-completed-title {
  color: #0f172a !important;
}
.post-call-voucher-card,
#post-call-voucher-card {
  background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 100%) !important;
  border: 1.5px solid rgba(2, 132, 199, 0.22) !important;
  color: #0f172a !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06) !important;
}
#post-call-reward-headline {
  color: #0f172a !important;
}
#post-call-reward-desc {
  color: #475569 !important;
}
.post-call-voucher-code-wrap {
  background: #ffffff !important;
  border: 1.5px dashed #0284c7 !important;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.08) !important;
}
.post-call-voucher-label {
  color: #0369a1 !important;
}
.post-call-minutes-subtext {
  color: #475569 !important;
}
#post-call-wallet-minutes {
  color: #0f172a !important;
}
.btn-view-bank {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%) !important;
  border: none !important;
  color: #ffffff !important;
}
.btn-view-bank:hover {
  background: linear-gradient(135deg, #6d28d9 0%, #5b21b6 100%) !important;
  color: #ffffff !important;
}

/* --- MODAL ACTION BUTTONS & INPUTS --- */
.btn-modal-action-subtle {
  background: #f1f5f9 !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  color: #475569 !important;
}
.btn-modal-action-subtle:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
}
.contact-modal-knock-handle {
  color: #0f172a !important;
}
.pairing-pin-card {
  background: #f8fafc !important;
  border: 1.5px solid rgba(15, 23, 42, 0.1) !important;
  color: #0f172a !important;
}
.pairing-pin-label {
  color: #475569 !important;
}
.btn-pin-action {
  background: #f1f5f9 !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  color: #0f172a !important;
}
.modal-input-wrap {
  background: #f8fafc !important;
  border: 1.5px solid rgba(15, 23, 42, 0.14) !important;
  color: #0f172a !important;
}
.modal-clean-input {
  background: transparent !important;
  color: #0f172a !important;
}
.modal-pin-input {
  background: #f8fafc !important;
  border: 1.5px solid rgba(15, 23, 42, 0.14) !important;
  color: #059669 !important;
}

/* --- WALLET COMPONENTS --- */
.wallet-spin-strip {
  background: #f8fafc !important;
  border: 1.5px solid rgba(15, 23, 42, 0.1) !important;
  color: #0f172a !important;
}
.wallet-spin-title {
  color: #0f172a !important;
}
.wallet-spin-desc {
  color: #475569 !important;
}
.wallet-pass-card {
  background: rgba(2, 132, 199, 0.08) !important;
  border: 1.5px solid rgba(2, 132, 199, 0.25) !important;
  color: #0f172a !important;
}
.wallet-pass-brand {
  color: #0369a1 !important;
}
.wallet-pass-pill {
  background: #0284c7 !important;
  color: #ffffff !important;
}
.wallet-pass-desc {
  color: #334155 !important;
}
.btn-unlock-pass {
  background: #0284c7 !important;
  border: none !important;
  color: #ffffff !important;
}

/* --- PHONEBOOK CONTACT CARDS & NUMBER ROWS --- */
.phone-contact-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
  border: 1px solid rgba(15, 23, 42, 0.06) !important;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04) !important;
  color: #0f172a !important;
}
.phone-contact-card:hover {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%) !important;
  border-color: rgba(2, 132, 199, 0.25) !important;
  transform: translateY(-1px) !important;
}
.phone-number-row {
  background: rgba(15, 23, 42, 0.04) !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  color: #0f172a !important;
}
.phone-number-digits {
  color: #0f172a !important;
}
.phone-type-badge {
  color: #475569 !important;
  background: rgba(15, 23, 42, 0.06) !important;
}

/* --- MODAL CLOSE BUTTON HOVER STATE --- */
.modal-close-btn:hover {
  background: rgba(15, 23, 42, 0.06) !important;
  color: #0f172a !important;
}

/* --- STAT VALUE TEXT (Post-Call & Wallet Screens) --- */
.stat-val {
  color: #0284c7 !important;
}

/* --- SUBTAB BADGE (Phonebook/Recents toggle) --- */
.subtab-badge {
  background: rgba(2, 132, 199, 0.12) !important;
  color: #0284c7 !important;
}

/* --- DIRECT GSM MODAL (guarantee strip) --- */
.direct-gsm-guarantee {
  background: rgba(16, 185, 129, 0.08) !important;
  border: 1.5px solid rgba(16, 185, 129, 0.25) !important;
  color: #475569 !important;
}
.direct-gsm-guarantee-bold {
  color: #047857 !important;
}

/* ======================================================
   KNOCKAT MODERN CONSUMER UI UPGRADE (2026 EDITION)
   Strict Light-Mode, Coupled Colors, High-End Fintech Styling
   ====================================================== */

/* 1. Header Branding & Zero-Cost Badge */
.app-brand-text {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 10px !important;
}

.brand-title {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif !important;
  font-size: 22px !important;
  font-weight: 800 !important;
  color: #03045E !important;
  letter-spacing: -0.03em !important;
  display: inline-flex !important;
  align-items: center !important;
}

.brand-tld-accent {
  color: #00B4D8 !important;
  font-weight: 800 !important;
  display: inline-flex !important;
  align-items: center !important;
  margin-left: 0.5px !important;
  font-size: 0.95em !important;
}

.pill-zero-cost-badge {
  background-color: #e0f7fa !important;
  color: #03045E !important;
  border: 1px solid #b2ebf2 !important;
  border-radius: 9999px !important;
  padding: 4px 10px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  display: inline-flex !important;
  align-items: center !important;
  box-shadow: 0 1px 3px rgba(0, 180, 216, 0.1) !important;
}

/* 2. Top Segmented Control (Calls vs Rewards Pill) */
.segmented-control {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 9999px !important;
  padding: 6px !important;
  gap: 6px !important;
  margin-bottom: 6px !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05) !important;
}

.segment-btn {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  min-height: 58px !important;
  padding: 8px 16px !important;
  border-radius: 9999px !important;
  background: transparent !important;
  color: #64748b !important;
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  border: none !important;
  box-shadow: none !important;
  transition: all 0.2s ease !important;
}

.segment-btn svg {
  width: 22px !important;
  height: 22px !important;
  opacity: 0.85 !important;
}

.segment-btn.active {
  background: #eef2f6 !important;
  color: #0f172a !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}

.segment-btn.active svg {
  opacity: 1 !important;
  color: #0f172a !important;
}

/* Wallet Sub-Navigation Bar: Completely transparent, zero white box */
.wallet-subnav-bar {
  display: flex !important;
  justify-content: space-between !important;
  gap: 6px !important;
  padding: 6px 0 10px 0 !important;
  margin-bottom: 8px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  background: transparent !important;
  background-color: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  border: none !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 100 !important;
}

.wallet-subnav-pill {
  flex: 1 !important;
  min-width: 0 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  padding: 8px 4px !important;
  border-radius: 20px !important;
  background: #f1f5f9 !important;
  color: #475569 !important;
  border: 1px solid #e2e8f0 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  transition: all 0.2s ease !important;
}

.wallet-subnav-pill:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
}

.wallet-subnav-pill.active {
  background: #0f172a !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15) !important;
}

/* 3. Hero Gradient Balance Card (Wallet & Rewards) */
.wallet-hero-gradient-card {
  background: linear-gradient(135deg, #03045E 0%, #023E8A 50%, #0096C7 100%) !important;
  color: #ffffff !important;
  border-radius: 24px !important;
  padding: 24px 20px !important;
  margin-bottom: 20px !important;
  box-shadow: 0 10px 30px -8px rgba(0, 150, 199, 0.35) !important;
  position: relative !important;
  overflow: hidden !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.wallet-hero-top-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 14px !important;
}

.wallet-hero-label {
  color: #a5f3fc !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
}

.wallet-hero-status-badge {
  background: rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  padding: 3px 10px !important;
  border-radius: 9999px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
}

.wallet-hero-balance-wrap {
  margin-bottom: 20px !important;
}

.wallet-hero-points-row {
  display: flex !important;
  align-items: baseline !important;
  gap: 8px !important;
  margin-bottom: 4px !important;
}

.wallet-hero-points-num {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif !important;
  font-size: 36px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  letter-spacing: -0.02em !important;
  line-height: 1 !important;
}

.wallet-hero-points-unit {
  font-size: 18px !important;
  font-weight: 600 !important;
  color: #a5f3fc !important;
}

.wallet-hero-minutes-hint {
  font-size: 13px !important;
  color: rgba(255, 255, 255, 0.9) !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.wallet-hero-minutes-hint strong {
  color: #ffffff !important;
  font-weight: 700 !important;
}

.wallet-hero-actions-row {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 12px !important;
}

.btn-wallet-hero-action {
  padding: 11px 16px !important;
  border-radius: 14px !important;
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  text-align: center !important;
  min-height: 44px !important;
  transition: all 0.15s ease !important;
}

.btn-hero-topup {
  background: #ffffff !important;
  color: #03045E !important;
  border: 1px solid #ffffff !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1) !important;
}

.btn-hero-topup:active {
  transform: scale(0.98) !important;
  background: #f0fdfa !important;
}

.btn-hero-history {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}

.btn-hero-history:active {
  transform: scale(0.98) !important;
  background: rgba(255, 255, 255, 0.22) !important;
}

/* 4. Quick Actions Grid */
.wallet-quick-actions-section {
  margin-bottom: 24px !important;
}

.wallet-section-title {
  color: #64748b !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  margin-bottom: 10px !important;
}

.wallet-quick-actions-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 12px !important;
}

.wallet-quick-card {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  padding: 16px !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  cursor: pointer !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03) !important;
  min-height: 52px !important;
  transition: all 0.15s ease !important;
}

.wallet-quick-card:hover {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  transform: translateY(-1px) !important;
}

.quick-card-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #0f172a !important;
  flex-shrink: 0 !important;
}

.quick-card-label {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
}

/* 4b. Recent Rewards History Box (Matching Picture 2) */
.rewards-history-box {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 18px !important;
  padding: 6px 14px !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03) !important;
}

.rewards-history-row {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 10px 0 !important;
  border-bottom: 1px solid #f1f5f9 !important;
}

.rewards-history-row:last-child {
  border-bottom: none !important;
}

.rewards-history-icon-circle {
  width: 36px !important;
  height: 36px !important;
  border-radius: 10px !important;
  background: #ecfeff !important;
  color: #0891b2 !important;
  border: 1px solid #cffafe !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

.rewards-history-meta {
  display: flex !important;
  align-items: baseline !important;
  gap: 6px !important;
  flex-wrap: wrap !important;
  flex: 1 !important;
}

.rewards-history-label {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
}

.rewards-history-points {
  font-size: 13px !important;
  font-weight: 800 !important;
  color: #059669 !important;
}

.rewards-history-time {
  font-size: 11.5px !important;
  color: #64748b !important;
  font-weight: 500 !important;
}

.activity-card-icon-wrap {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* 5. Modern Borderless Keypad Styling */
.keypad-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 12px 16px !important;
  padding: 8px 12px 16px 12px !important;
}

.keypad-btn {
  background: transparent !important;
  border: none !important;
  border-radius: 20px !important;
  padding: 10px 4px !important;
  color: #1E1E24 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  min-height: 56px !important;
  box-shadow: none !important;
  transition: background-color 0.12s ease !important;
}

.keypad-btn:active {
  background-color: #e0f7fa !important;
}

.key-digit {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif !important;
  font-size: 26px !important;
  font-weight: 700 !important;
  color: #1E1E24 !important;
  line-height: 1 !important;
}

.key-letters {
  font-size: 10px !important;
  font-weight: 600 !important;
  color: #94a3b8 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  margin-top: 2px !important;
}

.keypad-number-display {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif !important;
  font-size: 30px !important;
  font-weight: 800 !important;
  color: #03045E !important;
  letter-spacing: -0.01em !important;
  text-align: center !important;
  border: none !important;
  background: transparent !important;
  outline: none !important;
}

.btn-dial-primary-circle {
  width: 64px !important;
  height: 64px !important;
  border-radius: 50% !important;
  background: #00B4D8 !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 4px 12px rgba(0, 180, 216, 0.28), 0 2px 4px rgba(15, 23, 42, 0.06) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.btn-dial-primary-circle:hover {
  background: #0096C7 !important;
}

.btn-dial-primary-circle:active {
  transform: scale(0.95) !important;
}

/* Polished Search Box Capsule */
.search-bar-wrap {
  align-items: center !important;
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 9999px !important;
  padding: 8px 16px !important;
  gap: 10px !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.search-bar-wrap:focus-within {
  border-color: #00B4D8 !important;
  box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.15), 0 4px 12px rgba(15, 23, 42, 0.06) !important;
}

.search-glass-icon {
  font-size: 14px !important;
  color: #64748b !important;
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.search-input-field {
  flex: 1 !important;
  border: none !important;
  outline: none !important;
  background: transparent !important;
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: #0f172a !important;
  padding: 2px 0 !important;
}

.search-input-field::placeholder {
  color: #94a3b8 !important;
  font-weight: 500 !important;
}

#android-recents-list {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.android-recent-row {
  position: relative !important;
  overflow: hidden !important;
  border-radius: 16px !important;
  margin-bottom: 6px !important;
  padding: 0 !important;
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03) !important;
  touch-action: pan-y !important;
}

.swipe-call-indicator {
  position: absolute !important;
  top: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  background-color: #00B4D8 !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  padding-left: 18px !important;
  gap: 8px !important;
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  z-index: 1 !important;
  border-radius: 16px !important;
  pointer-events: none !important;
}

.recent-row-content {
  position: relative !important;
  z-index: 2 !important;
  background: #ffffff !important;
  color: #0f172a !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 10px 14px !important;
  border-radius: 16px !important;
  width: 100% !important;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.android-recent-row:hover .recent-row-content {
  background: #f8fafc !important;
}

.recent-avatar-circle {
  width: 42px !important;
  height: 42px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 800 !important;
  font-size: 15px !important;
  flex-shrink: 0 !important;
}

.recent-caller-name {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif !important;
  font-size: 14.5px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.recent-call-meta {
  font-size: 12px !important;
  color: #64748b !important;
  font-weight: 500 !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.btn-direct-call-pill {
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  background: #f0fdfa !important;
  color: #0891b2 !important;
  border: 1px solid #cffafe !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
  box-shadow: 0 1px 3px rgba(0, 180, 216, 0.08) !important;
  transition: all 0.15s ease !important;
}

.btn-direct-call-pill:hover,
.btn-direct-call-pill:active {
  background: #00B4D8 !important;
  color: #ffffff !important;
  border-color: #00B4D8 !important;
  transform: scale(1.05) !important;
}

.btn-direct-invite-pill {
  padding: 6px 14px !important;
  border-radius: 9999px !important;
  background: #f0fdf4 !important;
  color: #16a34a !important;
  border: 1px solid #bbf7d0 !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
  box-shadow: 0 1px 2px rgba(22, 163, 74, 0.06) !important;
  transition: all 0.15s ease !important;
}

.btn-direct-invite-pill:hover,
.btn-direct-invite-pill:active {
  background: #16a34a !important;
  color: #ffffff !important;
  border-color: #16a34a !important;
  transform: scale(1.03) !important;
}

/* 7. Settings Subview Styling */
.settings-screen-title {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif !important;
  font-size: 26px !important;
  font-weight: 800 !important;
  color: #03045E !important;
  letter-spacing: -0.02em !important;
  margin-bottom: 16px !important;
}

.settings-account-card {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 18px !important;
  padding: 18px !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03) !important;
  margin-bottom: 20px !important;
}

.settings-account-top {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  margin-bottom: 14px !important;
}

.settings-avatar-wrap {
  width: 46px !important;
  height: 46px !important;
  border-radius: 50% !important;
  background: #eff6ff !important;
  color: #2563eb !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 22px !important;
  border: 1px solid #dbeafe !important;
}

.settings-account-name {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
}

.settings-account-sub {
  font-size: 12px !important;
  color: #64748b !important;
}

.badge-free-tier {
  color: #00B4D8 !important;
  font-weight: 700 !important;
}

.settings-account-actions {
  display: flex !important;
  gap: 8px !important;
}

.btn-settings-pill {
  flex: 1 !important;
  padding: 8px 12px !important;
  border-radius: 9999px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  background: #f8fafc !important;
  color: #334155 !important;
  border: 1px solid #cbd5e1 !important;
  cursor: pointer !important;
  min-height: 40px !important;
  transition: all 0.15s ease !important;
}

.btn-settings-pill:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

.settings-group-wrap {
  margin-bottom: 18px !important;
}

.settings-group-header {
  font-size: 11px !important;
  font-weight: 800 !important;
  color: #64748b !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  margin-bottom: 8px !important;
  padding-left: 4px !important;
}

.settings-group-box {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.02) !important;
}

.settings-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 13px 16px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  font-size: 13.5px !important;
  color: #334155 !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  min-height: 46px !important;
  transition: background 0.15s ease !important;
}

.settings-row:hover {
  background: #f8fafc !important;
  color: #0f172a !important;
}

.settings-row:last-child {
  border-bottom: none !important;
}

.settings-row-icon {
  margin-right: 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #475569 !important;
  width: 20px !important;
  height: 20px !important;
  flex-shrink: 0 !important;
}

.settings-row-label {
  flex: 1 !important;
}

.settings-row-arrow {
  color: #94a3b8 !important;
  font-size: 16px !important;
  font-weight: 700 !important;
}

.btn-settings-logout {
  width: 100% !important;
  padding: 13px !important;
  border-radius: 14px !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  background: #fff1f2 !important;
  color: #e11d48 !important;
  border: 1px solid #fecdd3 !important;
  cursor: pointer !important;
  margin-top: 12px !important;
  min-height: 44px !important;
  transition: all 0.15s ease !important;
}

.btn-settings-logout:hover {
  background: #ffe4e6 !important;
}

/* 8. Modern Seamless Bottom Navigation Bar (No Harsh Line) */
.android-phone-pill-bar {
  background: #ffffff !important;
  color: #64748b !important;
  border-top: none !important;
  box-shadow: 0 -2px 8px rgba(15, 23, 42, 0.02) !important;
  bottom: 0 !important;
}

.android-phone-pill-btn {
  color: #64748b !important;
}

.android-phone-pill-btn.active {
  color: #00B4D8 !important;
}

.android-phone-pill-btn.active .pill-icon-wrap {
  background: rgba(0, 180, 216, 0.12) !important;
  color: #00B4D8 !important;
}

/* ======================================================
   9. LUXURY DUAL-STATE TOGGLE SWITCH (FREE vs WI-FI)
   ====================================================== */
.network-toggle-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: 96px;
  height: 32px;
  border-radius: 9999px;
  background-color: #b0b7c3;
  color: #ffffff;
  border: none;
  cursor: pointer;
  padding: 3px;
  box-sizing: border-box;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  transition: background-color 0.28s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(255, 255, 255, 0.6);
  flex-shrink: 0;
}

/* State 1: FREE Mode (Light Grey Track) */
.network-toggle-switch.mode-free {
  background-color: #b2b9c5;
}

/* State 2: WI-FI Mode (Dark Slate Black Track) */
.network-toggle-switch.mode-wifi {
  background-color: #1e2530;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(255, 255, 255, 0.4);
}

/* Sliding White Knob with Drop Shadow */
.network-toggle-switch .toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22), 0 0 1px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.28s cubic-bezier(0.34, 1.35, 0.64, 1);
  z-index: 2;
}

.network-toggle-switch .toggle-knob svg {
  width: 15px;
  height: 15px;
  color: #64748b;
  transition: color 0.24s ease;
}

/* Wi-Fi active: Knob slides 64px to the right */
.network-toggle-switch.mode-wifi .toggle-knob {
  transform: translateX(64px);
}

.network-toggle-switch.mode-wifi .toggle-knob svg {
  color: #1e293b;
}

/* Embedded Text Label */
.network-toggle-switch .toggle-label {
  position: absolute;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #ffffff;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.24s ease;
}

/* In FREE Mode: Text is on the Right */
.network-toggle-switch.mode-free .toggle-label-free {
  right: 12px;
  opacity: 1;
  transform: translateX(0);
}
.network-toggle-switch.mode-free .toggle-label-wifi {
  left: 10px;
  opacity: 0;
  transform: translateX(-6px);
}

/* In WI-FI Mode: Text is on the Left */
.network-toggle-switch.mode-wifi .toggle-label-free {
  right: 10px;
  opacity: 0;
  transform: translateX(6px);
}
.network-toggle-switch.mode-wifi .toggle-label-wifi {
  left: 12px;
  opacity: 1;
  transform: translateX(0);
}







