/* EINEVA Labs - Shared Styles
 * Used by all pages. Page-specific styles are inline in each page.
 */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700;800&display=swap');

/* ===== Reset ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ===== CSS Variables ===== */
:root {
  --font-heading: 'JetBrains Mono', monospace;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --color-red: #ff4444;
  --color-red-dim: rgba(255, 50, 50, 0.15);
  --color-red-glow: rgba(255, 68, 68, 0.4);
  --color-bg: #0a0a0f;
  --color-text: #e0e0e0;
  --color-muted: #7a8899;
  --color-subtle: #667;
  --color-border: #222;
  --color-card-bg: rgba(255, 255, 255, 0.02);
  --color-accent-secondary: #00d4aa;
}

/* ===== Body ===== */
body {
  font-family: var(--font-body);
  background: var(--color-bg) url('./images/2.jpg') center/cover no-repeat;
  background-attachment: fixed;
  color: var(--color-text);
  min-height: 100vh;
  display: block;
}
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    linear-gradient(rgba(10,10,15,0.88), rgba(10,10,15,0.88)),
    linear-gradient(rgba(255,50,50,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,50,50,0.05) 1px, transparent 1px);
  background-size: 100% 100%, 40px 40px, 40px 40px;
  pointer-events: none;
  z-index: 0;
  animation: gridPulse 8s ease-in-out infinite;
}
@keyframes gridPulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

/* ===== Container ===== */
.container {
  position: relative;
  z-index: 1;
  text-align: left;
  padding: 3rem 2.5rem;
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
body.is-loaded .container {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .container { opacity: 1; transform: none; transition: none; }
}

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin: 0 auto 2.75rem;
  padding: 0 2.5rem;
  height: 60px;
  background: rgba(10, 10, 15, 0.92);
  border-bottom: 1px solid rgba(255, 50, 50, 0.08);
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
  animation: fadeIn 0.5s ease 0.1s backwards;
}
.nav.is-scrolled {
  background: rgba(8, 8, 12, 0.98);
  border-bottom-color: rgba(255, 68, 68, 0.2);
}
.nav::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 2.5rem;
  right: 2.5rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 68, 68, 0.3), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}
.nav:hover::after {
  opacity: 1;
}
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex: 0 0 auto;
  color: #f0f2f5;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.6px;
  white-space: nowrap;
  transition: color 0.2s;
  font-family: var(--font-heading);
}
.nav-brand:hover {
  color: #fff;
}
.nav-brand img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 0 10px rgba(255, 50, 50, 0.35));
}
.nav-brand .brand-accent { color: #ff4444; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex: 1 1 auto;
  justify-content: flex-end;
}
.nav-toggle {
  display: none;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  padding: 0;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s;
}
.nav-toggle:hover {
  border-color: rgba(255, 68, 68, 0.3);
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  display: block;
  width: 18px;
  height: 2px;
  background: #c0c8d0;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.2s, background 0.2s;
}
.nav-toggle span { position: relative; }
.nav-toggle span::before { position: absolute; top: -6px; left: 0; }
.nav-toggle span::after { position: absolute; top: 6px; left: 0; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); background: #ff4444; }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); background: #ff4444; }
.nav-links a {
  position: relative;
  flex: 0 0 auto;
  text-align: center;
  color: #8899aa;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.5rem 0.8rem;
  margin: 0 0.1rem;
  border: none;
  border-radius: 6px;
  background: none;
  transition: color 0.2s, background 0.2s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  background: #ff4444;
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.2s;
}
.nav-links a:hover,
.nav-links a:focus-visible {
  color: #e0e6ec;
  background: rgba(255, 255, 255, 0.04);
}
.nav-links a.active {
  color: #fff;
}
.nav-links a.active::after {
  transform: scale(1);
}

/* ===== Typography ===== */
h1, h2, h3, h4,
.hero-title, .page-title, .section-title,
.glitch-text, .hero-glitch {
  font-family: var(--font-heading);
}

::selection {
  background: var(--color-red);
  color: #fff;
}

/* ===== Logo ===== */
.logo { margin-bottom: 1.5rem; text-align: center; }
.logo img {
  max-width: 200px;
  height: auto;
  filter: drop-shadow(0 0 40px rgba(255, 50, 50, 0.15));
  transition: filter 0.4s ease;
}
.logo img:hover {
  filter: drop-shadow(0 0 60px rgba(255, 50, 50, 0.35));
}

/* ===== Page Title ===== */
.page-title,
.hero-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.8rem;
  text-align: center;
}
.page-sub {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-bottom: 2.5rem;
  text-align: center;
}

/* ===== Divider ===== */
.divider {
  width: 50px;
  height: 2px;
  background: var(--color-red);
  margin: 2.5rem auto;
  border-radius: 2px;
}

/* ===== Hero Section (Homepage) ===== */
.hero-section {
  text-align: center;
  margin-bottom: 2.5rem;
}

.glitch-text {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 5.5vw, 3rem);
  font-weight: 800;
  color: #fff;
  position: relative;
  display: block;
  line-height: 1.25;
  margin-bottom: 1.2rem;
  max-width: 100%;
  word-break: break-word;
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.glitch-text::before {
  color: var(--color-red);
  animation: glitch-top 3s infinite;
  clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
}
.glitch-text::after {
  color: var(--color-accent-secondary);
  animation: glitch-bottom 2.8s infinite;
  clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
}

@keyframes glitch-top {
  0%, 88%, 100% { transform: translate(0); }
  90% { transform: translate(-3px, 2px); }
  92% { transform: translate(2px, -1px); }
  94% { transform: translate(-1px, 1px); }
}

@keyframes glitch-bottom {
  0%, 82%, 100% { transform: translate(0); }
  84% { transform: translate(3px, -2px); }
  86% { transform: translate(-2px, 1px); }
  88% { transform: translate(1px, -1px); }
}

.hero-sub {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-muted);
  max-width: 640px;
  margin: 0 auto 2rem;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: 6px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
}

.btn-primary {
  background: var(--color-red);
  color: #fff;
  box-shadow: 0 0 20px rgba(255, 68, 68, 0.2);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background: #cc3333;
  box-shadow: 0 0 35px rgba(255, 68, 68, 0.4);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: var(--color-red);
  color: var(--color-red);
  box-shadow: 0 0 25px rgba(255, 68, 68, 0.15);
  transform: translateY(-2px);
}

.hero-badge {
  display: block;
  width: fit-content;
  padding: 0.4rem 1.2rem;
  border: 1px solid rgba(255, 50, 50, 0.3);
  border-radius: 50px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--color-red);
  margin: 0 auto 1.5rem;
  font-family: var(--font-heading);
}

@media (prefers-reduced-motion: reduce) {
  .glitch-text::before,
  .glitch-text::after { display: none; }
}

/* ===== Contact strip ===== */
.contact {
  font-size: 0.95rem;
  color: #8899aa;
  margin-bottom: 1.5rem;
  text-align: center;
}
.contact a {
  color: #ff4444;
  text-decoration: none;
}
.contact a:hover { text-decoration: underline; }

/* ===== Social pills ===== */
.social {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.social a {
  color: #667;
  font-size: 0.85rem;
  text-decoration: none;
  padding: 0.3rem 0.8rem;
  border: 1px solid #333;
  border-radius: 50px;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.social a:hover,
.social a:focus-visible {
  color: var(--color-red);
  border-color: var(--color-red);
  box-shadow: 0 0 18px rgba(255, 68, 68, 0.15);
  transform: translateY(-1px);
}
.social a svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--color-border);
  padding-top: 1.5rem;
  margin-top: 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  max-width: 640px;
  margin: 0 auto 1rem;
  text-align: center;
}
@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
    text-align: left;
  }
}
.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-red);
  margin-bottom: 0.5rem;
}
.footer-col a {
  display: block;
  font-size: 0.82rem;
  color: var(--color-subtle);
  text-decoration: none;
  padding: 0.15rem 0;
  transition: color 0.2s;
}
.footer-col a:hover,
.footer-col a:focus-visible {
  color: var(--color-red);
}
.footer-tagline {
  font-size: 0.75rem;
  color: #778;
  text-align: center;
  margin-bottom: 0.5rem;
}
.footer-text {
  font-size: 0.75rem;
  color: var(--color-subtle);
  text-align: center;
}

/* ===== Enhanced Form Fields ===== */
input, textarea, select {
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-red) !important;
  box-shadow: 0 0 0 3px rgba(255, 68, 68, 0.1), 0 0 20px rgba(255, 68, 68, 0.05) !important;
  background: rgba(255, 255, 255, 0.06) !important;
}

/* ===== Secondary accent badges & tags ===== */
.tag-accent {
  color: var(--color-accent-secondary);
  border-color: rgba(0, 212, 170, 0.25);
}

/* ===== Scrollbar styling ===== */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg);
}
::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* ===== Focus accessibility (global) ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--color-red);
  outline-offset: 3px;
}
input:focus-visible,
textarea:focus-visible {
  outline-offset: 1px;
}

/* ===== Animations ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes expandWidth {
  from { width: 0; opacity: 0; }
  to { width: 50px; opacity: 1; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 10px rgba(255, 68, 68, 0.2); }
  50% { box-shadow: 0 0 25px rgba(255, 68, 68, 0.4); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.container { animation: fadeIn 0.6s ease; }
.nav-links a { animation: fadeUp 0.5s ease backwards; }
.nav-links a:nth-child(1) { animation-delay: 0.05s; }
.nav-links a:nth-child(2) { animation-delay: 0.1s; }
.nav-links a:nth-child(3) { animation-delay: 0.15s; }
.nav-links a:nth-child(4) { animation-delay: 0.2s; }
.nav-links a:nth-child(5) { animation-delay: 0.25s; }
.nav-links a:nth-child(6) { animation-delay: 0.3s; }
.nav-links a:nth-child(7) { animation-delay: 0.35s; }
.logo { animation: fadeUp 0.6s ease 0.1s backwards; }
.page-title,
.hero-title { animation: fadeUp 0.6s ease 0.2s backwards; }
.page-sub { animation: fadeUp 0.6s ease 0.25s backwards; }
.divider { animation: expandWidth 0.5s ease 0.55s backwards; }
.contact { animation: fadeUp 0.6s ease 0.55s backwards; }
.social { animation: fadeUp 0.6s ease 0.65s backwards; }
.footer-tagline { animation: fadeIn 0.6s ease 0.85s backwards; }
.footer-text { animation: fadeIn 0.6s ease 0.9s backwards; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  body { background-attachment: scroll; }
  .container { padding: 2rem 1.5rem; }
  .page-title { font-size: 1.4rem; }
  .nav {
    padding: 0 1.5rem;
    margin-bottom: 1.8rem;
  }
  .nav::after {
    left: 1.5rem;
    right: 1.5rem;
  }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 1rem;
    right: 1rem;
    margin-top: 0.5rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.4rem;
    background: rgba(10, 10, 15, 0.98);
    border: 1px solid rgba(255, 50, 50, 0.12);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
    transform: translateY(-6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    pointer-events: none;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .nav-links a {
    padding: 0.75rem 0.8rem;
    border-radius: 8px;
    border: none;
    text-align: left;
    font-size: 0.9rem;
  }
  .nav-links a:hover {
    background: rgba(255, 255, 255, 0.04);
  }
  .nav-links a::after { display: none; }
  .nav-links a.active { background: rgba(255, 50, 50, 0.08); color: #ff4444; }
}
@media (max-width: 480px) {
  .container { padding: 1.5rem 1rem; }
  .logo img { max-width: 140px; }
  .page-title { font-size: 1.2rem; }
  .page-sub { font-size: 0.82rem; }
  .contact { font-size: 0.85rem; }
  .social a { font-size: 0.78rem; padding: 0.25rem 0.6rem; }
}
@media (max-width: 360px) {
  .logo img { max-width: 120px; }
  .page-title { font-size: 1.05rem; }
  .social a { font-size: 0.72rem; padding: 0.2rem 0.5rem; }
}

/* ===== Card Micro-interactions ===== */
.project-card,
.team-card,
.founder-card,
.biz-card,
.service-item,
.notify {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.project-card:hover,
.team-card:hover,
.founder-card:hover,
.service-item:hover {
  border-color: rgba(255, 50, 50, 0.3) !important;
}
.project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

/* ===== Enhanced Buttons ===== */
button:not(.nav-toggle):not(.biz-btn),
.btn {
  position: relative;
  overflow: hidden;
}
button:not(.nav-toggle):not(.biz-btn)::after,
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.08) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s;
}
button:not(.nav-toggle):not(.biz-btn):hover::after,
.btn:hover::after {
  transform: translateX(100%);
}

/* ===== Notify / signup (home page) ===== */
.notify {
  margin-bottom: 2rem;
  text-align: center;
  animation: fadeUp 0.6s ease 0.45s backwards;
}
.notify-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #8899aa;
  margin-bottom: 0.4rem;
}
.notify-sub {
  font-size: 0.85rem;
  color: #a0aab4;
  margin-bottom: 1rem;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}
.notify-form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.notify-form input {
  padding: 0.6rem 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid #333;
  border-radius: 6px;
  color: #e0e0e0;
  font-size: 0.9rem;
  width: 240px;
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
}
.notify-form input:focus { border-color: #ff4444; }
.notify-form input::placeholder { color: #555; }
.notify-form button {
  padding: 0.6rem 1.3rem;
  background: #ff4444;
  border: none;
  border-radius: 6px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
}
.notify-form button:hover { background: #cc3333; }
.notify-note {
  font-size: 0.72rem;
  color: #667;
  margin-top: 0.6rem;
}
@media (max-width: 480px) {
  .notify-form { flex-direction: column; align-items: center; }
  .notify-form input { width: 100%; max-width: 320px; }
  .notify-form button { width: 100%; max-width: 320px; }
}

/* ===== 404 page ===== */
.error-code {
  font-size: 5rem;
  font-weight: 800;
  color: #ff4444;
  text-align: center;
  margin-bottom: 0.5rem;
  letter-spacing: 4px;
  line-height: 1;
  font-family: var(--font-heading);
  animation: fadeUp 0.6s ease 0.15s backwards;
}
.error-title {
  font-size: 1.3rem;
  color: #fff;
  text-align: center;
  margin-bottom: 0.5rem;
  animation: fadeUp 0.6s ease 0.25s backwards;
}
.error-msg {
  font-size: 0.9rem;
  color: #7a8899;
  text-align: center;
  max-width: 460px;
  margin: 0 auto 1.8rem;
  line-height: 1.7;
  animation: fadeUp 0.6s ease 0.3s backwards;
}
.error-actions {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.6s ease 0.4s backwards;
}
.error-actions a {
  display: inline-block;
  padding: 0.6rem 1.3rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid #333;
  color: #e0e0e0;
  transition: all 0.2s;
}
.error-actions a.primary {
  background: #ff4444;
  border-color: #ff4444;
  color: #fff;
}
.error-actions a:hover,
.error-actions a:focus-visible {
  color: #ff4444;
  border-color: #ff4444;
}
.error-actions a.primary:hover,
.error-actions a.primary:focus-visible {
  background: #cc3333;
  border-color: #cc3333;
  color: #fff;
}

/* ===== WhatsApp Floating Action Button ===== */
.whatsapp-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  z-index: 1000;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  animation: fadeIn 0.6s ease 1s backwards;
}
.whatsapp-fab:hover,
.whatsapp-fab:focus-visible {
  background: #1da851;
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45), 0 0 30px rgba(37, 211, 102, 0.2);
  outline: none;
}
.whatsapp-fab svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}
@media (max-width: 480px) {
  .whatsapp-fab {
    width: 50px;
    height: 50px;
    bottom: 1rem;
    right: 1rem;
  }
  .whatsapp-fab svg {
    width: 26px;
    height: 26px;
  }
  .error-code { font-size: 4rem; }
  .error-title { font-size: 1.1rem; }
}

/* ===== Global Page Loader ===== */
.biz-loader {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 3000;
}
.biz-loader.show {
  opacity: 1;
  pointer-events: auto;
}
.biz-loader-card {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  min-width: auto;
  max-width: none;
  text-align: center;
  transform: scale(0.92);
  transition: transform 0.3s;
}
.biz-loader.show .biz-loader-card {
  transform: scale(1);
}
.biz-spinner {
  position: relative;
  width: 64px;
  height: 64px;
  margin: 0 auto;
}
.biz-spinner::before,
.biz-spinner::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
}
.biz-spinner::before {
  border: 3px solid rgba(255, 68, 68, 0.12);
}
.biz-spinner::after {
  border: 3px solid transparent;
  border-top-color: #ff4444;
  border-right-color: #ff4444;
  animation: bizSpin 0.85s linear infinite;
  filter: drop-shadow(0 0 6px rgba(255, 68, 68, 0.55));
}
.biz-spinner-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 68, 68, 0.25);
}
.biz-spinner-ring--outer {
  inset: -10px;
  animation: bizPulse 2.2s ease-in-out infinite;
}
.biz-spinner-ring--inner {
  inset: 6px;
  border-top-color: rgba(255, 68, 68, 0.5);
  border-right-color: transparent;
  border-bottom-color: transparent;
  border-left-color: transparent;
  animation: bizSpinReverse 1.6s linear infinite;
}
.biz-spinner-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: #ff4444;
  box-shadow: 0 0 10px rgba(255, 68, 68, 0.8);
  animation: bizDotPulse 1.4s ease-in-out infinite;
}
@keyframes bizSpin {
  to { transform: rotate(360deg); }
}
@keyframes bizSpinReverse {
  to { transform: rotate(-360deg); }
}
@keyframes bizPulse {
  0%, 100% { transform: scale(1);    opacity: 0.6; }
  50%      { transform: scale(1.18); opacity: 0; }
}
@keyframes bizDotPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(0.85); opacity: 0.7; }
  50%      { transform: translate(-50%, -50%) scale(1.2);  opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .biz-spinner::after,
  .biz-spinner-ring,
  .biz-spinner-dot,
  .biz-loader-card { animation: none !important; transition: none !important; }
}
@media print {
  .biz-loader { display: none !important; }
}
