:root {
  /* Основные цвета */
  --black-main: #0A0A0A;
  --black-card: #121212;
  --black-accent: #1E1E1E;
  --primary: #00FFAA;
  --primary-dark: #00D1A0;
  --primary-light: #2EFFB8;
  --primary-ultralight: rgba(0, 255, 170, 0.1);
  --border-dark: #252525;
  --text-gray: #A0A0A0;
  --text-light: #E0E0E0;
  
  /* Дополнительные цвета для рейтингов */
  --tech-red: #FF4757;
  --tech-green: var(--primary);
  --tech-green-dark: var(--primary-dark);
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--black-main);
  color: var(--text-light);
  line-height: 1.6;
}

/* Font Families */
.font-bebas {
  font-family: 'Bebas Neue', cursive;
}

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

/* Color Utilities */
.bg-black-main { background-color: var(--black-main); }
.bg-black-card { background-color: var(--black-card); }
.bg-black-accent { background-color: var(--black-accent); }

.text-primary { color: var(--primary); }
.text-primary-dark { color: var(--primary-dark); }
.text-primary-light { color: var(--primary-light); }
.text-gray { color: var(--text-gray); }
.text-light { color: var(--text-light); }

.bg-primary { background-color: var(--primary); }
.bg-primary-dark { background-color: var(--primary-dark); }
.bg-primary-light { background-color: var(--primary-light); }
.bg-primary-ultralight { background-color: var(--primary-ultralight); }

.border-primary { border-color: var(--primary); }
.border-primary-dark { border-color: var(--primary-dark); }
.border-dark { border-color: var(--border-dark); }

/* Effects */
.glow-text {
  text-shadow: 0 0 8px rgba(0, 255, 170, 0.5);
}

.hover-glow:hover {
  box-shadow: 0 0 15px rgba(0, 255, 170, 0.3);
}

.neon-border {
  border: 1px solid transparent;
  background: 
    linear-gradient(var(--black-card), var(--black-card)) padding-box,
    linear-gradient(135deg, var(--primary), var(--primary-dark)) border-box;
}

.input-focus:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-ultralight);
}

/* Animations */
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 10px rgba(0, 255, 170, 0.5); }
  50% { box-shadow: 0 0 20px rgba(0, 255, 170, 0.8); }
}

.pulse-effect {
  animation: pulse 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-20px);
  }
  60% {
    transform: translateY(-10px);
  }
}

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

/* Transition Utilities */
.transition-slow {
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.transition-medium {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Custom Components */
.tab-indicator {
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  box-shadow: 0 0 10px rgba(0, 255, 170, 0.5);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--black-main);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(0, 255, 170, 0.3);
}

/* Ranking Page Specific Styles */
.filter-btn {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  transition: all 0.2s ease;
}

.filter-btn.active {
  background-color: var(--primary);
  color: var(--black-main);
  font-weight: 500;
}

.filter-btn:not(.active) {
  background-color: var(--black-card);
  color: var(--text-gray);
}

.filter-btn:not(.active):hover {
  background-color: var(--black-accent);
  color: var(--text-light);
}

/* Table Styles */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-dark);
}

th {
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
}

th:hover {
  color: var(--primary);
}

tr:hover {
  background-color: var(--black-accent);
}

/* Sort Indicators */
.sort-indicator {
  color: var(--primary);
  opacity: 0;
  transition: opacity 0.2s ease;
}

th:hover .sort-indicator {
  opacity: 0.7;
}

th.active-sort .sort-indicator {
  opacity: 1;
}

/* Profit/Loss Colors */
.text-profit {
  color: var(--primary);
}

.text-loss {
  color: var(--tech-red);
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background-color: var(--black-card);
  border-radius: 0.5rem;
  border: 1px solid var(--border-dark);
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-content::-webkit-scrollbar {
  width: 8px;
}

.modal-content::-webkit-scrollbar-track {
  background: var(--black-accent);
}

.modal-content::-webkit-scrollbar-thumb {
  background-color: var(--primary);
  border-radius: 4px;
}

/* Avatar */
.avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Loading States */
@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-spinner {
  animation: spin 1s linear infinite;
}

/* Grid Pattern */
.grid-pattern {
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Hero Section */
.hero-bg {
  background: linear-gradient(135deg, var(--black-main) 0%, var(--black-accent) 100%), 
              url('https://images.unsplash.com/photo-1639762681057-408e52192e55?q=80&w=2232&auto=format&fit=crop') no-repeat center center;
  background-size: cover;
  background-blend-mode: multiply;
}

/* CTA Button Effects */
.cta-button {
  position: relative;
  overflow: hidden;
}

.cta-button::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(45deg);
  transition: all 0.6s ease;
  opacity: 0;
}

.cta-button:hover::after {
  left: 100%;
  opacity: 1;
}

/* Card Hover Effects */
.card-hover-effect {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-hover-effect:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Scroll Behavior */
html {
  scroll-behavior: smooth;
}

/* Utility Classes */
.hover-scale-105:hover {
  transform: scale(1.05);
}

.hover-underline:hover {
  text-decoration: underline;
}

.leading-relaxed {
  line-height: 1.625;
}

.tracking-wide {
  letter-spacing: 0.025em;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .mobile-flex-col {
    flex-direction: column;
  }
  
  .hero-title {
    font-size: 3.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .filter-section {
    flex-direction: column;
    gap: 1rem;
  }
  
  .search-bar {
    width: 100%;
  }
  
  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}
/* Стили для новостей */
.news-section {
  padding: 6rem 0 3rem;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.news-card {
  background: var(--black-card);
  border: 1px solid var(--border-dark);
  border-left: 4px solid var(--primary);
  border-radius: 0.5rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px -5px rgba(0, 255, 170, 0.1);
  border-color: var(--primary);
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--text-gray);
}

.news-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.news-excerpt {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* Line Clamp */
.line-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Адаптивность */
@media (max-width: 768px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
  
  .news-section {
    padding: 4rem 0 2rem;
  }
}





/* Settings Page Styles */
.settings-tab { padding: 0.5rem 1rem; font-size: 0.875rem; font-weight: 500; color: #9ca3af; border-bottom: 2px solid transparent; transition: color .2s; }
.settings-tab:hover { color: #ffffff; border-color: #4b5563; }
.settings-tab.active { color: #ffffff; border-color: #00c278; }
.settings-section { padding-top: 1.5rem; padding-bottom: 1.5rem; border-top: 1px solid #1f2937; }
.settings-label { font-size: 0.875rem; font-weight: 500; color: #e5e7eb; margin-bottom: 0.25rem; }
.settings-help { font-size: 0.75rem; color: #6b7280; }
.toggle-switch { position: relative; display: inline-flex; height: 1.5rem; width: 2.75rem; border-radius: 9999px; }
.toggle-switch.enabled { background: #00c278; }
.toggle-switch.disabled { background: #4b5563; }
.toggle-switch-thumb { display: inline-block; height: 1rem; width: 1rem; transform: translateX(0); border-radius: 9999px; background: #ffffff; transition: transform .2s; }
.toggle-switch.enabled .toggle-switch-thumb { transform: translateX(1.5rem); }
.toggle-switch.disabled .toggle-switch-thumb { transform: translateX(0.25rem); }
.custom-select { width: 100%; background: #1f2937; border: 1px solid #374151; border-radius: 0.5rem; padding: 0.5rem 0.75rem; color: #ffffff; font-size: 0.875rem; }
.custom-input { width: 100%; background: #1f2937; border: 1px solid #374151; border-radius: 0.5rem; padding: 0.5rem 0.75rem; color: #ffffff; font-size: 0.875rem; }
.custom-input[aria-invalid="true"] { border-color: #ef4444; }
.btn-primary { background: #00c278; color: #ffffff; padding: 0.5rem 1rem; border-radius: 0.5rem; font-weight: 500; font-size: 0.875rem; transition: color .2s; }
.btn-secondary { background: #374151; color: #ffffff; padding: 0.5rem 1rem; border-radius: 0.5rem; font-weight: 500; font-size: 0.875rem; transition: color .2s; }
.btn-danger { background: #ef4444; color: #ffffff; padding: 0.5rem 1rem; border-radius: 0.5rem; font-weight: 500; font-size: 0.875rem; transition: color .2s; }
.toast { position: fixed; top: 1rem; right: 1rem; z-index: 50; padding: 1rem; border-radius: 0.5rem; color: #ffffff; font-size: 0.875rem; font-weight: 500; box-shadow: 0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -2px rgba(0,0,0,.05); transform: translateX(0); transition: all .3s; }
.toast.success { background: #00c278; }
.toast.error { background: #ef4444; }
.toast.hidden { opacity: 0; transform: translateX(100%); }
.skeleton { animation: pulse 2s infinite; background: #374151; border-radius: 0.5rem; }
.help-icon { display:inline-block; width:1rem; height:1rem; color:#9ca3af; }
.help-icon:hover { color:#d1d5db; }
.trading-segment { padding: 0.375rem 0.75rem; font-size: 0.875rem; border-radius: 0.5rem; text-align: center; background: #374151; color: #d1d5db; transition: color .2s; }
.trading-segment.active { background: #00c278; color: #ffffff; }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 50; display: flex; align-items: center; justify-content: center; }
.modal-card { background: #111827; border-radius: 0.5rem; padding: 1.5rem; width: 100%; max-width: 28rem; margin: 0 1rem; }
.settings-table { width: 100%; font-size: 0.875rem; }
.settings-table th { padding: 0.5rem 0.75rem; text-align: left; font-size: 0.75rem; text-transform: uppercase; color: #9ca3af; background: #374151; }
.settings-table td { padding: 0.5rem 0.75rem; border-top: 1px solid #374151; }
.custom-select:focus,.custom-input:focus,.toggle-switch:focus { outline: 2px solid rgba(0,194,120,.5); outline-offset: 2px; }
.btn-primary:disabled,.btn-secondary:disabled,.btn-danger:disabled { opacity: .5; cursor: not-allowed; }
@media (max-width: 1024px) { .settings-section .grid { grid-template-columns: 1fr; gap: 1rem; } .settings-section .col-span-5,.settings-section .col-span-7 { grid-column: span 1 / span 1; } }

/* Tournament List Styles */
.tournament-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.tournament-card {
  background: var(--black-card);
  border: 1px solid var(--border-dark);
  border-left: 4px solid var(--primary);
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.tournament-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 10px 25px -5px rgba(0, 255, 170, 0.1);
}

.tournament-status {
  position: absolute;
  top: 0;
  right: 0;
  padding: 0.25rem 0.75rem;
  border-radius: 0 0.5rem 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-upcoming {
  background-color: rgba(75, 85, 99, 0.5);
  color: var(--text-light);
}

.status-active {
  background-color: rgba(0, 255, 170, 0.2);
  color: var(--primary);
}

.status-completed {
  background-color: rgba(239, 68, 68, 0.2);
  color: var(--tech-red);
}

/* Tournament Page Specific */
.tournament-header {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.matrix-effect {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.4;
  z-index: 0;
}

.tournament-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.prize-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.prize-card {
  background: var(--black-card);
  border-left: 3px solid;
  transition: all 0.3s ease;
}

.prize-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -5px rgba(0, 255, 170, 0.1);
}

/* Countdown Timer */
.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.countdown-unit {
  background: var(--black-card);
  border: 1px solid var(--border-dark);
  position: relative;
}

.countdown-unit::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  opacity: 0.7;
}

/* Participants Table */
.participant-table {
  width: 100%;
  border-collapse: collapse;
}

.participant-table th {
  text-align: left;
  padding: 1rem;
  border-bottom: 1px solid var(--border-dark);
  color: var(--text-light);
}

.participant-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-dark);
}

.participant-table tr:hover {
  background-color: var(--black-accent);
}






/* Contact Form Styles */
.contact-form {
  background: var(--black-card);
  border: 1px solid var(--border-dark);
  border-radius: 0.5rem;
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-light);
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--black-accent);
  border: 1px solid var(--border-dark);
  border-radius: 0.25rem;
  color: var(--text-light);
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(0, 255, 170, 0.2);
}

.contact-info-card {
  background: var(--black-card);
  border: 1px solid var(--border-dark);
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.contact-info-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black-accent);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--primary);
  color: var(--black-main);
}







/* About Page Styles */
.about-header {
  text-align: center;
  margin-bottom: 3rem;
}

.about-header h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0;
}

.stat-box {
  background: var(--black-card);
  border: 1px solid var(--border-dark);
  border-left: 4px solid var(--primary);
  padding: 1.5rem;
  text-align: center;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-gray);
  font-size: 0.875rem;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline-item {
  padding-left: 2rem;
  margin-bottom: 3rem;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: var(--primary);
}

.timeline-dot {
  position: absolute;
  left: -8px;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  border: 4px solid var(--black-card);
}

.timeline-year {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

/* Добавьте эти стили в ваш tailwild.css */

/* Tailwind-like utilities */
.bg-\[\#121212\] { background-color: #121212; }
.bg-\[\#121212\]\/50 { background-color: rgba(18, 18, 18, 0.5); }
.bg-\[\#121212\]\/30 { background-color: rgba(18, 18, 18, 0.3); }
.bg-\[\#0A0A0A\] { background-color: #0A0A0A; }
.bg-\[\#1E1E1E\] { background-color: #1E1E1E; }

.border-\[\#252525\] { border-color: #252525; }
.hover\:border-\[\#00c278\]:hover { border-color: #00c278; }
.hover\:border-\[\#00a1ff\]:hover { border-color: #00a1ff; }
.hover\:border-\[\#9f7aea\]:hover { border-color: #9f7aea; }

.text-\[\#00c278\] { color: #00c278; }
.text-\[\#00a1ff\] { color: #00a1ff; }
.text-\[\#9f7aea\] { color: #9f7aea; }
.text-\[\#E0E0E0\] { color: #E0E0E0; }

/* Gradient text utilities */
.text-gradient-blue-green {
  background: linear-gradient(135deg, #00c278, #00a1ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-gradient-purple-blue {
  background: linear-gradient(135deg, #9f7aea, #00a1ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Backdrop blur */
.backdrop-blur-sm {
  backdrop-filter: blur(4px);
}

/* Transition utilities */
.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.duration-300 {
  transition-duration: 300ms;
}

.hover\:-translate-y-2:hover {
  transform: translateY(-0.5rem);
}

/* Prose styles for markdown-like content */
.prose {
  max-width: 65ch;
  color: var(--text-light);
}

.prose-invert {
  --tw-prose-body: var(--text-light);
  --tw-prose-headings: var(--text-light);
  --tw-prose-lead: var(--text-gray);
  --tw-prose-links: var(--primary);
  --tw-prose-bold: var(--text-light);
  --tw-prose-counters: var(--text-gray);
  --tw-prose-bullets: var(--text-gray);
  --tw-prose-hr: var(--border-dark);
  --tw-prose-quotes: var(--text-light);
  --tw-prose-quote-borders: var(--border-dark);
  --tw-prose-captions: var(--text-gray);
  --tw-prose-code: var(--text-light);
  --tw-prose-pre-code: var(--text-light);
  --tw-prose-pre-bg: var(--black-accent);
  --tw-prose-th-borders: var(--border-dark);
  --tw-prose-td-borders: var(--border-dark);
}

/* Container utilities */
.container {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-right: 1rem;
  padding-left: 1rem;
}

@media (min-width: 640px) {
  .container {
    max-width: 640px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 768px;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 1024px;
  }
}

@media (min-width: 1280px) {
  .container {
    max-width: 1280px;
  }
}

/* Grid gap utilities */
.gap-8 {
  gap: 2rem;
}

.gap-12 {
  gap: 3rem;
}

/* Padding utilities */
.p-6 {
  padding: 1.5rem;
}

.p-8 {
  padding: 2rem;
}

.py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.py-20 {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Margin utilities */
.mb-3 {
  margin-bottom: 0.75rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-16 {
  margin-bottom: 4rem;
}

.mb-20 {
  margin-bottom: 5rem;
}

.mt-8 {
  margin-top: 2rem;
}

/* Text utilities */
.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}

.text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem;
}

.text-4xl {
  font-size: 2.25rem;
  line-height: 2.5rem;
}

.text-5xl {
  font-size: 3rem;
  line-height: 1;
}

.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

/* Border radius */
.rounded-lg {
  border-radius: 0.5rem;
}

.rounded-xl {
  border-radius: 0.75rem;
}

.rounded-2xl {
  border-radius: 1rem;
}

/* Blur effect */
.blur {
  filter: blur(8px);
}

.opacity-75 {
  opacity: 0.75;
}

/* Absolute positioning */
.absolute {
  position: absolute;
}

.relative {
  position: relative;
}

/* Flex utilities */
.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

/* Grid utilities */
.grid {
  display: grid;
}

.grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Width utilities */
.w-full {
  width: 100%;
}

.max-w-3xl {
  max-width: 48rem;
}

.max-w-4xl {
  max-width: 56rem;
}

.max-w-6xl {
  max-width: 72rem;
}

/* Height utilities */
.min-h-screen {
  min-height: 100vh;
}

/* Text alignment */
.text-center {
  text-align: center;
}

/* Inline utilities */
.inline-block {
  display: inline-block;
}

/* Transform utilities */
.-inset-1 {
  inset: -0.25rem;
}

/* Background gradient */
.bg-gradient-to-br {
  background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}

.from-\[\#0A0A0A\] {
  --tw-gradient-from: #0A0A0A;
  --tw-gradient-to: rgba(10, 10, 10, 0);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.to-\[\#1E1E1E\] {
  --tw-gradient-to: #1E1E1E;
}

.from-\[\#00c278\] {
  --tw-gradient-from: #00c278;
  --tw-gradient-to: rgba(0, 194, 120, 0);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.to-\[\#00a1ff\] {
  --tw-gradient-to: #00a1ff;
}







/* ==================== TRADING TERMINAL SPECIFIC STYLES ==================== */

/* Header Styles */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.5rem;
  background-color: var(--black-card);
  border-bottom: 1px solid var(--border-dark);
  height: 60px;
}

.logo {
  font-family: 'Bebas Neue', cursive;
  font-size: 1.75rem;
  letter-spacing: 1px;
  color: var(--primary);
  text-shadow: 0 0 10px rgba(0, 255, 170, 0.3);
}

.trade-buttons {
  display: flex;
  gap: 1rem;
}

.btn-buy, .btn-sell {
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.btn-buy {
  background-color: rgba(0, 255, 170, 0.1);
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-buy:hover {
  background-color: rgba(0, 255, 170, 0.2);
}

.btn-sell {
  background-color: rgba(255, 71, 87, 0.1);
  color: var(--tech-red);
  border: 1px solid var(--tech-red);
}

.btn-sell:hover {
  background-color: rgba(255, 71, 87, 0.2);
}

.user-section {
  display: flex;
  gap: 1rem;
}

.btn-signup, .btn-signin {
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  font-weight: 500;
  font-size: 0.875rem;
}

.btn-signup {
  background-color: var(--primary);
  color: var(--black-main);
}

.btn-signin {
  background-color: transparent;
  color: var(--text-light);
  border: 1px solid var(--border-dark);
}

/* Market Info Bar */
.market-info-bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.75rem 1.5rem;
  background-color: var(--black-accent);
  border-bottom: 1px solid var(--border-dark);
  font-size: 0.875rem;
  overflow-x: auto;
  white-space: nowrap;
}

.market-info-bar span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.market-info-bar span::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 0.5rem;
}

#mi-price::before { background-color: var(--primary); }
#mi-index::before { background-color: #00a1ff; }
#mi-change::before { background-color: var(--tech-green); }
#mi-funding::before { background-color: #9f7aea; }
#mi-high::before { background-color: var(--tech-green); }
#mi-low::before { background-color: var(--tech-red); }
#mi-vol::before { background-color: #00a1ff; }
#mi-oi::before { background-color: #9f7aea; }
#mi-apy::before { background-color: var(--primary); }

/* Main Content Layout */
.main-content {
  display: flex;
  height: calc(100vh - 112px); /* 60px header + 52px market info */
}

.chart-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sidebar-column {
  width: 320px;
  border-left: 1px solid var(--border-dark);
  display: flex;
  flex-direction: column;
}

/* Chart Container */
.chart-container {
  flex: 1;
  min-height: 400px;
  background-color: var(--black-card);
  position: relative;
}

/* Bottom Tabs */
.bottom-tabs {
  height: 240px;
  background-color: var(--black-card);
  border-top: 1px solid var(--border-dark);
  display: flex;
  flex-direction: column;
}

.bottom-tabs-header {
  display: flex;
  border-bottom: 1px solid var(--border-dark);
}

.bottom-tab {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-gray);
  cursor: pointer;
  position: relative;
}

.bottom-tab.active {
  color: var(--primary);
}

.bottom-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
}

.bottom-content {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem;
}

/* Recent Trades */
.recent-trades {
  list-style: none;
}

.recent-trades li {
  display: flex;
  justify-content: space-between;
  padding: 0.25rem 0;
  font-size: 0.8125rem;
}

.recent-trades li .price {
  font-family: 'Roboto Mono', monospace;
}

.recent-trades li .side-buy {
  color: var(--primary);
}

.recent-trades li .side-sell {
  color: var(--tech-red);
}

/* Positions Table */
.positions-table {
  width: 100%;
  font-size: 0.8125rem;
  border-collapse: collapse;
}

.positions-table th, .positions-table td {
  padding: 0.5rem;
  text-align: right;
}

.positions-table th:first-child, 
.positions-table td:first-child {
  text-align: left;
}

.positions-table th {
  color: var(--text-gray);
  font-weight: 500;
  border-bottom: 1px solid var(--border-dark);
}

.positions-table tr:not(:last-child) td {
  border-bottom: 1px solid var(--border-dark);
}

.position-pnl.profit {
  color: var(--primary);
}

.position-pnl.loss {
  color: var(--tech-red);
}

.close-position {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  border-radius: 2px;
  background-color: rgba(255, 71, 87, 0.1);
  color: var(--tech-red);
  border: none;
  cursor: pointer;
}

/* Order Book */
/* Стили для скрытия скроллбаров */
.scroll-container {
  overflow: auto;
}

/* Скрываем скроллбар для Chrome, Safari и Opera */
.scroll-container::-webkit-scrollbar {
  display: none;
}

/* Скрываем скроллбар для IE, Edge и Firefox */
.scroll-container {
  -ms-overflow-style: none;  /* IE и Edge */
  scrollbar-width: none;  /* Firefox */
}

/* Обновляем стили для order-book-view */
.order-book-view {
  background: var(--black-card);
  border: 1px solid var(--border-dark);
  border-radius: 8px;
  overflow: hidden;
}

#asks, #bids {
  max-height: 200px;
  overflow: auto;
}

#asks::-webkit-scrollbar,
#bids::-webkit-scrollbar {
  display: none;
}

#asks,
#bids {
  -ms-overflow-style: none;  /* IE и Edge */
  scrollbar-width: none;  /* Firefox */
}

.sticky-header {
  position: sticky;
  top: 0;
  background: var(--black-card);
  z-index: 10;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-dark);
}

#spread {
  padding: 8px 12px;
  background: var(--black-accent);
  border-bottom: 1px solid var(--border-dark);
  font-size: 12px;
  color: var(--text-gray);
}

/* Trade Form */
.trade-form-container {
  padding: 1rem;
  background-color: var(--black-card);
  flex: 1;
}

.trade-tabs {
  display: flex;
  margin-bottom: 1rem;
}

.trade-tab {
  flex: 1;
  text-align: center;
  padding: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.trade-tab.active {
  border-bottom-color: var(--primary);
}

.trade-tab.buy.active {
  color: var(--primary);
}

.trade-tab.sell.active {
  color: var(--tech-red);
}

.order-type-tabs {
  display: flex;
  background-color: var(--black-accent);
  border-radius: 4px;
  margin-bottom: 1rem;
}

.order-type-tab {
  flex: 1;
  text-align: center;
  padding: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 4px;
}

.order-type-tab.active {
  background-color: var(--primary);
  color: var(--black-main);
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-gray);
  margin-bottom: 0.25rem;
}

.form-group input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  background-color: var(--black-accent);
  border: 1px solid var(--border-dark);
  border-radius: 4px;
  color: var(--text-light);
  font-family: 'Roboto Mono', monospace;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
}

.percentage-buttons {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.percentage-btn {
  flex: 1;
  padding: 0.25rem;
  font-size: 0.75rem;
  background-color: var(--black-accent);
  border: 1px solid var(--border-dark);
  border-radius: 2px;
  color: var(--text-light);
  cursor: pointer;
}

.percentage-btn:hover {
  border-color: var(--primary);
}

.submit-btn {
  width: 100%;
  padding: 0.75rem;
  border-radius: 4px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.submit-btn.buy {
  background-color: var(--primary);
  color: var(--black-main);
}

.submit-btn.buy:hover {
  background-color: var(--primary-light);
}

.submit-btn.sell {
  background-color: var(--tech-red);
  color: white;
}

.submit-btn.sell:hover {
  background-color: #ff5e6b;
}

.order-summary {
  font-size: 0.8125rem;
  margin: 1rem 0;
  padding: 0.75rem;
  background-color: var(--black-accent);
  border-radius: 4px;
}

.order-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}

.order-summary-row:last-child {
  margin-bottom: 0;
}

.order-summary-label {
  color: var(--text-gray);
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
  .sidebar-column {
    width: 280px;
  }
}

@media (max-width: 992px) {
  .main-content {
    flex-direction: column;
  }
  
  .chart-column {
    height: 60vh;
  }
  
  .sidebar-column {
    width: 100%;
    border-left: none;
    border-top: 1px solid var(--border-dark);
    flex-direction: row;
    height: 40vh;
  }
  
  .order-book-container {
    width: 50%;
    border-bottom: none;
    border-right: 1px solid var(--border-dark);
  }
  
  .trade-form-container {
    width: 50%;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 0.75rem 1rem;
  }
  
  .market-info-bar {
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
    gap: 1rem;
  }
  
  .sidebar-column {
    flex-direction: column;
    height: auto;
  }
  
  .order-book-container, 
  .trade-form-container {
    width: 100%;
  }
  
  .order-book-container {
    border-right: none;
    border-bottom: 1px solid var(--border-dark);
  }
}



/* ===== base (shared with trade) ===== */
:root{
  --bg:#0b0d0f; --panel:#111316; --panel-2:#0e1114; --br:#1c2026;
  --text:#e5e7eb; --muted:#9ca3af; --green:#22c55e; --red:#ef4444; --amber:#f59e0b;
}

body.bg-body{ background:var(--bg); color:var(--text); }
.bg-panel{ background:var(--panel); }
.bg-panel-2{ background:var(--panel-2); }
.border-br{ border-color:var(--br); }
.text-muted{ color:var(--muted); }
.sep{ border:0; border-top:1px solid var(--br); margin:0; }

.card{ background:var(--panel); border:1px solid var(--br); border-radius:16px; }
.chip{ background:#161a20; border:1px solid var(--br); color:var(--text); border-radius:10px; padding:.35rem .6rem; }
.chip.active{ background:#212731; }
.tablink.active{ outline:2px solid rgba(255,255,255,.06); }

.row{ display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:.5rem 0; }
.ck{ display:flex; align-items:center; gap:.5rem; }
.lbl{ display:block; margin-bottom:.3rem; font-size:.9rem; color:var(--muted); }

.inp{ width:100%; background:#0a0e12; border:1px solid var(--br); border-radius:12px; padding:.6rem .75rem; }
.inp:focus{ border-color:#334155; outline:none; }
.err{ color:#f87171; font-size:.8rem; }

.btn-primary,.btn-secondary,.btn-ghost,.btn-danger{
  border-radius:12px; padding:.55rem .9rem; border:1px solid var(--br); font-weight:600; line-height:1;
}
.btn-primary{ background:var(--green); color:#0b0d0f; border-color:#16a34a; }
.btn-secondary{ background:#1a1f25; color:var(--text); }
.btn-ghost{ background:transparent; color:var(--text); }
.btn-danger{ background:var(--red); color:#0b0d0f; border-color:#ef4444; }
.btn-ghost.small,.btn-danger.small{ padding:.35rem .6rem; font-size:.85rem; }

/* segmented control */
.seg{ display:inline-flex; background:#0f1318; border:1px solid var(--br); border-radius:12px; padding:2px; }
.seg-btn{ padding:.35rem .6rem; border-radius:10px; color:var(--text); font-size:.9rem; }
.seg-btn.active{ background:#222831; }

/* switch (accessible checkbox) */
.switch{ appearance:none; width:42px; height:24px; border-radius:999px; position:relative; background:#151a20; border:1px solid var(--br); outline:none; cursor:pointer; }
.switch:before{ content:""; position:absolute; top:2px; left:2px; width:18px; height:18px; border-radius:999px; background:#9ca3af; transition:left .15s ease, background .15s ease; }
.switch:checked{ background:#19341f; border-color:#19582b; }
.switch:checked:before{ left:22px; background:#22c55e; }

/* modal */
.modal{ position:fixed; inset:0; display:flex; align-items:center; justify-content:center; background:rgba(0,0,0,.55); z-index:50; }
.modal-card{ width:100%; max-width:560px; background:var(--panel); border:1px solid var(--br); border-radius:16px; padding:16px; }

/* copy line */
.mono{ font-family: ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace; }
.copyline{ display:flex; align-items:center; gap:.5rem; padding:.45rem .6rem; border:1px dashed var(--br); border-radius:12px; background:#0a0e12; }
.copybtn{ border:1px solid var(--br); padding:.25rem .5rem; border-radius:8px; background:#1b2129; }

/* toast */
.toast-root{ position:fixed; right:16px; bottom:16px; z-index:60; display:flex; flex-direction:column; gap:8px; }
.toast{ opacity:0; transform:translateY(8px); transition:all .18s ease; background:#0f1318; color:var(--text); border:1px solid var(--br); padding:.6rem .8rem; border-radius:12px; font-size:.9rem; }
.toast.show{ opacity:1; transform:translateY(0); }
.toast.ok{ border-color:#16a34a; }
.toast.err{ border-color:#ef4444; }

/* table */
table thead th{ font-weight:600; }
table td, table th{ padding:.45rem .6rem; }

/* ====== Trading Interface Styles ====== */

/* Order Book Specific Styles */
.orderbook-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  height: 28px;
  cursor: pointer;
  position: relative;
  transition: background-color 0.15s ease;
  font-size: 11px;
  padding: 0 8px;
}

.orderbook-row:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.orderbook-row .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.orderbook-row .price {
  font-variant-numeric: tabular-nums;
}

.orderbook-ask {
  color: #f87171;
}

.orderbook-bid {
  color: #34d399;
}

.orderbook-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.25;
  border-radius: 4px;
  pointer-events: none;
}

.orderbook-cell {
  position: relative;
  z-index: 1;
}

.orderbook-row.highlight {
  animation: highlight-flash 0.6s ease-out;
}

@keyframes highlight-flash {
  0% { background-color: rgba(59, 130, 246, 0.3); }
  100% { background-color: transparent; }
}

/* Tab Styles */
.tab {
  transition: all 0.2s ease;
  cursor: pointer;
}

.tab.active {
  background: rgba(0, 194, 120, 0.2);
  border: 1px solid rgba(0, 194, 120, 0.3);
  box-shadow: 0 0 10px rgba(0, 194, 120, 0.1);
}

.depth-chip {
  transition: all 0.2s ease;
  cursor: pointer;
}

.depth-chip.active {
  background: rgba(0, 194, 120, 0.2);
  border: 1px solid rgba(0, 194, 120, 0.3);
  color: #00c278;
}

/* Chart Tabs */
.chart-tab {
  transition: all 0.2s ease;
  cursor: pointer;
}

.chart-tab.active {
  background: rgba(0, 194, 120, 0.2);
  border: 1px solid rgba(0, 194, 120, 0.3);
}

/* Bottom Tabs */
.bottom-tab {
  transition: all 0.2s ease;
  cursor: pointer;
}

.bottom-tab.active {
  background: rgba(0, 194, 120, 0.2);
  border: 1px solid rgba(0, 194, 120, 0.3);
}

/* Sticky Header */
.sticky-header {
  position: sticky;
  top: 0;
  background: inherit;
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Loading States */
.loading-skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.1) 25%, rgba(255,255,255,0.05) 50%, rgba(255,255,255,0.1) 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Empty States */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  font-size: 14px;
}

.empty-state svg {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  opacity: 0.5;
}

/* Trading Statistics Bar */
.trading-stats {
  background: rgba(17, 17, 17, 0.8);
  border-bottom: 1px solid #2a2a2a;
  backdrop-filter: blur(10px);
}

/* Price Type Buttons */
.price-type-btn {
  transition: all 0.2s ease;
  cursor: pointer;
}

.price-type-btn.active {
  background: rgba(0, 194, 120, 0.2);
  border: 1px solid rgba(0, 194, 120, 0.3);
}

/* Timeframe Buttons */
.timeframe-btn {
  transition: all 0.2s ease;
  cursor: pointer;
}

.timeframe-btn.active {
  background: rgba(0, 194, 120, 0.2);
  border: 1px solid rgba(0, 194, 120, 0.3);
}

/* Form Inputs */
.form-input {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 8px 12px;
  color: #EDEFF1;
  font-size: 14px;
  transition: all 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: #00c278;
  box-shadow: 0 0 0 2px rgba(0, 194, 120, 0.2);
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* Buy/Sell Buttons */
.buy-btn {
  background: linear-gradient(135deg, #00c278 0%, #00a868 100%);
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.buy-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 194, 120, 0.3);
}

.sell-btn {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.sell-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Percentage Buttons */
.percentage-btn {
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.percentage-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* BBO Button */
#bbo-btn {
  transition: all 0.2s ease;
  cursor: pointer;
}

#bbo-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Table Styles */
.trading-table {
  width: 100%;
  border-collapse: collapse;
}

.trading-table th {
  text-align: left;
  padding: 12px 8px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.trading-table td {
  padding: 8px;
  font-size: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.trading-table tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* WebSocket Status */
.ws-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
}

#wsStatus.live .ws-dot {
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.5);
}

#wsStatus.reconnecting .ws-dot {
  background: #f59e0b;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.5);
}

#wsStatus.down .ws-dot {
  background: #ef4444;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.5);
}

/* Spread Display */
#ob-spread {
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 500;
}

/* Scrollbar Styling */
.overflow-y-auto::-webkit-scrollbar {
  width: 6px;
}

.overflow-y-auto::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.overflow-y-auto::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.overflow-y-auto::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Highlight Animation for Inputs */
.highlight {
  animation: input-highlight 0.6s ease-out;
}

@keyframes input-highlight {
  0% { 
    background-color: rgba(0, 194, 120, 0.2);
    border-color: #00c278;
  }
  100% { 
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.1);
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .orderbook-row {
    font-size: 10px;
    height: 24px;
    padding: 0 4px;
  }
  
  .trading-stats {
    padding: 8px 0;
  }
  
  .trading-stats .flex {
    flex-wrap: wrap;
    gap: 8px;
  }
}

@media (max-width: 768px) {
  .orderbook-row {
    grid-template-columns: 1fr 1fr;
  }
  
  .orderbook-row .num:last-child {
    display: none;
  }
  
  .trading-stats .flex {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Dark Theme Enhancements */
.bg-\[\#0F1012\] {
  background-color: #0F1012;
}

.border-white\/10 {
  border-color: rgba(255, 255, 255, 0.1);
}

.text-white\/60 {
  color: rgba(255, 255, 255, 0.6);
}

.text-white\/80 {
  color: rgba(255, 255, 255, 0.8);
}

/* Focus States */
.focus-visible\:ring:focus-visible {
  outline: 2px solid #00c278;
  outline-offset: 2px;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .orderbook-ask {
    color: #ff0000;
  }
  
  .orderbook-bid {
    color: #00ff00;
  }
  
  .border-white\/10 {
    border-color: rgba(255, 255, 255, 0.3);
  }
}

/* Order Book compact, tabular layout */
.tabular { font-variant-numeric: tabular-nums; }
.ob-row{ display:grid; grid-template-columns: 1fr 1fr 1fr; position:relative; line-height:1.25rem; height:1.5rem; }
.ob-cell{ z-index:1; }
.ob-price{ color:#9CA3AF; }
.ob-row:hover{ background:rgba(255,255,255,0.03); }
.ob-bar{ position:absolute; right:0; top:0; bottom:0; width:0; z-index:0; border-radius:3px 0 0 3px; }
#obStep .ob-step{ color:#A6A8AD; }
#obStep .ob-step.active{ background:rgba(255,255,255,0.12); color:#EDEFF1; }
