/* =========================================================
   PiClud Call — Pixel-Perfect Native Theme
   Colors: Dark Navy (#16324f), Coral (#df644b), Green (#10b981), White (#ffffff)
   ========================================================= */

:root {
  --navy-primary: #16324f;
  --navy-dark: #0f243a;
  --coral-accent: #df644b;
  --coral-hover: #c9543c;
  --call-green: #10b981;
  --call-green-hover: #059669;
  --hangup-red: #ef4444;
  --bg-pure-white: #ffffff;
  --bg-page-gray: #f8fafc;
  --border-light: #f1f5f9;
  --border-subtle: #e2e8f0;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --avatar-teal-bg: #e0f2f1;
  --avatar-teal-txt: #00796b;
  --avatar-gray-bg: #f1f5f9;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

body {
  font-family: var(--font-family);
  background-color: #0c1824;
  color: var(--text-dark);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: stretch;
  overflow-x: hidden;
}

/* Mobile Shell Frame */
.mobile-app-shell {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  background-color: var(--bg-pure-white);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

/* Offline Top Banner */
.offline-top-banner {
  background-color: #ef4444;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: sticky;
  top: 0;
  z-index: 999;
}

.offline-top-banner svg {
  width: 16px;
  height: 16px;
}

/* =========================================================
   1. TOP APP BAR (Dark Navy + Coral "PiClud Call" Title)
   ========================================================= */
.app-header-native {
  min-height: calc(56px + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  padding-left: 16px;
  padding-right: 16px;
  padding-bottom: 0;
  background-color: var(--navy-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 80;
  box-shadow: 0 2px 8px rgba(15, 36, 58, 0.25);
  box-sizing: border-box;
}

body.is-native-android .app-header-native {
  min-height: calc(56px + 28px);
  padding-top: 28px;
}

.header-left .header-title-coral {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.2px;
  font-family: 'Outfit', var(--font-family);
  margin: 0;
}

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

.header-icon-btn {
  background: none;
  border: none;
  color: #cbd5e1;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.header-icon-btn:hover,
.header-icon-btn:active {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.header-icon-btn svg {
  width: 22px;
  height: 22px;
}

/* Search Dropdown Bar */
.header-search-bar {
  position: absolute;
  top: 56px;
  left: 0;
  right: 0;
  background-color: var(--navy-dark);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 85;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.header-search-bar input {
  flex: 1;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 8px 16px;
  color: #ffffff;
  font-size: 14px;
  outline: none;
}

.header-search-bar input::placeholder {
  color: #94a3b8;
}

.search-box-icon {
  color: #94a3b8;
  width: 18px;
  height: 18px;
}

.search-clear-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 22px;
  cursor: pointer;
}

/* 3-Dot Overflow Menu */
.header-dropdown-menu {
  position: absolute;
  top: 56px;
  right: 12px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  min-width: 220px;
  padding: 8px 0;
  z-index: 99;
  border: 1px solid var(--border-subtle);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--text-dark);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s;
}

.dropdown-item:hover {
  background-color: #f1f5f9;
}

.dropdown-item svg {
  width: 18px;
  height: 18px;
  color: var(--navy-primary);
}

.dropdown-divider {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: 6px 0;
}

.dropdown-item.text-danger {
  color: #ef4444;
}

.dropdown-item.text-danger svg {
  color: #ef4444;
}

/* =========================================================
   2. MAIN TAB VIEWS
   ========================================================= */
.tab-view {
  display: none;
  flex: 1;
  overflow-y: auto;
  padding-bottom: 70px;
  background-color: var(--bg-pure-white);
}

.tab-view.active {
  display: flex;
  flex-direction: column;
}

/* =========================================================
   3. CALLS LIST
   ========================================================= */
.calls-list-wrapper {
  flex: 1;
  overflow-y: auto;
  background-color: var(--bg-pure-white);
}

.calls-list-container {
  display: flex;
  flex-direction: column;
}

.call-item-row {
  display: flex;
  align-items: center;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: background-color 0.15s ease;
  user-select: none;
}

.call-item-row:hover,
.call-item-row:active {
  background-color: #f8fafc;
}

.call-item-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 14px;
  background-color: var(--avatar-gray-bg);
  color: var(--text-muted);
}

.call-item-avatar.has-initials {
  background-color: var(--avatar-teal-bg);
  color: var(--avatar-teal-txt);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.5px;
}

.call-item-avatar svg {
  width: 24px;
  height: 24px;
  color: #94a3b8;
}

.call-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.call-item-primary {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.call-item-subline {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--text-muted);
}

.call-arrow-green {
  color: var(--call-green);
  font-size: 14px;
  font-weight: bold;
  display: inline-block;
}

.call-item-subtext {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Call Button (Click to Call) */
.call-item-action-btn {
  background: none;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-primary);
  cursor: pointer;
  flex-shrink: 0;
  margin-left: 8px;
  transition: background-color 0.2s, transform 0.1s;
}

.call-item-action-btn:hover {
  background-color: #f1f5f9;
}

.call-item-action-btn:active {
  transform: scale(0.92);
  background-color: #e2e8f0;
}

.call-item-action-btn svg {
  width: 22px;
  height: 22px;
}

.calls-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  text-align: center;
  color: var(--text-muted);
}

.calls-empty-state svg {
  width: 48px;
  height: 48px;
  color: #cbd5e1;
  margin-bottom: 12px;
}

/* =========================================================
   4. FLOATING ACTION BUTTON (FAB)
   ========================================================= */
.fab-dialpad {
  position: fixed;
  bottom: 74px;
  right: calc(50% - 240px + 20px);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background-color: var(--navy-primary);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(22, 50, 79, 0.45);
  cursor: pointer;
  z-index: 90;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (max-width: 480px) {
  .fab-dialpad {
    right: 20px;
  }
}

.fab-dialpad:hover {
  background-color: var(--navy-dark);
  transform: scale(1.05);
}

.fab-dialpad:active {
  transform: scale(0.95);
}

/* =========================================================
   5. SLIDE-UP DIALPAD DRAWER
   ========================================================= */
.dialpad-drawer {
  position: fixed;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%) translateY(115%);
  width: 100%;
  max-width: 480px;
  background-color: #ffffff;
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.16);
  z-index: 95;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 16px 20px 14px;
  pointer-events: none;
  border-top: 1px solid var(--border-subtle);
}

.dialpad-drawer.open {
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.dialpad-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px 12px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 10px;
}

.dialpad-display-wrapper {
  flex: 1;
  text-align: center;
}

.dialpad-number-display {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-dark);
  min-height: 36px;
  letter-spacing: 1px;
  font-family: 'Outfit', var(--font-family);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dialpad-sub-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.dialpad-top-clear-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.dialpad-top-clear-btn:hover {
  background-color: #f1f5f9;
}

.native-keypad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 18px;
  margin-bottom: 12px;
  justify-items: center;
}

.native-key {
  width: 68px;
  height: 52px;
  border-radius: 14px;
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.12s, transform 0.08s;
  user-select: none;
}

.native-key:active {
  background-color: #f1f5f9;
  transform: scale(0.94);
}

.key-digit {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1;
}

.key-alpha {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-top: 2px;
  height: 12px;
}

.dialpad-bottom-actions {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 4px 12px 6px;
}

.action-drawer-btn {
  background: none;
  border: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-primary);
  cursor: pointer;
}

.action-drawer-btn:hover {
  background-color: #f1f5f9;
}

.native-call-btn {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background-color: var(--call-green);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
  cursor: pointer;
  transition: transform 0.15s;
}

.native-call-btn:hover {
  background-color: var(--call-green-hover);
  transform: scale(1.05);
}

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

.native-call-btn svg {
  width: 28px;
  height: 28px;
}

/* =========================================================
   6. BOTTOM NAVIGATION BAR (Exact Match from Screenshot)
   ========================================================= */
.bottom-nav-native {
  height: 60px;
  background-color: #ffffff;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: stretch;
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  z-index: 85;
}

.nav-tab-item {
  flex: 1;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
}

.nav-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: relative;
}

.nav-icon-wrap svg {
  width: 24px;
  height: 24px;
  color: #94a3b8;
  transition: color 0.2s;
}

.tab-badge-dot {
  position: absolute;
  top: 12px;
  right: 22px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--coral-accent);
}

/* Active Tab: Dark Navy block + Coral Handset outline */
.nav-tab-item.active {
  background-color: var(--navy-primary);
}

.nav-tab-item.active .nav-icon-wrap svg {
  color: var(--coral-accent);
}

/* =========================================================
   7. GOOGLE PHONE STYLE CALL DETAIL BOTTOM SHEET MODAL
   ========================================================= */
.call-detail-sheet {
  background: #ffffff;
  width: 100%;
  max-width: 480px;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  padding: 24px 20px 30px;
  position: fixed;
  bottom: 0;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.25);
  animation: slideUpSheet 0.25s ease-out;
}

@keyframes slideUpSheet {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.sheet-top-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.sheet-avatar-wrap {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--avatar-teal-bg);
  color: var(--avatar-teal-txt);
  font-weight: 700;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sheet-contact-meta {
  flex: 1;
}

.sheet-contact-meta h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-dark);
}

.sheet-contact-meta span {
  font-size: 14px;
  color: var(--text-muted);
}

.btn-sheet-close {
  background: #f1f5f9;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #334155;
  cursor: pointer;
  z-index: 10;
  flex-shrink: 0;
  transition: background 0.2s;
}

.btn-sheet-close:hover {
  background: #e2e8f0;
}

.sheet-actions-row {
  display: flex;
  justify-content: space-around;
  padding: 12px 0 18px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 16px;
}

.sheet-action-item {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: var(--text-dark);
  font-size: 12px;
  font-weight: 600;
}

.action-circle-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-primary);
  transition: all 0.2s;
}

.sheet-action-item.call-action .action-circle-icon {
  background-color: var(--call-green);
  color: #ffffff;
}

.sheet-action-item:hover .action-circle-icon {
  transform: scale(1.08);
}

.sheet-history-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sheet-history-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.history-entry-card {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 12px 14px;
}

.entry-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.entry-type-arrow {
  color: var(--call-green);
  font-weight: 700;
  margin-right: 4px;
}

.entry-cost-badge {
  background: #e0f2fe;
  color: #0284c7;
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}

.entry-meta-text {
  font-size: 13px;
  color: var(--text-muted);
}

.entry-audio-player {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-play-audio {
  background-color: var(--navy-primary);
  color: #ffffff;
  border: none;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.btn-download-audio {
  color: var(--navy-primary);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* =========================================================
   8. DEDICATED RECHARGE FULL VIEW & 2 PACKS
   ========================================================= */
.dedicated-recharge-view {
  position: fixed;
  inset: 0;
  background-color: #ffffff;
  z-index: 100;
  display: flex;
  flex-direction: column;
  max-width: 480px;
  margin: 0 auto;
  overflow-y: auto;
}

.recharge-view-header {
  height: 56px;
  background-color: var(--navy-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 10;
}

.btn-back-header {
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.recharge-view-content {
  padding: 16px;
  flex: 1;
}

.packs-grid-two {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.pack-card-two {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 16px 14px;
  text-align: center;
  position: relative;
  cursor: pointer;
  transition: all 0.2s;
}

.pack-card-two:hover {
  border-color: var(--navy-primary);
  box-shadow: 0 4px 14px rgba(22, 50, 79, 0.1);
}

.pack-card-two.popular {
  border-color: var(--coral-accent);
  background: #fffafa;
}

.pack-badge {
  position: absolute;
  top: -9px;
  right: 12px;
  background: var(--coral-accent);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
}

.pack-minutes {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
}

.pack-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--navy-primary);
  margin: 4px 0 10px;
  font-family: 'Outfit', sans-serif;
}

.btn-select-pack {
  width: 100%;
  background: var(--navy-primary);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 8px 0;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.payment-brand-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.pay-brand-card {
  border: 1.5px solid var(--border-subtle);
  border-radius: 12px;
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.pay-brand-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.pay-brand-card.active {
  border-color: #2563eb;
  background: #f8faff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.12);
}

.brand-badge-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.bkash-bg {
  background: linear-gradient(135deg, #e2136e, #c00d5a);
}

.nagad-bg {
  background: linear-gradient(135deg, #f7941d, #d97706);
}

.rocket-bg {
  background: linear-gradient(135deg, #8c3494, #6b21a8);
}

.admin-number-banner {
  background: #f8fafc;
  border-left: 3px solid var(--navy-primary);
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 14px;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn-copy-sm {
  background: none;
  border: none;
  color: var(--navy-primary);
  cursor: pointer;
}

/* =========================================================
   9. SETTINGS TAB STYLES
   ========================================================= */
.settings-balance-card {
  background: linear-gradient(135deg, var(--navy-primary) 0%, #1c446c 100%);
  color: #ffffff;
  margin: 16px;
  border-radius: 18px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 6px 20px rgba(22, 50, 79, 0.25);
}

.balance-subtitle {
  font-size: 13px;
  color: #cbd5e1;
}

.balance-amount {
  font-size: 32px;
  font-weight: 800;
  margin: 4px 0 6px;
  font-family: 'Outfit', sans-serif;
}

.rate-badge {
  font-size: 12px;
  background: rgba(255, 255, 255, 0.15);
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  color: #e2e8f0;
}

.btn-add-money-pill {
  background-color: #ffffff;
  color: var(--navy-primary);
  border: none;
  border-radius: 20px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.settings-packs-section,
.settings-recharge-section,
.settings-support-section,
.settings-profile-section {
  padding: 0 16px;
  margin-bottom: 20px;
}

.section-heading {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.settings-apk-card {
  margin: 0 16px 16px;
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.apk-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--navy-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.apk-card-text {
  flex: 1;
}

.apk-card-text strong {
  font-size: 14px;
  color: var(--text-dark);
  display: block;
}

.apk-card-text p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.btn-download-apk-action {
  background: var(--call-green);
  color: #ffffff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.support-buttons-row {
  display: flex;
  gap: 10px;
}

.btn-support-pill {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
}

.btn-support-pill.whatsapp {
  background-color: #25d366;
}

.btn-support-pill.imo {
  background-color: #0088cc;
}

.btn-logout-full {
  width: 100%;
  background: none;
  border: 1px solid #ef4444;
  color: #ef4444;
  border-radius: 12px;
  padding: 12px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}

/* =========================================================
   10. IN-APP NATIVE AUTH OVERLAY (Direct Login/Sign-up)
   ========================================================= */
.in-app-auth-overlay {
  position: fixed;
  inset: 0;
  background-color: #0f1f33;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-card-box {
  background: #ffffff;
  border-radius: 24px;
  width: 100%;
  max-width: 400px;
  padding: 30px 24px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
}

.auth-logo-center {
  text-align: center;
  margin-bottom: 22px;
}

.auth-logo-cloud {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--navy-primary), #1e4265);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  box-shadow: 0 6px 18px rgba(22, 50, 79, 0.3);
}

.auth-brand-name {
  font-size: 24px;
  font-weight: 800;
  color: var(--navy-primary);
  font-family: 'Outfit', sans-serif;
}

.auth-brand-tagline {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.auth-tabs-nav {
  display: flex;
  background: #f1f5f9;
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 20px;
}

.auth-tab-btn {
  flex: 1;
  background: none;
  border: none;
  padding: 8px 0;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-muted);
}

.auth-tab-btn.active {
  background: #ffffff;
  color: var(--navy-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Form Styles */
.form-group {
  margin-bottom: 12px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 5px;
}

.form-input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  font-size: 14px;
  outline: none;
}

.form-input:focus {
  border-color: var(--navy-primary);
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background-color: var(--navy-primary);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 12px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}

/* Proximity Lock */
.proximity-screen-lock {
  position: fixed;
  inset: 0;
  background: #000000;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
}

.proximity-lock-hint {
  color: #334155;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

/* Modal Overlay (Generic & App-Modal) */
.modal-overlay,
.app-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
  animation: appModalFadeIn 0.2s ease-out;
}

.app-modal-backdrop {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.modal-content,
.app-modal-content {
  position: relative;
  z-index: 2;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  width: 100%;
  max-width: 440px;
  max-height: 88vh;
  overflow-y: auto;
  padding: 22px 20px;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  animation: appModalSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes appModalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes appModalSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

.modal-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-close-modal {
  background: #f1f5f9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-close-modal:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Contacts & Messages Tab */
.contacts-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 8px;
}

.contacts-title-box h3 {
  font-size: 20px;
  font-weight: 700;
}

.btn-add-contact-pill {
  background-color: var(--navy-primary);
  color: #ffffff;
  border: none;
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.contacts-search-box {
  margin: 8px 16px 12px;
  background-color: #f1f5f9;
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contacts-search-box input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
}

.messages-header-banner {
  padding: 16px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-light);
}

.messages-list-wrap {
  padding: 12px 16px;
}

.message-card-item {
  display: flex;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  margin-bottom: 10px;
  background: #ffffff;
}

.msg-avatar-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-primary);
  flex-shrink: 0;
}

.msg-content {
  flex: 1;
}

.msg-title-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

/* In-Call Screen */
.in-call-screen-overlay {
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 24px;
  max-width: 480px;
  margin: 0 auto;
}

.in-call-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
}

.call-security-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  padding: 6px 12px;
  border-radius: 14px;
  color: var(--call-green);
  font-weight: 600;
}

.in-call-center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.incall-avatar-box {
  position: relative;
  margin-bottom: 20px;
}

.incall-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--navy-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  position: relative;
  z-index: 2;
  box-shadow: 0 10px 25px rgba(22, 50, 79, 0.3);
}

.incall-avatar svg {
  width: 42px;
  height: 42px;
}

.incall-ripple-pulse {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: rgba(22, 50, 79, 0.15);
  animation: pulseRipple 2s infinite ease-out;
  z-index: 1;
}

@keyframes pulseRipple {
  0% { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}

.incall-destination {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
  font-family: 'Outfit', sans-serif;
}

.incall-status-badge {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.incall-timer {
  font-size: 20px;
  font-weight: 600;
  color: var(--call-green);
  font-family: 'Outfit', monospace;
}

.incall-actions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 30px;
}

.incall-action-btn {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 12px;
}

.action-icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  transition: all 0.2s;
}

.incall-action-btn.active .action-icon-circle {
  background: var(--navy-primary);
  color: #ffffff;
}

.incall-hangup-wrap {
  display: flex;
  justify-content: center;
}

.btn-hangup-round {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--hangup-red);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.4);
  cursor: pointer;
}

.btn-hangup-round svg {
  width: 32px;
  height: 32px;
}


/* ======================================================== */
/* NEW REDESIGNED PROFILE, WALLET, SOFTPHONE & SUPPORT UI  */
/* ======================================================== */
.user-profile-header-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #ffffff;
  border: 1px solid var(--border-light, #e2e8f0);
  border-radius: 16px;
  padding: 18px 16px;
  margin-bottom: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.profile-avatar-wrap {
  position: relative;
}
.profile-avatar-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #0284c7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}
.profile-text-wrap {
  flex: 1;
  min-width: 0;
}
.profile-user-name {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.profile-user-regphone {
  font-size: 13.5px;
  font-weight: 600;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 4px;
}
.profile-user-uid {
  font-size: 12px;
  font-weight: 700;
  color: #0284c7;
  margin-top: 2px;
}

.menu-action-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #ffffff;
  border: 1px solid var(--border-light, #e2e8f0);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
  transition: all 0.2s ease;
}
.menu-action-card.clickable {
  cursor: pointer;
}
.menu-action-card.clickable:hover {
  transform: translateY(-1px);
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.menu-action-card.balance-card-glow {
  background: linear-gradient(135deg, #ffffff, #eff6ff);
  border-color: #bfdbfe;
}
.card-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-icon-wrap i {
  width: 22px;
  height: 22px;
}
.card-text-wrap {
  flex: 1;
  min-width: 0;
}
.card-label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 2px;
}
.card-main-val {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}
.card-title-text {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}
.card-sub-hint {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  margin-top: 2px;
}
.card-arrow {
  color: #94a3b8;
  width: 20px;
  height: 20px;
}

.softphone-info-card {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
}
.softphone-creds-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  font-size: 12px;
}
.softphone-creds-grid .lbl {
  color: #64748b;
  font-size: 11px;
  display: block;
}
.softphone-creds-grid strong {
  color: #0f172a;
  word-break: break-all;
}

.voucher-box-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 12px;
}

.support-footer-note {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 14px;
  padding: 14px 16px;
  text-align: center;
}
.support-note-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #b45309;
  font-weight: 700;
  font-size: 13.5px;
  margin-bottom: 6px;
}
.support-note-body {
  font-size: 12.5px;
  color: #78350f;
  line-height: 1.5;
  margin-bottom: 10px;
}
.support-actions-row {
  display: flex;
  justify-content: center;
  gap: 10px;
}

/* ======================================================== */
/* MOBILE STATUS BAR SAFE-AREA & DIALER HEADER PROFILE BAR  */
/* ======================================================== */
:root {
  --safe-area-top: env(safe-area-inset-top, 0px);
}

.app-container {
  padding-top: max(var(--safe-area-top), 16px) !important;
}

.dialer-user-profile-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 10px 14px;
  margin: 8px 12px 10px 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.dialer-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: #ffffff;
  font-size: 17px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2);
}

.dialer-meta {
  flex: 1;
  min-width: 0;
}

.dialer-user-name {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dialer-reg-number {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 1px;
}

.dialer-balance-chip {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 5px 10px;
  text-align: right;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s;
}

.dialer-balance-chip:hover {
  background: #dcfce7;
}

.dialer-balance-chip .chip-lbl {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: #166534;
  text-transform: uppercase;
}

.dialer-balance-chip .chip-val {
  font-size: 14px;
  font-weight: 800;
  color: #15803d;
}

/* KYC Banner */
.kyc-warning-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 12px;
  padding: 10px 14px;
  margin: 0 12px 10px 12px;
  box-shadow: 0 1px 4px rgba(245, 158, 11, 0.08);
}

.kyc-warning-banner.danger {
  background: #fef2f2;
  border-color: #fecaca;
}

.kyc-banner-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.15);
  color: #d97706;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.kyc-warning-banner.danger .kyc-banner-icon {
  background: rgba(239, 68, 68, 0.15);
  color: #dc2626;
}

.kyc-banner-text {
  flex: 1;
  min-width: 0;
}

.kyc-banner-text strong {
  display: block;
  font-size: 12.5px;
  color: #92400e;
  font-weight: 700;
}

.kyc-warning-banner.danger .kyc-banner-text strong {
  color: #991b1b;
}

.kyc-banner-text p {
  font-size: 11px;
  color: #b45309;
  margin: 1px 0 0;
  line-height: 1.3;
}

.kyc-warning-banner.danger .kyc-banner-text p {
  color: #b91c1c;
}

.btn-kyc-verify-action {
  background: #f59e0b;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

/* Dialer Top Paste Button */
.dialpad-top-paste-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dialpad-top-paste-btn:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
}

.dialpad-top-paste-btn:active {
  transform: scale(0.96);
}


/* =========================================================
   BOTTOM SHEET / MODAL BACKDROP FOR VOICE BROADCAST & PACKAGES
   ========================================================= */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transition: opacity 0.25s ease;
}

.sheet-container {
  background: #ffffff;
  width: 100%;
  max-width: 480px;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  animation: slideUpSheet 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  max-height: 90vh;
}

@keyframes slideUpSheet {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.sheet-drag-handle {
  width: 42px;
  height: 5px;
  background-color: #cbd5e1;
  border-radius: 4px;
  margin: 10px auto 4px;
}

.sheet-header {
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f1f5f9;
}

.sheet-title {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.sheet-close-btn {
  background: #f1f5f9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s;
  line-height: 1;
}

.sheet-close-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.sheet-body {
  padding: 18px 20px;
  overflow-y: auto;
  flex: 1;
}

/* ======================================================== */
/* VOICE CHANGER & MORPHBOX AI STUDIO STYLES                */
/* ======================================================== */
.dialpad-voice-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(219, 39, 119, 0.08), rgba(124, 58, 237, 0.08));
  border: 1px solid rgba(219, 39, 119, 0.25);
  border-radius: 12px;
  padding: 8px 14px;
  margin: 4px 16px 10px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(219, 39, 119, 0.05);
}

.dialpad-voice-bar:active {
  transform: scale(0.98);
  background: linear-gradient(135deg, rgba(219, 39, 119, 0.15), rgba(124, 58, 237, 0.15));
}

.voice-bar-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.voice-bar-icon {
  font-size: 17px;
  line-height: 1;
}

.voice-bar-label {
  font-size: 12.5px;
  color: #334155;
  font-weight: 500;
}

.voice-bar-label strong {
  color: #db2777;
  font-weight: 700;
}

.voice-bar-right .voice-change-tag {
  font-size: 11px;
  font-weight: 700;
  color: #7c3aed;
  background: #ffffff;
  padding: 3px 8px;
  border-radius: 8px;
  border: 1px solid rgba(124, 58, 237, 0.2);
}

/* Voice Unlock Banner */
.voice-unlock-banner {
  background: linear-gradient(135deg, #831843, #581c87);
  border-radius: 16px;
  padding: 18px 16px;
  color: #ffffff;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(131, 24, 67, 0.25);
  position: relative;
  overflow: hidden;
}

.voice-unlock-banner::after {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.voice-banner-title {
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.voice-banner-desc {
  font-size: 12px;
  color: #fbcfe8;
  line-height: 1.5;
  margin-bottom: 12px;
}

.voice-banner-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.voice-price-badge {
  font-size: 18px;
  font-weight: 800;
  color: #fef08a;
}

.btn-unlock-voice {
  background: #ffffff;
  color: #831843;
  font-weight: 800;
  font-size: 13px;
  border: none;
  padding: 8px 16px;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.1s;
}

.btn-unlock-voice:active {
  transform: scale(0.96);
}

/* Live Mic Preview Card */
.voice-mic-test-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.test-mic-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn-toggle-preview {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-toggle-preview.active {
  background: #db2777;
  color: #ffffff;
  border-color: #db2777;
  box-shadow: 0 4px 12px rgba(219, 39, 119, 0.3);
}

.wave-bars-visualizer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 24px;
}

.wave-bar {
  width: 4px;
  height: 6px;
  background: #cbd5e1;
  border-radius: 2px;
  transition: height 0.08s ease;
}

.btn-toggle-preview.active ~ .wave-bars-visualizer .wave-bar {
  background: #db2777;
}

/* Voice Presets Grid */
.voice-presets-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.voice-preset-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.voice-preset-card:active {
  transform: scale(0.97);
}

.voice-preset-card.active {
  border-color: #db2777;
  background: #fdf2f8;
  box-shadow: 0 4px 16px rgba(219, 39, 119, 0.15);
}

.preset-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.preset-card-icon {
  font-size: 24px;
  line-height: 1;
}

.preset-active-check {
  display: none;
  width: 18px;
  height: 18px;
  background: #db2777;
  color: #ffffff;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
}

.voice-preset-card.active .preset-active-check {
  display: flex;
}

.preset-card-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
}

.voice-preset-card.active .preset-card-title {
  color: #be185d;
}

.preset-card-desc {
  font-size: 11px;
  color: #64748b;
  line-height: 1.35;
}

.preset-card-badge {
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  background: #eff6ff;
  color: #2563eb;
  align-self: flex-start;
}

/* Custom Morphbox Controls */
.voice-custom-panel {
  background: #faf5ff;
  border: 1.5px dashed #c084fc;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 16px;
}

.custom-slider-row {
  margin-bottom: 12px;
}

.custom-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.custom-slider-header label {
  font-size: 12px;
  font-weight: 700;
  color: #581c87;
}

.custom-slider-header .slider-val {
  font-size: 12px;
  font-weight: 800;
  color: #7c3aed;
}

.custom-slider-input {
  width: 100%;
  accent-color: #7c3aed;
  height: 6px;
  border-radius: 3px;
  cursor: pointer;
}


/* Real Female Soundboard Styles */
.soundboard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.soundboard-item-btn {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 12px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.soundboard-item-btn:active {
  transform: scale(0.96);
  background: #fdf2f8;
}

.soundboard-item-btn.playing {
  border-color: #10b981;
  background: #ecfdf5;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.soundboard-btn-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.soundboard-btn-text {
  font-size: 12px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.3;
}

.soundboard-tabs-bar {
  display: flex;
  background: #f1f5f9;
  border-radius: 12px;
  padding: 3px;
  margin-bottom: 14px;
  gap: 4px;
}

.soundboard-tab-btn {
  flex: 1;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 9px;
  border: none;
  background: none;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.soundboard-tab-btn.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* ======================================================== */
/* ELEGANT GROUPED SETTINGS MENU (Classic iOS/Material UI)  */
/* ======================================================== */
.settings-group {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
}

.settings-group-title {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin: 0 6px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.settings-item-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 16px;
  border-bottom: 1px solid #f1f5f9;
  background: #ffffff;
  transition: background-color 0.15s ease;
  text-decoration: none;
  color: inherit;
}

.settings-item-row:last-child {
  border-bottom: none;
}

.settings-item-row.clickable {
  cursor: pointer;
}

.settings-item-row.clickable:hover {
  background-color: #f8fafc;
}

.settings-item-row.clickable:active {
  background-color: #f1f5f9;
}

.settings-item-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.settings-item-icon i,
.settings-item-icon svg {
  width: 19px;
  height: 19px;
}

.settings-item-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.settings-item-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.settings-item-subtitle {
  font-size: 11.5px;
  font-weight: 500;
  color: #64748b;
  line-height: 1.35;
}

.settings-item-chevron {
  color: #94a3b8;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-logout-full {
  width: 100%;
  padding: 14px;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #e11d48;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-logout-full:hover {
  background: #ffe4e6;
  border-color: #fda4af;
}

.btn-logout-full:active {
  transform: scale(0.99);
}

/* ======================================================== */
/* PI-CLOUD TOGGLE SWITCH (iOS Native Style)               */
/* ======================================================== */
.piclud-toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 28px;
  flex-shrink: 0;
  cursor: pointer;
}

.piclud-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.piclud-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: .3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 34px;
}

.piclud-toggle-slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.piclud-toggle-switch input:checked + .piclud-toggle-slider {
  background-color: #16a34a;
}

.piclud-toggle-switch input:checked + .piclud-toggle-slider:before {
  transform: translateX(20px);
}

/* Voice Screen Item Cards matching FB_IMG_1792507711144.jpg */
.voice-item-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.voice-item-card:active {
  transform: scale(0.98);
}

.voice-item-card.active {
  border: 2px solid #16a34a !important;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.12);
}

.voice-item-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  transition: all 0.2s;
}

.voice-item-card.active .voice-item-avatar {
  background: #f0fdf4;
  border-color: #16a34a;
  color: #16a34a;
  font-weight: 800;
}
