* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  background: #f0f2f5;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.container {
  width: 100%;
  max-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card {
  background: #ffffff;
  border-radius: 24px;
  width: 100%;
  max-width: 440px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: #ffffff;
  border-bottom: 1px solid #eef2f6;
}

.request-id {
  display: flex;
  align-items: baseline;
  gap: 4px;
  background: #f5f7fa;
  padding: 6px 12px;
  border-radius: 40px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: all;
  position: relative;
}

.request-id:active {
  background: #e8ecf1;
  transform: scale(0.98);
}

.request-id::after {
  content: "Click to copy";
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: #2c3e50;
  color: white;
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
}

.request-id:hover::after {
  opacity: 0.8;
}

.request-label {
  font-size: 12px;
  font-weight: 500;
  color: #6c7a8e;
  letter-spacing: -0.2px;
  pointer-events: none;
}

.request-value {
  font-size: 14px;
  font-weight: 700;
  color: #1a2c3e;
  font-family: 'SF Mono', 'Monaco', 'Cascadia Code', monospace;
  letter-spacing: 0.5px;
  pointer-events: none;
}

.back-button {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #5a6e8a;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 40px;
  font-family: inherit;
}

.back-button svg {
  stroke: #5a6e8a;
  transition: transform 0.2s ease;
}

.back-button:active {
  transform: scale(0.96);
  background: #f0f2f5;
}

.back-button:hover {
  background: #f0f2f5;
}

.back-button:hover svg {
  transform: translateX(-2px);
}

.card-header {
  background: linear-gradient(135deg, #1a2c3e 0%, #1e3a4d 100%);
  padding: 32px 24px 28px;
  text-align: center;
}

.tron-logo-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.tron-logo {
  width: 80px;
  height: 80px;
  filter: brightness(0) saturate(100%) invert(27%) sepia(89%) saturate(2464%) hue-rotate(338deg) brightness(94%) contrast(91%);
  animation: gentleFloat 2s ease-in-out infinite;
  transition: filter 0.3s ease;
}

.tron-logo:hover {
  filter: brightness(0) saturate(100%) invert(27%) sepia(89%) saturate(2464%) hue-rotate(338deg) brightness(94%) contrast(91%) drop-shadow(0 0 4px rgba(255, 0, 0, 0.5));
}

@keyframes gentleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.card-header h1 {
  color: white;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 12px;
  line-height: 1.3;
}

.description {
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 0;
}

.card-body {
  padding: 28px 20px 36px;
}

.input-field {
  margin-bottom: 0;
}

label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: #1a2c3e;
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}

.email-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.email-icon {
  position: absolute;
  left: 16px;
  width: 18px;
  height: 18px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.6;
}

input {
  width: 100%;
  padding: 14px 16px 14px 48px;
  font-size: 15px;
  font-weight: 500;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  background: #ffffff;
  transition: all 0.2s ease;
  font-family: inherit;
  outline: none;
  color: #1a2c3e;
}

input::placeholder {
  color: #94a3b8;
  font-size: 14px;
  font-weight: 400;
}

input:focus {
  border-color: #0d9488;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
  background-color: #ffffff;
  color: #1a2c3e;
}

input.input-error {
  border-color: #e53e3e;
  background-color: #fff8f8;
}

input.input-valid {
  border-color: #0d9488;
  background-color: #f0fdfa;
}

.validation-message {
  font-size: 12px;
  margin-top: 8px;
  margin-left: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  min-height: 20px;
}

.validation-message.error-msg {
  color: #e53e3e;
}

.validation-message.error-msg::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  background-image: url('images/attention.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: brightness(0) saturate(100%) invert(27%) sepia(89%) saturate(2464%) hue-rotate(338deg) brightness(94%) contrast(91%);
}

.validation-message:empty {
  display: none;
}

.divider-line {
  width: 100%;
  height: 1px;
  background-color: #eef2f6;
  margin: 20px 0;
}

.robot-check-wrapper {
  margin-top: 0;
  margin-bottom: 24px;
}

.robot-check-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.robot-check-card.verifying {
  background: #fefce8;
  border-color: #eab308;
  box-shadow: 0 0 0 2px rgba(234, 179, 8, 0.1);
}

.robot-check-card.verified {
  background: #f0fdfa;
  border-color: #0d9488;
  box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.1);
}

.robot-check-card.error-state {
  border-color: #e53e3e;
  background-color: #fff8f8;
  box-shadow: 0 0 0 2px rgba(229, 62, 62, 0.1);
}

.robot-check-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.robot-check-row:active {
  background: rgba(0, 0, 0, 0.02);
}

.robot-checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
}

.checkbox-frame {
  width: 26px;
  height: 26px;
  background: white;
  border: 2px solid #cbd5e1;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.robot-check-card.error-state .checkbox-frame {
  border-color: #e53e3e;
}

.robot-check-card.verifying .checkbox-frame {
  border-color: #eab308;
  background: #fefce8;
}

.robot-check-card.verified .checkbox-frame {
  background: #0d9488;
  border-color: #0d9488;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.2);
}

.checkbox-state {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.check-icon {
  display: none;
  stroke: white;
  width: 14px;
  height: 14px;
}

.robot-check-card.verified .check-icon {
  display: block;
  animation: checkPop 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes checkPop {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.loading-spinner {
  display: none;
  gap: 3px;
  align-items: center;
  justify-content: center;
}

.robot-check-card.verifying .loading-spinner {
  display: flex;
}

.robot-check-card.verifying .check-icon {
  display: none;
}

.spinner-dot {
  width: 4px;
  height: 4px;
  background: #eab308;
  border-radius: 50%;
  animation: bounce 0.5s ease-in-out infinite;
}

.spinner-dot:nth-child(1) { animation-delay: 0s; }
.spinner-dot:nth-child(2) { animation-delay: 0.1s; }
.spinner-dot:nth-child(3) { animation-delay: 0.2s; }

@keyframes bounce {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(-4px); opacity: 1; }
}

.robot-check-text {
  font-size: 14px;
  font-weight: 500;
  color: #1a2c3e;
  transition: color 0.2s ease;
}

.robot-check-card.verifying .robot-check-text {
  color: #1a2c3e;
}

.robot-check-card.verified .robot-check-text {
  color: #0d9488;
}

.robot-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.03);
  padding: 4px 10px;
  border-radius: 20px;
}

.robot-brand-icon {
  width: 20px;
  height: 20px;
}

.robot-brand-name {
  font-size: 11px;
  font-weight: 500;
  color: #6c7a8e;
  letter-spacing: -0.2px;
}

.confirm-button {
  width: 100%;
  background: #0d9488;
  border: none;
  padding: 16px 20px;
  font-size: 17px;
  font-weight: 600;
  color: #ffffff;
  border-radius: 60px;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25);
  margin-bottom: 20px;
}

.confirm-button:active {
  transform: scale(0.97);
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.2);
}

.button-icon {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1);
}

.confirm-button span {
  font-weight: 700;
  letter-spacing: -0.2px;
}

.footer-note {
  font-size: 12px;
  text-align: center;
  color: #94a3b8;
  line-height: 1.5;
  padding-top: 8px;
}

.notfound-container {
  text-align: center;
  background: white;
  border-radius: 24px;
  padding: 48px 32px;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.notfound-container h1 {
  font-size: 72px;
  color: #0d9488;
  margin-bottom: 16px;
}

.notfound-container h2 {
  color: #1a2c3e;
  margin-bottom: 12px;
  font-size: 24px;
}

.notfound-container p {
  color: #6c7a8e;
  margin-bottom: 24px;
}

.hidden {
  display: none;
}

@media (max-width: 400px) {
  .card-header h1 { font-size: 22px; }
  .notfound-container h1 { font-size: 52px; }
  .notfound-container { padding: 32px 24px; }
}

@media (prefers-color-scheme: dark) {
  body {
    background: #121826;
  }
  
  .card {
    background: #1a2332;
  }
  
  .top-bar {
    background: #1a2332;
    border-bottom-color: #2a3448;
  }
  
  .request-id {
    background: #0f172a;
  }
  
  .request-value {
    color: #e2e8f0;
  }
  
  .back-button {
    color: #8aa0bc;
  }
  
  .back-button svg {
    stroke: #8aa0bc;
  }
  
  label {
    color: #cbd5e1;
  }
  
  input {
    background: #0f172a;
    border-color: #2a3448;
    color: #f1f5f9;
  }
  
  input:focus {
    background: #0f172a;
    color: #f1f5f9;
  }
  
  input.input-error {
    background: #2d1a1f;
    color: #f1f5f9;
  }
  
  input.input-valid {
    background: #0d2a2a;
    color: #f1f5f9;
  }
  
  input::placeholder {
    color: #5a6e8a;
  }
  
  .email-icon {
    opacity: 0.8;
    filter: brightness(0) invert(1);
  }
  
  .divider-line {
    background-color: #2a3448;
  }
  
  .robot-check-card {
    background: #0f172a;
    border-color: #2a3448;
  }
  
  .robot-check-card.verifying {
    background: #2a2a1a;
  }
  
  .robot-check-card.verified {
    background: #0d2a2a;
  }
  
  .robot-check-card.error-state {
    background: #2d1a1f;
    border-color: #e53e3e;
  }
  
  .robot-check-text {
    color: #cbd5e1;
  }
  
  .robot-check-card.verifying .robot-check-text {
    color: #cbd5e1;
  }
  
  .robot-brand {
    background: rgba(255, 255, 255, 0.05);
  }
  
  .robot-brand-name {
    color: #8aa0bc;
  }
  
  .footer-note {
    color: #5a6e8a;
  }
  
  .checkbox-frame {
    background: #0f172a;
    border-color: #2a3448;
  }
  
  .robot-check-card.verified .checkbox-frame {
    background: #0d9488;
  }
  
  .robot-check-card.error-state .checkbox-frame {
    background: #2d1a1f;
    border-color: #e53e3e;
  }
  
  .validation-message.error-msg {
    color: #fb7185;
  }
  
  .validation-message.error-msg::before {
    filter: brightness(0) saturate(100%) invert(67%) sepia(51%) saturate(4051%) hue-rotate(318deg) brightness(99%) contrast(95%);
  }
  
  .notfound-container {
    background: #1a2332;
  }
  
  .notfound-container h2 {
    color: #e2e8f0;
  }
  
  .notfound-container p {
    color: #8aa0bc;
  }
}