/* Zalo Bot dashboard - thiết kế hiện đại, mobile-first */
:root {
  --blue: #0068ff;
  --blue-dark: #0053cc;
  --blue-soft: #eaf2ff;
  --bg: #f2f5f9;
  --card: #ffffff;
  --border: #e3e9f1;
  --text: #17212f;
  --muted: #6b7a8f;
  --green: #16a34a; --green-soft: #e7f8ee;
  --red: #dc2626;   --red-soft: #fdeaea;
  --amber: #b45309; --amber-soft: #fdf3d7;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(23, 33, 47, .05), 0 4px 16px rgba(23, 33, 47, .06);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* Chặn kéo ngang cả trang — các thành phần rộng (bảng, thanh tab) đã có vùng cuộn riêng */
html, body { overflow-x: hidden; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px; line-height: 1.5;
}
.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; }

/* ---------- Dải thông báo trên cùng ---------- */
.top-notice {
  background: var(--amber-soft); color: #8a5a00; text-align: center;
  padding: 8px 16px; font-size: 13px; font-weight: 600; line-height: 1.4;
  border-bottom: 1px solid #ffe3a3;
}
.top-notice b { color: #6b4500; }

/* ---------- Header ---------- */
header {
  background: linear-gradient(135deg, #0068ff 0%, #0091ff 60%, #00b2ff 100%);
  color: #fff; position: sticky; top: 0; z-index: 20;
  box-shadow: 0 2px 12px rgba(0, 104, 255, .25);
}
.header-inner { display: flex; justify-content: space-between; align-items: center; padding: 13px 16px; }
.brand { font-size: 17px; font-weight: 700; letter-spacing: -.2px; display: flex; align-items: center; gap: 8px; }
.brand .logo { font-size: 22px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.2)); }
.brand small { font-weight: 500; opacity: .75; font-size: 12px; }
#userBox { font-size: 13.5px; opacity: .95; }
#userBox a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.admin-link { background: rgba(255,255,255,.2); padding: 4px 11px; border-radius: 99px; text-decoration: none !important; font-weight: 600; }
.admin-link:hover { background: rgba(255,255,255,.32); }

main { padding: 22px 16px 70px; }
h2 { margin: 6px 0 14px; font-size: 21px; letter-spacing: -.3px; }
h3 { margin: 4px 0 10px; font-size: 16.5px; letter-spacing: -.2px; }
h4 { margin: 16px 0 8px; font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }

/* ---------- Cards ---------- */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px; margin: 14px 0; box-shadow: var(--shadow);
}
.muted { color: var(--muted); font-size: 13px; }
.error { color: var(--red); min-height: 1em; font-size: 13.5px; }
.hidden { display: none !important; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.space-between { justify-content: space-between; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }
@media (max-width: 680px) { .grid2 { grid-template-columns: 1fr; } }

/* ---------- Form ---------- */
.field { margin: 10px 0; }
.field label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 5px; }
.field label .muted { font-weight: 400; }
input, select, textarea {
  width: 100%; padding: 9px 12px; border: 1.5px solid var(--border); border-radius: 10px;
  font-size: 14px; font-family: inherit; background: #fff; color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 104, 255, .12);
}
.row input { width: auto; flex: 1; min-width: 140px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.check input { width: 17px; height: 17px; flex: none; accent-color: var(--blue); }

/* ---------- Buttons ---------- */
.btn {
  padding: 9px 15px; border: 1.5px solid var(--border); background: #fff; color: var(--text);
  border-radius: 10px; cursor: pointer; font-size: 14px; font-weight: 600; font-family: inherit;
  transition: all .15s; white-space: nowrap;
}
.btn:hover { background: var(--blue-soft); border-color: #bcd4ff; }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn.danger { color: var(--red); border-color: #f5b8b8; background: #fff; }
.btn.danger:hover { background: var(--red-soft); }
.btn.sm { padding: 5px 10px; font-size: 12.5px; border-radius: 8px; }

/* ---------- Bot cards ---------- */
.bot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; margin: 12px 0; }
.bot-item {
  background: var(--card); border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 16px; cursor: pointer; box-shadow: var(--shadow); transition: all .15s;
  display: flex; flex-direction: column; gap: 9px;
}
.bot-item:hover { border-color: var(--blue); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0, 104, 255, .12); }
.bot-item .bot-head { display: flex; align-items: center; gap: 11px; }
.bot-avatar {
  width: 42px; height: 42px; border-radius: 12px; flex: none;
  background: linear-gradient(135deg, var(--blue), #00b2ff); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 19px; font-weight: 700;
}
.bot-item .bot-name { font-weight: 700; font-size: 15px; }
.bot-item .bot-zalo { font-size: 12.5px; color: var(--muted); }
.bot-item .bot-foot { display: flex; justify-content: space-between; align-items: center; }
.bot-item .bot-stat { font-size: 12.5px; color: var(--muted); }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 11px; border-radius: 99px;
  font-size: 12px; font-weight: 700; letter-spacing: .1px;
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.online { background: var(--green-soft); color: var(--green); }
.badge.online::before { animation: pulse 1.6s infinite; }
.badge.offline { background: #eef2f7; color: var(--muted); }
.badge.error { background: var(--red-soft); color: var(--red); }
.badge.wait { background: var(--amber-soft); color: var(--amber); }
@keyframes pulse { 0%, 100% { opacity: 1 } 50% { opacity: .35 } }

/* ---------- Detail head ---------- */
.detail-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.detail-head .bot-avatar { width: 52px; height: 52px; font-size: 24px; }
.detail-title { flex: 1; min-width: 180px; }
.detail-title h2 { margin: 0; }
.detail-title .muted { margin-top: 2px; }
.stat-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.chip {
  background: var(--blue-soft); color: var(--blue-dark); border-radius: 10px;
  padding: 6px 13px; font-size: 12.5px; font-weight: 600;
}
.chip b { font-size: 15px; }
#backBar { margin-bottom: 4px; }
#backBar a { color: var(--muted); text-decoration: none; font-size: 13.5px; font-weight: 600; }
#backBar a:hover { color: var(--blue); }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--border); margin: 16px 0 4px; overflow-x: auto; }
.tab {
  padding: 9px 15px; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--muted);
  border: none; background: none; font-family: inherit; white-space: nowrap;
  border-bottom: 2.5px solid transparent; margin-bottom: -2px; transition: all .15s;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--blue); border-bottom-color: var(--blue); }

/* ---------- QR ---------- */
.qr-box { text-align: center; padding: 18px; background: var(--blue-soft); border-radius: var(--radius); margin-top: 14px; }
.qr-box img { width: 225px; height: 225px; background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 8px; }

/* ---------- Tables ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead { background: #f7fafc; }
th { text-align: left; padding: 9px 11px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .3px; }
td { text-align: left; padding: 8px 11px; border-top: 1px solid var(--border); vertical-align: top; word-break: break-all; max-width: 280px; }
tbody tr:hover { background: #f8fbff; }
.ok { color: var(--green); }
.fail { color: var(--red); }

/* ---------- Stats / chart ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(125px, 1fr)); gap: 10px; margin: 12px 0; }
.stat { background: var(--blue-soft); border-radius: 12px; padding: 12px; text-align: center; }
.stat b { display: block; font-size: 23px; color: var(--blue); letter-spacing: -.5px; }
.stat span { font-size: 11.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .3px; }
.bars { display: flex; gap: 8px; align-items: flex-end; height: 110px; padding: 10px 4px 0; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; height: 100%; justify-content: flex-end; }
.bar { width: 100%; max-width: 46px; background: linear-gradient(180deg, #00a2ff, var(--blue)); border-radius: 6px 6px 3px 3px; min-height: 3px; transition: height .3s; }
.bar-col small { font-size: 10.5px; color: var(--muted); }
.bar-col .bar-val { font-size: 11.5px; font-weight: 700; color: var(--blue-dark); }
.top-list { margin: 6px 0 0; padding: 0; list-style: none; }
.top-list li { display: flex; justify-content: space-between; padding: 7px 4px; border-bottom: 1px dashed var(--border); font-size: 13.5px; }
.top-list li b { color: var(--blue-dark); }

/* Thống kê theo sàn */
.platform-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 8px 0; }
.platform-stat {
  display: flex; align-items: center; gap: 9px; padding: 10px 13px;
  background: #f8fafc; border: 1.5px solid var(--border); border-radius: 11px; font-size: 13.5px;
}
.platform-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.platform-name { flex: 1; font-weight: 600; min-width: 0; }
.platform-stat b { font-size: 16px; color: var(--blue-dark); }

/* ---------- Misc ---------- */
.group-checks {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(225px, 1fr)); gap: 7px;
  max-height: 320px; overflow-y: auto; padding: 2px; margin-bottom: 8px;
}
.group-checks .group-check {
  display: flex; align-items: center; gap: 9px; cursor: pointer; min-width: 0;
  padding: 7px 9px; border: 1.5px solid var(--border); border-radius: 10px; background: #fff;
  transition: all .15s;
}
.group-check:hover { border-color: #bcd4ff; background: #fbfdff; }
.group-check.on { border-color: var(--blue); background: var(--blue-soft); }
.group-check input { position: absolute; opacity: 0; pointer-events: none; }
.group-avatar {
  width: 32px; height: 32px; border-radius: 9px; flex: none; overflow: hidden;
  background: linear-gradient(135deg, #7a8aa0, #aab6c7); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700;
}
.group-avatar img { width: 100%; height: 100%; object-fit: cover; }
.group-check.on .group-avatar { background: linear-gradient(135deg, var(--blue), #00b2ff); }
.group-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.group-name { font-weight: 600; font-size: 13px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.group-meta { font-size: 10.5px; color: var(--muted); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.group-tick {
  width: 19px; height: 19px; border-radius: 50%; flex: none; border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800;
  color: transparent; transition: all .15s;
}
.group-check.on .group-tick { background: var(--blue); border-color: var(--blue); color: #fff; }
.platform-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.platform-check {
  padding: 8px 13px; border: 1.5px solid var(--border); border-radius: 10px;
  background: #fff; transition: all .15s; user-select: none;
}
.platform-check:hover { border-color: #bcd4ff; background: #fbfdff; }
.platform-check.on { border-color: var(--blue); background: var(--blue-soft); }
.domain-item { display: flex; align-items: center; gap: 11px; padding: 10px 12px; margin-bottom: 7px; border: 1.5px solid var(--border); border-radius: 11px; background: #fff; font-size: 14px; }
.dom-ico { width: 34px; height: 34px; border-radius: 9px; flex: none; background: var(--blue-soft); display: flex; align-items: center; justify-content: center; font-size: 16px; }
.dom-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.dom-name { font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dom-ep { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tag { font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 99px; letter-spacing: .2px; }
.tag-default { background: #fef3c7; color: #b45309; }
.tag-shared { background: #e0edff; color: #1d4ed8; }
.tag-own { background: #dcfce7; color: #15803d; }
code { background: #eef2f7; padding: 1px 6px; border-radius: 5px; font-size: 12px; }
a { color: var(--blue); }

.test-result {
  margin-top: 10px; padding: 12px 14px; border-radius: 10px; font-size: 13.5px;
  background: var(--green-soft); border: 1px solid #bfe8cd; word-break: break-all;
}
.test-result.err { background: var(--red-soft); border-color: #f5c2c2; }
.test-result .copy-btn { margin-left: 8px; }

/* ---------- Auth ---------- */
.auth-hero { max-width: 420px; margin: 34px auto 0; }
.auth-hero .card { padding: 26px; }
.auth-logo { text-align: center; font-size: 44px; margin-bottom: 4px; }
.auth-hero h2 { text-align: center; margin-bottom: 4px; }
.auth-hero .lead { text-align: center; margin-bottom: 14px; }
.auth-hero .btn { width: 100%; margin-top: 4px; }
.feature-pills { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: 16px; }
.feature-pills span { background: var(--blue-soft); color: var(--blue-dark); border-radius: 99px; padding: 4px 12px; font-size: 12px; font-weight: 600; }

/* ---------- Lịch sử chat (bong bóng) ---------- */
.chat-head { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.chat-head select { flex: 1; min-width: 0; }
.chat-head .btn { flex: none; white-space: nowrap; }
.chat-group-label {
  position: sticky; top: 0; z-index: 1; align-self: center; margin: 6px 0 2px;
  background: var(--blue-soft); color: var(--blue-dark); font-size: 12px; font-weight: 700;
  padding: 4px 14px; border-radius: 99px;
}
.chat-list { display: flex; flex-direction: column; gap: 10px; max-height: 460px; overflow-y: auto; padding: 4px; }
.chat-msg { display: flex; gap: 10px; align-items: flex-start; }
.chat-ava {
  width: 34px; height: 34px; border-radius: 50%; flex: none; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700;
}
.chat-body { min-width: 0; flex: 1; }
.chat-meta { font-size: 12px; margin-bottom: 2px; }
.chat-text {
  background: #f1f5f9; border-radius: 4px 12px 12px 12px; padding: 8px 12px; font-size: 14px;
  display: inline-block; max-width: 100%; word-break: break-word; white-space: pre-wrap; line-height: 1.45;
}

/* ---------- Tạo subdomain ---------- */
.subdomain-box {
  margin-top: 14px; padding: 14px 16px; border-radius: 12px;
  background: linear-gradient(135deg, #eef5ff, #f0fbff); border: 1.5px solid #cfe1ff;
}
.subdomain-box label { display: block; font-weight: 700; font-size: 14.5px; margin-bottom: 2px; }
.sub-row { margin-top: 10px; flex-wrap: nowrap; }
.sub-row #newSubLabel { flex: 1; min-width: 90px; }
.sub-dot { font-weight: 700; font-size: 18px; color: var(--muted); }
.sub-base { width: auto; flex: none; max-width: 190px; }
#subMsg { margin-top: 8px; }
@media (max-width: 560px) {
  .sub-row { flex-wrap: wrap; }
  .sub-base { max-width: none; flex: 1; }
}
.adv-domain { margin-top: 12px; }
.adv-domain summary { cursor: pointer; font-size: 13px; color: var(--muted); font-weight: 600; }
.adv-domain summary:hover { color: var(--blue); }

/* Hộp giải thích nhỏ dưới input */
.hint-box { margin-top: 8px; padding: 10px 12px; background: #f8fafc; border: 1px solid var(--border); border-radius: 9px; font-size: 12.5px; color: var(--muted); line-height: 1.55; }
.hint-box ul { margin: 5px 0; padding-left: 18px; }
.hint-box li { margin: 2px 0; }
.hint-box b { color: var(--text); }
.hint-box code { background: #e8eef6; }

/* ---------- Timeline changelog ---------- */
.timeline { position: relative; margin: 18px 0 30px; padding-left: 8px; }
.tl-item { position: relative; padding: 0 0 22px 26px; border-left: 2px solid var(--border); }
.tl-item:last-child { border-left-color: transparent; }
.tl-dot { position: absolute; left: -8px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--blue); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--blue-soft); }
.tl-date { font-size: 12.5px; color: var(--blue-dark); font-weight: 700; margin-bottom: 3px; }
.tl-body h3 { margin: 0 0 5px; font-size: 16.5px; }
.tl-body p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

/* ---------- Cảnh báo cuối trang ---------- */
.site-warning {
  max-width: 948px; margin: 10px auto 34px; padding: 13px 18px; text-align: center;
  background: #fff8e6; border: 1px solid #ffe3a3; border-radius: 12px; color: #8a6100; font-size: 13.5px; line-height: 1.5;
}
@media (max-width: 980px) { .site-warning { margin: 10px 16px 34px; } }
.site-credit { text-align: center; color: var(--muted); font-size: 12.5px; margin: -22px auto 30px; }
.site-credit a { color: var(--blue); }

/* ---------- Tab cấu hình bot: chia nhóm + thanh lưu sticky ---------- */
/* Viền khung đổi màu theo trạng thái: xanh = đủ cấu hình, đỏ = thiếu trường bắt buộc */
.cfg-section { padding: 14px 14px 8px; margin-bottom: 12px; border: 1.5px solid var(--border); border-radius: 13px; }
.cfg-section.cfg-ok { border-color: #7fd19e; }
.cfg-section.cfg-missing { border-color: #f0a3a3; background: #fffafa; }
.cfg-status { margin-left: auto; flex: none; font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.cfg-status.ok { background: var(--green-soft); color: var(--green); }
.cfg-status.missing { background: var(--red-soft); color: var(--red); }
.cfg-section-head { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.cfg-section-ico {
  flex: none; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  font-size: 18px; background: var(--blue-soft); border-radius: 11px;
}
.cfg-section-head h4 { margin: 0; font-size: 15.5px; letter-spacing: -.1px; }
.cfg-section-head p { margin: 1px 0 0; font-size: 12.5px; color: var(--muted); }
.cfg-savebar {
  position: sticky; bottom: 10px; z-index: 5; display: flex; align-items: center; gap: 12px;
  margin-top: 6px; padding: 10px 14px; background: rgba(255,255,255,.92);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: 1.5px solid var(--border); border-radius: 12px; box-shadow: 0 6px 24px rgba(23,33,47,.12);
}

/* ---------- Modal (overlay che toàn trang, không đóng được khi bắt buộc) ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(15,23,42,.6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  z-index: 90; display: flex; align-items: center; justify-content: center; padding: 16px;
}
.modal-card {
  max-width: 420px; width: 100%; margin: 0; background: var(--card); border-radius: 18px;
  box-shadow: 0 24px 64px rgba(0,0,0,.28); overflow: hidden; animation: modalIn .3s cubic-bezier(.21,1.02,.55,1);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(22px) scale(.97) } to { opacity: 1; transform: none } }

/* Modal bổ sung email */
.email-modal-hero {
  text-align: center; padding: 26px 22px 20px; color: #fff;
  background: linear-gradient(135deg, var(--blue), #00b2ff);
}
.email-modal-ico {
  display: inline-flex; align-items: center; justify-content: center; width: 58px; height: 58px;
  font-size: 28px; background: rgba(255,255,255,.18); border: 1.5px solid rgba(255,255,255,.35);
  border-radius: 18px; margin-bottom: 10px;
}
.email-modal-hero h3 { margin: 0 0 4px; font-size: 19px; letter-spacing: -.2px; }
.email-modal-hero p { margin: 0; font-size: 13px; opacity: .85; }
.email-modal-body { padding: 18px 22px 20px; }
.email-benefits { list-style: none; margin: 0 0 14px; padding: 0; }
.email-benefits li {
  display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--text);
  padding: 7px 10px; border-radius: 10px;
}
.email-benefits li:nth-child(odd) { background: var(--blue-soft); }
.email-benefits li span { font-size: 16px; flex: none; }
.btn-block { display: block; width: 100%; padding: 11px; font-size: 15px; margin-top: 4px; }
.email-modal-foot { margin: 12px 0 0; text-align: center; font-size: 12px; color: var(--muted); }
.email-modal-foot a { color: var(--muted); text-decoration: underline; }
.email-modal-foot a:hover { color: var(--red); }

/* ---------- Toast ---------- */
#toastBox { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast {
  background: #1c2733; color: #fff; padding: 11px 20px; border-radius: 12px; font-size: 14px;
  box-shadow: 0 8px 28px rgba(0,0,0,.25); animation: toastIn .25s ease; max-width: 90vw;
}
.toast.ok { background: var(--green); }
.toast.err { background: var(--red); }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px) } to { opacity: 1; transform: none } }

@media (max-width: 560px) {
  .card { padding: 14px; }
  .detail-head .bot-avatar { width: 44px; height: 44px; font-size: 20px; }
  main { padding-top: 14px; }
}
