/* ============================================================
   BASE
============================================================ */
* {
  box-sizing: border-box;
}

html {
  font-family: 'Inter', sans-serif;
}

/* ============================================================
   SCROLLBAR
============================================================ */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #020617;
}
::-webkit-scrollbar-thumb {
  background: #0891b2;
  border-radius: 3px;
}

/* ============================================================
   GLASSMORPHISM
============================================================ */
.glass-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

/* ============================================================
   GLOW EFFECTS
============================================================ */
.glow-cyan {
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.25), 0 0 60px rgba(6, 182, 212, 0.08);
}

.glow-cyan-sm {
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
}

.text-glow {
  text-shadow: 0 0 40px rgba(6, 182, 212, 0.5);
}

/* ============================================================
   GRADIENT TEXT
============================================================ */
.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #06b6d4 50%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   NAVBAR
============================================================ */
.navbar-blur {
  background: rgba(2, 6, 23, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* ============================================================
   HERO BACKGROUNDS
============================================================ */
.hero-grid {
  background-image:
    linear-gradient(rgba(6, 182, 212, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 182, 212, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-glow {
  background: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(6, 182, 212, 0.15), transparent 70%);
}

.login-grid {
  background-image:
    linear-gradient(rgba(6, 182, 212, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 182, 212, 0.04) 1px, transparent 1px);
  background-size: 50px 50px;
}

.onboarding-grid {
  background-image:
    linear-gradient(rgba(6, 182, 212, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 182, 212, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}

.page-top-radial-glow {
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(6, 182, 212, 0.1), transparent 65%);
}

.orb-delay-2 {
  animation-delay: 2s;
}

.auth-card-shadow {
  box-shadow: 0 0 40px rgba(6, 182, 212, 0.06), 0 25px 50px rgba(0, 0, 0, 0.4);
}

.stat-delay-200 {
  transition-delay: 0.2s;
}

.stat-delay-300 {
  transition-delay: 0.3s;
}

.progress-100 {
  width: 100%;
}

.progress-99-9 {
  width: 99.9%;
}

.progress-99-8 {
  width: 99.8%;
}

.progress-96 {
  width: 96%;
}

.float-delay-3 {
  animation: float 6s ease-in-out infinite;
  animation-delay: 3s;
}

.terminal-modal-shell {
  background: rgba(2, 6, 23, 0.98);
}

.terminal-modal-header {
  background: rgba(15, 23, 42, 0.8);
}

.terminal-modal-body {
  height: 420px;
  padding: 4px;
}

/* ============================================================
   SERVICE CARDS — HOVER BORDER GLOW
============================================================ */
.card-hover {
  transition: all 0.3s ease;
  position: relative;
}

.card-hover::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, transparent, rgba(6, 182, 212, 0), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  transition: all 0.3s ease;
  opacity: 0;
}

.card-hover:hover::before {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.6), rgba(129, 140, 248, 0.4), rgba(6, 182, 212, 0.6));
  opacity: 1;
}

.card-hover:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.07) !important;
}

/* ============================================================
   PRIMARY BUTTON — SHINE EFFECT
============================================================ */
.btn-primary {
  background: linear-gradient(135deg, #06b6d4, #0891b2);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: rgba(255, 255, 255, 0.15);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
}

.btn-primary:hover::after {
  left: 120%;
}

.btn-primary:hover {
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.5);
  transform: translateY(-1px);
}

/* ============================================================
   FORM INPUTS
============================================================ */
.form-input {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: rgba(6, 182, 212, 0.6);
  background: rgba(6, 182, 212, 0.04);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.form-input:-webkit-autofill,
.form-input:-webkit-autofill:hover,
.form-input:-webkit-autofill:focus,
.form-input:-webkit-autofill:active {
  -webkit-text-fill-color: #fff;
  caret-color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  -webkit-box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.04) inset;
  box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.04) inset;
  transition: background-color 9999s ease-out, color 9999s ease-out, border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:-webkit-autofill:focus {
  border-color: rgba(6, 182, 212, 0.6);
  -webkit-box-shadow: 0 0 0 1000px rgba(6, 182, 212, 0.04) inset, 0 0 0 3px rgba(6, 182, 212, 0.1);
  box-shadow: 0 0 0 1000px rgba(6, 182, 212, 0.04) inset, 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.form-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: rgba(15, 23, 42, 0.82);
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    radial-gradient(circle at top, rgba(6, 182, 212, 0.08), transparent 60%);
}

.form-select option,
.form-select optgroup {
  background: #0f172a;
  color: #e2e8f0;
}

/* ============================================================
   STAT CARDS — SCROLL ANIMATION
============================================================ */
.stat-item {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.stat-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   NOISE TEXTURE OVERLAY
============================================================ */
.noise-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.4;
}

/* ============================================================
   ALPINE.JS — HIDE BEFORE INIT
============================================================ */
[x-cloak] {
  display: none !important;
}

/* ============================================================
   ADMIN HEADERS
============================================================ */
.admin-section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.admin-section-badge-label {
  color: #fbbf24;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.admin-section-title {
  margin-bottom: 0.5rem;
  color: #ffffff;
  font-size: 1.875rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.025em;
}

.admin-section-subtitle {
  margin-top: 0.125rem;
  color: #64748b;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

@media (min-width: 640px) {
  .admin-section-title {
    font-size: 2.25rem;
  }
}
