/* SignBox portal: small additions on top of the Braided (Luminos) theme. */
:root { --sbx-blue: #3737ff; --sbx-ink: #1f1f25; --sbx-muted: #6b6b76; --sbx-line: #e6e6ef; --sbx-soft: #f6f6fb; }
body.sbx { background: #fff; color: var(--sbx-ink); }
.sbx-staging { background: #ffcc33; color: #1f1f25; text-align: center; font-size: 14px; padding: 6px; font-weight: 600; }
.sbx-logo { max-height: 46px; }
.sbx-header-link { margin-right: 18px; font-weight: 500; color: var(--sbx-ink); }
.header-style-one .button-area-right-header { display: flex; align-items: center; }
.sbx-main { min-height: 50vh; }
.sbx-container { padding-top: 40px; padding-bottom: 80px; }
.sbx-hero { background: var(--sbx-soft); padding: 70px 0 50px; }
.sbx-hero .title { font-size: 52px; line-height: 1.1; margin: 8px 0 12px; }
.sbx-hero-text { font-size: 19px; color: var(--sbx-muted); max-width: 720px; }
.sbx-eyebrow { display: inline-block; border: 1px solid var(--sbx-line); border-radius: 99px; padding: 4px 16px; font-size: 15px; background: #fff; margin: 0; }
.sbx h1, .sbx h2, .sbx h3 { color: var(--sbx-ink); }
.sbx-page-title { font-size: 38px; margin-bottom: 6px; }
.sbx-sub { color: var(--sbx-muted); font-size: 17px; margin-bottom: 28px; }

.sbx-card { border: 1px solid var(--sbx-line); border-radius: 14px; padding: 26px; background: #fff; height: 100%; }
.sbx-card h3 { font-size: 22px; margin-bottom: 8px; }
.sbx-card p { color: var(--sbx-muted); }
.sbx-card.soft { background: var(--sbx-soft); }
.sbx-card .icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: #ececff; color: var(--sbx-blue); font-size: 20px; margin-bottom: 14px; }
.sbx-narrow { max-width: 560px; margin: 0 auto; }
.sbx-form label { font-weight: 500; margin-bottom: 6px; display: block; }
.sbx-form .form-control, .sbx-form .form-select { height: 50px; border-radius: 10px; border-color: #d6d6e2; font-size: 16px; }
.sbx-form textarea.form-control { height: auto; }
.sbx-form .form-check-input { width: 1.2em; height: 1.2em; }
.sbx-form .hint { font-size: 14px; color: var(--sbx-muted); margin-top: 4px; }
.sbx-form .mb { margin-bottom: 18px; }
.sbx .rts-btn { cursor: pointer; }
.sbx .rts-btn.btn-primary { border: none; }
.sbx .btn-block { width: 100%; justify-content: center; }
.sbx-code-input { letter-spacing: 12px; font-size: 28px !important; text-align: center; font-weight: 600; }

.sbx-badge { display: inline-block; border-radius: 99px; padding: 3px 11px; font-size: 13px; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.sbx-badge-success { background: #e3f7ea; color: #13703a; }
.sbx-badge-warning { background: #fff4d6; color: #8a5a00; }
.sbx-badge-danger { background: #fde7e7; color: #a11d1d; }
.sbx-badge-secondary { background: #eeeef3; color: #4b4b57; }
.sbx-badge-info { background: #e6ecff; color: #2a3fb0; }

.sbx-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.sbx-table th { text-align: left; color: var(--sbx-muted); font-weight: 500; padding: 10px 12px; border-bottom: 1px solid var(--sbx-line); white-space: nowrap; }
.sbx-table td { padding: 12px; border-bottom: 1px solid var(--sbx-line); vertical-align: top; }
.sbx-table tr:hover td { background: #fafaff; }
.sbx-table-wrap { overflow-x: auto; }
.sbx-kv { display: grid; grid-template-columns: 190px 1fr; gap: 8px 16px; font-size: 15px; }
.sbx-kv dt { color: var(--sbx-muted); font-weight: 500; }
.sbx-kv dd { margin: 0; word-break: break-word; }
.sbx-key { font-family: ui-monospace, Consolas, monospace; font-size: 20px; letter-spacing: 1px; background: var(--sbx-soft); border: 1px dashed #c9c9dc; border-radius: 10px; padding: 12px 16px; display: inline-block; }
.sbx-copy { margin-left: 8px; }
.sbx-mono { font-family: ui-monospace, Consolas, monospace; font-size: 13px; word-break: break-all; }
.sbx-price { font-size: 40px; font-weight: 600; color: var(--sbx-ink); }
.sbx-price small { font-size: 16px; color: var(--sbx-muted); font-weight: 400; }
.sbx-plan ul { padding-left: 0; list-style: none; margin: 16px 0 22px; }
.sbx-plan li { padding: 4px 0; color: var(--sbx-ink); }
.sbx-plan li i { color: var(--sbx-blue); margin-right: 8px; }
.sbx-tabs { display: flex; gap: 8px; margin-bottom: 26px; flex-wrap: wrap; }
.sbx-tabs a { padding: 9px 18px; border-radius: 99px; border: 1px solid var(--sbx-line); color: var(--sbx-ink); }
.sbx-tabs a.on { background: var(--sbx-blue); border-color: var(--sbx-blue); color: #fff; }
.sbx-steps { counter-reset: s; padding-left: 0; list-style: none; }
.sbx-steps li { counter-increment: s; position: relative; padding-left: 46px; margin-bottom: 16px; }
.sbx-steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 50%; background: #ececff; color: var(--sbx-blue); display: grid; place-items: center; font-weight: 600; }
.sbx-legal h2 { font-size: 24px; margin-top: 30px; }
.sbx-legal p, .sbx-legal li { font-size: 16px; line-height: 1.7; color: #33333d; }
.sbx-pager { display: flex; gap: 8px; margin-top: 16px; }
.sbx-empty { text-align: center; padding: 50px 20px; color: var(--sbx-muted); }
.sbx-empty i { font-size: 40px; color: #c4c4dd; display: block; margin-bottom: 12px; }
.sbx-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.sbx-section-title { font-size: 26px; margin: 36px 0 16px; }

@media (max-width: 991px) {
  .sbx-hero .title { font-size: 36px; }
  .sbx-header-link { display: none; }
  .sbx-kv { grid-template-columns: 1fr; }
}

/* ---------- admin ---------- */
body.sbx-admin { background: #f4f5f9; font-family: "Segoe UI", system-ui, -apple-system, sans-serif; font-size: 15px; color: var(--sbx-ink); }
.sbx-admin .side { position: fixed; top: 0; bottom: 0; left: 0; width: 236px; background: #15151f; color: #c9c9d6; padding: 20px 14px; overflow-y: auto; }
.sbx-admin .side .brand { text-decoration: none; color: #fff; font-weight: 700; font-size: 20px; padding: 4px 10px 18px; display: block; }
.sbx-admin .side .brand span { color: #8f8fff; }
.sbx-admin .side a.nav-i { display: flex; align-items: center; gap: 10px; color: #c9c9d6; padding: 9px 10px; border-radius: 8px; text-decoration: none; margin-bottom: 2px; }
.sbx-admin .side a.nav-i:hover { background: #24243a; color: #fff; }
.sbx-admin .side a.nav-i.on { background: #3737ff; color: #fff; }
.sbx-admin .side a.nav-i i { width: 18px; text-align: center; }
.sbx-admin .side .count { margin-left: auto; background: #ff5b5b; color: #fff; border-radius: 99px; font-size: 11px; padding: 1px 7px; font-weight: 700; }
.sbx-admin .side .who { border-top: 1px solid #2c2c40; margin-top: 18px; padding: 14px 10px 0; font-size: 13px; }
.sbx-admin .main { margin-left: 236px; padding: 26px 32px 60px; }
.sbx-admin h1 { font-size: 26px; font-weight: 600; margin-bottom: 4px; }
.sbx-admin .sub { color: var(--sbx-muted); margin-bottom: 22px; }
.sbx-admin .panel { background: #fff; border: 1px solid var(--sbx-line); border-radius: 12px; padding: 20px; margin-bottom: 20px; }
.sbx-admin .panel h2 { font-size: 18px; font-weight: 600; margin-bottom: 14px; }
.sbx-admin .stat { background: #fff; border: 1px solid var(--sbx-line); border-radius: 12px; padding: 16px 18px; display: block; color: inherit; text-decoration: none; height: 100%; }
.sbx-admin .stat .n { font-size: 30px; font-weight: 700; }
.sbx-admin .stat .l { color: var(--sbx-muted); font-size: 14px; }
.sbx-admin .stat.hot { border-color: #ffb3b3; background: #fff7f7; }
.sbx-admin .form-control, .sbx-admin .form-select { border-radius: 8px; }
.sbx-admin label { font-weight: 500; margin-bottom: 4px; }
.sbx-admin .filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.sbx-admin .filters .form-control, .sbx-admin .filters .form-select { width: auto; min-width: 180px; }
.sbx-admin pre.json { background: #f6f6fb; border-radius: 8px; padding: 12px; font-size: 12.5px; max-height: 420px; overflow: auto; }
.sbx-admin-auth { max-width: 420px; margin: 9vh auto; background: #fff; border-radius: 14px; border: 1px solid var(--sbx-line); padding: 32px; }
@media (max-width: 900px) {
  .sbx-admin .side { position: static; width: auto; }
  .sbx-admin .main { margin-left: 0; padding: 18px; }
}
@media print {
  .no-print, header, .side, .rts-footer-area, .rts-copyright-area-one, .sbx-staging, .side-bar { display: none !important; }
  .sbx-admin .main { margin: 0; padding: 0; }
  body { background: #fff !important; }
}

/* The Braided theme draws a fake box on every checkbox/radio label; we use the real control, so hide the fake one. */
input[type="checkbox"] ~ label::before, input[type="checkbox"] ~ label::after,
input[type="radio"] ~ label::before, input[type="radio"] ~ label::after { display: none; }
input[type="checkbox"] ~ label, input[type="radio"] ~ label { padding-left: 6px; font-size: inherit; line-height: inherit; }
.form-check-label a { color: var(--color-primary); text-decoration: underline; }
.sbx-pw { position: relative; }
.sbx-pw input { padding-right: 46px !important; }
/* The theme stretches form buttons to full width: pin the eye to the right edge. */
.sbx-pw .sbx-pw-eye { position: absolute !important; right: 8px !important; left: auto !important; top: 50% !important; transform: translateY(-50%);
  width: 36px !important; height: 36px !important; min-width: 0 !important; margin: 0 !important; padding: 0 !important; border: 0 !important;
  background: none !important; box-shadow: none !important; display: flex !important; align-items: center; justify-content: center;
  color: #6b6378; cursor: pointer; line-height: 1; }
.sbx-pw-eye:hover { color: var(--color-primary); }
input.form-control::placeholder, textarea.form-control::placeholder, .sbx-form input::placeholder { color: #a7a1b2 !important; opacity: 1 !important; }
.sbx-ss-row { display: flex; gap: 10px; }
.sbx-ss-row input { font-size: 22px; letter-spacing: .12em; text-transform: uppercase; }
#ss .sbx-card { margin-bottom: 18px; }
#ss .btn { font-size: 16px; padding: 12px 18px; border-radius: 10px; }
#ss-scan { width: 100%; font-weight: 600; }
#ss .rts-btn { min-height: 48px; }
@media (max-width: 575px) {
  #ss .sbx-card { padding: 20px 16px; }
  #ss .sbx-page-title { font-size: 30px; }
  #ss-step-add .rts-btn, #ss-step-login .rts-btn, #ss-again { width: 100%; justify-content: center; }
}
/* Key + Copy side by side with breathing room (theme makes buttons full width). */
.sbx-keyrow { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
[data-copy] { width: auto !important; display: inline-flex !important; align-items: center; gap: 6px; padding: 10px 18px !important; font-size: 15px !important; border-radius: 10px !important; }

/* FAQ */
.sbx-faq { max-width: 860px; }
.sbx-faq-h { font-size: 26px; margin: 36px 0 12px; }
.sbx-faq-q { border: 1px solid #e6e6ef; border-radius: 14px; background: #fff; margin: 0 0 10px; }
.sbx-faq-q summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 22px; font-weight: 600; font-size: 17px; position: relative; }
.sbx-faq-q summary::-webkit-details-marker { display: none; }
.sbx-faq-q summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 24px; color: #3737ff; }
.sbx-faq-q[open] summary::after { content: "\2212"; }
.sbx-faq-q p { padding: 0 22px 18px; margin: 0; color: #5d666f; line-height: 1.6; }
