/* ═══════════════════════════════════════════════════════════════
   WA Sender - Main Stylesheet
   Professional Multi-Page PWA with Mobile-First Design
   ═══════════════════════════════════════════════════════════════ */

/* ── CSS VARIABLES (LIGHT SaaS THEME) ── */
:root {
  --primary: #25D366;
  --primary-hover: #1EBE5D;
  --primary-light: #e6f9ed;
  --primary-dark: #1a9f4f;
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-alt: #f1f5f9;
  --text-main: #0f172a;
  --text-muted: #475569;
  --border: #e2e8f0;
  --border-focus: #cbd5e1;
  --radius: 16px;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 40px -5px rgba(37, 211, 102, 0.15);
  --warn-bg: #fffbeb;
  --warn-border: #f59e0b;
  --warn-text: #92400e;
  --nav-height: 70px;
  --bottom-nav-height: 70px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Cairo', sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  line-height: 1.8;
  position: relative;
  width: 100%;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body[dir="ltr"] {
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.01em;
  line-height: 1.7;
}

/* ── BACKGROUND ACCENT ── */
body::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 700px;
  background: linear-gradient(180deg, rgba(37,211,102,0.06) 0%, transparent 100%);
  z-index: -1;
  pointer-events: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  line-height: 1.3;
  color: var(--text-main);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-hover);
}

img {
  max-width: 100%;
  height: auto;
}

/* ── NAVIGATION (Desktop) ── */
.nav-wrapper {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1200px;
  margin: 0 auto;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

.logo:hover {
  opacity: 0.85;
  color: var(--text-main);
}

.logo svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: nowrap;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 10px;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: var(--primary-light);
}

/* Language Selector */
.lang-selector {
  position: relative;
  margin-right: 12px;
}

[dir="ltr"] .lang-selector {
  margin-right: 0;
  margin-left: 12px;
}

.lang-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.lang-btn:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  min-width: 160px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  z-index: 200;
}

[dir="rtl"] .lang-dropdown { right: 0; }
[dir="ltr"] .lang-dropdown { left: 0; }

.lang-dropdown.open { display: block; }

.lang-dropdown button {
  display: block;
  width: 100%;
  text-align: start;
  padding: 12px 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.lang-dropdown button:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.lang-dropdown button.active {
  color: var(--primary);
  background: var(--primary-light);
}

/* Mobile Menu Toggle */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
  color: var(--text-main);
  z-index: 1001;
}

/* ── HERO SECTION ── */
.hero {
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-light);
  border: 1px solid rgba(37,211,102,0.2);
  color: var(--primary);
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease-out;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-main);
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 36px;
  font-weight: 500;
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

/* ── BUTTONS ── */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  transition: all var(--transition-normal);
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  box-shadow: 0 8px 20px rgba(37,211,102,0.35);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 30px rgba(37,211,102,0.45);
  color: #fff;
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-main);
  border: 2px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

/* ── WARNING BOX ── */
.warning-box {
  background: var(--warn-bg);
  border-left: 4px solid var(--warn-border);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 24px 30px;
  margin: 20px auto 50px;
  box-shadow: var(--shadow-sm);
  max-width: 900px;
}

[dir="ltr"] .warning-box {
  border-left: none;
  border-right: 4px solid var(--warn-border);
  border-radius: var(--radius) 0 0 var(--radius);
}

.warning-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #b45309;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.warning-box p {
  font-size: 0.95rem;
  color: var(--warn-text);
  margin-bottom: 8px;
}

.warning-box p:last-child {
  margin-bottom: 0;
}

/* ── SECTIONS ── */
.section {
  padding: 70px 0;
}

.section-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  margin-bottom: 12px;
  text-align: center;
}

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 16px;
  color: var(--text-main);
  line-height: 1.2;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 650px;
  margin: 0 auto 50px;
}

/* ── CARDS (Features, Guides) ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), transparent);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.feature-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  font-size: 2.2rem;
  margin-bottom: 18px;
  display: inline-block;
  animation: floatIcon 3.5s ease-in-out infinite;
}

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

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

.guide-list {
  padding-inline-start: 20px;
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.75;
}

.guide-list li {
  margin-bottom: 10px;
}

.guide-list li strong {
  color: var(--text-main);
  font-weight: 700;
}

/* ── PRICING ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px;
  max-width: 950px;
  margin: 0 auto;
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.price-card.popular {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-lg);
  transform: scale(1.02);
}

.price-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
}

.price-card.popular:hover {
  transform: scale(1.02) translateY(-8px);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 18px;
  border-radius: 100px;
  white-space: nowrap;
}

.price-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.price-amount {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  margin-bottom: 4px;
}

.price-main {
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
}

.price-currency {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-muted);
  padding-bottom: 6px;
}

.price-period {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: block;
}

.price-local {
  font-size: 0.88rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 26px;
  display: block;
}

.price-features {
  list-style: none;
  margin-bottom: 32px;
  flex: 1;
}

.price-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-muted);
  padding: 9px 0;
  border-bottom: 1px solid var(--bg-alt);
}

.price-features li:last-child {
  border-bottom: none;
}

.price-features li::before {
  content: '✓';
  color: var(--primary);
  font-weight: 800;
  flex-shrink: 0;
}

.pricing-subgroup-title {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 50px 0 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.pricing-subgroup-title::before,
.pricing-subgroup-title::after {
  content: '';
  flex: 1;
  max-width: 90px;
  height: 2px;
  background: var(--border);
}

.price-devices-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 12px;
}

/* ── CHECKOUT PAGE ── */
.checkout-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 24px;
}

.plan-selector {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 36px;
}

.plan-option {
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 20px 16px;
  cursor: pointer;
  transition: all var(--transition-fast);
  background: var(--bg-card);
  text-align: center;
}

.plan-option.selected {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: var(--shadow-sm);
}

.plan-option h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-main);
}

.plan-option .plan-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
}

.plan-option .plan-local {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: block;
  margin-top: 4px;
}

.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.payment-method {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.pm-header {
  padding: 18px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: background var(--transition-fast);
}

.pm-header:hover {
  background: var(--bg-alt);
}

.pm-icon {
  font-size: 1.55rem;
}

.pm-title {
  font-weight: 800;
  font-size: 1rem;
  color: var(--text-main);
}

.pm-sub {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.pm-body {
  display: none;
  padding: 0 20px 20px;
  border-top: 1px solid var(--border);
  margin-top: -1px;
  background: var(--bg-card);
}

.pm-body.open {
  display: block;
  padding-top: 18px;
}

.copy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  margin: 10px 0;
  gap: 10px;
  flex-wrap: wrap;
}

.copy-row span {
  font-family: monospace;
  font-size: 0.92rem;
  color: var(--text-main);
  word-break: break-all;
  font-weight: 600;
}

.copy-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 700;
  font-family: inherit;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.copy-btn:hover {
  background: var(--primary-hover);
}

.pm-note {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 14px;
  padding: 12px 16px;
  background: var(--primary-light);
  border-radius: 10px;
  border-right: 4px solid var(--primary);
}

[dir="ltr"] .pm-note {
  border-right: none;
  border-left: 4px solid var(--primary);
}

.paypal-btn, .instapay-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.94rem;
  margin-top: 8px;
  transition: all var(--transition-fast);
  width: 100%;
}

.paypal-btn {
  background: #0070ba;
  margin-bottom: 10px;
}

.paypal-btn:hover {
  background: #005ea6;
  color: #fff;
}

.instapay-link:hover {
  background: var(--primary-hover);
  color: #fff;
}

/* ── CONTACT PAGE ── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 46px;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.contact-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
  transform: translateY(-5px);
}

.contact-card .cc-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: inline-block;
  animation: floatIcon 3.5s ease-in-out infinite;
}

.contact-card h3 {
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text-main);
}

.contact-card p {
  font-size: 0.94rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.contact-card a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-card);
  padding: 36px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

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

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 0.94rem;
  color: var(--text-main);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--bg-alt);
  border: 1px solid var(--border-focus);
  border-radius: 10px;
  padding: 13px 16px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.94rem;
  transition: all var(--transition-fast);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px var(--primary-light);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

/* ── POLICY & LEGAL PAGES ── */
.policy-content {
  max-width: 820px;
  margin: 50px auto;
  padding: 40px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.policy-content h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-main);
}

.policy-content .last-update {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--bg-alt);
}

.policy-content h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  margin: 32px 0 14px;
}

.policy-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 24px 0 10px;
}

.policy-content p,
.policy-content li {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 14px;
}

.policy-content ul {
  margin: 10px 0 20px 24px;
}

.policy-content ol {
  margin: 10px 0 20px 24px;
}

/* ── FOOTER ── */
footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 56px 0 28px;
  margin-top: 60px;
}

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

.footer-brand p {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-top: 14px;
}

.footer-col h4 {
  font-weight: 800;
  margin-bottom: 18px;
  font-size: 1rem;
  color: var(--text-main);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.footer-col ul li a:hover {
  color: var(--primary);
}

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

/* ── FLOATING ELEMENTS ── */

/* WhatsApp Float Button */
.wa-float {
  position: fixed;
  bottom: 30px;
  z-index: 997;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37,211,102,0.4);
  text-decoration: none;
  font-size: 1.7rem;
  transition: all var(--transition-normal);
  animation: pulse3d 2s infinite;
}

[dir="rtl"] .wa-float { left: 24px; }
[dir="ltr"] .wa-float { right: 24px; }

.wa-float:hover {
  transform: scale(1.1) translateY(-5px);
  box-shadow: 0 10px 30px rgba(37,211,102,0.5);
}

/* Download FAB (Floating Action Button) - Center Circular */
.download-fab {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 998;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(37,211,102,0.45);
  text-decoration: none;
  font-size: 1.6rem;
  transition: all var(--transition-normal);
  border: 3px solid rgba(255,255,255,0.3);
  animation: fabPulse 2.5s ease-in-out infinite;
}

.download-fab:hover {
  transform: translateX(-50%) scale(1.12);
  box-shadow: 0 12px 35px rgba(37,211,102,0.55);
  color: #fff;
}

.download-fab .fab-label {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--text-main);
  color: #fff;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  font-family: 'Cairo', sans-serif;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  pointer-events: none;
}

.download-fab:hover .fab-label {
  opacity: 1;
  visibility: visible;
  bottom: calc(100% + 14px);
}

/* Sound Toggle */
.sound-toggle {
  position: fixed;
  bottom: 30px;
  z-index: 997;
  background: var(--bg-card);
  color: var(--text-main);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  cursor: pointer;
  font-size: 1.2rem;
  transition: all var(--transition-normal);
}

[dir="rtl"] .sound-toggle { left: 96px; }
[dir="ltr"] .sound-toggle { right: 96px; }

.sound-toggle:hover {
  transform: scale(1.08);
  border-color: var(--primary);
}

/* ── MOBILE BOTTOM NAVIGATION ── */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  min-height: 68px;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -6px 24px rgba(0,0,0,0.07);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
  justify-content: space-around;
  align-items: stretch;
}

.bn-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 4px;
  text-decoration: none;
  color: var(--text-muted);
  border-radius: 12px;
  transition: all var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
  position: relative;
}

.bn-item .bn-icon {
  font-size: 1.25rem;
  line-height: 1;
  transition: transform var(--transition-fast);
}

.bn-item .bn-label {
  font-size: 0.62rem;
  font-weight: 700;
}

.bn-item.active {
  color: var(--primary);
}

.bn-item.active .bn-icon {
  transform: translateY(-2px) scale(1.15);
}

.bn-item:active .bn-icon {
  transform: scale(0.9);
}

/* Active indicator for bottom nav */
.bn-item.active::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

/* ── ACTIVATION STEPS ── */
.activation-steps {
  margin-top: 30px;
}

.steps-title {
  text-align: center;
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 44px;
  color: var(--text-main);
}

.steps-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  position: relative;
}

.steps-track::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 12%;
  right: 12%;
  height: 3px;
  z-index: 0;
  background: repeating-linear-gradient(90deg, var(--primary) 0 10px, transparent 10px 22px);
  animation: dashMove 1.4s linear infinite;
}

@keyframes dashMove {
  from { background-position: 0 0; }
  to { background-position: 32px 0; }
}

.step-item {
  position: relative;
  z-index: 1;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 16px 22px;
  transition: all 0.35s cubic-bezier(0.25,0.8,0.25,1);
}

.step-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.step-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  box-shadow: 0 8px 18px rgba(37,211,102,0.35);
  animation: pulse3d 2.6s infinite;
}

.step-icon {
  font-size: 1.85rem;
  margin-bottom: 12px;
  animation: floatIcon 3.5s ease-in-out infinite;
}

.step-item h4 {
  font-size: 1.02rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-main);
}

.step-item p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── VIDEO SHOWCASE ── */
.video-showcase {
  max-width: 1100px;
  margin: 0 auto 60px;
  position: relative;
}

.video-player-wrap {
  position: relative;
  padding: 6px;
  border-radius: 28px;
  background: linear-gradient(120deg, var(--primary), #0ea5e9, #8b5cf6, var(--primary));
  background-size: 300% 300%;
  animation: gradientShift 8s ease infinite;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 6px;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.video-badge {
  position: absolute;
  top: -18px;
  right: 28px;
  z-index: 5;
  background: var(--text-main);
  color: #fff;
  padding: 9px 18px;
  border-radius: 100px;
  font-size: 0.84rem;
  font-weight: 800;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 6px;
  animation: floatIcon 3.5s ease-in-out infinite;
}

[dir="ltr"] .video-badge {
  right: auto;
  left: 28px;
}

.video-main {
  background: #0b0f14;
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.video-stage {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
}

.video-stage video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000;
}

.video-nav-btns {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  pointer-events: none;
}

.vid-nav-btn {
  pointer-events: auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: rgba(15,23,42,0.55);
  color: #fff;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition: all var(--transition-fast);
  opacity: 0;
}

.video-stage:hover .vid-nav-btn,
.vid-nav-btn:focus-visible {
  opacity: 1;
}

.vid-nav-btn:hover {
  background: var(--primary);
}

.vid-nav-btn:disabled {
  opacity: 0.2 !important;
  cursor: not-allowed;
}

.video-current-info {
  padding: 14px 18px 6px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.video-current-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  margin-top: 2px;
}

.video-current-text {
  flex: 1;
  min-width: 0;
}

.video-current-info h3 {
  color: #fff;
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.45;
}

.video-current-info p#videoCurrentDesc {
  color: #94a3b8;
  font-size: 0.81rem;
  line-height: 1.55;
  margin-top: 4px;
}

.video-audio-note {
  margin: 4px 18px 14px;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.76rem;
  font-weight: 700;
  background: rgba(245,158,11,0.12);
  color: #fbbf24;
  display: flex;
  align-items: center;
  gap: 6px;
}

.video-playlist {
  background: var(--bg-card);
  border-radius: 22px;
  overflow-y: auto;
  max-height: 460px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px;
}

.vp-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px;
  border-radius: 14px;
  cursor: pointer;
  transition: background var(--transition-fast);
  text-align: start;
  background: none;
  border: none;
  width: 100%;
  font-family: inherit;
}

.vp-item:hover {
  background: var(--bg-alt);
}

.vp-item.active {
  background: var(--primary-light);
}

.vp-num {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--bg-alt);
  color: var(--text-muted);
  font-weight: 800;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vp-item.active .vp-num {
  background: var(--primary);
  color: #fff;
}

.vp-title {
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.45;
  flex: 1;
}

.vp-item.active .vp-title {
  color: var(--primary-hover);
  font-weight: 800;
}

.vp-playing-eq {
  display: none;
  flex-shrink: 0;
  gap: 2px;
  align-items: flex-end;
  height: 14px;
}

.vp-item.active .vp-playing-eq {
  display: flex;
}

.vp-playing-eq span {
  width: 3px;
  background: var(--primary);
  border-radius: 2px;
  animation: eqBounce 0.9s ease-in-out infinite;
}

.vp-playing-eq span:nth-child(1){ height:40%; animation-delay:0s; }
.vp-playing-eq span:nth-child(2){ height:100%; animation-delay:0.2s; }
.vp-playing-eq span:nth-child(3){ height:60%; animation-delay:0.4s; }

@keyframes eqBounce {
  0%,100%{ transform:scaleY(0.4); }
  50%{ transform:scaleY(1); }
}

.video-caption {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 16px;
  font-weight: 600;
}

/* ── FAQ ── */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition-normal);
}

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

.faq-q {
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 800;
  font-size: 1rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
  user-select: none;
}

.faq-q .faq-arrow {
  margin-inline-start: auto;
  color: var(--text-muted);
  transition: transform var(--transition-normal);
}

.faq-item.open .faq-q .faq-arrow {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 22px;
}

.faq-item.open .faq-a {
  max-height: 350px;
  padding: 0 22px 20px;
}

.faq-a p {
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.8;
}

/* ── ANIMATIONS ── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes floatIcon {
  0% { transform: translateY(0) rotate(0deg) scale(1); }
  50% { transform: translateY(-8px) rotate(5deg) scale(1.1); }
  100% { transform: translateY(0) rotate(0deg) scale(1); }
}

@keyframes pulse3d {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); transform: scale(1); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); transform: scale(1.04); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); transform: scale(1); }
}

@keyframes fabPulse {
  0%, 100% {
    box-shadow: 0 8px 25px rgba(37,211,102,0.45),
                0 0 0 0 rgba(37,211,102,0.2);
  }
  50% {
    box-shadow: 0 8px 35px rgba(37,211,102,0.55),
                0 0 0 12px rgba(37,211,102,0);
  }
}

@keyframes slideInRight {
  from { transform: translateX(30px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Staggered animations for icons */
.feature-card:nth-child(even) .feature-icon { animation-delay: 0.5s; }
.feature-card:nth-child(3n) .feature-icon { animation-delay: 1s; }
.feature-card:nth-child(4n) .feature-icon { animation-delay: 1.5s; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* ── UTILITIES ── */
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-24 { margin-top: 24px; }
.mb-24 { margin-bottom: 24px; }

/* ── RESPONSIVE DESIGN ── */

/* Tablet and below */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  
  .steps-track {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .steps-track::before {
    display: none;
  }
  
  .video-player-wrap {
    grid-template-columns: 1fr;
  }
  
  .video-playlist {
    max-height: 280px;
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 80px 30px 30px;
    gap: 8px;
    z-index: 999;
    animation: fadeIn 0.3s ease-out;
  }
  
  .nav-links.open {
    display: flex;
  }
  
  .nav-links a {
    font-size: 1.1rem;
    padding: 14px 20px;
    border-radius: 12px;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .lang-selector {
    position: static;
    margin: 0;
  }
}

/* Mobile styles */
@media (max-width: 768px) {
  :root {
    --bottom-nav-height: 68px;
  }
  
  /* Show bottom navigation */
  .bottom-nav {
    display: flex;
  }
  
  body {
    padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px));
  }
  
  /* Adjust floating elements for mobile */
  .wa-float {
    bottom: calc(var(--bottom-nav-height) + 16px);
    width: 52px;
    height: 52px;
    font-size: 1.5rem;
  }
  
  [dir="rtl"] .wa-float { left: 12px; }
  [dir="ltr"] .wa-float { right: 12px; }
  
  .download-fab {
    bottom: calc(var(--bottom-nav-height) + 80px);
    width: 58px;
    height: 58px;
    font-size: 1.4rem;
  }
  
  .sound-toggle {
    display: none;
  }
  
  /* Hero adjustments */
  .hero {
    padding: 50px 0 40px;
  }
  
  .hero h1 {
    font-size: 1.85rem;
  }
  
  .hero p {
    font-size: 1rem;
    margin-bottom: 28px;
  }
  
  .hero-btns {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-primary, .btn-secondary {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }
  
  /* Section adjustments */
  .section {
    padding: 50px 0;
  }
  
  .section-title {
    font-size: 1.55rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .feature-card {
    padding: 24px 20px;
  }
  
  /* Pricing adjustments */
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
  
  .price-card.popular {
    transform: none;
  }
  
  .price-card.popular:hover {
    transform: translateY(-8px);
  }
  
  /* Steps adjustments */
  .steps-track {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .step-item {
    padding: 22px 16px 18px;
  }
  
  /* Footer adjustments */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  
  footer {
    padding: 40px 0 24px;
    margin-bottom: calc(var(--bottom-nav-height) + 20px);
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  /* Policy page adjustments */
  .policy-content {
    margin: 30px 16px;
    padding: 24px 20px;
  }
  
  .policy-content h1 {
    font-size: 1.55rem;
  }
  
  /* Contact adjustments */
  .contact-form {
    padding: 24px 20px;
  }
  
  .checkout-container {
    padding: 40px 16px;
  }
  
  .plan-selector {
    grid-template-columns: 1fr 1fr;
  }
  
  /* Video player adjustments */
  .video-showcase {
    margin: 0 8px 40px;
  }
  
  .video-badge {
    font-size: 0.72rem;
    padding: 7px 14px;
    top: -14px;
  }
  
  [dir="ltr"] .video-badge {
    left: 14px;
  }
  
  /* Warning box */
  .warning-box {
    margin: 16px 16px 36px;
    padding: 18px 20px;
  }
  
  /* Container padding */
  .container {
    padding: 0 16px;
  }
  
  nav {
    padding: 12px 16px;
  }
  
  .logo {
    font-size: 1.2rem;
  }
  
  .logo svg {
    width: 28px;
    height: 28px;
  }
}

/* Small mobile */
@media (max-width: 380px) {
  .hero h1 {
    font-size: 1.65rem;
  }
  
  .bn-item .bn-label {
    font-size: 0.58rem;
  }
  
  .download-fab {
    width: 54px;
    height: 54px;
    font-size: 1.3rem;
  }
  
  .price-main {
    font-size: 2.6rem;
  }
}

/* Landscape mobile */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    padding: 30px 0 20px;
  }
  
  .bottom-nav {
    min-height: 56px;
  }
  
  .download-fab {
    bottom: calc(56px + 60px);
    width: 50px;
    height: 50px;
  }
}

/* Print styles */
@media print {
  .bottom-nav,
  .wa-float,
  .download-fab,
  .sound-toggle,
  .mobile-menu-btn {
    display: none !important;
  }
  
  body {
    padding-bottom: 0;
  }
  
  .nav-wrapper {
    position: static;
  }
}

/* ── PWA INSTALL BANNER ── */
.pwa-install-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: linear-gradient(135deg, var(--text-main) 0%, #1e293b 100%);
  color: #fff;
  padding: 14px 20px;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  animation: slideDown 0.4s ease-out;
}

.pwa-install-banner.show {
  display: flex;
}

@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

.pwa-banner-content {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 500px;
  flex: 1;
}

.pwa-banner-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
}

.pwa-banner-text {
  flex: 1;
}

.pwa-banner-title {
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.pwa-banner-subtitle {
  font-size: 0.78rem;
  opacity: 0.8;
}

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

.pwa-banner-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.88rem;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.pwa-banner-btn:hover {
  background: var(--primary-hover);
  transform: scale(1.02);
}

.pwa-banner-dismiss {
  background: transparent;
  color: rgba(255,255,255,0.7);
  border: none;
  padding: 8px;
  cursor: pointer;
  font-size: 1.3rem;
  transition: color var(--transition-fast);
}

.pwa-banner-dismiss:hover {
  color: #fff;
}

/* When banner is shown, add padding to body */
body.has-pwa-banner {
  padding-top: 76px;
}

body.has-pwa-banner .nav-wrapper {
  top: 76px;
}

@media (max-width: 768px) {
  .pwa-install-banner {
    padding: 12px 16px;
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .pwa-banner-icon {
    width: 38px;
    height: 38px;
  }
  
  .pwa-banner-title {
    font-size: 0.88rem;
  }
  
  .pwa-banner-subtitle {
    font-size: 0.72rem;
  }
  
  .pwa-banner-btn {
    padding: 8px 16px;
    font-size: 0.82rem;
  }
  
  body.has-pwa-banner {
    padding-top: 70px;
  }
  
  body.has-pwa-banner .nav-wrapper {
    top: 70px;
  }
}
