/* Album Studio – giao diện chung */
:root {
  --bg: #0a0a0d;
  --surface: #131318;
  --surface-2: #1b1b22;
  --glass: rgba(14, 14, 18, .72);
  --ink: #f1f0ea;
  --ink-2: #c9c8c2;
  --muted: #8b8b93;
  --line: rgba(255, 255, 255, .12);
  --line-2: rgba(255, 255, 255, .2);
  --accent: #3d5afe;
  --accent-2: #8da0ff;
  --accent-ink: #ffffff;
  --accent-soft: rgba(61, 90, 254, .14);
  --gold: #ffb547;
  --gold-soft: rgba(255, 181, 71, .1);
  --ok: #34c77b;
  --danger: #ff5a52;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 24px 60px rgba(0, 0, 0, .55);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.modal-open { overflow: hidden; }
::selection { background: var(--accent); color: #fff; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: var(--accent-2); text-decoration: none; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.ic { width: 20px; height: 20px; flex: none; }

/* ---------- Nhận diện thương hiệu (giống portfolio) ---------- */
.logo-tile { display: inline-flex; align-items: center; background: var(--ink); border-radius: 14px; padding: 3px 10px; flex: none; }
.logo-mark { display: none; }
.logo-tile.sm { border-radius: 10px; padding: 2px 7px; }
.logo-tile.sm .logo-mark { height: 24px; }
.logo-tile.lg { border-radius: 20px; padding: 6px 16px; }
.logo-tile.lg .logo-mark { height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 800; letter-spacing: .04em; font-size: 13px; }
.brand-sub { display: block; line-height: 1.25; }
.brand-sub small { display: block; font-weight: 500; color: var(--muted); letter-spacing: .02em; font-size: 11.5px; }
.tag { display: inline-block; font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); }
.serif-em { font-family: var(--serif); font-style: italic; font-weight: 700; letter-spacing: -.01em; color: var(--gold); }

/* ---------- Nút ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04); color: var(--ink);
  font-weight: 700; font-size: 14.5px; white-space: nowrap;
  transition: background .3s, color .3s, border-color .3s, transform .4s var(--ease);
}
.btn:hover { background: var(--ink); color: #000; border-color: var(--ink); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .4; pointer-events: none; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: #fff; border-color: #fff; color: #000; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #0a0a0d; }
.btn-gold:hover { background: #fff; border-color: #fff; }
.btn-dark { background: #0a0a0d; color: #fff; border-color: #0a0a0d; }
.btn-ghost { background: rgba(255, 255, 255, .04); }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 13.5px; }
.btn-block { width: 100%; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 999px; border: 1px solid transparent; background: transparent; color: inherit;
  display: inline-grid; place-items: center; flex: none; transition: background .25s;
}
.icon-btn:hover { background: rgba(255, 255, 255, .08); }

/* ---------- Ô nhập ---------- */
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field > span { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.field small { color: var(--muted); font-size: 12.5px; }
.input {
  width: 100%; min-height: 48px; padding: 11px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: rgba(255, 255, 255, .04); font-size: 16px; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.input::placeholder { color: #5f5f68; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
textarea.input { min-height: 88px; resize: vertical; }
input[type="date"].input { color-scheme: dark; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); margin: 2px 0 0; flex: none; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > * { flex: 1 1 150px; }

/* ---------- Hộp thoại ---------- */
.modal-wrap {
  position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, .66); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 16px; opacity: 0; transition: opacity .25s;
}
.modal-wrap.in { opacity: 1; }
.modal {
  width: 100%; max-width: 480px; max-height: calc(100dvh - 32px); display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow);
  transform: translateY(18px) scale(.98); transition: transform .45s var(--ease);
}
.modal.wide { max-width: 800px; }
.modal-wrap.in .modal { transform: none; }
.modal-head { display: flex; align-items: center; gap: 8px; padding: 18px 14px 4px 24px; }
.modal-title { flex: 1; margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.modal-body { padding: 8px 24px 18px; overflow: auto; -webkit-overflow-scrolling: touch; }
.modal-body p { margin: 0 0 12px; }
.modal-actions { display: flex; gap: 10px; padding: 14px 24px calc(20px + var(--safe-b)); border-top: 1px solid var(--line); }
.modal-actions .btn { flex: 1 1 0; min-width: 0; padding: 0 14px; }
.modal-actions .btn span { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 420px) {
  .modal-actions { gap: 8px; padding-left: 16px; padding-right: 16px; }
  .modal-actions .btn { padding: 0 10px; font-size: 14px; gap: 6px; white-space: normal; line-height: 1.2; text-align: center; }
  .modal-actions .btn .ic { width: 18px; height: 18px; }
}
@media (max-width: 600px) {
  .modal-wrap { align-items: flex-end; padding: 0; }
  .modal, .modal.wide { max-width: none; border-radius: 28px 28px 0 0; border-bottom: 0; max-height: 92dvh; transform: translateY(50px); }
}

/* ---------- Thông báo ---------- */
.toasts { position: fixed; left: 0; right: 0; bottom: calc(100px + var(--safe-b)); z-index: 120; display: grid; justify-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.toast {
  background: var(--ink); color: #0a0a0d; padding: 11px 18px; border-radius: 999px; font-size: 14px; font-weight: 600;
  max-width: 460px; box-shadow: var(--shadow); opacity: 0; transform: translateY(10px); transition: .35s var(--ease); text-align: center;
}
.toast.in { opacity: 1; transform: none; }
.toast.err { background: var(--danger); color: #fff; }
.toast.ok { background: var(--ok); color: #04150c; }

/* ---------- Trang chờ / lỗi / mật khẩu ---------- */
.center-screen { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; text-align: center;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(61, 90, 254, .16), transparent 70%), var(--bg); }
.center-card { width: 100%; max-width: 400px; display: grid; justify-items: center; }
.center-card .input { text-align: center; }
.center-card form { width: 100%; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 2.5px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite; margin: 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.big-title { font: 800 clamp(36px, 9vw, 64px)/1.02 var(--font); letter-spacing: -.045em; margin: 16px 0 12px; }
.big-title .serif-em { font-size: 1.08em; }
.loading-bar { width: 140px; height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; margin: 22px auto 0; }
.loading-bar i { display: block; width: 40%; height: 100%; background: var(--accent); border-radius: 2px; animation: load 1.2s var(--ease) infinite; }
@keyframes load { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }

/* ---------- Bìa album ---------- */
.hero { position: relative; height: 86svh; min-height: 480px; max-height: 960px; overflow: hidden; background: #050507; color: #fff; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 1.2s var(--ease), transform 2.6s var(--ease); }
.hero-img.loaded { opacity: 1; transform: none; }
.hero::after { content: ''; position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(10,10,13,.55) 0%, rgba(10,10,13,0) 22%, rgba(10,10,13,0) 42%, rgba(10,10,13,.82) 82%, #0a0a0d 100%); }
.hero-nav {
  position: absolute; z-index: 3; top: 14px; left: 50%; transform: translateX(-50%); width: min(1180px, calc(100% - 24px));
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 8px 8px 8px 12px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.nav-cta { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 700; font-size: 14px; white-space: nowrap; }
.nav-cta:hover { background: #fff; color: #000; }
.hero-inner { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 0 20px 44px; }
.hero-inner-in { max-width: 1180px; margin: 0 auto; }
.hero-title { font: 800 clamp(40px, 9vw, 112px)/1 var(--font); letter-spacing: -.045em; margin: 14px 0 6px; text-wrap: balance; max-width: 14ch; }
.hero-sub { font-size: clamp(26px, 4.6vw, 54px); line-height: 1.1; margin: 0; }
.hero-ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.hero-ctas .btn { min-height: 52px; padding: 0 26px; }
.hero-ctas .btn-ghost { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.28); color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.hero-ctas .btn-ghost:hover { background: #fff; color: #000; }
@media (max-width: 560px) { .hero-nav .brand-sub { display: none; } .hero-inner { padding-bottom: 34px; } }

/* ---------- Thanh công cụ dính ---------- */
.bar { position: sticky; top: 0; z-index: 30; background: rgba(10, 10, 13, .82); backdrop-filter: saturate(1.3) blur(18px); -webkit-backdrop-filter: saturate(1.3) blur(18px); border-bottom: 1px solid var(--line); }
.bar-in { max-width: 1600px; margin: 0 auto; padding: 0 12px; }
.bar-row { display: flex; align-items: center; gap: 6px; min-height: 62px; }
.bar-title { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; }
.bar-title-txt { min-width: 0; font-weight: 800; font-size: 16px; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-title-txt small { display: block; font-weight: 600; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.bar .tool { height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.04); display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 700; white-space: nowrap; transition: background .25s, color .25s, border-color .25s; }
.bar .tool:hover { background: var(--ink); color: #000; border-color: var(--ink); }
.bar .tool.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.bar .tool.face { background: var(--gold); border-color: var(--gold); color: #0a0a0d; }
.bar .tool.face:hover { background: #fff; border-color: #fff; }
.bar .tool .lbl-short { display: none; }
@media (max-width: 560px) {
  .bar .tool .lbl-long { display: none; } .bar .tool .lbl-short { display: inline; }
  .bar .tool { padding: 0 12px; } .bar-title .logo-tile { display: none; } .bar-title-txt { font-size: 15px; }
}
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 12px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.02); font-size: 13.5px; font-weight: 600; color: var(--ink); display: inline-flex; align-items: center; gap: 6px; transition: all .3s; }
.chip b { font-weight: 600; color: var(--muted); }
.chip b::before { content: '('; } .chip b::after { content: ')'; }
.chip:hover { border-color: var(--line-2); }
.chip.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.chip.on b { color: rgba(255,255,255,.75); }
.chip-sep { flex: none; width: 1px; background: var(--line); margin: 7px 4px; }
.search { position: relative; flex: none; display: flex; align-items: center; }
.search input { height: 38px; width: 160px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.04); padding: 0 14px 0 34px; font-size: 14px; outline: none; }
.search input::placeholder { color: #5f5f68; }
.search input:focus { border-color: var(--accent); }
.search .ic { position: absolute; left: 11px; width: 17px; height: 17px; color: var(--muted); }

/* ---------- Kết quả tìm khuôn mặt ---------- */
.face-banner { max-width: 1600px; margin: 14px auto 0; padding: 0 12px; }
.face-banner-in { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 52px 14px 14px; border-radius: var(--radius); background: var(--gold-soft); border: 1px solid rgba(255,181,71,.3); flex-wrap: wrap; }
.face-banner img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); }
.face-banner .txt { flex: 1 1 170px; min-width: 0; }
.face-banner .txt b { display: block; font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
.face-banner .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.face-banner .fb-close { position: absolute; top: 8px; right: 8px; }
.face-banner .acts { flex: 1 1 100%; }
@media (max-width: 560px) {
  .face-banner { margin-top: 10px; padding: 0 8px; }
  .face-banner-in { gap: 10px 12px; padding: 12px 46px 12px 12px; border-radius: 18px; }
  .face-banner img { width: 46px; height: 46px; }
  .face-banner .txt b { font-size: 15px; line-height: 1.3; }
  .face-banner .txt .small { font-size: 12.5px; }
  .face-banner .acts { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -46px 0 0; padding-right: 12px; gap: 6px; }
  .face-banner .acts::-webkit-scrollbar { display: none; }
  .face-banner .acts .btn { flex: none; min-height: 36px; padding: 0 13px; font-size: 13px; }
  .face-banner .fb-close { top: 4px; right: 4px; }
}

/* ---------- Lưới ảnh ---------- */
.grid-wrap { max-width: 1600px; margin: 0 auto; padding: 12px 8px calc(130px + var(--safe-b)); }
.grid { display: flex; flex-wrap: wrap; gap: 5px; }
.tile { position: relative; overflow: hidden; background: linear-gradient(110deg, #141419 30%, #1d1d24 50%, #141419 70%) 0 0 / 300% 100%; animation: shimmer 1.6s linear infinite; border-radius: 6px; cursor: zoom-in; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.tile.loaded { animation: none; background: #141419; }
@keyframes shimmer { to { background-position: -300% 0; } }
.tile img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s var(--ease), transform .5s var(--ease), border-radius .3s; }
.tile img.ok { opacity: 1; }
.tile .pick { position: absolute; top: 6px; right: 6px; width: 36px; height: 36px; border-radius: 50%; border: 0; padding: 0; background: transparent; display: grid; place-items: center; color: #fff; z-index: 2; }
.tile .pick i { width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(255,255,255,.92); background: rgba(0,0,0,.22); display: grid; place-items: center; box-shadow: 0 1px 6px rgba(0,0,0,.4); transition: .2s var(--ease); }
.tile .pick .ic { width: 16px; height: 16px; stroke-width: 2.8; opacity: 0; }
.tile .name { position: absolute; left: 0; bottom: 0; right: 0; padding: 18px 9px 6px; font-size: 11px; font-weight: 700; letter-spacing: .04em; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.7)); opacity: 0; transition: opacity .25s; pointer-events: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .badge-note { position: absolute; left: 6px; top: 6px; width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: #0a0a0d; display: grid; place-items: center; box-shadow: 0 1px 6px rgba(0,0,0,.4); }
.tile .badge-note .ic { width: 14px; height: 14px; }
@media (hover: hover) { .tile:hover .name { opacity: 1; } .tile:hover img.ok { transform: scale(1.03); } }
.show-names .tile .name { opacity: 1; }
.tile.sel { box-shadow: inset 0 0 0 3px var(--accent); }
.tile.sel img, .tile.sel:hover img.ok { transform: scale(.92); border-radius: 4px; }
.tile.sel .pick i { background: var(--accent); border-color: var(--accent); }
.tile.sel .pick .ic { opacity: 1; color: #fff; }
.select-mode .tile { cursor: pointer; }
.empty { padding: 70px 16px; text-align: center; color: var(--muted); }

/* ---------- Thanh chọn phía dưới ---------- */
.selbar {
  position: fixed; left: 50%; bottom: calc(14px + var(--safe-b)); z-index: 40; transform: translate(-50%, 160%);
  width: calc(100% - 20px); max-width: 660px; display: flex; align-items: center; gap: 8px;
  background: rgba(19, 19, 24, .92); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 7px 7px 22px; box-shadow: var(--shadow);
  transition: transform .5s var(--ease);
}
.selbar.in { transform: translate(-50%, 0); }
.selbar .count { flex: 1; min-width: 0; line-height: 1.2; }
.selbar .count b { display: block; font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
.selbar .count button { background: none; border: 0; padding: 0; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.selbar .count button:hover { color: var(--ink); }
.selbar .btn { min-height: 46px; padding: 0 18px; }
@media (max-width: 420px) { .selbar { padding-left: 16px; } .selbar .btn { padding: 0 14px; font-size: 13.5px; } .selbar .btn .ic { display: none; } }

/* ---------- Xem ảnh lớn ---------- */
.lb { position: fixed; inset: 0; z-index: 60; background: #050507; color: #fff; display: flex; flex-direction: column; opacity: 0; transition: opacity .25s; touch-action: none; }
.lb.in { opacity: 1; }
.lb-top, .lb-bottom { display: flex; align-items: center; gap: 8px; padding: 10px 12px; z-index: 2; }
.lb-top { padding-top: max(10px, env(safe-area-inset-top)); }
.lb-bottom { padding-bottom: calc(14px + var(--safe-b)); justify-content: center; flex-wrap: nowrap; gap: 8px; }
.lb-title { flex: 1; min-width: 0; font-size: 14px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-title small { display: block; font-weight: 600; color: var(--muted); font-size: 12px; }
.lb .icon-btn { color: #fff; }
.lb-stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; background: rgba(255,255,255,.08) !important; border: 1px solid var(--line) !important; }
.lb-nav:hover { background: #fff !important; color: #000 !important; }
.lb-nav.prev { left: 16px; } .lb-nav.next { right: 16px; }
@media (hover: none) { .lb-nav { display: none; } }
.lb-btn { min-height: 46px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,.06); color: #fff; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; white-space: nowrap; transition: background .25s, color .25s; }
.lb-btn:hover { background: #fff; color: #000; }
.lb-btn.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.lb-note { width: 100%; max-width: 580px; margin: 0 auto; padding: 0 12px 8px; }
.lb-note textarea { width: 100%; min-height: 66px; border-radius: 16px; border: 1px solid var(--line-2); background: rgba(255,255,255,.06); color: #fff; padding: 11px 14px; font-size: 16px; resize: none; outline: none; }
.lb-note textarea:focus { border-color: var(--accent); }
.lb-loading { position: absolute; width: 28px; height: 28px; border: 2px solid rgba(255,255,255,.18); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }

/* ---------- Tải ảnh ---------- */
.opt { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); border-radius: 18px; cursor: pointer; margin-bottom: 10px; background: rgba(255,255,255,.02); color: var(--ink); transition: border-color .25s, background .25s; }
.opt:hover { border-color: var(--line-2); }
.opt input { margin-top: 3px; accent-color: var(--accent); width: 18px; height: 18px; flex: none; }
.opt .ic { color: var(--accent-2); margin-top: 1px; }
.opt b { display: block; font-size: 15px; font-weight: 700; }
.opt span { font-size: 13px; color: var(--muted); }
.opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.hint { display: flex; gap: 10px; padding: 13px 16px; border-radius: 18px; background: rgba(255,255,255,.04); border: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2); margin: 4px 0 6px; }
.hint .ic { color: var(--gold); margin-top: 1px; }
.hint b { color: var(--ink); }
.progress { height: 6px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; margin: 16px 0 10px; }
.progress > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 99px; transition: width .3s var(--ease); }
.big-num { font: 800 46px/1 var(--font); letter-spacing: -.04em; }

/* ---------- Banner mở trong Zalo/Facebook ---------- */
.inapp { background: var(--gold); color: #1a1205; font-size: 13.5px; font-weight: 500; padding: 10px 14px; display: flex; gap: 10px; align-items: center; position: relative; z-index: 5; }
.inapp b { font-weight: 800; }
.inapp button { margin-left: auto; flex: none; }

/* ---------- Tìm khuôn mặt ---------- */
.face-hero { display: grid; place-items: center; width: 86px; height: 86px; border-radius: 50%; background: var(--gold-soft); border: 1px solid rgba(255,181,71,.35); color: var(--gold); margin: 4px auto 16px; }
.face-hero .ic { width: 42px; height: 42px; stroke-width: 1.4; }
.face-hero.ok { background: rgba(52,199,123,.12); border-color: rgba(52,199,123,.4); color: var(--ok); }
.steps { display: grid; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; font-size: 13.5px; color: var(--ink-2); }
.steps li { display: flex; gap: 10px; }
.steps li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); margin-top: 8px; flex: none; }

/* ---------- Trang chủ + chân trang ---------- */
.home { min-height: 100dvh; display: grid; place-items: center; text-align: center; padding: 40px 16px;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(61, 90, 254, .18), transparent 70%), var(--bg); }
.home .lead { color: var(--muted); max-width: 440px; margin: 0 auto 26px; }
.contacts { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.footer { border-top: 1px solid var(--line); text-align: center; padding: 56px 16px calc(130px + var(--safe-b)); }
.footer h2 { font: 800 clamp(28px, 5vw, 52px)/1.05 var(--font); letter-spacing: -.04em; margin: 14px 0 8px; }
.footer p { color: var(--muted); margin: 0 auto 22px; max-width: 460px; }

/* ================= Trang quản lý ================= */
.admin-top { position: sticky; top: 0; z-index: 30; padding: 12px 12px 0; }
.admin-top-in { max-width: 1200px; margin: 0 auto; padding: 8px 8px 8px 12px; min-height: 60px; display: flex; align-items: center; gap: 10px;
  border-radius: 999px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.admin-top .brand { flex: 1; min-width: 0; }
@media (max-width: 560px) { .admin-top .brand-sub { display: none; } }
.admin-main { max-width: 1200px; margin: 0 auto; padding: 28px 16px 80px; }
.admin-hero { margin: 10px 0 26px; }
.admin-hero h1 { font: 800 clamp(34px, 6vw, 64px)/1.02 var(--font); letter-spacing: -.045em; margin: 10px 0 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 24px; }
.section-title { display: flex; align-items: baseline; gap: 10px; margin: 40px 0 16px; }
.section-title h2 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.03em; }
.albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.acard { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; overflow: hidden; display: flex; flex-direction: column; transition: border-color .3s, transform .5s var(--ease); }
.acard:hover { border-color: var(--line-2); transform: translateY(-2px); }
.acard-cover { position: relative; aspect-ratio: 16 / 9; background: var(--surface-2); }
.acard-cover img { width: 100%; height: 100%; object-fit: cover; }
.acard-cover .tags { position: absolute; left: 12px; top: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.chip-tag { font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: rgba(10,10,13,.7); backdrop-filter: blur(8px); color: #fff; display: inline-flex; gap: 5px; align-items: center; border: 1px solid var(--line); }
.chip-tag .ic { width: 13px; height: 13px; }
.chip-tag.ok { background: var(--gold); color: #0a0a0d; border-color: var(--gold); }
.acard-body { padding: 18px 20px 6px; flex: 1; }
.acard-body h3 { margin: 0 0 6px; font-size: 22px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
.acard-body .meta { font-size: 13px; color: var(--muted); }
.acard-acts { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 14px 16px; }
.acard-acts .btn { min-height: 38px; padding: 0 13px; font-size: 13px; gap: 6px; }
.acard-acts .btn .ic { width: 17px; height: 17px; }
.linkbox { display: flex; gap: 8px; align-items: center; padding: 10px 14px; border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid var(--line); font-size: 14px; word-break: break-all; }
.guest { border: 1px solid var(--line); border-radius: 20px; padding: 16px; margin-bottom: 12px; background: rgba(255,255,255,.02); }
.guest-head { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.guest-head .who { flex: 1; min-width: 160px; }
.guest-head .who b { font-size: 17px; font-weight: 800; }
.names { margin-top: 10px; font-size: 13px; color: var(--ink-2); max-height: 130px; overflow: auto; background: rgba(255,255,255,.04); border: 1px solid var(--line); padding: 10px 12px; border-radius: 12px; font-family: ui-monospace, Menlo, monospace; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 5px; margin-top: 12px; }
.thumbs a { position: relative; display: block; aspect-ratio: 1; background: var(--surface-2); border-radius: 8px; overflow: hidden; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs a span { position: absolute; left: 0; right: 0; bottom: 0; font-size: 10px; color: #fff; background: rgba(0,0,0,.6); padding: 2px 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thumbs a .n { position: absolute; top: 4px; left: 4px; background: var(--gold); color: #0a0a0d; border-radius: 99px; font-size: 10px; font-weight: 700; padding: 0 6px; }
.notes-list { margin: 12px 0 0; padding: 0; list-style: none; font-size: 13.5px; }
.notes-list li { padding: 7px 0; border-top: 1px dashed var(--line); }
.qr-box { display: grid; place-items: center; padding: 12px; background: #fff; border-radius: 18px; width: fit-content; margin: 0 auto 12px; }

/* ---------- 2 bộ ảnh: ẢNH GỐC (xanh) · ẢNH ĐÃ CHỈNH (vàng) ---------- */
.hero-meta { margin: 6px 0 0; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.72); }
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 0 0 10px; border-radius: 999px; background: rgba(255,255,255,.04); border: 1px solid var(--line); max-width: 620px; }
.mode-tab { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 4px 14px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); text-align: left; transition: background .3s var(--ease), color .3s; }
.mode-tab .ic { width: 22px; height: 22px; }
.mode-txt { display: grid; line-height: 1.2; min-width: 0; }
.mode-txt b { font-size: 14.5px; font-weight: 800; letter-spacing: -.01em; color: inherit; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.mode-txt b i { font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 2px 7px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--muted); }
.mode-txt small { font-size: 11.5px; font-weight: 600; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mode-tab:not(:disabled):not(.on):hover { color: var(--ink); background: rgba(255,255,255,.05); }
.mode-tab:disabled { cursor: default; opacity: .6; }
.mode-tab.orig.on { background: var(--accent); color: #fff; }
.mode-tab.edit.on { background: var(--gold); color: #0a0a0d; }
@media (max-width: 560px) {
  .modes { max-width: none; border-radius: 18px; }
  .mode-tab { border-radius: 14px; gap: 7px; padding: 4px 8px; min-height: 46px; justify-content: flex-start; }
  .mode-tab .ic { width: 19px; height: 19px; }
  .mode-txt b { font-size: 13.5px; }
  .mode-txt small { font-size: 10.5px; }
}
.mode-note { display: flex; gap: 10px; align-items: flex-start; margin: 4px 4px 12px; padding: 12px 16px; border-radius: 18px; font-size: 13.5px; color: var(--ink-2); border: 1px solid var(--line); background: rgba(255,255,255,.03); }
.mode-note b { color: var(--ink); }
.mode-note .ic { margin-top: 1px; }
.mode-note.orig { border-color: rgba(61,90,254,.35); background: var(--accent-soft); }
.mode-note.orig .ic { color: var(--accent-2); }
.mode-note.edit { border-color: rgba(255,181,71,.3); background: var(--gold-soft); }
.mode-note.edit .ic { color: var(--gold); }
.lb-kind { display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 1px 7px; border-radius: 99px; margin-right: 4px; vertical-align: 1px; }
.lb-kind.orig { background: var(--accent); color: #fff; }
.lb-kind.edit { background: var(--gold); color: #0a0a0d; }

/* Trang quản lý: 2 ô link */
.src-pair { display: grid; gap: 12px; margin-bottom: 18px; }
@media (min-width: 760px) { .src-pair { grid-template-columns: 1fr 1fr; } }
.src { display: grid; gap: 9px; padding: 16px; border-radius: 20px; border: 1px solid var(--line); background: rgba(255,255,255,.02); }
.src-orig { border-color: rgba(61,90,254,.4); background: var(--accent-soft); }
.src-edit { border-color: rgba(255,181,71,.35); background: var(--gold-soft); }
.src-head { display: grid; gap: 6px; }
.src-badge { justify-self: start; display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 5px 11px; border-radius: 99px; }
.src-badge .ic { width: 15px; height: 15px; }
.src-orig .src-badge { background: var(--accent); color: #fff; }
.src-edit .src-badge { background: var(--gold); color: #0a0a0d; }
.src-title { font-weight: 700; font-size: 15px; }
.src small { color: var(--muted); font-size: 12.5px; }
.src small b { color: var(--ink-2); }
.src-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.src-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; padding: 5px 11px; border-radius: 99px; border: 1px solid var(--line); }
.src-pill .ic { width: 15px; height: 15px; }
.src-pill.orig { color: var(--accent-2); border-color: rgba(61,90,254,.45); background: var(--accent-soft); }
.src-pill.edit { color: var(--gold); border-color: rgba(255,181,71,.4); background: var(--gold-soft); }
.src-pill.off { color: var(--muted); border-style: dashed; border-color: var(--line-2); background: none; }

/* ===== DASHBOARD SaaS ===== */
/* Logo ảnh của studio trong ô logo (thay cho .logo-mark cũ) */
.logo-tile .logo-img { display: block; height: 34px; width: auto; max-width: 150px; object-fit: contain; }
.logo-tile.sm .logo-img { height: 24px; max-width: 110px; }
.logo-tile.lg .logo-img { height: 64px; max-width: 240px; }
.logo-tile .logo-word { display: block; font-family: var(--serif); font-style: italic; font-weight: 700; font-size: 20px; line-height: 34px; color: #0a0a0d; white-space: nowrap; max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.logo-tile.sm .logo-word { font-size: 16px; line-height: 24px; max-width: 110px; }
.logo-tile.lg .logo-word { font-size: 34px; line-height: 64px; max-width: 240px; }

/* Màn hình đăng nhập / đăng ký */
.auth-screen { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px calc(24px + var(--safe-b));
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(61, 90, 254, .16), transparent 70%), var(--bg); }
.auth-card { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 28px 22px; }
.auth-brand { text-align: center; margin-bottom: 6px; }
.auth-word { font-family: var(--serif); font-style: italic; font-weight: 700; font-size: 26px; color: var(--gold); }
.auth-title { font: 800 30px/1.1 var(--font); letter-spacing: -.04em; text-align: center; margin: 10px 0 6px; }
.auth-sub { text-align: center; margin: 0 0 22px; font-size: 14px; }
.auth-form .btn { margin-top: 4px; }
.auth-links { text-align: center; margin: 16px 0 0; font-size: 14px; }
.auth-links a { display: inline-block; padding: 8px 4px; font-weight: 600; }
.form-msg { color: var(--danger); font-size: 13.5px; min-height: 20px; margin: 10px 0 0; text-align: center; }
.form-msg.ok { color: var(--ok); }
.code-input { text-align: center; letter-spacing: .5em; font-size: 22px; font-weight: 800; }

/* Thẻ tiêu đề trong các tab */
.admin-main > .card, .admin-main form > .card { margin-bottom: 16px; }
.card-h { margin: 0 0 16px; font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
@media (max-width: 480px) { .card { padding: 18px; border-radius: 22px; } }

/* Thanh tab */
.tabs-wrap { position: sticky; top: 72px; z-index: 25; max-width: 1200px; margin: 8px auto 0; padding: 0 12px; }
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 5px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 0 16px; border-radius: 999px;
  color: var(--ink-2); font-weight: 700; font-size: 14px; white-space: nowrap; transition: background .25s, color .25s; }
.tab .ic { width: 17px; height: 17px; }
.tab:hover { color: var(--ink); }
.tab.on { background: var(--ink); color: #0a0a0d; }
@media (max-width: 520px) { .tab { padding: 0 10px; font-size: 13px; } .tab .ic { display: none; } }

/* Huy hiệu gói trên thanh trên */
.plan-badge { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 999px; font-size: 12.5px; font-weight: 800; white-space: nowrap;
  border: 1px solid var(--line-2); color: var(--ink-2); }
.plan-badge .ic { width: 14px; height: 14px; }
.plan-badge.paid { color: var(--gold); border-color: rgba(255, 181, 71, .45); background: var(--gold-soft); }
.plan-badge.warn { color: var(--danger); border-color: rgba(255, 90, 82, .5); background: rgba(255, 90, 82, .1); }
.admin-top .brand-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
@media (max-width: 420px) { .plan-badge span { display: none; } .plan-badge { padding: 0 10px; } }

/* Đồng hồ số album đã dùng */
.meter-wrap { margin-bottom: 16px; }
.meter { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 14px 16px; }
.meter-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.meter-bar { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; margin-top: 10px; }
.meter-bar i { display: block; height: 100%; border-radius: 99px; background: var(--accent); transition: width .5s var(--ease); }
.meter.warn .meter-bar i { background: var(--gold); }
.meter.full { border-color: rgba(255, 181, 71, .45); }
.meter.full .meter-bar i { background: var(--danger); }

/* Hướng dẫn chia sẻ Drive, ghi chú khoá, thẻ chào */
.help-box { margin: -4px 0 18px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--accent-soft); border: 1px solid rgba(61, 90, 254, .3); font-size: 14px; }
.help-box ol { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 4px; }
.hint-box { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--gold-soft); border: 1px solid rgba(255, 181, 71, .35); color: var(--gold); font-size: 14px; margin-bottom: 12px; }
.lock-note { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border-radius: var(--radius-sm); background: var(--gold-soft); border: 1px solid rgba(255, 181, 71, .3); color: var(--ink-2); font-size: 13.5px; margin: 12px 0; }
.lock-note .ic { color: var(--gold); width: 18px; height: 18px; margin-top: 1px; }
.lock-note a { font-weight: 700; color: var(--gold); }
.input.locked { opacity: .65; cursor: not-allowed; }
.onboard { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; border-color: rgba(255, 181, 71, .35); background: linear-gradient(135deg, var(--gold-soft), var(--surface)); }
.onboard-ic { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: var(--gold); color: #0a0a0d; flex: none; }
.onboard-txt { flex: 1 1 200px; min-width: 0; }
.onboard-txt h2 { margin: 0 0 4px; font-size: 18px; font-weight: 800; }
.onboard-txt p { margin: 0; font-size: 14px; }
.upgrade-body { text-align: center; }
.upgrade-ic { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 12px; background: var(--gold-soft); color: var(--gold); border: 1px solid rgba(255, 181, 71, .4); }
.upgrade-ic .ic { width: 26px; height: 26px; }
.upgrade-body .steps { text-align: left; }

/* Tab Thương hiệu */
.logo-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.logo-slot { width: 140px; height: 100px; border-radius: 16px; border: 1px dashed var(--line-2); background: repeating-conic-gradient(#fff 0 25%, #e9e9ee 0 50%) 0 0 / 16px 16px; display: grid; place-items: center; overflow: hidden; flex: none; }
.logo-slot img { max-width: 100%; max-height: 100%; object-fit: contain; }
.logo-slot .small { background: rgba(10, 10, 13, .75); padding: 3px 8px; border-radius: 99px; }
.logo-acts { flex: 1 1 200px; min-width: 0; }
.row-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.row-btns > .btn { flex: 0 1 auto; }
.brand-preview { border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--bg); }
.bp-bar { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--glass); border-bottom: 1px solid var(--line); }
.bp-bar .brand { flex: 1; min-width: 0; }
.bp-bar .brand-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.bp-cta { background: var(--accent); color: #fff; font-size: 12.5px; font-weight: 700; padding: 8px 14px; border-radius: 999px; white-space: nowrap; }
.bp-cover { padding: 34px 16px 28px; background: radial-gradient(ellipse 90% 80% at 30% 0%, rgba(61, 90, 254, .25), transparent 70%), #101015; }
.bp-title { font: 800 26px/1.05 var(--font); letter-spacing: -.04em; margin-top: 8px; }
.bp-contacts { display: flex; gap: 8px; flex-wrap: wrap; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.bp-contacts span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; border: 1px solid var(--line); }
.bp-contacts .ic { width: 14px; height: 14px; }
.save-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 4px 0 30px; }
.save-bar.tight { margin: 0; }
.save-bar .form-msg { margin: 0; text-align: left; min-height: 0; flex: 1 1 200px; }

/* Tab Gói dịch vụ */
.cur-plan { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.cur-plan.warn { border-color: rgba(255, 90, 82, .5); }
.cur-name { font: 800 24px/1.15 var(--font); letter-spacing: -.03em; margin-top: 4px; }
.chip-warn { font-size: 12px; font-weight: 800; padding: 6px 12px; border-radius: 99px; background: rgba(255, 90, 82, .14); color: var(--danger); border: 1px solid rgba(255, 90, 82, .4); white-space: nowrap; }
.plans { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .plans { grid-template-columns: repeat(4, 1fr); } }
.plan-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 22px 18px 18px; }
.plan-card.hot { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 18px 50px rgba(61, 90, 254, .18); }
.plan-card.current { border-color: var(--gold); }
.plan-card h3 { margin: 0; font-size: 17px; font-weight: 800; }
.plan-flag { position: absolute; top: -11px; left: 18px; font-size: 11.5px; font-weight: 800; letter-spacing: .04em; padding: 4px 12px; border-radius: 99px; background: var(--accent); color: #fff; }
.plan-card:not(.hot) .plan-flag { background: var(--gold); color: #0a0a0d; }
.plan-price { font: 800 30px/1.1 var(--font); letter-spacing: -.04em; margin: 10px 0 2px; }
.plan-price small { font-size: 13px; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.plan-hint { font-size: 13px; color: var(--gold); min-height: 20px; margin-bottom: 12px; }
.plan-feats { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 9px; flex: 1; font-size: 14px; }
.plan-feats li { display: flex; gap: 9px; align-items: flex-start; color: var(--ink-2); }
.plan-feats .ic { width: 17px; height: 17px; color: var(--ok); margin-top: 2px; stroke-width: 2.2; }

/* Thanh toán + đơn hàng */
.qr-pay { display: grid; place-items: center; }
.qr-pay img { width: 100%; max-width: 280px; border-radius: 16px; background: #fff; padding: 8px; }
.copy-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: rgba(255, 255, 255, .03); margin-bottom: 8px; }
.copy-txt { flex: 1; min-width: 0; display: grid; }
.copy-txt small { color: var(--muted); font-size: 12px; }
.copy-txt b { font-size: 17px; letter-spacing: .02em; overflow-wrap: anywhere; }
.orders { display: grid; gap: 8px; }
.order-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; text-align: left; font: inherit; color: inherit; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); }
.order-row.clickable { cursor: pointer; min-height: 56px; }
.order-row.clickable:hover { border-color: var(--accent); }
.o-main { min-width: 0; display: grid; }
.o-main small { color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
.o-side { display: grid; justify-items: end; gap: 4px; flex: none; }
.o-amount { font-weight: 800; }
.o-badge { font-size: 11.5px; font-weight: 800; padding: 3px 10px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--ink-2); white-space: nowrap; }
.o-badge.pending { color: var(--muted); }
.o-badge.claimed { color: var(--gold); border-color: rgba(255, 181, 71, .45); background: var(--gold-soft); }
.o-badge.paid { color: var(--ok); border-color: rgba(52, 199, 123, .45); background: rgba(52, 199, 123, .1); }
.o-badge.rejected { color: var(--danger); border-color: rgba(255, 90, 82, .45); background: rgba(255, 90, 82, .1); }

/* Thanh toán VietQR + chờ tiền về + mã dùng thử */
.qr-big img { max-width: 300px; }
.qr-tip { text-align: center; margin: 8px 0 14px; }
.pay-wait { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--accent-soft); border: 1px solid rgba(141, 160, 255, .35); color: var(--ink-2); font-size: 13.5px; line-height: 1.4; }
.pay-wait.stopped { background: var(--gold-soft); border-color: rgba(255, 181, 71, .35); color: var(--gold); }
.pay-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--accent-2); animation: payPulse 1.2s ease-in-out infinite; }
.pay-wait.stopped .pay-dot { animation: none; background: var(--gold); }
@keyframes payPulse { 0%, 100% { opacity: .35; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.1); } }
.pay-ok { text-align: center; }
.pay-ok h3 { margin: 0 0 6px; font-size: 20px; }
.trial-card { margin-top: 22px; }
.trial-head { display: flex; gap: 12px; align-items: flex-start; }
.trial-head > .ic { flex: none; width: 24px; height: 24px; color: var(--gold); margin-top: 2px; }
.trial-head h3 { margin: 0; font-size: 17px; font-weight: 800; }
.trial-form { display: flex; gap: 8px; margin-top: 14px; }
.trial-form .input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.trial-form .btn { flex: none; }
.pay-modal .modal-actions { flex-wrap: wrap; }
.pay-modal .modal-actions .btn { flex: 1 1 auto; white-space: normal; line-height: 1.25; min-height: 48px; }

/* ===== Tìm mặt: lối tắt "Ảnh có bạn" / "Xem ảnh vừa tìm thấy" ===== */
.chip.chip-face { display: inline-flex; align-items: center; gap: 7px; padding-left: 4px; border-color: rgba(255, 181, 71, .55); color: var(--gold, #ffb547); font-weight: 700; }
.chip.chip-face img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; flex: none; }
.face-last { display: flex; align-items: center; gap: 12px; width: 100%; margin: 0 0 16px; padding: 10px 12px; border-radius: 16px; text-align: left;
  background: rgba(255, 181, 71, .1); border: 1px solid rgba(255, 181, 71, .45); color: inherit; font: inherit; cursor: pointer; }
.face-last img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; }
.face-last span:nth-child(2) { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.face-last b { color: var(--gold, #ffb547); }
.face-last small { opacity: .7; font-size: 12px; }
.face-last .ic { width: 18px; height: 18px; opacity: .7; }

/* QA fixes */
.selbar .count button { min-height: 40px; padding: 0 10px 0 0; display: inline-flex; align-items: center; }
@media (max-width: 420px) { .plan-badge span { display: inline; font-size: 11.5px; } .plan-badge { padding: 0 10px; gap: 4px; } .plan-badge .ic { display: none; } }
