/* design.css — main exchange page — Monero XMR theme */
@import url('https://fonts.googleapis.com/css2?family=Space+Mono:ital,wght@0,400;0,700;1,400&family=Syne:wght@400;500;600;700;800&display=swap');

/* ===========================
   PAGE SHELL
=========================== */
body {
  padding: 0 0 80px;
}

.page-wrap {
  position: relative;
  z-index: 1;
}

/* ===========================
   HERO SECTION
=========================== */
.hero {
  text-align: center;
  padding: 44px 24px 24px;
  position: relative;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--c-green);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
  padding: 6px 16px;
  background: rgba(255,102,0,0.07);
  border: 1px solid rgba(255,102,0,0.25);
  border-radius: 3px;
}
.hero-tag::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-green);
  box-shadow: 0 0 8px var(--c-green);
  animation: blink 2.5s ease-in-out infinite;
}

@keyframes blink {
  0%,100% { opacity:1; }
  50%      { opacity:0.3; }
}

.hero h1 {
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--c-text);
  margin-bottom: 14px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  font-family: var(--f-sans);
}

.hero h1 em {
  font-style: normal;
  color: var(--c-green);
  position: relative;
}

.hero-sub {
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--c-mid);
  max-width: 460px;
  margin: 0 auto 24px;
  line-height: 1.65;
}

.hero-stats {
  display: inline-flex;
  gap: 0;
  border: 1px solid var(--c-border2);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--c-surface);
}
.stat {
  padding: 10px 22px;
  text-align: center;
  border-right: 1px solid var(--c-border2);
}
.stat:last-child { border-right: none; }
.stat-value {
  font-family: var(--f-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--c-text);
}
.stat-label {
  font-family: var(--f-mono);
  font-size: 9px;
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 3px;
}

/* ===========================
   SWAP WIDGET (vertical)
=========================== */
.swap-section {
  padding: 20px 16px 0;
  display: flex;
  justify-content: center;
}

.swap-card {
  width: 100%;
  max-width: 480px;
  background: var(--c-surface);
  border: 1px solid var(--c-border2);
  border-radius: var(--r-xl);
  overflow: visible;
  box-shadow:
    0 28px 80px rgba(0,0,0,0.6),
    0 0 0 1px rgba(255,102,0,0.04),
    inset 0 1px 0 rgba(255,255,255,0.04);
}

/* --- card header --- */
.swap-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 0;
}
.swap-card-title {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.swap-card-rate {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--c-green);
  display: flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.06em;
}
.swap-card-rate::before {
  content: '●';
  font-size: 7px;
  animation: blink 2.5s infinite;
}

/* --- field blocks --- */
.swap-field {
  margin: 12px 16px 0;
  background: var(--c-bg2);
  border: 1px solid var(--c-border2);
  border-radius: var(--r-lg);
  padding: 13px 16px;
  transition: border-color var(--transition), box-shadow var(--transition);
  position: relative;
}
.swap-field:focus-within {
  border-color: rgba(255,102,0,0.4);
  box-shadow: 0 0 0 3px rgba(255,102,0,0.07);
}

.swap-field-label {
  font-family: var(--f-mono);
  font-size: 9px;
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 12px;
}

.swap-field-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* amount */
.swap-amount {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: var(--f-mono);
  font-size: 26px;
  font-weight: 700;
  color: var(--c-text);
  caret-color: var(--c-green);
  width: 100%;
  min-width: 0;
}
.swap-amount::placeholder { color: var(--c-muted); }
.swap-amount.error { color: var(--c-red); }

.receive-display {
  flex: 1;
  font-family: var(--f-mono);
  font-size: 26px;
  font-weight: 700;
  color: var(--c-green);
  transition: color 0.3s;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- token selector --- */
.token-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  background: var(--c-surface2);
  border: 1px solid var(--c-border2);
  border-radius: var(--r-sm);
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
  white-space: nowrap;
  transition: border-color var(--transition), background var(--transition);
}
.token-selector:hover {
  border-color: rgba(255,102,0,0.35);
  background: rgba(255,102,0,0.06);
}
.token-selector img {
  width: 22px; height: 22px;
  border-radius: 50%;
}
.token-selector-name {
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--c-text);
  letter-spacing: 0.04em;
}
.token-selector-arrow {
  font-size: 10px;
  color: var(--c-muted);
  transition: transform 0.22s;
}
.custom-select.active .token-selector-arrow { transform: rotate(180deg); }

/* amount hint */
.swap-field-hint {
  margin-top: 8px;
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--c-muted);
  min-height: 14px;
}

/* --- swap direction button --- */
.swap-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 6px 0;
  position: relative;
  z-index: 5;
}

.swap-direction-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--c-surface2);
  border: 1px solid var(--c-border2);
  color: var(--c-mid);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s;
}
.swap-direction-btn:hover {
  border-color: var(--c-green);
  color: var(--c-green);
  transform: rotate(180deg);
  box-shadow: 0 0 20px rgba(255,102,0,0.2);
  background: rgba(255,102,0,0.08);
}

/* --- wallet block --- */
.wallet-block {
  margin: 8px 16px 0;
  background: var(--c-bg2);
  border: 1px solid var(--c-border2);
  border-radius: var(--r-lg);
  padding: 13px 16px;
  transition: border-color var(--transition);
}
.wallet-block:focus-within {
  border-color: rgba(255,102,0,0.4);
  box-shadow: 0 0 0 3px rgba(255,102,0,0.07);
}
.wallet-block-label {
  font-family: var(--f-mono);
  font-size: 9px;
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.wallet-input {
  width: 100%;
  background: none;
  border: none;
  outline: none;
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--c-text);
  caret-color: var(--c-green);
}
.wallet-input::placeholder { color: var(--c-muted); }
.wallet-input.error { color: var(--c-red); }
.wallet-error {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--c-red);
  margin-top: 8px;
  display: none;
}
.wallet-validation-status { font-size: 11px; font-family: var(--f-mono); }
.wallet-validation-status.valid  { color: var(--c-green); }
.wallet-validation-status.invalid{ color: var(--c-red); }
.amount-error { font-family: var(--f-mono); font-size: 11px; color: var(--c-red); margin-top: 6px; }

/* --- submit --- */
.swap-submit-wrap {
  padding: 12px 16px;
}
.swap-submit {
  width: 100%;
  padding: 17px;
  background: var(--c-green);
  color: #fff;
  border: none;
  border-radius: var(--r-sm);
  font-family: var(--f-sans);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 0 40px rgba(255,102,0,0.22);
  position: relative;
  overflow: hidden;
}
.swap-submit::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s;
}
.swap-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 56px rgba(255,102,0,0.4);
  background: #ff7722;
}
.swap-submit:hover::after { transform: translateX(100%); }

/* --- disclaimer row --- */
.swap-disclaimer {
  padding: 0 16px 16px;
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--c-muted);
  text-align: center;
  line-height: 1.6;
}
.swap-disclaimer a { color: var(--c-mid); text-decoration: underline; }

/* ===========================
   DROPDOWN (shared)
=========================== */
.custom-select { position: relative; }

.options-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 280px;
  max-height: 300px;
  overflow-y: auto;
  background: #181512;
  border: 1px solid var(--c-border2);
  border-radius: var(--r-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,102,0,0.06);
  z-index: 9999;
  display: none;
}
.options-dropdown::-webkit-scrollbar { width: 4px; }
.options-dropdown::-webkit-scrollbar-thumb { background: rgba(255,102,0,0.2); border-radius: 4px; }

.dropdown-search {
  position: sticky; top: 0;
  width: 100%; height: 44px;
  padding: 0 16px;
  background: #181512;
  border: none;
  border-bottom: 1px solid var(--c-border);
  color: var(--c-text);
  font-family: var(--f-mono);
  font-size: 12px;
  outline: none;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.dropdown-search::placeholder { color: var(--c-muted); }

.opt-group {
  padding: 10px 16px 6px;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--c-green);
  text-transform: uppercase;
  position: sticky; top: 44px;
  background: #181512; z-index: 1;
}

.option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  cursor: pointer;
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 400;
  color: var(--c-text);
  transition: background 0.15s;
}
.option:hover { background: rgba(255,102,0,0.06); }
.option.selected { background: rgba(255,102,0,0.1); color: var(--c-green); }
.option img { width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0; }
.option span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }

/* ===========================
   FEATURES BELOW WIDGET
=========================== */
.features-row {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.feat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--c-muted);
  letter-spacing: 0.04em;
}
.feat-item::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--c-green);
  flex-shrink: 0;
  box-shadow: 0 0 6px var(--c-green);
}

/* ===========================
   HOW IT WORKS
=========================== */
.how-section {
  max-width: 1000px;
  margin: 80px auto 0;
  padding: 0 24px;
}
.section-label {
  font-family: var(--f-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--c-green);
  margin-bottom: 10px;
}
.section-title {
  font-family: var(--f-sans);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--c-text);
  margin-bottom: 44px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.step-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 26px 22px;
  position: relative;
  transition: border-color var(--transition), transform var(--transition);
}
.step-card:hover {
  border-color: rgba(255,102,0,0.3);
  transform: translateY(-2px);
}

.step-num {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--c-green);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  text-transform: uppercase;
}
.step-card h2,
.step-card h3 {
  font-family: var(--f-sans);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--c-text);
}
.step-card p {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--c-muted);
  line-height: 1.7;
}

/* ===========================
   SEO SECTION
=========================== */
.seo-section {
  max-width: 820px;
  margin: 60px auto 0;
  padding: 0 24px;
}

.seo-section h2 {
  font-family: var(--f-sans);
  font-size: 17px;
  font-weight: 700;
  color: var(--c-text);
  margin: 32px 0 10px;
  letter-spacing: -0.01em;
}
.seo-section h2:first-child { margin-top: 0; }

.seo-section p {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--c-muted);
  line-height: 1.85;
  margin-bottom: 14px;
}
.seo-section ul, .seo-section ol {
  margin: 10px 0 14px 20px;
}
.seo-section li {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--c-muted);
  line-height: 1.7;
  margin-bottom: 4px;
}
.seo-section strong { color: var(--c-mid); }

.seo-section table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
}
.seo-section td {
  padding: 7px 12px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--c-muted);
  border: 1px solid var(--c-border);
}

/* ===========================
   INFO BLOCK (contact)
=========================== */
.info-block {
  max-width: 820px;
  margin: 24px auto 0;
  padding: 0 24px;
}
.info-block .label {
  font-family: var(--f-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-muted);
  margin-bottom: 6px;
}
.info-block .value {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--c-mid);
}
.info-block a { color: var(--c-green); }

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 680px) {
  .hero { padding: 48px 16px 36px; }
  .hero-stats { flex-direction: column; border-radius: var(--r-md); }
  .stat { border-right: none; border-bottom: 1px solid var(--c-border2); }
  .stat:last-child { border-bottom: none; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .swap-amount, .receive-display { font-size: 24px; }
}

@media (max-width: 420px) {
  .steps-grid { grid-template-columns: 1fr; }
  .swap-amount, .receive-display { font-size: 20px; }
  .token-selector-name { display: none; }
}

/* === REFUND ADDRESS BLOCK === */
.refund-block {
  border-style: dashed;
  border-color: rgba(255,102,0,0.12);
}
.refund-block:focus-within {
  border-color: rgba(255,102,0,0.3);
  box-shadow: 0 0 0 3px rgba(255,102,0,0.06);
}
.refund-optional {
  font-family: var(--f-mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-muted);
  background: rgba(255,102,0,0.06);
  border: 1px solid rgba(255,102,0,0.15);
  padding: 2px 7px;
  border-radius: 3px;
  margin-left: 2px;
}
.refund-hint {
  margin-top: 6px;
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--c-muted);
  line-height: 1.5;
}
