/* ============================================================
   Biz prototype - mobile-first styles
   Warm, clean, light. System fonts only. No frameworks.
   ============================================================ */
:root {
  --green: #0e7c3a;
  --green-dark: #0a5c2b;
  --orange: #e8730c;
  --cream: #fff9f0;
  --ink: #26231e;
  --muted: #8a7f70;
  --card: #ffffff;
  --line: #f0e4d0;
  --wa: #1faa53;
  --wa-dark: #128c4b;
  --red: #c0392b;
  --blue: #2471a3;
  --radius: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  background: #e8ded0;
  color: var(--ink);
  line-height: 1.5;
}
.page {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--cream);
  position: relative;
  padding-bottom: 24px;
}
.app-page { padding-bottom: 84px; } /* room for bottom nav */

/* ---------- top bar ---------- */
.topbar {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.topbar .back { text-decoration: none; font-size: 20px; color: var(--ink); }
.topbar h1 { font-size: 17px; }
.topbar .sub { font-size: 12px; color: var(--muted); }
.avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--green); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px; flex: none;
}

/* ---------- buttons ---------- */
.btn {
  display: block; width: 100%;
  padding: 14px 16px; border: none; border-radius: var(--radius);
  font-size: 16px; font-weight: 700; text-align: center;
  cursor: pointer; text-decoration: none; margin: 8px 0;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:active { background: var(--green-dark); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:active { background: var(--wa-dark); }
.btn-outline { background: transparent; color: var(--green); border: 2px solid var(--green); }
.btn-orange { background: var(--orange); color: #fff; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.btn-row { display: flex; gap: 8px; }
.btn-row .btn { margin: 4px 0; }

/* ---------- cards & layout ---------- */
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px; margin: 12px 16px;
}
.pad { padding: 0 16px; }
h2.section { font-size: 18px; margin: 20px 16px 4px; }
p.muted, .muted { color: var(--muted); }
p.tiny, .tiny { font-size: 12px; }
.center { text-align: center; }

/* ---------- hero / landing ---------- */
.hero {
  background: linear-gradient(160deg, #0e7c3a 0%, #0a5c2b 70%);
  color: #fff; padding: 44px 24px 36px; text-align: center;
}
.hero .logo {
  display: inline-block; background: #fff; color: var(--green);
  font-weight: 800; font-size: 20px; padding: 6px 16px;
  border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { font-size: 34px; line-height: 1.15; margin-bottom: 12px; }
.hero p { opacity: 0.92; font-size: 16px; max-width: 340px; margin: 0 auto 20px; }
.hero .btn { max-width: 320px; margin-left: auto; margin-right: auto; }
.hero .btn-outline { border-color: #fff; color: #fff; }
.steps { display: flex; gap: 10px; margin: 12px 16px; }
.step {
  flex: 1; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 10px; text-align: center;
}
.step .n {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--green); color: #fff; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 8px;
}
.step h3 { font-size: 14px; margin-bottom: 4px; }
.step p { font-size: 12px; color: var(--muted); }
.fgrid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin: 12px 16px; }
.feat {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px 8px; text-align: center;
}
.feat .e { font-size: 26px; }
.feat h3 { font-size: 12px; margin-top: 6px; }
.pricing { display: flex; gap: 10px; margin: 12px 16px; }
.plan {
  flex: 1; background: var(--card); border: 2px solid var(--line);
  border-radius: var(--radius); padding: 16px 12px;
}
.plan.hot { border-color: var(--green); position: relative; }
.plan .tag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--green); color: #fff; font-size: 11px; font-weight: 700;
  padding: 2px 12px; border-radius: 999px; white-space: nowrap;
}
.plan h3 { font-size: 16px; }
.plan .price { font-size: 24px; font-weight: 800; margin: 6px 0; }
.plan ul { list-style: none; font-size: 13px; color: var(--muted); }
.plan li { margin: 6px 0; }
.plan li::before { content: "✓ "; color: var(--green); font-weight: 700; }
.footer { text-align: center; color: var(--muted); font-size: 12px; padding: 24px 16px; }

/* ---------- forms ---------- */
.label { display: block; font-size: 13px; font-weight: 700; margin: 14px 0 6px; }
.field, select.field, textarea.field {
  width: 100%; padding: 13px 14px; font-size: 16px;
  border: 2px solid var(--line); border-radius: 12px; background: #fff;
  font-family: inherit; color: var(--ink);
}
.field:focus { outline: none; border-color: var(--green); }
.otp-row { display: flex; gap: 10px; justify-content: center; margin: 16px 0; }
.otp-row .field { width: 58px; text-align: center; font-size: 24px; font-weight: 700; }
.type-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.type-card {
  border: 2px solid var(--line); border-radius: var(--radius);
  background: #fff; padding: 16px 8px; text-align: center; cursor: pointer;
}
.type-card .e { font-size: 30px; }
.type-card h3 { font-size: 14px; margin-top: 6px; text-transform: capitalize; }
.type-card.sel { border-color: var(--green); background: #eef7f0; }
.emoji-pick { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0; }
.emoji-pick button {
  font-size: 26px; width: 48px; height: 48px; border-radius: 12px;
  border: 2px solid var(--line); background: #fff; cursor: pointer;
}
.emoji-pick button.sel { border-color: var(--green); background: #eef7f0; }

/* ---------- storefront ---------- */
.shop-hero {
  background: linear-gradient(160deg, #0e7c3a, #0a5c2b);
  color: #fff; padding: 28px 20px 24px; text-align: center;
}
.shop-hero .avatar { margin: 0 auto 10px; width: 64px; height: 64px; font-size: 30px; background: #fff; color: var(--green); }
.shop-hero h1 { font-size: 24px; }
.shop-hero p { opacity: 0.9; font-size: 13px; }
.prod {
  display: flex; gap: 12px; align-items: center;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px; margin: 10px 16px;
}
.prod .e { font-size: 40px; flex: none; }
.prod .info { flex: 1; }
.prod .info h3 { font-size: 15px; }
.prod .info .note { font-size: 12px; color: var(--muted); }
.prod .price { font-weight: 800; font-size: 15px; color: var(--green-dark); }
.prod .add {
  border: none; background: var(--green); color: #fff;
  font-weight: 700; border-radius: 999px; padding: 8px 14px; cursor: pointer;
}
.cartbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px; background: var(--ink); color: #fff;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 12px; z-index: 30;
}
.cartbar .sum { flex: 1; }
.cartbar .sum b { font-size: 17px; }
.cartbar .sum span { display: block; font-size: 12px; opacity: 0.75; }
.cartbar .btn { width: auto; margin: 0; padding: 12px 18px; }
.qty { display: flex; align-items: center; gap: 8px; }
.qty button {
  width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; font-size: 16px; font-weight: 700; cursor: pointer;
}

/* ---------- dashboard ---------- */
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 16px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.stat .k { font-size: 12px; color: var(--muted); }
.stat .v { font-size: 20px; font-weight: 800; }
.stat .v.green { color: var(--green); }
.order-card {
  display: block; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px; margin: 10px 16px;
  text-decoration: none; color: inherit;
}
.order-card .row1 { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.order-card .cid { font-weight: 800; font-size: 14px; }
.order-card .cname { font-size: 14px; }
.order-card .ctotal { font-weight: 800; color: var(--green-dark); }
.order-card .ctime { font-size: 12px; color: var(--muted); }
.chip {
  display: inline-block; font-size: 11px; font-weight: 800;
  padding: 3px 10px; border-radius: 999px; text-transform: uppercase;
  letter-spacing: 0.4px;
}
.chip.new { background: #dbe9f6; color: var(--blue); }
.chip.paid { background: #d9f2e2; color: var(--green-dark); }
.chip.packed { background: #fdebd3; color: #b35a00; }
.chip.delivered { background: #e8e8e8; color: #555; }
.chip.overdue { background: #f9d9d4; color: var(--red); }
.cust-row, .debt-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px; margin: 10px 16px;
}
.cust-row .info, .debt-row .info { flex: 1; }
.cust-row h3, .debt-row h3 { font-size: 15px; }
.cust-row .meta, .debt-row .meta { font-size: 12px; color: var(--muted); }
.cust-row .spent { font-weight: 800; color: var(--green-dark); font-size: 15px; }
.debt-row .bal { font-weight: 800; color: var(--red); font-size: 16px; }
.badge-reg {
  font-size: 10px; font-weight: 800; background: #fef3d8; color: #9a6b00;
  padding: 2px 8px; border-radius: 999px; margin-left: 6px;
}
.msg-btn {
  border: 2px solid var(--wa); color: var(--wa-dark); background: #fff;
  border-radius: 999px; padding: 7px 12px; font-size: 13px; font-weight: 700;
  text-decoration: none; white-space: nowrap;
}
.remind-btn {
  border: none; background: var(--orange); color: #fff;
  border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 700;
  cursor: pointer; white-space: nowrap;
}

/* ---------- bottom tab bar ---------- */
.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px; background: #fff;
  border-top: 1px solid var(--line); display: flex; z-index: 30;
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar a {
  flex: 1; text-align: center; text-decoration: none; color: var(--muted);
  font-size: 11px; padding: 10px 0 8px; font-weight: 600;
}
.tabbar a .e { display: block; font-size: 22px; }
.tabbar a.on { color: var(--green); }

/* ---------- modal / toast ---------- */
#modal-wrap { position: fixed; inset: 0; z-index: 100; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
.modal {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 100%; max-width: 480px; background: var(--cream);
  border-radius: 20px 20px 0 0; padding: 20px 20px calc(20px + env(safe-area-inset-bottom));
  max-height: 88vh; overflow-y: auto;
}
.modal h3 { margin-bottom: 8px; }
.paybox { background: #fff; border: 1px dashed var(--green); border-radius: 12px; padding: 12px; margin: 12px 0; }
.paybox div { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; border-bottom: 1px solid #f2f2f2; }
.paybox div:last-child { border-bottom: none; }
.paybox span { color: var(--muted); }
.receipt {
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 18px; margin: 12px 0; font-size: 14px; position: relative;
}
.receipt::before, .receipt::after {
  content: ""; position: absolute; left: 0; right: 0; height: 8px;
  background: radial-gradient(circle at 8px 8px, var(--cream) 8px, transparent 8px);
  background-size: 16px 8px;
}
.receipt::before { top: -8px; } .receipt::after { bottom: -8px; transform: rotate(180deg); }
.receipt h4 { text-align: center; margin-bottom: 2px; }
.receipt .rmeta { text-align: center; font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.receipt table { width: 100%; border-collapse: collapse; font-size: 13px; }
.receipt td { padding: 5px 0; border-bottom: 1px dotted var(--line); }
.receipt td:last-child { text-align: right; font-weight: 700; }
.receipt .rtotal { display: flex; justify-content: space-between; font-weight: 800; font-size: 16px; margin-top: 8px; }
.stamp {
  display: inline-block; border: 3px solid var(--green); color: var(--green);
  font-weight: 800; padding: 2px 12px; border-radius: 8px;
  transform: rotate(-8deg); margin: 8px 0;
}
#toast {
  position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px;
  font-size: 14px; opacity: 0; transition: all 0.25s; z-index: 200;
  max-width: 90%; text-align: center; pointer-events: none;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- chat sim ---------- */
.phone {
  max-width: 400px; margin: 12px auto; background: #0b141a;
  border-radius: 28px; padding: 10px; box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}
.phone-screen { background: #ece5dd; border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; height: 600px; max-height: 72vh; }
.chat-head { background: #075e54; color: #fff; padding: 10px 12px; display: flex; gap: 10px; align-items: center; }
.chat-head .avatar { width: 38px; height: 38px; font-size: 16px; }
.chat-head .nm { font-weight: 700; font-size: 15px; }
.chat-head .on { font-size: 11px; opacity: 0.85; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 12px 10px; display: flex; flex-direction: column; gap: 8px; }
.bubble { max-width: 82%; padding: 9px 12px; border-radius: 12px; font-size: 14px; white-space: pre-line; box-shadow: 0 1px 1px rgba(0,0,0,0.12); }
.bubble.bot { background: #fff; align-self: flex-start; border-top-left-radius: 2px; }
.bubble.user { background: #d9fdd3; align-self: flex-end; border-top-right-radius: 2px; }
.bubble .tm { display: block; text-align: right; font-size: 10px; color: #8a8a8a; margin-top: 4px; }
.typing { display: inline-flex; gap: 4px; padding: 4px 2px; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: #999; animation: blink 1s infinite; }
.typing span:nth-child(2) { animation-delay: 0.2s; } .typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%,100% { opacity: 0.3; } 50% { opacity: 1; } }
.chat-chips { display: flex; gap: 6px; overflow-x: auto; padding: 8px 10px; background: #f0ece4; }
.chat-chips button {
  flex: none; border: 1px solid var(--green); color: var(--green-dark);
  background: #fff; border-radius: 999px; padding: 7px 12px; font-size: 12px; font-weight: 600; cursor: pointer;
}
.chat-input { display: flex; gap: 8px; padding: 8px 10px; background: #f0ece4; }
.chat-input input { flex: 1; border: none; border-radius: 999px; padding: 11px 14px; font-size: 14px; }
.chat-input button { border: none; background: var(--green); color: #fff; border-radius: 50%; width: 44px; height: 44px; font-size: 18px; cursor: pointer; }

/* ---------- confetti ---------- */
.confetti { position: absolute; top: -14px; width: 9px; height: 13px; z-index: 50; animation: fall 2.6s ease-in forwards; border-radius: 2px; }
@keyframes fall { to { transform: translateY(105vh) rotate(720deg); } }
.success-wrap { position: relative; overflow: hidden; }

/* ---------- misc ---------- */
.linklike { color: var(--green); font-weight: 700; text-decoration: none; }
.shoplink {
  display: block; background: #eef7f0; border: 2px dashed var(--green);
  border-radius: 12px; padding: 14px; text-align: center; font-weight: 700;
  color: var(--green-dark); text-decoration: none; margin: 12px 0; word-break: break-all;
}
.progress { height: 10px; background: #eee; border-radius: 999px; overflow: hidden; margin: 6px 0 12px; }
.progress i { display: block; height: 100%; background: var(--green); border-radius: 999px; }
canvas.flyer { width: 100%; border-radius: 12px; margin: 10px 0; }
.exp-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.exp-row b { color: var(--red); }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.result-box { background: #eef7f0; border-radius: 12px; padding: 14px; margin-top: 10px; text-align: center; }
.result-box .big { font-size: 28px; font-weight: 800; color: var(--green-dark); }
.checkline { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; margin: 8px 0; }
.kv { display: flex; justify-content: space-between; font-size: 14px; padding: 6px 0; }
@media (min-width: 520px) {
  body { padding: 24px 0; }
  .page { border-radius: 24px; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,0.15); }
  .cartbar, .tabbar, .modal { border-radius: 0 0 24px 24px; }
}

/* ============================================================
   Seller workspace (#/seller) + Ada chat
   ============================================================ */

/* ---------- product photos ---------- */
.pimg {
  width: 64px; height: 64px; object-fit: cover;
  border-radius: 12px; flex: none; background: #f0f7f1;
}
.emoji-tile {
  display: flex; align-items: center; justify-content: center;
  background: #eef5ee; font-size: 30px;
}

/* ---------- seller dashboard ---------- */
.seller-page { padding-bottom: 24px; }
.stat-strip {
  display: flex; gap: 8px; margin: 12px 16px 0;
}
.sstat {
  flex: 1; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 10px 12px;
}
.sstat .k { font-size: 11px; color: var(--muted); }
.sstat .v { font-size: 18px; font-weight: 800; }
.sstat .v.green { color: var(--green-dark); }
.qa-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  margin: 8px 16px 0;
}
.qa {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px 4px;
  font-size: 12px; font-weight: 700; color: var(--ink);
  cursor: pointer; display: flex; flex-direction: column;
  align-items: center; gap: 6px; min-height: 76px;
  justify-content: center;
}
.qa span { font-size: 22px; }
.qa:active { background: #f3efe4; }
.sprod-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  margin: 8px 16px 0;
}
.sprod {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 10px; cursor: pointer;
  text-align: center;
}
.sprod:active { background: #f3efe4; }
.spimg { width: 100%; height: 92px; margin-bottom: 6px; }
.sprod .snm { font-size: 12px; font-weight: 700; line-height: 1.3; }
.sprod .spr { font-size: 13px; font-weight: 800; color: var(--green-dark); }
.iconbtn {
  background: none; border: none; font-size: 20px; cursor: pointer;
  padding: 8px; line-height: 1; color: inherit;
}
.set-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px;
}
.set-row input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--green); }
.set-row input[type="radio"] { width: 20px; height: 20px; accent-color: var(--green); }

/* ---------- Ada floating button ---------- */
#ada-fab {
  position: fixed; right: 16px; bottom: 20px; z-index: 60;
  display: flex; align-items: center; gap: 8px;
  background: var(--green-dark); color: #fff; border: none;
  border-radius: 999px; padding: 10px 18px 10px 10px;
  font-size: 16px; font-weight: 800; cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}
#ada-fab:active { transform: scale(0.96); }
.ada-fab-av {
  width: 36px; height: 36px; border-radius: 50%;
  background: #fff; color: var(--green-dark);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px;
}
.ada-badge {
  position: absolute; top: -6px; right: -6px;
  background: var(--red); color: #fff; font-size: 12px; font-weight: 800;
  min-width: 22px; height: 22px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 6px;
}

/* ---------- Ada chat overlay ---------- */
#ada-overlay {
  position: fixed; inset: 0; z-index: 80;
  display: none;
}
#ada-overlay.open { display: block; }
.ada-backdrop {
  position: absolute; inset: 0; background: rgba(0,0,0,0.45);
}
.ada-chat {
  position: absolute; inset: 0;
  background: #e5ddd2; display: flex; flex-direction: column;
  font-size: 15px;
}
.ada-head {
  background: var(--green-dark); color: #fff;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
}
.ada-head .nm { font-weight: 800; font-size: 16px; }
.ada-head .on { font-size: 12px; opacity: 0.85; }
.ada-head .iconbtn { color: #fff; }
.ada-msgs {
  flex: 1; overflow-y: auto; padding: 12px;
  display: flex; flex-direction: column; gap: 8px;
}
.abub {
  max-width: 82%; padding: 9px 12px; border-radius: 14px;
  font-size: 15px; line-height: 1.45; word-wrap: break-word;
}
.abub.ada {
  background: #fff; align-self: flex-start;
  border-top-left-radius: 4px; color: var(--ink);
  box-shadow: 0 1px 2px rgba(0,0,0,0.12);
}
.abub.me {
  background: #d9f2c7; align-self: flex-end;
  border-top-right-radius: 4px; color: var(--ink);
  box-shadow: 0 1px 2px rgba(0,0,0,0.12);
}
.abub .tm {
  display: block; text-align: right; font-size: 11px;
  color: var(--muted); margin-top: 4px;
}
.abub .ticks { color: #34b7f1; font-weight: 700; }
.ada-chips {
  display: flex; gap: 8px; padding: 8px 12px; overflow-x: auto;
  flex: none;
}
.ada-chips:empty { display: none; }
.ada-chips button {
  flex: none; background: #fff; border: 1.5px solid var(--green);
  color: var(--green-dark); border-radius: 999px;
  padding: 10px 16px; font-size: 14px; font-weight: 700; cursor: pointer;
}
.ada-input {
  display: flex; align-items: center; gap: 4px;
  background: #f0ede6; padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
}
.ada-input input {
  flex: 1; border: none; border-radius: 999px;
  padding: 13px 16px; font-size: 16px; outline: none;
  background: #fff;
}
.ada-input .iconbtn { font-size: 24px; color: #5b5348; }
.ada-input .iconbtn.send {
  background: var(--green); color: #fff; border-radius: 50%;
  width: 46px; height: 46px; display: flex;
  align-items: center; justify-content: center; font-size: 20px;
}
.ada-rec, .ada-transcript, .ada-photo {
  background: #fff; padding: 12px; gap: 8px;
  align-items: center; border-top: 1px solid var(--line);
}
.ada-transcript, .ada-photo { display: block; }
.ada-photo img { width: 100%; border-radius: 12px; margin-bottom: 8px; max-height: 220px; object-fit: cover; }
.recdot {
  width: 12px; height: 12px; border-radius: 50%; background: var(--red);
  animation: pulse 1s infinite;
}
@keyframes pulse { 50% { opacity: 0.3; } }

/* ---------- Ada rich cards ---------- */
.acard {
  background: #f7f3ea; border: 1px solid var(--line);
  border-radius: 10px; padding: 10px; margin: 4px 0;
  color: var(--ink);
}
.arow { display: flex; gap: 10px; align-items: center; }
.arow2 {
  display: flex; justify-content: space-between; gap: 8px;
  padding: 5px 0; border-bottom: 1px dashed var(--line); font-size: 14px;
}
.arow2:last-child { border-bottom: none; }
.acimg { width: 56px; height: 56px; }
.aprice { font-weight: 800; color: var(--green-dark); font-size: 15px; }
.acard .green { color: var(--green-dark); }
.wbars { display: flex; gap: 18px; justify-content: center; margin-top: 10px; }
.wbar { text-align: center; font-size: 12px; color: var(--muted); }
.wbar-t { height: 96px; display: flex; align-items: flex-end; justify-content: center; }
.wbar-t i { width: 34px; border-radius: 6px 6px 0 0; display: block; }

/* ---------- Ada dark mode ---------- */
.ada-chat.dark { background: #0d1418; }
.ada-chat.dark .ada-head { background: #1f2c34; }
.ada-chat.dark .ada-msgs { background: #0d1418; }
.ada-chat.dark .abub.ada { background: #1f2c34; color: #e9edef; }
.ada-chat.dark .abub.me { background: #005c4b; color: #e9edef; }
.ada-chat.dark .abub .tm { color: #8696a0; }
.ada-chat.dark .ada-chips button { background: #1f2c34; border-color: #00a884; color: #00e676; }
.ada-chat.dark .ada-input { background: #1f2c34; }
.ada-chat.dark .ada-input input { background: #2a3942; color: #e9edef; }
.ada-chat.dark .ada-input .iconbtn { color: #aebac1; }
.ada-chat.dark .ada-input .iconbtn.send { background: #00a884; color: #fff; }
.ada-chat.dark .acard { background: #1f2c34; border-color: #2a3942; color: #e9edef; }
.ada-chat.dark .ada-rec, .ada-chat.dark .ada-transcript, .ada-chat.dark .ada-photo {
  background: #1f2c34; border-color: #2a3942; color: #e9edef;
}

/* ---------- desktop: chat as side panel ---------- */
@media (min-width: 760px) {
  .ada-backdrop { display: none; }
  .ada-chat {
    left: auto; right: 0; top: 0; bottom: 0;
    width: 420px; border-left: 1px solid var(--line);
    box-shadow: -8px 0 30px rgba(0,0,0,0.2);
  }
}
