/* =========================================================
   فاتورة - Fatoorah App Landing Page Styles
   Designed for High Conversion & Modern Arabic RTL Aesthetics
   ========================================================= */

:root {
  --primary: #0e9f6e;
  --primary-dark: #046c4e;
  --primary-light: #12c48b;
  --primary-bg: #ecfdf5;
  --primary-border: #a7f3d0;
  
  --secondary: #1e293b;
  --secondary-dark: #0f172a;
  --secondary-light: #334155;

  --accent-gold: #f59e0b;
  --accent-red: #ef4444;
  --accent-blue: #3b82f6;

  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-light: #e2e8f0;
  --border-card: rgba(226, 232, 240, 0.8);

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 25px -3px rgba(14, 159, 110, 0.12), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 35px -5px rgba(15, 23, 42, 0.12), 0 8px 10px -6px rgba(15, 23, 42, 0.05);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  --font-heading: 'Cairo', system-ui, -apple-system, sans-serif;
  --font-body: 'Tajawal', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  direction: rtl;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.3;
  color: var(--secondary-dark);
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

button, input, select, textarea {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* =========================================================
   Badges & Micro UI
   ========================================================= */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1;
}

.badge-primary {
  background: var(--primary-bg);
  color: var(--primary-dark);
  border: 1px solid var(--primary-border);
}

.badge-gold {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.badge-pulse {
  position: relative;
}

.badge-pulse::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--primary);
  display: inline-block;
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(18, 196, 139, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(18, 196, 139, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(18, 196, 139, 0); }
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(14, 159, 110, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(14, 159, 110, 0.45);
}

.btn-secondary {
  background: #ffffff;
  color: var(--secondary-dark);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  transform: translateY(-2px);
}

.btn-outline-primary {
  background: transparent;
  color: var(--primary-dark);
  border: 1.5px solid var(--primary);
}

.btn-outline-primary:hover {
  background: var(--primary-bg);
  border-color: var(--primary-dark);
}

.btn-whatsapp {
  background: #25d366;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background: #20ba59;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

.btn-lg {
  padding: 1.1rem 2.2rem;
  font-size: 1.125rem;
  border-radius: var(--radius-lg);
}

.btn-block {
  width: 100%;
}

/* =========================================================
   Header & Navbar
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: all 0.3s ease;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--secondary-dark);
}

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(14, 159, 110, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-name {
  display: flex;
  flex-direction: column;
}

.brand-name span.sub {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: -3px;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 1.75rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--secondary-light);
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--secondary-dark);
  padding: 0.5rem;
}

/* =========================================================
   Hero Section
   ========================================================= */
.hero-section {
  position: relative;
  padding-block: 4rem 3.5rem;
  overflow: hidden;
  background: radial-gradient(circle at 10% 20%, rgba(18, 196, 139, 0.08) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(14, 159, 110, 0.06) 0%, transparent 40%),
              #ffffff;
  border-bottom: 1px solid var(--border-light);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3.5rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-title {
  font-size: 2.85rem;
  font-weight: 900;
  line-height: 1.25;
  color: var(--secondary-dark);
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.apk-spec-info {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.apk-spec-info span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
  margin-top: 0.5rem;
}

.stat-item h4 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary-dark);
  font-family: var(--font-heading);
}

.stat-item p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* =========================================================
   Hero Mockup & Live Receipt Animation
   ========================================================= */
.hero-mockup-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-card {
  width: 320px;
  background: #ffffff;
  border-radius: 36px;
  border: 10px solid #1e293b;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.3),
              0 0 0 1px rgba(255, 255, 255, 0.1);
  overflow: hidden;
  position: relative;
}

.phone-notch {
  width: 140px;
  height: 22px;
  background: #1e293b;
  margin-inline: auto;
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
}

.phone-screen {
  padding: 1rem;
  background: #f8fafc;
  min-height: 480px;
}

.app-screen-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-light);
}

.screen-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--secondary-dark);
}

.screen-badge {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: #dcfce7;
  color: #15803d;
  font-weight: 700;
}

/* Receipt Animation Card */
.mockup-receipt {
  background: #ffffff;
  border-radius: 12px;
  padding: 1.1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  border: 1px dashed #cbd5e1;
  position: relative;
  font-family: monospace, sans-serif;
}

.mockup-receipt::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 6px;
  background: radial-gradient(circle, transparent, transparent 50%, #ffffff 50%, #ffffff 100%);
  background-size: 12px 12px;
}

.receipt-header {
  text-align: center;
  border-bottom: 1px dashed #94a3b8;
  padding-bottom: 0.5rem;
  margin-bottom: 0.6rem;
}

.receipt-store {
  font-size: 1rem;
  font-weight: 800;
  color: var(--secondary-dark);
}

.receipt-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.receipt-items {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.receipt-divider {
  border-top: 1px dashed #94a3b8;
  margin-block: 0.5rem;
}

.receipt-total {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary-dark);
  display: flex;
  justify-content: space-between;
}

.receipt-footer-tag {
  text-align: center;
  font-size: 0.7rem;
  color: #64748b;
  margin-top: 0.75rem;
}

/* Floating feature badges around phone */
.floating-pill {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--secondary-dark);
  z-index: 10;
  animation: float 4s ease-in-out infinite;
}

.floating-pill-1 {
  top: 15%;
  right: -25px;
  animation-delay: 0s;
}

.floating-pill-2 {
  bottom: 20%;
  left: -35px;
  animation-delay: 2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* =========================================================
   Trust & Highlight Banner
   ========================================================= */
.trust-strip {
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  padding-block: 1.5rem;
}

.trust-flex {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--secondary-light);
}

.trust-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--primary-bg);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

/* =========================================================
   Section Common Styles
   ========================================================= */
.section {
  padding-block: 5rem;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: 3.5rem;
}

.section-subtitle {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-size: 2.2rem;
  margin-bottom: 0.85rem;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* =========================================================
   Features Grid
   ========================================================= */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}

.feature-card {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-border);
}

.feature-icon-wrap {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary-bg) 0%, #d1fae5 100%);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 10px rgba(14, 159, 110, 0.15);
}

.feature-title {
  font-size: 1.25rem;
  margin-bottom: 0.65rem;
  color: var(--secondary-dark);
}

.feature-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* =========================================================
   Interactive Live Simulator / Receipt Playground
   ========================================================= */
.simulator-section {
  background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
  position: relative;
}

.simulator-wrap {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-light);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
}

.sim-menu h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.sim-menu p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.sim-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.sim-product-btn {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.85rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 700;
  font-size: 0.9rem;
}

.sim-product-btn:hover {
  background: var(--primary-bg);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.sim-product-btn .p-icon {
  font-size: 1.5rem;
}

.sim-product-btn .p-price {
  font-size: 0.8rem;
  color: var(--primary-dark);
}

.sim-receipt-box {
  background: #fdfdfd;
  border: 2px dashed #94a3b8;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  position: relative;
  font-family: monospace, sans-serif;
}

.sim-print-btn {
  margin-top: 1.25rem;
  width: 100%;
}

/* =========================================================
   Who is it for? (Business Types)
   ========================================================= */
.business-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
}

.business-type-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1rem;
  text-align: center;
  transition: all 0.25s;
}

.business-type-card:hover {
  border-color: var(--primary);
  background: var(--primary-bg);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.business-type-icon {
  font-size: 2.2rem;
  margin-bottom: 0.65rem;
  display: inline-block;
}

.business-type-card h4 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.business-type-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* =========================================================
   Installation Guide Steps
   ========================================================= */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
}

.step-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.8rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  position: relative;
  text-align: center;
}

.step-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 10px rgba(14, 159, 110, 0.3);
}

.step-title {
  font-size: 1.2rem;
  margin-bottom: 0.65rem;
}

.step-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* =========================================================
   Testimonials
   ========================================================= */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.test-stars {
  color: #f59e0b;
  font-size: 1.1rem;
  margin-bottom: 0.85rem;
}

.test-text {
  font-size: 1rem;
  color: var(--secondary-light);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.test-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary-bg);
  color: var(--primary-dark);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.user-info h5 {
  font-size: 0.95rem;
  color: var(--secondary-dark);
}

.user-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* =========================================================
   FAQ Section
   ========================================================= */
.faq-wrap {
  max-width: 800px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: all 0.2s;
}

.faq-item.active {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  text-align: right;
  background: none;
  border: none;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--secondary-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-icon {
  font-size: 1.3rem;
  transition: transform 0.25s;
  color: var(--primary);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding-inline: 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 250px;
  padding-bottom: 1.25rem;
}

/* =========================================================
   Bottom CTA Banner
   ========================================================= */
.cta-banner-section {
  padding-block: 5rem;
  background: linear-gradient(135deg, var(--secondary-dark) 0%, #1e293b 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.cta-banner-content {
  text-align: center;
  max-width: 700px;
  margin-inline: auto;
}

.cta-banner-content h2 {
  color: #ffffff;
  font-size: 2.4rem;
  margin-bottom: 1rem;
}

.cta-banner-content p {
  color: #cbd5e1;
  font-size: 1.15rem;
  margin-bottom: 2rem;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding-block: 3rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .brand-logo {
  color: #ffffff;
  margin-bottom: 1rem;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 320px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  font-size: 0.85rem;
}

.admin-lock-btn {
  background: none;
  border: none;
  color: #475569;
  cursor: pointer;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.2s;
}

.admin-lock-btn:hover {
  color: #94a3b8;
}

/* =========================================================
   Lead Capture Modal & Download Dialog
   ========================================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease-out;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: #ffffff;
  width: 100%;
  max-width: 520px;
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
  transform: translateY(20px) scale(0.96);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.open .modal-card {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  background: #f1f5f9;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-light);
  transition: all 0.2s;
  z-index: 5;
}

.modal-close-btn:hover {
  background: #e2e8f0;
  color: var(--secondary-dark);
}

.modal-header {
  padding: 2rem 2rem 1.25rem;
  text-align: center;
  background: radial-gradient(circle at top, var(--primary-bg) 0%, #ffffff 80%);
  border-bottom: 1px solid var(--border-light);
}

.modal-header .icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  margin-inline: auto;
  margin-bottom: 0.85rem;
  box-shadow: 0 6px 15px rgba(14, 159, 110, 0.3);
}

.modal-title {
  font-size: 1.45rem;
  margin-bottom: 0.35rem;
}

.modal-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.modal-body {
  padding: 1.75rem 2rem 2rem;
}

.form-group {
  margin-bottom: 1.15rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--secondary-dark);
  margin-bottom: 0.4rem;
}

.form-label span.req {
  color: var(--accent-red);
}

.form-input, .form-select {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-light);
  font-size: 0.95rem;
  background: #ffffff;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14, 159, 110, 0.15);
}

.form-input::placeholder {
  color: #94a3b8;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-footer-note {
  font-size: 0.78rem;
  color: #64748b;
  text-align: center;
  margin-top: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

/* Success State Inside Modal */
.modal-success-state {
  display: none;
  text-align: center;
  padding: 2.5rem 2rem;
}

.success-icon-wrap {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #dcfce7;
  color: #16a34a;
  font-size: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  margin-bottom: 1.25rem;
  animation: scale-up 0.4s ease-out;
}

@keyframes scale-up {
  0% { transform: scale(0.5); opacity: 0; }
  80% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

.success-title {
  font-size: 1.55rem;
  margin-bottom: 0.5rem;
}

.success-desc {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.download-countdown-bar {
  background: #f1f5f9;
  border-radius: 8px;
  height: 6px;
  overflow: hidden;
  margin-bottom: 1.25rem;
  position: relative;
}

.download-progress {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
  transition: width 2s linear;
}

.fallback-download-btn {
  margin-bottom: 0.75rem;
}

/* =========================================================
   Admin Leads Dashboard Drawer / Modal
   ========================================================= */
.admin-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.admin-modal.open {
  opacity: 1;
  visibility: visible;
}

.admin-card {
  background: #ffffff;
  width: 100%;
  max-width: 960px;
  max-height: 90vh;
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.admin-header {
  padding: 1.25rem 1.75rem;
  background: #1e293b;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-header h3 {
  color: #ffffff;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-stats-bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 1.75rem;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-light);
  flex-wrap: wrap;
}

.admin-stat-tag {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--secondary-dark);
}

.admin-stat-tag span {
  color: var(--primary);
  font-size: 1.1rem;
}

.admin-body {
  padding: 1.5rem 1.75rem;
  overflow-y: auto;
  flex: 1;
}

.admin-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
  font-size: 0.875rem;
}

.admin-table th {
  background: #f1f5f9;
  padding: 0.85rem 1rem;
  font-weight: 800;
  color: var(--secondary-dark);
  border-bottom: 1px solid var(--border-light);
}

.admin-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  color: var(--secondary-light);
}

.admin-table tr:hover td {
  background: #f8fafc;
}

.lead-wa-btn {
  color: #16a34a;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.lead-wa-btn:hover {
  text-decoration: underline;
}

/* =========================================================
   Mobile Sticky Download Bar
   ========================================================= */
.sticky-mobile-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border-light);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  z-index: 90;
}

.sticky-mobile-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

/* =========================================================
   Responsive Breakpoints
   ========================================================= */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }

  .hero-content {
    align-items: center;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .apk-spec-info {
    justify-content: center;
  }

  .hero-stats {
    width: 100%;
  }

  .simulator-wrap {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero-title {
    font-size: 2.1rem;
  }

  .section {
    padding-block: 3.5rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .floating-pill {
    display: none;
  }

  .sticky-mobile-bar {
    display: block;
  }

  body {
    padding-bottom: 70px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}
