/* IceX Modz Sharp Cyber Squared Theme */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  background-color: #080C14;
  color: #E2E8F0;
  font-family: 'Prompt', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Force Dark Color Scheme on all browser controls */
html, body, input, select, textarea, button {
  color-scheme: dark !important;
}

/* Base Input and Select Dark Theme */
input, select, textarea {
  background-color: #080C14 !important;
  color: #FFFFFF !important;
  border-color: #1E2D4A;
}

input:focus, select:focus, textarea:focus {
  background-color: #080C14 !important;
  color: #FFFFFF !important;
  border-color: #1D63FF !important;
}

/* Chrome / Edge / Brave / Safari WebKit Autofill Dark Mode Fix */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
textarea:-webkit-autofill:active,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus,
select:-webkit-autofill:active {
  -webkit-text-fill-color: #FFFFFF !important;
  -webkit-box-shadow: 0 0 0px 1000px #080C14 inset !important;
  box-shadow: 0 0 0px 1000px #080C14 inset !important;
  background-color: #080C14 !important;
  caret-color: #00E5FF !important;
  transition: background-color 500000s ease-in-out 0s, color 500000s ease-in-out 0s !important;
  color: #FFFFFF !important;
  border-color: #1E2D4A !important;
}

input:-webkit-autofill:focus,
textarea:-webkit-autofill:focus,
select:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0px 1000px #080C14 inset, 0 0 0 1px #1D63FF !important;
  box-shadow: 0 0 0px 1000px #080C14 inset, 0 0 0 1px #1D63FF !important;
  border-color: #1D63FF !important;
}

.font-brand {
  font-family: 'Chakra Petch', sans-serif;
}

.font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Sharp Squared aesthetic helpers */
.squared-card {
  background-color: #0E1626;
  border: 1px solid #1E2D4A;
  border-radius: 2px;
}

.squared-card-sub {
  background-color: #080C14;
  border: 1px solid #1E2D4A;
  border-radius: 2px;
}

.squared-btn {
  border-radius: 2px;
  transition: all 0.15s ease-in-out;
}

/* Neon Glows */
.logo-glow {
  filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.7));
}

.logo-glow-lg {
  filter: drop-shadow(0 0 25px rgba(0, 229, 255, 0.85));
}

.glow-blue {
  box-shadow: 0 0 20px rgba(29, 99, 255, 0.35);
}

.glow-cyan {
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.35);
}

/* Live Pulse Badge */
.badge-pulse {
  animation: pulseGreen 1.8s infinite;
}

@keyframes pulseGreen {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 8px rgba(0, 255, 157, 0.7);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.9);
    box-shadow: 0 0 2px rgba(0, 255, 157, 0.2);
  }
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: #080C14;
}
::-webkit-scrollbar-thumb {
  background: #1E2D4A;
  border-radius: 1px;
}
::-webkit-scrollbar-thumb:hover {
  background: #1D63FF;
}

/* Prevent flex child overflow */
.min-w-0 {
  min-width: 0 !important;
}

/* Table Responsive wrapper */
.table-responsive-container {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  display: block;
}

/* Hide scrollbar utility */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Break words & text protection */
.break-anywhere {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Touch friendly tap targets */
@media (max-width: 640px) {
  .mobile-touch-target {
    min-height: 40px;
  }
}

/* Cyber Animations & Micro-Interactions */
@keyframes cardSlideIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes copyPop {
  0% { transform: scale(0.92); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

@keyframes cyberGlowPulse {
  0%, 100% {
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.2), inset 0 0 10px rgba(0, 229, 255, 0.05);
  }
  50% {
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.45), inset 0 0 15px rgba(0, 229, 255, 0.15);
  }
}

@keyframes livePulse {
  0% { transform: scale(0.95); opacity: 0.8; box-shadow: 0 0 0 0 rgba(0, 255, 157, 0.7); }
  70% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 8px rgba(0, 255, 157, 0); }
  100% { transform: scale(0.95); opacity: 0.8; box-shadow: 0 0 0 0 rgba(0, 255, 157, 0); }
}

.animate-card-in {
  animation: cardSlideIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-copy-pop {
  animation: copyPop 0.25s ease-out;
}

.cyber-glow-border {
  animation: cyberGlowPulse 3s infinite ease-in-out;
}

.live-ping-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background-color: #00FF9D;
  animation: livePulse 2s infinite;
  display: inline-block;
}

.cyber-btn-interactive {
  transition: all 0.12s cubic-bezier(0.16, 1, 0.3, 1);
}
.cyber-btn-interactive:active {
  transform: scale(0.97);
}

/* Smooth Page Transitions */
@keyframes pageTransitionIn {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.996);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.animate-page-transition {
  animation: pageTransitionIn 0.26s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: opacity, transform;
}

/* Modal Open & Backdrop Animations */
@keyframes modalEnter {
  0% {
    opacity: 0;
    transform: scale(0.94) translateY(-12px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes modalBackdrop {
  0% {
    opacity: 0;
    backdrop-filter: blur(0px);
  }
  100% {
    opacity: 1;
    backdrop-filter: blur(5px);
  }
}

.animate-modal-enter {
  animation: modalEnter 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: opacity, transform;
}

.animate-modal-backdrop {
  animation: modalBackdrop 0.2s ease-out forwards;
}

/* Interactive Card Hover Effects */
.cyber-card-hover {
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.18s ease, box-shadow 0.18s ease;
}
.cyber-card-hover:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 229, 255, 0.45);
  box-shadow: 0 4px 20px rgba(0, 229, 255, 0.08);
}


