/* WERSJA: v49 */
/* ZMIANY:
   - 2026-05-22 v49 - Dodano mobilny widok kart serwisow z duzymi przyciskami akcji.
   - 2026-05-21 v48 - Wzmocniono panel aktualnego planu w checkout jako zestaw czytelnych badge'y.
   - 2026-05-21 v47 - Zabezpieczono badge upgrade'u przed nachodzeniem na etykiete Wybrany.
   - 2026-05-21 v46 - Dodano informacyjny alert doplaty za upgrade w checkout.
   - 2026-05-20 v45 - Dodano kompaktowy uklad akcji przy wpisach limitow i blokad IP.
   - 2026-05-20 v44 - Przestawiono wizualnie checkout aktywnego planu: SMS na górze, anchor do upgrade'u i czytelny nagłówek sekcji.
   - 2026-05-20 v43 - Dodano style sekcji dokupienia samych SMS dla aktywnego planu.
   - 2026-05-20 v42 - Wzmocniono wygląd zaznaczonego planu, podsumowania, kodu rabatowego i podpowiedzi SMS.
   - 2026-05-20 v41 - Przebudowano style checkoutu pod jeden koszyk planu z opcjonalnymi SMS i modalem.
   - 2026-05-19 v40 - Dodano style administracyjnego panelu blokad IP.
   - 2026-05-19 v39 - Dodano style ustawień przypomnienia o końcu abonamentu w Powiadomieniach.
   - 2026-05-19 v38 - Ustawiono stronę publiczną i API JSON obok siebie w panelu Powiadomienia.
   - 2026-05-19 v37 - Ostylowano osobny blok endpointu API status page w formularzu Powiadomienia.
   - 2026-05-18 v36 - Dodano incydenty, historię i mniej techniczne etykiety publicznej status page.
   - 2026-05-18 v35 - Wyróżniono obowiązkowe potwierdzenie prawa do monitorowania w formularzu monitora.
   - 2026-05-18 v34 - Przebudowano publiczną status page na reprezentacyjny widok z kaflami usług.
   - 2026-05-18 v33 - Ostylowano blok publicznej status page z pełnym linkiem i przyciskiem kopiowania.
   - 2026-05-18 v32 - Przeniesiono radio do wnętrza kafelków SMS i wzmocniono stan zaznaczenia.
   - 2026-05-18 v31 - Dopieszczono kafelki wyboru pakietów SMS w checkout.
   - 2026-05-18 v30 - Uproszczono układ pakietów SMS w checkout do jednego formularza z radio buttonami.
   - 2026-05-18 v29 - Dodano style pakietów SMS w checkout.
   - 2026-05-15 v28 - Dodano duże, wyśrodkowane pole OTP na ekranie aktywacji konta.
   - 2026-05-15 v27 - Wyrównano checkbox zgody rejestracyjnej do lewej strony obok opisu.
   - 2026-05-14 v26 - Wyróżniono faktyczną kwotę do zapłaty w kartach checkout.
   - 2026-05-14 v25 - Dodano panel bezpiecznych płatności Paynow w checkout.
   - 2026-05-09 v24 - Dodano panel aktualnego planu i linie rabatu za przedluzenie w checkout.
   - 2026-05-09 v23 - Dodano globalny przelacznik okresu rozliczenia i widoki cen w checkout.
   - 2026-05-08 v22 - Przywrócono kompaktowy mobilny układ monitorów i powiększono tylko wartości po prawej o 1px.
   - 2026-05-08 v21 - Wyróżniono wartości w mobilnych kartach monitorów większą typografią.
   - 2026-05-08 v20 - Powiększono badge statusów i typów w mobilnych kartach monitorów.
   - 2026-05-08 v19 - Powiększono typografię mobilnych kart monitorów do czytelnego rozmiaru.
   - 2026-05-08 v18 - Dodano mobilny widok kart dla listy monitorów oraz czytelniejsze akcje i filtry.
   - 2026-05-08 v17 - Dodano style list funkcji planów w checkout i podsumowania planu na koncie.
   - 2026-05-08 v16 - Dodano style publicznej status page.
   - 2026-05-08 v15 - Poprawiono polskie znaki w opisach ostatnich zmian stylów.
   - 2026-05-08 v14 - Dodano warianty badge planu konta: free, płatny i wygasły.
   - 2026-05-08 v13 - Dodano style stron prawnych oraz linków prawnych w stopce.
   - 2026-05-08 v12 - Dodano badge nieopłaconego konta w nagłówku panelu.
   - 2026-05-07 v11 - Zmniejszono kontrolki filtrow i dodano kompaktowe linki sortowania w nagłówkach tabel.
   - 2026-05-07 v10 - Dodano zawijanie dlugich formularzy filtrow w pasku filtrowania.
   - 2026-05-06 v9 - Dodano style okresów rozliczeniowych i panelu finansow w adminie.
   - 2026-05-06 v8 - Dodano style checkoutu Paynow i ekranu statusu płatności.
   - Wycentrowano Turnstile i dodano wspolne style walidacji ad hoc dla ekranow autoryzacji.
   - Dodano style dla Turnstile, rejestracji oraz kodów 2FA na ekranach autoryzacji.
   - Dodano kompaktowy przeplyw statusow callbackow SMS.
   - Dodano style paneli administracyjnych SMS, użytkowników i statystyk.
*/
/* PLIK: public/assets/css/app.css */

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    background: #f4f6f9;
    color: #1f2937;
    line-height: 1.5;
}

a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }

code {
    background: #eef2f7;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 13px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ============ Topbar ============ */
.topbar {
    background: #1e293b;
    color: #fff;
}
.topbar-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.topbar .logo {
    color: #fff;
    font-weight: 700;
    font-size: 18px;
}
.topbar-nav {
    display: flex;
    gap: 6px;
    flex: 1;
    flex-wrap: wrap;
}
.topbar-nav a {
    color: #cbd5e1;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
}
.topbar-nav a:hover {
    background: rgba(255,255,255,0.08);
    text-decoration: none;
    color: #fff;
}
.topbar-nav a.active {
    background: rgba(255,255,255,0.12);
    color: #fff;
}
.topbar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}
.topbar-user .user-email { color: #cbd5e1; }
.topbar-user .user-email:hover,
.topbar-user .user-email.active { color: #fff; text-decoration: none; }
.billing-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}
.billing-badge:hover {
    text-decoration: none;
}
.billing-badge-unpaid {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid rgba(245,158,11,0.55);
}
.billing-badge-unpaid:hover {
    background: #fde68a;
    color: #78350f;
}
.billing-badge-free {
    background: #e0f2fe;
    color: #075985;
    border: 1px solid rgba(14,165,233,0.45);
}
.billing-badge-free:hover {
    background: #bae6fd;
    color: #0c4a6e;
}
.billing-badge-paid {
    background: #dcfce7;
    color: #166534;
    border: 1px solid rgba(34,197,94,0.5);
}
.billing-badge-paid:hover {
    background: #bbf7d0;
    color: #14532d;
}
.btn-logout {
    background: #ef4444;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
}
.btn-logout:hover { background: #dc2626; text-decoration: none; color: #fff; }

/* ============ Container ============ */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 20px;
}

h1 { font-size: 24px; margin: 0 0 16px; }
h2 { font-size: 18px; margin: 0 0 12px; }
h3 { font-size: 15px; margin: 16px 0 8px; color: #475569; text-transform: uppercase; letter-spacing: 0.5px; }

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}

/* ============ Karty ============ */
.card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    margin-bottom: 16px;
}
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.card-header h2 { margin: 0; }

/* ============ Alerty ============ */
.alert {
    padding: 12px 14px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 14px;
}
.alert-error   { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-info    { background: #eff6ff; color: #1e3a8a; border: 1px solid #bfdbfe; }

.warning {
    background: #fef3c7;
    border-left: 3px solid #f59e0b;
    padding: 10px 14px;
    border-radius: 4px;
    color: #78350f;
    margin: 10px 0;
}

/* ============ Login ============ */
.page-login {
    background: #1e293b;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.login-box {
    background: #fff;
    padding: 32px 28px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 400px;
}
.login-box h1 {
    text-align: center;
    margin: 0 0 4px;
    color: #1e293b;
    font-size: 22px;
}
.login-box h2 {
    text-align: center;
    margin: 0 0 20px;
    color: #64748b;
    font-size: 14px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
}
.login-box label {
    display: block;
    margin-bottom: 14px;
}
.login-box label span {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    color: #475569;
}
.login-box input,
.login-box select,
.login-box textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
}
.login-box input:focus,
.login-box select:focus,
.login-box textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}
.login-box .is-invalid {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220,38,38,0.12) !important;
}
.field-error {
    min-height: 18px;
    margin-top: -8px;
    margin-bottom: 12px;
    color: #b91c1c;
    font-size: 13px;
}
.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.auth-box-wide {
    max-width: 480px;
}
.auth-note {
    color: #475569;
    font-size: 14px;
    margin: 0 0 16px;
    text-align: center;
}
.auth-links {
    color: #64748b;
    font-size: 13px;
    margin: 14px 0 0;
    text-align: center;
}
.turnstile-wrap {
    margin: 4px 0 16px;
    display: flex;
    justify-content: center;
}
.login-box .check-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 2px 0 16px;
    text-align: left;
}
.login-box .check-row input[type="checkbox"] {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    padding: 0;
}
.login-box .check-row span {
    flex: 1 1 auto;
    margin: 0;
    font-size: 15px;
    line-height: 1.45;
    color: #1e293b;
}
.login-box .otp-field {
    margin-bottom: 20px;
}
.login-box .otp-field span {
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
    text-transform: uppercase;
}
.login-box .otp-field input {
    background: #f8fafc;
    border-radius: 10px;
    color: #0f172a;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 0.42em;
    line-height: 1.1;
    padding: 14px 16px 14px 28px;
    text-align: center;
}
.login-box .otp-field input::placeholder {
    color: #cbd5e1;
    opacity: 1;
}

/* ============ Przyciski ============ */
.btn {
    display: inline-block;
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    text-align: center;
    text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: #2563eb; color: #fff; }
.btn-primary:hover { background: #1d4ed8; color: #fff; }
.btn-secondary { background: #e2e8f0; color: #1e293b; }
.btn-secondary:hover { background: #cbd5e1; color: #1e293b; }
.btn-danger { background: #ef4444; color: #fff; }
.btn[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
}
.btn-block {
    display: block;
    width: 100%;
}
.btn-danger:hover { background: #dc2626; color: #fff; }
.btn-inline { width: auto; padding: 8px 14px; }
.btn-full { width: 100%; }

.btn-link {
    color: #2563eb;
    padding: 4px 8px;
    font-size: 13px;
    border-radius: 4px;
    display: inline-block;
}
.btn-link:hover { background: #eff6ff; text-decoration: none; }
.btn-link.btn-danger {
    background: transparent;
    color: #dc2626;
}
.btn-link.btn-danger:hover { background: #fef2f2; color: #dc2626; }

.page-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.inline-form {
    display: inline;
    margin: 0;
}
.inline-form button {
    border: 0;
    background: transparent;
    font-family: inherit;
    cursor: pointer;
}

/* ============ Tabele danych ============ */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.data-table th {
    text-align: left;
    padding: 10px 12px;
    background: #f8fafc;
    color: #475569;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #e2e8f0;
}
.data-table td {
    padding: 12px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover { background: #fafbfc; }
.data-table .actions {
    white-space: nowrap;
}
.data-table .url-cell {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #64748b;
    font-size: 13px;
}
.data-table .msg-cell {
    max-width: 300px;
    color: #64748b;
    font-size: 13px;
}
.json-preview {
    max-width: 520px;
    max-height: 260px;
    overflow: auto;
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 6px;
    padding: 12px;
    font-size: 12px;
    line-height: 1.45;
}
.data-table .row-open { background: #fef2f2; }
.data-table .row-open:hover { background: #fee2e2; }

.monitor-mobile-service {
    display: none;
}
.service-mobile-domain {
    display: none;
}

/* ============ Badge statusy ============ */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
}
.badge-ok      { background: #dcfce7; color: #166534; }
.badge-warn    { background: #fef3c7; color: #92400e; }
.badge-down    { background: #fee2e2; color: #991b1b; }
.badge-paused  { background: #e2e8f0; color: #475569; }
.badge-unknown { background: #f1f5f9; color: #64748b; }
.badge-small {
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    line-height: 1.35;
    text-transform: uppercase;
    letter-spacing: 0;
}
.status-flow {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.type-badge {
    display: inline-block;
    padding: 2px 8px;
    background: #e0e7ff;
    color: #3730a3;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ============ Empty state ============ */
.empty-state {
    text-align: center;
    color: #64748b;
    padding: 40px 20px;
}
.empty-state p { margin: 0 0 16px; }

/* ============ Filter bar ============ */
.filter-bar {
    margin-bottom: 16px;
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    align-items: center;
}
.filter-tab {
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    color: #475569;
    font-size: 14px;
}
.filter-tab:hover { background: #f8fafc; text-decoration: none; }
.filter-tab.active { background: #1e293b; color: #fff; border-color: #1e293b; }

.filter-bar form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filter-bar form label { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.filter-bar input[type="text"],
.filter-bar select {
    padding: 5px 9px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
    background: #fff;
}
.filter-bar .btn-inline {
    padding: 7px 12px;
    font-size: 13px;
}
.sort-link {
    color: inherit;
    display: inline-block;
    text-decoration: none;
}
.sort-link:hover {
    color: #2563eb;
    text-decoration: none;
}
.sort-link.active {
    color: #1e293b;
}

.table-scroll {
    overflow-x: auto;
}

/* ============ Admin: blokady IP ============ */
.security-block-card {
    max-width: none;
}
.security-filter-bar {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.security-filter-bar input[type="text"] {
    min-width: 260px;
}
.security-table code {
    color: #0f172a;
    font-weight: 600;
}
.security-context-cell {
    max-width: 260px;
    overflow-wrap: anywhere;
    color: #64748b;
    font-size: 13px;
}
.security-time-left {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
}
.security-stat-date {
    font-size: 18px;
}
.security-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

/* ============ Formularze ============ */
.form-card {
    max-width: 800px;
}
.form-card label {
    display: block;
    margin-bottom: 14px;
}
.form-card label > span {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    color: #475569;
    font-weight: 500;
}
.form-card label .req { color: #dc2626; }
.form-card label .hint {
    display: block;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 400;
    margin-top: 4px;
}
.form-card input[type="text"],
.form-card input[type="email"],
.form-card input[type="password"],
.form-card input[type="number"],
.form-card textarea,
.form-card select {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
}
.form-card textarea { font-family: ui-monospace, monospace; }
.form-card input:focus,
.form-card textarea:focus,
.form-card select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}
.form-card label.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
}
.form-card label.checkbox input { width: auto; }
.form-card label.checkbox > span { margin: 0; font-weight: 400; color: #1f2937; }

.form-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.form-half  { flex: 1 1 calc(50% - 7px); min-width: 240px; }
.form-third { flex: 1 1 calc(33.333% - 10px); min-width: 180px; }

.form-section {
    border-top: 1px solid #e2e8f0;
    padding-top: 14px;
    margin-top: 14px;
}
.form-section:first-of-type {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}
.form-section h3 { margin-top: 0; }
details.form-section summary {
    cursor: pointer;
    color: #475569;
    font-size: 14px;
    padding: 6px 0;
    text-transform: none;
    letter-spacing: 0;
}
details.form-section[open] summary { margin-bottom: 10px; }

.form-actions {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.account-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
    align-items: start;
}
.account-plan-card .form-actions {
    margin-top: 14px;
}
.plan-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}
.plan-summary-grid > div {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 12px;
    background: #f8fafc;
}
.plan-summary-grid strong {
    display: block;
    margin-top: 4px;
    color: #1e293b;
}

.public-status-card {
    border: 1px solid #e2e8f0;
    box-shadow: 0 12px 28px rgba(15,23,42,0.06);
}
.public-status-head {
    align-items: flex-start;
    gap: 18px;
}
.public-status-head h2 {
    margin-bottom: 8px;
}
.public-status-intro {
    max-width: 860px;
    margin: 0;
    color: #64748b;
    font-size: 14px;
}
.status-feature-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}
.status-feature-pill-on {
    background: #dcfce7;
    color: #166534;
    border: 1px solid rgba(34,197,94,0.42);
}
.status-feature-pill-off {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}
.public-status-link-panel {
    margin-top: 18px;
    padding: 18px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(239,246,255,0.92) 0%, #ffffff 48%, rgba(240,253,244,0.78) 100%);
}
.public-status-link-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
}
.public-status-link-block {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 14px;
    border: 1px solid rgba(147,197,253,0.72);
    border-radius: 8px;
    background: rgba(255,255,255,0.78);
}
.public-status-api-block .public-status-link-label::after {
    content: "integracja";
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #e0f2fe;
    color: #075985;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.public-status-link-label {
    margin-bottom: 8px;
    color: #334155;
    font-size: 13px;
    font-weight: 800;
}
.public-status-link-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: stretch;
}
.public-status-url {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #93c5fd;
    border-radius: 6px;
    background: #fff;
    color: #0f172a;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 14px;
}
.public-status-url:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}
.public-status-copy {
    display: inline-flex;
    align-items: center;
    min-width: 132px;
    justify-content: center;
}
.public-status-hint {
    margin: 10px 0 0;
    color: #475569;
    font-size: 13px;
}
.public-status-copy-feedback {
    min-height: 18px;
    margin: 8px 0 0;
    color: #166534;
    font-size: 13px;
    font-weight: 700;
}
.public-status-actions {
    margin-top: 16px;
}
.subscription-reminder-box {
    display: grid;
    gap: 12px;
    margin-top: 18px;
    padding: 16px;
    border: 1px solid #c7d2fe;
    border-radius: 8px;
    background: #f8fafc;
}
.subscription-reminder-box h3 {
    margin: 0 0 6px;
    color: #0f172a;
    font-size: 16px;
}
.subscription-reminder-box .muted {
    margin: 0;
}
.subscription-reminder-days {
    display: grid;
    grid-template-columns: minmax(160px, 220px) minmax(80px, 120px);
    gap: 10px;
    align-items: center;
    max-width: 360px;
}
.subscription-reminder-days span {
    margin: 0;
}
.subscription-reminder-days input {
    text-align: center;
}

/* ============ Dashboard counters ============ */
.counters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}
.counter {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border-top: 4px solid #cbd5e1;
}
.counter-ok     { border-top-color: #16a34a; }
.counter-warn   { border-top-color: #f59e0b; }
.counter-down   { border-top-color: #ef4444; }
.counter-paused { border-top-color: #94a3b8; }
.counter-value {
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.1;
}
.counter-label {
    color: #64748b;
    font-size: 13px;
    margin-top: 4px;
}

/* ============ Statystyki uptime ============ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}
.stat-box {
    background: #fff;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.stat-label { font-size: 12px; color: #64748b; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-value { font-size: 24px; font-weight: 700; color: #1e293b; margin: 4px 0; }
.stat-meta  { font-size: 12px; color: #94a3b8; }

/* ============ Paginacja ============ */
.pagination {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: 14px;
}
.pag-info { color: #64748b; }

/* ============ Pomocnicze ============ */
.muted { color: #94a3b8; font-size: 13px; }
.small { font-size: 12px; }
#last-refresh { font-size: 13px; }

/* ============ Płatności ============ */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    align-items: stretch;
}
.pricing-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.pricing-card-featured {
    border-color: #2563eb;
    box-shadow: 0 12px 24px rgba(37,99,235,0.12);
}
.pricing-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.pricing-card h2 { margin: 0; }
.checkout-current-plan {
    margin: -6px 0 18px;
    padding: 18px 22px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: linear-gradient(135deg, #eff6ff 0%, #f8fbff 54%, #f0fdf4 100%);
    color: #1e3a8a;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    font-size: 14px;
    box-shadow: 0 12px 28px rgba(37,99,235,0.08);
}
.checkout-current-plan-main {
    display: grid;
    gap: 8px;
    min-width: 0;
}
.checkout-current-eyebrow {
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    line-height: 1.2;
    text-transform: uppercase;
}
.checkout-current-status {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.checkout-current-plan-badge,
.checkout-current-date-badge,
.checkout-current-days-badge {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    border-radius: 999px;
    line-height: 1.2;
    white-space: nowrap;
}
.checkout-current-plan-badge {
    padding: 8px 15px;
    background: #1d4ed8;
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(37,99,235,0.22);
}
.checkout-current-date-badge {
    padding: 8px 13px;
    border: 1px solid #93c5fd;
    background: rgba(255,255,255,0.82);
    color: #0f172a;
    font-size: 15px;
    font-weight: 800;
}
.checkout-current-days-badge {
    padding: 8px 12px;
    border: 1px solid #bbf7d0;
    background: #dcfce7;
    color: #166534;
    font-size: 14px;
    font-weight: 900;
}
.checkout-current-note {
    color: #0f172a;
    font-size: 14px;
}
.checkout-current-plan-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}
.checkout-current-sms {
    min-height: 38px;
    padding: 9px 14px;
    border: 1px solid rgba(37,99,235,0.20);
    border-radius: 999px;
    background: rgba(255,255,255,0.70);
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 15px;
    font-weight: 800;
}
.checkout-upgrade-link {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
}
.checkout-billing-switcher {
    width: fit-content;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 24px rgba(15,23,42,0.06);
}
.checkout-billing-label {
    color: #64748b;
    font-size: 14px;
    font-weight: 800;
}
.checkout-billing-switcher[data-billing="monthly"] .checkout-billing-label-monthly,
.checkout-billing-switcher[data-billing="yearly"] .checkout-billing-label-yearly {
    color: #0f172a;
}
.checkout-billing-toggle {
    position: relative;
    display: inline-flex;
    width: 62px;
    height: 34px;
    cursor: pointer;
}
.checkout-billing-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.checkout-billing-toggle-track {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #cbd5e1;
    transition: background .16s ease;
}
.checkout-billing-toggle-track::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(15,23,42,0.18);
    transition: transform .16s ease;
}
.checkout-billing-toggle input:checked + .checkout-billing-toggle-track {
    background: #2563eb;
}
.checkout-billing-toggle input:checked + .checkout-billing-toggle-track::after {
    transform: translateX(28px);
}
.checkout-saving-badge {
    padding: 4px 10px;
    border-radius: 999px;
    background: #dcfce7;
    color: #15803d;
    font-size: 13px;
    font-weight: 900;
}
.checkout-order-form {
    display: grid;
    gap: 18px;
}
.checkout-upgrade-area {
    scroll-margin-top: 18px;
    margin-top: 18px;
    display: grid;
    gap: 16px;
}
.checkout-upgrade-note {
    margin: 0;
    line-height: 1.55;
}
.checkout-upgrade-head {
    padding: 18px 20px;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    box-shadow: 0 8px 22px rgba(15,23,42,0.05);
}
.checkout-upgrade-head h2 {
    margin: 0 0 4px;
    color: #0f172a;
    font-size: 21px;
}
.checkout-upgrade-head p {
    margin: 0;
}
.checkout-step {
    padding: 22px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15,23,42,0.05);
}
.checkout-step-head {
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}
.checkout-step-head h2 {
    margin: 0 0 4px;
    color: #0f172a;
    font-size: 20px;
}
.checkout-step-head p {
    margin: 0;
}
.checkout-plan-option {
    position: relative;
    cursor: pointer;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease, transform .16s ease;
}
.checkout-plan-option:hover,
.checkout-plan-option:focus-within {
    border-color: #93c5fd;
    box-shadow: 0 12px 26px rgba(37,99,235,0.10);
    transform: translateY(-1px);
}
.checkout-plan-radio-line {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}
.checkout-plan-radio {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #2563eb;
}
.checkout-plan-name {
    color: #0f172a;
    font-size: 22px;
    font-weight: 900;
}
.checkout-plan-option-selected {
    border-color: #2563eb;
    border-width: 2px;
    background:
        radial-gradient(circle at 100% 0%, rgba(37,99,235,0.18), transparent 34%),
        linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
    box-shadow: 0 18px 36px rgba(37,99,235,0.20), inset 0 0 0 1px rgba(37,99,235,0.10);
}
.checkout-plan-option-selected .pricing-card-head {
    padding-right: 104px;
}
.checkout-plan-option-selected::after {
    content: "Wybrany";
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #2563eb;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}
.checkout-plan-option-selected .checkout-plan-name,
.checkout-plan-option-selected .pricing-price {
    color: #1d4ed8;
}
.checkout-price-view {
    display: grid;
}
.checkout-price-view-monthly { display: none; }
.checkout-order-form[data-billing="monthly"] .checkout-price-view-yearly { display: none; }
.checkout-order-form[data-billing="monthly"] .checkout-price-view-monthly { display: block; }
.checkout-price-note {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 13px;
}
.checkout-payable-line {
    margin: 8px 0 0;
    color: #334155;
    font-size: 15px;
    font-weight: 700;
}
.checkout-payable-line strong {
    color: #0f172a;
    font-size: 17px;
    font-weight: 900;
}
.checkout-saving-line {
    margin: 8px 0 0;
    color: #15803d;
    font-size: 13px;
    font-weight: 800;
}
.checkout-renewal-line {
    margin: 8px 0 0;
    color: #1d4ed8;
    font-size: 13px;
    font-weight: 800;
}
.checkout-sms-packages {
    padding: 24px;
}
.checkout-sms-advice {
    margin: 0 0 16px;
    padding: 14px 16px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #eff6ff;
    color: #1e3a8a;
    display: grid;
    gap: 4px;
}
.checkout-sms-advice[hidden] {
    display: none;
}
.checkout-sms-advice strong {
    color: #0f172a;
    font-size: 15px;
}
.checkout-sms-advice span {
    font-size: 13px;
    line-height: 1.45;
}
.checkout-sms-options {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.checkout-sms-option {
    min-width: 0;
    display: block;
    cursor: pointer;
}
.checkout-sms-option-body {
    min-width: 0;
    min-height: 126px;
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    padding: 16px;
    background:
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    display: grid;
    gap: 12px;
    align-content: space-between;
    box-shadow: 0 8px 18px rgba(15,23,42,0.04);
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease, transform .16s ease;
}
.checkout-sms-option:hover .checkout-sms-option-body,
.checkout-sms-option:focus-within .checkout-sms-option-body {
    border-color: #93c5fd;
    box-shadow: 0 12px 26px rgba(37,99,235,0.10);
    transform: translateY(-1px);
}
.checkout-sms-option-selected .checkout-sms-option-body,
.checkout-sms-option:has(.checkout-sms-radio:checked) .checkout-sms-option-body {
    border-color: #2563eb;
    background:
        radial-gradient(circle at 100% 0%, rgba(37,99,235,0.14), transparent 34%),
        linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
    box-shadow: 0 16px 32px rgba(37,99,235,0.16);
}
.checkout-sms-option-top {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}
.checkout-sms-radio {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #2563eb;
}
.checkout-sms-option-name {
    color: #334155;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.checkout-sms-option-main {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: baseline;
}
.checkout-sms-option-main strong {
    color: #0f172a;
    font-size: 28px;
    line-height: 1.1;
}
.checkout-sms-option-main span {
    color: #1d4ed8;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}
.checkout-sms-option small {
    color: #64748b;
    font-size: 12px;
}
.checkout-sms-consents {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
}
.checkout-main-submit {
    width: fit-content;
    min-width: 180px;
    min-height: 52px;
    padding: 0 32px;
    font-size: 17px;
    font-weight: 900;
    justify-self: end;
}
.checkout-order-summary {
    display: grid;
    gap: 14px;
}
.checkout-summary-card {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}
.checkout-summary-row {
    display: grid;
    grid-template-columns: minmax(100px, 0.45fr) minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 13px 16px;
    border-bottom: 1px solid #edf2f7;
}
.checkout-summary-row:last-child {
    border-bottom: 0;
}
.checkout-summary-row span {
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
}
.checkout-summary-row strong {
    color: #0f172a;
    font-size: 15px;
    text-align: right;
}
.checkout-summary-row-total {
    background: #f8fafc;
}
.checkout-summary-row-total span {
    color: #0f172a;
}
.checkout-summary-row-total strong {
    color: #1d4ed8;
    font-size: 26px;
    line-height: 1;
}
.checkout-promo {
    display: grid;
    gap: 8px;
}
.checkout-promo label {
    color: #334155;
    font-size: 13px;
    font-weight: 900;
}
.checkout-promo-control {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 40px;
    gap: 8px;
}
.checkout-promo-control input {
    width: 100%;
    height: 42px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0 12px;
    color: #0f172a;
    font-size: 14px;
    font-weight: 700;
}
.checkout-promo-control input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.14);
    outline: none;
}
.checkout-promo-clear {
    width: 40px;
    height: 42px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: #64748b;
    font-weight: 900;
    cursor: pointer;
}
.checkout-promo-clear:hover,
.checkout-promo-clear:focus-visible {
    border-color: #ef4444;
    color: #b91c1c;
    outline: none;
}
.checkout-promo-status {
    min-height: 16px;
    color: #15803d;
    font-size: 12px;
    font-weight: 800;
}
.checkout-sms-only {
    margin-top: 0;
}
.checkout-sms-only-form {
    display: grid;
    gap: 16px;
}
.checkout-sms-only-submit {
    justify-self: end;
}
.checkout-payment-banner {
    margin-top: 18px;
    padding: 30px;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background:
        radial-gradient(circle at 10% 0%, rgba(34,197,94,0.12), transparent 34%),
        radial-gradient(circle at 92% 100%, rgba(37,99,235,0.12), transparent 36%),
        linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    gap: 28px;
    align-items: center;
}
.checkout-payment-eyebrow {
    width: fit-content;
    margin-bottom: 20px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    display: inline-flex;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.checkout-payment-banner h2 {
    margin: 0 0 10px;
    color: #0f172a;
    font-size: clamp(22px, 2.5vw, 30px);
    line-height: 1.18;
}
.checkout-payment-banner p {
    max-width: 650px;
    color: #475569;
}
.checkout-payment-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}
.checkout-payment-logo-box,
.checkout-payment-method {
    background: rgba(255,255,255,0.88);
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 26px rgba(15,23,42,0.06);
}
.checkout-payment-logo-box {
    min-width: 124px;
    height: 50px;
    padding: 0 16px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.checkout-payment-logo-box img {
    max-height: 25px;
    width: auto;
}
.checkout-payment-methods-title {
    margin: 0 0 12px;
    color: #0f172a;
    font-size: 14px;
    font-weight: 800;
}
.checkout-payment-method-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}
.checkout-payment-method {
    position: relative;
    height: 62px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease;
}
.checkout-payment-method:hover,
.checkout-payment-method:focus-visible {
    transform: translateY(-2px);
    background: #fff;
    box-shadow: 0 16px 34px rgba(15,23,42,0.10);
    outline: none;
}
.checkout-payment-method::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%) translateY(5px);
    padding: 7px 9px;
    border-radius: 999px;
    background: rgba(15,23,42,0.92);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .16s ease, transform .16s ease;
    box-shadow: 0 10px 24px rgba(15,23,42,0.18);
}
.checkout-payment-method:hover::after,
.checkout-payment-method:focus-visible::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.checkout-payment-method img {
    max-height: 28px;
    max-width: 74px;
    width: auto;
}
.checkout-payment-note {
    margin: 14px 0 0;
    color: #64748b;
    font-size: 13px;
}
.plan-feature-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 7px;
    color: #334155;
    font-size: 13px;
}
.plan-feature-list li,
.plan-feature-list > span {
    position: relative;
    padding-left: 18px;
}
.plan-feature-list li::before,
.plan-feature-list > span::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
}
.plan-feature-list-compact {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin-top: 8px;
}
.billing-choice {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.billing-choice label {
    display: block;
}
.billing-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.billing-choice span {
    display: block;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 10px 8px;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
}
.billing-choice input:checked + span {
    border-color: #2563eb;
    background: #eff6ff;
    color: #1d4ed8;
}
.pricing-price {
    color: #1e293b;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.1;
}
.pricing-price span {
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
}
.compact-field span {
    display: block;
    color: #475569;
    font-size: 13px;
    margin-bottom: 4px;
}
.compact-field input {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
}
.check-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #475569;
    font-size: 13px;
}
.check-row input {
    margin-top: 3px;
    flex: 0 0 auto;
}
.monitor-rights-panel {
    margin-top: 22px;
    padding: 18px;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    background:
        linear-gradient(135deg, #fffbeb 0%, #ffffff 72%);
    box-shadow: 0 12px 26px rgba(245,158,11,0.10);
}
.monitor-rights-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    margin-bottom: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #fef3c7;
    color: #92400e;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.monitor-rights-check {
    color: #1f2937;
    font-size: 14px;
    font-weight: 600;
}
.monitor-rights-check input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #2563eb;
}
.monitor-rights-note {
    margin: 10px 0 0 26px;
    color: #92400e;
    font-size: 13px;
    font-weight: 700;
}
.payment-status-card {
    max-width: 460px;
    margin: 50px auto;
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 12px 28px rgba(15,23,42,0.12);
}
.payment-icon {
    width: 72px;
    height: 72px;
    border-radius: 999px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 800;
}
.payment-icon-success { background: #dcfce7; color: #166534; }
.payment-icon-error { background: #fee2e2; color: #991b1b; }
.payment-icon-processing { background: #dbeafe; color: #1d4ed8; }
.finance-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 16px;
    align-items: start;
}
.finance-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ============ Footer ============ */
.footer {
    margin-top: 40px;
    padding: 20px;
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
}
.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}
.footer-links {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
.footer-links a {
    color: #64748b;
}

/* ============ Strony prawne ============ */
.legal-page {
    background: #f8fafc;
    color: #0f172a;
}
.legal-topbar {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
}
.legal-topbar-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.legal-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #0f172a;
    font-size: 18px;
    font-weight: 800;
}
.legal-brand:hover {
    text-decoration: none;
}
.legal-brand-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34,197,94,0.18);
}
.legal-nav,
.legal-footer nav {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 14px;
}
.legal-shell {
    max-width: 980px;
    margin: 0 auto;
    padding: 34px 20px 48px;
}
.legal-document {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(15,23,42,0.06);
    padding: 34px;
}
.legal-hero {
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 22px;
    margin-bottom: 24px;
}
.legal-eyebrow {
    margin: 0 0 8px;
    color: #2563eb;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.legal-hero h1 {
    margin: 0 0 10px;
    font-size: 32px;
    line-height: 1.15;
}
.legal-hero p {
    max-width: 760px;
    margin: 0 0 12px;
    color: #475569;
    font-size: 16px;
}
.legal-meta {
    color: #64748b;
    font-size: 13px;
}
.legal-toc {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 28px;
}
.legal-toc a {
    font-size: 13px;
    font-weight: 600;
}
.legal-section {
    padding-top: 18px;
    margin-top: 18px;
    border-top: 1px solid #eef2f7;
}
.legal-section:first-of-type {
    border-top: 0;
}
.legal-section h2 {
    color: #0f172a;
    font-size: 20px;
    margin-bottom: 10px;
}
.legal-section p,
.legal-section li {
    color: #334155;
    font-size: 15px;
}
.legal-section ul {
    padding-left: 22px;
}
.legal-section li {
    margin-bottom: 7px;
}
.legal-table-wrap {
    overflow-x: auto;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}
.legal-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 680px;
    font-size: 14px;
}
.legal-table th,
.legal-table td {
    padding: 12px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
    vertical-align: top;
}
.legal-table th {
    background: #f8fafc;
    color: #475569;
    font-size: 12px;
    text-transform: uppercase;
}
.legal-table tr:last-child td {
    border-bottom: 0;
}
.legal-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    border-top: 1px solid #e2e8f0;
    margin-top: 28px;
    padding-top: 22px;
}
.legal-footer {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 20px 34px;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    color: #64748b;
    font-size: 13px;
}

.status-page {
    min-height: 100vh;
    background:
        linear-gradient(180deg, #eef4f7 0%, #f8fafc 38%, #ffffff 100%);
    color: #0f172a;
}
.status-public {
    max-width: 1120px;
    margin: 0 auto;
    padding: 28px 20px 56px;
}
.status-public-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}
.status-public-logo {
    color: #0f172a;
    font-size: 20px;
    font-weight: 900;
    text-decoration: none;
}
.status-public-logo:hover {
    color: #2563eb;
    text-decoration: none;
}
.status-private-pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 12px;
    border: 1px solid #dbe4f0;
    border-radius: 999px;
    background: rgba(255,255,255,0.78);
    color: #475569;
    font-size: 13px;
    font-weight: 700;
}
.status-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 230px;
    align-items: center;
    gap: 28px;
    margin-bottom: 18px;
    padding: 34px;
    border: 1px solid #dbe4f0;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(15,23,42,0.08);
}
.status-hero-ok {
    border-color: rgba(34,197,94,0.36);
    background:
        linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
}
.status-hero-warn {
    border-color: rgba(245,158,11,0.42);
    background:
        linear-gradient(135deg, #ffffff 0%, #fffbeb 100%);
}
.status-hero-down {
    border-color: rgba(239,68,68,0.38);
    background:
        linear-gradient(135deg, #ffffff 0%, #fef2f2 100%);
}
.status-hero-empty {
    background:
        linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}
.status-eyebrow {
    margin: 0 0 10px;
    color: #2563eb;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.status-hero h1 {
    max-width: 720px;
    margin: 0;
    color: #0f172a;
    font-size: 36px;
    line-height: 1.12;
}
.status-hero-copy {
    max-width: 760px;
    margin: 14px 0 0;
    color: #475569;
    font-size: 15px;
}
.status-refresh-line {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 14px;
}
.status-refresh-line span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.74);
    color: #475569;
    font-size: 12px;
    font-weight: 800;
}
.status-overview-panel {
    min-height: 176px;
    padding: 20px;
    border: 1px solid rgba(148,163,184,0.28);
    border-radius: 10px;
    background: rgba(255,255,255,0.78);
    display: grid;
    align-content: center;
    justify-items: start;
    gap: 8px;
}
.status-overview-number {
    color: #0f172a;
    font-size: 48px;
    line-height: 1;
    font-weight: 900;
}
.status-overview-caption {
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}
.status-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}
.status-summary-tile {
    padding: 18px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: rgba(255,255,255,0.9);
    box-shadow: 0 10px 24px rgba(15,23,42,0.05);
}
.status-summary-tile span {
    display: block;
    margin-bottom: 8px;
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.status-summary-tile strong {
    color: #0f172a;
    font-size: 30px;
    line-height: 1;
}
.status-incident-panel,
.status-history-panel {
    margin-top: 18px;
    padding: 22px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15,23,42,0.06);
}
.status-section-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 14px;
}
.status-section-header h2 {
    margin: 0;
    color: #0f172a;
    font-size: 19px;
}
.status-section-header p {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 13px;
}
.status-quiet-state {
    padding: 14px 16px;
    border: 1px solid #dcfce7;
    border-radius: 10px;
    background: #f0fdf4;
    color: #166534;
    font-size: 14px;
    font-weight: 800;
}
.status-event-list {
    display: grid;
    gap: 10px;
}
.status-event-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 14px 16px;
    border: 1px solid #eef2f7;
    border-radius: 10px;
    background: #fbfdff;
}
.status-event-open {
    border-color: #fecaca;
    background: #fff7f7;
}
.status-event-row strong,
.status-event-row span {
    display: block;
}
.status-event-row strong {
    color: #0f172a;
    font-size: 14px;
}
.status-event-row span {
    margin-top: 3px;
    color: #64748b;
    font-size: 13px;
}
.status-event-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}
.status-event-meta > span:not(.status-public-badge) {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    margin-top: 0;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f8fafc;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}
.status-service-card {
    margin-top: 18px;
    padding: 22px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15,23,42,0.06);
}
.status-service-ok {
    border-left: 4px solid #22c55e;
}
.status-service-warn {
    border-left: 4px solid #f59e0b;
}
.status-service-down {
    border-left: 4px solid #ef4444;
}
.status-service-empty {
    border-left: 4px solid #94a3b8;
}
.status-service-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}
.status-service-card h2 {
    margin: 0;
    color: #0f172a;
    font-size: 20px;
}
.status-service-domain {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 14px;
}
.status-service-meta,
.status-monitor-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}
.status-public-badge,
.status-env-pill,
.status-type-pill,
.status-uptime-pill,
.status-last-check {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}
.status-public-badge-ok {
    background: #dcfce7;
    color: #166534;
}
.status-public-badge-warn {
    background: #fef3c7;
    color: #92400e;
}
.status-public-badge-down {
    background: #fee2e2;
    color: #991b1b;
}
.status-public-badge-paused,
.status-public-badge-unknown,
.status-public-badge-empty {
    background: #f1f5f9;
    color: #475569;
}
.status-env-pill {
    background: #eef2ff;
    color: #3730a3;
}
.status-type-pill {
    background: #eff6ff;
    color: #1d4ed8;
}
.status-uptime-pill {
    background: #f0fdf4;
    color: #166534;
}
.status-last-check {
    background: #f8fafc;
    color: #64748b;
}
.status-monitor-list {
    display: grid;
    gap: 10px;
}
.status-monitor-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, auto);
    gap: 16px;
    align-items: center;
    padding: 14px 16px;
    border: 1px solid #eef2f7;
    border-radius: 10px;
    background: #fbfdff;
}
.status-monitor-main {
    min-width: 0;
}
.status-monitor-main strong,
.status-monitor-main span {
    display: block;
}
.status-monitor-main strong {
    color: #0f172a;
    font-size: 15px;
}
.status-monitor-main span {
    max-width: 100%;
    margin-top: 3px;
    overflow: hidden;
    color: #64748b;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.status-empty-state {
    max-width: 760px;
    margin: 70px auto 0;
    padding: 38px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    text-align: center;
    box-shadow: 0 18px 42px rgba(15,23,42,0.08);
}
.status-empty-state-compact {
    margin-top: 18px;
}
.status-empty-state h1,
.status-empty-state h2 {
    margin: 14px 0 8px;
    color: #0f172a;
}
.status-empty-state p {
    margin: 0;
    color: #64748b;
}
.status-public-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 22px;
    padding: 18px 2px 0;
    color: #64748b;
    font-size: 13px;
}

/* ============ Mobile ============ */
@media (max-width: 768px) {
    .topbar-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .topbar-nav { width: 100%; }
    .topbar-user {
        width: 100%;
        justify-content: space-between;
    }
    .container { padding: 16px 12px; }
    h1 { font-size: 20px; }
    .data-table { font-size: 13px; }
    .data-table th, .data-table td { padding: 8px 6px; }
    .data-table .url-cell, .data-table .msg-cell { max-width: 150px; }
    .form-half, .form-third { flex: 1 1 100%; }
    .finance-grid { grid-template-columns: 1fr; }
    .billing-choice { grid-template-columns: 1fr; }
    .public-status-head { flex-direction: column; }
    .public-status-link-grid { grid-template-columns: 1fr; }
    .public-status-link-row { grid-template-columns: 1fr; }
    .public-status-copy { width: 100%; }
    .subscription-reminder-days { grid-template-columns: 1fr; }
    .subscription-reminder-days input { text-align: left; }
    .checkout-current-plan,
    .checkout-upgrade-head {
        align-items: stretch;
        flex-direction: column;
    }
    .checkout-current-plan-actions {
        justify-content: flex-start;
    }
    .checkout-current-plan-badge {
        font-size: 16px;
    }
    .checkout-current-date-badge,
    .checkout-current-sms {
        white-space: normal;
    }
    .checkout-sms-packages { padding: 18px; }
    .checkout-step { padding: 18px; }
    .checkout-step-head { flex-direction: column; }
    .checkout-sms-options { grid-template-columns: 1fr; }
    .checkout-sms-option-body { min-height: 0; }
    .checkout-total { font-size: 24px; }
    .checkout-summary-row {
        grid-template-columns: 1fr;
        gap: 5px;
    }
    .checkout-summary-row strong {
        text-align: left;
    }
    .checkout-promo-control {
        grid-template-columns: minmax(0, 1fr) auto;
    }
    .checkout-promo-clear {
        grid-column: 2;
    }
    .checkout-main-submit {
        width: 100%;
        justify-self: stretch;
    }
    .checkout-payment-banner {
        grid-template-columns: 1fr;
        padding: 24px;
    }
    .checkout-payment-method-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .legal-document { padding: 22px; }
    .legal-hero h1 { font-size: 25px; }
    .legal-toc { grid-template-columns: 1fr; }
    .legal-footer { flex-direction: column; }
    .status-public { padding: 18px 12px 34px; }
    .status-public-header { align-items: flex-start; flex-direction: column; }
    .status-hero {
        grid-template-columns: 1fr;
        padding: 24px;
    }
    .status-hero h1 { font-size: 27px; }
    .status-overview-panel { min-height: 0; }
    .status-summary-grid { grid-template-columns: 1fr; }
    .status-service-header { flex-direction: column; }
    .status-service-meta,
    .status-monitor-meta,
    .status-event-meta { justify-content: flex-start; }
    .status-monitor-row { grid-template-columns: 1fr; }
    .status-event-row { grid-template-columns: 1fr; }
    .status-section-header { flex-direction: column; }
    .status-empty-state { margin-top: 28px; padding: 26px; }
    .status-public-footer { flex-direction: column; }
    .counter-value { font-size: 26px; }
    .page-header { flex-direction: column; align-items: flex-start; }
    .page-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
    }
    .page-actions .btn { width: 100%; }
    .monitors-filter {
        padding: 12px;
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
    }
    .monitors-filter form,
    .monitors-filter form label,
    .monitors-filter select {
        width: 100%;
    }
    .monitors-filter form label {
        align-items: stretch;
        flex-direction: column;
    }
    .monitors-list-card {
        padding: 0;
        background: transparent;
        border: 0;
        box-shadow: none;
    }
    .monitors-table,
    .monitors-table tbody,
    .monitors-table tr,
    .monitors-table td {
        display: block;
        width: 100%;
    }
    .monitors-table thead {
        display: none;
    }
    .monitors-table {
        border-collapse: separate;
        border-spacing: 0;
        font-size: 14px;
    }
    .monitors-table tr {
        margin-bottom: 12px;
        padding: 12px;
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    }
    .monitors-table tr:hover {
        background: #fff;
    }
    .monitors-table td {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12px;
        padding: 9px 0;
        border-bottom: 1px solid #f1f5f9;
        text-align: right;
    }
    .monitors-table td::before {
        content: attr(data-label);
        flex: 0 0 42%;
        max-width: 42%;
        color: #64748b;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.04em;
        line-height: 1.5;
        text-align: left;
        text-transform: uppercase;
    }
    .monitors-table td:last-child {
        border-bottom: 0;
    }
    .monitors-table .monitor-name-cell {
        display: block;
        padding-top: 0;
        text-align: left;
    }
    .monitors-table .monitor-name-cell::before {
        display: none;
    }
    .monitor-name-cell strong {
        display: block;
        color: #0f172a;
        font-size: 16px;
        line-height: 1.3;
    }
    .monitor-mobile-service {
        display: block;
        margin-top: 3px;
        color: #64748b;
        font-size: 13px;
    }
    .monitors-table .monitor-service-cell {
        display: none;
    }
    .monitors-table .url-cell {
        max-width: none;
        overflow: visible;
        color: #334155;
        font-size: 13px;
        overflow-wrap: anywhere;
        text-overflow: clip;
        white-space: normal;
    }
    .monitors-table td:not(.monitor-name-cell):not(.monitor-actions) {
        color: #0f172a;
        font-size: 14px;
    }
    .monitors-table .monitor-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        padding-bottom: 0;
    }
    .monitors-table .monitor-actions::before {
        display: none;
    }
    .monitor-actions .btn-link {
        padding: 8px 10px;
        border: 1px solid #e2e8f0;
        border-radius: 6px;
        background: #f8fafc;
        color: #1d4ed8;
        text-align: center;
    }
    .monitor-actions .btn-link.btn-danger {
        border-color: #fecaca;
        background: #fff7f7;
        color: #dc2626;
    }
    .services-list-card {
        padding: 0;
        background: transparent;
        border: 0;
        box-shadow: none;
    }
    .services-table,
    .services-table tbody,
    .services-table tr,
    .services-table td {
        display: block;
        width: 100%;
    }
    .services-table thead {
        display: none;
    }
    .services-table {
        border-collapse: separate;
        border-spacing: 0;
        font-size: 14px;
    }
    .services-table tr {
        margin-bottom: 12px;
        padding: 12px;
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    }
    .services-table tr:hover {
        background: #fff;
    }
    .services-table td {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12px;
        padding: 9px 0;
        border-bottom: 1px solid #f1f5f9;
        text-align: right;
    }
    .services-table td::before {
        content: attr(data-label);
        flex: 0 0 42%;
        max-width: 42%;
        color: #64748b;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.04em;
        line-height: 1.5;
        text-align: left;
        text-transform: uppercase;
    }
    .services-table td:last-child {
        border-bottom: 0;
    }
    .services-table .service-name-cell {
        display: block;
        padding-top: 0;
        text-align: left;
    }
    .services-table .service-name-cell::before {
        display: none;
    }
    .service-name-cell strong {
        display: block;
        color: #0f172a;
        font-size: 16px;
        line-height: 1.3;
    }
    .service-mobile-domain {
        display: block;
        margin-top: 3px;
        color: #64748b;
        font-size: 13px;
        overflow-wrap: anywhere;
    }
    .services-table .service-domain-cell {
        display: none;
    }
    .services-table td:not(.service-name-cell):not(.service-actions) {
        color: #0f172a;
        font-size: 14px;
    }
    .services-table .service-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        padding-bottom: 0;
    }
    .services-table .service-actions::before {
        display: none;
    }
    .service-actions .btn-link {
        padding: 8px 10px;
        border: 1px solid #e2e8f0;
        border-radius: 6px;
        background: #f8fafc;
        color: #1d4ed8;
        text-align: center;
    }
    .service-actions .service-primary-action {
        grid-column: 1 / -1;
        background: #eff6ff;
        border-color: #bfdbfe;
        font-weight: 700;
    }
    .service-actions .btn-link.btn-danger {
        border-color: #fecaca;
        background: #fff7f7;
        color: #dc2626;
    }
}
