/* ═══════════════════════════════════════════════════════════════
   ArabyBot · Cinematic Login v3 — Ultra-Premium
   ═══════════════════════════════════════════════════════════════ */

@property --abl-rot { syntax: '<angle>'; initial-value: 0deg; inherits: false; }

/* ─── Theme tokens — MATCHES SYSTEM (arabybot-theme.css) ──── */
:root[data-abl-theme="dark"] {
  --abl-bg-0: #18181b;
  --abl-bg-1: #1c1c20;
  --abl-card: rgba(35, 35, 40, .72);
  --abl-card-2: #2c2c33;
  --abl-card-3: rgba(255,255,255,.022);
  --abl-card-solid: #232328;
  --abl-border: rgba(255,255,255,.08);
  --abl-border-s: rgba(255,255,255,.14);
  --abl-text: #fafafa;
  --abl-text-s: #d4d4d4;
  --abl-subtext: #888888;
  --abl-input-bg: rgba(255,255,255,.025);
  --abl-input-bd: rgba(255,255,255,.09);
  --abl-shadow: 0 40px 100px -25px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.04);
  /* System-matched accent palette (purple-centric like dashboard) */
  --abl-mesh-1: #7c3aed;   /* system --ab-accent */
  --abl-mesh-2: #a78bfa;   /* system --ab-accent-2 */
  --abl-mesh-3: #6366f1;   /* system --ab-accent-3 */
  --abl-mesh-4: #22c55e;   /* keep green for status */
  --abl-mesh-5: #3b82f6;   /* blue accent */
  --abl-grid: rgba(255,255,255,.022);
  --abl-noise-op: .03;
  --abl-bubble-bot: rgba(124,58,237,.15);
  --abl-bubble-bot-bd: rgba(124,58,237,.28);
  --abl-bubble-user: rgba(34,197,94,.16);
  --abl-bubble-user-bd: rgba(34,197,94,.28);
}
:root[data-abl-theme="light"] {
  --abl-bg-0: #f5f6fb;
  --abl-bg-1: #ffffff;
  --abl-card: rgba(255,255,255,.86);
  --abl-card-2: #f7f8fc;
  --abl-card-3: rgba(15,23,42,.025);
  --abl-card-solid: #ffffff;
  --abl-border: #e5e7f0;
  --abl-border-s: #c8cddb;
  --abl-text: #1a1f2e;
  --abl-text-s: #3f4659;
  --abl-subtext: #6b7280;
  --abl-input-bg: #ffffff;
  --abl-input-bd: #d8dce8;
  --abl-shadow: 0 30px 70px -20px rgba(99,102,241,.18), 0 4px 18px rgba(15,23,42,.06), 0 0 0 1px rgba(15,23,42,.04);
  --abl-mesh-1: #7c3aed;
  --abl-mesh-2: #a78bfa;
  --abl-mesh-3: #6366f1;
  --abl-mesh-4: #22c55e;
  --abl-mesh-5: #3b82f6;
  --abl-grid: rgba(15,23,42,.04);
  --abl-noise-op: .012;
  --abl-bubble-bot: rgba(124,58,237,.08);
  --abl-bubble-bot-bd: rgba(124,58,237,.2);
  --abl-bubble-user: rgba(34,197,94,.1);
  --abl-bubble-user-bd: rgba(34,197,94,.22);
}

/* ─── Reset host ─────────────────────────────────────────────── */
body.bg-info-light-alt, body.gradient { background: var(--abl-bg-0) !important; }
body { overflow-x: hidden; }
#app, #app > section.section { padding: 0 !important; margin: 0 !important; background: transparent !important; }

.abl-root {
  position: relative;
  min-height: 100vh;
  width: 100%;
  background: var(--abl-bg-0);
  color: var(--abl-text);
  font-family: var(--ab-font, "Zain"), "Zain", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow: hidden;
  isolation: isolate;
}
/* Theme-aware logo swap */
.abl-logo-for-dark, .abl-logo-for-light { display: none; }
:root[data-abl-theme="dark"]  .abl-logo-for-dark  { display: inline-block; }
:root[data-abl-theme="light"] .abl-logo-for-light { display: inline-block; }

/* ═══ Backdrop ════════════════════════════════════════════════ */
.abl-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }

/* Aurora — toned down for system feel */
.abl-aurora { display: none !important; }
:root[data-abl-theme="light"] .abl-aurora { opacity: .14; filter: blur(110px) saturate(110%); }
.abl-au { position: absolute; width: 55vmax; height: 55vmax; border-radius: 50%; mix-blend-mode: screen; }
.abl-au-1 { background: radial-gradient(circle, var(--abl-mesh-1), transparent 65%); top: -20%;  left: -10%; animation: ablAuA 22s ease-in-out infinite; }
.abl-au-2 { background: radial-gradient(circle, var(--abl-mesh-2), transparent 65%); top: -10%;  right: -10%; animation: ablAuB 26s ease-in-out infinite; }
.abl-au-3 { background: radial-gradient(circle, var(--abl-mesh-3), transparent 65%); bottom:-20%; left:  10%; animation: ablAuC 24s ease-in-out infinite; }
.abl-au-4 { background: radial-gradient(circle, var(--abl-mesh-5), transparent 65%); bottom:-25%; right: -5%; animation: ablAuD 28s ease-in-out infinite; }
@keyframes ablAuA { 0%,100%{transform:translate(0,0) scale(1);} 50%{transform:translate(15%,8%) scale(1.15);} }
@keyframes ablAuB { 0%,100%{transform:translate(0,0) scale(1);} 50%{transform:translate(-14%,12%) scale(.9);} }
@keyframes ablAuC { 0%,100%{transform:translate(0,0) scale(1);} 50%{transform:translate(10%,-8%) scale(1.1);} }
@keyframes ablAuD { 0%,100%{transform:translate(0,0) scale(1);} 50%{transform:translate(-8%,-10%) scale(.95);} }

/* Diagonal light beams — removed (colored streaks looked off) */
.abl-beams { display: none !important; }
.abl-beam {
  position: absolute;
  width: 250px; height: 130vh;
  background: linear-gradient(to bottom, transparent, rgba(99,102,241,.18), transparent);
  filter: blur(40px);
  opacity: .18;
}
:root[data-abl-theme="light"] .abl-beam { opacity: .2; }
.abl-beam-1 { top: -10%; left: 18%; transform: rotate(18deg); animation: ablBeam 14s ease-in-out infinite; }
.abl-beam-2 { top: -10%; right: 22%; transform: rotate(-18deg); background: linear-gradient(to bottom, transparent, rgba(168,85,247,.18), transparent); animation: ablBeam 18s ease-in-out infinite reverse; }
@keyframes ablBeam {
  0%, 100% { opacity: .3; transform: rotate(18deg) translateX(0); }
  50%      { opacity: .65; transform: rotate(18deg) translateX(30px); }
}

/* Noise — disabled: the mix-blend grain layer read as a faint glassy
   haze over the background. */
.abl-noise { display: none !important; }

/* Grid */
.abl-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--abl-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--abl-grid) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(65% 65% at 50% 50%, #000 25%, transparent 100%);
  -webkit-mask-image: radial-gradient(65% 65% at 50% 50%, #000 25%, transparent 100%);
}

/* Spotlight — disabled: mouse-follow is off, so this was a static white
   sheen stuck at center that read as a "glassy" overlay over the bg. */
.abl-spotlight { display: none !important; }

/* Stars */
.abl-stars { position: absolute; inset: 0; }
.abl-star {
  position: absolute;
  width: 2px; height: 2px;
  border-radius: 50%;
  background: #fff;
  opacity: 0;
  transform: scale(var(--s));
  animation: ablTwink var(--d) ease-in-out infinite var(--delay);
}
:root[data-abl-theme="light"] .abl-star { background: #a78bfa; opacity: .55; }
@keyframes ablTwink {
  0%, 100% { opacity: 0; }
  50%      { opacity: .8; box-shadow: 0 0 6px currentColor; }
}

/* Particles */
.abl-particles { position: absolute; inset: 0; }
.abl-particle {
  position: absolute;
  bottom: -10px;
  width: var(--sz); height: var(--sz);
  border-radius: 50%;
  background: hsl(var(--hue), 85%, 65%);
  filter: blur(.5px);
  opacity: 0;
  animation: ablRise var(--d) linear infinite var(--delay);
  box-shadow: 0 0 14px hsl(var(--hue), 85%, 65%);
}
@keyframes ablRise {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  10%  { opacity: .6; }
  90%  { opacity: .3; }
  100% { transform: translateY(-115vh) translateX(50px); opacity: 0; }
}

/* ═══ Top Bars ════════════════════════════════════════════════ */
.abl-live-strip {
  position: fixed;
  top: 22px;
  inset-inline-start: 22px;
  z-index: 50;
  display: flex; align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 11px;
  background: var(--abl-card);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid var(--abl-border);
  border-radius: 50px;
  max-width: 360px;
  overflow: hidden;
  box-shadow: 0 10px 32px rgba(0,0,0,.2);
  animation: ablFadeIn .9s .25s cubic-bezier(.2,.8,.2,1) backwards;
}
.abl-live-pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: #ef4444;
  animation: ablLivePulse 1.8s ease-out infinite;
  flex-shrink: 0;
}
@keyframes ablLivePulse {
  0%   { box-shadow: 0 0 0 0 rgba(239,68,68,.7); }
  70%  { box-shadow: 0 0 0 10px rgba(239,68,68,0); }
  100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
}
.abl-live-label { font-size: 10px; font-weight: 800; color: #ef4444; letter-spacing: 1px; flex-shrink: 0; }
.abl-live-track { position: relative; overflow: hidden; height: 18px; flex: 1; }
.abl-live-item {
  position: absolute; inset: 0;
  display: flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 600; color: var(--abl-text-s);
  white-space: nowrap; opacity: 0;
  animation: ablLiveCycle 18s linear infinite;
}
.abl-live-item:nth-child(1){ animation-delay: 0s; }
.abl-live-item:nth-child(2){ animation-delay: 3.6s; }
.abl-live-item:nth-child(3){ animation-delay: 7.2s; }
.abl-live-item:nth-child(4){ animation-delay: 10.8s; }
.abl-live-item:nth-child(5){ animation-delay: 14.4s; }
.abl-live-item i { font-size: 11px; }
@keyframes ablLiveCycle {
  0%   { opacity: 0; transform: translateY(6px); }
  3%   { opacity: 1; transform: translateY(0); }
  17%  { opacity: 1; transform: translateY(0); }
  20%  { opacity: 0; transform: translateY(-6px); }
  100% { opacity: 0; }
}

.abl-controls {
  position: fixed;
  top: 22px;
  inset-inline-end: 22px;
  z-index: 50;
  display: flex; gap: 10px;
  animation: ablFadeIn .9s .25s cubic-bezier(.2,.8,.2,1) backwards;
}
.abl-ctl {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--abl-card);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: none;
  border-radius: 14px;
  color: var(--abl-text-s);
  cursor: pointer;
  transition: all .25s;
  font-size: 14px;
  box-shadow: none;
}
.abl-ctl:hover { color: var(--abl-text); transform: translateY(-2px); box-shadow: none; }
.abl-ctl:focus, .abl-ctl:active, .abl-ctl:focus-visible { outline: none !important; border: none !important; box-shadow: none !important; }
.abl-ctl-theme { width: 44px; height: 44px; overflow: hidden; }
.abl-ctl-ico {
  position: absolute; inset: 0;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .55s cubic-bezier(.6,1.4,.5,1), opacity .35s;
}
:root[data-abl-theme="dark"] .abl-ico-sun  { opacity: 0; transform: rotate(180deg) scale(.35); }
:root[data-abl-theme="dark"] .abl-ico-moon { opacity: 1; transform: rotate(0) scale(1); }
:root[data-abl-theme="light"] .abl-ico-sun  { opacity: 1; transform: rotate(0) scale(1); color:#f59e0b; }
:root[data-abl-theme="light"] .abl-ico-moon { opacity: 0; transform: rotate(-180deg) scale(.35); }
.abl-ctl-lang { padding: 5px; height: 44px; }
.abl-lang-pill {
  position: relative;
  display: inline-flex;
  background: var(--abl-card-2);
  border-radius: 10px;
  padding: 3px;
}
.abl-lang-opt {
  position: relative; z-index: 2;
  padding: 5px 12px;
  font-size: 11px; font-weight: 700;
  letter-spacing: .5px;
  color: var(--abl-subtext);
  border-radius: 8px;
  transition: color .3s;
}
.abl-lang-opt.abl-active { color: #fff; }
.abl-lang-indi {
  position: absolute; top: 3px; bottom: 3px; left: 3px;
  width: calc(50% - 3px);
  background: linear-gradient(135deg, var(--abl-mesh-1), var(--abl-mesh-2));
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(99,102,241,.5);
  transition: transform .4s cubic-bezier(.4,1.2,.4,1);
  z-index: 1;
}
[dir="rtl"] .abl-lang-indi { left: auto; right: 3px; }

/* ═══ Stage ═══════════════════════════════════════════════════ */
.abl-stage {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  width: 100%;
  max-width: 1280px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 90px 40px 50px;
  align-items: center;
}

/* ═══ Showcase ════════════════════════════════════════════════ */
.abl-showcase {
  position: relative;
  display: flex; flex-direction: column;
  gap: 22px;
  padding: 6px;
  min-width: 0;
  max-width: 620px;
}
.abl-brand {
  display: flex; align-items: center; gap: 14px;
}
.abl-brand-link { display: inline-flex; }
.abl-brand-logo {
  height: 38px;
  /* purple glow removed — read as a cut-off colored patch behind the logo */
  filter: none;
}
.abl-brand-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 13px;
  background: var(--abl-card);
  border: 1px solid var(--abl-border);
  border-radius: 50px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--abl-text-s);
  letter-spacing: .2px;
  backdrop-filter: blur(10px);
}
.abl-brand-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #22c55e;
  animation: ablDot 2.2s ease-out infinite;
}
@keyframes ablDot {
  0% { box-shadow: 0 0 0 0 rgba(34,197,94,.55); }
  70%{ box-shadow: 0 0 0 10px rgba(34,197,94,0); }
}

/* ═══ Cinematic Headline ══════════════════════════════════════ */
.abl-hero { margin: 6px 0 4px; }
.abl-h1 {
  font-size: clamp(38px, 4.6vw, 62px);
  font-weight: 800;
  line-height: 1.05;
  margin: 0;
  letter-spacing: -1.2px;
  color: var(--abl-text);
}
.abl-h1-line {
  display: block;
  padding: 4px 0;
  opacity: 0;
  transform: translateY(28px);
  animation: ablLineIn 1s cubic-bezier(.2,.8,.2,1) forwards;
}
.abl-h1-line:nth-of-type(1) { animation-delay: .4s; }
.abl-h1-line:nth-of-type(2) { animation-delay: .58s; }
.abl-h1-line:nth-of-type(3) { animation-delay: .76s; }
@keyframes ablLineIn { to { opacity: 1; transform: translateY(0); } }

.abl-h1-line.abl-h1-sm {
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 600;
  color: var(--abl-text-s);
  letter-spacing: -.5px;
  margin-top: 4px;
}
/* Gradient line — parent does reveal, child does gradient clip */
.abl-h1-grad-wrap { /* inherits abl-h1-line cascade reveal (.58s) */ }
.abl-h1-grad {
  display: inline-block;
  background: linear-gradient(110deg, var(--abl-mesh-1) 0%, var(--abl-mesh-2) 35%, var(--abl-mesh-5) 65%, var(--abl-mesh-3) 100%);
  background-size: 220% auto;
  background-position: 0% center;
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: ablGradFlow 7s linear infinite;
  padding: 0 .05em;
}
@keyframes ablGradFlow { to { background-position: 220% center; } }

.abl-sub {
  font-size: 15px;
  color: var(--abl-subtext);
  margin: 0;
  line-height: 1.7;
  max-width: 540px;
}

/* ═══ Floating Cards ═══════════════════════════════════════════ */
.abl-floats {
  position: relative;
  height: 380px;
  margin: 6px 0 14px;
  max-width: 580px;
  perspective: 1400px;
}
.abl-fl-card {
  position: absolute;
  background: var(--abl-card);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid var(--abl-border);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--abl-card-shadow);
  transform: translate(var(--mtx,0), var(--mty,0)) rotate(var(--mr,0));
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .3s;
  will-change: transform;
}
.abl-fl-card:hover { box-shadow: var(--abl-card-shadow-h); }
:root[data-abl-theme="dark"]  { --abl-card-shadow: 0 30px 60px -20px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.03);
                                --abl-card-shadow-h: 0 35px 70px -20px rgba(0,0,0,.65), 0 0 0 1px rgba(255,255,255,.14); }
:root[data-abl-theme="light"] { --abl-card-shadow: 0 24px 50px -18px rgba(99,102,241,.22), 0 4px 14px rgba(15,23,42,.06), 0 0 0 1px rgba(15,23,42,.04);
                                --abl-card-shadow-h: 0 30px 60px -18px rgba(99,102,241,.32), 0 6px 18px rgba(15,23,42,.08), 0 0 0 1px rgba(124,58,237,.18); }

/* Card 1 — Live Chat */
.abl-fl-1 { top: 0; inset-inline-start: 0; width: 260px; --mr: -3deg; z-index: 2; }
.abl-fl-head {
  display: flex; align-items: center; gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--abl-border);
  margin-bottom: 12px;
}
.abl-fl-dot {
  width: 7px; height: 7px; border-radius: 50%;
  box-shadow: 0 0 8px currentColor;
}
.abl-fl-head i { font-size: 14px; }
.abl-fl-title {
  font-size: 12.5px; font-weight: 700;
  color: var(--abl-text);
  flex: 1;
}
.abl-fl-time { font-size: 10px; color: var(--abl-subtext); font-weight: 600; }
.abl-chat { display: flex; flex-direction: column; gap: 7px; }
.abl-bubble {
  max-width: 80%;
  padding: 7px 11px;
  border-radius: 14px;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--abl-text);
  border: 1px solid;
}
.abl-bub-bot {
  background: var(--abl-bubble-bot);
  border-color: var(--abl-bubble-bot-bd);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}
[dir="rtl"] .abl-bub-bot { border-bottom-left-radius: 14px; border-bottom-right-radius: 4px; }
.abl-bub-user {
  background: var(--abl-bubble-user);
  border-color: var(--abl-bubble-user-bd);
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}
[dir="rtl"] .abl-bub-user { border-bottom-right-radius: 14px; border-bottom-left-radius: 4px; }
.abl-bub-typing { display: inline-flex; gap: 4px; padding: 10px 12px; width: auto; }
.abl-bub-typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--abl-text-s); opacity: .4;
  animation: ablType 1.4s ease-in-out infinite;
}
.abl-bub-typing span:nth-child(2){ animation-delay: .2s; }
.abl-bub-typing span:nth-child(3){ animation-delay: .4s; }
@keyframes ablType {
  0%, 60%, 100% { opacity: .4; transform: translateY(0); }
  30%           { opacity: 1; transform: translateY(-3px); }
}

/* Card 2 — Analytics */
.abl-fl-2 {
  top: 30px;
  inset-inline-end: 0;
  width: 270px;
  --mr: 3deg;
  z-index: 3;
}
.abl-fl-2 .abl-fl-head { padding-bottom: 8px; }
.abl-fl-icon {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, color-mix(in srgb, var(--c) 28%, transparent), color-mix(in srgb, var(--c) 12%, transparent));
  color: var(--c);
  font-size: 14px;
  border: 1px solid color-mix(in srgb, var(--c) 30%, transparent);
}
.abl-fl-meta { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.abl-fl-meta-l {
  font-size: 10.5px; font-weight: 700;
  color: var(--abl-subtext);
  letter-spacing: .3px;
  text-transform: uppercase;
}
.abl-fl-meta-v {
  font-size: 19px; font-weight: 800;
  color: var(--abl-text);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.abl-fl-delta {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 50px;
}
.abl-fl-up { color: #22c55e; background: rgba(34,197,94,.12); }

.abl-spark { width: 100%; height: 60px; display: block; margin: 4px 0 8px; }
.abl-spark-line {
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
  animation: ablSparkDraw 2.2s cubic-bezier(.4,.6,.4,1) .4s forwards;
}
@keyframes ablSparkDraw { to { stroke-dashoffset: 0; } }
.abl-spark-area { opacity: 0; animation: ablSparkArea 1s ease-in 2.2s forwards; }
@keyframes ablSparkArea { to { opacity: 1; } }
.abl-spark-pt { opacity: 0; animation: ablSparkPt 1.4s ease-in-out 2.4s infinite; filter: drop-shadow(0 0 6px #a855f7); }
@keyframes ablSparkPt {
  0%, 100% { opacity: .7; r: 3.5; }
  50%      { opacity: 1; r: 5; }
}

.abl-fl-foot {
  display: flex; justify-content: space-between;
  font-size: 11px;
  color: var(--abl-text-s);
  font-weight: 600;
  padding-top: 10px;
  border-top: 1px solid var(--abl-border);
}
.abl-fl-foot i { font-size: 10px; margin-right: 4px; }
[dir="rtl"] .abl-fl-foot i { margin-right: 0; margin-left: 4px; }

/* Card 3 — AI Agent */
.abl-fl-3 {
  bottom: 0;
  inset-inline-start: 50px;
  width: 320px;
  --mr: -2deg;
  z-index: 4;
  display: flex; gap: 14px; align-items: center;
}
.abl-fl-ai {
  position: relative;
  width: 72px; height: 72px;
  flex-shrink: 0;
  border-radius: 18px;
  background: var(--abl-ai-bg);
  border: 1px solid var(--abl-ai-border);
  box-shadow: var(--abl-ai-shadow);
  overflow: hidden;
  isolation: isolate;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s;
}
.abl-fl-ai:hover {
  transform: scale(1.03);
}
/* Theme-specific frame — NEUTRAL backgrounds (favicon is purple, needs contrast) */
:root[data-abl-theme="dark"] {
  --abl-ai-bg: linear-gradient(135deg, #232328 0%, #18181b 100%);
  --abl-ai-border: rgba(255,255,255,.08);
  --abl-ai-shadow:
    0 10px 24px rgba(0,0,0,.4),
    inset 0 1px 0 rgba(255,255,255,.06);
  --abl-ai-shadow-hover:
    0 14px 32px rgba(0,0,0,.5),
    inset 0 1px 0 rgba(255,255,255,.08);
  --abl-ai-status-bd: #18181b;
}
:root[data-abl-theme="light"] {
  --abl-ai-bg: linear-gradient(135deg, #ffffff 0%, #f4f6fb 100%);
  --abl-ai-border: rgba(15,23,42,.08);
  --abl-ai-shadow:
    0 8px 22px rgba(15,23,42,.1),
    inset 0 1px 0 rgba(255,255,255,.7);
  --abl-ai-shadow-hover:
    0 12px 28px rgba(15,23,42,.14),
    inset 0 1px 0 rgba(255,255,255,.8);
  --abl-ai-status-bd: #ffffff;
}
/* Frame stage */
.abl-ai-frame {
  position: relative;
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  box-sizing: border-box;
}

/* Favicon — the brand mark (clean, no purple halo behind) */
.abl-ai-fav {
  position: relative;
  z-index: 3;
  width: 100%; height: 100%;
  object-fit: contain;
  transform: translate(var(--ftx, 0px), var(--fty, 0px));
  transition: transform .3s cubic-bezier(.2,.8,.2,1);
}

/* Status dot — clean online indicator */
.abl-ai-status {
  position: absolute;
  bottom: 4px;
  inset-inline-end: 4px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid var(--abl-ai-status-bd, #0f0f18);
  z-index: 4;
  box-shadow: 0 0 8px rgba(34,197,94,.5);
}

.abl-fl-ai-info { flex: 1; min-width: 0; }
.abl-fl-ai-name {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-bottom: 8px;
}
.abl-fl-ai-name b { font-size: 13px; color: var(--abl-text); font-weight: 700; }
.abl-fl-tag-on {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 9.5px; font-weight: 800;
  color: #22c55e;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 50px;
  background: rgba(34,197,94,.12);
  border: 1px solid rgba(34,197,94,.22);
}
.abl-fl-on-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
  animation: ablLivePulse 1.6s ease-out infinite;
}
.abl-fl-prog-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 10.5px; color: var(--abl-subtext);
  margin-bottom: 5px;
}
.abl-fl-prog-val { color: var(--abl-text); font-weight: 800; font-size: 12px; }
.abl-fl-prog {
  width: 100%; height: 5px;
  background: var(--abl-card-2);
  border-radius: 50px;
  overflow: hidden;
  position: relative;
}
.abl-fl-prog-bar {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--abl-mesh-1), var(--abl-mesh-2), var(--abl-mesh-5));
  border-radius: 50px;
  animation: ablProg 1.6s cubic-bezier(.2,.8,.2,1) 1s forwards;
  box-shadow: 0 0 12px rgba(99,102,241,.5);
}
@keyframes ablProg { to { width: 87%; } }
.abl-fl-ai-stats {
  display: flex; gap: 14px;
  margin-top: 8px;
  font-size: 10.5px;
  color: var(--abl-subtext);
}
.abl-fl-ai-stats b { color: var(--abl-text); font-weight: 800; }

/* ═══ Bottom row ══════════════════════════════════════════════ */
.abl-bottom {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 6px;
}
.abl-stats {
  display: flex; align-items: center;
  gap: 18px;
  padding: 16px 22px;
  background: var(--abl-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--abl-border);
  border-radius: 16px;
  width: fit-content;
}
.abl-stat { display: flex; flex-direction: column; }
.abl-stat-v {
  font-size: 24px; font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, var(--abl-mesh-1), var(--abl-mesh-2));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.abl-stat-l {
  font-size: 10.5px; font-weight: 800;
  color: var(--abl-subtext);
  margin-top: 4px;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.abl-stat-sep { width: 1px; height: 30px; background: var(--abl-border); }

/* Marquee */
.abl-marquee {
  display: flex; align-items: center;
  gap: 14px;
  background: var(--abl-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--abl-border);
  border-radius: 16px;
  padding: 12px 16px 12px 0;
  overflow: hidden;
}
[dir="rtl"] .abl-marquee { padding: 12px 0 12px 16px; }
.abl-mq-label {
  font-size: 10.5px; font-weight: 800;
  color: var(--abl-subtext);
  letter-spacing: .5px;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 0 18px;
  border-inline-end: 1px solid var(--abl-border);
  flex-shrink: 0;
}
.abl-mq-mask {
  flex: 1;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.abl-mq-track {
  display: flex; gap: 30px;
  width: max-content;
  animation: ablMq 35s linear infinite;
}
.abl-mq-item {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 700;
  color: var(--abl-text-s);
  white-space: nowrap;
}
.abl-mq-item i { color: var(--c); font-size: 14px; }
@keyframes ablMq { to { transform: translateX(-50%); } }
[dir="rtl"] .abl-mq-track { animation-name: ablMqRtl; }
@keyframes ablMqRtl { to { transform: translateX(50%); } }

/* ═══════════════════════════════════════════════════════════════
   ░░░ Form Side ░░░
   ═══════════════════════════════════════════════════════════════ */
.abl-side {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

/* Ghost cards behind */
.abl-ghost {
  position: absolute;
  inset: 0;
  border-radius: 28px;
  background: var(--abl-card-3);
  border: 1px solid var(--abl-border);
  filter: blur(.5px);
  pointer-events: none;
}
.abl-ghost-1 { transform: translate(-12px, 12px) rotate(-2deg); opacity: .6; }
.abl-ghost-2 { transform: translate(-22px, 22px) rotate(-4deg); opacity: .35; }
[dir="rtl"] .abl-ghost-1 { transform: translate(12px, 12px) rotate(2deg); }
[dir="rtl"] .abl-ghost-2 { transform: translate(22px, 22px) rotate(4deg); }

/* Main card */
.abl-card {
  position: relative;
  background: var(--abl-card);
  backdrop-filter: blur(30px) saturate(170%);
  -webkit-backdrop-filter: blur(30px) saturate(170%);
  border: 1px solid var(--abl-border);
  border-radius: 28px;
  padding: 40px 36px 32px;
  box-shadow: var(--abl-shadow);
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
  transform-style: preserve-3d;
}
.abl-card::before {
  content: '';
  position: absolute; inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--abl-rot, 0deg),
    transparent 0%,
    var(--abl-mesh-1) 18%,
    var(--abl-mesh-2) 33%,
    transparent 50%,
    var(--abl-mesh-3) 65%,
    var(--abl-mesh-5) 80%,
    transparent 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
          mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: ablRotSpin 8s linear infinite;
  opacity: .9;
  pointer-events: none;
}
:root[data-abl-theme="light"] .abl-card::before { opacity: .6; }
@keyframes ablRotSpin { to { --abl-rot: 360deg; } }

/* Card hover glow — disabled: lit the card from the center on hover. */
.abl-card-glow { display: none !important; }
.abl-card:hover .abl-card-glow { opacity: 0 !important; }

/* Mobile brand */
.abl-mob-brand { display: none; justify-content: center; margin-bottom: 18px; }
.abl-mob-brand img { height: 34px; }

/* Header */
.abl-head { text-align: center; margin-bottom: 26px; position: relative; z-index: 2; }
.abl-head-emblem {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 13px;
  border-radius: 50px;
  background: color-mix(in srgb, var(--abl-mesh-1) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--abl-mesh-1) 22%, transparent);
  color: var(--abl-mesh-1);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: .3px;
}
.abl-head-emblem i { font-size: 10px; }
.abl-head h2 {
  font-size: 26px; font-weight: 800;
  margin: 0 0 6px;
  color: var(--abl-text);
  letter-spacing: -.4px;
  white-space: nowrap;
}
.abl-head p { font-size: 13.5px; color: var(--abl-subtext); margin: 0; }

/* Alerts */
.abl-alert {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 13px; font-weight: 600;
  margin-bottom: 14px;
  border: 1px solid;
  animation: ablAlertIn .35s ease-out;
  position: relative;
  z-index: 2;
}
@keyframes ablAlertIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.abl-alert > i { font-size: 14px; flex-shrink: 0; }
.abl-err  { background: color-mix(in srgb, #ef4444 12%, var(--abl-card-2)); border-color: color-mix(in srgb, #ef4444 30%, transparent); color: #fca5a5; }
:root[data-abl-theme="light"] .abl-err { color: #b91c1c; }
.abl-ok   { background: color-mix(in srgb, #22c55e 12%, var(--abl-card-2)); border-color: color-mix(in srgb, #22c55e 30%, transparent); color: #86efac; }
:root[data-abl-theme="light"] .abl-ok { color: #15803d; }

/* Form */
.abl-form { display: flex; flex-direction: column; gap: 16px; position: relative; z-index: 2; }
.abl-field {
  position: relative;
  background: var(--abl-input-bg);
  border: 1.5px solid var(--abl-input-bd);
  border-radius: 14px;
  transition: border-color .25s, background .25s;
}
.abl-field input {
  width: 100%;
  height: 58px;
  background: transparent;
  border: none; outline: none;
  padding: 22px 16px 6px;
  padding-inline-start: 50px;
  padding-inline-end: 50px;
  font-size: 14px; font-weight: 500;
  color: var(--abl-text);
  font-family: inherit;
  border-radius: 14px;
}
.abl-field input::placeholder { color: transparent; }
.abl-field input:-webkit-autofill {
  -webkit-text-fill-color: var(--abl-text);
  -webkit-box-shadow: 0 0 0 1000px var(--abl-card-solid) inset;
  caret-color: var(--abl-text);
}
.abl-field label {
  position: absolute;
  top: 50%;
  inset-inline-start: 50px;
  transform: translateY(-50%);
  font-size: 13.5px;
  color: var(--abl-subtext);
  pointer-events: none;
  transition: all .22s cubic-bezier(.4,.6,.4,1);
  font-weight: 500;
  margin: 0;
}
.abl-field.abl-filled label,
.abl-field input:focus + label {
  top: 14px;
  transform: translateY(0);
  font-size: 10.5px;
  color: var(--abl-mesh-1);
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.abl-fglyph {
  position: absolute;
  top: 50%;
  inset-inline-start: 18px;
  transform: translateY(-50%);
  font-size: 14px;
  color: var(--abl-subtext);
  transition: color .25s, transform .25s;
  pointer-events: none;
}
.abl-field:focus-within .abl-fglyph { color: var(--abl-mesh-1); transform: translateY(-50%) scale(1.12); }
.abl-field:focus-within { border-color: var(--abl-mesh-1); background: var(--abl-card-2); }

.abl-fborder {
  position: absolute; inset: -1.5px;
  border-radius: inherit;
  padding: 1.5px;
  pointer-events: none;
  background: conic-gradient(from var(--abl-rot, 0deg), transparent 75%, var(--abl-mesh-1) 85%, var(--abl-mesh-2) 95%, transparent 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
          mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0;
  transition: opacity .25s;
  animation: ablRotSpin 4s linear infinite;
}
.abl-field:focus-within .abl-fborder { opacity: 1; }

.abl-pw-eye {
  position: absolute;
  top: 50%;
  inset-inline-end: 12px;
  transform: translateY(-50%);
  width: 32px; height: 32px;
  background: transparent;
  border: none;
  color: var(--abl-subtext);
  cursor: pointer;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  transition: color .2s, background .2s;
  z-index: 3;
}
.abl-pw-eye:hover { color: var(--abl-text); background: var(--abl-card-2); }

.abl-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  margin-top: -2px;
}
.abl-remember {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600;
  color: var(--abl-text-s);
  cursor: pointer; margin: 0;
  white-space: nowrap;
}
.abl-remember input { position: absolute; opacity: 0; pointer-events: none; }
.abl-cbx {
  width: 18px; height: 18px;
  border-radius: 6px;
  border: 1.5px solid var(--abl-input-bd);
  background: var(--abl-input-bg);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 9px;
  color: transparent;
  transition: all .2s;
}
.abl-remember input:checked + .abl-cbx {
  background: linear-gradient(135deg, var(--abl-mesh-1), var(--abl-mesh-2));
  border-color: var(--abl-mesh-1);
  color: #fff;
  box-shadow: 0 4px 12px rgba(99,102,241,.45);
}
.abl-forgot {
  font-size: 12.5px; font-weight: 700;
  color: var(--abl-subtext);
  text-decoration: none !important;
  transition: color .2s;
  white-space: nowrap;
}
.abl-forgot:hover { color: var(--abl-mesh-1); }

/* Magnetic submit */
.abl-submit {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  gap: 10px;
  height: 56px;
  margin-top: 8px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--abl-mesh-1) 0%, var(--abl-mesh-2) 50%, var(--abl-mesh-1) 100%);
  background-size: 220% 100%;
  background-position: 0% 50%;
  color: #fff;
  font-size: 15px; font-weight: 700;
  letter-spacing: .3px;
  cursor: pointer;
  overflow: hidden;
  transform: translate(var(--mtx, 0px), var(--mty, 0px));
  transition: background-position .5s, transform .28s cubic-bezier(.2,.8,.2,1), box-shadow .25s;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22);
}
.abl-submit:hover {
  background-position: 100% 50%;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
}
.abl-submit-ico { display: inline-flex; transition: transform .3s; }
.abl-submit:hover .abl-submit-ico { transform: translateX(5px); }
[dir="rtl"] .abl-submit-ico i { transform: scaleX(-1); }
[dir="rtl"] .abl-submit:hover .abl-submit-ico { transform: translateX(-5px); }
.abl-submit-ink {
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,.65);
  transform: translate(-50%, -50%) scale(0);
  pointer-events: none;
}
.abl-submit-ink.abl-ripple { animation: ablRipple .7s ease-out; }
@keyframes ablRipple { to { transform: translate(-50%, -50%) scale(160); opacity: 0; } }
.abl-submit-load {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity .25s;
}
.abl-sp {
  width: 22px; height: 22px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: ablSpin .8s linear infinite;
}
@keyframes ablSpin { to { transform: rotate(360deg); } }
.abl-submit.abl-busy .abl-submit-txt,
.abl-submit.abl-busy .abl-submit-ico { opacity: 0; }
.abl-submit.abl-busy .abl-submit-load { opacity: 1; }
.abl-submit-txt, .abl-submit-ico { transition: opacity .25s; }

/* Divider */
.abl-or { position: relative; text-align: center; margin: 22px 0 16px; z-index: 2; }
.abl-or::before, .abl-or::after {
  content: ''; position: absolute; top: 50%;
  width: calc(50% - 70px); height: 1px;
  background: var(--abl-border);
}
.abl-or::before { left: 0; } .abl-or::after { right: 0; }
.abl-or span {
  font-size: 11px; font-weight: 700;
  color: var(--abl-subtext);
  padding: 0 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* ═══ Social — Premium glass cards ═══════════════════════════ */
.abl-social {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  position: relative;
  z-index: 2;
}
.abl-soc {
  position: relative;
  height: 60px;
  border-radius: 14px;
  background: var(--abl-card-2);
  border: 1px solid var(--abl-border);
  overflow: hidden;
  transition: transform .28s cubic-bezier(.2,.8,.2,1),
              border-color .25s, box-shadow .28s;
}
.abl-soc-g { --soc-c: #ea4335; --soc-rgb: 234,67,53; }
.abl-soc-f { --soc-c: #1877f2; --soc-rgb: 24,119,242; }

/* Soft brand-tinted hover background */
.abl-soc::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(var(--soc-rgb),.08) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.abl-soc:hover {
  border-color: rgba(var(--soc-rgb),.45);
  transform: translateY(-2px);
  box-shadow: none;
}
.abl-soc:hover::before { opacity: 1; }

/* Shimmer sweep on hover */
.abl-soc::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.06) 50%, transparent 70%);
  transform: translateX(-100%);
  pointer-events: none;
}
.abl-soc:hover::after { animation: ablSocShine .9s ease-out; }
@keyframes ablSocShine { to { transform: translateX(100%); } }

/* Clean anchor (rebuilt from scratch, no bootstrap inheritance) */
.abl-soc-link {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border-radius: 14px;
  color: var(--abl-text);
  text-decoration: none !important;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1;
  z-index: 2;
}
.abl-soc-link::before,
.abl-soc-link::after { content: none !important; }

/* Brand chip — small rounded square with brand color */
.abl-soc-chip {
  width: 38px; height: 38px;
  border-radius: 11px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 17px;
  position: relative;
  transition: transform .3s cubic-bezier(.2,.8,.2,1);
}
.abl-chip-g {
  background: #fff;
  box-shadow: none;
}
.abl-chip-g .fab { color: #ea4335 !important; font-size: 18px !important; }
.abl-chip-f {
  background: linear-gradient(135deg, #1877f2 0%, #0d62cf 100%);
  box-shadow: none;
}
.abl-chip-f .fab { color: #fff !important; font-size: 17px !important; }
.abl-soc:hover .abl-soc-chip { transform: scale(1.06) rotate(-3deg); }

/* SVG inside chip — GRID centering (cleanest, no transforms needed) */
.abl-soc-chip {
  display: grid !important;
  place-items: center !important;
  overflow: hidden;
}
.abl-soc-chip svg {
  display: block;
  margin: 0;
  padding: 0;
  pointer-events: none;
  /* No positioning — grid place-items handles centering */
}
.abl-chip-g svg { width: 21px; height: 21px; }
.abl-chip-f svg { width: 19px; height: 19px; }
/* My chip FA icons fallback (unused now) — perfectly centered */
.abl-soc .abl-soc-chip .fab,
.abl-soc .abl-soc-chip .fa,
.abl-soc .abl-soc-chip i {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important; height: auto !important;
  margin: 0 !important; padding: 0 !important;
  line-height: 1 !important;
}

/* Text stack: "Continue with" / "Google" */
.abl-soc-text {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  flex: 1;
  min-width: 0;
  font-family: inherit;
}
[dir="rtl"] .abl-soc-text { align-items: flex-start; }
.abl-soc-pre {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--abl-subtext);
  letter-spacing: .2px;
  line-height: 1.1;
  font-family: inherit;
}
.abl-soc-brand {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--abl-text);
  letter-spacing: -.2px;
  line-height: 1.1;
  font-family: inherit;
}

/* Arrow on the trailing end */
.abl-soc-arrow {
  width: 22px; height: 22px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  color: var(--abl-subtext);
  font-size: 11px;
  flex-shrink: 0;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), color .25s;
}
.abl-soc-arrow .fas {
  display: inline-flex !important;
  width: auto !important; height: auto !important;
  margin: 0 !important; padding: 0 !important;
  line-height: 1 !important;
  font-size: 11px !important;
}
.abl-soc:hover .abl-soc-arrow {
  color: var(--soc-c);
  transform: translateX(4px);
}
[dir="rtl"] .abl-soc-arrow i { transform: scaleX(-1); }
[dir="rtl"] .abl-soc:hover .abl-soc-arrow { transform: translateX(-4px); }

/* Mobile: stack vertically */
@media (max-width: 380px) {
  .abl-social { grid-template-columns: 1fr; }
}

/* Switch */
.abl-switch-stack { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; position: relative; z-index: 2; }
.abl-switch { text-align: center; font-size: 13px; color: var(--abl-subtext); }
.abl-switch a {
  color: var(--abl-text);
  font-weight: 700;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  transition: color .2s, gap .2s;
}
.abl-switch a:hover { color: var(--abl-mesh-1); gap: 9px; }
[dir="rtl"] .abl-switch a i.fa-arrow-right { transform: scaleX(-1); }

/* Trust */
.abl-trust {
  display: flex; align-items: center; justify-content: center;
  gap: 12px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed var(--abl-border);
  position: relative;
  z-index: 2;
}
.abl-trust-item {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10.5px; font-weight: 800;
  color: var(--abl-subtext);
  letter-spacing: .3px;
  text-transform: uppercase;
}
.abl-trust-item i { font-size: 10px; color: var(--abl-mesh-4); }
.abl-trust-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--abl-border-s); }

/* Footer */
.abl-foot {
  text-align: center;
  display: flex; justify-content: center; align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--abl-subtext);
}
.abl-foot a { color: var(--abl-subtext); text-decoration: none; transition: color .2s; }
.abl-foot a:hover { color: var(--abl-text); }
.abl-copy { font-weight: 600; }

/* ═══ Entrance animations ════════════════════════════════════ */
.abl-rev {
  opacity: 0;
  transform: translateY(18px);
  animation: ablFadeIn .85s cubic-bezier(.2,.8,.2,1) forwards;
}
@keyframes ablFadeIn { to { opacity: 1; transform: translateY(0); } }

.abl-shake { animation: ablShake .55s cubic-bezier(.36,.07,.19,.97); }
@keyframes ablShake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(4px); }
  30%, 50%, 70% { transform: translateX(-7px); }
  40%, 60% { transform: translateX(7px); }
}

/* ═══ Responsive ═════════════════════════════════════════════ */
/* ─── COLLAPSE TO SINGLE COLUMN AT 1500px ─────────────────────────────────
   Why 1500 and not the original 1024?
   • Laptops 1280–1440 → showcase pushed login form off-screen
   • 2K at 125% browser zoom (= 2048 effective) → showcase elements
     overlapped each other because the column shrank but headline + floats
     stayed the same physical size
   Below 1500px we hide the showcase entirely and show ONLY the login form —
   same clean experience tablets/phones get. The cinematic showcase appears
   only on 1500px+ wide windows where it actually has room to breathe. */
@media (max-width: 1499px) {
  .abl-stage { grid-template-columns: 1fr; gap: 26px; max-width: 580px; padding: 100px 24px 40px; }
  .abl-showcase { display: none; }
  .abl-mob-brand { display: flex; }
  .abl-card { padding: 32px 26px 28px; }
  .abl-live-strip { max-width: calc(100% - 140px); }
  /* Ensure the login card sits at the top — never pushed below by any
     stray showcase fragments that didn't get display:none in time. */
  .abl-side { order: -1; }
}
/* ─── COMPACT showcase on mid-size desktops (1500–1700px) ─────────────────
   On 2K-at-120% or 1080p-at-100%, the showcase shows but at a compact
   scale so its content (h1 + floats + stats) never overlaps itself.   */
@media (min-width: 1500px) and (max-width: 1700px) {
  .abl-stage { gap: 30px; padding: 80px 24px 40px; max-width: 1320px; }
  .abl-h1 { font-size: clamp(34px, 3.4vw, 50px); letter-spacing: -.8px; }
  .abl-h1-line.abl-h1-sm { font-size: clamp(20px, 2vw, 28px); }
  .abl-floats { height: 360px; max-width: 540px; }
  .abl-fl-1 { width: 240px; }
  .abl-fl-2 { width: 250px; }
  .abl-fl-3 { width: 280px; }
}
@media (max-width: 580px) {
  .abl-live-strip { display: none; }
  .abl-controls { top: 16px; inset-inline-end: 16px; }
  .abl-ctl-theme { width: 40px; height: 40px; }
  .abl-stage { padding: 60px 18px 30px; }
  .abl-card { padding: 28px 20px 24px; border-radius: 22px; }
  .abl-head h2 { font-size: 22px; }
  .abl-field input { height: 54px; }
  .abl-ghost { display: none; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .abl-au, .abl-star, .abl-particle, .abl-beam, .abl-h1-grad,
  .abl-ai-ant, .abl-ai-bars span, .abl-fl-prog-bar, .abl-mq-track,
  .abl-card::before, .abl-fborder, .abl-live-pulse, .abl-rev,
  .abl-let, .abl-spark-line, .abl-spark-area, .abl-spark-pt {
    animation: none !important;
  }
  .abl-rev { opacity: 1; transform: none; }
  .abl-let { opacity: 1; transform: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE PREMIUM EFFECTS — added 2026-05-18
   The showcase (left column) is display:none on mobile. Add cinematic
   ambient effects + floating badges + signal pills around the form card
   so mobile users feel the same premium energy as desktop.
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 1499px) {
  /* Make aurora more prominent on mobile/laptop (since showcase is hidden) */
  .abl-aurora { opacity: .55; filter: blur(70px) saturate(150%); }
  .abl-au-1 { width: 65vmax; height: 65vmax; }
  .abl-au-2 { width: 60vmax; height: 60vmax; }

  /* Compact mobile hero band above the card */
  .abl-mob-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 auto 18px;
    padding: 8px 16px;
    border-radius: 50px;
    background: var(--abl-card);
    border: 1px solid var(--abl-border);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    font-size: 12px;
    font-weight: 600;
    color: var(--abl-text-s);
    max-width: max-content;
    animation: ablMobHeroIn .8s cubic-bezier(.16,1,.3,1) .15s both;
  }
  .abl-mob-hero-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34,197,94,.7);
    animation: ablLiveDot 1.8s ease-out infinite;
  }
  .abl-mob-hero-icons {
    display: inline-flex; align-items: center; gap: -6px;
    margin-inline-end: 4px;
  }
  .abl-mob-hero-icons i {
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--abl-card-solid);
    border: 1.5px solid var(--abl-bg-0);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 9px;
    color: var(--abl-mesh-1);
    margin-inline-start: -6px;
  }
  .abl-mob-hero-icons i:first-child { margin-inline-start: 0; }
  @keyframes ablMobHeroIn {
    from { opacity: 0; transform: translateY(-8px) scale(.9); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
  }
  @keyframes ablLiveDot {
    0%   { box-shadow: 0 0 0 0 rgba(34,197,94,.7); }
    70%  { box-shadow: 0 0 0 10px rgba(34,197,94,0); }
    100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
  }

  /* Floating signal badges around the card on mobile */
  .abl-mob-fl {
    position: absolute;
    display: inline-flex; align-items: center; gap: 7px;
    padding: 7px 12px;
    background: var(--abl-card);
    border: 1px solid var(--abl-border);
    border-radius: 50px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    font-size: 10.5px;
    font-weight: 700;
    color: var(--abl-text);
    box-shadow: 0 10px 22px rgba(0,0,0,.18);
    white-space: nowrap;
    z-index: 1;
    pointer-events: none;
    animation: ablMobFlIn .8s cubic-bezier(.16,1,.3,1) both, ablMobFlBob 5s ease-in-out infinite;
  }
  .abl-mob-fl i { font-size: 11px; }
  /* Badges live in the SAFE GAPS above + below the card only.
     Never overlap form fields, buttons, social CTAs, or trust strip. */
  .abl-mob-fl-1 { top: -18px;    inset-inline-start: 6%;  animation-delay: .35s, 0s;   }  /* top-left  · above card */
  .abl-mob-fl-2 { top: -18px;    inset-inline-end:   6%;  animation-delay: .5s,  1.5s; }  /* top-right · above card */
  .abl-mob-fl-3 { bottom: -18px; inset-inline-start: 6%;  animation-delay: .65s, 3s;   }  /* bottom-left  · below card */
  .abl-mob-fl-4 { bottom: -18px; inset-inline-end:   6%;  animation-delay: .8s,  4.5s; }  /* bottom-right · below card */
  /* Ensure room above for the hero pill and below for trust strip */
  .abl-mob-hero { margin-bottom: 26px !important; }
  .abl-mob-trust { margin-top: 32px !important; }
  @keyframes ablMobFlIn {
    from { opacity: 0; transform: translateY(14px) scale(.85); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
  }
  @keyframes ablMobFlBob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
  }

  /* The card needs to be relative + visible so floats anchor correctly */
  .abl-card { position: relative; overflow: visible; }

  /* Trust strip below the card */
  .abl-mob-trust {
    display: flex; justify-content: center; gap: 16px;
    margin-top: 22px;
    font-size: 11px;
    color: var(--abl-subtext);
    font-weight: 600;
    flex-wrap: wrap;
  }
  .abl-mob-trust span {
    display: inline-flex; align-items: center; gap: 5px;
  }
  .abl-mob-trust i {
    color: var(--abl-mesh-4);
    font-size: 10px;
  }
}

/* Hide the mobile-only blocks on desktop (≥1025px) */
@media (min-width: 1500px) {
  .abl-mob-hero, .abl-mob-fl, .abl-mob-trust { display: none !important; }
}

/* Hide floats on very small screens to avoid edge overlap */
@media (max-width: 380px) {
  .abl-mob-fl { display: none !important; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   DESKTOP FIT-TO-VIEWPORT (≥1025px)
   ZERO scroll — page or internal. Form scales fluidly with viewport height
   using clamp(min, vh-based, max) so it always fits any screen size.
   ═══════════════════════════════════════════════════════════════════════════ */
@media (min-width: 1500px) {

  .abl-root {
    height: 100vh;
    height: 100dvh;
    overflow: hidden !important;
    position: relative;
    display: flex;
    flex-direction: column;
  }

  /* Stage flexes to fill the available height (after live-strip/controls) */
  .abl-stage {
    flex: 1 1 0;
    min-height: 0;
    padding: clamp(40px, 6vh, 75px) 30px clamp(14px, 2.5vh, 28px);
    overflow: hidden;
    align-items: center;
  }

  /* CRITICAL: form column NEVER scrolls — clamp-based sizing keeps it fitting.
     Use flex-center so the card sits vertically centered inside its column
     even when the (taller) showcase pushes the grid row to 100vh. */
  .abl-side {
    max-height: 100%;
    overflow: visible !important;
    padding: 0 !important;
    -webkit-mask-image: none !important;
            mask-image: none !important;
    display: flex;
    flex-direction: column;
    justify-content: center;     /* ← vertically center card + foot block */
    align-self: stretch;         /* fills grid row height */
  }
  .abl-showcase {
    max-height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;     /* ← center showcase content too */
    align-self: stretch;
  }

  /* ───── Card: padding scales with viewport height ───── */
  .abl-card {
    padding: clamp(16px, 2.6vh, 32px) clamp(22px, 3vh, 38px);
    border-radius: clamp(18px, 2.6vh, 28px);
  }

  /* ───── Header ───── */
  .abl-head { margin-bottom: clamp(10px, 1.8vh, 22px); }
  .abl-head-emblem {
    padding: clamp(3px, .5vh, 5px) clamp(8px, 1.2vh, 14px);
    font-size: clamp(10px, 1.2vh, 12px);
    margin-bottom: clamp(8px, 1.4vh, 16px);
    gap: 5px;
  }
  .abl-head h2 {
    font-size: clamp(20px, 3.2vh, 32px) !important;
    line-height: 1.15 !important;
    margin: 0 0 clamp(4px, .7vh, 8px) !important;
  }
  .abl-head p {
    font-size: clamp(12px, 1.5vh, 15px) !important;
    margin: 0 !important;
  }

  /* ───── Fields ───── */
  .abl-field { margin-bottom: clamp(7px, 1.2vh, 14px) !important; }
  .abl-field input,
  .abl-field select,
  .abl-card input[type="text"],
  .abl-card input[type="email"],
  .abl-card input[type="tel"],
  .abl-card input[type="password"] {
    height: clamp(42px, 6.2vh, 56px) !important;
    font-size: clamp(13px, 1.7vh, 15px) !important;
  }
  .abl-field label {
    font-size: clamp(11px, 1.35vh, 13px);
  }
  /* Compact 2-col rows on signup */
  .abl-field-row { gap: clamp(8px, 1.4vh, 14px); }

  /* ───── Primary CTA ───── */
  .abl-cta-row { margin-top: clamp(8px, 1.4vh, 18px); }
  .abl-cta-row .abl-btn-primary,
  .abl-btn-primary {
    height: clamp(48px, 6.8vh, 60px) !important;
    font-size: clamp(13.5px, 1.8vh, 16px) !important;
  }

  /* ───── "OR continue with" divider ───── */
  .abl-or { margin: clamp(10px, 1.6vh, 20px) 0 clamp(8px, 1.2vh, 14px) !important; }
  .abl-or span { font-size: clamp(10px, 1.2vh, 12px); }

  /* ───── Social buttons ───── */
  .abl-social { gap: clamp(8px, 1.2vh, 14px) !important; }
  .abl-soc-link {
    padding: clamp(8px, 1.2vh, 13px) clamp(10px, 1.4vh, 16px) !important;
  }
  .abl-soc-text { font-size: clamp(12px, 1.5vh, 14px); }

  /* ───── Below-form links + checkboxes ───── */
  .abl-help, .abl-remember, .abl-terms {
    font-size: clamp(11.5px, 1.4vh, 13.5px) !important;
    margin: clamp(4px, .8vh, 10px) 0 !important;
  }

  /* ───── Trust strip ───── */
  .abl-trust {
    margin-top: clamp(10px, 1.6vh, 20px) !important;
    padding-top: clamp(10px, 1.5vh, 16px) !important;
    font-size: clamp(10px, 1.25vh, 12.5px) !important;
  }
  .abl-trust-item { gap: 5px; }

  /* ───── Footer ───── */
  .abl-foot {
    padding: clamp(8px, 1.4vh, 16px) 0 clamp(4px, .8vh, 10px) !important;
    font-size: clamp(10px, 1.25vh, 12.5px) !important;
    gap: clamp(6px, 1vh, 10px);
  }

  /* ───── Chrome (controls + live strip) closer to edge on short viewports ───── */
  .abl-live-strip { top: clamp(10px, 1.6vh, 22px); }
  .abl-controls   { top: clamp(10px, 1.6vh, 22px); }

  /* ───── Showcase compress ───── */
  .abl-brand-logo { height: clamp(28px, 4vh, 40px); }
  .abl-showcase-h1 { font-size: clamp(28px, 4.5vh, 48px); line-height: 1.05; }
  .abl-showcase p { font-size: clamp(13px, 1.7vh, 16px); }
  .abl-floats { gap: clamp(8px, 1.4vh, 16px); }
}

/* Hard cut-off for very short viewports — hide head emblem to gain space */
@media (min-width: 1500px) and (max-height: 700px) {
  .abl-head-emblem { display: none; }
  .abl-head { margin-bottom: 10px; }
  .abl-trust { display: flex; gap: 12px; }
  .abl-foot a + span,
  .abl-foot span + a { font-size: 10.5px; }
}

/* Mobile + tablet + laptop keep min-height: 100dvh (page can scroll if needed) */
@media (max-width: 1499px) {
  .abl-root {
    min-height: 100vh;
    min-height: 100dvh;
    /* allow page scroll on mobile */
    overflow: visible;
  }
  .abl-side, .abl-showcase {
    max-height: none;
    overflow: visible;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Mobile floating badges — enhanced icons + "256" accent on SSL
   ═══════════════════════════════════════════════════════════════════════════ */
.abl-mob-fl i:first-child {
  width: 18px; height: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px;
  background: var(--abl-bg-0);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px var(--abl-border);
}
.abl-mob-fl-3 i:first-child {
  background: rgba(34, 197, 94, .18);
  color: #22c55e !important;
  box-shadow: 0 0 0 1px rgba(34, 197, 94, .35), 0 0 8px rgba(34, 197, 94, .35);
}
.abl-mob-fl .abl-256 {
  display: inline-block;
  padding: 2px 6px;
  margin-inline-start: 2px;
  font-size: 9px;
  font-weight: 800;
  color: #22c55e;
  background: rgba(34, 197, 94, .14);
  border: 1px solid rgba(34, 197, 94, .35);
  border-radius: 50px;
  letter-spacing: .3px;
  font-family: "Geist Mono", ui-monospace, monospace;
}

/* ═══════════════════════════════════════════════════════════════════
   ⚠️ TEMP TEST — KILL ALL BACKGROUND ANIMATION (all devices)
   Purpose: diagnose perceived "haze/glass" + heaviness on the auth bg.
   To REVERT: delete this whole block (from this banner to EOF marker).
   ═══════════════════════════════════════════════════════════════════ */
.abl-bg, .abl-bg * { animation: none !important; }
/* ── END TEMP TEST ── */

/* ════════════════════════════════════════════════════════════════════════════
   OTP boxes — shared across phone_verify, sign_up, change_password
   Promoted from inline phone_verify.php styles so every auth page that uses
   .abl-otp-boxes / .abl-otp-box renders identically and never as raw inputs.
   ════════════════════════════════════════════════════════════════════════════ */
.abl-otp-boxes {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 14px 0 10px;
  direction: ltr;
  flex-wrap: nowrap;          /* never stack — always one row */
  max-width: 100%;
}
.abl-otp-box {
  width: 52px;
  height: 60px;
  flex: 0 0 52px;             /* fixed width, never grow */
  background: var(--abl-input-bg, rgba(255,255,255,.04));
  border: 1.5px solid var(--abl-input-bd, rgba(255,255,255,.12));
  border-radius: 14px;
  text-align: center;
  font-size: 24px;
  font-weight: 800;
  color: var(--abl-text, #e6e9f5);
  font-family: var(--ab-font-mono, ui-monospace, "JetBrains Mono", "Geist Mono", monospace);
  font-variant-numeric: tabular-nums;
  outline: none;
  caret-color: var(--abl-mesh-1, #a855f7);
  transition: border-color .15s ease, background .15s ease, transform .15s ease, box-shadow .15s ease;
  padding: 0;
  line-height: 1;
  -webkit-appearance: none;
       -moz-appearance: textfield;
  appearance: none;
}
.abl-otp-box::-webkit-outer-spin-button,
.abl-otp-box::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.abl-otp-box:focus {
  border-color: var(--abl-mesh-1, #a855f7);
  background: var(--abl-card-2, rgba(255,255,255,.06));
  transform: translateY(-2px);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--abl-mesh-1, #a855f7) 28%, transparent);
}
.abl-otp-box.abl-otp-filled {
  border-color: var(--abl-mesh-1, #a855f7);
  background: color-mix(in srgb, var(--abl-mesh-1, #a855f7) 8%, var(--abl-input-bg, rgba(255,255,255,.04)));
}
.abl-otp-box.abl-otp-error {
  border-color: #ef4444 !important;
  animation: ablOtpShake .5s;
}
@keyframes ablOtpShake {
  0%, 100% { transform: translateX(0); }
  25%      { transform: translateX(-5px); }
  75%      { transform: translateX(5px); }
}

/* Resend button + change-number footer */
.abl-otp-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.abl-otp-resend,
.abl-otp-change,
.su-otp-change {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--abl-card, rgba(255,255,255,.04));
  border: 1px solid var(--abl-border, rgba(255,255,255,.10));
  color: var(--abl-text-s, #c9cde0);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.abl-otp-resend:hover:not(:disabled),
.abl-otp-change:hover,
.su-otp-change:hover {
  background: var(--abl-card-2, rgba(255,255,255,.06));
  border-color: var(--abl-mesh-1, #a855f7);
  color: var(--abl-text, #e6e9f5);
}
.abl-otp-resend:disabled {
  opacity: .55;
  cursor: not-allowed;
}

/* Tighter on narrow screens (mobile + zoomed laptops) */
@media (max-width: 480px) {
  .abl-otp-boxes { gap: 6px; }
  .abl-otp-box   { width: 44px; height: 54px; flex-basis: 44px; font-size: 20px; }
}
@media (max-width: 380px) {
  .abl-otp-boxes { gap: 5px; }
  .abl-otp-box   { width: 38px; height: 48px; flex-basis: 38px; font-size: 18px; }
}
