/* Profile, addresses, wishlist, alerts, payments, chat. OWNER: profile/chat agent.
   Colours only through the var(--…) tokens defined in app.css. */

/* ── Utilities ──────────────────────────────────────────────────────────── */

.grow { flex: 1; min-width: 0; }
.pill.tint-1 { background: var(--tint-1); color: var(--tint-ink-1); }
.pill.tint-2 { background: var(--tint-2); color: var(--tint-ink-2); }
.pill.tint-3 { background: var(--tint-3); color: var(--tint-ink-3); }
.pill.tint-4 { background: var(--tint-4); color: var(--tint-ink-4); }
.pill.tint-5 { background: var(--tint-5); color: var(--tint-ink-5); }
.pill.tint-6 { background: var(--tint-6); color: var(--tint-ink-6); }
.pill.sm { height: 20px; padding: 0 8px; font-size: 11px; font-weight: 500; vertical-align: middle; }

.ico-badge {
  width: 32px; height: 32px; flex: none; border-radius: var(--pill);
  display: inline-flex; align-items: center; justify-content: center;
}
.ico-badge svg.i { width: 18px; height: 18px; }
.state .ico-badge { width: 44px; height: 44px; }
.state .ico-badge svg.i { width: 22px; height: 22px; }

.link-btn.danger { color: var(--error); }
.link-btn.muted { color: var(--muted); }
.link-btn:disabled { opacity: .5; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap) 10px; }
.wrap-chips { display: flex; flex-wrap: wrap; gap: 8px; }
textarea.input.area { min-height: 0; resize: none; }

.switch {
  width: 46px; height: 28px; flex: none; border: 0; padding: 3px; border-radius: var(--pill);
  background: var(--line2); display: inline-flex; align-items: center; transition: background-color var(--t-fast) ease;
}
.switch i { width: 22px; height: 22px; border-radius: var(--pill); background: var(--on-accent); box-shadow: var(--shadow); transition: transform var(--t-base) var(--spring); }
.switch.on { background: var(--accent-fill); }
.switch.on i { transform: translateX(18px); }
.switch.busy, .switch:disabled { opacity: .5; }

.sub-head h1 { font-size: var(--fs-h1); font-weight: 400; letter-spacing: 0; }

/* ── Profile ────────────────────────────────────────────────────────────── */

.prof-top { display: flex; flex-direction: column; gap: var(--section-gap); }

.prof-head { gap: 12px; padding-bottom: 14px; }
.prof-who { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.prof-who h1 { -webkit-line-clamp: 2; }

.sizes-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.sizes-grid div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sizes-grid span { font-size: 12px; color: var(--muted); font-weight: 500; }
.sizes-grid b { font-size: 14px; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; overflow-wrap: anywhere; }

.wish-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.wish-mini { display: flex; flex-direction: column; gap: 4px; min-width: 0; color: var(--text); }
.wish-mini .ph {
  aspect-ratio: 1; border-radius: var(--r); overflow: hidden; background: var(--surface2);
  display: flex; align-items: center; justify-content: center;
}
.wish-mini .ph img { width: 100%; height: 100%; object-fit: cover; }
.wish-mini .ph span { font-family: var(--display); font-weight: 400; font-size: 22px; color: var(--swatch-text); opacity: .6; }
.wish-mini .t { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wish-mini .s { font-size: 12px; color: var(--muted); margin-top: -2px; }

.concierge-card {
  display: flex; align-items: center; gap: 12px; padding: var(--row-card-pad); border-radius: var(--r-lg);
  background: var(--surface); border: var(--card-border); color: var(--text); font-size: 15px; font-weight: 500;
}
.concierge-card span:not(.ico-badge) { flex: 1; }
.concierge-card > svg { color: var(--faint); }

/* ── Addresses, alerts ──────────────────────────────────────────────────── */

.addr-card { display: flex; flex-direction: column; gap: 12px; }
.addr-top, .alert-top { display: flex; gap: 12px; align-items: flex-start; }
.alert-top { align-items: center; }
.addr-label { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.addr-notes { display: flex; gap: 6px; align-items: flex-start; font-size: 13px; color: var(--note-text); margin-top: 2px; }
.addr-notes svg { margin-top: 1px; color: var(--muted); }
.addr-actions { display: flex; align-items: center; gap: 20px; padding-top: 10px; border-top: 1px solid var(--line); }
.addr-actions.confirm span { flex: 1; font-size: 14px; font-weight: 500; }
.alert-t { font-size: 15px; font-weight: 500; line-height: 1.35; }
.alert-card.off .alert-t { color: var(--muted); }

/* ── Payments ───────────────────────────────────────────────────────────── */

.pay-row { display: flex; align-items: center; gap: 12px; padding: var(--row-y) 0; border-bottom: 1px solid var(--line); }
.pay-t { font-size: 15px; font-weight: 550; }
.pay-row .sub { font-size: 13px; color: var(--muted); }
.pay-amt { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }

/* ── Chat ───────────────────────────────────────────────────────────────── */

.screen.chat { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.chat-head {
  position: sticky; top: 0; z-index: 15; background: var(--glass);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line);
}
.chat-head .header h1 { font-family: var(--display); font-size: 19px; font-weight: 400; letter-spacing: 0; -webkit-line-clamp: 1; }
.chat-list { flex: 1; display: flex; flex-direction: column; padding: 4px var(--gutter) 12px; }
.chat-top { min-height: 28px; display: flex; justify-content: center; align-items: center; }
.chat-empty { margin-top: 24px; }
.chat-day { align-self: center; font-size: 12px; font-weight: 500; color: var(--muted); padding: 10px 0 6px; }
.chat-sys { align-self: center; text-align: center; max-width: 82%; font-size: 12px; color: var(--muted); padding: 6px 0 10px; }

.bubble-row { display: flex; flex-direction: column; max-width: 80%; margin-top: 3px; }
.bubble-row.me { align-self: flex-end; align-items: flex-end; }
.bubble-row.them { align-self: flex-start; align-items: flex-start; }
.bubble-row.end { margin-bottom: 8px; }
.bubble {
  padding: 8px 13px; border-radius: 18px; font-size: 15px; line-height: 1.4;
  overflow-wrap: anywhere; max-width: 100%;
}
.bubble-text { white-space: pre-wrap; }
.bubble.me { background: var(--accent-fill); color: var(--on-accent); }
.bubble.them { background: var(--surface); color: var(--text); border: var(--card-border); }
.bubble-row.me.end .bubble { border-bottom-right-radius: 6px; }
.bubble-row.them.end .bubble { border-bottom-left-radius: 6px; }
.bubble.sending { opacity: .7; }
.bubble.failed { opacity: .6; box-shadow: 0 0 0 1.5px var(--error); }
.bubble-imgs { display: grid; gap: 4px; margin: -4px -8px 6px; }
.bubble-imgs:last-child { margin-bottom: -4px; }
.bubble-imgs.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bubble-imgs img { width: 100%; border-radius: var(--r); object-fit: cover; aspect-ratio: 1; }
.bubble-imgs.n1 img { aspect-ratio: auto; max-height: 260px; max-width: 220px; }
.chat-meta { font-size: 11px; font-weight: 500; color: var(--faint); margin: 4px 6px 0; }
button.chat-meta { background: none; border: 0; padding: 0; display: inline-flex; align-items: center; gap: 4px; color: var(--error); font-size: 12px; }

/* Sticky (not fixed) so it stays inside the content column on every width. */
.composer {
  position: sticky; bottom: 0; z-index: 20;
  padding: 8px 12px calc(var(--safe-bottom) + 8px); background: var(--glass);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line);
}
.composer-row { display: flex; align-items: flex-end; gap: 8px; }
.composer .icon-btn { width: 44px; height: 44px; }
textarea.input.chat-input {
  min-height: 44px; height: 44px; max-height: 128px; padding: 10px 16px; border-radius: 22px;
  resize: none; line-height: 22px; font-size: 16px;
}
.attach-row { display: flex; gap: 8px; padding: 0 4px 10px; overflow-x: auto; }
.attach { position: relative; width: 60px; height: 60px; flex: none; border-radius: var(--r-sm); overflow: hidden; background: var(--surface2); }
.attach img { width: 100%; height: 100%; object-fit: cover; }
.attach.error { box-shadow: inset 0 0 0 2px var(--error); }
.attach-busy { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: var(--scrim); }
.attach button {
  position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border: 0; padding: 0; border-radius: var(--pill);
  background: var(--bg); color: var(--text); display: flex; align-items: center; justify-content: center;
}
.attach button svg.i { width: 12px; height: 12px; }

/* ── Messages (Chat tab) ────────────────────────────────────────────────── */

.thread { display: flex; align-items: center; gap: 12px; padding: var(--row-y) 0; border-bottom: 1px solid var(--line); color: var(--text); line-height: 1.3; }
.thread .stack { gap: 2px; }
.thread.pinned { padding: var(--row-card-pad); border: var(--card-border); border-radius: var(--r-lg); background: var(--surface); }
.thread:last-child { border-bottom: 0; }
.thread-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.thread-name { flex: 1; min-width: 0; font-size: 16px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread-name.sm { font-size: 15px; }
.thread.pinned .thread-name { font-family: var(--display); font-size: 18px; font-weight: 400; letter-spacing: 0; }
.thread-when { font-size: 12px; color: var(--faint); font-weight: 500; flex: none; }
.thread-status { font-size: 12px; color: var(--muted); font-weight: 500; }
.thread-status.on { color: var(--tint-ink-5); }
.thread-last { flex: 1; min-width: 0; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread-last.unread { color: var(--text); font-weight: 550; }
.unread-badge {
  flex: none; min-width: 22px; height: 22px; padding: 0 7px; border-radius: var(--pill);
  background: var(--accent-fill); color: var(--on-accent); font-size: 12px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
}
.wa-row { border-bottom: 0; color: var(--text); }


/* ── Chat header, voice notes ───────────────────────────────────────────── */

.chat-header { gap: 10px; }
.chat-who { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; color: var(--text); }
.chat-who h1 { font-size: 17px; line-height: 1.2; -webkit-line-clamp: 1; }
.chat-head .header .chat-who h1 { font-size: 17px; }
.wa-btn { background: var(--surface); color: var(--text); }

.chat .voice { display: flex; align-items: center; gap: 10px; min-width: 196px; padding: 2px 0; }
.chat .voice-btn {
  width: 34px; height: 34px; flex: none; border: 0; padding: 0; border-radius: var(--pill);
  background: var(--accent-fill); color: var(--on-accent); display: inline-flex; align-items: center; justify-content: center;
}
.chat .voice-wave { flex: 1; display: flex; align-items: center; gap: 2px; height: 20px; color: var(--accent-text); }
.chat .voice-wave i { width: 3px; border-radius: 2px; background: currentColor; opacity: .3; }
.chat .voice-wave i.on { opacity: 1; }
.chat .voice-time { font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--muted); min-width: 30px; text-align: right; }
.chat .voice.on-dark .voice-btn { background: var(--on-accent); color: var(--accent-fill); }
.chat .voice.on-dark .voice-wave, .chat .voice.on-dark .voice-time { color: var(--on-accent); }
.bubble.has-voice { padding: 8px 12px; }

.rec-row { align-items: center; }
.rec-pill {
  flex: 1; min-width: 0; height: 44px; padding: 0 16px; border-radius: 22px; background: var(--surface);
  display: flex; align-items: center; gap: 10px;
}
.rec-pill.preview { padding: 0 10px; }
.rec-pill .voice { flex: 1; min-width: 0; }
.rec-dot { width: 10px; height: 10px; border-radius: var(--pill); background: var(--coral); animation: rec-pulse 1.2s ease-in-out infinite; }
.rec-hint { font-size: 14px; color: var(--muted); }
.rec-pill .voice-time { color: var(--text); font-size: 15px; }
@keyframes rec-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ── Live chat: typing, receipts, motion ────────────────────────────────── */

.typing-line { color: var(--accent-text); }
.bubble.typing { display: inline-flex; align-items: center; gap: 5px; padding: 14px 16px; }
.bubble.typing i { width: 7px; height: 7px; border-radius: var(--pill); background: var(--muted); animation: typing-dot 1.2s ease-in-out infinite; }
.bubble.typing i:nth-child(2) { animation-delay: .15s; }
.bubble.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing-dot { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }

.chat-meta { display: inline-flex; align-items: center; gap: 4px; }
.ticks { display: inline-flex; align-items: center; color: var(--faint); transition: color .25s; }
.ticks svg.i { width: 14px; height: 14px; stroke-width: 2.25; }
.ticks.read svg { animation: tick-in var(--t-base) var(--spring-soft) both; }
.ticks.read { color: var(--accent-text); }
@keyframes tick-in { from { opacity: 0; transform: translateX(-4px); } to { opacity: 1; transform: none; } }

.bubble-row.pop.me { transform-origin: bottom right; animation: bubble-in-right var(--t-base) var(--spring) both; }
.bubble-row.pop.them { transform-origin: bottom left; animation: bubble-in-left var(--t-base) var(--spring) both; }
@keyframes bubble-in-right { from { opacity: 0; transform: translate(12px, 8px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes bubble-in-left { from { opacity: 0; transform: translate(-12px, 8px) scale(.96); } to { opacity: 1; transform: none; } }
.chat-day { animation: fade-in var(--t-base) var(--spring-soft) both; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.morph { overflow: hidden; }
.morph .m-ic { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; transition: transform var(--t-base) var(--spring), opacity var(--t-fast) ease; }
.morph.is-mic .m-send { opacity: 0; transform: rotate(-80deg) scale(.4); }
.morph.is-send .m-mic { opacity: 0; transform: rotate(80deg) scale(.4); }

.rec-row { animation: slide-up var(--t-base) var(--spring) both; }
@keyframes slide-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.new-pill-wrap { position: sticky; bottom: calc(var(--safe-bottom) + 76px); height: 0; z-index: 21; display: flex; justify-content: center; overflow: visible; }
.new-pill {
  position: absolute; bottom: 0; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px;
  border: 0; border-radius: var(--pill); background: var(--accent-fill); color: var(--on-accent);
  font-size: 14px; font-weight: 500; box-shadow: var(--shadow); animation: pill-in var(--t-base) var(--spring) both;
}
@keyframes pill-in { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }

.unread-badge { animation: badge-pop var(--t-base) var(--spring) both; }
@keyframes badge-pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .bubble-row.pop, .chat-day, .rec-row, .new-pill, .unread-badge, .ticks.read svg, .rec-dot { animation: none !important; }
  .bubble.typing i { animation-duration: 2.4s; }
  .morph .m-ic { transition: none; }
}

/* Actionable rows: plain line icon in the accent text colour, no background.
   (!important only to outrank the shared neutral-icon override in app.css.) */
.app .list-row .ico-badge, .app .concierge-card .ico-badge, .app a.thread .ico-badge { color: var(--accent-text) !important; }

/* Profile isn't a tab: back on phones, side nav on laptops. */
.prof-head .avatar { width: 48px; height: 48px; font-size: 20px; }

/* ── Laptop (≥ 960 px): sidebar nav + centred column come from app.css ── */

@media (min-width: 960px) {
  .prof-top { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
  .prof-top .sizes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
  .prof-top > section:last-child { background: var(--surface); border: var(--card-border); border-radius: var(--r-lg); padding: var(--card-pad); }
  .prof-head { padding-top: 28px; }
  .prof-back { display: none; }
  .prof-head .avatar { width: 56px; height: 56px; font-size: 22px; }
  .chat-who h1, .chat-head .header .chat-who h1 { font-size: 19px; }
  .form-grid { gap: var(--gap) 14px; }
  .bubble-row { max-width: 64%; }
  .composer { padding: 12px 16px 16px; border-radius: var(--r-lg) var(--r-lg) 0 0; }
}

/* WhatsApp: a quiet line attached to the concierge, not a floating row. */
.wa-link { display: inline-flex; align-items: center; gap: 8px; margin: -6px 0 6px 6px; font-size: 14px; color: var(--muted); align-self: flex-start; }
.wa-link svg { color: var(--accent-text); }
.wa-link:hover { color: var(--text); }

/* Light mode cards are white with a hairline, not a grey fill (user, 2026-11-03). */
.wa-btn { box-shadow: inset 0 0 0 1px var(--hairline, var(--line)); }
.rec-pill { box-shadow: inset 0 0 0 1px var(--hairline, var(--line)); }

/* My sizes sheet: grouped, with small segmented choices */
.sz-group { display: flex; flex-direction: column; gap: 12px; }
.sz-group > h3 { margin: 0; font-size: 17px; font-weight: 400; color: var(--text); }
.sizes-grid[role=button] { cursor: pointer; }
.sz-choice { display: flex; flex-direction: column; gap: 6px; }
.sz-choice .seg button { height: 32px; font-size: 13px; }

/* Pay online (PayFast) */
.pay-online { display: flex; flex-direction: column; gap: 12px; }
.po-methods { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 15px; font-weight: 550; }
.po-methods span { display: inline-flex; align-items: center; gap: 8px; }
.po-methods .i { color: var(--accent-text); }
.po-charge { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 15px; }
.po-charge > span { color: var(--muted); }
.po-charge b { font-size: 18px; font-weight: 600; }
.po-secure { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.po-secure .pill { margin-left: 4px; }

/* Back from PayFast: the order screen waits for the confirmation */
.paybar.confirming .spin-dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line2); border-top-color: var(--accent-fill); animation: po-spin .9s linear infinite; flex: none; }
@keyframes po-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .paybar.confirming .spin-dot { animation: none; } }

/* Product page: the brand name opens that brand's pieces */
.brand-link { display: inline-flex; align-items: center; gap: 2px; align-self: flex-start; text-decoration: none; }
.brand-link .i { width: 12px; height: 12px; }

/* Order: running late — why, the new date, the concierge's note, the choice */
.delay-card { display: flex; flex-direction: column; gap: 10px; }
.delay-card .delay-title { font-size: var(--fs-h3); font-weight: 400; line-height: 1.3; margin: 0; }
.delay-date { display: flex; align-items: baseline; gap: 10px; }
.delay-date b { font-size: 18px; font-weight: 600; }
.delay-date s { color: var(--faint); }
.delay-msg { margin: 0; font-size: 15px; line-height: 1.55; color: var(--text); }
.delay-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 2px; }
.delay-actions .btn { height: var(--control-sm); font-size: 15px; }
.delay-done { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; color: var(--muted); }
.delay-chat { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; }

/* Concerns — raise, follow, rate */
.chips.wrap { flex-wrap: wrap; overflow: visible; padding: 0; margin: 0; }
.micro .faint, .faint { color: var(--faint); font-weight: 500; }
.concern-row { gap: 12px; }
.concern-row > svg { margin-left: 0; }
.concern-raise { margin-top: 14px; align-self: flex-start; width: auto; padding: 0 18px; }
.concern-order { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: var(--r); background: var(--surface); border: var(--card-border); color: var(--text); }
.concern-order > svg:first-child { color: var(--accent-text); flex: none; }
.concern-order .sub { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.concern-order.link { padding: 0 0 10px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; }
.concern-order.link > svg:last-child { color: var(--faint); }
.concern-desc { margin: 0; font-size: 15px; line-height: 1.55; white-space: pre-wrap; }
.card .sub { font-size: 13px; color: var(--muted); }
.concern-resolved { display: flex; flex-direction: column; gap: 6px; }
.concern-resolved h2 { font-size: var(--fs-h3); font-weight: 400; margin: 0; }
.concern-resolved p { margin: 2px 0 0; font-size: 15px; line-height: 1.55; }
.concern-rate h2 { font-size: 17px; font-weight: 400; margin: 0; }
.concern-rate .seg button .ref { font-size: 16px; }
.concern-rated { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; color: var(--muted); }
.concern-tl { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; }
.concern-tl li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 12px; padding: 0 0 14px; position: relative; }
.concern-tl li:not(:last-child)::before { content: ''; position: absolute; left: 4px; top: 16px; bottom: 2px; width: 2px; background: var(--line2); border-radius: 1px; }
.concern-tl .dot { width: 10px; height: 10px; margin-top: 5px; border-radius: 5px; background: var(--line2); }
.concern-tl li.now .dot { background: var(--accent-fill); }
.concern-tl b { font-size: 15px; font-weight: 550; }
.concern-tl .sub { font-size: 13px; color: var(--muted); line-height: 1.45; }
.concern-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.concern-actions .btn { width: auto; padding: 0 18px; }
.order-concern { display: flex; align-items: center; gap: 10px; padding: 4px 2px; font-size: 14px; color: var(--muted); }
.order-concern:hover { color: var(--text); }
.concern-sub { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ── Luxe Circle ─────────────────────────────────────────────────────────── */
.circle-card { display: flex; flex-direction: column; gap: 6px; }
.circle-card .circle-tier { margin: 0; font-size: 28px; font-weight: 400; letter-spacing: -.01em; line-height: 1.1; }
.circle-card.compact .circle-tier { font-size: 22px; }
.circle-card .circle-perk { margin: 0; color: var(--muted); font-size: 14px; }
.circle-pts { font-size: 14px; color: var(--muted); }
.circle-pts b { font-size: 17px; color: var(--text); font-weight: 600; }
.circle-bar { height: 5px; border-radius: 5px; background: var(--track); overflow: hidden; margin: 4px 0 2px; }
.circle-bar i { display: block; height: 100%; border-radius: 6px; background: var(--accent-fill); transform-origin: left;
  animation: circle-fill .9s var(--ease-out) both; }
@keyframes circle-fill { from { transform: scaleX(0); } }
.circle-link { display: block; color: inherit; text-decoration: none; }
.prof-top .circle-link { grid-column: 1 / -1; }

.reward-row, .earn-row { display: flex; align-items: center; gap: 12px; padding: var(--row-y) 0; border-top: 1px solid var(--hairline); line-height: 1.3; }
.reward-row .stack, .earn-row .stack { gap: 2px; }
.list-card > .reward-row:first-child, .list-card > .earn-row:first-child { border-top: 0; }
.reward-row .sub, .earn-row .sub, .giveaway-card .sub, .tier-step .sub, .refer-card .sub { font-size: 13px; color: var(--muted); }
.reward-cost { font-size: 15px; font-weight: 600; }
.reward-go { height: 30px; padding: 0 12px; font-size: 13px; width: auto; }
.pts-plus { color: var(--accent-text); }
.earn-list > div { display: flex; justify-content: space-between; align-items: baseline; padding: var(--row-y) 0; border-top: 1px solid var(--hairline); font-size: 15px; }
.earn-list > div:first-child { border-top: 0; }

.tier-ladder { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.tier-step { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: var(--r); box-shadow: var(--edge); background: var(--surface); }
.tier-step b { font-weight: 500; font-size: 15px; }
.tier-step .ref { font-size: 13px; color: var(--muted); }
.tier-step.reached { box-shadow: inset 0 0 0 1px var(--line2); }
.tier-step.on { box-shadow: inset 0 0 0 1.5px var(--accent-fill); }
.tier-step.on b { color: var(--accent-text); }
@media (max-width: 520px) { .tier-ladder { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.giveaway-card { display: flex; flex-direction: column; gap: 6px; }
.giveaway-prize { margin: 0; font-size: 19px; font-weight: 400; line-height: 1.25; }
.giveaway-go { margin-top: 4px; }
.giveaway-won, .giveaway-in { display: flex; align-items: center; gap: 8px; margin: 4px 0 0; color: var(--accent-text); }
.giveaway-peek { display: flex; flex-direction: column; gap: 4px; color: inherit; text-decoration: none; }
.giveaway-peek .giveaway-prize { font-size: 17px; }
.giveaway-enter { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-text); font-weight: 550; font-size: 14px; }

.refer-code { font-size: 15px; font-weight: 600; letter-spacing: .04em; }
/* Two figures side by side, split by a hairline — not boxes inside the card. */
.refer-split { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.refer-split > div { display: flex; flex-direction: column; gap: 0; padding: 2px 0; }
.refer-split > div + div { padding-left: var(--card-pad); border-left: 1px solid var(--line); }
.refer-split b { font-size: 20px; font-weight: 600; }

.voucher-done { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 8px 0 4px; text-align: center; }
.voucher-code { font-size: 24px; letter-spacing: .08em; font-weight: 600; color: var(--accent-text); }

.rate-card { display: flex; flex-direction: column; gap: 12px; }
.rate-card .rate-title { margin: 0; font-size: 19px; font-weight: 400; }
.rate-seg button { font-size: 16px; }
.rate-card .btn.sm { width: auto; height: 40px; padding: 0 16px; font-size: 14px; }
.rate-done { display: flex; gap: 18px; margin: 4px 0; font-size: 15px; }
.rate-done b { font-size: 18px; margin-left: 4px; }
.cc-rating { font-family: inherit; font-weight: 400; font-size: 13px; color: var(--muted); margin-left: 6px; }

/* Order: a change to accept */
.change-card .change-list { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.change-card > .pill { align-self: flex-start; }
