/* ================================================================
   account_v2.css — Mobile-first Customer Account System
   Prefix: ac- (avoid conflicts with theme / account-pages.css)
   ================================================================ */

/* ── CSS Variables ─────────────────────────────────────────────── */
:root {
  --ac-pink:        #f16784;
  --ac-pink-dark:   #e05575;
  --ac-pink-light:  #fff0f3;
  --ac-green:       #4caf50;
  --ac-blue:        #2196f3;
  --ac-orange:      #ff9800;
  --ac-red:         #e53935;
  --ac-gold:        #f9a825;
  --ac-text:        #1a1a1a;
  --ac-text-sub:    #666;
  --ac-text-muted:  #aaa;
  --ac-border:      #f0f0f0;
  --ac-bg:          #f7f8fc;
  --ac-card:        #ffffff;
  --ac-radius:      14px;
  --ac-radius-sm:   9px;
  --ac-shadow:      0 2px 12px rgba(0,0,0,.07);
  --ac-shadow-md:   0 4px 20px rgba(0,0,0,.10);
  --ac-sidebar-w:   240px;
  --ac-nav-h:       64px;
}

/* ── Reset & Base ──────────────────────────────────────────────── */
.ac-wrap *, .ac-wrap *::before, .ac-wrap *::after { box-sizing: border-box; }
.ac-wrap { font-family: inherit; color: var(--ac-text); }

/* ── Page Layout ───────────────────────────────────────────────── */
.ac-layout {
  display: flex;
  gap: 20px;
  max-width: 1100px;
  margin: 20px auto;
  padding: 0 16px 100px;
  align-items: flex-start;
}

/* ── Sidebar ───────────────────────────────────────────────────── */
.ac-sidebar {
  width: var(--ac-sidebar-w);
  flex-shrink: 0;
  position: sticky;
  top: 80px;
}
.ac-sidebar-card {
  background: var(--ac-card);
  border-radius: var(--ac-radius);
  box-shadow: var(--ac-shadow);
  overflow: hidden;
}

/* Avatar block */
.ac-avatar-block {
  padding: 24px 20px 16px;
  text-align: center;
  background: linear-gradient(135deg, #fff5f7, #fff);
  border-bottom: 1px solid var(--ac-border);
}
.ac-avatar-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 10px;
}
.ac-avatar-wrap img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--ac-pink);
  display: block;
}
.ac-avatar-edit {
  position: absolute;
  bottom: 0; right: 0;
  width: 26px; height: 26px;
  background: var(--ac-pink);
  border: 2px solid #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 11px; color: #fff;
  transition: background .2s;
}
.ac-avatar-edit:hover { background: var(--ac-pink-dark); }
.ac-sidebar-name {
  font-size: 15px; font-weight: 700; color: var(--ac-text);
  margin: 0 0 2px;
}
.ac-sidebar-phone {
  font-size: 12px; color: var(--ac-text-muted);
  margin: 0 0 8px;
}
.ac-tier-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px; font-weight: 700;
  background: linear-gradient(135deg, #fff3cd, #ffd54f);
  color: #7c4b00;
}

/* Nav items */
.ac-nav { padding: 8px 0; }
.ac-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 20px;
  font-size: 13px; font-weight: 500; color: var(--ac-text-sub);
  cursor: pointer;
  transition: background .15s, color .15s;
  border-left: 3px solid transparent;
  text-decoration: none;
  position: relative;
}
.ac-nav-item i { width: 18px; text-align: center; font-size: 14px; }
.ac-nav-item:hover { background: var(--ac-pink-light); color: var(--ac-pink); }
.ac-nav-item.active {
  background: var(--ac-pink-light);
  color: var(--ac-pink);
  font-weight: 700;
  border-left-color: var(--ac-pink);
}
.ac-nav-badge {
  margin-left: auto;
  background: var(--ac-pink);
  color: #fff;
  font-size: 10px; font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  min-width: 18px; text-align: center;
}
.ac-nav-sep { height: 1px; background: var(--ac-border); margin: 6px 0; }
.ac-nav-item.logout { color: var(--ac-red); }
.ac-nav-item.logout:hover { background: #fff5f5; }

/* ── Main Content ──────────────────────────────────────────────── */
.ac-main { flex: 1; min-width: 0; }
.ac-tab { display: none; }
.ac-tab.active { display: block; }

/* ── Card ──────────────────────────────────────────────────────── */
.ac-card {
  background: var(--ac-card);
  border-radius: var(--ac-radius);
  box-shadow: var(--ac-shadow);
  margin-bottom: 14px;
  overflow: hidden;
}
.ac-card__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--ac-border);
}
.ac-card__head h3 {
  margin: 0; font-size: 14px; font-weight: 700;
  display: flex; align-items: center; gap: 8px; color: var(--ac-text);
}
.ac-card__head h3 i { color: var(--ac-pink); }
.ac-card__body { padding: 16px 18px; }

/* ── Stats Grid ────────────────────────────────────────────────── */
.ac-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}
.ac-stat {
  background: var(--ac-card);
  border-radius: var(--ac-radius);
  padding: 16px;
  box-shadow: var(--ac-shadow);
  display: flex; align-items: center; gap: 12px;
}
.ac-stat__icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.ac-stat--pink  .ac-stat__icon { background: #fff0f3; color: var(--ac-pink); }
.ac-stat--green .ac-stat__icon { background: #f0faf0; color: var(--ac-green); }
.ac-stat--blue  .ac-stat__icon { background: #e8f4fd; color: var(--ac-blue); }
.ac-stat--orange .ac-stat__icon { background: #fff8e1; color: var(--ac-orange); }
.ac-stat__val {
  font-size: 17px; font-weight: 800; color: var(--ac-text);
  line-height: 1.1;
}
.ac-stat__lbl { font-size: 11px; color: var(--ac-text-muted); margin-top: 2px; }

/* ── Info List ─────────────────────────────────────────────────── */
.ac-info-list { display: flex; flex-direction: column; gap: 10px; }
.ac-info-item {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px;
}
.ac-info-item i { color: var(--ac-pink); width: 16px; flex-shrink: 0; margin-top: 2px; }
.ac-info-label { color: var(--ac-text-muted); font-size: 11px; }
.ac-info-val { color: var(--ac-text); font-weight: 500; }

/* ── Recent Orders (overview) ──────────────────────────────────── */
.ac-recent-order {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--ac-border);
  gap: 8px;
}
.ac-recent-order:last-child { border-bottom: none; }
.ac-order-code { font-size: 13px; font-weight: 700; color: var(--ac-text); }
.ac-order-date { font-size: 11px; color: var(--ac-text-muted); }
.ac-order-total { font-size: 13px; font-weight: 700; color: var(--ac-pink); white-space: nowrap; }

/* ── Order Status Badges ───────────────────────────────────────── */
.ac-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 20px;
  font-size: 11px; font-weight: 600;
}
.ac-badge--1 { background: #fff8e1; color: #f57c00; }   /* Chờ xử lý */
.ac-badge--2 { background: #e3f2fd; color: #1565c0; }   /* Đang xử lý */
.ac-badge--3 { background: #e8f5e9; color: #2e7d32; }   /* Đang giao */
.ac-badge--4 { background: #e8f5e9; color: #1b5e20; }   /* Hoàn thành */
.ac-badge--5 { background: #ffebee; color: #b71c1c; }   /* Đã hủy */

/* ── Quick Actions ─────────────────────────────────────────────── */
.ac-quick-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.ac-quick-btn {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 14px 8px;
  background: var(--ac-bg);
  border-radius: var(--ac-radius-sm);
  cursor: pointer; text-decoration: none;
  font-size: 11px; font-weight: 600; color: var(--ac-text-sub);
  transition: background .2s, color .2s;
  border: 1.5px solid transparent;
}
.ac-quick-btn i { font-size: 18px; color: var(--ac-pink); }
.ac-quick-btn:hover { background: var(--ac-pink-light); border-color: var(--ac-pink); color: var(--ac-pink); }

/* ── Orders List ───────────────────────────────────────────────── */
.ac-order-card {
  background: var(--ac-card);
  border-radius: var(--ac-radius);
  box-shadow: var(--ac-shadow);
  margin-bottom: 12px;
  overflow: hidden;
}
.ac-order-card__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  background: #fafafa;
  border-bottom: 1px solid var(--ac-border);
  flex-wrap: wrap; gap: 6px;
}
.ac-order-card__head-left { display: flex; flex-direction: column; gap: 2px; }
.ac-order-card__id { font-size: 13px; font-weight: 700; }
.ac-order-card__date { font-size: 11px; color: var(--ac-text-muted); }
.ac-order-card__body { padding: 12px 16px; }
.ac-order-product {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--ac-border);
}
.ac-order-product:last-child { border-bottom: none; }
.ac-order-product img {
  width: 52px; height: 52px; border-radius: 8px; object-fit: cover; flex-shrink: 0;
}
.ac-order-product__name { font-size: 13px; font-weight: 600; color: var(--ac-text); }
.ac-order-product__meta { font-size: 11px; color: var(--ac-text-muted); }
.ac-order-product__price { font-size: 13px; font-weight: 700; color: var(--ac-pink); margin-left: auto; white-space: nowrap; }
.ac-order-card__foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px;
  border-top: 1px solid var(--ac-border);
  flex-wrap: wrap; gap: 8px;
}
.ac-order-total-row { font-size: 13px; }
.ac-order-total-row strong { color: var(--ac-pink); font-size: 15px; }
.ac-order-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ac-btn {
  padding: 7px 14px; border-radius: 8px;
  font-size: 12px; font-weight: 600;
  border: none; cursor: pointer;
  transition: opacity .2s;
  display: inline-flex; align-items: center; gap: 5px;
}
.ac-btn:hover { opacity: .85; }
.ac-btn--pink { background: var(--ac-pink); color: #fff; }
.ac-btn--outline { background: #fff; border: 1.5px solid var(--ac-border); color: var(--ac-text-sub); }
.ac-btn--red { background: #ffebee; color: var(--ac-red); border: 1.5px solid #ffcdd2; }
.ac-btn--green { background: #e8f5e9; color: var(--ac-green); border: 1.5px solid #c8e6c9; }

/* Order timeline */
.ac-timeline {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  background: #fafafa;
  border-top: 1px solid var(--ac-border);
  overflow-x: auto; gap: 0;
}
.ac-tl-step {
  display: flex; flex-direction: column; align-items: center;
  gap: 4px; flex: 1; min-width: 56px;
  font-size: 10px; color: var(--ac-text-muted); text-align: center;
}
.ac-tl-dot {
  width: 26px; height: 26px; border-radius: 50%;
  background: #e0e0e0; color: #bbb;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; position: relative; z-index: 1;
}
.ac-tl-dot.done  { background: var(--ac-green); color: #fff; }
.ac-tl-dot.active { background: var(--ac-pink); color: #fff; box-shadow: 0 0 0 3px rgba(241,103,132,.2); }
.ac-tl-dot.cancelled { background: var(--ac-red); color: #fff; }
.ac-tl-line {
  height: 2px; flex: 1; background: #e0e0e0; align-self: flex-start;
  margin-top: 12px;
}
.ac-tl-line.done { background: var(--ac-green); }

/* ── Form Fields ───────────────────────────────────────────────── */
.ac-field { margin-bottom: 14px; }
.ac-field label {
  display: block; font-size: 12px; font-weight: 600;
  color: var(--ac-text-sub); margin-bottom: 5px;
}
.ac-field label abbr { color: var(--ac-red); text-decoration: none; margin-left: 2px; }
.ac-input {
  width: 100%; padding: 10px 12px;
  border: 1.5px solid #e0e0e0; border-radius: var(--ac-radius-sm);
  font-size: 14px; color: var(--ac-text);
  background: #fafafa;
  transition: border-color .2s, box-shadow .2s;
  box-sizing: border-box;
}
.ac-input:focus {
  outline: none;
  border-color: var(--ac-pink);
  box-shadow: 0 0 0 3px rgba(241,103,132,.1);
  background: #fff;
}
.ac-input[readonly] { background: #f5f5f5; color: var(--ac-text-muted); cursor: not-allowed; }
.ac-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ac-radio-group { display: flex; gap: 14px; margin-top: 4px; }
.ac-radio-group label {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500; color: var(--ac-text); cursor: pointer;
}
.ac-radio-group input { accent-color: var(--ac-pink); }
.ac-submit {
  width: 100%; padding: 12px;
  background: linear-gradient(135deg, var(--ac-pink), var(--ac-pink-dark));
  color: #fff; border: none; border-radius: var(--ac-radius-sm);
  font-size: 14px; font-weight: 700; cursor: pointer;
  transition: opacity .2s;
}
.ac-submit:hover { opacity: .9; }

/* ── Vouchers ──────────────────────────────────────────────────── */
.ac-voucher-list { display: flex; flex-direction: column; gap: 10px; }
.ac-voucher {
  display: flex; align-items: stretch;
  background: var(--ac-card);
  border: 1.5px solid var(--ac-border);
  border-radius: var(--ac-radius); overflow: hidden;
}
.ac-voucher.expired { opacity: .55; filter: grayscale(.4); }
.ac-voucher__left {
  width: 80px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--ac-pink), var(--ac-pink-dark));
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; color: #fff; padding: 12px 8px;
  position: relative;
}
.ac-voucher__left::after {
  content: '';
  position: absolute; right: -8px; top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--ac-bg);
  box-shadow: inset 0 0 0 1.5px var(--ac-border);
}
.ac-voucher__icon { font-size: 20px; }
.ac-voucher__type { font-size: 9px; font-weight: 700; text-transform: uppercase; opacity: .85; text-align: center; }
.ac-voucher__body { flex: 1; padding: 12px 16px 12px 20px; }
.ac-voucher__code { font-size: 15px; font-weight: 800; letter-spacing: .5px; color: var(--ac-text); }
.ac-voucher__desc { font-size: 12px; color: var(--ac-text-sub); margin: 2px 0 6px; }
.ac-voucher__meta { font-size: 11px; color: var(--ac-text-muted); display: flex; gap: 12px; flex-wrap: wrap; }
.ac-voucher__meta span { display: flex; align-items: center; gap: 4px; }
.ac-voucher__copy {
  padding: 4px 12px; background: var(--ac-pink-light);
  color: var(--ac-pink); border: 1.5px solid var(--ac-pink);
  border-radius: 6px; font-size: 11px; font-weight: 700;
  cursor: pointer; white-space: nowrap; align-self: center;
  transition: background .2s;
}
.ac-voucher__copy:hover { background: var(--ac-pink); color: #fff; }

/* ── Loyalty ───────────────────────────────────────────────────── */
.ac-points-hero {
  background: linear-gradient(135deg, #fff5f7, #fff9e6);
  border: 1.5px solid #ffd54f;
  border-radius: var(--ac-radius);
  padding: 20px; text-align: center;
  margin-bottom: 14px;
}
.ac-points-val {
  font-size: 42px; font-weight: 900;
  background: linear-gradient(135deg, var(--ac-pink), var(--ac-gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  line-height: 1;
}
.ac-points-lbl { font-size: 13px; color: var(--ac-text-muted); margin-top: 4px; }
.ac-tier-row {
  display: flex; align-items: center; gap: 10px;
  margin-top: 12px; justify-content: center;
}
.ac-tier-name {
  font-size: 13px; font-weight: 700; color: #7c4b00;
  background: linear-gradient(135deg, #fff3cd, #ffd54f);
  padding: 4px 12px; border-radius: 20px;
}
.ac-progress-wrap { margin: 14px 0 4px; }
.ac-progress-bar {
  height: 8px; background: #f0f0f0; border-radius: 4px; overflow: hidden;
}
.ac-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--ac-pink), var(--ac-gold));
  border-radius: 4px; transition: width .5s ease;
}
.ac-progress-labels {
  display: flex; justify-content: space-between;
  font-size: 10px; color: var(--ac-text-muted); margin-top: 4px;
}
.ac-txn-list { display: flex; flex-direction: column; gap: 0; }
.ac-txn {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--ac-border);
}
.ac-txn:last-child { border-bottom: none; }
.ac-txn__icon {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
}
.ac-txn__icon.earn { background: #e8f5e9; color: var(--ac-green); }
.ac-txn__icon.spend { background: #ffebee; color: var(--ac-red); }
.ac-txn__desc { flex: 1; min-width: 0; font-size: 13px; color: var(--ac-text); }
.ac-txn__date { font-size: 10px; color: var(--ac-text-muted); }
.ac-txn__pts { font-size: 14px; font-weight: 800; white-space: nowrap; }
.ac-txn__pts.earn { color: var(--ac-green); }
.ac-txn__pts.spend { color: var(--ac-red); }

/* ── Mobile Bottom Navigation ──────────────────────────────────── */
.ac-bottomnav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #fff; border-top: 1px solid var(--ac-border);
  z-index: 200; box-shadow: 0 -4px 16px rgba(0,0,0,.08);
  height: var(--ac-nav-h);
  overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none;
}
.ac-bottomnav::-webkit-scrollbar { display: none; }
.ac-bottomnav__inner {
  display: flex; height: 100%;
  min-width: max-content;
}
.ac-bottomnav__item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; padding: 0 16px;
  font-size: 10px; font-weight: 600; color: var(--ac-text-muted);
  cursor: pointer; white-space: nowrap;
  border-top: 3px solid transparent;
  transition: color .15s;
  min-width: 58px;
}
.ac-bottomnav__item i { font-size: 18px; }
.ac-bottomnav__item.active { color: var(--ac-pink); border-top-color: var(--ac-pink); }
.ac-bottomnav__item .ac-nav-badge { margin: 0; }

/* ── Login Page ────────────────────────────────────────────────── */
.ac-login-wrap {
  max-width: 420px; margin: 40px auto;
  padding: 0 16px 40px;
}
.ac-login-logo {
  text-align: center; margin-bottom: 24px;
}
.ac-login-logo img { width: 72px; height: 72px; border-radius: 16px; }
.ac-login-logo h2 { font-size: 20px; font-weight: 800; margin: 10px 0 4px; }
.ac-login-logo p { font-size: 13px; color: var(--ac-text-muted); margin: 0; }

.ac-login-card {
  background: var(--ac-card);
  border-radius: var(--ac-radius);
  box-shadow: var(--ac-shadow-md);
  overflow: hidden;
}
.ac-login-tabs {
  display: flex; border-bottom: 1px solid var(--ac-border);
}
.ac-login-tab {
  flex: 1; padding: 14px;
  text-align: center; font-size: 13px; font-weight: 600;
  color: var(--ac-text-muted); cursor: pointer;
  border-bottom: 2.5px solid transparent;
  transition: color .2s;
}
.ac-login-tab.active { color: var(--ac-pink); border-bottom-color: var(--ac-pink); }
.ac-login-body { padding: 20px; }
.ac-login-step { display: none; }
.ac-login-step.active { display: block; }

/* OTP input row */
.ac-otp-row {
  display: flex; gap: 8px;
}
.ac-otp-row .ac-input { flex: 1; }
.ac-otp-send {
  padding: 10px 14px;
  background: var(--ac-pink); color: #fff;
  border: none; border-radius: var(--ac-radius-sm);
  font-size: 13px; font-weight: 600; cursor: pointer;
  white-space: nowrap; transition: opacity .2s;
}
.ac-otp-send:disabled { opacity: .6; cursor: not-allowed; }
.ac-otp-send:not(:disabled):hover { opacity: .9; }
.ac-otp-hint { font-size: 11px; color: var(--ac-text-muted); margin-top: 6px; text-align: center; }
.ac-otp-countdown { color: var(--ac-pink); font-weight: 600; }
.ac-divider {
  text-align: center; font-size: 12px; color: var(--ac-text-muted);
  margin: 14px 0; position: relative;
}
.ac-divider::before, .ac-divider::after {
  content: ''; position: absolute; top: 50%;
  width: calc(50% - 24px); height: 1px;
  background: var(--ac-border);
}
.ac-divider::before { left: 0; }
.ac-divider::after { right: 0; }

/* ── Alert messages ────────────────────────────────────────────── */
.ac-alert {
  padding: 10px 14px; border-radius: var(--ac-radius-sm);
  font-size: 13px; margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.ac-alert--success { background: #e8f5e9; color: #2e7d32; border: 1px solid #c8e6c9; }
.ac-alert--error   { background: #ffebee; color: #b71c1c; border: 1px solid #ffcdd2; }

/* ── Feedback Tab ──────────────────────────────────────────────── */
.ac-fb-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ac-fb-panel {
  background: var(--ac-card);
  border-radius: var(--ac-radius);
  box-shadow: var(--ac-shadow);
  overflow: hidden;
}
.ac-fb-panel__head {
  padding: 16px 18px;
  border-bottom: 1px solid var(--ac-border);
  background: linear-gradient(135deg, #fff8fa, #ffffff);
}
.ac-fb-panel__head h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: var(--ac-text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.ac-fb-panel__head h3 i { color: var(--ac-pink); }
.ac-fb-panel__head p {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--ac-text-sub);
}
.ac-fb-panel__head--row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.ac-fb-form { padding: 16px 18px 18px; }
.ac-fb-field { display: block; margin: 0; }
.ac-fb-field span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--ac-text-sub);
  margin-bottom: 6px;
}
.ac-fb-field abbr { color: var(--ac-red); text-decoration: none; margin-left: 2px; }
.ac-fb-field textarea {
  width: 100%;
  border: 1.5px solid #e3e3e3;
  border-radius: 11px;
  padding: 12px;
  font-size: 13px;
  color: var(--ac-text);
  line-height: 1.5;
  resize: vertical;
  min-height: 138px;
  background: #fcfcfc;
  transition: border-color .2s, box-shadow .2s;
}
.ac-fb-field textarea:focus {
  outline: none;
  border-color: var(--ac-pink);
  box-shadow: 0 0 0 3px rgba(241, 103, 132, .13);
  background: #fff;
}
.ac-fb-field small {
  display: block;
  text-align: right;
  margin-top: 6px;
  color: var(--ac-text-muted);
  font-size: 11px;
}
.ac-fb-captcha {
  margin-top: 10px;
  padding: 10px;
  border: 1px dashed #f0d5dc;
  border-radius: 10px;
  background: #fff9fb;
}
.ac-fb-actions { margin-top: 12px; }
.ac-fb-actions .ac-submit { max-width: 210px; }

.ac-fb-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ac-fb-stat {
  font-size: 11px;
  font-weight: 600;
  color: var(--ac-text-sub);
  padding: 5px 10px;
  border-radius: 999px;
  background: #f7f8fc;
  border: 1px solid #eceef7;
}
.ac-fb-stat strong { color: var(--ac-text); }
.ac-fb-stat--pending { background: #fff8e8; color: #9a6500; border-color: #ffe1ae; }
.ac-fb-stat--done { background: #eaf8ee; color: #1b7f37; border-color: #c9eccf; }

.ac-fb-empty {
  padding: 30px 18px;
  text-align: center;
  color: var(--ac-text-sub);
}
.ac-fb-empty i {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f7f8fc;
  color: #adb2c4;
  margin-bottom: 8px;
}
.ac-fb-empty p { margin: 0; font-size: 12px; }

.ac-fh-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 18px 18px;
}
.ac-fh-item {
  border: 1px solid #edf0f5;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.ac-fh-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  background: #fbfcff;
}
.ac-fh-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ac-fh-date {
  font-size: 11px;
  color: var(--ac-text-sub);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.ac-fh-status {
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
}
.ac-fh-status.is-pending { background: #fff3e0; color: #ef6c00; }
.ac-fh-status.is-handled { background: #e8f5e9; color: #2e7d32; }
.ac-fh-toggle {
  border: 1px solid #e5e8f0;
  border-radius: 8px;
  background: #fff;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--ac-text-sub);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.ac-fh-toggle i { transition: transform .2s; font-size: 10px; }
.ac-fh-toggle[aria-expanded="true"] i { transform: rotate(180deg); }
.ac-fh-body {
  border-top: 1px dashed #eceff5;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ac-fh-block h4 {
  margin: 0 0 5px;
  font-size: 12px;
  color: var(--ac-text-sub);
}
.ac-fh-text {
  margin: 0;
  font-size: 13px;
  color: var(--ac-text);
  line-height: 1.55;
}
.ac-fh-block--reply {
  background: #f7fbff;
  border: 1px solid #e6f0fa;
  border-radius: 10px;
  padding: 10px;
}
.ac-fh-time {
  margin: 6px 0 0;
  font-size: 11px;
  color: var(--ac-text-muted);
}
.ac-fh-pending-note {
  font-size: 12px;
  color: #a56a00;
  background: #fff8e8;
  border: 1px dashed #ffd89a;
  border-radius: 9px;
  padding: 8px 10px;
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .ac-layout { flex-direction: column; gap: 0; padding: 0 0 80px; margin: 0; }
  .ac-sidebar { display: none; }
  .ac-bottomnav { display: flex; }
  .ac-main { padding: 12px 12px 0; width: 100%; }
  .ac-stats { grid-template-columns: repeat(2, 1fr); }
  .ac-quick-grid { grid-template-columns: repeat(3, 1fr); }
  .ac-grid-2 { grid-template-columns: 1fr; }
  .ac-login-wrap { margin: 16px auto; }
  .ac-order-card__head { flex-direction: column; align-items: flex-start; }
  .ac-fb-panel__head--row { flex-direction: column; }
  .ac-fb-actions .ac-submit { max-width: 100%; }
  .ac-fh-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 380px) {
  .ac-stats { grid-template-columns: 1fr 1fr; }
  .ac-quick-grid { grid-template-columns: repeat(3, 1fr); }
}
