@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #1fc7d4;
  --primary-hover: #31d0dd;
  --secondary: #7645d9;
  --accent: #ed4b9e;
  --success: #31d0aa;
  --warning: #ffb237;
  --error: #ed4b9e;
  --text: #280d5f;
  --text-light: #7a6eaa;
  --text-white: #ffffff;
  --bg: #faf9fa;
  --bg-alt: #ffffff;
  --card-bg: #ffffff;
  --card-shadow: 0px 20px 50px -20px rgba(25, 19, 38, 0.4), 0px 8px 12px rgba(25, 19, 38, 0.15);
  --border: #e7e3eb;
  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --gradient-accent: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
  --radius: 28px;
  --radius-sm: 16px;
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --glow: 0 0 30px rgba(118, 69, 217, 0.3);
  --glow-primary: 0 0 30px rgba(31, 199, 212, 0.3);
}

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

body {
  font-family: 'Kanit', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, var(--bg) 0%, #f5f3ff 100%);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  font-weight: 400;
  min-height: 100vh;
}

.background-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
  overflow: hidden;
  background: linear-gradient(45deg, rgba(118, 69, 217, 0.05) 0%, rgba(31, 199, 212, 0.05) 50%, rgba(237, 75, 158, 0.05) 100%);
}

.particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.7;
  animation: float 25s infinite ease-in-out;
  filter: blur(20px);
  transform-origin: center;
}

.p1 {
  width: 250px;
  height: 250px;
  top: 10%;
  left: 5%;
  background: rgba(118, 69, 217, 0.2);
  animation-duration: 35s;
}

.p2 {
  width: 300px;
  height: 300px;
  top: 60%;
  right: 5%;
  background: rgba(31, 199, 212, 0.15);
  animation-duration: 40s;
  animation-delay: -8s;
}

.p3 {
  width: 180px;
  height: 180px;
  bottom: 15%;
  left: 15%;
  background: rgba(237, 75, 158, 0.15);
  animation-duration: 30s;
  animation-delay: -15s;
}

.p4 {
  width: 220px;
  height: 220px;
  top: 20%;
  right: 20%;
  background: rgba(255, 178, 55, 0.15);
  animation-duration: 45s;
  animation-delay: -20s;
}

.p5 {
  width: 150px;
  height: 150px;
  bottom: 25%;
  right: 25%;
  background: rgba(49, 208, 170, 0.15);
  animation-duration: 50s;
  animation-delay: -30s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg) scale(1);
    opacity: 0.5;
  }
  25% {
    transform: translateY(-50px) rotate(90deg) scale(1.15);
    opacity: 0.8;
  }
  50% {
    transform: translateY(0) rotate(180deg) scale(1);
    opacity: 0.5;
  }
  75% {
    transform: translateY(50px) rotate(270deg) scale(1.15);
    opacity: 0.8;
  }
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 40px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(25px) saturate(180%);
  box-shadow: 0 6px 40px rgba(0, 0, 0, 0.12);
}

.nav-brand .logo {
  font-size: 32px;
  font-weight: 800;
  color: var(--secondary);
  display: flex;
  align-items: center;
  text-shadow: 0 4px 8px rgba(0,0,0,0.12);
  letter-spacing: -0.5px;
}

.nav-brand .logo span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 4px 15px rgba(118, 69, 217, 0.4);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 4px;
  background: var(--gradient-primary);
  transition: var(--transition);
  transform: translateX(-50%);
  border-radius: 10px;
}

.nav-link::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: 0.6s;
}

.nav-link:hover::after {
  left: 100%;
}

.nav-link:hover::before {
  width: 90%;
}

.nav-link:hover {
  color: var(--secondary);
  background-color: rgba(118, 69, 217, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(118, 69, 217, 0.15);
}

.nav-widgets {
  display: flex;
  align-items: center;
  gap: 20px;
}

.network-switcher {
  position: relative;
}

.network-status {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  background-color: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.network-status:hover {
  border-color: var(--primary);
  box-shadow: 0 6px 18px rgba(31, 199, 212, 0.2);
  transform: translateY(-3px);
}

.network-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-shadow: 0 0 12px currentColor;
  position: relative;
}

.network-indicator.connected {
  background-color: var(--success);
}

.network-indicator.disconnected {
  background-color: var(--error);
}

.network-indicator::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.2;
}

.network-name {
  font-weight: 700;
  font-size: 15px;
}

.network-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  width: 280px;
  background-color: var(--bg-alt);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--card-shadow);
  z-index: 10;
  display: none;
  margin-top: 16px;
  backdrop-filter: blur(15px);
  transform-origin: top right;
}

.network-dropdown.active {
  display: block;
  animation: slideDown 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-15px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.network-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.network-option::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: 0.6s;
}

.network-option:hover::before {
  left: 100%;
}

.network-option:hover {
  background-color: rgba(118, 69, 217, 0.1);
  transform: translateX(8px);
}

.network-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.network-badge {
  background: var(--gradient-primary);
  color: white;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 16px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(118, 69, 217, 0.3);
}

.network-action {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  transition: var(--transition);
}

.network-action:hover {
  text-decoration: underline;
  transform: scale(1.08);
}

.connect-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 6px 20px rgba(118, 69, 217, 0.4);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.5px;
}

.connect-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: 0.6s;
}

.connect-btn:hover::before {
  left: 100%;
}

.connect-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(118, 69, 217, 0.5);
}

.wallet-info {
  display: none;
  align-items: center;
  gap: 16px;
  padding: 12px 22px;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.wallet-info::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: 0.6s;
}

.wallet-info:hover::before {
  left: 100%;
}

.wallet-info:hover {
  border-color: var(--primary);
  box-shadow: 0 6px 18px rgba(31, 199, 212, 0.2);
  transform: translateY(-2px);
}

.wallet-address {
  font-size: 15px;
  font-weight: 700;
}

.dex-container {
  display: flex;
  justify-content: center;
  align-items: top;
  padding: 40px;
  min-height: 50%;
}

.dex-card {
  width: 100%;
  max-width: 580px;
  background-color: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: var(--transition);
  position: relative;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.dex-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--gradient-primary);
  opacity: 0.8;
}

.dex-card::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, rgba(255,255,255,0.6), rgba(255,255,255,0.2), rgba(255,255,255,0.6));
  border-radius: var(--radius);
  z-index: -1;
  opacity: 0.7;
}

.dex-card:hover {
  transform: translateY(-8px) rotateX(3deg);
  box-shadow: 0 25px 60px rgba(25, 19, 38, 0.25);
}

.card-header {
  padding: 24px 32px 0;
}

.card-tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.card-tabs::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: none;
  padding: 16px 24px;
  font-size: 18px;
  font-weight: 800;
  color: var(--text-light);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  letter-spacing: 0.5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.tab-btn.active {
  color: var(--secondary);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--gradient-primary);
  border-radius: 5px 5px 0 0;
}

.tab-btn:hover {
  color: var(--secondary);
  transform: translateY(-3px);
}

.card-content {
  padding: 32px;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.swap-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.input-card {
  background-color: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.input-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0;
  transition: var(--transition);
}

.input-card:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(31, 199, 212, 0.25), var(--glow-primary);
  transform: translateY(-3px);
}

.input-card:focus-within::before {
  opacity: 1;
}

.input-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 16px;
  font-weight: 700;
}

.balance {
  font-size: 14px;
  color: var(--text-light);
  font-weight: 600;
}

.input-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.input-body input {
  flex: 1;
  background: none;
  border: none;
  font-size: 32px;
  font-weight: 800;
  color: var(--text);
  outline: none;
  width: 100%;
  text-shadow: 0 3px 6px rgba(0,0,0,0.08);
  letter-spacing: -0.5px;
}

.input-body input::placeholder {
  color: var(--text-light);
}

.token-selector {
  display: flex;
  align-items: center;
  gap: 12px;
}

.selected-token {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background-color: var(--bg-alt);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  min-width: 160px;
  position: relative;
  transition: var(--transition);
  cursor: pointer;
  overflow: hidden;
}

.selected-token::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: 0.6s;
}

.selected-token:hover::before {
  left: 100%;
}

.selected-token:hover {
  border-color: var(--primary);
  box-shadow: 0 6px 18px rgba(31, 199, 212, 0.2);
  transform: translateY(-2px);
}

.selected-token img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.token-dropdown {
  appearance: none;
  background: none;
  border: none;
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  outline: none;
  cursor: pointer;
  padding-right: 24px;
  width: 100%;
}

.token-dropdown option {
  background-color: var(--bg-alt);
  color: var(--text);
}

.metamask-add {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-light);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.metamask-add::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: 0.6s;
}

.metamask-add:hover::before {
  left: 100%;
}

.metamask-add:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: rotate(90deg) scale(1.15);
  box-shadow: 0 6px 15px rgba(31, 199, 212, 0.25);
}

.swap-divider {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  margin: 16px 0;
}

.swap-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--gradient-primary);
  color: white;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
  z-index: 2;
  box-shadow: 0 6px 16px rgba(118, 69, 217, 0.4);
  position: relative;
  overflow: hidden;
}

.swap-arrow::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: 0.6s;
}

.swap-arrow:hover::before {
  left: 100%;
}

.swap-arrow:hover {
  transform: rotate(180deg) scale(1.15);
  box-shadow: 0 8px 20px rgba(118, 69, 217, 0.5);
}

.swap-settings {
  background-color: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.swap-settings::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0;
  transition: var(--transition);
}

.swap-settings:hover::before {
  opacity: 1;
}

.swap-settings:hover {
  border-color: var(--primary);
  box-shadow: 0 6px 18px rgba(31, 199, 212, 0.15);
  transform: translateY(-2px);
}

.setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  font-weight: 600;
}

.slippage-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.slippage-control input {
  width: 80px;
  padding: 8px 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: right;
  font-size: 16px;
  font-weight: 700;
  transition: var(--transition);
}

.slippage-control input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(31, 199, 212, 0.25);
}

.action-button {
  width: 100%;
  padding: 20px;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(118, 69, 217, 0.5);
  text-shadow: 0 2px 4px rgba(0,0,0,0.25);
  letter-spacing: 0.5px;
}

.action-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: 0.7s;
}

.action-button:hover::before {
  left: 100%;
}

.action-button:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(118, 69, 217, 0.6);
}

.action-button.remove {
  background: var(--gradient-accent);
  box-shadow: 0 8px 25px rgba(237, 75, 158, 0.5);
}

.action-button.remove:hover {
  box-shadow: 0 12px 35px rgba(237, 75, 158, 0.6);
}

.liquidity-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.full-width {
  width: 100%;
}

.liquidity-forms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-card {
  background-color: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.form-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0;
  transition: var(--transition);
}

.form-card:hover::before {
  opacity: 1;
}

.form-card:hover {
  border-color: var(--primary);
  box-shadow: 0 10px 28px rgba(31, 199, 212, 0.2);
  transform: translateY(-4px);
}

.form-card h3 {
  margin-bottom: 24px;
  font-size: 22px;
  color: var(--text);
  font-weight: 800;
  text-shadow: 0 3px 6px rgba(0,0,0,0.08);
}

.input-group {
  margin-bottom: 24px;
}

.input-group label {
  display: block;
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 700;
}

.input-group input {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 18px;
  transition: var(--transition);
  font-weight: 600;
}

.input-group input:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 4px rgba(31, 199, 212, 0.25);
}

.create-pool-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pools-container h2 {
  margin-bottom: 24px;
  font-size: 26px;
  color: var(--text);
  font-weight: 800;
  text-shadow: 0 3px 6px rgba(0,0,0,0.08);
}

.pools-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.pool-item {
  background-color: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.pool-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0;
  transition: var(--transition);
}

.pool-item:hover::before {
  opacity: 1;
}

.pool-item:hover {
  border-color: var(--primary);
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(25, 19, 38, 0.2);
}

.pool-item h3 {
  font-size: 22px;
  margin-bottom: 16px;
  color: var(--secondary);
  font-weight: 800;
}

.pool-item p {
  margin-bottom: 12px;
  font-size: 16px;
  color: var(--text);
  font-weight: 600;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 40px;
  text-align: center;
  color: var(--text-light);
}

.empty-state i {
  font-size: 64px;
  margin-bottom: 24px;
  opacity: 0.8;
}

.notification-toast {
  position: fixed;
  bottom: 40px;
  right: 40px;
  display: flex;
  align-items: center;
  gap: 16px;
  background-color: var(--bg-alt);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--card-shadow);
  transform: translateY(150px) scale(0.9);
  opacity: 0;
  transition: var(--transition);
  z-index: 10000;
  backdrop-filter: blur(10px);
}

.notification-toast.visible {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.toast-icon {
  font-size: 28px;
  color: var(--success);
}

.toast-content {
  font-size: 16px;
  font-weight: 600;
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(8px);
}

.loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  color: white;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 5px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--primary);
  animation: spin 1s linear infinite;
  box-shadow: 0 0 25px rgba(31, 199, 212, 0.5);
}

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

.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--bg-alt);
  border-top: 2px solid var(--border);
  z-index: 90;
  padding: 12px 0;
  backdrop-filter: blur(20px);
  box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .mobile-nav {
    display: flex;
    justify-content: space-around;
  }
  
  .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 13px;
    color: var(--text-light);
    cursor: pointer;
    padding: 6px 10px;
    transition: var(--transition);
    border-radius: var(--radius-sm);
  }
  
  .nav-item.active {
    color: var(--secondary);
    background: rgba(118, 69, 217, 0.1);
    transform: translateY(-5px);
  }
  
  .nav-item i {
    font-size: 20px;
    margin-bottom: 6px;
    transition: var(--transition);
  }
  
  .nav-item.active i {
    transform: scale(1.2);
  }
}

.network-info {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 6px;
}

.liquidity-container .selected-token {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background-color: var(--bg-alt);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  min-width: 140px;
  position: relative;
  transition: var(--transition);
}

.liquidity-container .selected-token:hover {
  border-color: var(--primary);
  box-shadow: 0 6px 18px rgba(31, 199, 212, 0.2);
  transform: translateY(-2px);
}

.liquidity-container .token-dropdown {
  appearance: none;
  background: none;
  border: none;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  outline: none;
  cursor: pointer;
  padding-right: 20px;
  width: 100%;
}

@media (max-width: 768px) {
  .main-nav {
    flex-direction: column;
    gap: 24px;
    padding: 20px;
  }
  
  .nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 12px;
  }
  
  .nav-link {
    padding: 10px 16px;
    font-size: 16px;
  }
  
  .nav-widgets {
    width: 100%;
    justify-content: space-between;
  }
  
  .dex-container {
    padding: 24px;
  }
  
  .liquidity-forms {
    grid-template-columns: 1fr;
  }
  
  .card-tabs {
    overflow-x: auto;
    white-space: nowrap;
  }
  
  .tab-btn {
    padding: 12px 16px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .input-body {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .token-selector {
    width: 100%;
    justify-content: space-between;
  }
  
  .selected-token {
    min-width: 140px;
  }
  
  .network-dropdown {
    width: 100vw;
    right: -24px;
  }
  
  .main-nav {
    padding: 16px;
  }
  
  .dex-container {
    padding: 16px;
  }
  
  .card-content {
    padding: 24px;
  }
}