/* ===== Theme tokens ===== */
:root {
  --accent: #7c5cfc;
  --accent-2: #5b3fd4;
  --accent-soft: rgba(124, 92, 252, 0.18);
  --success: #66bb6a;
  --warning: #ffa726;
  --danger: #ff4d4d;
  --info: #26d0ce;
  --radius: 18px;
  --font-mono: 'Consolas', 'Courier New', monospace;
}

[data-theme="dark"] {
  --bg-1: #0f0c29;
  --bg-2: #302b63;
  --bg-3: #24243e;
  --card-bg: rgba(255, 255, 255, 0.07);
  --card-border: rgba(255, 255, 255, 0.1);
  --card-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  --text: #fff;
  --text-dim: rgba(255, 255, 255, 0.55);
  --text-faint: rgba(255, 255, 255, 0.35);
  --field-bg: rgba(0, 0, 0, 0.35);
  --field-border: rgba(255, 255, 255, 0.14);
  --hover-bg: rgba(255, 255, 255, 0.12);
  --track-bg: rgba(255, 255, 255, 0.14);
  --chip-bg: rgba(255, 255, 255, 0.06);
  --orb-opacity: 0.35;
}

[data-theme="light"] {
  --bg-1: #e7ebff;
  --bg-2: #f3f4fb;
  --bg-3: #dfe4f8;
  --card-bg: rgba(255, 255, 255, 0.75);
  --card-border: rgba(255, 255, 255, 0.85);
  --card-shadow: 0 12px 40px rgba(60, 72, 160, 0.18);
  --text: #1b1f3a;
  --text-dim: rgba(27, 31, 58, 0.6);
  --text-faint: rgba(27, 31, 58, 0.4);
  --field-bg: rgba(255, 255, 255, 0.85);
  --field-border: rgba(27, 31, 58, 0.14);
  --hover-bg: rgba(27, 31, 58, 0.08);
  --track-bg: rgba(27, 31, 58, 0.12);
  --chip-bg: rgba(27, 31, 58, 0.05);
  --orb-opacity: 0.22;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  direction: ltr;
}

body {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  background: linear-gradient(135deg, var(--bg-1), var(--bg-2), var(--bg-3));
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text);
  transition: background 0.4s ease;
  padding: 24px 0;
}

/* ===== Decorative orbs ===== */
.bg-orbs {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: var(--orb-opacity);
  transition: opacity 0.4s ease;
}

.orb-1 {
  width: 340px;
  height: 340px;
  background: #7c5cfc;
  top: -100px;
  left: -80px;
  animation: float 14s ease-in-out infinite;
}

.orb-2 {
  width: 280px;
  height: 280px;
  background: #26d0ce;
  bottom: -80px;
  right: -60px;
  animation: float 18s ease-in-out infinite reverse;
}

.orb-3 {
  width: 220px;
  height: 220px;
  background: #ffa726;
  top: 45%;
  left: 55%;
  animation: float 22s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -25px) scale(1.08); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ===== Layout ===== */
.main-layout {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 28px;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 20px;
}

.main-layout > .container {
  max-width: 440px;
  padding: 0;
  flex: 0 1 440px;
}

.main-layout > .container-wide {
  max-width: 760px;
  padding: 0;
  flex: 1 1 520px;
}

.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  padding: 16px 20px;
}

.card {
  background: var(--card-bg);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--card-border);
  animation: cardIn 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ===== Header ===== */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

.app-header h1 {
  font-size: 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.app-header h1 svg {
  color: var(--accent);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--field-border);
  border-radius: 12px;
  background: var(--field-bg);
  color: var(--text-dim);
  cursor: pointer;
  transition: background 0.25s, color 0.25s, transform 0.15s, border-color 0.25s;
}

.icon-btn:hover {
  background: var(--hover-bg);
  color: var(--text);
}

.icon-btn:active {
  transform: scale(0.92);
}

.icon-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ===== Tabs ===== */
[hidden] {
  display: none !important;
}

.hidden {
  display: none !important;
}

.tabs {
  display: flex;
  gap: 4px;
  background: var(--chip-bg);
  border: 1px solid var(--field-border);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 22px;
}

.tab {
  flex: 1;
  padding: 9px 6px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}

.tab:hover {
  color: var(--text);
}

.tab.active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 3px 12px rgba(124, 92, 252, 0.35);
}

.tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.tab-panel.active {
  animation: panelIn 0.3s ease;
}

@keyframes panelIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Passphrase ===== */
.phrase-input {
  font-size: 14px !important;
}

.option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
}

.option-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.sep-chips {
  display: flex;
  gap: 6px;
}

.sep-chip {
  min-width: 40px;
  padding: 6px 10px;
  border: 1px solid var(--field-border);
  border-radius: 8px;
  background: var(--chip-bg);
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.sep-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.sep-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ===== Audit ===== */
.audit-input {
  font-size: 15px !important;
}

.audit-suggestions {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.audit-suggestions:empty {
  display: none;
}

.audit-suggestions li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--warning);
  background: rgba(255, 167, 38, 0.08);
  border: 1px solid rgba(255, 167, 38, 0.25);
  border-radius: 8px;
  padding: 8px 12px;
  animation: slideUp 0.25s ease;
}

.audit-suggestions li::before {
  content: '!';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--warning);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.audit-note {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--text-faint);
  margin-top: 4px;
}

.audit-note svg {
  color: var(--success);
  flex-shrink: 0;
}

/* ===== Theme toggle: show the icon matching current theme ===== */
.icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }

/* ===== Password display ===== */
.password-display {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.password-display input {
  flex: 1;
  min-width: 0;
  padding: 14px 16px;
  border: 2px solid var(--field-border);
  border-radius: 12px;
  background: var(--field-bg);
  color: var(--text);
  font-size: 17px;
  font-family: var(--font-mono);
  letter-spacing: 1px;
  outline: none;
  transition: border-color 0.3s, transform 0.2s;
  text-align: left;
}

.password-display input:focus {
  border-color: var(--accent);
}

.password-display input.updated {
  animation: passFadeIn 0.3s ease;
}

@keyframes passFadeIn {
  from { opacity: 0.4; transform: translateY(-3px); }
  to { opacity: 1; transform: translateY(0); }
}

.copy-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: none;
  color: #fff;
}

.copy-btn:hover {
  background: linear-gradient(135deg, #8a6cff, #6a4de6);
  color: #fff;
}

.copy-btn .icon-check { display: none; }

.copy-btn.copied {
  background: var(--success);
  animation: pop 0.3s ease;
}

.copy-btn.copied .icon-copy { display: none; }
.copy-btn.copied .icon-check { display: block; }

@keyframes pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.18); }
  100% { transform: scale(1); }
}

/* ===== Strength ===== */
.strength-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.strength-bar {
  flex: 1;
  height: 8px;
  background: var(--track-bg);
  border-radius: 6px;
  overflow: hidden;
}

.strength-bar div {
  height: 100%;
  width: 0%;
  border-radius: 6px;
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1), background 0.45s ease;
}

#strengthText {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
}

.meta-chips {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.chip {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  background: var(--chip-bg);
  border: 1px solid var(--field-border);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  color: var(--text-dim);
}

.chip-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-faint);
}

/* ===== Length ===== */
.length-control {
  margin-bottom: 20px;
}

.length-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.length-head label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.length-badge {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
  padding: 2px 12px;
  border-radius: 999px;
  transition: transform 0.15s ease;
}

.length-badge.bump {
  animation: bump 0.25s ease;
}

@keyframes bump {
  0% { transform: scale(1); }
  50% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

.length-control input[type="range"] {
  width: 100%;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 4px;
  outline: none;
  cursor: pointer;
}

.length-control input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: transform 0.2s;
}

.length-control input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.length-control input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

.length-presets {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.preset-chip {
  flex: 1;
  padding: 6px 0;
  border: 1px solid var(--field-border);
  border-radius: 8px;
  background: var(--chip-bg);
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.preset-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.preset-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ===== Options (toggle switches) ===== */
.options {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 22px;
}

.switch {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s;
  user-select: none;
}

.switch:hover {
  background: var(--hover-bg);
}

.switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.switch .track {
  flex-shrink: 0;
  width: 40px;
  height: 22px;
  border-radius: 999px;
  background: var(--track-bg);
  position: relative;
  transition: background 0.25s;
}

.switch .track::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.switch input:checked + .track {
  background: var(--accent);
}

.switch input:checked + .track::after {
  transform: translateX(18px);
}

.switch input:focus-visible + .track {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.switch-label {
  font-size: 14px;
  color: var(--text-dim);
  transition: color 0.2s;
}

.switch-label small {
  display: block;
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 1px;
}

.switch input:checked ~ .switch-label {
  color: var(--text);
  font-weight: 600;
}

/* ===== Generate button ===== */
.generate-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.3s, filter 0.2s;
}

.generate-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(124, 92, 252, 0.45);
}

.generate-btn:active:not(:disabled) {
  transform: translateY(0);
}

.generate-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.generate-btn:disabled svg {
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== History ===== */
.history-section {
  margin-top: 24px;
  border-top: 1px solid var(--field-border);
  padding-top: 14px;
}

.history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.history-header h3 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-faint);
}

.text-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  color: var(--text-faint);
  font-size: 12px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.text-btn:hover {
  color: var(--danger);
  background: rgba(255, 77, 77, 0.1);
}

#historyList {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#historyList li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 9px 12px;
  background: var(--chip-bg);
  border: 1px solid transparent;
  border-radius: 9px;
  cursor: pointer;
  overflow: hidden;
  transition: background 0.2s, transform 0.15s, border-color 0.2s;
  animation: slideUp 0.3s ease backwards;
  direction: ltr;
  text-align: left;
}

#historyList li:hover {
  background: var(--hover-bg);
  border-color: var(--field-border);
}

#historyList li:active {
  transform: scale(0.97);
}

#historyList li span.pass-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#historyList li.copied {
  background: rgba(102, 187, 106, 0.14);
  border-color: rgba(102, 187, 106, 0.35);
}

.copy-count {
  font-size: 10px;
  color: var(--success);
  font-weight: 700;
  flex-shrink: 0;
}

.empty-note {
  display: none;
  font-size: 13px;
  color: var(--text-faint);
  text-align: center;
  padding: 10px 0;
}

.empty-note.show {
  display: block;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Footer ===== */
.app-footer {
  text-align: center;
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-faint);
}

.app-footer code {
  font-family: var(--font-mono);
  background: var(--chip-bg);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ===== SEO article ===== */
.container-wide {
  max-width: 720px;
}

.seo-card {
  margin-top: 0;
  text-align: left;
}

.seo-card h2 {
  font-size: 19px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.seo-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.seo-card p strong {
  color: var(--text);
}

.seo-card p code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--chip-bg);
  border: 1px solid var(--field-border);
  padding: 1px 6px;
  border-radius: 5px;
  color: var(--accent);
}

.faq {
  margin-top: 20px;
}

.faq h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

.faq details {
  border: 1px solid var(--field-border);
  border-radius: 10px;
  background: var(--chip-bg);
  margin-bottom: 8px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq details:hover {
  border-color: var(--accent);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: color 0.2s;
}

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

.faq summary::after {
  content: '+';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 15px;
  font-weight: 700;
  transition: transform 0.25s ease, background 0.25s;
}

.faq details[open] summary {
  color: var(--accent);
}

.faq details[open] summary::after {
  content: '−';
  transform: rotate(180deg);
  background: var(--accent);
  color: #fff;
}

.faq details p {
  padding: 0 14px 12px;
  font-size: 13px;
  margin-bottom: 0;
}

/* ===== Blog navigation link (main app header) ===== */
.blog-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  text-decoration: none;
  border: 1px solid var(--field-border);
  border-radius: 12px;
  background: var(--field-bg);
  transition: color 0.25s, border-color 0.25s, background 0.25s, transform 0.15s;
  white-space: nowrap;
}

.blog-nav-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.blog-nav-link:active {
  transform: translateY(0);
}

.blog-nav-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ===== Blog pages (listing + article) ===== */
.blog-page {
  max-width: 860px;
}

.blog-head h1 {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.blog-head p {
  margin-bottom: 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  padding: 22px 20px;
}

.blog-card h2 {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 8px;
}

.blog-card h2 a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}

.blog-card h2 a:hover {
  color: var(--accent);
}

.blog-meta {
  font-size: 12px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 8px;
}

.blog-excerpt {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-dim);
  margin-bottom: 14px;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  padding: 8px 0;
  transition: color 0.2s, transform 0.15s;
}

.read-more:hover {
  color: var(--accent-2);
  transform: translateX(2px);
}

.read-more:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  text-decoration: none;
  padding: 8px 0;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--accent);
}

.back-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ===== Single article ===== */
.article-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.article h1 {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 6px;
}

.article .blog-meta {
  margin-bottom: 20px;
}

.article-content {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-dim);
}

.article-content h2 {
  font-size: 19px;
  font-weight: 600;
  color: var(--text);
  margin: 26px 0 10px;
}

.article-content p {
  margin-bottom: 14px;
}

.article-content ul {
  margin: 0 0 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.article-content li::marker {
  color: var(--accent);
}

.article-content a {
  color: var(--accent);
}

.article-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--field-border);
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: rgba(0, 0, 0, 0.88);
  color: #fff;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  transition: all 0.35s ease;
  z-index: 1000;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== Responsive ===== */
@media (max-width: 480px) {
  body {
    padding: 12px 0;
  }

  .main-layout {
    padding: 8px 12px;
    gap: 20px;
  }

  .card {
    padding: 22px 16px;
    border-radius: 16px;
  }

  .app-header h1 {
    font-size: 17px;
  }

  .blog-nav-text {
    display: none;
  }

  .password-display input {
    font-size: 14px;
    padding: 12px 12px;
  }

  .preset-chip {
    font-size: 11px;
  }
}
