﻿.currency-page {
  min-height: 100vh;
  padding-bottom: 80px;
}
.currency-hero {
  padding: 72px 20px 30px;
}
.currency-hero-inner {
  width: min(920px, 100%);
  margin: 0 auto;
  text-align: center;
}
.currency-kicker {
  margin: 0 0 8px;
  color: #a893ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.currency-hero h1 {
  margin: 0;
  color: #f8f6ff;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: -.04em;
}
.currency-intro {
  max-width: 680px;
  margin: 18px auto 0;
  color: #aaa6b8;
  font-size: 15px;
  line-height: 1.7;
}
.currency-tool-wrap,
.currency-info-wrap {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
}
.currency-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 24px;
  background:
    radial-gradient(circle at 12% 0%, rgba(139,92,246,.18), transparent 34%),
    linear-gradient(145deg, #17151f, #0d0d12);
  box-shadow: 0 22px 70px rgba(0,0,0,.28);
}
.currency-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(174,143,255,.75), transparent);
  opacity: .8;
}
.currency-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 25px;
}
.currency-label {
  margin: 0 0 5px;
  color: #cdbdff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.currency-card h2 {
  margin: 0;
  color: #f8f6ff;
  font-size: 25px;
  letter-spacing: -.02em;
}
.currency-live-status {
  flex: 0 0 auto;
  padding: 7px 11px;
  border: 1px solid rgba(174,143,255,.25);
  border-radius: 999px;
  color: #cdbdff;
  background: rgba(139,92,246,.09);
  font-size: 11px;
  font-weight: 800;
}
.currency-form {
  display: grid;
  gap: 18px;
}
.currency-fields-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) 52px minmax(0,1fr);
  align-items: end;
  gap: 14px;
}
.currency-field {
  display: grid;
  gap: 8px;
}
.currency-field label {
  color: #d7d3df;
  font-size: 12px;
  font-weight: 800;
}
.currency-field input,
.currency-field select {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  outline: none;
  color: #f8f6ff;
  background: #0b0b0f;
  font: inherit;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.currency-field select {
  cursor: pointer;
}
.currency-field input:focus,
.currency-field select:focus {
  border-color: rgba(174,143,255,.72);
  box-shadow: 0 0 0 3px rgba(139,92,246,.13);
}
.currency-swap {
  width: 52px;
  height: 52px;
  border: 1px solid rgba(188,166,255,.3);
  border-radius: 14px;
  color: #eeeaff;
  background: rgba(139,92,246,.12);
  cursor: pointer;
  font-size: 22px;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.currency-swap:hover {
  border-color: rgba(174,143,255,.72);
  background: rgba(139,92,246,.2);
  transform: translateY(-2px);
}
.currency-convert-button {
  min-height: 54px;
  border: 1px solid rgba(188,166,255,.45);
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(135deg, #8b5cf6, #7048d7);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(87,48,166,.25);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.currency-convert-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 16px 34px rgba(87,48,166,.34);
}
.currency-convert-button:disabled {
  cursor: wait;
  opacity: .7;
  transform: none;
}
.currency-result {
  margin-top: 22px;
  padding: 24px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  background: rgba(255,255,255,.025);
  text-align: center;
}
.currency-result-label {
  display: block;
  margin-bottom: 8px;
  color: #aaa6b8;
  font-size: 12px;
  font-weight: 700;
}
.currency-result strong {
  display: block;
  color: #f8f6ff;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.1;
  letter-spacing: -.035em;
}
.currency-rate {
  display: block;
  margin-top: 10px;
  color: #cdbdff;
  font-size: 13px;
}
.currency-meta {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-top: 14px;
  color: #777481;
  font-size: 11px;
}
.currency-error {
  margin: 14px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(248,113,113,.25);
  border-radius: 12px;
  color: #ffb4b4;
  background: rgba(127,29,29,.16);
  font-size: 12px;
}
.currency-info-wrap {
  margin-top: 24px;
}
.currency-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
}
.currency-info-card {
  min-height: 180px;
  padding: 21px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 19px;
  background: #101015;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.currency-info-card:hover {
  transform: translateY(-3px);
  border-color: rgba(174,143,255,.42);
  background: #14121b;
}
.currency-info-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-bottom: 14px;
  border: 1px solid rgba(188,166,255,.28);
  border-radius: 14px;
  color: #d9ceff;
  background: rgba(139,92,246,.1);
  font-size: 20px;
}
.currency-info-card h2 {
  margin: 0 0 8px;
  color: #f5f2fb;
  font-size: 16px;
}
.currency-info-card p {
  margin: 0;
  color: #9995a5;
  font-size: 13px;
  line-height: 1.65;
}
@media (max-width: 760px) {
  .currency-hero {
    padding-top: 52px;
  }
  .currency-card {
    padding: 21px;
    border-radius: 20px;
  }
  .currency-fields-row {
    grid-template-columns: 1fr;
  }
  .currency-swap {
    width: 100%;
  }
  .currency-info-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .currency-tool-wrap,
  .currency-info-wrap {
    width: min(100% - 22px, 1040px);
  }
  .currency-hero {
    padding-left: 11px;
    padding-right: 11px;
  }
  .currency-card-heading,
  .currency-meta {
    flex-direction: column;
    align-items: flex-start;
  }
  .currency-card {
    padding: 18px;
  }
  .currency-result {
    padding: 20px 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .currency-swap,
  .currency-convert-button,
  .currency-info-card {
    transition: none;
  }
}
