/* Hyperliquid Official Web & Monospace Typography Engine */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

/* Hyperliquid Official Signature Serif Display Font: Teodor */
@font-face {
  font-family: 'Teodor';
  src: url('/static/fonts/teodor-light.woff2') format('woff2');
  font-weight: 300 400 500;
  font-style: normal;
  font-display: swap;
}

/* Hyperliquid Local High-Performance Inter Grotesk */
@font-face {
  font-family: 'Inter';
  src: url('/static/fonts/inter-regular.woff2') format('woff2');
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('/static/fonts/inter-bold.woff2') format('woff2');
  font-weight: 700 800 900;
  font-style: normal;
  font-display: swap;
}

/* Hyperliquid NeoGrotesk Engine */
@font-face {
  font-family: 'NeoGrotesk';
  src: url('/static/fonts/neogrotesk-regular.ttf') format('truetype');
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --font-logo: 'Plus Jakarta Sans', 'Inter', sans-serif;

  --hl-bg: #080d11;
  --hl-surface: #0f1a1f;
  --hl-surface-sub: #142229;
  --hl-border: #213038;
  --hl-border-light: #283c47;
  --hl-accent: #97fce4;
  --hl-accent-soft: #50d2c1;
  --hl-accent-text: #04060c;
  --hl-green: #2ee59c;
  --hl-red: #ed7088;
  --hl-text: #f6fefd;
  --hl-text-muted: #9aa3a4;
  --hl-error: #ed7088;
}

* {
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: #080d11 !important;
  background-image:
    radial-gradient(ellipse at 15% 0%, rgba(151, 252, 228, 0.035) 0%, transparent 45%),
    radial-gradient(ellipse at 85% 100%, rgba(46, 229, 156, 0.02) 0%, transparent 45%) !important;
  background-attachment: fixed !important;
  color: #f6fefd !important;
  font-family: var(--font-sans) !important;
  letter-spacing: -0.015em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.font-sans {
  font-family: var(--font-sans) !important;
}

.font-mono {
  font-family: var(--font-mono) !important;
  font-feature-settings: 'tnum' on, 'zero' on;
}

.font-logo {
  font-family: var(--font-logo) !important;
  letter-spacing: 0.04em;
}

.font-display,
.font-heading,
.heading-teodor {
  font-family: 'Teodor', Georgia, Cambria, 'Times New Roman', serif !important;
}

.tabular-nums {
  font-variant-numeric: tabular-nums !important;
}

/* Authentic Hyperliquid Flat Dark Card Panels & Hairline Borders */
.glass-card,
[class*="bg-[#0b1015]"],
[class*="bg-[#0b0f19]"],
[class*="bg-[#0d131c]"],
[class*="bg-[#101522]"],
[class*="bg-[#101624]"],
[class*="bg-[#161e30]"],
[class*="bg-[#182136]"],
[class*="bg-[#182234]"] {
  background-color: #0f1a1f !important;
  border: 1px solid #213038 !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5) !important;
}

.glass-subcard,
[class*="bg-[#080b12]"],
[class*="bg-[#080d12]"],
[class*="bg-[#0a0f18]"] {
  background-color: #142229 !important;
  border: 1px solid #213038 !important;
}

.glass-pill {
  background-color: #142229 !important;
  border: 1px solid #213038 !important;
}

/* Dark Hairline Slate Borders */
[class*="border-white/"],
[class*="border-[#1b2832]"],
[class*="border-[#182030]"],
[class*="border-[#182234]"],
[class*="border-[#1d2a33]"],
[class*="border-[#161e30]"],
[class*="border-[#101522]"],
[class*="border-[#1c2438]"] {
  border-color: #213038 !important;
}

/* Sub-panels and table elements */
[class*="bg-white/[0.02]"],
[class*="bg-white/[0.03]"],
[class*="bg-white/[0.04]"],
[class*="bg-white/[0.05]"] {
  background-color: #142229 !important;
}

[class*="hover:bg-white/[0.08]"]:hover,
[class*="hover:bg-white/[0.06]"]:hover,
[class*="hover:bg-[#161e30]"]:hover {
  background-color: #192b33 !important;
}

/* Authentic Hyperliquid Signature Mint Accent (#97fce4) */
.text-\[\#00f5c4\],
.text-\[\#00e599\],
.text-\[\#00dcb0\],
.text-\[\#14f195\] {
  color: #97fce4 !important;
}

.bg-\[\#00f5c4\],
.bg-\[\#00e599\],
.bg-\[\#00dcb0\],
.bg-\[\#14f195\] {
  background-color: #97fce4 !important;
  color: #04060c !important;
}

.bg-\[\#00f5c4\]\/10,
.bg-\[\#00f5c4\]\/15,
.bg-\[\#00f5c4\]\/20,
.bg-\[\#00f5c4\]\/25,
.bg-\[\#00e599\]\/15,
.bg-\[\#00e599\]\/20,
.bg-\[\#00e599\]\/25,
.bg-emerald-500\/15,
.bg-emerald-500\/20 {
  background-color: rgba(151, 252, 228, 0.12) !important;
  color: #97fce4 !important;
}

.border-\[\#00f5c4\]\/30,
.border-\[\#00f5c4\]\/40,
.border-\[\#00f5c4\]\/50,
.border-\[\#00e599\]\/30,
.border-\[\#00e599\]\/40,
.border-\[\#00e599\]\/50,
.border-emerald-500\/30,
.border-emerald-500\/40 {
  border-color: rgba(151, 252, 228, 0.35) !important;
}

/* Authentic Hyperliquid Signature Soft Crimson / Red (#ed7088) */
.text-\[\#ff4d6d\],
.text-\[\#f9385c\],
.text-\[\#f43f5e\] {
  color: #ed7088 !important;
}

.bg-\[\#ff4d6d\],
.bg-\[\#f9385c\],
.bg-\[\#f43f5e\] {
  background-color: #ed7088 !important;
  color: #04060c !important;
}

.bg-\[\#ff4d6d\]\/10,
.bg-\[\#ff4d6d\]\/15,
.bg-\[\#ff4d6d\]\/20,
.bg-\[\#ff4d6d\]\/25,
.bg-\[\#f9385c\]\/15,
.bg-\[\#f43f5e\]\/15,
.bg-rose-500\/15,
.bg-rose-500\/20 {
  background-color: rgba(237, 112, 136, 0.12) !important;
  color: #ed7088 !important;
}

.border-\[\#ff4d6d\]\/30,
.border-\[\#ff4d6d\]\/40,
.border-\[\#ff4d6d\]\/50,
.border-\[\#f9385c\]\/40,
.border-\[\#f43f5e\]\/40,
.border-rose-500\/30,
.border-rose-500\/40 {
  border-color: rgba(237, 112, 136, 0.35) !important;
}

/* Overwrite Purple/Indigo to Hyperliquid Mint/Teal */
.text-\[\#b388ff\],
.text-\[\#d1b3ff\],
.text-\[\#8ba2ff\],
.text-purple-300,
.text-indigo-400 {
  color: #97fce4 !important;
}

.bg-purple-500\/15,
.bg-purple-500\/20,
.bg-indigo-500\/15,
.bg-indigo-500\/20 {
  background-color: rgba(151, 252, 228, 0.12) !important;
  color: #97fce4 !important;
}

.border-purple-500\/30,
.border-purple-500\/40,
.border-indigo-500\/30 {
  border-color: rgba(151, 252, 228, 0.35) !important;
}

/* Authentic Hyperliquid Typography Colors */
.text-slate-400,
.text-\[\#8b9cb0\],
.text-\[\#94a3b8\] {
  color: #9aa3a4 !important;
}

.text-slate-500,
.text-\[\#4a586d\] {
  color: #627173 !important;
}

.text-white,
.text-\[\#f0f4f8\] {
  color: #f6fefd !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(3px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* iOS Safe Area Viewport utilities */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .safe-bottom {
    padding-bottom: env(safe-area-inset-bottom);
  }
}

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

::-webkit-scrollbar-track {
  background: #080d11;
}

::-webkit-scrollbar-thumb {
  background: #213038;
  border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
  background: #273035;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
