/* ============================================================
   ABT — Agents Based Technologies · landing styles
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --bg: #070710;
  --bg-2: #0c0c18;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text: #eaecf3;
  --text-muted: #9aa0b4;
  --text-dim: #6b7088;

  --brand: #7c5cff;
  --brand-2: #5b8def;
  --brand-3: #22d3ee;
  --grad: linear-gradient(120deg, #7c5cff 0%, #5b8def 50%, #22d3ee 100%);
  --grad-soft: linear-gradient(120deg, rgba(124, 92, 255, 0.18), rgba(34, 211, 238, 0.14));

  --radius: 18px;
  --radius-lg: 26px;
  --radius-sm: 12px;
  --maxw: 1140px;

  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 0 1px var(--border), 0 30px 80px -30px rgba(91, 141, 239, 0.45);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  font-feature-settings: 'cv02', 'cv03', 'cv11';
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul, ol { list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

/* ---------- Animated background ---------- */
.bg-aurora {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(124, 92, 255, 0.10), transparent 60%),
    radial-gradient(900px 500px at 0% 20%, rgba(34, 211, 238, 0.08), transparent 55%),
    var(--bg);
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  will-change: transform;
}
.orb--1 { width: 520px; height: 520px; top: -120px; left: -80px;
  background: radial-gradient(circle, #7c5cff, transparent 70%); animation: float1 22s var(--ease) infinite; }
.orb--2 { width: 460px; height: 460px; top: 30%; right: -120px;
  background: radial-gradient(circle, #22d3ee, transparent 70%); animation: float2 26s var(--ease) infinite; }
.orb--3 { width: 420px; height: 420px; bottom: -140px; left: 35%;
  background: radial-gradient(circle, #5b8def, transparent 70%); animation: float3 30s var(--ease) infinite; }

.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}

@keyframes float1 { 50% { transform: translate(80px, 60px) scale(1.1); } }
@keyframes float2 { 50% { transform: translate(-70px, 40px) scale(1.08); } }
@keyframes float3 { 50% { transform: translate(40px, -60px) scale(1.12); } }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(7, 7, 16, 0.85), rgba(7, 7, 16, 0.5));
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.site-header.is-scrolled { border-bottom-color: var(--border); }

.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -0.02em; }
.brand__mark { display: inline-flex; filter: drop-shadow(0 4px 14px rgba(124, 92, 255, 0.45)); }
.brand__name { font-size: 1.2rem; }

.nav__menu { display: flex; align-items: center; gap: 28px; }
.nav__menu > a { color: var(--text-muted); font-weight: 500; font-size: 0.95rem; transition: color 0.2s; }
.nav__menu > a:hover { color: var(--text); }

.lang-switch { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; padding: 3px; background: var(--surface); }
.lang-switch button {
  border: 0; background: transparent; color: var(--text-muted);
  font: inherit; font-size: 0.8rem; font-weight: 600; cursor: pointer;
  padding: 5px 11px; border-radius: 999px; transition: all 0.2s;
}
.lang-switch button.is-active { background: var(--grad); color: #fff; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; width: 40px; height: 40px;
  align-items: center; justify-content: center; background: transparent; border: 0; cursor: pointer; }
.nav__toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s var(--ease); }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  --pad-y: 12px; --pad-x: 22px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 999px; font-weight: 600; font-size: 0.96rem;
  cursor: pointer; border: 1px solid transparent; white-space: nowrap;
  transition: transform 0.2s var(--ease), box-shadow 0.3s, background 0.3s, border-color 0.3s;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn--sm { --pad-y: 9px; --pad-x: 16px; font-size: 0.88rem; }
.btn--lg { --pad-y: 15px; --pad-x: 30px; font-size: 1.02rem; }

.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px -10px rgba(124, 92, 255, 0.6); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(91, 141, 239, 0.7); }

.btn--ghost { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn--ghost:hover { background: var(--surface-2); border-color: var(--brand-2); transform: translateY(-2px); }

/* ---------- Generic section ---------- */
.section { padding-block: clamp(72px, 10vw, 128px); }
.section__head { text-align: center; max-width: 720px; margin-inline: auto; margin-bottom: 56px; }
.section__kicker {
  display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--brand-2); margin-bottom: 14px;
}
.section__title { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.section__lead { color: var(--text-muted); font-size: 1.08rem; margin-top: 18px; }
.section__lead--center { margin-inline: auto; }

.gradient-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.card-glass {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
}

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
  padding-block: clamp(56px, 9vw, 120px);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 0.84rem; color: var(--text-muted); font-weight: 500; margin-bottom: 22px;
}
.eyebrow__dot { width: 8px; height: 8px; border-radius: 50%; background: #29e08a; box-shadow: 0 0 0 4px rgba(41, 224, 138, 0.18); }

.hero__title {
  font-size: clamp(2.4rem, 5.4vw, 4rem); line-height: 1.04; font-weight: 800;
  letter-spacing: -0.035em; margin-bottom: 22px;
  background: linear-gradient(180deg, #ffffff 30%, #b9c0d6 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub { font-size: 1.15rem; color: var(--text-muted); max-width: 540px; }
.hero__sub strong { color: var(--text); font-weight: 600; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero__badges li {
  font-size: 0.82rem; color: var(--text-muted); font-weight: 500;
  padding: 6px 13px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
}
.hero__badges li::before { content: "✓"; color: var(--brand-3); margin-right: 7px; font-weight: 700; }

/* ---------- Hero visual: phone + chat ---------- */
.hero__visual { position: relative; display: grid; place-items: center; }
.visual-glow {
  position: absolute; inset: 6% 12%; z-index: -1;
  background: var(--grad); filter: blur(70px); opacity: 0.32; border-radius: 50%;
}
.phone {
  width: min(340px, 86%);
  background: linear-gradient(160deg, #15151f, #0b0b14);
  border: 1px solid var(--border-strong);
  border-radius: 38px; padding: 14px;
  box-shadow: var(--shadow);
  position: relative;
  animation: floatPhone 7s ease-in-out infinite;
}
@keyframes floatPhone { 50% { transform: translateY(-12px); } }
.phone__notch { width: 120px; height: 24px; background: #05050b; border-radius: 0 0 16px 16px; margin: -14px auto 12px; }

.chat { background: #0e0e17; border-radius: 26px; overflow: hidden; border: 1px solid var(--border); }
.chat__header {
  display: flex; align-items: center; gap: 11px; padding: 14px 16px;
  background: linear-gradient(120deg, rgba(124,92,255,0.16), rgba(34,211,238,0.10));
  border-bottom: 1px solid var(--border);
}
.chat__avatar { display: inline-flex; border-radius: 9px; overflow: hidden; }
.chat__meta strong { display: block; font-size: 0.96rem; }
.chat__meta small { color: #29e08a; font-size: 0.74rem; }

.chat__body { padding: 16px; display: flex; flex-direction: column; gap: 10px; min-height: 330px; }
.bubble {
  max-width: 82%; padding: 10px 14px; border-radius: 16px; font-size: 0.9rem; line-height: 1.45;
  opacity: 0; transform: translateY(8px); animation: bubbleIn 0.45s var(--ease) forwards;
}
.bubble--in { align-self: flex-start; background: #1c1c2a; border-bottom-left-radius: 5px; }
.bubble--out { align-self: flex-end; background: linear-gradient(120deg, #5b8def, #7c5cff); color: #fff; border-bottom-right-radius: 5px; }
.bubble--typing { display: inline-flex; gap: 4px; padding: 14px; }
.bubble--typing i { width: 7px; height: 7px; border-radius: 50%; background: #8a8fa6; animation: blink 1.2s infinite; }
.bubble--typing i:nth-child(2) { animation-delay: 0.2s; }
.bubble--typing i:nth-child(3) { animation-delay: 0.4s; }
@keyframes bubbleIn { to { opacity: 1; transform: translateY(0); } }
@keyframes blink { 0%, 60%, 100% { opacity: 0.3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

/* ---------- Trust strip ---------- */
.strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  padding: 22px; margin-top: 8px;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--surface); backdrop-filter: blur(8px);
}
.strip__item { display: flex; align-items: center; gap: 11px; color: var(--text-muted); font-size: 0.92rem; font-weight: 500; justify-content: center; text-align: center; }
.strip__icon { font-size: 1.25rem; }

/* ---------- Product ---------- */
.product { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 56px; align-items: center; }
.product__panel { padding: 22px; box-shadow: var(--shadow-glow); }
.codeline { display: flex; align-items: center; gap: 7px; padding-bottom: 14px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.codeline__dot { width: 11px; height: 11px; border-radius: 50%; background: #444; }
.codeline__dot--r { background: #ff5f57; } .codeline__dot--y { background: #febc2e; } .codeline__dot--g { background: #28c840; }
.codeline__title { margin-left: auto; font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; color: var(--text-dim); }

.agent-flow { display: flex; flex-direction: column; gap: 12px; }
.agent-flow li { display: flex; align-items: center; gap: 14px; font-size: 0.95rem; color: var(--text-muted); }
.agent-flow__tag {
  font-family: 'JetBrains Mono', monospace; font-size: 0.74rem; font-weight: 600;
  color: var(--brand-3); background: rgba(34, 211, 238, 0.10); border: 1px solid rgba(34, 211, 238, 0.25);
  padding: 4px 10px; border-radius: 7px; min-width: 64px; text-align: center;
}

.checklist { margin: 26px 0 30px; display: flex; flex-direction: column; gap: 13px; }
.checklist li { position: relative; padding-left: 34px; color: var(--text-muted); }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 22px; height: 22px; display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid var(--border); border-radius: 7px;
  color: var(--brand-3); font-weight: 800; font-size: 0.8rem;
}

/* ---------- Features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { padding: 28px 24px; transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s; }
.feature:hover { transform: translateY(-5px); border-color: var(--border-strong); background: var(--surface-2); }
.feature__icon {
  display: inline-grid; place-items: center; width: 50px; height: 50px; font-size: 1.5rem;
  background: var(--grad-soft); border: 1px solid var(--border); border-radius: 14px; margin-bottom: 18px;
}
.feature h3 { font-size: 1.16rem; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.01em; }
.feature p { color: var(--text-muted); font-size: 0.96rem; }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { position: relative; padding: 28px 22px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.step__num {
  font-family: 'JetBrains Mono', monospace; font-size: 1.05rem; font-weight: 600;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step h3 { font-size: 1.08rem; margin: 12px 0 8px; font-weight: 700; }
.step p { color: var(--text-muted); font-size: 0.92rem; }
.step::after {
  content: ""; position: absolute; top: 50%; right: -13px; width: 10px; height: 10px;
  border-top: 2px solid var(--border-strong); border-right: 2px solid var(--border-strong);
  transform: translateY(-50%) rotate(45deg);
}
.steps .step:last-child::after { display: none; }

/* ---------- CTA ---------- */
.cta-wrap { padding-bottom: clamp(80px, 12vw, 140px); }
.cta { position: relative; overflow: hidden; text-align: center; padding: clamp(40px, 6vw, 72px) 28px; }
.cta__glow { position: absolute; inset: -50% 20% auto; height: 240px; background: var(--grad); filter: blur(90px); opacity: 0.25; }
.cta .section__title { position: relative; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 30px; position: relative; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding-block: 48px 30px; margin-top: 20px; background: rgba(5,5,11,0.5); }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; padding-bottom: 30px; border-bottom: 1px solid var(--border); }
.footer__tag { color: var(--text-muted); font-size: 0.92rem; margin-top: 12px; max-width: 320px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.footer__links a { color: var(--text-muted); font-size: 0.94rem; transition: color 0.2s; }
.footer__links a:hover { color: var(--text); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 22px; color: var(--text-dim); font-size: 0.86rem; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { order: -1; }
  .product { grid-template-columns: 1fr; gap: 36px; }
  .product__media { order: 2; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
  .strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav__toggle { display: flex; }
  .nav__menu {
    position: fixed; inset: 72px 0 auto; flex-direction: column; align-items: stretch; gap: 8px;
    padding: 20px 24px 28px; background: rgba(10, 10, 20, 0.98); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: 0.3s var(--ease);
  }
  .nav__menu.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__menu > a { padding: 10px 4px; font-size: 1.05rem; }
  .lang-switch { align-self: flex-start; }
  .nav__menu .btn { margin-top: 6px; }
}

@media (max-width: 560px) {
  .feature-grid, .steps, .strip { grid-template-columns: 1fr; }
  .hero__actions .btn, .cta__actions .btn { flex: 1 1 auto; }
  .footer__inner { flex-direction: column; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   Company page additions (/) — brand suffix, constellation,
   projects grid.
   ============================================================ */

/* ---------- Brand suffix (corp page: "ABT / corp") ---------- */
.brand__sep { color: var(--text-dim); font-weight: 400; margin: 0 -3px; }
.brand__sub { font-weight: 700; color: var(--text-muted); font-size: 1.05rem; letter-spacing: -0.01em; }

/* ---------- Agent constellation (company hero visual) ---------- */
.constellation { position: relative; width: min(430px, 94%); aspect-ratio: 1 / 1; display: grid; place-items: center; }
.constellation svg { overflow: visible; }
.cnode { transform-box: fill-box; transform-origin: center; animation: nodePulse 4s var(--ease) infinite; }
.cnode--b { animation-delay: .3s; }
.cnode--c { animation-delay: .9s; }
.cnode--d { animation-delay: 1.3s; }
.cnode--e { animation-delay: .6s; }
.cnode--corp { transform-box: fill-box; transform-origin: center; animation: corpFloat 6s var(--ease) infinite; }
.constellation__core { transform-box: fill-box; transform-origin: center; animation: coreBreath 5s var(--ease) infinite; }
.flow { stroke-dasharray: 5 7; animation: flowMove 2.6s linear infinite; }
.flow--2 { animation-duration: 3.4s; }
.flow--3 { animation-duration: 4.2s; }

@keyframes nodePulse { 0%, 100% { transform: translateY(0); opacity: .82; } 50% { transform: translateY(-6px); opacity: 1; } }
@keyframes corpFloat { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(4px, -8px); } }
@keyframes coreBreath { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.045); } }
@keyframes flowMove { to { stroke-dashoffset: -24; } }

/* ---------- Projects grid ---------- */
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.project-card { display: flex; flex-direction: column; gap: 14px; padding: 26px 24px; color: inherit; transition: transform .3s var(--ease), border-color .3s, background .3s; }
a.project-card:hover { transform: translateY(-6px); border-color: var(--border-strong); background: var(--surface-2); }
.project-card__head { display: flex; align-items: center; gap: 13px; }
.project-card__logo { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; flex: none; }
.project-card__logo--ghost { font-size: 1.35rem; background: var(--grad-soft); border: 1px solid var(--border); }
.project-card__title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.project-card__title strong { font-size: 1.2rem; letter-spacing: -0.01em; }
.badge { font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.badge--live { color: #29e08a; background: rgba(41, 224, 138, .12); border: 1px solid rgba(41, 224, 138, .3); }
.badge--soon { color: var(--text-muted); background: var(--surface-2); border: 1px solid var(--border); }
.project-card__desc { color: var(--text-muted); font-size: .98rem; }
.project-card__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.project-card__tags li { font-size: .78rem; color: var(--text-muted); padding: 4px 10px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); }
.project-card__link { margin-top: auto; display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--brand-2); padding-top: 4px; }
.project-card__link svg { transition: transform .2s var(--ease); }
a.project-card:hover .project-card__link svg { transform: translateX(3px); }
.project-card__link--muted { color: var(--text-dim); }
.project-card--soon { opacity: .9; }
.project-card--cta { border-style: dashed; }

@media (max-width: 960px) { .project-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .project-grid { grid-template-columns: 1fr; } }

/* ---------- Auth popover (names page) ---------- */
.auth { position: relative; }

.auth-pop {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 290px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 80;
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-glow);
}
.auth-pop[hidden] { display: none; }

.auth-pop__label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.auth-pop__input {
  width: 100%;
  padding: 9px 12px;
  font: inherit;
  font-size: 0.92rem;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.2s;
}
.auth-pop__input::placeholder { color: var(--text-dim); }
.auth-pop__input:focus { border-color: var(--brand-2); }

.auth-pop__captcha { display: flex; flex-direction: column; gap: 8px; }
.auth-pop__captcha-row { display: flex; align-items: center; gap: 8px; }
.auth-pop__captcha-row img {
  flex: 1;
  min-height: 44px;
  background: #fff;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.auth-pop__refresh {
  flex: none;
  width: 36px;
  height: 36px;
  font-size: 1.1rem;
  color: var(--text-muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.auth-pop__refresh:hover { color: var(--text); border-color: var(--border-strong); }

.auth-pop__msg {
  font-size: 0.82rem;
  line-height: 1.45;
  color: #ff8d9d;
}
.auth-pop__msg.is-ok { color: #5fe3b1; }

.auth-pop__actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.auth-pop__actions .btn { flex: 1; justify-content: center; }

.auth-pop .btn[disabled] { opacity: 0.55; pointer-events: none; }

@media (max-width: 760px) {
  .auth { width: 100%; }
  .auth .btn { width: 100%; justify-content: center; }
  .auth-pop { position: static; width: 100%; margin-top: 10px; }
}

/* Account mode: toggle shows the (truncated) login; menu is a compact dropdown */
.auth-pop--menu { width: 200px; gap: 8px; }
.auth-pop--menu .btn { width: 100%; justify-content: center; }
@media (max-width: 760px) {
  .auth-pop--menu { width: 100%; }
}
