/* ═══════════════════════════════════════════════════════════════
   FUTURA THEME — Futuristic · Asymmetric · Vibrant · Serif · Playful
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500&family=Source+Sans+3:wght@400;500;600;700&display=swap');

:root {
  --font-serif: 'Playfair Display', 'Libre Baskerville', Georgia, serif;
  --font-serif-body: 'Libre Baskerville', Georgia, serif;
  --font-sans: 'Source Sans 3', system-ui, sans-serif;

  --bg-base: #050816;
  --bg-elevated: #0a0f24;
  --bg-surface: #0f1630;
  --bg-surface-hover: #151d3a;
  --bg-glass: rgba(12, 18, 42, 0.82);
  --border-subtle: rgba(0, 245, 255, 0.08);
  --border-default: rgba(0, 245, 255, 0.18);
  --border-strong: rgba(255, 45, 149, 0.35);

  --text-primary: #f4f7ff;
  --text-secondary: #b8c4e8;
  --text-muted: #7a8ab8;

  --accent: #00f5ff;
  --accent-hover: #5ffbff;
  --accent-muted: rgba(0, 245, 255, 0.12);
  --accent-glow: rgba(0, 245, 255, 0.45);
  --magenta: #ff2d95;
  --magenta-muted: rgba(255, 45, 149, 0.15);
  --gold: #ffc107;
  --gold-muted: rgba(255, 193, 7, 0.12);
  --cyan: #00f5ff;
  --cyan-muted: rgba(0, 245, 255, 0.12);
  --success: #00e676;
  --success-muted: rgba(0, 230, 118, 0.12);
  --warning: #ffc107;
  --danger: #ff4757;
  --danger-muted: rgba(255, 71, 87, 0.12);

  --gradient-primary: linear-gradient(135deg, #00f5ff 0%, #7c3aed 45%, #ff2d95 100%);
  --gradient-border: linear-gradient(135deg, #00f5ff, #ff2d95, #ffc107);
  --gradient-mesh:
    radial-gradient(ellipse 70% 55% at 15% -10%, rgba(0, 245, 255, 0.22), transparent 55%),
    radial-gradient(ellipse 55% 45% at 95% 5%, rgba(255, 45, 149, 0.18), transparent 50%),
    radial-gradient(ellipse 40% 35% at 50% 100%, rgba(124, 58, 237, 0.15), transparent 55%);

  --shadow-glow: 0 0 48px rgba(0, 245, 255, 0.25), 0 0 80px rgba(255, 45, 149, 0.08);
  --transition-bounce: 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="light"] {
  --bg-base: #f0f4ff;
  --bg-elevated: #ffffff;
  --bg-surface: #ffffff;
  --bg-surface-hover: #e8eeff;
  --bg-glass: rgba(255, 255, 255, 0.9);
  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-default: rgba(15, 23, 42, 0.14);
  --text-primary: #0a1028;
  --text-secondary: #3d4f7a;
  --text-muted: #6b7aa8;
}

/* ─── Typography: Classic Serif elegance ─── */
body.premium-app {
  font-family: var(--font-sans);
}

h1, h2, h3, .page-title, .page-header h1,
.login-title, .reg-title, .stat-card-value,
.vip-card-header-title, .sidebar-brand-text {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.page-header p, .page-sub, .stat-card-label {
  font-family: var(--font-serif-body);
  font-style: italic;
  opacity: 0.9;
}

/* ─── Futuristic background ─── */
.app-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 245, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 245, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black, transparent);
  pointer-events: none;
}

.app-bg::after {
  animation: auroraShift 18s ease-in-out infinite alternate;
}

@keyframes auroraShift {
  0% { opacity: 0.35; transform: scale(1) rotate(0deg); }
  100% { opacity: 0.55; transform: scale(1.05) rotate(2deg); }
}

/* ─── Sidebar: full-height panel ─── */
.sidebar {
  clip-path: none;
  border: none;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(10, 14, 32, 0.98) 0%, rgba(6, 9, 22, 0.99) 100%);
}

.sidebar-brand-icon {
  transform: rotate(-6deg);
  transition: transform var(--transition-bounce);
}

.sidebar-brand:hover .sidebar-brand-icon {
  transform: rotate(0deg) scale(1.08);
}

.nav-item.active {
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.22), rgba(124, 58, 237, 0.06));
  box-shadow: inset 3px 0 0 var(--accent);
  border: none;
}

.nav-item.active::before { display: none; }

.nav-item:hover i {
  animation: iconWiggle 0.5s ease;
}

@keyframes iconWiggle {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-8deg) scale(1.1); }
  75% { transform: rotate(8deg) scale(1.1); }
}

/* ─── Topbar ─── */
.topbar {
  background: rgba(5, 8, 22, 0.75);
  border-bottom: 1px solid var(--border-default);
}

.topbar-toggle:hover,
.topbar-btn:hover {
  transform: translateY(-2px) rotate(-2deg);
  box-shadow: 0 6px 20px var(--accent-glow);
  border-color: var(--accent);
  color: var(--accent-hover);
}

/* ─── Cards: vibrant futuristic ─── */
.premium-card, .vip-card, .stat-card, .auth-card {
  position: relative;
  border: 1px solid var(--border-subtle);
  --asym-y: 0px;
  --asym-rotate: 0deg;
  transform: translateY(var(--asym-y)) rotate(var(--asym-rotate));
  background:
    radial-gradient(420px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 245, 255, 0.07), transparent 42%),
    linear-gradient(145deg, rgba(15, 22, 48, 0.95), rgba(8, 12, 28, 0.88));
  transition: transform var(--transition-bounce), box-shadow 0.3s ease, border-color 0.3s;
}

.premium-card::after, .vip-card::after, .auth-card::after, .stat-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: var(--gradient-border);
  -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 0.35s ease;
  pointer-events: none;
  z-index: 0;
}

.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 0;
  padding: 0;
  -webkit-mask: none;
  mask: none;
}

.stat-card > *, .premium-card > *, .vip-card > * { position: relative; z-index: 1; }

.premium-card:hover, .stat-card:hover, .vip-card:hover {
  transform: translateY(calc(var(--asym-y) - 6px)) rotate(calc(var(--asym-rotate) - 0.5deg));
  box-shadow: var(--shadow-glow);
}

.premium-card:hover::after, .stat-card:hover::after, .vip-card:hover::after, .auth-card:hover::after {
  opacity: 0.7;
}

.stat-card:hover::before { opacity: 0.05; }

/* ─── Buttons: playful vibrant ─── */
.btn-premium-primary, .btn-signin, .btn-generate,
.vip-btn:not(.vip-btn-cyan):not(.vip-btn-red):not(.vip-btn-yellow):not(.vip-btn-green) {
  background: var(--gradient-primary);
  background-size: 200% 200%;
  animation: gradientShift 4s ease infinite;
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 12px;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.btn-premium:hover, .btn-signin:hover, .vip-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 32px rgba(0, 245, 255, 0.35), 0 4px 16px rgba(255, 45, 149, 0.2);
}

.btn-premium:active, .btn-signin:active {
  transform: translateY(0) scale(0.98);
  transition: transform 0.1s ease;
}

/* ─── Page header: asymmetric ─── */
.page-header {
  position: relative;
  padding-left: var(--space-2);
  margin-bottom: var(--space-10);
}

.page-header::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  width: 120px;
  height: 120px;
  background: var(--gradient-primary);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  opacity: 0.12;
  filter: blur(20px);
  transform: translateY(-50%);
  animation: blobFloat 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes blobFloat {
  0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; transform: translateY(-50%) rotate(0deg); }
  50% { border-radius: 58% 42% 38% 62% / 52% 48% 52% 48%; transform: translateY(-55%) rotate(8deg); }
}

.page-header-badge {
  background: var(--magenta-muted);
  border-color: rgba(255, 45, 149, 0.35);
  color: #ff6eb4;
  font-family: var(--font-sans);
  font-style: normal;
}

.page-header-badge .dot, .badge-dot {
  background: var(--magenta);
  box-shadow: 0 0 10px var(--magenta);
}

/* ─── Asymmetric dashboard layout ─── */
.dash-asymmetric {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.dash-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-6);
  align-items: end;
}

.dash-hero-main { padding-right: var(--space-8); }

.dash-hero-side {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transform: translateY(12px);
}

.dash-hero-pill {
  align-self: flex-end;
  padding: var(--space-3) var(--space-5);
  background: var(--gold-muted);
  border: 1px solid rgba(255, 193, 7, 0.35);
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  animation: pillPulse 3s ease-in-out infinite;
}

@keyframes pillPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.3); }
  50% { box-shadow: 0 0 0 8px rgba(255, 193, 7, 0); }
}

.dash-stats-asym {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-4);
}

.dash-stats-asym .stat-card:nth-child(1) { grid-column: span 4; --asym-y: 0px; }
.dash-stats-asym .stat-card:nth-child(2) { grid-column: span 3; --asym-y: 16px; }
.dash-stats-asym .stat-card:nth-child(3) { grid-column: span 3; --asym-y: 8px; }
.dash-stats-asym .stat-card:nth-child(4) { grid-column: span 2; --asym-y: 24px; }

.stat-card-icon.indigo { background: var(--cyan-muted); color: var(--cyan); }
.stat-card-icon.cyan { background: var(--magenta-muted); color: var(--magenta); }
.stat-card-icon.green { background: var(--success-muted); color: var(--success); }
.stat-card-icon.red { background: var(--gold-muted); color: var(--gold); }

.dash-split {
  display: grid;
  grid-template-columns: 1.65fr 0.85fr;
  gap: var(--space-5);
  align-items: start;
}

.dash-split-side {
  --asym-y: -20px;
  position: relative;
  z-index: 2;
}

.dash-mini-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.dash-mini-row .premium-card:nth-child(1) { --asym-y: 0px; }
.dash-mini-row .premium-card:nth-child(2) { --asym-y: 12px; }
.dash-mini-row .premium-card:nth-child(3) { --asym-y: 6px; }

/* ─── Playful stagger (overrides premium.css fadeUp) ─── */
.stagger-children > * {
  opacity: 0;
  animation: fadeUpBounce 0.65s cubic-bezier(0.34, 1.4, 0.64, 1) forwards;
}

.stagger-children > *:nth-child(1) { animation-delay: 0.05s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.15s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.25s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(7) { animation-delay: 0.35s; }
.stagger-children > *:nth-child(8) { animation-delay: 0.4s; }

@keyframes fadeUpBounce {
  from {
    opacity: 0;
    transform: translateY(calc(28px + var(--asym-y, 0px))) rotate(calc(-1deg + var(--asym-rotate, 0deg)));
  }
  to {
    opacity: 1;
    transform: translateY(var(--asym-y, 0px)) rotate(var(--asym-rotate, 0deg));
  }
}

.page-enter {
  animation: pageSlideIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes pageSlideIn {
  from { opacity: 0; transform: translateY(16px) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ─── Tables & inputs ─── */
.table thead th, .vip-table thead th {
  font-family: var(--font-sans);
  color: var(--accent-hover);
  border-bottom-color: var(--border-default);
}

.vip-input:focus, .form-control:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px var(--accent-muted), 0 0 20px rgba(0, 245, 255, 0.15) !important;
}

.field-group.focused .field-label {
  color: var(--accent-hover);
}

/* ─── Auth pages ─── */
.auth-card {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
}

.auth-layout::before {
  content: '';
  position: fixed;
  width: 300px;
  height: 300px;
  right: -80px;
  top: 20%;
  background: var(--gradient-primary);
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.2;
  animation: blobFloat 12s ease-in-out infinite;
  pointer-events: none;
}

/* ─── Quick action cards playful ─── */
.quick-action-btn {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  transition: all var(--transition-bounce);
}

.quick-action-btn:hover {
  transform: translateX(8px) scale(1.02);
  border-color: var(--accent);
  background: var(--accent-muted);
  color: var(--accent-hover);
}

.quick-action-btn i {
  font-size: 20px;
  transition: transform var(--transition-bounce);
}

.quick-action-btn:hover i {
  transform: rotate(12deg) scale(1.2);
}

/* ─── Confetti particle (JS triggered) ─── */
.confetti-piece {
  position: fixed;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  pointer-events: none;
  z-index: 99999;
  animation: confettiFall 1.2s ease-out forwards;
}

@keyframes confettiFall {
  0% { opacity: 1; transform: translateY(0) rotate(0deg); }
  100% { opacity: 0; transform: translateY(120px) rotate(720deg); }
}

/* ─── Footer ─── */
.app-footer {
  font-family: var(--font-serif-body);
  font-style: italic;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
}

/* ─── Breadcrumb serif accent ─── */
.breadcrumb li.active {
  font-family: var(--font-serif);
  color: var(--accent-hover);
}

/* ─── Badge vibrant ─── */
.badge-premium.badge-info {
  background: var(--cyan-muted);
  color: var(--cyan);
  border: 1px solid rgba(0, 245, 255, 0.3);
}

/* ─── Count animation pop ─── */
.stat-card-value.count-done {
  animation: countPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes countPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); color: var(--accent); }
  100% { transform: scale(1); }
}

@media (max-width: 1024px) {
  .dash-hero { grid-template-columns: 1fr; }
  .dash-hero-side { transform: none; flex-direction: row; flex-wrap: wrap; }
  .dash-stats-asym .stat-card { grid-column: span 6 !important; --asym-y: 0px !important; }
  .dash-split { grid-template-columns: 1fr; }
  .dash-split-side { --asym-y: 0px; }
  .dash-mini-row .premium-card { --asym-y: 0px !important; }
}

@media (max-width: 768px) {
  .dash-stats-asym .stat-card { grid-column: span 12 !important; }
  .dash-mini-row { grid-template-columns: 1fr; }
  .page-header::after { display: none; }
}

/* ═══════════════════════════════════════════════════════════════
   Extended animations & bug fixes
   ═══════════════════════════════════════════════════════════════ */

/* Floating orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  pointer-events: none;
  animation: orbDrift 20s ease-in-out infinite alternate;
}

.orb-1 {
  width: 280px; height: 280px;
  background: rgba(0, 245, 255, 0.5);
  top: 10%; left: -5%;
  animation-duration: 22s;
}

.orb-2 {
  width: 220px; height: 220px;
  background: rgba(255, 45, 149, 0.45);
  top: 55%; right: -3%;
  animation-duration: 18s;
  animation-delay: -4s;
}

.orb-3 {
  width: 180px; height: 180px;
  background: rgba(124, 58, 237, 0.4);
  bottom: 8%; left: 40%;
  animation-duration: 25s;
  animation-delay: -8s;
}

@keyframes orbDrift {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.08); }
  66% { transform: translate(-20px, 25px) scale(0.95); }
  100% { transform: translate(15px, -10px) scale(1.05); }
}

/* Light theme fixes */
[data-theme="light"] .topbar {
  background: rgba(255, 255, 255, 0.88);
}

[data-theme="light"] .premium-card,
[data-theme="light"] .stat-card,
[data-theme="light"] .vip-card,
[data-theme="light"] .auth-card {
  background:
    radial-gradient(420px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 245, 255, 0.05), transparent 42%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(240, 244, 255, 0.95));
}

[data-theme="light"] .sidebar {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 255, 0.99) 100%);
  border-right-color: rgba(0, 0, 0, 0.08);
}

/* Theme toggle spin */
.theme-toggle-btn {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s, border-color 0.3s, color 0.3s;
}

/* Sidebar nav entrance */
.sidebar-nav .nav-item {
  opacity: 0;
  animation: navSlideIn 0.45s cubic-bezier(0.34, 1.4, 0.64, 1) forwards;
}

@keyframes navSlideIn {
  from { opacity: 0; transform: translateX(-16px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Alert animations */
.alert-premium, .vunnik-msg {
  animation: alertBounceIn 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.alert-premium.is-dismissing, .vunnik-msg.is-dismissing {
  animation: alertSlideOut 0.35s ease forwards;
}

@keyframes alertBounceIn {
  from { opacity: 0; transform: translateY(-20px) scale(0.96); }
  60% { transform: translateY(4px) scale(1.01); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes alertSlideOut {
  to { opacity: 0; transform: translateX(40px); max-height: 0; margin: 0; padding: 0; overflow: hidden; }
}

.vunnik-msg-icon {
  animation: iconPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s both;
}

@keyframes iconPop {
  from { transform: scale(0) rotate(-90deg); }
  to { transform: scale(1) rotate(0); }
}

/* Table row reveal */
.table tbody tr, .vip-table tbody tr, table.dataTable tbody tr {
  animation: rowReveal 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes rowReveal {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: translateX(0); }
}

.table tbody tr:hover, .vip-table tbody tr:hover, table.dataTable tbody tr:hover {
  transform: translateX(4px);
  transition: transform 0.25s cubic-bezier(0.34, 1.4, 0.64, 1), background 0.2s;
}

/* Scroll reveal */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Search box focus expand */
.search-box {
  transition: width 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.search-box input {
  transition: border-color 0.3s, box-shadow 0.3s;
}

.search-box:focus-within {
  width: 280px;
}

.search-box:focus-within i {
  color: var(--accent);
  animation: searchPulse 1.5s ease infinite;
}

@keyframes searchPulse {
  0%, 100% { transform: translateY(-50%) scale(1); }
  50% { transform: translateY(-50%) scale(1.15); }
}

/* Dropdown menu slide */
.dropdown-menu {
  animation: dropdownIn 0.3s cubic-bezier(0.34, 1.4, 0.64, 1) forwards;
  transform-origin: top right;
}

@keyframes dropdownIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Empty state float */
.empty-state i {
  animation: emptyFloat 3s ease-in-out infinite;
}

@keyframes emptyFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Copy button pop */
.copy-pop {
  animation: copyPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes copyPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.35) rotate(12deg); color: var(--success); }
  100% { transform: scale(1) rotate(0); }
}

/* Toggle switch bounce */
.vip-switch input:checked + .vip-slider::before {
  animation: toggleBounce 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes toggleBounce {
  0% { transform: translateX(0); }
  60% { transform: translateX(24px); }
  80% { transform: translateX(18px); }
  100% { transform: translateX(20px); }
}

/* Magnetic button class */
.btn-magnetic {
  transition: transform 0.15s ease-out, box-shadow 0.3s;
}

/* Loading spinner enhanced */
.btn-premium.loading::after {
  border-top-color: currentColor;
  border-right-color: rgba(255,255,255,0.3);
  animation: spin 0.55s linear infinite;
}

/* Auth card entrance */
.auth-card, .login-card, .reg-card {
  animation: authEnter 0.65s cubic-bezier(0.34, 1.4, 0.64, 1) forwards;
}

@keyframes authEnter {
  from { opacity: 0; transform: translateY(32px) scale(0.94) rotate(-1deg); }
  to { opacity: 1; transform: translateY(0) scale(1) rotate(0); }
}

/* Feature item hover */
.feature-item {
  transition: transform var(--transition-bounce), border-color 0.3s, background 0.3s;
}

.feature-item:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: var(--accent);
}

/* Badge shimmer */
.page-header-badge .dot {
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--magenta); }
  50% { opacity: 0.6; box-shadow: 0 0 0 6px transparent; }
}

/* Sidebar overlay fade */
.sidebar-overlay {
  opacity: 0;
  transition: opacity 0.3s ease;
}

body.sidebar-open .sidebar-overlay {
  display: block;
  opacity: 1;
  animation: overlayFade 0.3s ease forwards;
}

@keyframes overlayFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Mobile sidebar slide */
@media (max-width: 768px) {
  .sidebar {
    transition: transform 0.4s cubic-bezier(0.34, 1.4, 0.64, 1), width var(--transition-slow);
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .stagger-children > *,
  .sidebar-nav .nav-item,
  .reveal-on-scroll {
    opacity: 1;
    transform: none;
  }
}

