﻿body {
 font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
 background-color: var(--bg-dark) !important;
 color: var(--text-main);
 line-height: 1.6;
 overflow-x: hidden;
 -webkit-font-smoothing: antialiased;
}

/* Gradient text */
.text-gradient {
 background: linear-gradient(135deg, #fff 0%, var(--primary) 100%);
 -webkit-background-clip: text;
 -webkit-text-fill-color: transparent;
 background-clip: text;
}

.text-gradient-primary {
 background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 50%, var(--primary-dark) 100%);
 -webkit-background-clip: text;
 -webkit-text-fill-color: transparent;
 background-clip: text;
}

/* Ambient page background */
.page-ambient {
 position: fixed;
 inset: 0;
 pointer-events: none;
 z-index: 0;
 overflow: hidden;
}

.page-ambient__grid {
 position: absolute;
 inset: 0;
 background-image:
 linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
 linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
 background-size: 64px 64px;
 mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 20%, transparent 80%);
}

.page-ambient__noise {
 position: absolute;
 inset: 0;
 opacity: 0.025;
 background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.page-ambient__orb {
 position: absolute;
 border-radius: 50%;
 filter: blur(120px);
 opacity: 0.55;
 animation: ambientFloat 24s ease-in-out infinite;
 will-change: transform;
}

.page-ambient__orb--1 {
 top: -14rem;
 right: -6rem;
 width: 34rem;
 height: 34rem;
 background: radial-gradient(circle, rgba(45, 212, 191, 0.18) 0%, transparent 70%);
}

.page-ambient__orb--2 {
 bottom: -12rem;
 left: -12rem;
 width: 38rem;
 height: 38rem;
 background: radial-gradient(circle, rgba(20, 184, 166, 0.1) 0%, transparent 70%);
 animation-delay: -8s;
}

.page-ambient__orb--3 {
 top: 35%;
 left: 45%;
 width: 24rem;
 height: 24rem;
 background: radial-gradient(circle, rgba(94, 234, 212, 0.08) 0%, transparent 70%);
 animation-delay: -14s;
}

@keyframes ambientFloat {
 0%, 100% { transform: translate(0, 0) scale(1); }
 33% { transform: translate(2.5rem, -2rem) scale(1.06); }
 66% { transform: translate(-2rem, 2.5rem) scale(0.94); }
}

/* Page hero banner */
.page-hero {
 position: relative;
 padding: 2.5rem;
 border-radius: 1.75rem;
 background: linear-gradient(145deg, rgba(17, 20, 24, 0.85) 0%, rgba(8, 10, 12, 0.6) 100%);
 border: 1px solid rgba(255, 255, 255, 0.06);
 overflow: hidden;
 backdrop-filter: blur(20px);
 -webkit-backdrop-filter: blur(20px);
 box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.page-hero::before {
 content: '';
 position: absolute;
 top: -30%;
 right: -10%;
 width: 50%;
 height: 120%;
 background: radial-gradient(ellipse, rgba(45, 212, 191, 0.12) 0%, transparent 65%);
 pointer-events: none;
}

.page-hero::after {
 content: '';
 position: absolute;
 inset: 0;
 border-radius: inherit;
 padding: 1px;
 background: linear-gradient(135deg, rgba(45, 212, 191, 0.25), transparent 40%, transparent 60%, rgba(45, 212, 191, 0.1));
 -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;
 pointer-events: none;
}

.page-hero__inner {
 position: relative;
 z-index: 1;
}

.page-hero--centered .page-hero__inner {
 max-width: 48rem;
 margin: 0 auto;
}

.page-hero h1 {
 letter-spacing: -0.03em;
}

/* Home hero */
.home-hero {
 position: relative;
 border-radius: 2rem;
 padding: 3rem 2rem;
 overflow: hidden;
 background: linear-gradient(160deg, rgba(17, 20, 24, 0.95) 0%, rgba(8, 10, 12, 0.8) 100%);
 border: 1px solid rgba(255, 255, 255, 0.06);
 backdrop-filter: blur(24px);
 box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

@media (min-width: 768px) {
 .home-hero { padding: 5rem 4rem; }
}
@media (min-width: 1024px) {
 .home-hero { padding: 6rem 5rem; }
}

.home-hero__glow {
 position: absolute;
 border-radius: 50%;
 filter: blur(100px);
 pointer-events: none;
 transition: opacity 0.7s ease;
}

.home-hero__glow--1 {
 top: -8rem;
 right: -6rem;
 width: 24rem;
 height: 24rem;
 background: rgba(45, 212, 191, 0.15);
}

.home-hero__glow--2 {
 bottom: -8rem;
 left: -8rem;
 width: 28rem;
 height: 28rem;
 background: rgba(45, 212, 191, 0.08);
}

.home-hero:hover .home-hero__glow--1 {
 opacity: 1.3;
}

/* Minecraft interactive hero logo */
.mc-logo {
 position: relative;
 display: inline-flex;
 flex-direction: column;
 align-items: center;
 gap: 0.75rem;
 cursor: crosshair;
 user-select: none;
 -webkit-user-select: none;
 touch-action: none;
}

.mc-logo__canvas {
 display: block;
 width: 160px;
 height: 160px;
 image-rendering: pixelated;
 image-rendering: crisp-edges;
 border-radius: 1rem;
 background: #0a0e12;
 box-shadow: 0 0 32px rgba(45, 212, 191, 0.2), inset 0 0 0 1px rgba(45, 212, 191, 0.15);
 transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.mc-logo:hover .mc-logo__canvas,
.mc-logo--mining .mc-logo__canvas,
.mc-logo--sun .mc-logo__canvas {
 box-shadow: 0 0 48px rgba(45, 212, 191, 0.35), inset 0 0 0 2px rgba(45, 212, 191, 0.3);
}

.mc-logo--sun .mc-logo__canvas {
 box-shadow:
 0 0 56px rgba(255, 200, 50, 0.45),
 0 0 32px rgba(37, 128, 195, 0.35),
 inset 0 0 0 2px rgba(255, 200, 50, 0.35);
 animation: mcSunGlow 2s ease-in-out infinite;
}

.mc-logo--sun.mc-logo--mining .mc-logo__canvas {
 animation: mcShake 0.15s linear infinite;
}

@keyframes mcSunGlow {
 0%, 100% {
 box-shadow:
 0 0 40px rgba(255, 200, 50, 0.35),
 0 0 24px rgba(37, 128, 195, 0.25),
 inset 0 0 0 2px rgba(255, 200, 50, 0.3);
 }
 50% {
 box-shadow:
 0 0 64px rgba(255, 220, 80, 0.55),
 0 0 40px rgba(37, 128, 195, 0.45),
 inset 0 0 0 2px rgba(255, 220, 80, 0.45);
 }
}

.mc-logo--mining .mc-logo__canvas {
 animation: mcShake 0.15s linear infinite;
}

@keyframes mcShake {
 0%, 100% { transform: translate(0, 0); }
 25% { transform: translate(-1px, 1px); }
 75% { transform: translate(1px, -1px); }
}

.mc-logo__frame {
 position: absolute;
 top: 0;
 left: 50%;
 transform: translateX(-50%);
 width: 160px;
 height: 160px;
 pointer-events: none;
 border-radius: 1rem;
 box-shadow: inset 0 0 20px rgba(45, 212, 191, 0.08);
}

.mc-logo__crack {
 position: absolute;
 top: 0;
 left: 50%;
 transform: translateX(-50%);
 width: 160px;
 height: 160px;
 pointer-events: none;
 opacity: 0;
 border-radius: 1rem;
 transition: opacity 0.15s ease;
 background:
 linear-gradient(135deg, transparent 42%, rgba(0,0,0,0.5) 42%, rgba(0,0,0,0.5) 44%, transparent 44%),
 linear-gradient(45deg, transparent 55%, rgba(0,0,0,0.45) 55%, rgba(0,0,0,0.45) 57%, transparent 57%),
 linear-gradient(160deg, transparent 30%, rgba(0,0,0,0.4) 30%, rgba(0,0,0,0.4) 32%, transparent 32%);
}

.mc-logo__crack[data-stage="1"] { background-size: 100% 100%; opacity: 0.3; }
.mc-logo__crack[data-stage="2"] { opacity: 0.4; filter: contrast(1.1); }
.mc-logo__crack[data-stage="3"] { opacity: 0.5; }
.mc-logo__crack[data-stage="4"] { opacity: 0.55; }
.mc-logo__crack[data-stage="5"] { opacity: 0.65; }
.mc-logo__crack[data-stage="6"] { opacity: 0.75; }
.mc-logo__crack[data-stage="7"] { opacity: 0.85; }
.mc-logo__crack[data-stage="8"] { opacity: 0.92; }
.mc-logo__crack[data-stage="9"] { opacity: 1; }

.mc-logo__mining {
 position: absolute;
 top: 168px;
 left: 50%;
 transform: translateX(-50%);
 width: 160px;
 height: 4px;
 background: rgba(255, 255, 255, 0.08);
 border-radius: 9999px;
 overflow: hidden;
 opacity: 0;
 transition: opacity 0.2s ease;
}

.mc-logo--mining .mc-logo__mining,
.mc-logo:hover .mc-logo__mining {
 opacity: 1;
}

.mc-logo__mining-fill {
 height: 100%;
 width: 0%;
 background: linear-gradient(90deg, var(--primary-dark), var(--primary));
 border-radius: 9999px;
 transition: width 0.05s linear;
 box-shadow: 0 0 8px var(--primary-glow);
}

.mc-logo__mode {
 position: absolute;
 top: -0.5rem;
 right: -0.5rem;
 padding: 0.25rem 0.625rem;
 border-radius: 9999px;
 font-size: 0.5625rem;
 font-weight: 800;
 letter-spacing: 0.08em;
 text-transform: uppercase;
 background: rgba(8, 10, 12, 0.9);
 border: 1px solid rgba(45, 212, 191, 0.2);
 color: var(--primary);
 pointer-events: none;
 opacity: 0;
 transform: translateY(4px);
 transition: opacity 0.25s ease, transform 0.25s ease;
}

.mc-logo:hover .mc-logo__mode,
.mc-logo--mining .mc-logo__mode,
.mc-logo--sun .mc-logo__mode,
.mc-logo--light .mc-logo__mode {
 opacity: 1;
 transform: translateY(0);
}

.mc-logo__mode--mine {
 color: #fbbf24;
 border-color: rgba(251, 191, 36, 0.35);
 animation: mcPulse 0.8s ease-in-out infinite;
}

.mc-logo__mode--sun {
 color: #fbbf24;
 border-color: rgba(251, 191, 36, 0.4);
}

.mc-logo__mode--light {
 color: #0ea5e9;
 border-color: rgba(14, 165, 233, 0.35);
 background: rgba(255, 255, 255, 0.95);
}

@keyframes mcPulse {
 0%, 100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.3); }
 50% { box-shadow: 0 0 12px 2px rgba(251, 191, 36, 0.2); }
}

.mc-logo__hint {
 font-size: 0.6875rem;
 color: var(--text-muted);
 text-align: center;
 max-width: 320px;
 line-height: 1.5;
 margin: 0;
 opacity: 0;
 transform: translateY(6px);
 transition: opacity 0.3s ease, transform 0.3s ease;
}

.mc-logo:hover .mc-logo__hint,
.mc-logo--sun .mc-logo__hint,
.mc-logo--light .mc-logo__hint {
 opacity: 1;
 transform: translateY(0);
}

.mc-logo--sun .mc-logo__mining-fill {
 background: linear-gradient(90deg, #f59e0b, #fde047);
 box-shadow: 0 0 8px rgba(251, 191, 36, 0.5);
}

.mc-logo__hint span {
 color: var(--primary);
 font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
 .mc-logo--mining .mc-logo__canvas { animation: none; }
 .mc-logo__mode--mine { animation: none; }
}

/* Full-site explosion (final logo mine â†’ light mode) */
.site-explosion {
 position: fixed;
 inset: 0;
 z-index: 9999;
 pointer-events: none;
 overflow: hidden;
}

.site-explosion__flash {
 position: absolute;
 inset: 0;
 background: radial-gradient(circle at var(--ex-x, 50%) var(--ex-y, 35%), rgba(255, 255, 255, 0.95) 0%, rgba(255, 220, 100, 0.55) 18%, transparent 55%);
 opacity: 0;
 animation: siteExplosionFlash 1.1s ease-out forwards;
}

.site-explosion__ring {
 position: absolute;
 left: var(--ex-x, 50%);
 top: var(--ex-y, 35%);
 width: 4rem;
 height: 4rem;
 margin: -2rem 0 0 -2rem;
 border-radius: 50%;
 border: 3px solid rgba(255, 230, 120, 0.9);
 box-shadow: 0 0 40px rgba(255, 200, 50, 0.8), inset 0 0 20px rgba(255, 255, 255, 0.5);
 animation: siteExplosionRing 0.9s ease-out forwards;
}

.site-explosion__debris {
 position: absolute;
 inset: 0;
}

.site-explosion__particle {
 position: absolute;
 left: var(--ex-x, 50%);
 top: var(--ex-y, 35%);
 width: var(--p-size, 6px);
 height: var(--p-size, 6px);
 margin-left: calc(var(--p-size, 6px) / -2);
 margin-top: calc(var(--p-size, 6px) / -2);
 background: var(--p-color, #2dd4bf);
 box-shadow: 0 0 6px var(--p-glow, rgba(45, 212, 191, 0.8));
 opacity: 1;
 animation: siteExplosionParticle var(--p-dur, 900ms) cubic-bezier(0.15, 0.85, 0.25, 1) forwards;
 animation-delay: var(--p-delay, 0ms);
}

body.site-explosion-active .site-nav,
body.site-explosion-active main,
body.site-explosion-active .site-footer {
 animation: siteExplosionShake 0.75s ease-out;
}

body.site-explosion-active .page-ambient {
 animation: siteExplosionAmbient 1s ease-out;
}

@keyframes siteExplosionFlash {
 0% { opacity: 0; transform: scale(0.4); }
 12% { opacity: 1; transform: scale(1.05); }
 35% { opacity: 0.65; }
 100% { opacity: 0; transform: scale(1.4); }
}

@keyframes siteExplosionRing {
 0% { transform: scale(0.2); opacity: 1; }
 100% { transform: scale(28); opacity: 0; border-width: 1px; }
}

@keyframes siteExplosionParticle {
 0% {
 transform: translate(0, 0) rotate(0deg) scale(1);
 opacity: 1;
 }
 100% {
 transform: translate(var(--p-tx, 0), var(--p-ty, 0)) rotate(var(--p-rot, 180deg)) scale(0.2);
 opacity: 0;
 }
}

@keyframes siteExplosionShake {
 0%, 100% { transform: translate(0, 0); }
 8% { transform: translate(-10px, 6px) rotate(-0.6deg); }
 16% { transform: translate(12px, -8px) rotate(0.5deg); }
 24% { transform: translate(-14px, -5px) rotate(-0.4deg); }
 32% { transform: translate(10px, 10px) rotate(0.35deg); }
 42% { transform: translate(-8px, 4px); }
 55% { transform: translate(5px, -3px); }
 70% { transform: translate(-3px, 2px); }
}

@keyframes siteExplosionAmbient {
 0%, 100% { filter: brightness(1); }
 15% { filter: brightness(2.2); }
 40% { filter: brightness(1.15); }
}

@media (prefers-reduced-motion: reduce) {
 .site-explosion__flash,
 .site-explosion__ring,
 .site-explosion__particle,
 body.site-explosion-active .site-nav,
 body.site-explosion-active main,
 body.site-explosion-active .site-footer,
 body.site-explosion-active .page-ambient {
 animation: none !important;
 }
}

/* Glass cards */
.glass-card {
 background: linear-gradient(145deg, rgba(17, 20, 24, 0.75) 0%, rgba(17, 20, 24, 0.5) 100%);
 border: 1px solid rgba(255, 255, 255, 0.06);
 backdrop-filter: blur(16px);
 -webkit-backdrop-filter: blur(16px);
 box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.03);
 transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.glass-card:hover {
 border-color: rgba(45, 212, 191, 0.25);
 box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(45, 212, 191, 0.08);
 transform: translateY(-4px);
}

/* Stat cards */
.stat-card {
 position: relative;
 padding: 1.75rem 1.5rem;
 border-radius: 1.5rem;
 text-align: center;
 background: linear-gradient(160deg, rgba(17, 20, 24, 0.8) 0%, rgba(8, 10, 12, 0.6) 100%);
 border: 1px solid rgba(255, 255, 255, 0.05);
 overflow: hidden;
 transition: all 0.35s ease;
}

.stat-card::before {
 content: '';
 position: absolute;
 inset: 0;
 background: radial-gradient(circle at 50% 0%, rgba(45, 212, 191, 0.08), transparent 60%);
 opacity: 0;
 transition: opacity 0.35s ease;
}

.stat-card:hover {
 border-color: rgba(45, 212, 191, 0.3);
 transform: translateY(-3px);
 box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
}

.stat-card:hover::before { opacity: 1; }

.stat-card__value {
 font-size: 2rem;
 font-weight: 800;
 letter-spacing: -0.03em;
 color: #fff;
 transition: color 0.3s ease;
}

.stat-card:hover .stat-card__value {
 background: linear-gradient(135deg, #fff, var(--primary));
 -webkit-background-clip: text;
 -webkit-text-fill-color: transparent;
 background-clip: text;
}

.stat-card__label {
 font-size: 0.65rem;
 font-weight: 700;
 letter-spacing: 0.12em;
 text-transform: uppercase;
 color: var(--text-muted);
 margin-top: 0.25rem;
}

/* Section headings */
.section-heading {
 display: flex;
 align-items: center;
 justify-content: space-between;
 gap: 1rem;
 margin-bottom: 2rem;
}

.section-heading__title {
 display: flex;
 align-items: center;
 gap: 0.75rem;
 font-size: 1.5rem;
 font-weight: 800;
 letter-spacing: -0.02em;
 color: #fff;
}

.section-heading__icon {
 width: 2.5rem;
 height: 2.5rem;
 border-radius: 0.75rem;
 background: rgba(45, 212, 191, 0.1);
 border: 1px solid rgba(45, 212, 191, 0.2);
 display: flex;
 align-items: center;
 justify-content: center;
 color: var(--primary);
 font-size: 0.9rem;
}

.section-heading__link {
 font-size: 0.875rem;
 font-weight: 600;
 color: var(--text-muted);
 display: inline-flex;
 align-items: center;
 gap: 0.35rem;
 transition: color 0.2s ease;
}

.section-heading__link:hover { color: var(--primary); }

/* Glow button */
.btn-glow {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 gap: 0.5rem;
 padding: 0.625rem 1.25rem;
 border-radius: 0.875rem;
 font-weight: 700;
 color: #000;
 background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
 box-shadow: 0 4px 20px var(--primary-glow), inset 0 1px 0 rgba(255, 255, 255, 0.2);
 transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
 position: relative;
 overflow: hidden;
}

.btn-glow::after {
 content: '';
 position: absolute;
 inset: 0;
 background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.25) 50%, transparent 60%);
 transform: translateX(-100%);
 transition: transform 0.6s ease;
}

.btn-glow:hover {
 transform: translateY(-2px) scale(1.02);
 box-shadow: 0 8px 32px var(--primary-glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-glow:hover::after { transform: translateX(100%); }

.btn-glow--lg {
 padding: 1rem 2rem;
 border-radius: 1rem;
 font-size: 1rem;
}

.btn-outline-glow {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 gap: 0.5rem;
 padding: 1rem 2rem;
 border-radius: 1rem;
 font-weight: 700;
 color: #fff;
 background: rgba(255, 255, 255, 0.03);
 border: 1px solid rgba(255, 255, 255, 0.08);
 backdrop-filter: blur(8px);
 transition: all 0.3s ease;
}

.btn-outline-glow:hover {
 border-color: rgba(45, 212, 191, 0.4);
 background: rgba(45, 212, 191, 0.06);
 box-shadow: 0 0 24px rgba(45, 212, 191, 0.1);
}

/* Site navigation */
.glass {
 background: rgba(8, 10, 12, 0.65) !important;
 backdrop-filter: blur(20px) saturate(1.4);
 -webkit-backdrop-filter: blur(20px) saturate(1.4);
 border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.site-nav.scrolled {
 background: rgba(8, 10, 12, 0.88) !important;
 box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.site-nav.scrolled .site-nav__inner {
 height: 3.75rem;
}

.site-logo__icon {
 background: linear-gradient(135deg, rgba(45, 212, 191, 0.15), rgba(45, 212, 191, 0.05));
 border: 1px solid rgba(45, 212, 191, 0.2);
 transition: all 0.3s ease;
}

.site-logo__img {
 transition: transform 0.3s var(--ease-out), filter 0.3s var(--ease-out);
 filter: drop-shadow(0 0 8px rgba(45, 212, 191, 0.2));
}

.site-logo:hover .site-logo__icon,
.site-logo:hover .site-logo__img {
 box-shadow: 0 0 20px rgba(45, 212, 191, 0.25);
 border-color: rgba(45, 212, 191, 0.4);
}

.site-logo:hover .site-logo__img {
 transform: scale(1.04);
 filter: drop-shadow(0 0 14px rgba(45, 212, 191, 0.45));
}

.site-nav__link {
 position: relative;
 padding: 0.5rem 0.875rem;
 border-radius: 0.625rem;
 font-size: 0.8125rem;
 font-weight: 600;
 color: var(--text-muted);
 transition: color 0.2s ease, background 0.2s ease;
}

.site-nav__link:hover {
 color: #fff;
 background: rgba(255, 255, 255, 0.04);
}

.site-nav__link--active {
 color: var(--primary) !important;
 background: rgba(45, 212, 191, 0.08);
}

.site-nav__link--active::after {
 content: '';
 position: absolute;
 bottom: 0.25rem;
 left: 50%;
 transform: translateX(-50%);
 width: 1rem;
 height: 2px;
 border-radius: 1px;
 background: var(--primary);
 box-shadow: 0 0 8px var(--primary-glow);
}

.site-nav__link--ghost {
 background: transparent !important;
}

.site-search {
 position: relative;
 display: flex;
 align-items: center;
}

.site-search__icon {
 position: absolute;
 left: 0.875rem;
 font-size: 0.75rem;
 color: var(--text-muted);
 pointer-events: none;
 transition: color 0.2s ease;
}

.site-search__input {
 width: 9rem;
 padding: 0.5rem 0.875rem 0.5rem 2.25rem;
 border-radius: 9999px;
 font-size: 0.8125rem;
 background: rgba(17, 20, 24, 0.6);
 border: 1px solid rgba(255, 255, 255, 0.06);
 color: #fff;
 transition: all 0.25s ease;
}

@media (min-width: 1024px) {
 .site-search__input { width: 12rem; }
}

.site-search__input::placeholder { color: #4b5563; }

.site-search__input:focus {
 outline: none;
 width: 14rem;
 border-color: rgba(45, 212, 191, 0.4);
 box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.1), 0 0 20px rgba(45, 212, 191, 0.08);
 background: rgba(17, 20, 24, 0.9);
}

.site-search:focus-within .site-search__icon { color: var(--primary); }

.site-icon-btn {
 width: 2.5rem;
 height: 2.5rem;
 border-radius: 0.75rem;
 display: flex;
 align-items: center;
 justify-content: center;
 background: rgba(17, 20, 24, 0.6);
 border: 1px solid rgba(255, 255, 255, 0.06);
 color: var(--text-muted);
 transition: all 0.25s ease;
}

.site-icon-btn:hover {
 color: var(--primary);
 border-color: rgba(45, 212, 191, 0.3);
 background: rgba(45, 212, 191, 0.06);
}

.site-badge {
 position: absolute;
 top: -0.35rem;
 right: -0.35rem;
 min-width: 1.125rem;
 height: 1.125rem;
 padding: 0 0.25rem;
 border-radius: 9999px;
 background: var(--primary);
 color: #000;
 font-size: 0.625rem;
 font-weight: 800;
 display: flex;
 align-items: center;
 justify-content: center;
 box-shadow: 0 0 12px var(--primary-glow);
}

.site-user-btn {
 background: rgba(17, 20, 24, 0.6);
 border: 1px solid rgba(255, 255, 255, 0.06);
 transition: all 0.25s ease;
}

.site-user-btn:hover {
 border-color: rgba(45, 212, 191, 0.3);
 background: rgba(45, 212, 191, 0.05);
}

.site-dropdown {
 background: rgba(17, 20, 24, 0.95);
 border: 1px solid rgba(255, 255, 255, 0.08);
 backdrop-filter: blur(20px);
 box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.site-dropdown.is-open,
#user-menu.group:hover .site-dropdown,
#user-menu:focus-within .site-dropdown {
 opacity: 1;
 visibility: visible;
}

.site-mobile-menu {
 background: rgba(8, 10, 12, 0.97);
 border-left: 1px solid rgba(255, 255, 255, 0.06);
 backdrop-filter: blur(24px);
}

/* Modern cards */
.modern-card,
.bg-dark-card {
 transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.modern-card:hover,
.group:hover.bg-dark-card,
a.group.bg-dark-card:hover {
 transform: translateY(-3px);
 box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(45, 212, 191, 0.1);
}

/* Filter pills */
.filter-pills {
 display: flex;
 flex-wrap: wrap;
 gap: 0.5rem;
 padding: 0.5rem;
 background: rgba(17, 20, 24, 0.5);
 border: 1px solid var(--border);
 border-radius: 1rem;
 backdrop-filter: blur(8px);
}

.filter-pill {
 display: inline-flex;
 align-items: center;
 gap: 0.5rem;
 padding: 0.625rem 1rem;
 border-radius: 0.75rem;
 font-size: 0.875rem;
 font-weight: 500;
 color: var(--text-muted);
 transition: all 0.25s ease;
}

.filter-pill:hover {
 color: white;
 background: var(--bg-card-hover);
}

.filter-pill--active {
 background: var(--primary) !important;
 color: #000 !important;
 font-weight: 700;
 box-shadow: 0 4px 14px var(--primary-glow);
}

/* Empty states */
.modern-empty {
 text-align: center;
 padding: 4rem 2rem;
 background: var(--bg-card);
 border: 1px solid var(--border);
 border-radius: 1.5rem;
}

.modern-empty__icon {
 width: 5rem;
 height: 5rem;
 margin: 0 auto 1.5rem;
 border-radius: 1rem;
 background: var(--bg-card-hover);
 border: 1px solid var(--border);
 display: flex;
 align-items: center;
 justify-content: center;
 font-size: 1.875rem;
 color: var(--text-muted);
}

.modern-empty__title {
 color: var(--text-muted);
 font-size: 1.125rem;
 margin-bottom: 0.5rem;
}

.modern-empty__text {
 color: #6b7280;
 font-size: 0.875rem;
 margin-bottom: 1rem;
}

/* Buttons */
.modern-btn {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 gap: 0.5rem;
 padding: 0.75rem 1.5rem;
 border-radius: 0.75rem;
 background: var(--primary);
 color: #000;
 font-weight: 700;
 font-size: 0.875rem;
 transition: all 0.25s ease;
}

.modern-btn:hover {
 background: var(--primary-dark);
 transform: translateY(-1px);
 box-shadow: 0 6px 20px var(--primary-glow);
}

.modern-btn--outline {
 background: transparent;
 color: white;
 border: 1px solid var(--border);
}

.modern-btn--outline:hover {
 border-color: var(--primary);
 color: var(--primary);
 background: rgba(45, 212, 191, 0.05);
 box-shadow: none;
 transform: none;
}

/* Nav active state */
.nav-link--active {
 color: var(--primary) !important;
 background: rgba(45, 212, 191, 0.08);
}

/* Scroll reveal */
.reveal {
 opacity: 0;
 transform: translateY(16px);
 transition: opacity 0.55s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.55s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal.reveal--visible {
 opacity: 1;
 transform: translateY(0);
}

/* Glass navbar scroll */
nav.glass.scrolled {
 background: rgba(8, 10, 12, 0.92) !important;
 box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

/* Scrollbar */
::-webkit-scrollbar {
 width: 8px;
}
::-webkit-scrollbar-track {
 background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
 background: var(--border);
 border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
 background: var(--text-muted);
}

/* Glassmorphism Navbar */
.navbar {
 background: var(--glass) !important;
 backdrop-filter: blur(12px);
 -webkit-backdrop-filter: blur(12px);
 border-bottom: 1px solid var(--glass-border) !important;
 padding: 1rem 0;
 transition: all 0.3s ease;
}

.navbar.scrolled {
 padding: 0.6rem 0;
 background: rgba(8, 10, 12, 0.95) !important;
}

.nav-link {
 font-weight: 500;
 color: var(--text-muted) !important;
 transition: all 0.2s ease;
 padding: 0.5rem 1rem !important;
 position: relative;
}

.nav-link:hover, .nav-link.active {
 color: var(--primary) !important;
}

.nav-link::after {
 content: '';
 position: absolute;
 bottom: 0;
 left: 1rem;
 right: 1rem;
 height: 2px;
 background: var(--primary);
 transform: scaleX(0);
 transition: transform 0.3s ease;
}

.nav-link:hover::after {
 transform: scaleX(1);
}

/* Modern Cards */
.card {
 background-color: var(--bg-card);
 border: 1px solid var(--border);
 border-radius: 16px;
 transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
 overflow: hidden;
}

.card:hover {
 transform: translateY(-8px);
 background-color: var(--bg-card-hover);
 border-color: var(--primary);
 box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3), 0 0 0 1px var(--primary-glow);
}

/* Hero Section */
.hero-section {
 padding: 120px 0;
 background: radial-gradient(circle at top right, rgba(88, 166, 255, 0.1), transparent),
 radial-gradient(circle at bottom left, rgba(31, 111, 235, 0.05), transparent);
 border-radius: 24px;
 margin-bottom: 4rem;
 position: relative;
 overflow: hidden;
}

.hero-section::before {
 content: '';
 position: absolute;
 top: 0;
 left: 0;
 right: 0;
 bottom: 0;
 background: url('data:image/svg+xml, ');
 pointer-events: none;
}

/* Buttons */
.btn {
 border-radius: 10px;
 padding: 0.6rem 1.5rem;
 font-weight: 600;
 transition: all 0.3s ease;
}

.btn-primary {
 background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
 border: none;
 box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
 transform: translateY(-2px);
 box-shadow: 0 6px 20px var(--primary-glow);
 filter: brightness(1.1);
}

/* Badges */
.badge {
 padding: 0.5em 1em;
 border-radius: 6px;
 font-weight: 600;
 letter-spacing: 0.5px;
}

.badge-ts { background: rgba(26, 95, 180, 0.2); color: #79c0ff; border: 1px solid rgba(26, 95, 180, 0.3); }
.badge-sb { background: rgba(224, 27, 36, 0.2); color: #ff7b72; border: 1px solid rgba(224, 27, 36, 0.3); }

/* Form Controls */
.form-control {
 background-color: rgba(13, 17, 23, 0.8);
 border: 1px solid var(--border);
 border-radius: 10px;
 color: white;
 padding: 0.75rem 1rem;
 transition: all 0.3s ease;
}

.form-control:focus {
 background-color: #0d1117;
 border-color: var(--primary);
 box-shadow: 0 0 0 4px var(--primary-glow);
 color: white;
}

/* Auth Pages Styling - Cleaned up for Tailwind */
.auth-card {
 border: none;
 box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
 background-color: var(--bg-card);
}

.auth-header {
 padding: 4rem 1rem;
 text-align: center;
}

/* Animations */
@keyframes fadeInUp {
 from {
 opacity: 0;
 transform: translateY(20px);
 }
 to {
 opacity: 1;
 transform: translateY(0);
 }
}

.fade-in-up {
 animation: fadeInUp 0.6s ease forwards;
}

/* Footer */
.site-footer {
 position: relative;
 background: linear-gradient(180deg, rgba(8, 10, 12, 0.4) 0%, rgba(8, 10, 12, 0.95) 100%);
 border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.site-footer::before {
 content: '';
 position: absolute;
 top: 0;
 left: 10%;
 right: 10%;
 height: 1px;
 background: linear-gradient(90deg, transparent, rgba(45, 212, 191, 0.4), transparent);
}

.site-footer__social {
 width: 2.5rem;
 height: 2.5rem;
 border-radius: 0.75rem;
 display: flex;
 align-items: center;
 justify-content: center;
 background: rgba(255, 255, 255, 0.03);
 border: 1px solid rgba(255, 255, 255, 0.06);
 color: var(--text-muted);
 transition: all 0.3s ease;
}

.site-footer__social:hover {
 color: var(--primary);
 border-color: rgba(45, 212, 191, 0.3);
 background: rgba(45, 212, 191, 0.08);
 transform: translateY(-2px);
 box-shadow: 0 4px 16px rgba(45, 212, 191, 0.15);
}

.site-footer__heading {
 font-size: 0.875rem;
 font-weight: 700;
 letter-spacing: 0.05em;
 text-transform: uppercase;
 color: #fff;
 margin-bottom: 1.5rem;
}

.site-footer__link {
 font-size: 0.875rem;
 color: var(--text-muted);
 transition: color 0.2s ease, padding-left 0.2s ease;
 display: inline-block;
}

.site-footer__link:hover {
 color: var(--primary);
 padding-left: 0.25rem;
}

footer {
 background: #0d1117;
 border-top: 1px solid var(--border);
}

/* Auth cards */
.auth-panel {
 background: linear-gradient(160deg, rgba(17, 20, 24, 0.95) 0%, rgba(8, 10, 12, 0.9) 100%);
 border: 1px solid rgba(255, 255, 255, 0.06);
 border-radius: 2rem;
 overflow: hidden;
 box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.auth-panel__header {
 padding: 2.5rem 2rem;
 text-align: center;
 background: linear-gradient(135deg, rgba(45, 212, 191, 0.2) 0%, rgba(20, 184, 166, 0.1) 100%);
 border-bottom: 1px solid rgba(45, 212, 191, 0.1);
 position: relative;
 overflow: hidden;
}

.auth-panel__header::before {
 content: '';
 position: absolute;
 top: -50%;
 right: -20%;
 width: 60%;
 height: 200%;
 background: radial-gradient(circle, rgba(45, 212, 191, 0.15), transparent 60%);
}

.auth-captcha {
 padding: 1rem;
 border-radius: 1rem;
 border: 1px solid rgba(255, 255, 255, 0.06);
 background: rgba(8, 10, 12, 0.55);
}

.auth-captcha__header {
 display: flex;
 align-items: center;
 justify-content: space-between;
 gap: 0.75rem;
 margin-bottom: 0.75rem;
}

.auth-captcha__refresh {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 width: 2rem;
 height: 2rem;
 border-radius: 0.5rem;
 border: 1px solid rgba(255, 255, 255, 0.08);
 color: #9ca3af;
 transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.auth-captcha__refresh:hover {
 color: var(--primary);
 border-color: rgba(45, 212, 191, 0.35);
 background: rgba(45, 212, 191, 0.08);
}

.auth-captcha__image-wrap {
 display: flex;
 justify-content: center;
 margin-bottom: 0.75rem;
}

.auth-captcha__image {
 display: block;
 border-radius: 0.75rem;
 border: 1px solid rgba(45, 212, 191, 0.25);
 background: #0c0e12;
}

.auth-captcha__math {
 display: flex;
 align-items: center;
 justify-content: center;
 gap: 0.5rem;
 margin-bottom: 0.75rem;
 padding: 0.85rem 1rem;
 border-radius: 0.75rem;
 border: 1px solid rgba(45, 212, 191, 0.2);
 background: rgba(45, 212, 191, 0.06);
 font-size: 1.125rem;
}

.auth-captcha__math-equation {
 color: var(--primary);
 font-size: 1.35rem;
 letter-spacing: 0.04em;
}

.auth-captcha__math-label {
 color: #9ca3af;
 font-size: 0.95rem;
}

.auth-captcha__hint {
 margin: 0 0 0.75rem;
 color: #6b7280;
 font-size: 0.75rem;
}

.auth-captcha__input {
 width: 100%;
 padding: 0.85rem 1rem;
 border-radius: 0.75rem;
 font-size: 0.875rem;
 letter-spacing: 0.08em;
 text-transform: uppercase;
 background: rgba(8, 10, 12, 0.8);
 border: 1px solid rgba(255, 255, 255, 0.08);
 color: #fff;
 transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-captcha__input:focus {
 outline: none;
 border-color: rgba(45, 212, 191, 0.45);
 box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.12);
}

.auth-captcha__input--math {
 text-transform: none;
 letter-spacing: normal;
}

.auth-honeypot {
 position: absolute;
 left: -9999px;
 width: 1px;
 height: 1px;
 overflow: hidden;
 opacity: 0;
 pointer-events: none;
}

/* Form inputs global */
.site-input {
 width: 100%;
 padding: 0.875rem 1rem 0.875rem 2.75rem;
 border-radius: 0.875rem;
 font-size: 0.875rem;
 background: rgba(8, 10, 12, 0.6);
 border: 1px solid rgba(255, 255, 255, 0.06);
 color: #fff;
 transition: all 0.25s ease;
}

.site-input:focus {
 outline: none;
 border-color: rgba(45, 212, 191, 0.4);
 box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.1);
 background: rgba(8, 10, 12, 0.9);
}

.site-input-wrap {
 position: relative;
}

.site-input-wrap .site-input-icon {
 position: absolute;
 left: 1rem;
 top: 50%;
 transform: translateY(-50%);
 color: var(--text-muted);
 font-size: 0.875rem;
 pointer-events: none;
 transition: color 0.2s ease;
}

.site-input-wrap:focus-within .site-input-icon { color: var(--primary); }

/* Live badge pulse */
.badge-live {
 display: inline-flex;
 align-items: center;
 gap: 0.5rem;
 padding: 0.375rem 1rem;
 border-radius: 9999px;
 font-size: 0.6875rem;
 font-weight: 800;
 letter-spacing: 0.08em;
 text-transform: uppercase;
 background: rgba(45, 212, 191, 0.08);
 border: 1px solid rgba(45, 212, 191, 0.2);
 color: var(--primary);
}

.badge-live__dot {
 position: relative;
 width: 0.5rem;
 height: 0.5rem;
 border-radius: 50%;
 background: var(--primary);
}

.badge-live__dot::before {
 content: '';
 position: absolute;
 inset: -3px;
 border-radius: 50%;
 background: var(--primary);
 opacity: 0.4;
 animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {
 0%, 100% { transform: scale(1); opacity: 0.4; }
 50% { transform: scale(1.8); opacity: 0; }
}
