/* =======================================================================
   /tools/privacy.css — privacy hub aesthetic.
   Layered on top of /style.css + /tools/tools.css.
   Calm slate + emerald accents, trust-first design.
   ======================================================================= */

:root {
  --priv-bg:       #f8fafc;
  --priv-deep:     #0f172a;
  --priv-emerald:  #059669;
  --priv-emerald-soft: #d1fae5;
  --priv-blue:     #0ea5e9;        /* sky (semantic: "email" category) */
  --priv-blue-soft: #e0f2fe;
  --priv-amber:    #d97706;
  --priv-amber-soft: #fef3c7;
  --priv-violet:   #7c3aed;
  --priv-violet-soft: #ede9fe;
}

/* ---- Hub hero ---- */
.privacy-hero {
  background: radial-gradient(ellipse at top, rgba(5, 150, 105, 0.06) 0%, transparent 60%),
              linear-gradient(180deg, var(--surface), transparent);
  padding: 64px 20px 28px;
  text-align: center;
  max-width: 960px;
  margin: 0 auto;
}
.privacy-trust-pill {
  display: inline-block;
  background: var(--priv-emerald-soft);
  color: #047857;
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
  letter-spacing: 0.2px;
}
.privacy-hero h1 {
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.12;
  margin: 0 0 14px;
  color: var(--text);
  font-weight: 800;
  letter-spacing: -0.5px;
}
.privacy-hero .lede {
  font-size: clamp(15px, 2vw, 17.5px);
  color: var(--text-muted);
  margin: 0 auto 24px;
  max-width: 620px;
  line-height: 1.6;
}
.privacy-hero-stats {
  display: inline-flex;
  gap: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 22px;
  margin-top: 4px;
  box-shadow: var(--shadow-sm);
}
.privacy-hero-stats div { text-align: center; }
.privacy-hero-stats b {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: var(--priv-emerald);
  line-height: 1;
}
.privacy-hero-stats span {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

/* ---- Category filter ---- */
.privacy-categories {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 auto 28px;
  max-width: 720px;
  padding: 0 20px;
}
.privacy-categories button {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}
.privacy-categories button:hover {
  border-color: var(--priv-emerald);
  color: var(--priv-emerald);
}
.privacy-categories button[aria-pressed="true"] {
  background: var(--priv-emerald);
  border-color: var(--priv-emerald);
  color: #fff;
}

/* ---- Privacy tool cards ---- */
.tool-card.privacy-card {
  padding: 22px 20px;
  gap: 12px;
}
.tool-card.privacy-card .icon-box.passwords  { background: var(--priv-amber-soft); color: var(--priv-amber); }
.tool-card.privacy-card .icon-box.email      { background: var(--priv-blue-soft); color: var(--priv-blue); }
.tool-card.privacy-card .icon-box.identity   { background: var(--priv-emerald-soft); color: var(--priv-emerald); }
.tool-card.privacy-card .icon-box.documents  { background: var(--priv-violet-soft); color: var(--priv-violet); }
.tool-card.privacy-card .cat-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: -4px;
}
.tool-card.privacy-card h2 { font-size: 16px; }

/* ---- Trust section ---- */
.trust-section {
  margin: 60px auto 0;
  max-width: 1080px;
  padding: 40px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
}
.trust-section h2 {
  font-size: clamp(22px, 3vw, 28px);
  text-align: center;
  margin: 0 0 28px;
  color: var(--text);
  font-weight: 800;
}
.trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
@media (min-width: 640px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .trust-grid { grid-template-columns: repeat(4, 1fr); } }
.trust-item {
  text-align: center;
  padding: 4px;
}
.trust-icon {
  font-size: 32px;
  margin-bottom: 12px;
  background: var(--priv-emerald-soft);
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.trust-item h3 {
  font-size: 15px;
  margin: 0 0 6px;
  color: var(--text);
  font-weight: 700;
}
.trust-item p {
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
}

/* ---- Apps funnel ---- */
.apps-funnel {
  margin: 40px auto 0;
  max-width: 1080px;
  background: linear-gradient(135deg, var(--priv-blue-soft), var(--priv-violet-soft));
  border-radius: 20px;
  padding: 28px 32px;
}
.apps-funnel-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}
@media (max-width: 640px) { .apps-funnel-inner { grid-template-columns: 1fr; text-align: center; } }
.apps-funnel h2 { font-size: 20px; margin: 0 0 4px; color: var(--text); font-weight: 800; }
.apps-funnel p { font-size: 14px; color: var(--text-muted); margin: 0; line-height: 1.5; }
.apps-funnel-cta {
  background: var(--priv-deep);
  color: #fff;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14.5px;
  white-space: nowrap;
  transition: transform 0.15s ease;
}
.apps-funnel-cta:hover { transform: translateY(-2px); }

/* ---- Privacy tool page layout ---- */
.privacy-tool {
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 20px 60px;
}
.privacy-tool .breadcrumb { font-size: 13px; color: var(--text-subtle); margin: 14px 0 0; }
.privacy-tool .breadcrumb a { color: var(--text-muted); text-decoration: none; }
.privacy-tool .breadcrumb a:hover { color: var(--priv-emerald); }
.privacy-tool h1 {
  font-size: clamp(26px, 4vw, 36px);
  margin: 16px 0 8px;
  font-weight: 800;
  color: var(--text);
}
.privacy-tool > .intro {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0 0 22px;
}
.privacy-tool .local-only-pill {
  display: inline-block;
  background: var(--priv-emerald-soft);
  color: #047857;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  margin: 0 0 10px;
}

/* ---- Specific tool components ---- */

/* Strength meter */
.strength-meter {
  height: 10px;
  border-radius: 5px;
  background: var(--surface-2);
  overflow: hidden;
  margin-top: 8px;
}
.strength-meter > div {
  height: 100%;
  border-radius: 5px;
  transition: width 0.3s ease, background 0.3s ease;
  width: 0;
  background: #ef4444;
}
.strength-meter.s0 > div { width: 8%;   background: #dc2626; }
.strength-meter.s1 > div { width: 25%;  background: #ef4444; }
.strength-meter.s2 > div { width: 50%;  background: #f59e0b; }
.strength-meter.s3 > div { width: 75%;  background: #84cc16; }
.strength-meter.s4 > div { width: 100%; background: var(--priv-emerald); }
.strength-label {
  font-size: 13px;
  font-weight: 700;
  margin-top: 8px;
  color: var(--text);
}
.strength-label .s0 { color: #dc2626; }
.strength-label .s1 { color: #ef4444; }
.strength-label .s2 { color: #d97706; }
.strength-label .s3 { color: #84cc16; }
.strength-label .s4 { color: var(--priv-emerald); }

/* Generator output */
.gen-output {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-size: 15px;
  color: var(--text);
  word-break: break-all;
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.gen-output .gen-value { flex: 1; }
.gen-output button {
  background: var(--priv-emerald);
  color: #fff;
  border: none;
  padding: 7px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 12.5px;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}
.gen-output button:hover { background: #047857; }
.gen-list { display: grid; gap: 8px; margin-top: 12px; }

/* Vault entries */
.vault-list { display: grid; gap: 8px; margin-top: 12px; }
.vault-entry {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  align-items: center;
}
.vault-entry .v-site { font-weight: 700; color: var(--text); font-size: 14.5px; }
.vault-entry .v-user { font-size: 13px; color: var(--text-muted); grid-column: 1; }
.vault-entry .v-actions { display: flex; gap: 6px; grid-row: span 2; }
.vault-entry .v-actions button {
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.vault-entry .v-actions button:hover { color: var(--priv-emerald); border-color: var(--priv-emerald); }

/* Risk score gauge */
.risk-gauge {
  background: var(--surface-2);
  border-radius: 14px;
  padding: 22px;
  text-align: center;
  margin: 14px 0;
}
.risk-gauge .score { font-size: 56px; font-weight: 800; line-height: 1; }
.risk-gauge .score.low  { color: var(--priv-emerald); }
.risk-gauge .score.med  { color: var(--priv-amber); }
.risk-gauge .score.high { color: #dc2626; }
.risk-gauge .score-label { font-size: 14px; color: var(--text-muted); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.6px; font-weight: 700; }
.risk-factors { margin-top: 16px; display: grid; gap: 8px; }
.risk-factors li { list-style: none; padding: 8px 12px; background: var(--surface); border-radius: 8px; font-size: 13.5px; display: flex; justify-content: space-between; }
.risk-factors li .impact.good { color: var(--priv-emerald); font-weight: 700; }
.risk-factors li .impact.bad  { color: #dc2626; font-weight: 700; }

/* Redactor canvas / editor */
.redactor-area {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  min-height: 220px;
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.redactor-area mark.redacted {
  background: #111;
  color: #111;
  padding: 0 2px;
  border-radius: 2px;
  user-select: none;
}
.redactor-options { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.redactor-options label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  padding: 6px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}
.redactor-options input[type="checkbox"] { accent-color: var(--priv-emerald); }

/* Checklist */
.checklist {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  gap: 8px;
}
.checklist li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 10px;
  align-items: start;
  font-size: 14px;
  cursor: pointer;
}
.checklist li input { margin-top: 3px; accent-color: var(--priv-emerald); }
.checklist li.done { background: var(--priv-emerald-soft); border-color: var(--priv-emerald); }
.checklist li.done .item-text { text-decoration: line-through; color: var(--text-muted); }
.checklist .item-cat {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.checklist-summary {
  margin: 18px 0 8px;
  padding: 14px 16px;
  background: var(--surface-2);
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}
.checklist-summary b { color: var(--priv-emerald); font-size: 18px; }
.checklist-progress {
  height: 8px;
  background: var(--surface);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 8px;
}
.checklist-progress > div {
  height: 100%;
  background: var(--priv-emerald);
  transition: width 0.3s ease;
}

/* Privacy dashboard cards */
.dash-grid { display: grid; gap: 14px; grid-template-columns: 1fr; margin-top: 14px; }
@media (min-width: 640px) { .dash-grid { grid-template-columns: repeat(2, 1fr); } }
.dash-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dash-card .dash-icon { font-size: 22px; }
.dash-card .dash-title { font-size: 13px; color: var(--text-muted); font-weight: 600; }
.dash-card .dash-value { font-size: 28px; font-weight: 800; color: var(--text); line-height: 1; }
.dash-card .dash-meta  { font-size: 12.5px; color: var(--text-subtle); }
.dash-card.alert { border-color: #dc2626; background: #fef2f2; }
.dash-card.ok    { border-color: var(--priv-emerald); background: var(--priv-emerald-soft); }

/* Sign-in / sync section */
.sync-card {
  background: linear-gradient(135deg, var(--priv-emerald-soft), var(--surface));
  border: 1px solid var(--priv-emerald);
  border-radius: 16px;
  padding: 20px 22px;
  margin: 22px 0;
}
.sync-card h3 { margin: 0 0 6px; font-size: 16px; color: var(--text); font-weight: 800; }
.sync-card p { margin: 0 0 12px; font-size: 13.5px; color: var(--text-muted); line-height: 1.5; }
.sync-card .sync-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.sync-card input[type="email"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  background: var(--surface);
}
.sync-card button {
  background: var(--priv-emerald);
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  font-family: inherit;
}
.sync-card button:hover { background: #047857; }
.sync-card.signed-in { background: var(--priv-emerald-soft); }
.sync-card .signed-email { font-weight: 700; color: #065f46; }

/* ===================================================================
   Security Control Centre additions (Tier badges, quick actions,
   search bar, secret-share + password-generator tool surfaces).
   =================================================================== */

.hero-quick {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  margin: 18px 0 6px;
}
.hero-quick .quick-btn {
  display: inline-block; padding: 12px 18px; border-radius: 999px;
  background: #1e40af; color: #fff; font-weight: 700; text-decoration: none;
  font-size: 14.5px; transition: transform .12s ease, background .12s ease;
}
.hero-quick .quick-btn:hover { background: #1e3a8a; transform: translateY(-1px); }

.hero-search {
  display: flex; justify-content: center; margin: 14px 0 0;
}
.hero-search input {
  width: min(560px, 92%); padding: 14px 18px; border-radius: 999px;
  border: 1px solid var(--border-strong); font-size: 15px; background: #fff;
  font-family: inherit;
}
.hero-search input:focus { outline: 2px solid var(--brand-trust); outline-offset: 1px; }

.tier-title {
  margin: 28px 0 4px; font-size: 22px; display: flex; align-items: center;
  gap: 10px; flex-wrap: wrap;
}
.tier-lede { color: #475569; margin: 0 0 12px; font-size: 14.5px; }

.tier-badge {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 800; letter-spacing: .03em;
  text-transform: uppercase;
}
.tier-daily  { background: #dcfce7; color: #166534; }
.tier-weekly { background: #dbeafe; color: #1e40af; }

.tier-corner {
  position: absolute; top: 10px; left: 10px;
  font-size: 10px; font-weight: 800; letter-spacing: .04em;
  padding: 3px 7px; border-radius: 6px;
}
.tier-corner.daily  { background: #166534; color: #fff; }
.tier-corner.weekly { background: #1e40af; color: #fff; }

.tools-body { background: #f8fafc; }

/* (legacy .site-nav overrides removed — that pattern was replaced by /nav.js;
    the real .site-nav now comes from /style.css and must not be clobbered.) */

.site-foot { text-align: center; padding: 28px 16px; color: #64748b; font-size: 13.5px; }

.tool-main { max-width: 760px; margin: 0 auto; padding: 24px 16px 64px; }
.tool-hero h1 { font-size: 28px; margin: 8px 0; }
.tool-hero .lede { color: #475569; font-size: 16px; margin-bottom: 8px; }
.zk-badge { display: inline-block; background: #ecfeff; color: #0e7490;
  padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; }

.card { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px;
  padding: 18px; margin: 16px 0; }
.card label { display: block; font-weight: 700; margin: 10px 0 6px; }
.card textarea, .card input[type=text], .card input[type=email], .card input[readonly] {
  width: 100%; padding: 12px; border-radius: 10px; border: 1px solid #cbd5e1;
  font-family: inherit; font-size: 14.5px; box-sizing: border-box;
}
.card .row { display: flex; flex-wrap: wrap; gap: 14px; margin: 10px 0; }
.card .row label { flex: 1; min-width: 180px; }

.card button.primary {
  background: #1e40af; color: #fff; border: none; padding: 12px 18px;
  border-radius: 10px; font-weight: 700; font-size: 14.5px; cursor: pointer;
  margin: 12px 0; font-family: inherit;
}
.card button.primary:hover { background: #1e3a8a; }
.card button.ghost {
  background: transparent; color: #1e40af; border: 1px solid #1e40af;
  padding: 10px 14px; border-radius: 10px; font-weight: 700;
  font-size: 14px; cursor: pointer; margin-right: 8px; font-family: inherit;
}

.link-row { display: flex; gap: 8px; align-items: stretch; }
.link-row input { flex: 1; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.link-row button {
  background: #0f172a; color: #fff; border: none; padding: 0 14px;
  border-radius: 10px; font-weight: 700; cursor: pointer;
}

.card .msg { font-size: 13.5px; color: #475569; margin: 8px 0 0; min-height: 1.2em; }
.card .hint { font-size: 13px; color: #475569; margin: 8px 0; }
.card pre {
  background: #0f172a; color: #f8fafc; padding: 14px; border-radius: 10px;
  white-space: pre-wrap; word-break: break-word; font-size: 13.5px;
}

.trust-strip { display: grid; gap: 12px; margin: 24px 0;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.trust-strip > div { background: #fff; border: 1px solid #e2e8f0;
  border-radius: 12px; padding: 14px; font-size: 13.5px; color: #334155; }

.related h2 { font-size: 18px; margin: 24px 0 8px; }
.related ul { list-style: none; padding: 0; }
.related li a { color: #1e40af; text-decoration: none; font-weight: 600; }

/* Long-form educational content under each tool (depth for readers + AdSense) */
.tool-content { margin: 30px 0 8px; }
.tool-content h2 { font-size: 20px; margin: 26px 0 10px; color: #0f172a; font-weight: 700; }
.tool-content h2:first-child { margin-top: 0; }
.tool-content h3 { font-size: 16px; margin: 18px 0 6px; color: #0f172a; }
.tool-content p { color: #334155; font-size: 15px; line-height: 1.7; margin: 10px 0; }
.tool-content ul, .tool-content ol { color: #334155; font-size: 15px; line-height: 1.7; margin: 10px 0; padding-left: 22px; }
.tool-content li { margin: 6px 0; }
.tool-content code { background: #f1f5f9; border-radius: 5px; padding: 1px 5px; font-size: 13.5px; }
.tool-content .expert-note {
  background: #f8fafc; border: 1px solid #e2e8f0; border-left: 3px solid #1e40af;
  border-radius: 10px; padding: 16px 18px; margin: 20px 0;
}
.tool-content .expert-note p { margin: 8px 0; }
.tool-content .expert-note .who {
  display: block; margin-top: 10px; font-size: 13px; color: #64748b; font-weight: 700;
}

/* Password generator surfaces */
.tabs { gap: 4px; flex-wrap: wrap; }
.tab { background: #f1f5f9; border: 1px solid #cbd5e1; padding: 8px 14px;
  border-radius: 999px; font-weight: 700; cursor: pointer; font-family: inherit; }
.tab.active { background: #1e40af; color: #fff; border-color: #1e40af; }
.opts { display: grid; gap: 10px; margin: 12px 0; }
.opts label { font-weight: 600; }
.opts input[type=range] { width: 100%; }
.strength { margin: 14px 0; }
.strength .bar { height: 8px; background: #e2e8f0; border-radius: 999px; overflow: hidden; }
.strength .bar span { display: block; height: 100%; width: 0; background: #ffc107;
  transition: width .2s ease, background .2s ease; }
.strength .muted { color: #64748b; font-size: 13px; margin: 4px 0; }
.history summary { font-weight: 700; cursor: pointer; margin: 10px 0; }
.history ol { font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px; color: #0f172a; }

/* Ad slots */
.ad-slot { margin: 16px 0; min-height: 90px; }
body.ads-hidden .ad-slot { display: none !important; }

/* Premium signin card */
.tt-signin { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
  padding: 18px; max-width: 360px; }
.tt-signin h3 { margin: 0 0 6px; }
.tt-signin input { width: 100%; padding: 10px 12px; border-radius: 8px;
  border: 1px solid #cbd5e1; box-sizing: border-box; margin: 8px 0;
  font-family: inherit; }
.tt-signin button { background: #1e40af; color: #fff; border: none;
  padding: 10px 14px; border-radius: 8px; cursor: pointer; font-weight: 700;
  width: 100%; font-family: inherit; }
.tt-signin .tt-or { text-align: center; color: #64748b; margin: 8px 0; }
.tt-signin .tt-msg { font-size: 13px; color: #475569; min-height: 1em; }

@media (max-width: 480px) {
  .hero-quick .quick-btn { padding: 10px 14px; font-size: 13.5px; }
  .tool-hero h1 { font-size: 24px; }
  .card .row { flex-direction: column; }
}

/* ===================================================================
   Item 7 — Premium gate UI: expiry banner + welcome modal
   =================================================================== */
.tt-expiry-banner {
  position: sticky; top: 0; z-index: 50;
  background: #fff7ed; color: #9a3412; border-bottom: 1px solid #fed7aa;
  padding: 10px 18px; font-size: 14px; text-align: center;
}
.tt-expiry-banner .tt-renew {
  display: inline-block; margin-left: 8px; padding: 6px 12px;
  background: #1e40af; color: #fff; border-radius: 999px; font-weight: 700;
  text-decoration: none; font-size: 13px;
}
.tt-welcome-modal {
  position: fixed; inset: 0; background: rgba(15,23,42,.6); z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.tt-welcome-card {
  background: #fff; border-radius: 16px; padding: 24px;
  max-width: 420px; width: 100%;
}
.tt-welcome-card h2 { margin: 0 0 8px; }
.tt-welcome-card input {
  width: 100%; padding: 12px; border-radius: 10px; border: 1px solid #cbd5e1;
  margin: 12px 0; font-family: inherit; box-sizing: border-box;
}
.tt-welcome-card .btn-plan { display: block; width: 100%; margin: 6px 0; }
.tt-welcome-msg { color: #475569; font-size: 13px; min-height: 1em; margin-top: 8px; }

/* ===================================================================
   Privacy Dashboard — score ring + cards
   =================================================================== */
.dash-overall {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  background: #fff; border-radius: 16px; padding: 24px;
  border: 1px solid #e2e8f0; margin: 16px 0;
}
.score-ring {
  width: 160px; height: 160px; border-radius: 50%;
  background: conic-gradient(var(--col) calc(var(--p) * 1%), #e2e8f0 0);
  display: grid; place-items: center; flex-shrink: 0;
}
.score-ring .score-inner {
  width: 132px; height: 132px; background: #fff; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
}
.score-num { font-size: 36px; font-weight: 800; line-height: 1; color: #0f172a; }
.score-num .score-tot { font-size: 14px; color: #64748b; font-weight: 600; }
.score-band { font-size: 14px; color: #475569; margin-top: 4px; }
.score-meta { flex: 1; min-width: 200px; }
.score-meta > div:first-child { font-weight: 800; font-size: 18px; }
.score-updated { color: #64748b; font-size: 13px; margin: 6px 0 12px; }
.dash-refresh {
  background: #1e40af; color: #fff; border: none; padding: 8px 14px;
  border-radius: 10px; font-weight: 700; cursor: pointer; font-family: inherit;
}

.dash-cards {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin: 20px 0;
}
.dash-card-v2 {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 14px;
  padding: 16px; display: flex; flex-direction: column;
}
.dash-card-v2.ok { border-left: 4px solid #16a34a; }
.dash-card-v2.alert { border-left: 4px solid #dc3545; background: #fef2f2; }
.dc-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.dc-head h3 { margin: 0; font-size: 15px; flex: 1; }
.dc-icon { font-size: 22px; }
.dc-badge { background: #dc3545; color: #fff; font-size: 11px;
  padding: 2px 8px; border-radius: 999px; font-weight: 700; }
.dc-body { flex: 1; font-size: 14px; color: #334155; line-height: 1.5; }
.dc-meta { color: #64748b; font-size: 13px; margin-top: 2px; }
.dc-empty { color: #94a3b8; font-style: italic; }
.dc-cta { display: inline-block; margin-top: 10px; color: #1e40af;
  text-decoration: none; font-weight: 700; font-size: 13.5px; }
.mini-bar { background: #e2e8f0; height: 6px; border-radius: 999px; margin-top: 6px; overflow: hidden; }
.mini-bar span { display: block; height: 100%; background: #1e40af; }

.dash-tips {
  background: var(--brand-soft); border: 1px solid var(--brand-soft-border); border-radius: 14px;
  padding: 16px; margin: 20px 0;
}
.dash-tips h2 { margin: 0 0 8px; font-size: 16px; color: var(--brand-trust); }
.dash-tips ol { margin: 0; padding-left: 20px; }
.dash-tips a { color: var(--brand-trust); text-decoration: none; font-weight: 600; }

.dash-sync-card {
  background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 14px;
  padding: 16px; margin: 16px 0;
}
.dash-sync-card.ok { background: #ecfdf5; border-color: #6ee7b7; }
.dash-sync-card h2 { margin: 0 0 6px; font-size: 16px; color: #166534; }
.dash-sync-card .btn-plan {
  display: inline-block; margin-top: 8px;
  background: #1e40af; color: #fff; padding: 10px 16px; border-radius: 10px;
  font-weight: 700; text-decoration: none;
}

.dash-formula {
  width: 100%; border-collapse: collapse; margin: 14px 0;
  background: #fff; border-radius: 12px; overflow: hidden;
}
.dash-formula th, .dash-formula td {
  padding: 10px 14px; border-bottom: 1px solid #e2e8f0;
  font-size: 14px; text-align: left;
}
.dash-formula thead th { background: #f8fafc; }

/* ===================================================================
   Alias tracker
   =================================================================== */
.alias-tracker {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 14px;
  padding: 18px; margin: 20px 0;
}
.alias-banner.alert {
  background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c;
  padding: 10px 14px; border-radius: 10px; margin-bottom: 14px;
}
.at-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.at-head h2 { margin: 0; font-size: 18px; }
.at-stats { display: flex; gap: 6px; flex-wrap: wrap; }
.at-pill {
  background: #f1f5f9; color: #334155; padding: 4px 10px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600;
}
.at-pill.ok { background: #dcfce7; color: #166534; }
.at-pill.alert { background: #fee2e2; color: #b91c1c; }

.at-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0; }
.at-controls input[type=search] {
  flex: 1; min-width: 180px; padding: 10px 12px;
  border-radius: 10px; border: 1px solid #cbd5e1; font-family: inherit;
}
.at-filter { display: flex; gap: 4px; flex-wrap: wrap; }
.at-filter button {
  background: #f1f5f9; color: #334155; border: none;
  padding: 6px 12px; border-radius: 999px; font-weight: 700;
  cursor: pointer; font-family: inherit; font-size: 13px;
}
.at-filter button.active { background: #1e40af; color: #fff; }

.at-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0; }
.at-meta { color: #64748b; font-size: 13px; margin-left: auto; }
.btn-secondary {
  background: #fff; border: 1px solid #cbd5e1; color: #1e40af;
  padding: 8px 14px; border-radius: 10px; font-weight: 700;
  cursor: pointer; font-family: inherit;
}

.alias-save-form {
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px;
  padding: 12px; margin: 12px 0;
}
.alias-save-form label { display: block; margin: 6px 0; font-weight: 600; font-size: 13px; }
.alias-save-form input {
  width: 100%; padding: 8px 10px; border-radius: 8px;
  border: 1px solid #cbd5e1; box-sizing: border-box; font-family: inherit;
  margin-top: 4px;
}

.at-list { margin-top: 12px; }
.at-empty { padding: 16px; color: #64748b; font-style: italic; text-align: center; }
.at-row {
  border: 1px solid #e2e8f0; border-radius: 12px;
  padding: 12px; margin-bottom: 10px; background: #fff;
}
.at-row-main {
  display: grid;
  grid-template-columns: 2fr 1fr auto;
  gap: 8px; align-items: center; margin-bottom: 8px;
}
.at-alias code {
  background: #f1f5f9; padding: 3px 8px; border-radius: 6px;
  font-size: 13px; word-break: break-all;
}
.at-svc { font-size: 13.5px; color: #334155; }
.at-date { font-size: 12.5px; color: #64748b; }
.at-row-meta {
  display: flex; gap: 6px; align-items: center; flex-wrap: wrap;
}
.at-status, .at-notes {
  padding: 6px 10px; border-radius: 8px; border: 1px solid #cbd5e1;
  font-size: 13px; font-family: inherit;
}
.at-notes { flex: 1; min-width: 120px; }
.at-status.ok { background: #dcfce7; color: #166534; }
.at-status.alert { background: #fee2e2; color: #b91c1c; }
.at-status.muted { background: #f1f5f9; color: #64748b; }
.at-copy, .at-del {
  background: transparent; border: 1px solid #cbd5e1;
  padding: 6px 10px; border-radius: 8px; cursor: pointer; font-size: 13px;
}
.at-del { color: #b91c1c; }

/* ===================================================================
   Document redactor — safety + EXIF
   =================================================================== */
.safety-checklist {
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px;
  padding: 14px; margin-top: 14px;
}
.safety-checklist h3 { margin: 0 0 6px; font-size: 15px; }
.safety-checklist ul { list-style: none; padding: 0; margin: 0; }
.safety-checklist li { padding: 4px 0; font-size: 13.5px; color: #334155; }
.safety-verdict { font-weight: 700; margin-top: 10px; padding: 10px;
  border-radius: 10px; }
.safety-verdict.ok { background: #dcfce7; color: #166534; }
.safety-verdict.warn { background: #fef3c7; color: #92400e; }

.exif-grid {
  display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin: 14px 0;
}
.exif-card {
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px;
  padding: 12px;
}
.exif-card h3 { margin: 0 0 8px; font-size: 14px; }
.exif-body { font-size: 13.5px; color: #334155; line-height: 1.55; }
.exif-body .warn { color: #b91c1c; font-weight: 700; margin-bottom: 4px; }
.exif-body .ok { color: #166534; font-weight: 600; }
.exif-body a { color: #1e40af; font-weight: 600; text-decoration: none; }
.exif-verdict {
  padding: 14px; border-radius: 12px; font-size: 15px; margin-top: 10px;
}
.exif-verdict.high { background: #fee2e2; color: #b91c1c; }
.exif-verdict.med  { background: #fef3c7; color: #92400e; }
.exif-verdict.low  { background: #dcfce7; color: #166534; }

/* ===================================================================
   Password checker — history + improve tip + recheck banner
   =================================================================== */
.improve-tip {
  margin-top: 14px; padding: 12px 14px;
  background: var(--brand-soft); border-left: 4px solid var(--brand-trust);
  border-radius: 8px; font-size: 14px; color: #064e3b;
}
.recheck-banner {
  background: #fef3c7; border: 1px solid #fde68a; color: #92400e;
  padding: 12px 16px; border-radius: 10px; margin: 14px 0;
  font-size: 14px;
}
.pw-history-panel {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
  padding: 16px; margin: 18px 0;
}
.pw-history-panel h2 { margin: 0 0 4px; font-size: 17px; }
.pw-history-panel .muted { color: #64748b; font-size: 13px; margin: 0 0 10px; }
.pw-history-row {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 8px;
  padding: 8px 10px; border-bottom: 1px solid #f1f5f9;
  align-items: center; font-size: 13.5px;
}
.pw-history-row:last-child { border-bottom: none; }
.pwhr-date { color: #475569; }
.pwhr-strength { font-weight: 700; }
.pwhr-strength.s0, .pwhr-strength.s1 { color: #b91c1c; }
.pwhr-strength.s2 { color: #92400e; }
.pwhr-strength.s3, .pwhr-strength.s4 { color: #166534; }
.pwhr-crack { color: #475569; }
.pwhr-breach.ok { color: #166534; }
.pwhr-breach.alert { color: #b91c1c; font-weight: 700; }
.history-empty { color: #94a3b8; padding: 10px; text-align: center; font-style: italic; }

/* ===================================================================
   ITEM 6 — Mobile QA (≤480px) for all new surfaces
   =================================================================== */
@media (max-width: 480px) {
  /* Score ring fits on narrow screens */
  .score-ring { width: 140px; height: 140px; }
  .score-ring .score-inner { width: 116px; height: 116px; }
  .score-num { font-size: 30px; }
  .dash-overall { flex-direction: column; align-items: flex-start; gap: 14px; padding: 18px; }

  /* Single column grids */
  .dash-cards, .exif-grid, .trust-strip,
  .more-tools, .tools-grid { grid-template-columns: 1fr; }

  /* Stacked plan cards */
  .plan-cards { flex-direction: column; gap: 12px; }
  .plan-card { width: 100%; }

  /* Alias tracker → card layout instead of dense grid */
  .at-row-main { grid-template-columns: 1fr; gap: 4px; }
  .at-alias code { display: inline-block; max-width: 100%; }
  .at-row-meta { flex-direction: column; align-items: stretch; }
  .at-row-meta > * { width: 100%; }

  /* Stat pill row wraps cleanly */
  .at-stats, .at-controls { width: 100%; }
  .at-controls input[type=search] { width: 100%; }
  .at-actions { flex-direction: column; align-items: stretch; }
  .at-meta { margin-left: 0; }

  /* Password history single column */
  .pw-history-row {
    grid-template-columns: 1fr;
    gap: 2px; padding: 10px;
  }
  .pwhr-date { font-size: 12px; }

  /* Secret-share output box wraps */
  .link-row { flex-direction: column; }
  .link-row button { width: 100%; }
  .link-row input { width: 100%; box-sizing: border-box; }

  /* Tabs wrap */
  .tabs { gap: 6px; }
  .tab { font-size: 12.5px; padding: 6px 10px; }

  /* Tier badges row wraps */
  .tier-title { font-size: 18px; }

  /* Welcome / expiry banner */
  .tt-expiry-banner { font-size: 13px; padding: 8px 12px; }
  .tt-welcome-card { padding: 18px; }

  /* Hero quick actions full-width */
  .hero-quick { flex-direction: column; }
  .hero-quick .quick-btn { width: 100%; text-align: center; }
}

/* ===================================================================
   FIX 1 — Sensitive Data Cleaner: history + custom patterns
   =================================================================== */
.custom-patterns, .clean-history {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 14px;
  padding: 18px; margin: 18px 0;
}
.custom-patterns h2, .clean-history h2 { margin: 0 0 4px; font-size: 17px; }
.custom-patterns .muted, .clean-history .muted { color: #64748b; font-size: 13px; margin: 0 0 12px; }
.pro-pill {
  background: #1e40af; color: #fff; font-size: 11px;
  padding: 2px 8px; border-radius: 999px; font-weight: 800; vertical-align: middle;
}

.cp-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.cp-locked { color: #64748b; font-style: italic; padding: 12px; background: #f8fafc; border-radius: 8px; }
.cp-row {
  display: flex; gap: 8px; align-items: center;
  background: #f8fafc; border: 1px solid #e2e8f0; padding: 8px 10px; border-radius: 10px;
}
.cp-type {
  background: #1e40af; color: #fff; font-size: 11px;
  padding: 2px 8px; border-radius: 6px; font-weight: 700; text-transform: uppercase;
}
.cp-row code {
  flex: 1; background: transparent; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px; word-break: break-all;
}
.cp-del {
  background: transparent; border: 1px solid #cbd5e1; padding: 2px 8px;
  border-radius: 6px; color: #b91c1c; cursor: pointer;
}
.cp-add { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.cp-add input {
  flex: 1; min-width: 160px; padding: 8px 10px; border-radius: 8px;
  border: 1px solid #cbd5e1; font-family: inherit;
}
.cp-add select {
  padding: 8px 10px; border-radius: 8px; border: 1px solid #cbd5e1; font-family: inherit;
}

.ch-list { display: flex; flex-direction: column; gap: 8px; }
.ch-empty { color: #64748b; font-style: italic; padding: 12px; }
.ch-row {
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px;
  padding: 10px 12px; display: grid; grid-template-columns: 1fr auto; gap: 4px;
  align-items: center;
}
.ch-row > div:first-child { grid-column: 1 / -1; font-size: 14px; }
.ch-meta { color: #475569; font-size: 13px; }
.ch-cats { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; grid-column: 1 / -1; }
.ch-tag {
  background: #dbeafe; color: #1e40af; font-size: 11.5px;
  padding: 2px 8px; border-radius: 999px; font-weight: 600;
}
.ch-actions { grid-column: 2; }
.ch-lock {
  display: flex; gap: 12px; justify-content: space-between; align-items: center;
  background: #fef3c7; border: 1px dashed #fde68a; border-radius: 10px;
  padding: 12px; color: #92400e;
}
.ch-unlock {
  background: #1e40af; color: #fff; border: none; padding: 8px 14px;
  border-radius: 10px; font-weight: 700; cursor: pointer; font-family: inherit;
}

/* ===================================================================
   FIX 2 — Device Checklist: actions, chart, share, bell
   =================================================================== */
.reminder-bell { margin-left: 6px; }
.dl-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.dl-chart, .dl-share {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 14px;
  padding: 18px; margin: 18px 0;
}
.dl-chart h2, .dl-share h2 { margin: 0 0 4px; font-size: 17px; }
.dl-chart .muted, .dl-share .muted { color: #64748b; font-size: 13px; margin: 0 0 12px; }

.weekly-chart {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  align-items: end; padding: 12px 4px 0;
}
.wc-bar {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.wc-fill {
  width: 100%; max-width: 56px;
  height: 0; min-height: 6px;
  background: var(--brand-trust);
  border-radius: 10px 10px 0 0;
}
/* Bar background container — give the bars a consistent rail */
.wc-bar { position: relative; }
.wc-bar::before {
  content: ''; position: absolute; left: 50%; bottom: 36px; transform: translateX(-50%);
  width: 100%; max-width: 56px; height: 110px; background: #f1f5f9;
  border-radius: 10px 10px 0 0; z-index: 0;
}
.wc-fill { position: relative; z-index: 1; max-height: 110px; }
.wc-pct { font-size: 12.5px; font-weight: 700; color: #1e40af; z-index: 1; }
.wc-lbl { font-size: 12px; color: #64748b; }

.dl-share-row { display: flex; gap: 8px; align-items: stretch; }
.dl-share-row input {
  flex: 1; padding: 10px 12px; border-radius: 10px; border: 1px solid #cbd5e1;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px;
}

/* Mobile QA for the new surfaces */
@media (max-width: 480px) {
  .ch-row { grid-template-columns: 1fr; }
  .ch-actions { grid-column: 1; }
  .ch-lock { flex-direction: column; align-items: stretch; }
  .ch-unlock { width: 100%; }
  .cp-add { flex-direction: column; align-items: stretch; }
  .cp-add input, .cp-add select { width: 100%; }
  .dl-actions { flex-direction: column; }
  .dl-actions .btn-secondary { width: 100%; }
  .dl-share-row { flex-direction: column; }
  .dl-share-row input { width: 100%; }
  /* Compact weekly chart on mobile */
  .weekly-chart { gap: 6px; }
  .wc-bar::before { max-width: 44px; }
  .wc-fill { max-width: 44px; }
  .wc-pct { font-size: 11px; }
  .wc-lbl { font-size: 10.5px; }
}

/* Print stylesheet — used by PDF Export */
@media print {
  .site-header, .site-nav, .footer, .ad-slot, .dl-actions,
  .dl-share, .more-tools, .breadcrumb,
  #paywallModal, .premium-banner, .tt-expiry-banner { display: none !important; }
  body { background: #fff; color: #000; }
  .calc-card, .dl-chart { border: 1px solid #ccc; box-shadow: none; }
}
