/* TPA - Traders Point Academy Custom Styles (Ultra-Wide + Extreme Animations) */
@import url('https://fonts.googleapis.com/css2?family=Michroma&family=Orbitron:wght@600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* Shared light, motion, reveal and pointer effects */
:root { color-scheme: dark; }
html[data-theme="light"] { color-scheme: light; --bg-black:#f3f6fb; --canvas:#ffffff; --canvas-soft:#eef2f8; --canvas-soft-2:#e5ebf3; --hairline:rgba(15,23,42,.14); --hairline-strong:rgba(15,23,42,.25); --ink:#111827; --body:#475569; --mute:#64748b; background:#f3f6fb; color:#111827; }
html[data-theme="light"] body { background:#f3f6fb !important; color:#111827 !important; }
html[data-theme="light"] .bg-canvas, html[data-theme="light"] .bg-canvas\/80, html[data-theme="light"] .bg-canvas\/85 { background-color:rgba(255,255,255,.9)!important; }
html[data-theme="light"] [class*="bg-neutral-950"], html[data-theme="light"] [class*="bg-neutral-900"], html[data-theme="light"] [class*="bg-neutral-800"] { background-color:rgba(255,255,255,.9)!important; }
html[data-theme="light"] [class*="text-white"], html[data-theme="light"] [class*="text-ink"] { color:#172033!important; }
html[data-theme="light"] [class*="text-neutral-300"], html[data-theme="light"] [class*="text-neutral-400"], html[data-theme="light"] [class*="text-body"] { color:#475569!important; }
html[data-theme="light"] [class*="border-white"], html[data-theme="light"] [class*="border-hairline"] { border-color:rgba(15,23,42,.16)!important; }
html, body { scroll-behavior:smooth; }
body { transition:background-color .45s ease,color .45s ease; }
.theme-toggle { position:relative;width:42px;height:42px;display:inline-grid;place-items:center;border:1px solid rgba(255,255,255,.16);border-radius:999px;background:rgba(255,255,255,.06);color:#fbbf24;transition:transform .35s cubic-bezier(.2,.8,.2,1),background .3s,color .3s; }
.theme-toggle:hover { transform:rotate(18deg) scale(1.08);background:rgba(245,158,11,.16); }
.theme-toggle.is-changing { animation:theme-pop .55s ease; }
.theme-toggle svg { position:absolute;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;transition:opacity .3s,transform .45s cubic-bezier(.2,.8,.2,1); }
.theme-toggle .theme-sun { opacity:1;transform:rotate(0) scale(1); }
.theme-toggle .theme-moon { opacity:0;transform:rotate(-75deg) scale(.5); }
.theme-toggle.is-light .theme-sun { opacity:0;transform:rotate(75deg) scale(.5); }
.theme-toggle.is-light .theme-moon { opacity:1;transform:rotate(0) scale(1); }
@keyframes theme-pop { 50% { transform:rotate(180deg) scale(1.2); } }
.reveal-on-scroll { opacity:0;transform:translateY(26px) scale(.985);transition:opacity .65s ease,transform .65s cubic-bezier(.2,.7,.2,1); }
.reveal-on-scroll.is-revealed { opacity:1;transform:translateY(0) scale(1); }
#ambientCanvas { position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:0;opacity:.28; }
.ssl-trust-lockup { display:flex;flex-direction:column;align-items:center;gap:8px;padding:8px 0 0;text-align:center; }
.ssl-trust-lockup p { margin:0;color:#9ca3af;font-family:'JetBrains Mono',monospace;font-size:10px;letter-spacing:.12em;text-transform:uppercase; }
.ssl-trust-badge { display:inline-flex;min-width:112px;flex-direction:column;align-items:stretch;padding:3px;border:2px solid #f8fafc;border-radius:3px;background:#050505;color:#fff;box-shadow:0 4px 18px rgba(0,0,0,.28);line-height:1; }
.ssl-trust-badge span { padding:3px 5px 2px;background:#fff;color:#050505;font-family:'JetBrains Mono',monospace;font-size:9px;font-weight:800;letter-spacing:.12em; }
.ssl-trust-badge strong { padding:3px 4px 1px;font-family:Arial,sans-serif;font-size:20px;font-weight:900;letter-spacing:.01em; }
.footer-feedback-column { position:relative; }
.footer-feedback-column > .ssl-trust-lockup { padding:0;align-items:flex-end;text-align:right; }
@media(min-width:1024px) { .footer-feedback-column > .ssl-trust-lockup { position:absolute;top:calc(100% + 4px);right:0;width:100%; } }
.footer-bull-heading { display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:16px;text-align:left; }
.footer-bull-heading > div { justify-self:start; }
.footer-bull-heading > p { margin:0;text-align:center;white-space:nowrap; }
.footer-bull-heading > nav { justify-self:end; }
@media(max-width:900px) { .footer-bull-heading { grid-template-columns:1fr;justify-items:center;text-align:center;gap:10px; }.footer-bull-heading nav { justify-content:center; } }
.footer-credit { display:flex;align-items:center;justify-content:center;gap:6px;margin-top:12px;color:#9ca3af;font-family:'JetBrains Mono',monospace;font-size:11px;letter-spacing:.025em;text-align:center; }
.footer-credit-heart { width:14px;height:14px;fill:#ef4444;filter:drop-shadow(0 0 5px rgba(239,68,68,.42)); }
.tally-modal { position:fixed;inset:0;z-index:10000;display:flex;align-items:center;justify-content:center;padding:clamp(12px,3vw,32px);opacity:0;visibility:hidden;transition:opacity .8s ease,visibility 0s linear .8s; }
.tally-modal[hidden] { display:none; }
.tally-modal.is-open { opacity:1;visibility:visible;transition:opacity .8s ease,visibility 0s; }
.tally-modal.is-closing { opacity:0;visibility:hidden;transition:opacity .8s ease,visibility 0s linear .8s; }
.tally-modal-backdrop { position:absolute;inset:0;background:rgba(2,6,12,.78);backdrop-filter:blur(9px); }
.tally-modal-panel { position:relative;z-index:1;display:flex;flex-direction:column;width:min(760px,100%);height:min(780px,84vh);min-height:min(440px,78vh);overflow:hidden;border:1px solid rgba(245,158,11,.3);border-radius:20px;background:#fff;box-shadow:0 28px 90px rgba(0,0,0,.6),0 0 36px rgba(245,158,11,.12);transform:translate3d(0,16px,0) scale(.9);will-change:transform;transition:transform .8s cubic-bezier(.4,0,.2,1); }
.tally-modal.is-open .tally-modal-panel { transform:translate3d(0,0,0) scale(1); }
.tally-modal.is-closing .tally-modal-panel { transform:translate3d(0,10px,0) scale(.94); }
.tally-modal-close { position:absolute;top:12px;right:12px;z-index:4;display:grid;place-items:center;width:34px;height:34px;border:1px solid rgba(15,23,42,.14);border-radius:50%;background:rgba(255,255,255,.92);color:#1f2937;font-size:26px;line-height:1;cursor:pointer;transition:background .2s,color .2s,transform .2s; }
.tally-modal-close:hover { background:rgba(245,158,11,.16);color:#92400e;transform:rotate(90deg); }
.tally-modal-frame { display:block;flex:1;width:100%;min-height:0;border:0;background:transparent; }
html.light .tally-modal-panel { background:#fff;border-color:rgba(217,151,24,.4); }
html.light .tally-modal-close { color:#334155;border-color:#cbd5e1;background:#f8fafc; }
@media(max-width:600px) { .tally-modal { padding:10px; }.tally-modal-panel { height:88vh;min-height:0;border-radius:15px; }.tally-modal-close { top:8px;right:8px; } }
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important; } }
.tpa-brand-title {
  font-family: 'Michroma', 'Orbitron', 'Inter', sans-serif;
  letter-spacing: 0.08em;
}

.tpa-brand-text {
  font-family: 'Michroma', 'Orbitron', sans-serif;
  letter-spacing: 0.07em;
  font-weight: 700;
}

/* Reuse the wordmark artwork cropped from the official logo on every page. */
.tpa-wordmark-image { display:block;width:auto;max-width:100%;object-fit:contain; }
html.dark .tpa-wordmark-image { filter:drop-shadow(0 0 1px rgba(255,255,255,.45)); }
.tpa-wordmark-header { height:16px; }
.tpa-wordmark-footer { height:15px; }
.tpa-wordmark-section { height:18px; }
.tpa-wordmark-map { height:14px; }
@media(max-width:767px) { .tpa-wordmark-header { height:13px; } }

.tpa-academy-gold {
  background: linear-gradient(135deg, #fef08a 0%, #f59e0b 50%, #b45309 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  letter-spacing: 0.09em;
}

:root {
  --bg-black: #050505;
  --canvas: #09090b;
  --canvas-soft: #000000;
  --canvas-soft-2: #141416;
  --hairline: rgba(255, 255, 255, 0.12);
  --hairline-strong: rgba(255, 255, 255, 0.22);
  --ink: #ffffff;
  --body: #a1a1aa;
  --mute: #71717a;
  --link: #38bdf8;
  --gold: #f59e0b;
  --gold-glow: rgba(245, 158, 11, 0.25);
  --green: #22c55e;
  --red: #ef4444;
}

html {
  scroll-behavior: smooth;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-black);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  background-color: #050505;
  color: #f5f5f5;
  cursor: default;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #080808;
}
::-webkit-scrollbar-thumb {
  background: #262626;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #404040;
}

/* Scroll Progress Bar at very top of screen */
#scrollProgressBar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #f59e0b, #22c55e, #38bdf8);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.8), 0 0 20px rgba(34, 197, 94, 0.5);
  z-index: 100;
  pointer-events: none;
  transition: width 0.08s ease-out;
}


/* Click Shockwave Effect */
.click-shockwave {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9990;
  transform: translate(-50%, -50%) scale(0);
  border: 2px solid rgba(245, 158, 11, 0.85);
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.5), inset 0 0 12px rgba(245, 158, 11, 0.3);
  animation: shockwaveExpand 0.65s cubic-bezier(0.1, 0.8, 0.2, 1) forwards;
}

@keyframes shockwaveExpand {
  0% {
    width: 0px;
    height: 0px;
    opacity: 1;
    transform: translate(-50%, -50%) scale(0);
  }
  100% {
    width: 260px;
    height: 260px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* Click Particle Spark */
.click-spark {
  position: fixed;
  pointer-events: none;
  z-index: 9995;
  border-radius: 50%;
  animation: sparkFly 0.75s cubic-bezier(0.1, 0.9, 0.2, 1) forwards;
}

@keyframes sparkFly {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--tx), var(--ty)) scale(0);
  }
}

/* Real-Time Price Ticker Flash Animations */
@keyframes tickGreenFlash {
  0% { background-color: rgba(34, 197, 94, 0.4); color: #ffffff; text-shadow: 0 0 8px #22c55e; }
  100% { background-color: transparent; }
}

@keyframes tickRedFlash {
  0% { background-color: rgba(239, 68, 68, 0.4); color: #ffffff; text-shadow: 0 0 8px #ef4444; }
  100% { background-color: transparent; }
}

.flash-green {
  animation: tickGreenFlash 1.2s ease-out;
}

.flash-red {
  animation: tickRedFlash 1.2s ease-out;
}

/* Ticker Marquee */
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.animate-ticker {
  display: flex;
  width: max-content;
  animation: ticker 32s linear infinite;
}

.animate-ticker:hover {
  animation-play-state: paused;
}

/* Testimonial Marquees (Dual Row) */
@keyframes marqueeLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes marqueeRight {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.animate-marquee-left {
  display: flex;
  width: max-content;
  animation: marqueeLeft 42s linear infinite;
}

.animate-marquee-right {
  display: flex;
  width: max-content;
  animation: marqueeRight 42s linear infinite;
}

.animate-marquee-left:hover,
.animate-marquee-right:hover {
  animation-play-state: paused;
}

/* Glow effects */
.gold-glow {
  box-shadow: 0 0 35px rgba(234, 179, 8, 0.22), inset 0 0 20px rgba(234, 179, 8, 0.12);
}

.green-glow {
  box-shadow: 0 0 30px rgba(34, 197, 94, 0.22);
}

/* Vercel-style mesh gradients */
.tpa-mesh-gradient {
  background: radial-gradient(at 20% 20%, rgba(234, 179, 8, 0.18) 0px, transparent 55%),
              radial-gradient(at 80% 20%, rgba(34, 197, 94, 0.15) 0px, transparent 50%),
              radial-gradient(at 50% 65%, rgba(56, 189, 248, 0.12) 0px, transparent 55%),
              radial-gradient(at 85% 85%, rgba(239, 68, 68, 0.1) 0px, transparent 48%);
  filter: blur(60px);
}

/* Shadows matching nikkhil.space */
.shadow-level-1 {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.shadow-level-2 {
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.shadow-level-3 {
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.7), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.shadow-level-4 {
  box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.8), inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.shadow-level-5 {
  box-shadow: 0px 16px 36px rgba(0, 0, 0, 0.9), inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

/* 3D Flip Card */
.perspective-1000 {
  perspective: 1000px;
}
.transform-style-preserve-3d {
  transform-style: preserve-3d;
}
.backface-hidden {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.rotate-y-180 {
  transform: rotateY(180deg);
}

/* Extreme 3D Tilt Cards with Dynamic Specular Glare */
.tilt-card {
  position: relative;
  transition: transform 0.15s cubic-bezier(0.2, 0.8, 0.2, 1), 
              box-shadow 0.3s ease-out, 
              border-color 0.3s ease-out;
  transform-style: preserve-3d;
  will-change: transform;
}

.tilt-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.14) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease-out;
  pointer-events: none;
  z-index: 2;
}

.tilt-card:hover::before {
  opacity: 1;
}

.tilt-card:hover {
  border-color: rgba(255, 255, 255, 0.38) !important;
  box-shadow: 0 16px 40px -5px rgba(0, 0, 0, 0.85), 
              0 0 25px rgba(245, 158, 11, 0.15),
              inset 0 0 0 1px rgba(255, 255, 255, 0.2) !important;
}

/* =========================================================================
   CARD HOVER — Quantum Perimeter Beam & Depth Light (GPU-Accelerated)
   ========================================================================= */
@property --beam-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.cyber-card {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.28s ease;
  contain: layout style;
  will-change: transform;
}

/* Outer Border Beam Light */
.cyber-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(
    from var(--beam-angle, 0deg),
    transparent 0%,
    transparent 65%,
    rgba(245, 158, 11, 0.85) 78%,
    rgba(56, 189, 248, 1) 88%,
    rgba(34, 197, 94, 0.95) 95%,
    transparent 100%
  );
  -webkit-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: 5;
  animation: quantumBeamSpin 3s linear infinite;
}

@keyframes quantumBeamSpin {
  0%   { --beam-angle: 0deg; }
  100% { --beam-angle: 360deg; }
}

.cyber-card:hover::after {
  opacity: 1;
}

.cyber-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 20px 42px -12px rgba(0, 0, 0, 0.95), 
              0 0 28px rgba(245, 158, 11, 0.12),
              inset 0 0 0 1px rgba(255, 255, 255, 0.16) !important;
}

/* Depth Watermark inside cyber-card */
.cyber-watermark {
  position: absolute;
  right: -8px;
  bottom: -8px;
  width: 170px;
  height: 120px;
  opacity: 0.04;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 1;
}

.cyber-card:hover .cyber-watermark {
  opacity: 0.16;
  transform: translateY(-3px) scale(1.04);
}

/* =========================================================================
   SCROLL HIGHWAY — Dynamic Drawing Arrow Tracking Scroll Progress
   ========================================================================= */
#scrollHighway {
  position: fixed;
  right: 14px;
  top: 90px;
  bottom: 90px;
  width: 28px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  user-select: none;
}

#scrollTrackContainer {
  position: relative;
  width: 100%;
  flex: 1;
  cursor: pointer;
}

#scrollHighwaySvg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

#scrollPctBadge {
  position: absolute;
  right: 28px;
  transform: translateY(-50%);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: #22c55e;
  background: rgba(9, 9, 11, 0.92);
  border: 1px solid rgba(34, 197, 94, 0.35);
  padding: 2px 6px;
  border-radius: 4px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.8);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
  white-space: nowrap;
}

#scrollHighway:hover #scrollPctBadge,
#scrollHighway.scrolling #scrollPctBadge {
  opacity: 1;
}

/* =========================================================================
   WALL STREET BULL — Authentic Sculpted Bull & 2-Phase Red-to-Green Animation
   ========================================================================= */
#bullWrapper {
  position: relative;
  display: inline-block;
  overflow: visible;
}

#wallStreetBull {
  cursor: pointer;
  user-select: none;
  display: block;
  transition: filter 0.25s ease, transform 0.25s ease;
  transform-origin: center bottom;
  filter: drop-shadow(0 0 10px rgba(194, 120, 60, 0.5));
}

#wallStreetBull:hover {
  filter: drop-shadow(0 0 20px rgba(239, 68, 68, 0.85)) brightness(1.08);
  transform: scale(1.04);
}

/* SVG-only classes (legacy, kept for completeness) */
.bull-fill { fill: currentColor; transition: fill 0.25s ease; }
.bull-fill-dark { fill: rgba(0,0,0,0.32); }
.bull-fill-accent { fill: rgba(255,255,255,0.22); }
.bull-snout { fill: rgba(0,0,0,0.42); }
.bull-nostril { fill: rgba(0,0,0,0.78); }
.bull-line { stroke: rgba(0,0,0,0.28); }
.bull-eye-bg { fill: #09090b; }
.bull-eye-glow { fill: #fef08a; }
.bull-horn { fill: #f59e0b; transition: fill 0.25s ease; }
.bull-horn-front { fill: #fbbf24; transition: fill 0.25s ease; }
.bull-hoof { fill: rgba(0,0,0,0.55); }


/* --------------------------------------------------
   PHASE 1 (0 to 0.5s): RED — Rapid Hoof Scrape (no X movement)
   Bull rocks forward + stamps front leg into ground repeatedly
   -------------------------------------------------- */
#wallStreetBull.phase-red {
  filter: drop-shadow(0 0 24px rgba(239, 68, 68, 1))
          sepia(1) saturate(8) hue-rotate(320deg)
          brightness(1.05) !important;
  transform-origin: center bottom;
  animation: bullHoofScrapeRed 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) forwards;
}

@keyframes bullHoofScrapeRed {
  0%   { transform: rotate(0deg)   translateY(0px)   scale(1);    }
  14%  { transform: rotate(-5deg)  translateY(-7px)  scale(1.03); } /* lift front leg */
  28%  { transform: rotate(3deg)   translateY(3px)   scale(0.97); } /* stamp into ground */
  42%  { transform: rotate(-5deg)  translateY(-6px)  scale(1.03); } /* lift again */
  57%  { transform: rotate(3deg)   translateY(3px)   scale(0.97); } /* stamp again */
  72%  { transform: rotate(-4deg)  translateY(-5px)  scale(1.02); } /* lift lighter */
  86%  { transform: rotate(2deg)   translateY(2px)   scale(0.99); } /* stamp lighter */
  100% { transform: rotate(-2deg)  translateY(-2px)  scale(1.01); } /* settle with tension */
}

/* --------------------------------------------------
   PHASE 2 (0.5s to 1.0s): GREEN — Explosive Paw Roar (no X movement)
   Bull rears up, then slams front hoof hard into ground — aggressive circus-bull stance
   -------------------------------------------------- */
#wallStreetBull.phase-green {
  filter: drop-shadow(0 0 32px rgba(34, 197, 94, 1))
          drop-shadow(0 0 10px #22c55e)
          sepia(1) saturate(8) hue-rotate(90deg)
          brightness(1.1) !important;
  transform-origin: center bottom;
  animation: bullHoofScrapeGreen 0.5s cubic-bezier(0.18, 0.9, 0.32, 1.1) forwards;
}

@keyframes bullHoofScrapeGreen {
  0%   { transform: rotate(-2deg)  translateY(-2px)  scale(1.01); } /* from red end-state */
  18%  { transform: rotate(-10deg) translateY(-14px) scale(1.08); } /* REAR UP — head thrown back */
  35%  { transform: rotate(6deg)   translateY(4px)   scale(1.12); } /* SLAM DOWN — front hoof smashes */
  50%  { transform: rotate(-7deg)  translateY(-10px) scale(1.09); } /* lift again with power */
  65%  { transform: rotate(5deg)   translateY(3px)   scale(1.11); } /* second ground slam */
  80%  { transform: rotate(-5deg)  translateY(-7px)  scale(1.08); } /* final raise */
  100% { transform: rotate(-3deg)  translateY(-4px)  scale(1.06); } /* hold aggressive lean */
}

/* Dust puff particles (Red during P1, Green during P2) */
.bull-dust {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: dustPuff 0.75s cubic-bezier(0.2, 0.8, 0.25, 1) forwards;
}

@keyframes dustPuff {
  0%   { transform: scale(0.2) translate(0, 0); opacity: 0.95; }
  40%  { opacity: 0.8; }
  100% { transform: scale(3.5) translate(var(--dx), var(--dy)); opacity: 0; }
}

/* Magnetic Hover Pull for Buttons */
.magnetic-btn {
  position: relative;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.2s;
  will-change: transform;
}

.magnetic-btn:active {
  transform: scale(0.94) !important;
}

/* Scroll-triggered Smooth Reveal Animations (Optimized for 60/120fps lag-free performance) */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(22px) translateZ(0);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

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

/* Stagger delays */
.delay-100 { transition-delay: 0.08s; }
.delay-200 { transition-delay: 0.15s; }
.delay-300 { transition-delay: 0.22s; }
.delay-400 { transition-delay: 0.30s; }

/* =========================================================================
   HERO 3D FLIP CARD — 6-SECOND CONTINUOUS WALL STREET BULL CYCLE
   0s - 6s: Phase 1 (Slow hoof scrape / tension, Red Dust)
   6s - 12s: Phase 2 (Slow majestic rear up & settle, Green Dust)
   Bull's colour remains authentic throughout — slow, cinematic motion!
   ========================================================================= */
#heroBullImg {
  cursor: pointer;
  user-select: none;
  display: block;
  transform-origin: center bottom;
  animation: heroBullSlowMotion 12s ease-in-out infinite;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.7));
  will-change: transform;
}

@keyframes heroBullSlowMotion {
  /* PHASE 1: 0s–6s — Slow, heavy hoof tension. Subtle weight shift. */
  0%   { transform: rotate(0deg) translateY(0px) scale(1); }
  8%   { transform: rotate(-2deg) translateY(-3px) scale(1.01); }
  18%  { transform: rotate(2deg) translateY(3px) scale(0.99); }
  28%  { transform: rotate(-3deg) translateY(-5px) scale(1.02); }
  38%  { transform: rotate(1.5deg) translateY(2px) scale(0.99); }
  48%  { transform: rotate(-1deg) translateY(-2px) scale(1.005); }
  50%  { transform: rotate(0deg) translateY(0px) scale(1); }

  /* PHASE 2: 6s–12s — Slow cinematic rear-up. Majestic, powerful. */
  60%  { transform: rotate(-6deg) translateY(-10px) scale(1.06); }
  70%  { transform: rotate(3deg) translateY(3px) scale(1.08); }
  80%  { transform: rotate(-5deg) translateY(-8px) scale(1.05); }
  90%  { transform: rotate(2deg) translateY(2px) scale(1.04); }
  96%  { transform: rotate(-1deg) translateY(-2px) scale(1.01); }
  100% { transform: rotate(0deg) translateY(0px) scale(1); }
}

/* Realistic dust particle — soft, irregular, gravity-pulled cloud puff */
.flip-bull-dust {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform, opacity, filter;
}

/* Variant A: main drifting puff (larger, blurs as it rises) */
.flip-bull-dust.puff-a {
  animation: dustDriftA 1.8s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
/* Variant B: small ground-scatter (quick settle) */
.flip-bull-dust.puff-b {
  animation: dustDriftB 1.3s cubic-bezier(0.4, 0.0, 0.8, 0.6) forwards;
}
/* Variant C: wispy trail (rises slowly, long fade) */
.flip-bull-dust.puff-c {
  animation: dustDriftC 2.4s ease-out forwards;
}

@keyframes dustDriftA {
  0%   { transform: scale(0.2) translate(0, 0);                     opacity: 0.7;  filter: blur(1px); }
  20%  { transform: scale(1.1) translate(calc(var(--dx)*0.4em), calc(var(--dy)*0.3em)); opacity: 0.55; filter: blur(2px); }
  60%  { transform: scale(2.4) translate(calc(var(--dx)*0.8em), calc(var(--dy)*0.7em)); opacity: 0.28; filter: blur(4px); }
  100% { transform: scale(3.6) translate(calc(var(--dx)*1em), calc(var(--dy)*1em));     opacity: 0;    filter: blur(7px); }
}

@keyframes dustDriftB {
  0%   { transform: scale(0.4) translate(0, 0);                     opacity: 0.8;  filter: blur(0px); }
  40%  { transform: scale(1.5) translate(calc(var(--dx)*0.6em), 2px); opacity: 0.4;  filter: blur(2px); }
  100% { transform: scale(2.2) translate(calc(var(--dx)*1em), 4px);  opacity: 0;    filter: blur(5px); }
}

@keyframes dustDriftC {
  0%   { transform: scale(0.15) translate(0, 0);                    opacity: 0.5;  filter: blur(2px); }
  30%  { transform: scale(1.0) translate(calc(var(--dx)*0.3em), calc(var(--dy)*0.5em)); opacity: 0.35; filter: blur(4px); }
  100% { transform: scale(4.5) translate(calc(var(--dx)*0.8em), calc(var(--dy)*1.2em)); opacity: 0;    filter: blur(9px); }
}

/* Rotating Stamp */
@keyframes spin-slow {
  to { transform: rotate(360deg); }
}
.animate-spin-slow {
  animation: spin-slow 22s linear infinite;
}

/* Radar pulse animation for Surat Map Pin */
@keyframes radarPing {
  0% {
    transform: scale(0.8);
    opacity: 0.9;
  }
  100% {
    transform: scale(2.6);
    opacity: 0;
  }
}

.radar-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid rgba(245, 158, 11, 0.8);
  animation: radarPing 2.2s cubic-bezier(0.1, 0.8, 0.3, 1) infinite;
  pointer-events: none;
}

.radar-ring-2 {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  border: 1.5px solid rgba(34, 197, 94, 0.6);
  animation: radarPing 2.2s cubic-bezier(0.1, 0.8, 0.3, 1) infinite 0.7s;
  pointer-events: none;
}

/* Location preview keeps its own surface so global day-theme utility overrides
   cannot leave dark text sitting on a dark map panel. */
.location-map-surface { background:#0d1117; }
.location-map-mark { isolation:isolate; }
.location-map-mark .radar-ring,
.location-map-mark .radar-ring-2 { z-index:-1; inset:-10px; }
.location-map-mark .radar-ring-2 { inset:-20px; }
.location-map-preview .location-map-directions { color:#fff!important; }
html.light .location-map-surface { background:linear-gradient(145deg,#fff 0%,#f2f6fc 100%); }
html.light .location-map-mark { background:#fff!important; border-color:#d99a20!important; box-shadow:0 0 28px rgba(217,154,32,.2)!important; }
html.light .location-map-mark .radar-ring { border-color:rgba(217,154,32,.62); }
html.light .location-map-mark .radar-ring-2 { border-color:rgba(22,126,83,.48); }
html.light .location-map-preview .location-map-directions { color:#26364d!important; background:rgba(255,255,255,.82)!important; border-color:#cbd7e6!important; }
html.light .location-map-preview .location-map-directions:hover { background:#fff!important; }
html.light .location-map-preview .location-map-logo { filter:drop-shadow(0 2px 5px rgba(30,48,72,.16)); }

/* Floating element gentle bounce */
@keyframes floatingHover {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

.animate-floating {
  animation: floatingHover 4s ease-in-out infinite;
}

/* Selection */
::selection {
  background-color: #ffffff;
  color: #000000;
}

/* =========================================================================
   REQUIREMENT 2: WALL STREET BULL FLIP CARD — PURE BLACK BACKDROP & INTENSE NOSE SMOKE / DUST
   ========================================================================= */
.flip-bull-dark-bg {
  background: #000000 !important;
  background-color: #000000 !important;
  background-image: none !important;
}

/* Dual-Nostril Snorting Jet Smoke */
.bull-nose-smoke {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform, opacity, filter;
  z-index: 25;
}

.bull-nose-smoke.smoke-left {
  animation: nostrilSmokeLeft 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.bull-nose-smoke.smoke-right {
  animation: nostrilSmokeRight 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes nostrilSmokeLeft {
  0% {
    transform: translate(0, 0) scale(0.3) rotate(0deg);
    opacity: 0.95;
    filter: blur(1px);
  }
  25% {
    transform: translate(-14px, -10px) scale(1.6) rotate(-15deg);
    opacity: 0.85;
    filter: blur(3px);
  }
  60% {
    transform: translate(-32px, -24px) scale(2.8) rotate(-35deg);
    opacity: 0.45;
    filter: blur(6px);
  }
  100% {
    transform: translate(-48px, -40px) scale(4.2) rotate(-50deg);
    opacity: 0;
    filter: blur(10px);
  }
}

@keyframes nostrilSmokeRight {
  0% {
    transform: translate(0, 0) scale(0.3) rotate(0deg);
    opacity: 0.95;
    filter: blur(1px);
  }
  25% {
    transform: translate(14px, -10px) scale(1.6) rotate(15deg);
    opacity: 0.85;
    filter: blur(3px);
  }
  60% {
    transform: translate(32px, -24px) scale(2.8) rotate(35deg);
    opacity: 0.45;
    filter: blur(6px);
  }
  100% {
    transform: translate(48px, -40px) scale(4.2) rotate(50deg);
    opacity: 0;
    filter: blur(10px);
  }
}

/* Supercharged Dense Ground Dust */
.bull-dust-heavy {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform, opacity, filter;
  z-index: 15;
}

.bull-dust-heavy.burst-fast {
  animation: dustBurstFast 1.1s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards;
}

.bull-dust-heavy.burst-billow {
  animation: dustBurstBillow 2.0s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

@keyframes dustBurstFast {
  0% {
    transform: scale(0.3) translate(0, 0);
    opacity: 0.95;
    filter: blur(1px);
  }
  40% {
    transform: scale(1.9) translate(calc(var(--dx) * 0.7em), calc(var(--dy) * 0.4em));
    opacity: 0.75;
    filter: blur(3.5px);
  }
  100% {
    transform: scale(3.4) translate(calc(var(--dx) * 1.3em), calc(var(--dy) * 0.8em));
    opacity: 0;
    filter: blur(8px);
  }
}

@keyframes dustBurstBillow {
  0% {
    transform: scale(0.2) translate(0, 0);
    opacity: 0.85;
    filter: blur(1px);
  }
  30% {
    transform: scale(1.6) translate(calc(var(--dx) * 0.4em), calc(var(--dy) * 0.3em));
    opacity: 0.6;
    filter: blur(4px);
  }
  70% {
    transform: scale(3.2) translate(calc(var(--dx) * 0.9em), calc(var(--dy) * 0.7em));
    opacity: 0.3;
    filter: blur(8px);
  }
  100% {
    transform: scale(4.8) translate(calc(var(--dx) * 1.4em), calc(var(--dy) * 1.1em));
    opacity: 0;
    filter: blur(14px);
  }
}

/* =========================================================================
   REQUIREMENT 6: DASHING DAY / NIGHT THEME SWITCHER
   ========================================================================= */
.tpa-theme-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9999px;
  padding: 2px;
  cursor: pointer;
  user-select: none;
  backdrop-filter: blur(10px);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  height: 36px;
  width: 72px;
}

.tpa-theme-toggle:hover {
  border-color: #f59e0b;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.35);
  transform: translateY(-1px);
}

.tpa-theme-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.6);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.4s ease, box-shadow 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

html.dark .tpa-theme-thumb {
  transform: translateX(36px);
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.6);
}

.tpa-theme-icon-btn {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 30px;
  border-radius: 50%;
  color: #a1a1aa;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tpa-theme-icon-btn.active {
  color: #ffffff;
}

.tpa-theme-icon-btn svg {
  width: 17px;
  height: 17px;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tpa-theme-icon-btn:hover svg {
  transform: scale(1.2);
}

.tpa-theme-icon-btn.active.is-sun svg {
  animation: sunSpinBurst 8s linear infinite;
}

.tpa-theme-icon-btn.active.is-moon svg {
  animation: moonWobble 4s ease-in-out infinite;
}

@keyframes sunSpinBurst {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes moonWobble {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(-15deg) scale(1.08); }
}

/* Theme Ripple Wave Animation on Theme Switch */
.tpa-theme-ripple {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%) scale(0);
  animation: tpaRippleExpand 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes tpaRippleExpand {
  0% { transform: translate(-50%, -50%) scale(0); opacity: 0.6; }
  100% { transform: translate(-50%, -50%) scale(5); opacity: 0; }
}

/* =========================================================================
   LIGHT / DAY MODE STYLING — FINANCIAL INSTITUTIONAL PALETTE
   ========================================================================= */
html.light {
  color-scheme: light;
  background-color: #f8fafc !important;
  color: #0f172a !important;
}

html.light body {
  background-color: #f8fafc !important;
  color: #0f172a !important;
}

html.light #topHeaderGroup {
  background-color: rgba(248, 250, 252, 0.95) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

html.light #topHeaderGroup .bg-neutral-950\/90 {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
  color: #475569 !important;
}

html.light #topHeaderGroup .text-white {
  color: #0f172a !important;
}

html.light .bg-canvas\/85,
html.light .bg-canvas\/90,
html.light .bg-canvas\/95,
html.light .bg-canvas\/40 {
  background-color: rgba(255, 255, 255, 0.95) !important;
}

html.light .bg-canvas-soft-2 {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
  color: #0f172a !important;
}

html.light .bg-neutral-950,
html.light .bg-neutral-900 {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border-color: #e2e8f0 !important;
}

html.light .text-white {
  color: #0f172a !important;
}

html.light .text-neutral-400,
html.light .text-neutral-300,
html.light .text-neutral-200,
html.light .text-body {
  color: #475569 !important;
}

html.light .text-mute {
  color: #64748b !important;
}

html.light .border-hairline,
html.light .border-white\/10,
html.light .border-white\/20 {
  border-color: #e2e8f0 !important;
}

html.light .cyber-card,
html.light .tilt-card {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 0 1px rgba(0, 0, 0, 0.1) !important;
}

html.light .cyber-card:hover,
html.light .tilt-card:hover {
  border-color: #f59e0b !important;
  box-shadow: 0 15px 35px -5px rgba(245, 158, 11, 0.15), 0 0 1px rgba(245, 158, 11, 0.4) !important;
}

html.light input,
html.light textarea,
html.light select {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}

html.light input::placeholder,
html.light textarea::placeholder {
  color: #94a3b8 !important;
}

html.light .tpa-theme-toggle {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

html.light .tpa-theme-icon-btn {
  color: #64748b;
}

html.light .tpa-theme-icon-btn.active {
  color: #000000;
}

html.light #xuBackgroundCanvas {
  opacity: 0.3 !important;
  filter: invert(1) hue-rotate(180deg);
}

html.light #floatingCandlesCanvas {
  opacity: 0.25 !important;
}

html.light footer {
  border-color: #e2e8f0 !important;
}

html.light #mobileMenu {
  background-color: rgba(255, 255, 255, 0.98) !important;
  border-color: #e2e8f0 !important;
}

/* Final responsive polish and richer bull effects */
@media (max-width: 767px) {
  #scrollHighway { display:none!important; }
  #topHeaderGroup nav > div:first-child { gap:.35rem; }
  .theme-toggle { width:38px;height:38px;flex:0 0 38px; }
  .tpa-brand-text { font-size:11px!important;letter-spacing:.025em!important; }
  main { padding-top:6rem!important; }
  .reveal-on-scroll { transform:translateY(14px); }
  #heroCardInner { max-width:76vw;max-height:76vw; }
  #heroCardWrapper { margin-block:1.25rem; }
  input,select,textarea,button { max-width:100%; }
}
@media (max-width: 420px) {
  #topHeaderGroup nav { padding-left:.65rem!important;padding-right:.65rem!important; }
  #topHeaderGroup nav > div:first-child > a { gap:.35rem!important; }
  nav > div:first-child > a .tpa-header-symbol { height:34px!important;max-width:42px!important; }
  .tpa-wordmark-header { height:10px!important; }
  .theme-toggle { width:34px;height:34px;flex-basis:34px; }
  #tpaAuthModal .grid-cols-2 { grid-template-columns:minmax(0,1fr)!important; }
}
.fixed nav a .flex-col > span:first-child { font-family:'Michroma','Orbitron','Inter',sans-serif;letter-spacing:.025em; }
#tpaAuthModal input,#tpaAuthModal button,#tpaCallbackModal input,#tpaCallbackModal button { will-change:auto; }
#heroBullWrapper::after {
  content:"";position:absolute;left:61%;top:27%;width:20px;height:16px;border-radius:50%;
  background:radial-gradient(ellipse,rgba(255,255,255,.48),rgba(210,215,220,.15) 48%,transparent 75%);
  filter:blur(5px);pointer-events:none;animation:nose-smoke 1.7s ease-out infinite;
}
@keyframes nose-smoke {
  0% { opacity:0;transform:translate(0,0) scale(.45); }
  18% { opacity:.58; }
  100% { opacity:0;transform:translate(12px,-24px) scale(1.8); }
}
html[data-theme="light"] #ambientCanvas { opacity:.14; }
html[data-theme="light"] #scrollProgressBar { filter:saturate(.8); }

/* Day and night choices remain visible together; active icon gets its own motion. */
.theme-switcher { display:inline-flex;align-items:center;gap:3px;padding:4px;border:1px solid rgba(148,163,184,.28);border-radius:999px;background:rgba(255,255,255,.08);backdrop-filter:blur(12px); }
.theme-switcher button { position:relative;display:grid;place-items:center;width:34px;height:34px;padding:0;border:0;border-radius:50%;background:transparent;color:#9ca3af;cursor:pointer;transition:color .25s,background .25s,box-shadow .25s,transform .25s; }
.theme-switcher svg { width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transition:transform .55s cubic-bezier(.2,.8,.2,1),filter .3s; }
.theme-switcher button:hover { color:#fbbf24;transform:scale(1.08); }
.theme-switcher button.is-active { color:#fbbf24;background:rgba(245,158,11,.16);box-shadow:0 0 16px rgba(245,158,11,.2),inset 0 0 0 1px rgba(245,158,11,.22); }
.theme-switcher button[data-theme-choice="light"].is-switching svg { animation:sun-switch .65s cubic-bezier(.2,.8,.2,1); }
.theme-switcher button[data-theme-choice="dark"].is-switching svg { animation:moon-switch .65s cubic-bezier(.2,.8,.2,1); }
@keyframes sun-switch { 50% { transform:rotate(150deg) scale(1.35);filter:drop-shadow(0 0 7px #fbbf24); } }
@keyframes moon-switch { 50% { transform:rotate(-35deg) scale(1.3);filter:drop-shadow(0 0 7px #a5b4fc); } }
.theme-transition-flare { position:fixed;inset:0;z-index:9997;pointer-events:none;background:radial-gradient(ellipse at 50% 0%,rgba(251,191,36,.2),transparent 65%);animation:theme-flare .7s ease-out forwards; }
@keyframes theme-flare { from { opacity:0; } 30% { opacity:1; } to { opacity:0; } }

/* Cohesive daylight palette: cool porcelain surfaces, ink text, warm gold accents. */
html.light { color-scheme:light;background:#f1f5fb!important;color:#18263b!important; }
html.light body { background:radial-gradient(ellipse at 50% 0%,#ffffff 0%,#f4f7fc 54%,#eaf0f8 100%)!important;color:#18263b!important; }
html.light body[class*="bg-[#050505"] { background:radial-gradient(ellipse at 50% 0%,#ffffff 0%,#f4f7fc 54%,#eaf0f8 100%)!important; }
html.light .fixed.top-0, html.light #topHeaderGroup, html.light footer { background-color:rgba(248,250,253,.94)!important;border-color:#d9e1ec!important;box-shadow:0 8px 28px rgba(24,38,59,.06); }
html.light [class*="bg-canvas"],
html.light [class*="bg-neutral-950"],
html.light [class*="bg-neutral-900"],
html.light [class*="bg-neutral-800"],
html.light [class*="bg-[#050505"],
html.light [class*="bg-[#070709"],
html.light [class*="bg-black"] { background-color:#fff!important; }
html.light [class*="from-neutral-950"],
html.light [class*="from-emerald-950"],
html.light [class*="from-black"] { background-image:none!important;background-color:#fff!important; }
html.light [class*="text-white"], html.light [class*="text-ink"] { color:#18263b!important; }
html.light [class*="text-neutral-200"],html.light [class*="text-neutral-300"],html.light [class*="text-neutral-400"],html.light [class*="text-body"] { color:#53647b!important; }
html.light [class*="text-neutral-500"],html.light [class*="text-neutral-600"],html.light [class*="text-neutral-700"] { color:#66758a!important; }
html.light [class*="text-transparent"][class*="bg-gradient-to-"] { background:none!important;color:#18263b!important;-webkit-text-fill-color:#18263b!important; }
html.light [class*="border-white"],html.light [class*="border-hairline"],html.light [class*="border-neutral-700"] { border-color:#dce4ef!important; }
html.light .tilt-card,html.light .cyber-card { background:linear-gradient(145deg,#fff,#f8faff)!important;border-color:#dce4ef!important;box-shadow:0 12px 30px rgba(31,53,84,.07)!important; }
html.light .tilt-card:hover,html.light .cyber-card:hover { border-color:#eab54a!important;box-shadow:0 18px 34px rgba(31,53,84,.11)!important; }
html.light input,html.light textarea,html.light select { background:#fff!important;color:#18263b!important;border-color:#cbd5e1!important; }
html.light input::placeholder,html.light textarea::placeholder { color:#8795a8!important; }
html.light .theme-switcher { background:rgba(255,255,255,.92);border-color:#d6dfeb;box-shadow:0 3px 12px rgba(31,53,84,.08); }
html.light .theme-switcher button.is-active { background:#fff2cf;color:#9a6100;box-shadow:0 0 0 1px rgba(217,151,24,.22),0 2px 9px rgba(217,151,24,.13); }
html.light [class*="bg-black/"] { background-color:rgba(21,35,55,.38)!important; }
html.light #heroCardInner [class*="bg-[#070709"] { background-color:#070709!important; }
@media(max-width:420px) { .theme-switcher { gap:1px;padding:3px; }.theme-switcher button { width:31px;height:31px; } }
.theme-switcher button[data-theme-choice="dark"].is-active { color:#a5b4fc;background:rgba(99,102,241,.12);box-shadow:0 0 16px rgba(129,140,248,.18),inset 0 0 0 1px rgba(129,140,248,.22); }
html.light .theme-switcher button[data-theme-choice="dark"].is-active { color:#6674cf;background:#e8ebff; }
/* Stronger contrast and motion for the day palette. */
html.light [class*="text-amber-"] { color:#98600b!important; }
html.light [class*="text-emerald-"] { color:#176a43!important; }
html.light [class*="text-sky-"] { color:#17628d!important; }
html.light [class*="text-blue-"] { color:#2457a6!important; }
html.light [class*="text-red-"] { color:#a83b42!important; }
html.light [class*="text-purple-"] { color:#7044a0!important; }
html.light .tilt-card,html.light .cyber-card,
html.light [class*="bg-neutral-950"],html.light [class*="bg-neutral-900"],
html.light [class*="bg-neutral-800"],html.light [class*="bg-canvas-soft"] {
  border-color:#cbd7e6!important;
  box-shadow:0 12px 30px rgba(37,57,84,.09),0 2px 5px rgba(37,57,84,.045)!important;
}
html.light .tilt-card:hover,html.light .cyber-card:hover {
  transform:translateY(-4px);
  box-shadow:0 20px 38px rgba(37,57,84,.14),0 4px 10px rgba(37,57,84,.06)!important;
}
html.light .reveal-on-scroll.is-revealed { animation:day-card-arrive .72s cubic-bezier(.2,.75,.25,1) both; }
@keyframes day-card-arrive {
  from { opacity:.35;transform:translateY(20px) scale(.985); }
  to { opacity:1;transform:translateY(0) scale(1); }
}
html.light #ambientCanvas { opacity:.42!important; }
html.light #xuBackgroundCanvas { opacity:.38!important; }
html.light #floatingCandlesCanvas { opacity:.34!important; }
html.light .fixed nav img[src*="tpa-logo-transparent"],html.light footer img[src*="tpa-logo-transparent"] { filter:drop-shadow(0 2px 5px rgba(30,48,72,.18)); }
html.light .fixed nav img[src*="tpa-logo-darkmode"],html.light footer img[src*="tpa-logo-darkmode"] { filter:brightness(.65) drop-shadow(0 2px 5px rgba(30,48,72,.18)); }
html.light .theme-switcher button[data-theme-choice="light"].is-active { color:#a96500;background:#fff0c2;box-shadow:0 0 0 1px rgba(217,151,24,.28),0 0 15px rgba(217,151,24,.18); }
html.light .theme-switcher button[data-theme-choice="light"].is-switching svg { animation:sun-switch .65s cubic-bezier(.2,.8,.2,1); }

/* The landing hero gets a livelier daylight treatment without changing the
   motion density of the rest of the page. */
#hero { isolation:isolate; }
#hero::before {
  content:"";position:absolute;inset:0;z-index:0;pointer-events:none;opacity:0;
  background-image:radial-gradient(circle,rgba(217,154,32,.34) 1.2px,transparent 1.8px),radial-gradient(circle,rgba(32,132,97,.25) 1.4px,transparent 2px),radial-gradient(ellipse at 50% 50%,rgba(255,255,255,.42),transparent 68%);
  background-size:46px 46px,71px 71px,100% 100%;background-position:0 0,24px 19px,center;
  animation:hero-day-atmosphere 16s linear infinite;
}
@keyframes hero-day-atmosphere {
  0% { background-position:0 0,24px 19px,center; }
  50% { background-position:23px 34px,-11px 54px,center; }
  100% { background-position:46px 46px,-47px 90px,center; }
}
@keyframes hero-card-float {
  0%,100% { translate:0 0; }
  50% { translate:0 -8px; }
}
@keyframes hero-logo-glint {
  0%,100% { filter:drop-shadow(0 7px 17px rgba(217,154,32,.18)); }
  50% { filter:drop-shadow(0 9px 27px rgba(217,154,32,.48)); }
}
html.light #hero::before { opacity:.8; }
html.light #heroCardWrapper { animation:hero-card-float 5.5s ease-in-out infinite; }
html.light #heroCardInner > div:first-child { animation:hero-logo-glint 4s ease-in-out infinite; }
html.light #heroCardInner > div:first-child > .pointer-events-none { background-image:linear-gradient(180deg,rgba(245,158,11,.12),transparent 78%)!important; }
html.light #heroCardInner [data-theme-logo] { filter:drop-shadow(0 5px 12px rgba(29,43,67,.18)); }
html.light #hero .animate-spin-slow { animation-duration:13s; }
html.light #xuBackgroundCanvas { opacity:.48!important; }
html.light #floatingCandlesCanvas { opacity:.5!important; }
html.light .hero-social-links a { padding:0!important;display:grid;place-items:center;flex:none; }
.hero-social-links a img { display:block;width:16px;height:16px;object-fit:contain; }
.hero-social-links a svg { display:block;width:16px;height:16px; }
html.light .hero-social-links a { background:#fff!important;border-color:#d5deeb!important;box-shadow:0 2px 8px rgba(31,53,84,.08); }
html.light .hero-social-links a:hover { box-shadow:0 5px 14px rgba(31,53,84,.16); }

/* Fluid layout safeguards for phones, tablets, and narrow desktop windows. */
html,body { max-width:100%; }
img,video,iframe { max-width:100%; }
.grid > * { min-width:0; }
main,section,footer { min-width:0; }

@media (max-width: 1023px) {
  #hero .hero-halo { width:min(76vw,350px)!important;height:min(76vw,350px)!important; }
  #hero .hero-orbit { width:min(88vw,390px)!important;height:min(88vw,390px)!important; }
}
@media (max-width: 767px) {
  #hero > div:first-child { min-height:auto; }
  #heroCardInner { width:min(76vw,256px)!important;height:min(76vw,256px)!important; }
  #hero .hero-halo { width:min(82vw,290px)!important;height:min(82vw,290px)!important; }
  #hero .hero-orbit { width:min(92vw,330px)!important;height:min(92vw,330px)!important; }
  #hero h1 { font-size:clamp(2.6rem,12vw,4.5rem); }
  #hero footer { padding-bottom:1.5rem; }
  #hero footer > div:last-child { max-width:100%;text-align:center;flex-wrap:wrap;justify-content:center; }
  #galleryLightbox > div,#blogReaderModal > div { max-height:calc(100dvh - 2rem);overflow-y:auto; }
}
@media (max-width: 420px) {
  .tpa-wordmark-header { height:10px!important; }
  .tpa-wordmark-footer { height:13px; }
  nav > div:first-child > a .tpa-header-symbol { height:30px!important;max-width:38px!important; }
  #hero .hero-halo { width:76vw!important;height:76vw!important; }
  #hero .hero-orbit { width:88vw!important;height:88vw!important; }
  #galleryLightbox > div,#blogReaderModal > div { padding:1rem; }
}
@media (max-width: 360px) {
  nav > div:first-child > a .tpa-header-symbol { display:none!important; }
  .tpa-wordmark-header { height:9px!important; }
}





/* Soft cursor spotlight */
#cursorSpotlight {
  position:fixed;left:0;top:0;z-index:9990;width:100px;height:100px;border-radius:50%;pointer-events:none;
  background:radial-gradient(circle,rgba(245,158,11,.2) 0%,rgba(245,158,11,.11) 34%,rgba(245,158,11,.04) 58%,transparent 78%);
  opacity:.78;transform:translate3d(-100px,-100px,0) translate(-50%,-50%);transition:width .28s ease,height .28s ease,opacity .28s ease,background .28s ease;
}
#cursorSpotlight::after { content:"";position:absolute;left:50%;top:50%;width:7px;height:7px;border-radius:50%;background:rgba(245,158,11,.9);box-shadow:0 0 10px rgba(245,158,11,.68);transform:translate(-50%,-50%); }
body.cursor-hover #cursorSpotlight { width:120px;height:120px;opacity:.95;background:radial-gradient(circle,rgba(52,211,153,.17) 0%,rgba(52,211,153,.08) 34%,rgba(52,211,153,.025) 58%,transparent 78%); }
body.cursor-hover #cursorSpotlight::after { width:8px;height:8px;background:rgba(52,211,153,.95);box-shadow:0 0 11px rgba(52,211,153,.7); }
@media (hover:none),(pointer:coarse) { #cursorSpotlight { display:none; } }
/* Restricted admin entry point */
#floorVideoPlayOverlay { opacity:1;visibility:visible;transition:opacity 1.5s ease,visibility 0s linear; }
#floorVideoPlayOverlay.is-fading-out { opacity:0;visibility:hidden;pointer-events:none;transition:opacity 1.5s ease,visibility 0s linear 1.5s; }
.floor-video-frame:hover .floor-play-glow { animation:floor-play-glow .42s ease-in-out infinite alternate; }
@keyframes floor-play-glow {
  from { box-shadow:0 0 0 5px rgba(255,255,255,.32),0 8px 24px rgba(120,73,12,.42),0 0 28px 10px rgba(255,38,56,.95),0 0 46px rgba(255,38,56,.48); }
  to { box-shadow:0 0 0 5px rgba(255,255,255,.32),0 8px 24px rgba(120,73,12,.42),0 0 28px 10px rgba(34,197,94,.95),0 0 46px rgba(34,197,94,.5); }
}
@media(prefers-reduced-motion:reduce) { .floor-video-frame:hover .floor-play-glow { animation:none!important; } }
