:root {
  --bg: #07090c;
  --bg2: #0b0f14;
  --panel: rgba(255, 255, 255, 0.06);
  --stroke: rgba(255, 255, 255, 0.14);
  --text: #f3f4f6;
  --muted: rgba(255, 255, 255, 0.7);
  --gold: #ffd966;
  --gold-soft: #ffea86;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family:
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    sans-serif;
  background:
    radial-gradient(
      900px 520px at 78% 8%,
      rgba(255, 217, 102, 0.16),
      transparent 55%
    ),
    linear-gradient(180deg, var(--bg), var(--bg2));
  color: var(--text);
}

img {
  max-width: 100%;
  display: block;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 22px 42px;
}

/* TOP BAR */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  gap: 18px;
}
.topbar img {
  width: 140px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 217, 102, 0.45);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.25);
  color: rgba(255, 255, 255, 0.92);
}
.chip span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  box-shadow: 0 0 0 3px rgba(255, 217, 102, 0.18);
}

/* HERO */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }
}

.left h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.05;
}

.left .sub {
  color: var(--gold);
  font-size: 22px;
  font-weight: 700;
  max-width: 42ch;
  margin-bottom: 18px;
  line-height: 1.25;
}

/* ADDED: premium red for the action line */
.left .sub.alert {
  color: #d65a5a;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.left p {
  color: var(--muted);
  max-width: 62ch;
  line-height: 1.6;
  margin: 0 0 18px;
  font-size: 16px;
}

.notice {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 217, 102, 0.45);
  background: rgba(255, 217, 102, 0.1);
  font-size: 13px;
  max-width: 62ch;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.9);
}

/* FORM CARD */
.card {
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-head {
  padding: 22px 26px;
  border-bottom: 1px solid var(--stroke);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.card-head h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.card-head span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  white-space: nowrap;
}

.card-body {
  padding: 26px;
  display: grid;
  gap: 16px;
}

form {
  display: grid;
  gap: 16px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
select {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
}
select {
  padding-right: 40px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px;
}
@media (max-width: 600px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .btn {
    width: 100%;
    min-width: unset;
  }
  .card-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 8px;
  display: block;
}

input {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  outline: none;
  font-size: 14px;
}

input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

input:focus {
  border-color: rgba(255, 217, 102, 0.7);
  box-shadow: 0 0 0 3px rgba(255, 217, 102, 0.12);
}

/* Terms */
.terms {
  margin-top: 2px;
}
.terms-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 12px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  user-select: none;
}
.terms-row input {
  margin-top: 3px;
  accent-color: var(--gold);
  cursor: pointer;
  width: auto;
  padding: 0;
  border-radius: 6px;
}
.terms-row a {
  color: var(--gold);
  text-decoration: underline;
}
.terms-row a:hover {
  text-decoration: none;
}

.actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.btn {
  padding: 14px 22px;
  border-radius: 16px;
  border: 1px solid rgba(255, 217, 102, 0.6);
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  color: #141414;
  min-width: 260px;
}
.btn:active {
  transform: translateY(1px);
}

.fine {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
  max-width: 80ch;
}

/* FOOTER (compact, 1–2 lines) */
.footer {
  margin-top: 44px;
  padding: 18px 12px;
  border-top: 2px solid rgba(255, 217, 102, 0.85);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  font-family: Verdana, Geneva, sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 217, 102, 0.95);
  text-align: center;
}
.footer .sep {
  opacity: 0.6;
}

/* MODAL STYLES */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease-out,
    visibility 0.3s ease-out;
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  position: relative;
  z-index: 50;
  width: 100%;
  max-width: 512px;
  transform: translateY(16px) scale(0.95);
  transition:
    transform 0.3s ease-out,
    opacity 0.3s ease-out;
  opacity: 0;
}

.modal-overlay.show .modal-content {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal-inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  background: #0b0f14;
  padding: 24px;
  border-radius: 20px;
}

@media (min-width: 640px) {
  .modal-inner {
    padding: 32px 48px;
  }
}

.modal-header {
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-icon {
  max-width: 70px;
  max-height: 70px;
  width: 100%;
  height: 100%;
}

@media (min-width: 768px) {
  .modal-icon {
    max-width: 84px;
    max-height: 84px;
  }
}

.modal-close {
  position: absolute;
  top: 0;
  right: 0;
  cursor: pointer;
  transition: opacity 0.2s;
}

.modal-close:hover {
  opacity: 0.8;
}

.modal-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.modal-title {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  margin: 0;
}

@media (min-width: 640px) {
  .modal-title {
    font-size: 24px;
  }
}

.modal-subtitle {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  margin: 0;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.btn-modal {
  padding: 14px 22px;
  border-radius: 16px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  width: 100%;
  border: none;
  font-size: 14px;
  transition: all 0.3s ease-in-out;
}

.btn-modal:active {
  transform: translateY(1px);
}

.btn-modal-gold {
  border: 1px solid rgba(255, 217, 102, 0.6);
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  color: #141414;
}

.btn-modal-gold:hover {
  box-shadow: 0 0 20px rgba(255, 217, 102, 0.5);
}

.btn-modal-default {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
}

.btn-modal-default:hover {
  background: rgba(0, 0, 0, 0.5);
}

body.modal-open {
  overflow: hidden;
}
