:root {
  --bg: #0f1724;
  --card: #0b1220;
  --muted: #9aa7bf;
  --accent: #7c3aed;    /* purple */
  --accent-2: #06b6d4;  /* teal */
  --glass: rgba(255,255,255,0.04);
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
 font-family: "Google Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: 
    radial-gradient(1200px 600px at 10% 10%, rgba(124,58,237,0.12), transparent),
    radial-gradient(900px 400px at 90% 90%, rgba(6,182,212,0.08), transparent),
    var(--bg);
  color: #e6eef8;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.card {
  width: 100%;
  max-width: 760px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 10px 30px rgba(2,6,23,0.6), inset 0 1px 0 rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
}

header {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.logo {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  color: #FFFFFF;
  box-shadow: 0 6px 18px rgba(7,10,25,0.6);
}

h1 {
  font-size: 20px;
  margin: 0;
}

p.lead {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.output {
  background: var(--glass);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255,255,255,0.03);
  margin-bottom: 16px;
}

.pw-text {
  font-family: "Google Sans Code", ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
  font-size: 28px;
  word-break: break-all;
}

button.btn {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border: none;
  padding: 10px 14px;
  border-radius: 10px;
  color: white;
  font-weight: 600;
  cursor: pointer;
}

button.ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.06);
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
}

.controls {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 18px;
}

.panel {
  background: rgba(255,255,255,0.02);
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.02);
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

label {
  font-size: 15px;
  color: var(--muted);
}

.range-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

input[type=range] {
  width: 100%;
}

.chip {
  background: rgba(255,255,255,0.03);
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.02);
  min-width: 48px;
  text-align: center;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.option {
  display: flex;
  gap: 10px;
  align-items: center;
}

input[type=checkbox] {
  width: 18px;
  height: 18px;
}

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

.meter {
  height: 10px;
  background: rgba(255,255,255,0.03);
  border-radius: 999px;
  overflow: hidden;
  flex: 1;
}

.meter > i {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ff6b6b, #ffde59);
  transition: width .25s ease;
}

.strength-text {
  font-size: 13px;
  color: var(--muted);
  min-width: 84px;
  text-align: right;
}

footer {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.tiny {
  font-size: 12px;
  color: var(--muted);
}

@media (max-width: 720px) {
  .controls {
    grid-template-columns: 1fr;
  }
  .row {
    flex-direction: column;
    align-items: flex-start;
  }
  footer {
    justify-content: flex-start;
  }
}
