.analyser-section {
  display: flex;
  justify-content: center;
  padding: 120px 20px;
  background: var(--bg);
}

.analyser-box {
  max-width: 520px;
  width: 100%;
  padding: 32px;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid rgba(102, 179, 255, 0.18);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.35), 0 0 30px rgba(51, 153, 255, 0.08);
  color: #ffffff;
  font-family: "Inter", sans-serif;
  text-align: center;
  box-sizing: border-box;
}

.analyser-box h2 {
  margin: 0 0 12px 0;
  font-size: 2rem;
  letter-spacing: 0.5px;
  color: #ffffff;
}

.analyser-box p {
  margin-bottom: 25px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

/* Input mit Toggle-Button */
.pw-input-wrap {
  position: relative;
  margin-bottom: 14px;
}

.pw-input-wrap input {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 48px 14px 14px;
  font-size: 1.1rem;
  background: var(--bg);
  border: 1px solid rgba(102, 179, 255, 0.25);
  border-radius: 14px;
  color: #66d9ff;
  font-family: monospace;
  outline: none;
  display: block;
  box-shadow: inset 0 0 12px rgba(51, 153, 255, 0.08);
  transition: border-color 0.3s ease;
}

.pw-input-wrap input:focus {
  border-color: #66d9ff;
  box-shadow: 0 0 15px rgba(102, 217, 255, 0.2);
}

.pw-eye {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(102, 179, 255, 0.55);
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color .2s;
}
.pw-eye:hover { color: #66d9ff; }

/* Stärke-Balken */
.pw-bar-wrap {
  width: 100%;
  background: rgba(255,255,255,.08);
  border-radius: 99px;
  height: 7px;
  margin-bottom: 10px;
  overflow: hidden;
}

.pw-bar {
  height: 100%;
  width: 0%;
  border-radius: 99px;
  transition: width .4s ease, background .4s ease;
}

#result {
  margin-bottom: 14px;
  font-size: 1.1rem;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(102, 217, 255, 0.3);
}

/* Zeichenklassen-Badges */
.pw-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 12px;
}

.pw-badge {
  font-size: .8rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 99px;
  border: 1px solid;
}

.pw-badge-on  { background: rgba(34,197,94,.12); border-color: #22c55e; color: #86efac; }
.pw-badge-off { background: rgba(100,116,139,.1); border-color: #475569; color: #64748b; }

/* Knackzeit */
.pw-cracktime {
  font-size: .88rem;
  font-weight: 600;
  margin-bottom: 14px;
  opacity: .9;
  word-break: break-all;
  overflow-wrap: break-word;
}

#suggestions {
  display: none;
  margin-top: 6px;
  text-align: left;
  padding: 16px 18px;
  background: var(--bg-card);
  border: 1px solid rgba(102, 179, 255, 0.12);
  border-radius: 14px;
  color: #f2f7ff;
  font-size: 0.9rem;
  line-height: 1.6;
  list-style-position: inside;
}

@media (max-width: 768px) {
  .analyser-box {
    padding: 24px 20px;
    width: 100%;
  }
  .analyser-box h1 {
    font-size: 1.6rem;
  }
  .analyser-section {
    padding: 60px 15px;
  }
}

/* ===== HIBP Button ===== */
.hibp-section {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(102, 179, 255, 0.12);
}

.hibp-section .main-btn {
  width: 100%;
  margin-top: 0;
  margin-bottom: 10px;
  padding: 13px 18px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #3399ff, #66d9ff);
  color: #0b1220;
  font-size: 1rem;
  font-weight: 700;
  font-family: "Inter", sans-serif;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 0 18px rgba(51, 153, 255, 0.45), 0 0 36px rgba(102, 217, 255, 0.2);
}
.hibp-section .main-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(51, 153, 255, 0.65), 0 0 52px rgba(102, 217, 255, 0.35);
}
.hibp-section .main-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.hibp-info {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  margin: 0 0 12px;
  line-height: 1.5;
}

.hibp-info strong { color: rgba(255, 255, 255, 0.7); }

.hibp-result {
  font-size: 0.9rem;
  line-height: 1.6;
  padding: 12px 16px;
  border-radius: 10px;
  text-align: left;
  display: none;
}

.hibp-result:not(:empty) { display: block; }

.hibp-danger {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.hibp-safe {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #86efac;
}

.hibp-warn {
  background: rgba(234, 179, 8, 0.1);
  border: 1px solid rgba(234, 179, 8, 0.35);
  color: #fde047;
}

/* Light theme */
[data-theme="light"] .hibp-info { color: #64748b; }
[data-theme="light"] .hibp-info strong { color: #334155; }
[data-theme="light"] .hibp-danger { background: rgba(239,68,68,0.08); color: #b91c1c; }
[data-theme="light"] .hibp-safe   { background: rgba(34,197,94,0.08); color: #15803d; }
[data-theme="light"] .hibp-warn   { background: rgba(234,179,8,0.08); color: #92400e; }