/* SAT Public Page Styles — v2.1 */
.sat-public-wrap {
    max-width: 1040px;
    margin: 0 auto;
    font-family: Georgia, "Times New Roman", serif;
    color: #183247;
    background: radial-gradient(circle at top left, rgba(34,113,177,.10), transparent 28%), linear-gradient(180deg, #fbfaf7 0%, #f6f2ea 100%);
    border-radius: 22px;
    padding: 0 18px 28px;
}

/* =========================================================================
   Hero
   ========================================================================= */
.sat-hero {
    text-align: center;
    padding: 44px 24px 28px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #123654 0%, #2271b1 55%, #1a7a4a 100%);
    color: #fff;
    border-radius: 0 0 22px 22px;
    box-shadow: 0 16px 44px rgba(18,54,84,.18);
}
.sat-hero-title { font-size: clamp(28px,5vw,44px); font-weight: 700; margin: 0 0 10px; letter-spacing: -.03em; }
.sat-hero-sub   { font-size: 17px; color: rgba(255,255,255,.88); margin: 0 auto; max-width: 700px; }

/* =========================================================================
   Mode Tabs
   ========================================================================= */
.sat-mode-tabs {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 0 0 20px;
}
.sat-mode-tab {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 22px;
    border: 1px solid rgba(24,50,71,.14);
    border-radius: 8px;
    background: rgba(255,255,255,.92);
    font-size: 14px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: border-color .2s, color .2s, background .2s;
}
.sat-mode-tab:hover  { border-color: #2271b1; color: #2271b1; }
.sat-mode-tab.active { border-color: #2271b1; background: #2271b1; color: #fff; }
.sat-mode-tab svg    { flex-shrink: 0; }

/* =========================================================================
   Form cards
   ========================================================================= */
.sat-form-panel {}
.sat-public-form-card {
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(34,113,177,.20);
    border-radius: 18px;
    padding: 26px;
    margin-bottom: 24px;
    box-shadow: 0 10px 30px rgba(24,50,71,.08);
}
.sat-site-card  { border-color: rgba(26,122,74,.22); box-shadow: 0 10px 30px rgba(26,122,74,.10); }
.sat-public-form-row { display: flex; gap: 10px; }
.sat-public-input {
    flex: 1;
    padding: 14px 18px;
    font-size: 16px;
    border: 1px solid rgba(24,50,71,.18);
    border-radius: 12px;
    outline: none;
    transition: border .2s, box-shadow .2s;
}
.sat-public-input:focus { border-color: #2271b1; box-shadow: 0 0 0 3px rgba(34,113,177,.15); }
.sat-site-form-wrap .sat-public-input:focus { border-color: #1a7a4a; box-shadow: 0 0 0 3px rgba(26,122,74,.15); }
.sat-public-btn {
    padding: 14px 28px;
    background: linear-gradient(135deg, #123654 0%, #2271b1 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s;
}
.sat-public-btn:hover    { filter: brightness(.96); }
.sat-public-btn:disabled { background: #a0b4c8; cursor: not-allowed; }
.sat-btn-site            { background: linear-gradient(135deg, #14543a 0%, #1a7a4a 100%); }
.sat-btn-site:hover      { filter: brightness(.96); }
.sat-hint { margin: 10px 0 0; font-size: 12px; color: #617283; text-align: center; }
.sat-input-error { border-color: #d63638 !important; box-shadow: 0 0 0 3px rgba(214,54,56,.15) !important; }
.sat-field-error { margin: 6px 0 0; font-size: 13px; color: #d63638; display: flex; align-items: center; gap: 5px; }
.sat-field-error::before { content: "⚠"; }

/* =========================================================================
   Loading / Progress
   ========================================================================= */
.sat-pub-state { display: flex; align-items: center; gap: 14px; padding: 20px 24px; background: #f6f7f7; border-radius: 10px; margin-bottom: 20px; }
.sat-pub-spinner {
    width: 28px; height: 28px; flex-shrink: 0;
    border: 3px solid #ddd; border-top-color: #2271b1;
    border-radius: 50%; animation: sat-pub-spin .8s linear infinite;
}
@keyframes sat-pub-spin { to { transform: rotate(360deg); } }
.sat-pub-error  { background: #fef7f7; color: #d63638; }
.sat-pub-error svg { flex-shrink: 0; }

.sat-site-loading-state { flex-direction: column; align-items: stretch; gap: 16px; }
.sat-site-loading-header { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 15px; }

.sat-progress-wrap { display: flex; flex-direction: column; gap: 6px; }
.sat-progress-bar  { height: 10px; background: #e0e0e0; border-radius: 5px; overflow: hidden; }
.sat-progress-fill { height: 100%; background: linear-gradient(90deg, #2271b1, #1a7a4a); border-radius: 5px; transition: width .3s ease; }
.sat-progress-meta { display: flex; justify-content: space-between; font-size: 13px; color: #666; }

/* =========================================================================
   Banner
   ========================================================================= */
.sat-pub-banner {
    background: #f0f6fc;
    border: 1px solid #c3d9f0;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    margin-bottom: 20px;
}
.sat-pub-banner a  { color: #2271b1; text-decoration: none; }
.sat-site-banner   { background: #edfaf3; border-color: #a8d5bf; }
.sat-site-banner a { color: #1a7a4a; }

/* =========================================================================
   Layout grid
   ========================================================================= */
.sat-pub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
@media (max-width: 640px) {
    .sat-pub-grid, .sat-public-form-row, .sat-mode-tabs { flex-direction: column; grid-template-columns: 1fr; }
    .sat-mode-tab { justify-content: center; }
}

/* =========================================================================
   Cards
   ========================================================================= */
.sat-pub-card { background: rgba(255,255,255,.95); border: 1px solid #d6dfdf; border-radius: 16px; padding: 22px; margin-bottom: 20px; box-shadow: 0 8px 26px rgba(24,50,71,.06); }
.sat-pub-card h3 { margin: 0 0 16px; font-size: 16px; font-weight: 700; }
.sat-pub-score-card { text-align: center; }

/* =========================================================================
   Score ring
   ========================================================================= */
.sat-pub-ring-wrap { position: relative; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.sat-pub-ring { transform: rotate(-90deg); }
.sat-pub-ring-bg   { fill: none; stroke: #f0f0f0; stroke-width: 10; }
.sat-pub-ring-fill { fill: none; stroke: #2271b1; stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset .9s ease, stroke .4s; }
.sat-pub-score-text { position: absolute; display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.sat-pub-score-text span  { font-size: 32px; font-weight: 700; }
.sat-pub-score-text small { font-size: 12px; color: #666; }

.band-excellent .sat-pub-ring-fill { stroke: #00a32a; }
.band-good      .sat-pub-ring-fill { stroke: #72aee6; }
.band-fair      .sat-pub-ring-fill { stroke: #dba617; }
.band-poor      .sat-pub-ring-fill { stroke: #d63638; }
.band-critical  .sat-pub-ring-fill { stroke: #8a2424; }

/* =========================================================================
   Category bars
   ========================================================================= */
.sat-pub-bar-row { margin-bottom: 14px; }
.sat-pub-bar-label { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 4px; }
.sat-pub-bar-track { background: #f0f0f0; border-radius: 4px; height: 8px; overflow: hidden; }
.sat-pub-bar-fill  { height: 100%; border-radius: 4px; transition: width .8s ease; }
.bar-good { background: #00a32a; }
.bar-fair { background: #dba617; }
.bar-poor { background: #d63638; }

/* =========================================================================
   Stats Grid (full-site)
   ========================================================================= */
.sat-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}
@media (max-width: 700px) { .sat-stats-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 400px) { .sat-stats-grid { grid-template-columns: 1fr; } }

.sat-stat-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
    transition: border-color .2s;
}
.sat-stat-card.stat-good { border-top: 3px solid #00a32a; }
.sat-stat-card.stat-warn { border-top: 3px solid #dba617; }
.sat-stat-card.stat-bad  { border-top: 3px solid #d63638; }

.sat-stat-icon  { font-size: 22px; margin-bottom: 6px; }
.sat-stat-value { font-size: 22px; font-weight: 700; color: #1d2327; line-height: 1.1; }
.sat-stat-label { font-size: 12px; color: #777; margin-top: 4px; }

/* =========================================================================
   PageSpeed
   ========================================================================= */
.sat-pub-psi-row { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.sat-pub-psi-score { flex: 1; min-width: 80px; text-align: center; padding: 14px; background: #f6f7f7; border-radius: 8px; }
.sat-pub-psi-score span  { display: block; font-size: 28px; font-weight: 700; }
.sat-pub-psi-score label { font-size: 12px; color: #666; }
.psi-good { color: #00a32a; }
.psi-fair { color: #dba617; }
.psi-poor { color: #d63638; }
.sat-pub-cwv { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
.sat-pub-cwv-item { background: #f6f7f7; border-radius: 6px; padding: 10px; text-align: center; }
.sat-pub-cwv-item label { display: block; font-size: 11px; font-weight: 700; color: #888; margin-bottom: 4px; }
.sat-pub-cwv-item span  { font-size: 15px; font-weight: 600; }
@media (max-width: 480px) { .sat-pub-cwv { grid-template-columns: repeat(2,1fr); } }

/* =========================================================================
   Issues
   ========================================================================= */
.sat-pub-issue { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid #f0f0f0; align-items: flex-start; }
.sat-pub-issue:last-child { border-bottom: none; }
.sat-sev { flex-shrink: 0; padding: 3px 9px; border-radius: 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.sev-critical { background: #8a2424; color: #fff; }
.sev-high     { background: #d63638; color: #fff; }
.sev-medium   { background: #dba617; color: #fff; }
.sev-low      { background: #72aee6; color: #fff; }
.sat-issue-body strong { font-size: 14px; font-weight: 600; }
.sat-issue-body p { margin: 4px 0 0; font-size: 13px; color: #555; }
.sat-issue-fix { margin: 6px 0 0; font-size: 12px; color: #006b23; background: #f0faf2; border-left: 3px solid #00a32a; padding: 6px 10px; border-radius: 0 4px 4px 0; }
.sat-fix-label { font-weight: 700; }
.sat-issue-urls { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 4px; }
.sat-issue-urls a {
    font-size: 11px; padding: 2px 8px; background: #f0f0f0; border-radius: 3px;
    color: #2271b1; text-decoration: none; max-width: 260px; overflow: hidden;
    text-overflow: ellipsis; white-space: nowrap;
}
.sat-issue-urls a:hover { background: #dce6f5; }
.sat-more-urls { font-size: 11px; color: #888; padding: 2px 4px; }

/* =========================================================================
   Pass list
   ========================================================================= */
.sat-pub-pass-list { list-style: none; margin: 0; padding: 0; }
.sat-pub-pass-list li { padding: 8px 0; border-bottom: 1px solid #f0f0f0; font-size: 13px; display: flex; gap: 8px; align-items: flex-start; color: #444; }
.sat-pub-pass-list li:last-child { border-bottom: none; }
.sat-pub-pass-list li::before { content: "✓"; color: #00a32a; font-weight: 700; flex-shrink: 0; }

/* =========================================================================
   Action plan
   ========================================================================= */
.sat-pub-action-group { margin-bottom: 18px; }
.sat-pub-action-group h4 { margin: 0 0 8px; font-size: 14px; font-weight: 700; }
.sat-pub-action-group ul { margin: 0; padding-left: 18px; }
.sat-pub-action-group li { font-size: 13px; margin-bottom: 6px; line-height: 1.5; }
.act-critical h4 { color: #8a2424; }
.act-high     h4 { color: #d63638; }
.act-medium   h4 { color: #dba617; }
.act-low      h4 { color: #2271b1; }

/* =========================================================================
   Results top bar
   ========================================================================= */
.sat-results-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.sat-results-topbar-url {
    font-size: 14px;
    color: #555;
}
.sat-results-topbar-url strong {
    color: #1d2327;
    word-break: break-all;
}
.sat-results-topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.sat-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    background: linear-gradient(135deg, #14543a 0%, #1a7a4a 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s;
}
.sat-download-btn:hover    { filter: brightness(.97); }
.sat-download-btn svg      { flex-shrink: 0; }
.sat-restart-link {
    font-size: 13px;
    color: #2271b1;
    text-decoration: none;
}
.sat-restart-link:hover { text-decoration: underline; }

/* =========================================================================
   Download Modal
   ========================================================================= */
#sat-download-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
}
.sat-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.55);
}
.sat-modal-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 14px;
    padding: 36px 32px 28px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
    text-align: center;
}
.sat-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 22px;
    color: #888;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
}
.sat-modal-close:hover { color: #333; }
.sat-modal-icon  { font-size: 36px; margin-bottom: 8px; }
.sat-modal-title { margin: 0 0 8px; font-size: 20px; font-weight: 700; color: #1d2327; }
.sat-modal-desc  { margin: 0 0 18px; font-size: 14px; color: #555; line-height: 1.5; }
.sat-modal-email-input {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 13px 16px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    outline: none;
    margin-bottom: 8px;
    transition: border .2s, box-shadow .2s;
}
.sat-modal-email-input:focus { border-color: #1a7a4a; box-shadow: 0 0 0 3px rgba(26,122,74,.15); }
.sat-modal-error {
    font-size: 13px;
    color: #d63638;
    margin: 0 0 10px;
    text-align: left;
}
.sat-modal-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px;
    background: #1a7a4a;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background .2s;
    margin-bottom: 14px;
}
.sat-modal-submit-btn:hover    { background: #145c38; }
.sat-modal-submit-btn:disabled { background: #a0b4c8; cursor: not-allowed; }
.sat-modal-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 12px;
    color: #888;
    margin: 0;
}
.sat-modal-spinner {
    display: inline-block;
    width: 13px; height: 13px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: sat-pub-spin .7s linear infinite;
    vertical-align: middle;
}
@media (max-width: 460px) {
    .sat-modal-card { padding: 28px 18px 22px; max-width: calc(100% - 32px); }
    .sat-results-topbar { flex-direction: column; align-items: flex-start; }
}

/* =========================================================================
   Email Gate
   ========================================================================= */
#sat-email-gate { margin-bottom: 20px; }

/* Blurred preview rows above the gate */
.sat-gate-blur-preview {
    position: relative;
    padding: 16px 22px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-bottom: none;
    border-radius: 10px 10px 0 0;
    overflow: hidden;
}
.sat-gate-blur-row {
    height: 12px;
    background: #e0e0e0;
    border-radius: 6px;
    margin-bottom: 12px;
    filter: blur(3px);
    opacity: .5;
}
.sat-gate-blur-row.sat-blur-short { width: 65%; }
.sat-gate-blur-lock {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.7);
    backdrop-filter: blur(2px);
}

/* Gate card */
.sat-gate-card {
    background: linear-gradient(135deg, #f0f6fc 0%, #edfaf3 100%);
    border: 2px solid #2271b1;
    border-radius: 0 0 12px 12px;
    padding: 28px 32px;
    text-align: center;
}
.sat-gate-icon  { font-size: 32px; margin-bottom: 10px; }
.sat-gate-title { margin: 0 0 10px; font-size: 20px; font-weight: 700; color: #1d2327; }
.sat-gate-desc  { margin: 0 0 20px; font-size: 15px; color: #444; line-height: 1.6; }
.sat-gate-desc strong { color: #1d2327; }

.sat-gate-form-row {
    display: flex;
    gap: 10px;
    max-width: 520px;
    margin: 0 auto 10px;
}
.sat-gate-email-input {
    flex: 1;
    padding: 13px 16px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    outline: none;
    transition: border .2s, box-shadow .2s;
}
.sat-gate-email-input:focus { border-color: #2271b1; box-shadow: 0 0 0 3px rgba(34,113,177,.15); }
.sat-gate-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 13px 22px;
    background: #2271b1;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s;
}
.sat-gate-btn:hover    { background: #135e96; }
.sat-gate-btn:disabled { background: #a0b4c8; cursor: not-allowed; }
.sat-gate-spinner {
    display: inline-block;
    width: 14px; height: 14px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: sat-pub-spin .7s linear infinite;
}
.sat-gate-error {
    color: #d63638;
    font-size: 13px;
    margin: 4px auto 0;
    max-width: 520px;
    text-align: left;
}
.sat-gate-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin: 14px 0 0;
    font-size: 12px;
    color: #777;
}

@media (max-width: 540px) {
    .sat-gate-card { padding: 22px 18px; }
    .sat-gate-form-row { flex-direction: column; }
    .sat-gate-btn { justify-content: center; }
}

/* =========================================================================
   Pages Table
   ========================================================================= */
.sat-pages-header { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.sat-pages-header h3 { margin: 0; font-size: 16px; font-weight: 700; }
.sat-pages-count { font-size: 13px; font-weight: 400; color: #888; margin-left: 4px; }
.sat-pages-filter { display: flex; gap: 8px; flex-wrap: wrap; }
.sat-pages-filter select, .sat-pages-search-input {
    padding: 6px 10px;
    font-size: 13px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    outline: none;
    transition: border-color .15s;
}
.sat-pages-filter select:focus, .sat-pages-search-input:focus { border-color: #2271b1; }
.sat-pages-search-input { min-width: 160px; }

.sat-table-wrap { overflow-x: auto; }
.sat-pages-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.sat-pages-table th {
    text-align: left;
    padding: 9px 10px;
    background: #f6f7f7;
    border-bottom: 2px solid #e0e0e0;
    font-weight: 600;
    white-space: nowrap;
    color: #444;
}
.sat-pages-table th.sortable { cursor: pointer; user-select: none; }
.sat-pages-table th.sortable:hover { background: #eef0f1; }
.sort-icon { color: #aaa; margin-left: 4px; }
.sat-pages-table td {
    padding: 9px 10px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}
.sat-pages-table tr:last-child td { border-bottom: none; }
.sat-pages-table tr:hover td { background: #fafafa; }

.col-url    { min-width: 200px; max-width: 300px; }
.col-url a  { color: #2271b1; text-decoration: none; font-size: 12px; word-break: break-all; }
.col-url a:hover { text-decoration: underline; }
.col-status { width: 70px; text-align: center; }
.col-title  { min-width: 160px; max-width: 220px; font-size: 12px; color: #444; }
.col-words  { width: 70px; text-align: right; }
.col-h1, .col-meta, .col-schema { width: 55px; text-align: center; }
.col-speed  { width: 80px; text-align: right; }
.col-issues { width: 65px; text-align: center; }

.sat-status-badge { display: inline-block; padding: 2px 7px; border-radius: 4px; font-size: 11px; font-weight: 700; }
.sc-ok  { background: #d7f0dd; color: #006b23; }
.sc-red { background: #fef3d0; color: #8a5a00; }
.sc-err { background: #fce8e8; color: #8a2424; }
.sc-unk { background: #f0f0f0; color: #666; }

.sat-ok      { color: #00a32a; font-weight: 700; }
.sat-fail    { color: #d63638; font-weight: 700; }
.sat-warn    { color: #dba617; font-weight: 700; }
.sat-neutral { color: #aaa; }
.sat-missing { color: #d63638; font-style: italic; font-size: 11px; }

.sat-tag { display: inline-block; padding: 1px 5px; border-radius: 3px; font-size: 10px; font-weight: 600; margin-left: 4px; vertical-align: middle; }
.sat-tag-noindex { background: #fce8e8; color: #8a2424; }

.sat-issue-count { display: inline-block; padding: 2px 7px; background: #d63638; color: #fff; border-radius: 10px; font-size: 11px; font-weight: 700; }

.speed-ok   { color: #00a32a; }
.speed-med  { color: #dba617; }
.speed-slow { color: #d63638; }

/* =========================================================================
   Table footer / pagination
   ========================================================================= */
.sat-table-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; font-size: 13px; color: #666; flex-wrap: wrap; gap: 8px; }
.sat-table-pagination { display: flex; gap: 4px; flex-wrap: wrap; }
.sat-page-btn {
    padding: 5px 11px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #fff;
    font-size: 13px;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}
.sat-page-btn:hover  { background: #f0f6fc; border-color: #2271b1; }
.sat-page-btn.active { background: #2271b1; border-color: #2271b1; color: #fff; }

/* =========================================================================
   Badges / Misc
   ========================================================================= */
.sat-pub-badge { display: inline-block; padding: 2px 7px; border-radius: 3px; font-size: 11px; font-weight: 600; }
.sat-pub-badge-mobile { background: #e0e0e0; color: #555; }
#sat-pub-summary, #sat-site-summary { font-size: 13px; color: #555; margin-top: 8px; }

.sat-count-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 400;
    color: #888;
    margin-left: 4px;
}

/* =========================================================================
   Preview note
   ========================================================================= */
.sat-preview-note {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: 16px 0 0;
    padding: 10px 14px;
    background: #f0f6fc;
    border-radius: 7px;
    font-size: 13px;
    color: #555;
    line-height: 1.5;
}
.sat-preview-note svg { flex-shrink: 0; margin-top: 1px; color: #2271b1; }

/* =========================================================================
   Download CTA block
   ========================================================================= */
.sat-download-cta {
    text-align: center;
    padding: 28px 20px;
    margin-bottom: 20px;
}
.sat-download-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 15px 32px;
    background: linear-gradient(135deg, #14543a 0%, #1a7a4a 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(26,122,74,.35);
    transition: background .2s, box-shadow .2s, transform .1s;
}
.sat-download-cta-btn:hover {
    box-shadow: 0 6px 20px rgba(26,122,74,.45);
    transform: translateY(-1px);
}
.sat-download-cta-btn:active { transform: translateY(0); }
.sat-download-cta-note {
    margin: 12px 0 0;
    font-size: 13px;
    color: #777;
}

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 640px) {
    .sat-pages-header { flex-direction: column; }
    .sat-pages-filter { flex-direction: column; }
    .sat-pages-search-input { width: 100%; }
    .sat-table-footer { flex-direction: column; align-items: flex-start; }
}
