/* ==========================================================================
   Lexora Website — Clean Light Professional Design
   ========================================================================== */

/* ── Tokens ── */
:root {
  --white:       #ffffff;
  --bg:          #f8faff;
  --bg-2:        #f0f4ff;
  --card:        #ffffff;
  --border:      #e5e9f5;
  --border-2:    #d0d7ee;

  --text:        #0f1628;
  --text-2:      #374161;
  --text-muted:  #6b7498;

  --accent:      #4f46e5;
  --accent-dark: #3730a3;
  --accent-2:    #6366f1;
  --accent-soft: rgba(79,70,229,0.08);
  --accent-glow: rgba(79,70,229,0.2);

  --success:     #10b981;
  --warning:     #f59e0b;
  --danger:      #ef4444;

  --shadow-sm:   0 1px 3px rgba(15,22,40,0.06), 0 1px 2px rgba(15,22,40,0.04);
  --shadow-md:   0 4px 16px rgba(15,22,40,0.08);
  --shadow-lg:   0 12px 40px rgba(15,22,40,0.12);
  --shadow-xl:   0 24px 64px rgba(15,22,40,0.14);

  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   18px;
  --radius-xl:   24px;

  --navbar-h:    72px;
  /* Composited-friendly property list only — no `color`/`background-position`,
     which force main-thread paint on every hover instead of running on the
     compositor thread (Lighthouse: non-composited animations). */
  --transition:  background-color 0.22s cubic-bezier(0.4,0,0.2,1), border-color 0.22s cubic-bezier(0.4,0,0.2,1), box-shadow 0.22s cubic-bezier(0.4,0,0.2,1), transform 0.22s cubic-bezier(0.4,0,0.2,1), opacity 0.22s cubic-bezier(0.4,0,0.2,1);
}

/* ── Reset ── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--white);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.rtl {
  direction: rtl;
  font-family: 'Cairo', 'Inter', system-ui, sans-serif;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ══════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--navbar-h);
  z-index: 1000;
  background: white;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(255,255,255,0.98);
  box-shadow: var(--shadow-sm);
}

.navbar .container {
  height: 100%;
  max-width: 1360px;
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* Logo */
.logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.2rem; font-weight: 800;
  color: var(--accent); letter-spacing: -0.02em;
  flex-shrink: 0;
}
.logo svg { color: var(--accent); }
.logo-img {
  height: auto;
  width: 100px;
  object-fit: contain;
}

/* Nav links */
.nav-links {
  display: flex; align-items: center;
  gap: 2px; flex: 1;
}

.nav-links li a.nav-link {
  font-size: 0.875rem; font-weight: 500;
  color: var(--text-muted);
  padding: 0.45rem 0.875rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.nav-links li a.nav-link:hover    { color: var(--accent); background: var(--accent-soft); }
.nav-links li a.nav-link.nav-active { color: var(--accent); background: var(--accent-soft); font-weight: 600; }

/* Desktop layout: the 6 primary links sit on the start side; everything
   else (icons, switchers, account/auth) is ONE flex item (.navbar-actions,
   the last <li>) pushed to the far end. DOM order already matches visual
   order, so this needs no `order`/`:has()` juggling - just one auto margin
   on the single wrapper that always exists regardless of which controls
   inside it happen to be visible for the current user/screen. */
@media (min-width: 992px) {
  .nav-links { justify-content: flex-start; }
  .navbar-actions {
    display: flex; align-items: center; gap: 14px;
    margin-inline-start: auto;
  }
  .nav-links > li { flex-shrink: 0; }
  .nav-links li a.nav-link,
  .auth-buttons.nav-auth-group a { white-space: nowrap; }
  .user-info .user-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 130px;
  }
}

/* Tight desktop range: shrink paddings/gaps to keep one comfortable row. */
@media (min-width: 992px) and (max-width: 1199px) {
  .navbar .container { gap: 1rem; }
  .nav-links li a.nav-link { padding: 0.45rem 0.55rem; }
  .navbar-actions { gap: 8px; }
  .user-info .user-name { max-width: 90px; }
}

/* Auth buttons */
.auth-buttons.nav-auth-group {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}

.btn-nav-login {
  font-size: 0.875rem; font-weight: 600;
  color: var(--text-2);
  padding: 0.45rem 0.875rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.btn-nav-login:hover { color: var(--accent); }

.btn-nav-primary {
  font-size: 0.85rem; font-weight: 700;
  color: white !important;
  background: var(--accent);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  transition: var(--transition);
  box-shadow: 0 2px 8px var(--accent-glow);
}
.btn-nav-primary:hover {
  background: var(--accent-dark);
  box-shadow: 0 4px 16px var(--accent-glow);
  transform: translateY(-1px);
  color: white !important;
}

/* Language switcher */
.language-switcher {
  display: flex; gap: 2px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 3px;
}
.lang-btn {
  padding: 3px 10px; border: none;
  border-radius: 5px; background: transparent;
  color: #525b80; /* darker than --text-muted for WCAG AA contrast on --bg-2 */
  cursor: pointer;
  font-size: 0.78rem; font-weight: 700;
  font-family: inherit; transition: var(--transition);
}
.lang-btn.active { background: var(--accent); color: white; }
.lang-btn:hover:not(.active) { color: var(--accent); }

/* Currency switcher - same compact "icon button that opens a dropdown"
   concept as the dashboard navbar, reusing .user-info/.dropdown-menu so it
   looks consistent with the account menu right next to it. */
.currency-option.active {
  color: var(--accent);
  background: var(--accent-soft);
  font-weight: 700;
}

/* Mobile menu */
.mobile-menu-btn {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 6px;
  border: none; background: transparent;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.mobile-menu-btn:hover { background: var(--accent-soft); }
.mobile-menu-btn span {
  display: block; width: 21px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: var(--transition);
}

/* User dropdown */
.user-profile { position: relative; display: flex; align-items: center; gap: 12px; }
.user-avatar-wrap { position: relative; display: flex; flex-shrink: 0; }
.verify-dot {
  position: absolute; top: -2px; inset-inline-end: -2px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--warning);
  border: 2px solid var(--white);
}

/* Icon buttons (chat, notifications) grouped tightly together */
.navbar-icons { display: flex; align-items: center; gap: 8px; }

/* Language + currency toggles grouped as one visual unit */
.navbar-switchers { display: flex; align-items: center; gap: 6px; }

/* Desktop: hairline dividers between each sub-group inside .navbar-actions,
   skipping whichever happens to be empty/hidden (guest: no icons; verified
   user: no dot) since :empty and [style*="display: none"] never get one. */
@media (min-width: 992px) {
  .navbar-icons:not(:empty),
  .navbar-switchers,
  .auth-buttons.nav-auth-group,
  .user-profile {
    padding-inline-start: 14px;
    border-inline-start: 1px solid var(--border);
  }
  .navbar-icons:first-child {
    padding-inline-start: 0;
    border-inline-start: none;
  }
}

.chat-icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--accent-soft);
  border: none;
  border-radius: 12px;
  color: var(--accent);
  transition: var(--transition);
  text-decoration: none;
}

.chat-icon-btn:hover {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 12px var(--accent-glow);
}

.chat-icon-btn svg {
  width: 19px;
  height: 19px;
  display: block;
}

.chat-badge {
  position: absolute;
  top: -5px;
  inset-inline-end: -5px;
  background: var(--danger);
  color: white;
  font-size: 0.62rem;
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--white);
  line-height: 1;
}

/* Notifications bell (reuses .chat-icon-btn/.chat-badge visuals) */
#navbar-notif-btn {
  cursor: pointer;
  font-family: inherit;
}
/* Compound selector (not just .notif-dropdown-menu) so this beats the
   generic .dropdown-menu rule further down regardless of source order -
   both are single-class specificity, so whichever is declared later in the
   file was winning and forcing the flat 400px back on, pushing the panel
   off the right edge of the viewport on any phone under ~432px wide. */
.dropdown-menu.notif-dropdown-menu {
  /* min-width beats max-width whenever they conflict, so the floor has to be
     viewport-aware too - a flat 400px here forced the panel wider than the
     screen on any phone under ~432px and pushed half of it off-view. */
  width: 400px;
  min-width: min(400px, calc(100vw - 32px));
  max-width: min(400px, calc(100vw - 32px));
  padding: 0;
  overflow: hidden;
}
.notif-dropdown-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 1rem; font-weight: 700; color: var(--text);
}
.notif-mark-all-btn {
  border: none; background: transparent; cursor: pointer;
  font-family: inherit; font-size: 0.8rem; font-weight: 600;
  color: var(--accent); padding: 5px 8px; border-radius: var(--radius-sm);
  transition: var(--transition);
}
.notif-mark-all-btn:hover { background: var(--accent-soft); }
.notif-enable-btn {
  display: flex; align-items: center; gap: 8px;
  width: 100%; text-align: inherit;
  padding: 10px 18px;
  border: none; border-bottom: 1px solid var(--border);
  background: var(--accent-soft); color: var(--accent);
  font-family: inherit; font-size: 0.82rem; font-weight: 700;
  cursor: pointer; transition: var(--transition);
}
.notif-enable-btn:hover { background: rgba(79,70,229,0.14); }
.notif-enable-icon { font-size: 0.95rem; }
.notif-dropdown-list {
  max-height: 420px;
  overflow-y: auto;
}
.notif-empty {
  padding: 36px 18px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.notif-item {
  display: flex; align-items: flex-start; gap: 12px;
  width: 100%; text-align: inherit;
  padding: 14px 18px;
  border: none; background: transparent; cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: var(--accent-soft); }
.notif-item.unread { background: rgba(79,70,229,0.05); }
.notif-item-avatar {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  object-fit: cover;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem; font-weight: 700;
  color: #fff;
  line-height: 1;
}
.notif-item-avatar--icon {
  background: var(--accent-soft, rgba(79,70,229,0.1));
  color: var(--accent);
}

.notif-item-dot {
  flex-shrink: 0;
  width: 9px; height: 9px; border-radius: 50%;
  margin-top: 7px;
  background: var(--accent);
}
.notif-item:not(.unread) .notif-item-dot { background: transparent; }
.notif-item-body { flex: 1; min-width: 0; }
.notif-item-title {
  font-size: 0.95rem; font-weight: 700; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.notif-item-text {
  font-size: 0.86rem; color: var(--text-muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 3px;
}
.notif-item-time {
  font-size: 0.74rem; color: var(--text-muted);
  margin-top: 6px;
}

/* Tablet/mobile: the notif bell lives in the fixed top bar (.mobile-topbar-icons),
   right next to the screen edge. Anchoring the panel to the *trigger*
   (position: absolute; right: 0, from the base rule above) meant its width
   had to exactly match "however far the trigger happens to be from the
   viewport edge" - fragile, and 100vw itself is unreliable on mobile
   browsers (can include extra reserved scrollbar space some engines don't
   subtract for mobile at all). Anchoring straight to the viewport instead
   removes that dependency entirely: the panel can never hang off either
   edge no matter where the trigger sits. */
@media (max-width: 991px) {
  .notif-dropdown-list { max-height: 50vh; }

  .dropdown-menu.notif-dropdown-menu {
    position: fixed !important;
    top: calc(var(--navbar-h, 72px) + 8px) !important;
    left: 16px !important;
    right: 16px !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
  }
}

@media (max-width: 480px) {
  .notif-dropdown-header { padding: 12px 14px; }
  .notif-item { padding: 12px 14px; }
  .notif-item-title { font-size: 0.9rem; }
  .notif-item-text { font-size: 0.82rem; }
}

/* Any icon-button-that-opens-a-dropdown (account menu, currency menu, ...)
   needs its own positioning context so .dropdown-menu (position: absolute)
   anchors right below its own trigger instead of the nearest positioned
   ancestor further up the page (e.g. the fixed navbar). */
.nav-dropdown { position: relative; }
.user-dropdown { cursor: pointer; }
.user-info {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 50px;
  transition: var(--transition);
}
.user-info:hover { border-color: var(--accent); background: var(--accent-soft); }
.user-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px solid var(--accent); object-fit: cover;
  display: block;
}
.user-name { font-size: 0.825rem; font-weight: 600; color: var(--text); }
.dropdown-arrow { color: var(--text-muted); transition: transform 0.2s; }
.user-dropdown:hover .dropdown-arrow { transform: rotate(180deg); }

.dropdown-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 400px; padding: 6px;
  display: none; z-index: 9999;
  animation: dropIn 0.15s ease;
}
.dropdown-menu.show { display: block; }

/* The navbar's icon cluster (chat/notif/account/currency) sits at the
   opposite physical edge of the screen in RTL (flex order flips with
   direction: rtl), but `right: 0` above is a physical offset that doesn't
   follow that flip - left unset, the panel keeps anchoring off the
   already-near-the-left trigger and runs off the left edge of the screen.
   Anchor from the left instead so it opens back into the viewport. */
body.rtl .dropdown-menu { right: auto; left: 0; }

@keyframes dropIn {
  from { opacity:0; transform: translateY(-6px) scale(0.97); }
  to   { opacity:1; transform:none; }
}

.dropdown-menu a,
.dropdown-menu button.currency-option {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; color: var(--text-2);
  font-size: 0.875rem; font-weight: 500;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.dropdown-menu button.currency-option {
  width: 100%; border: none; background: transparent; text-align: inherit;
  font-family: inherit; cursor: pointer;
}
.dropdown-menu a:hover,
.dropdown-menu button.currency-option:hover { background: var(--accent-soft); color: var(--accent); }
.dropdown-menu .logout-btn { color: var(--danger); margin-top: 4px; }
.dropdown-menu .logout-btn:hover { background: rgba(239,68,68,0.08); color: var(--danger); }
.dropdown-divider { height: 1px; background: var(--border); margin: 5px 6px; }

/* Verification notice — lives inside the account dropdown as a highlighted
   item (plus a small dot on the avatar, see .verify-dot above) instead of a
   separate sentence-length pill competing for space in the navbar row. */
.dropdown-item-verify {
  display: flex; align-items: center; gap: 8px;
  width: 100%; text-align: inherit;
  padding: 8px 12px; margin-bottom: 4px;
  border: none; border-radius: var(--radius-sm);
  background: rgba(245,158,11,0.1); color: #92400e;
  font-size: 0.875rem; font-weight: 700;
  font-family: inherit; cursor: pointer;
  position: relative;
  transition: var(--transition);
}
.dropdown-item-verify:hover { background: rgba(245,158,11,0.18); }
.dropdown-item-verify:disabled { cursor: default; opacity: 0.8; }
.dropdown-item-verify .verify-item-icon { font-size: 0.9rem; }
.dropdown-item-verify.loading { color: transparent; }
.dropdown-item-verify.loading::after {
  content: '';
  position: absolute; inset: 0; margin: auto;
  width: 14px; height: 14px;
  border: 2px solid rgba(146,64,14,0.35);
  border-top-color: #92400e;
  border-radius: 50%;
  animation: btnSpin 0.7s linear infinite;
}
@keyframes btnSpin { to { transform: rotate(360deg); } }

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.hero {
  min-height: 50vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: calc(var(--navbar-h) + 2rem) 0 2rem;
  background: linear-gradient(160deg, #f0f4ff 0%, #faf8ff 50%, #f0f7ff 100%);
  position: relative; overflow: hidden;
}

/* Subtle decorative orbs */
.hero::before {
  content: '';
  position: absolute; width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79,70,229,0.12) 0%, transparent 70%);
  top: -150px; left: -100px; pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute; width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.08) 0%, transparent 70%);
  bottom: -100px; right: -80px; pointer-events: none;
}

.hero-inner {
  position: relative; z-index: 1;
  max-width: 800px; margin: 0 auto;
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
  width: 100%;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: white;
  border: 1px solid var(--border-2);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 0.8rem; font-weight: 600;
  color: var(--accent);
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}
.hero-badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--success);
  animation: blink-dot 2.5s ease infinite;
}
@keyframes blink-dot { 0%,100%{opacity:1;} 50%{opacity:0.4;} }

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.hero-accent {
  background: linear-gradient(135deg, var(--accent) 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== HERO ROLE PICKER (glass) ===== */
.hero-role-picker {
  display: flex; flex-direction: column; align-items: center;
  gap: 16px;
  margin: 0.5rem 0 1.75rem;
}

.hero-role-picker-label {
  font-size: 0.95rem; font-weight: 700;
  color: var(--text-2);
  letter-spacing: -0.01em;
}
.hero-role-picker-label::before,
.hero-role-picker-label::after {
  content: '✦';
  color: var(--accent-2);
  font-size: 0.7em;
  margin: 0 8px;
  opacity: 0.6;
  vertical-align: middle;
}

.hero-role-chips {
  --chip-color: var(--accent);
  --chip-color-2: #7c3aed;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  gap: 10px; flex-wrap: wrap;
  padding: 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,0.55), rgba(255,255,255,0.32));
  border: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  box-shadow:
    0 20px 50px -12px rgba(79, 70, 229, 0.25),
    0 2px 8px rgba(15, 22, 40, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  animation: hero-glass-glow 4s ease-in-out infinite;
}

@keyframes hero-glass-glow {
  0%, 100% { box-shadow: 0 20px 50px -12px rgba(79,70,229,0.25), 0 2px 8px rgba(15,22,40,0.06), inset 0 1px 0 rgba(255,255,255,0.8); }
  50% { box-shadow: 0 20px 56px -10px rgba(124,58,237,0.34), 0 2px 8px rgba(15,22,40,0.06), inset 0 1px 0 rgba(255,255,255,0.8); }
}

.hero-role-chip {
  position: relative;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 0.75rem 1.1rem 0.75rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.9);
  color: var(--text-2);
  font-weight: 700; font-size: 0.86rem;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 1px 2px rgba(15, 22, 40, 0.04);
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), background 0.35s ease, color 0.3s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

/* Diagonal light sweep on hover - the "glass catching light" touch */
.hero-role-chip::before {
  content: '';
  position: absolute; inset: 0;
  z-index: 1;
  background: linear-gradient(115deg, transparent 20%, rgba(255,255,255,0.55) 45%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s ease;
}
.hero-role-chip:hover::before { transform: translateX(120%); }

.hero-role-chip-icon {
  position: relative; z-index: 2;
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--chip-color), var(--chip-color-2));
  color: white;
  box-shadow: 0 3px 8px rgba(15, 22, 40, 0.18);
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1);
}
.hero-role-chip-icon svg { width: 15px; height: 15px; }

.hero-role-chip > span:not(.hero-role-chip-icon) { position: relative; z-index: 2; }

.hero-role-chip-arrow {
  display: inline-block;
  opacity: 0;
  max-width: 0;
  transform: translateX(-6px);
  transition: all 0.35s cubic-bezier(.2,.8,.2,1);
}
:root[dir="rtl"] .hero-role-chip-arrow, [dir="rtl"] .hero-role-chip-arrow { transform: translateX(6px) scaleX(-1); }

.hero-role-chip--client { --chip-color: #4f46e5; --chip-color-2: #6366f1; }
.hero-role-chip--consultant { --chip-color: #7c3aed; --chip-color-2: #a855f7; }
.hero-role-chip--company { --chip-color: #0f1628; --chip-color-2: #374161; }

.hero-role-chip:hover {
  background: linear-gradient(135deg, var(--chip-color) 0%, var(--chip-color-2) 100%);
  color: white;
  border-color: transparent;
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 14px 28px -6px rgba(79, 70, 229, 0.4);
  box-shadow: 0 14px 28px -6px color-mix(in srgb, var(--chip-color) 45%, transparent);
}
.hero-role-chip:hover .hero-role-chip-icon {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1) rotate(-6deg);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15), inset 0 0 0 1px rgba(255,255,255,0.4);
}
.hero-role-chip:hover .hero-role-chip-arrow {
  opacity: 1; max-width: 20px;
  transform: translateX(0) scaleX(1);
}

@media (max-width: 560px) {
  .hero-role-chips { flex-direction: column; align-items: stretch; width: 100%; border-radius: var(--radius-xl); }
  .hero-role-chip { justify-content: center; }
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 7.2px 1.5rem;
  line-height: 1.5;
}

/* ===== HERO ROLES EXPLAINER - three short, clearly separated lines instead
   of one dense run-on sentence ===== */
.hero-roles-explainer {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: center;
  gap: 0.4rem 1.4rem;
  max-width: 640px;
  margin: 0.6rem 1.5rem 1.4rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border-2);
}

.hero-role-explain {
  display: flex; align-items: baseline; gap: 6px;
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.hero-role-explain strong {
  color: var(--accent);
  font-weight: 800;
  white-space: nowrap;
}
.hero-role-explain:not(:last-child)::after {
  content: '•';
  margin-inline-start: 1.2rem;
  color: var(--border-2);
}

@media (max-width: 640px) {
  .hero-role-explain:not(:last-child)::after { display: none; }
  .hero-roles-explainer { flex-direction: column; gap: 0.5rem; }
}

/* ===== HERO CTA BUTTONS - animated gradient border/fill, deliberately a
   different visual language from the glass role-picker chips above ===== */
.hero-buttons {
  display: flex; align-items: center;
  justify-content: center; gap: 14px;
  flex-wrap: wrap; margin-bottom: 0.5rem;
}

@keyframes hero-btn-aurora {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.btn-hero-primary {
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  color: white;
  padding: 1rem 1.5rem 1rem 1.75rem;
  border-radius: 16px;
  font-weight: 700; font-size: 0.95rem;
  background: linear-gradient(120deg, var(--accent) 0%, #7c3aed 50%, var(--accent) 100%);
  background-size: 220% 100%;
  animation: hero-btn-aurora 5s ease infinite;
  isolation: isolate;
  overflow: hidden;
  box-shadow: 0 10px 30px -8px rgba(79, 70, 229, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), box-shadow 0.35s ease;
}
.btn-hero-primary::before {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s ease;
}
.btn-hero-primary:hover::before { transform: translateX(120%); }
.btn-hero-primary > span { position: relative; z-index: 2; }
.btn-hero-icon-wrap {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), background 0.35s ease;
}
.btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px -6px rgba(79, 70, 229, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn-hero-primary:hover .btn-hero-icon-wrap {
  background: rgba(255, 255, 255, 0.32);
  transform: translateX(4px);
}

.btn-hero-outline {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 1rem 1.6rem;
  border-radius: 16px;
  font-weight: 700; font-size: 0.95rem;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.7);
  isolation: isolate;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(15, 22, 40, 0.05);
  transition: color 0.35s ease, transform 0.35s cubic-bezier(.2,.8,.2,1), box-shadow 0.35s ease;
}
/* Animated gradient border via a masked pseudo-element, so the frame itself
   shifts color instead of a static 1px outline. */
.btn-hero-outline::before {
  content: '';
  position: absolute; inset: 0; z-index: -2;
  border-radius: inherit; padding: 1.5px;
  background: linear-gradient(120deg, var(--accent), #7c3aed, var(--accent));
  background-size: 220% 100%;
  animation: hero-btn-aurora 5s ease infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
.btn-hero-outline::after {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1);
}
:root[dir="rtl"] .btn-hero-outline::after, [dir="rtl"] .btn-hero-outline::after { transform-origin: right; }
.btn-hero-outline:hover {
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 12px 26px -6px rgba(79, 70, 229, 0.35);
}
.btn-hero-outline:hover::after { transform: scaleX(1); }

.hero-trust {
  display: flex; align-items: center;
  justify-content: center; gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.8rem; color: var(--text-muted); font-weight: 500;
}
.hero-trust-link {
  color: inherit;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.hero-trust-link:hover { color: var(--accent); background: var(--accent-soft); }

/* Dashboard preview */
.hero-visual {
  margin-top: 1rem;
  width: 100%;
  max-width: 700px;
}

.hero-preview {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  box-shadow: var(--shadow-xl);
}

.hero-preview-inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.hero-stat-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  text-align: left;
  transition: var(--transition);
}
.hero-stat-card:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.hero-stat-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; margin-bottom: 6px; }
.hero-stat-value { font-size: 1.5rem; font-weight: 800; color: var(--text); letter-spacing: -0.03em; }
.hero-stat-change { font-size: 0.725rem; color: var(--success); font-weight: 600; margin-top: 4px; }

/* ══════════════════════════════════════════
   STATS STRIP
══════════════════════════════════════════ */
.stats-strip {
  padding: 2.5rem 0;
  background: white;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-strip-grid {
  display: flex; align-items: center;
  justify-content: center; flex-wrap: wrap;
}

.stats-strip-item {
  display: flex; flex-direction: column;
  align-items: center; padding: 0 3.5rem; gap: 4px;
}

.stats-strip-num {
  font-size: 2.25rem; font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--accent);
  line-height: 1;
}

.stats-strip-label {
  font-size: 0.75rem; font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.08em;
}

.stats-strip-divider {
  width: 1px; height: 48px;
  background: var(--border);
}

/* ══════════════════════════════════════════
   SECTIONS
══════════════════════════════════════════ */
section { padding: 6rem 0; }

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 1rem;
}

.section-badge {
  display: inline-block;
  background: var(--accent-soft);
  border: 1px solid rgba(79,70,229,0.2);
  border-radius: 50px;
  padding: 4px 14px;
  font-size: 0.725rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.section-badge-purple { background: rgba(124,58,237,0.08); color: #7c3aed; border-color: rgba(124,58,237,0.2); }
.section-badge-green  { background: rgba(16,185,129,0.08); color: #059669; border-color: rgba(16,185,129,0.2); }
.section-badge-dark   { background: var(--bg-2); color: var(--text-muted); border-color: var(--border-2); }

.section-header h2 {
  font-size: clamp(1.75rem, 3.5vw, 1.5rem);
  font-weight: 800; letter-spacing: -0.04em;
  color: var(--text); margin-bottom: 1rem; line-height: 1.2;
}
.section-header p { color: var(--text-muted); font-size: 1rem; line-height: 1.75; }

/* ══════════════════════════════════════════
   FEATURES
══════════════════════════════════════════ */
.features { background: var(--bg); }

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

.feature-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
}
.feature-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.feature-icon-wrap {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--icon-color, var(--accent));
  background: color-mix(in srgb, var(--icon-color, var(--accent)) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--icon-color, var(--accent)) 20%, transparent);
  margin-bottom: 1.25rem;
  transition: var(--transition);
}
.feature-card:hover .feature-icon-wrap { transform: scale(1.08); }

.feature-card h3 {
  font-size: 1rem; font-weight: 700; color: var(--text);
  margin-bottom: 0.625rem; letter-spacing: -0.01em;
}
.feature-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.65; }

/* ══════════════════════════════════════════
   HOW IT WORKS
══════════════════════════════════════════ */
.how-it-works { background: white; }

.steps-grid {
  display: flex; align-items: center;
  justify-content: center; gap: 0;
}

.step-card {
  flex: 1; max-width: 280px; text-align: center;
  padding: 2rem 1.5rem; position: relative;
  transition: var(--transition);
}
.step-card:hover { transform: translateY(-4px); }

.step-number-wrap {
  position: absolute; top: -14px;
  left: 50%; transform: translateX(-50%);
}
.step-num {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: white;
  font-size: 0.8rem; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px var(--accent-glow);
}

.step-icon {
  width: 56px; height: 56px;
  background: var(--accent-soft);
  border: 1px solid rgba(79,70,229,0.15);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); margin: 1rem auto 1.25rem;
  transition: var(--transition);
}
.step-card:hover .step-icon {
  background: var(--accent); color: white;
  box-shadow: 0 8px 20px var(--accent-glow);
}

.step-card h3 { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 0.5rem; }
.step-card p  { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }
.step-arrow   { color: var(--border-2); flex-shrink: 0; }
.step-connector { flex-shrink: 0; width: 60px; height: 1px; background: var(--border); }

/* ══════════════════════════════════════════
   SECURITY SECTION
══════════════════════════════════════════ */
.security-section {
  background: linear-gradient(135deg, #faf8ff 0%, #f0f4ff 50%, #f8f0ff 100%);
  position: relative; overflow: hidden;
}
.security-section .section-header h2 { color: var(--text); }
.security-section .section-header p  { color: var(--text-muted); }

.security-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center; position: relative; z-index: 1;
}

.security-features { display: flex; flex-direction: column; gap: 1.25rem; }

.security-feature-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.security-feature-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.security-feat-header { display: flex; align-items: center; gap: 12px; margin-bottom: 1rem; }
.security-feat-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.security-feat-icon--case   { background: var(--accent-soft); color: var(--accent); border: 1px solid rgba(79,70,229,0.2); }
.security-feat-icon--client { background: rgba(124,58,237,0.08); color: #7c3aed; border: 1px solid rgba(124,58,237,0.2); }
.security-feat-header h3 { font-size: 0.95rem; font-weight: 700; color: var(--text); }
.security-feat-tag {
  display: inline-block;
  background: var(--bg-2); color: var(--text-muted);
  font-size: 0.68rem; font-weight: 600;
  padding: 2px 8px; border-radius: 50px;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.security-feature-card > p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 1rem; }
.security-feat-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.sec-tag {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--accent-soft);
  border: 1px solid rgba(79,70,229,0.15);
  color: var(--accent);
  padding: 3px 10px; border-radius: 50px;
  font-size: 0.72rem; font-weight: 600;
}

/* Security visual */
.security-visual-wrap { display: flex; align-items: center; justify-content: center; }
.security-demo { width: 100%; max-width: 360px; position: relative; }

.sec-demo-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.sec-demo-card-header {
  display: flex; align-items: center; gap: 10px;
  padding: 1rem 1.125rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.sec-demo-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--accent-soft); display: flex; align-items: center;
  justify-content: center; color: var(--accent); flex-shrink: 0;
}
.sec-demo-info { flex: 1; }
.sec-demo-title { font-size: 0.85rem; font-weight: 700; color: var(--text); }
.sec-demo-status { font-size: 0.7rem; color: var(--text-muted); margin-top: 2px; }
.sec-demo-lock { color: var(--text-muted); }

.sec-demo-blurred { padding: 1rem 1.125rem; border-bottom: 1px solid var(--border); }
.sec-blur-row { height: 9px; border-radius: 4px; background: var(--bg-2); margin-bottom: 8px; }
.sec-blur-dots { display: flex; gap: 6px; margin-top: 4px; }
.sec-blur-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--border-2); }

.sec-demo-unlock { padding: 1.25rem; text-align: center; }
.sec-unlock-icon { font-size: 1.75rem; margin-bottom: 8px; }
.sec-unlock-label { font-size: 0.775rem; color: var(--text-muted); font-weight: 500; margin-bottom: 10px; }
.sec-unlock-label--sm { font-size: 0.7rem; margin-top: 10px; }

.sec-pin-inputs { display: flex; gap: 6px; justify-content: center; margin-bottom: 8px; }
.sec-pin-dot { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--border-2); }
.sec-pin-dot.filled { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 8px var(--accent-glow); }

.sec-divider-or {
  display: flex; align-items: center; gap: 8px;
  color: var(--text-muted); font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em; margin: 8px 0;
}
.sec-divider-or::before, .sec-divider-or::after { content:''; flex:1; height:1px; background:var(--border); }

.sec-email-code { display: flex; gap: 4px; justify-content: center; margin-top: 8px; }
.sec-code-box {
  width: 30px; height: 34px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; color: var(--text-muted);
  background: var(--bg);
}

.sec-float-badge {
  position: absolute;
  display: flex; align-items: center; gap: 5px;
  background: var(--accent); color: white;
  padding: 5px 12px; border-radius: 50px;
  font-size: 0.7rem; font-weight: 700;
  box-shadow: 0 4px 16px var(--accent-glow);
  white-space: nowrap;
}
.sec-float-badge--tl { top: -16px; left: -24px; animation: floatBadge 3s ease-in-out infinite; }
.sec-float-badge--br { bottom: -16px; right: -24px; animation: floatBadge 3s ease-in-out infinite 1.5s; background: #7c3aed; box-shadow: 0 4px 16px rgba(124,58,237,0.3); }
@keyframes floatBadge { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-5px);} }

/* ══════════════════════════════════════════
   WHY SECTION
══════════════════════════════════════════ */
.why-section { background: white; }

.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }

.why-content h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 800;
  letter-spacing: -0.04em; color: var(--text);
  margin-bottom: 1rem; text-align: left;
}
.why-content > p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.75; margin-bottom: 2rem; }

.why-list { list-style: none; display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2.5rem; }
.why-list li { display: flex; gap: 12px; align-items: flex-start; }
.why-icon {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 800;
  flex-shrink: 0; margin-top: 2px;
}
.why-list li div { display: flex; flex-direction: column; gap: 2px; }
.why-list li strong { font-size: 0.9rem; font-weight: 700; color: var(--text); }
.why-list li span   { font-size: 0.825rem; color: var(--text-muted); }

.btn-why-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: white;
  padding: 0.875rem 1.875rem; border-radius: 50px;
  font-weight: 700; font-size: 0.9rem;
  box-shadow: 0 4px 20px var(--accent-glow);
  transition: var(--transition);
}
.btn-why-cta:hover { background: var(--accent-dark); color: white; transform: translateY(-2px); box-shadow: 0 8px 30px var(--accent-glow); }

/* Mini cards */
.why-visual { position: relative; }
.why-card-stack { display: flex; flex-direction: column; gap: 12px; }
.mini-card {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex; align-items: center; gap: 12px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.mini-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); }
.mini-card-1 { animation: floatCard 5s ease-in-out infinite; }
.mini-card-2 { animation: floatCard 5s ease-in-out infinite 1s; }
.mini-card-3 { animation: floatCard 5s ease-in-out infinite 2s; }
@keyframes floatCard { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-6px);} }
.mini-card-icon { font-size: 1.4rem; flex-shrink: 0; }
.mini-card > div:nth-child(2) { flex: 1; }
.mini-card-title { font-size: 0.85rem; font-weight: 700; color: var(--text); }
.mini-card-sub   { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }
.mini-badge { display: inline-block; padding: 2px 9px; border-radius: 50px; font-size: 0.7rem; font-weight: 700; }
.mini-badge-blue   { background: var(--accent-soft); color: var(--accent); }
.mini-badge-green  { background: rgba(16,185,129,0.1); color: #059669; }
.mini-badge-orange { background: rgba(245,158,11,0.1); color: #d97706; }

/* ══════════════════════════════════════════
   TRIAL SECTION
══════════════════════════════════════════ */
.trial-section { background: var(--bg); }

.trial-card {
  background: linear-gradient(135deg, var(--accent) 0%, #7c3aed 100%);
  border-radius: var(--radius-xl);
  padding: 4rem 3rem; text-align: center;
  position: relative; overflow: hidden;
  box-shadow: 0 20px 60px var(--accent-glow);
}

.trial-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50px; padding: 5px 16px;
  font-size: 0.78rem; font-weight: 700;
  color: white; margin-bottom: 1.5rem;
}

.trial-card h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 800;
  letter-spacing: -0.04em; color: white; margin-bottom: 1rem;
}

.trial-card > p { color: rgba(255,255,255,0.85); font-size: 1rem; margin-bottom: 2rem; }

.trial-features {
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: center; margin-bottom: 2.5rem;
}
.trial-feat {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50px; padding: 5px 14px;
  font-size: 0.8rem; font-weight: 600; color: white;
}

.trial-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 1.5rem; }

.btn-trial-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: white; color: var(--accent);
  padding: 0.925rem 2rem; border-radius: 50px;
  font-weight: 800; font-size: 0.95rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  transition: var(--transition);
}
.btn-trial-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,0.25); color: var(--accent-dark); }

.btn-trial-outline {
  display: inline-flex; align-items: center; gap: 8px;
  border: 2px solid rgba(255,255,255,0.5); color: white;
  padding: 0.925rem 1.75rem; border-radius: 50px;
  font-weight: 700; font-size: 0.9rem;
  transition: var(--transition);
}
.btn-trial-outline:hover { background: rgba(255,255,255,0.15); border-color: white; color: white; }

.trial-note { font-size: 0.78rem; color: rgba(255,255,255,0.65); }
.trial-note strong { color: rgba(255,255,255,0.9); }

/* ══════════════════════════════════════════
   FINAL CTA
══════════════════════════════════════════ */
.cta-section {
  background: var(--bg);
  text-align: center;
}

.cta-section h2 {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 800;
  letter-spacing: -0.04em; color: var(--text); margin-bottom: 1rem;
}

.cta-section > .cta-inner > p {
  font-size: 1.05rem; color: var(--text-muted);
  max-width: 500px; margin: 0 auto 2.5rem; line-height: 1.7;
}

.cta-icon { font-size: 3rem; margin-bottom: 1.5rem; display: block; }
.cta-bg-blob { display: none; }
.cta-inner { position: relative; z-index: 1; }

.cta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 1.5rem; }

.btn-cta-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: white;
  padding: 0.925rem 2.25rem; border-radius: 50px;
  font-weight: 800; font-size: 0.95rem;
  box-shadow: 0 4px 20px var(--accent-glow);
  transition: var(--transition);
}
.btn-cta-primary:hover { background: var(--accent-dark); color: white; transform: translateY(-2px); box-shadow: 0 8px 30px var(--accent-glow); }

.btn-cta-outline {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid var(--border-2); color: var(--text-2);
  padding: 0.925rem 2rem; border-radius: 50px;
  font-weight: 700; font-size: 0.95rem; background: white;
  transition: var(--transition); box-shadow: var(--shadow-sm);
}
.btn-cta-outline:hover { border-color: var(--accent); color: var(--accent); }

.cta-note { font-size: 0.8rem; color: var(--text-muted); }

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.footer {
  background: var(--text);
  color: white;
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem; margin-bottom: 3rem;
}

.footer-brand {
  display: flex; align-items: center; gap: 8px;
  font-size: 1.15rem; font-weight: 800;
  color: white; letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.footer-brand svg { color: var(--accent-2); }

.footer-section > p {
  font-size: 0.875rem; color: rgba(255,255,255,0.5);
  line-height: 1.65; margin-bottom: 1.5rem;
}

.footer-social { display: flex; gap: 8px; }
.footer-social a {
  width: 34px; height: 34px; border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5); font-size: 0.875rem;
  transition: var(--transition);
}
.footer-social a:hover { border-color: var(--accent-2); color: var(--accent-2); background: rgba(99,102,241,0.1); }

.footer-section h3 {
  font-size: 0.8rem; font-weight: 700; color: white;
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1.25rem;
}

.footer-section ul li { margin-bottom: 0.625rem; }
.footer-section ul li a {
  font-size: 0.875rem; color: rgba(255,255,255,0.5);
  transition: var(--transition);
}
.footer-section ul li a:hover { color: white; padding-inline-start: 4px; }
.footer-section ul li strong { color: rgba(255,255,255,0.7); font-size: 0.875rem; }
.footer-section ul li .contact-item { color: rgba(255,255,255,0.5); font-size: 0.875rem; }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
  padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.825rem; color: rgba(255,255,255,0.4);
}
.footer-links a { color: rgba(255,255,255,0.4); margin-left: 1.5rem; transition: var(--transition); }
.footer-links a:hover { color: white; }

/* ══════════════════════════════════════════
   AUTH PAGES
══════════════════════════════════════════ */
.auth-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 6rem 1.5rem 2rem;
  background: linear-gradient(160deg, #f0f4ff 0%, #faf8ff 60%, #f0f7ff 100%);
}

.auth-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  max-width: 560px; width: 100%;
  box-shadow: var(--shadow-xl);
}

.auth-logo { display: flex; justify-content: center; margin-bottom: 1.25rem; }

.auth-header { text-align: center; margin-bottom: 2rem; }
.auth-header h1 {
  font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--accent) 0%, #7c3aed 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.auth-header p { color: var(--text-muted); font-size: 0.875rem; margin-top: 4px; }

/* Account type */
.account-type-selection { margin-bottom: 1.25rem; }
.account-type-selection > label {
  display: block; margin-bottom: 0.625rem;
  font-size: 0.775rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted);
}
.type-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.type-option {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  cursor: pointer; transition: var(--transition);
}
.type-option:hover { border-color: var(--accent); background: var(--accent-soft); }
.type-option input[type="radio"] { display: none; }
.type-option span { font-size: 0.875rem; font-weight: 600; color: var(--text-muted); transition: var(--transition); }
.type-option svg { color: var(--text-muted); transition: var(--transition); }
.type-option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.type-option:has(input:checked) span, .type-option:has(input:checked) svg { color: var(--accent); }

/* Role selection */
.role-selection { margin-bottom: 1.25rem; }
.role-selection > label {
  display: block; margin-bottom: 0.625rem;
  font-size: 0.775rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted);
}
.role-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.role-option {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  cursor: pointer; transition: var(--transition);
}
.role-option:hover { border-color: var(--accent); background: var(--accent-soft); }
.role-option input[type="radio"] { display: none; }
.role-option span { font-size: 0.875rem; font-weight: 600; color: var(--text-muted); transition: var(--transition); }
.role-option svg { color: var(--text-muted); transition: var(--transition); }
.role-option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.role-option:has(input:checked) span, .role-option:has(input:checked) svg { color: var(--accent); }

/* Step indicators */
.step-indicators { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 1.5rem; }
.step { display: flex; align-items: center; gap: 6px; opacity: 0.35; transition: var(--transition); }
.step.active { opacity: 1; }
.step-number {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--bg-2); display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 800; color: var(--text-muted);
  transition: var(--transition);
}
.step.active .step-number { background: var(--accent); color: white; box-shadow: 0 4px 12px var(--accent-glow); }
.step-label { font-size: 0.8rem; font-weight: 700; color: var(--text-muted); }
.step-connector { width: 30px; height: 1px; background: var(--border); }

/* Forms */
.form-step { animation: fadeInUp 0.3s ease; }
@keyframes fadeInUp { from { opacity:0; transform: translateY(10px); } to { opacity:1; transform:none; } }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 6px; font-size: 0.825rem; font-weight: 600; color: var(--text-2); }

.form-group input, .form-group select {
  width: 100%; padding: 0.3rem 1rem;
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text);
  font-size: 0.875rem; font-family: inherit;
  transition: var(--transition);
}
.form-group input:focus, .form-group select:focus {
  outline: none; border-color: var(--accent);
  background: white; box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}
.form-group input::placeholder { color: var(--text-muted); }
.form-group input.error, .form-group select.error, .form-group textarea.error { border-color: var(--danger) !important; box-shadow: 0 0 0 3px rgba(239,68,68,0.1) !important; animation: shake 0.4s ease; }
@keyframes shake { 0%,100%{transform:translateX(0)} 20%{transform:translateX(-6px)} 40%{transform:translateX(6px)} 60%{transform:translateX(-4px)} 80%{transform:translateX(4px)} }

.form-select {
  width: 100%; padding: 0.8rem 2.5rem 0.8rem 1rem;
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text);
  font-size: 0.875rem; font-family: inherit; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 14 14'%3E%3Cpath fill='%234f46e5' d='M7 9L2 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
  transition: var(--transition);
}
.form-select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79,70,229,0.1); }
.form-select:disabled { opacity: 0.4; cursor: not-allowed; }

.password-wrapper { position: relative; display: flex; align-items: center; }
.password-wrapper input { padding-inline-end: 3rem; }
.toggle-password {
  position: absolute; inset-inline-end: 0.875rem;
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); padding: 4px;
  display: flex; align-items: center; transition: var(--transition);
}
.toggle-password:hover { color: var(--accent); }

.form-options {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.25rem; font-size: 0.825rem; flex-wrap: wrap; gap: 6px;
}
.form-options label { display: flex; align-items: center; gap: 6px; color: var(--text-2); cursor: pointer; }
.form-options input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--accent); margin: 0; }
.form-options a { color: var(--accent); font-weight: 600; }
.form-options a:hover { color: var(--accent-dark); }

.btn-full {
  width: 100%; background: var(--accent); color: white;
  padding: 0.875rem; border: none;
  border-radius: var(--radius-sm);
  font-size: 0.95rem; font-weight: 700;
  cursor: pointer; font-family: inherit;
  transition: var(--transition);
  box-shadow: 0 4px 16px var(--accent-glow);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-full:hover { background: var(--accent-dark); box-shadow: 0 8px 24px var(--accent-glow); transform: translateY(-1px); }
.btn-full:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }

.btn-secondary {
  background: var(--bg) !important; border: 1.5px solid var(--border) !important;
  color: var(--text-2) !important; box-shadow: none !important;
}
.btn-secondary:hover { border-color: var(--accent) !important; color: var(--accent) !important; box-shadow: none !important; }

.auth-footer { text-align: center; margin-top: 1.5rem; font-size: 0.85rem; color: var(--text-muted); }
.auth-footer a { color: var(--accent); font-weight: 600; }
.auth-footer a:hover { color: var(--accent-dark); text-decoration: underline; }
.back-link { display: inline-block; margin-top: 10px; font-size: 0.8rem !important; color: var(--text-muted) !important; font-weight: 500 !important; }
.back-link:hover { color: var(--accent) !important; text-decoration: none !important; }

/* ══════════════════════════════════════════
   MODALS & VERIFICATION
══════════════════════════════════════════ */
.modal {
  position: fixed; inset: 0;
  background: rgba(15,22,40,0.5);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; z-index: 2000;
}
.modal-content {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem; max-width: 420px; width: 90%;
  box-shadow: var(--shadow-xl);
  animation: modalIn 0.2s ease;
}
@keyframes modalIn { from { opacity:0; transform: scale(0.95) translateY(-10px); } to { opacity:1; transform:none; } }

.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.modal-header h3 { font-size: 1.1rem; font-weight: 700; color: var(--text); }
.close-modal {
  background: var(--bg); border: none; width: 30px; height: 30px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; cursor: pointer; color: var(--text-muted); transition: var(--transition);
}
.close-modal:hover { background: var(--bg-2); color: var(--text); }

.modal-body p { text-align: center; color: var(--text-muted); font-size: 0.875rem; margin-bottom: 1.5rem; }

/* Code digits always read left-to-right, even in the Arabic (RTL) UI */
.code-inputs { display: flex; gap: 6px; justify-content: center; margin-bottom: 1.5rem; direction: ltr; }
.code-input {
  width: 46px; height: 52px; text-align: center;
  font-size: 1.3rem; font-weight: 700;
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text);
  font-family: inherit; transition: var(--transition);
}
.code-input:focus { outline: none; border-color: var(--accent); background: white; box-shadow: 0 0 0 3px rgba(79,70,229,0.1); }

/* Primary action button inside modals (.btn-primary has no global website
   style - without this the Verify button renders as a bare default button) */
.modal-body .btn { width: 100%; padding: 0.75rem; border-radius: 50px; }
.modal-body .btn-primary {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 0.9rem; font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px var(--accent-glow);
  transition: var(--transition);
}
.modal-body .btn-primary:hover:not(:disabled) {
  background: var(--accent-dark);
  box-shadow: 0 4px 16px var(--accent-glow);
  transform: translateY(-1px);
}
.modal-body .btn-primary:disabled { opacity: 0.7; cursor: default; }

.resend-link { text-align: center; margin-top: 1.25rem; font-size: 0.825rem; color: var(--text-muted); }
.resend-link-btn {
  color: var(--accent); font-weight: 600; margin-inline-start: 4px;
  border: none; background: transparent; padding: 0; font-size: inherit; font-family: inherit; cursor: pointer;
}
.resend-link-btn:hover { text-decoration: underline; }
.resend-link-btn:disabled { color: var(--text-muted); cursor: not-allowed; text-decoration: none; }

/* ══════════════════════════════════════════
   NOTIFICATIONS
══════════════════════════════════════════ */
.notification {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(15,22,40,0.18), 0 4px 14px rgba(15,22,40,0.08);
  z-index: 99999;
  width: 370px; max-width: calc(100vw - 2rem);
  overflow: hidden;
  /* transform/opacity only - composited, unlike the old `right` position
     animation which forced a layout recalc on every frame */
  transform: translateX(calc(100% + 2.5rem));
  opacity: 0;
  pointer-events: none;
  transition: transform 0.45s cubic-bezier(0.16,1,0.3,1), opacity 0.3s ease;
}
.notification.show { transform: translateX(0); opacity: 1; pointer-events: auto; }
.notification.error   { --notif-color: var(--danger);  --notif-bg: rgba(239,68,68,0.1); }
.notification.success { --notif-color: var(--success); --notif-bg: rgba(16,185,129,0.1); }
.notification.warning { --notif-color: var(--warning); --notif-bg: rgba(245,158,11,0.1); }
.notification.info    { --notif-color: #4f46e5;         --notif-bg: rgba(79,70,229,0.1); }

.notification-inner { display: flex; align-items: flex-start; gap: 12px; padding: 1.1rem 1.15rem; }
.notification-icon-circle {
  width: 38px; height: 38px; border-radius: 12px;
  background: var(--notif-bg, rgba(79,70,229,0.1));
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.notification-icon-circle svg { width: 19px; height: 19px; color: var(--notif-color, var(--accent)); display: block; }
.notification-body { flex: 1; min-width: 0; padding-top: 1px; }
.notification-title { font-size: 0.875rem; font-weight: 700; color: var(--text); display: block; letter-spacing: -0.01em; }
.notification-message { font-size: 0.8rem; color: var(--text-muted); display: block; margin-top: 3px; line-height: 1.45; }
.notification-close {
  background: none; border: none; cursor: pointer; color: var(--text-muted);
  width: 26px; height: 26px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0; margin-top: -2px;
  transition: var(--transition);
}
.notification-close:hover { color: var(--text); background: rgba(15,22,40,0.06); }
.notification-progress-bar { height: 3px; background: var(--notif-color, var(--accent)); border-radius: 0 0 18px 18px; transform-origin: left; }

body.rtl .notification { right: auto; left: 1.5rem; transform: translateX(calc(-100% - 2.5rem)); }
body.rtl .notification.show { transform: translateX(0); }

/* ══════════════════════════════════════════
   LOADING
══════════════════════════════════════════ */
.loading {
  display: inline-block; width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: white; border-radius: 50%;
  animation: spin 0.7s linear infinite; vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ══════════════════════════════════════════
   PRICING
══════════════════════════════════════════ */
.hero-about { min-height: auto; padding: 9rem 0 5rem; background: linear-gradient(160deg, #f0f4ff 0%, #faf8ff 100%); }
.pricing-section { background: var(--bg); padding: 4rem 0 6rem; }
.pricing-hero-badge {
  display: inline-block; background: var(--accent-soft);
  border: 1px solid rgba(79,70,229,0.2); border-radius: 50px;
  padding: 5px 14px; font-size: 0.78rem; font-weight: 700;
  color: var(--accent); margin-bottom: 1.5rem;
}

.billing-toggle-wrap { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 3rem; }
.billing-label { font-size: 0.875rem; font-weight: 600; color: var(--text-muted); display: flex; align-items: center; gap: 8px; }
.billing-label--active { color: var(--text); }
.billing-save-badge { background: rgba(16,185,129,0.1); color: var(--success); border: 1px solid rgba(16,185,129,0.2); border-radius: 50px; padding: 2px 8px; font-size: 0.7rem; font-weight: 700; }
.billing-toggle { width: 42px; height: 22px; background: var(--border-2); border-radius: 50px; cursor: pointer; position: relative; transition: background 0.25s ease; }
.billing-toggle--annual { background: var(--accent); }
.billing-toggle-thumb { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: white; box-shadow: 0 1px 4px rgba(0,0,0,0.2); transition: transform 0.25s ease; }
.billing-toggle--annual .billing-toggle-thumb { transform: translateX(20px); }

.plans-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; align-items: start; margin-bottom: 4rem; }

.plan-card { background: white; border: 1.5px solid var(--border); border-radius: var(--radius-xl); padding: 2rem; position: relative; transition: var(--transition); box-shadow: var(--shadow-sm); }
.plan-card:hover { border-color: var(--accent); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.plan-featured { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79,70,229,0.1), var(--shadow-lg); transform: translateY(-8px); }
.plan-featured:hover { transform: translateY(-12px); }
.plan-popular-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--accent); color: white; padding: 3px 16px; border-radius: 50px; font-size: 0.72rem; font-weight: 800; box-shadow: 0 4px 12px var(--accent-glow); white-space: nowrap; }

.plan-icon { width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.plan-icon--starter   { background: var(--bg-2); color: var(--text-muted); }
.plan-icon--pro       { background: var(--accent-soft); color: var(--accent); }
.plan-icon--enterprise{ background: rgba(245,158,11,0.1); color: var(--warning); }

.plan-name { font-size: 1.25rem; font-weight: 800; color: var(--text); letter-spacing: -0.02em; margin-bottom: 4px; }
.plan-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 1.5rem; }
.plan-price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 4px; }
.plan-currency { font-size: 0.95rem; font-weight: 700; color: var(--text-muted); margin-top: 4px; }
.plan-amount { font-size: 2.75rem; font-weight: 800; color: var(--text); letter-spacing: -0.05em; line-height: 1; }
.plan-price--custom { font-size: 2rem; font-weight: 800; color: var(--text); letter-spacing: -0.03em; }
.plan-period { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 1.5rem; }

.plan-btn { width: 100%; padding: 0.875rem; border-radius: 10px; font-size: 0.9rem; font-weight: 700; text-align: center; display: block; margin-bottom: 6px; transition: var(--transition); border: 1.5px solid transparent; }
.plan-btn--starter   { background: var(--bg-2); color: var(--text-2); border-color: var(--border); }
.plan-btn--starter:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.plan-btn--pro       { background: var(--accent); color: white; box-shadow: 0 4px 16px var(--accent-glow); }
.plan-btn--pro:hover { background: var(--accent-dark); color: white; box-shadow: 0 8px 24px var(--accent-glow); transform: translateY(-1px); }
.plan-btn--enterprise{ background: rgba(245,158,11,0.08); color: #d97706; border-color: rgba(245,158,11,0.25); }
.plan-btn--enterprise:hover { background: rgba(245,158,11,0.12); border-color: var(--warning); }

.plan-trial-note { text-align: center; font-size: 0.75rem; color: var(--accent); font-weight: 600; margin-bottom: 1.5rem; }
.plan-features { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--border); padding-top: 1.25rem; }
.plan-feat { font-size: 0.85rem; display: flex; align-items: flex-start; gap: 8px; }
.plan-feat--yes { color: var(--text-2); }
.plan-feat--yes::before { content:'✓'; color: var(--success); font-weight: 800; flex-shrink: 0; margin-top: 1px; }
.plan-feat--no { color: var(--text-muted); text-decoration: line-through; opacity: 0.5; }
.plan-feat--no::before { content:'✕'; color: var(--text-muted); flex-shrink: 0; margin-top: 1px; }
.plan-feat--highlight { color: var(--accent); font-weight: 700; }
.plan-feat--highlight::before { content:''; display: none; }

.pricing-faq { margin: 4rem 0; }
.pricing-faq h2 { text-align: center; font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; color: var(--text); margin-bottom: 2.5rem; }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.faq-item { background: white; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; transition: var(--transition); box-shadow: var(--shadow-sm); }
.faq-item:hover { border-color: var(--accent); box-shadow: var(--shadow-md); }
.faq-q { font-weight: 700; font-size: 0.9rem; color: var(--text); margin-bottom: 8px; }
.faq-a { font-size: 0.875rem; color: var(--text-muted); line-height: 1.65; }

.pricing-bottom-cta { text-align: center; padding: 3rem 2rem; background: white; border: 1px solid var(--border); border-radius: var(--radius-xl); box-shadow: var(--shadow-sm); }
.pricing-bottom-cta h2 { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.03em; color: var(--text); margin-bottom: 8px; }
.pricing-bottom-cta > p { color: var(--text-muted); margin-bottom: 1.75rem; }
.pricing-cta-btns { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ══════════════════════════════════════════
   SCROLL ANIMATION CLASSES
══════════════════════════════════════════ */
.feature-card, .stat-item, .mv-card, .step-card, .stats-strip-item, .why-list li, .security-feature-card {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.feature-card.animate, .stat-item.animate, .mv-card.animate, .step-card.animate,
.stats-strip-item.animate, .why-list li.animate, .security-feature-card.animate {
  opacity: 1; transform: none;
}

/* ══════════════════════════════════════════
   MISC
══════════════════════════════════════════ */
.btn { display: inline-block; font-family: inherit; cursor: pointer; }
.text-muted { color: var(--text-muted); }
h1,h2,h3,h4,h5,h6 { line-height: 1.2; }

/* ══════════════════════════════════════════
   CHAT PROMO (home)
══════════════════════════════════════════ */
.chat-promo {
  padding: 90px 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}

.chat-promo-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.chat-promo-badge {
  background: var(--accent);
  color: #fff;
}

.chat-promo-text h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  margin: 14px 0 10px;
  line-height: 1.3;
}

.chat-promo-sub {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 22px;
}

.chat-promo-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 26px;
}

.chat-promo-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.93rem;
  color: var(--text-2);
  line-height: 1.6;
}

.chat-promo-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.chat-promo-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff !important;
  font-weight: 700;
  padding: 0.8rem 1.6rem;
  border-radius: 50px;
  transition: var(--transition);
  box-shadow: 0 4px 16px var(--accent-glow);
}

.chat-promo-cta:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

/* Mock phone-style preview */
.chat-promo-visual { display: flex; justify-content: center; }

.chat-promo-mock {
  width: 100%;
  max-width: 340px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  padding: 26px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mock-bubble {
  max-width: 85%;
  padding: 10px 15px;
  border-radius: 17px;
  font-size: 0.87rem;
  line-height: 1.5;
}

.mock-bubble.received {
  background: var(--bg-2);
  color: var(--text);
  align-self: flex-start;
  border-end-start-radius: 5px;
}

.mock-bubble.sent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #fff;
  align-self: flex-end;
  border-end-end-radius: 5px;
}

.mock-bubble.mock-ephemeral {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  border: 1px dashed var(--border-2);
  color: var(--accent);
  font-weight: 700;
}

.mock-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
}

@media (max-width: 900px) {
  .chat-promo { padding: 60px 0; }
  .chat-promo-inner { grid-template-columns: 1fr; gap: 36px; }
  .chat-promo-text h2 { font-size: 1.5rem; }
}

/* ══════════════════════════════════════════
   HERO — DASHBOARD SCREENSHOT
══════════════════════════════════════════ */
.hero-visual { position: relative; max-width: 860px; }

.hero-screen {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.hero-screen-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 16px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.hero-screen-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.hero-screen-url {
  margin: 0 auto;
  background: white;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 18px;
  font-size: 0.7rem; color: var(--text-muted); font-weight: 600;
  direction: ltr;
}
.hero-screen-img { display: block; width: 100%; height: auto; }

.hero-float-card {
  position: absolute;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.1rem;
  box-shadow: var(--shadow-lg);
  text-align: start;
  animation: heroFloat 5s ease-in-out infinite;
}
.hero-float-card--left  { top: 18%; left: -70px; }
.hero-float-card--right { bottom: 12%; right: -70px; animation-delay: 2.5s; }
body.rtl .hero-float-card--left  { left: auto; right: -70px; }
body.rtl .hero-float-card--right { right: auto; left: -70px; }

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

@media (max-width: 1100px) {
  .hero-float-card--left, .hero-float-card--right,
  body.rtl .hero-float-card--left, body.rtl .hero-float-card--right {
    position: static; animation: none;
  }
  .hero-visual { display: flex; flex-direction: column; gap: 1rem; }
  .hero-float-card { display: none; }
}

/* ══════════════════════════════════════════
   DIRECTORY — LAWYERS & FIRMS
══════════════════════════════════════════ */
.directory-section {
  padding: 25px 0;
  background: linear-gradient(180deg, var(--white) 0%, var(--bg) 100%);
}

.dir-controls {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  margin-bottom: 2rem;
}

.dir-tabs {
  display: inline-flex; gap: 4px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px;
}

.dir-tab {
  display: inline-flex; align-items: center; gap: 3px;
  border: none; background: transparent; cursor: pointer;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-family: inherit; font-size: 0.9rem; font-weight: 700;
  color: var(--text-muted);
  transition: var(--transition);
}
.dir-tab:hover { color: var(--text); }
.dir-tab.active {
  background: white; color: var(--accent);
  box-shadow: var(--shadow-sm);
}
.dir-tab-count {
  background: var(--accent-soft); color: var(--accent);
  border-radius: 999px;
  padding: 0 8px;
  font-size: 0.72rem; font-weight: 800;
}
.dir-tab.active .dir-tab-count { background: var(--accent); color: white; }

.dir-search {
  display: flex; align-items: center; gap: 10px;
  flex: 1; min-width: 240px; max-width: 380px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.65rem 1.1rem;
  color: var(--text-muted);
  transition: var(--transition);
}
.dir-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.dir-search input {
  border: none; outline: none; background: transparent;
  width: 100%;
  font-family: inherit; font-size: 0.9rem; color: var(--text);
}
.dir-search input::placeholder { color: var(--text-muted); }

.dir-filters {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
}

.dir-filter-select {
  border: 1px solid var(--border);
  background: white;
  color: var(--text-2);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-family: inherit; font-size: 0.82rem; font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  max-width: 180px;
}

.dir-filter-select:hover { border-color: var(--accent-2); }
.dir-filter-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* The specialization filter lives in the always-visible toolbar (not the
   collapsible panel) since it's the main way people narrow down consultants -
   give it a bit more visual weight than the secondary filters. */
.dir-filter-select--primary {
  max-width: 210px;
  border-color: var(--accent-2);
  color: var(--accent);
  background: var(--accent-soft);
  font-weight: 700;
}
.dir-filter-select--primary:hover { border-color: var(--accent); }

.dir-filter-clear {
  border: none;
  background: transparent;
  color: var(--accent);
  font-family: inherit; font-size: 0.82rem; font-weight: 700;
  cursor: pointer;
  padding: 0.5rem 0.4rem;
  transition: var(--transition);
}
.dir-filter-clear:hover { text-decoration: underline; }

.dir-filters[hidden] { display: none; }

.dir-toolbar {
  display: flex; align-items: center; gap: 0.6rem;
  flex-wrap: wrap;
}

.dir-sort-select {
  border: 1px solid var(--border);
  background: white;
  color: var(--text-2);
  border-radius: 999px;
  padding: 0.6rem 1rem;
  font-family: inherit; font-size: 0.85rem; font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.dir-sort-select:hover { border-color: var(--accent-2); }
.dir-sort-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.dir-filter-toggle {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--border);
  background: white;
  color: var(--text-2);
  border-radius: 999px;
  padding: 0.6rem 1.1rem;
  font-family: inherit; font-size: 0.85rem; font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}
.dir-filter-toggle:hover { border-color: var(--accent-2); color: var(--text); }
.dir-filter-toggle.has-active,
.dir-filter-toggle[aria-expanded="true"] {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.dir-filter-badge {
  display: none;
  align-items: center; justify-content: center;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-size: 0.68rem; font-weight: 800;
}

.dir-grid[hidden] { display: none; }

.dir-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.dir-card {
  position: relative;
  display: flex; flex-direction: column; align-items: stretch;
  text-align: start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.25rem 1.25rem 1.1rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s cubic-bezier(.2,.8,.2,1), box-shadow 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
  isolation: isolate;
}
/* Slim top accent instead of the old chunky color banner the avatar used to
   overlap - reads as a modern SaaS card, not a 2015 profile widget. */
.dir-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0.9;
}
.dir-card:has(.dir-card-avatar--firm)::before {
  background: linear-gradient(90deg, #0f1628, #374161);
}
.dir-card:hover {
  border-color: var(--accent-2);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.dir-card-head {
  position: relative; z-index: 1;
  display: flex; align-items: flex-start;
  gap: 0.75rem;
  width: 100%;
}

.dir-card-avatar {
  position: relative;
  width: 50px; height: 50px;
  border-radius: 50%;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white; font-size: 1rem; font-weight: 800;
  box-shadow: 0 0 0 3px var(--bg-2);
  flex-shrink: 0;
  transition: box-shadow 0.25s ease;
}
.dir-card:hover .dir-card-avatar { box-shadow: 0 0 0 3px var(--accent-soft); }
.dir-card-avatar img { width: 100%; height: 100%; object-fit: cover; }
.dir-card-avatar--firm {
  border-radius: 14px;
  background: linear-gradient(135deg, #0f1628, #374161);
}

.dir-card-heading {
  min-width: 0; flex: 1;
  display: flex; flex-direction: column; gap: 5px;
  padding-top: 2px;
}

.dir-card-body {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; gap: 8px; width: 100%;
  margin-top: 0.85rem;
}

.dir-card-name {
  font-size: 0.94rem; font-weight: 800; color: var(--text);
  display: inline-flex; align-items: center; gap: 4px;
  letter-spacing: -0.01em;
  max-width: 100%;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dir-verified { flex-shrink: 0; }

/* Online / last-active badge (presence.js toggles the two state classes) -
   was completely unstyled before, so it rendered as bare inline text. */
.lx-presence {
  display: inline-flex; align-items: center; gap: 5px;
  align-self: flex-start;
  font-size: 0.66rem; font-weight: 700;
  padding: 2px 8px 2px 7px;
  border-radius: 999px;
  line-height: 1.6;
}
.lx-presence::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.lx-presence-online {
  color: #15803d;
  background: rgba(21,128,61,0.1);
}
.lx-presence-online::before {
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34,197,94,0.18);
  animation: lx-pulse 2s ease-in-out infinite;
}
.lx-presence-away {
  color: var(--text-muted);
  background: var(--bg-2);
}
.lx-presence-away::before { background: var(--border-2); }

@keyframes lx-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(34,197,94,0.18); }
  50% { box-shadow: 0 0 0 5px rgba(34,197,94,0.1); }
}

.dir-card-spec {
  display: inline-flex; align-items: center;
  background: var(--accent-soft); color: var(--accent);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.7rem; font-weight: 700;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  align-self: flex-start;
}
.dir-card-spec--muted { background: var(--bg-2); color: var(--text-muted); }

.dir-card-meta {
  display: flex; align-items: center;
  gap: 14px; flex-wrap: wrap;
  padding-top: 10px;
  width: 100%;
  border-top: 1px solid var(--border);
  font-size: 0.72rem; color: var(--text-muted); font-weight: 600;
}
.dir-meta-item { display: inline-flex; align-items: center; gap: 4px; }
.dir-meta-item svg { flex-shrink: 0; width: 12px; height: 12px; color: var(--accent-2); }

.dir-card-cta {
  position: relative; z-index: 1;
  margin-top: 0.9rem;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%;
  padding: 0.6rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.76rem; font-weight: 700; color: var(--accent);
  background: var(--accent-soft);
  transition: var(--transition);
}
.dir-card:hover .dir-card-cta {
  color: white;
  /* accent-dark (not accent-2) keeps white text >= 4.5:1 contrast across the whole gradient */
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-color: transparent;
}

.dir-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
  font-weight: 600;
  background: white;
  border: 1px dashed var(--border-2);
  border-radius: var(--radius-lg);
}

@media (max-width: 700px) {
  .directory-section { padding: 60px 0; }
  .dir-controls { flex-direction: column; align-items: stretch; }
  .dir-tabs { justify-content: center; }
  .dir-toolbar { flex-direction: column; align-items: stretch; }
  .dir-search { max-width: none; }
  .dir-sort-select, .dir-filter-toggle, .dir-filter-select--primary { width: 100%; max-width: none; justify-content: center; }
  .dir-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.8rem; }
  .dir-card { padding: 1rem 1rem 0.9rem; }
  .dir-card-avatar { width: 46px; height: 46px; }
  .dir-filters { gap: 0.4rem; }
  .dir-filter-select { max-width: none; flex: 1 1 45%; }
}

/* ══════════════════════════════════════════
   DIRECTORY — HOME PREVIEW GROUPS
══════════════════════════════════════════ */
.dir-preview-group { margin-bottom: 2.5rem; }
.dir-preview-group:last-of-type { margin-bottom: 0; }

.dir-preview-head {
  display: flex; align-items: center;
  margin-bottom: 1.1rem;
}
.dir-preview-head h3 {
  font-size: 1.05rem; font-weight: 800; color: var(--text);
  letter-spacing: -0.01em;
}

.dir-see-all { text-align: center; margin-top: 2.5rem; }

/* ══════════════════════════════════════════
   DIRECTORY — STANDALONE PAGE
══════════════════════════════════════════ */
.dir-page-hero {
  padding: 130px 0 50px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--white) 100%);
}
.dir-page-hero h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800; letter-spacing: -0.03em;
  margin: 0.9rem 0 0.75rem;
}
.dir-page-hero p {
  color: var(--text-muted);
  max-width: 560px; margin: 0 auto;
}
.directory-section--page { padding-top: 40px; }

/* ══════════════════════════════════════════
   DIRECTORY — PAGINATION
══════════════════════════════════════════ */
.dir-pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; flex-wrap: wrap;
  margin-top: 2rem;
}

.dir-page-btn {
  min-width: 38px; height: 38px;
  padding: 0 10px;
  border: 1px solid var(--border);
  background: white;
  border-radius: var(--radius-sm);
  font-family: inherit; font-size: 0.85rem; font-weight: 700;
  color: var(--text-2);
  cursor: pointer;
  transition: var(--transition);
}
.dir-page-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.dir-page-btn.active {
  background: var(--accent); border-color: var(--accent); color: white;
}
.dir-page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.dir-page-ellipsis {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 24px; height: 38px;
  color: var(--text-muted);
  font-weight: 700;
}

/* ── Company Dropdown Item ── */
.company-group-label {
  padding: 8px 12px 4px;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-muted);
}

.company-link {
  display: block;
  padding: 4px 6px;
  text-decoration: none;
  transition: var(--transition);
}

.company-item-inner {
  display: flex;
  align-items: center;
  gap: 8px !important;
  padding: 6px 8px !important;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-2);
  transition: var(--transition);
}

.company-link:hover .company-item-inner {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 2px 8px rgba(99,102,241,0.10);
}

.company-logo-sm {
  width: 32px !important;
  height: 32px !important;
  object-fit: cover;
  border-radius: 8px !important;
  flex-shrink: 0;
}

.company-initial {
  width: 32px !important;
  height: 32px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  color: white;
  font-weight: 700;
  font-size: 0.85rem !important;
  border-radius: 8px !important;
  flex-shrink: 0;
}

.company-item-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  min-width: 0;
  flex: 1;
}

.company-item-name {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.company-item-role {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
}

.company-link:hover .company-item-name { color: var(--accent); }

/* mobile styling for company links */
@media (max-width: 768px) {
  .company-link {
    padding: 2px 4px;
  }
  
  .company-item-inner {
    gap: 8px;
    padding: 6px 8px;
  }
  
  .company-logo-sm {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }
  
  .company-item-name {
    font-size: 0.8rem;
  }
  
  .company-item-role {
    font-size: 0.65rem;
  }
}

/* remove generic dropdown-menu a styling from company links */
.dropdown-menu .company-link { padding: 4px 6px; }
.dropdown-menu .company-link:hover { background: transparent; color: inherit; }

/* profile entry reuses the company-link row but with a circular avatar */
.profile-link .company-logo-sm { border-radius: 50% !important; }
