/* ============================================================
   Zallixor Messenger — style.css
   Dark, purple-accented theme matching the mockups. Light theme
   supported via [data-theme="light"]. Mobile-first, app-like.
   ============================================================ */

:root {
  --accent: #8b5cf6;
  --accent-2: #a78bfa;
  --accent-deep: #6d28d9;
  --accent-soft: rgba(139, 92, 246, .16);

  --bg: #0a0a0f;
  --bg-2: #101018;
  --panel: #14141f;
  --panel-2: #1b1b28;
  --panel-3: #24243400;
  --panel-3: #232333;
  --line: #262636;
  --text: #f3f2fb;
  --muted: #9b9ab4;
  --muted-2: #6f6e88;

  --ok: #22c55e;
  --danger: #ef4444;
  --unread: #8b5cf6;

  --nav-h: 62px;
  --top-h: 56px;
  --maxw: 640px;

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);

  --dur-fast: .12s;
  --dur-med: .2s;
}

[data-theme="light"] {
  --bg: #f5f4fb;
  --bg-2: #ffffff;
  --panel: #ffffff;
  --panel-2: #f2f0fa;
  --panel-3: #e9e7f5;
  --line: #e4e2ef;
  --text: #16151f;
  --muted: #6c6b82;
  --muted-2: #9997ad;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px; line-height: 1.45; overscroll-behavior-y: none;
}
#app { max-width: var(--maxw); margin: 0 auto; min-height: 100dvh; position: relative; }
.muted { color: var(--muted); }
.small { font-size: .8rem; }
.hidden { display: none !important; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
.link { color: var(--accent-2); text-decoration: none; }

/* ── Boot screen ── */
#boot { position: fixed; inset: 0; background: var(--bg); display: grid; place-items: center; z-index: 999; }
.boot-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.boot-logo { border-radius: 22px; box-shadow: 0 0 40px rgba(139,92,246,.35); }
.boot-word { font-size: 1.25rem; font-weight: 700; letter-spacing: .2px; }
.msgr-badge { background: var(--accent-soft); color: var(--accent-2); font-size: .62em;
  font-weight: 700; padding: 3px 8px; border-radius: 999px; vertical-align: middle; text-transform: uppercase; letter-spacing: .05em; }
.boot-spinner { width: 26px; height: 26px; border: 3px solid var(--line); border-top-color: var(--accent);
  border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Buttons / fields ── */
.btn { border: 0; border-radius: 12px; padding: 11px 16px; font-size: .95rem; font-weight: 600;
  background: var(--panel-2); color: var(--text); transition: filter var(--dur-fast), background var(--dur-fast); }
.btn:active { filter: brightness(.9); }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-deep)); color: #fff; }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-block { display: block; width: 100%; }
.field { width: 100%; background: var(--panel-2); border: 1px solid var(--line); color: var(--text);
  border-radius: 12px; padding: 12px 14px; font-size: .95rem; margin-bottom: 10px; }
.field:focus { outline: none; border-color: var(--accent); }
.field-label { display: block; font-size: .78rem; color: var(--muted); margin: 4px 2px; }

/* ── Auth ── */
.auth-screen { min-height: 100dvh; display: grid; place-items: center; padding: 22px; }
.auth-card { width: 100%; max-width: 380px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 20px; padding: 26px 22px; text-align: center; }
.auth-logo { margin: 0 auto 12px; border-radius: 16px; }
.auth-title { font-size: 1.5rem; margin: 0 0 6px; }
.auth-sub { margin: 0 0 18px; }
.auth-card .field-label, .auth-card .field { text-align: left; }
.auth-error { background: rgba(239,68,68,.12); color: #fca5a5; border: 1px solid rgba(239,68,68,.35);
  border-radius: 10px; padding: 9px 12px; font-size: .84rem; margin-bottom: 10px; }
.auth-foot { margin-top: 14px; }

/* ── Tab shell ── */
.tab-root { min-height: 100dvh; padding-bottom: calc(var(--nav-h) + var(--safe-bottom)); }
.tab-page { min-height: calc(100dvh - var(--nav-h)); }
.tab-header { position: sticky; top: 0; z-index: 20; background: var(--bg);
  padding: calc(10px + var(--safe-top)) 16px 10px; display: flex; align-items: center;
  justify-content: space-between; gap: 10px; }
.tab-header h1 { font-size: 1.4rem; margin: 0; font-weight: 700; letter-spacing: .2px; }
.tab-header .header-actions { display: flex; align-items: center; gap: 4px; }

/* ── Bottom nav (6 tabs) ── */
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  max-width: var(--maxw); margin: 0 auto; height: calc(var(--nav-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom); background: var(--panel); border-top: 1px solid var(--line);
  display: flex; align-items: stretch; }
.nav-item { flex: 1; background: transparent; border: 0; color: var(--muted-2);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  padding: 6px 2px; transition: color var(--dur-fast); position: relative; }
.nav-item .nav-ico { position: relative; display: grid; place-items: center; }
.nav-item .icon { width: 23px; height: 23px; }
.nav-label { font-size: .64rem; font-weight: 600; letter-spacing: .01em; }
.nav-item.active { color: var(--accent-2); }
.nav-item.active .nav-ico::after { content: ""; position: absolute; inset: -6px -10px; background: var(--accent-soft);
  border-radius: 12px; z-index: -1; }
.nav-badge { position: absolute; top: -5px; right: -9px; min-width: 16px; height: 16px; padding: 0 4px;
  background: var(--unread); color: #fff; font-size: .58rem; font-weight: 700; border-radius: 999px;
  display: grid; place-items: center; border: 2px solid var(--panel); }

/* ── Avatars ── */
.avatar { position: relative; flex: 0 0 auto; border-radius: 50%; }
.avatar-media { width: 100%; height: 100%; border-radius: 50%; overflow: hidden; background: var(--panel-2); }
.avatar-media img, .avatar-media video { width: 100%; height: 100%; object-fit: cover; }
.avatar-fallback { width: 100%; height: 100%; display: grid; place-items: center; font-weight: 700;
  color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-deep)); }
.avatar-ring { padding: 2px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.avatar-ring .avatar-media { border: 2px solid var(--bg); }
.avatar-story { padding: 2.5px; }
.avatar-story-unseen { background: linear-gradient(135deg, #22c55e, #16a34a); }
.avatar-story-seen { background: var(--line); }
.avatar-story .avatar-media { border: 2px solid var(--bg); }
.online-dot { position: absolute; bottom: 2%; right: 2%; background: var(--ok); border-radius: 50%;
  border: 2px solid var(--panel); box-sizing: content-box; }

/* Badges */
.verified-badge, .plus-badge { width: 15px; height: 15px; display: inline-block; vertical-align: -3px; margin-left: 3px; }

/* ── Skeletons ── */
.skel-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.skel-lines { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.skel-block, .skel-avatar { background: linear-gradient(90deg, var(--panel-2) 25%, var(--panel-3) 50%, var(--panel-2) 75%);
  background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: 8px; }
.skel-avatar { border-radius: 50%; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ── Empty state ── */
.empty-state { display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 10px; padding: 48px 28px; }
.empty-icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px;
  background: var(--accent-soft); color: var(--accent-2); }
.empty-icon .icon { width: 28px; height: 28px; }
.empty-state h3 { margin: 0; }
.empty-state .btn { margin-top: 6px; }

/* ── Coming-soon placeholder (until a screen is built) ── */
.coming-soon { display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 10px; padding: 60px 28px; }
.coming-icon { width: 60px; height: 60px; display: grid; place-items: center; border-radius: 18px;
  background: var(--accent-soft); color: var(--accent-2); }
.coming-icon .icon { width: 30px; height: 30px; }

/* ── Generic list row (used by many screens) ── */
.row { display: flex; align-items: center; gap: 12px; padding: 11px 16px; background: transparent;
  width: 100%; border: 0; text-align: left; color: var(--text); }
.row:active { background: var(--panel-2); }
.row-main { flex: 1; min-width: 0; }
.row-title { display: flex; align-items: center; gap: 4px; font-weight: 600; }
.row-title .name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-sub { color: var(--muted); font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: 0 0 auto; }
.row-time { font-size: .72rem; color: var(--muted-2); }

/* ── Search bar (chats/status/etc.) ── */
.search-bar { display: flex; align-items: center; gap: 8px; margin: 4px 16px 10px;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px; }
.search-bar .icon { width: 18px; height: 18px; color: var(--muted); flex: 0 0 auto; }
.search-bar input { flex: 1; background: transparent; border: 0; color: var(--text); font-size: .92rem; }
.search-bar input:focus { outline: none; }

/* ── Filter chips ── */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 16px 12px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; background: var(--panel-2); color: var(--muted); border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 14px; font-size: .82rem; font-weight: 600; }
.chip.active { background: var(--accent-soft); color: var(--accent-2); border-color: transparent; }

/* ── Floating action button ── */
.fab { position: fixed; right: max(16px, calc(50% - var(--maxw)/2 + 16px));
  bottom: calc(var(--nav-h) + var(--safe-bottom) + 16px); z-index: 55;
  width: 56px; height: 56px; border-radius: 18px; border: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep)); color: #fff;
  display: grid; place-items: center; box-shadow: 0 8px 22px rgba(109,40,217,.45); }
.fab .icon { width: 26px; height: 26px; }

/* ── Icon buttons ── */
.icon-btn { background: transparent; border: 0; color: var(--text); width: 40px; height: 40px;
  border-radius: 50%; display: grid; place-items: center; }
.icon-btn:active { background: var(--panel-2); }
.icon-btn .icon { width: 22px; height: 22px; }

/* ── Toast ── */
#toast-host { position: fixed; left: 0; right: 0; bottom: calc(var(--nav-h) + var(--safe-bottom) + 14px);
  z-index: 120; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast { background: var(--panel-3); color: var(--text); border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 16px; font-size: .86rem; opacity: 0; transform: translateY(8px);
  transition: opacity var(--dur-med), transform var(--dur-med); box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.toast.show { opacity: 1; transform: translateY(0); }
.toast-error { border-color: rgba(239,68,68,.4); }

/* ── Modal ── */
.modal-overlay { position: fixed; inset: 0; height: 100dvh; background: rgba(0,0,0,.6);
  z-index: 90; display: grid; place-items: center; padding: 18px; }
.modal { width: 100%; max-width: 420px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 18px; padding: 20px; }
.modal h3 { margin: 0 0 8px; }
.modal-actions { display: flex; gap: 10px; margin-top: 16px; }
.modal-actions .btn { flex: 1; }

/* ── Unread badge (chat list) ── */
.unread-pill { min-width: 20px; height: 20px; padding: 0 6px; background: var(--unread); color: #fff;
  font-size: .72rem; font-weight: 700; border-radius: 999px; display: grid; place-items: center; }

/* ============================================================
   Chats tab — story row, conversation list
   ============================================================ */
.story-row { display: flex; gap: 14px; overflow-x: auto; padding: 2px 16px 14px; scrollbar-width: none;
  border-bottom: 1px solid var(--line); }
.story-row::-webkit-scrollbar { display: none; }
.story-item { flex: 0 0 auto; background: transparent; border: 0; display: flex; flex-direction: column;
  align-items: center; gap: 6px; width: 66px; color: var(--text); }
.story-name { font-size: .72rem; color: var(--muted); max-width: 64px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.story-my { position: relative; }
.story-add { position: absolute; right: -2px; bottom: -2px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); color: #fff; display: grid; place-items: center; border: 2px solid var(--bg); }
.story-add .icon { width: 14px; height: 14px; }

.conv-list { padding: 2px 0 8px; }
.conv-row { display: flex; align-items: center; gap: 12px; padding: 10px 16px; width: 100%;
  background: transparent; border: 0; text-align: left; color: var(--text); }
.conv-row:active { background: var(--panel-2); }
.conv-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.conv-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.conv-name { font-weight: 600; font-size: .96rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-time { font-size: .72rem; color: var(--muted-2); flex: 0 0 auto; }
.conv-row.unread .conv-time { color: var(--accent-2); font-weight: 600; }
.conv-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.conv-preview { color: var(--muted); font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
.conv-row.unread .conv-preview { color: var(--text); }
.conv-tags { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.conv-mute .icon { width: 16px; height: 16px; color: var(--muted-2); }
.ticks .icon { width: 16px; height: 16px; vertical-align: -3px; color: var(--muted-2); margin-right: 2px; }
.ticks.read .icon { color: #4c9aff; }

/* ── Bottom sheet (new chat picker) ── */
.sheet-overlay { position: fixed; inset: 0; height: 100dvh; background: rgba(0,0,0,.55); z-index: 95;
  display: flex; align-items: flex-end; }
.sheet { width: 100%; max-width: var(--maxw); margin: 0 auto; background: var(--panel);
  border-radius: 20px 20px 0 0; max-height: 82vh; display: flex; flex-direction: column;
  padding-bottom: var(--safe-bottom); animation: sheetUp .22s ease; }
@keyframes sheetUp { from { transform: translateY(20px); opacity: .6; } to { transform: translateY(0); opacity: 1; } }
.sheet-handle { width: 40px; height: 4px; border-radius: 999px; background: var(--line); margin: 10px auto 4px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 16px 6px; }
.sheet-head h3 { margin: 0; }
.people-list { overflow-y: auto; padding-bottom: 12px; }

/* ============================================================
   Chat thread screen
   ============================================================ */
.chat-screen { position: fixed; top: 0; left: 0; right: 0; height: var(--vvh, 100dvh);
  max-width: var(--maxw); margin: 0 auto; z-index: 70; background: var(--bg-2);
  display: flex; flex-direction: column; transform: translateX(100%);
  transition: transform var(--dur-med) ease; }
.chat-screen.show { transform: translateX(0); }
.chat-header { display: flex; align-items: center; gap: 8px; padding: calc(6px + var(--safe-top)) 6px 6px;
  background: var(--panel); border-bottom: 1px solid var(--line); }
.chat-head-meta { flex: 1; min-width: 0; }
.chat-head-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-presence { font-size: .74rem; color: var(--accent-2); }
.chat-messages { flex: 1; overflow-y: auto; padding: 12px 12px 6px; display: flex; flex-direction: column; gap: 4px;
  background: var(--bg); }
.chat-loading, .chat-empty { margin: auto; text-align: center; color: var(--muted); padding: 30px; }
.chat-empty .empty-icon { margin: 0 auto 10px; }

.day-divider { display: flex; justify-content: center; margin: 10px 0; }
.day-divider span { background: var(--panel-2); color: var(--muted); font-size: .72rem; font-weight: 600;
  padding: 4px 12px; border-radius: 999px; }

.bubble { max-width: 78%; padding: 7px 11px 5px; border-radius: 16px; position: relative;
  font-size: .92rem; line-height: 1.35; word-wrap: break-word; }
.bubble.theirs { align-self: flex-start; background: var(--panel-2); border-bottom-left-radius: 5px; }
.bubble.mine { align-self: flex-end; background: linear-gradient(135deg, var(--accent-deep), var(--accent));
  color: #fff; border-bottom-right-radius: 5px; }
.bubble-sender { font-size: .74rem; font-weight: 700; color: var(--accent-2); margin-bottom: 2px; }
.bubble-img { border-radius: 12px; margin-bottom: 4px; max-height: 320px; object-fit: cover; }
.bubble-text a.link { color: inherit; text-decoration: underline; }
.bubble-meta { display: flex; align-items: center; gap: 3px; justify-content: flex-end; margin-top: 2px; }
.bubble-time { font-size: .64rem; opacity: .7; }
.bubble.theirs .bubble-time { color: var(--muted); }
.bubble-ticks .icon { width: 14px; height: 14px; vertical-align: -2px; opacity: .85; }

.chat-composer { display: flex; align-items: flex-end; gap: 8px; padding: 8px 10px calc(8px + var(--safe-bottom));
  background: var(--panel); border-top: 1px solid var(--line); }
.chat-pill { flex: 1; display: flex; align-items: flex-end; gap: 2px; background: var(--bg);
  border: 1px solid var(--line); border-radius: 22px; padding: 2px 4px; }
.chat-input { flex: 1; background: transparent; border: 0; color: var(--text); font-size: .95rem;
  resize: none; padding: 9px 4px; max-height: 120px; line-height: 1.35; font-family: inherit; }
.chat-input:focus { outline: none; }
.chat-pill .icon-btn { width: 36px; height: 36px; }
.chat-pill .icon-btn .icon { width: 20px; height: 20px; color: var(--muted); }
.chat-send { width: 46px; height: 46px; flex: 0 0 auto; border: 0; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep)); color: #fff;
  display: grid; place-items: center; transition: transform var(--dur-fast); }
.chat-send .icon { width: 22px; height: 22px; }
.chat-send.has-text { transform: scale(1.04); }

/* ============================================================
   Status tab
   ============================================================ */
.status-sub { margin: -6px 16px 12px; font-size: .85rem; }
.status-body { padding-bottom: 20px; }
.status-loading { padding: 8px 0; }

.my-status-card { display: flex; align-items: center; gap: 14px; margin: 0 16px 14px; padding: 12px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px; cursor: pointer; }
.my-status-card:active { background: var(--panel-2); }
.my-status-av { position: relative; flex: 0 0 auto; }
.my-status-av .story-add { position: absolute; right: -2px; bottom: -2px; width: 22px; height: 22px;
  border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; border: 2px solid var(--panel); }
.my-status-av .story-add .icon { width: 14px; height: 14px; }
.my-status-meta { flex: 1; min-width: 0; }
.my-status-title { font-weight: 600; }
.my-status-sub { font-size: .82rem; }
.ms-action { background: var(--accent-soft); }
.ms-action .icon { color: var(--accent-2); width: 20px; height: 20px; }

.status-section-head { display: flex; align-items: center; justify-content: space-between;
  padding: 6px 16px 8px; }
.status-section-head h3 { margin: 0; font-size: .95rem; }
.link-btn { background: transparent; border: 0; color: var(--accent-2); font-weight: 600; font-size: .85rem; }

.status-recent-row { display: flex; gap: 14px; overflow-x: auto; padding: 0 16px 14px; scrollbar-width: none; }
.status-recent-row::-webkit-scrollbar { display: none; }
.status-recent-item { flex: 0 0 auto; background: transparent; border: 0; display: flex; flex-direction: column;
  align-items: center; gap: 5px; width: 74px; color: var(--text); }
.sr-name { font-size: .78rem; font-weight: 600; max-width: 72px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-time { font-size: .68rem; }

.status-viewed-row { }

/* ── Full-screen story viewer ── */
.story-viewer { position: fixed; inset: 0; height: 100dvh; background: #000; z-index: 130;
  display: flex; flex-direction: column; }
.story-bars { display: flex; gap: 4px; padding: calc(10px + var(--safe-top)) 12px 4px; }
.story-bar { flex: 1; height: 3px; background: rgba(255,255,255,.3); border-radius: 999px; overflow: hidden; }
.story-bar i { display: block; height: 100%; width: 0; background: #fff; }
.story-vhead { display: flex; align-items: center; gap: 10px; padding: 8px 12px; color: #fff; }
.story-vhead-meta { flex: 1; display: flex; flex-direction: column; }
.svh-name { font-weight: 600; font-size: .9rem; }
.svh-time { font-size: .72rem; color: rgba(255,255,255,.7) !important; }
.story-vhead .icon-btn { color: #fff; }
.story-stage { flex: 1; display: grid; place-items: center; overflow: hidden; }
.story-stage img, .story-stage video { max-width: 100%; max-height: 100%; object-fit: contain; }

/* ── Voice recording UI + player ── */
.rec-ui { flex: 1; display: flex; align-items: center; gap: 10px; background: var(--bg);
  border: 1px solid var(--line); border-radius: 22px; padding: 8px 14px; }
.rec-cancel .icon { color: var(--danger); width: 20px; height: 20px; }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--danger); animation: recpulse 1s infinite; }
@keyframes recpulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
.rec-time { font-variant-numeric: tabular-nums; font-weight: 600; }
.rec-hint { font-size: .82rem; }

.voice-player { display: flex; align-items: center; gap: 10px; min-width: 180px; padding: 2px 0; }
.voice-play { width: 34px; height: 34px; flex: 0 0 auto; border: 0; border-radius: 50%;
  background: var(--accent); color: #fff; display: grid; place-items: center; }
.voice-player.mine .voice-play { background: rgba(255,255,255,.25); }
.voice-play .icon { width: 18px; height: 18px; }
.voice-bar { flex: 1; height: 4px; border-radius: 999px; background: var(--line); overflow: hidden; }
.voice-player.mine .voice-bar { background: rgba(255,255,255,.3); }
.voice-bar i { display: block; height: 100%; width: 0; background: var(--accent-2); }
.voice-player.mine .voice-bar i { background: #fff; }
.voice-time { font-size: .72rem; opacity: .85; font-variant-numeric: tabular-nums; }

/* ── AI chat (typing dots, quick chips, list badge) ── */
.typing-bubble { padding: 10px 14px; }
.typing-dots { display: flex; gap: 4px; align-items: center; }
.typing-dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted);
  animation: typing 1.2s infinite; }
.typing-dots span:nth-child(2) { animation-delay: .2s; }
.typing-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes typing { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.ai-quick-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 4px 4px; }
.ai-quick-chips .chip { background: var(--panel-2); }
.ai-chip { background: var(--accent-soft); color: var(--accent-2); font-size: .62rem; font-weight: 700;
  padding: 2px 7px; border-radius: 999px; letter-spacing: .04em; }
.ai-conv-row .conv-preview { color: var(--muted); }

/* ============================================================
   Pages tab
   ============================================================ */
.tab-title-row { display: flex; align-items: center; gap: 10px; }
.tab-title-icon { width: 38px; height: 38px; border-radius: 11px; flex: 0 0 auto; }
.tab-title-sub { font-size: .74rem; margin-top: 1px; }
.seg-chips { padding-top: 6px; }
.pages-body { padding-bottom: 24px; }

.section-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px 8px; }
.section-head h3 { margin: 0; font-size: 1rem; }
.link-btn { background: transparent; border: 0; color: var(--accent-2); font-weight: 600; font-size: .82rem;
  display: inline-flex; align-items: center; gap: 2px; }
.link-btn .icon { width: 15px; height: 15px; }

/* Your-pages horizontal cards */
.page-card-strip { display: flex; gap: 12px; overflow-x: auto; padding: 2px 16px 14px; scrollbar-width: none; }
.page-card-strip::-webkit-scrollbar { display: none; }
.page-card { flex: 0 0 auto; width: 150px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 16px; padding: 14px 12px; display: flex; flex-direction: column; align-items: center;
  gap: 3px; text-align: center; color: var(--text); }
.page-card-avatar { width: 62px; height: 62px; border-radius: 50%; background: var(--panel-2) center/cover no-repeat;
  display: grid; place-items: center; font-weight: 700; font-size: 1.3rem; color: var(--accent-2); margin-bottom: 4px; }
.page-card-name { font-weight: 600; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.page-card-handle { font-size: .74rem; }
.page-card-followers { font-size: .72rem; margin-bottom: 8px; }
.page-follow-btn { width: 100%; border: 0; border-radius: 10px; padding: 7px; font-weight: 600; font-size: .82rem;
  background: var(--accent-soft); color: var(--accent-2); }
.page-follow-btn.following { background: var(--panel-2); color: var(--muted); }

/* Recent page posts */
.page-posts { padding: 0 16px; display: flex; flex-direction: column; }
.page-post { text-align: left; width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line);
  padding: 12px 0; color: var(--text); display: flex; flex-direction: column; gap: 8px; }
.page-post:last-child { border-bottom: 0; }
.pp-head { display: flex; align-items: center; gap: 10px; }
.pp-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--panel-2) center/cover no-repeat;
  display: grid; place-items: center; font-weight: 700; color: var(--accent-2); flex: 0 0 auto; }
.pp-name { font-weight: 600; font-size: .92rem; }
.pp-time { font-size: .74rem; }
.pp-text { font-size: .9rem; line-height: 1.4; }
.pp-media { border-radius: 12px; overflow: hidden; max-height: 260px; }
.pp-media img, .pp-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.pp-stats { display: flex; gap: 16px; color: var(--muted); font-size: .8rem; }
.pp-stats .icon { width: 15px; height: 15px; vertical-align: -3px; }

/* Category chips + grid */
.cat-chips { padding-bottom: 18px; }
.cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px 16px; }
.cat-tile { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 14px;
  text-align: left; color: var(--text); }
.cat-tile-name { font-weight: 600; }
.cat-tile-count { font-size: .78rem; margin-top: 2px; }

/* Page detail */
.page-detail .pd-scroll { flex: 1; overflow-y: auto; }
.pd-header-title { flex: 1; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-cover { height: 130px; background: linear-gradient(135deg, var(--accent-deep), var(--accent)) center/cover no-repeat; }
.pd-info { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 16px 16px; margin-top: -36px; }
.pd-avatar { width: 78px; height: 78px; border-radius: 50%; background: var(--panel-2) center/cover no-repeat;
  border: 3px solid var(--bg); display: grid; place-items: center; font-weight: 700; font-size: 1.6rem; color: var(--accent-2); }
.pd-name { font-weight: 700; font-size: 1.15rem; margin-top: 8px; }
.pd-meta { font-size: .84rem; margin-top: 2px; }
.pd-desc { font-size: .88rem; color: var(--muted); margin: 8px 0 0; }
.pd-follow { margin-top: 12px; min-width: 150px; }
.pd-follow.following { background: var(--panel-2); color: var(--muted); }
.pd-feed { padding: 8px 16px 24px; border-top: 8px solid var(--panel); margin-top: 8px; }

/* Create-page sheet form */
.sheet-form { padding: 8px 16px 20px; }
.sheet-form .field { margin-bottom: 6px; }
.sheet-form select.field { appearance: none; }

/* ============================================================
   Notifications tab
   ============================================================ */
.notif-list { padding-bottom: 24px; }
.notif-section-head { padding: 14px 16px 6px; font-weight: 700; font-size: 1.05rem; }

/* Push banner */
.push-banner { display: flex; align-items: center; gap: 12px; margin: 8px 16px 6px; padding: 14px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px; position: relative; }
.push-icon { width: 44px; height: 44px; flex: 0 0 auto; border-radius: 50%; background: var(--accent-soft);
  color: var(--accent-2); display: grid; place-items: center; }
.push-icon .icon { width: 22px; height: 22px; }
.push-meta { flex: 1; min-width: 0; }
.push-title { font-weight: 600; font-size: .92rem; }
.push-sub { font-size: .78rem; line-height: 1.35; }
.push-enable { flex: 0 0 auto; border: 0; border-radius: 12px; padding: 9px 16px; font-weight: 600;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep)); color: #fff; }
.push-close { position: absolute; top: 8px; right: 8px; background: transparent; border: 0; color: var(--muted-2);
  width: 26px; height: 26px; display: grid; place-items: center; }
.push-close .icon { width: 16px; height: 16px; }

/* Notification rows */
.notif-row { display: flex; align-items: center; gap: 12px; padding: 11px 16px; width: 100%;
  background: transparent; border: 0; text-align: left; color: var(--text); border-bottom: 1px solid var(--line); }
.notif-row:active { background: var(--panel-2); }
.notif-row.unread { background: rgba(139,92,246,.06); }
.notif-avatar-wrap { position: relative; flex: 0 0 auto; }
.notif-emoji { width: 46px; height: 46px; border-radius: 50%; background: var(--panel-2); color: var(--muted);
  display: grid; place-items: center; }
.notif-emoji .icon { width: 22px; height: 22px; }
.notif-type-badge { position: absolute; right: -3px; bottom: -3px; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; border: 2px solid var(--bg); background: var(--accent); color: #fff; }
.notif-type-badge .icon { width: 12px; height: 12px; }
.notif-type-badge.t-like { background: #ff4d6d; }
.notif-type-badge.t-comment { background: #4c9aff; }
.notif-type-badge.t-follow { background: var(--accent); }
.notif-type-badge.t-mention { background: #4c9aff; }
.notif-type-badge.t-message { background: #22c55e; }
.notif-type-badge.t-security { background: #f59e0b; }
.notif-type-badge.t-boost { background: #f5b429; }
.notif-type-badge.t-page { background: var(--accent-2); }
.notif-type-badge.t-community { background: #16a34a; }
.notif-meta { flex: 1; min-width: 0; }
.notif-text { font-size: .9rem; line-height: 1.35; }
.notif-text strong { font-weight: 600; }
.notif-snippet { color: var(--accent-2); font-size: .85rem; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notif-time { margin-top: 2px; }
.notif-right { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.notif-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.notif-menu-btn .icon { width: 20px; height: 20px; color: var(--muted-2); }
.notif-row.security .notif-emoji { color: #f59e0b; }

/* Row options popover */
.notif-popover { position: fixed; z-index: 100; background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; padding: 4px; min-width: 160px; box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.notif-popover .row { padding: 10px 12px; border-radius: 8px; font-size: .88rem; }
.notif-popover .row.danger { color: var(--danger); }

/* ============================================================
   Communities tab
   ============================================================ */
.communities-body { padding-bottom: 24px; }

/* Create banner */
.create-banner { display: flex; align-items: center; gap: 12px; margin: 8px 16px 10px; padding: 14px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px; width: calc(100% - 32px);
  text-align: left; color: var(--text); }
.cb-icon { width: 48px; height: 48px; flex: 0 0 auto; border-radius: 14px; background: var(--accent-soft);
  color: var(--accent-2); display: grid; place-items: center; }
.cb-icon .icon { width: 24px; height: 24px; }
.cb-meta { flex: 1; min-width: 0; }
.cb-title { font-weight: 600; }
.cb-sub { font-size: .78rem; line-height: 1.35; }
.cb-btn { flex: 0 0 auto; border: 0; border-radius: 12px; padding: 9px 18px; font-weight: 600;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep)); color: #fff; }

/* My communities list */
.comm-list { margin: 0 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.comm-empty { padding: 14px 16px; font-size: .85rem; }
.comm-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; width: 100%;
  background: transparent; border: 0; border-bottom: 1px solid var(--line); text-align: left; color: var(--text); }
.comm-row:last-child { border-bottom: 0; }
.comm-row:active { background: var(--panel-2); }
.comm-avatar { width: 50px; height: 50px; border-radius: 14px; background: var(--panel-2) center/cover no-repeat;
  display: grid; place-items: center; font-weight: 700; color: var(--accent-2); flex: 0 0 auto; }
.comm-main { flex: 1; min-width: 0; }
.comm-name { font-weight: 600; }
.comm-desc { font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.comm-meta { font-size: .76rem; margin-top: 2px; }
.comm-chev { color: var(--muted-2); flex: 0 0 auto; }
.comm-chev .icon { width: 18px; height: 18px; }

/* Discover row */
.discover-row { display: flex; align-items: center; gap: 12px; margin: 12px 16px; padding: 14px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; width: calc(100% - 32px);
  text-align: left; color: var(--text); }
.dr-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-2);
  display: grid; place-items: center; flex: 0 0 auto; }
.dr-meta { flex: 1; }
.dr-title { font-weight: 600; color: var(--accent-2); }
.dr-sub { font-size: .78rem; }
.dr-chev { color: var(--muted-2); }

/* Community updates */
.comm-updates { padding: 0 16px; }
.comm-update { display: flex; flex-direction: column; gap: 8px; width: 100%; text-align: left;
  background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 14px 0; color: var(--text); }
.comm-update:last-child { border-bottom: 0; }
.cu-head { display: flex; align-items: center; gap: 10px; }
.cu-avatar { width: 42px; height: 42px; border-radius: 12px; background: var(--panel-2) center/cover no-repeat;
  display: grid; place-items: center; font-weight: 700; color: var(--accent-2); flex: 0 0 auto; }
.cu-name { font-weight: 600; font-size: .92rem; }
.cu-sub { font-size: .76rem; }
.cu-text { font-size: .9rem; line-height: 1.4; background: var(--panel-2); border-radius: 12px; padding: 10px 12px; }
.cu-media { border-radius: 12px; overflow: hidden; max-height: 240px; }
.cu-media img, .cu-media video { width: 100%; object-fit: cover; display: block; }
.cu-stats { display: flex; gap: 16px; font-size: .8rem; }
.cu-stats .icon { width: 14px; height: 14px; vertical-align: -2px; }

/* Community detail */
.cd-cover { height: 120px; background: linear-gradient(135deg, var(--accent-deep), var(--accent)) center/cover no-repeat; }
.cd-info { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 16px 14px; margin-top: -34px; }
.cd-avatar { width: 74px; height: 74px; border-radius: 20px; background: var(--panel-2) center/cover no-repeat;
  border: 3px solid var(--bg); display: grid; place-items: center; font-weight: 700; font-size: 1.6rem; color: var(--accent-2); }
.cd-name { font-weight: 700; font-size: 1.15rem; margin-top: 8px; }
.cd-meta { font-size: .84rem; margin-top: 2px; }
.cd-desc { font-size: .88rem; color: var(--muted); margin: 8px 0 0; }
.cd-join { margin-top: 12px; min-width: 150px; }
.cd-composer { display: flex; gap: 8px; align-items: flex-end; padding: 10px 16px; border-top: 8px solid var(--panel); }
.cd-composer .field { margin: 0; }
.cd-feed { padding: 8px 16px 24px; }

/* ============================================================
   Settings tab
   ============================================================ */
.settings-head { justify-content: space-between; }
.settings-body { padding: 0 16px calc(30px + var(--safe-bottom)); }

/* Profile header */
.settings-profile { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 14px; margin-bottom: 16px; color: var(--text); }
.settings-profile:active { background: var(--panel-2); }
.sp-meta { flex: 1; min-width: 0; }
.sp-name { font-weight: 700; font-size: 1.15rem; }
.sp-handle { color: var(--accent-2); font-size: .85rem; }
.sp-bio { font-size: .8rem; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-chev { color: var(--muted-2); flex: 0 0 auto; }

/* Grouped cards */
.settings-group { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin-bottom: 16px; }
.set-row { display: flex; align-items: center; gap: 13px; width: 100%; padding: 13px 14px; background: transparent;
  border: 0; border-bottom: 1px solid var(--line); text-align: left; color: var(--text); }
.settings-group .set-row:last-child { border-bottom: 0; }
.set-row:active { background: var(--panel-2); }
.set-ico { width: 38px; height: 38px; flex: 0 0 auto; border-radius: 11px; display: grid; place-items: center; }
.set-ico .icon { width: 20px; height: 20px; }
.set-ico-purple { background: rgba(139,92,246,.16); color: #a78bfa; }
.set-ico-blue { background: rgba(59,130,246,.16); color: #60a5fa; }
.set-ico-green { background: rgba(34,197,94,.16); color: #4ade80; }
.set-ico-amber { background: rgba(245,158,11,.16); color: #fbbf24; }
.set-ico-red { background: rgba(239,68,68,.16); color: #f87171; }
.set-meta { flex: 1; min-width: 0; }
.set-title { font-weight: 600; font-size: .95rem; }
.set-sub { font-size: .78rem; margin-top: 1px; }
.set-chev { color: var(--muted-2); flex: 0 0 auto; }
.set-chev .icon { width: 18px; height: 18px; }

/* Toggle + select rows inside sub-screens */
.set-row.toggle, .set-row.select-row { justify-content: space-between; }
.switch { width: 46px; height: 27px; appearance: none; -webkit-appearance: none; background: var(--panel-3);
  border-radius: 999px; position: relative; transition: background var(--dur-med); flex: 0 0 auto; }
.switch:checked { background: var(--ok); }
.switch::after { content: ""; position: absolute; top: 2.5px; left: 2.5px; width: 22px; height: 22px; background: #fff;
  border-radius: 50%; transition: transform var(--dur-med); box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.switch:checked::after { transform: translateX(19px); }
.set-select { background: var(--panel-2); border: 1px solid var(--line); color: var(--text); border-radius: 10px;
  padding: 8px 10px; font-size: .88rem; max-width: 55%; }

.settings-logout { width: 100%; border: 1px solid var(--line); background: var(--panel); color: var(--danger);
  border-radius: 14px; padding: 14px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px; }
.settings-logout .icon { width: 20px; height: 20px; }

/* Sub-screens */
.settings-sub-scroll { flex: 1; overflow-y: auto; padding: 16px; }
.settings-sub-scroll .settings-group { margin-bottom: 16px; }
.sub-hint { padding: 2px 2px 10px; font-size: .84rem; }
.sub-form { padding: 8px 2px; }
.sub-form .field { margin-bottom: 8px; }
.sub-form h3 { margin: 4px 0 8px; }
.sub-form p { margin: 0 0 12px; }
.sub-profile-head { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px 0 18px; }
.sub-profile-handle { font-size: .85rem; }

/* Theme swatches */
.theme-swatches { display: flex; gap: 12px; margin: 8px 0 14px; }
.theme-swatch { width: 52px; height: 52px; border-radius: 14px; border: 2px solid transparent; }
.theme-swatch.active { border-color: var(--text); box-shadow: 0 0 0 3px var(--accent-soft); }

/* Wallpaper placeholder */
.wallpaper-placeholder { padding: 4px 0; }
.wp-preview { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 18px;
  display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.wp-bubble { max-width: 80%; padding: 9px 12px; border-radius: 14px; font-size: .85rem; }
.wp-bubble.theirs { align-self: flex-start; background: var(--panel-2); }
.wp-bubble.mine { align-self: flex-end; background: linear-gradient(135deg, var(--accent), var(--accent-deep)); color: #fff; }
.wp-note { margin-top: 6px; }

/* Backup / about / help */
.backup-icon, .about-logo { display: block; }
.backup-icon { width: 48px; height: 48px; color: var(--accent-2); margin: 4px 0 10px; }
.backup-icon .icon { width: 48px; height: 48px; }
.help-contacts { line-height: 1.7; margin-top: 12px; }
.about-screen { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 24px 16px; }
.about-logo { border-radius: 22px; margin-bottom: 12px; box-shadow: 0 0 30px rgba(139,92,246,.3); }
.about-name { font-weight: 700; font-size: 1.2rem; }
.about-ver { font-size: .85rem; margin-top: 2px; }
.about-desc { margin: 14px 0 18px; max-width: 300px; }
.about-links { width: 100%; max-width: 300px; }

/* Blocked + devices rows */
.blocked-list .row { border-bottom: 1px solid var(--line); }
.device-row { display: flex; align-items: center; gap: 12px; padding: 12px 2px; border-bottom: 1px solid var(--line); }
.device-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--panel-2); color: var(--accent-2);
  display: grid; place-items: center; flex: 0 0 auto; }
.device-ico .icon { width: 20px; height: 20px; }
.device-name { font-weight: 600; font-size: .92rem; }

/* ============================================================
   Subscription (Plus) + Verification
   ============================================================ */
.upgrade-cards { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.upgrade-card { display: flex; align-items: center; gap: 13px; width: 100%; padding: 14px; border-radius: 16px;
  border: 1px solid var(--line); text-align: left; color: var(--text); position: relative; overflow: hidden; }
.plus-card { background: linear-gradient(135deg, rgba(139,92,246,.22), rgba(109,40,217,.12)); border-color: rgba(139,92,246,.4); }
.verify-card { background: linear-gradient(135deg, rgba(34,197,94,.16), rgba(21,128,61,.08)); border-color: rgba(34,197,94,.35); }
.up-ico { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 12px; display: grid; place-items: center; color: #fff; }
.plus-card .up-ico { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.verify-card .up-ico { background: linear-gradient(135deg, #22c55e, #15803d); }
.up-ico .icon { width: 22px; height: 22px; }
.up-meta { flex: 1; min-width: 0; }
.up-title { font-weight: 700; font-size: .96rem; }
.up-sub { font-size: .78rem; color: var(--muted); margin-top: 1px; }
.up-chev { color: var(--muted-2); flex: 0 0 auto; }
.up-chev .icon { width: 18px; height: 18px; }
.upgrade-card.active .up-title { color: var(--accent-2); }

/* Promote sheets */
.promo-body { padding: 6px 16px 20px; max-height: 78vh; overflow-y: auto; }
.gem-title, .verify-title { display: inline-flex; align-items: center; gap: 7px; }
.gem-title .icon, .verify-title .icon { width: 20px; height: 20px; }
.promo-hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
  padding: 18px; border-radius: 18px; margin-bottom: 14px; }
.plus-hero { background: linear-gradient(135deg, rgba(139,92,246,.25), rgba(109,40,217,.12)); }
.verify-hero { background: linear-gradient(135deg, rgba(34,197,94,.2), rgba(21,128,61,.1)); }
.promo-hero-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; color: #fff; margin-bottom: 4px; }
.plus-hero .promo-hero-icon { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.verify-hero .promo-hero-icon { background: linear-gradient(135deg, #22c55e, #15803d); }
.promo-hero-icon .icon { width: 28px; height: 28px; }
.promo-hero-title { font-weight: 700; font-size: 1.15rem; }
.promo-hero-price { color: var(--muted); font-size: .9rem; }

.promo-perks { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-direction: column; gap: 8px; }
.promo-perks li { display: flex; align-items: center; gap: 10px; font-size: .9rem; }
.perk-check { width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-2);
  display: grid; place-items: center; flex: 0 0 auto; }
.perk-check .icon { width: 14px; height: 14px; }

.promo-pay-box { background: var(--panel-2); border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin: 6px 0 12px; }
.promo-pay-title { font-weight: 600; margin-bottom: 4px; }
.promo-pay-method { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; }
.promo-pay-method:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.promo-pay-line { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.promo-pay-line strong { font-weight: 600; }
.promo-ref-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px;
  background: var(--bg); border: 1px dashed var(--accent); border-radius: 10px; padding: 8px 12px; }
.promo-ref { font-weight: 700; font-size: 1.05rem; color: var(--accent-2); letter-spacing: .04em; }

.proof-row { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px dashed var(--line);
  border-radius: 12px; margin-bottom: 12px; }
.proof-thumb { width: 46px; height: 46px; border-radius: 10px; background: var(--panel-2) center/cover no-repeat; flex: 0 0 auto; }

.promo-status { text-align: center; padding: 24px 10px; }
.promo-status-icon { width: 60px; height: 60px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-2);
  display: grid; place-items: center; margin: 0 auto 12px; }
.promo-status-icon .icon { width: 30px; height: 30px; }
