:root {
  --bg: #090909;
  --bg-soft: #121212;
  --panel: #171717;
  --accent: #e8a317;
  --accent-2: #ffbe3d;
  --text: #f5f5f5;
  --muted: #b6b6b6;
  --line: rgba(255, 199, 87, 0.25);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

html {
  background-color: #070707;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: Montserrat, Arial, sans-serif;
  color: var(--text);
  background-color: #070707;
  background: radial-gradient(circle at 20% 0%, #252525 0, #101010 38%, #070707 100%);
  background-repeat: no-repeat;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

body.modal-open {
  overflow: hidden;
}

.container {
  width: min(1150px, 92%);
  margin: 0 auto;
}

.topbar {
  background: #0c0c0c;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
}

.top-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.top-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.brand-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  height: 36px;
  width: auto;
  display: block;
}

.logo-caption {
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  color: var(--accent-2);
}

.brand-box--footer .logo-img {
  height: 30px;
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 700;
  cursor: pointer;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  border: 1px solid rgba(255, 199, 87, 0.5);
}

.btn-primary {
  background: linear-gradient(90deg, #c98a12 0%, #e8a317 50%, #f2bb4a 100%);
  color: #090909;
  box-shadow: 0 10px 24px rgba(232, 163, 23, 0.35);
  border: 1px solid rgba(255, 219, 146, 0.5);
}

.hero-content .btn-primary {
  min-width: 220px;
  letter-spacing: 0.02em;
}

.btn-large {
  padding: 14px 32px;
  font-size: 16px;
}

.hero {
  position: relative;
  min-height: 0;
  display: flex;
  align-items: flex-start;
  background: transparent;
}

.hero-overlay {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 14px 0 6px;
}

.hero-tag {
  display: inline-block;
  margin: 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(232, 163, 23, 0.15);
  border: 1px solid rgba(232, 163, 23, 0.5);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

h1 {
  margin: 16px 0 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
}

.hero-sub {
  margin: 0;
  color: var(--muted);
  font-weight: 500;
  max-width: 640px;
}

.exchange-wrap {
  padding: 4px 0 10px;
}

.exchange-grid {
  display: grid;
  grid-template-columns: 1fr 0.8fr 1fr;
  gap: 14px;
}

.card {
  background: linear-gradient(180deg, #1a1a1a, #121212);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(2, 1, 6, 0.32);
}

.exchange-card,
.rate-card {
  padding: 18px;
}

.exchange-card h3 {
  margin: 0 0 14px;
}

label {
  display: block;
  margin: 8px 0 6px;
  color: var(--muted);
  font-size: 13px;
}

select,
input {
  width: 100%;
  height: 42px;
  font-size: 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 199, 87, 0.2);
  background: #0d0d0d;
  color: #fff;
  padding: 0 12px;
}

#sendAmount,
#receiveAmount {
  font-size: 16px !important;
  line-height: 1.2;
}

#receiveAmount[readonly] {
  background: #121212;
  color: var(--accent-2);
  cursor: default;
}

.custom-select {
  position: relative;
}

.custom-select-trigger {
  width: 100%;
  height: 48px;
  border-radius: 10px;
  border: 1px solid rgba(255, 199, 87, 0.2);
  background: #0d0d0d;
  color: #fff;
  padding: 0 36px 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  position: relative;
}

.custom-select-trigger::after {
  content: "▾";
  position: absolute;
  right: 12px;
  color: var(--accent-2);
  font-size: 12px;
}

.custom-select-trigger img,
.custom-select-option img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  flex: 0 0 26px;
}

.custom-select-menu {
  list-style: none;
  margin: 6px 0 0;
  padding: 6px;
  position: absolute;
  left: 0;
  right: 0;
  background: #111111;
  border: 1px solid rgba(255, 199, 87, 0.25);
  border-radius: 10px;
  display: none;
  z-index: 30;
}

.custom-select.is-open .custom-select-menu {
  display: block;
}

.custom-select-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 8px;
  border-radius: 8px;
  color: #f3f3f3;
  cursor: pointer;
}

.custom-select-option:hover,
.custom-select-option.is-selected {
  background: rgba(232, 163, 23, 0.18);
}

.rate-card {
  display: grid;
  gap: 10px;
  align-content: center;
}

.rate-pill {
  background: rgba(232, 163, 23, 0.14);
  border: 1px solid rgba(232, 163, 23, 0.35);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  font-weight: 700;
}

.cta-row {
  display: flex;
  justify-content: center;
  padding: 18px 0 0;
}

.session-requests {
  padding: 8px 0 10px;
}

.session-requests-card {
  padding: 16px;
}

.session-requests-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.session-requests-head h3 {
  margin: 0;
}

.session-requests-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.session-requests-list {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.session-request-row {
  border: 1px solid rgba(255, 199, 87, 0.22);
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.session-request-id {
  margin: 0;
  font-weight: 700;
  color: #fff;
}

.session-request-date {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.session-request-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.session-request-status {
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  padding: 5px 9px;
  border: 1px solid transparent;
}

.session-request-status.is-ok {
  color: #7ef0aa;
  background: rgba(70, 200, 120, 0.2);
}

.session-request-status.is-cancel {
  color: #ff9e9e;
  background: rgba(230, 85, 85, 0.2);
}

.session-request-status.is-wait {
  color: #ffde9d;
  background: rgba(255, 199, 87, 0.16);
}

.session-request-status.is-missing {
  color: #b6b6b6;
  background: rgba(255, 255, 255, 0.08);
}

.session-open-btn {
  padding: 8px 14px;
}

.session-empty {
  margin: 0;
  color: var(--muted);
}

.benefits {
  padding: 24px 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.info-card {
  padding: 16px;
}

.info-card h4 {
  margin: 0 0 8px;
}

.info-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.footer {
  border-top: 1px solid var(--line);
  background: #080808;
}

.footer-inner {
  padding: 18px 0 26px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
}

.payment-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 999;
}

.payment-backdrop.is-open {
  display: flex;
}

.payment-modal {
  width: min(520px, 100%);
  background:
    radial-gradient(80% 100% at 50% 0%, rgba(232, 163, 23, 0.15) 0%, rgba(232, 163, 23, 0) 60%),
    linear-gradient(180deg, #181818 0%, #101010 100%);
  border: 1px solid rgba(255, 199, 87, 0.35);
  border-radius: 16px;
  padding: 20px;
  position: relative;
  box-shadow:
    0 24px 55px rgba(2, 1, 10, 0.7),
    0 0 0 1px rgba(232, 163, 23, 0.2),
    0 0 30px rgba(232, 163, 23, 0.12);
}

.payment-modal h2 {
  margin: 2px 0 14px;
  color: #f4f3ff;
  font-size: 24px;
  font-weight: 700;
}

.payment-close {
  position: absolute;
  right: 12px;
  top: 10px;
  background: transparent;
  border: 0;
  color: #bfb7ef;
  font-size: 24px;
  cursor: pointer;
  padding: 6px;
}

.payment-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 199, 87, 0.2);
  border-radius: 10px;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.02);
}

.payment-row-timer {
  align-items: center;
}

.countdown-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.countdown-ring {
  width: 28px;
  height: 28px;
  transform: rotate(-90deg);
}

.countdown-ring .ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.16);
  stroke-width: 3.5;
}

.countdown-ring .ring-fg {
  fill: none;
  stroke: hsl(120, 85%, 52%);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 100.53;
  stroke-dashoffset: 0;
  transition: stroke 0.25s linear, stroke-dashoffset 0.25s linear;
}

.payment-row span {
  color: var(--muted);
  font-size: 14px;
}

.payment-row strong {
  color: #ffe4a8;
  font-size: 14px;
}

.payment-block {
  border: 1px solid rgba(255, 199, 87, 0.2);
  border-radius: 10px;
  padding: 10px 12px;
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.payment-label {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
}

.payment-value {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
  cursor: pointer;
}
.payment-value-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.copy-btn {
  padding: 2px 4px;
  min-width: 22px;
  height: 22px;
  font-size: 11px;
  line-height: 1;
}

.payment-note {
  margin: 4px 0 0;
  color: var(--accent-2);
  font-size: 12px;
}

.payment-input-label {
  display: block;
  margin: 12px 0 6px;
  color: var(--muted);
  font-size: 13px;
}

.payment-modal input {
  width: 100%;
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(255, 199, 87, 0.3);
  background: #0d0d0d;
  color: #fff;
  padding: 0 12px;
}

.payment-submit {
  width: 100%;
  margin-top: 12px;
  height: 46px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
}

.receipt-upload {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 199, 87, 0.2);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
  padding: 10px;
}
.receipt-upload input[type="file"] {
  height: auto;
  padding: 8px 10px;
  line-height: 1.3;
}

.request-status-modal {
  width: min(460px, 100%);
}

@media (max-width: 960px) {
  .exchange-grid {
    grid-template-columns: 1fr;
  }

  .benefits {
    grid-template-columns: repeat(2, 1fr);
  }

}

@media (max-width: 640px) {
  .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-inner {
    flex-direction: column;
  }

  .benefits {
    grid-template-columns: 1fr;
  }

  .session-request-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .session-request-right {
    width: 100%;
    justify-content: space-between;
  }

  .payment-modal {
    padding: 20px 16px 16px;
  }

  .payment-modal h2 {
    font-size: 22px;
  }
}
