/* Raj Photography — Studio App (admin PWA)
   Design system: navy + gold, rounded cards, soft shadows, phone-first.
   Spacing scale: 4 / 8 / 12 / 16 / 20 / 24 · Type: 12 · 13 · 15 · 17 · 22 · 28 */
:root {
  --bg: #04060d;
  --bg-2: #0a1122;
  --surface: #0d1730;
  --surface-2: #132140;
  --line: rgba(255, 255, 255, .08);
  --text: #eef3fb;
  --muted: #a9bcd8;
  --faint: #7286a0;
  --gold: #f5b942;
  --gold-2: #e07f2e;
  --gold-grad: linear-gradient(135deg, #ffd98a, #f5b942 45%, #e07f2e);
  --gold-ink: #231303;
  --red: #ff6b74;
  --green: #3ecf7a;
  --blue: #4da3ff;
  --r-lg: 20px;
  --r-md: 16px;
  --r-sm: 12px;
  --shadow: 0 12px 32px rgba(0, 0, 0, .5);
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, .35);
  --app-w: 430px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  background:
    radial-gradient(560px 320px at 50% -120px, rgba(245, 185, 66, .13), transparent 70%),
    radial-gradient(900px 600px at 85% 110%, rgba(29, 90, 180, .12), transparent 70%),
    #02040a;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}
a { color: var(--gold); }
button, input, select, textarea { font-family: inherit; }
button { touch-action: manipulation; }
.hidden { display: none !important; }
.small-note { font-size: 13px; color: var(--muted); line-height: 1.55; }
.meta { color: var(--muted); font-size: 13px; line-height: 1.55; }

/* ---------- app column (phone-width, centred on desktop) ---------- */
#appView {
  max-width: var(--app-w); margin: 0 auto; min-height: 100dvh;
  background: linear-gradient(180deg, #060b18, var(--bg) 220px);
  box-shadow: 0 0 70px rgba(0, 0, 0, .65);
  position: relative;
}

/* ---------- splash ---------- */
#splash {
  position: fixed; inset: 0; z-index: 200;
  background: radial-gradient(420px 300px at 50% 30%, rgba(245, 185, 66, .14), transparent 70%), linear-gradient(180deg, #0a142e, var(--bg));
  display: flex; align-items: center; justify-content: center;
  transition: opacity .45s ease, visibility .45s;
}
#splash.done { opacity: 0; visibility: hidden; pointer-events: none; }
.splash-inner { text-align: center; animation: splashIn .6s ease both; }
@keyframes splashIn { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
.splash-icon { width: 88px; height: 88px; border-radius: 22px; box-shadow: var(--shadow); }
.splash-name { font-size: 24px; font-weight: 800; letter-spacing: .01em; margin-top: 16px; }
.splash-tag { color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: .42em; margin-top: 5px; }
.splash-dots { margin-top: 22px; display: flex; gap: 7px; justify-content: center; }
.splash-dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); opacity: .3; animation: dotPulse 1.1s infinite; }
.splash-dots span:nth-child(2) { animation-delay: .18s; }
.splash-dots span:nth-child(3) { animation-delay: .36s; }
@keyframes dotPulse { 0%, 100% { opacity: .25; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.15); } }

/* ---------- header ---------- */
.app-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: calc(env(safe-area-inset-top) + 10px) 16px 10px;
  background: rgba(5, 8, 17, .88); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.ah-left { display: flex; align-items: center; gap: 11px; min-width: 0; }
.ah-icon { width: 38px; height: 38px; border-radius: 10px; box-shadow: var(--shadow-sm); }
.ah-app { font-size: 10px; font-weight: 800; letter-spacing: .3em; color: var(--gold); }
.ah-page { font-size: 19px; font-weight: 800; line-height: 1.15; }
.ah-right { display: flex; align-items: center; gap: 9px; }
#adminName { font-size: 11px; color: var(--faint); white-space: nowrap; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .05); color: var(--muted); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; transition: transform .12s, background .15s;
}
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn:active { transform: scale(.93); background: rgba(255, 255, 255, .1); }

/* ---------- screens ---------- */
.screen { display: none; padding: 18px 16px calc(104px + env(safe-area-inset-bottom)); }
.screen.active { display: block; animation: scrIn .26s ease; }
@keyframes scrIn { from { opacity: 0; } to { opacity: 1; } }
h2 { font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 24px 2px 12px; }
h2.first { margin-top: 2px; }
.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .03));
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 16px; margin-bottom: 14px; box-shadow: var(--shadow-sm);
}
.card h2 { margin-top: 0; }

/* ---------- home ---------- */
.greet { padding: 4px 2px 16px; }
.greet-hi { font-size: 27px; font-weight: 800; line-height: 1.15; }
.greet-sub { color: var(--muted); font-size: 14px; margin-top: 3px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat-card {
  text-align: left; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .028));
  box-shadow: var(--shadow-sm); padding: 14px; cursor: pointer; color: var(--text);
  display: flex; flex-direction: column; gap: 2px; min-height: 108px;
  transition: transform .12s ease, border-color .15s;
}
.stat-card:active { transform: scale(.965); border-color: rgba(245, 185, 66, .45); }
.stat-ic { width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.stat-ic svg { width: 18px; height: 18px; }
.stat-ic.gold { background: rgba(245, 185, 66, .16); color: var(--gold); }
.stat-ic.blue { background: rgba(77, 163, 255, .15); color: var(--blue); }
.stat-ic.red { background: rgba(255, 107, 116, .14); color: var(--red); }
.stat-ic.green { background: rgba(62, 207, 122, .14); color: var(--green); }
.stat-num { font-size: 26px; font-weight: 800; line-height: 1.1; }
.stat-lbl { font-size: 12.5px; color: var(--muted); }

/* ---------- skeleton + empty states ---------- */
.skel-row {
  height: 74px; border-radius: var(--r-md); margin-bottom: 10px;
  background: linear-gradient(100deg, rgba(255, 255, 255, .045) 40%, rgba(255, 255, 255, .1) 50%, rgba(255, 255, 255, .045) 60%);
  background-size: 220% 100%; animation: shimmer 1.3s infinite linear;
}
@keyframes shimmer { from { background-position: 130% 0; } to { background-position: -90% 0; } }
.empty {
  text-align: center; padding: 30px 18px; border: 1px dashed rgba(255, 255, 255, .14);
  border-radius: var(--r-lg); color: var(--muted); margin-bottom: 12px;
}
.empty .empty-ic {
  width: 52px; height: 52px; margin: 0 auto 10px; border-radius: 16px;
  background: rgba(245, 185, 66, .12); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
}
.empty .empty-ic svg { width: 25px; height: 25px; }
.empty p { margin: 0; font-size: 14px; }
.empty strong { color: var(--text); display: block; font-size: 15px; margin-bottom: 2px; }

/* ---------- forms + buttons ---------- */
label.field { display: block; margin-bottom: 13px; font-size: 13.5px; color: var(--muted); }
label.field span { display: block; margin-bottom: 6px; font-weight: 600; }
input[type="text"], input[type="email"], input[type="date"], input[type="number"], input[type="password"], select, textarea {
  width: 100%; min-height: 48px; padding: 12px 13px; border-radius: var(--r-sm);
  border: 1px solid rgba(255, 255, 255, .15); background: rgba(0, 0, 0, .35);
  color: #fff; font-size: 16px; outline: none; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { border-color: rgba(245, 185, 66, .65); box-shadow: 0 0 0 3px rgba(245, 185, 66, .16); }
textarea { min-height: 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  background: var(--gold-grad); color: var(--gold-ink); border: none; border-radius: 14px;
  min-height: 48px; padding: 12px 20px; font-size: 15px; font-weight: 800; cursor: pointer;
  text-decoration: none; box-shadow: 0 6px 18px rgba(224, 127, 46, .28);
  transition: transform .12s ease, filter .15s, opacity .15s;
}
.btn:active { transform: scale(.965); filter: brightness(1.06); }
.btn:disabled { opacity: .45; }
.btn.ghost { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .22); color: var(--text); box-shadow: none; }
.btn.small { min-height: 44px; padding: 9px 15px; font-size: 13.5px; border-radius: 12px; }
.btn.danger { background: rgba(179, 55, 63, .9); color: #fff; box-shadow: none; }
.btn.gold { background: var(--gold-grad); color: var(--gold-ink); }
.btn.block { width: 100%; }
.btn.send { width: 48px; height: 48px; min-height: 48px; padding: 0; border-radius: 50%; flex: none; }
.btn.send svg { width: 19px; height: 19px; }

/* toast (appMsg) + inline messages */
#appMsg {
  position: fixed; top: calc(env(safe-area-inset-top) + 12px); left: 0; right: 0;
  margin: 0 auto; width: fit-content; max-width: min(92vw, 398px); z-index: 120;
  border-radius: 999px; padding: 11px 18px; font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow); opacity: 0; transform: translateY(-10px); pointer-events: none;
  transition: opacity .25s ease, transform .25s ease; display: block;
}
#appMsg.show { opacity: 1; transform: none; }
#appMsg.err { background: #4a1720; border: 1px solid rgba(255, 107, 116, .55); color: #ffc9cd; }
#appMsg.ok { background: #10381f; border: 1px solid rgba(62, 207, 122, .5); color: #b9f2cd; }
.msg { border-radius: var(--r-sm); padding: 11px 14px; font-size: 14px; margin-bottom: 14px; display: none; }
.msg.show { display: block; }
.msg.err { background: rgba(255, 80, 90, .13); border: 1px solid rgba(255, 80, 90, .4); color: #ffb3b8; }
.msg.ok { background: rgba(60, 200, 120, .12); border: 1px solid rgba(60, 200, 120, .4); color: #a9ecc6; }
#appMsg.msg { margin-bottom: 0; }

/* ---------- badges ---------- */
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 800; letter-spacing: .02em; white-space: nowrap; }
.badge.pending { background: rgba(245, 185, 66, .18); color: #ffd98a; }
.badge.confirmed { background: rgba(60, 200, 120, .16); color: #a9ecc6; }
.badge.cancelled { background: rgba(255, 80, 90, .16); color: #ffb3b8; }
.badge.legacy { background: rgba(255, 255, 255, .12); color: #c9d6ea; }
.badge.paid { background: rgba(77, 163, 255, .18); color: #a9d2ff; }
.badge.unpaid { background: rgba(255, 255, 255, .09); color: #c9d6ea; }
.badge.count { background: var(--gold-grad); color: var(--gold-ink); min-width: 24px; text-align: center; }

/* ---------- booking cards ---------- */
.bitem {
  display: flex; gap: 12px; align-items: flex-start; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px; margin-bottom: 11px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .025));
  box-shadow: var(--shadow-sm); transition: transform .12s ease, border-color .15s;
}
.bitem:active { transform: scale(.98); border-color: rgba(245, 185, 66, .4); }
.b-avatar {
  width: 46px; height: 46px; flex: none; border-radius: 14px;
  background: linear-gradient(135deg, rgba(245, 185, 66, .3), rgba(224, 127, 46, .22));
  color: var(--gold); font-size: 19px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.b-main { flex: 1; min-width: 0; }
.b-main .b-name { font-size: 16px; font-weight: 800; line-height: 1.25; }
.b-main .b-svc { color: var(--gold); font-size: 13px; font-weight: 700; margin-top: 1px; }
.b-main .meta { margin-top: 3px; word-break: break-word; }
.b-side { display: flex; flex-direction: column; gap: 5px; align-items: flex-end; flex: none; }
.bitem .row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

/* ---------- booking detail (full-screen sheet) ---------- */
#bookingDetail { display: none; }
#bookingDetail.open {
  display: block; position: fixed; inset: 0; margin: 0 auto; width: 100%; max-width: var(--app-w);
  background: linear-gradient(180deg, #060b18, var(--bg) 200px); z-index: 65; overflow-y: auto;
  padding: calc(env(safe-area-inset-top) + 12px) 16px calc(28px + env(safe-area-inset-bottom));
  animation: sheetUp .3s ease;
}
@keyframes sheetUp { from { transform: translateY(26px); opacity: .5; } to { transform: none; opacity: 1; } }
.detail-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.detail-head .d-title { font-size: 18px; font-weight: 800; }
.back-btn {
  width: 42px; height: 42px; flex: none; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .06); color: var(--text); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; transition: transform .12s;
}
.back-btn svg { width: 20px; height: 20px; }
.back-btn:active { transform: scale(.92); }
.detail-card { background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .03)); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; box-shadow: var(--shadow-sm); }
.detail-card h2 { margin: 0 0 8px; text-transform: none; letter-spacing: 0; font-size: 18px; color: var(--text); }
.kv { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); font-size: 14px; }
.kv:last-child { border-bottom: none; }
.kv .k { color: var(--faint); flex: none; }
.kv .v { text-align: right; word-break: break-word; }
.consent-line { margin-top: 10px; font-size: 13.5px; color: #a9ecc6; background: rgba(60, 200, 120, .1); border: 1px solid rgba(60, 200, 120, .3); border-radius: var(--r-sm); padding: 10px 12px; }
.actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 14px; }
.actions .btn { flex: 1 1 44%; }
.inline-form { margin-top: 14px; border-top: 1px solid rgba(255, 255, 255, .07); padding-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.inline-form label { font-size: 12.5px; color: var(--muted); display: flex; flex-direction: column; gap: 5px; font-weight: 600; }
.inline-form .btn { width: 100%; }

/* ---------- chat ---------- */
#threadList .bitem { align-items: center; }
.t-main { flex: 1; min-width: 0; }
.t-main .t-name { font-size: 15.5px; font-weight: 800; }
.t-main .t-svc { color: var(--gold); font-size: 12.5px; font-weight: 700; }
.t-main .t-last { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
#threadView:not(.hidden) {
  position: fixed; inset: 0; margin: 0 auto; width: 100%; max-width: var(--app-w);
  background: linear-gradient(180deg, #060b18, var(--bg) 200px); z-index: 90;
  display: flex; flex-direction: column; animation: sheetUp .28s ease;
}
.thread-head {
  display: flex; align-items: center; gap: 12px; flex: none;
  padding: calc(env(safe-area-inset-top) + 10px) 14px 10px;
  border-bottom: 1px solid var(--line); background: rgba(5, 8, 17, .9); backdrop-filter: blur(12px);
}
.thread-head #threadTitle { font-size: 15.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-box { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.chat-log { flex: 1; overflow-y: auto; padding: 16px 14px; display: flex; flex-direction: column; gap: 9px; }
.chat-msg { max-width: 82%; padding: 10px 13px; border-radius: 18px; font-size: 14.5px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; box-shadow: var(--shadow-sm); }
.chat-msg .who { display: block; font-size: 10.5px; opacity: .7; margin-bottom: 3px; font-weight: 600; }
.chat-msg.me { align-self: flex-end; background: var(--gold-grad); color: var(--gold-ink); border-bottom-right-radius: 5px; }
.chat-msg.them { align-self: flex-start; background: var(--surface-2); color: var(--text); border-bottom-left-radius: 5px; }
.chat-form {
  display: flex; gap: 9px; align-items: center; flex: none;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); background: rgba(5, 8, 17, .94); backdrop-filter: blur(12px);
}
.chat-form input { flex: 1; border-radius: 999px; padding-left: 16px; }

/* ---------- photos ---------- */
.pick-card {
  width: 100%; text-align: left; display: flex; gap: 12px; align-items: center; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: 13px 14px; margin-bottom: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .025));
  color: var(--text); box-shadow: var(--shadow-sm); transition: transform .12s, border-color .15s;
}
.pick-card:active { transform: scale(.98); }
.pick-card.active { border-color: var(--gold); background: linear-gradient(180deg, rgba(245, 185, 66, .13), rgba(245, 185, 66, .05)); }
.pick-card .b-main .b-name { font-size: 15px; }
.upload-card { margin-top: 16px; }
.upload-big {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 58px; border-radius: 14px; cursor: pointer; margin-top: 12px;
  background: var(--gold-grad); color: var(--gold-ink); font-size: 16px; font-weight: 800;
  box-shadow: 0 6px 18px rgba(224, 127, 46, .28); transition: transform .12s;
}
.upload-big:active { transform: scale(.97); }
.upload-big svg { width: 21px; height: 21px; }
.upload-big input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.progress { font-size: 13.5px; color: var(--gold); min-height: 20px; margin-top: 10px; font-weight: 600; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 11px; }
.grid figure { margin: 0; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); background: #000; box-shadow: var(--shadow-sm); }
.grid figure img { width: 100%; height: 138px; object-fit: cover; display: block; }
.grid figcaption { padding: 7px 9px; font-size: 11px; color: #c9d6ea; }
.qr-box { background: #fff; border-radius: 14px; padding: 10px; display: inline-block; line-height: 0; margin-top: 8px; }
.qr-box canvas { width: 160px; height: 160px; }

/* ---------- payments / settings / activity ---------- */
.svc-row { border: 1px solid var(--line); border-radius: var(--r-md); padding: 13px; margin-bottom: 11px; background: rgba(0, 0, 0, .22); }
.check-chip {
  display: inline-flex; gap: 7px; align-items: center; margin: 0 8px 9px 0; font-size: 13.5px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line); border-radius: 999px; padding: 8px 13px; min-height: 40px;
}
.check-chip input { width: 17px; height: 17px; accent-color: var(--gold); }
.edited-by { font-size: 12px; color: var(--faint); margin-top: 8px; }
.audit-item { border-bottom: 1px solid rgba(255, 255, 255, .06); padding: 11px 2px; font-size: 13.5px; line-height: 1.55; }
.audit-item .who { color: var(--gold); font-weight: 800; }
.audit-item .when { color: var(--faint); font-size: 12px; }

/* ---------- more ---------- */
.more-list { display: flex; flex-direction: column; gap: 11px; }
.more-row {
  width: 100%; display: flex; align-items: center; gap: 13px; text-align: left; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: 15px 14px; color: var(--text);
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .025));
  box-shadow: var(--shadow-sm); transition: transform .12s, border-color .15s;
}
.more-row:active { transform: scale(.98); border-color: rgba(245, 185, 66, .4); }
.more-ic { width: 42px; height: 42px; flex: none; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; }
.more-ic svg { width: 20px; height: 20px; }
.more-ic.gold { background: rgba(245, 185, 66, .16); color: var(--gold); }
.more-ic.blue { background: rgba(77, 163, 255, .15); color: var(--blue); }
.more-ic.green { background: rgba(62, 207, 122, .14); color: var(--green); }
.more-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.more-txt strong { font-size: 16px; }
.more-txt small { color: var(--muted); font-size: 12.5px; }
.more-chev { color: var(--faint); display: inline-flex; }
.more-chev svg { width: 19px; height: 19px; }
.more-foot { text-align: center; color: var(--faint); font-size: 12px; margin-top: 26px; letter-spacing: .08em; }

/* ---------- bottom tab bar ---------- */
.bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; margin: 0 auto; width: 100%; max-width: var(--app-w);
  z-index: 80; display: flex; padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  background: rgba(5, 8, 17, .94); border-top: 1px solid var(--line);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.bottomnav button {
  flex: 1; background: none; border: none; color: #8496b3; cursor: pointer;
  min-height: 54px; padding: 6px 2px 4px; border-radius: 14px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: 11px; font-weight: 700; transition: color .15s, background .15s, transform .1s;
}
.bottomnav button svg { width: 23px; height: 23px; }
.bottomnav button:active { transform: scale(.93); }
.bottomnav button.active { color: var(--gold); background: rgba(245, 185, 66, .1); }

/* ---------- login ---------- */
.login-wrap { max-width: var(--app-w); margin: 0 auto; padding: calc(env(safe-area-inset-top) + 7vh) 18px 40px; }
.login-brand { text-align: center; margin-bottom: 22px; animation: splashIn .55s ease both; }
.login-icon { width: 76px; height: 76px; border-radius: 19px; box-shadow: var(--shadow); }
.login-app { font-size: 23px; font-weight: 800; margin-top: 13px; }
.login-tag { color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: .42em; margin: 4px 0 8px; }
.login-wrap .card { animation: scrIn .4s ease; }

/* ---------- welcome (first run) ---------- */
.welcome {
  position: fixed; inset: 0; z-index: 150; padding: 20px;
  background: rgba(2, 4, 10, .72); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
  display: flex; align-items: center; justify-content: center;
}
.welcome-card {
  width: 100%; max-width: 384px; border-radius: 26px; padding: 26px 22px 20px; text-align: center;
  background: linear-gradient(165deg, #12203f, #0a1122 70%);
  border: 1px solid rgba(245, 185, 66, .3); box-shadow: var(--shadow);
  animation: popIn .38s cubic-bezier(.2, 1.4, .4, 1) both;
}
@keyframes popIn { from { opacity: 0; transform: scale(.9) translateY(16px); } to { opacity: 1; transform: none; } }
.welcome-icon { width: 68px; height: 68px; border-radius: 17px; box-shadow: var(--shadow-sm); }
.welcome-card h2 { font-size: 21px; text-transform: none; letter-spacing: 0; color: var(--text); margin: 14px 0 6px; }
.welcome-sub { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.welcome-points { text-align: left; display: flex; flex-direction: column; gap: 11px; margin-bottom: 20px; }
.wpoint { display: flex; gap: 12px; align-items: center; font-size: 14px; color: var(--muted); }
.wpoint strong { color: var(--text); }
.welcome-card .btn + .btn { margin-top: 9px; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01s !important; transition-duration: .01s !important; }
}

/* chat options (three-dot) menu */
.kebab-btn{margin-left:auto;flex:0 0 auto;width:38px;height:38px;border-radius:50%;border:1px solid var(--border);background:var(--surface);color:var(--muted);display:flex;align-items:center;justify-content:center;cursor:pointer}
.kebab-btn svg{width:20px;height:20px}
.bitem .kebab-btn{width:34px;height:34px}
.kebab-menu{position:fixed;z-index:300;min-width:190px;background:var(--surface);border:1px solid var(--border);border-radius:14px;box-shadow:0 18px 44px rgba(0,0,0,.5);padding:6px;display:flex;flex-direction:column}
.kebab-menu.hidden{display:none}
.kebab-menu button{display:flex;align-items:center;gap:10px;width:100%;text-align:left;padding:12px;border:none;background:none;color:var(--text);font-size:15px;border-radius:9px;cursor:pointer}
.kebab-menu button:active{background:var(--surface2)}
.kebab-menu button.danger{color:#ff8585}
