/* ══════════════════════════════════════════════════════════
   Password Generator — Fuchsia #D946EF
   CSS namespace: .pwgen-*
   ══════════════════════════════════════════════════════════ */

/* ── Page wrapper ── */
.pwgen-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

/* ── Tabs ── */
.pwgen-tabs {
  display: flex;
  gap: 0.5rem;
  padding: 0.35rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  margin-bottom: 1.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.pwgen-tab {
  background: none;
  border: 1px solid transparent;
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.6rem 1.1rem;
  cursor: pointer;
  border-radius: 14px;
  transition: all 0.2s ease;
  white-space: nowrap;
  font-family: inherit;
  flex: 1;
  text-align: center;
}

.pwgen-tab:hover { color: rgba(255,255,255,0.8); background: rgba(255,255,255,0.06); }

.pwgen-tab.active {
  color: #fff;
  background: #D946EF;
  border-color: #D946EF;
  box-shadow: 0 2px 8px rgba(217, 70, 239, 0.3);
}

.pwgen-panel { display: none; }
.pwgen-panel.active { display: block; }

/* ── Shared section card ── */
.pwgen-section {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 1.25rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  margin-bottom: 1rem;
}

.pwgen-section-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #D946EF;
  margin-bottom: 1rem;
  font-weight: 600;
}

.pwgen-section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

/* ── Quick Start cards ── */
.pwgen-quickstart {
  margin-bottom: 1rem;
}

.pwgen-quickstart-grid {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pwgen-qs-card {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(217,70,239,0.06);
  border: 1px solid rgba(217,70,239,0.15);
  border-radius: 14px;
  padding: 0.5rem 0.9rem;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.82rem;
  font-family: inherit;
}

.pwgen-qs-card:hover {
  background: rgba(217,70,239,0.15);
  border-color: rgba(217,70,239,0.4);
  color: #D946EF;
}

.pwgen-qs-icon { font-size: 1rem; }
.pwgen-qs-name { white-space: nowrap; }

/* ── Tip after password ── */
.pwgen-tip {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(16,185,129,0.7);
  margin-top: 0.75rem;
  padding: 0.5rem;
  background: rgba(16,185,129,0.05);
  border-radius: 14px;
}

.pwgen-tip strong { color: #10B981; }

/* ── Mode pills ── */
.pwgen-mode-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pwgen-pill {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 0.55rem 1.1rem;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.85rem;
  font-family: inherit;
}

.pwgen-pill:hover {
  background: rgba(217,70,239,0.1);
  border-color: rgba(217,70,239,0.3);
  color: #fff;
}

.pwgen-pill.active {
  background: rgba(217,70,239,0.15);
  border-color: #D946EF;
  color: #D946EF;
}

/* ── Password display card ── */
.pwgen-display-card {
  background: rgba(217,70,239,0.04);
  border: 1px solid rgba(217,70,239,0.15);
  border-radius: 16px;
  padding: 1.5rem;
  margin: 1rem 0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.pwgen-password-wrap {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.pwgen-password {
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 1.4rem;
  color: #fff;
  word-break: break-all;
  line-height: 1.6;
  flex: 1;
  padding-right: 2.5rem;
  min-height: 2.4rem;
  user-select: all;
  -webkit-user-select: all;
}

.pwgen-password.masked {
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.1em;
}

.pwgen-eye-btn {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0.3rem;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.pwgen-eye-btn:hover { opacity: 1; }

/* ── Strength bar ── */
.pwgen-strength-bar-wrap {
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.6rem;
}

.pwgen-strength-bar {
  height: 100%;
  border-radius: 3px;
  transition: width 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
  width: 0%;
}

.pwgen-strength-bar.glow {
  box-shadow: 0 0 8px currentColor;
}

.pwgen-strength-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pwgen-strength-label {
  font-size: 0.85rem;
  font-weight: 600;
  transition: color 0.3s;
}

.pwgen-crack-time {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

/* ── Display actions ── */
.pwgen-display-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* ── Buttons ── */
.pwgen-btn {
  background: rgba(217,70,239,0.12);
  border: 1px solid rgba(217,70,239,0.25);
  border-radius: 14px;
  padding: 0.6rem 1.1rem;
  color: #D946EF;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.85rem;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.pwgen-btn:hover {
  background: rgba(217,70,239,0.22);
  border-color: #D946EF;
}

.pwgen-btn-primary {
  background: #D946EF;
  color: #fff;
  border-color: #D946EF;
}

.pwgen-btn-primary:hover {
  background: #C026D3;
  border-color: #C026D3;
}

.pwgen-btn-small {
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
}

.pwgen-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ── Slider ── */
.pwgen-slider-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.pwgen-slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

.pwgen-slider-val {
  color: #D946EF;
  font-weight: 700;
  font-size: 1rem;
}

.pwgen-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.1);
  outline: none;
}

.pwgen-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #D946EF;
  cursor: pointer;
  border: 2px solid #fff;
}

.pwgen-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #D946EF;
  cursor: pointer;
  border: 2px solid #fff;
}

/* ── Toggles ── */
.pwgen-toggles {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.pwgen-toggle {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
  user-select: none;
}

.pwgen-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.pwgen-toggle-slider {
  width: 36px;
  height: 20px;
  background: rgba(255,255,255,0.12);
  border-radius: 16px;
  position: relative;
  transition: background 0.2s;
  flex-shrink: 0;
}

.pwgen-toggle-slider::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  transition: transform 0.2s, background 0.2s;
}

.pwgen-toggle input:checked + .pwgen-toggle-slider {
  background: rgba(217,70,239,0.4);
}

.pwgen-toggle input:checked + .pwgen-toggle-slider::after {
  transform: translateX(16px);
  background: #D946EF;
}

/* ── Form fields ── */
.pwgen-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.pwgen-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.pwgen-input,
.pwgen-select {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 0.65rem 0.85rem;
  color: #fff;
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.pwgen-input:focus,
.pwgen-select:focus {
  outline: none;
  border-color: #D946EF;
}

.pwgen-input::placeholder { color: rgba(255,255,255,0.3); }

.pwgen-select {
  cursor: pointer;
  appearance: auto;
}

/* ── Hidden utility ── */
.pwgen-hidden { display: none !important; }

/* ── Controls grid ── */
.pwgen-controls-grid {
  margin-bottom: 1rem;
}

/* ── Bulk results ── */
.pwgen-bulk-results {
  margin-bottom: 1rem;
}

.pwgen-bulk-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
  max-height: 400px;
  overflow-y: auto;
}

.pwgen-bulk-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 0.5rem 0.75rem;
}

.pwgen-bulk-item-text {
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
  word-break: break-all;
  flex: 1;
  user-select: all;
  -webkit-user-select: all;
}

.pwgen-bulk-item-copy {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  opacity: 0.5;
  transition: opacity 0.2s;
  padding: 0.25rem;
}

.pwgen-bulk-item-copy:hover { opacity: 1; }

.pwgen-bulk-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* ── History ── */
.pwgen-history-section {
  margin-top: 0.5rem;
}

.pwgen-history {
  max-height: 300px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.pwgen-history-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  background: rgba(255,255,255,0.02);
  transition: background 0.15s;
}

.pwgen-history-item:hover {
  background: rgba(255,255,255,0.05);
}

.pwgen-history-item-text {
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  word-break: break-all;
  flex: 1;
}

.pwgen-history-item-copy {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.8rem;
  opacity: 0.4;
  transition: opacity 0.2s;
  padding: 0.2rem;
}

.pwgen-history-item-copy:hover { opacity: 1; }

.pwgen-history-item-strength {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.pwgen-muted {
  color: rgba(255,255,255,0.3);
  font-size: 0.85rem;
  text-align: center;
  padding: 1rem;
}

/* ══════════════════════════════════════════════════════════
   TAB 2: CHECK MY PASSWORD
   ══════════════════════════════════════════════════════════ */

.pwgen-check-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.pwgen-password-input-wrap {
  position: relative;
  margin-bottom: 0.75rem;
}

.pwgen-check-input {
  width: 100%;
  font-size: 1.1rem;
  padding: 0.85rem 3rem 0.85rem 0.85rem;
  box-sizing: border-box;
}

.pwgen-privacy-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: 14px;
  padding: 0.55rem 0.85rem;
  font-size: 0.8rem;
  color: #10B981;
}

/* ── Score ring ── */
.pwgen-check-score-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.pwgen-check-score-ring {
  position: relative;
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}

.pwgen-score-svg {
  width: 100%;
  height: 100%;
}

.pwgen-check-score-num {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
}

.pwgen-check-score-info {
  flex: 1;
}

.pwgen-check-score-label {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.pwgen-check-crack-times {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
}

.pwgen-crack-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.pwgen-crack-label { color: rgba(255,255,255,0.45); }
.pwgen-crack-value { font-weight: 600; color: rgba(255,255,255,0.8); }

/* ── Composition bars ── */
.pwgen-composition {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (max-width: 480px) {
  .pwgen-composition { grid-template-columns: 1fr; }
}

.pwgen-comp-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.pwgen-comp-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
}

.pwgen-comp-bar {
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
}

.pwgen-comp-bar-fill {
  height: 100%;
  border-radius: 2px;
  background: #D946EF;
  transition: width 0.4s;
}

/* ── Warnings & Suggestions ── */
.pwgen-warnings,
.pwgen-suggestions {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.pwgen-warning-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #FBBF24;
  padding: 0.4rem 0;
}

.pwgen-suggestion-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #10B981;
  padding: 0.4rem 0;
}

/* ══════════════════════════════════════════════════════════
   TAB 3: PASSPHRASE BUILDER
   ══════════════════════════════════════════════════════════ */

.pwgen-pp-intro {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.pwgen-pp-intro strong { color: #D946EF; }

.pwgen-pp-display-card {
  background: rgba(217,70,239,0.04);
  border: 1px solid rgba(217,70,239,0.15);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-align: center;
}

/* ── Word chips ── */
.pwgen-pp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.pwgen-pp-chip {
  background: rgba(217,70,239,0.12);
  border: 1px solid rgba(217,70,239,0.3);
  border-radius: 16px;
  padding: 0.6rem 1rem;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  font-family: inherit;
}

.pwgen-pp-chip:hover {
  background: rgba(217,70,239,0.25);
  border-color: #D946EF;
  transform: translateY(-2px);
}

.pwgen-pp-chip:hover::after {
  content: '🎲';
  position: absolute;
  top: -8px;
  right: -6px;
  font-size: 0.7rem;
}

@keyframes pwgen-chipPop {
  0% { transform: scale(0.85); opacity: 0.5; }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); opacity: 1; }
}

.pwgen-pp-chip.rerolled {
  animation: pwgen-chipPop 0.3s ease-out;
}

.pwgen-pp-full {
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  word-break: break-all;
  margin-bottom: 0.75rem;
  min-height: 1.5rem;
  user-select: all;
  -webkit-user-select: all;
}

.pwgen-pp-entropy {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1rem;
}

.pwgen-pp-entropy strong {
  color: #D946EF;
}

.pwgen-pp-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ── Passphrase strength breakdown ── */
.pwgen-pp-strength {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pwgen-pp-stat {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.pwgen-pp-stat-val {
  font-weight: 600;
  color: rgba(255,255,255,0.85);
}

/* ══════════════════════════════════════════════════════════
   FAQ
   ══════════════════════════════════════════════════════════ */

.pwgen-faq-section {
  margin-top: 2rem;
}

.pwgen-faq-title {
  font-size: 1.25rem;
  color: #D946EF;
  margin-bottom: 1rem;
}

.pwgen-faq-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.pwgen-faq-q {
  padding: 1rem 1.25rem;
  cursor: pointer;
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  font-size: 0.92rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pwgen-faq-q::-webkit-details-marker { display: none; }

.pwgen-faq-q::after {
  content: '▸';
  transition: transform 0.2s;
  color: #D946EF;
  font-size: 0.85rem;
}

.pwgen-faq-item[open] .pwgen-faq-q::after {
  transform: rotate(90deg);
}

.pwgen-faq-a {
  padding: 0 1.25rem 1rem;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.65;
}

/* ══════════════════════════════════════════════════════════
   CROSS-LINKS
   ══════════════════════════════════════════════════════════ */

.pwgen-crosslinks {
  margin-top: 2rem;
}

.pwgen-crosslinks-title {
  font-size: 1.1rem;
  color: #D946EF;
  margin-bottom: 1rem;
}

.pwgen-crosslinks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

@media (max-width: 640px) {
  .pwgen-crosslinks-grid { grid-template-columns: 1fr; }
}

.pwgen-crosslink-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 1rem;
  text-decoration: none;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.pwgen-crosslink-card:hover {
  background: rgba(217,70,239,0.06);
  border-color: rgba(217,70,239,0.2);
}

.pwgen-crosslink-card span { font-size: 1.5rem; }
.pwgen-crosslink-card strong { color: #fff; font-size: 0.9rem; }
.pwgen-crosslink-card p { color: rgba(255,255,255,0.45); font-size: 0.8rem; margin: 0; }

.pwgen-feedback-line {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

.pwgen-feedback-line a {
  color: #D946EF;
  text-decoration: none;
}

.pwgen-feedback-line a:hover { text-decoration: underline; }

/* ══════════════════════════════════════════════════════════
   PRINT
   ══════════════════════════════════════════════════════════ */

@media print {
  .pwgen-tabs, .pwgen-display-actions, .pwgen-history-section,
  .pwgen-bulk-results, .tool-hero, .pwgen-crosslinks,
  .pwgen-faq-section, .pwgen-pp-actions, .pwgen-mode-pills { display: none !important; }
  .pwgen-display-card { border: 1px solid #ccc; background: #fff; }
  .pwgen-password { color: #000; }
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */

@media (max-width: 640px) {
  .pwgen-tab {
    font-size: 0.82rem;
    padding: 0.6rem 0.85rem;
  }
  .pwgen-password {
    font-size: 1.1rem;
  }
  .pwgen-check-score-card {
    flex-direction: column;
    text-align: center;
  }
  .pwgen-display-actions {
    justify-content: center;
  }
  .pwgen-pp-chip {
    font-size: 0.9rem;
    padding: 0.5rem 0.85rem;
  }
}

/* ── Pagefind searchable block ── */
.pwgen-searchable { display: none; }

/* ── Focus-visible for accessibility ── */
.pwgen-tab:focus-visible,
.pwgen-btn:focus-visible,
.pwgen-pill:focus-visible,
.pwgen-pp-chip:focus-visible,
.pwgen-eye-btn:focus-visible {
  outline: 2px solid #D946EF;
  outline-offset: 2px;
}

.pwgen-input:focus-visible,
.pwgen-select:focus-visible,
.pwgen-slider:focus-visible {
  outline: 2px solid #D946EF;
  outline-offset: 1px;
}

/* ── Keyboard shortcut hint ── */
.pwgen-kbd-hint {
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.25);
  margin-top: 0.5rem;
}

.pwgen-kbd-hint kbd {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
  font-family: inherit;
  font-size: 0.7rem;
}

/* ── Dark/light preview toggle ── */
.pwgen-preview-toggle {
  display: flex;
  gap: 0.25rem;
  justify-content: flex-end;
  margin-bottom: 0.5rem;
}

.pwgen-bg-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.pwgen-bg-btn:hover { border-color: rgba(217,70,239,0.3); }

.pwgen-bg-btn.active {
  border-color: #D946EF;
  background: rgba(217,70,239,0.1);
}

/* ── Word count hint ── */
.pwgen-word-hint {
  font-size: 0.78rem;
  color: rgba(217,70,239,0.7);
  margin-top: 0.4rem;
  transition: color 0.3s;
}

.pwgen-word-hint.warning { color: #FBBF24; }
.pwgen-word-hint.ok { color: #10B981; }

/* ── Strength percentile ── */
.pwgen-strength-percentile,
.pwgen-check-percentile {
  font-size: 0.8rem;
  font-weight: 600;
  transition: color 0.3s;
}

.pwgen-check-percentile {
  margin-bottom: 0.5rem;
}

/* ── Recipe mode ── */
.pwgen-recipe-help {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.75rem;
}

.pwgen-recipe-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.pwgen-recipe-input {
  font-family: 'Consolas', 'Monaco', monospace;
  letter-spacing: 0.03em;
}

.pwgen-recipe-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
}

.pwgen-recipe-legend strong {
  color: #D946EF;
  font-family: 'Consolas', monospace;
}

/* ── HIBP Breach check ── */
.pwgen-breach-bad {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: 14px;
  padding: 0.75rem 1rem;
  color: #EF4444;
  font-size: 0.88rem;
}

.pwgen-breach-bad strong { color: #FCA5A5; }

.pwgen-breach-good {
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: 14px;
  padding: 0.75rem 1rem;
  color: #10B981;
  font-size: 0.88rem;
}

.pwgen-breach-info {
  background: rgba(251,191,36,0.08);
  border: 1px solid rgba(251,191,36,0.2);
  border-radius: 14px;
  padding: 0.75rem 1rem;
  color: #FBBF24;
  font-size: 0.82rem;
}
