/* ═══════════════════════════════════════════════════════════════
   Ledger Logic POS — marketing.css
   Phase 33A: Public Layer Brand Alignment
   Light-first · RTL Arabic · Navy + Cyan brand system
   Loaded AFTER app.css in public.php only.
   Scoped to .ll-public-shell and .ll-ref-shell.
   ═══════════════════════════════════════════════════════════════ */


/* ──────────────────────────────────────────────────────────────
   §1  BRAND TOKENS
   ────────────────────────────────────────────────────────────── */
.ll-public-shell,
.ll-ref-shell {
  /* Core palette */
  --ll-primary:        #082858;
  --ll-primary-hover:  #103060;
  --ll-accent:         #19C2E6;
  --ll-accent-dark:    #2890B0;
  --ll-accent-soft:    #E6FAFF;

  /* Surfaces */
  --ll-bg:             #F7FAFC;
  --ll-surface:        #FFFFFF;
  --ll-surface-alt:    #EEF4F8;
  --ll-border:         #D9E4EC;

  /* Text */
  --ll-text:           #0F172A;
  --ll-text-muted:     #5E738A;

  /* Semantic */
  --ll-success:        #0F9D78;
  --ll-warning:        #D9A441;
  --ll-danger:         #D95C5C;
  --ll-info:           #19C2E6;

  /* Shadows */
  --ll-shadow-sm:      0 2px 8px  rgba(8, 40, 88, .07);
  --ll-shadow-md:      0 6px 20px rgba(8, 40, 88, .10);
  --ll-shadow-lg:      0 16px 40px rgba(8, 40, 88, .13);

  /* Gradients */
  --ll-gradient-accent:  linear-gradient(135deg, #082858 0%, #19C2E6 100%);
  --ll-gradient-hero:    linear-gradient(135deg, #082858 0%, #0e3d75 55%, #19C2E6 100%);
  --ll-gradient-subtle:  linear-gradient(135deg, rgba(25,194,230,.07) 0%, rgba(8,40,88,.05) 100%);

  /* Radii */
  --ll-radius-sm:      10px;
  --ll-radius-md:      16px;
  --ll-radius-lg:      24px;
}


/* ──────────────────────────────────────────────────────────────
   §2  BOOTSTRAP TOKEN OVERRIDES (public scope)
   Makes btn-primary, text-primary, bg-primary resolve to
   brand cyan/navy instead of Bootstrap default blue.
   ────────────────────────────────────────────────────────────── */
.ll-public-shell {
  --bs-primary:             #19C2E6;
  --bs-primary-rgb:         25, 194, 230;
  --bs-link-color:          #082858;
  --bs-link-hover-color:    #103060;
  --bs-link-color-rgb:      8, 40, 88;

  /* Smooth form focus rings to cyan */
  --bs-focus-ring-color:    rgba(25, 194, 230, .25);
}

/* Alert semantic token overrides */
.ll-public-shell .alert-success {
  --bs-alert-color:         var(--ll-success);
  --bs-alert-bg:            rgba(15, 157, 120, .08);
  --bs-alert-border-color:  rgba(15, 157, 120, .2);
}
.ll-public-shell .alert-danger {
  --bs-alert-color:         var(--ll-danger);
  --bs-alert-bg:            rgba(217, 92, 92, .08);
  --bs-alert-border-color:  rgba(217, 92, 92, .2);
}
.ll-public-shell .alert-info {
  --bs-alert-color:         var(--ll-accent-dark);
  --bs-alert-bg:            var(--ll-accent-soft);
  --bs-alert-border-color:  rgba(25, 194, 230, .25);
}
.ll-public-shell .alert-warning {
  --bs-alert-color:         #8a5a00;
  --bs-alert-bg:            rgba(217, 164, 65, .1);
  --bs-alert-border-color:  rgba(217, 164, 65, .25);
}

/* bg-primary-subtle → brand soft cyan */
.ll-public-shell .bg-primary-subtle {
  background-color: var(--ll-accent-soft) !important;
  color: var(--ll-accent-dark) !important;
}
.ll-public-shell .text-primary-emphasis {
  color: var(--ll-accent-dark) !important;
}
.ll-public-shell .bg-white {
  background-color: var(--ll-surface) !important;
}
.ll-public-shell .bg-light {
  background-color: var(--ll-surface-alt) !important;
}


/* ──────────────────────────────────────────────────────────────
   §3  PUBLIC SHELL BASE
   ────────────────────────────────────────────────────────────── */
.ll-public-shell {
  min-height: 100vh;
  background-color: var(--ll-bg);
  color: var(--ll-text);
  font-family: 'Alexandria', system-ui, -apple-system, sans-serif;
}

/* Hide the dark/light theme toggle on public pages */
.ll-public-shell #llThemeToggle {
  display: none !important;
}


/* ──────────────────────────────────────────────────────────────
   §4  HEADER & NAVBAR
   ────────────────────────────────────────────────────────────── */
.ll-public-header {
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ll-border);
  box-shadow: var(--ll-shadow-sm);
}

.ll-public-navbar .navbar-brand {
  color: var(--ll-primary);
  font-weight: 700;
  font-size: 1.1rem;
}
.ll-public-navbar .navbar-brand:hover {
  color: var(--ll-primary-hover);
}

.ll-public-navbar .nav-link {
  color: var(--ll-text-muted);
  font-weight: 500;
  font-size: .92rem;
  padding-bottom: 6px;
  transition: color .2s;
  position: relative;
}
.ll-public-navbar .nav-link:hover {
  color: var(--ll-primary);
}
.ll-public-navbar .nav-link.active {
  color: var(--ll-primary);
  font-weight: 600;
}
.ll-public-navbar .nav-link.active::after {
  content: '';
  display: block;
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--ll-accent);
  border-radius: 2px 2px 0 0;
}

/* Toggler */
.ll-public-navbar .navbar-toggler {
  border-color: var(--ll-border);
}
.ll-public-navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23082858' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Nav CTA buttons */
.ll-btn-nav-secondary {
  border: 1.5px solid var(--ll-primary);
  color: var(--ll-primary);
  background: transparent;
  border-radius: 8px;
  padding: .3rem .85rem;
  font-size: .88rem;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
  transition: background .2s, color .2s;
  display: inline-block;
}
.ll-btn-nav-secondary:hover {
  background: var(--ll-primary);
  color: #fff;
  border-color: var(--ll-primary);
}

/* Primary nav CTA (ابدأ الآن) — btn-primary overridden to cyan */
.ll-public-shell .btn-primary {
  background-color: var(--ll-accent);
  border-color: var(--ll-accent);
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
}
.ll-public-shell .btn-primary:hover,
.ll-public-shell .btn-primary:focus {
  background-color: var(--ll-accent-dark);
  border-color: var(--ll-accent-dark);
  color: #fff;
}
.ll-public-shell .btn-primary:active {
  background-color: #1e7a96;
  border-color: #1e7a96;
}

/* Dashboard link (logged-in) */
.ll-public-shell .btn-success {
  background-color: var(--ll-success);
  border-color: var(--ll-success);
  border-radius: 8px;
}


/* ──────────────────────────────────────────────────────────────
   §5  HERO SECTION
   ────────────────────────────────────────────────────────────── */
.ll-public-hero {
  background: var(--ll-bg);
  position: relative;
  overflow: hidden;
}
.ll-public-hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -150px;
  width: 600px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(25, 194, 230, .13) 0%, transparent 65%);
  pointer-events: none;
}
.ll-public-hero::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(8, 40, 88, .07) 0%, transparent 60%);
  pointer-events: none;
}

.ll-public-hero-title {
  background: var(--ll-gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  line-height: 1.2;
}

.ll-public-hero-card {
  background: var(--ll-surface);
  border: 1px solid var(--ll-border);
  border-radius: var(--ll-radius-md);
  box-shadow: var(--ll-shadow-sm);
  padding: 1.25rem;
  transition: box-shadow .25s;
}
.ll-public-hero-card:hover {
  box-shadow: var(--ll-shadow-md);
}
.ll-public-hero-card i {
  color: var(--ll-accent);
}

.ll-public-hero-img {
  border-radius: var(--ll-radius-md);
  
  position: relative;
  z-index: 1;
}
.ll-public-hero-img-float {
  animation: llHeroFloat 5s ease-in-out infinite;
}
.ll-public-hero-img-glow {
  position: relative;
}
.ll-public-hero-img-glow::before {
  content: '';
  position: absolute;
  inset: -20px;
  background: var(--ll-gradient-accent);
  opacity: .12;
  border-radius: var(--ll-radius-lg);
  z-index: 0;
  filter: blur(20px);
}

@keyframes llHeroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}


/* ──────────────────────────────────────────────────────────────
   §6  SECTION INFRASTRUCTURE
   ────────────────────────────────────────────────────────────── */
.ll-public-kicker,
.ll-public-section-kicker {
  display: inline-block;
  background: var(--ll-accent-soft);
  color: var(--ll-accent-dark);
  border: 1px solid rgba(25, 194, 230, .25);
  border-radius: 999px;
  padding: .3rem .9rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .02em;
  margin-bottom: .75rem;
}

.ll-public-section-title {
  color: var(--ll-primary);
  font-weight: 700;
  line-height: 1.25;
}

.ll-public-section-subtitle,
.ll-public-section-kicker ~ p {
  color: var(--ll-text-muted);
}

.ll-public-band-gradient {
  background: var(--ll-surface-alt);
  border-top:    1px solid var(--ll-border);
  border-bottom: 1px solid var(--ll-border);
}

.ll-public-page-head {
  background: var(--ll-surface-alt);
  border-bottom: 1px solid var(--ll-border);
}
.ll-public-page-head h1 {
  color: var(--ll-primary);
}


/* ──────────────────────────────────────────────────────────────
   §7  FEATURE CARDS
   ────────────────────────────────────────────────────────────── */
.ll-public-feature-card {
  background: var(--ll-surface);
  border: 1px solid var(--ll-border);
  border-radius: var(--ll-radius-md);
  box-shadow: var(--ll-shadow-sm);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.ll-public-feature-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0; left: 0;
  height: 3px;
  background: var(--ll-accent);
  opacity: 0;
  transition: opacity .25s;
}
.ll-public-feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--ll-shadow-md);
}
.ll-public-feature-card:hover::before {
  opacity: 1;
}
.ll-public-feature-card h3,
.ll-public-feature-card .h5 {
  color: var(--ll-primary);
}
.ll-public-feature-card p,
.ll-public-feature-card li {
  color: var(--ll-text-muted);
}

.ll-public-feature-icon {
  width: 52px;
  height: 52px;
  background: var(--ll-accent-soft);
  color: var(--ll-accent-dark);
  border-radius: var(--ll-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

/* "More features" gradient card variant */
.ll-public-card-gradient {
  background: var(--ll-gradient-subtle);
  border-color: rgba(25, 194, 230, .2);
}
.ll-public-card-gradient .ll-public-feature-icon {
  background: rgba(8, 40, 88, .08);
  color: var(--ll-primary);
}


/* ──────────────────────────────────────────────────────────────
   §8  STEPS / HOW-IT-WORKS
   ────────────────────────────────────────────────────────────── */
.ll-public-step {
  background: var(--ll-surface);
  border: 1px solid var(--ll-border);
  border-radius: var(--ll-radius-md);
  box-shadow: var(--ll-shadow-sm);
  padding: 1.5rem;
  transition: transform .25s, box-shadow .25s;
}
.ll-public-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--ll-shadow-md);
}
.ll-public-step h3,
.ll-public-step .h5 {
  color: var(--ll-primary);
}
.ll-public-step p {
  color: var(--ll-text-muted);
}

.ll-public-step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ll-gradient-accent);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(25, 194, 230, .35);
  flex-shrink: 0;
}

/* Timeline connector */
.ll-public-steps-row::before {
  background: var(--ll-border);
}


/* ──────────────────────────────────────────────────────────────
   §9  TESTIMONIALS
   ────────────────────────────────────────────────────────────── */
.ll-public-testimonial {
  background: var(--ll-surface);
  border: 1px solid var(--ll-border);
  border-radius: var(--ll-radius-md);
  box-shadow: var(--ll-shadow-sm);
  padding: 1.75rem;
  position: relative;
}
.ll-public-testimonial::before {
  content: '"';
  position: absolute;
  top: .5rem;
  right: 1.25rem;
  font-size: 5rem;
  line-height: 1;
  color: var(--ll-accent);
  opacity: .15;
  font-family: Georgia, serif;
  pointer-events: none;
}
.ll-public-testimonial p {
  color: var(--ll-text);
  line-height: 1.7;
}
.ll-public-testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--ll-border);
  background: var(--ll-surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ll-accent-dark);
  font-weight: 700;
  font-size: .9rem;
}
.ll-public-testimonial-author {
  border-top: 1px solid var(--ll-border);
  padding-top: .75rem;
  margin-top: .75rem;
}
.ll-public-testimonial-author .fw-semibold {
  color: var(--ll-primary);
}
.ll-public-testimonial-author small {
  color: var(--ll-text-muted);
}


/* ──────────────────────────────────────────────────────────────
   §10  PRICING CARDS
   ────────────────────────────────────────────────────────────── */
.ll-public-price-card {
  background: var(--ll-surface);
  border: 1px solid var(--ll-border);
  border-radius: var(--ll-radius-md);
  box-shadow: var(--ll-shadow-sm);
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.ll-public-price-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--ll-shadow-md);
}

.ll-public-price-featured {
  border: 2px solid var(--ll-accent) !important;
  background: var(--ll-accent-soft);
  transform: scale(1.02);
}
.ll-public-price-featured::before {
  content: '';
  position: absolute;
  top: 0; right: 0; left: 0;
  height: 4px;
  background: var(--ll-gradient-accent);
}
.ll-public-price-featured:hover {
  transform: scale(1.02) translateY(-6px);
}

.ll-public-price-badge {
  display: inline-block;
  background: var(--ll-gradient-accent);
  color: #fff;
  border-radius: 999px;
  padding: .25rem .75rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .03em;
  margin-bottom: .5rem;
}

.ll-public-price {
  color: var(--ll-primary);
  font-weight: 800;
  line-height: 1;
}
.ll-public-price sup {
  font-size: 1.2rem;
  font-weight: 600;
  vertical-align: top;
  margin-top: .4rem;
}

.ll-public-price-card h3,
.ll-public-price-card .h4 {
  color: var(--ll-primary);
}
.ll-public-price-card .text-muted {
  color: var(--ll-text-muted) !important;
}

/* Feature check list items inside pricing cards */
.ll-public-price-card .bi-check-circle-fill {
  color: var(--ll-success);
}
.ll-public-price-card .bi-x-circle-fill {
  color: var(--ll-text-muted);
  opacity: .4;
}
.ll-public-price-card .bi-infinity {
  color: var(--ll-accent-dark);
}


/* ──────────────────────────────────────────────────────────────
   §11  COMPARISON TABLE
   ────────────────────────────────────────────────────────────── */
.ll-public-table-wrap {
  border: 1px solid var(--ll-border);
  border-radius: var(--ll-radius-md);
  background: var(--ll-surface);
  box-shadow: var(--ll-shadow-sm);
  overflow: hidden;
}
.ll-public-table-wrap table {
  margin-bottom: 0;
}
.ll-public-table-wrap th,
.ll-public-table-wrap td {
  border-color: var(--ll-border);
  color: var(--ll-text);
}
.ll-public-table-wrap thead th {
  background: var(--ll-surface-alt);
  color: var(--ll-primary);
  font-weight: 700;
}
.ll-public-table-wrap .bi-check-lg,
.ll-public-table-wrap .bi-check-circle-fill {
  color: var(--ll-success);
}
.ll-public-table-wrap .bi-x-lg,
.ll-public-table-wrap .bi-x-circle-fill {
  color: var(--ll-text-muted);
  opacity: .4;
}
.ll-public-table-wrap .bi-infinity {
  color: var(--ll-accent-dark);
}


/* ──────────────────────────────────────────────────────────────
   §12  STATS BAND
   ────────────────────────────────────────────────────────────── */


.ll-public-stat-item {
  background: var(--ll-surface);
  border: 1px solid var(--ll-border);
  border-radius: var(--ll-radius-md);
  padding: 1.25rem 1.5rem;
  text-align: center;
  box-shadow: var(--ll-shadow-sm);
}

.ll-public-stat-value {
  background: var(--ll-gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  font-size: 2rem;
  line-height: 1.15;
  display: block;
}

.ll-public-stat-label {
  color: var(--ll-text-muted);
  font-size: .85rem;
  margin-top: .25rem;
}


/* ──────────────────────────────────────────────────────────────
   §13  FAQ / ACCORDION
   ────────────────────────────────────────────────────────────── */
.ll-public-accordion .accordion-item {
  border: 1px solid var(--ll-border) !important;
  border-radius: var(--ll-radius-sm) !important;
  background: var(--ll-surface);
  margin-bottom: .5rem;
  overflow: hidden;
}
.ll-public-accordion .accordion-button {
  background: var(--ll-surface);
  color: var(--ll-text);
  font-weight: 500;
  font-size: .95rem;
  box-shadow: none !important;
}
.ll-public-accordion .accordion-button:not(.collapsed) {
  background: var(--ll-accent-soft);
  color: var(--ll-primary);
  font-weight: 600;
  box-shadow: none !important;
}
.ll-public-accordion .accordion-button::after {
  filter: brightness(0.3) sepia(1) hue-rotate(170deg) saturate(3);
}
.ll-public-accordion .accordion-body {
  color: var(--ll-text-muted);
  line-height: 1.75;
  border-top: 1px solid var(--ll-border);
  background: var(--ll-surface);
}

/* Category section header in FAQ */
.ll-public-faq-category {
  color: var(--ll-primary);
  font-weight: 700;
  font-size: 1rem;
  padding: .5rem 0 .25rem;
  border-bottom: 2px solid var(--ll-accent-soft);
  margin-bottom: 1rem;
}
.ll-public-faq-category i {
  color: var(--ll-accent);
}


/* ──────────────────────────────────────────────────────────────
   §14  CTA BAND
   ────────────────────────────────────────────────────────────── */
.ll-public-cta {
  background: var(--ll-gradient-hero);
  border-radius: var(--ll-radius-lg);
  padding: 3.5rem 2rem;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.ll-public-cta::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 320px;
  height: 320px;
  background: radial-gradient(ellipse, rgba(25, 194, 230, .22) 0%, transparent 65%);
  pointer-events: none;
}
.ll-public-cta::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 250px;
  height: 250px;
  background: radial-gradient(ellipse, rgba(255, 255, 255, .06) 0%, transparent 60%);
  pointer-events: none;
}
.ll-public-cta h2,
.ll-public-cta .h2 {
  color: #fff;
  font-weight: 800;
}
.ll-public-cta p {
  color: rgba(255, 255, 255, .85);
}

/* CTA inner buttons */
.ll-public-shell .ll-public-cta .btn-light {
  background: #fff;
  color: var(--ll-primary);
  font-weight: 700;
  border: none;
  border-radius: 8px;
  transition: box-shadow .2s, transform .2s;
}
.ll-public-shell .ll-public-cta .btn-light:hover {
  box-shadow: 0 6px 16px rgba(8, 40, 88, .18);
  transform: translateY(-2px);
}
.ll-public-shell .ll-public-cta .btn-outline-light {
  border-color: rgba(255, 255, 255, .5);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  transition: background .2s;
}
.ll-public-shell .ll-public-cta .btn-outline-light:hover {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .8);
}


/* ──────────────────────────────────────────────────────────────
   §15  FOOTER
   ────────────────────────────────────────────────────────────── */
.ll-public-footer {
  background: var(--ll-primary);
  color: rgba(255, 255, 255, .75);
  border-top: none;
}
.ll-public-footer .h6 {
  color: rgba(255, 255, 255, .55);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 700;
}
.ll-public-footer a {
  color: rgba(255, 255, 255, .65);
  text-decoration: none;
  transition: color .2s;
}
.ll-public-footer a:hover {
  color: var(--ll-accent);
}
.ll-public-footer hr {
  border-color: rgba(255, 255, 255, .12);
}
.ll-public-footer .ll-muted {
  color: rgba(255, 255, 255, .45);
}
.ll-public-footer .small.ll-muted {
  color: rgba(255, 255, 255, .45);
}

/* Social icon buttons */
.ll-public-footer .btn-outline-secondary {
  border-color: rgba(255, 255, 255, .25);
  color: rgba(255, 255, 255, .6);
  border-radius: 8px;
  transition: background .2s, border-color .2s, color .2s;
}
.ll-public-footer .btn-outline-secondary:hover {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .5);
  color: #fff;
}

/* Footer CTA buttons */
.ll-public-footer .btn-primary {
  background: var(--ll-accent);
  border-color: var(--ll-accent);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
}
.ll-public-footer .btn-primary:hover {
  background: var(--ll-accent-dark);
  border-color: var(--ll-accent-dark);
}
.ll-public-footer .btn-outline-primary {
  border-color: rgba(255, 255, 255, .4);
  color: rgba(255, 255, 255, .85);
  border-radius: 8px;
  font-weight: 600;
}
.ll-public-footer .btn-outline-primary:hover {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .7);
  color: #fff;
}

/* Footer links in small row */
.ll-public-footer .d-flex.gap-3.small a {
  color: rgba(255, 255, 255, .45);
}
.ll-public-footer .d-flex.gap-3.small a:hover {
  color: var(--ll-accent);
}

/* Brand tagline text in footer */
.ll-public-footer p.ll-muted {
  font-size: .9rem;
  line-height: 1.6;
}

/* Footer headings (المنتج, الشركة, ...) */
.ll-public-footer h3 {
  color: rgba(255, 255, 255, .55);
}


/* ──────────────────────────────────────────────────────────────
   §16  AUTH CARDS
   ────────────────────────────────────────────────────────────── */
.ll-public-auth-section {
  background: var(--ll-bg);
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
}

.ll-auth-card {
  background: var(--ll-surface);
  border: 1px solid var(--ll-border);
  border-top: 3px solid var(--ll-accent);
  border-radius: var(--ll-radius-md);
  box-shadow: var(--ll-shadow-md);
  padding: 2rem 2.25rem;
}

.ll-auth-card h1,
.ll-auth-card h2,
.ll-auth-card .h4,
.ll-auth-card .h3 {
  color: var(--ll-primary);
}
.ll-auth-card p,
.ll-auth-card .text-muted {
  color: var(--ll-text-muted) !important;
}
.ll-auth-card a {
  color: var(--ll-accent-dark);
  text-decoration: none;
}
.ll-auth-card a:hover {
  color: var(--ll-primary);
  text-decoration: underline;
}

/* Form controls inside auth cards */
.ll-auth-card .form-control {
  border-color: var(--ll-border);
  background: var(--ll-surface);
  color: var(--ll-text);
  border-radius: 8px;
}
.ll-auth-card .form-control:focus {
  border-color: var(--ll-accent);
  box-shadow: 0 0 0 3px rgba(25, 194, 230, .18);
  background: var(--ll-surface);
}
.ll-auth-card .form-label {
  color: var(--ll-text);
  font-weight: 500;
  font-size: .9rem;
}
.ll-auth-card .form-text {
  color: var(--ll-text-muted);
}

/* Auth card primary button */
.ll-auth-card .btn-primary {
  background: var(--ll-accent);
  border-color: var(--ll-accent);
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  transition: background .2s, border-color .2s, box-shadow .2s;
}
.ll-auth-card .btn-primary:hover {
  background: var(--ll-accent-dark);
  border-color: var(--ll-accent-dark);
  box-shadow: 0 4px 12px rgba(25, 194, 230, .3);
}

/* Auth card secondary / outline button */
.ll-auth-card .btn-outline-primary {
  border-color: var(--ll-accent);
  color: var(--ll-accent-dark);
  font-weight: 500;
  border-radius: 8px;
}
.ll-auth-card .btn-outline-primary:hover {
  background: var(--ll-accent);
  border-color: var(--ll-accent);
  color: #fff;
}

/* Auth card billing nav buttons (trial-expired) */
.ll-auth-card .btn-outline-secondary {
  border-color: var(--ll-border);
  color: var(--ll-text-muted);
  border-radius: 8px;
}
.ll-auth-card .btn-outline-secondary:hover {
  background: var(--ll-surface-alt);
  color: var(--ll-text);
}

/* Wide auth card (signup) */
.ll-auth-card-wide {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* Validation states */
.ll-auth-card .is-invalid {
  border-color: var(--ll-danger);
}
.ll-auth-card .is-invalid:focus {
  box-shadow: 0 0 0 3px rgba(217, 92, 92, .18);
}
.ll-auth-card .invalid-feedback {
  color: var(--ll-danger);
}
.ll-auth-card .valid-feedback {
  color: var(--ll-success);
}

/* Auth page logo / brand area */
.ll-auth-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.75rem;
}
.ll-auth-brand-icon {
  width: 56px;
  height: 56px;
  background: var(--ll-accent-soft);
  border: 2px solid rgba(25, 194, 230, .25);
  border-radius: var(--ll-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ll-accent-dark);
  font-size: 1.6rem;
}

/* Trial expired / success icons */
.ll-auth-card .text-warning {
  color: var(--ll-warning) !important;
}
.ll-auth-card .text-success {
  color: var(--ll-success) !important;
}
.ll-auth-card .text-danger {
  color: var(--ll-danger) !important;
}

/* Alert overrides inside auth cards */
.ll-auth-card .alert {
  border-radius: 8px;
  font-size: .9rem;
}


/* ──────────────────────────────────────────────────────────────
   §17  REFERRAL LANDING (ll-ref-* scope)
   ────────────────────────────────────────────────────────────── */
.ll-ref-shell {
  min-height: 100vh;
  background: var(--ll-bg);
  color: var(--ll-text);
  font-family: 'Alexandria', system-ui, -apple-system, sans-serif;
}

/* Bootstrap overrides for ref shell */
.ll-ref-shell {
  --bs-primary:        #19C2E6;
  --bs-primary-rgb:    25, 194, 230;
  --bs-link-color:     #082858;
}

/* Ref hero */
.ll-ref-hero {
  background: var(--ll-gradient-hero);
  color: #fff;
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.ll-ref-hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 400px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(25, 194, 230, .2) 0%, transparent 65%);
  pointer-events: none;
}
.ll-ref-hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}
.ll-ref-hero p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, .88);
}
.ll-ref-hero .btn-light {
  background: #fff;
  color: var(--ll-primary);
  font-weight: 700;
  border: none;
  border-radius: 8px;
}
.ll-ref-hero .btn-light:hover {
  box-shadow: 0 6px 16px rgba(8, 40, 88, .2);
  transform: translateY(-1px);
}
.ll-ref-hero .btn-outline-light {
  border-color: rgba(255, 255, 255, .5);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
}
.ll-ref-hero .btn-outline-light:hover {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .8);
}

/* Ref header bar */
.ll-ref-header {
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ll-border);
  box-shadow: var(--ll-shadow-sm);
}
.ll-ref-header .navbar-brand {
  color: var(--ll-primary);
  font-weight: 700;
}

/* Section alt-background */
.ll-ref-alt {
  background: var(--ll-surface-alt);
}

/* Content sections */
.ll-ref-section {
  padding: 3.5rem 0;
}
.ll-ref-section h2,
.ll-ref-section .h3 {
  color: var(--ll-primary);
  font-weight: 700;
}
.ll-ref-section p {
  color: var(--ll-text-muted);
}

/* Benefit cards */
.ll-ref-benefit-card {
  background: var(--ll-surface);
  border: 1px solid var(--ll-border);
  border-radius: var(--ll-radius-md);
  box-shadow: var(--ll-shadow-sm);
  padding: 1.5rem;
  transition: transform .2s, box-shadow .2s;
}
.ll-ref-benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ll-shadow-md);
}
.ll-ref-benefit-card h3,
.ll-ref-benefit-card .h5 {
  color: var(--ll-primary);
}
.ll-ref-benefit-card p {
  color: var(--ll-text-muted);
}
.ll-ref-benefit-card i {
  color: var(--ll-accent);
}
.ll-ref-benefit-card .ll-public-feature-icon {
  background: var(--ll-accent-soft);
  color: var(--ll-accent-dark);
}

/* Module badges */
.ll-ref-shell .badge.bg-primary {
  background-color: var(--ll-accent-soft) !important;
  color: var(--ll-accent-dark) !important;
  border: 1px solid rgba(25, 194, 230, .25);
}
.ll-ref-shell .badge.bg-primary.bg-opacity-10 {
  background-color: var(--ll-accent-soft) !important;
}

/* FAQ in referral */
.ll-ref-faq-item {
  border: 1px solid var(--ll-border) !important;
  border-radius: var(--ll-radius-sm) !important;
  background: var(--ll-surface);
  margin-bottom: .5rem;
  overflow: hidden;
}
.ll-ref-faq-item .accordion-button {
  background: var(--ll-surface);
  color: var(--ll-text);
  font-weight: 500;
  box-shadow: none !important;
}
.ll-ref-faq-item .accordion-button:not(.collapsed) {
  background: var(--ll-accent-soft);
  color: var(--ll-primary);
  font-weight: 600;
}
.ll-ref-faq-item .accordion-body {
  color: var(--ll-text-muted);
  border-top: 1px solid var(--ll-border);
}

/* CTA section */
.ll-ref-cta-section {
  background: var(--ll-surface-alt);
  border-top: 1px solid var(--ll-border);
  padding: 3.5rem 0;
}
.ll-ref-cta-section h2 {
  color: var(--ll-primary);
  font-weight: 700;
}
.ll-ref-cta-section p {
  color: var(--ll-text-muted);
}
.ll-ref-cta-section .btn-primary {
  background: var(--ll-accent);
  border-color: var(--ll-accent);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
}
.ll-ref-cta-section .btn-outline-primary {
  border-color: var(--ll-primary);
  color: var(--ll-primary);
  border-radius: 8px;
  font-weight: 600;
}
.ll-ref-cta-section .btn-outline-primary:hover {
  background: var(--ll-primary);
  color: #fff;
}

/* Referral footer */
.ll-ref-footer {
  background: var(--ll-primary);
  color: rgba(255, 255, 255, .6);
  padding: 2rem 0;
  border-top: none;
}
.ll-ref-footer a {
  color: rgba(255, 255, 255, .55);
  text-decoration: none;
}
.ll-ref-footer a:hover {
  color: var(--ll-accent);
}
.ll-ref-footer .navbar-brand {
  color: #fff;
  font-weight: 700;
}


/* ──────────────────────────────────────────────────────────────
   §18  UTILITIES & SHARED
   ────────────────────────────────────────────────────────────── */
/* ll-muted scoped to brand token */
.ll-public-shell .ll-muted,
.ll-ref-shell .ll-muted {
  color: var(--ll-text-muted);
}

/* Navy-outlined secondary CTA (replaces btn-outline-primary in marketing views) */
.ll-btn-outline-navy {
  border: 1.5px solid var(--ll-primary);
  color: var(--ll-primary);
  background: transparent;
  border-radius: 8px;
  padding: .45rem 1.1rem;
  font-weight: 600;
  font-size: .9rem;
  line-height: 1.5;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.ll-btn-outline-navy:hover {
  background: var(--ll-primary);
  color: #fff;
  border-color: var(--ll-primary);
  box-shadow: 0 4px 12px rgba(8, 40, 88, .15);
}
.ll-btn-outline-navy.btn-lg {
  padding: .6rem 1.5rem;
  font-size: 1rem;
}
.ll-btn-outline-navy.btn-sm {
  padding: .3rem .75rem;
  font-size: .82rem;
}

/* Partner hover card */
.ll-hover-card {
  transition: transform .2s, box-shadow .2s;
}
.ll-hover-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ll-shadow-md) !important;
}

/* Partner hero (used in partners.php) */
.ll-partner-hero {
  background: var(--ll-gradient-hero);
  position: relative;
  overflow: hidden;
}
.ll-partner-hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(25, 194, 230, .18) 0%, transparent 65%);
  pointer-events: none;
}
.ll-partner-hero h1,
.ll-partner-hero h2,
.ll-partner-hero .h1,
.ll-partner-hero .h2 {
  color: #fff;
}
.ll-partner-hero p {
  color: rgba(255, 255, 255, .85);
}
.ll-partner-hero .btn-light {
  background: #fff;
  color: var(--ll-primary);
  font-weight: 700;
  border: none;
  border-radius: 8px;
}
.ll-partner-hero .btn-light:hover {
  box-shadow: 0 6px 16px rgba(8, 40, 88, .2);
}
.ll-partner-hero .btn-outline-light {
  border-color: rgba(255, 255, 255, .5);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
}
.ll-partner-hero .btn-outline-light:hover {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .8);
}
.ll-partner-hero .btn-primary {
  background: var(--ll-accent);
  border-color: var(--ll-accent);
  color: #fff;
  font-weight: 700;
  border-radius: 8px;
}
.ll-partner-hero .btn-primary:hover {
  background: var(--ll-accent-dark);
  border-color: var(--ll-accent-dark);
}

/* Partner step circle override for bg-primary */
.ll-public-shell .bg-primary.rounded-circle,
.ll-public-shell .bg-primary.text-white {
  background-color: var(--ll-accent) !important;
}

/* Soft section backgrounds  */
.ll-public-shell .bg-primary {
  background-color: var(--ll-accent) !important;
}

/* Text helpers */
.ll-public-shell .text-primary {
  color: var(--ll-accent-dark) !important;
}
.ll-ref-shell .text-primary {
  color: var(--ll-accent-dark) !important;
}


/* ──────────────────────────────────────────────────────────────
   §19  RESPONSIVE
   ────────────────────────────────────────────────────────────── */
@media (max-width: 991.98px) {
  /* RTL: active link on mobile gets a right-side border instead of underline */
  .ll-public-navbar .nav-link.active::after {
    display: none;
  }
  .ll-public-navbar .nav-link.active {
    border-right: 3px solid var(--ll-accent);
    padding-right: .65rem;
  }

  /* Collapsible nav background */
  .ll-public-navbar .navbar-collapse {
    background: var(--ll-surface);
    border-top: 1px solid var(--ll-border);
    padding: .75rem;
    border-radius: 0 0 var(--ll-radius-sm) var(--ll-radius-sm);
    margin-top: .25rem;
  }

  /* Pricing card featured scale off on mobile */
  .ll-public-price-featured {
    transform: none;
  }
  .ll-public-price-featured:hover {
    transform: translateY(-4px);
  }

  /* Hero title smaller on mobile */
  .ll-public-hero-title {
    font-size: clamp(1.8rem, 5vw, 3.5rem);
  }

  /* CTA padding */
  .ll-public-cta {
    padding: 2.5rem 1.5rem;
  }

  /* Auth card padding */
  .ll-auth-card {
    padding: 1.5rem;
  }

  /* Ref hero */
  .ll-ref-hero {
    padding: 3rem 0 2.5rem;
  }
  .ll-ref-hero h1 {
    font-size: 1.8rem;
  }
}

@media (max-width: 575.98px) {
  .ll-public-hero::before,
  .ll-public-hero::after {
    display: none;
  }
  .ll-public-step-no {
    width: 34px;
    height: 34px;
    font-size: .88rem;
  }
  .ll-auth-card {
    padding: 1.25rem 1rem;
  }
}


/* ──────────────────────────────────────────────────────────────
   §20  REDUCED MOTION
   ────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .ll-public-hero-img-float {
    animation: none !important;
  }
  .ll-public-feature-card,
  .ll-public-step,
  .ll-public-testimonial,
  .ll-public-price-card,
  .ll-hover-card,
  .ll-ref-benefit-card,
  .ll-btn-outline-navy,
  .ll-public-shell .btn-primary,
  .ll-public-shell .btn-light {
    transition: none !important;
  }
  .ll-animate {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}
