/* ============================================================
   Shopee — Premium Mobile Marketplace Styles
   ============================================================ */

:root {
  --brand: #EE4D2D;
  --brand-dark: #D73211;
  --brand-light: #FFEDE8;
  --brand-glow: rgba(238, 77, 45, 0.25);
  --ink: #1A1A1A;
  --ink-soft: #6B6B6B;
  --ink-faint: #9B9B9B;
  --line: #EDEDED;
  --line-soft: #F5F5F5;
  --bg: #F5F5F5;
  --white: #FFFFFF;
  --gold: #C9A24B;
  --success: #2E9E5B;
  --container-w: 420px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (min-width: 680px) { :root { --container-w: 760px; } }
@media (min-width: 1024px) { :root { --container-w: 1180px; } }

*, *::before, *::after { box-sizing: inherit; }
html, body { height: 100%; }
body {
  margin: 0;
  background: #E8E8E8;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 680px) { body { background: var(--bg); } }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

/* ---------- Phone Frame ---------- */
.phone {
  max-width: var(--container-w);
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  position: relative;
  overflow-x: hidden;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.18);
}
@media (min-width: 680px) {
  .phone { box-shadow: none; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
}

/* ---------- Header ---------- */
.app-header {
  background: #EE4D2D;
  padding: 12px 14px;
  padding-top: calc(12px + env(safe-area-inset-top, 0px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 40;
  color: var(--white);
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand-logo-svg {
  width: 34px;
  height: 34px;
  display: block;
  background: transparent;
  flex-shrink: 0;
}
.brand-text {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--white);
}
.lang-pill {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 20px; padding: 6px 12px; font-size: 12px;
  color: var(--white); cursor: pointer;
}
.lang-pill svg { width: 13px; height: 13px; }

.lang-dropdown {
  position: absolute; top: 54px; right: 14px;
  background: var(--white); border-radius: 10px;
  box-shadow: var(--shadow-lg); width: 150px; overflow: hidden;
  z-index: 50; display: none;
}
.lang-dropdown.open { display: block; }
.lang-dropdown button {
  display: block; width: 100%; text-align: left;
  padding: 11px 14px; background: none; border: none;
  font-size: 13px; color: var(--ink); cursor: pointer;
}
.lang-dropdown button:hover { background: var(--brand-light); }
.lang-dropdown button.active { color: var(--brand); font-weight: 700; }

/* ---------- HERO SLIDER ---------- */
.hero-slider {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: linear-gradient(135deg, #FFF, #F5E5E0);
  border-bottom: 1px solid var(--line);
}
.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 24px;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
  gap: 16px;
}
.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}
.hero-slide .hero-text {
  flex: 1;
  min-width: 0;
}
.hero-slide .hero-text h1 {
  font-size: 30px;
  margin: 0 0 10px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.hero-slide .hero-text p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
  letter-spacing: 0.08em;
  font-weight: 600;
}
.hero-slide .hero-art {
  width: 170px;
  height: 170px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}
.hero-slide .hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin: 12px 0 6px;
}
.hero-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #D8D8D8;
  cursor: pointer;
  transition: all 0.25s ease;
}
.hero-dots span.active {
  background: var(--brand);
  width: 22px;
  border-radius: 4px;
}

@media (max-width: 480px) {
  .hero-slider { height: 200px; }
  .hero-slide { padding: 22px 18px; gap: 12px; }
  .hero-slide .hero-art { width: 140px; height: 140px; }
  .hero-slide .hero-text h1 { font-size: 24px; margin-bottom: 6px; }
  .hero-slide .hero-text p { font-size: 12px; }
}
@media (min-width: 680px) {
  .hero-slider { height: 320px; }
  .hero-slide { padding: 48px 40px; gap: 24px; }
  .hero-slide .hero-art { width: 240px; height: 240px; border-radius: 22px; }
  .hero-slide .hero-text h1 { font-size: 46px; margin-bottom: 14px; }
  .hero-slide .hero-text p { font-size: 17px; }
}
@media (min-width: 1024px) {
  .hero-slider { height: 380px; }
  .hero-slide { padding: 60px 60px; gap: 32px; }
  .hero-slide .hero-art { width: 300px; height: 300px; }
  .hero-slide .hero-text h1 { font-size: 56px; }
  .hero-slide .hero-text p { font-size: 20px; }
}

/* ---------- Categories ---------- */
.cat-row {
  display: flex; flex-wrap: wrap; padding: 16px 8px 8px;
  background: var(--white); border-bottom: 1px solid var(--line);
}
.cat-item {
  width: 25%; padding: 6px 0; display: flex; flex-direction: column;
  align-items: center; gap: 6px; background: none; border: none;
  cursor: pointer; color: var(--ink);
}
.cat-item .cat-icon {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--brand-light);
  display: flex; align-items: center; justify-content: center;
}
.cat-item.active .cat-icon { background: var(--brand); }
.cat-item.active .cat-icon svg * { stroke: var(--white) !important; }
.cat-item svg { width: 22px; height: 22px; }
.cat-item span { font-size: 11px; color: var(--ink-soft); font-weight: 500; }
.cat-item.active span { color: var(--brand); font-weight: 700; }

/* ---------- Section title ---------- */
.section-title {
  padding: 14px 14px 8px; font-size: 14px; font-weight: 700;
  color: var(--ink); display: flex; align-items: center; gap: 8px;
}
.section-title::before {
  content: ""; width: 4px; height: 14px;
  background: var(--brand); border-radius: 2px;
}

/* ---------- Product grid ---------- */
.p-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 0 12px 90px;
}
@media (min-width: 680px) { .p-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 0 20px 60px; } }
@media (min-width: 1024px) { .p-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; } }

.p-card {
  background: var(--white); border-radius: 10px; overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06); cursor: pointer;
  transition: transform 0.15s ease;
}
.p-card:active { transform: scale(0.98); }
.p-card .p-thumb {
  aspect-ratio: 1 / 1; background: #FAF7F5;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.p-card .p-thumb img { width: 100%; height: 100%; object-fit: cover; }
.p-card .p-tag {
  position: absolute; top: 6px; left: 6px;
  background: var(--brand); color: var(--white);
  font-size: 9px; font-weight: 700; padding: 2px 6px;
  border-radius: 4px; text-transform: uppercase;
  letter-spacing: 0.04em; z-index: 2;
}
.p-wish {
  position: absolute; top: 6px; right: 6px;
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.9); border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 0; z-index: 2;
}
.p-wish svg { width: 13px; height: 13px; fill: none; stroke: var(--ink); stroke-width: 2; }
.p-wish.active svg { fill: var(--brand); stroke: var(--brand); }

.p-info { padding: 8px 10px 10px; }
.p-info .p-name {
  font-size: 12px; line-height: 1.35; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
  min-height: 32px; margin-bottom: 6px;
}
.p-info .p-price { color: var(--brand); font-weight: 700; font-size: 14px; }

/* ---------- More button ---------- */
.more-btn {
  display: block; margin: 0 auto 100px; padding: 12px 48px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: 8px; font-size: 13px; font-weight: 600;
  color: var(--ink); cursor: pointer;
}

/* ---------- Bottom nav ---------- */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0;
  max-width: var(--container-w); margin: 0 auto;
  background: var(--white); border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 8px 0; padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
}
.nav-btn {
  background: none; border: none; display: flex; flex-direction: column;
  align-items: center; gap: 3px; color: var(--ink-faint);
  cursor: pointer; position: relative; padding: 4px;
}
.nav-btn svg { width: 22px; height: 22px; }
.nav-btn span { font-size: 10px; font-weight: 500; }
.nav-btn.active { color: var(--brand); }
.nav-badge {
  position: absolute; top: -2px; right: 20%;
  background: var(--brand); color: var(--white);
  font-size: 9px; font-weight: 700; width: 16px; height: 16px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}

/* ---------- Screen ---------- */
.screen { display: none; min-height: 100%; padding-bottom: 80px; }
.screen.active { display: block; }
.screen-header {
  background: var(--white); padding: 14px;
  display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 30;
}
.screen-header .back-btn { background: none; border: none; cursor: pointer; padding: 4px; color: var(--ink); }
.screen-header .back-btn svg { width: 18px; height: 18px; }
.screen-header h2 {
  margin: 0; font-size: 15px; font-weight: 700;
  flex: 1; text-align: center; padding-right: 26px;
}
.screen-header .menu-btn { background: none; border: none; font-size: 20px; cursor: pointer; color: var(--ink); }

/* ---------- Me screen ---------- */
.me-header {
  background: var(--white); padding: 20px 16px;
  display: flex; align-items: center; gap: 14px;
  border-bottom: 1px solid var(--line);
}
.me-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--brand-light);
  display: flex; align-items: center; justify-content: center; font-size: 26px;
}
.me-info { flex: 1; }
.me-name { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.me-balance, .me-points { font-size: 12px; color: var(--ink-soft); }
.me-balance span, .me-points span { color: var(--brand); font-weight: 600; }

.me-quick {
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--white); padding: 16px; gap: 8px;
  border-bottom: 8px solid var(--bg);
}
.quick-item {
  background: none; border: none; display: flex; flex-direction: column;
  align-items: center; gap: 8px; cursor: pointer;
  padding: 8px; border-radius: 10px;
}
.quick-item:hover { background: var(--brand-light); }
.quick-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--brand-light);
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.quick-item span { font-size: 11px; color: var(--ink-soft); font-weight: 500; }

.me-list { background: var(--white); margin-top: 8px; }
.me-item {
  display: flex; align-items: center; gap: 12px;
  width: 100%; background: none; border: none;
  border-bottom: 1px solid var(--line);
  padding: 15px 18px; font-size: 14px; color: var(--ink);
  cursor: pointer; text-align: left;
}
.me-item:last-child { border-bottom: none; }
.me-item em { margin-left: auto; font-style: normal; color: var(--ink-faint); font-size: 16px; }

/* ---------- Balance box ---------- */
.balance-box {
  background: linear-gradient(135deg, #2A2A2A, #1A1A1A);
  color: var(--white); border-radius: 12px;
  padding: 24px; margin-bottom: 24px;
}
.balance-label { font-size: 12px; opacity: 0.7; margin-bottom: 6px; }
.balance-value { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }

.section-label {
  font-size: 12px; font-weight: 600; color: var(--ink-soft);
  margin: 18px 0 10px; text-transform: uppercase; letter-spacing: 0.05em;
}

.copy-row {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--white); border-radius: 10px;
  padding: 14px 16px; margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.copy-label { font-size: 11px; color: var(--ink-faint); margin-bottom: 2px; }
.copy-sub { font-size: 11px; color: var(--ink-faint); margin-bottom: 4px; }
.copy-value { font-size: 13px; font-weight: 600; color: var(--ink); word-break: break-all; }
.copy-btn {
  background: var(--brand-light); color: var(--brand);
  border: none; border-radius: 16px;
  padding: 6px 14px; font-size: 12px; font-weight: 700; cursor: pointer;
}

.upload-box {
  display: flex; align-items: center; justify-content: center;
  width: 130px; height: 130px; border: 2px dashed #CCC;
  border-radius: 10px; cursor: pointer; background: var(--white);
  overflow: hidden; margin-bottom: 20px;
}
.upload-box img { width: 100%; height: 100%; object-fit: cover; }

.balance-line {
  display: flex; justify-content: space-between;
  font-size: 13px; padding: 10px 0; color: var(--ink-soft);
}
.withdraw-note {
  margin-top: 16px; font-size: 11px; color: var(--ink-faint); line-height: 1.8;
}

/* ---------- Cart ---------- */
.cart-items { padding: 4px 0 12px; }
.cart-row {
  display: flex; gap: 10px; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.cart-row .c-thumb {
  width: 60px; height: 60px; background: #FAF7F5;
  border-radius: 8px; display: flex; align-items: center;
  justify-content: center; flex-shrink: 0; overflow: hidden;
}
.cart-row .c-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-row .c-name { font-size: 12px; margin-bottom: 4px; line-height: 1.4; }
.cart-row .c-meta { font-size: 11px; color: var(--ink-faint); }
.cart-row .c-remove {
  background: none; border: none; color: var(--ink-faint);
  text-decoration: underline; font-size: 11px; cursor: pointer;
  padding: 0; margin-top: 4px;
}
.cart-empty { text-align: center; padding: 60px 0; color: var(--ink-faint); font-size: 13px; }
.cart-empty .empty-icon {
  width: 80px; height: 80px; margin: 0 auto 16px;
  background: var(--white); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; color: #DDD;
}
.continue-btn {
  display: block; width: 100%; background: none; border: none;
  color: var(--ink-soft); font-size: 13px; padding: 14px;
  cursor: pointer; text-align: center; margin-top: 8px;
}

/* ---------- Product detail ---------- */
.p-detail-img {
  width: 100%; aspect-ratio: 1 / 1; background: #FAF7F5;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.p-detail-img img { width: 100%; height: 100%; object-fit: cover; }
.p-detail-body { padding: 16px; background: var(--white); }
.p-detail-price { color: var(--brand); font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.p-detail-name { font-size: 14px; line-height: 1.5; color: var(--ink); margin-bottom: 12px; }
.p-detail-desc { font-size: 13px; color: var(--ink-soft); line-height: 1.6; padding-top: 12px; border-top: 1px solid var(--line); }
.p-detail-qty { display: flex; align-items: center; gap: 12px; margin: 16px 0; }
.qty-btn {
  width: 32px; height: 32px; border-radius: 6px;
  border: 1px solid var(--line); background: var(--white);
  font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.qty-value { font-size: 14px; font-weight: 600; min-width: 24px; text-align: center; }

.detail-actions {
  display: flex; gap: 10px; padding: 16px;
  background: var(--white); border-top: 1px solid var(--line); margin-top: 8px;
}
.detail-actions .add-cart-btn {
  flex: 1; background: var(--white);
  border: 1px solid var(--brand); color: var(--brand);
  border-radius: 8px; padding: 14px;
  font-size: 14px; font-weight: 700; cursor: pointer;
}
.detail-actions .buy-btn {
  flex: 1; background: var(--brand); border: none;
  color: var(--white); border-radius: 8px; padding: 14px;
  font-size: 14px; font-weight: 700; cursor: pointer;
}

/* ---------- Orders ---------- */
.order-tabs {
  display: flex; overflow-x: auto; background: var(--white);
  border-bottom: 1px solid var(--line); padding: 0 8px; gap: 4px;
  scrollbar-width: none;
}
.order-tabs::-webkit-scrollbar { display: none; }
.order-tabs button {
  background: none; border: none; padding: 13px 12px;
  font-size: 12px; color: var(--ink-soft); white-space: nowrap;
  cursor: pointer; border-bottom: 2px solid transparent; font-weight: 500;
}
.order-tabs button.active { color: var(--brand); border-bottom-color: var(--brand); font-weight: 700; }
.orders-list { padding: 12px 14px; }
.order-card {
  background: var(--white); border-radius: 10px;
  padding: 14px; margin-bottom: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}
.order-card .o-head {
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--ink-faint);
  padding-bottom: 10px; margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.order-card .o-status { color: var(--brand); font-weight: 700; }
.order-card .o-row { display: flex; gap: 10px; margin-bottom: 12px; }
.order-card .o-thumb {
  width: 56px; height: 56px; background: #FAF7F5;
  border-radius: 8px; flex-shrink: 0; overflow: hidden;
}
.order-card .o-thumb img { width: 100%; height: 100%; object-fit: cover; }
.order-card .o-name { font-size: 12px; line-height: 1.4; margin-bottom: 4px; }
.order-card .o-meta { font-size: 11px; color: var(--ink-faint); }
.order-card .o-price { font-weight: 700; font-size: 13px; white-space: nowrap; color: var(--brand); }
.order-card .o-actions {
  display: flex; gap: 8px; justify-content: flex-end;
  padding-top: 10px; border-top: 1px solid var(--line);
}
.o-btn {
  border-radius: 16px; padding: 8px 16px;
  font-size: 12px; font-weight: 600; cursor: pointer;
  border: 1px solid var(--line); background: var(--white); color: var(--ink);
}
.o-btn.primary { background: var(--brand); border-color: var(--brand); color: var(--white); }
.orders-empty { text-align: center; padding: 60px 20px; color: var(--ink-faint); font-size: 13px; }

/* ---------- Sheet rows ---------- */
.sheet-row {
  display: flex; justify-content: space-between;
  font-size: 13px; padding: 8px 0; color: var(--ink-soft);
}
.sheet-row.total {
  color: var(--ink); font-weight: 700; font-size: 14px;
  border-top: 1px solid var(--line); padding-top: 12px; margin-top: 6px;
}

/* ---------- Forms ---------- */
.form-field { margin-bottom: 12px; }
.form-field label {
  display: block; font-size: 11px; font-weight: 600;
  color: var(--ink-soft); margin-bottom: 5px;
}
.form-field input, .form-field select {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 8px;
  font-size: 13px; outline: none; background: var(--bg);
}
.form-field input:focus, .form-field select:focus {
  border-color: var(--brand); background: var(--white);
}

.share-btn {
  width: 100%; background: var(--brand); color: var(--white);
  border: none; border-radius: 10px; padding: 14px;
  font-size: 14px; font-weight: 700; cursor: pointer; letter-spacing: 0.02em;
}

/* ---------- Invite body ---------- */
.invite-body { padding: 20px 18px; }
.invite-body p.desc {
  font-size: 12px; color: var(--ink-soft); line-height: 1.6; margin-bottom: 24px;
}
.invite-label {
  font-size: 12px; font-weight: 600; color: var(--ink-soft); margin-bottom: 10px;
}
.qr-box {
  background: var(--white); border-radius: 14px; padding: 24px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06); margin-bottom: 20px;
}
.qr-box canvas { border-radius: 6px; }
.qr-box .qr-hint { font-size: 11px; color: var(--ink-faint); }
.invite-code-row {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--white); border: 1px dashed var(--brand);
  border-radius: 10px; padding: 14px 16px; margin-bottom: 14px;
}
.invite-code-row .code {
  font-family: monospace; font-size: 15px;
  font-weight: 700; letter-spacing: 0.04em;
}
.invite-code-row button {
  background: var(--brand); color: var(--white);
  border: none; border-radius: 8px;
  padding: 8px 14px; font-size: 12px; font-weight: 600; cursor: pointer;
}

/* ---------- Why choose us ---------- */
.wc-list { padding: 16px; }
.wc-block {
  background: var(--white); border-radius: 10px;
  padding: 16px; margin-bottom: 12px;
}
.wc-block .wc-head { font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.wc-block p { font-size: 12px; color: var(--ink-soft); margin: 4px 0; line-height: 1.5; }

/* ---------- Auth ---------- */
.auth-screen { padding: 40px 24px; background: var(--white); min-height: 100vh; }
.auth-logo { margin-bottom: 20px; }
.auth-screen h2 { font-size: 24px; margin: 0 0 8px; font-weight: 800; }
.auth-switch-line {
  font-size: 13px; color: var(--ink-soft); margin-bottom: 24px;
}
.auth-switch-line button {
  background: none; border: none; color: var(--ink);
  font-weight: 700; cursor: pointer; padding: 0;
  font-size: 13px; text-decoration: underline;
}

/* ---------- Messages ---------- */
.msg-card {
  background: var(--white); border-radius: 10px;
  padding: 14px; margin-bottom: 10px;
  font-size: 13px; line-height: 1.5;
}
.msg-card .msg-head {
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--ink-faint); margin-bottom: 8px;
}
.msg-card .msg-reply {
  background: var(--brand-light); border-left: 3px solid var(--brand);
  padding: 8px 12px; margin-top: 10px;
  border-radius: 4px; font-size: 12px; color: var(--ink);
}

/* ---------- Drawer ---------- */
.drawer-overlay {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.4);
  z-index: 200; display: none; justify-content: flex-end;
}
.drawer-overlay.open { display: flex; }
.drawer {
  background: var(--white); width: 260px; height: 100%;
  padding: 20px 0; position: relative;
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.1);
  animation: slideIn 0.25s ease;
}
@keyframes slideIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}
.drawer-close {
  position: absolute; top: 14px; right: 14px;
  background: none; border: none; font-size: 18px;
  cursor: pointer; color: var(--ink-soft);
}
.drawer-item {
  display: flex; align-items: center; gap: 12px;
  width: 100%; background: none; border: none;
  padding: 16px 22px; font-size: 14px; color: var(--ink);
  cursor: pointer; text-align: left;
}
.drawer-item em { margin-left: auto; font-style: normal; color: var(--ink-faint); }
.drawer-item:hover { background: var(--brand-light); }

/* ---------- Loading ---------- */
.loading-note { padding: 50px 20px; text-align: center; color: var(--ink-faint); font-size: 13px; }