/* ==========================================================================
   CallHistory.in - Website Stylesheet (Desktop 2-Column + Responsive Mobile)
   Faithful to callhistorychecker.com + Jetpack Compose animations
   ========================================================================== */

:root {
  --primary-navy: #1e3a5f;
  --primary-navy-dark: #152d4a;
  --primary-navy-light: #2a4a70;
  --accent-blue: #3F51B5;
  --accent-blue-dark: #303A9F;
  --accent-green: #22c55e;
  --accent-green-dark: #16a34a;
  --accent-red: #ef4444;
  --accent-yellow: #f59e0b;
  --accent-purple: #8b5cf6;

  --bg-page: #f4f7fa;
  --card-bg: #ffffff;
  --text-dark: #1a1a1a;
  --text-gray: #666666;
  --text-light: #999999;
  --border-color: #e5e7eb;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.1);
  --shadow-card: 0 30px 80px rgba(28, 51, 86, 0.1);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
}

/* Base Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-page);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at 15% 15%, rgba(37, 99, 235, 0.04) 0%, transparent 45%), radial-gradient(circle at 85% 80%, rgba(99, 102, 241, 0.04) 0%, transparent 45%), #f4f7fb;
  overflow-x: hidden;
  line-height: 1.5;
}

/* Screen Management */
.screen {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  width: 100%;
}

.screen.active {
  display: block;
  opacity: 1;
}

/* ==========================================================================
   HEADER (Full Width Desktop & Mobile)
   ========================================================================== */
.hp-header {
  background: var(--primary-navy);
  color: #ffffff;
  padding: 16px 24px;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.hp-header-content {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hp-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.hp-header-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.hp-header-logo-frame {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  padding: 2px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.hp-header-text h1 {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.2px;
}

.hp-header-tagline {
  font-size: 0.76rem;
  color: #cbd5e1;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.hp-header-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hp-live-server-badge {
  display: none;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #a7f3d0;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-full);
}

@media (min-width: 640px) {
  .hp-live-server-badge {
    display: inline-flex;
  }
}

.hp-pulse-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3);
  animation: pulseDotAnim 2s infinite;
}

@keyframes pulseDotAnim {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
  70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hp-nav-link {
  color: #e2e8f0;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.hp-nav-link:hover {
  color: #ffffff;
}

.hp-nav-pill-btn {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hp-nav-pill-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.hp-pill-counter {
  background: var(--accent-red);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   MAIN SECTION (2-Column Grid on Desktop, Stack on Mobile)
   ========================================================================== */
.hp-main-content {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 16px 50px;
}

@media (min-width: 960px) {
  .hp-main-content {
    display: grid;
    grid-template-columns: 450px 1fr;
    gap: 48px;
    align-items: start;
    padding: 44px 24px 60px;
  }
}

/* ==========================================================================
   LEFT COLUMN - THE INPUT CARD (Matching CallHistoryChecker Design)
   ========================================================================== */
.hp-card-wrapper {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: 36px auto 0;
}

@media (min-width: 960px) {
  .hp-card-wrapper {
    margin: 32px 0 0;
    max-width: 100%;
  }
}

.hp-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 56px 30px 36px;
  box-shadow: 0 20px 45px -12px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(226, 232, 240, 0.85);
  text-align: center;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hp-card:hover {
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(37, 99, 235, 0.2);
}

.hp-card-top-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #1e3a5f;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.hp-badge-spark {
  font-size: 0.82rem;
}

/* Circular Floating Header Icon */
.hp-card-header-icon-wrapper {
  width: 96px;
  height: 96px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -48px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  padding: 6px;
  z-index: 10;
}

.hp-card-header-icon {
  width: 82px;
  height: 82px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  border: 3px solid #f8fafc;
}

.hp-card-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.hp-card-title {
  font-size: 1.55rem;
  font-weight: 850;
  color: #0f172a;
  margin-bottom: 6px;
  letter-spacing: -0.025em;
}

.hp-card-subtitle {
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 600;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Service Options Selection Pills - 2x2 Grid so 3-in-1 Combo is never hidden */
.service-pills-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.service-pill-item {
  width: 100%;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
  user-select: none;
}

.service-pill-item:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.service-pill-item.active {
  background: #eef2ff;
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(63, 81, 181, 0.15);
}

.service-pill-item[data-service="combo"] {
  border-color: #ddd6fe;
}

.service-pill-item[data-service="combo"].active {
  background: #f5f3ff;
  border-color: var(--accent-purple);
  color: var(--accent-purple);
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.2);
}

/* Redesigned Input Container */
.hp-input-container {
  background: #ffffff;
  border-radius: 18px;
  padding: 5px;
  display: flex;
  align-items: center;
  border: 2px solid #e2e8f0;
  margin-bottom: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.hp-input-container:focus-within {
  border-color: #2563eb;
  background: #ffffff;
  box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.12), 0 4px 12px rgba(37, 99, 235, 0.06);
}

.hp-country-part {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-right: 1.5px solid #e2e8f0;
  cursor: pointer;
  user-select: none;
}

.hp-flag-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.hp-country-code {
  font-size: 1.05rem;
  color: var(--text-dark);
  font-weight: 700;
}

.hp-phone-input {
  flex: 1;
  width: 100%;
  padding: 12px 14px;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text-dark);
  letter-spacing: 0.6px;
}

.hp-phone-input::placeholder {
  color: #94a3b8;
  font-weight: 400;
  letter-spacing: normal;
  font-size: 0.95rem;
}

.input-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 20px;
  padding: 0 4px;
  margin-bottom: 16px;
  font-size: 0.74rem;
}

.hp-input-hint {
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 600;
}

.error-message {
  color: var(--accent-red);
  font-weight: 600;
  display: none;
}

.carrier-detect-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.7rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.carrier-detect-pill.visible {
  opacity: 1;
}

/* Submit Button - Premium Gradient */
.hp-submit-btn {
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
  color: #ffffff;
  border: none;
  border-radius: 16px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  cursor: pointer;
  box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.4);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.hp-submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 15px 32px -5px rgba(37, 99, 235, 0.55);
}

.hp-submit-btn:active:not(:disabled) {
  transform: translateY(0);
}

.hp-btn-arrow {
  transition: transform 0.2s ease;
}

.hp-submit-btn:hover:not(:disabled) .hp-btn-arrow {
  transform: translateX(4px);
}

.hp-submit-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* Micro Trust Chips */
.hp-micro-trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.hp-trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.71rem;
  font-weight: 700;
  color: #475569;
}

/* Supported Networks Redesign */
.hp-networks-container {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 18px 14px;
  margin-top: 22px;
}

.hp-networks-label {
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

.hp-networks-grid {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.hp-network-card {
  flex: 1;
  padding: 8px 4px;
  background: #ffffff;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  border: 1px solid #e2e8f0;
  transition: all 0.25s ease;
}

.hp-network-card:hover {
  transform: translateY(-2px);
  border-color: #2563eb;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.12);
}

.hp-network-icon {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.hp-network-name {
  font-size: 0.68rem;
  font-weight: 800;
  color: #334155;
}

.hp-privacy-text {
  font-size: 0.74rem;
  color: var(--text-light);
  margin-top: 20px;
  line-height: 1.5;
}

.hp-privacy-text a {
  color: var(--text-gray);
  text-decoration: underline;
  font-weight: 500;
}

/* ==========================================================================
   RIGHT COLUMN - FEATURES, SEO & CONTENT (Full Width on Desktop)
   ========================================================================== */
.hp-right-column {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  margin-top: 28px;
}

@media (min-width: 960px) {
  .hp-right-column {
    margin-top: 0;
  }
}

/* Features Grid (4 Cards) */
.hp-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.hp-feature-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 20px 18px;
  display: flex;
  gap: 14px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.hp-feature-card:hover {
  transform: translateY(-3px);
  border-color: #93c5fd;
  box-shadow: 0 12px 24px -8px rgba(37, 99, 235, 0.12);
}

.hp-feature-icon-box {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.hp-feature-card:hover .hp-feature-icon-box {
  transform: scale(1.08);
}

.hp-feature-icon-box.blue {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  color: #2563eb;
  border: 1px solid #bfdbfe;
}

.hp-feature-icon-box.green {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

.hp-feature-icon-box.purple {
  background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
  color: #9333ea;
  border: 1px solid #e9d5ff;
}

.hp-feature-icon-box.amber {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  color: #d97706;
  border: 1px solid #fde68a;
}

.hp-feature-content h3 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
}

.hp-feature-content p {
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 4px;
  line-height: 1.45;
}

/* SEO Description Section */
.hp-seo-section {
  background: #ffffff;
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.hp-seo-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 10px;
  display: block;
}

.hp-seo-text {
  font-size: 0.85rem;
  color: var(--text-gray);
  line-height: 1.6;
  margin-bottom: 12px;
}

.hp-seo-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--border-color);
}

.hp-seo-tag {
  background: #f1f5f9;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

/* Safety Protocol Badge */
.hp-gov-badge {
  background: #ecfdf5;
  border: 1.5px solid #a7f3d0;
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #065f46;
  line-height: 1.4;
}

.hp-gov-badge-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

/* Testimonials / Live Activity Auto-Ticker */
.hp-testimonials-section {
  background: #ffffff;
  border-radius: 18px;
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.hp-testimonials-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 14px;
}

.hp-live-dot {
  width: 9px;
  height: 9px;
  background: var(--accent-green);
  border-radius: 50%;
  animation: liveDotPulse 1.6s infinite ease-in-out;
}

@keyframes liveDotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}

.hp-testimonials-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.hp-testimonials-track::-webkit-scrollbar {
  display: none;
}

.hp-testimonial-card {
  flex-shrink: 0;
  width: 220px;
  background: #f8fafc;
  border-radius: 12px;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
}

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

.hp-testimonial-phone {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-dark);
}

.hp-testimonial-plan-badge {
  font-size: 0.65rem;
  background: var(--primary-navy);
  color: #ffffff;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
}

.hp-testimonial-msg {
  font-size: 0.74rem;
  color: var(--text-gray);
  line-height: 1.35;
}

/* Carrier Guidance Box */
.hp-carrier-guidance {
  background: #f8fafc;
  border-radius: 18px;
  padding: 22px;
  border: 1px solid #e2e8f0;
}

.hp-guidance-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hp-guidance-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.hp-guidance-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary-navy);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.hp-guidance-btn:hover {
  border-color: var(--primary-navy);
  background: #f1f5f9;
  transform: translateY(-1px);
}

/* FAQ Accordion */
.hp-faq-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.hp-faq-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 14px;
}

.faq-row {
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
}
.faq-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.faq-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  user-select: none;
}

.faq-desc {
  font-size: 0.8rem;
  color: var(--text-gray);
  line-height: 1.5;
  margin-top: 8px;
  display: none;
}

.faq-row.open .faq-desc {
  display: block;
}

.faq-row.open .faq-icon {
  transform: rotate(180deg);
}

.faq-icon {
  transition: transform 0.2s ease;
  font-size: 0.75rem;
}

/* ==========================================================================
   FOOTER (Full Width)
   ========================================================================== */
.hp-footer {
  background: var(--primary-navy);
  color: #94a3b8;
  padding: 36px 24px 28px;
  margin-top: auto;
}

.hp-footer-content {
  max-width: 1240px;
  margin: 0 auto;
}

.hp-footer-top {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
  .hp-footer-top {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.hp-footer-brand h2 {
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 700;
}

.hp-footer-brand p {
  font-size: 0.76rem;
  margin-top: 2px;
}

.hp-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hp-footer-nav a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.2s ease;
}

.hp-footer-nav a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.hp-footer-bottom {
  padding-top: 20px;
  font-size: 0.74rem;
  line-height: 1.6;
  color: #64748b;
}

/* ==========================================================================
   SCREEN 2: CALL HISTORY RESULTS (Spacious Desktop & Mobile Container)
   ========================================================================== */
.history-viewport-container {
  max-width: 900px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

@media (min-width: 900px) {
  .history-viewport-container {
    margin: 30px auto;
    min-height: calc(100vh - 60px);
    border-radius: 24px;
    border: 1px solid var(--border-color);
    overflow: hidden;
  }
}

.history-header {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 40;
}

.history-back-btn {
  background: #f1f5f9;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-dark);
  transition: background 0.2s ease;
}
.history-back-btn:hover {
  background: #e2e8f0;
}

.history-target-box {
  text-align: center;
}

.history-target-number {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary-navy);
  letter-spacing: 0.5px;
}

.history-carrier-sub {
  font-size: 0.75rem;
  color: var(--accent-green);
  font-weight: 700;
}

.history-action-pdf-btn {
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  color: var(--accent-blue);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.history-body-content {
  flex: 1;
  padding: 20px 24px 100px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Stats Summary Card */
.summary-stats-box {
  background: linear-gradient(135deg, #1e3a5f 0%, #152d4a 100%);
  color: #ffffff;
  border-radius: 16px;
  padding: 18px 24px;
}

.stats-grid-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  text-align: center;
}

.stat-metric {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  padding: 12px 8px;
  border-radius: 10px;
}

.stat-metric-num {
  font-size: 1.25rem;
  font-weight: 800;
  display: block;
}

.stat-metric-label {
  font-size: 0.7rem;
  opacity: 0.85;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Filter Tabs */
.filter-tabs-scroller {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.filter-tabs-scroller::-webkit-scrollbar {
  display: none;
}

.filter-tab-pill {
  flex-shrink: 0;
  padding: 8px 16px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-gray);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.filter-tab-pill.active {
  background: var(--primary-navy);
  border-color: var(--primary-navy);
  color: #ffffff;
}

.filter-pill-badge {
  font-size: 0.7rem;
  background: rgba(0, 0, 0, 0.08);
  padding: 2px 7px;
  border-radius: var(--radius-full);
}
.filter-tab-pill.active .filter-pill-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* Call Items Cards */
.call-items-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.call-item-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  position: relative;
  transition: all 0.2s ease;
}

.call-item-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.call-direction-icon,
.call-type-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.call-direction-icon.incoming,
.call-type-icon.incoming {
  background: #dcfce7;
  border: 1.5px solid #bbf7d0;
  color: #16a34a;
}

.call-direction-icon.outgoing,
.call-type-icon.outgoing {
  background: #dbeafe;
  border: 1.5px solid #bfdbfe;
  color: #2563eb;
}

.call-direction-icon.missed,
.call-type-icon.missed {
  background: #fee2e2;
  border: 1.5px solid #fecaca;
  color: #dc2626;
}

.call-direction-icon.sms-recv,
.call-type-icon.sms-recv,
.call-type-icon.received {
  background: #eff6ff;
  border: 1.5px solid #bfdbfe;
  color: #2563eb;
}

.call-direction-icon.sms-sent,
.call-type-icon.sms-sent,
.call-type-icon.sent {
  background: #f0fdf4;
  border: 1.5px solid #bbf7d0;
  color: #16a34a;
}

.call-direction-icon.sms-otp,
.call-type-icon.sms-otp,
.call-type-icon.otp {
  background: #fef3c7;
  border: 1.5px solid #fde68a;
  color: #d97706;
}

.call-direction-icon svg,
.call-type-icon svg {
  display: block;
}

.cdr-summary-footer-note {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  padding: 12px 16px;
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.cdr-note-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.cdr-note-text strong {
  display: block;
  font-size: 0.82rem;
  color: #1e293b;
  margin-bottom: 2px;
}

.cdr-note-text p {
  font-size: 0.74rem;
  color: #64748b;
  line-height: 1.4;
  margin: 0;
}

.call-meta h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-dark);
}

.call-meta p {
  font-size: 0.78rem;
  color: var(--text-gray);
  margin-top: 2px;
}

.call-item-right {
  text-align: right;
}

.call-time-val {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-dark);
}

.call-duration-val {
  font-size: 0.72rem;
  color: var(--text-light);
  margin-top: 2px;
}

/* FROSTED GLASS BLURRED ITEMS */
.call-item-card.blurred {
  position: relative;
  user-select: none;
}

.call-item-card.blurred .call-item-left,
.call-item-card.blurred .call-item-right {
  filter: blur(5px);
  -webkit-filter: blur(5px);
  opacity: 0.55;
  pointer-events: none;
}

.blurred-lock-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(2px);
  border-radius: 14px;
  z-index: 10;
  cursor: pointer;
}

.blurred-lock-pill {
  background: var(--primary-navy);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(30, 58, 95, 0.3);
  transition: transform 0.2s ease;
}

.blurred-lock-overlay:hover .blurred-lock-pill {
  transform: scale(1.05);
}

/* Floating Bottom Action Bar */
.history-floating-bottom {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-color);
  padding: 14px 24px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  gap: 12px;
  z-index: 45;
}

.btn-unblur-now {
  flex: 1.4;
  padding: 14px 20px;
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35);
  transition: all 0.2s ease;
}

.btn-unblur-now:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(22, 163, 74, 0.45);
}

.btn-generate-statement-pdf {
  flex: 1;
  padding: 14px 18px;
  background: linear-gradient(135deg, #1e3a5f 0%, #152d4a 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(30, 58, 95, 0.25);
  transition: all 0.2s ease;
}

.btn-generate-statement-pdf:hover {
  transform: translateY(-2px);
}

/* ==========================================================================
   MODALS (Scanner, Pricing, PDF, Country, Reports)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(10px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.modal-window-card {
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  box-shadow: var(--shadow-lg);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalPopUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalPopUp {
  0% { transform: scale(0.92); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.modal-close-icon {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #f1f5f9;
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-gray);
  font-size: 1rem;
}
.modal-close-icon:hover {
  background: #e2e8f0;
  color: var(--text-dark);
}

/* Scanner Animation Modal */
.scanner-anim-box {
  width: 200px;
  max-width: 100%;
  height: 200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.radar-fallback-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.radar-sweep-beam {
  transform-origin: 100px 100px;
  animation: radarSweepAnim 2s infinite linear;
}

@keyframes radarSweepAnim {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.radar-pulse-ring-1 {
  transform-origin: 100px 100px;
  animation: radarPulseAnim 2.2s infinite ease-out;
}

.radar-pulse-ring-2 {
  transform-origin: 100px 100px;
  animation: radarPulseAnim 2.2s infinite ease-out 1.1s;
}

@keyframes radarPulseAnim {
  0% { r: 20px; opacity: 1; }
  100% { r: 85px; opacity: 0; }
}

.scanner-target-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f1f5f9;
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-top: 10px;
}

.scanner-bar-bg {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: var(--radius-full);
  margin: 18px 0 10px;
  overflow: hidden;
}

.scanner-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #1e3a5f 0%, #3b82f6 100%);
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}

/* Pricing Plans in Modal */
.pricing-options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 18px 0;
}

.pricing-card-option {
  border: 2px solid var(--border-color);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.pricing-card-option.selected {
  border-color: var(--primary-navy);
  background: #f0f7ff;
}

.plan-badge-top {
  position: absolute;
  top: -9px;
  right: 14px;
  background: var(--accent-red);
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.plan-title-bold {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-dark);
}

.plan-sub-text {
  font-size: 0.72rem;
  color: var(--text-gray);
  margin-top: 2px;
}

.plan-cost {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary-navy);
}

.btn-modal-checkout {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.4);
}

/* Supported Networks Icon Fix */
.hp-network-icon {
  width: auto;
  max-width: 48px;
  max-height: 36px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* ==========================================================================
   SELECTION MENU SCREEN (Choose Record Type - App Aligned)
   ========================================================================== */
.selection-viewport-container {
  max-width: 680px;
  margin: 0 auto;
  padding: 24px 16px 80px;
  min-height: 100vh;
}

.selection-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.selection-back-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.selection-back-action-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateX(-2px);
}

.selection-header-center {
  text-align: center;
}

.selection-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.selection-subtitle {
  font-size: 0.82rem;
  color: #64748b;
  margin-top: 4px;
}

.selection-target-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.selection-target-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #eff6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.selection-target-meta {
  flex: 1;
}

.selection-target-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #64748b;
  display: block;
}

.selection-target-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.selection-target-num {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.selection-carrier-badge {
  background: #dcfce7;
  color: #15803d;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  display: inline-block;
}

/* Selection Controls Bar (Quick Toggle) */
.selection-controls-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding: 0 4px;
}

.selection-controls-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #475569;
}

.toggle-select-all-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.76rem;
  font-weight: 800;
  color: #4338ca;
  cursor: pointer;
  transition: all 0.2s ease;
}

.toggle-select-all-btn:hover {
  background: #e0e7ff;
  border-color: #a5b4fc;
}

.selection-menu-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Interactive Checkbox Card */
.selection-checkbox-card {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 18px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  user-select: none;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
}

.selection-checkbox-card:hover {
  border-color: #93c5fd;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.08);
}

.selection-checkbox-card.active {
  border-color: #2563eb;
  background: #f8faff;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.1);
}

.service-checkbox-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.selection-card-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.icon-purple { background: #f3e8ff; }
.icon-green { background: #dcfce7; }
.icon-blue { background: #e0f2fe; }

.selection-card-content {
  flex: 1;
  min-width: 0;
}

.selection-card-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.selection-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.selection-pill-badge {
  font-size: 0.65rem;
  font-weight: 700;
  background: #f1f5f9;
  color: #475569;
  padding: 2px 8px;
  border-radius: 999px;
}

.badge-green { background: #dcfce7; color: #15803d; }
.badge-blue { background: #e0f2fe; color: #0284c7; }

.selection-card-desc {
  font-size: 0.78rem;
  color: #64748b;
  margin: 4px 0 6px;
  line-height: 1.4;
}

.selection-card-security {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  color: #059669;
  font-weight: 600;
}

.sec-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
}

.sec-dot.green { background: #10b981; }
.sec-dot.blue { background: #0284c7; }

/* Custom Checkbox Design */
.selection-checkbox-custom {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 2px solid #cbd5e1;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.selection-checkbox-card.active .selection-checkbox-custom {
  background: #2563eb;
  border-color: #2563eb;
}

.selection-checkbox-custom .check-svg {
  opacity: 0;
  transform: scale(0.6);
  transition: all 0.18s ease;
}

.selection-checkbox-card.active .selection-checkbox-custom .check-svg {
  opacity: 1;
  transform: scale(1);
}

/* Bottom Action Button */
.selection-bottom-action {
  margin-top: 26px;
  text-align: center;
}

.selection-proceed-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px 24px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  border: none;
  border-radius: 16px;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}

.selection-proceed-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.45);
}

.selection-proceed-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  background: #94a3b8;
}

.selection-proceed-sub {
  font-size: 0.74rem;
  color: #64748b;
  margin-top: 10px;
  font-weight: 500;
}

/* Statement Period Selector in Results Screen */
.period-selector-container {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 12px 16px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.period-selector-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 6px;
}

.period-selector-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.04em;
}

.period-range-text {
  font-size: 0.74rem;
  font-weight: 700;
  color: #2563eb;
  background: #eff6ff;
  padding: 2px 10px;
  border-radius: 999px;
}

.period-pills-row {
  display: flex;
  gap: 8px;
}

.period-pill {
  flex: 1;
  padding: 9px 8px;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 800;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.period-pill:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.period-pill.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28);
}

.period-pop-tag {
  font-size: 0.6rem;
  background: #fef08a;
  color: #854d0e;
  padding: 1px 6px;
  border-radius: 999px;
  font-weight: 800;
}

.period-pill.active .period-pop-tag {
  background: #ffffff;
  color: #1d4ed8;
}

/* PDF Generator Modal */
.pdf-terminal-screen {
  background: #090d16;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 12px;
  font-family: monospace;
  font-size: 0.72rem;
  color: #34d399;
  text-align: left;
  max-height: 120px;
  overflow-y: auto;
  margin: 16px 0;
  line-height: 1.6;
}

/* ==========================================================================
   SCREEN 4: NOT FOUND IN TRAI DATABASE (Professional Enterprise Error Screen)
   ========================================================================== */
.not-found-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  text-align: center;
}

.not-found-icon-wrap {
  width: 76px;
  height: 76px;
  background: #fef2f2;
  border: 1px solid #fee2e2;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.not-found-code-badge {
  display: inline-block;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid #fecaca;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.not-found-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 10px;
}

.not-found-desc {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.6;
  max-width: 540px;
  margin: 0 auto 24px;
}

.not-found-details-table {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 18px;
  text-align: left;
  margin-bottom: 22px;
}

.nf-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid #edf2f7;
  font-size: 0.82rem;
}

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

.nf-label {
  color: #64748b;
  font-weight: 600;
}

.nf-value {
  color: #0f172a;
  font-weight: 700;
}

.nf-value.text-red {
  color: #dc2626;
}

.font-mono {
  font-family: monospace;
  font-size: 0.88rem;
}

.not-found-advisory {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 16px 18px;
  text-align: left;
  margin-bottom: 26px;
}

.advisory-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 800;
  color: #1e40af;
  margin-bottom: 8px;
}

.advisory-list {
  margin: 0;
  padding-left: 18px;
  font-size: 0.78rem;
  color: #1e3a8a;
  line-height: 1.55;
}

.advisory-list li {
  margin-bottom: 5px;
}

.not-found-actions {
  max-width: 380px;
  margin: 0 auto;
}

/* ==========================================================================
   DYNAMIC PRICING & PAYMENT GATEWAY (Fintech-grade UPI, Cards & NetBanking)
   ========================================================================== */
.plan-cost-box {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.plan-cost-orig {
  font-size: 0.72rem;
  color: #94a3b8;
  text-decoration: line-through;
  font-weight: 600;
}

.plan-features-list {
  margin: 8px 0 0;
  padding-left: 18px;
  font-size: 0.72rem;
  color: #475569;
  line-height: 1.45;
}

.pg-modal-card {
  max-width: 480px;
  padding: 24px;
  border-radius: 20px;
  position: relative;
}

.pg-header {
  margin-bottom: 16px;
}

.pg-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.pg-brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 800;
  color: #1e3a5f;
}

.pg-security-badge {
  font-size: 0.68rem;
  font-weight: 700;
  color: #16a34a;
  background: #dcfce7;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid #bbf7d0;
}

.pg-order-summary-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
}

.pg-summary-target {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
}

.pg-summary-plan {
  display: block;
  font-size: 0.74rem;
  color: #64748b;
  margin-top: 2px;
}

.pg-amount-label {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  color: #64748b;
  text-align: right;
  letter-spacing: 0.5px;
}

.pg-amount-val {
  display: block;
  font-size: 1.25rem;
  font-weight: 900;
  color: #16a34a;
  text-align: right;
  line-height: 1.2;
}

.pg-timer-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.72rem;
  color: #64748b;
  margin-top: 8px;
}

.pg-timer-dot {
  width: 7px;
  height: 7px;
  background: #ef4444;
  border-radius: 50%;
  animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 0.5; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.5; }
}

.pg-tabs-bar {
  display: flex;
  gap: 6px;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 10px;
  margin-bottom: 16px;
}

.pg-method-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #f1f5f9;
  border-radius: 10px;
  margin-bottom: 14px;
}

.pg-method-badge {
  font-size: 0.82rem;
  font-weight: 800;
  color: #1e3a5f;
  display: flex;
  align-items: center;
  gap: 4px;
}

.pg-method-sub {
  font-size: 0.7rem;
  font-weight: 700;
  color: #16a34a;
}

.pg-tab-content {
  display: none;
}

.pg-tab-content.active {
  display: block;
}

/* UPI QR Section */
.pg-qr-section {
  text-align: center;
  margin-bottom: 14px;
}

.pg-qr-frame {
  width: 170px;
  height: 170px;
  margin: 0 auto 10px;
  padding: 8px;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pg-qr-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.pg-qr-center-logo {
  position: absolute;
  background: #ffffff;
  border: 1.5px solid #2563eb;
  color: #2563eb;
  font-size: 0.65rem;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 6px;
}

.pg-qr-instruction {
  font-size: 0.74rem;
  color: #475569;
  font-weight: 600;
  margin-bottom: 8px;
}

.pg-upi-id-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  color: #334155;
}

.pg-copy-btn {
  background: #2563eb;
  color: #ffffff;
  border: none;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  cursor: pointer;
}

.pg-copy-btn:hover {
  background: #1d4ed8;
}

.pg-upi-apps-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.pg-app-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 4px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  text-decoration: none;
  color: #1e293b;
  font-size: 0.72rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

.pg-app-pill:hover {
  border-color: #2563eb;
  background: #eff6ff;
  transform: translateY(-2px);
}

.pg-app-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.75rem;
  color: #ffffff;
}

.pg-app-pill.gpay .pg-app-icon { background: #4285f4; }
.pg-app-pill.phonepe .pg-app-icon { background: #5f259f; }
.pg-app-pill.paytm .pg-app-icon { background: #00b9f5; }
.pg-app-pill.generic .pg-app-icon { background: #16a34a; }

.pg-utr-box {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  padding: 10px 12px;
  text-align: left;
}

.pg-input-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #475569;
  margin-bottom: 4px;
}

.pg-text-input {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.85rem;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s;
}

.pg-text-input:focus {
  border-color: #2563eb;
}

/* Card Form */
.pg-card-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  margin-bottom: 14px;
}

.pg-form-group {
  display: flex;
  flex-direction: column;
}

.pg-form-row {
  display: flex;
  gap: 10px;
}

.pg-input-icon-wrap {
  position: relative;
}

.pg-card-brand-badge {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.68rem;
  font-weight: 800;
  color: #2563eb;
  background: #eff6ff;
  padding: 2px 6px;
  border-radius: 4px;
}

/* Bank Grid */
.pg-bank-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 6px;
  margin-bottom: 14px;
  text-align: left;
}

.pg-bank-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.74rem;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
  background: #ffffff;
}

.pg-bank-option:hover {
  background: #f8fafc;
}

/* Action Footer */
.pg-action-footer {
  margin-top: 14px;
  text-align: center;
}

.pg-pay-action-btn {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35);
  transition: all 0.2s ease;
}

.pg-pay-action-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(22, 163, 74, 0.45);
}

.pg-action-subtext {
  font-size: 0.68rem;
  color: #64748b;
  margin-top: 6px;
}

/* Verifying Layer */
.pg-verifying-layer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 10;
  text-align: center;
}

.pg-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #e2e8f0;
  border-top-color: #16a34a;
  border-radius: 50%;
  animation: pgSpin 0.8s linear infinite;
}

@keyframes pgSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
