/* TrueVibe member app — bổ sung trên base.css */
a.nav-item, a.icon-btn, a.list-item { text-decoration: none; color: inherit; }
.sidebar a.nav-item { color: rgba(255,255,255,.64); }
.sidebar a.nav-item.active { color: #fff; }
.toast { visibility: hidden; }
.toast.show { visibility: visible; }
.member-main { padding-bottom: 120px; }
.member-top .eyebrow-sm { margin: 0 0 4px; color: var(--wine); font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.icon-btn { position: relative; }
.icon-btn .dot { position: absolute; top: 9px; right: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--wine); box-shadow: 0 0 0 2px #fff; }
.nav-item .count { margin-left: auto; min-width: 20px; padding: 1px 7px; border-radius: 999px; background: var(--gold); color: #3b241e; font-size: .72rem; font-weight: 800; text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.center { text-align: center; }
.mt { margin-top: 20px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.spacer { flex: 1; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn.small-btn { min-height: 38px; padding: 0 16px; font-size: .88rem; }
.btn.danger { background: #8f2a2a; }
.btn.secondary { background: white; }
.link-btn { padding: 0; border: 0; background: none; color: var(--wine); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.banner { display: flex; gap: 14px; align-items: center; padding: 16px 20px; margin-bottom: 18px; border: 1px solid #e8c2b8; border-radius: 18px; background: #fcefeb; }
.banner b { display: block; }
.banner .btn { margin-left: auto; }
.chip { display: inline-flex; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: .82rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.badge-ok { display: inline-flex; gap: 6px; align-items: center; padding: 5px 11px; border-radius: 999px; background: #e3efe6; color: #2f6b47; font-size: .78rem; font-weight: 700; }
.badge-wait { display: inline-flex; padding: 5px 11px; border-radius: 999px; background: #f3e2de; color: var(--muted); font-size: .78rem; font-weight: 700; }

/* Đăng nhập & màn hình đơn */
.solo { min-height: 100vh; display: grid; place-items: center; padding: 28px 16px; background: radial-gradient(circle at 85% 10%, rgba(212,154,148,.18), transparent 30%), linear-gradient(160deg, #faeeeb, #f2ddd8); }
.solo-card { width: min(470px, 100%); padding: 40px 34px; border: 1px solid var(--line); border-radius: 30px; background: var(--paper); box-shadow: var(--shadow); }
.solo-card.wide { width: min(720px, 100%); }
.solo-card .brand { margin-bottom: 30px; }
.solo-card h1 { margin: 0 0 12px; font-size: clamp(2.3rem, 7vw, 3.2rem); line-height: 1.05; }
.solo-card p { color: var(--muted); }
.field { display: grid; gap: 8px; margin: 18px 0; }
.field > label, .field > .label { font-weight: 600; line-height: 1.4; }
.field .hint { margin: -2px 0 2px; color: var(--muted); font-size: .86rem; }
.field .err { color: #a3262f; font-size: .85rem; font-weight: 600; }
.field.has-err input, .field.has-err textarea, .field.has-err .opts { outline: 2px solid rgba(163,38,47,.35); outline-offset: 3px; border-radius: 14px; }
input[type=text], input[type=email], input[type=number], input[type=tel], textarea, select {
  width: 100%; min-height: 50px; padding: 12px 15px; border: 1px solid #e2c9c3; border-radius: 14px; background: #fff; color: var(--ink); font: inherit;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 2px solid rgba(90,51,40,.35); border-color: var(--wine); }
.otp-input { letter-spacing: .5em; text-align: center; font-size: 1.5rem !important; font-weight: 700; }
.form-actions { display: flex; gap: 10px; justify-content: space-between; align-items: center; margin-top: 30px; flex-wrap: wrap; }

/* Lựa chọn dạng viên thuốc */
.opts { display: flex; flex-wrap: wrap; gap: 9px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span { display: inline-flex; min-height: 44px; align-items: center; padding: 9px 16px; border: 1px solid #e2c9c3; border-radius: 999px; background: #fff; cursor: pointer; line-height: 1.3; transition: background .15s, border-color .15s; }
.opt input:checked + span { border-color: var(--wine); background: var(--wine); color: #fff; }
.opt input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.opts.col { flex-direction: column; align-items: stretch; }
.opts.col .opt span { width: 100%; border-radius: 14px; }
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.scale .opt span { width: 100%; justify-content: center; border-radius: 14px; font-weight: 700; }
.scale-labels { display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: .82rem; }
.range-row { display: flex; gap: 10px; align-items: center; }
.range-row input { max-width: 120px; }
.crit { width: 100%; border-collapse: collapse; }
.crit th, .crit td { padding: 10px 6px; border-bottom: 1px solid var(--line); text-align: center; font-size: .9rem; }
.crit th:first-child, .crit td:first-child { text-align: left; }
.crit input { width: 20px; height: 20px; accent-color: var(--wine); }
.consent { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; }
.consent input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--wine); flex: 0 0 auto; }

/* Hồ sơ nhiều bước */
.wizard { max-width: 760px; }
.steps { display: flex; gap: 6px; margin-bottom: 26px; }
.steps i { flex: 1; height: 5px; border-radius: 9px; background: #ead6d1; }
.steps i.done { background: var(--wine); }
.steps i.cur { background: var(--gold); }
.wizard h2 { margin: 6px 0 8px; font-size: clamp(2.2rem, 5vw, 3rem); }
.wizard .intro { color: var(--muted); margin: 0 0 10px; }
.review-sec { padding: 18px 0; border-bottom: 1px solid var(--line); }
.review-sec h4 { margin: 0 0 8px; display: flex; justify-content: space-between; color: var(--wine); font-size: .76rem; letter-spacing: .13em; text-transform: uppercase; }
.review-sec dl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px 18px; margin: 0; font-size: .9rem; }
.review-sec dt { color: var(--muted); }
.review-sec dd { margin: 0; }
.ready { text-align: center; padding: 30px 0; }
.ready h2 { font-size: clamp(2.6rem, 8vw, 4.2rem); }

/* Hành trình */
.journey-list { display: grid; gap: 0; margin-top: 18px; }
.journey-list > div { display: flex; gap: 14px; padding: 13px 0; border-bottom: 1px dashed var(--line); }
.journey-list > div:last-child { border: 0; }
.journey-list .n { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; background: #f1dcd7; color: var(--wine); font-size: .8rem; font-weight: 800; }
.journey-list .done .n { background: var(--wine); color: #fff; }
.journey-list .now .n { background: var(--gold); color: #3b241e; }
.journey-list b, .journey-list small { display: block; }
.journey-list small { color: var(--muted); }

/* Thẻ giới thiệu */
.profile-cover .meta { margin: 8px 0 0; color: rgba(255,255,255,.82); }
.profile-cover h2 { font-family: var(--serif); }
.badges-row { display: flex; flex-wrap: wrap; gap: 6px; position: absolute; right: 20px; top: 20px; left: 20px; justify-content: flex-end; }
.badges-row span { padding: 6px 11px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; background: rgba(0,0,0,.25); backdrop-filter: blur(12px); font-size: .74rem; font-weight: 700; }
.reason { margin-top: 16px; padding: 16px; border-radius: 16px; background: #f6e6e2; color: var(--ink); font-size: .92rem; }
.deadline { margin-top: 14px; font-size: .84rem; color: var(--muted); }
.mutual { text-align: center; padding: 50px 26px; color: #fff; background: linear-gradient(145deg, #6b3d30, #3a221b); border-radius: 26px; }
.mutual h2 { margin: 10px 0; font-size: clamp(2.4rem, 6vw, 3.8rem); color: #fff; }
.mutual p { color: rgba(255,255,255,.75); max-width: 460px; margin: 0 auto; }

/* Danh sách */
.list { display: grid; }
.list-item { display: flex; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.list-item:last-child { border: 0; }
.list-item b, .list-item small { display: block; }
.list-item small { color: var(--muted); }
.list-item .right { margin-left: auto; text-align: right; }
.list-item.unread b::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 8px; border-radius: 50%; background: var(--wine); vertical-align: middle; }

/* Thanh toán */
.pkg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.pkg { padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: #fff; display: flex; flex-direction: column; gap: 8px; }
.pkg .price { font: 600 2rem/1.1 var(--serif); color: var(--wine); }
.pkg .btn { margin-top: auto; }
.pay-box { display: grid; grid-template-columns: 260px 1fr; gap: 26px; align-items: start; }
.qr { width: 100%; aspect-ratio: 1; border-radius: 18px; background: #fff; border: 1px solid var(--line); object-fit: contain; }
.qr-missing { display: grid; place-items: center; text-align: center; padding: 20px; color: var(--muted); }
.kv { display: grid; gap: 10px; }
.kv > div { display: flex; justify-content: space-between; gap: 14px; padding: 10px 14px; border-radius: 12px; background: #f8ebe8; }
.kv span { color: var(--muted); }
.kv b { text-align: right; word-break: break-all; }
.copy { margin-left: 8px; padding: 2px 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: .75rem; cursor: pointer; }
.paid-ok { padding: 30px; text-align: center; }

/* Buổi hẹn */
.slot-list { display: grid; gap: 8px; }
.slot-list .opt span { width: 100%; border-radius: 14px; }
.urgent-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.date-hero { padding: 28px; border-radius: 26px; color: #fff; background: linear-gradient(145deg, #3d241d, #5a3328); }
.date-hero h2 { margin: 6px 0; font-size: clamp(2rem, 5vw, 3rem); color: #fff; }
.date-hero p { color: rgba(255,255,255,.75); margin: 4px 0; }

/* Hỗ trợ */
.chat { display: grid; gap: 10px; max-height: 420px; overflow: auto; padding: 4px; }
.msg { max-width: 80%; padding: 11px 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); white-space: pre-wrap; }
.msg.me { margin-left: auto; background: var(--wine); color: #fff; border-color: var(--wine); }
.msg small { display: block; margin-top: 4px; opacity: .65; font-size: .72rem; }

.loading { padding: 60px; text-align: center; color: var(--muted); }
.spinner { width: 28px; height: 28px; margin: 0 auto 12px; border: 3px solid #ead6d1; border-top-color: var(--wine); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 820px) {
  .member-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .member-main { padding: 22px 16px 120px; }
  .member-top { margin-bottom: 24px; }
  .mobile-nav { position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 20; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 7px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,247,245,.94); backdrop-filter: blur(14px); box-shadow: var(--shadow); }
  .mobile-nav .nav-item { min-height: 54px; flex-direction: column; justify-content: center; gap: 4px; padding: 0 4px; color: var(--muted); font-size: .7rem; text-align: center; }
  .mobile-nav .nav-item.active { color: var(--wine); background: #f4dfda; }
  .mobile-nav .nav-item .count { position: absolute; margin: -30px 0 0 26px; }
  .mobile-nav .nav-item { position: relative; }
  .pay-box { grid-template-columns: 1fr; }
  .pay-box .qr { max-width: 280px; margin: 0 auto; }
  .card-pad { padding: 22px; }
  .solo-card { padding: 30px 22px; }
  .review-sec dl { grid-template-columns: 1fr; }
  .review-sec dd { margin-bottom: 8px; }
  .urgent-row { grid-template-columns: 1fr; }
  .profile-cover h2 { margin-top: 90px; }
  .crit th, .crit td { font-size: .78rem; padding: 8px 2px; }
}

.google-btn { width: 100%; gap: 10px; border-color: #e2c9c3 !important; }
.or { display: flex; align-items: center; gap: 12px; margin: 22px 0 4px; color: var(--muted); font-size: .82rem; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Ai được thấy */
.vis-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; }
.vis-lbl { color: var(--muted); font-size: .78rem; font-weight: 600; }
.vi { width: 14px; height: 14px; margin-right: 5px; vertical-align: -2px; flex: 0 0 auto; }
.vis { display: inline-flex; flex-wrap: nowrap; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: #f8ebe8; align-self: flex-start; }
.vis button { display: inline-flex; align-items: center; padding: 6px 12px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: .8rem; font-weight: 600; cursor: pointer; }
.vis button.on { background: #fff; color: var(--wine); box-shadow: 0 1px 4px rgba(66,45,39,.12); }
.vis-note { margin: 2px 0 0; color: var(--muted); font-size: .78rem; }
.vis-tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: #f2e3df; color: var(--muted); font-size: .72rem; white-space: nowrap; }
.vis-tag.pub { background: #e3efe6; color: #2f6b47; }
@media (max-width: 820px) { .vis button { padding: 6px 10px; font-size: .76rem; } }

.setting-row .link-btn { white-space: nowrap; }
.setting-row small { overflow-wrap: anywhere; }

/* Icon Lucide */
.lucide { width: 20px; height: 20px; flex: 0 0 auto; }
.lucide.vi { width: 14px; height: 14px; margin-right: 5px; vertical-align: -2px; }
.lucide.bi { width: 18px; height: 18px; margin-left: 8px; }
.journey-list .n .lucide { width: 15px; height: 15px; }
.empty-icon .lucide { width: 32px; height: 32px; stroke-width: 1.6; }
.list-item .avatar .lucide { width: 18px; height: 18px; }
.badges-row span, .badge-ok, .privacy-note { display: inline-flex; align-items: center; }
.privacy-note { display: flex; align-items: flex-start; gap: 2px; }
.privacy-note .lucide { margin-top: 3px; }
.btn .lucide.bi { margin-left: 8px; }

/* ---------- Mobile ---------- */
.decide-bar, .only-mobile { display: none; }
html { -webkit-text-size-adjust: 100%; }
body { -webkit-tap-highlight-color: transparent; }
button, a, .opt span { touch-action: manipulation; }
@media (max-width: 820px) {
  .only-mobile { display: block; }
  a.only-mobile { display: inline-flex; margin-top: 10px; }
  .member-main { padding: max(16px, env(safe-area-inset-top)) 14px calc(110px + env(safe-area-inset-bottom)); }
  .member-top { align-items: flex-start; margin-bottom: 18px; }
  .member-top h1 { font-size: 1.45rem; }
  .member-top p { font-size: .88rem; }
  .icon-btn { width: 42px; height: 42px; }
  .mobile-nav { bottom: max(10px, env(safe-area-inset-bottom)); }
  .toast { bottom: calc(96px + env(safe-area-inset-bottom)); max-width: calc(100% - 32px); text-align: center; }
  .card { border-radius: 22px; }
  .card-pad { padding: 20px 18px; }
  .card h3 { font-size: 1.5rem; }
  .hero-member { min-height: 0; gap: 22px; padding: 24px 20px; }
  .hero-member h2 { font-size: 2.3rem; }
  .hero-member .btn, .date-hero .btn { width: 100%; }
  .dashboard-grid, .stack { gap: 14px; }
  .empty-state { padding: 44px 20px; }
  .empty-state h2 { font-size: 2rem; }
  /* Form hồ sơ: tràn màn hình, nút Tiếp tục dính đáy */
  .solo { padding: 0; place-items: stretch; }
  .solo-card, .solo-card.wide { width: 100%; min-height: 100dvh; border: 0; border-radius: 0; box-shadow: none; padding: max(22px, env(safe-area-inset-top)) 18px 24px; }
  .solo-card h1 { font-size: 2.2rem; }
  .solo .wizard .form-actions { position: sticky; bottom: 0; z-index: 5; margin: 24px -18px -24px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); background: rgba(255,247,245,.96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
  .wizard .form-actions .btn { flex: 1; }
  .card.wizard .form-actions { position: sticky; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 5; margin: 20px -18px -20px; padding: 12px 18px; background: rgba(255,247,245,.97); border-top: 1px solid var(--line); border-radius: 0 0 22px 22px; }
  .wizard h2 { font-size: 2.2rem; }
  .steps { position: sticky; top: 0; z-index: 4; margin: 0 -18px 18px; padding: 10px 18px; background: rgba(255,247,245,.96); }
  .opts.col .opt span { min-height: 48px; }
  .opt span { min-height: 46px; padding: 10px 16px; }
  /* Lời giới thiệu: thanh quyết định dính trên thanh điều hướng */
  .decision-card .decision-buttons { display: none; }
  .decide-bar { display: grid; grid-template-columns: 1fr 1.3fr; gap: 10px; position: fixed; left: 10px; right: 10px; bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 19; padding: 10px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,247,245,.97); backdrop-filter: blur(12px); box-shadow: var(--shadow); }
  .decide-bar .btn { min-height: 48px; padding: 0 10px; }
  .intro-layout:has(+ .decide-bar) { padding-bottom: 80px; }
  .profile-cover { min-height: 220px; padding: 22px; }
  .profile-cover h2 { font-size: 2.6rem; }
  .profile-content { padding: 6px 20px 20px; }
  .quote { font-size: 1.3rem; }
  /* Hộp thoại thành tấm trượt từ đáy */
  dialog { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 24px 24px 0 0; }
  .dialog-body { padding: 24px 20px calc(20px + env(safe-area-inset-bottom)); }
  .dialog-body h2 { font-size: 1.9rem; }
  .dialog-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .dialog-actions .btn { min-height: 50px; }
  .kv > div { flex-direction: column; gap: 2px; }
  .kv b { text-align: left; }
  .pkg .price { font-size: 1.8rem; }
  .chat { max-height: 50vh; }
  .vis-row { flex-direction: column; align-items: flex-start; gap: 4px; }
}
@media (max-width: 360px) {
  .mobile-nav .nav-item { font-size: .64rem; }
  .solo-card h1, .wizard h2 { font-size: 1.9rem; }
}

/* ---------- Thành phần mới + tinh chỉnh giao diện ---------- */
.card { transition: box-shadow .2s ease, transform .2s ease; }
.card-kicker { display: flex; align-items: center; gap: 2px; }
.state-card h3 { font-size: clamp(1.8rem, 3.4vw, 2.3rem); margin: 4px 0 10px; }
.state-card.warn { border-color: #e8c2b8; background: linear-gradient(180deg, #fff6f3, #fff7f5); }
.state-card .reason { margin: 6px 0 4px; background: #fff; border: 1px solid #efd2ca; white-space: pre-wrap; }
.banner { border-radius: 18px; }
.banner > .lucide { color: var(--wine); }
.banner.warn { border-color: #e8c2b8; background: #fdeeea; }
.banner small { display: block; }

/* Vòng tiến độ */
.ring { --p: 0; width: 64px; height: 64px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%;
  background: conic-gradient(var(--wine) calc(var(--p) * 1%), #f1dcd7 0); }
.ring span { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50%; background: var(--paper); font-weight: 800; font-size: .82rem; }
.status-card b { font-size: 1.05rem; }

/* Việc cần làm */
.todo { display: grid; gap: 8px; margin-top: 6px; }
.todo-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px; background: #fff; color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s; }
.todo-item:hover { border-color: var(--wine); transform: translateY(-1px); }
.todo-ic { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 11px; background: #f5e1dc; color: var(--wine); }
.todo-ic .lucide { width: 17px; height: 17px; }
.todo-t { flex: 1; font-size: .92rem; line-height: 1.35; }
.todo-cta { color: var(--wine); font-size: .82rem; font-weight: 700; white-space: nowrap; }

/* Thẻ chờ giới thiệu có ảnh */
.waiting-card { overflow: hidden; }
.waiting-img { height: 220px; background: linear-gradient(180deg, transparent 50%, rgba(58,35,29,.25)), url('/assets/truevibe-hero.png') 62% 38% / cover; }
.waiting-card h3 { font-size: clamp(1.8rem, 3.4vw, 2.3rem); margin: 4px 0 10px; }
.deadline-chip { display: inline-flex; align-items: center; padding: 8px 14px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; color: rgba(255,255,255,.85); font-size: .85rem; }
.date-hero p { display: flex; align-items: center; gap: 2px; }

/* Hướng dẫn an toàn, FAQ */
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
.guide summary, .faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 700; }
.guide summary span { display: inline-flex; align-items: center; color: var(--wine); }
.chev { width: 18px; height: 18px; transition: transform .2s; color: var(--muted); }
details[open] > summary .chev { transform: rotate(180deg); }
.guide ul { margin: 14px 0 0; padding-left: 18px; color: var(--muted); display: grid; gap: 8px; font-size: .92rem; }
.faq-group { margin: 18px 0 4px; color: var(--wine); font-size: .74rem; letter-spacing: .13em; text-transform: uppercase; }
.faq-group:first-of-type { margin-top: 4px; }
.faq { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq summary { font-weight: 600; font-size: .95rem; }
.faq p { margin: 8px 0 0; color: var(--muted); font-size: .9rem; }

/* Thông báo */
.list-item.notif { align-items: flex-start; }
.n-ic { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 12px; background: #f5e1dc; color: var(--wine); }
.n-ic .lucide { width: 17px; height: 17px; }
.expired-item { opacity: .55; }
.expired-item .n-ic { background: #eee; color: var(--muted); }
small.expired { display: inline-block; margin-top: 4px; padding: 1px 8px; border-radius: 999px; background: #f2e3df; color: var(--muted); font-size: .72rem; font-weight: 700; }

/* Nút hành động trong ngày hẹn */
.urgent-row { grid-template-columns: repeat(2, 1fr); }
.urgent-row .btn { gap: 2px; }

@media (hover: hover) { .card:hover { box-shadow: 0 18px 48px rgba(66,45,39,.09); } }
@media (max-width: 820px) {
  .urgent-row { grid-template-columns: 1fr; }
  .waiting-img { height: 170px; }
  .member-actions { flex-direction: column; align-items: stretch; }
  .deadline-chip { justify-content: center; }
  .banner { flex-wrap: wrap; }
  .banner .btn { margin-left: 0; width: 100%; }
}
.list-item .right small { white-space: nowrap; }
.dashboard-grid > .stack > .mt { margin-top: 0; }
.dashboard-grid { align-items: start; }
.date-hero .member-actions { gap: 8px; flex-direction: row; flex-wrap: wrap; }
.date-hero .btn.small-btn { width: auto; }

/* Ảnh hồ sơ */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.ph, .ph-add { position: relative; margin: 0; aspect-ratio: 4/5; border-radius: 16px; overflow: hidden; background: #f3e2de; }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph.main { outline: 3px solid var(--wine); outline-offset: -3px; }
.ph-badge, .ph-btn { position: absolute; left: 8px; bottom: 8px; padding: 4px 9px; border: 0; border-radius: 999px; background: rgba(58,35,29,.72); color: #fff; font-size: .72rem; font-weight: 700; cursor: pointer; }
.ph-badge { background: var(--wine); cursor: default; }
.ph-del { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--ink); cursor: pointer; }
.ph-del .lucide { width: 16px; height: 16px; }
.ph-add { display: grid; place-content: center; justify-items: center; gap: 6px; border: 2px dashed #d6c5b6; color: var(--wine); font-weight: 700; font-size: .85rem; cursor: pointer; }
.ph-add.busy { opacity: .5; pointer-events: none; }
.ref-box { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.ref-box code { flex: 1 1 200px; padding: 10px 12px; border-radius: 12px; background: #f8ebe8; font-size: .82rem; word-break: break-all; }
.partner-ph { float: right; width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255,255,255,.3); margin-left: 12px; }
.ph-av { object-fit: cover; padding: 0; }
.mutual-ph { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; border: 4px solid rgba(255,255,255,.3); margin-bottom: 10px; }
@media (max-width: 820px) { .partner-ph { width: 64px; height: 64px; } }

/* Chọn ngôn ngữ VI/EN */
.solo-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.solo-head .brand { margin-bottom: 30px; }
.lang-switch { flex: none; }
.lang-switch button { padding: 5px 11px; font-size: .78rem; letter-spacing: .02em; }
.setting-row .lang-switch button { padding: 6px 12px; }

/* Coach — người kết nối */
.script { font: 600 1.1rem/1 "Dancing Script", cursive; color: #c48a85; }
.coach-av { width: 64px; height: 64px; flex: 0 0 auto; border-radius: 50%; object-fit: cover; border: 3px solid #f6e1df; box-shadow: 0 6px 18px rgba(90,51,40,.15); }
.coach-av.sm { width: 30px; height: 30px; border-width: 2px; box-shadow: none; margin-right: 8px; vertical-align: middle; }
.journey-list .coach-av.sm { width: 30px; height: 30px; margin: 0; }
.coach-card { background: linear-gradient(160deg, #fff7f5, #f6e1df); }
.card-kicker .coach-av.sm { width: 24px; height: 24px; margin-right: 6px; }

/* Cài app và thông báo */
.install-card { text-align: left; }
.install-card .badge-ok { margin: 6px 0; }
.submit-install { margin: 22px 0 6px; text-align: left; }
.submit-install .install-card { box-shadow: none; background: #fff; }
.install-wrap { max-width: 720px; }
[data-push-status] { display: flex; align-items: center; color: #2f6b47; }

/* Bảng phí */
.fee-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.pkg.fee.done { border-color: #bfd8c5; background: #f6fbf7; }
.fee-note { color: var(--wine); font-weight: 600; }
.offer { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 18px; background: linear-gradient(135deg, #f8e3e0, #f3d6d2); }
.offer > .lucide { color: var(--wine); margin-top: 2px; }
.offer small { display: block; margin-top: 4px; color: var(--muted); }
.offer .offer-stat { color: var(--ink); }

/* Giá tiền dùng font chữ thường cho dễ đọc số */
.pkg .price { font: 700 1.9rem/1.1 var(--sans); letter-spacing: -.02em; }
/* Người kết nối: biểu tượng thay cho ảnh */
span.coach-av { display: inline-grid; place-items: center; background: linear-gradient(160deg, #5a3328, #7a4636); color: #f6d3d0; }
span.coach-av .lucide { width: 55%; height: 55%; }
/* Ảnh riêng tư – mở ảnh khi cả hai đồng ý */
.profile-cover { position: relative; }
.photo-lock { position: absolute; top: 18px; left: 18px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.14); color: #fbe9e6; font-size: .78rem; font-weight: 600; backdrop-filter: blur(4px); }
.profile-cover.has-photo { padding-top: 0; }
.cover-ph { display: block; width: calc(100% + 60px); margin: -30px -30px 18px; max-height: 420px; object-fit: cover; object-position: center 25%; }
@media (max-width: 640px) { .cover-ph { width: calc(100% + 44px); margin: -22px -22px 14px; } }
.ph-state { position: absolute; left: 8px; top: 8px; padding: 3px 8px; border-radius: 999px; font-size: .68rem; font-weight: 700; background: rgba(255,255,255,.9); color: #8a5a00; }
.ph-state.approved { color: #2f6b3a; }
.ph-state.rejected { color: #a3262a; }
.ph-del { z-index: 2; }
.ph-add.locked { opacity: .45; cursor: not-allowed; }
.check-row { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; line-height: 1.5; cursor: pointer; }
.check-row input { margin-top: 3px; width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--wine); }
.decision-card .check-row { margin: 14px 0 4px; }
.decision-buttons .btn[disabled] { opacity: .45; cursor: not-allowed; }
.ph-stale, .ph-req { position: absolute; left: 8px; bottom: 36px; padding: 3px 8px; border-radius: 999px; font-size: .68rem; font-weight: 700; background: rgba(255,255,255,.92); color: #8a5a00; }
.ph-req { bottom: auto; top: 8px; right: 8px; left: auto; color: #a3262a; }
/* TrueVibe Identity Card */
.id-card { margin: 14px; padding: 22px; border-radius: 22px; background: #f8e6e2; color: #3a221b; }
.id-top { display: flex; gap: 18px; align-items: center; }
.id-av { flex: 0 0 auto; width: 112px; height: 112px; border-radius: 22px; background: #ebc5c0; display: grid; place-items: center; color: #5a3328; overflow: hidden; }
.id-av .lucide { width: 46px; height: 46px; stroke-width: 1.6; }
.id-av img { display: block; width: 112px; height: 112px; object-fit: cover; }
.id-kicker { margin: 0 0 4px; font-size: .78rem; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: #5a3328; }
.id-main h2 { margin: 0; font-size: clamp(1.7rem, 4vw, 2.2rem); line-height: 1.1; color: #3a221b; }
.id-meta { margin: 6px 0 0; font-size: 1.05rem; color: #4a2f27; }
.id-badges { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; }
.id-badges span { display: inline-flex; align-items: center; gap: 5px; font-size: .86rem; color: #4a2f27; }
.id-badges .lucide { width: 15px; height: 15px; }
.id-body { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(90,51,40,.18); }
.id-traits { margin: 0 0 10px; font-family: var(--serif); font-weight: 700; font-size: 1.2rem; color: #3a221b; }
.id-quote { margin: 0; color: #5b4741; line-height: 1.6; }
.id-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 16px; font-size: .86rem; color: #4a2f27; }
.id-foot span { display: inline-flex; align-items: center; gap: 6px; }
.id-foot .lucide { width: 15px; height: 15px; }
.id-foot b { font-family: var(--serif); font-weight: 700; color: #5a3328; }
.id-sub { margin: 0 0 14px; color: var(--muted, #7a645e); font-size: .92rem; }
@media (max-width: 520px) { .id-card { margin: 10px; padding: 18px; } .id-av, .id-av img { width: 88px; height: 88px; } .id-top { gap: 14px; } }
/* Tab của trang Hồ sơ: mỗi tab một route */
.subtabs { display: flex; gap: 8px; margin: 0 0 18px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.subtabs::-webkit-scrollbar { display: none; }
.subtabs a { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; border: 1px solid rgba(90,51,40,.14); background: #fff; color: var(--ink, #3a221b); font-weight: 600; font-size: .9rem; text-decoration: none; }
.subtabs a.on { background: var(--wine, #5a3328); border-color: transparent; color: #fff; }
.subtabs .lucide { width: 16px; height: 16px; }
.tab-narrow { max-width: 820px; }
.tab-narrow > * + * { margin-top: 16px; }

.journey-img { display: block; width: 100%; max-width: 360px; height: auto; margin: 0 auto 18px; border-radius: 20px; box-shadow: 0 8px 24px rgba(58, 35, 29, .14); }
.solo-card .tagline { margin: 0 0 14px; color: var(--wine); font-weight: 700; letter-spacing: .02em; text-align: center; }
