:root {
  --charcoal: #2b2b2b;
  --charcoal-2: #1f1f1f;
  --orange: #ff7a00;
  --muted: #9b9b9b;
  --bg: #111111;
  --card-bg: #161616;
  --line: rgba(255, 255, 255, 0.07);
  --danger: #ff5252;
  --ok: #49d17a;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background-color: var(--bg);
  color: #eaeaea;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(17, 17, 17, 0.92);
  backdrop-filter: blur(6px);
  z-index: 20;
}
.brand { display: flex; align-items: center; gap: 12px; }
/* The brand "DA" circle doubles as the clickable profile photo. */
.logo-circle {
  position: relative; overflow: hidden;
  width: 44px; height: 44px; border-radius: 11px;
  background-color: var(--charcoal); color: var(--orange);
  background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 17px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  border: none; padding: 0; cursor: pointer;
}
.logo-circle .logo-cam {
  position: absolute; inset: 0; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.6); color: #fff;
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
  opacity: 0; transition: opacity .15s;
}
.logo-circle:hover .logo-cam,
.logo-circle:focus-visible .logo-cam { opacity: 1; }
.logo-circle.uploading { opacity: 0.6; pointer-events: none; }
.brand-text b { font-size: 16px; color: #fff; display: block; line-height: 1.1; }
.brand-text small { color: var(--muted); font-size: 12px; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-actions .who { color: var(--muted); font-size: 13px; }

/* Hamburger — hidden on desktop, shown on small screens */
.hamburger {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; padding: 0;
  background: var(--charcoal); border: 1px solid var(--line); border-radius: 11px;
  cursor: pointer;
}
.hamburger span {
  display: block; width: 20px; height: 2px; margin: 0 auto;
  background: #eee; border-radius: 2px; transition: transform .2s, opacity .2s;
}
.site-header.menu-open .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.menu-open .hamburger span:nth-child(2) { opacity: 0; }
.site-header.menu-open .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  background: var(--orange); color: var(--charcoal-2);
  border: 1px solid var(--orange);
  padding: 11px 16px; border-radius: 9px; cursor: pointer;
  font-weight: 700; font-size: 14px;
  transition: filter 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { filter: brightness(1.07); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn.block { width: 100%; }
.btn.ghost {
  background: var(--charcoal); color: var(--orange); border-color: transparent;
}
.btn.ghost:hover { background: #333; filter: none; }
.btn.subtle {
  background: transparent; color: var(--muted); border-color: var(--line);
}
.btn.subtle:hover { background: rgba(255,255,255,0.04); color: #ddd; filter: none; }
.btn.small { padding: 7px 11px; font-size: 13px; }
.btn.danger { background: transparent; color: var(--danger); border-color: rgba(255,82,82,0.4); }
.btn.danger:hover { background: rgba(255,82,82,0.1); filter: none; }

/* ---------- Auth pages ---------- */
/* Use the landing-page hero image as a full-screen backdrop, dimmed so the
   card stays readable and nothing overlaps. */
body.auth-bg { position: relative; background: transparent; }
/* Fixed pseudo-element instead of `background-attachment: fixed`, which iOS
   Safari renders incorrectly (zoomed / not covering the viewport). */
body.auth-bg::before {
  content: "";
  position: fixed; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(17, 17, 17, 0.55), rgba(17, 17, 17, 0.72)),
    url("../../assets/img/dabzaudiobck.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
body.auth-bg .site-header {
  background: transparent;
  border-bottom: none;
}
.auth-wrap {
  min-height: calc(100vh - 78px);
  display: flex; align-items: center; justify-content: center;
  padding: 28px 18px;
}
.auth-card {
  width: 100%; max-width: 420px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px 26px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
}
.auth-card h1 { margin: 0 0 6px; font-size: 23px; color: #fff; }
.auth-card .sub { margin: 0 0 22px; color: var(--muted); font-size: 14px; }

.field { margin-bottom: 15px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%;
  background: #0f0f0f;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: #eee;
  padding: 11px 12px;
  font-size: 14px;
  font-family: inherit;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--orange);
  box-shadow: 0 0 0 2px rgba(255, 122, 0, 0.18);
}
.field .hint { font-size: 12px; color: #6f6f6f; margin-top: 5px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.auth-foot { margin-top: 18px; font-size: 13px; color: var(--muted); text-align: center; }
.msg { margin-top: 14px; font-size: 13px; min-height: 17px; }
.msg.err { color: var(--danger); }
.msg.ok { color: var(--ok); }
.invite-note { margin: 0 0 16px; }

/* ---------- App (dashboard + editor) ---------- */
.app-shell { display: flex; min-height: calc(100vh - 78px); }
.sidebar {
  width: 250px; flex-shrink: 0;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
  background: #0e0e0e;
}
.sidebar-head {
  padding: 16px; display: flex; flex-direction: column; gap: 10px; align-items: stretch;
  border-bottom: 1px solid var(--line);
}
.lyric-search {
  width: 100%; background: #0f0f0f; border: 1px solid var(--line);
  border-radius: 9px; color: #eee; padding: 9px 11px; font-size: 13px;
}
.lyric-search:focus { outline: none; border-color: var(--orange); }
.lyric-list { list-style: none; margin: 0; padding: 8px; overflow-y: auto; flex: 1; min-height: 0; }
.lyric-item {
  padding: 12px 12px; border-radius: 10px; cursor: pointer;
  border: 1px solid transparent; margin-bottom: 4px;
}
.lyric-item:hover { background: rgba(255, 255, 255, 0.03); }
.lyric-item.active { background: rgba(255, 122, 0, 0.12); border-color: rgba(255,122,0,0.35); }
.lyric-item .t { font-size: 14px; color: #fff; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lyric-item .d { font-size: 12px; color: var(--muted); margin-top: 3px; }
.empty-note { color: var(--muted); font-size: 13px; padding: 18px; text-align: center; }

.editor { flex: 1; display: flex; min-width: 0; }
.editor-main { flex: 1; display: flex; flex-direction: column; padding: 20px 24px; min-width: 0; }
.editor-bar { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; width: 100%; }
/* Editor actions stay out of the way until you engage the writing panel
   (hover on desktop, focus/tap on touch), keeping the writing area clean. */
.editor-actions {
  display: flex; gap: 8px; align-items: center; flex-shrink: 0;
  opacity: 0; transform: translateY(-2px); pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
}
.editor-main:hover .editor-actions,
.editor-main:focus-within .editor-actions { opacity: 1; transform: none; pointer-events: auto; }
.title-input {
  flex: 1; min-width: 0; background: transparent; border: none; border-bottom: 1px solid transparent;
  color: #fff; font-size: 20px; font-weight: 700; padding: 6px 2px;
}
.title-input:focus { outline: none; border-bottom: 1px solid var(--orange); }
.save-state { font-size: 12px; color: var(--muted); margin-left: auto; white-space: nowrap; flex-shrink: 0; }
.editor-bar .btn.danger { flex-shrink: 0; }
.body-input {
  flex: 1; width: 100%; resize: none; min-height: 360px;
  background: #0f0f0f; border: 1px solid var(--line); border-radius: 12px;
  color: #eee; padding: 20px 22px; font-size: 16px; line-height: 1.85;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.body-input:focus { outline: none; border-color: rgba(255,122,0,0.4); }

/* ---------- Suggestions panel ---------- */
.suggest {
  width: 270px; flex-shrink: 0; border-left: 1px solid var(--line);
  padding: 16px; display: flex; flex-direction: column; gap: 12px;
  background: #0e0e0e; overflow-y: auto;
}
.suggest h3 { margin: 0; font-size: 14px; color: #fff; }
.suggest .sub { font-size: 12px; color: var(--muted); margin: -6px 0 4px; }
.suggest-input { display: flex; gap: 8px; }
.suggest-input input {
  flex: 1; background: #0f0f0f; border: 1px solid var(--line);
  border-radius: 9px; color: #eee; padding: 9px 10px; font-size: 13px;
}
.suggest-input input:focus { outline: none; border-color: var(--orange); }
.chip-group { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  background: var(--charcoal); color: #eee; border: 1px solid var(--line);
  padding: 5px 10px; border-radius: 999px; font-size: 13px; cursor: pointer;
}
.chip:hover { border-color: var(--orange); color: #fff; }
.chip .syl { color: var(--orange); font-size: 11px; margin-left: 5px; }
.suggest-section .label { font-size: 12px; color: var(--muted); margin-bottom: 7px; text-transform: uppercase; letter-spacing: 0.5px; }
.rhythm-box { background: #0f0f0f; border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.rhythm-line { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); padding: 3px 0; gap: 10px; }
.rhythm-line span:first-child { color: #ccc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rhythm-line b { color: var(--orange); }

.back-link { font-size: 13px; color: var(--muted); }

/* "Back to lyrics" is only used in the mobile master/detail flow. */
.editor-back { display: none; flex-shrink: 0; }

@media (max-width: 860px) {
  .app-shell { flex-direction: column; }
  /* Mobile is a two-step flow: the saved-lyrics list fills the screen, and the
     writing area only appears once a lyric is tapped (.app-shell.editing). */
  .sidebar {
    width: 100%; border-right: none; border-bottom: none;
    max-height: none; flex: 1;
  }
  .editor { display: none; flex-direction: column; }
  .app-shell.editing .sidebar { display: none; }
  .app-shell.editing .editor { display: flex; flex: 1; }
  .editor-back { display: inline-flex; }
  /* On touch there is no hover, so keep the editor actions visible. */
  .editor-actions { opacity: 1; transform: none; pointer-events: auto; }
  .suggest { width: 100%; border-left: none; border-top: 1px solid var(--line); }
  .row-2 { grid-template-columns: 1fr; }
}

/* Collapse the header actions behind a hamburger on phones/tablets */
@media (max-width: 860px) {
  .site-header { padding: 12px 16px; }
  .hamburger { display: flex; }
  .header-actions {
    position: absolute; top: calc(100% + 6px); right: 12px;
    flex-direction: column; align-items: stretch; gap: 8px;
    min-width: 200px; padding: 12px;
    background: #141414; border: 1px solid var(--line); border-radius: 12px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55);
    display: none; z-index: 40;
  }
  .site-header.menu-open .header-actions { display: flex; }
  .header-actions .btn,
  .header-actions .bell-btn { width: 100%; justify-content: center; }
  .header-actions .who { order: -1; padding-bottom: 4px; border-bottom: 1px solid var(--line); }
}

/* ---------- Collaboration ---------- */
.bell-btn {
  position: relative; background: transparent; border: 1px solid var(--line);
  color: #ddd; border-radius: 10px; padding: 6px 9px; cursor: pointer; font-size: 15px;
}
.bell-btn:hover { background: rgba(255,255,255,0.05); }
.bell-count {
  position: absolute; top: -6px; right: -6px; background: var(--orange);
  color: var(--charcoal-2); font-size: 10px; font-weight: 700; min-width: 16px;
  height: 16px; line-height: 16px; border-radius: 999px; padding: 0 4px; text-align: center;
}

.role-pill {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--muted); border: 1px solid var(--line); border-radius: 999px;
  padding: 3px 9px; white-space: nowrap; flex-shrink: 0;
}
.role-pill.view { color: #ffc46b; border-color: rgba(255,196,107,0.4); }

/* Realtime presence — avatar stack of who's editing now */
.editor-bar .presence { margin-left: auto; display: inline-flex; align-items: center; flex-shrink: 0; }
.editor-bar .save-state { margin-left: 10px; }
.presence-av {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 999px; margin-left: -8px;
  border: 2px solid #131313; box-shadow: 0 0 0 1px rgba(0,0,0,0.4);
  font-size: 10px; font-weight: 700; color: #fff; text-transform: uppercase;
  background-size: cover; background-position: center; overflow: hidden;
}
.presence-av:first-child { margin-left: 0; }

.lyric-item .badge {
  display: inline-block; font-size: 10px; text-transform: uppercase; letter-spacing: 0.4px;
  color: var(--orange); border: 1px solid rgba(255,122,0,0.4); border-radius: 999px;
  padding: 1px 7px; margin-left: 6px; vertical-align: middle;
}
.lyric-item .badge.muted { color: var(--muted); border-color: var(--line); }

/* ---------- Modals ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; z-index: 50; padding: 20px;
  overflow-y: auto;
}
.modal-overlay[hidden] { display: none; }
.modal {
  background: var(--card-bg); border: 1px solid var(--line); border-radius: 14px;
  width: 100%; max-width: 460px; padding: 22px; box-shadow: 0 18px 50px rgba(0,0,0,0.5);
  max-height: calc(100vh - 40px); overflow-y: auto;
}
@media (max-width: 860px) {
  .modal-overlay { align-items: flex-start; }
}
.modal-head { display: flex; align-items: center; justify-content: space-between; }
.modal-head h3 { margin: 0; font-size: 18px; }
.modal-close { background: none; border: none; color: var(--muted); font-size: 26px; line-height: 1; cursor: pointer; }
.modal-close:hover { color: #fff; }
.modal .sub { color: var(--muted); font-size: 13px; margin: 6px 0 14px; }

.share-form { display: flex; gap: 8px; }
.share-form input[type="email"] {
  flex: 1; min-width: 0; background: #0f0f0f; border: 1px solid var(--line);
  color: #eee; border-radius: 9px; padding: 9px 11px; font-size: 14px;
}
.share-form input[type="email"]:focus { outline: none; border-color: var(--orange); }
.share-form select {
  background: #0f0f0f; border: 1px solid var(--line); color: #eee;
  border-radius: 9px; padding: 9px 8px; font-size: 13px;
}

.collab-list-head, .invite-list:empty::after {
  font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px;
}
.collab-list-head { margin: 18px 0 8px; }
.collab-list, .invite-list { list-style: none; margin: 0; padding: 0; max-height: 230px; overflow-y: auto; }
.collab-list:empty::after { content: "No one yet — add a collaborator above."; color: var(--muted); font-size: 13px; }
.invite-list:empty::after { content: "No pending invites."; text-transform: none; }

.collab-row, .invite-row {
  display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line);
}
.collab-av {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; background-size: cover;
  background-position: center; background-color: var(--charcoal); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700;
}
.collab-meta { flex: 1; min-width: 0; }
.collab-meta .n { font-size: 14px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.collab-meta .e { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.collab-tag { font-size: 11px; color: var(--muted); margin-right: 4px; white-space: nowrap; }
.collab-tag.pending { color: #ffc46b; }
.link-btn { background: none; border: none; color: var(--danger); font-size: 13px; cursor: pointer; padding: 4px; }
.link-btn:hover { text-decoration: underline; }
.invite-actions { display: flex; gap: 6px; }

/* ---------- Gift Me (Stripe Connect) ---------- */
.editor-bar #giftBtn { flex-shrink: 0; }

.gift-form { display: flex; flex-direction: column; gap: 12px; }
.gift-label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.gift-form select,
.gift-form input,
.gift-form textarea {
  background: #0f0f0f; border: 1px solid var(--line); color: #eee;
  border-radius: 9px; padding: 10px 12px; font-size: 14px; width: 100%;
}
.gift-form select:focus,
.gift-form input:focus,
.gift-form textarea:focus { outline: none; border-color: var(--orange); }
.gift-form textarea { resize: vertical; min-height: 60px; font-family: inherit; }
.gift-form .btn { margin-top: 2px; }
.gift-presets { display: flex; gap: 8px; flex-wrap: wrap; margin-top: -4px; }
.gift-preset {
  background: var(--charcoal); border: 1px solid var(--line); color: #ddd;
  border-radius: 999px; padding: 6px 14px; font-size: 13px; cursor: pointer;
}
.gift-preset:hover { border-color: var(--orange); color: #fff; }
.gift-breakdown {
  background: #0f0f0f; border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; margin-top: -2px;
}
.gift-breakdown-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 13.5px; color: #eee; }
.gift-breakdown-row b { color: var(--orange); font-weight: 700; }
.gift-breakdown-row.muted { color: var(--muted); font-size: 12px; }
.gift-breakdown-note { color: var(--muted); font-size: 12px; }
.gift-fineprint { color: var(--muted); font-size: 11.5px; margin: 12px 0 0; }

/* Recipient search picker */
.gift-picker { position: relative; }
.gift-results {
  margin-top: 6px; background: #0f0f0f; border: 1px solid var(--line);
  border-radius: 10px; max-height: 220px; overflow-y: auto; padding: 4px;
}
.gift-result-note { font-size: 11.5px; color: var(--muted); padding: 6px 8px; }
.gift-result {
  display: flex; align-items: center; gap: 10px; width: 100%;
  background: none; border: none; color: #eee; text-align: left;
  padding: 8px; border-radius: 8px; cursor: pointer; font-size: 14px;
}
.gift-result:hover { background: rgba(255,122,0,0.12); }
.gift-result.muted .gift-result-name b { color: var(--muted); }
.gift-result-name b { font-weight: 600; }
.gift-result-handle { color: var(--muted); font-size: 12px; }
.gift-result-av {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  background: var(--charcoal) center/cover no-repeat; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; font-size: 12px; color: #fff;
}
.gift-result-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gift-selected { margin-top: 6px; }
.gift-chip {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: #fff;
  background: rgba(255,122,0,0.14); border: 1px solid rgba(255,122,0,0.4);
  border-radius: 999px; padding: 5px 6px 5px 14px;
}
.gift-chip-x {
  background: none; border: none; color: #fff; cursor: pointer; font-size: 16px;
  line-height: 1; width: 20px; height: 20px; border-radius: 50%;
}
.gift-chip-x:hover { background: rgba(255,255,255,0.15); }

/* Gift handle (@username) card */
.handle-card {
  background: #0f0f0f; border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; margin: 4px 0 16px;
}
.handle-label { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.handle-row { display: flex; align-items: center; gap: 8px; }
.handle-at { color: var(--orange); font-weight: 700; font-size: 16px; }
.handle-input {
  flex: 1; min-width: 0; background: #141414; border: 1px solid var(--line);
  border-radius: 9px; color: #eee; padding: 9px 11px; font-size: 14px;
}
.handle-input:focus { outline: none; border-color: var(--orange); }
.handle-hint { font-size: 11.5px; color: var(--muted); margin-top: 8px; line-height: 1.45; }
.handle-card .msg { margin-top: 8px; }

/* Wallet card */
.wallet-card {
  background: #0f0f0f; border: 1px solid rgba(255,122,0,0.28); border-radius: 12px;
  padding: 14px 16px; margin: 0 0 16px;
}
.wallet-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wallet-label { font-size: 12px; color: var(--muted); }
.wallet-balance { font-size: 24px; font-weight: 700; color: var(--orange); line-height: 1.2; }
.wallet-pending { font-size: 11.5px; color: #ffc46b; margin-top: 2px; }
.wallet-card .msg { margin-top: 10px; }

.gifts-modal-actions { display: flex; justify-content: flex-end; margin: 0 0 12px; }

.payout-card {
  background: #0f0f0f; border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; margin: 4px 0 16px;
}
.payout-status { font-size: 13.5px; color: #ddd; line-height: 1.5; }
.payout-ok { color: var(--ok); font-weight: 600; }
.payout-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

.gift-total {
  font-size: 14px; color: #ddd; margin: 0 0 14px;
  background: rgba(255,122,0,0.08); border: 1px solid rgba(255,122,0,0.28);
  border-radius: 10px; padding: 10px 14px;
}
.gift-total b { color: var(--orange); }

.gift-tabs { display: flex; gap: 6px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.gift-tab {
  background: none; border: none; color: var(--muted); font-size: 13px;
  padding: 8px 10px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.gift-tab.active { color: #fff; border-bottom-color: var(--orange); }

.gift-history { list-style: none; margin: 0; padding: 0; max-height: 260px; overflow-y: auto; }
.gift-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.gift-row:first-child { border-top: none; }
.gift-row-main { flex: 1; min-width: 0; }
.gift-row-main .n { font-size: 14px; color: #fff; }
.gift-row-main .e { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gift-row-amt { text-align: right; flex-shrink: 0; }
.gift-row-amt .amt { font-size: 14px; color: #fff; font-weight: 600; }
.gift-state { font-size: 11px; margin-top: 2px; }
.gift-state.ok { color: var(--ok); }
.gift-state.err { color: var(--danger); }
.gift-state.pend { color: #ffc46b; }

.lb-toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(14px);
  background: #1c1c1c; border: 1px solid rgba(255,122,0,0.4); color: #fff;
  padding: 12px 18px; border-radius: 999px; font-size: 14px; z-index: 1000;
  opacity: 0; transition: opacity 0.25s ease, transform 0.25s ease; box-shadow: 0 8px 26px rgba(0,0,0,0.45);
}
.lb-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
