/* ============================================================
   ALFNR Design System
   Version: 1.0.0
   Last updated: 2026-04-05

   Table of Contents:
   ------------------
   1.  Custom Properties (Design Tokens)
   2.  Base Reset & Typography
   3.  Container Classes
   4.  Navbar
   5.  Hero Section
   6.  Trust Bar
   7.  Section Styles
   8.  Card Styles
   9.  Icon Circles
   10. Buttons
   11. App Store Badges
   12. Forms
   13. Tabs
   14. Accordion (FAQ)
   15. Footer
   16. Modal / Offer Modal
   17. Device Placeholder
   18. Comparison Table
   19. Product Flow / Steps
   20. Utility Classes
   21. Animation Support (WOW.js)
   22. Category Pills
   23. Page Hero (Inner Pages)
   24. Legal Page Styles
   25. Thank You & 404 Pages
   26. CTA Section
   27. Search UI
   28. Responsive Breakpoints
   ============================================================ */


/* ==========================================================
   1. CUSTOM PROPERTIES (DESIGN TOKENS)
   ========================================================== */

:root {
  /* --- Brand Colors --- */
  --color-primary:         #0D1F36;
  --color-secondary:       #17345D;
  --color-emerald:         #0E8A78;
  --color-emerald-dark:    #0A6E60;
  --color-gold:            #C7A66A;

  /* --- Backgrounds --- */
  --bg-light:              #F7F9FC;
  --bg-warm:               #F4F1EA;
  --bg-surface:            #FFFFFF;

  /* --- Borders --- */
  --border-soft:           #D8E0EA;

  /* --- Text --- */
  --text-primary:          #132238;
  --text-secondary:        #5F6F85;
  --text-muted:            #8C99AA;

  /* --- Status --- */
  --color-success:         #198754;
  --color-warning:         #D6A24A;
  --color-danger:          #C85A5A;

  /* --- Shadows --- */
  --shadow-xs:             0 1px 3px rgba(13, 31, 54, 0.04);
  --shadow-sm:             0 2px 8px rgba(13, 31, 54, 0.06);
  --shadow-md:             0 4px 16px rgba(13, 31, 54, 0.08);
  --shadow-lg:             0 8px 32px rgba(13, 31, 54, 0.12);

  /* --- Radii --- */
  --radius-sm:             10px;
  --radius-input:          14px;
  --radius-btn:            14px;
  --radius-card:           20px;
  --radius-card-lg:        24px;
  --radius-modal:          24px;
  --radius-pill:           999px;

  /* --- Typography --- */
  --font-heading:          'Manrope', sans-serif;
  --font-body:             'Inter', sans-serif;
  --font-arabic:           'Tajawal', sans-serif;

  /* --- Spacing (8px grid) --- */
  --space-1:               8px;
  --space-2:               16px;
  --space-3:               24px;
  --space-4:               32px;
  --space-5:               40px;
  --space-6:               48px;
  --space-7:               56px;
  --space-8:               64px;
  --space-9:               72px;
  --space-10:              80px;
  --space-12:              96px;
  --space-13:              104px;
  --space-15:              120px;

  /* --- Transition --- */
  --transition-fast:       0.2s ease;
  --transition-base:       0.3s ease;
  --transition-slow:       0.5s ease;

  /* --- Z-Index Scale --- */
  --z-dropdown:            100;
  --z-sticky:              200;
  --z-navbar:              1000;
  --z-modal-backdrop:      1040;
  --z-modal:               1050;
}


/* ==========================================================
   2. BASE RESET & TYPOGRAPHY
   ========================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* --- Headings --- */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

h1 { font-size: 56px; letter-spacing: -0.02em; }
h2 { font-size: 36px; letter-spacing: -0.015em; }
h3 { font-size: 28px; letter-spacing: -0.01em; }
h4 { font-size: 22px; }
h5 { font-size: 18px; }
h6 { font-size: 16px; font-weight: 600; }

/* --- Responsive Type Scale --- */

/* Hero H1 */
.hero-h1 {
  font-size: 56px;
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 800;
}

/* Page H1 */
.page-h1 {
  font-size: 44px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* Section H2 */
.section-h2 {
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

/* Card Title */
.card-title {
  font-size: 22px;
  line-height: 1.3;
  font-weight: 700;
}

/* Body */
.body-text {
  font-size: 16px;
  line-height: 1.6;
}

/* --- Paragraphs & Links --- */

p {
  margin-bottom: var(--space-2);
  color: var(--text-secondary);
}

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

a:hover {
  color: var(--color-emerald-dark);
}

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

ul, ol {
  list-style: none;
}

strong, b {
  font-weight: 600;
}

small {
  font-size: 14px;
}

::selection {
  background-color: rgba(14, 138, 120, 0.15);
  color: var(--text-primary);
}


/* ==========================================================
   3. CONTAINER CLASSES
   ========================================================== */

.container-xl,
.container-lg,
.container-narrow {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-3);
  padding-right: var(--space-3);
}

.container-xl  { max-width: 1320px; }
.container-lg  { max-width: 1200px; }
.container-narrow { max-width: 920px; }


/* ==========================================================
   4. NAVBAR (.alfnr-navbar)
   ========================================================== */

.alfnr-navbar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-navbar);
  height: 84px;
  background-color: var(--bg-surface);
  display: flex;
  align-items: center;
  transition: box-shadow var(--transition-base);
}

.alfnr-navbar.scrolled {
  box-shadow: 0 2px 12px rgba(13, 31, 54, 0.06);
}

.alfnr-navbar .navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--space-3);
}

/* --- Logo --- */

.alfnr-navbar .navbar-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.alfnr-navbar .navbar-logo img {
  height: 38px;
  width: auto;
}

/* --- Nav Links --- */

.alfnr-navbar .navbar-nav-wrap {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.alfnr-navbar .navbar-nav {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.alfnr-navbar .navbar-nav > li {
  flex: 0 0 auto;
}

.alfnr-navbar .navbar-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.alfnr-navbar .nav-link {
  position: relative;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: var(--space-1) 0;
  transition: color var(--transition-fast);
}

.alfnr-navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-emerald);
  transition: width var(--transition-base);
  border-radius: 1px;
}

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

.alfnr-navbar .nav-link:hover::after,
.alfnr-navbar .nav-link.active::after {
  width: 100%;
}

/* --- Nav Actions --- */

.alfnr-navbar .navbar-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* --- Language Switch --- */

.alfnr-navbar .lang-switch,
.alfnr-navbar .btn-lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.alfnr-navbar .lang-switch:hover,
.alfnr-navbar .btn-lang-switch:hover {
  border-color: var(--text-secondary);
  color: var(--text-primary);
}

.alfnr-navbar .nav-cta,
.alfnr-navbar .btn-nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 600;
  color: #FFFFFF;
  background-color: var(--color-primary);
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.alfnr-navbar .nav-cta:hover {
  background-color: var(--color-secondary);
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* --- Mobile Hamburger --- */

.alfnr-navbar .navbar-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.alfnr-navbar .navbar-toggle .bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 1px;
  transition: all var(--transition-base);
}

.alfnr-navbar .navbar-toggle .bar + .bar {
  margin-top: 5px;
}

.alfnr-navbar .navbar-toggle.open .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.alfnr-navbar .navbar-toggle.open .bar:nth-child(2) {
  opacity: 0;
}

.alfnr-navbar .navbar-toggle.open .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Mobile Menu Panel --- */

.alfnr-navbar .mobile-menu {
  display: none;
  position: fixed;
  top: 84px;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-surface);
  padding: var(--space-4) var(--space-3);
  overflow-y: auto;
  z-index: calc(var(--z-navbar) - 1);
}

.alfnr-navbar .mobile-menu.open {
  display: block;
}

.alfnr-navbar .mobile-menu .nav-link {
  display: block;
  font-size: 18px;
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--border-soft);
}

.alfnr-navbar .mobile-menu .nav-link::after {
  display: none;
}

.alfnr-navbar .mobile-menu .navbar-actions {
  flex-direction: column;
  align-items: stretch;
  margin-top: var(--space-3);
  gap: var(--space-2);
}

.alfnr-navbar .mobile-menu .nav-cta {
  height: 52px;
  text-align: center;
}


/* ==========================================================
   5. HERO SECTION (.hero-section)
   ========================================================== */

.hero-section {
  position: relative;
  min-height: 720px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  padding: var(--space-15) 0 var(--space-13);
  overflow: hidden;
}

.hero-section .hero-inner {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.hero-section .hero-content {
  flex: 0 0 48%;
  max-width: 48%;
}

.hero-section .hero-visual {
  flex: 0 0 52%;
  max-width: 52%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* --- Eyebrow Badge --- */

.hero-section .eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-gold);
  background: rgba(199, 166, 106, 0.12);
  border: 1px solid rgba(199, 166, 106, 0.25);
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-3);
}

/* --- Hero Text --- */

.hero-section .hero-title {
  font-family: var(--font-heading);
  font-size: 56px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: #FFFFFF;
  margin-bottom: var(--space-3);
}

.hero-section .hero-subtitle {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: var(--space-5);
  max-width: 480px;
}

.hero-section .hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

/* --- Hero Background Decoration --- */

.hero-section::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 138, 120, 0.08) 0%, transparent 70%);
  pointer-events: none;
}


/* ==========================================================
   6. TRUST BAR (.trust-bar)
   ========================================================== */

.trust-bar {
  background-color: var(--bg-light);
  padding: var(--space-3) 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.trust-bar .trust-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.trust-bar .trust-inner::-webkit-scrollbar {
  display: none;
}

.trust-bar .trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  white-space: nowrap;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.trust-bar .trust-item .trust-icon {
  width: 20px;
  height: 20px;
  color: var(--color-emerald);
  flex-shrink: 0;
}

.trust-bar .trust-item + .trust-item {
  position: relative;
  padding-left: var(--space-6);
}

.trust-bar .trust-item + .trust-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 24px;
  background-color: var(--border-soft);
}


/* ==========================================================
   7. SECTION STYLES
   ========================================================== */

/* --- Standard Section --- */

.section-standard {
  padding: var(--space-12) 0;
}

/* --- Compact Section --- */

.section-compact {
  padding: var(--space-9) 0;
}

/* --- Alternate Background --- */

.section-alt {
  background-color: var(--bg-light);
}

/* --- Warm Background --- */

.section-warm {
  background-color: var(--bg-warm);
}

/* --- Dark Section --- */

.section-dark {
  background-color: var(--color-primary);
  color: #FFFFFF;
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark h5,
.section-dark h6 {
  color: #FFFFFF;
}

.section-dark p {
  color: rgba(255, 255, 255, 0.72);
}

/* --- Section Title Block --- */

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--space-8);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.section-dark .section-title {
  color: #FFFFFF;
}

.section-subtitle {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto;
}

.section-dark .section-subtitle {
  color: rgba(255, 255, 255, 0.65);
}

.section-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-emerald);
  margin-bottom: var(--space-1);
}


/* ==========================================================
   8. CARD STYLES
   ========================================================== */

/* --- Base Card --- */

.alfnr-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  padding: var(--space-3);
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-base);
}

.alfnr-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

/* --- Large Card --- */

.alfnr-card-lg {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-base);
}

.alfnr-card-lg:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

/* --- Feature Card --- */

.feature-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  padding: var(--space-4);
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-base);
  text-align: left;
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.feature-card .icon-circle {
  margin-bottom: var(--space-3);
}

.feature-card .feature-card-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.feature-card .feature-card-body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* --- Showcase Card --- */

.showcase-card {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-xs);
}

.showcase-card .showcase-content {
  flex: 1;
}

.showcase-card .showcase-visual {
  flex: 0 0 280px;
  max-width: 280px;
}

.showcase-card .showcase-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.showcase-card .showcase-body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* --- Stat Card --- */

.stat-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  padding: var(--space-3);
  text-align: center;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-base);
}

.stat-card:hover {
  box-shadow: var(--shadow-sm);
}

.stat-card .stat-value {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--color-primary);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.stat-card .stat-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* --- Contact Card --- */

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  padding: var(--space-3);
}

.contact-card .contact-icon {
  flex-shrink: 0;
}

.contact-card .contact-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.contact-card .contact-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0;
}

/* --- Audience Card --- */

.audience-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  padding: var(--space-4);
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-base);
  text-align: center;
}

.audience-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--color-emerald);
}

.audience-card .audience-icon {
  font-size: 40px;
  margin-bottom: var(--space-2);
}

.audience-card .audience-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.audience-card .audience-body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 0;
}



.audience-grid > [class*="col-"] {
  display: flex;
}

.audience-grid .audience-card {
  width: 100%;
  height: 100%;
  min-height: 272px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 32px;
}

.audience-grid .audience-icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-2);
  font-size: 42px;
  line-height: 1;
}

.audience-grid .audience-title {
  width: 100%;
  min-height: 2.6em;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-1);
}

.audience-grid .audience-body {
  max-width: 32ch;
  margin-left: auto;
  margin-right: auto;
}

html[dir="rtl"] .audience-grid .audience-body {
  max-width: 28ch;
}

/* ==========================================================
   9. ICON CIRCLES (.icon-circle)
   ========================================================== */

.icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background-color: rgba(14, 138, 120, 0.10);
  border-radius: 50%;
  flex-shrink: 0;
}

.icon-circle svg,
.icon-circle i {
  width: 24px;
  height: 24px;
  color: var(--color-emerald);
}

.icon-circle img {
  width: 24px;
  height: 24px;
}

.icon-circle-sm {
  width: 40px;
  height: 40px;
}

.icon-circle-sm svg,
.icon-circle-sm i,
.icon-circle-sm img {
  width: 18px;
  height: 18px;
}

.icon-circle-lg {
  width: 72px;
  height: 72px;
}

.icon-circle-lg svg,
.icon-circle-lg i,
.icon-circle-lg img {
  width: 32px;
  height: 32px;
}


/* ==========================================================
   10. BUTTONS
   ========================================================== */

/* --- Base Button --- */

.btn-alfnr {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 24px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  user-select: none;
}

/* --- Primary (Deep Navy) --- */

.btn-alfnr-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 24px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  user-select: none;
  color: #FFFFFF;
  background-color: var(--color-primary);
}

.btn-alfnr-primary:hover {
  background-color: var(--color-secondary);
  border-color: var(--color-secondary);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-alfnr-primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

/* --- Secondary (White / Outlined) --- */

.btn-alfnr-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 24px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  border: 2px solid var(--border-soft);
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  user-select: none;
  color: var(--color-primary);
  background-color: var(--bg-surface);
}

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

.btn-alfnr-secondary:active {
  transform: translateY(0);
}

/* --- Accent (Emerald) --- */

.btn-alfnr-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 24px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  border: 2px solid var(--color-emerald);
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  user-select: none;
  color: #FFFFFF;
  background-color: var(--color-emerald);
}

.btn-alfnr-accent:hover {
  background-color: var(--color-emerald-dark);
  border-color: var(--color-emerald-dark);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-alfnr-accent:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

/* --- Gold (Transparent with Gold Border) --- */

.btn-alfnr-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 24px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  border: 2px solid var(--color-gold);
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  user-select: none;
  color: var(--color-gold);
  background-color: transparent;
}

.btn-alfnr-gold:hover {
  background-color: var(--color-gold);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-alfnr-gold:active {
  transform: translateY(0);
}

/* --- Outline (Navy Border) --- */

.btn-alfnr-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 24px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  user-select: none;
  color: var(--color-primary);
  background-color: transparent;
}

.btn-alfnr-outline:hover {
  background-color: var(--color-primary);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-alfnr-outline:active {
  transform: translateY(0);
}

/* --- Button Sizes --- */

.btn-sm {
  height: 40px;
  padding: 0 16px;
  font-size: 13px;
}

.btn-lg {
  height: 60px;
  padding: 0 32px;
  font-size: 16px;
}

/* --- Button on dark backgrounds --- */

.section-dark .btn-alfnr-secondary {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

.section-dark .btn-alfnr-secondary:hover {
  border-color: #FFFFFF;
  background-color: rgba(255, 255, 255, 0.08);
}


/* ==========================================================
   11. APP STORE BADGES (.store-badges)
   ========================================================== */

.store-badges {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.store-badges a {
  display: inline-block;
  transition: all var(--transition-base);
}

.store-badges a:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.store-badges img {
  width: 160px;
  height: auto;
}


/* ==========================================================
   12. FORMS (.alfnr-form)
   ========================================================== */

.alfnr-form .form-group {
  margin-bottom: var(--space-3);
}

.alfnr-form label,
.alfnr-form .form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.alfnr-form .form-control,
.alfnr-form input[type="text"],
.alfnr-form input[type="email"],
.alfnr-form input[type="tel"],
.alfnr-form input[type="url"],
.alfnr-form input[type="number"],
.alfnr-form input[type="password"],
.alfnr-form select {
  display: block;
  width: 100%;
  height: 56px;
  padding: 0 var(--space-2);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  color: var(--text-primary);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-input);
  outline: none;
  transition: all var(--transition-fast);
  appearance: none;
  -webkit-appearance: none;
}

.alfnr-form textarea {
  display: block;
  width: 100%;
  min-height: 160px;
  padding: var(--space-2);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  color: var(--text-primary);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-input);
  outline: none;
  transition: all var(--transition-fast);
  resize: vertical;
}

.alfnr-form .form-control:focus,
.alfnr-form input:focus,
.alfnr-form select:focus,
.alfnr-form textarea:focus {
  border-color: var(--color-emerald);
  box-shadow: 0 0 0 4px rgba(14, 138, 120, 0.10);
}

.alfnr-form .form-control::placeholder,
.alfnr-form input::placeholder,
.alfnr-form textarea::placeholder {
  color: var(--text-muted);
}

/* --- Select Arrow --- */

.alfnr-form select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%235F6F85' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 14px;
  padding-right: 40px;
}

/* --- Helper Text --- */

.alfnr-form .form-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.alfnr-form .form-error {
  font-size: 13px;
  color: var(--color-danger);
  margin-top: 4px;
}

.alfnr-form .form-control.is-error,
.alfnr-form input.is-error,
.alfnr-form textarea.is-error {
  border-color: var(--color-danger);
}

.alfnr-form .form-control.is-error:focus,
.alfnr-form input.is-error:focus,
.alfnr-form textarea.is-error:focus {
  box-shadow: 0 0 0 4px rgba(200, 90, 90, 0.10);
}

/* --- Checkbox & Radio --- */

.alfnr-form .form-check {
  display: flex;
  align-items: flex-start;
  gap: var(--space-1);
}

.alfnr-form .form-check input[type="checkbox"],
.alfnr-form .form-check input[type="radio"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  cursor: pointer;
  accent-color: var(--color-emerald);
  flex-shrink: 0;
}

.alfnr-form .form-check label {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 0;
  cursor: pointer;
}


/* ==========================================================
   13. TABS (.alfnr-tabs)
   ========================================================== */

.alfnr-tabs {
  margin-bottom: var(--space-5);
}

.alfnr-tabs .tab-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  max-width: 100%;
  padding: 4px;
  background-color: var(--bg-light);
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-soft);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.alfnr-tabs .tab-nav::-webkit-scrollbar {
  display: none;
}

.alfnr-tabs .alfnr-tab {
  flex: 0 0 auto;

  padding: 10px 20px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.alfnr-tabs .alfnr-tab:hover {
  color: var(--text-primary);
}

.alfnr-tabs .alfnr-tab.active {
  color: #FFFFFF;
  background-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

/* --- Tab Content --- */

.alfnr-tabs .tab-content {
  position: relative;
}

.alfnr-tabs .tab-pane {
  display: none;
  animation: tabFadeIn 0.35s ease;
}

.alfnr-tabs .tab-pane.active {
  display: block;
}

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


/* ==========================================================
   14. ACCORDION (.alfnr-accordion)
   ========================================================== */

.alfnr-accordion {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.alfnr-accordion .accordion-item {
  border-bottom: 1px solid var(--border-soft);
}

.alfnr-accordion .accordion-item:last-child {
  border-bottom: none;
}

.alfnr-accordion .accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-3);
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  background-color: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background-color var(--transition-fast);
}

.alfnr-accordion .accordion-trigger:hover {
  background-color: var(--bg-light);
}

.alfnr-accordion .accordion-icon {
  position: relative;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-left: var(--space-2);
}

.alfnr-accordion .accordion-icon::before,
.alfnr-accordion .accordion-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background-color: var(--text-secondary);
  border-radius: 1px;
  transition: transform var(--transition-base);
}

/* Horizontal bar (minus) */
.alfnr-accordion .accordion-icon::before {
  width: 14px;
  height: 2px;
  transform: translate(-50%, -50%);
}

/* Vertical bar (plus, rotates to minus when open) */
.alfnr-accordion .accordion-icon::after {
  width: 2px;
  height: 14px;
  transform: translate(-50%, -50%);
}

.alfnr-accordion .accordion-item.open .accordion-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.alfnr-accordion .accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.alfnr-accordion .accordion-item.open .accordion-body {
  max-height: 600px;
}

.alfnr-accordion .accordion-body-inner {
  padding: 0 var(--space-3) var(--space-3);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
}


/* ==========================================================
   15. FOOTER (.alfnr-footer)
   ========================================================== */

.alfnr-footer {
  background-color: var(--color-primary);
  padding-top: var(--space-10);
}

.alfnr-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: var(--space-5);
  padding-bottom: var(--space-8);
}

/* --- Brand Column --- */

.alfnr-footer .footer-brand {
  padding-right: var(--space-4);
}

.alfnr-footer .footer-logo {
  height: 36px;
  width: auto;
  margin-bottom: var(--space-2);
}

.alfnr-footer .footer-brand-text {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: var(--space-3);
}

/* --- Footer Columns --- */

.alfnr-footer .footer-heading {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: var(--space-2);
}

.alfnr-footer .footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.alfnr-footer .footer-links li {
  margin-bottom: var(--space-1);
}

.alfnr-footer .footer-links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.alfnr-footer .footer-links a:hover {
  color: var(--color-emerald);
}

/* --- Social Icons --- */

.alfnr-footer .footer-social {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  margin-top: var(--space-3);
}

.alfnr-footer .footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.alfnr-footer .footer-social a:hover {
  background: rgba(14, 138, 120, 0.20);
  color: var(--color-emerald);
}

.alfnr-footer .footer-social a svg {
  width: 18px;
  height: 18px;
}

/* --- Bottom Bar --- */

.alfnr-footer .footer-divider {
  border: none;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.08);
}

.alfnr-footer .footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) 0;
}

.alfnr-footer .footer-copyright {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0;
}

.alfnr-footer .footer-bottom-links {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.alfnr-footer .footer-bottom-links a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  transition: color var(--transition-fast);
}

.alfnr-footer .footer-bottom-links a:hover {
  color: rgba(255, 255, 255, 0.75);
}


/* ==========================================================
   16. MODAL (.alfnr-modal / .offer-modal)
   ========================================================== */

.alfnr-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal-backdrop);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 31, 54, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
}

.alfnr-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.alfnr-modal {
  position: relative;
  width: 520px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 64px);
  background-color: var(--bg-surface);
  border-radius: var(--radius-modal);
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
  transform: translateY(16px) scale(0.97);
  transition: transform var(--transition-base);
}

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

.alfnr-modal .modal-close {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-muted);
  transition: all var(--transition-fast);
  z-index: 1;
}

.alfnr-modal .modal-close:hover {
  background-color: var(--bg-light);
  color: var(--text-primary);
}

.alfnr-modal .modal-body {
  padding: var(--space-5);
}

.alfnr-modal .modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-emerald);
  background: rgba(14, 138, 120, 0.10);
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-2);
}

.alfnr-modal .modal-title {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.alfnr-modal .modal-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: var(--space-3);
}

.alfnr-modal .modal-actions {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

/* --- Offer Modal Variant --- */

.offer-modal .modal-body {
  text-align: center;
  padding: var(--space-6) var(--space-5);
}

.offer-modal .modal-offer-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-3);
}


/* ==========================================================
   17. DEVICE PLACEHOLDER (.device-placeholder)
   ========================================================== */

.device-placeholder {
  position: relative;
  width: 280px;
  height: 560px;
  background-color: var(--bg-light);
  border: 2px solid var(--border-soft);
  border-radius: 40px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

/* Inner notch */
.device-placeholder::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 28px;
  background-color: var(--bg-surface);
  border-radius: 14px;
  z-index: 1;
}

.device-placeholder .device-screen {
  position: absolute;
  inset: 0;
  padding: 48px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

/* Placeholder content blocks */
.device-placeholder .device-block {
  background-color: var(--border-soft);
  border-radius: var(--radius-sm);
  height: 40px;
  opacity: 0.5;
}

.device-placeholder .device-block-lg {
  height: 80px;
}

.device-placeholder .device-block-header {
  height: 24px;
  width: 60%;
}

/* Size variants */
.device-placeholder-sm {
  width: 200px;
  height: 400px;
  border-radius: 28px;
}

.device-placeholder-sm::before {
  width: 72px;
  height: 20px;
  border-radius: 10px;
  top: 8px;
}

.device-placeholder-lg {
  width: 340px;
  height: 680px;
  border-radius: 48px;
}

.device-placeholder-lg::before {
  width: 120px;
  height: 32px;
  border-radius: 16px;
  top: 14px;
}


/* ==========================================================
   18. COMPARISON TABLE / GRID
   ========================================================== */

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.comparison-col {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.comparison-col.comparison-highlight {
  border-color: var(--color-emerald);
  box-shadow: 0 0 0 1px var(--color-emerald);
}

.comparison-col .comparison-header {
  padding: var(--space-3);
  text-align: center;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  border-bottom: 1px solid var(--border-soft);
}

.comparison-col.comparison-highlight .comparison-header {
  background-color: rgba(14, 138, 120, 0.06);
  color: var(--color-emerald);
  border-bottom-color: var(--color-emerald);
}

.comparison-col .comparison-body {
  padding: var(--space-2);
}

.comparison-row {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-2);
  font-size: 15px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--bg-light);
}

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

.comparison-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.comparison-icon.check {
  color: var(--color-success);
}

.comparison-icon.cross {
  color: var(--color-danger);
}


/* ==========================================================
   19. PRODUCT FLOW / STEPS
   ========================================================== */

.steps-flow {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Connecting line */
.steps-flow::before {
  content: '';
  position: absolute;
  top: 28px;
  bottom: 28px;
  left: 27px;
  width: 2px;
  background-color: var(--border-soft);
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  position: relative;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: var(--color-emerald);
  background-color: rgba(14, 138, 120, 0.10);
  border-radius: 50%;
  flex-shrink: 0;
  z-index: 1;
}

.step-content {
  padding-top: var(--space-1);
}

.step-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.step-body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* --- Horizontal Steps (Desktop) --- */

.steps-horizontal {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
  counter-reset: step;
}

.steps-horizontal::before {
  display: none;
}

.steps-horizontal .step-item {
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0;
}


/* ==========================================================
   20. UTILITY CLASSES
   ========================================================== */

/* --- Text Colors --- */

.text-emerald  { color: var(--color-emerald) !important; }
.text-gold     { color: var(--color-gold) !important; }
.text-navy     { color: var(--color-primary) !important; }
.text-muted    { color: var(--text-muted) !important; }
.text-white    { color: #FFFFFF !important; }
.text-success  { color: var(--color-success) !important; }
.text-warning  { color: var(--color-warning) !important; }
.text-danger   { color: var(--color-danger) !important; }

/* --- Background Colors --- */

.bg-light    { background-color: var(--bg-light) !important; }
.bg-warm     { background-color: var(--bg-warm) !important; }
.bg-dark     { background-color: var(--color-primary) !important; }
.bg-surface  { background-color: var(--bg-surface) !important; }
.bg-emerald  { background-color: var(--color-emerald) !important; }

/* --- Spacing Utilities (8px grid) --- */

.mb-section { margin-bottom: var(--space-12); }
.mb-block   { margin-bottom: var(--space-5); }
.mb-0       { margin-bottom: 0 !important; }
.mb-1       { margin-bottom: var(--space-1) !important; }
.mb-2       { margin-bottom: var(--space-2) !important; }
.mb-3       { margin-bottom: var(--space-3) !important; }
.mb-4       { margin-bottom: var(--space-4) !important; }
.mb-5       { margin-bottom: var(--space-5) !important; }
.mb-6       { margin-bottom: var(--space-6) !important; }
.mt-0       { margin-top: 0 !important; }
.mt-1       { margin-top: var(--space-1) !important; }
.mt-2       { margin-top: var(--space-2) !important; }
.mt-3       { margin-top: var(--space-3) !important; }
.mt-4       { margin-top: var(--space-4) !important; }

/* --- Badge --- */

.badge-alfnr {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.badge-alfnr-emerald {
  color: var(--color-emerald);
  background-color: rgba(14, 138, 120, 0.10);
}

.badge-alfnr-gold {
  color: var(--color-gold);
  background-color: rgba(199, 166, 106, 0.12);
}

.badge-alfnr-navy {
  color: #FFFFFF;
  background-color: var(--color-primary);
}

.badge-alfnr-danger {
  color: var(--color-danger);
  background-color: rgba(200, 90, 90, 0.10);
}

/* --- Divider --- */

.divider {
  border: none;
  height: 1px;
  background-color: var(--border-soft);
  margin: var(--space-4) 0;
}

.divider-lg {
  margin: var(--space-6) 0;
}

/* --- Text Alignment --- */

.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

/* --- Flex Helpers --- */

.d-flex          { display: flex; }
.d-inline-flex   { display: inline-flex; }
.flex-column     { flex-direction: column; }
.align-center    { align-items: center; }
.justify-center  { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-wrap       { flex-wrap: wrap; }
.gap-1           { gap: var(--space-1); }
.gap-2           { gap: var(--space-2); }
.gap-3           { gap: var(--space-3); }
.gap-4           { gap: var(--space-4); }

/* --- Grid Helpers --- */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}

/* --- Visually Hidden (Accessible) --- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}


/* ==========================================================
   21. ANIMATION SUPPORT (WOW.js)
   ========================================================== */

.wow {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.wow.animated {
  opacity: 1;
}

/* --- Fade helpers for manual use --- */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* --- Stagger Delays --- */

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }


/* ==========================================================
   22. CATEGORY PILLS (.category-pills)
   ========================================================== */

   .category-pills {
      display: flex;
      align-items: center;
      gap: var(--space-1);
      width: 100%;
      max-width: 100%;
      overflow-x: auto;
      overflow-y: hidden;
      scrollbar-width: none;
      -ms-overflow-style: none;
      -webkit-overflow-scrolling: touch;
      padding-bottom: 4px;
    }

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

.category-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.category-pill:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.category-pill.active {
  color: #FFFFFF;
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}


/* ==========================================================
   23. PAGE HERO (.page-hero)
   ========================================================== */

.page-hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  padding: var(--space-8) 0 var(--space-7);
  text-align: center;
}

.page-hero .page-hero-title {
  font-family: var(--font-heading);
  font-size: 44px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin-bottom: var(--space-1);
}

.page-hero .page-hero-subtitle {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.65);
  max-width: 560px;
  margin: 0 auto;
}

/* --- Breadcrumb --- */

.page-hero .breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: var(--space-3);
}

.page-hero .breadcrumb a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  transition: color var(--transition-fast);
}

.page-hero .breadcrumb a:hover {
  color: rgba(255, 255, 255, 0.85);
}

.page-hero .breadcrumb .breadcrumb-sep {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
}

.page-hero .breadcrumb .breadcrumb-current {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}


/* ==========================================================
   24. LEGAL PAGE STYLES (.legal-content)
   ========================================================== */

.legal-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--space-6);
  padding: var(--space-8) 0;
}

/* --- Sticky Table of Contents --- */

.legal-toc {
  position: sticky;
  top: 108px;
  align-self: start;
}

.legal-toc .toc-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}

.legal-toc .toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.legal-toc .toc-list li {
  margin-bottom: 4px;
}

.legal-toc .toc-list a {
  display: block;
  padding: 6px 12px;
  font-size: 14px;
  color: var(--text-secondary);
  border-left: 2px solid transparent;
  border-radius: 0 6px 6px 0;
  transition: all var(--transition-fast);
}

.legal-toc .toc-list a:hover,
.legal-toc .toc-list a.active {
  color: var(--color-emerald);
  border-left-color: var(--color-emerald);
  background-color: rgba(14, 138, 120, 0.04);
}

/* --- Legal Content --- */

.legal-content {
  max-width: 720px;
}

.legal-content h2 {
  font-size: 24px;
  margin-top: var(--space-6);
  margin-bottom: var(--space-2);
  padding-top: var(--space-3);
}

.legal-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
}

.legal-content h3 {
  font-size: 20px;
  margin-top: var(--space-4);
  margin-bottom: var(--space-1);
}

.legal-content p {
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: var(--space-2);
}

.legal-content ul,
.legal-content ol {
  padding-left: var(--space-3);
  margin-bottom: var(--space-2);
}

.legal-content li {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 4px;
  list-style: disc;
}

.legal-content ol li {
  list-style: decimal;
}

.legal-content strong {
  color: var(--text-primary);
}

.legal-content .legal-updated {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}


/* ==========================================================
   25. THANK YOU & 404 PAGES
   ========================================================== */

.status-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 84px);
  text-align: center;
  padding: var(--space-6) var(--space-3);
}

.status-page .status-inner {
  max-width: 520px;
}

.status-page .status-icon {
  width: 120px;
  height: 120px;
  margin: 0 auto var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(14, 138, 120, 0.10);
  border-radius: 50%;
}

.status-page .status-icon svg {
  width: 48px;
  height: 48px;
  color: var(--color-emerald);
}

.status-page .status-code {
  font-family: var(--font-heading);
  font-size: 96px;
  font-weight: 800;
  line-height: 1;
  color: var(--color-primary);
  letter-spacing: -0.03em;
  margin-bottom: var(--space-2);
}

.status-page .status-title {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.status-page .status-text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
}

.status-page .status-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}


/* ==========================================================
   26. CTA SECTION (.cta-section)
   ========================================================== */

.cta-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  padding: var(--space-10) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section .cta-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
}

.cta-section .cta-title {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin-bottom: var(--space-2);
}

.cta-section .cta-text {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: var(--space-5);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section .cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

/* Background decoration */
.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 138, 120, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -40%;
  right: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(199, 166, 106, 0.06) 0%, transparent 70%);
  pointer-events: none;
}
/* ==========================================================
   STORE BUTTONS - OLD UI COLORFUL LOOK
   ========================================================== */

   .store-download-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
  }
  
  .market-btn-compact {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-width: 210px;
    min-height: 62px;
    padding: 10px 18px;
    border-radius: 12px;
    text-decoration: none;
    background: #ffffff;
    border: 1px solid rgba(118, 92, 255, 0.18);
    box-shadow:
      0 10px 24px rgba(87, 101, 255, 0.10),
      0 4px 10px rgba(0, 197, 167, 0.08);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  }
  
  .market-btn-compact:hover {
    transform: translateY(-2px);
    border-color: rgba(118, 92, 255, 0.30);
    box-shadow:
      0 14px 30px rgba(87, 101, 255, 0.14),
      0 6px 14px rgba(0, 197, 167, 0.12);
  }
  
  .market-btn-compact i {
    font-size: 34px;
    flex-shrink: 0;
    line-height: 1;
  }
  
  /* Apple button icon stays dark, like old style */
  .market-btn-compact.apple-store i {
    color: #111827;
  }
  
  /* Google button icon gets gradient feel */
  .market-btn-compact.google-play i {
    background: linear-gradient(135deg, #00c6a7 0%, #4f8cff 48%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
  }
  
  .market-btn-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
  }
  
  .market-btn-subtitle {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
  }
  
  .market-btn-title {
    font-size: 17px;
    font-weight: 800;
    color: #111827;
    font-family: var(--font-heading);
  }
  
  /* tiny accent line for a more premium colorful feel */
  .market-btn-compact::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 0;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #00c6a7 0%, #4f8cff 50%, #8b5cf6 100%);
    opacity: 0.9;
  }
  
  @media (max-width: 575.98px) {
    .store-download-compact {
      gap: 10px;
    }
  
    .market-btn-compact {
      min-width: 180px;
      min-height: 56px;
      padding: 10px 14px;
    }
  
    .market-btn-compact i {
      font-size: 30px;
    }
  
    .market-btn-title {
      font-size: 15px;
    }
  
    .market-btn-subtitle {
      font-size: 11px;
    }
  }

/* ==========================================================
   27. SEARCH UI (.search-box)
   ========================================================== */

.search-box {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
}

.search-box .search-input {
  display: block;
  width: 100%;
  height: 60px;
  padding: 0 56px 0 52px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  color: var(--text-primary);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  outline: none;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.search-box .search-input:focus {
  border-color: var(--color-emerald);
  box-shadow: 0 0 0 4px rgba(14, 138, 120, 0.10), var(--shadow-sm);
}

.search-box .search-input::placeholder {
  color: var(--text-muted);
}

.search-box .search-icon {
  position: absolute;
  top: 50%;
  left: 18px;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  pointer-events: none;
}

.search-box .search-clear {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-light);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: var(--text-muted);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
}

.search-box .search-input:not(:placeholder-shown) ~ .search-clear {
  opacity: 1;
  visibility: visible;
}

.search-box .search-clear:hover {
  background-color: var(--border-soft);
  color: var(--text-primary);
}


/* ==========================================================
   28. RESPONSIVE BREAKPOINTS
   ========================================================== */

/* --- Tablet (max-width: 1024px) --- */

@media (max-width: 1024px) {

  /* Typography */
  .hero-h1,
  .hero-section .hero-title,
  h1 {
    font-size: 44px;
  }

  .page-h1,
  .page-hero .page-hero-title {
    font-size: 36px;
  }

  .section-h2,
  .section-title,
  h2 {
    font-size: 30px;
  }

  .card-title,
  h4 {
    font-size: 20px;
  }

  /* Sections */
  .section-standard {
    padding: var(--space-9) 0;
  }

  .section-compact {
    padding: var(--space-7) 0;
  }

  /* Hero */
  .hero-section {
    min-height: 600px;
    padding: var(--space-10) 0 var(--space-8);
  }

  .hero-section .hero-inner {
    gap: var(--space-5);
  }

  /* Page Hero */
  .page-hero {
    padding: var(--space-6) 0 var(--space-5);
  }

  /* Footer Grid */
  .alfnr-footer .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--space-4);
  }

  .alfnr-footer .footer-brand {
    grid-column: 1 / -1;
    padding-right: 0;
    margin-bottom: var(--space-2);
  }

  /* Grids */
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Showcase Card */
  .showcase-card {
    flex-direction: column;
  }

  .showcase-card .showcase-visual {
    flex: none;
    max-width: 100%;
  }

  /* CTA */
  .cta-section .cta-title {
    font-size: 34px;
  }

  .cta-section {
    padding: var(--space-8) 0;
  }

  /* Steps */
  .steps-horizontal {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Legal */
  .legal-layout {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .legal-toc {
    position: static;
    border-bottom: 1px solid var(--border-soft);
    padding-bottom: var(--space-3);
    margin-bottom: var(--space-3);
  }
}


/* --- Mobile (max-width: 768px) --- */

@media (max-width: 768px) {

  /* Typography */
  .hero-h1,
  .hero-section .hero-title,
  h1 {
    font-size: 34px;
  }

  .page-h1,
  .page-hero .page-hero-title {
    font-size: 30px;
  }

  .section-h2,
  .section-title,
  h2 {
    font-size: 26px;
  }

  .card-title,
  h4 {
    font-size: 18px;
  }

  .body-text,
  body {
    font-size: 15px;
  }

  h3 {
    font-size: 22px;
  }

  /* Containers */
  .container-xl,
  .container-lg,
  .container-narrow {
    padding-left: var(--space-2);
    padding-right: var(--space-2);
  }

  /* Sections */
  .section-standard {
    padding: var(--space-7) 0;
  }

  .section-compact {
    padding: var(--space-5) 0;
  }

  .section-header {
    margin-bottom: var(--space-5);
  }


  .audience-grid .audience-card {
    min-height: 248px;
    padding: 32px 24px;
  }

  .audience-grid .audience-title {
    min-height: auto;
  }

  /* Navbar */
  .alfnr-navbar {
    height: 68px;
  }

  .alfnr-navbar .navbar-nav,
  .alfnr-navbar .navbar-actions {
    display: none;
  }

  .alfnr-navbar .navbar-hamburger {
    display: flex;
  }

  .alfnr-navbar .mobile-menu {
    top: 68px;
  }

  /* Hero */
  .hero-section {
    min-height: auto;
    padding: var(--space-8) 0 var(--space-6);
  }

  .hero-section .hero-inner {
    flex-direction: column;
    text-align: center;
  }

  .hero-section .hero-content,
  .hero-section .hero-visual {
    flex: none;
    max-width: 100%;
  }

  .hero-section .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-section .hero-actions {
    justify-content: center;
  }

  /* Page Hero */
  .page-hero {
    padding: var(--space-5) 0 var(--space-4);
  }

  /* Trust Bar */
  .trust-bar .trust-inner {
    justify-content: flex-start;
    gap: var(--space-4);
    padding: 0 var(--space-2);
  }

  .trust-bar .trust-item + .trust-item::before {
    display: none;
  }

  /* Cards */
  .alfnr-card {
    padding: var(--space-2);
  }

  .alfnr-card-lg {
    padding: var(--space-3);
  }

  .feature-card {
    padding: var(--space-3);
  }

  .showcase-card {
    padding: var(--space-3);
    gap: var(--space-3);
  }

  /* Grids */
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }

  /* Comparison Grid */
  .comparison-grid {
    grid-template-columns: 1fr;
  }

  /* Buttons */
  .btn-alfnr-primary,
  .btn-alfnr-secondary,
  .btn-alfnr-accent,
  .btn-alfnr-gold,
  .btn-alfnr-outline,
  .btn-alfnr {
    width: 100%;
    justify-content: center;
  }

  .hero-section .hero-actions .btn-alfnr-primary,
  .hero-section .hero-actions .btn-alfnr-secondary,
  .hero-section .hero-actions .btn-alfnr-accent,
  .hero-section .hero-actions .btn-alfnr-gold {
    width: auto;
  }

  /* Store Badges */
  .store-badges {
    justify-content: center;
  }

  .store-badges img {
    width: 140px;
  }

  /* Footer */
  .alfnr-footer .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4) var(--space-3);
  }

  .alfnr-footer .footer-bottom {
    flex-direction: column;
    gap: var(--space-2);
    text-align: center;
  }

  .alfnr-footer .footer-bottom-links {
    justify-content: center;
  }

  /* Modal */
  .alfnr-modal {
    width: calc(100vw - 32px);
    border-radius: var(--radius-card);
  }

  .alfnr-modal .modal-body {
    padding: var(--space-4);
  }

  .alfnr-modal .modal-title {
    font-size: 22px;
  }

  .offer-modal .modal-body {
    padding: var(--space-4);
  }

  /* Device Placeholder */
  .device-placeholder {
    width: 220px;
    height: 440px;
    border-radius: 32px;
  }

  .device-placeholder::before {
    width: 80px;
    height: 22px;
    top: 10px;
  }

  /* Steps */
  .steps-horizontal {
    grid-template-columns: 1fr;
  }

  .steps-horizontal .step-item {
    flex-direction: row;
    text-align: left;
  }

  .steps-flow::before {
    left: 27px;
  }

  /* CTA */
  .cta-section {
    padding: var(--space-7) 0;
  }

  .cta-section .cta-title {
    font-size: 28px;
  }

  .cta-section .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  /* Search */
  .search-box .search-input {
    height: 52px;
    font-size: 15px;
  }

  /* Stat Card */
  .stat-card .stat-value {
    font-size: 32px;
  }

  /* Accordion */
  .alfnr-accordion .accordion-trigger {
    padding: var(--space-2) var(--space-2);
    font-size: 16px;
  }

  .alfnr-accordion .accordion-body-inner {
    padding: 0 var(--space-2) var(--space-2);
  }

  /* Thank You / 404 */
  .status-page .status-code {
    font-size: 72px;
  }

  .status-page .status-title {
    font-size: 26px;
  }

  .status-page .status-actions {
    flex-direction: column;
    align-items: stretch;
  }

  /* Spacing */
  .mb-section {
    margin-bottom: var(--space-7);
  }

  .mb-block {
    margin-bottom: var(--space-3);
  }
}


/* --- Small Mobile (max-width: 480px) --- */

@media (max-width: 480px) {

  .hero-section .hero-title {
    font-size: 30px;
  }

  .store-badges {
    flex-direction: column;
    align-items: center;
  }

  .store-badges img {
    width: 160px;
  }

  .alfnr-footer .footer-grid {
    grid-template-columns: 1fr;
  }

  .category-pills {
    gap: 6px;
  }

  .category-pill {
    padding: 6px 14px;
    font-size: 13px;
  }
}


/* ==========================================================
   RTL (Arabic) SUPPORT
   ========================================================== */

[dir="rtl"] {
  font-family: var(--font-arabic);
}

[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4,
[dir="rtl"] h5,
[dir="rtl"] h6 {
  font-family: var(--font-arabic);
}

[dir="rtl"] .alfnr-navbar .nav-link::after {
  left: auto;
  right: 0;
}

[dir="rtl"] .steps-flow::before {
  left: auto;
  right: 27px;
}

[dir="rtl"] .legal-toc .toc-list a {
  border-left: none;
  border-right: 2px solid transparent;
  border-radius: 6px 0 0 6px;
}

[dir="rtl"] .legal-toc .toc-list a:hover,
[dir="rtl"] .legal-toc .toc-list a.active {
  border-right-color: var(--color-emerald);
}

[dir="rtl"] .search-box .search-icon {
  left: auto;
  right: 18px;
}

[dir="rtl"] .search-box .search-input {
  padding: 0 52px 0 56px;
}

[dir="rtl"] .search-box .search-clear {
  right: auto;
  left: 16px;
}

[dir="rtl"] .alfnr-form select {
  background-position: left 16px center;
  padding-right: var(--space-2);
  padding-left: 40px;
}

[dir="rtl"] .alfnr-footer .footer-brand {
  padding-right: 0;
  padding-left: var(--space-4);
}


/* ==========================================================
   PRINT STYLES
   ========================================================== */

@media print {
  .alfnr-navbar,
  .alfnr-footer,
  .cta-section,
  .alfnr-modal-overlay,
  .store-badges {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
    font-size: 12pt;
  }

  .hero-section {
    background: none !important;
    color: #000;
    min-height: auto;
    padding: 24pt 0;
  }

  .hero-section .hero-title,
  .hero-section .hero-subtitle {
    color: #000;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  .section-standard,
  .section-compact {
    padding: 24pt 0;
  }

  .alfnr-card,
  .alfnr-card-lg,
  .feature-card {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
  }
}

/* ==========================================================
   NEW FIX ----- AFTER ROUTE
   ========================================================== */

/* ==========================================================
   DEMO FIX: MOBILE MENU / HEADER
   ========================================================== */

   .navbar-hamburger {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    padding: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
  }
  
  .navbar-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
  }
  
  .mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: none;
  }
  
  .mobile-menu-overlay {
    position: absolute;
    inset: 0;
    background: rgba(13, 31, 54, 0.45);
  }
  
  .mobile-menu-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: min(360px, 88vw);
    height: 100%;
    background: #fff;
    box-shadow: 0 10px 40px rgba(13, 31, 54, 0.15);
    padding: 20px;
    overflow-y: auto;
  }
  
  .mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
  }
  
  .mobile-menu-close {
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    cursor: pointer;
  }
  
  .mobile-nav li + li {
    margin-top: 8px;
  }
  
  .mobile-nav a {
    display: block;
    padding: 10px 0;
    color: var(--text-primary);
    text-decoration: none;
  }
  
  .mobile-menu-lang,
  .mobile-menu-badges {
    margin-top: 20px;
  }
  
  body.mobile-menu-open {
    overflow: hidden;
  }
  
  body.mobile-menu-open .mobile-menu {
    display: block;
  }
  
  @media (max-width: 991.98px) {
    .alfnr-navbar .navbar-nav-wrap,
    .alfnr-navbar .btn-nav-cta,
    .alfnr-navbar .btn-lang-switch {
      display: none !important;
    }
  
    .navbar-hamburger {
      display: inline-flex;
    }
    .alfnr-navbar .navbar-actions {
      display: flex !important;
      align-items: center;
      gap: 10px;
    }
  
    .alfnr-navbar .btn-lang-switch,
    .alfnr-navbar .btn-nav-cta {
      display: none !important;
    }
  
    .alfnr-navbar .navbar-hamburger {
      display: inline-flex !important;
    }
  }
  
  @media (min-width: 992px) {
    .mobile-menu {
      display: none !important;
    }
  
    .navbar-hamburger {
      display: none !important;
    }
  }

  /* ==========================================================
   DEMO FIX: BACK TO TOP
   ========================================================== */

    .back-to-top {
      position: fixed;
      right: 24px;
      bottom: 24px;
      width: 52px;
      height: 52px;
      border: none;
      border-radius: 50%;
      background: var(--color-emerald);
      color: #fff;
      box-shadow: var(--shadow-md);
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      opacity: 0;
      visibility: hidden;
      transform: translateY(12px);
      transition: all .25s ease;
      z-index: 1090;
    }

    .back-to-top.visible {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }

    .back-to-top:hover {
      transform: translateY(-2px);
    }

    @media (min-width: 992px) {
      .alfnr-navbar .navbar-nav-wrap {
        display: flex !important;
        justify-content: center;
      }
    
      .alfnr-navbar .navbar-nav {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
      }
    
      .mobile-menu {
        display: none !important;
      }
    
      .navbar-hamburger {
        display: none !important;
      }
    }

    @media (min-width: 992px) {
      .alfnr-tabs .tab-nav {
        width: fit-content;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        justify-content: center;
      }
    
      .category-pills {
        width: fit-content;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        justify-content: center;
      }
    }
    
    @media (max-width: 991.98px) {
      .alfnr-tabs .tab-nav {
        justify-content: flex-start !important;
        margin-left: 0;
        margin-right: 0;
      }
    
      .category-pills {
        justify-content: flex-start !important;
        margin-left: 0;
        margin-right: 0;
      }
    }
    
    

/* ==========================================================
   PHONE MOCKUP CAROUSEL - reusable for Home and About
   tighter screen fit
   ========================================================== */

   .phone-carousel-mockup {
    position: relative;
    overflow: hidden;
    padding: 0 !important;
    border-radius: 40px;
    box-shadow:
      0 24px 50px rgba(7, 20, 42, 0.18),
      inset 0 0 0 1px rgba(255,255,255,0.55),
      inset 0 0 0 2px rgba(12,18,28,0.04);
  }
  
  .phone-carousel-mockup .device-screen {
    position: absolute !important;
    top: 8px !important;
    left: 6px !important;
    right: 6px !important;
    bottom: 8px !important;
    overflow: hidden !important;
    border-radius: 30px !important;
    background: #ffffff;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 1;
  }
  
  .phone-carousel-mockup::before {
    content: "";
    position: absolute;
    top: 9px;
    left: 50%;
    transform: translateX(-50%);
    width: 28%;
    height: 15px;
    border-radius: 0 0 13px 13px;
    background: rgba(12, 18, 28, 0.96);
    z-index: 5;
    pointer-events: none;
  }
  
  .phone-carousel-mockup .about-screen-carousel,
  .phone-carousel-mockup .owl-stage-outer,
  .phone-carousel-mockup .owl-stage,
  .phone-carousel-mockup .owl-item,
  .phone-carousel-mockup .screen-slide {
    height: 100% !important;
  }
  
  .phone-carousel-mockup .screen-slide {
    display: flex !important;
    align-items: stretch !important;
    justify-content: stretch !important;
    overflow: hidden !important;
  }
  
  .phone-carousel-mockup .screen-slide img,
  .phone-carousel-mockup .owl-item img,
  .phone-carousel-mockup .mockup-screen-image {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover !important;
    object-position: center top !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 30px !important;
  }
  
  .phone-carousel-mockup .owl-dots,
  .phone-carousel-mockup .owl-nav {
    display: none !important;
  }

  /* ==========================================================
   FEATURES PAGE MOCKUPS
   same look as home, tighter screen fit
   ========================================================== */

.mockup-frame-tight {
  position: relative;
  overflow: hidden;
  padding: 0 !important;
  border-radius: 38px;
  box-shadow:
    0 22px 50px rgba(7, 20, 42, 0.16),
    inset 0 0 0 1px rgba(255,255,255,0.55),
    inset 0 0 0 2px rgba(12,18,28,0.04);
}

.mockup-frame-tight .device-screen {
  position: absolute !important;
  top: 8px !important;
  left: 6px !important;
  right: 6px !important;
  bottom: 8px !important;
  overflow: hidden !important;
  border-radius: 28px !important;
  background: #ffffff;
  margin: 0 !important;
  padding: 0 !important;
  z-index: 1;
}

.mockup-frame-tight::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 28%;
  height: 15px;
  border-radius: 0 0 13px 13px;
  background: rgba(12, 18, 28, 0.96);
  z-index: 5;
  pointer-events: none;
}

.mockup-screen-image {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: cover !important;
  object-position: top center !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 28px !important;
}

.mockup-frame-doc .mockup-screen-image {
  object-position: top center;
}

.mockup-frame-card .mockup-screen-image {
  object-position: center center;
}

.mockup-frame-dashboard .mockup-screen-image {
  object-position: top center;
}

.footer-badges {
  display: flex;
  flex-direction: column;
  gap: 14px; /* change to 12px / 16px if needed */
}

.footer-badges .market-btn-compact {
  display: flex;
  width: 100%;
}

.footer-contact-mini a {
  color: #ffffff;
}

.footer-contact-mini a:hover {
  color: #ffffff;
}
