body {
  font-family: 'Segoe UI', 'Helvetica Neue', sans-serif;
  margin: 0;
  min-height: 100dvh;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.25), rgba(0, 0, 0, 0.1) 45%),
    linear-gradient(135deg, #0d0d0f 0%, #1b1b1e 40%, #f5f5f7 130%);
  color: #f5f5f5;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow-x: hidden;
}

.metallic-sheen {
  position: fixed;
  top: -20%;
  left: -10%;
  width: 140%;
  height: 140%;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.05) 40%, rgba(0, 0, 0, 0.4) 100%);
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: -3;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: -2;
  opacity: 0.5;
}

.main-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(40px, 10vw, 100px) clamp(20px, 8vw, 120px);
}

.panel {
  max-width: 540px;
  width: 100%;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.25), rgba(8, 8, 8, 0.85));
  border-radius: 26px;
  padding: clamp(28px, 6vw, 48px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 40px 70px rgba(0, 0, 0, 0.6), inset 0 0 40px rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.panel::before {
  content: '';
  position: absolute;
  inset: 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
  box-shadow: inset 0 20px 35px rgba(255, 255, 255, 0.08);
}

.panel h1 {
  text-align: center;
  font-size: clamp(24px, 4vw, 34px);
  margin-bottom: 16px;
  color: #ffffff;
  text-shadow: 0 15px 35px rgba(0, 0, 0, 0.85), 0 0 25px rgba(255, 255, 255, 0.4);
}

.intro {
  text-align: center;
  line-height: 1.6;
  color: #e3e4e8;
  margin-bottom: 28px;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.6);
}

.token-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  z-index: 1;
}

.token-form label {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #f0f1f5;
  text-shadow: 0 6px 12px rgba(0, 0, 0, 0.65);
}

.token-form input {
  padding: 14px 16px;
  font-size: 16px;
  color: #0f1014;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(180, 182, 188, 0.8));
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 14px;
  box-shadow: inset 0 3px 8px rgba(255, 255, 255, 0.6), inset 0 -6px 12px rgba(0, 0, 0, 0.25);
  outline: none;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.token-form input:focus {
  box-shadow: inset 0 3px 10px rgba(255, 255, 255, 0.75), 0 0 18px rgba(163, 178, 255, 0.8);
  transform: translateY(-1px);
}

.token-form button {
  margin-top: 10px;
  padding: 16px;
  font-size: 18px;
  font-weight: 600;
  color: #101216;
  background: linear-gradient(145deg, #ffffff, #b4b9c2 55%, #35363a 100%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 18px;
  cursor: pointer;
  box-shadow: inset 0 4px 10px rgba(255, 255, 255, 0.7), inset 0 -6px 18px rgba(0, 0, 0, 0.4), 0 25px 45px rgba(0, 0, 0, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.token-form button:hover,
.token-form button:focus {
  transform: translateY(-3px);
  box-shadow: inset 0 6px 12px rgba(255, 255, 255, 0.75), inset 0 -8px 22px rgba(0, 0, 0, 0.45), 0 35px 55px rgba(0, 0, 0, 0.7);
}

.status {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin-top: 24px;
  min-height: 32px;
  text-align: center;
  color: #f4f4f6;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  transition: opacity 0.3s ease;
}

.status--in-progress {
  animation: statusBlink 1.1s ease-in-out infinite;
}

@keyframes statusBlink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

.status--success,
.status--error {
  border-radius: 20px;
  padding: 20px;
  text-align: left;
  white-space: normal;
}

.status--success {
  background: linear-gradient(135deg, rgba(74, 216, 165, 0.16), rgba(23, 47, 38, 0.65));
  border: 1px solid rgba(129, 255, 214, 0.4);
  box-shadow: 0 18px 45px rgba(14, 61, 42, 0.35);
}

.status--error {
  background: linear-gradient(135deg, rgba(255, 115, 115, 0.16), rgba(54, 15, 15, 0.7));
  border: 1px solid rgba(255, 155, 155, 0.35);
  box-shadow: 0 18px 45px rgba(64, 14, 14, 0.4);
}

.status--error::before {
  content: "Deployment failed";
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255, 220, 220, 0.85);
}

.status-subtitle {
  display: block;
  margin-top: 6px;
  color: #dde7f2;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.status-highlight {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(16, 24, 32, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 8px rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 6px;
}

.status-label {
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(210, 223, 235, 0.75);
}

.status-highlight code {
  font-size: 1.02rem;
  word-break: break-word;
  background: none;
  padding: 0;
  color: #f5f7ff;
}

.site-footer {
  text-align: center;
  padding: 32px 16px 48px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(0, 0, 0, 0.7));
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 -20px 35px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.footer-link {
  color: #f4f5f7;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(10, 10, 12, 0.7));
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 3px 12px rgba(255, 255, 255, 0.18), 0 12px 20px rgba(0, 0, 0, 0.55);
}

.footer-link:hover,
.footer-link:focus {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(10, 10, 12, 0.85));
}

.footer-logo {
  height: 110px;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.6));
}

/* Spin animation */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Background spinner */
.background-spinner {
  position: fixed;
  top: 50%;
  left: 50%;
  width: clamp(320px, 55vw, 560px);
  height: clamp(320px, 55vw, 560px);
  margin-left: calc(clamp(320px, 55vw, 560px) / -2);
  margin-top: calc(clamp(320px, 55vw, 560px) / -2);
  background: url('./logo/CypherTrooper-android-chrome-512x512.png') no-repeat center center;
  background-size: contain;
  opacity: 0.25;
  animation: spin 22s linear infinite;
  z-index: -4;
  pointer-events: none;
  filter: drop-shadow(0 25px 45px rgba(0, 0, 0, 0.7));
}

@media (max-width: 820px) {
  .main-nav {
    top: 18px;
    left: 18px;
  }

  .overlay-inner {
    padding: 28px clamp(24px, 8vw, 40px);
    max-height: min(88dvh, 720px);
  }

  .overlay-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .overlay-links {
    gap: clamp(20px, 6vw, 28px);
  }

  .overlay-link {
    text-align: left;
  }

  .overlay-footer {
    justify-content: center;
  }

  .panel {
    padding: 32px 24px;
  }
}

@media (max-width: 520px) {
  .menu-toggle {
    width: 46px;
    height: 46px;
  }

  .menu-overlay {
    padding: clamp(18px, 6vw, 28px);
  }

  .overlay-header {
    align-items: center;
  }

  .overlay-link {
    text-align: center;
    letter-spacing: 0.12em;
  }

  .overlay-footer {
    justify-content: center;
  }

  .panel {
    border-radius: 18px;
  }
}

@media (max-width: 600px) {
  .overlay-inner {
    gap: clamp(20px, 6vw, 32px);
    padding: clamp(24px, 8vw, 36px);
  }

  .overlay-brand {
    font-size: clamp(20px, 6vw, 28px);
    letter-spacing: 0.18em;
    text-align: center;
  }

  .overlay-links {
    gap: clamp(14px, 5vw, 22px);
  }

  .overlay-link {
    font-size: clamp(16px, 5vw, 20px);
    letter-spacing: 0.08em;
    padding: clamp(12px, 5vw, 16px) clamp(10px, 6vw, 18px);
  }
}

@media (max-height: 720px) {
  .menu-overlay {
    align-items: flex-start;
  }

  .overlay-inner {
    margin: auto;
  }
}
