/* Demo build only: brand colours + demo furniture */
.brand-mark { background: linear-gradient(135deg, var(--red) 0 55%, var(--ink) 55%); }

.demo-bar { background: #fff6d6; border-bottom: 1px solid #f0dc95; font-size: .85rem; color: #4a3b00; }
.demo-bar-inner { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; justify-content: space-between; padding-top: 7px; padding-bottom: 7px; }
.demo-bar strong { background: #4a3b00; color: #fff6d6; padding: 1px 7px; border-radius: 4px; margin-right: 6px; letter-spacing: .05em; font-size: .75rem; }
.demo-links { display: flex; gap: 14px; flex-wrap: wrap; }
.demo-links a { color: #4a3b00; font-weight: 600; }
.demo-count { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: .72rem; text-align: center; }
.demo-hint { grid-column: 1 / -1; background: #fff6d6; border: 1px dashed #e2c35c; border-radius: var(--radius-sm); padding: 10px 12px; font-size: .9rem; margin: 6px 0 12px; color: #4a3b00; }
.demo-hint code, .guide-card code, .demo-login code { background: #fff; padding: 1px 6px; border-radius: 4px; font-size: .95em; letter-spacing: .03em; }
.demo-sim { margin-top: 18px; padding: 14px; border: 1px dashed #e2c35c; background: #fffbea; border-radius: var(--radius-sm); }
.demo-tour { display: block; margin-top: 18px; padding: 16px 20px; text-decoration: none; color: var(--ink); background: #fffbea; border-color: #f0dc95; }
.admin .demo-bar .container { max-width: 1280px; }

/* Feedback */
.fb-fab { position: fixed; right: 18px; bottom: 18px; z-index: 50; background: var(--ink); color: #fff; text-decoration: none; font-weight: 700; padding: 12px 18px; border-radius: 999px; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.fb-fab:hover { background: var(--red); color: #fff; }
.driver-app .fb-fab { padding: 8px 12px; font-size: .85rem; }
.fb-dialog { border: 0; border-radius: var(--radius); padding: 22px; width: min(560px, calc(100vw - 24px)); box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.fb-dialog::backdrop { background: rgba(15, 18, 22, .55); }
.fb-dialog h2, .fb-page h2 { margin-bottom: 2px; }
.fb-stars-field { border: 0; padding: 0; margin: 10px 0 14px; }
.fb-stars-field legend { font-weight: 600; margin-bottom: 4px; padding: 0; }
.fb-stars { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.fb-stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fb-stars label { font-size: 2.1rem; line-height: 1; color: #d5d9df; cursor: pointer; padding: 0 2px; }
.fb-stars label:hover, .fb-stars label:hover ~ label, .fb-stars input:checked ~ label { color: #f5a623; }
.fb-stars input:focus-visible + label { outline: 2px solid var(--blue); border-radius: 4px; }
.fb-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 10px; z-index: 60; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.fb-stars-ro { color: #f5a623; letter-spacing: 1px; }
.fb-dist { display: grid; gap: 3px; margin-top: 6px; font-size: .8rem; }
.fb-dist div { display: grid; grid-template-columns: 26px 1fr 24px; gap: 6px; align-items: center; }
.fb-bar { width: 100%; height: 8px; appearance: none; border: 0; border-radius: 4px; background: #eef0f3; overflow: hidden; }
.fb-bar::-webkit-progress-bar { background: #eef0f3; }
.fb-bar::-webkit-progress-value { background: #f5a623; }
.fb-bar::-moz-progress-bar { background: #f5a623; }
.fb-list { list-style: none; margin: 0; padding: 0; }
.fb-item { padding: 16px 20px; border-bottom: 1px solid var(--line); }
.fb-item.fb-new { background: #fffdf3; }
.fb-head { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.fb-comment { margin: 8px 0; white-space: normal; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.chip { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--ink-2); font-size: .85rem; }
.chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.badge-info { background: var(--blue-tint); color: #164f96; }

/* Demo guide */
.hero-sub { color: #c9ccd2; max-width: 720px; margin: 8px 0 0; }
.guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.guide-card { padding: 22px 22px 18px; position: relative; }
.guide-card h2 { font-size: 1.2rem; padding-right: 40px; }
.guide-card .btn-row { margin: 10px 0 6px; }
.guide-card-hl { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-tint); }
.guide-step { position: absolute; top: 18px; right: 18px; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.demo-login { display: flex; gap: 20px; margin: 8px 0; }
.demo-login dt { font-size: .75rem; color: var(--muted); text-transform: uppercase; }
.demo-login dd { margin: 2px 0 0; }
.guide-foot { display: flex; gap: 16px; align-items: center; justify-content: space-between; margin: 18px 0 10px; flex-wrap: wrap; }

/* Demo inbox */
.inbox { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 16px; align-items: start; }
.inbox-list { list-style: none; margin: 0; padding: 0; max-height: 720px; overflow: auto; }
.inbox-list a { display: grid; grid-template-columns: 40px 1fr; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.inbox-list a:hover, .inbox-list a.is-active { background: var(--red-tint); }
.ib-main strong { display: block; font-weight: 600; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ib-chan { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 700; background: var(--blue-tint); color: #164f96; }
.ib-sms { background: var(--green-tint); color: var(--green); }
.inbox-view { overflow: hidden; }
.ib-head { padding: 16px 18px 8px; border-bottom: 1px solid var(--line); }
.ib-head h2 { font-size: 1.1rem; margin: 0 0 2px; }
.ib-frame { width: 100%; height: 620px; border: 0; display: block; background: #f4f5f7; }
.ib-frame-sms { height: 160px; background: #fff; }
.ib-reply { padding: 14px 18px 18px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.ib-reply textarea { width: 100%; }
.demo-checkout .form-actions { margin-top: 8px; }

@media (max-width: 860px) {
  .guide-grid, .inbox { grid-template-columns: 1fr; }
  .inbox-list { max-height: 300px; }
  .ib-frame { height: 520px; }
  .fb-fab { right: 12px; bottom: 12px; padding: 10px 14px; }
}
.guide-card { min-width: 0; }
.guide-card .btn { white-space: normal; text-align: center; max-width: 100%; }
.stats .stat { align-self: start; }
