/**
 * Al-Bashayer — Auth Pages
 * "Dar Al-Rashid" design system  ·  dark forest + burnished gold
 *
 * Applies to: /login/ · /register/ · /reset-password/ · /verify-email/
 *
 * @package AlBashayer\Auth
 */

/* ── Design tokens ───────────────────────────────────────────────────────────── */
:root {
  --dr-auth-bg:        #060D09;
  --dr-auth-card:      rgba(11, 28, 18, 0.96);
  --dr-auth-border:    rgba(200, 168, 75, 0.22);
  --dr-auth-border-hi: rgba(200, 168, 75, 0.5);
  --dr-gold:           #C8A84B;
  --dr-gold-dim:       rgba(200, 168, 75, 0.12);
  --dr-text:           #F2EAD6;
  --dr-text-dim:       rgba(242, 234, 214, 0.62);
  --dr-text-muted:     rgba(242, 234, 214, 0.38);
  --dr-input-bg:       rgba(6, 13, 9, 0.65);
  --dr-input-border:   rgba(200, 168, 75, 0.2);
  --dr-input-focus:    rgba(200, 168, 75, 0.55);
  --dr-error:          rgba(239, 68, 68, 0.9);
  --dr-success:        rgba(34, 197, 94, 0.9);
}

/* ── Wrapper — full-bleed dark section ───────────────────────────────────────── */
.ab-auth-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 64px - 58px); /* viewport minus nav (64px) minus footer-bar (~58px) */
  padding: 2.5rem 1.25rem;
  background: var(--dr-auth-bg);
  overflow: hidden;
}

/* When rendered inside the old theme (non-auth page template), break out of content padding */
body:not(.ab-auth-page) .ab-auth-wrapper {
  min-height: 80vh;
  margin-inline: calc(-1 * var(--wp--style--root--padding-right, 2rem));
  width: calc(100% + var(--wp--style--root--padding-right, 2rem) + var(--wp--style--root--padding-left, 2rem));
}

@supports not (margin-inline: 0) {
  body:not(.ab-auth-page) .ab-auth-wrapper {
    margin-left: -2rem;
    margin-right: -2rem;
    width: calc(100% + 4rem);
  }
}

/* Islamic star background pattern */
.ab-auth-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cpolygon points='40,2 44.7,27.6 63.3,16.7 52.4,35.3 78,40 52.4,44.7 63.3,63.3 44.7,52.4 40,78 35.3,52.4 16.7,63.3 27.6,44.7 2,40 27.6,35.3 16.7,16.7 35.3,27.6' fill='none' stroke='%23C8A84B' stroke-width='.5' opacity='.18'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* Ambient glow orbs */
.ab-auth-wrapper::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,168,75,.07) 0%, transparent 65%);
  top: -120px;
  right: -100px;
  pointer-events: none;
  z-index: 0;
  animation: authOrbFloat 8s ease-in-out infinite;
}

@keyframes authOrbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%       { transform: translate(-20px, 20px) scale(1.08); }
}

/* ── Auth Card ────────────────────────────────────────────────────────────────── */
.ab-auth-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  background: var(--dr-auth-card);
  border: 1px solid var(--dr-auth-border);
  border-radius: 1.375rem;
  padding: 2.5rem 2.25rem 2rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 0 0 1px rgba(200,168,75,.06),
    0 4px 6px rgba(0,0,0,.3),
    0 20px 60px rgba(0,0,0,.5),
    inset 0 1px 0 rgba(200,168,75,.1);
  animation: authCardIn .45s cubic-bezier(.22,1,.36,1) both;
}

@keyframes authCardIn {
  from { opacity: 0; transform: translateY(18px) scale(.97); }
  to   { opacity: 1; transform: translateY(0)     scale(1);   }
}

/* Gold top-edge accent */
.ab-auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--dr-gold) 50%, transparent);
  border-radius: 0 0 1px 1px;
}

@media (max-width: 540px) {
  .ab-auth-card {
    padding: 2rem 1.25rem 1.5rem;
    border-radius: 1.1rem;
    max-width: 100%;
  }
}

/* ── Header ──────────────────────────────────────────────────────────────────── */
.ab-auth-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.ab-auth-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  margin-bottom: .75rem;
}

/* Replace emoji with Islamic star SVG ornament */
.ab-auth-logo-icon {
  font-size: 0; /* hide emoji text */
  display: block;
  width: 52px;
  height: 52px;
  background: var(--dr-gold-dim);
  border: 1px solid var(--dr-auth-border);
  border-radius: 50%;
  position: relative;
  animation: authOrnSpin 25s linear infinite;
}

.ab-auth-logo-icon::after {
  content: '';
  position: absolute;
  inset: 6px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpolygon points='20,1 23,14 32,8 26,18 39,20 26,22 32,32 23,26 20,39 17,26 8,32 14,22 1,20 14,18 8,8 17,14' fill='none' stroke='%23C8A84B' stroke-width='1.1' opacity='.9'/%3E%3Ccircle cx='20' cy='20' r='3' fill='%23C8A84B' opacity='.75'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

@keyframes authOrnSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.ab-auth-title {
  font-family: 'Amiri', 'Cormorant Garamond', serif;
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--dr-text);
  margin: 0 0 .35rem;
  line-height: 1.25;
  letter-spacing: .01em;
}

[dir="ltr"] .ab-auth-title {
  font-family: 'Cormorant Garamond', 'Amiri', serif;
  font-size: 1.75rem;
}

.ab-auth-subtitle {
  font-size: .875rem;
  color: var(--dr-text-dim);
  margin: 0;
  line-height: 1.6;
}

/* ── Auth page body baseline ─────────────────────────────────────────────────── */
body.ab-auth-page {
  margin: 0;
  padding: 0;
  background: var(--dr-auth-bg);
  color: var(--dr-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.ab-auth-page .ab-auth-wrapper {
  flex: 1;
  /* No negative margins needed — auth pages have no theme content padding */
  margin-inline: 0;
  width: 100%;
}

/* ── Auth nav ────────────────────────────────────────────────────────────────── */
.ab-auth-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 2rem;
  height: 64px;
  background: rgba(6, 13, 9, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(200, 168, 75, .12);
}

.ab-auth-nav__logo {
  display: flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  flex-shrink: 0;
}

.ab-auth-nav__star {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.ab-auth-nav__brand {
  font-family: 'Amiri', 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dr-text);
  letter-spacing: .02em;
}

[dir="ltr"] .ab-auth-nav__brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
}

.ab-auth-nav__label {
  font-size: .82rem;
  font-weight: 500;
  color: var(--dr-text-muted);
  letter-spacing: .06em;
  text-transform: uppercase;
}

@media (max-width: 560px) {
  .ab-auth-nav__label { display: none; }
}

.ab-auth-nav__end {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.ab-auth-nav__back {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .82rem;
  color: var(--dr-text-dim);
  text-decoration: none;
  transition: color .15s ease;
}

.ab-auth-nav__back:hover { color: var(--dr-gold); }

.ab-auth-nav__lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 28px;
  border: 1px solid var(--dr-auth-border);
  border-radius: .35rem;
  font-size: .75rem;
  font-weight: 700;
  color: var(--dr-text-dim);
  text-decoration: none;
  letter-spacing: .06em;
  transition: border-color .15s ease, color .15s ease;
}

.ab-auth-nav__lang:hover {
  border-color: var(--dr-gold);
  color: var(--dr-gold);
}

/* ── Auth footer bar ─────────────────────────────────────────────────────────── */
.ab-auth-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  padding: 1.1rem 2rem;
  border-top: 1px solid rgba(200, 168, 75, .1);
  background: rgba(6, 13, 9, .7);
}

.ab-auth-footer-bar__copy {
  font-size: .775rem;
  color: var(--dr-text-muted);
  margin: 0;
}

.ab-auth-footer-bar__links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.ab-auth-footer-bar__links a {
  font-size: .775rem;
  color: var(--dr-text-muted);
  text-decoration: none;
  transition: color .15s ease;
}

.ab-auth-footer-bar__links a:hover { color: var(--dr-gold); }

@media (max-width: 540px) {
  .ab-auth-footer-bar {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
  }
}

/* ── Social auth buttons ─────────────────────────────────────────────────────── */
.ab-social-auth {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-bottom: 1.5rem;
}

/* 3-column grid: Google · Facebook · Apple */
.ab-social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .6rem;
}

@media (max-width: 400px) {
  .ab-social-grid {
    grid-template-columns: 1fr;
  }
}

/* Admin notice inside the card */
.ab-auth-admin-notice {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  padding: .6rem .8rem;
  background: rgba(200, 168, 75, .07);
  border: 1px solid rgba(200, 168, 75, .2);
  border-radius: .5rem;
  font-size: .78rem;
  color: rgba(200, 168, 75, .85);
  line-height: 1.5;
}

.ab-auth-admin-notice svg {
  flex-shrink: 0;
  margin-top: .1rem;
}

.ab-auth-admin-notice a {
  color: var(--dr-gold);
  text-decoration: underline;
  white-space: nowrap;
}

/* Deprecated — kept for compat */
.ab-social-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .65rem;
}

/* Base social button */
.ab-btn-social {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  width: 100%;
  padding: .75rem .5rem;
  border-radius: .65rem;
  font-size: .78rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  border: 1px solid transparent;
  white-space: nowrap;
  overflow: hidden;
  text-align: center;
}

.ab-btn-social__icon {
  display: block;
  flex-shrink: 0;
}

.ab-btn-social__label {
  display: block;
  font-size: .72rem;
  letter-spacing: .01em;
}

.ab-btn-social:hover {
  transform: translateY(-1px);
}

.ab-btn-social:active {
  transform: translateY(0);
}

/* Google */
.ab-btn-google {
  background: #fff;
  color: #1f1f1f;
  border-color: rgba(255,255,255,.15);
  box-shadow: 0 1px 3px rgba(0,0,0,.35);
}

.ab-btn-google:hover {
  background: #f8f8f8;
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
}

/* Facebook */
.ab-btn-facebook {
  background: #1877F2;
  color: #fff;
  border-color: rgba(255,255,255,.1);
  box-shadow: 0 1px 3px rgba(0,0,0,.35);
}

.ab-btn-facebook:hover {
  background: #1461CC;
  box-shadow: 0 4px 12px rgba(24,119,242,.4);
}

/* Apple */
.ab-btn-apple {
  background: #fff;
  color: #000;
  border-color: rgba(255,255,255,.12);
  box-shadow: 0 1px 3px rgba(0,0,0,.35);
}

.ab-btn-apple:hover {
  background: #f0f0f0;
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
}

/* Twitter / X */
.ab-btn-twitter {
  background: #000;
  color: #fff;
  border-color: rgba(255,255,255,.12);
  box-shadow: 0 1px 3px rgba(0,0,0,.4);
}

.ab-btn-twitter:hover {
  background: #111;
  box-shadow: 0 4px 12px rgba(0,0,0,.45);
}

/* Disabled social button (not yet configured) */
.ab-btn-social--disabled {
  opacity: .45;
  cursor: not-allowed;
  pointer-events: none;
}

.ab-btn-social svg,
.ab-btn-social img {
  flex-shrink: 0;
}

/* ── Divider ─────────────────────────────────────────────────────────────────── */
.ab-auth-divider {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin: 0 0 1.5rem;
}

.ab-auth-divider::before,
.ab-auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200,168,75,.25), transparent);
}

.ab-auth-divider span {
  font-size: .78rem;
  font-weight: 500;
  color: var(--dr-text-muted);
  white-space: nowrap;
  padding: 0 .1rem;
}

/* ── Form ────────────────────────────────────────────────────────────────────── */
.ab-auth-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ab-form-group {
  position: relative;
  margin-bottom: 1.1rem;
}

/* Floating label style (mirrors wizard-dr.css) */
.ab-form-group .ab-label {
  display: block;
  font-size: .82rem;
  font-weight: 500;
  color: var(--dr-text-dim);
  margin-bottom: .4rem;
  transition: color .15s ease;
}

.ab-input {
  width: 100%;
  padding: .8rem 1rem;
  background: var(--dr-input-bg);
  border: 1px solid var(--dr-input-border);
  border-radius: .55rem;
  color: var(--dr-text);
  font-size: .9375rem;
  font-family: inherit;
  transition: border-color .2s ease, box-shadow .2s ease;
  box-sizing: border-box;
  outline: none;
  -webkit-appearance: none;
}

.ab-input::placeholder {
  color: var(--dr-text-muted);
}

.ab-input:focus {
  border-color: var(--dr-input-focus);
  box-shadow: 0 0 0 3px rgba(200,168,75,.1);
}

.ab-input--error {
  border-color: var(--dr-error) !important;
  box-shadow: 0 0 0 3px rgba(239,68,68,.1) !important;
}

/* Autocomplete fill — dark override */
.ab-input:-webkit-autofill,
.ab-input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #0b1c12 inset !important;
  -webkit-text-fill-color: #F2EAD6 !important;
  caret-color: #F2EAD6;
}

.ab-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .85rem;
}

@media (max-width: 480px) {
  .ab-form-row { grid-template-columns: 1fr; }
}

/* ── Password toggle ─────────────────────────────────────────────────────────── */
.ab-input-wrapper {
  position: relative;
}

.ab-input-wrapper .ab-input {
  padding-inline-end: 2.8rem;
}

.ab-toggle-password {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-end: .75rem;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: .25rem;
  color: var(--dr-text-muted);
  display: flex;
  align-items: center;
  transition: color .15s ease;
  line-height: 1;
  font-size: 0; /* hide emoji fallback */
}

.ab-toggle-password:hover {
  color: var(--dr-gold);
}

/* Replace emoji with SVG via content-after trick — handled in template */

/* ── Remember / forgot row ───────────────────────────────────────────────────── */
.ab-flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  flex-wrap: wrap;
}

.ab-checkbox {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  cursor: pointer;
  font-size: .85rem;
  color: var(--dr-text-dim);
  user-select: none;
}

.ab-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--dr-gold);
  cursor: pointer;
  flex-shrink: 0;
}

.ab-auth-link {
  font-size: .82rem;
  color: var(--dr-gold);
  text-decoration: none;
  font-weight: 500;
  transition: color .15s ease;
}

.ab-auth-link:hover {
  color: #e0bf6a;
  text-decoration: underline;
}

/* ── Buttons ─────────────────────────────────────────────────────────────────── */
.ab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .7rem 1.5rem;
  border-radius: .55rem;
  font-weight: 600;
  font-size: .9375rem;
  cursor: pointer;
  transition: background .2s ease, box-shadow .2s ease, transform .15s ease;
  border: none;
  text-decoration: none;
  line-height: 1.3;
}

.ab-btn-primary {
  background: linear-gradient(135deg, #C8A84B 0%, #a8852e 100%);
  color: #060D09;
  box-shadow: 0 2px 12px rgba(200,168,75,.35);
}

.ab-btn-primary:hover {
  background: linear-gradient(135deg, #d4b45f 0%, #b89238 100%);
  box-shadow: 0 4px 20px rgba(200,168,75,.5);
  transform: translateY(-1px);
}

.ab-btn-primary:active {
  transform: translateY(0);
}

.ab-btn-primary:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
}

.ab-btn-block {
  width: 100%;
  justify-content: center;
  padding-block: .9rem;
  font-size: 1rem;
  margin-top: 1.25rem;
}

.ab-btn-loading {
  display: none;
}

.ab-btn--loading .ab-btn-text { display: none; }
.ab-btn--loading .ab-btn-loading { display: inline-flex; align-items: center; gap: .5rem; }

/* Loading spinner */
.ab-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(6,13,9,.3);
  border-top-color: #060D09;
  border-radius: 50%;
  animation: abSpin .7s linear infinite;
}

@keyframes abSpin { to { transform: rotate(360deg); } }

/* ── Password strength ───────────────────────────────────────────────────────── */
.ab-password-strength {
  margin-top: .45rem;
  height: 3px;
  border-radius: 2px;
  background: rgba(242,234,214,.1);
  overflow: hidden;
}

.ab-password-strength .ab-strength-bar {
  height: 100%;
  border-radius: 2px;
  transition: width .3s ease, background .3s ease;
}

.ab-strength-0 { width: 0; }
.ab-strength-1 { width: 20%; background: #ef4444; }
.ab-strength-2 { width: 40%; background: #f97316; }
.ab-strength-3 { width: 60%; background: #eab308; }
.ab-strength-4 { width: 80%; background: #22c55e; }
.ab-strength-5 { width: 100%; background: #16a34a; }

.ab-strength-label {
  font-size: .73rem;
  margin-top: .25rem;
  font-weight: 500;
  color: var(--dr-text-dim);
}

/* ── Radio groups ────────────────────────────────────────────────────────────── */
.ab-radio-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.ab-radio {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  cursor: pointer;
  font-size: .875rem;
  color: var(--dr-text-dim);
}

.ab-radio input[type="radio"] {
  accent-color: var(--dr-gold);
  width: 16px;
  height: 16px;
}

/* ── Messages ────────────────────────────────────────────────────────────────── */
.ab-auth-message {
  margin-top: 1rem;
  padding: .7rem 1rem;
  border-radius: .55rem;
  font-size: .85rem;
  font-weight: 500;
  text-align: center;
  display: none;
}

.ab-auth-message[style*="display: block"],
.ab-auth-message:not([style*="display: none"]):not([style*="display:none"]) {
  display: block;
}

.ab-auth-error {
  background: rgba(239,68,68,.12);
  color: #fca5a5;
  border: 1px solid rgba(239,68,68,.3);
}

.ab-auth-success {
  background: rgba(34,197,94,.12);
  color: #86efac;
  border: 1px solid rgba(34,197,94,.3);
}

/* ── Footer ──────────────────────────────────────────────────────────────────── */
.ab-auth-footer {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(200,168,75,.12);
  text-align: center;
}

.ab-auth-footer p {
  font-size: .875rem;
  color: var(--dr-text-dim);
  margin: 0;
}

/* ── Terms checkbox (registration) ──────────────────────────────────────────── */
.ab-checkbox a {
  color: var(--dr-gold);
  text-decoration: underline;
}

/* ── Field error text ────────────────────────────────────────────────────────── */
.ab-field-error {
  display: block;
  font-size: .75rem;
  color: #fca5a5;
  margin-top: .3rem;
}

/* ── Select input ────────────────────────────────────────────────────────────── */
.ab-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%23C8A84B' stroke-width='1.5' stroke-linecap='round' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 1rem center;
  padding-left: 2.5rem;
}

[dir="ltr"] .ab-select {
  background-position: right 1rem center;
  padding-left: 1rem;
  padding-right: 2.5rem;
}

/* ── Toast notification ──────────────────────────────────────────────────────── */
.ab-auth-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(60px);
  background: rgba(11,28,18,.97);
  border: 1px solid var(--dr-auth-border);
  border-radius: .6rem;
  padding: .75rem 1.5rem;
  font-size: .875rem;
  color: var(--dr-text);
  z-index: 9999;
  box-shadow: 0 8px 32px rgba(0,0,0,.5);
  transition: transform .3s cubic-bezier(.22,1,.36,1);
  pointer-events: none;
  white-space: nowrap;
}

.ab-auth-toast--show {
  transform: translateX(-50%) translateY(0);
}

.ab-auth-toast--error { border-color: rgba(239,68,68,.4); color: #fca5a5; }
.ab-auth-toast--success { border-color: rgba(34,197,94,.4); color: #86efac; }

/* ── Animations ──────────────────────────────────────────────────────────────── */
@keyframes ab-fade-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes ab-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .5; }
}
