/* ============================================================
   eSTO.AutoSerwis — Main Stylesheet
   Black / Red / Sporty Minimal
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Barlow:wght@300;400;500;600;700&family=Barlow+Condensed:wght@400;600;700&display=swap');

/* ── CSS Variables ────────────────────────────────────────── */
:root {
  --black:       #080808;
  --black-2:     #111111;
  --black-3:     #1a1a1a;
  --black-4:     #242424;
  --red:         #d42020;
  --red-dark:    #a81818;
  --red-glow:    rgba(212, 32, 32, 0.15);
  --white:       #f5f5f5;
  --white-dim:   #aaaaaa;
  --white-faint: #555555;
  --border:      rgba(255,255,255,0.07);
  --border-red:  rgba(212, 32, 32, 0.4);

  --font-display: 'Bebas Neue', sans-serif;
  --font-condensed: 'Barlow Condensed', sans-serif;
  --font-body:    'Barlow', sans-serif;

  --nav-h: 72px;
  --radius: 4px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --max-w: 1200px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ── Utility ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section-label {
  font-family: var(--font-condensed);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--red);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--white);
  margin-bottom: 20px;
}

.section-sub {
  font-size: 16px;
  color: var(--white-dim);
  max-width: 520px;
  line-height: 1.7;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-condensed);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: var(--radius);
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  border: 2px solid var(--red);
}
.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--red-glow);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--white);
  transform: translateY(-2px);
}

/* Red line divider */
.divider-red {
  width: 48px;
  height: 3px;
  background: var(--red);
  margin: 20px 0;
}

/* ── NAVIGATION ───────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  background: rgba(8, 8, 8, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.nav.scrolled {
  border-bottom-color: var(--border-red);
  box-shadow: 0 4px 32px rgba(0,0,0,0.5);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--red);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 18px;
  color: white;
  letter-spacing: 0;
}
.nav-logo-text {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.05em;
  line-height: 1;
}
.nav-logo-text span { color: var(--red); }

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

.nav-links a {
  font-family: var(--font-condensed);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-dim);
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: var(--transition);
  position: relative;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(255,255,255,0.05);
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 14px; right: 14px;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
}

/* Language switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--black-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3px;
  flex-shrink: 0;
}

.lang-btn {
  font-family: var(--font-condensed);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--white-faint);
  padding: 5px 8px;
  border-radius: 2px;
  transition: var(--transition);
  cursor: pointer;
}
.lang-btn:hover { color: var(--white); background: var(--black-4); }
.lang-btn.active {
  background: var(--red);
  color: var(--white);
}

/* CTA button in nav */
.nav-cta {
  display: none;
}
@media (min-width: 900px) {
  .nav-cta { display: inline-flex; }
}

/* Hamburger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: var(--black-2);
  border-bottom: 2px solid var(--red);
  padding: 24px;
  z-index: 999;
  flex-direction: column;
  gap: 4px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-family: var(--font-condensed);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white-dim);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.nav-mobile a:hover { color: var(--white); padding-left: 8px; }
.nav-mobile .lang-switcher {
  margin-top: 16px;
  align-self: flex-start;
}
.nav-mobile .btn-primary {
  margin-top: 16px;
  align-self: stretch;
  justify-content: center;
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-cta { display: none !important; }
  .nav-lang-desktop { display: none; }
}
@media (min-width: 901px) {
  .nav-mobile { display: none !important; }
}

/* ── FOOTER ───────────────────────────────────────────────── */
.footer {
  background: var(--black-2);
  border-top: 1px solid var(--border);
  padding-top: 72px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border);
}

.footer-brand .nav-logo { margin-bottom: 20px; }
.footer-brand p {
  font-size: 14px;
  color: var(--white-dim);
  line-height: 1.7;
  max-width: 280px;
}

.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}
.footer-social-link {
  width: 38px;
  height: 38px;
  background: var(--black-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white-dim);
  font-size: 16px;
  transition: var(--transition);
}
.footer-social-link:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-col h4 {
  font-family: var(--font-condensed);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--red);
  display: inline-block;
}

.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a {
  font-size: 14px;
  color: var(--white-dim);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-col ul a::before {
  content: '›';
  color: var(--red);
  font-size: 16px;
}
.footer-col ul a:hover { color: var(--white); padding-left: 4px; }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}
.footer-contact-icon {
  width: 32px;
  height: 32px;
  background: var(--red-glow);
  border: 1px solid var(--border-red);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 2px;
}
.footer-contact-item p {
  font-size: 13px;
  color: var(--white-dim);
  line-height: 1.5;
}
.footer-contact-item a {
  font-size: 13px;
  color: var(--white-dim);
  transition: var(--transition);
}
.footer-contact-item a:hover { color: var(--red); }

.footer-bottom {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p {
  font-size: 12px;
  color: var(--white-faint);
}
.footer-bottom a {
  font-size: 12px;
  color: var(--white-faint);
  transition: var(--transition);
}
.footer-bottom a:hover { color: var(--white); }
.footer-bottom-links {
  display: flex;
  gap: 20px;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ── Page header (inner pages) ────────────────────────────── */
.page-hero {
  padding: 140px 0 72px;
  background: var(--black-2);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(135deg, transparent 40%, var(--red-glow) 100%);
  pointer-events: none;
}
.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 96px);
  line-height: 0.9;
  letter-spacing: 0.02em;
}
.page-hero-title span { color: var(--red); }

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--black-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
  overflow: hidden;
}
.card:hover {
  border-color: var(--border-red);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 0 1px var(--border-red);
  transform: translateY(-4px);
}

/* ── Forms ────────────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-group label {
  font-family: var(--font-condensed);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white-dim);
}
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--black-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--white);
  padding: 14px 16px;
  font-size: 15px;
  transition: var(--transition);
  outline: none;
  width: 100%;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--white-faint); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--red);
  background: var(--black-4);
  box-shadow: 0 0 0 3px var(--red-glow);
}
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23aaa' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.form-group select option { background: var(--black-3); }

/* ── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--black-4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--red); }

/* ── Animations ───────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-32px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(32px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.5; }
  50%      { opacity: 1; }
}

.anim-fadeup  { animation: fadeUp 0.7s ease both; }
.anim-fadein  { animation: fadeIn 0.6s ease both; }
.anim-slideleft  { animation: slideInLeft 0.7s ease both; }
.anim-slideright { animation: slideInRight 0.7s ease both; }
.anim-scalein    { animation: scaleIn 0.6s ease both; }

/* Stagger delays */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }
.delay-7 { animation-delay: 0.7s; }

/* ── Page-hero grid overlay (shared across pages) ────────── */
.page-hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}
.page-hero-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 70% at 80% 50%, rgba(212,32,32,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 60% at 10% 80%, rgba(212,32,32,0.04) 0%, transparent 50%);
  z-index: 0;
  pointer-events: none;
}
.page-hero .container,
.page-hero .section-label,
.page-hero .page-hero-title,
.page-hero .section-sub { position: relative; z-index: 1; }

/* ── Section divider line ────────────────────────────────── */
.section-divider {
  width: 60px; height: 3px;
  background: linear-gradient(to right, var(--red), transparent);
  border-radius: 2px;
  margin-bottom: 24px;
}

/* ── Cookie Banner ────────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: min(620px, calc(100vw - 32px));
  background: var(--black-2);
  border: 1px solid var(--border-red);
  border-radius: 6px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  z-index: 9999;
  box-shadow: 0 8px 48px rgba(0,0,0,0.6);
  flex-wrap: wrap;
}
.cookie-banner p {
  font-size: 13px;
  color: var(--white-dim);
  flex: 1;
  min-width: 200px;
}
.cookie-banner a { color: var(--red); }
.cookie-banner-btns { display: flex; gap: 10px; }
.cookie-banner.hidden { display: none; }

/* ── Toast notification ──────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: var(--black-2);
  border: 1px solid var(--border-red);
  border-left: 4px solid var(--red);
  padding: 16px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--white);
  z-index: 9999;
  transform: translateX(120%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 320px;
}
.toast.show { transform: translateX(0); }

/* ── Footer legal strip ───────────────────────────────────── */
.footer-legal {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  margin-bottom: 0;
}
.footer-legal-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  align-items: center;
}
.footer-legal-inner span {
  font-size: 12px;
  color: rgba(255,255,255,0.25);
  font-weight: 400;
  white-space: nowrap;
}
.footer-legal-inner strong {
  font-weight: 400;
  color: rgba(255,255,255,0.25);
}
.footer-legal-inner a {
  color: rgba(255,255,255,0.25);
  transition: var(--transition);
}
.footer-legal-inner a:hover { color: var(--red); }

/* ── Logo image ───────────────────────────────────────────── */
.nav-logo-img {
  height: 56px;
  width: 56px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

/* ══════════════════════════════════════════════════════════════
   MOBILE STICKY CTA BAR
   ══════════════════════════════════════════════════════════════ */
.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 900;
  background: var(--black-2);
  border-top: 1px solid var(--border);
  padding: 10px 16px;
  gap: 10px;
  align-items: center;
  justify-content: center;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 -8px 32px rgba(0,0,0,0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.mobile-cta-bar.visible { transform: translateY(0); }
.mobile-cta-bar .cta-phone {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-condensed);
  font-size: 15px; font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--white);
  text-decoration: none;
  padding: 10px 16px;
  background: var(--black-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
  white-space: nowrap;
}
.mobile-cta-bar .cta-phone:hover { border-color: var(--border-red); }
.mobile-cta-bar .cta-phone svg { flex-shrink: 0; }
.mobile-cta-bar .btn { white-space: nowrap; flex: 1; justify-content: center; padding: 12px 20px; }
@media (max-width: 768px) {
  .mobile-cta-bar { display: flex; }
  /* Push footer up so bar doesn't cover content */
  body { padding-bottom: 68px; }
}

/* ══════════════════════════════════════════════════════════════
   SERVICES PAGE — STICKY SECTION NAV
   ══════════════════════════════════════════════════════════════ */
.service-nav {
  position: sticky;
  top: var(--nav-h);
  z-index: 40;
  background: var(--black);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}
.service-nav.scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}
.service-nav-inner {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 20px;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}
.service-nav-inner::-webkit-scrollbar { display: none; }
.service-nav-link {
  font-family: var(--font-condensed);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white-dim);
  padding: 14px 16px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
  text-decoration: none;
  display: block;
  flex-shrink: 0;
}
.service-nav-link:hover {
  color: var(--white);
}
.service-nav-link.active {
  color: var(--red);
  border-bottom-color: var(--red);
}

/* ══════════════════════════════════════════════════════════════
   MICRO-INTERACTIONS
   ══════════════════════════════════════════════════════════════ */

/* ── Form shake on validation error ─────────────────────────── */
@keyframes formShake {
  0%, 100% { transform: translateX(0); }
  15%      { transform: translateX(-6px); }
  30%      { transform: translateX(5px); }
  45%      { transform: translateX(-4px); }
  60%      { transform: translateX(3px); }
  75%      { transform: translateX(-2px); }
}
.shake {
  animation: formShake 0.5s ease;
}

/* ── Input error glow ───────────────────────────────────────── */
.form-group input.input-error,
.form-group select.input-error {
  border-color: var(--red) !important;
  box-shadow: 0 0 0 3px var(--red-glow) !important;
  animation: formShake 0.45s ease;
}

/* ── Submit button states ───────────────────────────────────── */
@keyframes btnSuccess {
  0%   { transform: scale(1); }
  40%  { transform: scale(0.95); }
  70%  { transform: scale(1.03); }
  100% { transform: scale(1); }
}
@keyframes btnPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212,32,32,0.4); }
  50%      { box-shadow: 0 0 0 10px rgba(212,32,32,0); }
}
.btn-success-anim {
  animation: btnSuccess 0.5s ease !important;
  background: #00c864 !important;
  border-color: #00c864 !important;
}
.btn-loading {
  pointer-events: none;
  opacity: 0.7;
}
.btn-loading::after {
  content: '';
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-left: 8px;
  vertical-align: middle;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Status badge pulse in admin ────────────────────────────── */
@keyframes badgePulse {
  0%   { transform: scale(1); opacity: 1; }
  50%  { transform: scale(1.15); opacity: 0.8; }
  100% { transform: scale(1); opacity: 1; }
}
.s-badge.just-changed {
  animation: badgePulse 0.5s ease;
}

/* ── Toast slide-in enhancement ─────────────────────────────── */
@keyframes toastBounce {
  0%   { transform: translateX(120%); }
  60%  { transform: translateX(-4px); }
  80%  { transform: translateX(2px); }
  100% { transform: translateX(0); }
}
.toast.show {
  transform: translateX(0);
  animation: toastBounce 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ── Row highlight flash after status change ────────────────── */
@keyframes rowFlash {
  0%   { background: rgba(212,32,32,0.12); }
  100% { background: transparent; }
}
.row-flash td {
  animation: rowFlash 1.2s ease;
}