/* Breach Radar — public landing page styles */

.br-hero {
  position: relative;
  padding: 140px 24px 60px;
  text-align: center;
  overflow: hidden;
}
.br-hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 50% 30%, rgba(119, 103, 254, 0.35) 0%, transparent 60%),
    radial-gradient(40% 40% at 70% 80%, rgba(155, 143, 255, 0.18) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.br-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
}
.br-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(119, 103, 254, 0.15);
  border: 1px solid rgba(119, 103, 254, 0.4);
  color: #9b8fff;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.br-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #42ff9e;
  box-shadow: 0 0 8px #42ff9e;
}
.br-title {
  font-size: clamp(48px, 8vw, 96px);
  line-height: 1.05;
  margin: 0 0 18px;
  font-weight: 800;
}
.br-subtitle {
  font-size: clamp(16px, 2vw, 19px);
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.55;
}
.br-form {
  display: flex;
  gap: 10px;
  max-width: 540px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 8px;
  backdrop-filter: blur(20px);
}
.br-form input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 16px;
  padding: 12px 16px;
  font-family: inherit;
}
.br-form input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}
.br-form button {
  background: linear-gradient(135deg, #5a4ae0, #7767fe);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: transform 0.15s, box-shadow 0.15s;
  font-family: inherit;
}
.br-form button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(119, 103, 254, 0.4);
}
.br-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.br-meta {
  margin-top: 14px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.br-meta .dim {
  color: rgba(255, 255, 255, 0.35);
}

.br-results-section {
  padding: 20px 24px 40px;
}
.br-results-inner {
  max-width: 820px;
  margin: 0 auto;
}
.hidden {
  display: none !important;
}
.br-loading {
  text-align: center;
  padding: 40px 20px;
  color: rgba(255, 255, 255, 0.7);
}
.br-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(119, 103, 254, 0.2);
  border-top-color: #7767fe;
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.br-error {
  background: rgba(255, 107, 107, 0.12);
  border: 1px solid rgba(255, 107, 107, 0.4);
  color: #ff6b6b;
  border-radius: 12px;
  padding: 16px 20px;
  text-align: center;
}
.br-empty {
  text-align: center;
  padding: 40px 20px;
  background: rgba(66, 255, 158, 0.06);
  border: 1px solid rgba(66, 255, 158, 0.25);
  border-radius: 14px;
}
.br-empty h2 {
  color: #42ff9e;
  margin: 0 0 12px;
}
.br-empty p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 18px;
}
.br-results-header {
  text-align: center;
  margin-bottom: 24px;
}
.br-results-header h2 {
  margin: 0 0 8px;
  color: #ff6b6b;
}
.br-results-header p {
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
}
.br-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.br-result {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px 20px;
}
.br-result-name {
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  margin-bottom: 4px;
}
.br-result-date {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.br-result-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.br-field-chip {
  background: rgba(255, 107, 107, 0.15);
  border: 1px solid rgba(255, 107, 107, 0.35);
  color: #ff6b6b;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.br-after-results,
.br-empty .br-cta-link {
  text-align: center;
  margin-top: 28px;
  display: block;
}
.br-cta-link {
  display: inline-block;
  margin-top: 16px;
  background: linear-gradient(135deg, #5a4ae0, #7767fe);
  color: #fff;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
}

.br-info-section {
  padding: 60px 24px 80px;
  background: rgba(255, 255, 255, 0.02);
}
.br-info-inner {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.br-info-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 24px;
}
.br-info-card h3 {
  margin: 0 0 8px;
  color: #9b8fff;
  font-size: 16px;
}
.br-info-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  line-height: 1.55;
}

/* Modal */
.br-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.br-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 12, 0.78);
  backdrop-filter: blur(10px);
}
.br-modal-card {
  position: relative;
  z-index: 1;
  max-width: 460px;
  width: 100%;
  background: linear-gradient(135deg, #13131f, #0a0a12);
  border: 1px solid rgba(119, 103, 254, 0.4);
  border-radius: 20px;
  padding: 32px 28px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(119, 103, 254, 0.3);
}
.br-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
}
.br-modal-logo {
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
}
.br-modal-card h2 {
  font-size: 22px;
  margin: 0 0 12px;
  color: #fff;
}
.br-modal-card p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 22px;
}
.br-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.br-modal-store {
  flex: 1 1 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: #000;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 10px 16px;
  min-height: 56px;
  transition: transform 120ms ease, border-color 120ms ease;
}
.br-modal-store:hover {
  transform: translateY(-1px);
  border-color: rgba(119, 103, 254, 0.6);
}
.br-modal-store-android {
  background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
}
.br-modal-store-sub {
  font-size: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1;
}
.br-modal-store-name {
  font-size: 17px;
  font-weight: 700;
  margin-top: 2px;
  line-height: 1.1;
}
.br-modal-secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.7);
  padding: 12px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  margin-top: 12px;
  width: 100%;
}
@media (max-width: 380px) {
  .br-modal-actions { flex-direction: column; }
  .br-modal-store { flex: 1 1 auto; }
}
.br-modal-foot {
  margin-top: 16px;
  font-size: 12px;
}
.br-modal-foot.dim {
  color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 540px) {
  .br-form {
    flex-direction: column;
  }
  .br-form button {
    width: 100%;
  }
}

/* Cloudflare Turnstile widget */
.br-turnstile {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  min-height: 0;
}
.br-turnstile:empty { display: none; }


/* Identity (magic-link) UI */
.br-identity {
  max-width: 540px;
  margin: 18px auto 0;
}
.br-id-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}
.br-id-text {
  flex: 1;
  text-align: left;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}
.br-id-text strong { color: #fff; }
.br-id-btn {
  flex-shrink: 0;
  background: linear-gradient(135deg, #5a4ae0, #7767fe);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.br-id-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(119, 103, 254, 0.35);
}
.br-id-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.br-id-btn-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.85);
}
.br-id-btn-ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}
.br-id-sent {
  padding: 14px 16px;
  background: rgba(66, 255, 158, 0.06);
  border: 1px solid rgba(66, 255, 158, 0.25);
  border-radius: 12px;
  text-align: center;
}
.br-id-sent p {
  margin: 0 0 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}
.br-id-sent-link {
  display: inline-block;
  margin-bottom: 10px;
  color: #9b8fff;
  font-weight: 600;
  text-decoration: underline;
  word-break: break-all;
  font-size: 13px;
}
a.br-id-sent-link[href] { color: #42ff9e; }
@media (max-width: 560px) {
  .br-id-row { flex-direction: column; align-items: stretch; }
  .br-id-text { text-align: center; }
}
