/* Cool: deep black + warm accent (screenshot match) */
.cool-bg,
.synapse-liquid-bg {
  background: radial-gradient(800px 400px at 15% -10%, rgba(var(--primary-rgb, 255, 255, 255), 0.07), transparent 60%),
    radial-gradient(900px 500px at 85% -15%, rgba(var(--primary-rgb, 255, 255, 255), 0.05), transparent 60%),
    #050505;
}

.cool-page {
  color: var(--text, #f5f5f5);
  position: relative;
  overflow-x: hidden;
}

.cool-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.cool-main {
  flex: 1;
  position: relative;
}

.cool-ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.25;
}

.cool-dot-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.85;
}

.cool-orb {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.4;
  animation: cool-float 22s ease-in-out infinite;
}

.cool-orb--one {
  top: -140px;
  left: -120px;
  background: radial-gradient(circle at 30% 30%, rgba(var(--primary-rgb, 255, 255, 255), 0.5), transparent 60%);
}

.cool-orb--two {
  top: 10%;
  right: -180px;
  width: 640px;
  height: 640px;
  animation-delay: -6s;
  background: radial-gradient(circle at 60% 40%, rgba(var(--primary-rgb, 255, 255, 255), 0.45), transparent 60%);
}

.cool-orb--three {
  bottom: -220px;
  left: 40%;
  width: 520px;
  height: 520px;
  animation-delay: -12s;
  background: radial-gradient(circle at 40% 40%, rgba(110, 224, 255, 0.35), transparent 60%);
}

.cool-grid {
  position: absolute;
  inset: -30% -10% 0 -10%;
  background-image: linear-gradient(rgba(var(--primary-rgb, 255, 255, 255), 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--primary-rgb, 255, 255, 255), 0.03) 1px, transparent 1px);
  background-size: 120px 120px;
  opacity: 0.2;
  mask-image: radial-gradient(circle at 50% 0%, rgba(0, 0, 0, 1), transparent 70%);
  animation: cool-grid-sweep 28s linear infinite;
}

.cool-noise {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(120deg, rgba(255, 255, 255, 0.015), transparent 45%),
    linear-gradient(300deg, rgba(0, 0, 0, 0.18), transparent 40%);
  opacity: 0.3;
  mix-blend-mode: soft-light;
}

body.cool-bg header.backdrop-blur-md {
  background: rgba(31, 31, 31, 0.9);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.cool-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 8, 8, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
}

.cool-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--primary-rgb, 255, 255, 255), 0.35), transparent);
  opacity: 0.6;
}

.cool-header-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 120px at 10% 0%, rgba(var(--primary-rgb, 255, 255, 255), 0.12), transparent 65%),
    radial-gradient(400px 120px at 90% 0%, rgba(var(--primary-rgb, 255, 255, 255), 0.1), transparent 70%);
  pointer-events: none;
  opacity: 0.5;
}

.cool-brand {
  position: relative;
}

.cool-brand::after {
  content: "";
  position: absolute;
  inset: -12px -16px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(var(--primary-rgb, 255, 255, 255), 0.12), transparent 70%);
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: -1;
}

.cool-brand:hover::after {
  opacity: 1;
}

.cool-nav-link {
  position: relative;
  color: var(--text-muted, rgba(255, 255, 255, 0.68));
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}

.cool-nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.cool-nav-link:hover {
  color: var(--text, #fff);
}

.cool-nav-link:hover::after {
  transform: scaleX(1);
}

.cool-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: 8px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--primary);
  border: 1px solid rgba(var(--primary-rgb, 255, 255, 255), 0.25);
  background: rgba(var(--primary-rgb, 255, 255, 255), 0.06);
  box-shadow: 0 0 10px rgba(var(--primary-rgb, 255, 255, 255), 0.12);
}

.cool-cta-nav {
  position: relative;
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  color: #0f0f0f;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 10px 22px rgba(var(--primary-rgb, 255, 255, 255), 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.cool-cta-nav::after {
  content: "";
  position: absolute;
  top: -40%;
  left: -40%;
  width: 80%;
  height: 180%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  transform: translateX(-100%);
  animation: cool-sheen 2.8s ease-in-out infinite;
}

.cool-cta-nav:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(var(--primary-rgb, 255, 255, 255), 0.35);
}

.cool-mobile-menu {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cool-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text, #f5f5f5);
  font-size: 0.8rem;
  font-weight: 600;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.cool-pill-btn:hover {
  border-color: rgba(var(--primary-rgb, 255, 255, 255), 0.3);
  background: rgba(255, 255, 255, 0.07);
}

.cool-pill-icon {
  font-size: 0.85rem;
}

.synapse-grid {
  background-image: linear-gradient(rgba(var(--primary-rgb, 255, 255, 255), 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--primary-rgb, 255, 255, 255), 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
}

.synapse-glass {
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.synapse-glass-card {
  background: linear-gradient(160deg, rgba(24, 24, 24, 0.98), rgba(20, 20, 20, 0.98));
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
}

.synapse-glass-subtle {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(var(--primary-rgb, 255, 255, 255), 0.1);
  border-radius: 10px;
}

.synapse-input {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1rem;
  color: var(--text);
  transition: all 0.2s ease;
}

/* Big blocky inputs (cool layout) */
.cool-block-input {
  min-height: 3.5rem;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  border-width: 1px;
  font-size: 1rem;
}
.cool-amount-input {
  min-height: 4rem;
  padding: 1rem 1.25rem;
  font-size: 1.5rem;
  font-weight: 600;
}
.cool-step-btn {
  min-width: 3rem;
  background: rgba(0, 0, 0, 0.25);
  color: var(--primary);
  border: 1px solid rgba(var(--primary-rgb, 255, 255, 255), 0.3);
}
.cool-step-btn:hover {
  background: rgba(var(--primary-rgb, 255, 255, 255), 0.12) !important;
  border-color: rgba(var(--primary-rgb, 255, 255, 255), 0.5);
}

.cool-cta-btn {
  min-height: 3.5rem;
  border-radius: 8px;
}

.synapse-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(var(--primary-rgb, 255, 255, 255), 0.2);
  outline: none;
}

.synapse-gradient-btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: #0d0d0d;
  border: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.synapse-gradient-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.synapse-swap-btn {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #1a1a1a;
  border: none;
  border-radius: 9999px;
  width: 56px;
  height: 56px;
  transition: all 0.2s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.synapse-swap-btn svg {
  width: 1.5rem;
  height: 1.5rem;
  color: #1a1a1a;
}

.synapse-swap-btn:hover {
  transform: rotate(180deg);
  filter: brightness(1.1);
}

.synapse-rate-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
}

.synapse-rate-row:not(:last-child) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

@keyframes synapse-fade-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.synapse-fade-in {
  animation: synapse-fade-in 0.5s ease-out;
}

@keyframes synapse-slide-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.synapse-slide-up {
  animation: synapse-slide-up 0.6s ease-out;
}

/* Cool layout: custom dropdown overrides */
.custom-dropdown .dropdown-trigger {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 8px !important;
  color: var(--text) !important;
}

.custom-dropdown .dropdown-trigger:hover {
  border-color: rgba(var(--primary-rgb, 255, 255, 255), 0.3) !important;
}

.custom-dropdown .dropdown-menu {
  background: rgba(20, 20, 20, 0.98) !important;
  border: 1px solid rgba(var(--primary-rgb, 255, 255, 255), 0.15) !important;
  border-radius: 8px !important;
}

.custom-dropdown .dropdown-option:hover {
  background: rgba(var(--primary-rgb, 255, 255, 255), 0.12) !important;
}

.custom-dropdown .dropdown-option.selected {
  background: rgba(var(--primary-rgb, 255, 255, 255), 0.2) !important;
  color: var(--primary) !important;
}

/* Cool two-column index layout */
.cool-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .cool-hero-grid {
    grid-template-columns: 1fr 540px;
    gap: 3rem;
    min-height: calc(100vh - 180px);
  }
}

@media (min-width: 1280px) {
  .cool-hero-grid {
    grid-template-columns: 1fr 600px;
  }
}

.cool-stat-box {
  background: linear-gradient(160deg, rgba(22, 22, 22, 0.98), rgba(18, 18, 18, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  text-align: center;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.5);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  will-change: transform;
}

.cool-stat-box:hover {
  transform: translateY(-2px) scale(1.03);
  border-color: rgba(var(--primary-rgb, 255, 255, 255), 0.35);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.6),
    0 0 14px rgba(var(--primary-rgb, 255, 255, 255), 0.12);
  background: linear-gradient(160deg, rgba(30, 30, 30, 0.98), rgba(20, 20, 20, 0.98));
}

.cool-hero-title {
  font-size: clamp(2.6rem, 4vw, 4.6rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.cool-hero-subtitle {
  color: rgba(255, 255, 255, 0.7);
}

.cool-stat-grid .cool-stat-box {
  border-radius: 8px;
  background: linear-gradient(160deg, rgba(20, 20, 20, 0.98), rgba(16, 16, 16, 0.98));
}

.cool-exchange-card {
  border-radius: 10px;
}

.cool-exchange-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.cool-exchange-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cool-exchange-logo {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  overflow: hidden;
}

.cool-exchange-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cool-exchange-title {
  font-weight: 700;
  color: var(--text, #f5f5f5);
  font-size: 1.1rem;
}

.cool-exchange-subtitle {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.2rem;
}

.cool-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.cool-amount-input {
  font-size: 1.9rem;
}

.synapse-swap-btn {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: 1px solid rgba(var(--primary-rgb, 255, 255, 255), 0.35);
  color: #1a1a1a;
  border-radius: 9999px;
}

.synapse-swap-btn svg {
  color: #000;
}

.cool-feature-list svg {
  color: var(--primary);
  flex-shrink: 0;
}

/* Exchange card polish */
.synapse-glass-card.rounded-2xl {
  border-radius: 10px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.synapse-glass-card.rounded-xl {
  border-radius: 8px;
}

/* Amount column: spacing for MIN and USD */
.cool-amount-column {
  position: relative;
}
.cool-amount-column .exchange-field.exchange-field--with-limits {
  padding-bottom: 1.5rem;
}
.cool-amount-column .usd-amount,
.cool-amount-column .coin-limits {
  margin-top: 0.25rem;
}
.cool-amount-column .coin-limits-pill {
  font-size: 0.7rem;
  opacity: 0.9;
}

/* Quote Priority: inactive muted, selected gold */
.cool-sort-btn {
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.cool-sort-btn:not(.selected):not(.active) {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: var(--text);
}
.cool-sort-btn:not(.selected):not(.active):hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
}
.cool-sort-btn.selected,
.cool-sort-btn.active {
  color: #0f0f0f !important;
  background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
  border-color: rgba(var(--primary-rgb, 255, 255, 255), 0.6) !important;
  box-shadow: 0 0 0 1px rgba(var(--primary-rgb, 255, 255, 255), 0.45),
    0 10px 24px rgba(var(--primary-rgb, 255, 255, 255), 0.25);
}
.cool-sort-btn.from-current-primary {
  color: #0f0f0f !important;
  background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
  border-color: rgba(var(--primary-rgb, 255, 255, 255), 0.6) !important;
  box-shadow: 0 0 0 1px rgba(var(--primary-rgb, 255, 255, 255), 0.45),
    0 10px 24px rgba(var(--primary-rgb, 255, 255, 255), 0.25);
}

.cool-footer {
  background: rgba(8, 8, 8, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.cool-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px 120px at 20% 0%, rgba(var(--primary-rgb, 255, 255, 255), 0.12), transparent 65%),
    radial-gradient(320px 120px at 80% 0%, rgba(99, 217, 255, 0.1), transparent 70%);
  opacity: 0.9;
  pointer-events: none;
}

.cool-status-pill {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted, rgba(255, 255, 255, 0.7));
}

.cool-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px rgba(var(--primary-rgb, 255, 255, 255), 0.7);
  animation: cool-pulse 2s ease-in-out infinite;
}

@keyframes cool-float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, 30px, 0); }
}

@keyframes cool-grid-sweep {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 0 160px, 160px 0; }
}

@keyframes cool-sheen {
  0% { transform: translateX(-120%); }
  60%, 100% { transform: translateX(220%); }
}

@keyframes cool-pulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.4); opacity: 1; }
}

