/* Flamingo CRM — layout and measurements matched to the Fanvue creator dashboard */
:root {
  --bg: #151515;          /* page */
  --side: #1c1c1c;        /* left nav */
  --rail: #0f0f0f;        /* creator switcher */
  --panel: #151515;       /* bordered panels */
  --raised: #262626;      /* active nav item, inputs, composer */
  --raised-2: #2e2e2e;
  --line: #333333;        /* 1px borders */
  --line-soft: rgba(255,255,255,.2);
  --text: #ffffff;
  --text-2: #d4d4d4;
  --muted: #a3a3a3;
  --chip: rgba(255,255,255,.1);
  --accent: #49f264;
  --accent-ink: #062b10;
  --row-active: rgba(73,242,100,.2);
  --bubble-me: #033f15;
  --bubble-me-line: #075f1e;
  --bubble-fan: #262626;
  --gold: #f5c84c;
  --danger: #ff5a5f;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.5; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, textarea, select { font: inherit; font-size: 14px; color: var(--text); background: var(--raised); border: 1px solid transparent; border-radius: 8px; padding: 8px 12px; outline: none; }
input:focus, textarea:focus, select:focus { border-color: #4a4a4a; }
::placeholder { color: #8a8a8a; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: #3a3a3a; border-radius: 6px; }
::-webkit-scrollbar-track { background: transparent; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.error { color: var(--danger); font-size: 14px; }
svg.i { width: 20px; height: 20px; flex-shrink: 0; }

/* Buttons */
.btn { padding: 8px 16px; border-radius: 9999px; background: var(--chip); font-weight: 600; font-size: 14px; white-space: nowrap; line-height: 20px; }
.btn:hover { background: rgba(255,255,255,.16); }
.btn.white, .btn.primary { background: #fff; color: #151515; }
.btn.white:hover, .btn.primary:hover { background: #e9e9e9; }
.btn.green { background: var(--accent); color: var(--accent-ink); }
.btn.danger { background: var(--danger); color: #fff; }
.btn.ghost { background: transparent; border: 1px solid var(--line); }
.btn.sm { padding: 4px 12px; font-size: 12px; }
.btn:disabled { opacity: .45; cursor: default; }
.icon-btn { width: 36px; height: 36px; border-radius: 9999px; display: inline-grid; place-items: center; color: var(--text); }
.icon-btn:hover { background: var(--chip); }
.icon-btn svg { width: 20px; height: 20px; }

/* Login */
.login { height: 100%; display: grid; place-items: center; background: var(--bg); }
.login-card { width: min(380px, calc(100% - 32px)); background: var(--panel); border: 1px solid var(--line); padding: 32px; border-radius: 16px; display: grid; gap: 14px; text-align: center; }
.login-card .logo { margin: 0 auto 4px; width: 48px; height: 48px; font-size: 26px; border-radius: 14px; }
.login-card h1 { margin: 0; font-size: 20px; }
.login-card input { text-transform: uppercase; letter-spacing: 1px; text-align: center; padding: 12px; }

/* Shell */
.app { display: grid; grid-template-columns: 64px 230px 1fr; height: 100%; }
.rail { background: var(--rail); display: flex; flex-direction: column; align-items: center; padding: 14px 0; gap: 12px; border-right: 1px solid #222; }
.rail-creators { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; background: #3a3a3a; position: relative; flex-shrink: 0; color: #fff; }
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.rail .avatar { width: 42px; height: 42px; outline: 2px solid transparent; outline-offset: 2px; }
.rail .avatar.active { outline-color: var(--accent); }
.avatar .badge { position: absolute; top: -4px; right: -4px; background: var(--accent); color: var(--accent-ink); font-size: 10px; font-weight: 800; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; border: 2px solid var(--rail); }
.avatar .warn { position: absolute; bottom: -4px; right: -4px; font-size: 12px; }
.rail-add { width: 42px; height: 42px; border-radius: 50%; border: 1.5px dashed #444; font-size: 20px; color: var(--muted); }
.rail-add:hover { border-color: var(--accent); color: var(--accent); }
.rail-bottom { margin-top: auto; }

.sidebar { background: var(--side); display: flex; flex-direction: column; min-width: 0; padding: 8px 0; }
.side-top { display: flex; align-items: center; justify-content: space-between; padding: 8px 16px 12px; }
.logo { width: 28px; height: 28px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 900; font-size: 15px; }
.brand-row { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; }
.menu { display: flex; flex-direction: column; gap: 2px; padding: 8px 16px; overflow-y: auto; flex: 1; }
.menu-item { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 12px; font-size: 16px; font-weight: 450; color: var(--muted); text-align: left; line-height: 24px; }
.menu-item svg { width: 20px; height: 20px; flex-shrink: 0; }
.menu-item:hover { color: var(--text); }
.menu-item.active { background: var(--raised); color: var(--text); }
.menu-badge { margin-left: auto; background: var(--accent); color: var(--accent-ink); font-size: 10px; font-weight: 800; min-width: 16px; height: 16px; border-radius: 8px; display: grid; place-items: center; padding: 0 4px; line-height: 1; }
.menu-label { font-size: 12px; color: var(--muted); padding: 10px 8px 2px; font-weight: 500; }
.menu-sep { height: 1px; background: #2a2a2a; margin: 8px 0; }
.side-bottom { padding: 8px 16px 4px; display: grid; gap: 2px; }
.me-row { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 12px; font-size: 15px; color: var(--text-2); }
.me-row .avatar { width: 24px; height: 24px; font-size: 10px; }
.me-row .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.role-pill { display: inline-block; padding: 1px 6px; border-radius: 6px; font-size: 10px; font-weight: 800; text-transform: uppercase; background: var(--chip); color: var(--text-2); }
.role-pill.owner { background: var(--accent); color: var(--accent-ink); }

/* Content area + page header (title left, actions right) */
.main { overflow: auto; min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px 12px 40px; min-height: 60px; gap: 12px; flex-shrink: 0; }
.topbar h1 { margin: 0; font-size: 20px; font-weight: 700; line-height: 24px; }
.top-pill { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 9999px; padding: 4px 6px 4px 12px; font-size: 13px; font-weight: 600; }
.top-pill .avatar { width: 22px; height: 22px; font-size: 9px; }
.content { flex: 1; min-height: 0; padding: 0 20px 20px 40px; }
.center-col { max-width: 500px; margin: 0 auto; width: 100%; }
.wide-col { max-width: 1240px; }
.empty { display: grid; place-items: center; height: 100%; text-align: center; padding: 40px; color: var(--muted); }
.empty h2 { color: var(--text); font-size: 18px; margin: 10px 0 4px; }
.empty-art { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto; background: radial-gradient(circle, rgba(73,242,100,.55), rgba(73,242,100,0) 70%); }

/* Generic cards */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.card h3 { margin: 0 0 12px; font-size: 18px; font-weight: 600; }
.grid { display: grid; gap: 12px; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 10px 12px; font-size: 14px; }
.kv .k { color: var(--text); font-weight: 500; }
.kv .v { text-align: right; font-weight: 600; }
.kv small { display: block; color: var(--muted); font-weight: 500; font-size: 12px; }

/* Chips (filters) */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { height: 32px; padding: 4px 12px; border-radius: 9999px; background: var(--chip); font-size: 12px; font-weight: 600; white-space: nowrap; color: var(--text); display: inline-flex; align-items: center; gap: 4px; }
.chip:hover { background: rgba(255,255,255,.16); }
.chip.on { background: #fff; color: #151515; }
.chip .n { opacity: .6; font-weight: 500; }

/* Underline tabs (Dashboard/Feed, Messages/Media, Fan Insights/Templates) */
.utabs { display: flex; border-bottom: 1px solid var(--line); }
.utab { flex: 1; text-align: center; padding: 0 16px 12px; font-weight: 400; color: var(--text-2); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.utab.on { color: var(--text); font-weight: 600; border-bottom-color: #fff; }
.utabs.left .utab { flex: 0 0 auto; padding: 0 0 10px; margin-right: 24px; font-weight: 600; color: var(--muted); }
.utabs.left .utab.on { color: var(--text); }

/* ================= Chat ================= */
.chat { display: grid; grid-template-columns: 340px minmax(0, 1fr) 320px; gap: 12px; height: calc(100vh - 72px); padding: 0 16px 12px 12px; }
.chat-list { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.chat-tools { padding: 12px 12px 8px; display: grid; gap: 12px; }
.list-actions { display: flex; justify-content: flex-end; gap: 4px; color: var(--muted); }
.searchbox { position: relative; }
.searchbox svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.searchbox input { width: 100%; padding: 8px 12px 8px 38px; border-radius: 8px; height: 38px; font-size: 15px; }
.list-meta { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 600; padding: 0 8px; }
.list-meta select { background: transparent; border: 0; font-weight: 600; font-size: 13px; padding: 0; cursor: pointer; }
.chats { overflow: auto; flex: 1; padding: 4px 8px 8px; display: grid; align-content: start; gap: 2px; }
.chat-row { display: flex; gap: 12px; padding: 8px; border-radius: 16px; cursor: pointer; align-items: center; min-height: 76px; }
.chat-row:hover { background: rgba(255,255,255,.04); }
.chat-row.active { background: var(--row-active); }
.av-wrap { position: relative; flex-shrink: 0; padding-bottom: 6px; }
.chat-row .avatar { width: 52px; height: 52px; font-size: 18px; }
.spend { position: absolute; left: 50%; bottom: -2px; transform: translateX(-50%); background: #f7f7f7; color: #151515; font-size: 10px; font-weight: 700; line-height: 16px; padding: 0 8px; border-radius: 9999px; white-space: nowrap; min-width: 30px; text-align: center; }
.spend.loading { background: #3a3a3a; color: var(--muted); }
.spend.some { background: var(--accent); color: var(--accent-ink); }
.spend.big { background: var(--gold); color: #1a1300; }
.dot-online { position: absolute; top: 2px; right: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); border: 2px solid var(--panel); }
.chat-meta { flex: 1; min-width: 0; }
.chat-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.chat-name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; gap: 6px; align-items: center; }
.chat-time { font-size: 12px; font-weight: 500; color: var(--text-2); white-space: nowrap; }
.chat-bottom { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-top: 2px; }
.chat-last { font-size: 14px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; gap: 4px; align-items: center; }
.chat-row.unread-row .chat-last { color: var(--text); font-weight: 600; }
.ticks { color: #8b7cf6; font-size: 11px; }
.unread { background: var(--accent); color: var(--accent-ink); border-radius: 9999px; min-width: 16px; height: 16px; font-size: 10px; font-weight: 800; display: grid; place-items: center; padding: 0 4px; flex-shrink: 0; }
.tag-top { font-size: 10px; background: rgba(245,200,76,.15); color: var(--gold); padding: 0 5px; border-radius: 5px; font-weight: 700; }
.load-more { width: 100%; padding: 10px; color: var(--muted); font-weight: 600; font-size: 13px; }
.load-more:hover { color: var(--text); }

.conv { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.conv-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 4px 4px 12px; }
.conv-head .who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.conv-head .who .avatar { width: 36px; height: 36px; font-size: 13px; }
.conv-head .nm { font-size: 14px; font-weight: 600; line-height: 18px; }
.conv-head .hd { font-size: 14px; color: var(--text-2); line-height: 18px; }
.messages { flex: 1; overflow: auto; padding: 16px 8px; display: flex; flex-direction: column; gap: 4px; }
.day-sep { align-self: center; font-size: 13px; color: var(--text-2); margin: 16px 0 8px; }
.msg { max-width: min(70%, 520px); padding: 8px 12px; border-radius: 16px; background: var(--bubble-fan); border: 1px solid #333; word-wrap: break-word; align-self: flex-start; font-size: 15px; line-height: 20px; }
.msg.me { align-self: flex-end; background: var(--bubble-me); border-color: var(--bubble-me-line); }
.msg .txt { white-space: pre-wrap; }
.msg-time { font-size: 11px; color: var(--text-2); margin: 2px 4px 6px; display: flex; gap: 4px; align-items: center; }
.msg-time.me { align-self: flex-end; }
.msg .ppv { font-size: 12px; font-weight: 700; margin-bottom: 6px; display: flex; gap: 6px; align-items: center; color: #ffd36e; }
.msg .sys { font-size: 12px; font-weight: 700; color: var(--text-2); margin-bottom: 2px; }
.msg-media { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 4px; margin: 2px 0 6px; min-width: 220px; }
.msg-media .tile { aspect-ratio: 1; border-radius: 12px; }
.ai-row { padding: 0 0 8px; }
.composer { background: var(--raised); border: 1px solid var(--line); border-radius: 24px; padding: 12px; display: grid; gap: 10px; }
.composer textarea { resize: none; height: 44px; background: transparent; border: 0; padding: 2px 4px; font-size: 15px; }
.composer-row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.comp-btn { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--text-2); }
.comp-btn:hover { background: var(--chip); color: #fff; }
.comp-btn.circle { border: 1.5px solid #555; }
.comp-btn svg { width: 18px; height: 18px; }
.send-btn { margin-left: auto; width: 34px; height: 34px; border-radius: 50%; background: #3a3a3a; color: #777; display: grid; place-items: center; }
.send-btn.ready { background: #fff; color: #151515; }
.send-btn svg { width: 18px; height: 18px; }
.attached { display: flex; gap: 8px; flex-wrap: wrap; }
.attached:empty { display: none; }
.attached .tile { width: 64px; height: 64px; border-radius: 10px; }
.attached .rm { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; background: rgba(0,0,0,.75); color: #fff; font-size: 13px; line-height: 1; z-index: 2; }
.attached .pv { position: absolute; bottom: 3px; left: 3px; font-size: 9px; font-weight: 800; padding: 1px 4px; border-radius: 4px; background: rgba(0,0,0,.7); color: #fff; z-index: 2; }
.attached .pv.on { background: var(--accent); color: var(--accent-ink); }
.price-wrap { display: flex; align-items: center; background: var(--chip); border-radius: 9999px; padding: 0 4px 0 12px; height: 32px; }
.price-wrap span { color: var(--muted); font-weight: 700; font-size: 13px; }
.price-wrap input { border: 0; background: transparent; width: 64px; padding: 4px 6px; font-size: 13px; }
.notice-bar { text-align: center; padding: 18px; border-top: 1px solid var(--line); font-weight: 600; color: var(--text-2); }

/* Tools panel (right) */
.side { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.side-head { padding: 16px 16px 0; }
.side-head h2 { margin: 0 0 12px; font-size: 20px; font-weight: 700; }
.side-body { overflow: auto; padding: 16px; display: grid; gap: 12px; align-content: start; flex: 1; }
.tcard { border: 1px solid var(--line); border-radius: 8px; padding: 16px; display: grid; gap: 12px; }
.tcard h3 { margin: 0; font-size: 18px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.tcard h3 a, .tcard h3 button { font-size: 14px; font-weight: 600; text-decoration: underline; }
.boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.box { border: 1px solid var(--line-soft); border-radius: 16px; padding: 12px 14px; display: grid; gap: 2px; }
.box .l { font-size: 12px; font-weight: 500; }
.box .v { font-size: 20px; font-weight: 700; line-height: 24px; }
.box .s { font-size: 12px; font-weight: 500; color: var(--text-2); }
.fan-type { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 9999px; background: var(--chip); }
.side textarea { width: 100%; min-height: 100px; resize: vertical; }
.toggle { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; cursor: pointer; user-select: none; }
.toggle .sw { width: 32px; height: 18px; border-radius: 9px; background: #444; position: relative; transition: .15s; }
.toggle .sw::after { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: .15s; }
.toggle.on .sw { background: var(--accent); }
.toggle.on .sw::after { left: 16px; }
.folder-row { display: flex; align-items: center; gap: 10px; padding: 8px 4px; font-weight: 600; font-size: 14px; border-radius: 8px; cursor: pointer; }
.folder-row:hover { background: rgba(255,255,255,.04); }
.folder-row .chev { margin-left: auto; transition: transform .15s; color: var(--muted); }
.folder-row.open .chev { transform: rotate(90deg); }
.folder-items { display: grid; gap: 8px; padding: 0 0 8px 8px; }

/* Media tiles */
.tile { position: relative; background: #1f1f1f; overflow: hidden; cursor: pointer; display: block; }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile .ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 24px; color: #555; }
.tile .dur { position: absolute; top: 8px; left: 8px; background: rgba(0,0,0,.6); color: #fff; font-size: 11px; padding: 2px 6px; border-radius: 6px; font-weight: 600; }
.tile .play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 26px; text-shadow: 0 2px 10px rgba(0,0,0,.6); pointer-events: none; }
.tile .bought { position: absolute; top: 8px; left: 8px; background: var(--accent); color: var(--accent-ink); font-size: 10px; padding: 2px 6px; border-radius: 6px; font-weight: 800; }
.tile .check { position: absolute; bottom: 10px; right: 10px; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #fff; background: rgba(0,0,0,.25); display: grid; place-items: center; font-size: 11px; font-weight: 900; }
.tile.sel { outline: 2px solid var(--accent); outline-offset: -2px; }
.tile.sel .check { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.tile .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 36px 10px 10px; background: linear-gradient(transparent, rgba(0,0,0,.75)); font-size: 12px; font-weight: 700; line-height: 16px; }
.tile .cap small { display: block; font-weight: 500; color: var(--text-2); font-size: 11px; }

/* Scripts (templates) */
.script { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 8px; background: var(--panel); }
.script-head { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.script-name { font-weight: 600; font-size: 14px; }
.price-tag { background: rgba(73,242,100,.12); color: var(--accent); padding: 1px 8px; border-radius: 8px; font-weight: 700; font-size: 12px; white-space: nowrap; }
.free-tag { background: var(--chip); color: var(--muted); padding: 1px 8px; border-radius: 8px; font-weight: 700; font-size: 11px; }
.script-text { color: var(--text-2); font-size: 13px; white-space: pre-wrap; }
.script-media { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.script-media .tile { aspect-ratio: 1; border-radius: 8px; }
.script-media .more { display: grid; place-items: center; background: var(--raised); border-radius: 8px; font-weight: 700; color: var(--muted); aspect-ratio: 1; font-size: 13px; }
.scripts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }

/* Vault page */
.vault-bar { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 10px 12px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.vault-bar select { background: transparent; font-weight: 600; font-size: 13px; padding: 6px 8px; cursor: pointer; }
.vault-bar .searchbox input { height: 32px; font-size: 13px; width: 200px; }
.vault-count { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.media-grid .tile { aspect-ratio: 3/4; border-radius: 12px; }
.media-grid.small { grid-template-columns: repeat(3, 1fr); gap: 6px; }
.media-grid.small .tile { aspect-ratio: 1; border-radius: 10px; }
.media-grid.small .tile .cap { display: none; }

/* Notifications */
.notif-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 600; margin: 18px 0 8px; }
.notif { display: flex; gap: 12px; align-items: center; padding: 10px 0; cursor: pointer; }
.notif .avatar { width: 40px; height: 40px; font-size: 14px; }
.notif .body { flex: 1; min-width: 0; font-size: 13px; line-height: 18px; }
.notif .body b { font-size: 13px; }
.notif .body .sub { color: var(--text-2); }
.notif .ico { width: 32px; height: 32px; border-radius: 50%; border: 1px solid #3a3a3a; display: grid; place-items: center; color: var(--text-2); flex-shrink: 0; margin-left: 8px; }
.notif .ico:hover { background: var(--chip); color: #fff; }
.notif { padding: 12px 0; }
.notif .avatar { background: #3f3f3f; }
.notif .amt { font-size: 14px; }
.notif.unread .body b::after { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-left: 6px; vertical-align: middle; }

/* Home dashboard */
.welcome { display: flex; align-items: center; gap: 12px; margin: 24px 0 18px; font-size: 22px; font-weight: 700; }
.welcome .avatar { width: 40px; height: 40px; }
.biz { background: #1f1f1f; border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: grid; gap: 12px; }
.biz h3 { margin: 0; font-size: 18px; font-weight: 700; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat { border: 1px solid #3a3a3a; border-radius: 16px; padding: 18px 14px 14px; background: #262626; }
.stat .l { font-size: 14px; font-weight: 600; }
.stat .v { font-size: 36px; font-weight: 700; line-height: 44px; }
.stat .s { font-size: 12px; font-weight: 500; }
.stat .v.sm { font-size: 26px; line-height: 36px; }
.up { color: var(--accent); font-weight: 600; }
.down { color: var(--danger); font-weight: 600; }
.quick { display: flex; gap: 8px; flex-wrap: wrap; }

/* Home: milestone banner + feed */
.milestone { border-radius: 16px; padding: 16px; background: linear-gradient(100deg, #4a0b52 0%, #5d0c63 60%, #7a2a86 100%); position: relative; overflow: hidden; margin-bottom: 24px; }
.milestone h3 { margin: 0; font-size: 18px; font-weight: 700; }
.milestone p { margin: 2px 0 12px; font-size: 13px; font-weight: 500; }
.milestone .track { height: 14px; width: 140px; border-radius: 9999px; background: rgba(255,255,255,.12); overflow: hidden; }
.milestone .fill { height: 100%; border-radius: 9999px; background: #e57ff0; }
.milestone::after { content: ''; position: absolute; right: -20px; top: -20px; width: 120px; height: 120px; border-radius: 30px; background: radial-gradient(circle at 40% 40%, rgba(255,255,255,.55), rgba(190,160,255,.15) 60%, transparent 70%); transform: rotate(20deg); }
.post { padding: 20px 0; border-bottom: 1px solid var(--line); display: grid; gap: 10px; }
.post-head { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.post-head .avatar { width: 32px; height: 32px; font-size: 11px; }
.post-head .time { color: var(--muted); font-size: 13px; }
.aud { margin-left: auto; background: #6c35d8; color: #fff; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 9999px; }
.aud.all { background: var(--chip); }
.post-text { font-size: 15px; white-space: pre-wrap; padding-left: 42px; }
.post-media { display: flex; gap: 12px; overflow-x: auto; padding-left: 42px; scroll-snap-type: x mandatory; }
.post-media .tile { flex: 0 0 auto; width: 360px; max-width: 80%; aspect-ratio: 3/2; border-radius: 20px; scroll-snap-align: start; }
.post-actions { display: flex; gap: 18px; align-items: center; padding-left: 42px; font-size: 14px; color: var(--text-2); }
.post-actions .liked { color: #ff4d6a; }

/* Create post (Fanvue layout) */
.np { max-width: 608px; margin: 0 auto; display: grid; gap: 16px; padding-top: 12px; }
.np-label { font-size: 13px; font-weight: 700; margin-bottom: -8px; }
.np-select { display: flex; justify-content: space-between; align-items: center; width: 100%; height: 48px; padding: 0 16px; border-radius: 9999px; background: #262626; border: 1px solid #333; font-size: 16px; font-weight: 600; }
.np-select:hover { border-color: #444; }
.np-big { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.np-bigbtn { height: 80px; border-radius: 24px; background: #262626; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 15px; font-weight: 700; }
.np-bigbtn:hover { background: #2e2e2e; }
.np-media:not(:empty) { margin: -4px 0; }
.np-media .tile { width: 88px; height: 88px; border-radius: 14px; }
.np-caption { background: #262626; border: 1px solid #333; border-radius: 24px; padding: 14px 16px 12px; display: grid; gap: 8px; }
.np-caption textarea { background: transparent; border: 0; padding: 4px 0; min-height: 90px; resize: vertical; font-size: 15px; }
.np-extra { display: flex; gap: 8px; flex-wrap: wrap; }
.np-extra:empty { display: none; }
.np-pill { display: inline-flex; align-items: center; gap: 6px; background: var(--chip); border-radius: 9999px; padding: 3px 4px 3px 10px; font-size: 12px; font-weight: 700; }
.np-pill button { width: 18px; height: 18px; border-radius: 50%; background: rgba(0,0,0,.4); font-size: 12px; line-height: 1; }
.np-tools { display: flex; align-items: center; gap: 4px; }
.np-tool { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--text-2); }
.np-tool:hover { background: var(--chip); color: #fff; }
.np-tool svg { width: 20px; height: 20px; }
.np-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.np-btn { height: 40px; border-radius: 9999px; background: #262626; font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 14px; }
.np-btn:hover { background: #2e2e2e; }
.np-btn.on { background: rgba(73,242,100,.12); color: var(--accent); }
.np-create { height: 40px; border-radius: 9999px; background: #262626; color: #6b6b6b; font-size: 16px; font-weight: 600; }
.np-create.ready { background: #fff; color: #151515; }
.np-create:disabled { cursor: default; }
.popover.emoji-pop { display: grid; grid-template-columns: repeat(5, 40px); min-width: 0; }
.popover.emoji-pop button { justify-content: center; font-size: 20px; padding: 6px; }

/* Fan Lists */
.fl-list { border-top: 1px solid var(--line); }
.fl-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; border-bottom: 1px solid var(--line); cursor: pointer; }
.fl-row:hover { background: rgba(255,255,255,.03); }
.fl-row b { display: block; font-size: 18px; font-weight: 700; }
.fl-row span { font-size: 15px; color: var(--text-2); }
.fl-mail { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.fl-mail:hover { background: var(--chip); }
.fl-mail.dim { color: #6b6b6b; }
.list-art { font-size: 56px; filter: hue-rotate(60deg) saturate(1.4); margin-bottom: 6px; }
.fl-search { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; background: #1c1c1c; padding: 0 12px 0 4px; margin-bottom: 10px; }
.fl-search input { flex: 1; background: transparent; border: 0; height: 38px; }
.fl-table { border: 1px solid var(--line); border-radius: 12px; overflow: auto; }
.fl-table table { min-width: 760px; }
.fl-table th { font-weight: 500; color: var(--text); font-size: 13px; background: #181818; padding: 10px 16px; }
.fl-table td { padding: 10px 16px; border-bottom: 1px solid var(--line); font-size: 14px; }
.fl-table .avatar { width: 40px; height: 40px; font-size: 14px; }
.fl-table .icon-btn { width: 28px; height: 28px; }
.fl-table [data-exp].open svg { transform: rotate(-90deg) !important; }
.fl-exp td { background: #181818; }
.type-pill { font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 8px; background: #2e2e2e; color: #e5e5e5; }
.type-pill.subscriber { background: rgba(73,242,100,.15); color: var(--accent); }
.fl-pager { display: flex; align-items: center; gap: 6px; padding: 8px 14px; font-size: 13px; }
.fl-pager .icon-btn:disabled { opacity: .35; }

/* New mass message (full page) */
.mc { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 24px; padding: 16px 20px 24px 32px; min-height: 100%; }
.mc-head { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; }
.mc-head h1 { margin: 0; font-size: 20px; }
.mc-label { font-size: 14px; font-weight: 700; }
.mc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.mc-card { display: flex; justify-content: space-between; align-items: center; gap: 8px; text-align: left; background: #262626; border: 1px solid #333; border-radius: 12px; padding: 10px 12px; min-height: 60px; }
.mc-card b { display: block; font-size: 14px; }
.mc-card small { font-size: 12px; font-weight: 600; color: var(--text-2); }
.mc-card.on { border-color: #fff; }
.mc-card.empty { opacity: .45; cursor: default; }
.mc-check { width: 20px; height: 20px; border: 1.5px solid #ddd; border-radius: 4px; display: grid; place-items: center; font-size: 12px; font-weight: 900; flex-shrink: 0; }
.mc-card.on .mc-check { background: #fff; color: #151515; }
.mc-select { display: flex; justify-content: space-between; align-items: center; width: 100%; height: 48px; padding: 0 16px; border-radius: 12px; background: #262626; font-size: 14px; font-weight: 500; text-align: left; }
.mc-preview { background: #1c1c1c; border: 1px solid var(--line); border-radius: 16px; padding: 18px; align-self: start; position: sticky; top: 12px; display: grid; gap: 14px; }
.mc-preview h2 { margin: 0; font-size: 20px; }
.mc-who { display: flex; align-items: center; gap: 10px; }
.mc-who .avatar { width: 48px; height: 48px; }
.mc-bubble { background: #2a2a2a; border-radius: 16px; padding: 14px 16px; font-size: 14px; display: grid; gap: 4px; }
.mc-bubble.filled { background: var(--bubble-me); border: 1px solid var(--bubble-me-line); }
.seg button { cursor: pointer; }
@media (max-width: 1200px) { .mc { grid-template-columns: 1fr; } .mc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Notifications amounts */
.notif .amt { text-align: right; font-size: 13px; font-weight: 700; line-height: 16px; }
.notif .amt small { display: block; font-weight: 500; color: var(--text-2); font-size: 11px; }
.chips.outline .chip { background: transparent; border: 1px solid var(--line); height: 36px; padding: 6px 14px; font-size: 14px; }
.chips.outline .chip.on { background: #fff; border-color: #fff; }

/* Insights */
.ins-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 9999px; padding: 2px; }
.seg button { padding: 3px 12px; border-radius: 9999px; font-size: 12px; font-weight: 700; color: var(--text-2); }
.seg button.on { background: rgba(73,242,100,.15); color: var(--accent); border: 1px solid var(--accent); }
.ins-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.ins-top { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.icard { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.icard .t { font-size: 14px; font-weight: 500; color: var(--text-2); display: flex; align-items: center; gap: 8px; }
.icard .big { font-size: 26px; font-weight: 700; margin: 10px 0 4px; display: flex; align-items: baseline; gap: 10px; }
.icard .big small { font-size: 14px; color: var(--accent); font-weight: 600; }
.icard .sub { font-size: 12px; color: var(--text-2); font-weight: 500; }
.src-list { margin-top: 10px; }
.src-row { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; padding: 10px 0; border-top: 1px solid #262626; font-size: 14px; font-weight: 600; }
.src-pill { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 9999px; padding: 3px 12px; font-size: 12px; font-weight: 700; width: max-content; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.person-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 14px; }
.person-row .avatar { width: 32px; height: 32px; font-size: 11px; }
.person-row .grow { flex: 1; min-width: 0; }
.person-row .grow b { display: block; font-size: 14px; }
.person-row .grow small { color: var(--text-2); font-size: 12px; }
.person-row .amt { text-align: right; font-weight: 700; font-size: 14px; }
.person-row .amt small { display: block; font-weight: 500; color: var(--text-2); font-size: 11px; }
.live { color: var(--accent); font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.type-row { display: grid; gap: 6px; padding: 8px 0; }
.type-row .top { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; }
.type-row .bar { height: 4px; border-radius: 4px; }
.chart { position: relative; }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart .axis text { fill: #8a8a8a; font-size: 11px; }
.chart .grid line { stroke: #2d2d2d; stroke-dasharray: 2 4; }
/* line chart hover: crosshair, dot and tooltip glide to the hovered day */
.lc { position: relative; }
.lc .grid line { stroke: #262626; stroke-dasharray: none; }
.lc-x { position: absolute; left: 0; width: 1px; background: #4a4a4a; pointer-events: none; transition: transform .12s ease-out; }
.lc-dot { position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid #151515; pointer-events: none; transition: transform .12s ease-out; }
.lc-tip { position: absolute; left: 0; top: 0; pointer-events: none; background: #1f1f1f; border: 1px solid #3a3a3a; border-radius: 12px; padding: 10px 14px; box-shadow: 0 10px 30px rgba(0,0,0,.45); white-space: nowrap; transition: transform .12s ease-out; }
.lc-tip b { display: block; font-size: 13px; margin-bottom: 6px; }
.lc-tip div { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; }
.lc-tip strong { margin-left: 4px; }
.lc .hidden { display: block !important; opacity: 0; transition: opacity .15s; }
.lc-x:not(.hidden), .lc-dot:not(.hidden), .lc-tip:not(.hidden) { opacity: 1; transition: transform .12s ease-out, opacity .15s; }
.chart-tip { position: absolute; pointer-events: none; background: #fff; color: #151515; font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 8px; white-space: nowrap; transform: translate(-50%, -110%); box-shadow: 0 6px 20px rgba(0,0,0,.4); }
.chart-tip small { display: block; color: #555; font-weight: 500; }
.ins-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.src-pill.on { background: #fff; color: #151515; border-color: #fff; }
.delta { display: inline-flex; align-items: center; gap: 4px; background: rgba(73,242,100,.15); color: var(--accent); font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 9999px; }
.see-more { display: flex; justify-content: space-between; align-items: center; width: 100%; border-top: 1px solid #2a2a2a; margin-top: 10px; padding: 14px 4px 2px; font-size: 15px; font-weight: 500; }
.see-more .chev-d { display: inline-flex; transform: rotate(90deg); color: var(--text-2); transition: transform .15s; }
.see-more.open .chev-d { transform: rotate(-90deg); }
.icard .q { width: 13px; height: 13px; font-size: 9px; background: transparent; border: 1px solid #888; color: #aaa; margin-left: 4px; }

/* Earnings & Payouts */
.earn-wrap { display: grid; grid-template-columns: minmax(0, 700px) 370px; gap: 48px; justify-content: center; padding-top: 24px; }
.earn-wrap .lbl { font-size: 14px; font-weight: 500; }
.earn-big { font-size: 48px; font-weight: 800; line-height: 56px; margin: 4px 0 12px; }
.bal { background: #262626; border-radius: 16px; }
.bal-row { display: flex; justify-content: space-between; align-items: center; padding: 16px; font-size: 14px; font-weight: 500; }
.bal-row + .bal-row { border-top: 1px solid #3a3a3a; }
.bal-row b { font-size: 14px; }
.q { display: inline-grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; background: #bbb; color: #151515; font-size: 10px; font-weight: 800; margin-left: 8px; }
.btn.block { width: 100%; padding: 10px; font-size: 16px; }
.tx { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.tx .avatar { width: 40px; height: 40px; font-size: 13px; }
.tx .in { position: absolute; right: -4px; bottom: -4px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 11px; display: grid; place-items: center; font-weight: 900; border: 2px solid var(--bg); }
.tx .grow { flex: 1; min-width: 0; font-size: 14px; }
.tx .grow small { display: block; color: var(--text-2); font-size: 12px; }
.tx .amt { font-weight: 700; font-size: 14px; }
.manage-card { background: #262626; border-radius: 16px; padding: 16px; display: grid; gap: 12px; }
.manage-card .row { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.pill-tag { margin-left: auto; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 9999px; background: #3a3a3a; color: var(--text-2); }

/* Chat list: Filters / sort buttons + dropdown */
.meta-btn { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; padding: 4px 2px; }
.popover { position: fixed; z-index: 70; background: #1f1f1f; border: 1px solid var(--line); border-radius: 12px; padding: 6px; min-width: 190px; max-height: 340px; overflow: auto; box-shadow: 0 12px 30px rgba(0,0,0,.5); display: grid; }
.popover button { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; font-size: 14px; font-weight: 500; text-align: left; }
.popover button span:first-child { flex: 1; }
.popover button:hover { background: var(--chip); }
.popover button.on { font-weight: 700; }
.popover .tick { color: var(--accent); }

/* "Apply filters" dialog */
.modal-card.filters { width: min(440px, 100%); background: #1c1c1c; border-radius: 28px; padding: 24px; gap: 0; }
.fhead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.fhead h2 { font-size: 22px; font-weight: 700; }
.fclose { background: #333; width: 32px; height: 32px; font-size: 13px; }
.fsec { display: grid; gap: 10px; padding-bottom: 18px; }
.fsec + .fsec { border-top: 1px solid #333; padding-top: 18px; }
.ftitle { font-size: 16px; font-weight: 500; margin-bottom: 2px; }
.fcheck { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; cursor: pointer; }
.fcheck input { appearance: none; width: 16px; height: 16px; border: 1.5px solid #ddd; border-radius: 4px; margin: 0; padding: 0; background: transparent; display: grid; place-items: center; cursor: pointer; }
.fcheck input:checked { background: var(--accent); border-color: var(--accent); }
.fcheck input:checked::after { content: '✓'; color: var(--accent-ink); font-size: 11px; font-weight: 900; }
.frow { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.flabel { font-size: 16px; font-weight: 500; }
.fhint { font-size: 14px; color: var(--muted); }
.frow .toggle .sw { width: 42px; height: 24px; border-radius: 12px; }
.frow .toggle .sw::after { width: 18px; height: 18px; top: 3px; left: 3px; background: #1c1c1c; }
.frow .toggle { cursor: pointer; }
.frow .toggle .sw { background: #6b6b6b; }
.frow .toggle.on .sw { background: var(--accent); }
.frow .toggle.on .sw::after { left: 21px; }
.fminmax { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fminmax label { display: grid; gap: 6px; }
.fsmall { font-size: 13px; font-weight: 700; }
.fsmall2 { font-size: 14px; color: var(--text-2); margin-top: 4px; }
.fmoney { display: flex; align-items: center; background: #262626; border: 1px solid #333; border-radius: 12px; height: 48px; padding: 0 14px; }
.fmoney span { color: #8a8a8a; font-size: 16px; }
.fmoney input { background: transparent; border: 0; width: 100%; font-size: 15px; padding: 0 8px; }
.fbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fbtns .btn { height: 40px; font-size: 16px; }
.fbtns #fApply:not(.white) { background: #333; color: #8a8a8a; }

/* infinite scroll loader */
.sentinel { display: grid; place-items: center; padding: 18px 0; }
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #3a3a3a; border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Tables / misc */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; color: var(--muted); font-weight: 600; padding: 10px; border-bottom: 1px solid var(--line); font-size: 13px; }
td { padding: 11px 10px; border-bottom: 1px solid #262626; vertical-align: middle; }
.access-list { display: flex; gap: 6px; flex-wrap: wrap; }
.access-list label { display: flex; gap: 6px; align-items: center; font-size: 12px; font-weight: 600; background: var(--chip); padding: 4px 10px; border-radius: 9999px; }
input[type=checkbox] { accent-color: var(--accent); }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 170px; }
.bars div { flex: 1; background: var(--accent); border-radius: 6px 6px 0 0; min-height: 2px; opacity: .85; }
.status-pill { font-size: 10px; font-weight: 800; padding: 2px 8px; border-radius: 9999px; background: var(--chip); text-transform: uppercase; }
.status-pill.SENT { background: rgba(73,242,100,.15); color: var(--accent); }
.status-pill.SCHEDULED { background: rgba(245,200,76,.15); color: var(--gold); }
.status-pill.FAILED, .status-pill.MODERATED { background: rgba(255,90,95,.15); color: var(--danger); }
.form-grid { display: grid; gap: 12px; }
.form-grid label.lbl { font-size: 13px; color: var(--muted); font-weight: 600; }
.link-url { font-family: Consolas, monospace; font-size: 12px; color: var(--text-2); background: var(--raised); padding: 4px 8px; border-radius: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 280px; display: inline-block; vertical-align: middle; }
.ml-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: grid; }
.ml-card .tile { aspect-ratio: 16/10; }
.ml-card .info { padding: 12px; display: grid; gap: 8px; }
.ml-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.notice { background: rgba(245,200,76,.08); border: 1px solid rgba(245,200,76,.3); color: #f3dfa6; border-radius: 14px; padding: 14px 16px; font-size: 14px; }

/* Modal / toast */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.55); backdrop-filter: blur(8px); display: grid; place-items: center; z-index: 50; padding: 16px; }
.modal-card { background: var(--side); border: 1px solid var(--line); border-radius: 16px; padding: 20px; width: min(540px, 100%); max-height: 90vh; overflow: auto; display: grid; gap: 14px; }
.modal-card.wide { width: min(1000px, 100%); }
.modal-card.media-view { width: auto; max-width: 92vw; padding: 8px; background: #000; }
.modal-card.media-view img, .modal-card.media-view video { max-width: 88vw; max-height: 84vh; border-radius: 12px; display: block; }
.modal-card h2 { margin: 0; font-size: 18px; }
.keybox { font-family: Consolas, monospace; font-size: 18px; background: var(--bg); padding: 14px; border-radius: 12px; text-align: center; letter-spacing: 1px; user-select: all; border: 1px solid var(--line); }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: #fff; color: #151515; font-weight: 600; font-size: 14px; padding: 10px 18px; border-radius: 9999px; z-index: 60; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.toast.err { background: var(--danger); color: #fff; }

/* Responsive */
@media (max-width: 1300px) { .chat { grid-template-columns: 300px minmax(0, 1fr) 290px; } .ins-grid { grid-template-columns: 1fr; } .earn-wrap { grid-template-columns: 1fr; gap: 24px; } }
@media (max-width: 760px) { .ins-top, .ins-two { grid-template-columns: 1fr; } }
@media (max-width: 1100px) {
  .app { grid-template-columns: 64px 1fr; }
  .sidebar { display: none; }
  .sidebar.open { display: flex; position: fixed; left: 64px; top: 0; bottom: 0; width: 230px; z-index: 45; }
  .mobile-menu { display: inline-grid !important; }
}
@media (max-width: 980px) {
  .chat { grid-template-columns: 300px minmax(0, 1fr); }
  .chat .side { display: none; }
  .chat.show-side .side { display: flex; position: fixed; right: 8px; top: 8px; bottom: 8px; width: min(340px, calc(100% - 16px)); z-index: 40; }
}
@media (max-width: 720px) {
  .app { grid-template-columns: 56px 1fr; }
  .chat { grid-template-columns: 1fr; padding: 0 8px 8px; }
  .chat.has-conv .chat-list { display: none; }
  .chat:not(.has-conv) .conv { display: none; }
  .topbar, .content { padding-left: 16px; padding-right: 16px; }
  .msg { max-width: 85%; }
}
.mobile-menu { display: none !important; }
