@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --radius: 0.625rem;
  --background: oklch(0.1 0 0);
  --foreground: oklch(0.985 0 0);
  --card: oklch(0.15 0 0);
  --card-foreground: oklch(0.985 0 0);
  --primary: oklch(0.55 0.2 300);
  --primary-foreground: oklch(0.985 0 0);
  --secondary: oklch(0.2 0 0);
  --secondary-foreground: oklch(0.985 0 0);
  --muted: oklch(0.25 0 0);
  --muted-foreground: oklch(0.7 0 0);
  --accent: oklch(0.55 0.2 300);
  --accent-foreground: oklch(0.985 0 0);
  --destructive: oklch(0.577 0.245 27.325);
  --border: oklch(0.3 0 0);
  --input: oklch(0.2 0 0);
  --ring: oklch(0.55 0.2 300);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(0.12 0 0 / 0.6);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  min-height: 70px;
}

/* Fallback para navegadores sem suporte a backdrop-filter */
@supports not (backdrop-filter: blur(20px)) {
  header {
    background: oklch(0.12 0 0 / 0.9);
  }
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  min-height: 70px;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.3s ease;
  position: relative;
}

.logo:hover {
  opacity: 0.8;
}

.logo img {
  height: auto;
  max-height: 40px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

.logo-glow {
  display: none;
}

.desktop-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.desktop-nav a {
  color: var(--muted-foreground);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--primary);
}

.desktop-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
  width: 100%;
}

.clock-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.actions {
  display: flex;
  gap: 0.75rem;
}

.user-profile-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--foreground);
  transition: all 0.3s ease;
  text-decoration: none;
  border-radius: var(--radius);
}

.user-profile-btn:hover {
  background: var(--secondary);
  color: var(--primary);
}

.btn {
  padding: 0.625rem 1.5rem;
  border: none;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, oklch(1 0 0 / 0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.btn:hover::before {
  transform: translateX(100%);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), oklch(0.65 0.25 320));
  color: var(--primary-foreground);
  box-shadow: 0 4px 20px -4px oklch(0.55 0.2 300 / 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px -4px oklch(0.55 0.2 300 / 0.6);
}

.btn-outline {
  background: transparent;
  color: var(--foreground);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  background: var(--secondary);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--foreground);
  padding: 0.5rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.25rem;
}

.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: oklch(0.12 0 0 / 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  z-index: 49;
}

.mobile-menu.active {
  max-height: 500px;
  overflow-y: auto;
}

.mobile-nav {
  padding: 1.5rem;
}

.mobile-nav a {
  display: block;
  color: var(--muted-foreground);
  text-decoration: none;
  padding: 0.75rem 0;
  font-weight: 500;
  transition: color 0.3s ease;
}

.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--primary);
}

.mobile-nav .actions {
  margin-top: 1rem;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-nav .actions .btn {
  width: 100%;
}

/* Hero Section */
.hero-section {
  padding: 4rem 0;
  background: var(--background);
}

.hero-content {
  text-align: center;
}

.hero-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--muted-foreground);
}

/* ===================================
   HERO SECTION
   =================================== */

.hero-section {
  padding: 0;
  background-image: linear-gradient(180deg,
      var(--background) 0%,
      oklch(0.12 0 0) 50%,
      var(--background) 100%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Ccircle cx='30' cy='30' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  background-size: 100% 100%, 60px 60px;
  position: relative;
  overflow: hidden;
  min-height: 70vh;
  height: 70vh;
  width: 100%;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(600px, 95vw);
  height: min(600px, 95vh);
  background: radial-gradient(circle,
      oklch(0.55 0.2 300 / 0.08) 0%,
      oklch(0.55 0.2 300 / 0.04) 30%,
      transparent 70%);
  pointer-events: none;
  animation: pulse 8s ease-in-out infinite;
  z-index: 0;
  border-radius: 50%;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 4rem 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--foreground) 0%, var(--muted-foreground) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    opacity: 0.4;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

.hero-content p {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--muted-foreground);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  animation: heroSubtitleFade 1s ease-out 0.2s both;
}

@keyframes heroSubtitleFade {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===================================
   BUTTONS
   =================================== */

.btn {
  position: relative;
  padding: 0.875rem 2rem;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--foreground);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  background: var(--secondary);
  border-color: var(--primary);
}

.btn-warning {
  background: oklch(0.65 0.2 85);
  color: var(--background);
}

.btn-success {
  background: oklch(0.6 0.2 145);
  color: var(--background);
}

.btn-danger {
  background: var(--destructive);
  color: var(--foreground);
}

.web3-btn {
  position: relative;
  z-index: 1;
}

.btn-hover-effect {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
  pointer-events: none;
}

.btn:hover .btn-hover-effect {
  width: 300px;
  height: 300px;
}

.btn.loading {
  pointer-events: none;
  opacity: 0.7;
}

.btn.loading .btn-content::after {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 8px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ===================================
   COPY TRADING SECTION
   =================================== */

.copy-trading-section {
  position: relative;
  padding: 6rem 0;
}

.copied-traders h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 2.5rem;
  color: var(--foreground);
  background: linear-gradient(135deg, var(--foreground) 0%, var(--muted-foreground) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  letter-spacing: -0.01em;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.stat-card {
  background: var(--card);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px oklch(0.15 0 0 / 0.1);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.stat-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-card:hover::after {
  transform: scaleX(1);
}

.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px oklch(0.15 0 0 / 0.2);
  border-color: var(--primary);
}

/* Header em linha única */
.stat-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
  flex-wrap: nowrap;
}

.trader-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), oklch(0.65 0.25 320));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-foreground);
  flex-shrink: 0;
  box-shadow: 0 4px 16px oklch(0.55 0.2 300 / 0.3);
  transition: transform 0.3s ease;
  position: relative;
  overflow: hidden;
}

.trader-avatar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.1) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stat-card:hover .trader-avatar {
  transform: rotate(5deg) scale(1.05);
}

.stat-card:hover .trader-avatar::before {
  opacity: 1;
}

.trader-info {
  flex: 1;
  min-width: 0;
}

.trader-info h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--foreground);
}

.trader-info p {
  color: var(--muted-foreground);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.paused-badge {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.375rem 0.875rem;
  background: linear-gradient(135deg, oklch(0.65 0.2 85), oklch(0.75 0.15 85));
  color: var(--background);
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 2px 8px oklch(0.65 0.2 85 / 0.3);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Ações em linha */
.trader-actions {
  display: flex;
  flex-direction: row;
  gap: 0.75rem;
  width: auto;
  flex-shrink: 0;
}

.btn-pause-copy,
.btn-stop-copy {
  padding: 0.75rem 1.25rem;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius);
  transition: all 0.3s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-pause-copy {
  background: linear-gradient(135deg, oklch(0.65 0.2 85), oklch(0.75 0.15 85));
  color: var(--background);
  box-shadow: 0 4px 12px oklch(0.65 0.2 85 / 0.4);
  border: none;
}

.btn-pause-copy::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.btn-pause-copy:hover::before {
  left: 100%;
}

.btn-pause-copy:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px oklch(0.65 0.2 85 / 0.6);
}

.btn-resume-copy {
  background: linear-gradient(135deg, oklch(0.6 0.2 145), oklch(0.7 0.15 145));
  color: var(--background);
  box-shadow: 0 4px 12px oklch(0.6 0.2 145 / 0.4);
}

.btn-resume-copy:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px oklch(0.6 0.2 145 / 0.6);
}

.btn-stop-copy {
  background: transparent;
  border: 1.5px solid var(--destructive);
  color: var(--destructive);
}

.btn-stop-copy:hover {
  background: var(--destructive);
  color: var(--primary-foreground);
  transform: translateY(-2px);
}

.time-warning {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  font-style: italic;
  text-align: center;
  padding: 0.5rem;
  background: var(--secondary);
  border-radius: var(--radius);
  white-space: nowrap;
}

.stat-values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.stat-item {
  text-align: center;
  position: relative;
  transition: transform 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-4px);
}

.stat-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.stat-item:hover::before {
  width: 80%;
}

.stat-value {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

.stat-value.positive {
  color: oklch(0.6 0.2 145);
  background: linear-gradient(135deg, oklch(0.6 0.2 145) 0%, oklch(0.7 0.15 145) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-value.negative {
  color: var(--destructive);
  background: linear-gradient(135deg, var(--destructive) 0%, oklch(0.65 0.2 27) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  color: var(--muted-foreground);
  font-size: 0.85rem;
  font-weight: 500;
}

/* ===================================
   PERFORMANCE OVERVIEW - ENHANCED
   =================================== */

.performance-overview {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid oklch(0.3 0 0 / 0.5);
  border-radius: var(--radius);
  padding: 2.5rem;
  margin-top: 3rem;
  position: relative;
  overflow: hidden;
}

.performance-overview::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.performance-overview h3 {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 800;
  margin-bottom: 2rem;
  color: var(--foreground);
  background: linear-gradient(135deg, var(--foreground) 0%, var(--muted-foreground) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  letter-spacing: -0.01em;
}

.performance-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.performance-item {
  text-align: center;
  padding: 1rem;
  background: var(--secondary);
  border-radius: calc(var(--radius) / 2);
  transition: all 0.3s ease;
  border: 1px solid var(--border);
}

.performance-item:hover {
  transform: scale(1.05);
  border-color: var(--primary);
  box-shadow: 0 8px 24px oklch(0.55 0.2 300 / 0.15);
}

.performance-value {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.performance-value.positive {
  background: linear-gradient(135deg, oklch(0.6 0.2 145), oklch(0.7 0.15 145));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.performance-label {
  color: var(--muted-foreground);
  font-size: 0.9rem;
  font-weight: 500;
}

.performance-charts {
  gap: 1.5rem;
  margin-top: 2rem;
}

.chart-container {
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  min-height: 300px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.chart-container:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 24px oklch(0.55 0.2 300 / 0.15);
}

.chart-container canvas {
  width: 100% !important;
  height: 100% !important;
  max-height: 250px;
}

/* ===================================
   EMPTY STATE
   =================================== */

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  max-width: 600px;
  margin: 0 auto;
}

.empty-icon {
  width: 120px;
  height: 120px;
  margin: 0 auto 2rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--foreground);
}

.empty-state h3 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.empty-state p {
  color: var(--muted-foreground);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* ===================================
   CTA SECTION
   =================================== */

.cta-content {
  text-align: center;
  padding: 4rem 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--foreground) 0%, var(--muted-foreground) 100%);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cta-content p {
  font-size: 1.2rem;
  color: var(--muted-foreground);
  margin-bottom: 2.5rem;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-button {
  min-width: 200px;
}

/* ===================================
   TOP TRADERS SECTION
   =================================== */

.top-traders-section {
  position: relative;
  padding: 6rem 0;
}

.top-traders-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
}

.section-subtitle {
  text-align: center;
  color: var(--muted-foreground);
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

/* Carrossel - Base styles */
.traders-carousel {
  display: none;
  position: relative;
  overflow: hidden;
  padding: 0 80px;
  margin-bottom: 2rem;
}

.traders-carousel-grid {
  display: flex;
  gap: 2rem;
  transition: transform 0.5s ease-in-out;
  padding: 2rem 0;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  will-change: transform;
}

.traders-carousel-grid::-webkit-scrollbar {
  display: none;
}

.traders-carousel-grid {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.carousel-trader-card {
  scroll-snap-align: center;
  flex: 0 0 auto;
  width: 400px;
  max-width: 90%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  margin: 0 auto;
}

.carousel-trader-card.active {
  opacity: 1;
  transform: scale(1);
  border-color: var(--primary);
  box-shadow: 0 15px 50px rgba(139, 92, 246, 0.25);
}

.carousel-trader-card:not(.active) {
  opacity: 0;
  visibility: hidden;
  transform: scale(0.95);
  position: absolute;
}

.trader-card .btn, .carousel-trader-card .btn {
  width: 100%;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--foreground);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.carousel-btn:hover {
  background: var(--primary);
  color: var(--primary-foreground);
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn-prev {
  left: 20px;
}

.carousel-btn-next {
  right: 20px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
  border: none;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.carousel-dot.active {
  background: var(--primary);
  transform: scale(1.2);
}

/* Grid normal para desktop */
.traders-grid {
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.trader-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all 0.3s ease;
}

.trader-card:hover {
  border-color: var(--primary);
  box-shadow: 0 10px 40px rgba(139, 92, 246, 0.2);
  transform: translateY(-6px);
}

.trader-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.trader-info h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.win-rate {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
}

.win-rate.positive {
  background: rgba(74, 222, 128, 0.15);
  color: oklch(0.6 0.2 145);
}

.win-rate.neutral {
  background: rgba(139, 92, 246, 0.15);
  color: var(--primary);
}

.trader-stats {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trader-stats .stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.trader-stats .label {
  color: var(--muted-foreground);
  font-size: 0.9rem;
}

.trader-stats .value {
  font-weight: 600;
  font-size: 1.1rem;
}

/* ===================================
   HOW IT WORKS SECTION
   =================================== */

.how-it-works-section {
  position: relative;
  padding: 8rem 0;
  background-image: 
    linear-gradient(180deg, var(--background) 0%, oklch(0.12 0 0) 100%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Ccircle cx='30' cy='30' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  background-size: 100% 100%, 60px 60px;
  overflow: hidden;
}

.how-it-works-section::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 75%;
  background: linear-gradient(to bottom, transparent 0%, var(--primary) 20%, var(--primary) 80%, transparent 100%);
  z-index: 0;
  animation: timelineFlow 4s ease-in-out infinite;
}

@keyframes timelineFlow {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.how-it-works-section h2 {
  position: relative;
  z-index: 2;
  font-size: 3rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--foreground) 0%, var(--muted-foreground) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease infinite;
  background-size: 200% auto;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.section-subtitle {
  text-align: center;
  color: var(--muted-foreground);
  font-size: 1.15rem;
  margin-bottom: 5rem;
  position: relative;
  z-index: 2;
}

.steps-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.step {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 800px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  opacity: 0;
  animation: cardReveal 0.8s ease-out forwards;
  overflow: hidden;
  box-shadow: 0 4px 20px oklch(0.15 0 0 / 0.1);
}

.step:nth-child(odd) {
  align-self: flex-start;
}

.step:nth-child(even) {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.step:nth-child(1) { animation-delay: 0.1s; }
.step:nth-child(2) { animation-delay: 0.3s; }
.step:nth-child(3) { animation-delay: 0.5s; }
.step:nth-child(4) { animation-delay: 0.7s; }

@keyframes cardReveal {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.step-content {
  flex: 1;
  text-align: left;
  padding-left: 2rem;
}

.step:nth-child(even) .step-content {
  padding-left: 0;
  padding-right: 2rem;
  text-align: right;
}

.step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 0;
}

.step::after {
  content: '';
  position: absolute;
  inset: 2px;
  background: var(--card);
  border-radius: calc(var(--radius) - 2px);
  z-index: 1;
  transition: all 0.5s ease;
}

.step:hover::before {
  opacity: 0.08;
}

.step:hover::after {
  background: oklch(0.18 0 0);
}

.step:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: var(--primary);
  box-shadow: 
    0 20px 60px rgba(139, 92, 246, 0.3),
    0 0 0 2px var(--primary);
}

.step > * {
  position: relative;
  z-index: 2;
}

.step-icon {
  position: relative;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary-foreground);
  transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: 
    0 8px 32px rgba(139, 92, 246, 0.4),
    inset 0 2px 8px rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.step-icon::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  opacity: 0;
  transition: all 0.6s ease;
  z-index: -1;
  filter: blur(16px);
  animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
  0%, 100% { transform: scale(0.8); opacity: 0; }
  50% { transform: scale(1.2); opacity: 0.2; }
}

.step:hover .step-icon {
  transform: scale(1.1) rotate(360deg);
  box-shadow: 
    0 12px 48px rgba(139, 92, 246, 0.6),
    inset 0 2px 12px rgba(255, 255, 255, 0.2);
}

.step:hover .step-icon::before {
  opacity: 0.6;
  transform: scale(1.2);
}

.step h3 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--foreground);
  transition: all 0.3s ease;
  line-height: 1.3;
}

.step:hover h3 {
  color: var(--primary);
  transform: translateY(-2px);
}

.step p {
  color: var(--muted-foreground);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0;
  transition: color 0.3s ease;
}

.step:hover p {
  color: var(--foreground);
}

/* ===================================
   WHY CHOOSE SECTION
   =================================== */

.why-choose-section {
  position: relative;
  padding: 8rem 0;
  background: 
    radial-gradient(ellipse 80% 50% at 50% 0%, oklch(0.55 0.2 300 / 0.05) 0%, transparent 100%),
    linear-gradient(180deg, var(--background) 0%, oklch(0.12 0 0) 100%);
  overflow: hidden;
}

.why-choose-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
  pointer-events: none;
}

.why-choose-section h2 {
  position: relative;
  z-index: 1;
  font-size: 3rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--foreground) 0%, var(--muted-foreground) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease infinite;
  background-size: 200% auto;
}

.why-choose-section .section-subtitle {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--muted-foreground);
  font-size: 1.2rem;
  margin-bottom: 3rem;
}

.benefits-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(4, auto);
  grid-template-areas: 
    'coluna1 row1 row1'
    'coluna1 row1 row1'
    'coluna2 row2 row2'
    'coluna2 row2 row2';
  gap: 1.5rem;
  margin-top: 4rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.benefits-grid .benefit-card:nth-child(1) {
  grid-area: coluna1;
}

.benefits-grid .benefit-card:nth-child(2) {
  grid-area: row1;
}

.benefits-grid .benefit-card:nth-child(3) {
  grid-area: coluna2;
}

.benefits-grid .benefit-card:nth-child(4) {
  grid-area: row2;
}

.benefit-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3rem;
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

.benefit-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.benefit-card::after {
  content: '';
  position: absolute;
  inset: 1px;
  background: var(--card);
  border-radius: calc(var(--radius) - 1px);
  z-index: 1;
  transition: background 0.4s ease;
}

.benefit-card:hover::before {
  opacity: 0.1;
}

.benefit-card:hover::after {
  background: oklch(0.18 0 0);
}

.benefit-card:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: var(--primary);
  box-shadow: 
    0 20px 60px rgba(139, 92, 246, 0.3),
    0 0 0 1px var(--primary);
}

.benefit-card > * {
  position: relative;
  z-index: 2;
}

.benefit-card i {
  font-size: 3.5rem;
  background: linear-gradient(135deg, var(--foreground) 0%, var(--muted-foreground) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
  display: block;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.benefit-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--foreground);
  background: linear-gradient(135deg, var(--foreground) 0%, var(--muted-foreground) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.benefit-card p {
  color: var(--muted-foreground);
  line-height: 1.8;
  font-size: 1rem;
  flex-grow: 1;
}

.benefit-card:hover i {
  transform: scale(1.1);
}

/* ===================================
   FAQ SECTION
   =================================== */

.faq-section {
  padding: 4rem 0;
  background-image: radial-gradient(ellipse 40% 20% at 0% 0%, oklch(0.55 0.2 300 / 0.03) 0%, transparent 90%),
    linear-gradient(180deg, oklch(0.14 0 0) 0%, var(--background) 100%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Ccircle cx='30' cy='30' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  background-size: 100% 100%, 100% 100%, 60px 60px;
  position: relative;
  overflow: hidden;
}

.faq-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, oklch(0.55 0.2 300 / 0.05) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0.3;
  z-index: 0;
}

.faq-section .container {
  position: relative;
  z-index: 1;
}

.faq-section .features-content {
  text-align: center;
  margin-bottom: 3rem;
}

.faq-section .features-content h3 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--foreground) 0%, var(--muted-foreground) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.faq-section .features-content p {
  font-size: 1.2rem;
  color: var(--muted-foreground);
  max-width: 600px;
  margin: 0 auto;
}

.faq-section .faq-list {
  display: grid;
  gap: 1rem;
  max-width: 1280px;
  margin: 0 auto;
}

.faq-section .faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-section .faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.faq-section .faq-question:hover {
  background: var(--secondary);
}

.faq-section .faq-question-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--foreground);
}

.faq-section .faq-icon {
  width: 20px;
  height: 20px;
  color: var(--muted-foreground);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-section .faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-section .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-section .faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-section .faq-answer-content {
  padding: 1rem 1.5rem 1.5rem;
  font-size: 1rem;
  color: var(--muted-foreground);
  line-height: 1.6;
  border-top: 1px solid var(--border);
}

.faq-section .cta-content {
  text-align: center;
  margin-top: 3rem;
}

.faq-section .cta-content .btn {
  padding: 0.875rem 2rem;
  font-size: 1.1rem;
}

/* ===================================
   MODALS
   =================================== */

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
}

.modal-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
}

.close-modal {
  background: transparent;
  border: none;
  font-size: 1.75rem;
  color: var(--muted-foreground);
  cursor: pointer;
  padding: 0.25rem;
  transition: color 0.3s ease;
}

.close-modal:hover {
  color: var(--foreground);
}

.modal-body {
  padding: 2rem;
}

.trader-details {
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.trader-details p {
  margin-bottom: 0.75rem;
  color: var(--muted-foreground);
}

.trader-details p:last-child {
  margin-bottom: 0;
}

.trader-details strong {
  color: var(--foreground);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--foreground);
}

.web3-input,
input[type="text"],
input[type="number"] {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--input);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--foreground);
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
}

.web3-input:focus,
input[type="text"]:focus,
input[type="number"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--border);
}

.search-options {
  padding: 2rem;
}

.search-method h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

/* ===================================
   TOAST NOTIFICATIONS
   =================================== */

.toast-container {
  position: fixed;
  top: 100px;
  right: 2rem;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  min-width: 320px;
  max-width: 420px;
  pointer-events: all;
  animation: toastSlideIn 0.3s ease-out;
  transition: all 0.3s ease;
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.toast-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.toast-success {
  border-left: 4px solid oklch(0.6 0.2 145);
}

.toast-success .toast-icon {
  color: oklch(0.6 0.2 145);
}

.toast-error {
  border-left: 4px solid var(--destructive);
}

.toast-error .toast-icon {
  color: var(--destructive);
}

.toast-warning {
  border-left: 4px solid oklch(0.65 0.2 85);
}

.toast-warning .toast-icon {
  color: oklch(0.65 0.2 85);
}

.toast-info {
  border-left: 4px solid var(--primary);
}

.toast-info .toast-icon {
  color: var(--primary);
}

.toast-content {
  flex: 1;
}

.toast-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--foreground);
}

.toast-message {
  font-size: 0.9rem;
  color: var(--muted-foreground);
  line-height: 1.5;
}

.toast-close {
  background: transparent;
  border: none;
  color: var(--muted-foreground);
  cursor: pointer;
  padding: 0.25rem;
  font-size: 1.25rem;
  transition: color 0.3s ease;
  flex-shrink: 0;
}

.toast-close:hover {
  color: var(--foreground);
}

/* ===================================
   WEB3 EFFECTS
   =================================== */

.web3-glow {
  position: relative;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* ===================================
   RESPONSIVE DESIGN - MOBILE FIRST
   =================================== */

/* Large Desktops (769px and up) */
@media (min-width: 769px) {
  .container {
    max-width: 1280px;
    margin: 0 auto;
  }

  .stats-grid:not(.single-trader) {
    grid-template-columns: repeat(4, 1fr);
  }

  .traders-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
  
  .stats-grid:not(.single-trader) {
    grid-template-columns: repeat(2, 1fr);
  }

  .performance-charts {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-container::before {
    display: block;
  }

  .traders-carousel {
    display: none;
  }

  .desktop-nav {
    display: flex;
  }

  .mobile-menu-btn {
    display: none;
  }

  .clock-actions .actions {
    display: flex;
  }

  .steps-container {
    gap: 3.5rem;
    padding: 0 2rem;
  }

  .benefits-grid {
    gap: 2rem;
    margin-top: 5rem;
  }
}

/* Tablets and Mobile Devices (768px and below) */
@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }

  .hero-content h1 {
    font-size: clamp(2rem, 6vw, 3rem);
  }

  .hero-content p {
    font-size: 1.1rem;
  }

  /* Mobile Menu */
  .desktop-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .clock-actions .actions {
    display: none;
  }

  .mobile-menu {
    display: block;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .mobile-menu.active {
    max-height: 500px;
  }

  .traders-carousel {
    display: block;
    padding: 0 80px;
  }

  .traders-carousel-grid {
    align-items: center;
    padding: 2rem 1rem;
    gap: 1.5rem;
  }

  .carousel-trader-card {
    width: 400px;
    max-width: 90%;
    padding: 2rem;
    margin: 0 auto;
  }

  .carousel-btn {
    width: 44px;
    height: 44px;
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--foreground);
  }

  .carousel-btn:hover {
    background: var(--primary);
    color: var(--primary-foreground);
  }

  .carousel-btn-prev {
    left: 20px;
  }

  .carousel-btn-next {
    right: 20px;
  }

  .traders-grid {
    display: none;
  }

  .stats-grid.single-trader {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .stats-grid.single-trader .stat-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }

  .stats-grid.single-trader .trader-actions {
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    flex-wrap: wrap;
  }

  .stats-grid.single-trader .stat-values {
    grid-template-columns: repeat(2, 1fr);
    max-width: 400px;
    margin: 0 auto;
  }

  .stats-grid:not(.single-trader),
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .steps-container {
    gap: 2rem;
    padding: 0 1rem;
  }

  .performance-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .stat-values {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .modal {
    padding: 1rem;
  }

  .modal-content {
    width: 90%;
    max-width: none;
    max-height: 90vh;
    margin: 5vh auto;
  }

  .modal-header,
  .modal-body,
  .modal-actions {
    padding: 1.5rem;
  }

  .cta-actions {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .cta-button,
  .cta-actions .btn {
    width: 100%;
    max-width: 300px;
  }

  .modal-actions {
    flex-direction: column-reverse;
    gap: 0.75rem;
  }

  .modal-actions .btn {
    width: 100%;
    margin: 0;
  }

  .section-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
  }

  .how-it-works-section h2,
  .why-choose-section h2 {
    font-size: 2.25rem !important;
  }

  h3 {
    font-size: 1.5rem !important;
  }

  .toast-container {
    right: 1rem;
    left: 1rem;
    top: 80px;
  }

  .toast {
    min-width: auto;
    max-width: 100%;
    width: 100%;
  }

  .header-content {
    padding: 0.75rem 0;
  }

  .logo img {
    max-height: 32px;
    max-width: 140px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .step {
    padding: 2rem 1.5rem;
    max-width: 100%;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }

  .step:nth-child(odd),
  .step:nth-child(even) {
    align-self: center !important;
  }

  .step-content {
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 1.5rem;
    text-align: center !important;
  }

  .step h3 {
    font-size: 1.5rem !important;
  }

  .step p {
    font-size: 1rem;
  }

  .step-icon {
    width: 70px;
    height: 70px;
    font-size: 1.75rem;
  }

  .benefits-grid {
    grid-template-areas: 
      'coluna1'
      'row1'
      'coluna2'
      'row2' !important;
    margin-top: 2rem;
  }

  .benefit-card {
    padding: 2rem 1.5rem;
    align-items: center;
    text-align: center;
  }

  .benefit-card i {
    font-size: 3rem;
  }

  .benefit-card h3 {
    font-size: 1.375rem;
  }

  .benefit-card p {
    font-size: 0.95rem;
  }

  .how-it-works-section,
  .why-choose-section {
    padding: 4rem 0;
  }
}

/* Mobile Devices (481px - 767px) */
@media (max-width: 767px) {
  .traders-carousel {
    padding: 0 70px;
  }

  .carousel-trader-card {
    width: 350px;
    max-width: 92%;
    padding: 1.75rem;
    margin: 0 auto;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
  }

  .carousel-btn-prev {
    left: 15px;
  }

  .carousel-btn-next {
    right: 15px;
  }

  .stats-grid:not(.single-trader),
  .steps-container,
  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .trader-actions {
    width: 100%;
    flex-direction: column;
  }

  .stat-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .stats-grid.single-trader .trader-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .stats-grid.single-trader .stat-values {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .performance-overview {
    padding: 1.5rem;
  }

  .performance-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .faq-question {
    padding: 1.25rem;
    font-size: 1rem;
  }

  .faq-answer {
    padding: 0 1.25rem;
  }

  .faq-item.active .faq-answer {
    padding: 0 1.25rem 1.25rem;
  }

  .header-content {
    gap: 0.75rem;
    padding: 0.625rem 0;
  }

  .logo img {
    max-height: 30px;
    max-width: 130px;
  }

  .steps-container {
    gap: 1.75rem;
    padding: 0 0.5rem;
  }

  .step {
    padding: 1.75rem 1.25rem;
  }

  .step-content {
    padding-top: 1.25rem;
  }

  .step h3 {
    font-size: 1.375rem !important;
  }

  .step p {
    font-size: 0.95rem;
  }

  .step-icon {
    width: 65px;
    height: 65px;
    font-size: 1.5rem;
  }

  .benefit-card {
    padding: 1.75rem 1.25rem;
  }

  .benefit-card i {
    font-size: 2.75rem;
  }

  .benefit-card h3 {
    font-size: 1.25rem;
  }

  .how-it-works-section,
  .why-choose-section {
    padding: 3.5rem 0;
  }
}

/* Small Mobile Devices (320px - 480px) */
@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .hero-content {
    padding: 2rem 0;
  }

  .hero-content h1 {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--foreground) 0%, var(--muted-foreground) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .hero-content p {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    min-height: 44px;
    width: 100%;
    max-width: 280px;
  }

  .trader-avatar {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
  }

  .stat-value {
    font-size: 1.25rem;
  }

  .performance-value {
    font-size: 1.5rem;
  }

  .step-icon,
  .empty-icon {
    width: 64px;
    height: 64px;
    font-size: 1.75rem;
  }

  .benefit-card i {
    font-size: 2.5rem;
  }

  .traders-carousel {
    padding: 0 30px;
  }

  .carousel-trader-card {
    width: 300px;
    max-width: 95%;
    padding: 1.5rem;
    margin: 0 auto;
  }

  .carousel-btn {
    width: 36px;
    height: 36px;
    font-size: 0.875rem;
  }

  .carousel-btn-prev {
    left: 10px;
  }

  .carousel-btn-next {
    right: 10px;
  }

  .trader-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .trader-avatar {
    width: 64px;
    height: 64px;
    font-size: 1.5rem;
  }

  .trader-stats {
    padding: 1rem 0;
  }

  .trader-stats .stat {
    flex-direction: column;
    gap: 0.25rem;
    text-align: center;
  }

  .modal-content {
    width: 95%;
    max-height: 95vh;
    margin: 2.5vh auto;
  }

  .modal-header,
  .modal-body,
  .modal-actions {
    padding: 1.25rem;
  }

  .performance-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stat-values {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .header-content {
    gap: 0.5rem;
    padding: 0.5rem 0;
  }

  .logo img {
    max-height: 28px;
    max-width: 120px;
  }

  .copy-trading-section {
    padding: 3rem 0;
  }

  .stats-grid {
    gap: 1rem;
  }

  .stat-card {
    padding: 1.25rem;
  }

  .how-it-works-section {
    padding: 3rem 0;
  }

  .how-it-works-section h2,
  .why-choose-section h2 {
    font-size: 2rem !important;
  }

  .section-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .steps-container {
    gap: 1.5rem;
    padding: 0;
  }

  .step {
    padding: 1.5rem 1rem;
  }

  .step h3 {
    font-size: 1.25rem !important;
  }

  .step p {
    font-size: 0.9rem;
  }

  .step-icon {
    width: 60px;
    height: 60px;
    font-size: 1.25rem;
  }

  .step-content {
    padding-top: 1rem;
  }

  .why-choose-section {
    padding: 3rem 0;
  }

  .benefit-card {
    padding: 1.5rem;
  }

  .benefit-card i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }

  .benefit-card h3 {
    font-size: 1.125rem;
  }

  .benefit-card p {
    font-size: 0.875rem;
    line-height: 1.6;
  }

  .faq-section {
    padding: 3rem 0;
  }

  .cta-content {
    padding: 2rem 1rem;
  }

  .top-traders-section {
    padding: 3rem 0;
  }

  .mobile-text-center {
    text-align: center;
  }

  .mobile-full-width {
    width: 100%;
  }

  .mobile-stack {
    flex-direction: column;
  }
}

/* Extra Small Devices (320px and below) */
@media (max-width: 320px) {
  .container {
    padding: 0 0.75rem;
  }

  .hero-content h1 {
    font-size: 1.5rem;
  }

  .hero-content p {
    font-size: 0.9rem;
  }

  .btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.85rem;
  }

  .carousel-trader-card {
    width: 260px;
    padding: 1.25rem;
    max-width: 98%;
  }

  .carousel-btn {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
  }

  .carousel-btn-prev {
    left: 8px;
  }

  .carousel-btn-next {
    right: 8px;
  }

  .stat-card {
    padding: 1rem;
  }

  .modal-content {
    width: 98%;
    margin: 1vh auto;
  }

  .header-content {
    gap: 0.375rem;
    padding: 0.375rem 0;
  }

  .logo img {
    max-height: 24px;
    max-width: 100px;
  }

  .how-it-works-section,
  .why-choose-section {
    padding: 2.5rem 0;
  }

  .how-it-works-section h2,
  .why-choose-section h2 {
    font-size: 1.75rem !important;
  }

  .section-subtitle {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

  .steps-container {
    gap: 1.25rem;
  }

  .step {
    padding: 1.25rem 0.75rem;
  }

  .step h3 {
    font-size: 1.125rem !important;
  }

  .step p {
    font-size: 0.85rem;
  }

  .step-icon {
    width: 55px;
    height: 55px;
    font-size: 1.125rem;
  }

  .step-content {
    padding-top: 0.75rem;
  }

  .benefit-card {
    padding: 1.25rem 0.75rem;
  }

  .benefit-card i {
    font-size: 2.25rem;
  }

  .benefit-card h3 {
    font-size: 1rem;
  }

  .benefit-card p {
    font-size: 0.8rem;
  }
}

/* ===================================
   SCROLLBAR STYLING
   =================================== */

::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--background);
}

::-webkit-scrollbar-thumb {
  background: var(--muted);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* ===================================
   SELECTION STYLING
   =================================== */

::selection {
  background: var(--primary);
  color: var(--primary-foreground);
}

::-moz-selection {
  background: var(--primary);
  color: var(--primary-foreground);
}

/* ===================================
   UTILITY CLASSES
   =================================== */

.positive {
  color: oklch(0.6 0.2 145);
}

.negative {
  color: var(--destructive);
}

.neutral {
  color: var(--muted-foreground);
}

/* ===================================
   ACCESSIBILITY
   =================================== */

.btn:focus-visible,
.web3-input:focus-visible,
input:focus-visible,
button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}