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

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

body {
  font-family: 'Manrope', sans-serif;
  background: #131008;
  color: #e8dfc0;
  padding: 40px 20px;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse at 30% 0%,   rgba(245,172,55,0.10) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 100%, rgba(245,172,55,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 60% 50%,  rgba(40,28,8,0.8)    0%, transparent 70%);
}

/* Subtle hexagonal honeycomb — DAI/MakerDAO brand motif */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      30deg,
      transparent,
      transparent 36px,
      rgba(245,172,55,0.022) 36px,
      rgba(245,172,55,0.022) 37px
    ),
    repeating-linear-gradient(
      150deg,
      transparent,
      transparent 36px,
      rgba(245,172,55,0.022) 36px,
      rgba(245,172,55,0.022) 37px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 36px,
      rgba(245,172,55,0.015) 36px,
      rgba(245,172,55,0.015) 37px
    );
  pointer-events: none;
  z-index: 0;
}

main {
  width: 100%;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
}

/* Container */
.mix-container {
  width: 100%;
  max-width: 1000px;
  background: #1a1508;
  border: 1px solid rgba(245,172,55,0.18);
  border-radius: 16px;
  padding: 48px;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(245,172,55,0.06),
    0 24px 80px rgba(0,0,0,0.7),
    0 0 60px rgba(245,172,55,0.05);
}

/* Gold top bar */
.mix-container::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg,
    transparent 0%,
    #f5ac37 20%,
    #ffd166 50%,
    #f5ac37 80%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: gold-shimmer 5s ease-in-out infinite;
}

@keyframes gold-shimmer {
  0%, 100% { background-position: -100% 0; }
  50%       { background-position: 200% 0; }
}

/* Bottom-right warm glow */
.mix-container::after {
  content: '';
  position: absolute;
  bottom: -100px; right: -100px;
  width: 360px; height: 360px;
  background: radial-gradient(circle,
    rgba(245,172,55,0.07) 0%,
    transparent 70%
  );
  pointer-events: none;
  border-radius: 50%;
}

/* Header */
.mix-header {
  text-align: center;
  margin-bottom: 44px;
  position: relative;
  z-index: 1;
}

.mix-logo {
  width: 72px;
  height: 72px;
  display: block;
  margin: 0 auto 18px;
  filter:
    drop-shadow(0 0 12px rgba(245,172,55,0.6))
    drop-shadow(0 0 32px rgba(245,172,55,0.25));
}

.mix-title {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 28px;
  line-height: 1.3;
  letter-spacing: -0.6px;
  background: linear-gradient(135deg,
    #ffeaa0 0%,
    #f5ac37 40%,
    #e89520 70%,
    #ffd166 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Form */
.mix-form {
  width: 100%;
  position: relative;
  z-index: 1;
}

/* Exchange Panel */
.exchange-panel {
  display: flex;
  align-items: stretch;
  gap: 16px;
  margin-bottom: 32px;
  position: relative;
}

/* Panel */
.panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #110e04;
  border: 1px solid rgba(245,172,55,0.15);
  border-radius: 12px;
  overflow: visible;
  transition: all 0.25s;
  position: relative;
}

/* Gold top line on hover */
.panel::before {
  content: '';
  position: absolute;
  top: 0; left: 15%; right: 15%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(245,172,55,0.6),
    transparent
  );
  opacity: 0;
  transition: opacity 0.25s;
  border-radius: 1px;
}

.panel:hover {
  border-color: rgba(245,172,55,0.38);
  box-shadow:
    0 0 24px rgba(245,172,55,0.08),
    inset 0 0 24px rgba(245,172,55,0.02);
}

.panel:hover::before { opacity: 1; }

/* Panel Label */
.panel-label {
  padding: 13px 20px 8px;
  font-size: 10px;
  font-weight: 700;
  color: rgba(245,172,55,0.5);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  border-bottom: 1px solid rgba(245,172,55,0.08);
}

/* Panel Header */
.panel-header {
  padding: 18px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

/* Amount Input */
.from-panel .panel-header input {
  width: 100%;
  max-width: 280px;
  padding: 8px 12px;
  font-size: 40px;
  font-weight: 800;
  text-align: right;
  border: none;
  background: transparent;
  color: #f5ac37;
  outline: none;
  font-family: 'Manrope', sans-serif;
  letter-spacing: -2px;
  text-shadow:
    0 0 14px rgba(245,172,55,0.5),
    0 0 40px rgba(245,172,55,0.2);
  caret-color: #f5ac37;
}

.from-panel .panel-header input::placeholder {
  color: rgba(245,172,55,0.14);
  text-shadow: none;
}

/* Receive Amount */
.to-panel .panel-header .receive-big {
  width: 100%;
  max-width: 280px;
  padding: 8px 12px;
  font-size: 40px;
  font-weight: 800;
  text-align: right;
  color: #e8dfc0;
  background: transparent;
  font-family: 'Manrope', sans-serif;
  letter-spacing: -2px;
}

/* Select Area */
.panel-select {
  padding: 10px 16px 16px;
}

/* Custom Select */
.custom-select {
  position: relative;
  width: 100%;
  z-index: 100;
}

.select-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid rgba(245,172,55,0.18);
  border-radius: 8px;
  background: rgba(245,172,55,0.04);
  cursor: pointer;
  color: #e8dfc0;
  transition: all 0.2s;
}

.select-trigger:hover {
  border-color: rgba(245,172,55,0.45);
  background: rgba(245,172,55,0.08);
  box-shadow: 0 0 14px rgba(245,172,55,0.08);
}

.select-logo {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(245,172,55,0.25);
}

.select-value {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #e8dfc0;
}

.arrow {
  font-size: 10px;
  color: #f5ac37;
  transition: transform 0.2s;
}

.custom-select.active .arrow {
  transform: rotate(180deg);
}

/* Options Dropdown */
.options {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  background: #1a1508;
  padding: 0;
  border: 1px solid rgba(245,172,55,0.25);
  border-radius: 10px;
  max-height: 300px;
  overflow-y: auto;
  display: none;
  z-index: 10000 !important;
  box-shadow:
    0 20px 60px rgba(0,0,0,0.85),
    0 0 24px rgba(245,172,55,0.08);
}

.options::-webkit-scrollbar { width: 5px; }
.options::-webkit-scrollbar-track { background: #1a1508; }
.options::-webkit-scrollbar-thumb { background: rgba(245,172,55,0.3); border-radius: 4px; }
.options::-webkit-scrollbar-thumb:hover { background: #f5ac37; }

/* Search Input */
.search-input {
  position: sticky;
  top: 0;
  width: 100%;
  height: 46px;
  padding: 12px 16px;
  border: none;
  border-bottom: 1px solid rgba(245,172,55,0.1);
  background: rgba(245,172,55,0.05);
  color: #e8dfc0;
  font-size: 13px;
  outline: none;
  border-radius: 10px 10px 0 0;
  z-index: 2;
  font-family: 'Manrope', sans-serif;
  caret-color: #f5ac37;
}

.search-input::placeholder { color: rgba(245,172,55,0.2); }

/* Option Group */
.opt-group {
  padding: 9px 16px;
  font-size: 10px;
  font-weight: 700;
  color: #f5ac37;
  text-transform: uppercase;
  letter-spacing: 2px;
  background: #1a1508;
  position: sticky;
  top: 46px;
  z-index: 1;
}

/* Option Item */
.option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  cursor: pointer;
  color: #7a6840;
  transition: all 0.15s ease;
  border: none;
  box-shadow: inset 0 -1px 0 rgba(245,172,55,0.06);
}

.option:last-child { box-shadow: none; }

.option:hover {
  background: rgba(245,172,55,0.07);
  color: #e8dfc0;
}

.option.selected {
  background: rgba(245,172,55,0.1);
  color: #f5ac37;
  box-shadow: inset 3px 0 0 #f5ac37, inset 0 -1px 0 rgba(245,172,55,0.06);
}

.option img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
}

.option span {
  white-space: nowrap;
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Swap Button */
.mix-swap {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #1a1508;
  border: 1.5px solid rgba(245,172,55,0.35);
  color: #f5ac37;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow:
    0 0 18px rgba(245,172,55,0.15),
    inset 0 0 8px rgba(245,172,55,0.04);
  text-shadow: 0 0 8px rgba(245,172,55,0.5);
}

.mix-swap:hover {
  background: #f5ac37;
  border-color: #f5ac37;
  color: #130e04;
  transform: translate(-50%, -50%) rotate(180deg) scale(1.08);
  box-shadow:
    0 0 28px rgba(245,172,55,0.6),
    0 0 60px rgba(245,172,55,0.2);
  text-shadow: none;
}

/* Wallet Input */
.mix-form label {
  display: block;
  margin: 22px 0 8px;
  font-size: 10px;
  font-weight: 700;
  color: rgba(245,172,55,0.5);
  text-transform: uppercase;
  letter-spacing: 2.5px;
}

.mix-form input[type="text"] {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid rgba(245,172,55,0.18);
  border-radius: 10px;
  background: #110e04;
  color: #e8dfc0;
  font-size: 14px;
  outline: none;
  transition: all 0.2s;
  font-family: 'JetBrains Mono', monospace;
  caret-color: #f5ac37;
}

.mix-form input[type="text"]:focus {
  border-color: rgba(245,172,55,0.5);
  background: #14100504;
  box-shadow:
    0 0 0 3px rgba(245,172,55,0.1),
    0 0 20px rgba(245,172,55,0.07);
}

.mix-form input[type="text"]::placeholder {
  color: rgba(245,172,55,0.18);
  font-family: 'Manrope', sans-serif;
}

/* Submit Button */
.mix-submit {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, #f5ac37 0%, #e89520 50%, #f5ac37 100%);
  background-size: 200% 100%;
  color: #130e04;
  border: none;
  padding: 18px 24px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-top: 28px;
  transition: all 0.3s;
  box-shadow:
    0 4px 24px rgba(245,172,55,0.4),
    0 1px 0 rgba(255,255,255,0.15) inset;
  font-family: 'Manrope', sans-serif;
  position: relative;
  overflow: hidden;
}

/* Gold coin shimmer */
.mix-submit::before {
  content: '';
  position: absolute;
  top: -50%; left: -60%;
  width: 35%; height: 200%;
  background: linear-gradient(105deg,
    transparent,
    rgba(255,255,255,0.22),
    transparent
  );
  transform: skewX(-15deg);
  transition: left 0.6s;
}

.mix-submit:hover::before { left: 140%; }

.mix-submit:hover {
  background-position: 100% 0;
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow:
    0 8px 36px rgba(245,172,55,0.55),
    0 0 60px rgba(245,172,55,0.15);
}

.mix-submit:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(245,172,55,0.3);
}

/* SEO Section */
.seo-section {
  max-width: 800px;
  margin: 40px auto 0;
  padding: 32px;
  background: #1a1508;
  border: 1px solid rgba(245,172,55,0.12);
  border-radius: 14px;
  color: #6a5830;
}

.seo-section h2 {
  font-size: 17px;
  font-weight: 700;
  margin: 22px 0 12px;
  color: #c89030;
  letter-spacing: -0.2px;
}

.seo-section h2:first-child { margin-top: 0; }
.seo-section p  { margin-bottom: 14px; line-height: 1.8; font-size: 14px; }
.seo-section ul { margin: 14px 0 14px 22px; }
.seo-section li { margin-bottom: 8px; font-size: 14px; line-height: 1.65; }

/* Info Block */
.info-block {
  max-width: 800px;
  margin: 16px auto 0;
  padding: 22px 32px;
  background: #1a1508;
  border: 1px solid rgba(245,172,55,0.12);
  border-radius: 14px;
  color: #e8dfc0;
}

.info-block .label {
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 10px;
  color: rgba(245,172,55,0.45);
  text-transform: uppercase;
  letter-spacing: 2.5px;
}

.info-block .value p { margin: 0; font-size: 14px; }

.info-block .value a {
  color: #f5ac37;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
}

.info-block .value a:hover {
  color: #ffd166;
  text-shadow: 0 0 12px rgba(245,172,55,0.4);
}

/* Loader */
.loader {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(245,172,55,0.15);
  border-top-color: #f5ac37;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  visibility: hidden;
  margin-left: 8px;
  vertical-align: middle;
}

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

/* Responsive */
@media (max-width: 768px) {
  .mix-container { padding: 28px 20px; }
  .mix-title { font-size: 22px; }

  .exchange-panel { flex-direction: column; gap: 0; position: relative; }
  .panel { border-radius: 12px; width: 100%; }
  .from-panel { z-index: 10; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
  .to-panel   { z-index: 5;  border-top-left-radius: 0;    border-top-right-radius: 0;    margin-top: -1px; }

  .from-panel .panel-header input,
  .to-panel .panel-header .receive-big { font-size: 30px; max-width: 100%; text-align: center; letter-spacing: -1px; }

  .mix-swap {
    position: relative; left: auto; top: auto; transform: none;
    margin: -22px auto; z-index: 20; order: 1;
    width: 44px; height: 44px; border-radius: 50%;
  }

  .from-panel { order: 0; }
  .to-panel   { order: 2; }

  .mix-submit { padding: 15px 20px; font-size: 14px; margin-top: 24px; }
  .seo-section, .info-block { padding: 22px 18px; margin-top: 28px; border-radius: 12px; }
  .seo-section h2 { font-size: 16px; }
  .seo-section p, .seo-section li { font-size: 13px; }
}

@media (max-width: 480px) {
  body { padding: 20px 12px; }
  .mix-container { padding: 22px 16px; border-radius: 14px; }
  .mix-logo { width: 58px; height: 58px; margin-bottom: 14px; }
  .mix-title { font-size: 20px; }
  .panel-label { padding: 11px 16px 6px; font-size: 9px; }
  .panel-header { padding: 14px; }
  .from-panel .panel-header input,
  .to-panel .panel-header .receive-big { font-size: 26px; }
  .panel-select { padding: 8px 14px 14px; }
  .select-trigger { padding: 10px 12px; }
  .mix-swap { width: 40px; height: 40px; margin: -20px auto; }
  .mix-form input[type="text"] { padding: 12px 14px; }
  .mix-submit { padding: 14px 18px; margin-top: 20px; }
}

/* Validation */
.wallet-error { color: #e05030; font-size: 12px; margin-top: 5px; display: none; }
.wallet-input.error { border-color: #e05030 !important; }
.wallet-validation-status { display: inline-block; margin-left: 8px; font-size: 14px; }
.wallet-validation-status.valid   { color: #50c878; }
.wallet-validation-status.invalid { color: #e05030; }
.amount-error { color: #e05030; font-size: 12px; margin-top: 5px; }
#amount.error { color: #e05030; }

/* ── Page-level H1 ─────────────────────────── */
.page-h1 {
  text-align: center;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: clamp(22px, 4vw, 34px);
  letter-spacing: -0.8px;
  line-height: 1.25;
  margin: 0 auto 32px;
  max-width: 780px;
  background: linear-gradient(135deg, #ffeaa0 0%, #f5ac37 45%, #e89520 75%, #ffd166 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── SEO section overrides / enhancements ── */
.seo-section {
  position: relative;
  overflow: hidden;
}

.seo-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(245,172,55,0.35), transparent);
}

.seo-section p {
  color: #8a7448;
}

.seo-section strong {
  color: #c89030;
  font-weight: 700;
}

/* ── Coin grid ──────────────────────────────── */
.coin-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 20px;
}

.coin-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px 5px 8px;
  background: rgba(245,172,55,0.07);
  border: 1px solid rgba(245,172,55,0.16);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #c89030;
  letter-spacing: 0.3px;
  transition: all 0.2s;
}

.coin-tag:hover {
  background: rgba(245,172,55,0.13);
  border-color: rgba(245,172,55,0.38);
  color: #f5ac37;
}

.coin-tag-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f5ac37;
  box-shadow: 0 0 6px rgba(245,172,55,0.7);
  flex-shrink: 0;
}

/* ── Feature badges ─────────────────────────── */
.feature-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.feature-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: rgba(245,172,55,0.05);
  border: 1px solid rgba(245,172,55,0.14);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #a07828;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.feature-badge-icon {
  font-size: 15px;
  line-height: 1;
}

/* ── FAQ block ──────────────────────────────── */
.faq-list {
  margin: 16px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  border: 1px solid rgba(245,172,55,0.12);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(245,172,55,0.02);
  transition: border-color 0.2s;
}

.faq-item:hover {
  border-color: rgba(245,172,55,0.28);
}

.faq-question {
  width: 100%;
  padding: 14px 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #c89030;
  letter-spacing: -0.1px;
}

.faq-chevron {
  flex-shrink: 0;
  font-size: 11px;
  color: #f5ac37;
  transition: transform 0.25s;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.25s;
  padding: 0 18px;
  font-size: 13.5px;
  line-height: 1.75;
  color: #7a6840;
}

.faq-item.open .faq-answer {
  max-height: 200px;
  padding: 0 18px 16px;
}

/* ── CTA strip ──────────────────────────────── */
.seo-cta-strip {
  margin: 28px 0 4px;
  padding: 20px 24px;
  background: linear-gradient(135deg,
    rgba(245,172,55,0.10) 0%,
    rgba(245,172,55,0.04) 100%
  );
  border: 1px solid rgba(245,172,55,0.22);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.seo-cta-text {
  font-size: 14px;
  font-weight: 700;
  color: #e8dfc0;
  letter-spacing: -0.2px;
}

.seo-cta-text span {
  color: #f5ac37;
}

.seo-cta-btn {
  padding: 10px 22px;
  background: linear-gradient(135deg, #f5ac37, #e89520);
  color: #130e04;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 13px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: all 0.25s;
  box-shadow: 0 4px 18px rgba(245,172,55,0.35);
  white-space: nowrap;
}

.seo-cta-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(245,172,55,0.5);
}

/* ── Responsive additions ───────────────────── */
@media (max-width: 600px) {
  .feature-row { gap: 7px; }
  .feature-badge { font-size: 11px; padding: 8px 12px; }
  .seo-cta-strip { flex-direction: column; align-items: flex-start; gap: 14px; }
  .seo-cta-btn { width: 100%; text-align: center; padding: 12px; }
  .faq-question { font-size: 13px; }
}

.seo-section p {
  max-width: 720px;
}

.seo-section {
  backdrop-filter: blur(6px);
}

.coin-tag {
  cursor: default;
}