/* ==========================================================================
   AnamarAPK DataLookup - Production Stylesheet
   Brand: AnamarAPK | Official Website: https://www.anamarapk.app
   Color Palette:
     Deep Navy: #0B1220 | Dark Background: #080D18
     Primary Blue: #2563EB | Electric Blue: #3B82F6 | Cyan Accent: #06B6D4
     White: #FFFFFF | Light Background: #F5F7FB
   ========================================================================== */

:root {
  /* Dark Theme Variables (Default) */
  --bg-main: #080D18;
  --bg-surface: #0B1220;
  --bg-card: rgba(15, 23, 42, 0.75);
  --bg-card-hover: rgba(30, 41, 59, 0.85);
  --bg-input: #0F172A;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(59, 130, 246, 0.35);
  --border-cyan: rgba(6, 182, 212, 0.4);

  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-subtle: #64748B;

  --primary-blue: #2563EB;
  --electric-blue: #3B82F6;
  --cyan-accent: #06B6D4;
  --cyan-glow: rgba(6, 182, 212, 0.25);

  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;

  --glass-bg: rgba(11, 18, 32, 0.8);
  --glass-border: 1px solid rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.6);

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

  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] {
  --bg-main: #F5F7FB;
  --bg-surface: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F8FAFC;
  --bg-input: #FFFFFF;
  --border-subtle: #E2E8F0;
  --border-glow: rgba(37, 99, 235, 0.25);
  --border-cyan: rgba(6, 182, 212, 0.3);

  --text-main: #0B1220;
  --text-muted: #475569;
  --text-subtle: #64748B;

  --glass-bg: rgba(255, 255, 255, 0.9);
  --glass-border: 1px solid #E2E8F0;
  --glass-shadow: 0 10px 30px -5px rgba(11, 18, 32, 0.08);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-main);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.12) 0%, transparent 60%), var(--bg-main);
  background-attachment: fixed;
}

a {
  color: var(--electric-blue);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--cyan-accent);
}

img, svg {
  vertical-align: middle;
  max-width: 100%;
}

code {
  font-family: "JetBrains Mono", Menlo, Consolas, Monaco, monospace;
  font-size: 0.9em;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--cyan-accent);
}

[data-theme="light"] code {
  background: #EDF2F7;
  color: #0284C7;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo-img {
  height: 44px;
  width: auto;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 6px 4px;
  position: relative;
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-blue), var(--cyan-accent));
  border-radius: 2px;
}

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

.btn-lookup-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--primary-blue), var(--electric-blue));
  color: #FFFFFF !important;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  transition: var(--transition);
}

.btn-lookup-nav:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

/* Theme Toggle Button */
.theme-toggle-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
}

.theme-toggle-btn:hover {
  color: var(--text-main);
  border-color: var(--border-glow);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 6px;
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  background: var(--bg-surface);
  z-index: 1000;
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  border-left: 1px solid var(--border-subtle);
}

.mobile-drawer.open {
  right: 0;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-drawer-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  cursor: pointer;
}

.mobile-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: auto;
}

.mobile-drawer-links a {
  color: var(--text-muted);
  font-size: 1.05rem;
  font-weight: 500;
  padding: 8px 0;
}

.mobile-drawer-links a:hover, .mobile-drawer-links a.active {
  color: var(--text-main);
  font-weight: 600;
}

.mobile-drawer-footer {
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 999;
  display: none;
}

.mobile-backdrop.visible {
  display: block;
}

/* ==========================================================================
   BUTTONS & CONTROLS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-blue), var(--electric-blue));
  color: #FFFFFF !important;
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1D4ED8, #2563EB);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-main) !important;
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
}

.btn-accent {
  background: linear-gradient(135deg, #0284C7, var(--cyan-accent));
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px var(--cyan-glow);
}

.btn-accent:hover {
  filter: brightness(1.1);
}

.btn-outline {
  background: transparent;
  color: var(--text-muted) !important;
  border: 1px solid var(--border-subtle);
}

.btn-outline:hover {
  color: var(--text-main) !important;
  border-color: var(--text-muted);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted) !important;
  border: none;
}

.btn-ghost:hover {
  color: var(--text-main) !important;
}

.btn-lg {
  padding: 14px 30px;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

/* ==========================================================================
   HERO & SEARCH SECTION
   ========================================================================== */
.hero-section {
  padding: 70px 0 50px 0;
  text-align: center;
  position: relative;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid var(--border-glow);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cyan-accent);
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--text-main);
}

.hero-title .text-gradient {
  background: linear-gradient(135deg, var(--electric-blue) 0%, var(--cyan-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 40px auto;
  font-weight: 400;
}

/* Modern Search Box Container */
.search-card-wrapper {
  max-width: 820px;
  margin: 0 auto;
}

.search-box-card {
  background: var(--glass-bg);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: relative;
}

/* Category Selector Pills */
.category-pills-row {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 18px;
  scrollbar-width: none;
}

.category-pills-row::-webkit-scrollbar {
  display: none;
}

.category-pill {
  white-space: nowrap;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.category-pill:hover {
  color: var(--text-main);
  border-color: var(--border-glow);
}

.category-pill.active {
  background: var(--primary-blue);
  color: #FFFFFF;
  border-color: var(--electric-blue);
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.4);
}

/* Search Input Form Control */
.search-input-group {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 6px 10px;
  transition: var(--transition);
}

.search-input-group:focus-within {
  border-color: var(--electric-blue);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

.country-flag-prefix {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
  border-right: 1px solid var(--border-subtle);
  margin-right: 8px;
}

.search-field {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 1.1rem;
  color: var(--text-main);
  font-weight: 500;
  padding: 10px 8px;
}

.search-field::placeholder {
  color: var(--text-subtle);
  font-weight: 400;
}

.btn-clear-search {
  display: none;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  margin-right: 8px;
  font-size: 0.9rem;
}

.btn-clear-search:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--text-main);
}

.search-submit-btn {
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
}

/* Validation Feedback Badge */
.live-feedback-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 0.85rem;
}

.validation-badge {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 600;
}

.validation-badge.valid {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.validation-badge.invalid {
  background: rgba(239, 68, 68, 0.15);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.validation-badge.info {
  background: rgba(59, 130, 246, 0.15);
  color: #3B82F6;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.privacy-helper-text {
  color: var(--text-subtle);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================================================
   RESULTS CARD COMPONENT
   ========================================================================== */
.results-wrapper {
  max-width: 860px;
  margin: 30px auto 0 auto;
}

.result-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--glass-shadow);
  position: relative;
  overflow: hidden;
}

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

.result-status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
}

.status-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 10px var(--success);
}

.demo-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.15);
  color: #F59E0B;
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.8px;
}

.badge-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #F59E0B;
  animation: pulse 1.8s infinite;
}

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

.demo-banner-alert {
  background: rgba(245, 158, 11, 0.1);
  border-left: 4px solid #F59E0B;
  padding: 14px 18px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 24px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 0.85rem;
}

.demo-banner-alert strong {
  color: #F59E0B;
  display: block;
  margin-bottom: 2px;
}

.demo-banner-alert p {
  color: var(--text-muted);
}

/* Primary Meta Banner */
.result-meta-banner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
}

.meta-field .meta-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-subtle);
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.meta-field .meta-val {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
}

.meta-field .meta-val.highlight {
  color: var(--cyan-accent);
}

.meta-field .meta-val.operator-tag {
  color: var(--electric-blue);
}

/* Spec Grid */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.spec-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
}

.spec-heading {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.spec-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.spec-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  gap: 12px;
}

.spec-k {
  color: var(--text-muted);
}

.spec-v {
  font-weight: 600;
  color: var(--text-main);
  text-align: right;
}

.spec-v.tag-active {
  color: var(--success);
}

.token-code {
  font-size: 0.78rem;
}

/* MNP Notice Callout */
.mnp-notice-callout {
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid var(--border-glow);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 26px;
}

.mnp-notice-callout strong {
  color: var(--text-main);
}

/* Result Actions */
.result-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

.result-timestamp-footer {
  font-size: 0.75rem;
  color: var(--text-subtle);
  margin-top: 16px;
  text-align: right;
}

/* Skeleton Loading State */
.skeleton-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px;
}

.skeleton-line {
  height: 18px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 25%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.04) 75%);
  background-size: 200% 100%;
  animation: skeletonPulse 1.5s infinite;
  border-radius: 4px;
  margin-bottom: 12px;
}

[data-theme="light"] .skeleton-line {
  background: linear-gradient(90deg, #E2E8F0 25%, #CBD5E1 50%, #E2E8F0 75%);
  background-size: 200% 100%;
}

@keyframes skeletonPulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Empty State */
.empty-state-box {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  opacity: 0.6;
}

/* ==========================================================================
   FEATURES SECTION
   ========================================================================== */
.section {
  padding: 70px 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 50px auto;
}

.section-tag {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--cyan-accent);
  letter-spacing: 1.5px;
  margin-bottom: 10px;
  display: block;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 14px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: var(--glass-shadow);
}

.feature-icon-box {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid var(--border-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--cyan-accent);
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-main);
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================================================
   HOW IT WORKS SECTION
   ========================================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  position: relative;
}

.step-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
  position: relative;
}

.step-number {
  font-size: 2.2rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary-blue), var(--cyan-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
}

.step-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-main);
}

.step-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* ==========================================================================
   PROVIDER STATUS DASHBOARD WIDGET
   ========================================================================== */
.provider-dashboard-section {
  background: rgba(255, 255, 255, 0.015);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 60px 0;
}

.provider-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.provider-status-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.provider-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

.provider-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-online { background: rgba(16, 185, 129, 0.15); color: #10B981; border: 1px solid #10B981; }
.status-demo { background: rgba(245, 158, 11, 0.15); color: #F59E0B; border: 1px solid #F59E0B; }
.status-offline { background: rgba(239, 68, 68, 0.15); color: #EF4444; border: 1px solid #EF4444; }
.status-config { background: rgba(148, 163, 184, 0.15); color: #94A3B8; border: 1px solid #94A3B8; }
.status-disabled { background: rgba(100, 116, 139, 0.15); color: #64748B; border: 1px solid #64748B; }

.provider-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.provider-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 12px;
  font-size: 0.8rem;
  color: var(--text-subtle);
}

.active-tag {
  color: var(--cyan-accent);
  font-weight: 600;
}

/* ==========================================================================
   SEARCH HISTORY TABLE & CONTROLS
   ========================================================================== */
.history-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.history-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-main);
  cursor: pointer;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

.custom-table th, .custom-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
}

.custom-table th {
  background: rgba(255, 255, 255, 0.03);
  font-weight: 600;
  color: var(--text-muted);
}

.category-badge {
  background: rgba(59, 130, 246, 0.12);
  color: var(--electric-blue);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}

.tag-status {
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}

.tag-status.demo {
  background: rgba(245, 158, 11, 0.15);
  color: #F59E0B;
}

.tag-status.ok {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
}

.btn-icon-del {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  font-size: 1rem;
  opacity: 0.7;
  transition: var(--transition);
}

.btn-icon-del:hover {
  opacity: 1;
  transform: scale(1.15);
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */
.faq-search-box {
  max-width: 600px;
  margin: 0 auto 36px auto;
}

.faq-search-input {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
}

.faq-search-input:focus {
  border-color: var(--electric-blue);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.faq-container {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: var(--border-glow);
}

.faq-question {
  padding: 20px 24px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.faq-chevron {
  transition: transform 0.25s ease;
  font-size: 0.9rem;
  color: var(--text-subtle);
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
  color: var(--cyan-accent);
}

.faq-answer {
  display: none;
  padding: 0 24px 22px 24px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  border-top: 1px solid transparent;
}

.faq-item.active .faq-answer {
  display: block;
}

/* ==========================================================================
   LEGAL & CONTENT PAGES
   ========================================================================== */
.content-wrapper {
  max-width: 860px;
  margin: 0 auto;
  padding: 50px 0 80px 0;
}

.content-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--glass-shadow);
}

.content-card h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text-main);
}

.content-meta {
  color: var(--text-subtle);
  font-size: 0.88rem;
  margin-bottom: 30px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.content-body h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 30px 0 14px 0;
  color: var(--text-main);
}

.content-body h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 20px 0 10px 0;
  color: var(--text-main);
}

.content-body p, .content-body ul, .content-body ol {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 0.98rem;
  line-height: 1.7;
}

.content-body ul, .content-body ol {
  padding-left: 24px;
}

.content-body li {
  margin-bottom: 8px;
}

.alert-box {
  background: rgba(37, 99, 235, 0.08);
  border-left: 4px solid var(--primary-blue);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 24px 0;
  font-size: 0.92rem;
  color: var(--text-main);
}

.alert-box.warning {
  background: rgba(245, 158, 11, 0.08);
  border-left-color: var(--warning);
}

/* ==========================================================================
   CONTACT FORM
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 36px;
}

.contact-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
}

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

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--electric-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  min-width: 280px;
  max-width: 420px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--text-main);
  backdrop-filter: blur(10px);
}

.toast-success { border-left: 4px solid var(--success); }
.toast-error { border-left: 4px solid var(--danger); }
.toast-warning { border-left: 4px solid var(--warning); }
.toast-info { border-left: 4px solid var(--electric-blue); }

.toast-icon {
  font-size: 1.1rem;
}

/* ==========================================================================
   PWA INSTALL BANNER
   ========================================================================== */
.pwa-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-glow);
  padding: 16px 24px;
  z-index: 500;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.4);
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.pwa-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.pwa-icon-img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  margin-top: auto;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 24px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 16px 0 20px 0;
  max-width: 320px;
  line-height: 1.6;
}

.footer-col h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--text-main);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.88rem;
  color: var(--text-subtle);
}

.footer-branding-statement {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.footer-branding-statement a {
  color: var(--electric-blue);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-branding-statement a:hover {
  color: var(--cyan-accent);
}

.footer-legal-notice {
  font-size: 0.78rem;
  color: var(--text-subtle);
  margin-top: 8px;
  line-height: 1.5;
}

/* ==========================================================================
   ANIMATIONS & ACCESSIBILITY
   ========================================================================== */
.fade-in {
  animation: fadeIn 0.3s ease-in-out forwards;
}

.fade-out {
  animation: fadeOut 0.3s ease-in-out forwards;
}

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

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .nav-desktop, .btn-lookup-nav {
    display: none;
  }
  .mobile-nav-toggle {
    display: block;
  }
  .hero-section {
    padding: 40px 0 30px 0;
  }
  .search-box-card {
    padding: 16px;
  }
  .search-input-group {
    flex-wrap: wrap;
    gap: 10px;
  }
  .country-flag-prefix {
    border-right: none;
    margin-right: 0;
  }
  .search-submit-btn {
    width: 100%;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .spec-grid {
    grid-template-columns: 1fr;
  }
}

/* Print Stylesheet for native PDF export */
@media print {
  .site-header, .site-footer, .category-pills-row, .search-submit-btn,
  .btn-clear-search, .live-feedback-row, .result-actions, .mobile-nav-toggle,
  .theme-toggle-btn, .pwa-banner, .toast-container {
    display: none !important;
  }
  body {
    background: #FFFFFF !important;
    color: #000000 !important;
  }
  .result-card {
    border: 1px solid #CBD5E1 !important;
    box-shadow: none !important;
  }
}
