:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0b1017;
  color: #eef4f8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 0%, rgba(35, 112, 126, 0.28), transparent 34rem),
    linear-gradient(180deg, #0b1017 0%, #101820 58%, #090d12 100%);
}

.shell {
  width: min(720px, 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  margin: 0 auto;
  padding: 34px 24px;
}

.siteHeader {
  text-align: center;
}

.siteName {
  display: inline-block;
  padding: 10px 18px;
  color: #ffffff;
  font-size: clamp(34px, 8vw, 66px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: 0;
  text-shadow: 0 10px 34px rgba(42, 189, 168, 0.26);
}

.siteName span {
  color: #20c878;
}

.panel {
  width: 100%;
  position: relative;
  overflow: hidden;
  background: rgba(17, 25, 33, 0.94);
  border: 1px solid #263846;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

.orderBadge {
  position: absolute;
  top: 18px;
  right: 20px;
  z-index: 2;
  color: #7f8f9c;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-align: right;
  white-space: nowrap;
}

.loadingOverlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  background: rgba(7, 11, 15, 0.58);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.loadingOverlay.isVisible {
  opacity: 1;
  pointer-events: auto;
}

.throbber {
  width: 34px;
  height: 34px;
  border: 3px solid rgba(255, 255, 255, 0.18);
  border-top-color: #6ad5c0;
  border-radius: 50%;
  animation: spin 780ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.homePanel {
  text-align: center;
}

.bootPanel {
  min-height: 220px;
  display: grid;
  place-items: center;
}

.homePanel p {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.brand {
  color: #6ad5c0;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 12px;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: #f8fbfd;
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.05;
  letter-spacing: 0;
}

p {
  margin: 14px 0 24px;
  color: #adbac5;
  line-height: 1.55;
}

.numberBox {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 16px;
  align-items: center;
  padding: 18px;
  margin-bottom: 18px;
  border: 1px solid #2f7c70;
  border-radius: 8px;
  background: #0f2426;
}

.productBox {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px 16px;
  align-items: start;
  padding: 18px;
  margin-bottom: 18px;
  border: 1px solid #2f7c70;
  border-radius: 8px;
  background: #0f2426;
}

.productBox pre {
  grid-column: 1 / -1;
  max-height: 320px;
  margin: 0;
  padding: 16px;
  overflow: auto;
  border: 1px solid #263846;
  border-radius: 8px;
  background: #0a1218;
  color: #f4f8fb;
  font: 15px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.numberHeader {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.countryBadge {
  color: #8796a4;
  font-size: 13px;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

.numberBox strong {
  color: #ffffff;
  font-size: clamp(24px, 7vw, 36px);
  overflow-wrap: anywhere;
}

.phoneNumber {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.phonePrefix {
  color: #6ad5c0;
}

.phoneRest {
  color: #ffffff;
  overflow-wrap: anywhere;
}

.statusGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}

.statusGrid > div {
  min-width: 0;
  border: 1px solid #263846;
  border-radius: 8px;
  padding: 14px;
  background: #111a22;
}

.smsCodeRow {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
}

.label {
  display: block;
  color: #8393a1;
  font-size: 13px;
  margin-bottom: 6px;
}

strong {
  color: #f4f8fb;
  font-size: 20px;
}

.actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 180ms ease, transform 180ms ease;
}

.actions.isFadingOut {
  opacity: 0;
  transform: translateY(-4px);
}

.replaceHint {
  flex: 1 1 260px;
  margin: 0;
  color: #8796a4;
  font-size: 13px;
  line-height: 1.35;
  opacity: 0;
  transition: opacity 420ms ease;
}

.replaceHint.isVisible {
  opacity: 1;
}

.actionSuccess {
  display: grid;
  place-items: center;
  text-align: center;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.actionSuccess.isVisible {
  opacity: 1;
  transform: translateY(0);
}

.actionSuccess h2 {
  margin: 0;
  color: #20c878;
  font-size: 32px;
  line-height: 1;
}

.actionSuccess p {
  max-width: 520px;
  margin: 10px auto 0;
  color: #8de5bb;
  font-size: 15px;
}

.manualNotice {
  min-height: 330px;
  display: grid;
  place-content: center;
  text-align: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.manualNotice.isVisible {
  opacity: 1;
  transform: translateY(0);
}

.manualNotice h2 {
  margin: 0;
  color: #20c878;
  font-size: clamp(34px, 7vw, 58px);
  line-height: 1;
}

.manualNotice p {
  max-width: 580px;
  margin: 18px auto 0;
  color: #f1dfb1;
  font-size: 17px;
}

.manualEmailPanel {
  min-height: 330px;
  display: grid;
  place-content: center;
  text-align: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.manualEmailPanel.isVisible {
  opacity: 1;
  transform: translateY(0);
}

.manualEmailPanel h2 {
  margin: 0;
  color: #f8fbfd;
  font-size: clamp(30px, 6vw, 48px);
  line-height: 1;
}

.manualEmailPanel p {
  max-width: 560px;
  margin: 16px auto 22px;
  color: #f1dfb1;
  font-size: 16px;
}

.manualEmailForm {
  width: min(520px, 100%);
  margin: 0 auto;
  text-align: left;
}

.manualEmailForm label {
  display: block;
  margin-bottom: 8px;
  color: #8393a1;
  font-size: 13px;
  font-weight: 800;
}

.manualEmailRow {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.manualEmailRow input {
  min-width: 0;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #263846;
  border-radius: 8px;
  background: #111a22;
  color: #f4f8fb;
  font: inherit;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.manualEmailRow input:focus {
  border-color: #20c878;
  box-shadow: 0 0 0 3px rgba(32, 200, 120, 0.14);
}

.manualEmailError {
  display: block;
  min-height: 18px;
  margin-top: 8px;
  color: #ff9b8d;
  font-size: 13px;
}

.marketButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 8px;
  background: #ffffff;
  color: #111820;
  font-weight: 900;
  text-decoration: none;
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.marketButton:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(255, 152, 20, 0.18);
}

.marketButton img {
  display: block;
  flex: 0 0 auto;
}

button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  background: #1f9f8b;
  color: #06100f;
  font-weight: 800;
  cursor: pointer;
  transition: background 220ms ease, color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

button:hover:not(:disabled) {
  transform: translateY(-1px);
}

button:disabled {
  background: #42505c;
  color: #8e9ba7;
  cursor: not-allowed;
}

button.ghost,
#replaceButton {
  background: #22313d;
  color: #e4edf3;
}

#copyButton {
  min-width: 132px;
}

button.isCopied {
  background: #20c878;
  color: #04120a;
  box-shadow: 0 0 0 1px rgba(32, 200, 120, 0.22), 0 10px 24px rgba(32, 200, 120, 0.16);
}

.iconButton {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #82909c;
  position: relative;
  overflow: hidden;
  transition: background 220ms ease, color 220ms ease, box-shadow 220ms ease;
}

.iconButton:hover:not(:disabled) {
  background: rgba(130, 144, 156, 0.12);
  color: #d8e0e6;
  transform: none;
}

.iconButton svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.iconButton .copyIcon,
.iconButton .checkIcon {
  grid-area: 1 / 1;
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  transition: opacity 160ms ease, transform 160ms ease;
  transform-origin: center;
}

.iconButton .checkIcon {
  color: #04120a;
  font-size: 17px;
  font-weight: 900;
  line-height: 17px;
  opacity: 0;
  transform: scale(0.82);
}

.iconButton.isCopied {
  background: #20c878;
  color: #04120a;
  box-shadow: 0 0 0 1px rgba(32, 200, 120, 0.22), 0 10px 24px rgba(32, 200, 120, 0.16);
}

.iconButton.isCopied:hover:not(:disabled) {
  background: #20c878;
  color: #04120a;
}

.iconButton.isCopied .copyIcon {
  opacity: 0;
  transform: scale(0.82);
}

.iconButton.isCopied .checkIcon {
  opacity: 1;
  transform: scale(1);
}

.supportNotice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  width: 100%;
  padding: 18px;
  border: 1px solid #5f4f2b;
  border-radius: 8px;
  background: rgba(42, 34, 18, 0.86);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
}

.supportNotice p {
  margin: 0;
  color: #f1dfb1;
}

.warningIcon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f3b93f;
  color: #1c1405;
  font-weight: 900;
}

.isHidden {
  display: none;
}

@media (max-width: 560px) {
  .shell {
    justify-content: flex-start;
    padding: 24px 16px;
  }

  .panel {
    padding: 22px;
  }

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

  .actions,
  button {
    width: 100%;
  }

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

  .replaceHint {
    flex-basis: 100%;
  }

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

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