/* =====================================================================
   TRUSTARY OTP & NOKOS STORE
   Aesthetic: Neo-Pop Bento (Exact Replicated Theme from fusionify.id)
   Fully Audited for iOS, Android & Desktop
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Afacad+Flux:wght@400;500;600;700;800;900&family=Caveat:wght@600;700&family=Exo+2:wght@600;700;800;900&family=JetBrains+Mono:wght@500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* Exact Colors from fusionify.id */
  --blue: #0d6cd7;
  --blue-deep: #0261cd;
  --blue-light: #539de9;
  --ink: #0b0f1a;
  --ink-2: #3a4458;
  --ink-3: #566175;
  --surface: #eaf4ff;
  --paper: #f7fbff;
  --white: #ffffff;
  --line: #d3e4f7;
  --night: #071022;

  /* Semantic Tags */
  --go: #157f3b;
  --go-bg: #e3f6e9;
  --beta: #9a5b00;
  --beta-bg: #fff2d8;
  --wip: #8a4a00;
  --wip-bg: #ffe9d6;
  --plan: #0261cd;
  --plan-bg: #eef7ff;
  --danger: #b42318;
  --danger-bg: #ffe4e6;

  /* Theme Aliases */
  --font-heading: var(--f-head);
  --font-body: var(--f-body);
  --font-mono: var(--f-mono);
  --text-main: var(--ink);
  --text-muted: var(--ink-2);
  --text-dim: var(--ink-3);
  --accent-cyan: var(--blue);
  --accent-blue: var(--blue-deep);
  --accent-emerald: var(--go);
  --accent-purple: #7360f2;

  /* Typography */
  --f-head: "Afacad Flux", "Plus Jakarta Sans", system-ui, sans-serif;
  --f-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --f-num: "Exo 2", "Plus Jakarta Sans", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", Menlo, Consolas, monospace;
  --f-hand: "Caveat", cursive;

  /* Radii */
  --r-s: 10px;
  --r-m: 16px;
  --r-l: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Shadows from fusionify.id */
  --shadow-soft: 0 1px 0 #0d6cd70f, 0 12px 32px -14px #0b0f1a2e;
  --shadow-pop-sm: 0 2px 0 var(--ink);
  --shadow-pop: 0 3px 0 var(--ink);
  --shadow-pop-l: 0 5px 0 var(--ink);
  --shadow-pop-xl: 0 7px 0 var(--ink);

  /* Springs & Transitions */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);

  --nav-h: 60px;
  --max-w: 1040px;
  --gut: clamp(14px, 3.5vw, 24px);
}

/* =====================================================================
   RESET & SYSTEM BASE
   ===================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--f-body);
  background-color: var(--paper);
  color: var(--ink);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  line-height: 1.55;
  overflow-x: hidden;
  position: relative;
  background-image: radial-gradient(120% 80% at 80% 10%, #dcedff 0%, var(--paper) 60%);
}

/* Neo-Pop Grid Background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-size: 32px 32px;
  background-image: 
    linear-gradient(to right, rgba(13, 108, 215, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(13, 108, 215, 0.04) 1px, transparent 1px);
  pointer-events: none;
  z-index: 0;
}

/* Safe area padding for iOS */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--gut);
  padding-right: var(--gut);
  position: relative;
  z-index: 1;
}

/* =====================================================================
   HEADER & FLOATING NAVBAR
   ===================================================================== */
.site-header {
  position: sticky;
  top: max(10px, env(safe-area-inset-top));
  z-index: 150;
  padding-top: 10px;
  margin-bottom: 20px;
}

.navbar {
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
  border: 2px solid var(--ink);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-pop);
  padding: 8px 12px 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: all .25s var(--ease);
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}

.brand-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--surface);
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 1px 0 var(--ink);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--f-head);
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
}

.brand-badge {
  font-size: 0.68rem;
  font-family: var(--f-num);
  font-weight: 700;
  color: var(--blue-deep);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

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

/* Status Indicator Chip */
.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  background: var(--go-bg);
  color: var(--go);
  border: 1.5px solid var(--ink);
  border-radius: var(--r-pill);
  font-family: var(--f-num);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 1px 0 var(--ink);
  white-space: nowrap;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background: currentColor;
  border-radius: 50%;
  display: inline-block;
  animation: pulse 1.8s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.85); }
}

/* Neo-Pop Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 18px;
  border: 2px solid var(--ink);
  border-radius: var(--r-m);
  background: var(--white);
  color: var(--ink);
  font-family: var(--f-head);
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-pop);
  transition: transform .25s var(--spring), box-shadow .25s var(--spring), background .18s;
  user-select: none;
  white-space: nowrap;
  min-height: 44px; /* Touch target accessibility */
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-pop-l);
}

.btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--ink);
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--ink);
}

.btn-primary:hover {
  background: var(--blue-deep);
  color: #fff;
}

.btn-telegram {
  background: #229ED9;
  color: #fff;
  border-color: var(--ink);
}

.btn-telegram:hover {
  background: #1980b3;
  color: #fff;
}

.btn-white {
  background: #fff;
  color: var(--ink);
}

.btn-sm {
  padding: 6px 13px;
  font-size: 0.84rem;
  border-radius: var(--r-pill);
  min-height: 36px;
}

/* =====================================================================
   HERO BENTO SECTION
   ===================================================================== */
.hero-bento {
  background: #fff;
  border: 2.5px solid var(--ink);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-pop-l);
  padding: clamp(20px, 4vw, 36px);
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.hero-bento-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  gap: 28px;
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  background: var(--surface);
  border: 1.5px solid var(--ink);
  border-radius: var(--r-pill);
  font-family: var(--f-num);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--blue-deep);
  box-shadow: 0 1px 0 var(--ink);
  width: fit-content;
}

.hero-title {
  font-family: var(--f-head);
  font-size: clamp(2.1rem, 5.2vw, 3.4rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--ink);
}

.hero-title .highlight {
  color: var(--blue);
  position: relative;
  display: inline-block;
}

.hero-title .highlight::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 100%;
  height: 8px;
  background: #ffe9a8;
  z-index: -1;
  border-radius: 4px;
}

.hero-desc {
  font-size: clamp(0.92rem, 1.8vw, 1.05rem);
  color: var(--ink-2);
  line-height: 1.55;
  max-width: 540px;
}

.hero-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.perk-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: var(--r-pill);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
  box-shadow: 0 1px 0 var(--ink);
}

.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.mascot-seal-wrap {
  position: relative;
  width: clamp(140px, 20vw, 200px);
  aspect-ratio: 1;
  background: radial-gradient(circle, #eaf4ff 0%, #dcedff 100%);
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  box-shadow: var(--shadow-pop-l);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mascot-seal-wrap img {
  width: 82%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(11, 15, 26, 0.15));
  animation: floatMascot 4s ease-in-out infinite;
}

@keyframes floatMascot {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.sticker-badge {
  position: absolute;
  bottom: -6px;
  right: -8px;
  background: #ffe9a8;
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: var(--r-pill);
  padding: 4px 10px;
  font-family: var(--f-hand);
  font-size: 1.15rem;
  font-weight: 700;
  box-shadow: var(--shadow-pop-sm);
  transform: rotate(-4deg);
  white-space: nowrap;
}

/* =====================================================================
   ANNOUNCEMENT BAR
   ===================================================================== */
.announcement-bar {
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--r-m);
  padding: 10px 16px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
  box-shadow: var(--shadow-pop);
}

.announcement-icon {
  flex-shrink: 0;
  color: var(--blue);
}

/* =====================================================================
   FEATURE TABS (BENTO SEGMENTED PILL)
   ===================================================================== */
.feature-tabs-wrap {
  display: flex;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--r-pill);
  padding: 5px;
  box-shadow: var(--shadow-pop-l);
  margin-bottom: 24px;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.feature-tabs-wrap::-webkit-scrollbar {
  display: none;
}

.feature-tab-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: 2px solid transparent;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--ink-2);
  font-family: var(--f-head);
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: all .2s var(--ease);
  min-height: 46px;
}

.feature-tab-btn:hover {
  background: var(--surface);
  color: var(--ink);
}

.feature-tab-btn.active {
  background: var(--blue);
  color: #fff;
  border-color: var(--ink);
  box-shadow: var(--shadow-pop-sm);
}

.tab-badge {
  font-family: var(--f-num);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  border: 1px solid var(--ink);
  background: #ff5722;
  color: #fff;
  text-transform: uppercase;
}

.feature-tab-btn.active .tab-badge {
  background: #fff;
  color: var(--ink);
}

.tab-label-short {
  display: none;
}

.tab-label-full {
  display: inline;
}

/* Tab Panes */
.tab-pane {
  display: none;
  animation: fadeIn .25s var(--ease);
}

.tab-pane.active {
  display: block;
}

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

/* =====================================================================
   BENTO CARDS
   ===================================================================== */
.bento-card {
  background: #fff;
  border: 2.5px solid var(--ink);
  border-radius: var(--r-l);
  box-shadow: var(--shadow-pop-l);
  padding: clamp(20px, 3.5vw, 32px);
  margin-bottom: 24px;
}

.bento-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
}

.bento-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bento-icon {
  font-size: 1.45rem;
  display: flex;
  align-items: center;
}

.bento-title {
  font-family: var(--f-head);
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.bento-pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: var(--plan-bg);
  color: var(--blue-deep);
  border: 1.5px solid var(--ink);
  border-radius: var(--r-pill);
  font-family: var(--f-num);
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: 0 1px 0 var(--ink);
}

/* =====================================================================
   FORM CONTROLS & INPUTS
   ===================================================================== */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--ink);
  margin-bottom: 8px;
}

.form-label-hint {
  font-size: 0.78rem;
  color: var(--blue);
  font-weight: 700;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  pointer-events: none;
}

.email-input,
.form-control {
  width: 100%;
  padding: 13px 44px 13px 44px;
  border: 2px solid var(--ink);
  border-radius: var(--r-m);
  background: var(--paper);
  font-family: var(--f-body);
  font-size: 16px; /* Strict 16px minimum prevents iOS Safari auto-zoom! */
  color: var(--ink);
  font-weight: 600;
  outline: none;
  box-shadow: 0 2px 0 var(--ink);
  transition: all .2s var(--ease);
}

.email-input:focus,
.form-control:focus {
  background: #fff;
  border-color: var(--blue);
  box-shadow: 0 4px 0 var(--ink);
}

.clear-btn {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  color: var(--ink-3);
  cursor: pointer;
  padding: 6px;
  display: none;
}

/* Domain Shortcut Pills */
.domain-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 20px;
  flex-wrap: wrap;
}

.domain-pill-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-3);
}

.domain-pill {
  padding: 5px 12px;
  border: 1.5px solid var(--ink);
  border-radius: var(--r-pill);
  background: #fff;
  color: var(--ink);
  font-family: var(--f-mono);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 1px 0 var(--ink);
  transition: all .15s var(--ease);
}

.domain-pill:hover {
  background: var(--surface);
  transform: translateY(-1px);
}

/* Actions Row (Ambil OTP + Toggle) */
.action-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.live-poll-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--r-m);
  padding: 9px 16px;
  box-shadow: var(--shadow-pop-sm);
  cursor: pointer;
}

.live-poll-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--ink);
}

.live-poll-sub {
  font-size: 0.72rem;
  color: var(--ink-3);
  font-weight: 600;
}

/* Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #cbd5e1;
  border: 1.5px solid var(--ink);
  border-radius: 24px;
  transition: .3s var(--ease);
}

.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3.5px;
  background-color: white;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  transition: .3s var(--spring);
}

input:checked + .slider {
  background-color: var(--go);
}

input:checked + .slider:before {
  transform: translateX(18px);
}

/* Recent Emails Chips */
.recent-chips-section {
  display: none;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1.5px dashed var(--line);
}

.recent-chips-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-3);
  margin-bottom: 8px;
}

.recent-chips-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.recent-chip {
  padding: 4px 12px;
  background: var(--surface);
  border: 1.5px solid var(--ink);
  border-radius: var(--r-pill);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--blue-deep);
  cursor: pointer;
  box-shadow: 0 1px 0 var(--ink);
}

/* =====================================================================
   OTP RESULTS DISPLAY
   ==================================================================== */
.otp-card {
  background: var(--go-bg);
  border: 2.5px solid var(--ink);
  border-radius: var(--r-l);
  box-shadow: var(--shadow-pop-l);
  padding: 28px;
  text-align: center;
  margin-bottom: 24px;
  animation: popIn .35s var(--spring);
}

@keyframes popIn {
  from { transform: scale(0.96); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.otp-badge-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: var(--go);
  color: #fff;
  border: 1.5px solid var(--ink);
  border-radius: var(--r-pill);
  font-family: var(--f-num);
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 16px;
  box-shadow: 0 1px 0 var(--ink);
}

.otp-code-container {
  display: flex;
  justify-content: center;
  margin: 12px 0 16px;
}

.otp-code-display {
  font-family: var(--f-mono);
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  font-weight: 900;
  letter-spacing: 6px;
  color: var(--ink);
  background: #fff;
  border: 2.5px solid var(--ink);
  border-radius: var(--r-m);
  padding: 10px 28px;
  box-shadow: var(--shadow-pop);
  user-select: all;
  display: inline-block;
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border: 2px solid var(--ink);
  border-radius: var(--r-pill);
  background: var(--blue);
  color: #fff;
  font-family: var(--f-head);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow-pop);
  transition: all .2s var(--spring);
  min-height: 46px;
}

.btn-copy:hover {
  background: var(--blue-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-pop-l);
}

.otp-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1.5px dashed rgba(11, 15, 26, 0.2);
  text-align: left;
}

.meta-item {
  background: #fff;
  border: 1.5px solid var(--ink);
  border-radius: var(--r-m);
  padding: 10px 14px;
  box-shadow: 0 2px 0 var(--ink);
}

.meta-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--ink-3);
  text-transform: uppercase;
}

.meta-value {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  word-break: break-all;
}

/* No OTP Card */
.no-otp-card {
  background: #fffbeb;
  border: 2.5px solid var(--ink);
  border-radius: var(--r-l);
  box-shadow: var(--shadow-pop-l);
  padding: 28px;
  text-align: center;
  margin-bottom: 24px;
}

.no-otp-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 10px;
  color: var(--beta);
}

.no-otp-title {
  font-family: var(--f-head);
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--beta);
  margin-bottom: 6px;
}

.no-otp-desc {
  font-size: 0.92rem;
  color: var(--ink-2);
  max-width: 520px;
  margin: 0 auto 16px;
}

.countdown-bar-wrapper {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--r-pill);
  height: 10px;
  max-width: 300px;
  margin: 10px auto 0;
  overflow: hidden;
}

.countdown-bar-fill {
  height: 100%;
  background: var(--blue);
  width: 100%;
  transition: width 0.1s linear;
}

/* =====================================================================
   INBOX ACCORDION LIST
   ===================================================================== */
.inbox-section {
  background: #fff;
  border: 2.5px solid var(--ink);
  border-radius: var(--r-l);
  box-shadow: var(--shadow-pop-l);
  padding: clamp(20px, 3vw, 28px);
  margin-top: 24px;
}

.inbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
}

.inbox-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.inbox-title {
  font-family: var(--f-head);
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--ink);
}

.inbox-count-badge {
  font-family: var(--f-num);
  font-size: 0.76rem;
  padding: 3px 10px;
  background: var(--surface);
  border: 1.5px solid var(--ink);
  border-radius: var(--r-pill);
  color: var(--blue-deep);
  font-weight: 800;
  box-shadow: 0 1px 0 var(--ink);
}

.messages-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.message-item {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--r-m);
  padding: 14px 18px;
  box-shadow: var(--shadow-pop-sm);
  transition: all .2s var(--ease);
  cursor: pointer;
}

.message-item:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-pop);
}

.message-meta-line,
.message-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.message-sender {
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--blue-deep);
}

.message-date {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  color: var(--ink-3);
  font-weight: 600;
}

.message-subject {
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 4px;
}

.message-snippet,
.message-preview {
  font-size: 0.84rem;
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =====================================================================
   TAB 2: NOKOS STORE (BENTO REDESIGN)
   ===================================================================== */
.nokos-step-card {
  background: #fff;
  border: 2.5px solid var(--ink);
  border-radius: var(--r-l);
  box-shadow: var(--shadow-pop-l);
  padding: clamp(18px, 3.5vw, 26px);
  margin-bottom: 20px;
}

.step-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.step-num {
  width: 32px;
  height: 32px;
  background: var(--blue);
  color: #fff;
  font-family: var(--f-num);
  font-weight: 900;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  box-shadow: var(--shadow-pop-sm);
  flex-shrink: 0;
}

.step-title {
  font-family: var(--f-head);
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.service-filter-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--ink);
  border-radius: var(--r-m);
  background: var(--paper);
  font-family: var(--f-body);
  font-size: 16px; /* Prevents iOS auto-zoom */
  color: var(--ink);
  font-weight: 600;
  outline: none;
  box-shadow: 0 2px 0 var(--ink);
  margin-bottom: 14px;
}

.service-filter-input:focus {
  background: #fff;
  border-color: var(--blue);
  box-shadow: 0 4px 0 var(--ink);
}

/* Services Grid Bento */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  max-height: 310px;
  overflow-y: auto;
  padding: 4px 6px 12px 2px;
}

.service-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 10px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--r-m);
  box-shadow: var(--shadow-pop-sm);
  cursor: pointer;
  transition: all .2s var(--spring);
  text-align: center;
  min-height: 86px;
}

.service-chip:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-pop);
  background: #fff;
}

.service-chip.active {
  background: var(--surface);
  border-color: var(--blue);
  box-shadow: var(--shadow-pop-l);
  transform: translateY(-3px);
}

.service-chip .svc-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  transition: transform .25s var(--spring);
}

.service-chip:hover .svc-logo {
  transform: scale(1.12);
}

.service-chip .svc-icon {
  font-size: 1.85rem;
  line-height: 1;
}

.service-chip .svc-name {
  font-family: var(--f-head);
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--ink);
}

/* Country Selector */
.countries-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
  margin-bottom: 16px;
  padding: 2px;
}

.country-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--r-pill);
  font-family: var(--f-body);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--shadow-pop-sm);
  transition: all .18s var(--ease);
  min-height: 40px;
}

.country-chip:hover {
  background: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-pop);
}

.country-chip.active {
  background: var(--night);
  color: #fff;
  box-shadow: var(--shadow-pop);
  transform: translateY(-2px);
}

/* Pricing Summary Bento Box */
.nokos-price-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border: 2.5px solid var(--ink);
  border-radius: var(--r-l);
  padding: 16px 22px;
  margin: 18px 0;
  box-shadow: var(--shadow-pop);
}

.nokos-price-val {
  font-family: var(--f-head);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 900;
  color: var(--blue-deep);
  line-height: 1.1;
}

/* =====================================================================
   QRIS PRESENTATION CARD
   ===================================================================== */
.qris-display-card {
  background: #fff;
  border: 2.5px solid var(--ink);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-pop-xl);
  padding: clamp(20px, 4vw, 36px);
  text-align: center;
  margin-top: 24px;
  animation: popIn .35s var(--spring);
}

.qris-qr-wrapper {
  display: inline-block;
  padding: 14px;
  background: #fff;
  border: 2.5px solid var(--ink);
  border-radius: var(--r-l);
  box-shadow: var(--shadow-pop);
  margin: 18px 0;
}

.qris-qr-wrapper img {
  width: clamp(200px, 50vw, 260px);
  height: clamp(200px, 50vw, 260px);
  display: block;
}

.order-countdown {
  font-family: var(--f-mono);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--danger);
  margin: 8px 0;
}

/* =====================================================================
   ACTIVE NUMBER & SMS RADAR CARD
   ===================================================================== */
.active-number-card {
  background: var(--go-bg);
  border: 2.5px solid var(--ink);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-pop-l);
  padding: clamp(20px, 4vw, 32px);
  text-align: center;
  margin-top: 24px;
}

.allocated-phone-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: #fff;
  border: 2.5px solid var(--ink);
  border-radius: var(--r-pill);
  padding: 12px 24px;
  font-family: var(--f-mono);
  font-size: clamp(1.4rem, 4.5vw, 2rem);
  font-weight: 900;
  color: var(--ink);
  box-shadow: var(--shadow-pop);
  margin: 16px auto;
  max-width: 480px;
}

.otp-waiting-radar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 18px;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--r-pill);
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--go);
  margin: 14px 0;
  box-shadow: var(--shadow-pop-sm);
}

.otp-received-banner {
  background: #fff;
  border: 2.5px solid var(--ink);
  border-radius: var(--r-l);
  box-shadow: var(--shadow-pop-l);
  padding: 24px;
  margin-top: 18px;
  animation: bounceIn .4s var(--spring);
}

@keyframes bounceIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* =====================================================================
   ALERTS, MODALS & TOASTS
   ===================================================================== */
.alert-box {
  background: var(--danger-bg);
  border: 2px solid var(--danger);
  border-radius: var(--r-m);
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 24px;
  color: var(--danger);
  box-shadow: var(--shadow-pop);
}

.alert-title {
  font-weight: 900;
  font-size: 1.05rem;
  margin-bottom: 3px;
}

.alert-desc {
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 15, 26, 0.55);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: #fff;
  border: 2.5px solid var(--ink);
  border-radius: var(--r-l);
  width: 100%;
  max-width: 640px;
  max-height: 86vh;
  box-shadow: 0 16px 40px rgba(11, 15, 26, 0.25), var(--shadow-pop-xl);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header {
  padding: 16px 22px;
  border-bottom: 2px solid var(--ink);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-family: var(--f-head);
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--ink);
}

.modal-close {
  background: transparent;
  border: 2px solid var(--ink);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 900;
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
}

.email-body-content {
  background: var(--paper);
  border: 2px solid var(--line);
  padding: 16px;
  border-radius: var(--r-m);
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.9rem;
}

/* Toasts from fusionify.id */
#toastContainer {
  position: fixed;
  bottom: max(20px, env(safe-area-inset-bottom));
  right: 20px;
  left: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 2000;
  pointer-events: none;
}

.toast {
  padding: 10px 20px;
  border: 2px solid var(--ink);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-pop);
  font-size: 0.92rem;
  font-weight: 800;
  background: #fff;
  color: var(--ink);
  animation: toastIn .35s var(--spring) forwards;
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.toast-success {
  background: var(--go-bg);
  color: var(--go);
}

.toast-error {
  background: var(--danger-bg);
  color: var(--danger);
}

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

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer {
  margin-top: auto;
  padding: 36px 0 max(28px, env(safe-area-inset-bottom));
  border-top: 2.5px solid var(--ink);
  background: #fff;
  text-align: center;
  font-size: 0.88rem;
  color: var(--ink-2);
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.footer-link {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  transition: color .18s;
}

.footer-link:hover {
  color: var(--blue);
}

.footer-legal {
  font-size: 0.8rem;
  color: var(--ink-3);
  margin-top: 6px;
}

/* =====================================================================
   ADMIN DASHBOARD (NEO-POP BENTO REPLICATION)
   ===================================================================== */
.glass-card {
  background: #fff;
  border: 2.5px solid var(--ink);
  border-radius: var(--r-l);
  box-shadow: var(--shadow-pop-l);
  padding: clamp(18px, 3.5vw, 28px);
  margin-bottom: 24px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.stat-card {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--r-m);
  box-shadow: var(--shadow-pop-sm);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.stat-label {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.stat-value {
  font-family: var(--f-head);
  font-size: clamp(1.4rem, 2.8vw, 1.9rem);
  font-weight: 900;
  color: var(--ink);
  line-height: 1.1;
}

.stat-sub {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-2);
  margin-top: 6px;
}

.admin-tabs {
  display: flex;
  align-items: center;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--r-pill);
  padding: 5px;
  box-shadow: var(--shadow-pop-sm);
  margin-bottom: 24px;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.admin-tabs::-webkit-scrollbar {
  display: none;
}

.admin-tab {
  padding: 9px 18px;
  border: 2px solid transparent;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--ink-2);
  font-family: var(--f-head);
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: all .2s var(--ease);
  min-height: 42px;
}

.admin-tab:hover {
  background: var(--surface);
  color: var(--ink);
}

.admin-tab.active {
  background: var(--blue);
  color: #fff;
  border-color: var(--ink);
  box-shadow: var(--shadow-pop-sm);
}

.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 2px solid var(--ink);
  border-radius: var(--r-m);
  background: #fff;
  box-shadow: var(--shadow-pop-sm);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
  min-width: 600px;
}

.data-table th {
  background: var(--surface);
  color: var(--ink);
  font-weight: 900;
  padding: 12px 14px;
  border-bottom: 2px solid var(--ink);
  font-family: var(--f-head);
  font-size: 0.92rem;
  white-space: nowrap;
}

.data-table td {
  padding: 12px 14px;
  border-bottom: 1.5px solid var(--line);
  color: var(--ink);
  vertical-align: middle;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover {
  background: var(--paper);
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 2px solid var(--ink);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--f-head);
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow-pop-sm);
  text-decoration: none;
  transition: all .18s var(--ease);
}

.nav-btn:hover {
  background: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-pop);
}

.nav-btn.btn-danger {
  background: var(--danger-bg);
  color: var(--danger);
}

.nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* =====================================================================
   MAXIMAL AUDIT: iOS, ANDROID & RESPONSIVE BREAKPOINTS
   ===================================================================== */

/* Tablet & Mobile Screens (<= 768px) */
@media (max-width: 768px) {
  :root {
    --nav-h: 56px;
    --gut: 14px;
  }

  .site-header {
    padding-top: max(8px, env(safe-area-inset-top));
    margin-bottom: 14px;
  }

  .navbar {
    padding: 6px 12px;
    gap: 8px;
    border-radius: var(--r-pill);
    box-shadow: var(--shadow-pop-sm);
  }

  .brand-wrap {
    gap: 8px;
  }

  .brand-title {
    font-size: 1.05rem;
    font-weight: 900;
  }

  .brand-badge {
    display: none; /* Keep header clean on small phones */
  }

  .brand-logo-img {
    width: 32px;
    height: 32px;
    border-width: 1.5px;
  }

  .nav-actions {
    gap: 6px;
  }

  .status-indicator {
    padding: 5px 8px;
    font-size: 0.72rem;
  }

  .nav-status-label {
    display: none; /* Show pulsing dot only to save space */
  }

  .btn-telegram {
    padding: 6px 10px;
    font-size: 0.8rem;
    min-height: 36px;
    border-radius: var(--r-pill);
  }

  .nav-tg-label {
    display: none; /* Hide long handle on mobile */
  }

  .btn-telegram::after {
    content: "Telegram";
    font-size: 0.78rem;
    font-weight: 800;
  }

  #navAdminLink {
    padding: 6px 11px;
    font-size: 0.78rem;
    min-height: 36px;
    border-radius: var(--r-pill);
  }

  /* Hero Mobile: Clean, Left-Aligned, Crisp Desktop Proportions */
  .hero-bento {
    padding: 18px 16px;
    border-radius: var(--r-l);
    margin-bottom: 16px;
    box-shadow: var(--shadow-pop);
  }

  .hero-bento-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: left;
  }

  .hero-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 10px;
  }

  .eyebrow-pill {
    padding: 4px 10px;
    font-size: 0.74rem;
  }

  .hero-title {
    font-size: clamp(1.8rem, 6.2vw, 2.3rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
    text-align: left;
  }

  .hero-desc {
    font-size: 0.92rem;
    line-height: 1.5;
    text-align: left;
    color: var(--ink-2);
  }

  .hero-perks {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-start;
  }

  .perk-tag {
    padding: 4px 9px;
    font-size: 0.74rem;
  }

  .hero-right {
    display: flex;
    justify-content: flex-end;
    margin-top: -8px;
    order: 0;
  }

  .mascot-seal-wrap {
    width: 82px;
    height: 82px;
    border-width: 2px;
  }

  .sticker-badge {
    font-size: 0.78rem;
    padding: 2px 7px;
    bottom: -4px;
    right: -6px;
  }

  /* Announcement Bar */
  .announcement-bar {
    padding: 8px 12px;
    font-size: 0.82rem;
    margin-bottom: 16px;
    border-radius: var(--r-m);
    box-shadow: var(--shadow-pop-sm);
  }

  /* Tabs on Mobile: 3-column equal grid segmented control */
  .feature-tabs-wrap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: #fff;
    border: 2px solid var(--ink);
    border-radius: var(--r-l);
    padding: 4px;
    gap: 4px;
    box-shadow: var(--shadow-pop);
    margin-bottom: 18px;
    overflow: visible;
  }

  .feature-tab-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 3px;
    border-radius: var(--r-m);
    min-height: 50px;
    gap: 2px;
    text-align: center;
    white-space: normal;
  }

  .tab-label-full {
    display: none;
  }

  .tab-label-short {
    display: block;
    font-size: 0.8rem;
    font-weight: 800;
    line-height: 1.15;
  }

  .tab-badge {
    font-size: 0.58rem;
    padding: 1px 6px;
    line-height: 1.2;
    margin-top: 1px;
  }

  /* Bento Cards on Mobile */
  .bento-card {
    padding: 18px 15px;
    border-radius: var(--r-l);
    box-shadow: var(--shadow-pop);
    margin-bottom: 16px;
  }

  .bento-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 14px;
  }

  .bento-title {
    font-size: 1.15rem;
  }

  .form-group {
    margin-bottom: 14px;
  }

  .email-input {
    padding: 12px 14px 12px 42px;
    font-size: 16px; /* Prevents auto-zoom on iOS Safari */
    border-radius: var(--r-m);
  }

  .domain-pills {
    gap: 6px;
    margin-top: 8px;
  }

  .domain-pill {
    padding: 4px 10px;
    font-size: 0.78rem;
  }

  /* Action Controls Mobile */
  .action-controls {
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
  }

  .action-controls .btn-primary {
    width: 100%;
    min-height: 48px;
    font-size: 1.02rem;
  }

  .live-poll-wrapper {
    width: 100%;
    padding: 10px 14px;
    border-radius: var(--r-m);
    justify-content: space-between;
  }

  /* Nokos Step Cards */
  .nokos-step-card {
    padding: 16px 14px;
    border-radius: var(--r-l);
    box-shadow: var(--shadow-pop);
    margin-bottom: 14px;
  }

  .step-header {
    gap: 10px;
    margin-bottom: 12px;
  }

  .step-num {
    width: 28px;
    height: 28px;
    font-size: 0.88rem;
  }

  .step-title {
    font-size: 1.12rem;
  }

  .service-filter-input {
    padding: 11px 14px;
    font-size: 16px; /* Prevents iOS auto-zoom */
    border-radius: var(--r-m);
    margin-bottom: 12px;
  }

  /* Services Grid on Phones: 3-column app catalog */
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    max-height: 320px;
    padding: 2px 2px 10px;
    -webkit-overflow-scrolling: touch;
  }

  .service-chip {
    padding: 10px 4px;
    min-height: 78px;
    border-radius: var(--r-m);
    box-shadow: 0 2px 0 var(--ink);
    gap: 5px;
  }

  .service-chip .svc-logo {
    width: 28px;
    height: 28px;
  }

  .service-chip .svc-icon {
    font-size: 1.5rem;
  }

  .service-chip .svc-name {
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.2;
  }

  /* Countries List Mobile */
  .countries-list {
    gap: 6px;
    max-height: 180px;
    margin-bottom: 14px;
  }

  .country-chip {
    padding: 6px 12px;
    font-size: 0.82rem;
    min-height: 36px;
  }

  /* Pricing Box Mobile */
  .nokos-price-summary {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: var(--r-m);
    margin: 14px 0;
    gap: 8px;
  }

  .nokos-price-val {
    font-size: 1.6rem;
  }

  /* QRIS Display Mobile */
  .qris-display-card {
    padding: 20px 14px;
    border-radius: var(--r-l);
    box-shadow: var(--shadow-pop);
  }

  .qris-qr-wrapper {
    padding: 10px;
    border-radius: var(--r-m);
    margin: 12px 0;
  }

  .qris-qr-wrapper img {
    width: min(220px, 60vw);
    height: min(220px, 60vw);
  }

  /* Active Number Mobile */
  .active-number-card {
    padding: 18px 14px;
    border-radius: var(--r-l);
    box-shadow: var(--shadow-pop);
  }

  .allocated-phone-box {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: var(--r-m);
    gap: 8px;
  }

  .allocated-phone-box span {
    font-size: 1.35rem;
    letter-spacing: 0.5px;
  }

  .allocated-phone-box .btn {
    width: auto;
    min-height: 36px;
    padding: 6px 12px;
  }

  /* OTP Display Card Mobile */
  .otp-card {
    padding: 20px 14px;
    border-radius: var(--r-l);
    box-shadow: var(--shadow-pop);
  }

  .otp-code-display {
    font-size: clamp(2.3rem, 9.5vw, 3.2rem);
    letter-spacing: 5px;
  }

  .otp-meta {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* Very Small Phones (e.g. iPhone SE 1st gen, Galaxy Fold closed <= 360px) */
@media (max-width: 360px) {
  .hero-title {
    font-size: 1.65rem;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-tab-btn {
    font-size: 0.74rem;
    padding: 6px 2px;
  }

  .btn {
    padding: 8px 12px;
    font-size: 0.85rem;
  }
}

/* Admin Dashboard & Form Controls Responsive Audit (<= 640px) */
@media (max-width: 640px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .stat-card {
    padding: 14px;
  }

  .admin-tabs {
    padding: 3px;
    gap: 4px;
  }

  .admin-tab {
    padding: 8px 12px;
    font-size: 0.85rem;
  }

  .glass-card {
    padding: 16px;
    border-radius: var(--r-m);
  }

  .data-table th,
  .data-table td {
    padding: 10px 12px;
    font-size: 0.82rem;
  }
}

/* iOS Safe-Area & Touch Optimization */
@supports (padding: max(0px)) {
  body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
}

/* Prevent accidental horizontal bounce on mobile browsers */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
}
