/* ==========================================================================
   ABC Partner Portal — styles
   Brand: berry #A32A52 · rose #F2D5DC · cream #FBF6F3 · ink #2B2026
   ========================================================================== */
:root {
  --berry: #a32a52;
  --berry-dark: #7e1f3e;
  --rose: #f2d5dc;
  --rose-soft: #f9e9ed;
  --cream: #fbf6f3;
  --ink: #2b2026;
  --muted: #8a707b;
  --line: #ecd9de;
  --ok: #2e7d52;
  --warn: #b07310;
  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 2px 14px rgba(126, 31, 62, 0.08);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans Thai', sans-serif;
  background: var(--cream);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
button { font: inherit; cursor: pointer; }
a { color: var(--berry); }

.hidden { display: none !important; }

/* ------------------------------------------------------------- auth views */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(1200px 600px at 85% -10%, var(--rose) 0%, transparent 60%),
    radial-gradient(900px 500px at -10% 110%, var(--rose-soft) 0%, transparent 55%),
    var(--cream);
}
.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 34px 30px 28px;
}
.auth-logo { display: block; height: 46px; margin: 0 auto 14px; object-fit: contain; }
.auth-eyebrow {
  text-align: center; font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--berry); margin-bottom: 4px;
}
.auth-title { text-align: center; font-size: 21px; font-weight: 800; margin-bottom: 4px; }
.auth-sub { text-align: center; color: var(--muted); font-size: 13px; margin-bottom: 20px; }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.field input {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; background: #fff; color: var(--ink);
}
.field input:focus { outline: 2px solid var(--rose); border-color: var(--berry); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 16px; border-radius: 10px; border: 1px solid transparent;
  font-weight: 700; font-size: 14px; text-decoration: none;
}
.btn-primary { background: var(--berry); color: #fff; width: 100%; }
.btn-primary:hover { background: var(--berry-dark); }
.btn-ghost { background: transparent; color: var(--berry); border-color: var(--line); }
.btn-ghost:hover { background: var(--rose-soft); }
.btn-small { padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.auth-links { display: flex; justify-content: space-between; margin-top: 12px; font-size: 13px; }
.auth-links button { background: none; border: none; color: var(--berry); font-weight: 600; padding: 0; }
.auth-msg { margin-top: 12px; font-size: 13px; text-align: center; min-height: 18px; }
.auth-msg.err { color: #b3261e; }
.auth-msg.ok { color: var(--ok); }
.auth-divider { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 11px; margin: 16px 0 10px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.demo-note {
  margin-top: 14px; padding: 10px 12px; background: var(--rose-soft); border-radius: 10px;
  font-size: 12px; color: var(--berry-dark); text-align: center;
}

/* ---------------------------------------------------------------- app shell */
.shell { display: flex; min-height: 100vh; align-items: stretch; }

.sidebar {
  width: 244px; flex-shrink: 0;
  background: #fff; border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
}
.side-brand {
  padding: 20px 18px 16px; border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px; align-items: flex-start;
}
.side-logo { height: 34px; object-fit: contain; object-position: left center; }
.side-brand-text { font-weight: 800; font-size: 15px; line-height: 1.25; }
.side-brand-text small {
  display: block; font-weight: 700; font-size: 10px; color: var(--berry);
  letter-spacing: 0.11em; text-transform: uppercase; margin-bottom: 1px;
}
.demo-chip {
  background: var(--warn); color: #fff; font-size: 11px; font-weight: 800;
  padding: 3px 10px; border-radius: 999px; letter-spacing: 0.06em;
}

.side-nav { flex: 1; padding: 14px 12px; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.side-group {
  font-size: 10px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); padding: 14px 10px 6px;
}
.side-group:first-child { padding-top: 2px; }
.tab-btn {
  display: flex; align-items: center; gap: 10px; width: 100%;
  background: none; border: none; text-align: left;
  padding: 9px 11px; border-radius: 10px;
  font-weight: 700; font-size: 14px; color: var(--ink);
}
.tab-btn .ti { width: 17px; flex-shrink: 0; text-align: center; color: var(--muted); }
.tab-btn:hover { background: var(--rose-soft); color: var(--berry); }
.tab-btn:hover .ti { color: var(--berry); }
.tab-btn.active { background: var(--berry); color: #fff; }
.tab-btn.active .ti { color: #fff; }

.side-foot { border-top: 1px solid var(--line); padding: 14px; }
.side-user { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; min-width: 0; }
.side-avatar {
  width: 34px; height: 34px; border-radius: 999px; flex-shrink: 0;
  background: var(--rose); color: var(--berry-dark);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px; text-transform: uppercase;
}
.side-user-text { min-width: 0; font-size: 11px; color: var(--muted); line-height: 1.35; }
.side-user-text strong {
  display: block; color: var(--ink); font-size: 13px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.side-user-text span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-signout { width: 100%; }

.content { flex: 1; min-width: 0; }
.main { max-width: 1120px; margin: 0 auto; padding: 30px 30px 80px; }

@media (max-width: 860px) {
  .shell { flex-direction: column; }
  .sidebar {
    width: 100%; height: auto; position: sticky; top: 0; z-index: 40;
    border-right: none; border-bottom: 1px solid var(--line);
  }
  .side-brand { flex-direction: row; align-items: center; padding: 12px 16px; }
  .side-brand-text { flex: 1; font-size: 14px; }
  .side-logo { height: 28px; }
  .side-nav { flex-direction: row; overflow-x: auto; padding: 8px 12px; gap: 4px; }
  .side-group { display: none; }
  .tab-btn { width: auto; white-space: nowrap; padding: 8px 12px; }
  .tab-btn .ti { display: none; }
  .side-foot { display: flex; align-items: center; gap: 12px; padding: 10px 16px; }
  .side-user { margin-bottom: 0; flex: 1; }
  .side-signout { width: auto; }
}

.page-head { margin-bottom: 18px; display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.page-head h1 { font-size: 24px; font-weight: 800; }
.page-head p { color: var(--muted); font-size: 13px; }
.page-head .spacer { flex: 1; }

/* language toggle */
.lang-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.lang-toggle button {
  border: none; background: none; padding: 7px 16px; font-weight: 700; font-size: 13px; color: var(--muted);
}
.lang-toggle button.active { background: var(--berry); color: #fff; }

/* summary hero card */
.summary-card {
  display: flex; gap: 20px; align-items: center; flex-wrap: wrap;
  background: linear-gradient(120deg, var(--berry) 0%, var(--berry-dark) 100%);
  color: #fff; border-radius: var(--radius); padding: 22px 24px; margin-bottom: 26px;
  box-shadow: var(--shadow);
}
.summary-card .sc-text { flex: 1; min-width: 240px; }
.summary-card .sc-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.85; }
.summary-card h2 { font-size: 19px; font-weight: 800; margin: 3px 0 5px; }
.summary-card p { font-size: 13px; opacity: 0.9; }
.summary-card .sc-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-light { background: #fff; color: var(--berry); }
.btn-light:hover { background: var(--rose-soft); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.btn-outline-light:hover { background: rgba(255,255,255,0.12); }

/* category + grid */
.cat-title {
  font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--berry); margin: 26px 0 12px; display: flex; align-items: center; gap: 10px;
}
.cat-title::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }

.pkg-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 18px 14px; display: flex; flex-direction: column; gap: 8px;
  box-shadow: var(--shadow);
}
.pkg-card .pk-id { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: 0.06em; }
.pkg-card h3 { font-size: 16px; font-weight: 800; line-height: 1.3; }
.pkg-card .pk-price { font-size: 21px; font-weight: 800; color: var(--berry); }
.pkg-card .pk-price small { font-size: 11px; font-weight: 600; color: var(--muted); display: block; }
.pkg-card .pk-summary { font-size: 13px; color: var(--muted); flex: 1; }
.pkg-card .pk-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.dl-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.dl-badge {
  display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700;
  color: var(--berry); background: var(--rose-soft); border: 1px solid var(--line);
  padding: 5px 10px; border-radius: 8px; text-decoration: none;
}
.dl-badge:hover { background: var(--rose); }
.dl-none { font-size: 12px; color: var(--muted); font-style: italic; }

/* modal */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(43, 32, 38, 0.55); z-index: 90;
  display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px;
  overflow-y: auto;
}
.modal {
  background: #fff; border-radius: 18px; max-width: 780px; width: 100%;
  padding: 30px 32px; position: relative;
}
.modal-close {
  position: absolute; top: 14px; right: 14px; border: none; background: var(--rose-soft);
  width: 34px; height: 34px; border-radius: 999px; font-size: 16px; color: var(--berry); font-weight: 800;
}
.modal .m-id { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: 0.06em; }
.modal h2 { font-size: 22px; font-weight: 800; margin: 2px 0 2px; }
.modal .m-price { font-size: 26px; font-weight: 800; color: var(--berry); margin-bottom: 2px; }
.modal .m-price-label { font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.modal .m-downloads { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.modal h4 {
  font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--berry); margin: 18px 0 8px;
}
.modal ul { padding-left: 20px; font-size: 14px; }
.modal li { margin-bottom: 4px; }
.inc-cat { font-weight: 700; font-size: 13.5px; margin: 10px 0 4px; white-space: pre-line; }
.pay-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.pay-table th, .pay-table td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--line); }
.pay-table th { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.validity-chip {
  display: inline-block; background: var(--rose-soft); color: var(--berry-dark);
  font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 8px;
}

/* commission */
.rate-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 24px; }
.rate-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow);
}
.rate-card .rc-label { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.rate-card .rc-value { font-size: 30px; font-weight: 800; color: var(--berry); }
.rate-card .rc-note { font-size: 12px; color: var(--muted); }

.comm-table-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; box-shadow: var(--shadow); }
.comm-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 560px; }
.comm-table th, .comm-table td { padding: 10px 10px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
/* the package name wraps so the money columns — the point of this table — stay on screen */
.comm-table td:first-child, .comm-table th:first-child { white-space: normal; min-width: 140px; padding-left: 14px; }
.comm-table td:last-child, .comm-table th:last-child { padding-right: 14px; }
.comm-table th { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); background: var(--rose-soft); position: sticky; top: 0; }
.comm-table td.num, .comm-table th.num { text-align: right; }
.comm-table .comm-val { font-weight: 800; color: var(--berry); }
.region-pill { font-size: 11px; font-weight: 800; padding: 2px 9px; border-radius: 999px; }
.region-pill.th { background: var(--rose-soft); color: var(--berry-dark); }
.region-pill.intl { background: #e7edf7; color: #2c4a7c; }

.calc-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; margin-bottom: 24px; box-shadow: var(--shadow);
  display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap;
}
.calc-card .field { margin: 0; min-width: 260px; flex: 1; }
.calc-card select, .calc-card input {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff;
}
.calc-result { min-width: 200px; }
.calc-result .cr-label { font-size: 12px; color: var(--muted); font-weight: 700; }
.calc-result .cr-value { font-size: 26px; font-weight: 800; color: var(--berry); }

/* marketing + socials */
.material-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.material-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.material-card .mc-thumb { background: var(--rose-soft); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.material-card .mc-thumb.contain { object-fit: contain; background: #fff; padding: 22px; aspect-ratio: 4 / 3; }
.material-card .mc-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.material-card .mc-title { font-weight: 700; font-size: 13.5px; line-height: 1.3; }
.empty-state {
  background: #fff; border: 1px dashed var(--line); border-radius: var(--radius);
  padding: 40px 24px; text-align: center; color: var(--muted); font-size: 14px;
}
.empty-state strong { display: block; color: var(--ink); font-size: 16px; margin-bottom: 6px; }

/* ------------------------------------------------------------------- home */
.welcome {
  background: linear-gradient(120deg, var(--berry) 0%, var(--berry-dark) 100%);
  color: #fff; border-radius: var(--radius); padding: 30px 32px; margin-bottom: 22px;
  box-shadow: var(--shadow);
}
.welcome-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.8; }
.welcome h1 { font-size: 32px; font-weight: 800; line-height: 1.15; margin: 2px 0 2px; }
.welcome-co { font-size: 16px; font-weight: 700; opacity: 0.95; margin-bottom: 8px; }
.welcome p { font-size: 14px; opacity: 0.9; max-width: 620px; }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow);
}
.stat-card .sv { font-size: 27px; font-weight: 800; color: var(--berry); line-height: 1.1; }
.stat-card .sl { font-size: 12.5px; color: var(--muted); font-weight: 600; margin-top: 2px; }

.notice {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  background: #fff8ec; border: 1px solid #f0dcb8; border-radius: var(--radius);
  padding: 16px 20px; margin-bottom: 24px;
}
.notice-body { flex: 1; min-width: 240px; font-size: 13px; color: #7a5713; }
.notice-body strong { display: block; font-size: 14.5px; color: var(--ink); margin-bottom: 3px; }

.quick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.quick-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px;
}
.quick-card h3 { font-size: 15.5px; font-weight: 800; }
.quick-card p { font-size: 13px; color: var(--muted); flex: 1; }
.quick-card .btn { align-self: flex-start; }

/* ---------------------------------------------------------------- profile */
.profile-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; margin-bottom: 20px; box-shadow: var(--shadow);
}
.profile-card.locked { background: var(--rose-soft); }
.pc-title {
  font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--berry); margin-bottom: 16px; display: flex; align-items: center; gap: 10px;
}
.pc-badge {
  background: var(--rose-soft); color: var(--berry-dark); font-size: 11px;
  letter-spacing: 0; text-transform: none; padding: 2px 9px; border-radius: 999px;
}
.pc-sub { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 18px 0 8px; }
.profile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.profile-grid .field { margin: 0; }
.profile-grid .field.wide { grid-column: 1 / -1; }
.profile-grid input, .profile-grid textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; background: #fff; color: var(--ink); resize: vertical;
}
.profile-grid input:focus, .profile-grid textarea:focus { outline: 2px solid var(--rose); border-color: var(--berry); }
.profile-grid input:disabled, .profile-grid textarea:disabled { background: #f7f2f4; color: var(--muted); }
.profile-grid .req { color: var(--berry); }
.profile-grid .ro { font-size: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); word-break: break-word; }
.profile-grid .ro-empty { color: var(--muted); font-style: italic; font-size: 13px; }
.pc-foot { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.pc-note { font-size: 12.5px; color: var(--muted); }
#co-saved, #mb-saved { color: var(--ok); font-weight: 700; font-size: 13px; }

/* ------------------------------------------------------------- about ABC */
.about-prose { font-size: 14px; max-width: 760px; }
.about-prose p { margin-bottom: 10px; }
.about-prose p:last-child { margin-bottom: 0; }
.about-lede {
  font-family: 'Noto Serif', Georgia, serif; font-style: italic; font-size: 17px;
  color: var(--berry-dark); line-height: 1.5; margin-bottom: 12px;
}
.fact-table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin-top: 6px; }
.fact-table th {
  text-align: left; vertical-align: top; padding: 9px 16px 9px 0; width: 210px;
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.fact-table td { padding: 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.fact-table tr:last-child th, .fact-table tr:last-child td { border-bottom: none; }

.rep-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.rep-col { border-radius: 12px; padding: 16px 18px; font-size: 13.5px; }
.rep-col h4 { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 8px; }
.rep-col ul { padding-left: 18px; }
.rep-col li { margin-bottom: 6px; }
.rep-col.ok { background: #eef6f0; border: 1px solid #cfe5d6; }
.rep-col.ok h4 { color: var(--ok); }
.rep-col.no { background: #fbeeed; border: 1px solid #eed2cf; }
.rep-col.no h4 { color: #b3261e; }

.faq {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 0; margin-bottom: 10px; box-shadow: var(--shadow); overflow: hidden;
}
.faq summary {
  cursor: pointer; font-weight: 700; font-size: 14px; padding: 14px 18px;
  list-style: none; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 18px; color: var(--berry); font-weight: 800; }
.faq[open] summary::after { content: '–'; }
.faq[open] summary { border-bottom: 1px solid var(--line); }
.faq p { padding: 12px 18px 16px; font-size: 13.5px; color: var(--ink); }

@media (max-width: 640px) {
  .fact-table th { width: 120px; padding-right: 10px; }
}

/* link-in-bio hero */
.bio-card {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 24px; margin-bottom: 26px; box-shadow: var(--shadow);
}
.bio-card .bio-text { flex: 1; min-width: 220px; }
.bio-card .bio-eyebrow {
  font-size: 10px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--berry);
}
.bio-card h2 { font-size: 17px; font-weight: 800; margin: 2px 0 4px; }
.bio-card p { font-size: 13px; color: var(--muted); }
.bio-card code {
  background: var(--rose-soft); color: var(--berry-dark); padding: 2px 7px;
  border-radius: 6px; font-size: 12.5px; font-weight: 600;
}
.bio-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.social-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 14px; }
.social-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px 14px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 12px;
}
.social-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.social-card .si {
  width: 40px; height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: #fff; flex-shrink: 0; font-weight: 800; letter-spacing: -0.02em;
}
.social-card .s-body { flex: 1; min-width: 0; }
.social-card .s-name { font-weight: 800; font-size: 14.5px; line-height: 1.25; }
.social-card .s-handle {
  font-size: 12.5px; color: var(--muted); margin-top: 1px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.social-card .s-actions { display: flex; gap: 8px; }
.social-card .s-actions .btn { flex: 1; }

/* admin */
.admin-form {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; margin-bottom: 22px; box-shadow: var(--shadow);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; align-items: end;
}
.admin-form .field { margin: 0; }
.admin-form select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; background: #fff; color: var(--ink); height: 41px;
}
.admin-form select:focus { outline: 2px solid var(--rose); border-color: var(--berry); }
.admin-table-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; box-shadow: var(--shadow); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 760px; }
.admin-table th, .admin-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.admin-table th { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); background: var(--rose-soft); }
.admin-table input[type='number'] { width: 74px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 8px; }
.status-pill { font-size: 11px; font-weight: 800; padding: 2px 10px; border-radius: 999px; }
.status-pill.on { background: #e3f2e9; color: var(--ok); }
.status-pill.off { background: #f5e4e3; color: #b3261e; }

.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: #fff; padding: 10px 20px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600; z-index: 200; box-shadow: 0 6px 24px rgba(0,0,0,0.25);
}

.footer-note { margin-top: 40px; font-size: 12px; color: var(--muted); text-align: center; }

@media (max-width: 640px) {
  .topbar-title small { display: none; }
  .modal { padding: 24px 20px; }
}
