@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: rgba(255,255,255,0.03);
  --bg-card-hover: rgba(255,255,255,0.06);
  --glass: rgba(255,255,255,0.04);
  --glass-border: rgba(255,255,255,0.08);
  --text-primary: #e8e4df;
  --text-secondary: #8a8690;
  --text-muted: #5a5660;
  --accent: #e8a44a;
  --accent-glow: rgba(232,164,74,0.15);
  --accent-soft: #d4925a;
  --rose: #e85d75;
  --emerald: #4ecb8d;
  --lavender: #9b8ec4;
  --sky: #5ca8e8;
  --border: rgba(255,255,255,0.06);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.4);
  --shadow-lg: 0 16px 64px rgba(0,0,0,0.5);
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Animated Background ─────────────────────────── */
.bg-mesh {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.bg-mesh .orb {
  position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.12;
  animation: orbFloat 20s ease-in-out infinite;
}
.bg-mesh .orb:nth-child(1) {
  width: 600px; height: 600px; background: var(--accent);
  top: -15%; left: -10%; animation-duration: 25s;
}
.bg-mesh .orb:nth-child(2) {
  width: 500px; height: 500px; background: var(--lavender);
  bottom: -20%; right: -10%; animation-duration: 30s; animation-delay: -5s;
}
.bg-mesh .orb:nth-child(3) {
  width: 400px; height: 400px; background: var(--rose);
  top: 40%; left: 50%; animation-duration: 22s; animation-delay: -10s;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ── Grain Overlay ───────────────────────────────── */
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat; background-size: 128px;
}

/* ── Layout ──────────────────────────────────────── */
.page-wrap { position: relative; z-index: 2; min-height: 100vh; }
.container { max-width: 720px; margin: 0 auto; padding: 0 24px; }
.container--wide { max-width: 960px; }

/* ── Typography ──────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; }
.subtitle { color: var(--text-secondary); font-size: 1.05rem; font-weight: 300; line-height: 1.7; max-width: 520px; }
.accent-text { color: var(--accent); }
.tag {
  display: inline-block; font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--accent); background: var(--accent-glow);
  padding: 5px 12px; border-radius: 100px;
}

/* ── Buttons ─────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  border: none; cursor: pointer; border-radius: var(--radius-md);
  padding: 14px 32px; transition: all 0.4s var(--transition); position: relative; overflow: hidden;
}
.btn--primary {
  background: var(--accent); color: #0a0a0f;
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px var(--accent-glow); }
.btn--ghost {
  background: var(--glass); color: var(--text-primary); border: 1px solid var(--glass-border);
}
.btn--ghost:hover { background: var(--bg-card-hover); border-color: rgba(255,255,255,0.12); }
.btn--sm { padding: 8px 18px; font-size: 0.82rem; border-radius: var(--radius-sm); }
.btn--icon {
  width: 40px; height: 40px; padding: 0; border-radius: var(--radius-sm);
  background: var(--glass); border: 1px solid var(--glass-border); color: var(--text-secondary);
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.3s var(--transition);
}
.btn--icon:hover { background: var(--bg-card-hover); color: var(--text-primary); }
.btn:disabled { opacity: 0.4; pointer-events: none; }
.btn .spinner { width: 18px; height: 18px; border: 2px solid transparent; border-top-color: currentColor; border-radius: 50%; animation: spin 0.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Inputs ──────────────────────────────────────── */
.input-group { display: flex; flex-direction: column; gap: 6px; }
.input-group label { font-size: 0.78rem; font-weight: 500; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.08em; }
.input {
  width: 100%; padding: 14px 18px; font-family: var(--font-body); font-size: 0.95rem;
  background: var(--glass); border: 1px solid var(--glass-border); border-radius: var(--radius-md);
  color: var(--text-primary); transition: all 0.3s var(--transition); outline: none;
}
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.input::placeholder { color: var(--text-muted); }
textarea.input { resize: vertical; min-height: 120px; line-height: 1.6; }

/* ── Cards ───────────────────────────────────────── */
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  transition: all 0.4s var(--transition);
}
.card:hover { background: var(--bg-card-hover); border-color: rgba(255,255,255,0.1); }
.glass-card {
  background: var(--glass); backdrop-filter: blur(20px) saturate(1.2);
  border: 1px solid var(--glass-border); border-radius: var(--radius-lg); padding: 32px;
}

/* ── Navbar ──────────────────────────────────────── */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0; margin-bottom: 20px;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 700;
  color: var(--text-primary); text-decoration: none;
}
.nav-brand .logo-dot { width: 10px; height: 10px; background: var(--accent); border-radius: 50%; animation: pulse 3s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.6; transform: scale(0.85); } }

/* ── Hero Section ────────────────────────────────── */
.hero { padding: 80px 0 60px; text-align: left; }
.hero h1 { margin-bottom: 16px; }
.hero .subtitle { margin-bottom: 40px; }
.hero-form { display: flex; flex-direction: column; gap: 16px; max-width: 440px; }
.hero-form .input-row { display: flex; gap: 12px; }
.hero-form .input-row .input { flex: 1; }

/* ── Features Grid ───────────────────────────────── */
.features { padding: 60px 0 80px; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-top: 32px; }
.feature-card { padding: 24px; }
.feature-card .feature-icon { font-size: 1.6rem; margin-bottom: 12px; display: block; }
.feature-card h3 { margin-bottom: 6px; font-size: 1rem; }
.feature-card p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5; }

/* ── Send Page ───────────────────────────────────── */
.send-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 40px 24px; }
.send-container { width: 100%; max-width: 480px; }
.send-header { text-align: center; margin-bottom: 32px; }
.send-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--rose));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: #0a0a0f;
  margin: 0 auto 16px;
}
.send-header h2 { margin-bottom: 4px; }
.send-header p { color: var(--text-secondary); font-size: 0.9rem; }

.mood-picker { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.mood-btn {
  padding: 8px 14px; border-radius: 100px; border: 1px solid var(--glass-border);
  background: var(--glass); cursor: pointer; font-size: 0.85rem;
  transition: all 0.3s var(--transition); color: var(--text-secondary);
}
.mood-btn:hover, .mood-btn.active { background: var(--accent-glow); border-color: var(--accent); color: var(--accent); }

.char-count { text-align: right; font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; }
.char-count.warning { color: var(--rose); }

/* ── Send Success ────────────────────────────────── */
.send-success { text-align: center; padding: 40px 0; display: none; }
.send-success .check-circle {
  width: 64px; height: 64px; border-radius: 50%; background: var(--emerald);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; font-size: 1.8rem; animation: scaleIn 0.5s var(--transition);
}
@keyframes scaleIn { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ── Dashboard ───────────────────────────────────── */
.dash-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 0; flex-wrap: wrap; gap: 16px;
}
.dash-user { display: flex; align-items: center; gap: 14px; }
.dash-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--rose));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; color: #0a0a0f;
  cursor: default; user-select: none; -webkit-user-select: none;
}
.dash-actions { display: flex; gap: 8px; align-items: center; }

.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 28px; }
.stat-card { padding: 20px; text-align: center; }
.stat-card .stat-value { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; color: var(--accent); }
.stat-card .stat-label { font-size: 0.75rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 4px; }

.filters-bar {
  display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; align-items: center;
}
.filter-chip {
  padding: 7px 16px; border-radius: 100px; font-size: 0.8rem; font-weight: 500;
  border: 1px solid var(--glass-border); background: var(--glass);
  color: var(--text-secondary); cursor: pointer; transition: all 0.3s var(--transition);
}
.filter-chip:hover, .filter-chip.active { background: var(--accent-glow); border-color: var(--accent); color: var(--accent); }
.search-input {
  flex: 1; min-width: 180px; padding: 8px 16px; border-radius: 100px;
  font-size: 0.85rem; background: var(--glass); border: 1px solid var(--glass-border);
  color: var(--text-primary); outline: none; font-family: var(--font-body);
}
.search-input:focus { border-color: var(--accent); }

/* ── Message Cards ───────────────────────────────── */
.messages-list { display: flex; flex-direction: column; gap: 12px; padding-bottom: 60px; }
.msg-card {
  padding: 22px 24px; position: relative;
  animation: slideUp 0.4s var(--transition) both;
}
.msg-card:nth-child(1) { animation-delay: 0s; }
.msg-card:nth-child(2) { animation-delay: 0.05s; }
.msg-card:nth-child(3) { animation-delay: 0.1s; }
.msg-card:nth-child(4) { animation-delay: 0.15s; }
.msg-card:nth-child(5) { animation-delay: 0.2s; }
@keyframes slideUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

.msg-content { font-size: 1rem; line-height: 1.7; margin-bottom: 14px; word-break: break-word; }
.msg-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.msg-tags { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.msg-category {
  font-size: 0.68rem; padding: 3px 10px; border-radius: 100px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.msg-category.compliment { background: rgba(78,203,141,0.12); color: var(--emerald); }
.msg-category.question { background: rgba(92,168,232,0.12); color: var(--sky); }
.msg-category.confession { background: rgba(155,142,196,0.12); color: var(--lavender); }
.msg-category.roast { background: rgba(232,93,117,0.12); color: var(--rose); }
.msg-category.general { background: rgba(255,255,255,0.06); color: var(--text-muted); }
.msg-mood { font-size: 0.9rem; }
.msg-time { font-size: 0.72rem; color: var(--text-muted); }
.msg-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.msg-reaction { position: absolute; top: 12px; right: 16px; font-size: 1.2rem; }

/* ── Reaction Picker ─────────────────────────────── */
.reaction-picker {
  position: absolute; bottom: 100%; right: 0; background: var(--bg-secondary);
  border: 1px solid var(--glass-border); border-radius: var(--radius-md);
  padding: 8px; display: none; gap: 4px; z-index: 10; box-shadow: var(--shadow-md);
}
.reaction-picker.show { display: flex; }
.reaction-picker button {
  width: 36px; height: 36px; border: none; background: transparent;
  border-radius: var(--radius-sm); cursor: pointer; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
}
.reaction-picker button:hover { background: var(--glass); transform: scale(1.2); }

/* ── X-Ray Mode (Secret) ────────────────────────── */
.xray-panel { display: none; }
.xray-panel.active { display: block; }
.xray-banner {
  background: linear-gradient(135deg, rgba(232,164,74,0.08), rgba(232,93,117,0.08));
  border: 1px solid rgba(232,164,74,0.2); border-radius: var(--radius-lg);
  padding: 16px 24px; margin-bottom: 20px;
  display: flex; align-items: center; gap: 12px;
  font-size: 0.88rem; color: var(--accent);
}
.sender-group { margin-bottom: 24px; }
.sender-label {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 100px; font-size: 0.78rem; font-weight: 600;
  margin-bottom: 12px; letter-spacing: 0.04em;
}
.sender-1 { background: rgba(232,164,74,0.12); color: var(--accent); }
.sender-2 { background: rgba(92,168,232,0.12); color: var(--sky); }
.sender-3 { background: rgba(155,142,196,0.12); color: var(--lavender); }
.sender-4 { background: rgba(232,93,117,0.12); color: var(--rose); }
.sender-5 { background: rgba(78,203,141,0.12); color: var(--emerald); }

/* ── Login Gate ──────────────────────────────────── */
.login-gate {
  display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 40px 24px;
}
.login-box { width: 100%; max-width: 400px; text-align: center; }
.login-box h2 { margin-bottom: 8px; }
.login-box .subtitle { margin: 0 auto 32px; }
.login-box form { display: flex; flex-direction: column; gap: 14px; }

/* ── Share Box ───────────────────────────────────── */
.share-box {
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: var(--radius-md); padding: 14px 18px;
  display: flex; align-items: center; gap: 12px; margin-top: 16px;
}
.share-box .share-link {
  flex: 1; font-family: var(--font-body); font-size: 0.88rem;
  color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ── Toast ───────────────────────────────────────── */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 100; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: var(--bg-secondary); border: 1px solid var(--glass-border);
  border-radius: var(--radius-md); padding: 14px 20px;
  color: var(--text-primary); font-size: 0.88rem; box-shadow: var(--shadow-md);
  animation: toastIn 0.4s var(--transition);
  display: flex; align-items: center; gap: 10px;
}
.toast.leaving { animation: toastOut 0.3s var(--transition) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(20px) scale(0.95); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-10px) scale(0.95); } }

/* ── Empty State ─────────────────────────────────── */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state .empty-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; margin-bottom: 16px;
  background: rgba(232,164,74,0.08);
  border: 1px solid rgba(232,164,74,0.15);
  border-radius: 18px; color: var(--accent);
  font-size: 1.8rem; opacity: 0.85;
}
.empty-state h3 { color: var(--text-secondary); margin-bottom: 6px; }
.empty-state p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.6; max-width: 360px; margin: 0 auto; }

/* ── Footer ──────────────────────────────────────── */
.footer { padding: 40px 0; text-align: center; font-size: 0.78rem; color: var(--text-muted); border-top: 1px solid var(--border); margin-top: 60px; }

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 600px) {
  .hero { padding: 50px 0 40px; }
  .hero-form .input-row { flex-direction: column; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .dash-header { flex-direction: column; align-items: flex-start; }
  .glass-card { padding: 24px; }
  .container { padding: 0 16px; }
}

/* ── Animations ──────────────────────────────────── */
.fade-in { animation: fadeIn 0.6s var(--transition) both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } }
.stagger > *:nth-child(1) { animation-delay: 0s; }
.stagger > *:nth-child(2) { animation-delay: 0.08s; }
.stagger > *:nth-child(3) { animation-delay: 0.16s; }
.stagger > *:nth-child(4) { animation-delay: 0.24s; }

/* ── Secret Badge (Send Page) ────────────────────── */
.secret-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(78,203,141,0.08); border: 1px solid rgba(78,203,141,0.18);
  border-radius: 100px; padding: 8px 16px; margin-bottom: 20px;
  font-size: 0.78rem; color: var(--emerald); font-weight: 500;
}
.trust-signals {
  display: flex; gap: 16px; flex-wrap: wrap; margin-top: 20px;
  padding-top: 16px; border-top: 1px solid var(--border);
}
.trust-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.72rem; color: var(--text-muted); font-weight: 400;
}
.trust-item svg { opacity: 0.5; }

/* ── Unread Indicator ────────────────────────────── */
.msg-card.unread { border-left: 3px solid var(--accent); }
.msg-card.unread::before {
  content: ''; position: absolute; top: 16px; left: 12px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 8px var(--accent-glow);
}
.unread-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; background: var(--accent-glow);
  border: 1px solid rgba(232,164,74,0.15); border-radius: var(--radius-md);
  margin-bottom: 16px; font-size: 0.82rem; color: var(--accent);
}
.unread-bar button {
  background: none; border: none; color: var(--accent);
  cursor: pointer; font-size: 0.78rem; font-weight: 600;
  text-decoration: underline; font-family: var(--font-body);
}

/* ── Admin Note ──────────────────────────────────── */
.msg-note {
  margin-top: 10px; padding: 8px 12px;
  background: rgba(155,142,196,0.06); border: 1px solid rgba(155,142,196,0.12);
  border-radius: var(--radius-sm); font-size: 0.8rem; color: var(--lavender);
}
.msg-note-input {
  width: 100%; padding: 6px 10px; margin-top: 8px;
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm); color: var(--text-primary);
  font-family: var(--font-body); font-size: 0.8rem; outline: none;
}
.msg-note-input:focus { border-color: var(--lavender); }

/* ── Device Info (X-Ray) ─────────────────────────── */
.sender-meta {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; margin-top: 4px;
}
.sender-meta-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 100px; font-size: 0.68rem;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
  color: var(--text-secondary);
}

/* ── Analytics Panel ─────────────────────────────── */
.analytics-panel { margin-bottom: 28px; }
.analytics-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px; margin-top: 16px;
}
.analytics-card { padding: 18px; }
.analytics-card h4 { font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; }
.analytics-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.analytics-bar-label { font-size: 0.78rem; color: var(--text-secondary); min-width: 60px; }
.analytics-bar-fill {
  height: 6px; border-radius: 3px; background: var(--accent);
  transition: width 0.6s var(--transition);
}
.analytics-bar-count { font-size: 0.72rem; color: var(--text-muted); }

/* ── (legacy delete-btn rule removed; using .icon-btn--danger now) ── */

/* ── Dash Toolbar ────────────────────────────────── */
.dash-toolbar {
  display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap;
}

/* ── Send-page auth gate ─────────────────────────── */
.tabs {
  display: flex; gap: 4px; background: rgba(255,255,255,0.03);
  padding: 4px; border-radius: 12px; border: 1px solid var(--glass-border);
  margin-bottom: 18px;
}
.tabs .tab {
  flex: 1; padding: 10px 14px; background: transparent; color: var(--text-secondary);
  border: none; border-radius: 8px; font-family: var(--font-display); font-weight: 600;
  font-size: 0.85rem; cursor: pointer; transition: all 0.2s var(--transition);
}
.tabs .tab.active { background: var(--accent); color: #0a0a0f; }
.tabs .tab:hover:not(.active) { color: var(--text-primary); background: rgba(255,255,255,0.04); }

.auth-hint {
  font-size: 0.85rem; color: var(--text-secondary); line-height: 1.55;
  margin-bottom: 16px; padding: 12px 14px; background: rgba(232,164,74,0.05);
  border-left: 3px solid var(--accent); border-radius: 6px;
}
.auth-hint em { color: var(--accent); font-style: normal; font-weight: 600; }
.auth-hint strong { color: var(--text-primary); }

.trust-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px; margin-top: 24px;
}
.trust-card {
  padding: 16px; border-radius: 14px;
  background: var(--glass); border: 1px solid var(--glass-border);
  text-align: left;
}
.trust-card .trust-icon { font-size: 1.5rem; margin-bottom: 8px; display: block; }
.trust-card strong { display: block; font-family: var(--font-display); margin-bottom: 4px; font-size: 0.92rem; }
.trust-card p { font-size: 0.78rem; color: var(--text-muted); line-height: 1.5; }
.trust-card em { color: var(--accent); font-style: normal; }

/* ── Alias banner ────────────────────────────────── */
.alias-banner {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(232,164,74,0.08), rgba(155,142,196,0.06));
  border: 1px solid rgba(232,164,74,0.2);
  border-radius: 14px;
}
.alias-emoji { font-size: 2rem; line-height: 1; }
.alias-info { flex: 1; min-width: 0; }
.alias-tag { display: block; font-size: 0.65rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 2px; }
.alias-info strong { display: block; font-family: var(--font-display); font-size: 1rem; color: var(--accent); margin-bottom: 2px; word-break: break-all; }
.alias-meta { font-size: 0.72rem; color: var(--text-muted); }

/* ── Hints field ─────────────────────────────────── */
.optional-tag {
  display: inline-block; font-size: 0.62rem; padding: 2px 8px;
  background: rgba(155,142,196,0.15); color: var(--lavender);
  border-radius: 100px; margin-left: 6px; vertical-align: middle;
  font-weight: 500; letter-spacing: 0.05em;
}
.hints-input { min-height: 70px; resize: vertical; }
.field-help {
  font-size: 0.72rem; color: var(--text-muted); margin-top: 6px;
  line-height: 1.5;
}
.msg-hints {
  margin: 8px 0; padding: 10px 12px;
  background: rgba(155,142,196,0.08);
  border-left: 3px solid var(--lavender);
  border-radius: 6px;
  font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5;
}
.msg-hints strong { color: var(--lavender); }

/* ── Sender pill on msg cards ────────────────────── */
.msg-sender {
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
}
.sender-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 100px;
  background: rgba(232,164,74,0.1); border: 1px solid rgba(232,164,74,0.2);
  color: var(--accent); font-size: 0.78rem; font-weight: 600;
  font-family: var(--font-display);
}
.sender-count {
  font-size: 0.68rem; color: var(--text-muted);
  padding: 2px 8px; border-radius: 100px; background: rgba(255,255,255,0.04);
}

/* ── Reply thread on dashboard ───────────────────── */
.reply-thread {
  margin-top: 12px; padding-top: 12px;
  border-top: 1px dashed var(--border);
  display: flex; flex-direction: column; gap: 8px;
}
.reply-bubble {
  align-self: flex-end; max-width: 85%;
  padding: 10px 14px; border-radius: 16px 16px 4px 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  color: #0a0a0f;
}
.reply-bubble p { font-size: 0.9rem; line-height: 1.5; word-wrap: break-word; }
.reply-meta { font-size: 0.68rem; opacity: 0.7; margin-bottom: 4px; }

.reply-box {
  margin-top: 12px; padding: 12px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
}
.reply-box textarea {
  width: 100%; min-height: 60px; resize: vertical;
  margin-bottom: 8px;
}
.reply-actions {
  display: flex; justify-content: flex-end; gap: 8px;
}

/* ── Sender Inbox threads ────────────────────────── */
.thread-group { padding: 18px; margin-bottom: 16px; }
.thread-head {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 14px; margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.thread-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  color: #0a0a0f; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700;
}
.thread-head strong { display: block; font-family: var(--font-display); font-size: 1rem; }
.thread-uname { font-size: 0.78rem; color: var(--text-muted); }
.thread-head a { margin-left: auto; }
.thread-msg { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.thread-bubble {
  max-width: 88%; padding: 12px 14px; border-radius: 16px;
  font-size: 0.9rem; line-height: 1.55;
}
.thread-bubble p { word-wrap: break-word; }
.bubble-out {
  align-self: flex-start;
  background: rgba(255,255,255,0.04); border: 1px solid var(--glass-border);
  border-bottom-left-radius: 4px;
}
.bubble-in {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  color: #0a0a0f; border-bottom-right-radius: 4px;
}
.bubble-new { box-shadow: 0 0 0 2px var(--accent-glow), 0 8px 24px rgba(232,164,74,0.15); }
.bubble-meta { font-size: 0.68rem; opacity: 0.7; margin-top: 6px; }
.bubble-hints {
  margin-top: 8px; padding: 8px 10px;
  background: rgba(155,142,196,0.1);
  border-left: 2px solid var(--lavender);
  border-radius: 6px; font-size: 0.78rem; color: var(--text-secondary);
}

.ib-info-banner {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 16px; margin-bottom: 24px;
  background: rgba(78,203,141,0.06); border: 1px solid rgba(78,203,141,0.2);
  border-radius: 12px; font-size: 0.85rem; color: var(--text-secondary); line-height: 1.55;
}
.ib-info-icon { font-size: 1.2rem; }
.ib-info-banner strong { color: var(--text-primary); display: block; margin-bottom: 2px; }
.ib-info-banner em { color: var(--accent); font-style: normal; font-weight: 600; }

/* ── How-it-works grid ───────────────────────────── */
.howto-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px; margin-top: 20px;
}
.howto-card {
  padding: 22px; position: relative;
}
.howto-num {
  display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  color: #0a0a0f; border-radius: 50%; font-family: var(--font-display);
  font-weight: 700; font-size: 0.95rem; margin-bottom: 14px;
}
.howto-card h3 { margin-bottom: 8px; font-size: 1rem; }
.howto-card p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; }
.howto-card code {
  background: rgba(255,255,255,0.06); padding: 2px 6px; border-radius: 4px;
  font-size: 0.82rem; color: var(--accent);
}

/* ── Comparison table ────────────────────────────── */
.compare-card { padding: 0; overflow: hidden; margin-top: 18px; }
.compare-table {
  width: 100%; border-collapse: collapse; font-size: 0.9rem;
}
.compare-table th, .compare-table td {
  padding: 12px 16px; text-align: left;
  border-bottom: 1px solid var(--border);
}
.compare-table thead th {
  font-family: var(--font-display); font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-muted); font-weight: 600;
  background: rgba(255,255,255,0.02);
}
.compare-table .col-wb { color: var(--accent); font-weight: 600; }
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody tr:hover { background: rgba(255,255,255,0.02); }

/* ── FAQ ─────────────────────────────────────────── */
.faq { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  padding: 0; overflow: hidden; transition: all 0.3s var(--transition);
}
.faq-item summary {
  cursor: pointer; padding: 16px 18px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  list-style: none; display: flex; align-items: center; justify-content: space-between;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; font-size: 1.5rem; color: var(--accent);
  font-weight: 300; transition: transform 0.3s var(--transition);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  padding: 0 18px 18px; font-size: 0.88rem; color: var(--text-secondary);
  line-height: 1.65;
}
.faq-item p strong { color: var(--text-primary); }
.faq-item p em { color: var(--accent); font-style: normal; font-weight: 500; }
.faq-item:hover { background: var(--bg-card-hover); }

/* ── Dashboard header refinement ─────────────────── */
.dash-userinfo h1 { font-size: 1.3rem; line-height: 1.1; margin-bottom: 4px; }
.dash-userinfo-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.dash-handle {
  font-size: 0.85rem; color: var(--text-muted);
  font-family: var(--font-display);
}

/* ── Visibility pill (always visible in header) ──── */
.visibility-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 12px 5px 10px; border-radius: 100px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary); font-size: 0.78rem; font-weight: 500;
  cursor: pointer;
  transition: all 0.2s var(--transition);
}
.visibility-pill:hover {
  background: rgba(255,255,255,0.07);
  transform: translateY(-1px);
}
.visibility-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--text-muted);
  transition: all 0.2s var(--transition);
}
.visibility-pill[data-state="public"] {
  background: rgba(78,203,141,0.08);
  border-color: rgba(78,203,141,0.3);
  color: var(--emerald);
}
.visibility-pill[data-state="public"] .visibility-dot {
  background: var(--emerald);
  box-shadow: 0 0 0 3px rgba(78,203,141,0.2);
  animation: pulse-dot 2s infinite;
}
.visibility-pill[data-state="private"] {
  background: rgba(255,255,255,0.04);
  border-color: var(--glass-border);
  color: var(--text-secondary);
}
.visibility-pill[data-state="private"] .visibility-dot {
  background: var(--text-muted);
}
.visibility-pill[data-state="loading"] { opacity: 0.6; cursor: wait; }
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(78,203,141,0.2); }
  50% { box-shadow: 0 0 0 6px rgba(78,203,141,0.05); }
}

/* ── Share Hub (the big prominent card) ──────────── */
.share-hub {
  padding: 24px; margin-bottom: 24px;
  background: linear-gradient(135deg, rgba(232,164,74,0.08), rgba(155,142,196,0.05));
  border: 1px solid rgba(232,164,74,0.2);
}
.share-hub-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px; margin-bottom: 16px; flex-wrap: wrap;
}
.share-hub-title {
  font-size: 1.05rem; margin-bottom: 4px;
}
.share-hub-sub {
  font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5;
}
.share-hub-stats {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 100px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--glass-border);
  font-size: 0.72rem; color: var(--text-muted); white-space: nowrap;
}
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.dot--ok { background: var(--emerald); }
.dot--mute { background: var(--text-muted); }

.share-hub-link {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; border-radius: 14px;
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--glass-border);
  margin-bottom: 14px;
}

/* Recommended question block inside the share hub */
.share-hub-recommend {
  padding: 18px;
  background: linear-gradient(135deg, rgba(78,203,141,0.08), rgba(232,164,74,0.04));
  border: 1.5px solid rgba(78,203,141,0.3);
  border-radius: 16px;
  margin-bottom: 16px;
}
.share-hub-recommend-head { margin-bottom: 12px; }
.share-hub-recommend-tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 100px;
  background: rgba(78,203,141,0.12); color: var(--emerald);
  font-size: 0.65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.share-hub-recommend-head strong {
  display: block; font-family: var(--font-display);
  font-size: 1rem; margin-bottom: 4px;
}
.share-hub-recommend-meta {
  display: block; font-size: 0.78rem; color: var(--text-secondary);
  line-height: 1.5;
}
.share-hub-recommend-quote {
  margin: 0 0 12px 0; padding: 12px 14px;
  background: rgba(0,0,0,0.2);
  border-left: 3px solid var(--emerald);
  border-radius: 8px;
  font-family: var(--font-display); font-size: 0.95rem;
  font-weight: 500; color: var(--text-primary);
  line-height: 1.5; word-wrap: break-word;
}
.share-hub-recommend .share-hub-link {
  margin-bottom: 12px;
}
.share-hub-recommend .share-hub-link > [data-icon],
.share-hub-recommend .share-hub-link > .icon-wrap {
  color: var(--emerald);
}

/* Collapsible "or share whole box" panel */
.share-hub-generic {
  margin-bottom: 14px;
}
.share-hub-generic-summary {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--glass-border);
  cursor: pointer; user-select: none; list-style: none;
  transition: all 0.2s var(--transition);
}
.share-hub-generic-summary::-webkit-details-marker { display: none; }
.share-hub-generic-summary:hover {
  background: rgba(255,255,255,0.05);
}
.share-hub-generic-title {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.88rem; font-weight: 600;
  color: var(--text-primary); font-family: var(--font-display);
}
.share-hub-generic-meta {
  flex: 1; font-size: 0.76rem; color: var(--text-muted);
  margin: 0 10px;
}
.share-hub-generic-chev {
  color: var(--text-muted);
  transition: transform 0.25s var(--transition);
}
details[open] > .share-hub-generic-summary .share-hub-generic-chev { transform: rotate(90deg); }
details[open] > .share-hub-generic-summary {
  background: rgba(255,255,255,0.05);
  margin-bottom: 12px;
}
@media (max-width: 540px) {
  .share-hub-generic-summary { flex-wrap: wrap; }
  .share-hub-generic-meta { width: 100%; margin: 4px 0 0 0; }
  .share-hub-recommend { padding: 14px; }
}
.share-hub-link > [data-icon], .share-hub-link > .icon-wrap { color: var(--accent); flex-shrink: 0; }
.share-hub-link-text {
  flex: 1; font-family: 'Space Grotesk', monospace;
  font-size: 0.95rem; color: var(--text-primary);
  word-break: break-all;
  font-weight: 500;
}
.share-hub-actions {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.share-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: 100px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary); font-size: 0.82rem; font-weight: 500;
  text-decoration: none; cursor: pointer;
  transition: all 0.18s var(--transition);
}
.share-chip:hover {
  background: rgba(255,255,255,0.08);
  color: var(--text-primary);
  transform: translateY(-1px);
}
.share-chip svg { color: inherit; flex-shrink: 0; }
.share-chip--accent {
  background: rgba(232,164,74,0.12);
  border-color: rgba(232,164,74,0.3);
  color: var(--accent);
}
.share-chip--accent:hover {
  background: rgba(232,164,74,0.2);
  color: var(--accent);
}

/* ── Welcome banner ──────────────────────────────── */
.welcome-banner {
  padding: 22px; margin-bottom: 24px;
  background: linear-gradient(135deg, rgba(155,142,196,0.08), rgba(92,168,232,0.05));
  border: 1px solid rgba(155,142,196,0.25);
  position: relative;
}
.welcome-head {
  display: flex; align-items: center; gap: 12px; margin-bottom: 8px;
}
.welcome-head [data-icon], .welcome-head .icon-wrap { color: var(--lavender); }
.welcome-head h3 {
  flex: 1; font-size: 1.05rem;
}
.welcome-sub {
  font-size: 0.88rem; color: var(--text-secondary); margin-bottom: 16px;
}
.welcome-steps {
  list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px;
}
.welcome-steps li {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 10px 12px; border-radius: 10px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--glass-border);
}
.welcome-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--lavender), #7d6fb0);
  color: #0a0a0f; border-radius: 50%;
  font-family: var(--font-display); font-weight: 700; font-size: 0.85rem;
}
.welcome-steps li > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.welcome-steps strong { font-size: 0.9rem; font-family: var(--font-display); }
.welcome-steps span { font-size: 0.78rem; color: var(--text-muted); }

/* ── Section heading ─────────────────────────────── */
.section-heading {
  font-size: 1rem; font-family: var(--font-display);
  color: var(--text-secondary); margin-bottom: 12px;
  text-transform: uppercase; letter-spacing: 0.06em;
  font-weight: 600;
}

/* ── Analytics collapsible ───────────────────────── */
details.analytics-panel { margin-bottom: 24px; }
.analytics-summary {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-radius: 12px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--glass-border);
  cursor: pointer; list-style: none;
  font-size: 0.85rem; color: var(--text-secondary);
  user-select: none;
  transition: all 0.2s var(--transition);
}
.analytics-summary::-webkit-details-marker { display: none; }
.analytics-summary:hover {
  background: rgba(255,255,255,0.05);
  color: var(--text-primary);
}
.analytics-chev {
  transition: transform 0.25s var(--transition);
}
details[open] .analytics-chev { transform: rotate(90deg); }
details[open] .analytics-summary { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
details.analytics-panel .analytics-grid { margin-top: 0; }

/* ── Mobile tweaks for share hub ─────────────────── */
@media (max-width: 540px) {
  .share-hub { padding: 18px; }
  .share-hub-head { flex-direction: column; align-items: stretch; }
  .share-hub-stats { align-self: flex-start; }
  .share-hub-link { flex-wrap: wrap; }
  .share-hub-link-text { font-size: 0.85rem; min-width: 100%; }
  .share-chip { flex: 1; min-width: calc(50% - 4px); justify-content: center; }
  .visibility-pill { font-size: 0.72rem; padding: 4px 10px 4px 8px; }
}

/* ── Settings panel + toggle switch ──────────────── */
.settings-panel { padding: 22px; margin-bottom: 24px; }
.settings-row {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 14px 0; border-bottom: 1px solid var(--border);
}
.settings-row:last-child { border-bottom: none; }
.settings-row strong { font-family: var(--font-display); font-size: 0.95rem; display: block; }
.settings-help {
  font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; line-height: 1.55;
}
.settings-help a { color: var(--accent); text-decoration: none; }

.switch {
  position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
}
.switch input { display: none; }
.switch-slider {
  width: 42px; height: 24px; border-radius: 100px;
  background: rgba(255,255,255,0.1); position: relative;
  transition: background 0.25s var(--transition);
}
.switch-slider::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--text-primary);
  transition: transform 0.25s var(--transition);
}
.switch input:checked + .switch-slider { background: var(--accent); }
.switch input:checked + .switch-slider::after { transform: translateX(18px); background: #0a0a0f; }
.switch-label {
  font-size: 0.78rem; color: var(--text-secondary); font-weight: 500;
}

/* ── World page ──────────────────────────────────── */
.world-hero { text-align: center; padding: 48px 0 28px; }
.world-hero h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); }
.world-hero .subtitle { margin: 12px auto 0; }

.world-tabs {
  display: flex; gap: 4px; padding: 4px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--glass-border);
  border-radius: 14px; margin-bottom: 20px;
  max-width: 360px;
}
.world-tab {
  flex: 1; padding: 10px 14px;
  background: transparent; color: var(--text-secondary);
  border: none; border-radius: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.88rem;
  cursor: pointer; transition: all 0.2s var(--transition);
}
.world-tab.active { background: var(--accent); color: #0a0a0f; }
.world-tab:hover:not(.active) { color: var(--text-primary); background: rgba(255,255,255,0.04); }

.world-auth-banner {
  display: flex; gap: 10px; align-items: center; justify-content: space-between;
  padding: 12px 16px; margin-bottom: 18px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--glass-border);
  border-radius: 12px; font-size: 0.82rem;
}
.world-auth-banner.owner-mode  { border-color: rgba(232,164,74,0.3); background: rgba(232,164,74,0.05); }
.world-auth-banner.sender-mode { border-color: rgba(155,142,196,0.3); background: rgba(155,142,196,0.05); }
.world-auth-banner.guest-mode  { border-color: rgba(92,168,232,0.3); background: rgba(92,168,232,0.05); }
.world-auth-banner strong { color: var(--text-primary); }

.world-cta {
  padding: 14px 16px; margin-bottom: 18px;
  background: rgba(155,142,196,0.06); border: 1px solid rgba(155,142,196,0.2);
}
.world-cta strong { display: block; margin-bottom: 4px; font-family: var(--font-display); }
.world-cta p { font-size: 0.85rem; color: var(--text-secondary); }
.world-cta a { color: var(--accent); text-decoration: none; }

.world-composer { padding: 18px; margin-bottom: 20px; }
.composer-head {
  display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
}
.composer-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  color: #0a0a0f; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700;
}
.composer-head strong { font-family: var(--font-display); display: block; }
.composer-meta { font-size: 0.72rem; color: var(--text-muted); }
.world-composer textarea { min-height: 80px; resize: vertical; }
.composer-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 10px;
}
.composer-types { display: flex; gap: 6px; flex: 1; flex-wrap: wrap; }
.ptype {
  padding: 5px 12px; border-radius: 100px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--glass-border);
  color: var(--text-secondary); font-size: 0.75rem; font-weight: 500;
  cursor: pointer; transition: all 0.2s var(--transition);
}
.ptype:hover { background: rgba(255,255,255,0.08); color: var(--text-primary); }
.ptype.active { background: var(--accent); color: #0a0a0f; border-color: var(--accent); }

.world-filter {
  display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap;
}

/* ── Composer label + meta row + two-button submit ── */
.composer-label {
  display: block;
  font-size: 0.78rem; font-weight: 600;
  color: var(--text-secondary); text-transform: uppercase;
  letter-spacing: 0.06em; margin-bottom: 8px;
}
.composer-meta-row {
  display: flex; align-items: center; gap: 12px;
  margin-top: 10px; flex-wrap: wrap;
}
.composer-types-label {
  font-size: 0.72rem; color: var(--text-muted); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.composer-meta-row .char-count { margin-left: auto; }

.composer-submit {
  margin-top: 20px; padding-top: 18px;
  border-top: 1px dashed var(--border);
}
.composer-submit-label {
  font-size: 0.78rem; font-weight: 600;
  color: var(--text-secondary); text-transform: uppercase;
  letter-spacing: 0.06em; margin-bottom: 12px;
}
.submit-options {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.submit-option {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  padding: 16px; border-radius: 14px;
  background: rgba(255,255,255,0.03);
  border: 1.5px solid var(--glass-border);
  cursor: pointer; text-align: left;
  transition: all 0.2s var(--transition);
  position: relative;
}
.submit-option:hover {
  background: rgba(255,255,255,0.06);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.submit-option-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px;
  flex-shrink: 0;
}
.submit-option-text { display: flex; flex-direction: column; gap: 2px; }
.submit-option-text strong {
  font-family: var(--font-display); font-size: 0.95rem;
  color: var(--text-primary);
}
.submit-option-text span {
  font-size: 0.78rem; color: var(--text-muted); line-height: 1.45;
}
.submit-option-cta {
  margin-top: 4px; font-size: 0.78rem; font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.2s var(--transition);
}
.submit-option--public .submit-option-icon {
  background: rgba(78,203,141,0.12); color: var(--emerald);
}
.submit-option--public:hover {
  border-color: rgba(78,203,141,0.4);
  background: rgba(78,203,141,0.06);
}
.submit-option--public:hover .submit-option-cta { color: var(--emerald); }
.submit-option--private .submit-option-icon {
  background: rgba(155,142,196,0.12); color: var(--lavender);
}
.submit-option--private:hover {
  border-color: rgba(155,142,196,0.4);
  background: rgba(155,142,196,0.06);
}
.submit-option--private:hover .submit-option-cta { color: var(--lavender); }
.submit-option.loading { opacity: 0.6; pointer-events: none; }
.submit-option.loading::after {
  content: ''; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid var(--text-muted); border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }

@media (max-width: 540px) {
  .submit-options { grid-template-columns: 1fr; }
}

/* Dashboard composer card */
.dash-composer {
  padding: 22px; margin-bottom: 24px;
  background: linear-gradient(135deg, rgba(92,168,232,0.05), rgba(232,164,74,0.04));
  border: 1px solid rgba(92,168,232,0.18);
}
.dash-composer-head { margin-bottom: 14px; }
.dash-composer-title { font-size: 1.05rem; margin-bottom: 4px; }
.dash-composer-sub { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5; }
.dash-composer textarea { min-height: 80px; resize: vertical; }

/* Discover card with latest question */
.discover-card-head {
  display: flex; align-items: center; gap: 10px; width: 100%;
  text-decoration: none; color: inherit;
  margin-bottom: 10px;
}
.discover-byline { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.discover-byline strong { font-family: var(--font-display); font-size: 0.95rem; }
.discover-card { text-align: left; align-items: stretch; padding: 18px; }
.discover-card .discover-avatar { margin-bottom: 0; width: 42px; height: 42px; font-size: 1.05rem; flex-shrink: 0; }
.discover-card .discover-bio {
  font-size: 0.82rem; line-height: 1.5;
  margin-bottom: 12px; min-height: auto;
}

.discover-question {
  margin-top: auto; padding: 12px 14px;
  background: rgba(232,164,74,0.06);
  border: 1px solid rgba(232,164,74,0.18);
  border-radius: 12px;
  display: flex; flex-direction: column; gap: 8px;
}
.discover-question-tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.65rem; font-weight: 700;
  color: var(--accent); text-transform: uppercase;
  letter-spacing: 0.08em;
}
.discover-question-text {
  font-size: 0.88rem; color: var(--text-primary); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}
.discover-answer-btn {
  align-self: flex-start; margin-top: 4px;
  text-decoration: none;
}
.discover-noop {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  margin-top: auto; padding: 12px;
  text-decoration: none;
  border-top: 1px dashed var(--border);
}
.discover-noop .discover-cta {
  font-size: 0.82rem; color: var(--accent); font-weight: 600;
}

/* ── My Questions panel on dashboard ─────────────── */
.my-questions { margin-bottom: 24px; }
.my-questions-head {
  display: flex; align-items: baseline; gap: 12px;
  margin-bottom: 14px; flex-wrap: wrap;
}
.my-questions-help {
  font-size: 0.78rem; color: var(--text-muted); line-height: 1.5;
}
.my-question-card { padding: 16px 18px; margin-bottom: 12px; }
.mq-head {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 10px; flex-wrap: wrap;
}
.mq-type {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 100px;
  background: rgba(232,164,74,0.1); border: 1px solid rgba(232,164,74,0.2);
  color: var(--accent); font-size: 0.68rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.mq-vis {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 100px;
  font-size: 0.68rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.mq-vis--public {
  background: rgba(78,203,141,0.08);
  border: 1px solid rgba(78,203,141,0.3);
  color: var(--emerald);
}
.mq-vis--private {
  background: rgba(155,142,196,0.08);
  border: 1px solid rgba(155,142,196,0.3);
  color: var(--lavender);
}
.mq-time { font-size: 0.72rem; color: var(--text-muted); }
.mq-del { margin-left: auto; }
.mq-content {
  font-size: 0.95rem; line-height: 1.55;
  margin-bottom: 12px; word-wrap: break-word;
  color: var(--text-primary);
}
.mq-stats {
  display: flex; gap: 14px; flex-wrap: wrap;
  padding: 8px 0; margin-bottom: 12px;
  border-top: 1px dashed var(--border);
  border-bottom: 1px dashed var(--border);
  font-size: 0.78rem; color: var(--text-secondary);
}
.mq-stat { display: inline-flex; align-items: center; gap: 5px; position: relative; }
.mq-stat strong { color: var(--text-primary); font-variant-numeric: tabular-nums; }
.mq-stat--new strong { color: var(--accent); }
.mq-stat-new-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); margin-left: 2px;
  box-shadow: 0 0 0 3px rgba(232,164,74,0.2);
  animation: pulse-dot 2s infinite;
}
.mq-actions { display: flex; flex-direction: column; gap: 10px; }
.mq-link-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px;
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--glass-border);
}
.mq-link-text {
  flex: 1; font-family: 'Space Grotesk', monospace;
  font-size: 0.82rem; color: var(--text-secondary);
  word-break: break-all;
}
.mq-share-row {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.mq-view-answers { font-weight: 500; }
@media (max-width: 540px) {
  .mq-link-row { flex-direction: column; align-items: stretch; }
  .mq-share-row .share-chip { flex: 1; min-width: calc(50% - 4px); justify-content: center; }
}

/* ── Message tagged with question it answers ─────── */
.msg-answers-tag {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 12px; margin-bottom: 10px;
  background: rgba(232,164,74,0.06);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  font-size: 0.78rem; color: var(--text-secondary);
  flex-wrap: wrap;
}
.msg-answers-tag em {
  color: var(--text-primary); font-style: normal; font-weight: 500;
}
.msg-answers-tag span:first-of-type {
  color: var(--accent); font-weight: 600;
}

/* ── Active filter banner above messages list ────── */
.msg-filter-banner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
  padding: 12px 16px; margin-bottom: 14px;
  background: rgba(232,164,74,0.06);
  border: 1px solid rgba(232,164,74,0.2);
  border-radius: 12px;
  font-size: 0.85rem; color: var(--text-secondary);
}
.msg-filter-banner em {
  color: var(--text-primary); font-style: normal; font-weight: 500;
}

/* ── /q/:postId question hero page ───────────────── */
.q-owner-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 18px;
}
.q-owner-tag {
  display: block; font-size: 0.72rem;
  color: var(--text-muted); text-transform: uppercase;
  letter-spacing: 0.08em;
}
.q-owner-header strong {
  font-family: var(--font-display); font-size: 1.05rem;
  display: block; margin-top: 2px;
}
.q-owner-header a {
  font-size: 0.78rem; color: var(--accent); text-decoration: none;
}
.q-hero {
  padding: 28px 24px; margin-bottom: 22px;
  background: linear-gradient(135deg, rgba(232,164,74,0.1), rgba(232,164,74,0.04));
  border: 1.5px solid rgba(232,164,74,0.25);
  border-radius: 22px;
  position: relative;
}
.q-hero-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 100px;
  background: rgba(232,164,74,0.15);
  color: var(--accent); font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.q-hero-meta {
  font-weight: 500; opacity: 0.7; text-transform: none; letter-spacing: 0;
}
.q-hero-text {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  font-weight: 600; line-height: 1.35;
  color: var(--text-primary);
  margin: 0 0 18px 0;
  word-wrap: break-word;
  border-left: 4px solid var(--accent);
  padding-left: 18px;
}
.q-hero-stats {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-size: 0.82rem; color: var(--text-secondary);
}
.q-hero-stats span {
  display: inline-flex; align-items: center; gap: 5px;
}
.q-hero-divider { opacity: 0.4; }
@media (max-width: 540px) {
  .q-hero { padding: 22px 18px; }
  .q-hero-text { padding-left: 14px; border-left-width: 3px; }
}

/* ── Owner questions on /m/:username (the PRIMARY action when posts exist) ── */
.owner-questions {
  margin: 0 0 22px 0;
  padding: 22px 18px 18px;
  background: linear-gradient(135deg, rgba(232,164,74,0.08), rgba(232,164,74,0.03));
  border: 1.5px solid rgba(232,164,74,0.25);
  border-radius: 22px;
  display: flex; flex-direction: column; gap: 10px;
  position: relative;
}
.owner-questions-head {
  text-align: center; margin-bottom: 8px;
}
.owner-questions-tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 12px; border-radius: 100px;
  background: rgba(232,164,74,0.15);
  color: var(--accent); font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.owner-questions-head h3 {
  font-size: 1.15rem; font-family: var(--font-display);
  color: var(--text-primary); margin-bottom: 6px;
  font-weight: 600;
}
.owner-questions-head p {
  font-size: 0.85rem; color: var(--text-secondary); line-height: 1.55;
  max-width: 420px; margin: 0 auto;
}
.owner-question {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  padding: 16px 18px; border-radius: 14px;
  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(232,164,74,0.18);
  cursor: pointer; text-align: left;
  transition: all 0.2s var(--transition);
  width: 100%;
  text-decoration: none;
  color: inherit;
}
.owner-question:hover {
  background: rgba(232,164,74,0.08);
  border-color: rgba(232,164,74,0.45);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.owner-question-tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.65rem; font-weight: 700;
  color: var(--accent); text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 9px; border-radius: 100px;
  background: rgba(232,164,74,0.1);
}
.owner-question-text {
  font-size: 1rem; color: var(--text-primary);
  line-height: 1.5; font-weight: 500;
  word-wrap: break-word;
}
.owner-question-cta {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 4px; padding: 6px 12px; border-radius: 100px;
  background: var(--accent); color: #0a0a0f;
  font-size: 0.78rem; font-weight: 600;
  align-self: flex-end;
}
.owner-question:hover .owner-question-cta {
  background: var(--accent-soft);
  transform: translateX(2px);
}

/* ── Freeform whisper section (collapsible, secondary when questions exist) ── */
#freeform-wrap.freeform--secondary { margin-top: 8px; }
.freeform-details {
  background: transparent; border: none; padding: 0;
}
.freeform-summary {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--glass-border);
  cursor: pointer; user-select: none;
  list-style: none;
  transition: all 0.2s var(--transition);
}
.freeform-summary::-webkit-details-marker { display: none; }
.freeform-summary:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.12);
}
.freeform-summary-title {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.92rem; font-weight: 600;
  color: var(--text-primary); font-family: var(--font-display);
}
.freeform-summary-meta {
  flex: 1; font-size: 0.78rem; color: var(--text-muted);
  margin: 0 12px;
}
.freeform-summary-chev {
  color: var(--text-muted);
  transition: transform 0.25s var(--transition);
}
details[open] .freeform-summary-chev { transform: rotate(90deg); }
details[open] .freeform-summary {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.1);
  margin-bottom: 14px;
}
.freeform-body { padding: 0; }

/* When freeform is the primary (no questions), hide its summary and just show the form */
#freeform-wrap:not(.freeform--secondary) .freeform-summary { display: none; }
#freeform-wrap:not(.freeform--secondary) .freeform-details { padding: 0; background: transparent; border: none; }

@media (max-width: 540px) {
  .freeform-summary { flex-wrap: wrap; }
  .freeform-summary-meta { width: 100%; margin: 4px 0 0 0; }
}

/* World post cards */
.world-post { padding: 18px; margin-bottom: 14px; }
.wp-head {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.wp-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  color: #0a0a0f; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; flex-shrink: 0;
}
.wp-byline { flex: 1; min-width: 0; }
.wp-byline strong { font-family: var(--font-display); display: block; font-size: 0.92rem; }
.wp-handle { font-size: 0.72rem; color: var(--text-muted); }
.wp-type {
  padding: 3px 10px; border-radius: 100px;
  background: rgba(232,164,74,0.1); color: var(--accent);
  font-size: 0.68rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em;
}
.wp-del {
  background: transparent; border: none; color: var(--text-muted); cursor: pointer;
  font-size: 0.95rem; padding: 4px 8px; border-radius: 6px;
}
.wp-del:hover { color: var(--rose); background: rgba(232,93,117,0.1); }
.wp-content {
  font-size: 1rem; line-height: 1.6; color: var(--text-primary);
  margin-bottom: 14px; word-wrap: break-word; white-space: pre-wrap;
}
.wp-actions {
  display: flex; gap: 8px; padding-top: 10px;
  border-top: 1px solid var(--border);
}
.wp-action {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 100px;
  background: transparent; border: 1px solid var(--glass-border);
  color: var(--text-secondary); font-size: 0.82rem;
  cursor: pointer; transition: all 0.2s var(--transition);
}
.wp-action:hover { background: rgba(255,255,255,0.04); color: var(--text-primary); }
.wp-action.liked { color: var(--rose); border-color: rgba(232,93,117,0.3); background: rgba(232,93,117,0.06); }
.wp-action span { font-weight: 600; font-variant-numeric: tabular-nums; }

.wp-replies {
  margin-top: 14px; padding: 12px 14px;
  background: rgba(255,255,255,0.02); border-radius: 12px;
  display: flex; flex-direction: column; gap: 10px;
}
.wp-reply { padding: 8px 0; border-bottom: 1px dashed var(--border); }
.wp-reply:last-child { border-bottom: none; padding-bottom: 0; }
.wp-reply-author {
  display: flex; align-items: center; gap: 8px; margin-bottom: 4px;
}
.wp-reply-alias {
  font-size: 0.75rem; font-weight: 600; color: var(--lavender);
  font-family: var(--font-display);
}
.wp-reply-user {
  font-size: 0.75rem; font-weight: 600; color: var(--accent);
  font-family: var(--font-display);
}
.wp-reply-time { font-size: 0.7rem; color: var(--text-muted); }
.wp-reply p { font-size: 0.88rem; line-height: 1.55; color: var(--text-primary); word-wrap: break-word; }

.wp-reply-box {
  margin-top: 12px; padding: 12px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--glass-border); border-radius: 12px;
}
.wp-reply-box textarea { width: 100%; min-height: 60px; margin-bottom: 8px; resize: vertical; }
.wp-reply-box-disabled {
  margin-top: 12px; padding: 10px; text-align: center;
  font-size: 0.78rem; color: var(--text-muted);
  background: rgba(255,255,255,0.02); border-radius: 8px;
}

/* Discover */
.discover-toolbar {
  display: flex; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap;
}
.discover-toolbar .search-input { flex: 1; min-width: 200px; }
.discover-info { font-size: 0.75rem; color: var(--text-muted); }

.discover-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.discover-card {
  padding: 22px 18px; text-align: center; text-decoration: none;
  color: inherit; display: flex; flex-direction: column; align-items: center;
  transition: all 0.25s var(--transition);
}
.discover-card:hover {
  transform: translateY(-3px);
  border-color: rgba(232,164,74,0.3);
  background: rgba(232,164,74,0.04);
}
.discover-avatar {
  width: 54px; height: 54px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  color: #0a0a0f; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.4rem;
  margin-bottom: 12px;
}
.discover-card strong { font-family: var(--font-display); font-size: 1rem; margin-bottom: 2px; }
.discover-handle { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 10px; }
.discover-bio {
  font-size: 0.82rem; color: var(--text-secondary); line-height: 1.5;
  min-height: 2.4em; margin-bottom: 12px;
}
.discover-bio.dim { color: var(--text-muted); font-style: italic; }
.discover-count {
  margin-top: auto;
  font-size: 0.72rem; color: var(--accent); font-weight: 600;
  padding: 4px 10px; border-radius: 100px; background: rgba(232,164,74,0.08);
}

/* ── Icon system ─────────────────────────────────── */
.icon, .icon-wrap svg {
  display: inline-block; vertical-align: -2px;
  flex-shrink: 0; transition: transform 0.2s var(--transition);
}
.icon-wrap { display: inline-flex; align-items: center; }
.btn .icon { margin-right: -2px; }
.btn:hover .icon { transform: translateX(1px); }
.btn--primary:hover .icon { transform: translateX(2px); }

/* Round icon button (used in card actions, nav) */
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px; color: var(--text-muted);
  cursor: pointer;
  transition: all 0.18s var(--transition);
}
.icon-btn:hover {
  background: rgba(255,255,255,0.05);
  color: var(--text-primary);
  border-color: var(--glass-border);
  transform: translateY(-1px);
}
.icon-btn:active { transform: translateY(0); }
.icon-btn--danger:hover { color: var(--rose); border-color: rgba(232,93,117,0.3); background: rgba(232,93,117,0.06); }
.icon-btn--accent:hover { color: var(--accent); border-color: rgba(232,164,74,0.3); background: rgba(232,164,74,0.08); }
.icon-btn--active { color: var(--accent); background: rgba(232,164,74,0.1); border-color: rgba(232,164,74,0.3); }
.icon-btn--star.active { color: var(--accent); }
.icon-btn--star.active svg { fill: var(--accent); }

/* Pill button — labeled action with icon */
.pill-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 100px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary); font-size: 0.82rem; font-weight: 500;
  cursor: pointer;
  transition: all 0.18s var(--transition);
}
.pill-btn:hover {
  background: rgba(255,255,255,0.08);
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-1px);
}
.pill-btn--accent {
  background: rgba(232,164,74,0.1);
  border-color: rgba(232,164,74,0.25);
  color: var(--accent);
}
.pill-btn--accent:hover {
  background: rgba(232,164,74,0.18);
  border-color: rgba(232,164,74,0.4);
  color: var(--accent);
}

/* Tooltip (CSS-only, no JS) */
.has-tip { position: relative; }
.has-tip::after {
  content: attr(data-tip);
  position: absolute; bottom: calc(100% + 6px); left: 50%;
  transform: translateX(-50%) translateY(2px);
  padding: 5px 10px; border-radius: 6px;
  background: rgba(20,20,28,0.95); color: var(--text-primary);
  font-size: 0.7rem; font-weight: 500; white-space: nowrap;
  pointer-events: none; opacity: 0; transition: all 0.18s var(--transition);
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 100;
}
.has-tip:hover::after { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Kebab menu */
.kebab { position: relative; }
.kebab-menu {
  display: none;
  position: absolute; right: 0; top: calc(100% + 6px);
  min-width: 160px;
  background: rgba(20,20,28,0.98);
  border: 1px solid var(--glass-border);
  border-radius: 10px; padding: 6px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
  z-index: 50;
}
.kebab.show .kebab-menu { display: block; }
.kebab-menu button {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 8px 10px;
  background: transparent; border: none; border-radius: 6px;
  color: var(--text-secondary); font-size: 0.85rem; cursor: pointer;
  text-align: left;
  transition: all 0.15s var(--transition);
}
.kebab-menu button:hover { background: rgba(255,255,255,0.05); color: var(--text-primary); }
.kebab-menu button.danger:hover { color: var(--rose); background: rgba(232,93,117,0.08); }

/* Input with prefix (e.g. whisperbox.app/m/____) */
.input-prefix {
  display: flex; align-items: stretch;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s var(--transition);
}
.input-prefix:focus-within {
  border-color: rgba(232,164,74,0.4);
  background: rgba(232,164,74,0.04);
}
.input-prefix-text {
  display: flex; align-items: center;
  padding: 0 12px;
  background: rgba(255,255,255,0.02);
  color: var(--text-muted);
  font-size: 0.85rem; font-family: var(--font-body);
  border-right: 1px solid var(--glass-border);
  white-space: nowrap;
}
.input-prefix .input {
  border: none; background: transparent; flex: 1;
  border-radius: 0; padding-left: 12px;
}
.input-prefix .input:focus { background: transparent; box-shadow: none; }

/* Sender mask — visible emoji that's part of the user identity */
.sender-mask {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.95em; line-height: 1;
}

/* Section headings get a small icon prefix sometimes */
.section-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: rgba(232,164,74,0.1);
  border-radius: 10px; color: var(--accent);
  margin-bottom: 10px;
}
.feature-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: linear-gradient(135deg, rgba(232,164,74,0.15), rgba(232,164,74,0.05));
  border: 1px solid rgba(232,164,74,0.2);
  border-radius: 14px; color: var(--accent);
  margin-bottom: 14px;
}
.feature-card:hover .feature-icon {
  transform: rotate(-3deg) scale(1.05);
  background: linear-gradient(135deg, rgba(232,164,74,0.25), rgba(232,164,74,0.08));
}
.feature-icon, .feature-card .feature-icon { transition: all 0.3s var(--transition); }

/* About section (Modern Age Coders) */
.about-grid {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px;
  margin-top: 24px; align-items: start;
}
.about-text p {
  font-size: 0.98rem; line-height: 1.75; color: var(--text-secondary);
  margin-bottom: 16px;
}
.about-text p:last-child { margin-bottom: 0; }
.about-text strong { color: var(--text-primary); }
.about-text em { color: var(--accent); font-style: normal; font-weight: 500; }
.mac-link {
  color: var(--accent); text-decoration: none;
  border-bottom: 1px dashed rgba(232,164,74,0.4);
  transition: all 0.2s var(--transition);
}
.mac-link:hover {
  color: var(--accent-soft);
  border-bottom-color: var(--accent);
}
.about-card {
  padding: 28px 24px; text-align: left;
  background: linear-gradient(160deg, rgba(232,164,74,0.06), rgba(155,142,196,0.04));
  border: 1px solid rgba(232,164,74,0.2);
  position: sticky; top: 20px;
}
.about-logo {
  display: inline-flex; width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: var(--accent); color: #0a0a0f;
  border-radius: 12px; font-size: 1.5rem; font-weight: 700;
  margin-bottom: 14px;
}
.about-card h3 { font-size: 1.2rem; margin-bottom: 6px; }
.about-tagline {
  font-size: 0.88rem; color: var(--text-secondary);
  margin-bottom: 16px; font-style: italic;
}
.about-list {
  list-style: none; padding: 0; margin-bottom: 18px;
}
.about-list li {
  padding: 8px 0; font-size: 0.85rem; color: var(--text-secondary);
  display: flex; align-items: flex-start; gap: 10px;
  border-bottom: 1px dashed var(--border);
}
.about-list li:last-child { border-bottom: none; }
.about-list li span { flex-shrink: 0; }
.about-note {
  margin-top: 14px; font-size: 0.75rem; color: var(--text-muted);
  text-align: center; font-style: italic;
}

/* ── Site footer (rich, multi-column) ────────────── */
.site-footer {
  margin-top: 60px; padding: 48px 0 24px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.01), rgba(0,0,0,0.2));
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px;
  margin-bottom: 32px;
}
.footer-brand p {
  font-size: 0.85rem; color: var(--text-secondary);
  line-height: 1.6; margin-bottom: 12px;
}
.footer-logo {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
  font-family: var(--font-display);
}
.footer-logo strong { font-size: 1.1rem; }
.footer-mac {
  font-size: 0.8rem; color: var(--text-muted);
  padding: 8px 12px; background: rgba(232,164,74,0.05);
  border-left: 3px solid var(--accent); border-radius: 6px;
  margin-top: 8px;
}
.footer-col h4 {
  font-size: 0.78rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.1em;
  font-family: var(--font-display); margin-bottom: 12px;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a {
  color: var(--text-secondary); text-decoration: none;
  font-size: 0.88rem; transition: color 0.2s var(--transition);
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  text-align: center; padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.78rem; color: var(--text-muted);
}
.footer-bottom p { margin-bottom: 6px; }
.footer-bottom a { color: var(--text-secondary); text-decoration: none; }
.footer-bottom .mac-link { color: var(--accent); }
.footer-fine {
  font-size: 0.7rem; color: var(--text-muted); opacity: 0.7;
  letter-spacing: 0.04em;
}

/* ── Mini footer for inner pages ─────────────────── */
.mini-footer {
  margin-top: 48px; padding: 18px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.78rem; color: var(--text-muted);
}
.mini-footer a {
  color: var(--text-secondary); text-decoration: none;
  margin: 0 4px;
}
.mini-footer a:hover { color: var(--accent); }
.mini-footer .mac-link { color: var(--accent); }

/* ── Mobile tweaks ───────────────────────────────── */
@media (max-width: 720px) {
  .about-grid { grid-template-columns: 1fr; gap: 18px; }
  .about-card { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 540px) {
  .alias-banner { flex-wrap: wrap; }
  .alias-banner .btn { flex: 1; }
  .compare-table { font-size: 0.78rem; }
  .compare-table th, .compare-table td { padding: 10px 8px; }
  .thread-head a { margin-left: 0; width: 100%; margin-top: 8px; }
  .composer-bar { gap: 8px; }
  .settings-row { flex-direction: column; align-items: stretch; }
  .world-auth-banner { flex-direction: column; align-items: stretch; gap: 8px; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .about-text p { font-size: 0.92rem; }
}

