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

:root {
  --primary-teal: #0d9488;
  --primary-teal-hover: #0f766e;
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --bg-dark: #0f172a;
  --card-bg: rgba(30, 41, 59, 0.7);
}

html {
  font-size: clamp(14px, 0.4vw + 12px, 16px);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: #0b132b;
  color: #f1f5f9;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Fluid Heading & Typography Scaling */
.fluid-hero-title {
  font-size: clamp(1.35rem, 3.5vw + 0.8rem, 2.25rem);
  line-height: 1.25;
}

.fluid-page-title {
  font-size: clamp(1.2rem, 2.5vw + 0.7rem, 1.75rem);
  line-height: 1.3;
}

.fluid-token-badge {
  font-size: clamp(2.25rem, 6vw + 0.8rem, 3.75rem);
  line-height: 1.1;
}

/* Glassmorphism Card Effects */
.glass-panel {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.37);
}

.glass-card {
  background: rgba(30, 41, 59, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  border-color: rgba(20, 184, 166, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(13, 148, 136, 0.15);
}

/* Glowing Token Badge */
.token-badge-pulse {
  position: relative;
  background: linear-gradient(135deg, #0d9488 0%, #0284c7 100%);
  box-shadow: 0 0 25px rgba(13, 148, 136, 0.5);
  animation: pulseGlow 3s infinite alternate;
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 15px rgba(13, 148, 136, 0.4);
  }
  100% {
    box-shadow: 0 0 35px rgba(6, 182, 212, 0.7);
  }
}

/* Input Fields Styling */
.form-input {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #f8fafc;
  transition: all 0.2s ease-in-out;
  min-height: 42px;
}

.form-input:focus {
  outline: none;
  border-color: #14b8a6;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.2);
}

.form-input.is-invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.field-error-msg {
  color: #f87171;
  font-size: 0.8125rem;
  margin-top: 0.375rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Mobile Responsive Toast Container */
#toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 100%;
}

@media (max-width: 640px) {
  #toast-container {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
  }
}

.toast {
  min-width: 280px;
  max-width: 100%;
  padding: 0.875rem 1.125rem;
  border-radius: 0.75rem;
  background: #1e293b;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  border-left: 4px solid #14b8a6;
  animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.toast-error {
  border-left-color: #ef4444;
}

.toast.toast-success {
  border-left-color: #10b981;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Table Custom Styling & Touch Scroll */
.table-responsive-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 0.75rem;
}

.custom-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 680px;
}

.custom-table th {
  background: rgba(15, 23, 42, 0.85);
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.custom-table td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.custom-table tbody tr {
  transition: background-color 0.2s ease;
}

.custom-table tbody tr:hover {
  background-color: rgba(30, 41, 59, 0.5);
}

/* Font Mono for Tokens */
.font-mono-token {
  font-family: 'JetBrains Mono', monospace;
}

/* Mobile Menu Animation */
#mobile-menu {
  transition: opacity 0.25s ease-in-out, transform 0.25s ease-in-out;
}

#mobile-menu.hidden {
  display: none;
}

/* Touch Friendly Targets */
button, a, input, select, textarea {
  touch-action: manipulation;
}

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

::-webkit-scrollbar-track {
  background: #0f172a;
}

::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}

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