/* ==========================================================================
   MAKANFIT PREMIUM DESIGN SYSTEM & VARIABLES
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,400&display=swap');

:root {
  /* Color Palette - Ultra Premium Dark Theme */
  --bg-primary: #07090e;      /* Obsidian Dark */
  --bg-secondary: #0d121f;    /* Sleek Deep Slate */
  --bg-card: rgba(13, 18, 31, 0.45); /* Glassmorphic Card */
  
  --primary-green: #0a331e;
  --accent-green: #10b981;     /* Neon Emerald */
  --accent-green-rgb: 16, 185, 129;
  --green-glow: rgba(16, 185, 129, 0.25);
  
  --text-dark: #f9fafb;       /* Pure white/off-white for headers */
  --text-muted: #9ca3af;      /* Muted clean gray for body copy */
  --text-light: #ffffff;
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(16, 185, 129, 0.18);

  /* Fonts */
  --font-primary: 'Plus Jakarta Sans', sans-serif;
  --font-headings: 'Outfit', sans-serif;
  --font-serif: 'Fraunces', serif;

  /* Shadows */
  --shadow-subtle: 0 4px 30px rgba(0, 0, 0, 0.3);
  --shadow-medium: 0 10px 40px rgba(0, 0, 0, 0.5);

  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   BASE RESETS & DECORATIONS
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-dark);
  font-family: var(--font-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  background-color: var(--bg-primary);
  position: relative;
  width: 100%;
  -webkit-overflow-scrolling: touch;
}

/* Touch optimization for iOS & Android */
button, a, .tab-btn, .step-card, .price-card, .faq-question {
  touch-action: manipulation;
}


/* Ambient Radial Background Glows */
body::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  top: 5%;
  left: -100px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
  filter: blur(90px);
  z-index: -1;
  pointer-events: none;
  animation: float-glow 18s infinite alternate ease-in-out;
}

body::after {
  content: "";
  position: absolute;
  width: 700px;
  height: 700px;
  top: 50%;
  right: -200px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.05) 0%, transparent 70%);
  filter: blur(120px);
  z-index: -1;
  pointer-events: none;
  animation: float-glow 24s infinite alternate-reverse ease-in-out;
}

@keyframes float-glow {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(80px, 40px) scale(1.15); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: rgba(16, 185, 129, 0.25);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-green);
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3 {
  font-family: var(--font-headings);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

p {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-muted);
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.navbar {
  position: fixed;
  top: 1.5rem;
  left: 5%;
  width: 90%;
  padding: 0.8rem 2rem;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: none;
  border-radius: 0;
  background-color: rgba(7, 9, 14, 0.65);
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  top: 0.75rem;
  background-color: rgba(7, 9, 14, 0.85);
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-top-row {
  display: contents;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  order: 1;
}

.logo-img {
  height: 34px;
  width: auto;
  border-radius: 8px;
  filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.3));
}

.nav-brand span {
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
  color: var(--text-dark);
}

.nav-links {
  display: flex;
  gap: 2.2rem;
  list-style: none;
  align-items: center;
  order: 2;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition-smooth);
  position: relative;
  padding: 0.2rem 0;
}

.nav-links a:hover {
  color: var(--text-dark);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1.5px;
  background: var(--accent-green);
  transition: var(--transition-smooth);
  transform: translateX(-50%);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Glowing Glassmorphic Pill for Latest Feature (Navbar Option 1) */
.nav-pill-highlight {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  padding: 0.35rem 0.85rem !important;
  background: linear-gradient(135deg, rgba(14, 22, 38, 0.95) 0%, rgba(9, 14, 26, 0.98) 100%) !important;
  border: 1.5px solid rgba(56, 189, 248, 0.6) !important;
  border-radius: 9999px !important;
  color: #38bdf8 !important;
  font-weight: 700 !important;
  font-size: 0.86rem !important;
  text-decoration: none !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), 0 0 16px rgba(56, 189, 248, 0.25), inset 0 0 10px rgba(56, 189, 248, 0.12) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  line-height: 1;
}

.nav-pill-highlight::after {
  display: none !important;
}

.nav-pill-highlight:hover {
  background: linear-gradient(135deg, rgba(18, 28, 48, 0.98) 0%, rgba(12, 18, 32, 1) 100%) !important;
  border-color: rgba(56, 189, 248, 0.95) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), 0 0 25px rgba(56, 189, 248, 0.45), inset 0 0 14px rgba(56, 189, 248, 0.2) !important;
  transform: translateY(-1px);
  color: #7dd3fc !important;
}

.nav-pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
  animation: pulse-nav-pill-dot 1.8s infinite;
  flex-shrink: 0;
}

@keyframes pulse-nav-pill-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.8); }
}

.nav-pill-text {
  color: #38bdf8 !important;
  font-weight: 700;
  white-space: nowrap;
}

.nav-pill-tag {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #07090e !important;
  background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%) !important;
  padding: 2px 6px;
  border-radius: 6px;
  line-height: 1;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
}

.nav-actions {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  order: 3;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dark);
  padding: 0.55rem 1.1rem;
  border-radius: 99px;
  text-decoration: none;
  font-family: var(--font-primary);
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition-smooth);
  border: 1px solid var(--border-color);
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  transform: translateY(-2px);
}

.nav-btn svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.nav-btn-enter {
  background: var(--accent-green);
  color: #07090e;
  border-color: var(--accent-green);
}

.nav-btn-enter:hover {
  background: #0d9488;
  border-color: #0d9488;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

.nav-btn-enter svg {
  stroke: #07090e;
  fill: none;
}

.hero-brand-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 3rem;
  width: 100%;
  grid-column: 1 / -1;
}

.brand-logo-large {
  width: 140px;
  height: 140px;
  border-radius: 32px;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

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

.brand-text-block h2 {
  font-family: var(--font-headings);
  font-size: 4.4rem;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.brand-text-block p {
  font-size: 1.6rem;
  color: var(--accent-green);
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin: 0;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  min-height: 95vh;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 5rem;
  align-items: center;
  padding: 12rem 5% 5rem;
  max-width: 1300px;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: clamp(3rem, 5.5vw, 4.4rem);
  margin-bottom: 1.5rem;
  line-height: 1.15;
  color: var(--text-dark);
}

.hero-content h1 span {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 3rem;
  max-width: 580px;
  color: var(--text-muted);
}

.hero-actions-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.btn-playstore, .btn-playstore-large {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(13, 18, 31, 0.7);
  color: #ffffff;
  padding: 0.75rem 1.6rem;
  border-radius: 14px;
  text-decoration: none;
  border: 1px solid var(--border-color);
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-subtle);
  backdrop-filter: blur(10px);
}

.btn-playstore-large {
  padding: 0.9rem 2rem;
  border-radius: 16px;
}

.btn-playstore:hover, .btn-playstore-large:hover {
  background: rgba(13, 18, 31, 0.9);
  border-color: var(--accent-green);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.2);
}

.playstore-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.playstore-text .small-text {
  font-size: 0.65rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.playstore-text .bold-text {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
}

.btn-enter-app {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #07090e;
  padding: 1.1rem 2.8rem;
  border-radius: 99px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: var(--transition-smooth);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
}

.btn-enter-app:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.5);
}

.btn-enter-app svg {
  transition: transform 0.3s ease;
}

.btn-enter-app:hover svg {
  transform: translateX(5px);
}

.hero-image {
  position: relative;
  width: 100%;
}

.hero-image::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 65%);
  filter: blur(50px);
  z-index: -1;
  pointer-events: none;
}

.hero-image-wrapper {
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  animation: float-hero-img 6s ease-in-out infinite;
}

@keyframes float-hero-img {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   SECTIONS & HOW IT WORKS
   ========================================================================== */
.section {
  padding: 4rem 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  color: var(--text-dark);
  margin-bottom: 1.2rem;
}

.section-header p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.8rem;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 3rem 1.6rem;
  border-radius: 24px;
  text-align: center;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-subtle);
  backdrop-filter: blur(12px);
  position: relative;
}

.step-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.35);
}

.step-card.step-card-highlight {
  background: linear-gradient(180deg, rgba(245, 197, 24, 0.09) 0%, rgba(20, 35, 30, 0.95) 100%);
  border: 1.5px solid rgba(245, 197, 24, 0.45);
  box-shadow: 0 10px 30px rgba(245, 197, 24, 0.12);
}

.step-card.step-card-highlight:hover {
  transform: translateY(-8px);
  border-color: rgba(245, 197, 24, 0.75);
  box-shadow: 0 20px 45px rgba(245, 197, 24, 0.22);
}

.step-highlight-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #F5C518 0%, #D4A000 100%);
  color: #0A1310;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(245, 197, 24, 0.35);
}

.step-number {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 1.4rem;
  width: 55px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 auto 2rem;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.step-number.step-number-highlight {
  background: rgba(245, 197, 24, 0.18);
  color: #F5C518;
  border: 1.5px solid rgba(245, 197, 24, 0.5);
}

.step-card h3 {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.step-card.step-card-highlight h3 {
  color: #F5C518;
}

.step-card p {
  font-size: 0.95rem;
  line-height: 1.55;
}

/* ==========================================================================
   INTERACTIVE AI MACRO SCANNER
   ========================================================================== */
.interactive-planner {
  background: var(--bg-card);
  border-radius: 32px;
  padding: 4.5rem;
  box-shadow: var(--shadow-medium);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(16px);
}

.planner-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3.8rem;
  flex-wrap: wrap;
}

.tab-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.85rem 1.8rem;
  border-radius: 99px;
  font-family: var(--font-primary);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.tab-btn:hover, .tab-btn.active {
  color: #07090e;
  background: var(--accent-green);
  border-color: var(--accent-green);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.45);
}

.planner-display {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
  min-height: 340px;
}

.scanner-ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--accent-green);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 99px;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-green);
  animation: pulse-glow 1.5s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
  0% { opacity: 0.4; transform: scale(0.85); }
  100% { opacity: 1; transform: scale(1.15); box-shadow: 0 0 12px var(--accent-green); }
}

.display-info h3 {
  font-size: 2.2rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.display-info .goal-tag {
  display: inline-block;
  color: var(--accent-green);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.2rem;
}

.display-info p {
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.detected-ingredients {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 2rem;
}

.ing-badge {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-dark);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 8px;
  transition: var(--transition-smooth);
}

.ing-badge:hover {
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.06);
}

.display-macros {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
}

.macro-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 1rem 0.3rem;
  border-radius: 14px;
  text-align: center;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-smooth);
}

.macro-box:hover {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.03);
}

.macro-box label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
  letter-spacing: 0.5px;
}

.macro-box span {
  font-family: var(--font-headings);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
}

.scanner-tip-box {
  margin-top: 1.4rem;
  background: rgba(245, 197, 24, 0.06);
  border: 1px solid rgba(245, 197, 24, 0.22);
  border-radius: 14px;
  padding: 0.9rem 1.1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-size: 0.88rem;
  color: #fef08a;
  line-height: 1.5;
}

.scanner-tip-box .tip-icon {
  font-size: 1.15rem;
  flex-shrink: 0;
  line-height: 1;
}

.display-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
}

.scanner-viewfinder {
  position: relative;
  width: 280px;
  height: 540px;
  max-width: 100%;
  background: #08110d;
  border: 1.5px solid rgba(16, 185, 129, 0.35);
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.6), 0 0 30px rgba(16, 185, 129, 0.15);
  overflow: hidden;
}

.scanner-image-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: opacity 0.3s ease;
  display: block;
}

.scanner-corner {
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: var(--accent-green);
  border-style: solid;
  border-width: 0;
  z-index: 4;
}
.corner-tl { top: 12px; left: 12px; border-top-width: 3px; border-left-width: 3px; border-top-left-radius: 6px; }
.corner-tr { top: 12px; right: 12px; border-top-width: 3px; border-right-width: 3px; border-top-right-radius: 6px; }
.corner-bl { bottom: 12px; left: 12px; border-bottom-width: 3px; border-left-width: 3px; border-bottom-left-radius: 6px; }
.corner-br { bottom: 12px; right: 12px; border-bottom-width: 3px; border-right-width: 3px; border-bottom-right-radius: 6px; }

.scanner-laser {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-green), transparent);
  box-shadow: 0 0 12px var(--accent-green);
  animation: scan-laser 2.8s ease-in-out infinite;
  z-index: 3;
}

@keyframes scan-laser {
  0% { top: 6%; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { top: 94%; opacity: 0; }
}

.scanner-hud-top, .scanner-hud-bottom {
  position: absolute;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--accent-green);
  z-index: 4;
  background: rgba(7, 9, 14, 0.8);
  padding: 4px 10px;
  border-radius: 99px;
  border: 1px solid rgba(16, 185, 129, 0.25);
  backdrop-filter: blur(8px);
}
.scanner-hud-top {
  top: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.scanner-hud-top .hud-indicator {
  width: 6px;
  height: 6px;
  background: var(--accent-green);
  border-radius: 50%;
  animation: pulse-glow 1s infinite alternate;
}
.scanner-hud-bottom {
  bottom: 14px;
  opacity: 0.75;
}

.meal-plate {
  width: 140px;
  height: 140px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 4.2rem;
  border: 3px solid rgba(16, 185, 129, 0.15);
  box-shadow: 0 0 35px rgba(16, 185, 129, 0.1);
  position: relative;
  transition: var(--transition-smooth);
}

.meal-plate::after {
  content: var(--emoji, "🥗");
  position: absolute;
  transition: var(--transition-smooth);
}

/* Rotating Ring */
.meal-plate::before {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1.5px dashed rgba(16, 185, 129, 0.35);
  animation: rotate-ring 25s linear infinite;
}

@keyframes rotate-ring {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   PRICING PLANS
   ========================================================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 4rem 2.8rem;
  border-radius: 28px;
  text-align: center;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-subtle);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  position: relative;
}

.price-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.15);
}

.price-card.popular {
  border-color: var(--accent-green);
  box-shadow: 0 20px 50px rgba(16, 185, 129, 0.15);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.03) 0%, rgba(13, 18, 31, 0.55) 100%);
}

.price-card.popular::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 28px;
  padding: 1px;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.5), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

.plan-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 1rem;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 auto 1.2rem auto;
  align-self: center;
}

.badge-sponsored {
  background-color: rgba(245, 197, 24, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 197, 24, 0.2);
}

.badge-basic {
  background-color: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge-popular {
  background-color: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-super {
  background-color: rgba(245, 197, 24, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 197, 24, 0.2);
}

.price-card h3 {
  font-size: 1.45rem;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.price-tier {
  font-family: var(--font-headings);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  line-height: 1.1;
}

.price-tier span {
  font-size: 1.25rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: lowercase;
}

.price-card ul {
  list-style: none;
  text-align: left;
  margin-bottom: 3.5rem;
  flex-grow: 1;
}

.price-card ul li {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 0.7rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.4;
}

.price-card ul li.list-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-top: 0.5rem;
  margin-bottom: 0.6rem;
  color: var(--text-dark);
}

.title-free {
  color: var(--text-muted) !important;
}

.title-premium {
  color: var(--accent-green) !important;
}

.title-pro {
  color: #34d399 !important;
}

.title-super {
  color: #fbbf24 !important;
}

.price-card ul li.list-subtext {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.35;
  margin-bottom: 0.6rem;
}

/* Remove default checkmark pseudo-elements */
.price-card ul li::before {
  display: none;
}

.price-card button {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-dark);
  padding: 0.9rem;
  border-radius: 14px;
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.price-card button:hover {
  background: #ffffff;
  color: #07090e;
  transform: translateY(-2px);
}

.price-card.popular button {
  background: var(--accent-green);
  color: #07090e;
  border-color: var(--accent-green);
  font-weight: 700;
}

.price-card.popular button:hover {
  background: #fff;
  border-color: #fff;
  box-shadow: 0 5px 20px rgba(16, 185, 129, 0.35);
}

/* ==========================================================================
   APP DOWNLOAD BANNER SECTION
   ========================================================================== */
.app-banner {
  background: linear-gradient(135deg, #092115 0%, #07090e 100%);
  border-radius: 32px;
  padding: 5rem 4.5rem;
  color: #ffffff;
  box-shadow: var(--shadow-medium);
  border: 1px solid rgba(16, 185, 129, 0.18);
  position: relative;
  overflow: hidden;
}

.app-banner::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.app-banner-content h2 {
  color: #ffffff;
  font-size: clamp(2.2rem, 4vw, 3rem);
  margin: 1.2rem 0;
}

.app-banner-content p {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 650px;
  margin-bottom: 3rem;
}

.app-badge {
  display: inline-block;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.4rem 1.2rem;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.app-buttons {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   AFFILIATE & REFERRAL PROGRAM
   ========================================================================== */
.affiliate-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto 3rem auto;
}

.affiliate-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.affiliate-card:hover {
  transform: translateY(-5px);
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: var(--shadow-medium);
}

.affiliate-card-featured {
  background: linear-gradient(180deg, rgba(245, 197, 24, 0.08) 0%, rgba(13, 22, 18, 0.95) 100%);
  border: 1.5px solid rgba(245, 197, 24, 0.4);
  box-shadow: 0 10px 30px rgba(245, 197, 24, 0.1);
}

.affiliate-tier-badge {
  font-size: 0.85rem;
  font-weight: 800;
  padding: 6px 16px;
  border-radius: 99px;
  margin-bottom: 1.5rem;
  display: inline-block;
}

.tier-badge-bronze {
  background: rgba(52, 211, 153, 0.12);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.tier-badge-silver {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.tier-badge-gold {
  background: rgba(245, 197, 24, 0.2);
  color: #F5C518;
  border: 1px solid rgba(245, 197, 24, 0.5);
}

.affiliate-card h3 {
  font-size: 1.35rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.affiliate-plan-price {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--accent-green);
  margin-bottom: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.affiliate-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.affiliate-desc strong {
  color: var(--text-dark);
}

.affiliate-cta-box {
  max-width: 1100px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(6, 17, 13, 0.9) 100%);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 20px;
  padding: 2.2rem 2.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.affiliate-cta-text h4 {
  font-size: 1.4rem;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}

.affiliate-cta-text p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0;
  max-width: 600px;
}

/* ==========================================================================
   FAQ SECTION (2-Column Accordion Grid)
   ========================================================================== */
.faq-list {
  max-width: 1050px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  margin-bottom: 0;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-item:hover {
  border-color: rgba(16, 185, 129, 0.25);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  padding: 1.6rem 2rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 1.15rem;
  text-align: left;
  color: var(--text-dark);
}

.faq-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--accent-green);
  transition: var(--transition-smooth);
  font-size: 1.1rem;
  font-weight: 400;
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  background: var(--accent-green);
  color: #07090e;
  border-color: var(--accent-green);
}

.faq-answer {
  max-height: 0;
  padding: 0 2rem;
  transition: var(--transition-smooth);
  color: var(--text-muted);
  opacity: 0;
  font-size: 1.05rem;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding-bottom: 1.8rem;
  opacity: 1;
}

.faq-answer a {
  color: var(--accent-green);
  text-decoration: none;
  font-weight: 600;
}

.faq-answer a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: #04060a;
  border-top: 1px solid var(--border-color);
  padding: 6rem 5% 3rem;
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto 3.5rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 3.5rem;
}

.footer-brand h3 {
  font-size: 1.6rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.95rem;
  max-width: 100%;
}

.footer-column h4 {
  font-family: var(--font-primary);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.85rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.footer-links a:hover {
  color: var(--accent-green);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
}

/* ==========================================================================
   RESPONSIVE DESIGN & MOBILE LAYOUTS (iOS & Android Optimized)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
    padding-top: 11rem;
  }
  
  .hero-content {
    align-items: center;
  }

  .planner-display {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .display-info .scanner-ai-badge {
    margin: 0 auto 1rem;
  }

  .detected-ingredients {
    justify-content: center;
  }

  .display-visual {
    margin-top: 1rem;
  }

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 720px;
    margin: 0 auto;
    gap: 1.5rem;
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 720px;
    margin: 0 auto;
    gap: 1.5rem;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .price-card.popular {
    transform: none;
  }
}

@media (max-width: 600px) {
  .navbar {
    padding: 0.6rem 0.85rem;
    width: 94%;
    left: 3%;
    top: max(0.8rem, env(safe-area-inset-top));
    flex-wrap: wrap;
    row-gap: 0.35rem;
    justify-content: space-between;
    align-items: center;
    border-radius: 20px;
  }

  .nav-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    flex-shrink: 0;
  }

  .nav-brand {
    font-size: 1.1rem;
    gap: 0.5rem;
  }

  .nav-brand .logo-img {
    width: 28px;
    height: 28px;
    border-radius: 8px;
  }

  .nav-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
  }

  .nav-actions a:first-child .nav-badge-img {
    height: 22px;
    width: 74px;
  }

  .nav-actions a:last-child .nav-badge-img {
    height: 22px;
    width: 66px;
  }

  .nav-links {
    display: flex;
    gap: 0.35rem;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-top: 0.15rem;
    padding: 0.35rem 0;
    list-style: none;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-block;
  }

  .nav-pill-highlight {
    padding: 3px 8px !important;
    font-size: 0.74rem !important;
    gap: 5px !important;
  }

  .nav-pill-tag {
    font-size: 0.58rem !important;
    padding: 1px 4px !important;
  }

  .hero {
    padding-top: 10.5rem;
    padding-bottom: 3.5rem;
    gap: 2rem;
  }

  .hero-brand-header {
    flex-direction: column;
    text-align: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
  }

  .brand-logo-large {
    width: 80px;
    height: 80px;
    border-radius: 18px;
  }

  .brand-text-block h2 {
    font-size: 2.4rem;
  }

  .brand-text-block p {
    font-size: 1.1rem;
  }

  .hero-content h1 {
    font-size: 2rem;
    line-height: 1.25;
  }

  .hero-content p {
    font-size: 0.98rem;
    line-height: 1.55;
  }

  .hero-actions-container {
    align-items: center;
    width: 100%;
    gap: 1rem;
  }

  .hero-grid-2x2 {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .hero-grid-badge,
  .hero-grid-pwa {
    width: 100% !important;
    height: 48px !important;
  }

  .hero-store-badges,
  .app-buttons {
    display: flex !important;
    justify-content: center !important;
    gap: 12px !important;
    width: 100% !important;
    flex-wrap: wrap !important;
  }

  .hero-badge-link {
    flex: 1 1 calc(50% - 10px) !important;
    max-width: 175px !important;
    justify-content: center !important;
  }

  .hero-store-badge,
  .hero-store-badge-large {
    width: 100% !important;
    height: auto !important;
    max-height: 48px !important;
    object-fit: contain !important;
  }

  .btn-enter-app-secondary {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .btn-pwa-icon {
    margin-right: 6px !important;
  }

  .btn-pwa-text small {
    font-size: 0.58rem !important;
    line-height: 1.1 !important;
  }

  .btn-pwa-text strong {
    font-size: 0.74rem !important;
    line-height: 1.2 !important;
  }

  .btn-enter-app {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
    padding: 0.9rem 1.6rem;
    font-size: 0.95rem;
  }

  .section {
    padding: 3rem 4%;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
    gap: 1.5rem;
  }

  .step-card {
    padding: 2.4rem 1.4rem;
    border-radius: 20px;
  }

  .step-number {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
    margin-bottom: 1.4rem;
  }

  .step-card h3 {
    font-size: 1.2rem;
  }

  .step-card p {
    font-size: 0.92rem;
  }

  .interactive-planner {
    padding: 2rem 1.2rem;
    border-radius: 22px;
  }

  .planner-tabs {
    gap: 0.5rem;
    margin-bottom: 2rem;
  }

  .tab-btn {
    padding: 0.65rem 0.9rem;
    font-size: 0.82rem;
    flex: 1 1 calc(50% - 0.5rem);
    text-align: center;
  }

  .display-info h3 {
    font-size: 1.6rem;
  }

  .display-info .goal-tag {
    font-size: 0.75rem;
    margin-bottom: 0.8rem;
  }

  .display-info p {
    font-size: 0.92rem;
    margin-bottom: 1.2rem;
  }

  .detected-ingredients {
    gap: 6px;
    margin-bottom: 1.5rem;
  }

  .ing-badge {
    font-size: 0.75rem;
    padding: 5px 9px;
  }

  .display-macros {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
  }

  .macro-box {
    padding: 0.8rem 0.3rem;
    border-radius: 12px;
  }

  .macro-box span {
    font-size: 1.05rem;
  }

  .scanner-viewfinder {
    width: 250px;
    height: 460px;
    border-radius: 24px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
    gap: 1.5rem;
  }

  .price-card {
    padding: 2.2rem 1.6rem;
    border-radius: 22px;
  }

  .price-card button {
    width: 100%;
    padding: 0.9rem 1.5rem;
    font-size: 0.95rem;
  }

  .affiliate-cards-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .affiliate-cta-box {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 1.8rem 1.4rem;
  }

  .affiliate-cta-box .btn-primary {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .app-banner {
    padding: 2.8rem 1.4rem;
    border-radius: 24px;
    text-align: center;
  }

  .app-banner h2 {
    font-size: 1.8rem;
  }

  .app-buttons {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.8rem;
  }

  .store-badge-img-large {
    height: 44px;
    width: auto;
  }

  .faq-list {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .faq-question {
    padding: 1.3rem 1.2rem;
    font-size: 1rem;
  }

  .faq-answer {
    padding: 0 1.2rem;
    font-size: 0.95rem;
  }

  .footer {
    padding: 4rem 5% calc(5rem + env(safe-area-inset-bottom, 0px));
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    text-align: center;
    padding-bottom: 2rem;
  }
}


/* ==========================================================================
   TOAST NOTIFICATION (iOS Coming Soon Alert)
   ========================================================================== */
.toast-notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: rgba(13, 18, 31, 0.95);
  color: var(--text-dark);
  border: 1px solid var(--accent-green);
  box-shadow: 0 12px 35px rgba(16, 185, 129, 0.3);
  padding: 1.1rem 1.8rem;
  border-radius: 18px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 2500;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  transform: translateY(120px);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
  pointer-events: none;
}

.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.toast-icon {
  font-size: 1.6rem;
  filter: drop-shadow(0 0 5px rgba(16, 185, 129, 0.2));
}

.toast-content {
  display: flex;
  flex-direction: column;
}

.toast-title {
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-dark);
  margin-bottom: 0.15rem;
}

.toast-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.3;
}

@media (max-width: 600px) {
  .toast-notification {
    left: 1.5rem;
    right: 1.5rem;
    bottom: 1.5rem;
    padding: 1rem 1.4rem;
  }
}

/* ==========================================================================
   GENUINE STORE BADGES
   ========================================================================== */
.btn-badge-link {
  display: inline-block;
  text-decoration: none;
  background: transparent;
  border: none;
  padding: 0;
  transition: var(--transition-smooth);
}

.store-badge-img {
  height: 44px;
  width: auto;
  border-radius: 8px;
  transition: var(--transition-smooth);
}

.store-badge-img:hover {
  transform: translateY(-3px);
  filter: drop-shadow(0 8px 20px rgba(16, 185, 129, 0.35));
}

.btn-badge-link-large {
  display: inline-block;
  text-decoration: none;
  background: transparent;
  border: none;
  padding: 0;
  transition: var(--transition-smooth);
}

.store-badge-img-large {
  height: 48px;
  width: auto;
  border-radius: 8px;
  transition: var(--transition-smooth);
}

.store-badge-img-large:hover {
  transform: translateY(-3px);
  filter: drop-shadow(0 8px 20px rgba(16, 185, 129, 0.35));
}

.nav-badge-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  background: transparent;
  border: none;
  padding: 0;
  transition: var(--transition-smooth);
}

.nav-badge-img {
  height: 34px;
  width: auto;
  border-radius: 4px;
  transition: var(--transition-smooth);
}

.nav-badge-img:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 4px 12px rgba(16, 185, 129, 0.3));
}

/* ==========================================================================
   Visitor Counter Badges (Hero & Footer)
   ========================================================================== */
.visitor-counter-hero {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  margin-top: 1.25rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.visitor-counter-hero strong {
  color: var(--primary-color);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.live-pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10B981;
  display: inline-block;
  animation: pulse-green 2s infinite ease-in-out;
  flex-shrink: 0;
}

@keyframes pulse-green {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.floating-visitor-counter {
  position: fixed;
  bottom: 14px;
  right: 14px;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  right: calc(14px + env(safe-area-inset-right, 0px));
  z-index: 40;
  pointer-events: auto;
  user-select: none;
  -webkit-user-select: none;
}

@media (min-width: 640px) {
  .floating-visitor-counter {
    bottom: 20px;
    right: 20px;
  }
}

.visitor-counter-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(8, 12, 20, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 16px;
  padding: 7px 12px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6), 0 0 15px rgba(16, 185, 129, 0.15);
  transition: all 0.3s ease;
}

.visitor-counter-card:hover {
  background: rgba(13, 18, 30, 0.98);
  border-color: rgba(16, 185, 129, 0.8);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7), 0 0 22px rgba(16, 185, 129, 0.3);
  transform: translateY(-2px);
}

.visitor-radar-icon-box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
  flex-shrink: 0;
}

.visitor-ping-wrapper {
  position: absolute;
  top: -2px;
  right: -2px;
  display: flex;
  width: 8px;
  height: 8px;
}

.visitor-ping-circle {
  position: absolute;
  display: inline-flex;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #34d399;
  opacity: 0.75;
  animation: visitor-ping 1.4s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.visitor-dot-circle {
  position: relative;
  display: inline-flex;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
}

@keyframes visitor-ping {
  75%, 100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

.visitor-counter-details {
  line-height: 1.25;
  display: flex;
  flex-direction: column;
}

.visitor-live-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.visitor-live-label {
  font-size: 9.5px;
  font-weight: 800;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.visitor-live-number {
  font-size: 13px;
  font-weight: 900;
  color: #10b981;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  letter-spacing: -0.02em;
}

.visitor-total-row {
  font-size: 9px;
  color: #6b7280;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  display: flex;
  align-items: center;
  gap: 4px;
}

.visitor-total-text {
  color: #4b5563;
}

.visitor-counter-footer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(8, 12, 20, 0.85);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.82rem;
  color: #9ca3af;
  margin-top: 1rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.visitor-counter-footer:hover {
  border-color: rgba(16, 185, 129, 0.5);
  background: rgba(13, 18, 30, 0.95);
}

.visitor-counter-footer strong {
  color: #10b981;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-weight: 800;
}

/* ==========================================================================
   CATCHY REWARDS & COMMUNITY BONUSES SHOWCASE
   ========================================================================== */
.rewards-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
  max-width: 1200px;
  margin: 0 auto 2.5rem;
}

.reward-showcase-card {
  background: rgba(13, 18, 31, 0.7);
  border: 1.5px solid var(--border-color);
  border-radius: 24px;
  padding: 2rem 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.reward-showcase-card:hover {
  transform: translateY(-6px);
}

.reward-gold-glow {
  border-color: rgba(245, 197, 24, 0.3);
  background: linear-gradient(170deg, rgba(245, 197, 24, 0.07) 0%, rgba(10, 15, 12, 0.95) 100%);
}
.reward-gold-glow:hover {
  border-color: rgba(245, 197, 24, 0.6);
  box-shadow: 0 16px 40px rgba(245, 197, 24, 0.15);
}

.reward-emerald-glow {
  border-color: rgba(16, 185, 129, 0.3);
  background: linear-gradient(170deg, rgba(16, 185, 129, 0.07) 0%, rgba(10, 15, 12, 0.95) 100%);
}
.reward-emerald-glow:hover {
  border-color: rgba(16, 185, 129, 0.6);
  box-shadow: 0 16px 40px rgba(16, 185, 129, 0.15);
}

.reward-cyan-glow {
  border-color: rgba(6, 182, 212, 0.3);
  background: linear-gradient(170deg, rgba(6, 182, 212, 0.07) 0%, rgba(10, 15, 12, 0.95) 100%);
}
.reward-cyan-glow:hover {
  border-color: rgba(6, 182, 212, 0.6);
  box-shadow: 0 16px 40px rgba(6, 182, 212, 0.15);
}

.reward-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}

.reward-tag-badge {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 99px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.tag-gold {
  background: rgba(245, 197, 24, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 197, 24, 0.35);
}

.tag-emerald {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.tag-cyan {
  background: rgba(6, 182, 212, 0.15);
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.35);
}

.reward-value-pill {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 10px;
  border-radius: 99px;
}

.reward-card-header-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 0.75rem;
}

.reward-icon-3d {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.45));
  flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.reward-showcase-card:hover .reward-icon-3d {
  transform: scale(1.12) rotate(4deg);
}

.reward-card-header-row h3,
.reward-card-body h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0;
  line-height: 1.25;
}

.reward-card-subtitle {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-green);
  margin-bottom: 0.9rem;
}

.reward-gold-glow .reward-card-subtitle {
  color: #fbbf24;
}

.reward-cyan-glow .reward-card-subtitle {
  color: #22d3ee;
}

.reward-card-description {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

.reward-card-description strong {
  color: var(--text-dark);
}

.reward-card-footer {
  margin-top: auto;
}

.reward-action-btn {
  display: block;
  text-align: center;
  text-decoration: none;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.75rem 1.2rem;
  border-radius: 12px;
  transition: all 0.25s ease;
}

.btn-gold {
  background: rgba(245, 197, 24, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 197, 24, 0.35);
}
.btn-gold:hover {
  background: #fbbf24;
  color: #07090e;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 197, 24, 0.3);
}

.btn-emerald {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.35);
}
.btn-emerald:hover {
  background: #10b981;
  color: #07090e;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

.btn-cyan {
  background: rgba(6, 182, 212, 0.12);
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.35);
}
.btn-cyan:hover {
  background: #22d3ee;
  color: #07090e;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.3);
}

@media (max-width: 992px) {
  .rewards-showcase-grid {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }
}

/* ==========================================
   PROGRESSIVE WEB APP (PWA) & iOS INSTALL MODAL
   ========================================== */
.btn-install-pwa-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--accent-green);
  font-family: var(--font-primary);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 99px;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-install-pwa-nav:hover {
  background: var(--accent-green);
  color: #07090e;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

/* ==========================================================================
   Layout A: Balanced 2x2 Hero Grid & Store Badges
   ========================================================================== */
.hero-grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 185px));
  gap: 10px;
  width: auto;
}

.hero-grid-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0;
  border-radius: 8px;
  overflow: visible;
  background: transparent;
  border: none;
  box-shadow: none;
  text-decoration: none;
  box-sizing: border-box;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), filter 0.22s ease;
}

.hero-grid-badge:hover {
  transform: translateY(-2px);
  filter: brightness(1.1) drop-shadow(0 4px 14px rgba(16, 185, 129, 0.35));
}

.grid-badge-img {
  height: 48px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

.hero-grid-pwa {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 48px;
  padding: 0 12px;
  border-radius: 10px;
  background: rgba(13, 18, 30, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  box-sizing: border-box;
  text-decoration: none;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.hero-grid-pwa:hover {
  transform: translateY(-2px);
  background: rgba(22, 31, 48, 0.95);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.55);
}

.hero-grid-pwa.btn-pwa-android {
  border-color: rgba(16, 185, 129, 0.28);
}

.hero-grid-pwa.btn-pwa-android:hover {
  border-color: #10b981;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}

.hero-grid-pwa.btn-pwa-ios {
  border-color: rgba(255, 255, 255, 0.18);
}

.hero-grid-pwa.btn-pwa-ios:hover {
  border-color: #60a5fa;
  box-shadow: 0 8px 24px rgba(96, 165, 250, 0.25);
}

.pwa-icon-svg {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  flex-shrink: 0;
}

.pwa-text-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  line-height: 1.15;
}

.pwa-text-col small {
  font-size: 0.62rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.pwa-text-col strong {
  font-size: 0.78rem;
  color: var(--text-light);
  font-weight: 700;
  white-space: nowrap;
}

/* ==========================================================================
   Hero Trust & Safety Micro-Bar
   ========================================================================== */
.hero-trust-bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 6px 14px;
  background: rgba(13, 18, 30, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  margin-top: 0.4rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  flex-wrap: wrap;
  justify-content: center;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}

.trust-item svg {
  flex-shrink: 0;
}

.trust-dot {
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.9rem;
  user-select: none;
}

.hero-store-badges {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}

.hero-badge-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  border-radius: 9px;
  overflow: hidden;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease, filter 0.22s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #000000;
}

.hero-badge-link:hover {
  transform: translateY(-3px);
  filter: brightness(1.08);
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.25), 0 4px 14px rgba(0, 0, 0, 0.7);
}

.hero-store-badge {
  height: 48px;
  width: auto;
  display: block;
}

.hero-store-badge-large {
  height: 52px;
  width: auto;
  display: block;
}

.btn-enter-app-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 1.8rem;
  border-radius: 9px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  transition: all 0.22s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.btn-enter-app-secondary:hover {
  background: rgba(16, 185, 129, 0.22);
  border-color: #10b981;
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(16, 185, 129, 0.35);
}

.btn-store-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  border-radius: 12px;
  background: rgba(13, 18, 30, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0 14px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.store-badge-img,
.store-badge-img-large {
  height: 36px;
  width: auto;
  border-radius: 6px;
  display: block;
}

.btn-pwa-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  flex-shrink: 0;
}

.btn-pwa-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.15;
}

.btn-pwa-text small {
  font-size: 0.62rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.btn-pwa-text strong {
  font-size: 0.82rem;
  color: #ffffff;
  font-weight: 700;
  white-space: nowrap;
}

/* Modal Overlay */
.pwa-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.pwa-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.pwa-modal-content {
  background: #0d121c;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  max-width: 480px;
  width: 100%;
  padding: 28px;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
  transform: translateY(20px) scale(0.97);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.pwa-modal-overlay.active .pwa-modal-content {
  transform: translateY(0) scale(1);
}

.pwa-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-dark);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.pwa-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* PWA Platform Tab Switcher */
.pwa-tab-switch {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 4px;
  gap: 6px;
  margin-bottom: 20px;
}

.pwa-tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pwa-tab-btn.active {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.pwa-tab-btn:hover:not(.active) {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dark);
}

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

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

.pwa-direct-install-btn {
  width: 100%;
  margin-bottom: 18px;
  padding: 12px;
  border-radius: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
  transition: all 0.25s ease;
}

.pwa-direct-install-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.45);
}

.pwa-modal-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
  padding-right: 30px;
}

.pwa-app-icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.pwa-modal-header h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.pwa-modal-header p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.pwa-steps-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.pwa-step-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 12px 14px;
}

.pwa-step-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--accent-green);
  color: var(--accent-green);
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.pwa-step-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 3px;
}

.pwa-step-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.ios-share-badge,
.ios-add-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 6px;
  color: #60a5fa;
  font-weight: 600;
  font-size: 0.82rem;
}

.android-dots-badge,
.android-install-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 2px 6px;
  border-radius: 6px;
  color: var(--accent-green);
  font-weight: 600;
  font-size: 0.82rem;
}

.pwa-modal-actions {
  display: flex;
  gap: 10px;
}

.pwa-open-btn {
  flex: 1;
  text-align: center;
  padding: 12px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.pwa-dismiss-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-dark);
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.pwa-dismiss-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* iOS Safari Floating Smart Banner */
.ios-smart-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  max-width: 420px;
  width: calc(100% - 32px);
  background: rgba(13, 18, 28, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 18px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 9999;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.ios-smart-banner.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.ios-banner-left {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}

.ios-banner-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
}

.ios-banner-text {
  display: flex;
  flex-direction: column;
}

.ios-banner-text strong {
  font-size: 0.88rem;
  color: var(--text-dark);
  font-weight: 700;
}

.ios-banner-text span {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ios-banner-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.ios-banner-install-btn {
  background: var(--accent-green);
  color: #07090e;
  border: none;
  font-family: var(--font-primary);
  font-size: 0.82rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 99px;
  cursor: pointer;
  transition: all 0.2s;
}

.ios-banner-install-btn:hover {
  transform: scale(1.05);
}

.ios-banner-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 2px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 600px) {
  /* Inherits balanced 2x2 grid layout from 768px */
}

/* ==========================================================================
   Web Version Capability & Limitation Notice Card
   ========================================================================== */
.web-capability-notice {
  margin-top: 2.5rem;
  background: rgba(5, 9, 15, 0.75);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 24px;
  padding: 2rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.web-notice-header {
  margin-bottom: 1.5rem;
}

.web-notice-badge {
  display: inline-block;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 0.3rem 0.9rem;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.8rem;
}

.web-notice-header h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.web-notice-header p {
  font-size: 0.95rem;
  color: #9ca3af;
  margin-bottom: 0;
}

.web-notice-header .highlight-link {
  color: #10b981;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.web-capability-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

@media (max-width: 768px) {
  .web-capability-grid {
    grid-template-columns: 1fr;
  }
}

.web-cap-col {
  background: rgba(13, 18, 28, 0.6);
  border-radius: 18px;
  padding: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.web-cap-col.fully-functional {
  border-color: rgba(16, 185, 129, 0.25);
  background: rgba(16, 185, 129, 0.04);
}

.web-cap-col.limitations {
  border-color: rgba(245, 158, 11, 0.25);
  background: rgba(245, 158, 11, 0.04);
}

.web-cap-col h4 {
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.status-dot.green {
  background-color: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.status-dot.amber {
  background-color: #f59e0b;
  box-shadow: 0 0 8px #f59e0b;
}

.web-cap-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.web-cap-col li {
  font-size: 0.88rem;
  color: #d1d5db;
  line-height: 1.5;
}

.web-cap-col li strong {
  color: #ffffff;
}
