*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  font-family: 'Inter', Arial, sans-serif;
  background: linear-gradient(160deg, #060b18 0%, #0b1120 60%, #0d1525 100%);
  color: #f8fafc;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px 16px;
}

.container {
  width: 100%;
  max-width: 620px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.10);
  border-radius: 24px;
  padding: 40px 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 1px 0 rgba(255,255,255,0.04) inset;
}

/* Brand badge */
.brand {
  display: inline-block;
  margin-bottom: 20px;
  padding: 6px 14px;
  border: 1px solid rgba(96, 165, 250, 0.22);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.08);
  letter-spacing: 0.04em;
}

h1 {
  font-size: clamp(1.5rem, 5vw, 2rem);
  line-height: 1.2;
  margin-bottom: 12px;
  color: #ffffff;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.subtitle {
  font-size: 0.98rem;
  line-height: 1.65;
  color: #94a3b8;
  margin-bottom: 32px;
}

/* Form */
.breach-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #cbd5e1;
  letter-spacing: 0.01em;
}

input[type="email"] {
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid rgba(51, 65, 85, 0.8);
  background: rgba(2, 6, 23, 0.6);
  color: #f8fafc;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="email"]::placeholder {
  color: #475569;
}

input[type="email"]:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.trust-note {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.5;
  margin-top: -2px;
}

/* Submit button */
button[type="submit"] {
  width: 100%;
  padding: 15px 18px;
  margin-top: 6px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: rgba(10, 15, 30, 0.75);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.02em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.25s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3),
              0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

button[type="submit"]:hover {
  background: rgba(20, 28, 50, 0.85);
  border-color: rgba(255, 255, 255, 0.32);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4),
              0 1px 0 rgba(255, 255, 255, 0.10) inset;
}

button[type="submit"]:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Result box */
.result {
  margin-top: 24px;
  padding: 20px;
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.10);
  color: #e2e8f0;
  line-height: 1.6;
  text-align: left;
}

.result.success {
  border-color: rgba(34, 197, 94, 0.25);
  background: rgba(20, 83, 45, 0.15);
}

.result.warning {
  border-color: rgba(239, 68, 68, 0.22);
  background: rgba(127, 29, 29, 0.15);
}

.result.loading {
  border-color: rgba(59, 130, 246, 0.25);
  background: rgba(30, 41, 59, 0.4);
}

.result.error {
  border-color: rgba(239, 68, 68, 0.22);
  background: rgba(127, 29, 29, 0.15);
}

/* Breach header */
.breach-header {
  font-size: 0.95rem;
  margin-bottom: 14px;
  color: #f8fafc;
}

/* Breach pill tags */
.breach-list-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.breach-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(239, 68, 68, 0.18);
  color: #fca5a5;
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
}

/* Toggle button */
.toggle-container {
  margin-top: 8px;
}

#toggleBtn {
  display: block;
  margin: 14px auto 0;
  padding: 10px 24px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  background: rgba(10, 15, 30, 0.65);
  color: rgba(255, 255, 255, 0.80);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.02em;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: all 0.25s ease;
}

#toggleBtn:hover {
  background: rgba(20, 28, 50, 0.80);
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

#toggleBtn:active {
  transform: translateY(0);
}

/* Loading spinner */
.loading-container {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  font-size: 0.95rem;
  color: #cbd5e1;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(148, 163, 184, 0.2);
  border-top: 2px solid #60a5fa;
  border-radius: 50%;
  animation: spin 1.2s linear infinite;
  flex-shrink: 0;
}

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

/* What Now section */
.what-now {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(148, 163, 184, 0.10);
}

.what-now-title {
  font-size: 1rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 6px;
}

.what-now-intro {
  font-size: 0.88rem;
  color: #64748b;
  margin-bottom: 20px;
  line-height: 1.6;
}

/* Action steps */
.action-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.step-num {
  min-width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #2563eb;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.action-step strong {
  display: block;
  font-size: 0.92rem;
  color: #e2e8f0;
  margin-bottom: 3px;
}

.action-step p {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.65;
  margin: 0;
}

/* No breach header */
.no-breach-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 1.05rem;
  color: #f8fafc;
  font-weight: 700;
}

.no-breach-icon {
  font-size: 1.4rem;
  color: #22c55e;
}

.no-breach-body {
  font-size: 0.92rem;
  color: #94a3b8;
  line-height: 1.65;
  margin-bottom: 24px;
}

/* Tirenify reach out CTA — breached state only */
.tirenify-cta {
  margin-top: 24px;
  padding: 18px 20px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(96, 165, 250, 0.18);
  text-align: center;
}

.tirenify-cta p {
  font-size: 0.9rem;
  color: #94a3b8;
  margin-bottom: 12px;
  line-height: 1.6;
}

.tirenify-cta a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: #e2e8f0;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.tirenify-cta a:hover {
  border-color: rgba(148, 163, 184, 0.35);
  color: #ffffff;
  background: rgba(30, 41, 59, 0.9);
}

.tirenify-cta svg {
  flex-shrink: 0;
}

/* Footer */
.footer-text {
  margin-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: #475569;
}

/* Social link */
.social-link {
  margin-top: 10px;
  text-align: center;
}

.social-link a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #475569;
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

/* Email opt-in container */
.email-opt-in {
  margin-top: 20px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(96, 165, 250, 0.20);
  overflow: hidden;
}

.opt-in-inner {
  padding: 24px;
}

.opt-in-title {
  font-size: 1rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 6px;
}

.opt-in-body {
  font-size: 0.88rem;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 18px;
}

#optInEmail {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid #334155;
  background: #0f172a;
  color: #f8fafc;
  font-size: 0.95rem;
  outline: none;
  margin-bottom: 12px;
  transition: border-color 0.2s ease;
}

#optInEmail:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.opt-in-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

#optInSkip {
  flex: 1;
  padding: 11px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: transparent;
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

#optInSkip:hover {
  border-color: rgba(148, 163, 184, 0.35);
  color: #94a3b8;
}

#optInSubmit {
  flex: 2;
  padding: 11px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(10, 15, 30, 0.75);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all 0.25s ease;
}

#optInSubmit:hover {
  background: rgba(20, 28, 50, 0.85);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

#optInSubmit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.opt-in-disclaimer {
  font-size: 0.78rem;
  color: #475569;
  text-align: center;
  line-height: 1.5;
}

/* Success and error states */
.opt-in-success {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  border-radius: 10px;
  background: rgba(20, 83, 45, 0.25);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: #86efac;
  font-size: 0.92rem;
  line-height: 1.5;
}

.opt-in-check {
  font-size: 1.2rem;
  color: #22c55e;
  flex-shrink: 0;
}

.opt-in-error {
  padding: 14px;
  border-radius: 10px;
  background: rgba(127, 29, 29, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #fca5a5;
  font-size: 0.88rem;
}

/* Mobile */
@media (max-width: 480px) {
  .opt-in-actions {
    flex-direction: column;
  }

  #optInSkip,
  #optInSubmit {
    flex: none;
    width: 100%;
  }
}

.social-link a:hover {
  color: #94a3b8;
}

/* Mobile */
@media (max-width: 640px) {
  .container {
    padding: 28px 20px;
    border-radius: 20px;
  }

  h1 {
    font-size: 1.5rem;
  }

  .subtitle {
    font-size: 0.92rem;
  }

  .action-step {
    gap: 10px;
  }

  .step-num {
    min-width: 24px;
    height: 24px;
    font-size: 0.72rem;
  }

  .action-step strong {
    font-size: 0.88rem;
  }

  .action-step p {
    font-size: 0.82rem;
  }

  .tirenify-cta {
    padding: 16px;
  }
}

/* Collapsible "What Now" section */
.what-now-collapsible {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(148, 163, 184, 0.10);
}

.what-now-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px;
  border: 1px solid rgba(96, 165, 250, 0.15);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.6);
  color: #f8fafc;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  letter-spacing: 0.01em;
}

.what-now-toggle:hover {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(96, 165, 250, 0.25);
}

.toggle-icon {
  font-size: 0.8rem;
  transition: transform 0.25s ease;
  flex-shrink: 0;
  margin-left: 12px;
}

.what-now-toggle.open .toggle-icon {
  transform: rotate(180deg);
}

.what-now-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  margin-top: 0;
}

.what-now-content.open {
  max-height: 1200px;
  opacity: 1;
  margin-top: 12px;
}
