* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: #8f98a3;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  display: flex;
  justify-content: center;
  min-height: 100vh;
}

.phone {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  background: #000;
  color: #e8e0cf;
  position: relative;
}

/* ---------- top bar ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: #021a13;
}
.topbar .back {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
}
.logo {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #f2c261;
  font-weight: 800;
  font-size: 21px;
  font-style: italic;
  letter-spacing: .5px;
  text-decoration: none;
}
.logo img {
  display: block;
  height: 34px;
  width: auto;
}
.lang {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #fff;
  font-size: 14px;
  min-width: 32px;
  justify-content: flex-end;
}
.lang img {
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
}

/* ---------- green banner ---------- */
.banner {
  background: linear-gradient(115deg, #0c9d63 0%, #087a50 42%, #04372a 100%);
  padding: 18px 20px 28px;
}
.banner h1 {
  font-size: 18px;
  color: #fff;
  margin-bottom: 8px;
}
.banner p {
  font-size: 12.5px;
  color: #d2ecdf;
  line-height: 1.55;
}

/* ---------- tabs ---------- */
.tabs {
  display: flex;
  background: #000;
}
.tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 20px 0 12px;
  color: #93a89b;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid #1c1c1c;
  user-select: none;
}
.tab.active {
  color: #f2c261;
  border-bottom: 2px solid #e8b04b;
}

/* ---------- form ---------- */
form { padding: 20px 20px 34px; display: flex; flex-direction: column; gap: 15px; }

.field-label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #d8b98c;
  font-size: 15px;
  font-weight: 600;
}

.input-row { display: flex; gap: 10px; }

.code-select {
  background: #0b2d23;
  color: #cfe6d8;
  border-radius: 10px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 15px;
  cursor: pointer;
  white-space: nowrap;
}

input[type="text"],
input[type="password"],
input[type="tel"],
input[type="email"] {
  flex: 1;
  width: 100%;
  background: #0b2d23;
  border: none;
  outline: none;
  border-radius: 10px;
  padding: 14px 16px;
  color: #eafff4;
  font-size: 15px;
}
input::placeholder { color: #6f8f80; }

.pwd-wrap { position: relative; display: flex; }
.pwd-wrap input { padding-right: 46px; }
.eye-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
}

/* ---------- checkbox rows ---------- */
.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #cfc8b8;
  cursor: pointer;
  user-select: none;
}
.check-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid #8a8a8a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.check-circle.checked {
  background: linear-gradient(180deg, #f9d88b, #e6a93c);
  border-color: #e6a93c;
}
.check-circle.checked svg { display: block; }
.check-circle svg { display: none; }
.check-row a { color: #ff5a52; text-decoration: none; }

/* ---------- buttons ---------- */
.btn {
  width: 100%;
  border-radius: 999px;
  padding: 14px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 5px;
  cursor: pointer;
  border: none;
  text-align: center;
  display: block;
  text-decoration: none;
}
.btn-gold {
  background: linear-gradient(180deg, #f9d88b 0%, #eec058 55%, #e2a437 100%);
  color: #fff;
  text-shadow: 0 1px 2px rgba(120, 80, 0, .45);
  margin-top: 12px;
}
.btn-gold:disabled {
  background: #7b948a;
  text-shadow: none;
  color: #dfe9e4;
  cursor: not-allowed;
}
.btn-muted {
  background: #6f857b;
  color: #a7b8b0;
  margin-top: 12px;
}
.btn-muted:disabled { opacity: .7; cursor: not-allowed; }
.btn-outline {
  background: transparent;
  border: 1px solid #caa25a;
  color: #e8c37a;
  letter-spacing: 2px;
  font-size: 16px;
}
.btn-outline b { font-weight: 800; }

/* ---------- toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 60px;
  transform: translateX(-50%) translateY(20px);
  background: rgba(20, 25, 23, .95);
  border: 1px solid #caa25a;
  color: #f2c261;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
  z-index: 99;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- launcher (index) ---------- */
.launcher {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 60px 30px;
  min-height: 70vh;
}
.launcher p { color: #93a89b; font-size: 14px; }
.hidden { display: none !important; }
