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

:root {
  --bg: #06070a;
  --bg-card: rgba(14, 16, 25, 0.72);
  --border: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(185, 124, 242, 0.45);
  --purple: #b97cf2;
  --purple-glow: rgba(185, 124, 242, 0.28);
  --orange: #ff6613;
  --orange-glow: rgba(255, 102, 19, 0.25);
  --cyan: #38bdf8;
  --green: #10b981;
  --red: #f43f5e;
  --amber: #fbbf24;
}

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

body {
  background-color: var(--bg);
  color: #f3f4f6;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
  background-image: 
    radial-gradient(circle at 50% -10%, rgba(185, 124, 242, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 10% 25%, rgba(255, 102, 19, 0.08) 0%, transparent 35%),
    radial-gradient(circle at 90% 40%, rgba(56, 189, 248, 0.09) 0%, transparent 40%),
    radial-gradient(circle at 50% 90%, rgba(185, 124, 242, 0.06) 0%, transparent 50%),
    linear-gradient(to bottom, #06070a 0%, #08090f 50%, #050608 100%);
  background-attachment: fixed;
}

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

/* Luxury Glass Card with Ambient Matcha Hover Lift */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 18px;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  pointer-events: none;
}

.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.8), 0 0 28px -4px var(--purple-glow);
}

/* Nav View Switcher Buttons */
.view-tab-btn {
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.view-tab-btn.active {
  background: linear-gradient(135deg, rgba(185, 124, 242, 0.85), rgba(147, 51, 234, 0.9));
  color: #ffffff;
  border-color: rgba(220, 175, 255, 0.6);
  box-shadow: 0 0 24px rgba(185, 124, 242, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Sub filter tab buttons */
.tab-btn {
  transition: all 0.18s ease;
}

.tab-btn.active {
  background: linear-gradient(135deg, rgba(185, 124, 242, 0.8), rgba(147, 51, 234, 0.8));
  color: #ffffff;
  border-color: #c084fc;
  box-shadow: 0 0 18px rgba(185, 124, 242, 0.35);
}

.offset-game-tab {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.offset-game-tab.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(185, 124, 242, 0.3));
  color: #ffffff;
  border: 1px solid rgba(56, 189, 248, 0.6);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
}

/* Badges */
.badge-working {
  background: rgba(16, 185, 129, 0.14);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.1);
}

.badge-patched {
  background: rgba(244, 63, 94, 0.14);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.35);
}

.badge-keyless {
  background: rgba(56, 189, 248, 0.14);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.badge-key {
  background: rgba(251, 191, 36, 0.14);
  color: #fde047;
  border: 1px solid rgba(251, 191, 36, 0.35);
}

.badge-paid {
  background: rgba(185, 124, 242, 0.16);
  color: #d8b4fe;
  border: 1px solid rgba(185, 124, 242, 0.38);
}

.badge-device {
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Live Pulsing Dot */
.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  position: relative;
  display: inline-block;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 50%;
  border: 2px solid #10b981;
  animation: pulse-ring 1.8s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 0.9; }
  70% { transform: scale(2.2); opacity: 0; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Smooth Spin Animation for Refresh */
.spinning {
  animation: spin 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Offsets Comparison Table */
.offsets-table-container {
  max-height: 650px;
  overflow-y: auto;
  border-radius: 14px;
}

.offset-row {
  transition: background-color 0.15s ease;
}

.offset-row:hover {
  background-color: rgba(255, 255, 255, 0.04);
}

.offset-row.diff-highlight {
  background-color: rgba(245, 158, 11, 0.08);
  border-left: 3px solid #f59e0b;
}

/* Toast Notification */
#toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

#toast.show {
  transform: translateY(0);
  opacity: 1;
}

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

.animate-fade-in {
  animation: fadeIn 0.25s ease-out forwards;
}

/* Matcha Luxury Typography & Glow Accents */
.text-matcha-gradient {
  background: linear-gradient(135deg, #ffffff 30%, #b97cf2 70%, #ff6613 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-purple-glow {
  color: #b97cf2;
  text-shadow: 0 0 16px rgba(185, 124, 242, 0.4);
}

.border-glow-purple {
  border-color: rgba(185, 124, 242, 0.35);
  box-shadow: 0 0 16px -2px rgba(185, 124, 242, 0.25);
}

.bg-matcha-pill {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s ease;
}

.bg-matcha-pill:hover {
  background: rgba(185, 124, 242, 0.12);
  border-color: rgba(185, 124, 242, 0.35);
  color: #ffffff;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #06070a;
}

::-webkit-scrollbar-thumb {
  background: rgba(185, 124, 242, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(185, 124, 242, 0.6);
}

