/*! AACGUARD 3D layer · aac3d.css v1.0
 * Additive styles for aac3d.js. Nothing here changes content or layout; remove both files to revert.
 */
:root { --ax-em: #34d399; --ax-cy: #38bdf8; --ax-ease: cubic-bezier(.2, .9, .2, 1); }

/* ---------- navbar ---------- */
.ax-header > div:first-child { transition: background-color .4s, box-shadow .4s, border-color .4s; }
.ax-header.ax-scrolled > div:first-child {
  background-color: rgba(2, 6, 23, .86);
  border-bottom-color: rgba(52, 211, 153, .2);
  box-shadow: 0 14px 40px rgba(2, 6, 23, .6), 0 0 36px rgba(16, 185, 129, .07);
}
.ax-scanline { position: absolute; left: 1rem; right: 1rem; bottom: -1px; height: 1px; overflow: hidden; pointer-events: none; }
.ax-scanline::after {
  content: ""; position: absolute; top: 0; left: -240px; width: 220px; height: 1px;
  background: linear-gradient(90deg, transparent, #6ee7b7 40%, #38bdf8 60%, transparent);
  box-shadow: 0 0 10px rgba(52, 211, 153, .9);
  animation: axScan 7s cubic-bezier(.65, 0, .35, 1) infinite 1s;
}
@keyframes axScan { 0% { left: -240px; } 55%, 100% { left: 100%; } }

/* sliding pill shared by all desktop nav links */
.ax-nav { position: relative; isolation: isolate; gap: 2px !important; }
.ax-nav > a { z-index: 1; padding-left: .7rem !important; padding-right: .7rem !important; }
.ax-nav > a > span.absolute { opacity: 0 !important; }
.ax-nav > a.ax-active { color: #fff; }
.ax-pill {
  position: absolute; z-index: 0; top: 0; left: 0; width: 0; height: 100%; border-radius: 999px;
  pointer-events: none; opacity: 0;
  background: linear-gradient(180deg, rgba(30, 41, 59, .92), rgba(15, 23, 42, .92));
  border: 1px solid rgba(52, 211, 153, .32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 10px 26px rgba(16, 185, 129, .16), 0 0 0 4px rgba(16, 185, 129, .04);
  transition: transform .5s var(--ax-ease), width .5s var(--ax-ease), opacity .3s, border-color .3s, box-shadow .3s;
}
.ax-pill::after {
  content: ""; position: absolute; left: 26%; right: 26%; bottom: -2px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, #34d399, #38bdf8); box-shadow: 0 0 12px rgba(52, 211, 153, .9);
}
.ax-pill--pro { border-color: rgba(251, 191, 36, .4); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 10px 26px rgba(251, 191, 36, .14); }
.ax-pill--pro::after { background: linear-gradient(90deg, #fbbf24, #f59e0b); box-shadow: 0 0 12px rgba(251, 191, 36, .8); }
.ax-pill--live::after { background: linear-gradient(90deg, #f87171, #ef4444); box-shadow: 0 0 12px rgba(248, 113, 113, .8); }
.ax-nav > a[href="/pro.php"] > span.relative {
  background: linear-gradient(90deg, #fcd34d, #f59e0b 40%, #fde68a 60%, #f59e0b);
  background-size: 220% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: axGold 4s linear infinite;
}
@keyframes axGold { to { background-position: 220% center; } }

/* logo coin-flip */
.ax-logo-link { perspective: 600px; }
.ax-logo { transform-style: preserve-3d; transition: transform .9s var(--ax-ease), border-color .3s, box-shadow .3s !important; }
.ax-logo-link:hover .ax-logo { transform: translateY(-2px) rotateY(360deg) !important; }

/* header buttons */
.ax-btn3d {
  position: relative;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .24), rgba(255, 255, 255, 0) 55%) !important;
  box-shadow: 0 3px 0 #b91c1c, 0 8px 22px rgba(239, 68, 68, .3), inset 0 1px 0 rgba(255, 255, 255, .35) !important;
  transition: transform .2s var(--ax-ease), box-shadow .2s, filter .2s !important;
}
.ax-btn3d:hover { transform: translateY(-2px); filter: saturate(1.12); box-shadow: 0 5px 0 #b91c1c, 0 14px 30px rgba(239, 68, 68, .42), inset 0 1px 0 rgba(255, 255, 255, .35) !important; }
.ax-btn3d:active { transform: translateY(2px); box-shadow: 0 1px 0 #b91c1c, 0 4px 12px rgba(239, 68, 68, .3), inset 0 1px 0 rgba(255, 255, 255, .25) !important; }
.ax-glass {
  background: linear-gradient(180deg, rgba(30, 41, 59, .72), rgba(15, 23, 42, .72)) !important;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 8px 20px rgba(2, 6, 23, .4);
  transition: transform .2s var(--ax-ease), border-color .2s, box-shadow .2s !important;
}
.ax-glass:hover { transform: translateY(-2px); border-color: rgba(52, 211, 153, .45) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 12px 26px rgba(16, 185, 129, .16); }

/* mobile menu folds open in 3D */
#mobileNav:not(.hidden) { animation: axDrop .38s var(--ax-ease); transform-origin: 50% 0; }
@keyframes axDrop { from { opacity: 0; transform: perspective(900px) rotateX(-14deg) translateY(-8px); } }
#mobileNav a { transition: transform .2s var(--ax-ease), border-color .2s, background-color .2s; }
#mobileNav a:active { transform: scale(.97); }

/* ---------- hero 3D scene ---------- */
.ax-hero3d { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 1.4s ease; }
.ax-hero3d.on { opacity: 1; }
.ax-hero3d canvas { position: absolute; inset: 0; display: block; width: 100% !important; height: 100% !important; }
/* keeps the headline readable over the scene */
.ax-hero3d::after { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 58% at 24% 46%, rgba(2, 6, 23, .6), rgba(2, 6, 23, 0) 72%); }
@media (max-width: 1023px) {
  .ax-hero3d::after { background: radial-gradient(95% 42% at 50% 28%, rgba(2, 6, 23, .72), rgba(2, 6, 23, 0) 78%); }
}

/* the live console floats over a glowing pad */
.ax-console-wrap::after {
  content: ""; position: absolute; left: 12%; right: 12%; bottom: -38px; height: 34px; pointer-events: none; z-index: -1;
  background: radial-gradient(closest-side, rgba(16, 185, 129, .38), rgba(56, 189, 248, .1) 60%, transparent);
  filter: blur(6px);
}
.ax3d .hx-console { box-shadow: 0 40px 90px rgba(2, 6, 23, .7), 0 0 0 1px rgba(52, 211, 153, .12), 0 0 90px rgba(16, 185, 129, .12); }

/* ---------- depth tilt (uses the independent `rotate` property, so existing transforms keep working) ---------- */
.ax-persp { perspective: 1200px; }
.ax-glare {
  position: absolute; inset: 0; z-index: 5; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 0%), rgba(110, 231, 183, .14), transparent 52%);
}
.ax-tilt:hover > .ax-glare { opacity: 1; }

.ax3d .hx-download { animation: axGlow 3.2s ease-in-out infinite; }
@keyframes axGlow {
  0%, 100% { box-shadow: 0 14px 34px rgba(16, 185, 129, .34), inset 0 1px 0 rgba(255, 255, 255, .45), 0 0 0 0 rgba(52, 211, 153, 0); }
  50% { box-shadow: 0 18px 46px rgba(16, 185, 129, .5), inset 0 1px 0 rgba(255, 255, 255, .45), 0 0 0 6px rgba(52, 211, 153, .12); }
}

/* ---------- page background network ---------- */
.ax-bg3d { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 1.2s ease; }
.ax-bg3d.on { opacity: .62; }

@media (prefers-reduced-motion: reduce) {
  .ax-scanline::after, .ax-nav > a[href="/pro.php"] > span.relative, .ax3d .hx-download, #mobileNav:not(.hidden) { animation: none !important; }
  .ax-pill, .ax-logo { transition: none !important; }
}
