/* ==========================================================================
   TRAZE — Authentic Apple / Dribbble Liquid Glassmorphism Stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;600;700;800&family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&family=Syne:wght@500;700;800&display=swap');

:root {
  color-scheme: light;
  --cyber-bg: #fac7ff;
  --cyber-surface: rgba(0, 0, 0, 0.04);
  --cyber-card: rgba(0, 0, 0, 0.02);
  --cyber-card-hover: rgba(0, 0, 0, 0.06);
  --cyber-border: rgba(0, 0, 0, 0.2);
  --cyber-border-bright: rgba(0, 0, 0, 0.4);
  --cyber-muted: #52525b;
  --electric-purple: #a855f7;
  --electric-purple-glow: #c084fc;
  --electric-cyan: #22d3ee;
  --electric-rose: #f43f5e;
  --electric-emerald: #10b981;

  /* Customizable Typography System */
  --app-font-family: 'Plus Jakarta Sans', sans-serif;
  --app-text-primary: #000000;
  --app-text-secondary: rgba(0, 0, 0, 0.75);
  --app-accent-color: #000000;
  --app-heading-weight: 800;
  --app-body-weight: 500;
  --app-letter-spacing: 0px;
  --app-font-scale: 100%;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: #fac7ff;
  color: var(--app-text-primary);
  font-family: var(--app-font-family), 'Plus Jakarta Sans', sans-serif !important;
  font-weight: var(--app-body-weight);
  letter-spacing: var(--app-letter-spacing);
  font-size: var(--app-font-scale);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

/* ==========================================================================
   Dynamic Typography Live Bindings (TRAZE Studio)
   ========================================================================== */

/* Main application text color binding (excluding the Studio palette itself) */
main, header, .account-card, .stats-card, .search-bar {
  font-family: var(--app-font-family), 'Plus Jakarta Sans', sans-serif !important;
  letter-spacing: var(--app-letter-spacing) !important;
}

/* Viewed Card: Solid Black Border & Solid Black Text (Transparent Glass) */
.card-viewed {
  background-color: transparent !important;
  border: 1.5px solid #000000 !important;
}

.card-viewed,
.card-viewed * {
  color: #000000 !important;
}

.card-viewed .viewed-date {
  color: rgba(0, 0, 0, 0.7) !important;
  opacity: 0.7;
}

/* Unviewed Card: Solid Black Border & Black Text (Transparent Glass) */
.card-unviewed {
  background-color: transparent !important;
  border: 1.5px solid #000000 !important;
}

.card-unviewed,
.card-unviewed * {
  color: #000000 !important;
}

.card-unviewed .viewed-date {
  color: rgba(0, 0, 0, 0.7) !important;
  opacity: 0.7;
}

/* Header Component Styling: Pure Solid Black */
header,
header *,
header button,
header button span,
header button svg {
  color: #000000 !important;
}

header button svg {
  stroke: #000000 !important;
}

/* Primary text bindings */
main .text-white,
main .text-slate-100,
main .text-slate-200,
main .text-slate-900,
main .text-slate-950 {
  color: var(--app-text-primary, #000000) !important;
}

/* Secondary / muted text bindings */
main .text-slate-300,
main .text-slate-400,
main .text-slate-500,
main .text-slate-600,
main .text-slate-700,
.text-cyber-muted {
  color: var(--app-text-secondary, #000000) !important;
}

/* Accent highlight bindings */
main .text-purple-300,
main .text-purple-400,
main .text-purple-500,
main .text-electric-purple,
main .group-hover\:text-purple-300:hover,
header .text-purple-400 {
  color: var(--app-accent-color) !important;
}

/* Dynamic Font Weights */
h1, h2, h3, h4, .font-extrabold {
  font-weight: var(--app-heading-weight) !important;
}

p, span, input, button {
  font-weight: var(--app-body-weight);
}

/* ==========================================================================
   Liquid Glassmorphism Core Refraction & Specular Reflection Utilities
   ========================================================================== */

.liquid-glass-surface {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.3) 100%) !important;
  backdrop-filter: blur(28px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(190%) !important;
  border: 1px solid rgba(255, 255, 255, 0.75) !important;
  box-shadow: inset 0 1.5px 1.5px 0 rgba(255, 255, 255, 0.95), inset 0 -1px 1px 0 rgba(255, 255, 255, 0.25), 0 20px 45px -12px rgba(0, 0, 0, 0.12), 0 4px 12px 0 rgba(0, 0, 0, 0.05) !important;
}

.liquid-glass-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.65) 0%, rgba(255, 255, 255, 0.38) 100%) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.75) !important;
  box-shadow: inset 0 1.5px 1.5px 0 rgba(255, 255, 255, 0.95), inset 0 -1px 1px 0 rgba(255, 255, 255, 0.25), 0 16px 36px -10px rgba(0, 0, 0, 0.1), 0 2px 6px 0 rgba(0, 0, 0, 0.04) !important;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Liquid Button, Surface & Card Hover Animation */
.liquid-hover {
  position: relative;
  overflow: hidden;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.liquid-hover::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 150%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 100%
  );
  transform: skewX(-20deg);
  transition: left 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 5;
}

.liquid-hover:hover::before {
  left: 150%;
}

.liquid-hover:hover {
  transform: translateY(-2px) scale(1.015) !important;
  border-color: #000000 !important;
  box-shadow: 0 4px 14px -2px rgba(0, 0, 0, 0.15) !important;
}

.liquid-hover:active {
  transform: scale(0.98) !important;
}

.liquid-glass-card:hover {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0.52) 100%) !important;
  border-color: rgba(168, 85, 247, 0.55) !important;
  transform: translateY(-3px) !important;
  box-shadow: inset 0 1.5px 2px 0 rgba(255, 255, 255, 1), 0 24px 50px -12px rgba(0, 0, 0, 0.16), 0 0 25px -4px rgba(168, 85, 247, 0.3) !important;
}

.liquid-glass-pill {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.35) 100%) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255, 255, 255, 0.75) !important;
  box-shadow: inset 0 1.5px 1px rgba(255, 255, 255, 0.9), 0 4px 12px -2px rgba(0, 0, 0, 0.08) !important;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.liquid-glass-pill:hover {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.55) 100%) !important;
  border-color: rgba(255, 255, 255, 0.95) !important;
  transform: translateY(-1px) !important;
  box-shadow: inset 0 1.5px 1.5px rgba(255, 255, 255, 1), 0 8px 20px -4px rgba(0, 0, 0, 0.12) !important;
}

/* Typography & Colors on Glass */
.text-white { color: #0f172a !important; }
.text-slate-100 { color: #0f172a !important; }
.text-slate-200 { color: #1e293b !important; }
.text-slate-300 { color: #334155 !important; }
.text-slate-400 { color: #475569 !important; }
.text-cyber-muted { color: #526071 !important; }
.text-electric-purple { color: #7c3aed !important; }
.text-purple-100 { color: #581c87 !important; }
.text-purple-200 { color: #6b21a8 !important; }
.text-purple-300 { color: #7c3aed !important; }
.text-rose-200 { color: #881337 !important; }
.text-rose-300 { color: #be123c !important; }
.text-rose-400 { color: #e11d48 !important; }
.text-emerald-300 { color: #047857 !important; }
.text-emerald-400 { color: #059669 !important; }
.text-cyan-100 { color: #155e75 !important; }
.text-cyan-200 { color: #0e7490 !important; }
.text-cyan-300 { color: #0891b2 !important; }
.text-cyan-400 { color: #0284c7 !important; }
.text-amber-300 { color: #b45309 !important; }

/* Translucent Glass Surface Classes */
.bg-transparent { background-color: transparent !important; }
.bg-cyber-bg { background-color: transparent !important; }
.bg-cyber-surface {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.28) 100%) !important;
  backdrop-filter: blur(28px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(190%) !important;
  border: 1px solid rgba(255, 255, 255, 0.75) !important;
  box-shadow: inset 0 1.5px 1.5px 0 rgba(255, 255, 255, 0.9), 0 20px 45px -12px rgba(0, 0, 0, 0.1) !important;
}
.bg-cyber-surface\/60 {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.3) 100%) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
}
.bg-cyber-surface\/70 {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.35) 100%) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
}
.bg-cyber-surface\/80 {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.68) 0%, rgba(255, 255, 255, 0.42) 100%) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
}
.bg-cyber-surface\/90 {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.55) 100%) !important;
  backdrop-filter: blur(28px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(190%) !important;
}

.bg-cyber-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.65) 0%, rgba(255, 255, 255, 0.38) 100%) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.75) !important;
  box-shadow: inset 0 1.5px 1.5px 0 rgba(255, 255, 255, 0.95), inset 0 -1px 1px 0 rgba(255, 255, 255, 0.25), 0 16px 36px -10px rgba(0, 0, 0, 0.1), 0 2px 6px 0 rgba(0, 0, 0, 0.04) !important;
}
.bg-cyber-card\/40 {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.22) 100%) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
}
.bg-cyber-card\/60 {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.32) 100%) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
}
.bg-cyber-card\/70 {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.65) 0%, rgba(255, 255, 255, 0.38) 100%) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
}
.bg-cyber-card\/80 {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0.48) 100%) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
}
.bg-cyber-card\/90 {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.58) 100%) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
}
.bg-cyber-card-hover {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0.52) 100%) !important;
  backdrop-filter: blur(24px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(200%) !important;
}

/* Glass Accent Buttons & Pills */
.bg-electric-purple {
  background: linear-gradient(135deg, #9333ea 0%, #7e22ce 100%) !important;
  color: #ffffff !important;
  box-shadow: inset 0 1.5px 1px rgba(255, 255, 255, 0.4), 0 8px 20px -4px rgba(147, 51, 234, 0.4) !important;
}
.bg-electric-purple\/10 { background-color: rgba(147, 51, 234, 0.12) !important; }
.bg-electric-purple\/15 { background-color: rgba(147, 51, 234, 0.18) !important; }
.bg-electric-purple\/20 { background-color: rgba(147, 51, 234, 0.22) !important; }
.bg-electric-purple\/25 { background-color: rgba(147, 51, 234, 0.28) !important; }
.bg-rose-500\/10 { background-color: rgba(225, 29, 72, 0.12) !important; }
.bg-rose-500\/15 { background-color: rgba(225, 29, 72, 0.18) !important; }
.bg-rose-500\/20 { background-color: rgba(225, 29, 72, 0.22) !important; }
.bg-rose-500\/25 { background-color: rgba(225, 29, 72, 0.28) !important; }
.bg-rose-600 {
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%) !important;
  color: #ffffff !important;
  box-shadow: inset 0 1.5px 1px rgba(255, 255, 255, 0.4), 0 8px 20px -4px rgba(225, 29, 72, 0.35) !important;
}
.bg-emerald-500\/10 { background-color: rgba(5, 150, 105, 0.12) !important; }
.bg-emerald-500\/15 { background-color: rgba(5, 150, 105, 0.18) !important; }
.bg-emerald-500\/20 { background-color: rgba(5, 150, 105, 0.22) !important; }
.bg-cyan-500\/10 { background-color: rgba(8, 145, 178, 0.12) !important; }
.bg-cyan-500\/15 { background-color: rgba(8, 145, 178, 0.18) !important; }
.bg-cyan-500\/20 { background-color: rgba(8, 145, 178, 0.22) !important; }
.bg-cyan-500\/25 { background-color: rgba(8, 145, 178, 0.28) !important; }
.bg-cyan-600 {
  background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%) !important;
  color: #ffffff !important;
  box-shadow: inset 0 1.5px 1px rgba(255, 255, 255, 0.4), 0 8px 20px -4px rgba(8, 145, 178, 0.35) !important;
}
.bg-slate-700 { background-color: rgba(255, 255, 255, 0.6) !important; }
.bg-slate-700\/40 { background-color: rgba(255, 255, 255, 0.4) !important; }
.bg-slate-700\/50 { background-color: rgba(255, 255, 255, 0.5) !important; }
.bg-slate-800 { background-color: rgba(255, 255, 255, 0.65) !important; }
.bg-slate-800\/80 { background-color: rgba(255, 255, 255, 0.75) !important; }
.bg-slate-900 { background-color: rgba(255, 255, 255, 0.85) !important; }
.bg-slate-900\/90 { background-color: rgba(255, 255, 255, 0.9) !important; }
.bg-slate-500\/10 { background-color: rgba(255, 255, 255, 0.3) !important; }
.bg-amber-500\/20 { background-color: rgba(217, 119, 6, 0.2) !important; }
.bg-black\/40 { background-color: rgba(0, 0, 0, 0.3) !important; }
.bg-black\/60 { background-color: rgba(0, 0, 0, 0.5) !important; }
.bg-black\/80 { background-color: rgba(0, 0, 0, 0.65) !important; }

/* Gradients */
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops, #9333ea, #7e22ce)); }
.bg-gradient-to-tr { background-image: linear-gradient(to top right, var(--tw-gradient-stops, #9333ea, #06b6d4)); }
.bg-gradient-to-b { background-image: linear-gradient(to bottom, var(--tw-gradient-stops, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.45))); }
.from-electric-purple { --tw-gradient-from: #9333ea; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(147, 51, 234, 0)); }
.via-purple-500 { --tw-gradient-stops: var(--tw-gradient-from), #a855f7, var(--tw-gradient-to, rgba(168, 85, 247, 0)); }
.to-purple-600 { --tw-gradient-to: #7e22ce; }
.to-purple-700 { --tw-gradient-to: #6b21a8; }
.to-electric-cyan { --tw-gradient-to: #0891b2; }
.from-cyan-500 { --tw-gradient-from: #0891b2; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(8, 145, 178, 0)); }
.from-white { --tw-gradient-from: #0f172a; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(15, 23, 42, 0)); }
.via-slate-100 { --tw-gradient-stops: var(--tw-gradient-from), #1e293b, var(--tw-gradient-to, rgba(30, 41, 59, 0)); }
.via-slate-200 { --tw-gradient-stops: var(--tw-gradient-from), #334155, var(--tw-gradient-to, rgba(51, 65, 85, 0)); }
.to-slate-400 { --tw-gradient-to: #475569; }
.bg-clip-text { -webkit-background-clip: text; background-clip: text; }
.text-transparent { color: transparent !important; }

/* Translucent Glass Borders */
.border { border-width: 1px; border-style: solid; border-color: rgba(255, 255, 255, 0.7); }
.border-2 { border-width: 2px; border-style: solid; }
.border-3 { border-width: 3px; border-style: solid; }
.border-dashed { border-style: dashed; }
.border-t { border-top-width: 1px; border-top-style: solid; border-top-color: rgba(255, 255, 255, 0.7); }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgba(255, 255, 255, 0.7); }
.border-cyber-border { border-color: rgba(255, 255, 255, 0.75) !important; }
.border-cyber-border\/40 { border-color: rgba(255, 255, 255, 0.4) !important; }
.border-cyber-border\/50 { border-color: rgba(255, 255, 255, 0.5) !important; }
.border-cyber-border\/60 { border-color: rgba(255, 255, 255, 0.6) !important; }
.border-cyber-border\/70 { border-color: rgba(255, 255, 255, 0.7) !important; }
.border-cyber-border\/80 { border-color: rgba(255, 255, 255, 0.8) !important; }
.border-electric-purple { border-color: #9333ea !important; }
.border-electric-purple\/20 { border-color: rgba(147, 51, 234, 0.25) !important; }
.border-electric-purple\/25 { border-color: rgba(147, 51, 234, 0.35) !important; }
.border-electric-purple\/30 { border-color: rgba(147, 51, 234, 0.4) !important; }
.border-electric-purple\/40 { border-color: rgba(147, 51, 234, 0.5) !important; }
.border-electric-purple\/50 { border-color: rgba(147, 51, 234, 0.6) !important; }
.border-electric-purple\/60 { border-color: rgba(147, 51, 234, 0.7) !important; }
.border-rose-500\/20 { border-color: rgba(225, 29, 72, 0.25) !important; }
.border-rose-500\/30 { border-color: rgba(225, 29, 72, 0.35) !important; }
.border-rose-500\/40 { border-color: rgba(225, 29, 72, 0.5) !important; }
.border-rose-500\/50 { border-color: rgba(225, 29, 72, 0.6) !important; }
.border-rose-500\/80 { border-color: rgba(225, 29, 72, 0.8) !important; }
.border-emerald-500\/20 { border-color: rgba(5, 150, 105, 0.25) !important; }
.border-emerald-500\/30 { border-color: rgba(5, 150, 105, 0.35) !important; }
.border-emerald-500\/40 { border-color: rgba(5, 150, 105, 0.5) !important; }
.border-cyan-500\/20 { border-color: rgba(8, 145, 178, 0.25) !important; }
.border-cyan-500\/25 { border-color: rgba(8, 145, 178, 0.35) !important; }
.border-cyan-500\/30 { border-color: rgba(8, 145, 178, 0.4) !important; }
.border-cyan-500\/40 { border-color: rgba(8, 145, 178, 0.5) !important; }
.border-cyan-500\/60 { border-color: rgba(8, 145, 178, 0.7) !important; }
.border-amber-500\/40 { border-color: rgba(217, 119, 6, 0.5) !important; }
.border-slate-500\/20 { border-color: rgba(255, 255, 255, 0.4) !important; }
.border-slate-500\/40 { border-color: rgba(255, 255, 255, 0.6) !important; }
.border-slate-600 { border-color: rgba(255, 255, 255, 0.7) !important; }
.border-slate-700 { border-color: rgba(255, 255, 255, 0.75) !important; }
.border-transparent { border-color: transparent !important; }

/* Rounded Corners */
.rounded { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.625rem; }
.rounded-xl { border-radius: 0.875rem; }
.rounded-2xl { border-radius: 1.125rem; }
.rounded-3xl { border-radius: 1.625rem; }
.rounded-full { border-radius: 9999px; }

/* Layout & Flexbox */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }
.flex-1 { flex: 1 1 0%; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-stretch { align-items: stretch; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }

/* Grid columns & Gaps */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.gap-1 { gap: 0.25rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-2\.5 { gap: 0.625rem; }
.gap-3 { gap: 0.75rem; }
.gap-3\.5 { gap: 0.875rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

.space-x-1 > :not([hidden]) ~ :not([hidden]) { margin-left: 0.25rem; }
.space-x-1\.5 > :not([hidden]) ~ :not([hidden]) { margin-left: 0.375rem; }
.space-x-2 > :not([hidden]) ~ :not([hidden]) { margin-left: 0.5rem; }
.space-x-2\.5 > :not([hidden]) ~ :not([hidden]) { margin-left: 0.625rem; }
.space-x-3 > :not([hidden]) ~ :not([hidden]) { margin-left: 0.75rem; }
.space-x-3\.5 > :not([hidden]) ~ :not([hidden]) { margin-left: 0.875rem; }
.space-x-4 > :not([hidden]) ~ :not([hidden]) { margin-left: 1rem; }

.space-y-0\.5 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.125rem; }
.space-y-1 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.25rem; }
.space-y-1\.5 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.375rem; }
.space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.5rem; }
.space-y-2\.5 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.625rem; }
.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.75rem; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }
.space-y-5 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.25rem; }
.space-y-6 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.5rem; }
.space-y-8 > :not([hidden]) ~ :not([hidden]) { margin-top: 2rem; }

/* Responsive */
@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:flex-row { flex-direction: row; }
  .sm\:items-center { align-items: center; }
  .sm\:self-center { align-self: center; }
  .sm\:inline { display: inline !important; }
  .sm\:flex { display: flex !important; }
  .sm\:text-xs { font-size: 0.75rem; line-height: 1rem; }
  .sm\:text-sm { font-size: 0.875rem; line-height: 1.25rem; }
  .sm\:text-base { font-size: 1rem; line-height: 1.5rem; }
  .sm\:text-lg { font-size: 1.125rem; line-height: 1.75rem; }
  .sm\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
  .sm\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
  .sm\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .sm\:p-4 { padding: 1rem; }
  .sm\:p-5 { padding: 1.25rem; }
  .sm\:p-8 { padding: 2rem; }
  .sm\:p-12 { padding: 3rem; }
  .sm\:px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
  .sm\:px-3\.5 { padding-left: 0.875rem; padding-right: 0.875rem; }
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .sm\:w-10 { width: 2.5rem; }
  .sm\:h-10 { height: 2.5rem; }
  .sm\:w-80 { width: 20rem; }
}

@media (min-width: 768px) {
  .md\:flex-row { flex-direction: row; }
  .md\:items-center { align-items: center; }
  .md\:justify-between { justify-content: space-between; }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
}

@media (min-width: 1280px) {
  .xl\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Sizing & Positioning */
.w-full { width: 100%; }
.w-6 { width: 1.5rem; }
.h-6 { height: 1.5rem; }
.w-8 { width: 2rem; }
.h-8 { height: 2rem; }
.w-9 { width: 2.25rem; }
.h-9 { height: 2.25rem; }
.w-10 { width: 2.5rem; }
.h-10 { height: 2.5rem; }
.w-12 { width: 3rem; }
.h-12 { height: 3rem; }
.w-14 { width: 3.5rem; }
.h-14 { height: 3.5rem; }
.w-16 { width: 4rem; }
.h-16 { height: 4rem; }
.w-20 { width: 5rem; }
.h-20 { height: 5rem; }
.w-24 { width: 6rem; }
.h-24 { height: 6rem; }
.w-48 { width: 12rem; }
.w-72 { width: 18rem; }
.w-80 { width: 20rem; }
.h-1\.5 { height: 0.375rem; }
.h-2 { height: 0.5rem; }
.w-2\.5 { width: 0.625rem; }
.h-2\.5 { height: 0.625rem; }
.w-3 { width: 0.75rem; }
.h-3 { height: 0.75rem; }
.w-3\.5 { width: 0.875rem; }
.h-3\.5 { height: 0.875rem; }
.w-4 { width: 1rem; }
.h-4 { height: 1rem; }
.w-5 { width: 1.25rem; }
.h-5 { height: 1.25rem; }
.w-7 { width: 1.75rem; }
.h-7 { height: 1.75rem; }
.w-\[340px\] { width: 340px; }
.w-\[1px\] { width: 1px; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-7xl { max-width: 80rem; }
.min-h-screen { min-height: 100vh; }
.max-h-\[85vh\] { max-height: 85vh; }
.min-w-\[190px\] { min-width: 190px; }
.min-w-\[200px\] { min-width: 200px; }
.min-w-0 { min-width: 0px; }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.inset-0 { inset: 0; }
.top-0 { top: 0; }
.inset-y-0 { top: 0; bottom: 0; }
.-top-2 { top: -0.5rem; }
.-left-2 { left: -0.5rem; }
.-top-10 { top: -2.5rem; }
.-top-12 { top: -3rem; }
.right-0 { right: 0; }
.left-0 { left: 0; }
.left-1\/2 { left: 50%; }
.-translate-x-1\/2 { transform: translateX(-50%); }
.self-end { align-self: flex-end; }
.z-10 { z-index: 10; }
.z-30 { z-index: 30; }
.z-50 { z-index: 50; }

/* Spacing */
.p-1 { padding: 0.25rem; }
.p-1\.5 { padding: 0.375rem; }
.p-2 { padding: 0.5rem; }
.p-2\.5 { padding: 0.625rem; }
.p-3 { padding: 0.75rem; }
.p-3\.5 { padding: 0.875rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-3\.5 { padding-top: 0.875rem; padding-bottom: 0.875rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.px-1\.5 { padding-left: 0.375rem; padding-right: 0.375rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-2\.5 { padding-left: 0.625rem; padding-right: 0.625rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-3\.5 { padding-left: 0.875rem; padding-right: 0.875rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.pl-2 { padding-left: 0.5rem; }
.pl-3 { padding-left: 0.75rem; }
.pl-3\.5 { padding-left: 0.875rem; }
.pl-9 { padding-left: 2.25rem; }
.pl-10 { padding-left: 2.5rem; }
.pr-3 { padding-right: 0.75rem; }
.pr-8 { padding-right: 2rem; }
.pr-10 { padding-right: 2.5rem; }
.pt-1 { padding-top: 0.25rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-3 { padding-top: 0.75rem; }
.pt-4 { padding-top: 1rem; }
.pt-8 { padding-top: 2rem; }
.pb-2 { padding-bottom: 0.5rem; }
.pb-2\.5 { padding-bottom: 0.625rem; }
.pb-4 { padding-bottom: 1rem; }

.mt-0\.5 { margin-top: 0.125rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.ml-1\.5 { margin-left: 0.375rem; }
.ml-2 { margin-left: 0.5rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Typography */
.font-sans { font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important; }
.font-mono { font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace !important; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.uppercase { text-transform: uppercase; }
.tracking-tight { letter-spacing: -0.02em; }
.tracking-tighter { letter-spacing: -0.04em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-wide { letter-spacing: 0.025em; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.whitespace-nowrap { white-space: nowrap; }
.block { display: block; }
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

.text-\[10px\] { font-size: 10px; line-height: 14px; }
.text-\[11px\] { font-size: 11px; line-height: 15px; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }

/* Liquid Form inputs & Selects */
input, select, button, textarea {
  font-family: inherit;
  border-style: solid;
}

input[type="text"] {
  background: transparent !important;
  color: #0f172a !important;
  border-color: rgba(0, 0, 0, 0.2) !important;
  box-shadow: none !important;
}

input[type="text"]::placeholder {
  color: #64748b !important;
}

select {
  background: transparent !important;
  color: #0f172a !important;
  border-color: rgba(0, 0, 0, 0.2) !important;
  box-shadow: none !important;
}

select option {
  background-color: #ffffff !important;
  color: #0f172a !important;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

/* Glass Blur & Effects */
.backdrop-blur-sm { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.backdrop-blur-md { backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.backdrop-blur-xl { backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px); }
.backdrop-blur-2xl { backdrop-filter: blur(36px); -webkit-backdrop-filter: blur(36px); }
.blur-xl { filter: blur(24px); }
.blur-2xl { filter: blur(40px); }
.blur-3xl { filter: blur(64px); }
.pointer-events-none { pointer-events: none; }
.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }
.overflow-x-auto { overflow-x: auto; }
.select-none { user-select: none; }

/* Liquid Specular Shadows */
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow-inner { box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.08); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15), inset 0 1.5px 1.5px rgba(255, 255, 255, 0.9); }
.shadow-glow-purple { box-shadow: 0 0 30px -4px rgba(147, 51, 234, 0.4), inset 0 1.5px 1.5px rgba(255, 255, 255, 0.6); }
.shadow-glow-purple-sm { box-shadow: 0 0 16px -2px rgba(147, 51, 234, 0.3), inset 0 1.5px 1px rgba(255, 255, 255, 0.5); }
.shadow-glow-cyan { box-shadow: 0 0 25px -4px rgba(8, 145, 178, 0.35), inset 0 1.5px 1.5px rgba(255, 255, 255, 0.6); }
.shadow-glow-cyan\/10 { box-shadow: 0 0 15px -3px rgba(8, 145, 178, 0.2); }
.shadow-glow-cyan\/20 { box-shadow: 0 0 20px -3px rgba(8, 145, 178, 0.25); }
.shadow-glow-rose { box-shadow: 0 0 25px -4px rgba(225, 29, 72, 0.35), inset 0 1.5px 1.5px rgba(255, 255, 255, 0.6); }
.shadow-glow-rose\/10 { box-shadow: 0 0 15px -3px rgba(225, 29, 72, 0.2); }
.shadow-glow-rose\/20 { box-shadow: 0 0 20px -3px rgba(225, 29, 72, 0.25); }
.shadow-cyber-card {
  box-shadow: inset 0 1.5px 1.5px 0 rgba(255, 255, 255, 0.95), inset 0 -1px 1px 0 rgba(255, 255, 255, 0.25), 0 16px 36px -10px rgba(0, 0, 0, 0.1), 0 2px 6px 0 rgba(0, 0, 0, 0.04) !important;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.animate-fade-in { animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.animate-spin { animation: spin 1s linear infinite; }
.animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }

/* Transitions & Smooth Physics */
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1); transition-duration: 200ms; }
.transition-colors { transition-property: color, background-color, border-color, box-shadow; transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1); transition-duration: 200ms; }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1); transition-duration: 200ms; }
.duration-200 { transition-duration: 200ms; }
.duration-300 { transition-duration: 300ms; }

.active\:scale-90:active { transform: scale(0.90); }
.active\:scale-95:active { transform: scale(0.96); }
.active\:scale-\[0\.98\]:active { transform: scale(0.98); }

/* Liquid Glass Hover Effects */
.hover\:bg-cyber-card:hover {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.48) 100%) !important;
  box-shadow: inset 0 1.5px 1.5px 0 rgba(255, 255, 255, 1), 0 16px 36px -8px rgba(0, 0, 0, 0.12) !important;
}
.hover\:bg-cyber-card-hover:hover {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.55) 100%) !important;
  box-shadow: inset 0 1.5px 2px 0 rgba(255, 255, 255, 1), 0 20px 42px -10px rgba(0, 0, 0, 0.14) !important;
}
.hover\:bg-cyber-surface\/80:hover {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.5) 100%) !important;
}
.hover\:bg-purple-500:hover { background-color: #a855f7 !important; }
.hover\:bg-purple-700:hover { background-color: #7e22ce !important; }
.hover\:bg-electric-purple\/20:hover { background-color: rgba(147, 51, 234, 0.25) !important; }
.hover\:bg-electric-purple\/25:hover { background-color: rgba(147, 51, 234, 0.32) !important; }
.hover\:bg-rose-500\/10:hover { background-color: rgba(225, 29, 72, 0.15) !important; }
.hover\:bg-rose-500\/15:hover { background-color: rgba(225, 29, 72, 0.22) !important; }
.hover\:bg-rose-500\/20:hover { background-color: rgba(225, 29, 72, 0.28) !important; }
.hover\:bg-rose-500\/25:hover { background-color: rgba(225, 29, 72, 0.35) !important; }
.hover\:bg-cyan-500\/25:hover { background-color: rgba(8, 145, 178, 0.3) !important; }
.hover\:bg-cyan-500\/30:hover { background-color: rgba(8, 145, 178, 0.38) !important; }

.hover\:border-electric-purple\/30:hover { border-color: rgba(147, 51, 234, 0.4) !important; }
.hover\:border-electric-purple\/40:hover { border-color: rgba(147, 51, 234, 0.5) !important; }
.hover\:border-electric-purple\/50:hover { border-color: rgba(147, 51, 234, 0.65) !important; }
.hover\:border-cyber-border:hover { border-color: rgba(255, 255, 255, 0.85) !important; }
.hover\:border-cyber-border-bright:hover { border-color: rgba(255, 255, 255, 0.95) !important; }
.hover\:border-rose-500\/30:hover { border-color: rgba(225, 29, 72, 0.4) !important; }
.hover\:border-rose-500\/60:hover { border-color: rgba(225, 29, 72, 0.7) !important; }
.hover\:border-cyan-400\/50:hover { border-color: rgba(8, 145, 178, 0.6) !important; }
.hover\:border-cyan-500\/40:hover { border-color: rgba(8, 145, 178, 0.5) !important; }
.hover\:border-slate-500\/40:hover { border-color: rgba(255, 255, 255, 0.8) !important; }

.hover\:text-white:hover { color: #0f172a !important; }
.hover\:text-slate-100:hover { color: #0f172a !important; }
.hover\:text-slate-200:hover { color: #0f172a !important; }
.hover\:text-slate-300:hover { color: #1e293b !important; }
.hover\:text-electric-purple:hover { color: #7c3aed !important; }
.hover\:text-rose-400:hover { color: #be123c !important; }

.group:hover .group-hover\:opacity-100 { opacity: 1 !important; }
.group:hover .group-hover\:text-electric-purple { color: #7c3aed !important; }
.group:hover .group-hover\:bg-electric-purple { background: linear-gradient(135deg, #9333ea 0%, #7e22ce 100%) !important; color: #ffffff !important; }
.group:hover .group-hover\:text-white { color: #ffffff !important; }
.group:hover .group-hover\:scale-105 { transform: scale(1.05); }
.group:hover .group-hover\:scale-110 { transform: scale(1.1); }

/* Search Input Black Styling */
.search-input-black {
  color: #000000 !important;
  border: 1.5px solid #000000 !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

/* Chrome, Edge, Safari WebKit Placeholder */
::-webkit-input-placeholder {
  color: #52525b !important;
  -webkit-text-fill-color: #52525b !important;
  opacity: 1 !important;
  font-weight: 600 !important;
}

input::-webkit-input-placeholder {
  color: #52525b !important;
  -webkit-text-fill-color: #52525b !important;
  opacity: 1 !important;
  font-weight: 600 !important;
}

.search-input-black::-webkit-input-placeholder {
  color: #52525b !important;
  -webkit-text-fill-color: #52525b !important;
  opacity: 1 !important;
  font-weight: 600 !important;
}

/* Firefox Placeholder */
::-moz-placeholder {
  color: #52525b !important;
  opacity: 1 !important;
  font-weight: 600 !important;
}

input::-moz-placeholder {
  color: #52525b !important;
  opacity: 1 !important;
  font-weight: 600 !important;
}

.search-input-black::-moz-placeholder {
  color: #52525b !important;
  opacity: 1 !important;
  font-weight: 600 !important;
}

/* Standard Spec Placeholder */
::placeholder {
  color: #52525b !important;
  -webkit-text-fill-color: #52525b !important;
  opacity: 1 !important;
  font-weight: 600 !important;
}

input::placeholder {
  color: #52525b !important;
  -webkit-text-fill-color: #52525b !important;
  opacity: 1 !important;
  font-weight: 600 !important;
}

.search-input-black::placeholder {
  color: #52525b !important;
  -webkit-text-fill-color: #52525b !important;
  opacity: 1 !important;
  font-weight: 600 !important;
}

.search-input-black:focus {
  color: #000000 !important;
  border: 2px solid #000000 !important;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.2) !important;
  outline: none !important;
}

/* Glass Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 9999px;
  backdrop-filter: blur(4px);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(147, 51, 234, 0.6);
}

/* Side Drawer Animation */
@keyframes slideRight {
  from {
    transform: translateX(-100%);
    opacity: 0.7;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.animate-slide-right {
  animation: slideRight 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Realistic Hand-Drawn Scribble Strikethrough Animation */
@keyframes drawScribble {
  0% {
    stroke-dashoffset: 350;
    opacity: 0.2;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

.animate-scribble path {
  stroke-dasharray: 350;
  stroke-dashoffset: 0;
  animation: drawScribble 0.25s cubic-bezier(0.2, 0, 0.2, 1) forwards;
}


