.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 21px; font-weight: 620;
  color: var(--ink);
}
.brand-mark {
  width: 34px; height: 34px; border-radius: 11px; flex-shrink: 0;
  background: var(--accent); color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 17px; font-weight: 650;
  box-shadow: var(--shadow-1);
}
[data-theme="dark"] .brand-mark { color: #0b1512; }
.brand-has-logo { gap: 0; }
.brand-logo { 
  height: auto;
  width: 110px;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
  max-width: 100%;
  max-height: 100%;
}
@media (max-width: 991.98px) {
  .brand-has-logo{
    width: 100%;
    justify-content: left;
  }
  .auth-page .brand-has-logo{
    justify-content: center;
  }
  .brand-logo{
    width: 130px;
  }
  .auth-card h1{
    text-align: center;
  }
  .auth-card .sub{
    text-align: center;
  }
}
.icon-inline { display: inline-flex; align-items: center; justify-content: center; color: var(--accent-ink); }
.icon-inline svg { width: 16px; height: 16px; }
.recaptcha-wrap { overflow-x: auto; max-width: 100%; }
.recaptcha-v3-note { font-size: 12px; margin: 0; opacity: 0.75; }

.auth-visual .auth-brand-light { color: #fff; }
.auth-visual .auth-brand-light .brand-mark { background: rgba(255,255,255,0.14); }
.auth-visual .auth-brand-light span span { color: #e9d5a1; }

.form-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .form-grid.cols-2 { grid-template-columns: 1fr 1fr; } .form-grid .span-2 { grid-column: 1 / -1; } }

.fgroup label { display: block; font-size: 15px; font-weight: 800; margin-bottom: 7px; color: var(--ink-2); }
.fgroup .hint { font-size: 12px; color: var(--ink-3); margin-top: 5px; }
textarea.field { min-height: 110px; resize: vertical; }

.form-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }

/* ---------- Tabs ---------- */
.tabs { 
  display: flex; 
  gap: 6px; 
  border-bottom: 1px solid var(--line); 
  margin-bottom: 22px; 
  overflow-x: auto;
  overflow-y: hidden;
}
.tabs a {
  padding: 10px 13px;
  font-size: 17px;
  font-weight: 900;
  color: var(--ink-3);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
}
.tabs a:first-child{
  padding-left: 0;
}
.tabs a:last-child{
  padding-right: 0;
}
.tabs a:hover { color: var(--ink); }
.tabs a.is-active { 
  color: var(--accent-ink); 
  border-bottom-color: var(--accent); 
  background: var(--bg-elev);
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  box-shadow: var(--shadow-1);
  padding-left: 13px;
  padding-right: 13px;
}

/* ---------- Toast flashes ---------- */
.toast-flash {
  display: flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--bg);
  padding: 11px 20px; border-radius: 999px;
  font-size: 13.5px; font-weight: 550;
  box-shadow: var(--shadow-3);
  animation: toast-in 400ms var(--ease);
}
.toast-flash.error { background: var(--danger); color: #fff; }
.toast-flash svg { width: 16px; height: 16px; }

/* ---------- Notification dropdown ---------- */
.notif-wrap { position: relative; }
.notif-panel {
  display: none;
  z-index: 200;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-3);
  max-height: min(420px, calc(100dvh - var(--topbar-h, 72px) - 24px));
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  /* Mobile: anchor to viewport so the panel never overflows the screen */
  position: fixed;
  top: calc(var(--topbar-h, 72px) + 8px);
  left: 12px;
  right: 12px;
  width: auto;
  max-width: none;
}
@media (min-width: 640px) {
  .notif-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: auto;
    right: 0;
    width: min(340px, calc(100vw - 24px));
    max-width: 340px;
  }
}
.notif-panel.is-open { display: block; }
.notif-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.notif-item {
  display: flex; gap: 12px; padding: 12px 16px;
  border-bottom: 1px solid var(--line); font-size: 13.5px; line-height: 1.4;
  transition: background-color 150ms ease;
  color: inherit; text-decoration: none;
}
.notif-item:hover { background: var(--bg-elev); }
.notif-item.is-unread { background: var(--accent-soft); }
.notif-item small { display: block; color: var(--ink-3); font-size: 11.5px; margin-top: 2px; }
.notif-item .feed-icon { width: 32px; height: 32px; flex-shrink: 0; }
.notif-empty { padding: 26px 16px; text-align: center; color: var(--ink-3); font-size: 13px; }

/* ---------- Avatar images / premium badge ---------- */
.avatar { position: relative; overflow: visible; }
.avatar img { width: 100%; height: 100%; border-radius: 999px; object-fit: cover; }
.av-badge {
  position: absolute; right: -4px; bottom: -3px;
  width: 16px; height: 16px; border-radius: 99px;
  background: var(--gold); color: #fff;
  font-size: 9px; display: grid; place-items: center;
  border: 2px solid var(--surface);
}

/* ---------- Chat ---------- */
.chat-layout {
  display: grid; grid-template-columns: 1fr; gap: 0;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface); overflow: hidden; box-shadow: var(--shadow-1);
  min-height: 540px;
}
@media (min-width: 900px) { .chat-layout { grid-template-columns: 300px 1fr; } }

.chat-list { border-right: 1px solid var(--line); overflow-y: auto; max-height: 640px; }
.chat-list-item {
  display: flex; gap: 12px; padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  transition: background-color 150ms ease;
}
.chat-list-item:hover, .chat-list-item.is-active { background: var(--bg-elev); }
.chat-list-item .who { min-width: 0; flex: 1; line-height: 1.35; }
.chat-list-item .who strong {
  display: block;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-list-item .who span {
  font-size: 14px; 
  color: var(--ink-3);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-list-item .meta { text-align: right; font-size: 11px; color: var(--ink-3); flex-shrink: 0; }
.chat-list-item .meta .unread {
  display: inline-grid; place-items: center; min-width: 18px; height: 18px;
  background: var(--accent); color: #fff; border-radius: 99px;
  font-size: 10.5px; font-weight: 700; padding-inline: 5px; margin-top: 4px;
}

.chat-pane { display: flex; flex-direction: column; min-height: 480px; }
.chat-pane-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.chat-pane-head .who strong {
  font-size: 15px;
  display: block;
}
.chat-pane-head .who span {
  font-size: 14px; 
  color: var(--ink-3);
}

@media (max-width: 767.98px) {
  .chat-pane-head{
    display: none;
  }
  .chat-layout{
    min-height: 450px;
  }
  .chat-pane{
    min-height: 400px;
  }
  .kpi-grid{
    gap: 8px;
  }
  .panel-grid{
    margin-top: 8px;
    gap: 8px;
  }
}

.chat-msgs { flex: 1; overflow-y: auto; padding: 20px 18px; display: flex; flex-direction: column; gap: 10px; max-height: 460px; }
.bubble-row { display: flex; }
.bubble-row.mine { justify-content: flex-end; }
.chat-bubble, .bubble-row .bubble {
  max-width: 72%;
  padding: 10px 15px;
  border-radius: 18px;
  font-size: 16px;
  line-height: normal;
  background: var(--surface-2);
  border-bottom-left-radius: 6px;
}
.bubble-row.mine .chat-bubble, .bubble-row.mine .bubble { background: var(--accent); color: #fff; border-radius: 18px; border-bottom-right-radius: 6px; }
[data-theme="dark"] .bubble-row.mine .chat-bubble, [data-theme="dark"] .bubble-row.mine .bubble { color: #0b1512; }
.chat-bubble small, .bubble small {
  display: block;
  font-size: 12px;
  opacity: 0.65;
  margin-top: 3px;
}

.chat-compose { display: flex; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--line); }
.chat-compose input { flex: 1; }

.chat-empty { display: grid; place-items: center; color: var(--ink-3); font-size: 14px; padding: 60px 20px; text-align: center; }

/* ---------- Community feed ---------- */

.community-parent{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: min-content;
  gap: 16px;
}
.site-community .community-parent{
  grid-template-columns: repeat(1, 1fr);
}
@media (max-width: 991.98px) {
  .community-parent{
    grid-template-columns: repeat(1, 1fr);
  }
}

@media (max-width: 767.98px) {
  .img-picker-preview{
    width: 100%!important;
  }
}

/* .panel-admin-community .post-card,
.panel-vendor-community .post-card,
.panel-customer-community .post-card{
  width: 48%;
  display: inline-block;
  margin-right: 16px;
}
@media (max-width: 767.98px) {
  .panel-admin-community .post-card,
  .panel-vendor-community .post-card,
  .panel-customer-community .post-card{
    width: 100%;
    margin-right: 0px;
  }
} */
.feed-composer { 
  display: flex; gap: 13px; 
}
.panel-vendor-community .feed-composer, 
.panel-customer-community .feed-composer{
  width: 50%;
}
@media (max-width: 991.98px) {
  .panel-vendor-community .feed-composer,
  .panel-customer-community .feed-composer{
    width: 100%;
  }
}
.feed-composer form { flex: 1; min-width: 0; }
.feed-composer textarea {
  min-height: 200px; max-width: 100%;
}
@media (max-width: 767.98px) {
  .feed-composer textarea {
    min-height: 100px;
  }
}
.feed-composer .form-actions {
  display: inline-block;
  width: 100%;
  margin-top: 10px;
}
.feed-composer .form-actions button[type="submit"]{
  margin-top: 15px;
  width: 100%;
}
.feed-composer .img-picker { 
  flex: 1 1 230px; 
  min-width: 0; 
  max-width: 100%;
  position: relative;
}
@media (max-width: 767.98px) {
  .img-picker{
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    position: relative;
  }
}
@media (max-width: 540px) {
  .feed-composer { flex-direction: column; }
  .feed-composer > .avatar { display: none; }
  .feed-composer .form-actions .btn { 
    margin-left: 0 !important; 
    width: 140px; 
  }
}
.backuppanel .comment{
  display: block;
}
.post-card { padding: 20px; }
/* .post-card + .post-card, .panel + .panel-mt{
  margin-top: 16px;
} */
.panel-mt{
  margin-top: 16px;
}
.panel-vendor-reviews .post-card{
  margin-top: 0;
}
.post-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.post-head .who strong { 
  font-size: 16px; 
  display: flex; 
  align-items: center; 
  gap: 6px;
}
.post-head .who span {
  font-size: 14px;
  color: var(--ink-3);
}
.post-body {
  font-size: 17px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.post-actions { flex-wrap: wrap; }
.post-img {
  margin-top: 12px;
  border-radius: var(--r-md);
  max-height: 380px;
  object-fit: cover;
  width: 50%;
}

.post-actions { display: flex; gap: 6px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.post-actions .chip {
  border: 0;
  background: transparent; 
  padding: 0;
}
.post-actions .chip.liked,
.post-actions .chip.has-likes {
  color: var(--danger);
}
.post-actions .chip.liked svg,
.post-actions .chip.has-likes svg {
  fill: currentColor;
  stroke: currentColor;
}
.post-actions .chip:not(.has-likes):not(.liked) svg {
  fill: none;
}
.post-actions .chip svg { width: 16px; height: 16px; }

.comment-list { margin-top: 12px; display: grid; gap: 10px; }
.comment {
  display: flex; gap: 10px; background: var(--bg-elev);
  border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 13px;
}
.comment .c-body { font-size: 17px; line-height: 1.4; min-width: 0; }
.comment .c-body strong { font-size: 15px; margin-right: 6px; }
.comment .c-body small { color: var(--ink-3); display: block; margin-top: 2px; font-size: 15px; }
.comment-form { display: flex; gap: 8px; margin-top: 12px; }
.comment-form input { flex: 1; }

.role-tag {
  font-size: 14px;
  font-weight: 600;
  text-transform: capitalize;
  padding: 5px 10px;
  border-radius: 99px;
}
.role-tag.vendor { background: var(--accent-soft); color: var(--accent-ink); }
.role-tag.customer { background: var(--gold-soft); color: var(--gold); }
.role-tag.admin { background: var(--danger-soft); color: var(--danger); }

/* ---------- Package cards ---------- */
.pkg-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .pkg-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } }
.pkg-card { padding: 26px 24px; text-align: center; position: relative; display: flex; flex-direction: column; }
.pkg-card.is-current {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgb(20 89 74 / 39%), var(--shadow-1);
}
@media (max-width: 767.98px) {
  .pkg-card.is-current{
    padding-bottom: 50px;
  }
}
.pkg-card.is-locked { opacity: .78; }
.pkg-card .pkg-name { font-weight: 700; font-size: 15px; }
.pkg-card .pkg-price {
  font-family: "Arial", sans-serif;
  font-size: 30px;
  font-weight: 900;
  margin: 10px 0 2px;
}
.pkg-card .pkg-per {
  font-size: 15px;
  color: var(--ink-3);
  margin-bottom: 16px;
  font-weight: 500;
}
.pkg-feats {
  text-align: left;
  display: grid;
  gap: 5px;
  font-size: 17px;
  margin-bottom: 30px;
  flex: unset;
}
.pkg-feats span {
  display: flex;
  gap: 9px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
  margin-top: -8px;
}
.pkg-feats svg { width: 15px; height: 15px; color: var(--ok); flex-shrink: 0; }

/* ---------- Stats mini ---------- */
.mini-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 900px) { .mini-stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Auth pages ---------- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr; }
@media (min-width: 980px) { .auth-wrap { grid-template-columns: 1.1fr 1fr; } }
.auth-visual {
  display: none; position: relative; overflow: hidden;
  background: var(--accent); color: #f2f6f4; padding: 60px;
}
@media (min-width: 980px) { .auth-visual { display: flex; flex-direction: column; justify-content: space-between; } }
.auth-visual::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(50% 60% at 80% 15%, rgba(212,169,78,0.3), transparent 70%),
              radial-gradient(45% 55% at 12% 85%, rgba(255,255,255,0.09), transparent 70%);
}
.auth-visual > * { position: relative; }
.auth-visual h2 { font-family: var(--font-display); font-size: clamp(30px, 3.4vw, 44px); font-weight: 580; line-height: 1.15; max-width: 420px; }
.auth-form-col { display: flex; align-items: center; justify-content: center; padding: 40px 22px; }
.auth-card { width: min(420px, 100%); }
.auth-card h1 { font-family: var(--font-display); font-size: 30px; margin: 18px 0 6px; }
.auth-card .sub { color: var(--ink-3); font-size: 15px; margin-bottom: 26px; }
.auth-card .form-grid { gap: 14px; }
.auth-alt { text-align: center; margin-top: 22px; font-size: 13.5px; color: var(--ink-3); }
.auth-alt a { color: var(--accent-ink); font-weight: 650; }

.role-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.role-pick label {
  border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 14px; cursor: pointer; text-align: center;
  font-size: 17px; font-weight: 700; transition: all 160ms ease;
}
.role-pick input { display: none; }
.role-pick label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.role-pick label span { display: block; font-size: 13px; font-weight: 500; color: var(--ink-3); margin-top: 3px; }

/* ---------- Bio link public page ---------- */
.bio-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 18px; }
.bio-card { width: min(480px, 100%); text-align: center; }
.bio-card .avatar { margin: 0 auto 16px; }
.bio-card h1 { font-family: var(--font-display); font-size: 27px; }
.bio-card .tagline { color: var(--ink-2); font-size: 14.5px; margin: 6px 0 28px; }
.bio-links { display: grid; gap: 12px; }
.bio-links a {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line);
  padding: 15px 20px; border-radius: 999px;
  font-weight: 650; font-size: 14.5px; box-shadow: var(--shadow-1);
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
}
.bio-links a:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.bio-share {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px;
  padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); font-size: 13.5px; font-weight: 650; color: var(--ink-2);
  cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.bio-share:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--ink-3); }
.bio-share svg { width: 16px; height: 16px; flex-shrink: 0; }
.bio-share-overlay { z-index: 400; }
.bio-share-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px;
}
@media (min-width: 480px) { .bio-share-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.bio-share-item {
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  justify-content: center; 
  gap: 8px;
  min-height: 92px; 
  padding: 12px 8px; 
  border-radius: var(--r-md);
  border: 1px solid var(--line); 
  font-size: 12px; 
  font-weight: 650; 
  color: var(--ink-2); 
  text-align: center;
  cursor: pointer; 
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.bio-share-item:hover { 
  transform: translateY(-2px); 
  box-shadow: var(--shadow-2); 
}
.bio-share-icon {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: var(--surface);
  color: var(--ink);
}
.bio-share-icon svg { width: 21px; height: 21px; }
.bio-share-icon--facebook { background: #1877f2; color: #fff; }
.bio-share-icon--x { background: #0f1419; color: #fff; }
.bio-share-icon--whatsapp { background: #25d366; color: #fff; }
.bio-share-icon--telegram { background: #229ed9; color: #fff; }
.bio-share-icon--linkedin { background: #0a66c2; color: #fff; }
.bio-share-icon--mail { background: var(--accent-soft); color: var(--accent-ink); }
.bio-share-icon--link { background: var(--surface); color: var(--ink-2); border: 1px solid var(--line); }
.bio-foot { margin-top: 34px; font-size: 12px; color: var(--ink-3); }

.bio-page .avatar{
  display: inline-block;
  width: 120px!important;
  height: 120px!important;
  text-align: center;
  align-content: center;
  border-radius: 50%;
  color: rgb(230, 230, 230);
}

.bio-head-parent{
  margin-bottom: 15px;
}

/* ---------- Switch toggle (shared with site.css) ---------- */
.switch { position: relative; width: 46px; height: 27px; flex-shrink: 0; display: inline-block; }
.switch input { opacity: 0; width: 100%; height: 100%; position: absolute; cursor: pointer; z-index: 2; margin: 0; }
.switch .track {
  position: absolute; inset: 0; border-radius: 99px;
  background: var(--surface-2); border: 1px solid var(--line-strong);
  transition: all 200ms ease;
}
.switch .track::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 21px; height: 21px; border-radius: 99px;
  background: var(--surface); box-shadow: var(--shadow-1);
  transition: transform 200ms var(--ease);
}
.switch input:checked + .track { background: var(--accent); border-color: var(--accent); }
.switch input:checked + .track::after { transform: translateX(19px); }

/* ---------- Review stars ---------- */
.stars-static { color: var(--gold); letter-spacing: 2px; font-size: 15px; }
.star-input { display: flex; gap: 4px; flex-direction: row-reverse; justify-content: flex-end; }
.star-input input { display: none; }
.star-input label { font-size: 24px; color: var(--line-strong); cursor: pointer; transition: color 120ms ease; }
.star-input label:hover, .star-input label:hover ~ label,
.star-input input:checked ~ label { color: var(--gold); }

/* ---------- Help accordions ---------- */
.faq details {
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface); margin-bottom: 10px; overflow: hidden;
}
.faq summary { padding: 15px 18px; font-weight: 650; font-size: 17px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::after { content: "+"; font-size: 18px; color: var(--ink-3); }
.faq details[open] summary::after { content: "–"; }
.faq .faq-body { padding: 0 18px 16px; font-size: 17px; color: var(--ink-2); line-height: normal; }

/* ---------- Image picker ---------- */
.img-picker {
  display: flex; align-items: center; gap: 14px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
  padding: 12px 14px;
  background: var(--bg-elev);
  position: relative;
}
.img-picker-preview {
  width: 140px;
  height: 80px;
  border-radius: 12px; 
  flex-shrink: 0;
  background: var(--surface-2); 
  display: grid; 
  place-items: center;
  color: var(--ink-3); 
  overflow: hidden;
}
.img-picker-preview svg { width: 20px; height: 20px; }
.img-picker-preview img { 
  width: 140px;
  height: 80px; 
  object-fit: cover; 
}
.img-picker-meta {
  display: grid; 
  gap: 6px; 
  min-width: 0; 
  flex: 1;
  justify-content: left;
}
.img-picker-meta button.btn{
  width: 140px;
}
.img-picker-name { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.img-picker-clear { 
  width: 30px; 
  height: 30px; flex-shrink: 0;
  position: absolute;
  right: 10px;
  top: 10px;
}

.gallery-pickers {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .gallery-pickers { grid-template-columns: repeat(3, 1fr); }
}
.gallery-pickers .gallery-pick { margin: 0; }
.gallery-pickers .img-picker {
  flex-direction: column; 
  align-items: stretch; 
  text-align: center; 
  position: relative;
}

.check-row { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }

.picker-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(15, 20, 18, 0.5);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  display: grid; place-items: center; padding: 18px;
  opacity: 0; pointer-events: none; transition: opacity 220ms ease;
}
.picker-overlay.is-open { opacity: 1; pointer-events: auto; }
.picker-dialog {
  width: min(440px, 100%);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-3);
  padding: 20px;
  transform: translateY(14px) scale(0.98);
  transition: transform 260ms var(--ease);
}
.picker-overlay.is-open .picker-dialog { transform: none; }
.picker-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.picker-head .icon-btn { width: 32px; height: 32px; }
.picker-tabs { display: flex; gap: 6px; background: var(--surface-2); border-radius: 12px; padding: 4px; margin-bottom: 16px; }
.picker-tab {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 10px; border-radius: 9px; font-size: 13px; font-weight: 620;
  color: var(--ink-3); transition: all 160ms ease;
}
.picker-tab.is-active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.picker-tab svg { width: 15px; height: 15px; }
.picker-drop {
  display: grid; place-items: center; gap: 8px; text-align: center;
  border: 1.5px dashed var(--line-strong); border-radius: var(--r-md);
  padding: 34px 18px; cursor: pointer; color: var(--ink-2);
  font-size: 13.5px; transition: all 180ms ease;
}
.picker-drop:hover, .picker-drop.is-drag { border-color: var(--accent); background: var(--accent-soft); }
.picker-drop svg { width: 26px; height: 26px; color: var(--ink-3); }
.picker-drop small { color: var(--ink-3); font-size: 12px; }
.picker-pane[data-pane="url"] { display: grid; gap: 12px; }
.picker-pane[hidden] { display: none !important; }
.picker-url-preview { border-radius: var(--r-md); overflow: hidden; max-height: 180px; border: 1px solid var(--line); }
.picker-url-preview img { width: 100%; height: 100%; max-height: 180px; object-fit: cover; display: block; }

/* ---------- Favourite cards ---------- */
.fav-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .fav-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .fav-grid { grid-template-columns: repeat(3, 1fr); } }
.fav-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-1);
  display: flex; flex-direction: column;
  transition: transform 240ms var(--ease), box-shadow 240ms var(--ease);
}
.fav-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.fav-card.is-pinned { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow-1); }
.fav-media { position: relative; aspect-ratio: 16/9; background: var(--surface-2); }
.fav-media img, .fav-media .ph { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.fav-media .pin-flag {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: var(--accent); color: #fff; font-size: 11px; font-weight: 700;
  border-radius: 99px; padding: 4px 10px; display: inline-flex; gap: 5px; align-items: center;
}
.fav-body { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.fav-body .cat { 
  font-size: 13px; 
  font-weight: 600;
  text-transform: capitalize; 
  color: var(--gold); 
}
.fav-body h3 { 
  font-size: 18px; 
  font-weight: 700; 
}
.fav-body .meta {
  font-size: 14px; 
  color: var(--ink-3); 
}
.fav-actions { display: flex; gap: 8px; padding: 0 16px 16px; }
.fav-actions .btn { flex: 1; justify-content: center; }

/* ---------- Social login buttons ---------- */
.social-login { display: grid; gap: 10px; margin-top: 18px; }
.social-login a {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 11px 18px; font-size: 14px; font-weight: 620; color: var(--ink);
  transition: all 180ms ease; background: var(--surface);
}
.social-login a:hover { border-color: var(--ink-3); box-shadow: var(--shadow-1); }
.social-login svg, .social-login .g-mark { width: 18px; height: 18px; }
.auth-or { display: flex; align-items: center; gap: 14px; margin: 20px 0 2px; color: var(--ink-3); font-size: 12px; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- WYSIWYG editor ---------- */
.wys { border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--surface); overflow: hidden; }
.wys-toolbar {
  display: flex; align-items: center; gap: 2px; flex-wrap: wrap;
  padding: 8px 10px; border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.wys-toolbar button {
  min-width: 32px; height: 32px; padding: 0 8px;
  border-radius: 8px; font-size: 13px; font-weight: 620;
  color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center;
  transition: background-color 140ms ease, color 140ms ease;
}
.wys-toolbar button:hover { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.wys-toolbar button.is-locked,
.wys-toolbar button.is-locked:hover {
  opacity: 0.4; cursor: not-allowed; box-shadow: none; background: transparent;
}
.wys-toolbar button svg { width: 15px; height: 15px; }
.wys-sep { width: 1px; height: 18px; background: var(--line-strong); margin: 0 6px; }
.wys-area {
  min-height: 220px; max-height: 520px; overflow-y: auto;
  padding: 16px 18px; font-size: 14.5px; line-height: 1.7; color: var(--ink);
  outline: none;
}
.wys-area:focus { box-shadow: inset 0 0 0 2px var(--accent-soft); }
.wys-area h2 { font-size: 20px; font-weight: 650; margin: 18px 0 8px; }
.wys-area h3 { font-size: 16.5px; font-weight: 650; margin: 14px 0 6px; }
.wys-area p { margin-bottom: 10px; }
.wys-area ul { list-style: disc; padding-left: 22px; margin-bottom: 10px; }
.wys-area ol { list-style: decimal; padding-left: 22px; margin-bottom: 10px; }
.wys-area li { display: list-item; }
.wys-area blockquote { border-left: 3px solid var(--accent); padding: 4px 14px; color: var(--ink-2); margin: 10px 0; }
.wys-area a { color: var(--accent-ink); text-decoration: underline; }
.wys-area hr { border: 0; border-top: 1px solid var(--line-strong); margin: 16px 0; }

/* ---------- Sticky toast (manual dismiss, e.g. password resets) ---------- */
.toast-flash { display: flex; align-items: flex-start; gap: 10px; }
.toast-flash .toast-msg { flex: 1; min-width: 0; overflow-wrap: anywhere; user-select: text; }
.toast-flash.is-sticky { box-shadow: var(--shadow-3); border-width: 2px; }
.toast-close {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 99px;
  display: inline-flex; align-items: center; justify-content: center;
  color: inherit; opacity: 0.65; transition: opacity 140ms ease, background-color 140ms ease;
}
.toast-close:hover { opacity: 1; background: rgba(0, 0, 0, 0.08); }
.toast-close svg { width: 13px; height: 13px; }

/* ---------- Password show/hide ---------- */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { width: 100%; padding-right: 44px; }
.pw-eye {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-3); transition: color 140ms ease, background-color 140ms ease;
}
.pw-eye:hover { color: var(--ink); background: var(--surface-2); }
.pw-eye svg { width: 17px; height: 17px; }

/* ---------- Label icons ---------- */
.fgroup > label { display: inline-flex; align-items: center; gap: 7px; }
.label-ic { display: inline-flex; color: var(--accent-ink); opacity: 0.85; }
.label-ic svg { width: 14px; height: 14px; }

.pay-roles { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }

html:has(body.admin),
html:has(body[class*="panel-"]),
body.admin,
body[class*="panel-"] {
  max-width: 100%;
  overflow-x: hidden; 
}
.panel, .kpi-card { min-width: 0; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.table-scroll table { min-width: 560px; }
img { max-width: 100%; }
@media (max-width: 640px) {
  .panel { padding: 18px 16px; }
  .panel-head { flex-wrap: wrap; gap: 10px; }
  .form-actions .btn { flex: 1; justify-content: center; }
  .chat-msgs { max-height: 52vh; }
  .tabs { margin-inline: -16px; padding-inline: 16px; }
  .pkg-card .pkg-price { font-size: 30px; }
}

/* ---------- Misc ---------- */
.img-thumb { width: 46px; height: 46px; border-radius: 11px; object-fit: cover; }
.empty-note {
  text-align: center;
  color: var(--ink-3);
  font-size: 15px;
  padding: 34px 16px;
}
.pager a {
  min-width: 32px; height: 32px; padding-inline: 8px; border-radius: 9px;
  display: inline-grid; place-items: center; font-size: 13px; font-weight: 570; color: var(--ink-2);
}
.pager a:hover { background: var(--surface-2); }
.pager a.is-active { background: var(--ink); color: var(--bg); }
.inline-form { display: inline; }
.w-100 { width: 100%; }
.mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mb-16 { margin-bottom: 16px; }
.muted { color: var(--ink-3); font-size: 15px; }
.grid-2 { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 980px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

.panel {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  padding: 20px;
  min-width: 0;
}

.panel-vendor-upgrade .comment .c-body small{
  font-weight: 400;
}
.panel-vendor-upgrade .rek-info{
  white-space: pre-line;
  margin-top: 10px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  display: inline-block;
}

.bilingual-fields { margin-bottom: 4px; }
.bilingual-fields-head {
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--ink-2);
}
.bilingual-fields-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .bilingual-fields-grid { grid-template-columns: 1fr 1fr; }
}
.bilingual-fields .fgroup { margin-bottom: 0; }
.bilingual-fields .fgroup label {
  font-size: 12px;
  font-weight: 650;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---------- Layout utilities ---------- */
.panel-sm { max-width: 480px; }
.panel-md { max-width: 640px; }
.panel-lg { max-width: 760px; }
.panel-checkout { max-width: 560px; margin-inline: auto; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mb-8 { margin-bottom: 8px; }
.mb-10 { margin-bottom: 10px; }
.spacer-10 { height: 10px; }
.flex-center { display: flex; justify-content: center; }
.flex-end { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.flex-gap-8 { display: flex; gap: 8px; }
.flex-gap-10 { display: flex; gap: 10px; }
.flex-row-center { display: flex; align-items: center; gap: 8px; }
.flex-row-end { display: flex; align-items: flex-end; }
.flex-ml-auto { margin-left: auto; display: flex; gap: 10px; }
.inline-flex-center { display: inline-flex; align-items: center; gap: 6px; }
.text-right { text-align: right; }
.text-preline { white-space: pre-line; }
.link-accent { color: var(--accent-ink); font-weight: 650; }
.muted-note { margin-top: 12px; font-size: 13px; }
.divider { border: 0; border-top: 1px solid var(--line); }
.self-end { align-self: end; }
.search-flex { flex: 1; max-width: 340px; }
.search-flex-md { flex: 1; max-width: 300px; }
.icon-btn-table { width: 30px; height: 30px; border: 0; }
.form-inline { display: inline; }
.hint-spaced { margin-top: 6px; }
.hint-spaced-lg { margin-top: 8px; }
.panel-head-spaced { margin-top: 28px; }
.panel-head-divider { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 20px; }
.form-actions-row { display: flex; gap: 10px; flex-wrap: wrap; }
.form-grid-tight { gap: 8px; }
.form-grid-12 { gap: 12px; }
.checkbox-row { display: flex; align-items: center; gap: 8px; font-weight: 550; margin: 0; }
.pill-btn { cursor: pointer; border: 0; }
.pill-offset { margin-left: 10px; }
.mini-stats-spaced { margin-top: 24px; }
.form-mb { margin-bottom: 24px; }
.opacity-muted { opacity: 0.3; }
.font-11 { font-size: 11px; }
.font-12 { font-size: 12px; }
.font-12-5 { font-size: 12.5px; }
.font-13 { font-size: 13px; }
.chip-static { cursor: default; }
.list-plain { margin: 0; padding-left: 18px; }
.list-plain p { margin: 0 0 10px; }
.field-tall { min-height: 120px; }
.field-icon { max-width: 180px; }
.field-rate { max-width: 200px; }
.pay-roles-inline { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 560; margin: 0; }
.feed-composer-row { margin-left: auto; display: flex; gap: 10px; }
.icon-btn-sm { width: 32px; height: 32px; }
.comment-flex { margin-bottom: 8px; }
.comment-flex .c-body { flex: 1; }
.kpi-sub { padding: 14px; }
.kpi-sub .kpi-num { font-size: 22px; }
.chart-legend-accent { color: var(--accent); }
.chart-legend-gold { color: var(--gold); }
.chart-wrap { display: flex; align-items: flex-end; gap: 8px; height: 190px; padding-top: 10px; overflow-x: auto; }
.chart-col { flex: 1; min-width: 44px; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.chart-col-label { font-size: 10.5px; }
.chart-col-bars { width: 100%; max-width: 40px; display: flex; flex-direction: column; border-radius: 8px 8px 3px 3px; overflow: hidden; }
.chart-bar-gold { background: var(--gold); }
.chart-bar-accent { background: var(--accent); }
.chart-bar-h { height: calc(var(--bar-h, 0) * 1px); }
.chart-wrap-dash { display: flex; align-items: flex-end; gap: 12px; height: 180px; padding-top: 10px; }
.chart-col-dash { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.chart-bar-dash { width: 100%; max-width: 54px; border-radius: 8px 8px 3px 3px; background: var(--accent); opacity: 0.85; }
.chart-label-bold { font-weight: 650; color: var(--ink); }
.avatar[data-avatar-size] { width: calc(var(--avatar-size, 38) * 1px); height: calc(var(--avatar-size, 38) * 1px); font-size: calc(var(--avatar-fs, 13) * 1px); }
.avatar[data-avatar-bg] { background: var(--avatar-bg); }
.auth-footer { opacity: 0.75; font-size: 14px; }
.auth-error { color: var(--danger); font-size: 13.5px; margin-bottom: 14px; }
.text-gold { color: var(--gold); }
.field-tall-xl { min-height: 130px; }
.btn-danger-text { color: var(--danger); }
.m-0 { margin: 0; }
.ml-auto { margin-left: auto; }
.flex-1 { flex: 1; }
.items-center { align-items: center; }
.search-flex-sm { flex: 1; max-width: 320px; }
.form-check-row { display: flex; gap: 22px; flex-wrap: wrap; }
.checkbox-row-lg { display: flex; align-items: center; gap: 10px; font-weight: 560; font-size: 14px; margin: 0; }
.biolinks-section-title { font-size: 15px; margin: 22px 0 10px; }
.biolinks-limit-note { font-size: 13px; margin: 12px 0 0; }
.pkg-current-badge { position: absolute; bottom: 20px; right: 20px; }
.pkg-paypal-note { margin-top: 0; color: var(--accent-ink); font-weight: 650; }
.muted-13 { font-size: 13px; margin: 0; }
.chat-name { font-size: 11.5px; }
.chat-del-btn { font-size: 10px; opacity: 0.7; }
.kpi-dim { color: var(--ink-3); }
.review-grid { grid-template-columns: 1fr; max-width: none; }
.review-score { text-align: right; }
.review-score-num { font-family: var(--font-display); font-size: 34px; font-weight: 640; }
.review-bar-row { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; font-size: 13px; }
.review-bar-label { width: 34px; }
.review-bar-track { flex: 1; height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.review-bar-fill { height: 100%; border-radius: 99px; background: var(--gold); width: calc(var(--bar-w, 0) * 1%); }
.review-bar-count { width: 30px; text-align: right; }
.icon-btn-danger { color: var(--danger); width: 34px; height: 34px; }
.review-snippet { margin-top: 4px; }
.ad-card-link { font-size: 12px; }

.site-service-detail .muted-note{
  margin-bottom: 20px;
}