/* SMP Psy Scales — giao diện người làm bài (mobile-first) */
.smp-psc-app, .smp-psc-history, .smp-psc-login, .smp-psc-auth {
  --psc-primary: #4f46e5;
  --psc-primary-ink: #fff;
  --psc-ink: #0f172a;
  --psc-muted: #64748b;
  --psc-line: #e2e8f0;
  --psc-soft: #f8fafc;
  --psc-card: #fff;
  --psc-radius: 14px;
  color: var(--psc-ink);
  font-size: 16px;
  line-height: 1.55;
  max-width: 760px;
  margin: 0 auto;
  position: relative;
}
.smp-psc-app *, .smp-psc-app *::before, .smp-psc-app *::after, .smp-psc-auth *, .smp-psc-auth *::before, .smp-psc-auth *::after { box-sizing: border-box; }

.smp-psc-title { font-size: 1.4rem; line-height: 1.3; margin: .25rem 0 1rem; }
.smp-psc-tag { display: inline-block; font-size: .78rem; font-weight: 600; color: var(--psc-primary); background: rgba(79,70,229,.08); padding: 2px 10px; border-radius: 999px; }
.smp-psc-loading, .smp-psc-empty { padding: 32px 16px; text-align: center; color: var(--psc-muted); }
.smp-psc-error { padding: 24px 16px; text-align: center; }

/* Nút */
.smp-psc-btn { -webkit-appearance: none; appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 10px 18px; border: 1px solid var(--psc-primary); border-radius: 10px; background: var(--psc-primary); color: var(--psc-primary-ink); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; transition: filter .15s, opacity .15s; }
.smp-psc-btn:hover { filter: brightness(1.08); color: var(--psc-primary-ink); }
.smp-psc-btn:disabled { opacity: .45; cursor: not-allowed; }
.smp-psc-btn.is-ghost { background: transparent; color: var(--psc-primary); }
.smp-psc-btn.is-block { width: 100%; }
.smp-psc-btn.is-danger { background: #dc2626; border-color: #dc2626; }
.smp-psc-back { background: none; border: 0; color: var(--psc-muted); padding: 4px 0; margin-bottom: 8px; cursor: pointer; font: inherit; }

/* Danh sách */
.smp-psc-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 12px; -webkit-overflow-scrolling: touch; }
.smp-psc-chip { flex: 0 0 auto; border: 1px solid var(--psc-line); background: var(--psc-card); border-radius: 999px; padding: 6px 14px; font: inherit; font-size: .9rem; cursor: pointer; color: var(--psc-ink); }
.smp-psc-chip.is-active { background: var(--psc-primary); border-color: var(--psc-primary); color: #fff; }
.smp-psc-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .smp-psc-grid { grid-template-columns: 1fr 1fr; } }
.smp-psc-card { display: flex; flex-direction: column; gap: 8px; padding: 16px; border: 1px solid var(--psc-line); border-radius: var(--psc-radius); background: var(--psc-card); }
.smp-psc-card h3 { margin: 0; font-size: 1.08rem; line-height: 1.35; }
.smp-psc-desc { color: var(--psc-muted); font-size: .92rem; }
.smp-psc-desc p { margin: 0 0 .4em; }
.smp-psc-meta { list-style: none; margin: 0 0 4px; padding: 0; font-size: .88rem; color: var(--psc-muted); }
.smp-psc-card .smp-psc-btn { margin-top: auto; }
.smp-psc-resume { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: var(--psc-radius); background: #eef2ff; border: 1px solid #c7d2fe; margin-bottom: 16px; }
.smp-psc-resume-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Form thông tin */
.smp-psc-instructions { background: var(--psc-soft); border-left: 3px solid var(--psc-primary); padding: 12px 14px; border-radius: 8px; margin-bottom: 16px; font-size: .95rem; }
.smp-psc-instructions p:last-child { margin-bottom: 0; }
.smp-psc-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.smp-psc-field { display: flex; flex-direction: column; gap: 4px; font-size: .88rem; font-weight: 600; grid-column: span 2; }
@media (min-width: 520px) { .smp-psc-field { grid-column: span 1; } .smp-psc-field.is-full { grid-column: span 2; } }
.smp-psc-field input, .smp-psc-field select { font: inherit; font-weight: 400; min-height: 44px; padding: 8px 12px; border: 1px solid var(--psc-line); border-radius: 10px; background: #fff; color: var(--psc-ink); width: 100%; }
.smp-psc-field input:focus, .smp-psc-field select:focus { outline: 2px solid var(--psc-primary); outline-offset: 1px; border-color: transparent; }
.smp-psc-hint { font-size: .85rem; color: var(--psc-muted); margin: 10px 0 0; }
.smp-psc-consent { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--psc-muted); margin: 16px 0; cursor: pointer; }
.smp-psc-consent input { margin-top: 4px; width: 18px; height: 18px; flex: 0 0 auto; }

/* Làm bài */
.smp-psc-quiz-head { display: flex; justify-content: space-between; gap: 12px; font-size: .85rem; color: var(--psc-muted); }
.smp-psc-quiz-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.smp-psc-quiz-count { flex: 0 0 auto; font-weight: 600; color: var(--psc-ink); }
.smp-psc-progress { height: 6px; background: var(--psc-line); border-radius: 999px; overflow: hidden; margin: 8px 0 20px; }
.smp-psc-progress span { display: block; height: 100%; background: var(--psc-primary); transition: width .3s; }
.smp-psc-question { font-size: 1.15rem; font-weight: 600; line-height: 1.45; margin: 0 0 16px; min-height: 3em; }
.smp-psc-opts { display: flex; flex-direction: column; gap: 10px; }
.smp-psc-opt { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 14px 16px; min-height: 52px; border: 1.5px solid var(--psc-line); border-radius: 12px; background: var(--psc-card); font: inherit; color: var(--psc-ink); cursor: pointer; transition: border-color .15s, background .15s; }
.smp-psc-opt:hover { border-color: #a5b4fc; }
.smp-psc-opt.is-selected { border-color: var(--psc-primary); background: #eef2ff; }
.smp-psc-radio { flex: 0 0 20px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #cbd5e1; position: relative; }
.smp-psc-opt.is-selected .smp-psc-radio { border-color: var(--psc-primary); }
.smp-psc-opt.is-selected .smp-psc-radio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--psc-primary); }
.smp-psc-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 22px; }
.smp-psc-nav .smp-psc-btn { flex: 1 1 0; }

/* Kết quả */
.smp-psc-result-head { padding: 18px; border-radius: var(--psc-radius); background: linear-gradient(135deg, color-mix(in srgb, var(--c, #64748b) 14%, #fff), #fff); border: 1px solid color-mix(in srgb, var(--c, #64748b) 30%, #fff); margin-bottom: 14px; }
.smp-psc-kicker { margin: 0; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--psc-muted); font-weight: 600; }
.smp-psc-result-head h2 { margin: 4px 0; font-size: 1.3rem; line-height: 1.3; }
.smp-psc-sub { margin: 0 0 12px; color: var(--psc-muted); font-size: .88rem; }
.smp-psc-overall { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .9rem; font-weight: 600; }
.smp-psc-badge { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: .82rem; font-weight: 700; color: #fff; background: var(--c, #64748b); white-space: nowrap; }
.smp-psc-badge.is-lg { font-size: 1rem; padding: 5px 16px; }
.smp-psc-alert { border: 1px solid #fecaca; background: #fef2f2; color: #7f1d1d; padding: 14px 16px; border-radius: var(--psc-radius); margin-bottom: 14px; }
.smp-psc-alert p { margin: 6px 0 10px; }
.smp-psc-note { border: 1px solid #fde68a; background: #fffbeb; color: #78350f; padding: 12px 16px; border-radius: var(--psc-radius); margin-bottom: 14px; font-size: .95rem; }
.smp-psc-chart { position: relative; background: var(--psc-card); border: 1px solid var(--psc-line); border-radius: var(--psc-radius); padding: 12px; margin-bottom: 14px; }
.smp-psc-dcard { border: 1px solid var(--psc-line); border-top: 4px solid var(--c, #64748b); border-radius: var(--psc-radius); background: var(--psc-card); padding: 16px; margin-bottom: 12px; }
.smp-psc-dcard .smp-psc-badge { background: var(--c, #64748b); }
.smp-psc-dhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.smp-psc-dhead h3 { margin: 0; font-size: 1.05rem; }
.smp-psc-score { margin: 8px 0 6px; }
.smp-psc-score b { font-size: 1.6rem; }
.smp-psc-score span { color: var(--psc-muted); font-size: .9rem; margin-left: 2px; }
.smp-psc-bar { height: 8px; border-radius: 999px; background: var(--psc-line); overflow: hidden; }
.smp-psc-bar span { display: block; height: 100%; background: var(--c, #64748b); border-radius: 999px; }
.smp-psc-text { margin-top: 12px; font-size: .95rem; }
.smp-psc-text p, .smp-psc-advice p { margin: 0 0 .5em; }
.smp-psc-advice { margin-top: 12px; background: var(--psc-soft); border-radius: 10px; padding: 12px 14px; font-size: .95rem; }
.smp-psc-advice h4 { margin: 0 0 6px; font-size: .9rem; color: var(--psc-primary); }
.smp-psc-advice ul { margin: 0; padding-left: 1.2em; }
.smp-psc-expert { border: 1px solid #bbf7d0; background: #f0fdf4; border-radius: var(--psc-radius); padding: 14px 16px; margin-bottom: 12px; }
.smp-psc-expert h3 { margin: 0 0 6px; font-size: 1rem; color: #166534; }
.smp-psc-disclaimer { font-size: .82rem; color: var(--psc-muted); margin: 14px 0; }
.smp-psc-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.smp-psc-actions .smp-psc-btn { flex: 1 1 180px; }

/* Toast */
.smp-psc-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); max-width: calc(100% - 32px); background: #0f172a; color: #fff; padding: 10px 16px; border-radius: 10px; font-size: .92rem; z-index: 99999; box-shadow: 0 6px 24px rgba(0,0,0,.2); transition: opacity .4s; }
.smp-psc-toast.is-out { opacity: 0; }

/* Lịch sử */
.smp-psc-history table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.smp-psc-history th, .smp-psc-history td { padding: 10px 8px; border-bottom: 1px solid var(--psc-line); text-align: left; }
.smp-psc-history th { color: var(--psc-muted); font-weight: 600; font-size: .82rem; }
@media (max-width: 560px) {
  .smp-psc-history thead { display: none; }
  .smp-psc-history tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--psc-line); }
  .smp-psc-history td { display: inline-block; border: 0; padding: 2px 8px 2px 0; }
}

/* Danh sách: thanh người dùng */
.smp-psc-list-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.smp-psc-userlink { font-size: .9rem; font-weight: 600; color: var(--psc-primary); text-decoration: none; }
.smp-psc-save { display: flex; flex-direction: column; gap: 10px; border: 1px dashed #a5b4fc; background: #f5f7ff; border-radius: var(--psc-radius); padding: 14px 16px; margin-bottom: 12px; }
.smp-psc-save p { margin: 4px 0 0; font-size: .92rem; color: var(--psc-muted); }
.smp-psc-save-actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (min-width: 600px) { .smp-psc-save { flex-direction: row; align-items: center; justify-content: space-between; } }

/* Tài khoản */
.smp-psc-auth { max-width: 460px; padding: 8px 0; }
.smp-psc-auth.smp-psc-account { max-width: 760px; }
.smp-psc-auth-card { display: flex; flex-direction: column; gap: 12px; background: var(--psc-card); border: 1px solid var(--psc-line); border-radius: var(--psc-radius); padding: 22px 18px; box-shadow: 0 4px 20px rgba(15,23,42,.05); }
.smp-psc-auth-card h2 { margin: 0; font-size: 1.35rem; }
.smp-psc-auth-sub { margin: -4px 0 4px; color: var(--psc-muted); font-size: .92rem; }
.smp-psc-auth .smp-psc-field { grid-column: auto; }
.smp-psc-pass { position: relative; display: block; }
.smp-psc-pass input { padding-right: 64px; }
.smp-psc-pass-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--psc-primary); font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; padding: 6px 8px; }
.smp-psc-check { display: flex; gap: 8px; align-items: center; font-size: .9rem; color: var(--psc-muted); cursor: pointer; }
.smp-psc-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.smp-psc-auth-msg { display: none; padding: 10px 12px; border-radius: 10px; font-size: .92rem; }
.smp-psc-auth-msg.is-shown { display: block; }
.smp-psc-auth-msg.is-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.smp-psc-auth-msg.is-ok { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.smp-psc-auth-links { margin: 4px 0 0; text-align: center; font-size: .9rem; color: var(--psc-muted); }
.smp-psc-auth-links a, .smp-psc-auth-card p a { color: var(--psc-primary); font-weight: 600; text-decoration: none; }
.smp-psc-auth-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.smp-psc-google { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; border: 1px solid var(--psc-line); border-radius: 10px; background: #fff; color: var(--psc-ink); font-weight: 600; text-decoration: none; transition: background .15s; }
.smp-psc-google:hover { background: var(--psc-soft); color: var(--psc-ink); }
.smp-psc-google-ico { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--psc-line); font-weight: 700; font-size: .85rem; color: #4f46e5; }
.smp-psc-or { display: flex; align-items: center; gap: 10px; color: var(--psc-muted); font-size: .82rem; }
.smp-psc-or::before, .smp-psc-or::after { content: ""; flex: 1; height: 1px; background: var(--psc-line); }
.smp-psc-acc-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px; border: 1px solid var(--psc-line); border-radius: var(--psc-radius); background: var(--psc-card); margin-bottom: 14px; }
.smp-psc-avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; display: inline-flex; align-items: center; justify-content: center; background: #eef2ff; color: var(--psc-primary); font-weight: 700; font-size: 1.3rem; flex: 0 0 auto; }
.smp-psc-acc-who { display: flex; flex-direction: column; flex: 1 1 180px; min-width: 0; }
.smp-psc-acc-who span { color: var(--psc-muted); font-size: .9rem; overflow: hidden; text-overflow: ellipsis; }
.smp-psc-acc-google { color: #166534 !important; font-size: .8rem !important; font-weight: 600; }
.smp-psc-tabs { display: flex; gap: 6px; overflow-x: auto; border-bottom: 1px solid var(--psc-line); margin-bottom: 14px; }
.smp-psc-tabs button { flex: 0 0 auto; background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 12px; font: inherit; font-weight: 600; color: var(--psc-muted); cursor: pointer; }
.smp-psc-tabs button.is-active { color: var(--psc-primary); border-bottom-color: var(--psc-primary); }
.smp-psc-tab[hidden] { display: none; }

/* Bán thang đo */
.smp-psc-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.smp-psc-price { font-size: .85rem; font-weight: 700; color: #b45309; background: #fffbeb; border: 1px solid #fde68a; padding: 2px 10px; border-radius: 999px; white-space: nowrap; }
.smp-psc-price.is-free { color: #15803d; background: #f0fdf4; border-color: #bbf7d0; }
.smp-psc-owned { color: #15803d; font-weight: 600; }
.smp-psc-owned-note { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; padding: 10px 12px; border-radius: 10px; font-size: .9rem; margin: 0 0 14px; }
.smp-psc-btn.is-buy { background: #ea580c; border-color: #ea580c; }
.smp-psc-paywall .smp-psc-desc { margin: 0 0 14px; }
.smp-psc-paybox { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; border: 1px solid var(--psc-line); border-radius: var(--psc-radius); background: var(--psc-card); }
.smp-psc-paybox span, .smp-psc-paybox small { display: block; color: var(--psc-muted); font-size: .85rem; }
.smp-psc-paybox strong { font-size: 1.5rem; color: #c2410c; }
.smp-psc-checkout .smp-psc-sub { color: var(--psc-muted); margin: -6px 0 14px; }
.smp-psc-pay { display: grid; gap: 16px; grid-template-columns: 1fr; padding: 16px; border: 1px solid var(--psc-line); border-radius: var(--psc-radius); background: var(--psc-card); }
@media (min-width: 640px) { .smp-psc-pay { grid-template-columns: 260px 1fr; align-items: center; } }
.smp-psc-qrbox { text-align: center; }
.smp-psc-qr { width: 100%; max-width: 260px; height: auto; border-radius: 10px; border: 1px solid var(--psc-line); background: #fff; }
.smp-psc-qrbox small { display: block; color: var(--psc-muted); margin-top: 6px; }
.smp-psc-paylist { display: flex; flex-direction: column; gap: 8px; }
.smp-psc-payrow { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; padding-bottom: 8px; border-bottom: 1px dashed var(--psc-line); }
.smp-psc-payrow span { grid-column: 1 / -1; font-size: .8rem; color: var(--psc-muted); }
.smp-psc-payrow strong { font-size: 1.02rem; word-break: break-all; }
.smp-psc-copy { background: none; border: 1px solid var(--psc-line); border-radius: 8px; padding: 4px 10px; font: inherit; font-size: .8rem; color: var(--psc-primary); cursor: pointer; }
.smp-psc-paynote { font-size: .92rem; color: var(--psc-muted); margin: 14px 0 8px; }
.smp-psc-paystatus { display: flex; align-items: center; gap: 10px; font-weight: 600; margin: 8px 0 14px; color: #b45309; }
.smp-psc-spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #fde68a; border-top-color: #d97706; animation: smp-psc-spin .9s linear infinite; }
@keyframes smp-psc-spin { to { transform: rotate(360deg); } }
.smp-psc-paid { text-align: center; padding: 24px 12px; }
.smp-psc-paid-ico { width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 50%; background: #dcfce7; color: #16a34a; font-size: 2rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.smp-psc-paid .smp-psc-actions { justify-content: center; }
.smp-psc-h3 { font-size: 1rem; margin: 0 0 8px; }
.smp-psc-open { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.smp-psc-open li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border: 1px solid #c7d2fe; background: #eef2ff; border-radius: 12px; }
.smp-psc-open li span { display: block; font-size: .85rem; color: var(--psc-muted); }
.smp-psc-view { font-weight: 600; color: var(--psc-primary); text-decoration: none; white-space: nowrap; }
.smp-psc-history-view .smp-psc-back { display: inline-block; margin-bottom: 10px; text-decoration: none; }

/* ---------- Chống theme ghi đè màu chữ ----------
   Nhiều theme tô màu cho h1–h6, strong, header, a… trong vùng nội dung.
   Tiền tố "body" + lớp của plugin đủ mạnh để giữ đúng màu trên mọi theme. */
body :is(.smp-psc-app, .smp-psc-auth, .smp-psc-history, .smp-psc-login) { color: var(--psc-ink); }
body :is(.smp-psc-app, .smp-psc-auth, .smp-psc-history) :is(h1, h2, h3, h4, h5, h6) { color: var(--psc-ink); background: none; text-shadow: none; }
body :is(.smp-psc-app, .smp-psc-auth, .smp-psc-history) :is(strong, b, label, td, li, p) { color: inherit; }
body :is(.smp-psc-app, .smp-psc-auth, .smp-psc-history) th { color: var(--psc-muted); }
body .smp-psc-app .smp-psc-result-head, body .smp-psc-app .smp-psc-overall, body .smp-psc-auth .smp-psc-acc-who strong { color: var(--psc-ink); }
body .smp-psc-app .smp-psc-kicker { color: var(--psc-muted); }
body .smp-psc-app .smp-psc-overall-label { color: var(--psc-ink); }
body .smp-psc-app .smp-psc-score span, body .smp-psc-app .smp-psc-quiz-name { color: var(--psc-muted); }
body :is(.smp-psc-app, .smp-psc-auth, .smp-psc-history, .smp-psc-history-view) .smp-psc-back { color: var(--psc-muted); text-decoration: none; }
body :is(.smp-psc-app, .smp-psc-auth, .smp-psc-history-view) .smp-psc-back:hover { color: var(--psc-primary); }
body .smp-psc-app :is(.smp-psc-sub, .smp-psc-meta, .smp-psc-desc, .smp-psc-hint, .smp-psc-disclaimer, .smp-psc-quiz-head, .smp-psc-paynote) { color: var(--psc-muted); }
body .smp-psc-app .smp-psc-quiz-count { color: var(--psc-ink); }
body .smp-psc-app .smp-psc-advice h4 { color: var(--psc-primary); }
body .smp-psc-app .smp-psc-expert h3 { color: #166534; }
body .smp-psc-app .smp-psc-alert, body .smp-psc-app .smp-psc-alert strong { color: #7f1d1d; }
body .smp-psc-app .smp-psc-note { color: #78350f; }
body .smp-psc-app .smp-psc-owned, body .smp-psc-app .smp-psc-owned-note { color: #166534; }
body .smp-psc-app .smp-psc-paybox strong { color: #c2410c; }
body .smp-psc-app .smp-psc-paystatus { color: #b45309; }
body .smp-psc-app .smp-psc-payrow span, body .smp-psc-app .smp-psc-paybox :is(span, small), body .smp-psc-app .smp-psc-qrbox small { color: var(--psc-muted); }
body :is(.smp-psc-app, .smp-psc-auth, .smp-psc-history) .smp-psc-badge { color: #fff; }
body :is(.smp-psc-app, .smp-psc-auth) .smp-psc-acc-who span, body .smp-psc-history .smp-psc-open li span { color: var(--psc-muted); }
body .smp-psc-auth .smp-psc-acc-google { color: #166534; }
body :is(.smp-psc-app, .smp-psc-auth, .smp-psc-history) a.smp-psc-btn,
body :is(.smp-psc-app, .smp-psc-auth, .smp-psc-history) a.smp-psc-btn:hover,
body :is(.smp-psc-app, .smp-psc-auth, .smp-psc-history) a.smp-psc-btn:focus { color: var(--psc-primary-ink); text-decoration: none; }
body :is(.smp-psc-app, .smp-psc-auth, .smp-psc-history) a.smp-psc-btn.is-ghost { color: var(--psc-primary); }
body :is(.smp-psc-app, .smp-psc-auth, .smp-psc-history) :is(.smp-psc-view, .smp-psc-userlink, .smp-psc-auth-links a) { color: var(--psc-primary); text-decoration: none; }
body .smp-psc-auth .smp-psc-google, body .smp-psc-auth .smp-psc-google:hover { color: var(--psc-ink); text-decoration: none; }
body :is(.smp-psc-app, .smp-psc-auth) .smp-psc-tabs button { color: var(--psc-muted); }
body :is(.smp-psc-app, .smp-psc-auth) .smp-psc-tabs button.is-active { color: var(--psc-primary); }
body .smp-psc-app .smp-psc-opt, body .smp-psc-app .smp-psc-opt span { color: var(--psc-ink); }
body :is(.smp-psc-app, .smp-psc-auth, .smp-psc-history) :is(.smp-psc-auth-sub, .smp-psc-auth-links, .smp-psc-hint, .smp-psc-empty, .smp-psc-check, .smp-psc-consent, .smp-psc-or) { color: var(--psc-muted); }
body .smp-psc-app .smp-psc-save p { color: var(--psc-muted); }
body .smp-psc-auth .smp-psc-auth-msg.is-error { color: #991b1b; }
body .smp-psc-auth .smp-psc-auth-msg.is-ok { color: #166534; }


/* ---------- Đăng nhập/đăng ký 2 cột ---------- */
.smp-psc-auth.is-split { max-width: 1080px; }
.smp-psc-split { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: stretch; }
.smp-psc-split-form { display: flex; align-items: center; }
.smp-psc-split-form .smp-psc-auth-card { width: 100%; }
@media (min-width: 880px) {
  .smp-psc-split { grid-template-columns: minmax(360px, 440px) 1fr; gap: 28px; }
  .smp-psc-split .smp-psc-intro { order: 2; }
}
.smp-psc-intro { position: relative; overflow: hidden; border-radius: 18px; padding: 28px 24px; background: linear-gradient(150deg, #4338ca 0%, #6d28d9 55%, #9333ea 100%); color: #fff; box-shadow: 0 10px 30px rgba(67,56,202,.25); }
.smp-psc-intro::after { content: ""; position: absolute; right: -80px; top: -80px; width: 240px; height: 240px; border-radius: 50%; background: rgba(255,255,255,.08); pointer-events: none; }
.smp-psc-intro-kicker { margin: 0 0 6px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.smp-psc-intro-title { margin: 0 0 10px; font-size: 1.6rem; line-height: 1.25; font-weight: 800; }
.smp-psc-intro-text { margin: 0 0 16px; font-size: .98rem; line-height: 1.6; opacity: .95; }
.smp-psc-intro-quote { margin: 0 0 18px; padding: 14px 16px; border: 0; border-left: 3px solid rgba(255,255,255,.6); background: rgba(255,255,255,.1); border-radius: 0 12px 12px 0; }
.smp-psc-intro-quote p { margin: 0 0 6px; font-style: italic; line-height: 1.55; }
.smp-psc-intro-quote cite { font-style: normal; font-size: .85rem; opacity: .85; }
.smp-psc-intro-h3 { margin: 0 0 10px; font-size: 1.02rem; font-weight: 700; }
.smp-psc-intro-signs { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.smp-psc-intro-signs li { position: relative; padding-left: 30px; font-size: .93rem; line-height: 1.5; }
.smp-psc-intro-signs li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 700; }
.smp-psc-intro-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.smp-psc-intro-stats span { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: 5px 12px; font-size: .82rem; }
.smp-psc-intro-cta { margin: 0; font-size: .9rem; line-height: 1.55; opacity: .9; }
/* màu chữ khối giới thiệu luôn trắng, kể cả khi theme ghi đè */
body .smp-psc-auth .smp-psc-intro, body .smp-psc-auth .smp-psc-intro :is(h2, h3, p, li, strong, span, cite, blockquote) { color: #fff; }

.smp-psc-conclusion { border-width: 2px; border-top-width: 5px; }

.smp-psc-info > .smp-psc-back, .smp-psc-paywall > .smp-psc-back, .smp-psc-checkout > .smp-psc-back { display: block; }

@media print {
  .smp-psc-actions, .smp-psc-toast, .smp-psc-alert .smp-psc-btn { display: none !important; }
  .smp-psc-dcard, .smp-psc-chart { break-inside: avoid; }
  .smp-psc-badge, .smp-psc-bar span { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
