/* ==========================================================================
   Porumbarul — design system
   Neutral surfaces, one accent, Lucide icons, light & dark themes.
   ========================================================================== */
:root,
[data-theme='dark'] {
  color-scheme: dark;
  --bg: #09090b;
  --surface: #111113;
  --surface-2: #18181b;
  --surface-3: #232328;
  --hover: rgba(255, 255, 255, 0.05);
  --border: #26262b;
  --border-strong: #3a3a42;
  --text: #f4f4f5;
  --text-2: #d4d4d8;
  --muted: #a1a1aa;
  --dim: #71717a;
  --accent: #ec4899;
  --accent-hover: #f05aa6;
  --accent-soft: rgba(236, 72, 153, 0.13);
  --accent-text: #f472b6;
  --on-accent: #ffffff;
  --bubble-mine: #db2777;
  --success: #22c55e;
  --danger: #ef4444;
  --danger-soft: rgba(239, 68, 68, 0.12);
  --warning: #f59e0b;
  --overlay: rgba(0, 0, 0, 0.6);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.3);
  --glass: rgba(9, 9, 11, 0.82);
}
[data-theme='light'] {
  color-scheme: light;
  --bg: #f6f6f7;
  --surface: #ffffff;
  --surface-2: #f4f4f5;
  --surface-3: #e9e9ec;
  --hover: rgba(0, 0, 0, 0.04);
  --border: #e4e4e7;
  --border-strong: #d4d4d8;
  --text: #18181b;
  --text-2: #3f3f46;
  --muted: #52525b;
  --dim: #8b8b94;
  --accent: #db2777;
  --accent-hover: #be185d;
  --accent-soft: rgba(219, 39, 119, 0.09);
  --accent-text: #be185d;
  --bubble-mine: #db2777;
  --danger-soft: rgba(239, 68, 68, 0.08);
  --overlay: rgba(24, 24, 27, 0.45);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.05);
  --glass: rgba(255, 255, 255, 0.85);
}
:root {
  --brand-grad: linear-gradient(135deg, #f97316 0%, #ec4899 55%, #a855f7 100%);
  --radius: 14px;
  --radius-sm: 10px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --sidebar: 248px;
  --aside: 320px;
  --bottom-nav: 0px;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 var(--font);
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
img, video { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3 { letter-spacing: -0.02em; }
::selection { background: var(--accent); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 10px; border: 3px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.center { text-align: center; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.spacer { flex: 1; }

/* ---------- Icons ---------- */
.i { width: 20px; height: 20px; flex: 0 0 auto; display: inline-block; vertical-align: middle; }
.i-sm { width: 16px; height: 16px; }
.i-xs { width: 14px; height: 14px; }
.i-lg { width: 24px; height: 24px; }
.icon-tile { width: 40px; height: 40px; border-radius: 12px; display: inline-grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); flex: 0 0 40px; }
.icon-tile.lg { width: 52px; height: 52px; border-radius: 14px; flex-basis: 52px; }
.icon-tile.lg .i { width: 24px; height: 24px; }
.icon-tile.neutral { background: var(--surface-3); color: var(--text-2); }

/* ---------- Boot ---------- */
.boot { height: 100vh; display: grid; place-items: center; }
.boot-mark { width: 56px; height: 56px; border-radius: 16px; background: var(--brand-grad); display: grid; place-items: center; color: #fff; animation: pulse 1.2s ease-in-out infinite; }
.boot-mark .i { width: 28px; height: 28px; }
@keyframes pulse { 50% { opacity: .55; transform: scale(.94); } }

/* ---------- Brand ---------- */
.logo { display: flex; align-items: center; gap: 10px; padding: 4px 12px 22px; color: var(--text); }
.logo:hover { text-decoration: none; }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--brand-grad); display: grid; place-items: center; color: #fff; flex: 0 0 34px; box-shadow: 0 4px 14px rgba(236, 72, 153, .35); }
.logo-mark .i { width: 20px; height: 20px; }
.logo-title { font-size: 19px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.logo-sub { font-size: 11px; color: var(--muted); margin-top: 3px; font-weight: 500; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 16px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong);
  background: var(--surface-2); font-weight: 600; font-size: 14px; white-space: nowrap; color: var(--text);
  transition: background .15s, border-color .15s, opacity .15s, transform .1s;
}
.btn:hover { background: var(--surface-3); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn .i { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--hover); }
.btn-danger { background: var(--danger-soft); border-color: rgba(239, 68, 68, .35); color: #f87171; }
.btn-danger:hover { background: rgba(239, 68, 68, .2); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.btn-sm .i { width: 16px; height: 16px; }
.btn-lg { height: 46px; padding: 0 22px; font-size: 15px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-icon {
  width: 36px; height: 36px; padding: 0; border-radius: 10px; display: inline-grid; place-items: center;
  background: transparent; border: 0; color: var(--muted); transition: background .15s, color .15s; flex: 0 0 36px;
}
.btn-icon:hover { background: var(--hover); color: var(--text); text-decoration: none; }
.btn-icon.accent { color: var(--accent-text); }
.btn-icon.active { color: var(--accent-text); background: var(--accent-soft); }

/* ---------- Forms ---------- */
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.input, .textarea, .select {
  width: 100%; padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong);
  background: var(--surface); outline: none; transition: border-color .15s, box-shadow .15s; font-size: 14.5px;
}
.input { height: 42px; }
.input::placeholder, .textarea::placeholder { color: var(--dim); }
.input:focus, .textarea:focus, .select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.select { height: 42px; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23a1a1aa' stroke-width='2' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 14px; color: var(--text-2); }
.check input { margin-top: 3px; accent-color: var(--accent); width: 16px; height: 16px; }
.form-error { color: #f87171; font-size: 13px; min-height: 18px; margin: 2px 0 10px; }
.input-icon { position: relative; }
.input-icon > .i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--dim); pointer-events: none; width: 18px; height: 18px; }
.input-icon > .input { padding-left: 40px; }

/* ---------- Avatars & badges ---------- */
.avatar {
  --s: 40px; width: var(--s); height: var(--s); border-radius: 50%; flex: 0 0 var(--s);
  background: var(--surface-3); display: inline-grid; place-items: center;
  font-weight: 700; font-size: calc(var(--s) * .38); color: #fff; position: relative; letter-spacing: -0.02em;
}
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.avatar > .i { width: 50%; height: 50%; }
.avatar.xs { --s: 22px; } .avatar.sm { --s: 32px; } .avatar.md { --s: 40px; } .avatar.lg { --s: 52px; } .avatar.xl { --s: 112px; }
.avatar .dot { position: absolute; right: 0; bottom: 0; width: 28%; height: 28%; min-width: 9px; min-height: 9px; border-radius: 50%; background: var(--success); border: 2px solid var(--surface); }
.avatar-ring { padding: 2px; border-radius: 50%; background: var(--brand-grad); display: inline-block; }
.avatar-ring.seen { background: var(--border-strong); }
.avatar-ring > .avatar { border: 2px solid var(--bg); }
.badge {
  display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 6px;
  font-size: 11.5px; font-weight: 600; background: var(--surface-3); color: var(--text-2); white-space: nowrap;
}
.badge .i { width: 12px; height: 12px; }
.badge.drama { background: rgba(249, 115, 22, .14); color: #fb923c; }
.badge.accent { background: var(--accent-soft); color: var(--accent-text); }
.badge.danger { background: var(--danger-soft); color: #f87171; }
.count-badge {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 700; display: inline-grid; place-items: center;
}
.role-chip { display: inline-flex; align-items: center; color: var(--dim); cursor: help; }
.role-chip .i { width: 14px; height: 14px; }

/* ---------- Layout ---------- */
.shell { display: grid; grid-template-columns: var(--sidebar) minmax(0, 620px) var(--aside); justify-content: center; gap: 32px; min-height: 100vh; padding: 0 20px; }
.shell.wide { grid-template-columns: var(--sidebar) minmax(0, 1fr); gap: 0; padding: 0; }
.shell.wide .aside { display: none; }
.main { min-width: 0; padding: 24px 0 80px; }
.shell.wide .main { padding: 0; }

.sidebar { position: sticky; top: 0; height: 100vh; padding: 20px 8px; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; scrollbar-width: none; }
.sidebar::-webkit-scrollbar { display: none; }
.shell.wide .sidebar { border-right: 1px solid var(--border); padding-left: 14px; padding-right: 12px; background: var(--surface); }
.nav-link { display: flex; align-items: center; gap: 12px; height: 42px; flex: 0 0 42px; padding: 0 12px; border-radius: 10px; color: var(--text-2); font-weight: 500; font-size: 14.5px; transition: background .12s, color .12s; }
.nav-link:hover { background: var(--hover); color: var(--text); text-decoration: none; }
.nav-link.active { background: var(--surface-3); color: var(--text); font-weight: 600; }
.nav-link.active .i { color: var(--accent-text); }
.nav-link .count-badge { margin-left: auto; }
.nav-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); padding: 16px 12px 6px; }
.sidebar .btn-post { margin: 16px 4px 0; flex: 0 0 46px; }
.sidebar-me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; color: var(--text); }
.sidebar-me:hover { background: var(--hover); text-decoration: none; }
.sidebar-me .who { min-width: 0; line-height: 1.3; flex: 1; }
.sidebar-me .who b, .sidebar-me .who span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.sidebar-me .who span { color: var(--muted); font-size: 12.5px; }

.aside { position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 24px 0; display: flex; flex-direction: column; gap: 16px; scrollbar-width: none; }
.aside::-webkit-scrollbar { width: 0; }

.topbar, .bottom-nav { display: none; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.card-pad { padding: 18px; }
.card-title { font-size: 15px; font-weight: 700; margin: 0 0 14px; display: flex; align-items: center; gap: 8px; }
.card-title .i { color: var(--accent-text); width: 18px; height: 18px; }
.card-title small { color: var(--dim); font-weight: 500; font-size: 12px; margin-left: auto; }

.page-head { display: flex; align-items: center; gap: 14px; margin: 4px 0 20px; }
.page-title { font-size: 24px; font-weight: 800; margin: 0; line-height: 1.2; }
.page-sub { color: var(--muted); margin: 4px 0 0; font-size: 14px; }
.section-title { font-size: 16px; font-weight: 700; margin: 28px 0 12px; display: flex; align-items: center; gap: 8px; }
.section-title .i { color: var(--accent-text); width: 18px; height: 18px; }

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.tab { position: relative; flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; border: 0; background: transparent; color: var(--muted); font-weight: 600; font-size: 14px; }
.tab .i { width: 16px; height: 16px; }
.tab:hover { color: var(--text); background: var(--hover); }
.tab.active { color: var(--text); }
.tab.active::after { content: ''; position: absolute; left: 20%; right: 20%; bottom: -1px; height: 2px; border-radius: 2px; background: var(--accent); }

.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty-ico { width: 56px; height: 56px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--border); display: inline-grid; place-items: center; color: var(--muted); margin-bottom: 14px; }
.empty-ico .i { width: 26px; height: 26px; }
.empty h3 { color: var(--text); margin: 0 0 6px; font-size: 16px; }
.empty p { margin: 0 auto; max-width: 360px; font-size: 14px; }
.empty .btn { margin-top: 16px; }

.spinner { width: 24px; height: 24px; border-radius: 50%; border: 2.5px solid var(--surface-3); border-top-color: var(--accent); animation: spin .7s linear infinite; margin: 24px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.sentinel { height: 1px; }

/* ---------- Drama meter ---------- */
.meter-gauge { position: relative; width: 190px; height: 104px; margin: 0 auto; }
.meter-gauge svg { width: 100%; height: 100%; overflow: visible; }
.meter-needle { transition: transform 1.2s cubic-bezier(.2, 1.3, .4, 1); transform-origin: 100px 100px; }
.meter-value { text-align: center; font-size: 30px; font-weight: 800; letter-spacing: -0.03em; margin-top: 6px; line-height: 1; }
.meter-label { display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 600; font-size: 13.5px; color: var(--text-2); margin-top: 6px; }
.meter-label .i { width: 16px; height: 16px; color: var(--accent-text); }
.ticker { margin-top: 16px; border-top: 1px solid var(--border); padding-top: 12px; overflow: hidden; white-space: nowrap; font-size: 13px; display: flex; align-items: center; gap: 10px; }
.ticker-label { flex: 0 0 auto; background: var(--danger); color: #fff; font-weight: 700; font-size: 10px; letter-spacing: .05em; padding: 3px 6px; border-radius: 4px; }
.ticker-viewport { overflow: hidden; flex: 1; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-track { display: inline-block; padding-left: 100%; animation: ticker 30s linear infinite; }
.ticker-track a { color: var(--text-2); margin-right: 36px; }
@keyframes ticker { to { transform: translateX(-100%); } }

.cast-list { display: flex; flex-direction: column; gap: 2px; }
.cast-item { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; color: var(--text); }
.cast-item:hover { background: var(--hover); text-decoration: none; }
.cast-item .who { min-width: 0; flex: 1; line-height: 1.3; }
.cast-item .who b { display: block; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cast-item .who span { font-size: 12.5px; color: var(--muted); }
.cast-item .who span.on { color: var(--success); }

.promo-card { display: block; color: var(--text); position: relative; overflow: hidden; }
.promo-card:hover { text-decoration: none; border-color: var(--border-strong); }
.promo-card .kicker { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-text); display: flex; gap: 6px; align-items: center; }
.promo-card .kicker .i { width: 14px; height: 14px; }
.promo-card .t { font-size: 15px; font-weight: 700; margin-top: 6px; line-height: 1.35; }
.promo-card .s { font-size: 13px; color: var(--muted); margin-top: 4px; }
.promo-card.photo { min-height: 150px; display: flex; flex-direction: column; justify-content: flex-end; padding: 16px; border: 0; background-size: cover; background-position: center; color: #fff; }
.promo-card.photo::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .05), rgba(0, 0, 0, .8)); }
.promo-card.photo > * { position: relative; }
.promo-card.photo .kicker { color: #fbcfe8; }
.promo-card.photo .s { color: rgba(255, 255, 255, .8); }

/* ---------- Composer ---------- */
.composer { padding: 16px; margin-bottom: 16px; }
.composer-top { display: flex; gap: 12px; }
.composer textarea { flex: 1; border: 0; background: transparent; resize: none; outline: none; font-size: 16px; min-height: 52px; padding: 8px 0; line-height: 1.5; }
.composer textarea::placeholder { color: var(--dim); }
.composer-previews { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 0 52px; }
.composer-previews:empty { display: none; }
.preview { position: relative; width: 88px; height: 88px; border-radius: 10px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--border); }
.preview img, .preview video { width: 100%; height: 100%; object-fit: cover; }
.preview .x { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .7); color: #fff; display: grid; place-items: center; }
.preview .x .i { width: 14px; height: 14px; }
.preview.audio { width: auto; height: auto; padding: 6px 36px 6px 6px; overflow: visible; }
.preview.audio .audio { margin: 0; }
.composer-bar { display: flex; align-items: center; gap: 2px; margin: 12px 0 0 52px; padding-top: 12px; border-top: 1px solid var(--border); }
.composer-bar .btn-icon { color: var(--accent-text); }
.toggle-chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 8px; font-size: 12.5px; font-weight: 600; color: var(--muted); border: 1px dashed var(--border-strong); background: transparent; margin-left: 6px; }
.toggle-chip .i { width: 14px; height: 14px; }
.toggle-chip.on { border: 1px solid rgba(249, 115, 22, .45); background: rgba(249, 115, 22, .12); color: #fb923c; }
.char-count { font-size: 12px; color: var(--dim); margin-right: 10px; }
.progress { height: 3px; background: var(--surface-3); border-radius: 3px; overflow: hidden; margin-top: 10px; }
.progress > div { height: 100%; width: 0; background: var(--accent); transition: width .2s; }

/* ---------- Stories ---------- */
.stories { display: flex; gap: 14px; overflow-x: auto; padding: 2px 2px 16px; margin-bottom: 4px; scrollbar-width: none; }
.stories::-webkit-scrollbar { display: none; }
.story-bubble { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 68px; flex: 0 0 68px; background: none; border: 0; padding: 0; }
.story-bubble .name { font-size: 12px; color: var(--muted); max-width: 68px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.story-add { position: relative; }
.story-add .plus { position: absolute; right: -1px; bottom: -1px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; border: 2px solid var(--bg); }
.story-add .plus .i { width: 12px; height: 12px; stroke-width: 3; }

.story-viewer { position: fixed; inset: 0; z-index: 200; background: #000; display: flex; align-items: center; justify-content: center; }
.story-frame { position: relative; width: min(100vw, calc(100vh * 9 / 16)); height: min(100vh, calc(100vw * 16 / 9)); background: #111; overflow: hidden; }
.story-frame img, .story-frame video { width: 100%; height: 100%; object-fit: contain; }
.story-bars { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; gap: 4px; z-index: 3; }
.story-bars > div { flex: 1; height: 3px; background: rgba(255, 255, 255, .3); border-radius: 3px; overflow: hidden; }
.story-bars > div > i { display: block; height: 100%; width: 0; background: #fff; }
.story-head { position: absolute; top: 22px; left: 12px; right: 12px; z-index: 3; display: flex; align-items: center; gap: 10px; color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); font-size: 14px; }
.story-head .btn { background: rgba(0, 0, 0, .4); border-color: transparent; color: #fff; }
.story-caption { position: absolute; bottom: 80px; left: 16px; right: 16px; z-index: 3; text-align: center; color: #fff; font-size: 17px; font-weight: 600; text-shadow: 0 2px 8px rgba(0, 0, 0, .8); }
.story-nav { position: absolute; top: 0; bottom: 0; width: 35%; z-index: 2; }
.story-nav.prev { left: 0; } .story-nav.next { right: 0; }
.story-reply { position: absolute; bottom: 16px; left: 12px; right: 12px; z-index: 3; display: flex; gap: 8px; }
.story-reply input { flex: 1; background: rgba(0, 0, 0, .4); border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; padding: 10px 16px; color: #fff; outline: none; }
.story-close { position: absolute; top: 16px; right: 16px; z-index: 210; color: #fff; background: rgba(255, 255, 255, .12); border: 0; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; }

/* ---------- Post ---------- */
.post { padding: 16px 16px 6px; margin-bottom: 12px; animation: rise .3s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.post-repost-label { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 600; margin: -2px 0 10px 4px; }
.post-repost-label .i { width: 14px; height: 14px; }
.post-repost-label a { color: var(--muted); }
.post-head { display: flex; align-items: center; gap: 10px; }
.post-head .who { min-width: 0; flex: 1; line-height: 1.35; }
.post-head .who > div:first-child { display: flex; align-items: center; gap: 6px; }
.post-head .who a.name { color: var(--text); font-weight: 600; }
.post-head .meta { font-size: 13px; color: var(--muted); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.post-head .meta a { color: var(--muted); }
.post-text { margin: 10px 0 0; font-size: 15px; white-space: pre-wrap; word-wrap: break-word; overflow-wrap: anywhere; color: var(--text); line-height: 1.55; }
.post-text a.mention, .post-text a.tag, .bubble a.mention, .bubble a.tag { color: var(--accent-text); font-weight: 600; }
.post-quote { margin-top: 12px; border: 1px solid var(--border); border-radius: 12px; padding: 12px; cursor: pointer; }
.post-quote:hover { background: var(--hover); }
.post-quote .post-text { font-size: 14px; margin-top: 8px; }
.post-actions { display: flex; gap: 2px; margin-top: 8px; margin-left: -8px; }
.act { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; border: 0; background: transparent; border-radius: 8px; color: var(--muted); font-size: 13.5px; font-weight: 600; transition: background .12s, color .12s; }
.act:hover { background: var(--hover); color: var(--text); }
.act .i { width: 19px; height: 19px; transition: transform .2s; }
.act.liked { color: var(--accent-text); }
.act.liked .i { fill: currentColor; animation: pop-like .4s ease; }
@keyframes pop-like { 40% { transform: scale(1.3); } }

.media-grid { display: grid; gap: 3px; margin-top: 12px; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.media-grid.n1 { grid-template-columns: 1fr; }
.media-grid.n2, .media-grid.n3, .media-grid.n4 { grid-template-columns: 1fr 1fr; }
.media-grid.n3 > :first-child { grid-row: span 2; }
.media-item { position: relative; background: #000; cursor: zoom-in; overflow: hidden; }
.media-grid.n1 .media-item img { max-height: 560px; width: 100%; object-fit: cover; }
.media-grid:not(.n1) .media-item { aspect-ratio: 1; }
.media-grid:not(.n1) .media-item img, .media-grid:not(.n1) .media-item video { width: 100%; height: 100%; object-fit: cover; }
.media-item video { width: 100%; max-height: 600px; background: #000; cursor: default; }
.media-item .more { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); display: grid; place-items: center; font-size: 26px; font-weight: 700; color: #fff; }

.comments { border-top: 1px solid var(--border); margin-top: 6px; padding: 12px 0 8px; }
.comment { display: flex; gap: 10px; margin-bottom: 12px; }
.comment-body { background: var(--surface-2); border-radius: 4px 14px 14px 14px; padding: 8px 12px; max-width: 100%; min-width: 0; }
.comment-body .name { font-weight: 600; font-size: 13px; color: var(--text); }
.comment-body .text { font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.comment-body .sticker-img { width: 110px; height: 110px; margin-top: 4px; }
.comment-meta { font-size: 12px; color: var(--dim); margin: 3px 0 0 8px; display: flex; gap: 10px; }
.comment-meta button { background: none; border: 0; color: var(--dim); padding: 0; font-size: 12px; }
.comment-meta button:hover { color: var(--danger); }
.comment-form { display: flex; gap: 4px; align-items: center; }
.comment-form .avatar { margin-right: 4px; }
.comment-form .input { height: 38px; border-radius: 999px; padding: 0 16px; background: var(--surface-2); border-color: transparent; }
.comment-form .input:focus { background: var(--surface); }

/* ---------- Audio player ---------- */
.audio { display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; min-width: 220px; max-width: 340px; margin-top: 10px; }
.audio-play { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; flex: 0 0 34px; display: grid; place-items: center; }
.audio-play .i { width: 15px; height: 15px; fill: currentColor; }
.audio-wave { flex: 1; height: 28px; display: flex; align-items: center; gap: 2px; cursor: pointer; }
.audio-wave i { flex: 1; background: var(--border-strong); border-radius: 2px; min-width: 2px; transition: background .1s; }
.audio-wave i.on { background: var(--accent); }
.audio-time { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 34px; text-align: right; }

/* ---------- Recorder ---------- */
.recorder { display: flex; align-items: center; gap: 10px; padding: 4px 4px 4px 14px; background: var(--danger-soft); border: 1px solid rgba(239, 68, 68, .35); border-radius: 999px; flex: 1; }
.rec-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--danger); animation: blink 1s ease-in-out infinite; flex: 0 0 9px; }
@keyframes blink { 50% { opacity: .3; } }
.rec-time { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 14px; }
.rec-level { flex: 1; display: flex; align-items: center; gap: 2px; height: 24px; overflow: hidden; }
.rec-level i { width: 3px; background: var(--danger); border-radius: 2px; flex: 0 0 3px; }

/* ---------- Overlays ---------- */
.modal-backdrop { position: fixed; inset: 0; z-index: 100; background: var(--overlay); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 20px; animation: fade .15s ease; }
@keyframes fade { from { opacity: 0; } }
.modal { width: 100%; max-width: 500px; max-height: calc(100vh - 40px); overflow: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); animation: pop .18s cubic-bezier(.2, 1, .4, 1); }
.modal.wide { max-width: 640px; }
@keyframes pop { from { opacity: 0; transform: scale(.97) translateY(6px); } }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 20px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.modal-head h3 { margin: 0; font-size: 16px; flex: 1; font-weight: 700; }
.modal-body { padding: 20px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--border); }

#toasts { position: fixed; z-index: 300; bottom: calc(20px + var(--bottom-nav)); right: 20px; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; pointer-events: none; }
.toast { pointer-events: auto; background: var(--surface); border: 1px solid var(--border-strong); padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow); font-weight: 500; font-size: 14px; display: flex; gap: 10px; align-items: center; max-width: min(92vw, 400px); animation: toastIn .25s cubic-bezier(.2, 1, .4, 1); }
.toast > .i { color: var(--accent-text); width: 18px; height: 18px; }
.toast.click { cursor: pointer; }
.toast.error > .i { color: var(--danger); }
.toast.success > .i { color: var(--success); }
.toast.out { animation: toastOut .2s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(10px); } }

.lightbox { position: fixed; inset: 0; z-index: 250; background: rgba(0, 0, 0, .94); display: flex; align-items: center; justify-content: center; animation: fade .15s; }
.lightbox img, .lightbox video { max-width: 94vw; max-height: 86vh; object-fit: contain; border-radius: 6px; }
.lightbox .lb-btn { position: absolute; background: rgba(255, 255, 255, .1); border: 0; color: #fff; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; }
.lightbox .lb-btn:hover { background: rgba(255, 255, 255, .2); }
.lightbox .lb-close { top: 18px; right: 18px; }
.lightbox .lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-caption { position: absolute; bottom: 16px; left: 20px; right: 20px; text-align: center; color: rgba(255, 255, 255, .65); font-size: 12.5px; }

.menu { position: fixed; z-index: 150; min-width: 210px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 12px; box-shadow: var(--shadow); padding: 5px; animation: pop .12s; }
.menu button { display: flex; width: 100%; gap: 10px; align-items: center; height: 38px; padding: 0 10px; border: 0; border-radius: 8px; background: none; text-align: left; font-size: 14px; color: var(--text-2); }
.menu button .i { width: 17px; height: 17px; color: var(--muted); }
.menu button:hover { background: var(--hover); color: var(--text); }
.menu button.danger, .menu button.danger .i { color: #f87171; }

.emoji-pop { position: fixed; z-index: 160; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 14px; box-shadow: var(--shadow); padding: 8px; display: grid; grid-template-columns: repeat(8, 34px); gap: 2px; animation: pop .12s; max-height: 240px; overflow-y: auto; }
.emoji-pop.reactions { grid-template-columns: repeat(6, 38px); border-radius: 999px; padding: 4px 8px; }
.emoji-pop button { border: 0; background: none; font-size: 21px; height: 36px; border-radius: 8px; transition: transform .1s; }
.emoji-pop button:hover { background: var(--hover); transform: scale(1.15); }

.sticker-pop { position: fixed; z-index: 160; width: 336px; max-height: 360px; overflow-y: auto; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 14px; box-shadow: var(--shadow); padding: 10px; animation: pop .12s; }
.sticker-pop .sp-head { font-size: 12px; font-weight: 600; color: var(--muted); padding: 2px 4px 8px; display: flex; gap: 6px; align-items: center; }
.sticker-pop .sp-head .i { width: 14px; height: 14px; color: var(--accent-text); }
.sticker-pop .sp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.sticker-pop button { border: 0; background: none; padding: 4px; border-radius: 10px; aspect-ratio: 1; }
.sticker-pop button:hover { background: var(--hover); }
.sticker-pop img { width: 100%; height: 100%; object-fit: contain; }
.sticker-img { width: 150px; height: 150px; object-fit: contain; display: block; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .25)); }

.user-row { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; }
.user-row:hover { background: var(--hover); }
.user-row .who { flex: 1; min-width: 0; line-height: 1.35; }
.user-row .who b { display: flex; gap: 6px; align-items: center; font-weight: 600; }
.user-row .who span { color: var(--muted); font-size: 13px; }
.user-row.selectable { cursor: pointer; }
.user-row.selected { background: var(--accent-soft); }
.user-row .tick { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border-strong); display: grid; place-items: center; color: #fff; }
.user-row .tick .i { width: 13px; height: 13px; stroke-width: 3; }
.user-row.selected .tick { background: var(--accent); border-color: var(--accent); }

/* ---------- Auth ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.auth-hero { position: relative; overflow: hidden; padding: 40px 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 30px; color: #fff; background: #0b0b0e url('/img/floptropica/guafo-island.jpg') center / cover no-repeat; }
.auth-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9, 9, 11, .3) 0%, rgba(9, 9, 11, .5) 40%, rgba(9, 9, 11, .93) 100%); }
.auth-hero > * { position: relative; }
.auth-hero .logo { padding: 0; color: #fff; }
.auth-hero .logo-sub { color: rgba(255, 255, 255, .7); }
.auth-hero h1 { font-size: clamp(34px, 4vw, 52px); line-height: 1.05; margin: 0 0 14px; font-weight: 800; letter-spacing: -0.035em; }
.auth-hero h1 span { background: linear-gradient(90deg, #fbcfe8, #f9a8d4, #fde68a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-hero p { color: rgba(255, 255, 255, .78); font-size: 16px; max-width: 480px; margin: 0; }
.auth-features { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 540px; margin-top: 28px; }
.auth-features div { display: flex; gap: 10px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(8px); border-radius: 12px; padding: 12px; font-size: 13px; color: rgba(255, 255, 255, .72); line-height: 1.4; }
.auth-features .i { color: #f9a8d4; flex: 0 0 20px; margin-top: 1px; }
.auth-features b { display: block; color: #fff; font-size: 13.5px; margin-bottom: 2px; }
.auth-credit { font-size: 11px; color: rgba(255, 255, 255, .5); margin-top: 18px; }
.auth-credit a { color: rgba(255, 255, 255, .6); }
.auth-side { display: grid; place-items: center; padding: 32px 20px; background: var(--bg); }
.auth-card { width: 100%; max-width: 400px; }
.auth-card h2 { font-size: 26px; margin: 0 0 6px; font-weight: 800; }
.auth-card .sub { color: var(--muted); margin: 0 0 26px; font-size: 14.5px; }
.auth-alt { text-align: center; margin-top: 18px; color: var(--muted); font-size: 14px; }
.dev-link { margin-top: 16px; padding: 12px 14px; border-radius: 10px; background: rgba(245, 158, 11, .08); border: 1px solid rgba(245, 158, 11, .3); font-size: 13px; word-break: break-all; color: var(--text-2); text-align: left; }
.dev-link b { color: var(--warning); }
.role-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.role-opt { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface); transition: border-color .12s, background .12s; }
.role-opt:hover { border-color: var(--muted); }
.role-opt.on { border-color: var(--accent); background: var(--accent-soft); }
.role-opt .i { color: var(--accent-text); margin-bottom: 4px; }
.role-opt b { font-size: 13px; }
.role-opt small { color: var(--muted); font-size: 11.5px; line-height: 1.35; }
.verify-ico { width: 64px; height: 64px; border-radius: 18px; display: inline-grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); margin-bottom: 16px; }
.verify-ico .i { width: 30px; height: 30px; }

/* ---------- Profile ---------- */
.profile-card { overflow: hidden; margin-bottom: 16px; }
.profile-cover { height: 180px; background: var(--brand-grad); background-size: cover; background-position: center; }
.profile-main { padding: 0 20px 20px; position: relative; }
.profile-avatar { margin-top: -56px; display: inline-block; border: 4px solid var(--surface); border-radius: 50%; }
.profile-actions { position: absolute; right: 20px; top: 14px; display: flex; gap: 8px; }
.profile-name { font-size: 24px; font-weight: 800; margin: 8px 0 0; line-height: 1.2; }
.profile-user { color: var(--muted); font-size: 14px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.profile-role { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); display: flex; gap: 12px; align-items: center; }
.profile-role b { display: block; font-size: 14px; }
.profile-role span { font-size: 13px; color: var(--muted); }
.profile-bio { margin: 14px 0 0; white-space: pre-wrap; font-size: 14.5px; }
.profile-stats { display: flex; gap: 20px; margin-top: 16px; flex-wrap: wrap; }
.profile-stats button { background: none; border: 0; padding: 0; color: var(--muted); font-size: 14px; }
.profile-stats button:not(:disabled):hover { color: var(--text); }
.profile-stats button:disabled { cursor: default; }
.profile-stats b { color: var(--text); font-size: 15px; margin-right: 4px; }
.media-wall { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; border-radius: 12px; overflow: hidden; }
.media-wall > div { aspect-ratio: 1; background: var(--surface-2); position: relative; cursor: pointer; overflow: hidden; display: grid; place-items: center; color: var(--muted); }
.media-wall img, .media-wall video { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.media-wall > div:hover img, .media-wall > div:hover video { transform: scale(1.04); }
.media-wall .kind { position: absolute; top: 8px; right: 8px; color: #fff; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .7)); }

/* ---------- Explore ---------- */
.search-box { margin-bottom: 18px; }
.search-box .input { height: 44px; border-radius: 12px; }
.cast-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 12px; }
.cast-card { text-align: center; padding: 20px 14px 16px; color: var(--text); display: flex; flex-direction: column; align-items: center; gap: 4px; transition: border-color .15s, transform .15s; }
.cast-card:hover { border-color: var(--border-strong); text-decoration: none; transform: translateY(-2px); }
.cast-card b { margin-top: 6px; font-size: 14.5px; }
.cast-card .role { font-size: 12px; color: var(--muted); min-height: 32px; display: flex; gap: 5px; align-items: flex-start; justify-content: center; margin-bottom: 6px; }
.cast-card .role .i { width: 14px; height: 14px; margin-top: 1px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-chip { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 12px; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); color: var(--text); font-size: 13.5px; font-weight: 600; }
.tag-chip:hover { border-color: var(--accent); text-decoration: none; }
.tag-chip span { color: var(--dim); font-weight: 500; margin-left: 4px; }

/* ---------- Notifications ---------- */
.notif { display: flex; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); cursor: pointer; align-items: flex-start; transition: background .12s; }
.notif:hover { background: var(--hover); }
.notif:last-child { border-bottom: 0; }
.notif.unread { background: var(--accent-soft); }
.notif .ico { position: relative; }
.notif .ico .type { position: absolute; right: -4px; bottom: -4px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; border: 2px solid var(--surface); }
.notif .ico .type .i { width: 11px; height: 11px; stroke-width: 2.5; }
.notif .body { flex: 1; min-width: 0; font-size: 14px; color: var(--text-2); }
.notif .body b { color: var(--text); }
.notif .body .when { font-size: 12px; color: var(--dim); margin-top: 2px; }
.notif .body .snip { color: var(--muted); font-size: 13px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notif .thumb { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; }

/* ---------- Chat ---------- */
.chat { display: grid; grid-template-columns: 340px minmax(0, 1fr); height: 100vh; height: 100dvh; }
.chat-list { border-right: 1px solid var(--border); display: flex; flex-direction: column; min-height: 0; background: var(--surface); }
.chat-list-head { padding: 18px 14px 10px; }
.chat-list-head .row h2 { margin: 0; font-size: 20px; flex: 1; font-weight: 800; }
.chat-list-head .input-icon { margin-top: 12px; }
.chat-list-head .input { height: 38px; background: var(--surface-2); border-color: transparent; }
.conv-items { overflow-y: auto; flex: 1; padding: 0 8px 12px; }
.conv { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; cursor: pointer; position: relative; transition: background .1s; }
.conv:hover { background: var(--hover); }
.conv.active { background: var(--surface-3); }
.conv .info { flex: 1; min-width: 0; }
.conv .top { display: flex; align-items: baseline; gap: 6px; }
.conv .name { font-weight: 600; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.5px; }
.conv .time { font-size: 12px; color: var(--dim); flex-shrink: 0; }
.conv .preview-line { font-size: 13.5px; color: var(--muted); overflow: hidden; display: flex; gap: 6px; align-items: center; }
.conv .preview-line > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv .preview-line .i { width: 14px; height: 14px; vertical-align: -2px; }
.conv.unread .name { font-weight: 700; }
.conv.unread .preview-line { color: var(--text); font-weight: 600; }
.conv .typing-text { color: var(--accent-text); font-style: italic; }
.group-avatar { position: relative; width: 52px; height: 52px; flex: 0 0 52px; }
.group-avatar .avatar { position: absolute; --s: 34px; border: 2px solid var(--surface); }
.group-avatar .avatar:first-child { top: 0; right: 0; }
.group-avatar .avatar:last-child { bottom: 0; left: 0; }

.chat-pane { display: flex; flex-direction: column; min-height: 0; min-width: 0; background: var(--bg); position: relative; }
.chat-empty { flex: 1; display: grid; place-items: center; text-align: center; color: var(--muted); padding: 20px; }
.chat-empty h2, .chat-empty h3 { color: var(--text); font-size: 18px; margin: 12px 0 6px; }
.chat-empty p { margin: 0 0 18px; font-size: 14px; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--border); background: var(--glass); backdrop-filter: blur(12px); z-index: 2; min-height: 64px; }
.chat-head .who { flex: 1; min-width: 0; line-height: 1.3; cursor: pointer; }
.chat-head .who b { display: block; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-head .who span { font-size: 12.5px; color: var(--muted); }
.chat-head .who span.typing-text { color: var(--accent-text); }
.chat-head .who span.on { color: var(--success); }
.chat-head .back { display: none; }

.msgs { flex: 1; overflow-y: auto; padding: 16px 18px 8px; display: flex; flex-direction: column; overscroll-behavior: contain; }
.msgs-inner { margin-top: auto; display: flex; flex-direction: column; }
.day-sep { align-self: center; margin: 18px 0 10px; font-size: 12px; font-weight: 600; color: var(--muted); }
.sys-msg { align-self: center; text-align: center; font-size: 12.5px; color: var(--dim); margin: 8px 0; max-width: 80%; }
.msg { display: flex; gap: 8px; align-items: flex-end; margin-top: 2px; position: relative; max-width: 100%; }
.msg.first { margin-top: 10px; }
.msg.mine { flex-direction: row-reverse; }
.msg .av-slot { width: 30px; flex: 0 0 30px; }
.msg.mine .av-slot { display: none; }
.msg-col { display: flex; flex-direction: column; max-width: min(70%, 540px); min-width: 0; position: relative; }
.msg.mine .msg-col { align-items: flex-end; }
.msg-sender { font-size: 12px; color: var(--muted); margin: 0 0 3px 12px; font-weight: 600; }
.bubble { position: relative; padding: 8px 12px; border-radius: 18px; background: var(--surface-3); word-wrap: break-word; overflow-wrap: anywhere; white-space: pre-wrap; font-size: 14.5px; line-height: 1.45; max-width: 100%; color: var(--text); }
.msg:not(.mine) .bubble { border-top-left-radius: 6px; border-bottom-left-radius: 6px; }
.msg:not(.mine).first .bubble { border-top-left-radius: 18px; }
.msg:not(.mine).last .bubble { border-bottom-left-radius: 18px; }
.msg.mine .bubble { background: var(--bubble-mine); color: #fff; border-top-right-radius: 6px; border-bottom-right-radius: 6px; }
.msg.mine.first .bubble { border-top-right-radius: 18px; }
.msg.mine.last .bubble { border-bottom-right-radius: 18px; }
.msg.mine .bubble a { color: #fff; text-decoration: underline; }
.bubble.media { padding: 0; background: transparent !important; overflow: hidden; border-radius: 16px !important; }
.bubble.media img { max-height: 340px; max-width: 100%; border-radius: 16px; cursor: zoom-in; }
.bubble.media video { max-height: 360px; border-radius: 16px; }
.bubble.media .caption { padding: 8px 12px; background: var(--surface-3); border-radius: 0 0 16px 16px; color: var(--text); }
.msg.mine .bubble.media .caption { background: var(--bubble-mine); color: #fff; }
.bubble.sticker, .bubble.voice { padding: 0; background: transparent !important; }
.bubble.voice .audio { margin: 0; }
.msg.mine .bubble.voice .audio { background: var(--bubble-mine); border-color: transparent; }
.msg.mine .bubble.voice .audio-play { background: #fff; color: var(--bubble-mine); }
.msg.mine .bubble.voice .audio-wave i { background: rgba(255, 255, 255, .35); }
.msg.mine .bubble.voice .audio-wave i.on { background: #fff; }
.msg.mine .bubble.voice .audio-time { color: rgba(255, 255, 255, .85); }
.bubble.deleted { background: transparent !important; border: 1px solid var(--border-strong); color: var(--dim) !important; font-style: italic; display: flex; gap: 6px; align-items: center; }
.bubble.deleted .i { width: 14px; height: 14px; }
.bubble.emoji-only { background: transparent !important; font-size: 40px; padding: 0 4px; line-height: 1.15; }
.bubble.pending { opacity: .6; }
.bubble.failed { outline: 2px solid var(--danger); }
.bubble .edited { font-size: 11px; opacity: .65; margin-left: 6px; font-style: italic; }
.reply-quote { display: flex; gap: 6px; align-items: center; font-size: 12.5px; padding: 5px 10px; border-radius: 10px; background: var(--surface-2); border-left: 3px solid var(--accent); margin-bottom: 4px; color: var(--muted); cursor: pointer; max-width: 100%; overflow: hidden; white-space: nowrap; }
.reply-quote > span { overflow: hidden; text-overflow: ellipsis; }
.reply-quote .i { width: 13px; height: 13px; flex: 0 0 13px; }
.reply-quote b { color: var(--text); }
.shared-post { display: block; width: 280px; max-width: 100%; border-radius: 14px; overflow: hidden; background: var(--surface); border: 1px solid var(--border-strong); color: var(--text); text-align: left; padding: 0; }
.shared-post:hover { text-decoration: none; border-color: var(--accent); }
.shared-post img, .shared-post video { width: 100%; max-height: 180px; object-fit: cover; }
.shared-post .sp-body { padding: 10px 12px; font-size: 13.5px; white-space: normal; }
.shared-post .sp-body .who { display: flex; gap: 8px; align-items: center; font-weight: 600; margin-bottom: 4px; font-size: 13px; }
.msg-reactions { display: flex; gap: 3px; margin-top: -6px; z-index: 1; position: relative; padding: 0 8px; }
.msg-reactions button { background: var(--surface); border: 1px solid var(--border-strong); border-radius: 999px; height: 24px; padding: 0 7px; font-size: 13px; display: inline-flex; gap: 3px; align-items: center; }
.msg-reactions button.mine { border-color: var(--accent); background: var(--accent-soft); }
.msg-reactions button small { font-size: 11px; color: var(--muted); font-weight: 700; }
.msg-tools { position: absolute; top: 50%; transform: translateY(-50%); display: none; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 10px; padding: 2px; z-index: 3; box-shadow: var(--shadow-sm); }
.msg:not(.mine) .msg-col .msg-tools { left: calc(100% + 6px); }
.msg.mine .msg-col .msg-tools { right: calc(100% + 6px); }
.msg:hover .msg-tools, .msg.tools-open .msg-tools { display: flex; }
.msg-tools button { width: 30px; height: 30px; border: 0; background: none; border-radius: 8px; color: var(--muted); display: grid; place-items: center; }
.msg-tools button .i { width: 16px; height: 16px; }
.msg-tools button:hover { background: var(--hover); color: var(--text); }
.msg-time { font-size: 11px; color: var(--dim); margin: 3px 10px 0; }
.seen-row { display: flex; justify-content: flex-end; gap: 2px; margin: 3px 0 0; }
.seen-row .avatar { --s: 16px; font-size: 8px; }
.seen-text { display: flex; gap: 4px; align-items: center; font-size: 11px; color: var(--muted); margin: 3px 4px 0; }
.seen-text .i { width: 13px; height: 13px; }
.seen-text.seen .i { color: var(--accent-text); }
.msg.flash .bubble { animation: flash 1.2s ease; }
@keyframes flash { 30% { box-shadow: 0 0 0 4px var(--accent-soft), 0 0 0 2px var(--accent); } }
.typing-bubble { display: inline-flex; gap: 4px; padding: 12px 14px; background: var(--surface-3); border-radius: 18px; margin: 8px 0 0 38px; align-self: flex-start; }
.typing-bubble i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: typing 1.2s infinite; }
.typing-bubble i:nth-child(2) { animation-delay: .15s; }
.typing-bubble i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }
.jump-btn { position: absolute; right: 24px; bottom: 92px; z-index: 4; box-shadow: var(--shadow); }

.chat-compose { padding: 10px 14px 14px; border-top: 1px solid var(--border); background: var(--surface); }
.compose-banner { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 12px; margin-bottom: 8px; border-radius: 10px; background: var(--surface-2); border-left: 3px solid var(--accent); font-size: 13px; }
.compose-banner > .i { width: 15px; height: 15px; color: var(--accent-text); }
.compose-banner .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.compose-banner .t b { color: var(--text); }
.compose-attach { display: flex; gap: 8px; margin-bottom: 8px; }
.compose-attach:empty { display: none; }
.compose-row { display: flex; align-items: flex-end; gap: 2px; }
.compose-row .btn-icon { color: var(--muted); height: 40px; }
.compose-row .btn-icon:hover { color: var(--accent-text); }
.compose-input { flex: 1; background: var(--surface-2); border: 1px solid transparent; border-radius: 20px; padding: 9px 16px; resize: none; outline: none; max-height: 160px; line-height: 1.4; min-height: 40px; font-size: 14.5px; margin: 0 4px; }
.compose-input:focus { border-color: var(--border-strong); background: var(--surface); }
.send-btn { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; display: grid; place-items: center; transition: background .12s, transform .1s; }
.send-btn:hover { background: var(--accent-hover); }
.send-btn:active { transform: scale(.92); }
.send-btn .i { width: 18px; height: 18px; }
.drop-overlay { position: absolute; inset: 8px; z-index: 10; background: var(--accent-soft); border: 2px dashed var(--accent); border-radius: 16px; display: grid; place-items: center; font-size: 16px; font-weight: 600; pointer-events: none; color: var(--accent-text); }

/* ---------- FlopTok ---------- */
.floptok { height: 100vh; height: 100dvh; overflow-y: scroll; scroll-snap-type: y mandatory; background: #000; position: relative; scrollbar-width: none; }
.floptok::-webkit-scrollbar { display: none; }
.ft-head { position: fixed; top: 18px; left: calc(var(--sidebar) + (100vw - var(--sidebar)) / 2); transform: translateX(-50%); z-index: 20; display: flex; gap: 2px; align-items: center; color: #fff; background: rgba(0, 0, 0, .4); backdrop-filter: blur(10px); padding: 4px; border-radius: 999px; }
.ft-head span { padding: 6px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: rgba(255, 255, 255, .7); }
.ft-head span.on { background: rgba(255, 255, 255, .16); color: #fff; }
.ft-item { height: 100vh; height: 100dvh; scroll-snap-align: start; scroll-snap-stop: always; position: relative; display: flex; align-items: center; justify-content: center; }
.ft-video-wrap { position: relative; height: calc(100% - 24px); aspect-ratio: 9 / 16; max-width: 100%; background: #0a0a0a; border-radius: 14px; overflow: hidden; }
.ft-video-wrap video { width: 100%; height: 100%; object-fit: cover; }
.ft-overlay { position: absolute; inset: 0; background: linear-gradient(transparent 60%, rgba(0, 0, 0, .75)); pointer-events: none; }
.ft-info { position: absolute; left: 16px; right: 80px; bottom: 22px; color: #fff; z-index: 2; }
.ft-info .who { display: flex; align-items: center; gap: 10px; font-weight: 600; margin-bottom: 8px; color: #fff; font-size: 14.5px; }
.ft-info .txt { font-size: 14px; max-height: 6.5em; overflow: hidden; white-space: pre-wrap; }
.ft-info .txt a { color: #fff; font-weight: 700; }
.ft-actions { position: absolute; right: 10px; bottom: 26px; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.ft-actions button { background: none; border: 0; color: #fff; display: flex; flex-direction: column; align-items: center; font-size: 12px; font-weight: 600; gap: 3px; }
.ft-actions button .ico { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .14); backdrop-filter: blur(8px); transition: transform .15s, background .15s; }
.ft-actions button .ico .i { width: 22px; height: 22px; }
.ft-actions button:active .ico { transform: scale(.88); }
.ft-actions button.liked .ico { background: var(--accent); }
.ft-actions button.liked .ico .i { fill: currentColor; }
.ft-mute { position: absolute; top: 14px; right: 14px; z-index: 3; }
.ft-mute .btn-icon { background: rgba(0, 0, 0, .45); color: #fff; border-radius: 50%; }
.ft-burst { position: absolute; z-index: 5; pointer-events: none; animation: burst .8s ease forwards; filter: drop-shadow(0 6px 16px rgba(236, 72, 153, .6)); }
.ft-burst .i { width: 96px; height: 96px; fill: var(--accent); stroke: #fff; stroke-width: 1.2; }
@keyframes burst { 0% { transform: translate(-50%, -50%) scale(.3); opacity: 0; } 25% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; } 100% { transform: translate(-50%, -120%) scale(1); opacity: 0; } }
.ft-paused { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, .85); pointer-events: none; z-index: 2; }
.ft-paused .i { width: 72px; height: 72px; fill: rgba(255, 255, 255, .25); }
.ft-flop { position: absolute; top: 14px; left: 14px; z-index: 3; display: inline-flex; gap: 6px; align-items: center; background: rgba(0, 0, 0, .5); color: #fff; padding: 5px 10px; border-radius: 8px; font-size: 12px; font-weight: 600; backdrop-filter: blur(6px); }
.ft-flop .i { width: 14px; height: 14px; color: #f9a8d4; }
.ft-empty { height: 100%; display: grid; place-items: center; color: #fff; text-align: center; padding: 20px; }
.ft-empty h2 { font-size: 22px; margin: 10px 0 6px; }
.ft-empty p { color: #a1a1aa; margin: 0 0 18px; }

/* ---------- Confesional ---------- */
.booth { padding: 22px; margin-bottom: 18px; position: relative; overflow: hidden; }
.booth::after { content: ''; position: absolute; top: 0; right: 0; width: 260px; height: 260px; background: radial-gradient(circle, var(--accent-soft), transparent 70%); transform: translate(30%, -40%); pointer-events: none; }
.booth-rec { position: absolute; top: 20px; right: 20px; display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--danger); }
.booth .head, .pigeon-hero .head { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.booth h1, .pigeon-hero h1 { font-size: 22px; margin: 0; font-weight: 800; }
.booth p, .pigeon-hero p { color: var(--muted); margin: 2px 0 0; font-size: 14px; }
.confession { padding: 18px; margin-bottom: 12px; position: relative; overflow: hidden; }
.confession .num { font-weight: 700; font-size: 13px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.confession .num .i { width: 15px; height: 15px; color: var(--accent-text); }
.confession .ctext { font-size: 16px; margin: 12px 0 14px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; padding-left: 14px; border-left: 3px solid var(--accent); }
.confession .reacts { display: flex; gap: 6px; flex-wrap: wrap; }
.confession .reacts button { border: 1px solid var(--border); background: var(--surface-2); border-radius: 999px; height: 32px; padding: 0 11px; font-size: 15px; display: inline-flex; gap: 5px; align-items: center; }
.confession .reacts button:hover { border-color: var(--border-strong); }
.confession .reacts button.on { border-color: var(--accent); background: var(--accent-soft); }
.confession .reacts small { font-size: 12px; font-weight: 700; color: var(--muted); }
.unmask { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 12px; }
.unmask .bar { flex: 1; height: 6px; border-radius: 6px; background: var(--surface-3); overflow: hidden; }
.unmask .bar > div { height: 100%; background: linear-gradient(90deg, var(--warning), var(--danger)); transition: width .4s; }
.unmask small { color: var(--muted); font-weight: 600; white-space: nowrap; font-size: 12.5px; }
.stamp { position: absolute; top: 16px; right: -36px; transform: rotate(35deg); background: var(--danger); color: #fff; font-weight: 800; letter-spacing: .12em; padding: 4px 44px; font-size: 11px; }
.revealed-by { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 10px 12px; border-radius: 10px; background: var(--danger-soft); border: 1px solid rgba(239, 68, 68, .25); }
.reveal-overlay { position: fixed; inset: 0; z-index: 400; background: rgba(5, 5, 7, .92); backdrop-filter: blur(6px); display: grid; place-items: center; text-align: center; animation: fade .3s; padding: 20px; color: #fff; }
.reveal-overlay .r-kicker { display: inline-flex; gap: 8px; align-items: center; font-size: 12px; font-weight: 700; letter-spacing: .14em; color: #f87171; text-transform: uppercase; }
.reveal-overlay .r-title { font-size: clamp(40px, 7vw, 80px); font-weight: 900; letter-spacing: -0.04em; margin: 6px 0 22px; animation: shake .45s ease 2; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.reveal-overlay .avatar { margin: 0 auto; box-shadow: 0 0 0 4px #ef4444, 0 0 40px rgba(239, 68, 68, .5); }
.reveal-overlay .r-name { font-size: 24px; font-weight: 800; margin-top: 16px; }
.reveal-overlay .r-quote { color: #a1a1aa; max-width: 460px; margin: 10px auto; font-size: 16px; font-style: italic; }

/* ---------- Porumbelul Voiajor ---------- */
.pigeon-hero { padding: 22px; margin-bottom: 18px; }
.presets { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.presets button { height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--border-strong); background: var(--surface); font-size: 13px; font-weight: 600; color: var(--text-2); }
.presets button:hover { border-color: var(--muted); }
.presets button.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-text); }
.letters { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.letter { padding: 16px; cursor: pointer; position: relative; transition: border-color .15s, transform .15s; }
.letter:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.letter.sealed { border-color: var(--accent); background: linear-gradient(180deg, var(--accent-soft), transparent 70%), var(--surface); }
.letter .seal { position: absolute; right: 14px; top: 14px; color: var(--accent-text); }
.letter .from { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; padding-right: 26px; }
.letter .ltext { margin-top: 10px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; color: var(--text-2); }
.letter .when { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.letter.flying { cursor: default; border-style: dashed; }
.countdown { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--accent-text); }
.fly-pigeon { position: fixed; z-index: 500; pointer-events: none; top: 30%; left: -100px; color: var(--accent); animation: flyIn 3s cubic-bezier(.4, 0, .4, 1) forwards; filter: drop-shadow(0 8px 20px rgba(0, 0, 0, .35)); }
.fly-pigeon .i, .fly-away .i { width: 64px; height: 64px; }
@keyframes flyIn { 0% { left: -100px; top: 60%; transform: rotate(8deg); } 40% { top: 20%; } 70% { top: 35%; transform: rotate(-6deg); } 100% { left: calc(100% + 100px); top: 10%; transform: rotate(-14deg); } }
.fly-away { position: fixed; z-index: 500; pointer-events: none; color: var(--accent); animation: flyAway 1.5s ease-in forwards; }
@keyframes flyAway { to { transform: translate(60vw, -80vh) rotate(-25deg); opacity: 0; } }
.open-letter { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 24px; font-size: 16px; line-height: 1.7; white-space: pre-wrap; animation: unfold .4s ease; transform-origin: top; }
@keyframes unfold { from { transform: scaleY(.6); opacity: 0; } }
.open-letter .sig { margin-top: 18px; text-align: right; color: var(--muted); font-size: 14px; }
.open-letter img, .open-letter video { margin-top: 14px; border-radius: 8px; }

/* ---------- Episode ---------- */
.ep-hero { position: relative; overflow: hidden; border-radius: 16px; padding: 28px 24px 22px; margin-bottom: 16px; color: #fff; background: #111 url('/img/floptropica/guafo-island.jpg') center 30% / cover; }
.ep-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, rgba(9, 9, 11, .92) 30%, rgba(9, 9, 11, .5)); }
.ep-hero > * { position: relative; }
.ep-prev { display: inline-flex; gap: 6px; align-items: center; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: #f9a8d4; opacity: 0; animation: fadeUp .6s .1s ease forwards; }
.ep-prev .i { width: 14px; height: 14px; }
.ep-show { font-size: clamp(26px, 4.5vw, 36px); font-weight: 900; line-height: 1.05; margin: 8px 0 0; letter-spacing: -0.04em; opacity: 0; animation: fadeUp .6s .3s ease forwards; }
.ep-num { margin-top: 14px; font-weight: 600; font-size: 13.5px; color: rgba(255, 255, 255, .7); opacity: 0; animation: fadeUp .6s .5s ease forwards; }
.ep-title { font-size: 20px; font-weight: 700; margin: 4px 0 0; opacity: 0; animation: fadeUp .6s .65s ease forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.ep-nav { display: flex; justify-content: space-between; margin-top: 20px; }
.ep-nav .btn { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .15); color: #fff; }
.narrator { font-size: 15px; line-height: 1.65; margin-bottom: 16px; }
.narrator p { margin: 0 0 8px; opacity: 0; animation: fadeUp .5s ease forwards; color: var(--text-2); }
.narrator p:first-child { color: var(--accent-text); font-weight: 600; }
.awards { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 12px; margin-bottom: 8px; }
.award { padding: 18px 14px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--text); }
.award:hover { text-decoration: none; border-color: var(--border-strong); }
.award .what { display: inline-flex; gap: 6px; align-items: center; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-text); font-weight: 700; margin-bottom: 6px; }
.award .what .i { width: 14px; height: 14px; }
.award b { font-size: 14.5px; }
.award .detail { font-size: 12.5px; color: var(--muted); }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.stat { padding: 14px 16px; }
.stat b { display: block; font-size: 24px; font-weight: 800; letter-spacing: -0.03em; }
.stat span { font-size: 12.5px; color: var(--muted); display: flex; gap: 5px; align-items: center; }
.stat span .i { width: 13px; height: 13px; }

/* ---------- Floptropica ---------- */
.fl-hero { position: relative; overflow: hidden; border-radius: 16px; min-height: 300px; display: flex; flex-direction: column; justify-content: flex-end; padding: 26px; color: #fff; margin-bottom: 16px; background: #111 url('/img/floptropica/guafo-island.jpg') center / cover; }
.fl-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 20%, rgba(9, 9, 11, .9)); }
.fl-hero > * { position: relative; }
.fl-hero .flag { position: absolute; top: 14px; right: 16px; width: 96px; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .4)); }
.fl-hero .kicker { display: inline-flex; gap: 6px; align-items: center; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #f9a8d4; }
.fl-hero .kicker .i { width: 14px; height: 14px; }
.fl-hero h1 { font-size: clamp(32px, 5vw, 46px); font-weight: 900; margin: 6px 0 6px; letter-spacing: -0.04em; }
.fl-hero p { margin: 0; color: rgba(255, 255, 255, .8); max-width: 520px; font-size: 14.5px; }
.fl-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.fl-facts .stat b { font-size: 18px; }
.fl-split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; align-items: center; }
.fl-split p { color: var(--text-2); font-size: 14.5px; margin: 0 0 10px; }
.fl-photo { border-radius: 12px; overflow: hidden; position: relative; cursor: zoom-in; background: var(--surface-2); }
.fl-photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.icon-card { overflow: hidden; margin-bottom: 12px; display: grid; grid-template-columns: 200px 1fr; }
.icon-card .pic { background: var(--surface-2); position: relative; cursor: zoom-in; min-height: 230px; }
.icon-card .pic img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.icon-card .pic.contain { cursor: default; display: grid; place-items: center; background: linear-gradient(135deg, #4c0519, #1f0410); }
.icon-card .pic.contain img { position: static; width: 80%; height: auto; object-fit: contain; }
.icon-card .body { padding: 18px; }
.icon-card .title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.icon-card h3 { margin: 0; font-size: 18px; }
.icon-card p { color: var(--text-2); font-size: 14px; margin: 10px 0 0; }
.icon-card ul { margin: 10px 0 0; padding-left: 18px; color: var(--muted); font-size: 13.5px; }
.icon-card li { margin-bottom: 4px; }
.thumbs { display: flex; gap: 6px; margin-top: 14px; }
.thumbs img { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; cursor: zoom-in; border: 1px solid var(--border); }
.passport { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; padding: 20px; background: linear-gradient(135deg, #134e4a, #0f2f2d); border: 1px solid #1f6f68; color: #ecfeff; border-radius: 16px; position: relative; overflow: hidden; }
.passport::after { content: ''; position: absolute; right: -40px; bottom: -50px; width: 200px; height: 200px; background: url('/stickers/cetatean-floptropica.svg') center / contain no-repeat; opacity: .14; transform: rotate(-12deg); pointer-events: none; }
.passport .lbl { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: #fcd34d; font-weight: 700; }
.passport .val { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.passport .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.passport .avatar { box-shadow: 0 0 0 3px #fcd34d; }
.sticker-shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.sticker-shelf > div { aspect-ratio: 1; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; padding: 8px; }
.sticker-shelf img { width: 100%; height: 100%; object-fit: contain; }
.credits { font-size: 12px; color: var(--dim); line-height: 1.6; margin-top: 24px; }
.credits a { color: var(--muted); }

/* ---------- Welcome & settings ---------- */
.welcome { max-width: 720px; margin: 48px auto; padding: 0 16px; }
.welcome h1 { font-size: 30px; margin: 0 0 6px; font-weight: 800; }
.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; }
.seg button { display: inline-flex; gap: 6px; align-items: center; height: 32px; padding: 0 12px; border: 0; border-radius: 8px; background: none; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.seg button .i { width: 16px; height: 16px; }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.settings-row { display: flex; align-items: center; gap: 14px; }
.settings-row .txt { flex: 1; }
.settings-row .txt b { display: block; font-size: 14.5px; }
.settings-row .txt span { font-size: 13px; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1260px) {
  .shell { grid-template-columns: var(--sidebar) minmax(0, 620px); }
  .aside { display: none; }
}
@media (max-width: 1020px) {
  :root { --sidebar: 72px; }
  .sidebar .logo-text, .nav-link .nav-text, .nav-label, .sidebar-me .who, .sidebar .btn-post .nav-text { display: none; }
  .nav-link { justify-content: center; padding: 0; position: relative; }
  .nav-link .count-badge { position: absolute; top: 2px; right: 6px; min-width: 16px; height: 16px; font-size: 10px; padding: 0 4px; }
  .logo { justify-content: center; padding: 4px 0 20px; }
  .sidebar .btn-post { padding: 0; width: 44px; margin: 14px auto 0; }
  .sidebar-me { justify-content: center; }
  .chat { grid-template-columns: 300px minmax(0, 1fr); }
  .icon-card { grid-template-columns: 150px 1fr; }
}
@media (max-width: 760px) {
  :root { --bottom-nav: 60px; }
  .shell, .shell.wide { grid-template-columns: minmax(0, 1fr); padding: 0; gap: 0; }
  .sidebar { position: fixed; z-index: 120; left: 0; top: 0; width: 272px; background: var(--surface); transform: translateX(-100%); transition: transform .22s ease; border-right: 1px solid var(--border); padding: 18px 10px; }
  .sidebar.open { transform: none; box-shadow: var(--shadow); }
  .sidebar .logo-text, .nav-link .nav-text, .nav-label, .sidebar .btn-post .nav-text { display: initial; }
  .sidebar-me .who { display: block; }
  .nav-link { justify-content: flex-start; padding: 0 12px; }
  .nav-link .count-badge { position: static; }
  .logo { justify-content: flex-start; padding: 4px 12px 20px; }
  .sidebar .btn-post { width: auto; margin: 14px 4px 0; padding: 0 22px; }
  .sidebar-me { justify-content: flex-start; }
  .sidebar-backdrop { position: fixed; inset: 0; z-index: 110; background: var(--overlay); }
  .main { padding: 68px 12px calc(var(--bottom-nav) + 20px); }
  .shell.wide .main { padding: 0 0 var(--bottom-nav); }
  .topbar { display: flex; position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: 56px; align-items: center; padding: 0 8px; gap: 4px; background: var(--glass); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
  .topbar .logo { padding: 0; flex: 1; }
  .topbar .logo-title { font-size: 18px; }
  .topbar .logo-mark { width: 30px; height: 30px; flex-basis: 30px; }
  .shell.wide .topbar { display: none; }
  .bottom-nav { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 50; height: var(--bottom-nav); padding-bottom: env(safe-area-inset-bottom); background: var(--glass); backdrop-filter: blur(12px); border-top: 1px solid var(--border); }
  .bottom-nav a, .bottom-nav button { flex: 1; display: grid; place-items: center; color: var(--muted); background: none; border: 0; position: relative; }
  .bottom-nav .i { width: 23px; height: 23px; }
  .bottom-nav a.active { color: var(--text); }
  .bottom-nav a.active .i { color: var(--accent-text); }
  .bottom-nav .count-badge { position: absolute; top: 8px; left: 54%; min-width: 16px; height: 16px; font-size: 10px; padding: 0 4px; }
  .bottom-nav .plus { width: 44px; height: 32px; border-radius: 10px; background: var(--accent); color: #fff; display: grid; place-items: center; }
  .chat { grid-template-columns: 1fr; height: calc(100dvh - var(--bottom-nav)); }
  .chat.open .chat-list { display: none; }
  .chat:not(.open) .chat-pane { display: none; }
  .chat-head .back { display: inline-grid; }
  .chat.open { height: 100dvh; }
  body.chat-open .bottom-nav { display: none; }
  .msg-col { max-width: 82%; }
  .floptok, .ft-item { height: calc(100dvh - var(--bottom-nav)); }
  .ft-head { left: 50%; }
  .ft-video-wrap { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; }
  .auth { grid-template-columns: 1fr; }
  .auth-hero { padding: 24px 20px 28px; min-height: 280px; }
  .auth-features, .auth-credit { display: none; }
  .composer-previews, .composer-bar { margin-left: 0; }
  .profile-cover { height: 130px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .fl-facts { grid-template-columns: repeat(2, 1fr); }
  .fl-split { grid-template-columns: 1fr; }
  .icon-card { grid-template-columns: 1fr; }
  .icon-card .pic { min-height: 260px; }
  .tab { font-size: 13px; gap: 6px; }
  .msg-tools { display: none !important; }
  .msg.tools-open .msg-tools { display: flex !important; position: static; transform: none; margin-top: 4px; }
  #toasts { left: 12px; right: 12px; align-items: center; }
}
.compose-banner .b-ico { display: grid; color: var(--accent-text); }
.passport > .avatar { --s: 96px; }
code { font-size: 12.5px; background: var(--surface-2); border: 1px solid var(--border); padding: 1px 6px; border-radius: 6px; }
.logo-sub, .logo-title { white-space: nowrap; }
.comment-body:has(.sticker-img) { background: transparent; padding-left: 0; }
