/* app.css — COMPLETE PREMIUM FILE (fixed + de-conflicted + scoped)
   - Keeps your original look
   - Fixes class collisions (.thread-card, .home-title, etc.)
   - Scopes page-specific UI so components don't fight each other
   - Still works with your existing base classes (.card/.btn/.post/.pill)
*/

/* =========================
   TOKENS / BASE THEME
   ========================= */

:root{
  --bg:var(--c-bg, #0b1224);
  --panel:var(--c-surface, #0f1a36);
  --card:var(--c-surface-2, #121f44);
  --muted:var(--c-muted, #aeb9de);
  --text:var(--c-text, #f3f6ff);
  --primary:var(--c-primary, #7c5cff);
  --primary2:var(--c-secondary, #22c55e);
  --danger:var(--c-danger, #ef4444);
  --ring:var(--c-ring, rgba(124,92,255,.40));
  --border:var(--c-border, rgba(255,255,255,.10));
  --shadow:var(--shadow-1, 0 16px 40px rgba(0,0,0,.42));

  --surface-3:var(--c-surface-3, rgba(255,255,255,.04));
  --glass:var(--c-glass, rgba(0,0,0,.12));
  --pill-bg:var(--c-pill-bg, rgba(255,255,255,.04));
  --input-bg:var(--c-input-bg, var(--panel));
  --input-border:var(--c-input-border, var(--border));
  --danger-bg:var(--c-danger-bg, color-mix(in srgb, var(--danger) 14%, transparent));
  --danger-border:var(--c-danger-border, color-mix(in srgb, var(--danger) 35%, transparent));

  --radius-sm:11px;
  --radius-md:14px;
  --radius-lg:18px;
  --radius-xl:22px;

  --space-1:6px;
  --space-2:10px;
  --space-3:14px;
  --space-4:18px;
  --space-5:24px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background:var(--grad-hero, linear-gradient(180deg, var(--bg), var(--panel)));
  color:var(--text);
  font:14px/1.5 ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,"Apple Color Emoji","Segoe UI Emoji";
  letter-spacing:0;
}

a{color:inherit;text-decoration:none}
a:hover{text-decoration:underline}

main{min-width:0}

/* =========================
   LAYOUT SHELL
   ========================= */

.container{max-width:1120px;margin:0 auto;padding:12px}

.topbar{
  position:sticky;
  top:0;
  z-index:20;
  backdrop-filter:blur(10px);
  background:var(--glass);
  border-bottom:1px solid var(--border);
}
.topbar-inner{display:flex;align-items:center;justify-content:space-between;gap:10px}

.brand{display:flex;align-items:center;gap:10px;user-select:none}
.brand a:hover{text-decoration:none}

.logo{
  width:28px;height:28px;border-radius:9px;
  background:linear-gradient(135deg,var(--primary),var(--primary2));
  box-shadow:0 10px 30px var(--ring)
}
.brand h1{
  font-size:14px;margin:0;font-weight:750;
  letter-spacing:0;color:var(--text)
}

.topactions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.topactions .btn{padding:6px 8px;border-radius:10px;font-weight:750}

.grid{display:grid;grid-template-columns:1fr;gap:10px}
@media(min-width:960px){.grid{grid-template-columns:250px 1fr}}

.sidebar{display:none}
@media(min-width:960px){.sidebar{display:block;position:sticky;top:84px;align-self:start}}

.nav{display:flex;flex-direction:column;gap:6px}
.nav a{
  display:flex;align-items:center;gap:10px;
  padding:7px 9px;border-radius:11px;border:1px solid transparent;
  color:var(--text)
}
.nav a:hover{background:var(--pill-bg);border-color:var(--border);text-decoration:none}
.nav a.active{background:var(--pill-bg);border-color:var(--ring)}

.icon{
  display:inline-flex;align-items:center;justify-content:center;
  width:18px;height:18px;border-radius:7px;
  border:1px solid var(--border);
  background:var(--surface-3);
  font-size:11px;font-weight:800;line-height:1;color:var(--text)
}
.nav a.active .icon{
  border-color:var(--ring);
  background:var(--pill-bg)
}

/* =========================
   CORE COMPONENTS
   ========================= */

.pill{
  display:inline-flex;align-items:center;gap:8px;
  padding:5px 8px;border:1px solid var(--border);
  border-radius:999px;background:var(--pill-bg)
}
.pill small{color:var(--muted)}

.card{
  background:var(--glass);
  border:1px solid var(--border);
  border-radius:18px;
  box-shadow:var(--shadow)
}
.card .hd{
  padding:9px 10px;border-bottom:1px solid var(--border);
  display:flex;align-items:center;justify-content:space-between;gap:10px
}
.card .bd{padding:10px}

.hd h2{
  margin:0;
  font-size:13px;
  letter-spacing:0;
  color:var(--text);
  text-transform:none
}

.muted{color:var(--muted)}

.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:7px 9px;border-radius:11px;
  border:1px solid var(--border);
  background:var(--primary);
  color:var(--c-on-primary, #fff);
  font-weight:750;cursor:pointer;
  transition:background .12s ease,border-color .12s ease,transform .08s ease
}
.btn:hover{background:color-mix(in srgb, var(--primary) 88%, #000 0%);text-decoration:none}
.btn:active{transform:translateY(1px)}
.btn:focus-visible{outline:none;box-shadow:0 0 0 4px var(--ring)}

.btn.secondary{
  border-color:var(--border);
  background:var(--pill-bg);
  color:var(--text)
}
.btn.secondary:hover{background:var(--surface-3)}

.btn.danger{
  border-color:var(--danger-border);
  background:var(--danger-bg);
  color:var(--c-on-danger, #fff)
}
.btn.danger:hover{background:color-mix(in srgb, var(--danger) 20%, transparent)}

.input,textarea,select{
  width:100%;
  padding:9px 9px;
  border-radius:11px;
  border:1px solid var(--input-border);
  background:var(--input-bg);
  color:var(--text);
  outline:none
}
textarea{min-height:84px;resize:vertical}
.input:focus,textarea:focus,select:focus{
  border-color:var(--ring);
  box-shadow:0 0 0 4px var(--ring)
}

label.muted{
  display:block;margin-bottom:5px;
  font-size:12px;
  letter-spacing:0;
  text-transform:none;
  color:var(--muted)
}

.form-row{display:grid;grid-template-columns:1fr;gap:10px}
@media(min-width:720px){.form-row.cols2{grid-template-columns:1fr 1fr}}

.flash{
  padding:7px 9px;border-radius:11px;
  border:1px solid var(--border);
  background:var(--glass);
  color:var(--text)
}
.flash.error{
  border-color:var(--danger-border);
  background:var(--danger-bg)
}

.list{display:flex;flex-direction:column;gap:9px}

.post{
  padding:9px 9px;border-radius:13px;
  border:1px solid var(--border);
  background:var(--glass);
  transition:border-color .12s ease,background .12s ease
}
.post:hover{border-color:var(--ring);background:var(--surface-3)}
.post h3{margin:0 0 4px;font-size:15px}
.post p{margin:0;color:var(--text)}

.tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.tag{
  font-size:12px;padding:4px 10px;border-radius:999px;
  border:1px solid var(--border);
  color:var(--text);
  background:var(--pill-bg)
}

.thumb{
  width:54px;height:54px;border-radius:14px;
  object-fit:cover;border:1px solid var(--border);
  background:var(--surface-3);
  flex:0 0 auto
}

/* =========================
   SELECT ARROW
   ========================= */

select{
  appearance:none;
  background-image:
    linear-gradient(45deg,transparent 50%,color-mix(in srgb, var(--text) 70%, transparent) 50%),
    linear-gradient(135deg,color-mix(in srgb, var(--text) 70%, transparent) 50%,transparent 50%);
  background-position:
    calc(100% - 18px) calc(1em + 2px),
    calc(100% - 13px) calc(1em + 2px);
  background-size:5px 5px,5px 5px;
  background-repeat:no-repeat;
  padding-right:36px
}

/* =========================
   BOTTOM BAR
   ========================= */

.bottombar{
  position:fixed;left:0;right:0;bottom:0;z-index:30;
  background:var(--glass);
  backdrop-filter:blur(10px);
  border-top:1px solid var(--border)
}
.bottombar .inner{
  display:grid;grid-template-columns:repeat(5,1fr);
  gap:6px;padding:6px 6px
}
.bottombar a{
  display:flex;flex-direction:column;align-items:center;gap:3px;
  padding:5px 0;border-radius:11px;
  color:var(--muted);
  border:1px solid transparent
}
.bottombar a.active{
  background:var(--pill-bg);
  border-color:var(--ring)
}
.bottombar a span:not(.icon){font-size:11px;letter-spacing:0}

.footerpad{height:56px}

/* =========================
   SPACER UTILITIES
   ========================= */

.spacer{display:block;width:100%}
.h-6{height:6px}
.h-8{height:8px}
.h-10{height:10px}
.h-12{height:12px}
.h-14{height:14px}
.h-16{height:16px}
.h-18{height:18px}

.form-reset{margin:0}
.mt-6{margin-top:6px}
.inline-flex{display:inline-flex;gap:8px;align-items:center}
.action-row{display:flex;gap:8px;flex-wrap:wrap}
.input-row{display:flex;gap:10px;align-items:center}
.flex-1{flex:1}
.mx-auto{margin-left:auto;margin-right:auto}
.mw-720{max-width:720px}
.mb-8{margin-bottom:8px}
.mb-10{margin-bottom:10px}
.w-100{width:100%}

/* =========================
   RESPONSIVE TWEAKS
   ========================= */

@media(max-width:720px){
  .topbar-inner{gap:10px}
  .pill{display:none}
  .topactions{gap:8px}
  .container{padding:10px}
}

/* =========================
   THEMES
   ========================= */


/* =========================
   DENSITY MODES
   ========================= */

body[data-density="comfortable"] .container{padding:16px}
body[data-density="comfortable"] .card .bd{padding:14px}
body[data-density="comfortable"] .post{padding:12px 12px}

body[data-density="large"]{font-size:15px}
body[data-density="large"] .container{padding:18px}
body[data-density="large"] .btn{padding:9px 11px;border-radius:13px}
body[data-density="large"] .input,
body[data-density="large"] textarea,
body[data-density="large"] select{padding:11px 11px;border-radius:13px}
body[data-density="large"] .card .hd{padding:12px 12px}
body[data-density="large"] .card .bd{padding:16px}
body[data-density="large"] .post{padding:14px 14px}

/* ============================================================
   PREMIUM PAGE MODULES (SCOPED TO PREVENT COLLISIONS)
   ============================================================ */

/* =========================
   PREMIUM HOME (landing style)
   ========================= */

.home-wrap { max-width: 960px; margin: 0 auto; }
.home-card { overflow: hidden; }

.home-hero {
  border-bottom: 1px solid var(--border);
  background: var(--grad-hero, var(--glass));
  padding: 18px;
}

.home-hero-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.home-hero-icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: var(--surface-3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-brandmark {
  font-weight: 800;
  letter-spacing: 0.5px;
  user-select: none;
}

.home-kicker {
  font-size: 12px;
  opacity: 0.75;
  letter-spacing: 0.35px;
}

.home-wrap .home-title {
  margin: 2px 0 0 0;
  font-size: 20px;
  line-height: 1.1;
}

.home-subtitle {
  margin: 10px 0 0 0;
  font-size: 14px;
  opacity: 0.85;
  line-height: 1.45;
  max-width: 62ch;
}

.home-hero-actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.home-body { padding: 18px; }

.home-panel {
  border: 1px solid var(--border);
  background: var(--glass);
  border-radius: 18px;
  padding: 14px;
}

.home-panel-title {
  font-weight: 700;
  margin-bottom: 6px;
}

.home-panel-text {
  font-size: 13px;
  opacity: 0.85;
  line-height: 1.45;
}

.home-panel-actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.home-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 860px) {
  .home-grid { grid-template-columns: 1fr 1fr 1fr; }
}

.home-box {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px;
  background: var(--glass);
}

.home-box-hd {
  font-weight: 700;
  margin-bottom: 6px;
}

.home-box-bd {
  font-size: 13px;
  opacity: 0.85;
  line-height: 1.45;
}

.home-box-ft {
  margin-top: 12px;
}

.home-stage-row {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.home-stage-row span {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--pill-bg);
  border: 1px solid var(--border);
  font-size: 12px;
  opacity: 0.9;
}

.home-footerline {
  margin-top: 14px;
  font-size: 12px;
  opacity: 0.65;
  line-height: 1.4;
}

/* =========================
   PREMIUM YOU
   ========================= */

.you-wrap { max-width: 960px; margin: 0 auto; }
.you-card { overflow: hidden; }

.you-hero {
  padding: 18px;
  border-bottom: 1px solid var(--border);
  background: var(--grad-hero, var(--glass));
}

.you-hero-top {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.you-hero-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-3);
  font-weight: 800;
  user-select: none;
}

.you-kicker {
  font-size: 12px;
  opacity: 0.75;
  letter-spacing: 0.35px;
}

.you-title {
  margin: 2px 0 0 0;
  font-size: 20px;
  line-height: 1.1;
}

.you-subtitle {
  margin: 10px 0 0 0;
  font-size: 14px;
  opacity: 0.85;
  line-height: 1.45;
  max-width: 62ch;
}

.you-body { padding: 18px; }

.you-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 860px) {
  .you-grid { grid-template-columns: 1fr 1fr 1fr; }
}

.you-section {
  border: 1px solid var(--border);
  background: var(--glass);
  border-radius: 18px;
  padding: 14px;
}

.you-section-hd { margin-bottom: 12px; }

.you-section-title {
  font-weight: 800;
  letter-spacing: 0.2px;
}

.you-section-sub {
  margin-top: 6px;
  font-size: 12px;
  opacity: 0.75;
  line-height: 1.4;
}

.you-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.you-action {
  text-align: left;
  display: block;
  padding: 12px 12px;
  border-radius: 16px;
}

.you-action-main { display: block; font-weight: 700; }

.you-action-meta {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  opacity: 0.75;
  line-height: 1.35;
}

.you-divider {
  height: 1px;
  background: var(--border);
  margin: 14px 0;
}

.you-pause {
  border: 1px solid var(--border);
  background: var(--glass);
  border-radius: 18px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 720px) {
  .you-pause {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }
}

.you-pause-title { font-weight: 800; }

.you-pause-text {
  margin-top: 6px;
  font-size: 13px;
  opacity: 0.80;
  line-height: 1.45;
  max-width: 70ch;
}

.you-pause-form { margin: 0; }
.you-pause-btn { white-space: nowrap; }

/* =========================
   PREMIUM PREFERENCES
   ========================= */

.prefs-wrap { max-width: 960px; margin: 0 auto; }
.prefs-card { overflow: hidden; }

.prefs-hero {
  padding: 18px;
  border-bottom: 1px solid var(--border);
  background: var(--grad-hero, var(--glass));
}

.prefs-hero-top {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.prefs-hero-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-3);
  font-weight: 900;
  user-select: none;
}

.prefs-kicker {
  font-size: 12px;
  opacity: 0.75;
  letter-spacing: 0.35px;
}

.prefs-title {
  margin: 2px 0 0 0;
  font-size: 20px;
  line-height: 1.1;
}

.prefs-subtitle {
  margin: 10px 0 0 0;
  font-size: 14px;
  opacity: 0.85;
  line-height: 1.45;
  max-width: 68ch;
}

.prefs-body { padding: 18px; }

.prefs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 860px) {
  .prefs-grid { grid-template-columns: 1fr 1fr; }
}

.prefs-panel {
  border: 1px solid var(--border);
  background: var(--glass);
  border-radius: 18px;
  padding: 14px;
}

.prefs-panel-hd { margin-bottom: 12px; }

.prefs-panel-title {
  font-weight: 900;
  letter-spacing: 0.2px;
}

.prefs-panel-sub {
  margin-top: 6px;
  font-size: 12px;
  opacity: 0.75;
  line-height: 1.4;
}

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

.prefs-label {
  font-size: 12px;
  opacity: 0.80;
}

.prefs-select {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--glass);
  color: inherit;
  padding: 10px 12px;
  outline: none;
}

.prefs-input { width: 100%; }

.prefs-hint {
  font-size: 12px;
  opacity: 0.65;
  line-height: 1.35;
}

.prefs-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  align-items: center;
}

.prefs-save { flex: 1; }
.prefs-back { white-space: nowrap; }

/* =========================
   PREMIUM DANGER ZONE (DELETE)
   ========================= */

.danger-wrap { max-width: 880px; margin: 0 auto; }
.danger-card { overflow: hidden; }

.danger-hero {
  padding: 18px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(1200px 340px at 12% 0%, color-mix(in srgb, var(--danger) 22%, transparent), transparent 60%),
    var(--grad-hero, var(--glass));
}

.danger-hero-top {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.danger-badge {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  font-weight: 900;
  user-select: none;
}

.danger-kicker {
  font-size: 12px;
  opacity: 0.75;
  letter-spacing: 0.45px;
  text-transform: uppercase;
}

.danger-title {
  margin: 2px 0 0 0;
  font-size: 20px;
  line-height: 1.1;
}

.danger-subtitle {
  margin: 10px 0 0 0;
  font-size: 14px;
  opacity: 0.85;
  line-height: 1.45;
  max-width: 70ch;
}

.danger-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.danger-warning {
  border: 1px solid var(--danger-border);
  background: var(--danger-bg);
  border-radius: 18px;
  padding: 14px;
}

.danger-warning-title {
  font-weight: 900;
  letter-spacing: 0.2px;
}

.danger-warning-text {
  margin-top: 8px;
  font-size: 13px;
  opacity: 0.85;
  line-height: 1.45;
}

.danger-facts {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.danger-fact {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.danger-fact-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  margin-top: 6px;
  background: var(--danger);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 22%, transparent);
  flex: 0 0 auto;
}

.danger-fact-text {
  font-size: 13px;
  opacity: 0.85;
  line-height: 1.4;
}

.danger-confirm {
  border: 1px solid var(--border);
  background: var(--glass);
  border-radius: 18px;
  padding: 14px;
}

.danger-confirm-title {
  font-weight: 900;
  letter-spacing: 0.2px;
}

.danger-confirm-sub {
  margin-top: 6px;
  font-size: 12px;
  opacity: 0.7;
  line-height: 1.4;
}

.danger-form {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.danger-check {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--glass);
}

.danger-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.danger-check-text {
  font-size: 13px;
  opacity: 0.9;
  line-height: 1.35;
}

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

.danger-delete { flex: 1; }
.danger-cancel { white-space: nowrap; }

.danger-footnote {
  margin-top: 10px;
  font-size: 12px;
  opacity: 0.65;
  line-height: 1.35;
}

.danger-footnote a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* =========================
   PREMIUM PRIVACY
   ========================= */

.privacy-wrap { max-width: 960px; margin: 0 auto; }
.privacy-card { overflow: hidden; }

.privacy-hero {
  padding: 18px;
  border-bottom: 1px solid var(--border);
  background: var(--grad-hero, var(--glass));
}

.privacy-hero-top {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.privacy-hero-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-3);
  border: 1px solid var(--border);
  font-weight: 900;
  user-select: none;
}

.privacy-title {
  margin: 0;
  font-size: 20px;
  line-height: 1.1;
}

.privacy-subtitle {
  margin-top: 10px;
  font-size: 14px;
  opacity: 0.85;
  line-height: 1.45;
  max-width: 70ch;
}

.privacy-body { padding: 18px; }

.privacy-section {
  border: 1px solid var(--border);
  background: var(--glass);
  border-radius: 18px;
  padding: 14px;
}

.privacy-section-hd {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.privacy-section-title {
  font-weight: 900;
  letter-spacing: 0.2px;
}

.privacy-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--pill-bg);
  flex: 0 0 auto;
}

.privacy-status-label {
  font-size: 12px;
  opacity: 0.75;
}

.privacy-status-pill {
  font-size: 12px;
  font-weight: 800;
}

.privacy-section-desc {
  margin-top: 10px;
  font-size: 13px;
  opacity: 0.85;
  line-height: 1.45;
  max-width: 70ch;
}

.privacy-actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.privacy-divider {
  height: 1px;
  background: var(--border);
  margin: 14px 0;
}

.privacy-danger {
  border: 1px solid var(--danger-border);
  background: var(--danger-bg);
  border-radius: 18px;
  padding: 14px;
}

.privacy-danger-hd {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.privacy-danger-badge {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  font-weight: 900;
  flex: 0 0 auto;
  user-select: none;
}

.privacy-danger-kicker {
  font-size: 12px;
  opacity: 0.75;
  letter-spacing: 0.45px;
  text-transform: uppercase;
}

.privacy-danger-title {
  margin-top: 4px;
  font-weight: 900;
  letter-spacing: 0.2px;
}

.privacy-danger-desc {
  margin-top: 8px;
  font-size: 13px;
  opacity: 0.85;
  line-height: 1.45;
  max-width: 70ch;
}

.privacy-danger-actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.privacy-danger-footnote {
  margin-top: 10px;
  font-size: 12px;
  opacity: 0.65;
  line-height: 1.35;
}

.privacy-danger-footnote a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* =========================
   PREMIUM PROFILE EDITOR
   ========================= */

.profile-wrap { max-width: 920px; margin: 0 auto; }
.profile-card { overflow: hidden; }

.profile-hero {
  padding: 18px;
  border-bottom: 1px solid var(--border);
  background:
    var(--grad-hero, var(--glass));
}

.profile-hero-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: start;
}

.profile-badge {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pill-bg);
  border: 1px solid var(--ring);
  user-select: none;
}

.profile-title { margin: 0; font-size: 20px; line-height: 1.1; }

.profile-subtitle {
  margin-top: 8px;
  font-size: 13px;
  opacity: 0.72;
  line-height: 1.35;
  max-width: 72ch;
}

.profile-meter {
  min-width: 220px;
  border: 1px solid var(--border);
  background: var(--glass);
  border-radius: 16px;
  padding: 10px;
}

.profile-meter-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  opacity: 0.8;
}

.profile-meter-label { opacity: 0.72; }
.profile-meter-value { font-weight: 900; opacity: 0.95; }

.profile-meter-bar {
  height: 10px;
  border-radius: 999px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  margin-top: 8px;
  overflow: hidden;
}

.profile-meter-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--primary);
}

.profile-body { padding: 18px; }

.profile-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.profile-section {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--glass);
  padding: 14px;
}

.profile-section-hd {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}

.profile-section-title { font-weight: 900; letter-spacing: 0.2px; }
.profile-section-desc { font-size: 13px; opacity: 0.72; line-height: 1.35; }

.profile-field { display: flex; flex-direction: column; gap: 6px; }

.profile-textarea {
  width: 100%;
  min-height: 96px;
  resize: vertical;
}

.profile-hint {
  font-size: 12px;
  opacity: 0.62;
  line-height: 1.35;
}

.profile-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

@media (max-width: 640px) {
  .profile-hero-top { grid-template-columns: auto 1fr; }
  .profile-meter { grid-column: 1 / -1; }
  .profile-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.profile-photo-tile {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-3);
  aspect-ratio: 1 / 1;
}

.profile-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-photo-delete {
  position: absolute;
  left: 8px;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--border);
  font-size: 12px;
  opacity: 0.92;
  user-select: none;
}

.profile-photo-delete input { transform: translateY(1px); }

.profile-empty {
  margin-top: 10px;
  border-radius: 16px;
  padding: 14px;
  border: 1px dashed var(--border);
  background: var(--surface-3);
}

.profile-empty-title { font-weight: 900; }
.profile-empty-sub { margin-top: 6px; font-size: 13px; opacity: 0.72; }

.profile-upload {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-upload-input { display: none; }

.profile-upload-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--pill-bg);
  cursor: pointer;
  font-weight: 900;
}

.profile-upload-icon {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: var(--surface-3);
}

.profile-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

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

.profile-prompt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

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

.profile-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
}

/* =========================
   PREMIUM THEMES UI
   ========================= */

.theme-wrap { max-width: 980px; margin: 0 auto; }
.theme-card { overflow: hidden; }

.theme-hero {
  padding: 18px;
  border-bottom: 1px solid var(--border);
  background:
    var(--grad-hero, var(--glass));
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.theme-hero-left {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 240px;
  flex: 1;
}

.theme-badge {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pill-bg);
  border: 1px solid var(--border);
  user-select: none;
}

.theme-title { margin: 0; font-size: 20px; line-height: 1.1; }
.theme-subtitle {
  margin-top: 8px;
  font-size: 13px;
  opacity: 0.72;
  line-height: 1.35;
  max-width: 74ch;
}

.theme-current {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

.theme-current-label { font-size: 12px; opacity: 0.65; }

.theme-current-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--glass);
}

.theme-current-pill .dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--primary);
}

.theme-current-text { font-size: 12px; opacity: 0.9; font-weight: 900; }

.theme-body { padding: 18px; }

.theme-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.theme-section {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--glass);
  padding: 14px;
}

.theme-section-hd {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.theme-section-title { font-weight: 900; letter-spacing: 0.2px; }
.theme-section-desc { font-size: 13px; opacity: 0.72; line-height: 1.35; }

.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(144px, 1fr));
  gap: 10px;
}

.theme-tile {
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface-3);
  overflow: hidden;
  cursor: pointer;
  transition: transform .10s ease, border-color .12s ease, background .12s ease;
  display: flex;
  flex-direction: column;
  width: 144px;
  max-width: 144px;
}

.theme-tile:hover {
  transform: translateY(-2px);
  border-color: var(--ring);
  background: var(--pill-bg);
}

.theme-tile.active {
  border-color: var(--ring);
  background: var(--pill-bg);
}

.theme-radio { position: absolute; opacity: 0; pointer-events: none; }

.theme-preview {
  padding: 8px;
  min-height: 0;
  color: var(--tile-text, var(--text));
  background:
    radial-gradient(520px 140px at 20% 0%, color-mix(in srgb, var(--text) 10%, transparent), transparent 60%),
    linear-gradient(180deg, var(--tile-surface, var(--glass)), var(--tile-bg, var(--surface-3)));
}

.theme-tile.active .theme-preview {
  box-shadow: inset 0 0 0 1px var(--tile-primary-a45, var(--ring));
}

.theme-swatches {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  margin-top: 8px;
}

.theme-swatch {
  height: 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.theme-name {
  padding: 8px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.theme-name-title {
  font-weight: 900;
  line-height: 1.1;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.density-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 720px) {
  .density-row { grid-template-columns: 1fr; }
}

.density-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface-3);
  cursor: pointer;
  transition: transform .10s ease, border-color .12s ease, background .12s ease;
}

.density-tile:hover {
  transform: translateY(-2px);
  border-color: var(--ring);
  background: var(--pill-bg);
}

.density-tile.active {
  border-color: var(--ring);
  background: var(--pill-bg);
}

.density-radio { position: absolute; opacity: 0; pointer-events: none; }

.density-icon {
  width: 40px;
  height: 40px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pill-bg);
  border: 1px solid var(--border);
  user-select: none;
  flex: 0 0 auto;
}

.density-title { font-weight: 900; line-height: 1.1; }
.density-sub { font-size: 13px; opacity: 0.72; margin-top: 4px; }

.theme-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
}

/* =========================
   PREMIUM SAFETY UI
   ========================= */

.safety-wrap { max-width: 980px; margin: 0 auto; }
.safety-card { overflow: hidden; }

.safety-hero {
  padding: 18px;
  border-bottom: 1px solid var(--border);
  background:
    var(--grad-hero, var(--glass));
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.safety-hero-left {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 240px;
  flex: 1;
}

.safety-badge {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pill-bg);
  border: 1px solid var(--border);
  user-select: none;
}

.safety-title { margin: 0; font-size: 20px; line-height: 1.1; }
.safety-subtitle {
  margin-top: 8px;
  font-size: 13px;
  opacity: 0.72;
  line-height: 1.35;
  max-width: 74ch;
}

.safety-hero-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

.safety-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--glass);
  font-size: 12px;
  opacity: 0.85;
}

.safety-pill .dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--primary2);
}

.safety-body { padding: 18px; }

.safety-info {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

@media (max-width: 720px) {
  .safety-info { grid-template-columns: 1fr; }
}

.safety-info-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface-3);
}

.safety-info-ic {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pill-bg);
  border: 1px solid var(--border);
  flex: 0 0 auto;
  user-select: none;
}

.safety-info-title { font-weight: 900; line-height: 1.1; }
.safety-info-sub { margin-top: 4px; font-size: 12px; opacity: 0.72; line-height: 1.35; }

.safety-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 860px) {
  .safety-grid { grid-template-columns: 1fr; }
}

.safety-panel {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--glass);
  padding: 14px;
}

.safety-panel.danger {
  border-color: var(--danger-border);
  background: var(--danger-bg);
}

.safety-panel-hd {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.safety-panel-title { margin: 0; font-weight: 900; font-size: 16px; line-height: 1.1; }
.safety-panel-sub { margin-top: 6px; font-size: 13px; opacity: 0.72; line-height: 1.35; }

.safety-panel-tag {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--pill-bg);
  font-size: 11px;
  font-weight: 900;
  flex: 0 0 auto;
}

.safety-panel-tag.danger {
  border-color: var(--danger-border);
  background: var(--danger-bg);
  color: var(--c-on-danger, var(--text));
}

.safety-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.safety-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.safety-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 560px) {
  .safety-row { grid-template-columns: 1fr; }
}

.safety-help {
  font-size: 12px;
  opacity: 0.62;
  line-height: 1.35;
}

.safety-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.safety-footnote {
  font-size: 12px;
  opacity: 0.65;
  line-height: 1.35;
}

/* =========================
   PREMIUM MESSAGES LIST
   (FIXED: scoped so it doesn't collide with thread page)
   ========================= */

.messages-wrap { max-width: 980px; margin: 0 auto; }
.messages-card { overflow: hidden; }

.messages-hero {
  padding: 18px;
  border-bottom: 1px solid var(--border);
  background:
    var(--grad-hero, var(--glass));
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.messages-hero-left {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 240px;
  flex: 1;
}

.messages-badge {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pill-bg);
  border: 1px solid var(--border);
  user-select: none;
}

.messages-title { margin: 0; font-size: 20px; line-height: 1.1; }
.messages-subtitle {
  margin-top: 8px;
  font-size: 13px;
  opacity: 0.72;
  line-height: 1.35;
  max-width: 74ch;
}

.messages-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

.messages-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--glass);
  font-size: 12px;
  opacity: 0.85;
}

.messages-pill .dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--primary);
}

.messages-body { padding: 18px; }

.messages-empty {
  border: 1px dashed var(--border);
  border-radius: 18px;
  padding: 28px 18px;
  text-align: center;
  background: var(--surface-3);
}

.messages-empty-ic {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px auto;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pill-bg);
  border: 1px solid var(--border);
  font-size: 20px;
}

.messages-empty-title { font-weight: 900; font-size: 16px; }
.messages-empty-sub { margin-top: 6px; font-size: 13px; opacity: 0.72; line-height: 1.35; }

.messages-empty-mini {
  padding: 14px;
  border-radius: 16px;
  border: 1px dashed var(--border);
  background: var(--surface-3);
  text-align: center;
}

.messages-sections {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.messages-section {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--glass);
  padding: 14px;
}

.messages-section-hd {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.messages-section-title { margin: 0; font-weight: 900; font-size: 15px; line-height: 1.1; }
.messages-section-sub { font-size: 12px; opacity: 0.65; line-height: 1.35; }

.messages-wrap .thread-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.messages-wrap .thread-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface-3);
  text-decoration: none;
  color: inherit;
  transition: transform .10s ease, border-color .12s ease, background .12s ease;
}

.messages-wrap .thread-card:hover {
  transform: translateY(-2px);
  border-color: var(--ring);
  background: var(--pill-bg);
  text-decoration: none;
}

.messages-wrap .thread-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.messages-wrap .thread-avatar {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-3);
  flex: 0 0 auto;
}

.messages-wrap .thread-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.messages-wrap .thread-avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.messages-wrap .thread-main { min-width: 0; flex: 1; }

.messages-wrap .thread-top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.messages-wrap .thread-name { font-weight: 900; line-height: 1.1; }

.messages-wrap .thread-stage {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  border: 1px solid var(--border);
  background: var(--pill-bg);
  opacity: 0.85;
}

.messages-wrap .thread-stage.match {
  border-color: var(--ring);
  background: var(--pill-bg);
  color: var(--text);
}

.messages-wrap .thread-stage.active {
  border-color: var(--ring);
  background: var(--pill-bg);
  color: var(--text);
}

.messages-wrap .thread-stage.closed {
  border-color: var(--border);
  background: var(--surface-3);
  opacity: 0.65;
}

.messages-wrap .thread-preview {
  margin-top: 6px;
  font-size: 12px;
  opacity: 0.65;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.messages-wrap .thread-right { flex: 0 0 auto; }

.messages-wrap .thread-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--pill-bg);
  font-size: 12px;
  font-weight: 900;
}

/* =========================
   PREMIUM MESSAGE THREAD PAGE
   (FIXED: scoped under .thread-wrap so it won't collide)
   ========================= */

.thread-wrap { max-width: 1020px; margin: 0 auto; }
.thread-wrap .thread-card { overflow: hidden; }

.thread-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background:
    var(--grad-hero, var(--glass));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.thread-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
}

.thread-back {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  text-decoration: none;
  color: inherit;
  background: var(--pill-bg);
  border: 1px solid var(--border);
  transition: transform 120ms ease, background 120ms ease;
}
.thread-back:hover { transform: translateY(-1px); background: var(--surface-3); }

.thread-peer {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.thread-peer-avatar {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.thread-peer-avatar img { width: 100%; height: 100%; object-fit: cover; }
.thread-peer-fallback { opacity: 0.72; font-size: 16px; }

.thread-peer-meta { min-width: 0; }
.thread-peer-name {
  font-weight: 950;
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.thread-peer-stage { margin-top: 6px; }

.stage-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--pill-bg);
  opacity: 0.92;
}

.stage-pill.active {
  border-color: var(--ring);
  background: var(--pill-bg);
}

.stage-pill.closed {
  border-color: var(--danger-border);
  background: var(--danger-bg);
  opacity: 0.82;
}

.thread-header-right {
  display: flex;
  gap: 8px;
  align-items: center;
}

.thread-body { padding: 0; }

.thread-banner {
  margin: 14px 16px 0 16px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.thread-banner-text { font-size: 12px; opacity: 0.75; }

.thread-messages {
  padding: 16px;
  height: min(62vh, 620px);
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.msg-row { display: flex; width: 100%; }
.msg-row.me { justify-content: flex-end; }
.msg-row.them { justify-content: flex-start; }

.msg-bubble {
  max-width: 78%;
  border-radius: 18px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  background: var(--glass);
  position: relative;
}

.msg-bubble.me {
  background: var(--pill-bg);
  border-color: var(--ring);
}

.msg-bubble.them {
  background: var(--surface-3);
  border-color: var(--border);
}

.msg-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  opacity: 0.72;
  margin-bottom: 6px;
}

.msg-sender { font-weight: 800; }
.msg-dot { opacity: 0.7; }
.msg-time { opacity: 0.9; }

.msg-text {
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.thread-empty {
  padding: 22px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--glass);
  text-align: center;
}

.thread-empty-ic {
  width: 54px;
  height: 54px;
  margin: 0 auto;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: var(--pill-bg);
  border: 1px solid var(--border);
}

.thread-empty-title {
  margin-top: 12px;
  font-size: 16px;
  font-weight: 950;
}

.thread-empty-sub {
  margin-top: 6px;
  font-size: 13px;
  opacity: 0.72;
  line-height: 1.35;
}

.thread-composer {
  padding: 12px 16px 16px 16px;
  border-top: 1px solid var(--border);
  background: var(--glass);
}

.composer-form { margin: 0; }

.composer-label {
  display: block;
  margin-bottom: 8px;
}

.composer-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.composer-input {
  width: 100%;
  min-height: 46px;
  resize: vertical;
  border-radius: 16px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  padding: 10px 12px;
  color: inherit;
  outline: none;
}

.composer-input:focus { border-color: var(--ring); }

.composer-send {
  white-space: nowrap;
  border-radius: 16px;
  padding: 10px 14px;
}

.composer-hint { margin-top: 8px; opacity: 0.7; }

.thread-closed {
  margin: 14px 16px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--danger-border);
  background: var(--danger-bg);
}

.thread-closed-title {
  font-weight: 950;
  letter-spacing: 0.2px;
}

.thread-closed-body {
  margin-top: 6px;
  opacity: 0.78;
  font-size: 13px;
  line-height: 1.35;
}

/* =========================
   PREMIUM INTRODUCTIONS TODAY
   (FIXED: title/sub now scoped under .home-header so it doesn't override landing home)
   ========================= */

.home-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background:
    var(--grad-hero, var(--glass));
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.home-header .home-title { font-size: 18px; font-weight: 950; line-height: 1.1; }
.home-header .home-sub { margin-top: 6px; font-size: 13px; }
.home-pill { flex: 0 0 auto; }

.home-body { padding: 16px; }

.home-empty {
  border: 1px dashed var(--border);
  border-radius: 18px;
  padding: 28px 18px;
  text-align: center;
  background: var(--surface-3);
}

.home-empty-ic {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px auto;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pill-bg);
  border: 1px solid var(--border);
  font-size: 20px;
}

.home-empty-title { font-weight: 950; font-size: 16px; }
.home-empty-sub { margin-top: 6px; font-size: 13px; line-height: 1.35; }

.home-footer { margin-top: 8px; text-align: center; }

.empty-actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.empty-checklist {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.empty-check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface-3);
  color: inherit;
  text-decoration: none;
}

.empty-check-icon {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  font-size: 12px;
  opacity: 0.8;
}

.empty-check-icon.done {
  border-color: var(--ring);
  background: var(--pill-bg);
  opacity: 1;
}

.empty-check-label {
  font-size: 13px;
  font-weight: 600;
}

.setup-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px;
  background: var(--glass);
}

.setup-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.setup-ic {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pill-bg);
  border: 1px solid var(--border);
  flex: 0 0 auto;
}

.setup-title { font-weight: 950; line-height: 1.1; }
.setup-sub { margin-top: 6px; font-size: 13px; }

.setup-missing {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.setup-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--pill-bg);
  font-size: 12px;
  opacity: 0.9;
}

.chip.soft {
  border-color: var(--ring);
  background: var(--pill-bg);
}

.intro-card {
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  background: var(--glass);
}

.intro-media {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: 480px;
  background: var(--surface-3);
  overflow: hidden;
}

.intro-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.intro-photo-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  opacity: 0.4;
}

.intro-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 48px 16px 16px 16px;
  background: linear-gradient(to top, color-mix(in srgb, var(--bg) 85%, transparent) 0%, transparent 100%);
}

.intro-name {
  font-size: 22px;
  font-weight: 950;
  line-height: 1.1;
  text-shadow: 0 2px 8px color-mix(in srgb, var(--bg) 45%, transparent);
}

.intro-meta {
  margin-top: 6px;
  font-size: 13px;
  text-shadow: 0 1px 4px color-mix(in srgb, var(--bg) 35%, transparent);
}

.intro-today-pill {
  position: absolute;
  top: 14px;
  right: 14px;
}

.intro-details { padding: 14px 16px 16px 16px; }

.intro-why-label {
  font-size: 12px;
  margin-bottom: 8px;
}

.intro-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.intro-btn-primary { flex: 1; min-width: 120px; }
.intro-btn { flex: 0 0 auto; }

.intro-safety {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.subtle-danger { padding: 6px 10px; font-size: 12px; border-radius: 999px; }

.done-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px 18px;
  text-align: center;
  background: var(--glass);
}

.done-ic {
  width: 52px;
  height: 52px;
  margin: 0 auto;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pill-bg);
  border: 1px solid var(--border);
  font-size: 22px;
}

.done-title {
  margin-top: 12px;
  font-size: 18px;
  font-weight: 950;
}

.done-sub {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.35;
}

.done-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

/* =========================
   PREMIUM LOCAL
   ========================= */

.local-wrap { max-width: 980px; margin: 0 auto; }
.local-card { overflow: hidden; }

.local-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background:
    var(--grad-hero, var(--glass));
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.local-title { font-size: 18px; font-weight: 950; line-height: 1.1; }
.local-sub { margin-top: 6px; font-size: 13px; }

.local-pill { flex: 0 0 auto; }

.local-body { padding: 16px; }

.local-section {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--glass);
  padding: 14px;
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-left {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.section-ic {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pill-bg);
  border: 1px solid var(--border);
  flex: 0 0 auto;
}

.section-title { font-weight: 950; line-height: 1.1; }
.section-sub { margin-top: 6px; font-size: 13px; }

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.local-tile {
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface-3);
  transition: transform 100ms ease, border-color 120ms ease, background 120ms ease;
}

.local-tile:hover {
  transform: translateY(-2px);
  border-color: var(--ring);
  background: var(--pill-bg);
}

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

.tile-ic {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pill-bg);
  border: 1px solid var(--border);
  flex: 0 0 auto;
}

.tile-title { font-weight: 900; line-height: 1.1; }
.tile-sub { margin-top: 8px; font-size: 12px; line-height: 1.35; }

.pack-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

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

.pack-card {
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface-3);
  transition: transform 100ms ease, border-color 120ms ease, background 120ms ease;
}

.pack-card:hover {
  transform: translateY(-2px);
  border-color: var(--ring);
  background: var(--pill-bg);
}

.pack-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.pack-ic {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pill-bg);
  border: 1px solid var(--border);
  flex: 0 0 auto;
}

.pack-meta { min-width: 0; flex: 1; }
.pack-title { font-weight: 900; line-height: 1.1; }
.pack-tag { margin-top: 6px; }
.pack-sub { margin-top: 10px; font-size: 12px; line-height: 1.35; }

.local-footer { text-align: center; }

/* =========================
   PREMIUM EXPLORE
   ========================= */

.explore-wrap { max-width: 1020px; margin: 0 auto; }
.explore-card { overflow: hidden; }

.explore-header{
  padding: 16px 16px 14px 16px;
  border-bottom: 1px solid var(--border);
  background:
    var(--grad-hero, var(--glass));
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:12px;
  flex-wrap:wrap;
}

.explore-title{
  font-size:18px;
  font-weight:950;
  letter-spacing:.2px;
}

.explore-sub{
  margin-top:6px;
  font-size:13px;
  opacity:.72;
  line-height:1.35;
}

.explore-body{ padding:16px; }

.explore-toprow{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}

.explore-hint{ opacity:.75; }

.explore-spotlight{
  padding: 14px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background:
    var(--glass);
}

.spotlight-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}

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

.spotlight-photo{
  width:72px;
  height:72px;
  border-radius:22px;
  object-fit:cover;
  border: 1px solid var(--border);
  background: var(--surface-3);
}

.spotlight-photo.placeholder{
  display:grid;
  place-items:center;
  font-weight:900;
  opacity:.7;
}

.spotlight-meta{ min-width: 180px; }
.spotlight-name{
  font-weight:950;
  letter-spacing:.2px;
}

.spotlight-sub{
  margin-top:4px;
  font-size:13px;
  opacity:.72;
}

.spotlight-reasons{
  padding: 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface-3);
}

.chip-row{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.spotlight-actions{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}

.explore-footer{
  opacity:.75;
  padding: 0 2px;
  line-height:1.35;
  font-size: 13px;
}

.saved-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.saved-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--glass);
}

.saved-photo {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-3);
  flex: 0 0 auto;
}

.saved-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.saved-photo-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-weight: 900;
  opacity: 0.7;
}

.saved-meta { min-width: 0; flex: 1; }
.saved-name { font-weight: 900; letter-spacing: 0.2px; }
.saved-sub { margin-top: 4px; font-size: 12px; opacity: 0.72; }

.saved-chips { margin-top: 8px; gap: 6px; }

.saved-pill {
  position: absolute;
  top: 12px;
  right: 12px;
}

/* =========================
   PREMIUM CONNECTIONS LIST
   ========================= */

.connections-wrap { max-width: 1020px; margin: 0 auto; }
.connections-card { overflow: hidden; }

.connections-header{
  padding: 16px 16px 14px 16px;
  border-bottom: 1px solid var(--border);
  background:
    var(--grad-hero, var(--glass));
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:12px;
  flex-wrap:wrap;
}

.connections-title{
  font-size:18px;
  font-weight:950;
  letter-spacing:.2px;
}

.connections-sub{
  margin-top:6px;
  font-size:13px;
  opacity:.72;
  line-height:1.35;
}

.connections-body { padding:16px; }

.connections-summary{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}

.stat-pills{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
}

.statpill{
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--pill-bg);
  font-size: 12px;
  opacity: .92;
}

.section-hd h3{ margin: 0; font-size: 14px; font-weight: 950; letter-spacing: .2px; }

.conn-list{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.conn-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px;
  border-radius:18px;
  border: 1px solid var(--border);
  background: var(--surface-3);
  text-decoration:none;
  color: inherit;
  transition: transform 100ms ease, border-color 120ms ease, background 120ms ease;
}

.conn-row:hover{
  transform: translateY(-2px);
  border-color: var(--ring);
  background: var(--pill-bg);
  text-decoration:none;
}

.conn-left{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
  flex:1;
}

.conn-photo{
  width:56px;
  height:56px;
  border-radius:18px;
  object-fit:cover;
  border: 1px solid var(--border);
  background: var(--surface-3);
  flex: 0 0 auto;
}

.conn-photo.placeholder{
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  opacity:.7;
}

.conn-meta{ min-width:0; flex:1; }

.conn-name{
  font-weight:950;
  letter-spacing:.2px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.conn-sub{ margin-top:6px; font-size:12px; opacity:.72; line-height:1.35; }

.stagechip{
  display:inline-flex;
  align-items:center;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--pill-bg);
}

.dotsep{ margin: 0 6px; opacity: .55; }

.conn-right{ flex: 0 0 auto; }
.conn-open{ pointer-events: none; }

/* =========================
   PREMIUM CONNECTION DETAIL
   ========================= */

.conn-detail-wrap{ max-width: 1020px; margin: 0 auto; }
.conn-detail-card{ overflow: hidden; }

.conn-hero{
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background:
    var(--grad-hero, var(--glass));
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}

.conn-hero-left{
  display:flex;
  gap:12px;
  align-items:center;
  min-width: 240px;
}

.conn-hero-photo{
  width:62px;
  height:62px;
  border-radius:20px;
  object-fit:cover;
  border: 1px solid var(--border);
  background: var(--surface-3);
}

.conn-hero-photo.placeholder{
  display:grid;
  place-items:center;
  font-weight:900;
  opacity:.75;
}

.conn-hero-meta{ display:flex; flex-direction:column; gap:2px; }
.conn-hero-name{
  font-size:18px;
  font-weight:950;
  letter-spacing:.2px;
}
.conn-hero-handle{ font-size:13px; opacity:.78; }
.conn-hero-sub{ opacity:.72; }

.conn-hero-right{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.conn-stage-pill{ opacity:.95; }
.conn-hero-cta{ white-space:nowrap; }

.conn-detail-body{ padding:16px; }

.conn-grid{
  display:flex;
  gap:12px;
  align-items:flex-start;
  flex-wrap:wrap;
}

.conn-panel{
  flex: 1 1 420px;
  border: 1px solid var(--border);
  background: var(--surface-3);
  border-radius: 22px;
  padding: 14px;
}

.conn-panel-hd{ display:flex; flex-direction:column; gap:4px; margin-bottom:12px; }
.conn-panel-title{ font-weight:950; letter-spacing:.2px; }
.conn-panel-sub{ opacity:.72; }

.conn-timeline{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.conn-step{
  display:flex;
  gap:10px;
  align-items:flex-start;
  padding: 10px 10px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--glass);
}

.conn-step-dot{
  width:12px;
  height:12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-3);
  margin-top: 4px;
  flex: 0 0 auto;
}

.conn-step-title{ font-weight:900; }
.conn-step-sub{ opacity:.75; margin-top:2px; }

.conn-step.done{
  border-color: var(--ring);
  background: var(--pill-bg);
}

.conn-step.done .conn-step-dot{
  background: var(--primary2);
  border-color: var(--ring);
}

.conn-step.active{
  border-color: var(--ring);
  background: var(--pill-bg);
}

.conn-step.active .conn-step-dot{
  background: var(--primary);
  border-color: var(--ring);
}

.conn-nudge{
  border-radius: 18px;
  padding: 12px;
  border: 1px solid var(--border);
  background: var(--surface-3);
}

.conn-nudge-title{
  font-weight:950;
  margin-bottom:6px;
}

.conn-action-card{
  border-radius: 18px;
  padding: 12px;
  border: 1px solid var(--border);
  background: var(--glass);
}

.conn-action-card.dangerzone{
  border-color: var(--danger-border);
  background: var(--danger-bg);
}

.dangerzone-hd{ margin-bottom:10px; }
.dangerzone-title{ font-weight:950; }
.dangerzone-sub{ opacity:.72; }

/* =========================
   PREMIUM CLOSE PREVIEW
   ========================= */

.close-wrap{ max-width: 1020px; margin: 0 auto; }
.close-card{ overflow: hidden; }

.close-hero{
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background:
    var(--grad-hero, var(--glass));
}

.close-hero-top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  flex-wrap:wrap;
}

.close-title{
  font-size:18px;
  font-weight:950;
  letter-spacing:.2px;
}

.close-sub{ margin-top:6px; opacity:.78; }
.close-who{ opacity:.95; }

.close-body{ padding:16px; }

.close-summary{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  flex-wrap:wrap;
  padding: 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--glass);
}

.close-summary-left{ display:flex; flex-direction:column; gap:4px; }
.close-summary-label{ opacity:.72; }

.close-summary-right{
  display:flex;
  align-items:flex-start;
  gap:10px;
  flex-wrap:wrap;
}

.close-reason{ display:flex; flex-direction:column; gap:6px; align-items:flex-end; }

.close-panel{
  border-radius: 22px;
  padding: 14px;
  border: 1px solid var(--border);
  background: var(--surface-3);
}

.close-panel.subtle{
  border-color: var(--border);
  background: var(--glass);
}

.close-panel-hd{ display:flex; flex-direction:column; gap:4px; margin-bottom:12px; }
.close-panel-title{ font-weight:950; letter-spacing:.2px; }
.close-panel-sub{ opacity:.72; }

.close-message-preview{
  border-radius: 18px;
  padding: 12px;
  border: 1px solid var(--border);
  background: var(--glass);
}

.close-message-meta{ opacity:.72; margin-bottom:8px; }

.close-message-body{
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.close-danger{
  border-radius: 22px;
  padding: 14px;
  border: 1px solid var(--danger-border);
  background: var(--danger-bg);
}

.close-danger-hd{ display:flex; flex-direction:column; gap:4px; margin-bottom:12px; }
.close-danger-title{ font-weight:950; letter-spacing:.2px; }
.close-danger-sub{ opacity:.72; }

.close-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}

/* =========================
   PREMIUM AUTH (LOGIN/REGISTER)
   ========================= */

.auth-wrap{
  max-width: 560px;
  margin: 0 auto;
}

.auth-card{
  overflow:hidden;
}

.auth-hero{
  padding: 16px;
  border-bottom: 1px solid var(--border);
  background:
    var(--grad-hero, var(--glass));
}

.auth-title{
  font-size: 20px;
  font-weight: 950;
  letter-spacing: .2px;
}

.auth-sub{
  opacity: .78;
  margin-top: 4px;
}

.auth-body{
  padding: 16px;
}

.auth-error{
  border-radius: 18px;
}

.auth-form{
  display:block;
}

.auth-grid{
  gap: 12px;
}

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

.auth-field .input{
  width: 100%;
}

.auth-hint{
  margin-top: 6px;
  opacity: .72;
}

.auth-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-top: 10px;
}

.auth-link{
  text-decoration:none;
  font-weight: 800;
  opacity: .8;
}
.auth-link:hover{
  opacity: 1;
  text-decoration: underline;
}

.auth-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}

.auth-primary{
  min-width: 140px;
}

.auth-secondary{
  opacity:.95;
}

.auth-footer{
  opacity:.72;
}
