:root {
      --bg: #0b1220;
      --card: #111a2e;
      --soft: #1b2742;
      --accent: #4f8cff;
      --accent-2: #7c3aed;
      --text: #e6edf7;
      --muted: #9fb0d0;
      --success: #22c55e;
      --warn: #f59e0b;
      --danger: #ef4444;
    }

    * { box-sizing: border-box; margin: 0; padding: 0; font-family: Inter, system-ui, Arial; }

    body {
      background: radial-gradient(circle at top, #0f172a, #020617);
      color: var(--text);
      display: flex;
      justify-content: center;
      align-items: center;
      min-height: 100vh;
      padding: 20px;
    }

    .card {
      width: 380px;
      background: var(--card);
      border-radius: 16px;
      padding: 24px;
      box-shadow: 0 20px 40px rgba(0,0,0,0.6);
      border: 1px solid rgba(255,255,255,0.05);
    }

    h1 {
      font-size: 20px;
      text-align: center;
      margin-bottom: 6px;
    }

    abbr {
      cursor: help;
      text-decoration: none;
    }

    .subtitle {
      text-align: center;
      font-size: 12px;
      color: var(--muted);
      margin-bottom: 20px;
    }

    .output-box {
      background: var(--soft);
      padding: 14px;
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 15px;
    }

    .password {
      font-size: 15px;
      word-break: break-all;
    }

    .icon-btn {
      cursor: pointer;
      font-size: 16px;
      opacity: 0.7;
      transition: 0.2s;
    }

    .icon-btn:hover { opacity: 1; }

    .control { margin-bottom: 14px; }

    label {
      display: flex;
      justify-content: space-between;
      font-size: 13px;
      margin-bottom: 6px;
      color: var(--muted);
    }

    input[type="range"] {
      width: 100%;
    }

    .options {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
      margin-bottom: 10px;
    }

    .option {
      background: var(--soft);
      padding: 8px;
      border-radius: 8px;
      display: flex;
      justify-content: space-between;
      font-size: 13px;
    }

    .strength-bar {
      height: 6px;
      border-radius: 4px;
      margin-top: 10px;
      background: #1f2937;
      overflow: hidden;
    }

    .strength-fill {
      height: 100%;
      width: 0%;
      transition: 0.3s;
    }

    .strength-text {
      text-align: right;
      font-size: 12px;
      margin-top: 4px;
      color: var(--muted);
    }

    .history {
      margin-top: 15px;
      font-size: 12px;
      color: var(--muted);
    }

    .history div {
      background: var(--soft);
      padding: 6px;
      border-radius: 6px;
      margin-top: 5px;
      font-size: 11px;
      word-break: break-all;
    }
