/* CryptoSwap - Design ported from React version
   Vibrant crypto swap theme with glassmorphism
*/

/* LIGHT MODE */
:root {
  --button-outline: rgba(0,0,0, .10);
  --badge-outline: rgba(0,0,0, .05);
  --elevate-1: rgba(0,0,0, .03);
  --elevate-2: rgba(0,0,0, .08);
  --background: 220 20% 97%;
  --foreground: 222 47% 11%;
  --border: 220 13% 91%;
  --card: 0 0% 100%;
  --card-foreground: 222 47% 11%;
  --popover: 0 0% 100%;
  --popover-foreground: 222 47% 11%;
  --primary: 172 66% 50%;
  --primary-foreground: 222 47% 11%;
  --secondary: 220 14% 96%;
  --secondary-foreground: 222 47% 11%;
  --muted: 220 14% 96%;
  --muted-foreground: 220 9% 46%;
  --accent: 262 83% 58%;
  --accent-foreground: 0 0% 100%;
  --destructive: 0 84% 60%;
  --destructive-foreground: 0 0% 100%;
  --input: 220 13% 91%;
  --ring: 172 66% 50%;
  --chart-1: 172 66% 50%;
  --chart-2: 262 83% 58%;
  --chart-5: 338 76% 55%;
  --success: 142 76% 36%;
  --success-foreground: 0 0% 100%;
  --warning: 38 92% 50%;
  --warning-foreground: 0 0% 100%;
  --radius: 0.5rem;
}

/* DARK MODE */
.dark {
  --button-outline: rgba(255,255,255, .10);
  --badge-outline: rgba(255,255,255, .05);
  --elevate-1: rgba(255,255,255, .04);
  --elevate-2: rgba(255,255,255, .09);
  --background: 222 47% 8%;
  --foreground: 210 40% 98%;
  --border: 217 33% 17%;
  --card: 222 47% 11%;
  --card-foreground: 210 40% 98%;
  --popover: 222 47% 11%;
  --popover-foreground: 210 40% 98%;
  --primary: 172 66% 50%;
  --primary-foreground: 222 47% 11%;
  --secondary: 217 33% 17%;
  --secondary-foreground: 210 40% 98%;
  --muted: 217 33% 17%;
  --muted-foreground: 215 20% 65%;
  --accent: 262 83% 58%;
  --accent-foreground: 0 0% 100%;
  --destructive: 0 84% 60%;
  --destructive-foreground: 0 0% 100%;
  --input: 217 33% 17%;
  --ring: 172 66% 50%;
  --chart-1: 172 66% 50%;
  --chart-2: 262 83% 68%;
  --chart-5: 338 76% 65%;
  --success: 142 76% 46%;
  --success-foreground: 0 0% 100%;
  --warning: 38 92% 50%;
  --warning-foreground: 0 0% 100%;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border-color: hsl(var(--border));
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: hsl(var(--background) / 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid hsl(var(--border));
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  text-decoration: none;
}

.logo:hover {
  opacity: 0.9;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent)));
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.nav {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.nav-link {
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  transition: color 0.2s;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
}

.nav-link:hover {
  color: hsl(var(--foreground));
  background: hsl(var(--muted));
}

.nav-link.active {
  color: hsl(var(--foreground));
  background: hsl(var(--muted));
}

.theme-toggle {
  background: transparent;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 0.5rem;
  cursor: pointer;
  color: hsl(var(--muted-foreground));
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.theme-toggle:hover {
  color: hsl(var(--foreground));
  background: hsl(var(--muted));
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 4rem 0 5rem;
}

/* Gradient background */
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, hsl(var(--background)), hsl(var(--background)), hsl(var(--primary) / 0.05));
  z-index: -3;
}

/* Glowing orbs - like React version */
.hero-glow {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  pointer-events: none;
  z-index: -2;
}

.hero-orb-1 {
  position: absolute;
  top: 25%;
  left: -25%;
  width: 50%;
  height: 50%;
  background: hsl(var(--primary) / 0.2);
  border-radius: 50%;
  filter: blur(80px);
}

.hero-orb-2 {
  position: absolute;
  bottom: 25%;
  right: -25%;
  width: 50%;
  height: 50%;
  background: hsl(var(--accent) / 0.2);
  border-radius: 50%;
  filter: blur(80px);
}

.hero-orb-3 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 33%;
  height: 33%;
  background: hsl(var(--chart-5) / 0.1);
  border-radius: 50%;
  filter: blur(60px);
}

.hero-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

/* Badge like React */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: hsl(var(--primary) / 0.1);
  border: 1px solid hsl(var(--primary) / 0.3);
  color: hsl(var(--primary));
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.hero-badge svg {
  width: 14px;
  height: 14px;
}

/* Hero Title - Gradient text like React */
.hero-title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.1;
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
}

.hero-title-line1 {
  background: linear-gradient(to right, hsl(var(--foreground)), hsl(var(--foreground)), hsl(var(--muted-foreground)));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title-line2 {
  background: linear-gradient(to right, hsl(var(--primary)), hsl(var(--accent)), hsl(var(--chart-5)));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

/* Trust Indicators */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: hsl(var(--card) / 0.5);
  backdrop-filter: blur(8px);
  border: 1px solid hsl(var(--border) / 0.3);
  border-radius: 0.5rem;
}

.trust-badge-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
}

.trust-badge-label {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

.trust-badge-value {
  font-weight: 600;
  font-size: 0.875rem;
}

/* Supported Networks Preview */
.networks-preview {
  display: flex;
  justify-content: center;
}

.networks-preview-inner {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  background: hsl(var(--card) / 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid hsl(var(--border) / 0.5);
  border-radius: 9999px;
}

.networks-preview-label {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.networks-preview-icons {
  display: flex;
  align-items: center;
}

.network-preview-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: hsl(var(--background));
  border: 1px solid hsl(var(--border) / 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: -8px;
  position: relative;
  overflow: hidden;
}

.network-preview-icon:first-child {
  margin-left: 0;
}

.network-preview-icon img {
  width: 18px;
  height: 18px;
}

.network-preview-more {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: hsl(var(--primary) / 0.1);
  border: 1px solid hsl(var(--primary) / 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: -8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: hsl(var(--primary));
}

/* ===== SWAP SECTION ===== */
.swap-section {
  position: relative;
  padding: 2rem 0 3rem;
}

.swap-section-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, hsl(var(--primary) / 0.05), transparent);
  pointer-events: none;
}

/* Tabs */
.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem;
  background: hsl(var(--muted) / 0.5);
  padding: 0.25rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}

.tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  background: transparent;
  border: none;
  border-radius: calc(var(--radius) - 2px);
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  transition: all 0.2s;
}

.tab svg {
  width: 16px;
  height: 16px;
}

.tab.active {
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.tab:hover:not(.active) {
  color: hsl(var(--foreground));
}

/* ===== SWAP CARD ===== */
.swap-card {
  max-width: 560px;
  margin: 0 auto;
  background: hsl(var(--card) / 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid hsl(var(--border) / 0.5);
  border-radius: 0.75rem;
  overflow: visible;
}

.card-content {
  padding: 1.5rem;
}

/* Input Groups */
.input-group {
  margin-bottom: 0.5rem;
}

.input-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.5rem;
}

.input-row {
  display: flex;
  gap: 0.5rem;
}

.input-wrapper {
  flex: 1;
  position: relative;
}

.input {
  width: 100%;
  height: 3.5rem;
  padding: 0 1rem;
  background: hsl(var(--background) / 0.5);
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  font-size: 1.5rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  outline: none;
  transition: all 0.2s;
}

.input::placeholder {
  color: hsl(var(--muted-foreground));
  font-weight: 400;
}

.input:focus {
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 3px hsl(var(--ring) / 0.1);
}

.input-sm {
  height: 2.75rem;
  font-size: 1rem;
  font-weight: 400;
}

.input-readonly {
  background: hsl(var(--muted) / 0.3);
}

.usd-estimate {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-top: 0.25rem;
  padding-left: 0.25rem;
}

/* Currency Selector Button */
.currency-selector {
  height: 3.5rem;
  min-width: 140px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.75rem;
  background: hsl(var(--background) / 0.5);
  border: 1px solid hsl(var(--border) / 0.5);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
}

.currency-selector:hover {
  background: hsl(var(--muted));
}

.currency-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.currency-icon img {
  width: 100%;
  height: 100%;
}

.currency-symbol {
  font-weight: 600;
  font-size: 0.875rem;
}

.currency-selector svg.chevron {
  width: 16px;
  height: 16px;
  color: hsl(var(--muted-foreground));
  margin-left: auto;
}

/* Swap Direction Button */
.swap-direction {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0;
}

.swap-direction-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: hsl(var(--border) / 0.5);
}

.swap-direction-btn {
  position: relative;
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid hsl(var(--border) / 0.5);
  background: hsl(var(--card));
  color: hsl(var(--foreground));
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.swap-direction-btn:hover {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border-color: hsl(var(--primary));
}

/* Rate Info Box */
.rate-info-box {
  background: hsl(var(--muted) / 0.3);
  border-radius: var(--radius);
  padding: 1rem;
  margin: 1rem 0;
}

.rate-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  padding: 0.25rem 0;
}

.rate-info-label {
  color: hsl(var(--muted-foreground));
}

.rate-info-value {
  font-weight: 500;
}

.rate-info-value.primary {
  color: hsl(var(--primary));
}

/* Full Width Input */
.input-full {
  margin-top: 1rem;
}

.input-full .input-label {
  justify-content: flex-start;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Primary - Gradient like React */
.btn-primary {
  height: 3.5rem;
  font-size: 1rem;
  font-weight: 600;
  background: linear-gradient(to right, hsl(var(--primary)), hsl(var(--accent)), hsl(var(--chart-5)));
  color: white;
  border: none;
}

.btn-primary:hover:not(:disabled) {
  opacity: 0.9;
}

.btn-outline {
  background: transparent;
  border-color: hsl(var(--border));
  color: hsl(var(--foreground));
}

.btn-outline:hover:not(:disabled) {
  background: hsl(var(--muted));
}

.btn-ghost {
  background: transparent;
  border: none;
  color: hsl(var(--muted-foreground));
}

.btn-ghost:hover:not(:disabled) {
  background: hsl(var(--muted));
  color: hsl(var(--foreground));
}

.btn-sm {
  height: 2.25rem;
  padding: 0 0.75rem;
  font-size: 0.8125rem;
}

.btn-icon {
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
}

.btn-block {
  width: 100%;
}

.mt-4 { margin-top: 1rem; }

/* Loading Spinner */
.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ===== NETWORK MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  max-width: 448px;
  width: 100%;
  max-height: 80vh;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  animation: modal-in 0.2s ease-out;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid hsl(var(--border));
}

.modal-title {
  font-size: 1.125rem;
  font-weight: 600;
}

.modal-close {
  background: transparent;
  border: none;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  transition: color 0.2s;
}

.modal-close:hover {
  color: hsl(var(--foreground));
}

.modal-body {
  padding: 1rem 1.5rem 1.5rem;
  overflow-y: auto;
  max-height: calc(80vh - 65px);
}

.network-search {
  width: 100%;
  padding: 0.625rem 1rem;
  background: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  color: hsl(var(--foreground));
  font-size: 0.875rem;
  margin-bottom: 1rem;
  transition: all 0.2s;
}

.network-search:focus {
  outline: none;
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 3px hsl(var(--ring) / 0.1);
}

/* Network Grid - 2 columns like React */
.network-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.network-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
  width: 100%;
}

.network-item:hover {
  background: hsl(var(--primary) / 0.1);
  border-color: hsl(var(--primary) / 0.5);
}

.network-item.selected {
  background: hsl(var(--primary) / 0.15);
  border-color: hsl(var(--primary) / 0.5);
}

.network-item:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.network-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  background: hsl(var(--muted));
}

.network-icon img {
  width: 100%;
  height: 100%;
}

.network-details {
  flex: 1;
  min-width: 0;
}

.network-symbol {
  font-weight: 600;
  font-size: 0.875rem;
}

.network-name {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

/* ===== TRANSACTION TRACKER ===== */
.tracker-form {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tracker-input {
  flex: 1;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.status-pending {
  background: hsl(var(--warning) / 0.15);
  color: hsl(var(--warning));
}

.status-confirming,
.status-processing {
  background: hsl(var(--primary) / 0.15);
  color: hsl(var(--primary));
}

.status-completed {
  background: hsl(var(--success) / 0.15);
  color: hsl(var(--success));
}

.status-failed {
  background: hsl(var(--destructive) / 0.15);
  color: hsl(var(--destructive));
}

/* Transaction Details */
.tx-details {
  background: hsl(var(--muted) / 0.3);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.tx-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.tx-id {
  font-family: monospace;
  font-size: 1.25rem;
  font-weight: 600;
}

.tx-pair {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.tx-amount {
  text-align: center;
}

.tx-amount-value {
  font-size: 1.25rem;
  font-weight: 600;
}

.tx-amount-label {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  margin-top: 0.25rem;
}

.tx-arrow {
  color: hsl(var(--primary));
}

.tx-info-grid {
  display: grid;
  gap: 1rem;
}

.tx-info-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.tx-info-label {
  font-size: 0.6875rem;
  color: hsl(var(--muted-foreground));
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tx-info-value {
  font-size: 0.875rem;
  font-family: monospace;
  word-break: break-all;
}

/* Deposit Box */
.deposit-box {
  background: hsl(var(--primary) / 0.05);
  border: 1px dashed hsl(var(--primary) / 0.3);
  border-radius: var(--radius);
  padding: 1rem;
  margin-top: 1.5rem;
}

.deposit-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--primary));
  margin-bottom: 0.75rem;
}

.deposit-address {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: hsl(var(--background));
  padding: 0.75rem;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
}

.deposit-address code {
  flex: 1;
  font-family: monospace;
  font-size: 0.75rem;
  word-break: break-all;
}

.copy-btn {
  background: hsl(var(--muted));
  border: none;
  border-radius: calc(var(--radius) - 2px);
  padding: 0.5rem;
  cursor: pointer;
  color: hsl(var(--muted-foreground));
  transition: all 0.2s;
  flex-shrink: 0;
}

.copy-btn:hover {
  background: hsl(var(--border));
  color: hsl(var(--foreground));
}

.copy-btn.copied {
  color: hsl(var(--success));
  background: hsl(var(--success) / 0.15);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: hsl(var(--muted-foreground));
}

.empty-state svg {
  margin: 0 auto 1rem;
  opacity: 0.5;
}

.empty-state-title {
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}

/* ===== FEATURES SECTION ===== */
.features {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.section-description {
  color: hsl(var(--muted-foreground));
  font-size: 1.125rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all 0.2s;
}

.feature-card:hover {
  border-color: hsl(var(--primary) / 0.3);
  transform: translateY(-2px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: hsl(var(--primary) / 0.1);
  border-radius: 0.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--primary));
  margin-bottom: 1rem;
}

.feature-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-description {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
}

/* ===== FAQ SECTION ===== */
.faq {
  padding: 5rem 0;
  background: hsl(var(--muted) / 0.1);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
  overflow: hidden;
  background: hsl(var(--card));
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 0.9375rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  transition: background 0.2s;
}

.faq-question:hover {
  background: hsl(var(--muted) / 0.5);
}

.faq-icon {
  color: hsl(var(--primary));
  transition: transform 0.2s;
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 1.25rem 1rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  display: block;
}

/* ===== HISTORY ===== */
.history-filters {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.filter-label {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

.filter-select {
  padding: 0.5rem 0.75rem;
  background: hsl(var(--muted));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  color: hsl(var(--foreground));
  font-size: 0.875rem;
  cursor: pointer;
}

.filter-select:focus {
  outline: none;
  border-color: hsl(var(--ring));
}

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

.history-table th,
.history-table td {
  padding: 0.875rem 1rem;
  text-align: left;
  border-bottom: 1px solid hsl(var(--border));
}

.history-table th {
  font-size: 0.75rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  text-transform: uppercase;
  letter-spacing: 0.025em;
  background: hsl(var(--muted) / 0.3);
}

.history-table tr:hover td {
  background: hsl(var(--muted) / 0.3);
}

.history-empty {
  text-align: center;
  padding: 3rem 2rem;
  color: hsl(var(--muted-foreground));
}

/* History Cards (Mobile) */
.history-cards {
  display: none;
  flex-direction: column;
  gap: 1rem;
}

.history-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1rem;
}

/* ===== FOOTER ===== */
.footer {
  background: hsl(var(--card));
  border-top: 1px solid hsl(var(--border));
  padding: 3rem 0 1.5rem;
  margin-top: auto;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: hsl(var(--primary));
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid hsl(var(--border));
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
}

/* ===== TOAST ===== */
.toast-container {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 360px;
  width: 100%;
  pointer-events: none;
}

.toast {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 0.875rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: toast-in 0.3s ease-out;
  pointer-events: auto;
}

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

.toast-success { border-left: 3px solid hsl(var(--success)); }
.toast-error { border-left: 3px solid hsl(var(--destructive)); }
.toast-warning { border-left: 3px solid hsl(var(--warning)); }
.toast-info { border-left: 3px solid hsl(var(--primary)); }

.toast-message {
  flex: 1;
  font-size: 0.875rem;
}

.toast-close {
  background: transparent;
  border: none;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  padding: 0.25rem;
}

/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-muted { color: hsl(var(--muted-foreground)); }
.font-mono { font-family: monospace; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero {
    padding: 2.5rem 0 3rem;
  }
  
  .trust-badges {
    gap: 0.5rem;
  }
  
  .trust-badge {
    padding: 0.5rem 0.75rem;
  }
  
  .trust-badge-icon {
    width: 32px;
    height: 32px;
  }
  
  .swap-card {
    border-radius: 0.5rem;
  }
  
  .card-content {
    padding: 1rem;
  }
  
  .input {
    height: 3rem;
    font-size: 1.25rem;
  }
  
  .currency-selector {
    height: 3rem;
    min-width: 120px;
  }
  
  .btn-primary {
    height: 3rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .history-table {
    display: none;
  }
  
  .history-cards {
    display: flex;
  }
  
  .network-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .header-content {
    flex-wrap: wrap;
    height: auto;
    padding: 0.75rem 0;
  }
  
  .nav {
    order: 3;
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
  }
  
  .logo span {
    display: none;
  }
  
  .input-row {
    flex-direction: column;
  }
  
  .currency-selector {
    width: 100%;
    justify-content: space-between;
  }
  
  .networks-preview-inner {
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
  }
  
  .tx-pair {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .tx-arrow {
    transform: rotate(90deg);
  }
}

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