/* =========================================================
   KLAPS 01 — ROOT / RESET / BAZA
   ========================================================= */

:root {
    --tf-bg: #f5f6f8;
    --tf-white: #ffffff;
    --tf-text: #23222b;
    --tf-muted: #7b7b87;
    --tf-border: #ece8e2;
    --tf-gold: #efc44f;
    --tf-gold-dark: #e0b02f;
    --tf-gold-soft: #f8edc7;
    --tf-sidebar: #f7f7f9;
    --tf-shadow: 0 12px 34px rgba(22, 22, 26, 0.08);
    --tf-radius: 24px;
    --tf-green: #dff5e6;
    --tf-green-text: #1d6b35;
    --tf-red: #fde2e2;
    --tf-red-text: #9d2323;
    --tf-blue-soft: #e6f0ff;
    --tf-blue-text: #244d9b;
    --tf-orange-soft: #fff0dd;
    --tf-orange-text: #9f5b00;
    --tf-gray-soft: #efeff4;
    --tf-gray-text: #565465;
}

* {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: var(--tf-bg);
    color: var(--tf-text);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

.tf-page-wrap,
.tf-panel-page {
    min-height: 100vh;
}

.tf-simple-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

.tf-content-card {
    background: #fff;
    border-radius: 24px;
    box-shadow: var(--tf-shadow);
    padding: 30px;
}

.tf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 14px;
    font-weight: 700;
    transition: 0.2s ease;
    border: 0;
    cursor: pointer;
}

.tf-btn-primary {
    background: linear-gradient(180deg, #f5cc5a 0%, #e9b93d 100%);
    color: #222;
    box-shadow: 0 8px 18px rgba(233, 185, 61, 0.25);
}

.tf-btn-primary:hover {
    transform: translateY(-1px);
}

.tf-btn-secondary {
    background: #fff;
    border: 1px solid var(--tf-border);
    color: #222;
}

.tf-btn-small {
    min-height: 40px;
    padding: 0 16px;
    font-size: 14px;
}

.tf-auth-box {
    max-width: 560px;
    margin: 80px auto;
    background: #fff;
    border-radius: 24px;
    box-shadow: var(--tf-shadow);
    padding: 40px;
    text-align: center;
}

/* =========================================================
   KLAPS 02 — UKŁAD PANELU / SIDEBAR / TOPBAR
   ========================================================= */

.tf-app-shell {
    display: flex;
    min-height: 100vh;
}

.tf-sidebar {
    width: 280px;
    background: var(--tf-sidebar);
    border-right: 1px solid #ebeaf0;
    padding: 28px 20px;
    position: sticky;
    top: 0;
    height: 100vh;
}

.tf-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 34px;
    color: #23222b;
    text-decoration: none;
    cursor: pointer;
}

.tf-logo:hover {
    opacity: 0.92;
}

.tf-logo-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    font-size: 0;
    line-height: 1;
}

.tf-logo-icon img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    display: block;
    max-width: none;
}

.tf-logo-text {
    font-size: 17px;
    line-height: 1.2;
}

.tf-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tf-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 0 16px;
    border-radius: 16px;
    color: #2d2c35;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.tf-nav-item:hover {
    background: #efeff4;
}

.tf-nav-item.active {
    background: linear-gradient(180deg, #f1cc64 0%, #e8bc4b 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.4);
}

.tf-nav-icon {
    font-size: 20px;
}

.tf-main {
    flex: 1;
    min-width: 0;
    padding: 28px;
}

.tf-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 26px;
}

.tf-topbar-left {
    min-width: 0;
}

.tf-topbar-left h1 {
    margin: 0 0 6px;
    font-size: 34px;
    font-weight: 800;
}

.tf-topbar-left p {
    margin: 0;
    color: var(--tf-muted);
    font-size: 15px;
}

.tf-topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.tf-user-box {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid var(--tf-border);
    border-radius: 18px;
    padding: 10px 14px;
    box-shadow: var(--tf-shadow);
}

.tf-user-greeting {
    font-weight: 700;
}

.tf-user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff8e7;
    border: 1px solid #eadfb4;
    flex: 0 0 34px;
    font-size: 0;
    line-height: 1;
}

.tf-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* =========================================================
   KLAPS 03 — STATUS PRO / STATYSTYKI / DASHBOARD
   ========================================================= */

.tf-pro-status-badge {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    min-height: 58px;
    padding: 10px 16px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #dfe9df;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
    white-space: nowrap;
}

.tf-pro-status-line {
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1;
}

.tf-pro-status-label {
    font-size: 13px;
    font-weight: 700;
    color: #2d2c35;
}

.tf-pro-status-pro {
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 0.08em;
    color: #39ff88;
    text-shadow:
        0 0 4px rgba(57, 255, 136, 0.55),
        0 0 10px rgba(57, 255, 136, 0.30);
}

.tf-pro-status-date {
    font-size: 12px;
    font-weight: 600;
    color: #5f6370;
}

.tf-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 22px;
}

.tf-stat-card {
    background: #fff;
    border-radius: 22px;
    padding: 24px;
    box-shadow: var(--tf-shadow);
}

.tf-stat-title {
    color: var(--tf-muted);
    font-weight: 600;
    margin-bottom: 10px;
}

.tf-stat-number {
    font-size: 40px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 10px;
}

.tf-stat-desc {
    color: var(--tf-muted);
    font-size: 14px;
}

.tf-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 20px;
}

.tf-card {
    background: #fff;
    border-radius: 26px;
    box-shadow: var(--tf-shadow);
    overflow: hidden;
}

.tf-card-large {
    grid-column: 1 / 2;
}

.tf-card-header {
    padding: 24px 24px 0;
}

.tf-card-header h2 {
    margin: 0;
    font-size: 25px;
    font-weight: 800;
}

.tf-card-body {
    padding: 20px 24px 24px;
}

.tf-card-body p {
    color: var(--tf-muted);
    line-height: 1.6;
}

.tf-mini-alert {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: #fff7de;
    border: 1px solid #f0e1a8;
    border-radius: 18px;
    padding: 16px;
    margin: 18px 0 18px;
}

.tf-mini-alert-icon {
    font-size: 26px;
}

.tf-task-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #f0eef2;
}

.tf-task-item:last-of-type {
    border-bottom: 0;
}

.tf-task-item strong {
    display: block;
    margin-bottom: 4px;
}

.tf-task-item p {
    margin: 0;
}

.tf-task-item span {
    color: var(--tf-muted);
    white-space: nowrap;
    font-size: 14px;
    font-weight: 600;
}

.tf-link-more {
    display: inline-block;
    margin-top: 16px;
    font-weight: 700;
    color: #282833;
}

.tf-quick-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.tf-quick-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    text-align: center;
    border: 1px solid var(--tf-border);
    background: #fafafa;
    border-radius: 16px;
    color: #222;
    font-weight: 700;
}

.tf-feature-list {
    margin: 0 0 20px;
    padding-left: 18px;
    color: var(--tf-muted);
    line-height: 1.9;
}

.tf-section-block {
    margin-top: 20px;
}

/* =========================================================
   KLAPS 04 — FORMULARZE / TABELE / STATUSY
   ========================================================= */

.tf-panel-form,
.tf-form {
    width: 100%;
}

.tf-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.tf-form-grid-single {
    grid-template-columns: 1fr;
}

.tf-field,
.tf-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.tf-field-full,
.tf-form-group-full {
    grid-column: 1 / -1;
}

.tf-field label,
.tf-form-group label {
    font-weight: 700;
    font-size: 14px;
    color: #23222b;
}

.tf-field input,
.tf-field select,
.tf-field textarea,
.tf-form-group input,
.tf-form-group textarea,
.tf-form-group select {
    width: 100%;
    min-height: 48px;
    border: 1px solid #d9d4cb;
    border-radius: 14px;
    padding: 12px 14px;
    background: #fff;
    color: #23222b;
    font-size: 15px;
    line-height: 1.5;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-sizing: border-box;
}

.tf-field input:hover,
.tf-field select:hover,
.tf-field textarea:hover,
.tf-form-group input:hover,
.tf-form-group select:hover,
.tf-form-group textarea:hover {
    border-color: #b8b1c2;
}

.tf-field input:focus,
.tf-field select:focus,
.tf-field textarea:focus,
.tf-form-group input:focus,
.tf-form-group textarea:focus,
.tf-form-group select:focus {
    outline: none;
    border-color: #111111;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
    background: #fff;
}

.tf-field textarea,
.tf-form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.tf-form-group input::placeholder,
.tf-form-group textarea::placeholder {
    color: #8a8791;
}

.tf-form-group input[readonly] {
    background: #f7f7f9;
    color: #5d5a63;
    cursor: default;
}

.tf-inline-field-group {
    display: flex;
    gap: 10px;
    align-items: stretch;
    flex-wrap: wrap;
}

.tf-inline-field-group input {
    flex: 1 1 280px;
}

.tf-inline-field-group .tf-btn {
    flex: 0 0 auto;
    min-height: 48px;
    white-space: nowrap;
}

.tf-form-note {
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #f7f7f9;
    border: 1px solid #ece8e2;
    color: #5d5a63;
    font-size: 14px;
    line-height: 1.6;
}

.tf-form-message {
    display: none;
    margin-top: 18px;
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    scroll-margin-top: 110px;
}

.tf-form-message.is-success {
    display: block;
    background: #eef8f0;
    border: 1px solid #bfe1c5;
    color: #1f6b2d;
}

.tf-form-message.is-error {
    display: block;
    background: #fff0f0;
    border: 1px solid #f0b8b8;
    color: #c62222;
}

.tf-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 20px;
}

.tf-form-actions .tf-btn {
    min-height: 46px;
}

.tf-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.tf-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 980px;
}

.tf-table th,
.tf-table td {
    text-align: left;
    padding: 14px 10px;
    border-bottom: 1px solid #efedf1;
    vertical-align: top;
}

.tf-table th {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--tf-muted);
    font-weight: 800;
}

.tf-row-note {
    margin-top: 6px;
    color: #6e6b75;
    font-size: 13px;
    line-height: 1.45;
}

.tf-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.tf-status-nowe {
    background: var(--tf-blue-soft);
    color: var(--tf-blue-text);
}

.tf-status-potwierdzone {
    background: var(--tf-green);
    color: var(--tf-green-text);
}

.tf-status-w_trakcie {
    background: var(--tf-orange-soft);
    color: var(--tf-orange-text);
}

.tf-status-zakonczone {
    background: var(--tf-gray-soft);
    color: var(--tf-gray-text);
}

.tf-status-anulowane {
    background: var(--tf-red);
    color: var(--tf-red-text);
}

/* =========================================================
   KLAPS 05 — AUTH / LOGOWANIE / REJESTRACJA
   ========================================================= */

.tf-auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    background:
        radial-gradient(circle at top left, rgba(239,196,79,0.20), transparent 25%),
        linear-gradient(180deg, #f5f6f8 0%, #f0f2f6 100%);
}

.tf-auth-wrap {
    width: 100%;
    max-width: 760px;
}

.tf-auth-card {
    background: #fff;
    border-radius: 28px;
    box-shadow: var(--tf-shadow);
    padding: 34px;
}

.tf-auth-card-wide {
    max-width: 920px;
    margin: 0 auto;
}

.tf-auth-header {
    margin-bottom: 24px;
}

.tf-auth-header h1 {
    margin: 0 0 10px;
    font-size: 36px;
    font-weight: 800;
    line-height: 1.08;
}

.tf-auth-header p {
    margin: 0;
    color: var(--tf-muted);
    line-height: 1.6;
}

.tf-auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff8dd;
    border: 1px solid #f0e1a8;
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 700;
    margin-bottom: 16px;
}

.tf-auth-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.tf-auth-brand img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    display: block;
    flex: 0 0 64px;
}

.tf-auth-footer-links {
    margin-top: 18px;
}

.tf-auth-footer-links a {
    font-weight: 700;
    color: #2d2c35;
}

.tf-auth-notices {
    margin-bottom: 14px;
}

.tf-auth-notice {
    border-radius: 16px;
    padding: 14px 16px;
    font-weight: 700;
    margin-bottom: 10px;
}

.tf-auth-notice-success {
    background: var(--tf-green);
    color: var(--tf-green-text);
}

.tf-auth-notice-error {
    background: var(--tf-red);
    color: var(--tf-red-text);
}

/* =========================================================
   KLAPS 06 — USTAWIENIA / LANDING / HOME / FAQ
   ========================================================= */

.tf-settings-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 20px;
}

.tf-settings-box {
    background: #fafafa;
    border: 1px solid #efedf1;
    border-radius: 20px;
    padding: 20px;
}

.tf-settings-box h3 {
    margin: 0 0 16px;
    font-size: 20px;
    font-weight: 800;
}

.tf-settings-status-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.tf-settings-status-item {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #ece8e2;
}

.tf-settings-status-item span {
    color: var(--tf-muted);
}

.tf-checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tf-checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 10px 12px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #ece8e2;
    cursor: pointer;
}

.tf-checkbox-row input {
    width: 18px;
    height: 18px;
}

.tf-landing {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 40px 20px;
    background:
        radial-gradient(circle at top left, rgba(239,196,79,0.25), transparent 28%),
        linear-gradient(180deg, #f5f6f8 0%, #f1f2f6 100%);
}

.tf-landing-inner {
    max-width: 1150px;
    margin: 0 auto;
    width: 100%;
    text-align: center;
}

.tf-landing-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid var(--tf-border);
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 700;
    margin-bottom: 18px;
}

.tf-landing-badge img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    display: block;
    flex: 0 0 64px;
}

.tf-landing h1 {
    margin: 0 auto 18px;
    max-width: 860px;
    font-size: 56px;
    line-height: 1.08;
}

.tf-landing p {
    margin: 0 auto;
    max-width: 760px;
    font-size: 19px;
    line-height: 1.7;
    color: var(--tf-muted);
}

.tf-landing-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 28px;
}

.tf-landing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 54px;
}

.tf-landing-card {
    background: #fff;
    border-radius: 24px;
    box-shadow: var(--tf-shadow);
    padding: 28px;
    text-align: left;
    min-width: 0;
    width: 100%;
}

.tf-landing-card h3 {
    margin: 0 0 10px;
    font-size: 24px;
    line-height: 1.2;
    word-break: break-word;
}

.tf-home-section {
    margin-top: 48px;
}

.tf-home-section-head {
    max-width: 820px;
    margin: 0 auto 24px;
    text-align: center;
}

.tf-home-section-kicker {
    display: inline-block;
    margin-bottom: 10px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(239, 196, 79, 0.14);
    color: #b88912;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.tf-home-section-head h2 {
    margin: 0 0 12px;
    font-size: 32px;
    line-height: 1.2;
    color: #23222b;
}

.tf-home-section-head p {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    color: #6f6f7b;
}

.tf-home-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 26px;
}

.tf-home-step {
    background: #ffffff;
    border: 1px solid #ece8e2;
    border-radius: 22px;
    padding: 24px 20px;
    box-shadow: 0 14px 34px rgba(25, 24, 33, 0.06);
    min-width: 0;
    width: 100%;
}

.tf-home-step-number {
    width: 42px;
    height: 42px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, #efc44f, #e0b02f);
    color: #23222b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
}

.tf-home-step h3 {
    margin: 0 0 10px;
    font-size: 19px;
    color: #23222b;
    line-height: 1.2;
    word-break: break-word;
}

.tf-home-step p {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: #6f6f7b;
    word-break: break-word;
}

.tf-home-cta-section {
    margin-bottom: 10px;
}

.tf-home-cta-box {
    max-width: 920px;
    margin: 0 auto;
    padding: 34px 28px;
    border-radius: 28px;
    background: linear-gradient(135deg, #fff8e7, #ffffff);
    border: 1px solid #ece8e2;
    box-shadow: 0 18px 40px rgba(25, 24, 33, 0.08);
    text-align: center;
    width: 100%;
}

.tf-home-cta-box h2 {
    margin: 0 0 12px;
    font-size: 30px;
    line-height: 1.2;
    color: #23222b;
}

.tf-home-cta-box p {
    max-width: 720px;
    margin: 0 auto 22px;
    font-size: 16px;
    line-height: 1.7;
    color: #6f6f7b;
}

.tf-faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.tf-faq-grid .tf-landing-card {
    height: 100%;
}

/* =========================================================
   KLAPS 07 — MODAL GŁÓWNY / BROWAREK
   ========================================================= */

.tf-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26, 25, 31, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.tf-modal-overlay.is-active {
    display: flex;
}

.tf-modal-open {
    overflow: hidden;
}

.tf-modal {
    width: 100%;
    max-width: 840px;
    max-height: calc(100vh - 40px);
    background: #fff;
    border-radius: 30px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.18);
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
}

.tf-modal-close {
    position: absolute;
    right: 20px;
    top: 18px;
    border: 0;
    background: transparent;
    font-size: 42px;
    line-height: 1;
    color: #a2a0aa;
    cursor: pointer;
    z-index: 3;
}

.tf-modal-header-top {
    padding: 26px 34px 10px;
    text-align: center;
}

.tf-modal-header-top h3 {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
}

.tf-modal-hero {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr) 70px;
    align-items: center;
    gap: 16px;
    padding: 4px 36px 12px;
    background: linear-gradient(180deg, #f8f8fa 0%, #ffffff 100%);
}

.tf-modal-hero-avatar {
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    line-height: 1;
    text-align: center;
    overflow: hidden;
}

.tf-modal-hero-avatar img {
    width: 142px;
    height: 142px;
    object-fit: contain;
    display: block;
    max-width: none;
}

.tf-modal-hero-text {
    min-width: 0;
}

.tf-modal-hero-text h2 {
    margin: 0;
    font-size: 38px;
    line-height: 1.05;
    font-weight: 800;
}

.tf-modal-hero-text p {
    margin: 6px 0 0;
    font-size: 28px;
    font-weight: 500;
    color: #2f2e37;
}

.tf-modal-hero-extra {
    text-align: center;
    font-size: 32px;
    line-height: 1;
    white-space: nowrap;
}

.tf-modal-note {
    margin: 20px 36px 18px;
    background: #f7ecd2;
    border: 1px solid #eed9ab;
    border-radius: 18px;
    padding: 14px 16px;
    display: block;
    font-size: 15px;
    line-height: 1.45;
}

.tf-donate-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    padding: 8px 36px 0;
}

.tf-donate-box {
    min-height: 118px;
    border-radius: 18px;
    border: 1px solid #e8e2d9;
    background: #fff;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 18px 20px;
    transition: 0.2s ease;
    text-align: left;
}

.tf-donate-box:hover {
    transform: translateY(-2px);
    box-shadow: var(--tf-shadow);
}

.tf-donate-box.is-selected {
    border-color: #e0b02f;
    background: #fff8e4;
    box-shadow: 0 12px 22px rgba(233, 185, 61, 0.16);
}

.tf-donate-emoji {
    font-size: 24px;
    margin-bottom: 8px;
}

.tf-donate-box strong {
    font-size: 24px;
    margin-bottom: 4px;
}

.tf-donate-box small {
    font-size: 17px;
    color: #35343e;
    font-weight: 700;
}

.tf-transfer-title {
    padding: 14px 36px 12px;
    font-size: 18px;
    color: #62606d;
}

/* =========================================================
   KLAPS 08 — BLIK / BROWAR / PRZYPOMNIENIA / AKCJE
   ========================================================= */

.tf-blik-box {
    margin: 0 36px 14px;
    min-height: 86px;
    border: 1px solid #e6e1d9;
    border-radius: 18px;
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr) minmax(0, 1fr) 110px;
    align-items: center;
    padding: 0 18px;
    gap: 14px;
}

.tf-blik-left {
    font-size: 34px;
    font-weight: 800;
    border-right: 1px solid #e4e0d8;
    padding-right: 12px;
}

.tf-blik-number {
    font-size: 24px;
    font-weight: 800;
}

.tf-blik-meta {
    color: #6b6976;
    font-size: 16px;
    word-break: break-word;
}

.tf-blik-logo {
    justify-self: end;
    background: #233847;
    color: #fff;
    border-radius: 10px;
    padding: 10px 16px;
    font-weight: 800;
    font-size: 28px;
    line-height: 1;
    text-transform: lowercase;
}

.tf-bank-line {
    padding: 0 36px;
    color: #65636f;
    font-size: 16px;
    word-break: break-word;
}

.tf-main-donate-btn {
    display: block;
    width: calc(100% - 72px);
    max-width: 430px;
    margin: 28px auto 10px;
    min-height: 64px;
    border: 0;
    border-radius: 16px;
    font-size: 22px;
    font-weight: 800;
    cursor: pointer;
    background: linear-gradient(180deg, #f5cc5a 0%, #e5b53f 100%);
    color: #201f25;
    box-shadow: 0 10px 18px rgba(229, 181, 63, 0.28);
}

.tf-later-btn {
    display: block;
    width: auto;
    margin: 0 auto 28px;
    border: 0;
    background: transparent;
    color: #6c6a75;
    font-size: 16px;
    cursor: pointer;
}

.tf-reminders-box {
    background: #fafafa;
    border: 1px solid #efedf1;
    border-radius: 20px;
    padding: 20px;
}

.tf-reminders-head h3 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 800;
}

.tf-reminders-head p {
    margin: 0 0 16px;
    color: var(--tf-muted);
    line-height: 1.6;
}

.tf-reminder-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 18px;
}

.tf-custom-reminders {
    border-top: 1px solid #ece8e2;
    padding-top: 18px;
}

.tf-custom-reminders-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.tf-custom-reminder-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tf-custom-reminder-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 14px;
    align-items: end;
    padding: 14px;
    background: #fff;
    border: 1px solid #ece8e2;
    border-radius: 16px;
}

.tf-custom-reminder-actions {
    display: flex;
    align-items: center;
}

.tf-reminder-help {
    margin: 12px 0 0;
    color: var(--tf-muted);
    font-size: 14px;
}

.tf-reminder-preview {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 0 18px;
}

.tf-reminder-preview-item {
    padding: 12px 14px;
    border-radius: 14px;
    background: #fff7de;
    border: 1px solid #f0e1a8;
    color: #6a5300;
    font-weight: 600;
}

.tf-custom-reminder-builder {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 14px;
    align-items: end;
    margin-bottom: 14px;
}

.tf-custom-reminder-builder-actions {
    display: flex;
    align-items: end;
}

/* =========================================================
   KLAPS 09 — KARTY PRZYPOMNIEŃ / PAGINACJA / SIDEBAR CTA
   ========================================================= */

.tf-reminder-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #ece8e2;
    border-radius: 16px;
}

.tf-reminder-card-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tf-reminder-card-main strong {
    font-size: 15px;
    color: #23222b;
}

.tf-reminder-card-main span {
    font-size: 14px;
    color: var(--tf-muted);
}

.tf-reminder-card-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tf-reminder-card-remove {
    min-height: 38px;
    border: 0;
    background: #fce4e4;
    color: #a12a2a;
    border-radius: 12px;
    padding: 0 14px;
    font-weight: 700;
    cursor: pointer;
}

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

.tf-order-actions button {
    border: 0;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.tf-order-actions button:hover {
    transform: translateY(-1px);
}

.tf-order-actions button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.tf-edit-order-btn {
    background: #e8eefc;
    color: #274a9b;
    min-height: 38px;
    padding: 0 14px;
}

.tf-edit-realizacja-btn {
    background: #111111;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.tf-delete-order-btn,
.tf-delete-realizacja-btn {
    background: #fff3f3;
    color: #b42318;
    border: 1px solid #f3c2c2;
}

.tf-edit-order-btn:hover,
.tf-reminder-card-remove:hover,
.tf-delete-order-btn:hover,
.tf-delete-realizacja-btn:hover {
    filter: brightness(0.98);
}

.tf-order-reminder-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 180px;
}

.tf-order-reminder-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #fafafa;
    border: 1px solid #ece8e2;
}

.tf-order-reminder-item strong {
    font-size: 13px;
    color: #23222b;
}

.tf-order-reminder-item span {
    font-size: 13px;
    color: var(--tf-muted);
}

.tf-order-reminder-item small {
    font-size: 12px;
    color: #6f6d79;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.tf-order-reminder-empty {
    color: var(--tf-muted);
    font-size: 14px;
}

.tf-edit-order-modal {
    max-width: 980px;
}

.tf-sidebar-actions {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #e8e6ec;
    display: block;
}

.tf-sidebar-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 54px;
    padding: 0 16px;
    border-radius: 16px;
    background: linear-gradient(180deg, #f5cc5a 0%, #e9b93d 100%);
    color: #23222b;
    font-weight: 800;
    box-shadow: 0 10px 20px rgba(233, 185, 61, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    text-decoration: none;
}

.tf-sidebar-cta:hover {
    transform: translateY(-1px);
    filter: brightness(1.01);
    box-shadow: 0 14px 24px rgba(233, 185, 61, 0.28);
}

.tf-sidebar-cta-plus {
    font-size: 20px;
    line-height: 1;
    font-weight: 900;
}

.tf-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid #efedf1;
}

.tf-pagination-summary {
    font-size: 14px;
    color: var(--tf-muted);
    font-weight: 600;
}

.tf-pagination-pages {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.tf-pagination-link,
.tf-pagination-current,
.tf-pagination-dots {
    min-width: 40px;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.tf-pagination-link {
    background: #fff;
    border: 1px solid #e7e5ea;
    color: #23222b;
    transition: 0.2s ease;
}

.tf-pagination-link:hover {
    background: #f7f7fa;
    transform: translateY(-1px);
}

.tf-pagination-current {
    background: linear-gradient(180deg, #f5cc5a 0%, #e9b93d 100%);
    color: #23222b;
    box-shadow: 0 8px 18px rgba(233, 185, 61, 0.18);
}

.tf-pagination-dots {
    color: var(--tf-muted);
    min-width: auto;
    padding: 0 4px;
}

/* =========================================================
   KLAPS 10 — BROWAR SUMMARY / BLOKADY / ALERTY
   ========================================================= */

.tf-browar-summary {
    margin: 16px 36px 0;
    padding: 16px 18px;
    background: #faf8f3;
    border: 1px solid #ece2cc;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tf-browar-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: 15px;
    color: #3a3842;
}

.tf-browar-summary-row strong {
    color: #17161d;
}

.tf-browar-summary-row-pending strong {
    color: #9f5b00;
}

.tf-browar-form {
    padding: 18px 36px 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.tf-browar-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.tf-browar-field-full {
    grid-column: 1 / -1;
}

.tf-browar-field label {
    font-size: 14px;
    font-weight: 700;
    color: #23222b;
}

.tf-browar-field input,
.tf-browar-field textarea {
    width: 100%;
    min-height: 48px;
    border: 1px solid #e7e5ea;
    border-radius: 14px;
    padding: 12px 14px;
    background: #fff;
    color: #25242d;
    box-sizing: border-box;
}

.tf-browar-field textarea {
    min-height: 100px;
    resize: vertical;
}

.tf-browar-feedback {
    margin: 18px 36px 0;
    min-height: 22px;
    font-weight: 700;
    font-size: 14px;
}

.tf-browar-feedback.is-success {
    color: var(--tf-green-text);
}

.tf-browar-feedback.is-error {
    color: var(--tf-red-text);
}

.tf-browar-info-note {
    margin: 12px 36px 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--tf-muted);
    text-align: center;
}

.tf-checkbox-row-disabled {
    opacity: 0.72;
    cursor: not-allowed;
}

.tf-checkbox-row-disabled input {
    pointer-events: none;
    opacity: 0.45;
}

.tf-checkbox-row-disabled span {
    cursor: not-allowed;
}

.tf-soon-badge {
    display: inline-block;
    margin-left: 10px;
    padding: 3px 9px;
    border-radius: 999px;
    background: #f5e6a8;
    color: #8a6a00;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.tf-soon-text {
    margin-top: 8px;
    font-size: 13px;
    color: #8a6a00;
    line-height: 1.5;
}

.tf-fake-select {
    width: 100%;
    min-height: 50px;
    border: 1px solid #e7e5ea;
    border-radius: 14px;
    padding: 12px 14px;
    background: #f7f7f7;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.tf-fake-select-disabled {
    opacity: 0.85;
    cursor: not-allowed;
    user-select: none;
}

.tf-fake-select-value {
    color: #25242d;
    font-size: 16px;
    line-height: 1.2;
}

.tf-alert-error,
.tf-auth-notice-error {
    background: #ffe5e5;
    border: 2px solid #ff1f1f;
    color: #d60000;
    font-weight: 700;
    padding: 12px 14px;
    border-radius: 12px;
}

.tf-alert-success,
.tf-auth-notice-success {
    background: #eaf8ea;
    border: 1px solid #57b857;
    color: #157515;
    padding: 12px 14px;
    border-radius: 12px;
}

/* =========================================================
   KLAPS 11 — WIZYTÓWKA / PORTFOLIO / MODALE DUŻE / GALERIE
   ========================================================= */

.tf-modal.tf-modal-large {
    width: min(1100px, calc(100vw - 40px));
    max-width: 1100px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 28px;
    border-radius: 28px;
    box-sizing: border-box;
}

.tf-copy-public-url-btn {
    min-width: 120px;
}

#sekcja-wizytowka .tf-card-body,
#sekcja-portfolio .tf-card-body {
    overflow: visible;
}

#sekcja-wizytowka .tf-table th,
#sekcja-wizytowka .tf-table td,
#sekcja-portfolio .tf-table th,
#sekcja-portfolio .tf-table td {
    vertical-align: top;
}

#tfEditRealizacjaForm .tf-form-grid,
#tfRealizacjaForm .tf-form-grid,
#tfFachowiecForm .tf-form-grid {
    gap: 22px;
}

#tfEditRealizacjaForm .tf-form-group,
#tfRealizacjaForm .tf-form-group,
#tfFachowiecForm .tf-form-group {
    margin: 0;
}

#tfEditRealizacjaForm .tf-form-group label,
#tfRealizacjaForm .tf-form-group label,
#tfFachowiecForm .tf-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #23222b;
}

#tfEditRealizacjaForm input[type="text"],
#tfEditRealizacjaForm input[type="date"],
#tfEditRealizacjaForm input[type="email"],
#tfEditRealizacjaForm textarea,
#tfRealizacjaForm input[type="text"],
#tfRealizacjaForm input[type="date"],
#tfRealizacjaForm input[type="email"],
#tfRealizacjaForm textarea,
#tfFachowiecForm input[type="text"],
#tfFachowiecForm input[type="date"],
#tfFachowiecForm input[type="email"],
#tfFachowiecForm textarea {
    width: 100%;
    border: 1px solid #ded8cf;
    border-radius: 18px;
    padding: 16px 18px;
    background: #fff;
    box-sizing: border-box;
}

#tfEditRealizacjaForm textarea,
#tfRealizacjaForm textarea,
#tfFachowiecForm textarea {
    min-height: 120px;
    resize: vertical;
}

#tfEditRealizacjaForm .tf-form-actions,
#tfRealizacjaForm .tf-form-actions,
#tfFachowiecForm .tf-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

#tfEditRealizacjaForm .tf-btn,
#tfRealizacjaForm .tf-btn,
#tfFachowiecForm .tf-btn {
    min-height: 48px;
    padding: 12px 20px;
    border-radius: 16px;
}

#tfFachowiecAvatarPreview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tf-modal.tf-modal-large .tf-modal-close {
    top: 18px;
    right: 18px;
}

/* =========================================================
   KLAPS 12 — INPUTY PLIKÓW / GRIDY ZDJĘĆ / PODGLĄD REALIZACJI
   ========================================================= */

#tf_realizacja_images,
#tf_edit_realizacja_images,
#tf_fachowiec_avatar {
    display: block;
    width: 100%;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #ded8cf;
    border-radius: 18px;
    box-sizing: border-box;
}

#tf_realizacja_images::file-selector-button,
#tf_edit_realizacja_images::file-selector-button,
#tf_fachowiec_avatar::file-selector-button {
    margin-right: 14px;
    border: 0;
    border-radius: 12px;
    padding: 10px 14px;
    background: #efc44f;
    color: #23222b;
    font-weight: 700;
    cursor: pointer;
}

#tfRealizacjaNewImagesPreview,
#tfEditRealizacjaNewImagesPreview,
#tfEditRealizacjaGalleryPreview {
    background: #f8f8fa;
    border: 1px solid #ece8e2;
    border-radius: 20px;
    padding: 16px;
    min-height: 86px;
    box-sizing: border-box;
}

.tf-realizacja-preview-grid,
.tf-realizacja-current-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.tf-realizacja-preview-item,
.tf-realizacja-current-item {
    background: #fff;
    border: 1px solid #ece8e2;
    border-radius: 18px;
    padding: 10px;
    box-sizing: border-box;
    overflow: hidden;
}

.tf-realizacja-preview-thumb,
.tf-realizacja-current-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    overflow: hidden;
    background: #f2f2f4;
    margin-bottom: 8px;
}

.tf-realizacja-preview-thumb img,
.tf-realizacja-current-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tf-realizacja-preview-name,
.tf-realizacja-current-name {
    font-size: 13px;
    line-height: 1.35;
    color: #23222b;
    word-break: break-word;
}

.tf-realizacja-current-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    border: 0;
    border-radius: 12px;
    padding: 8px 10px;
    background: #fbe9e9;
    color: #b42318;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
}

.tf-realizacja-current-remove:hover {
    background: #f8d7d7;
}

.tf-realizacja-empty-note {
    color: #7b7b87;
    font-size: 14px;
}

.tf-preview-realizacja-wrap {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.tf-preview-realizacja-header h2 {
    margin: 0 0 10px;
    font-size: 36px;
    line-height: 1.15;
    font-weight: 800;
    color: #1f2230;
}

.tf-preview-realizacja-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    font-size: 15px;
    color: #4b4f5c;
}

.tf-preview-realizacja-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tf-preview-realizacja-gallery {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-top: 4px;
    align-items: start;
}

.tf-preview-realizacja-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 118px;
    padding: 8px;
    border: 1px solid #e7dfd2;
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.05);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    text-decoration: none;
}

.tf-preview-realizacja-image:hover {
    transform: translateY(-2px);
    border-color: #efc44f;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.10);
}

.tf-preview-realizacja-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f5f5f7;
    border-radius: 10px;
}

.tf-preview-realizacja-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tf-preview-realizacja-section h3 {
    margin: 0;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 800;
    color: #1f2230;
}

.tf-preview-realizacja-text {
    font-size: 17px;
    line-height: 1.7;
    color: #2b2f3a;
    background: #faf8f3;
    border: 1px solid #eee6d8;
    border-radius: 18px;
    padding: 16px 18px;
}

/* =========================================================
   KLAPS 13 — PRZYCISK "DO GÓRY"
   ========================================================= */

.tf-scroll-top-btn {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 54px;
    height: 54px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(180deg, #efc44f 0%, #e0b02f 100%);
    color: #23222b;
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease, box-shadow 0.22s ease;
    z-index: 9999;
}

.tf-scroll-top-btn:hover {
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.24);
    transform: translateY(0);
}

.tf-scroll-top-btn.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* =========================================================
   KLAPS 14 — RESPONSIVE
   ========================================================= */

.tf-mobile-nav-toggle,
.tf-mobile-nav-overlay {
    display: none;
}

body.tf-mobile-nav-open {
    overflow: hidden;
}

@media (max-width: 1100px) {
    .tf-dashboard-grid,
    .tf-settings-grid {
        grid-template-columns: 1fr;
    }

    .tf-stats-grid {
        grid-template-columns: 1fr;
    }

    .tf-landing-grid {
        grid-template-columns: 1fr;
    }

    .tf-realizacja-preview-grid,
    .tf-realizacja-current-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .tf-preview-realizacja-gallery {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .tf-form-grid {
        grid-template-columns: 1fr;
    }

    .tf-form-group-full {
        grid-column: auto;
    }

    .tf-home-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .tf-app-shell {
        display: block;
        min-height: 100vh;
    }

    .tf-sidebar {
        position: fixed;
        top: 50%;
        right: -310px;
        left: auto;
        transform: translateY(-50%);
        width: min(272px, calc(100vw - 72px));
        height: auto;
        max-height: 78vh;
        overflow-y: auto;
        padding: 22px 16px 16px;
        border-right: 0;
        border-left: 1px solid #ebeaf0;
        border-radius: 24px 0 0 24px;
        box-shadow: 0 22px 42px rgba(22, 22, 26, 0.22);
        z-index: 10030;
        opacity: 0;
        pointer-events: none;
        transition: right 0.28s ease, opacity 0.28s ease, transform 0.28s ease;
    }

    .tf-sidebar.tf-sidebar-mobile-open {
        right: 12px;
        opacity: 1;
        pointer-events: auto;
    }

    .tf-sidebar .tf-logo {
        margin-bottom: 20px;
        font-size: 24px;
    }

    .tf-sidebar .tf-logo-text {
        font-size: 15px;
    }

    .tf-sidebar-nav {
        gap: 8px;
    }

    .tf-sidebar .tf-nav-item {
        min-height: 50px;
        padding: 0 14px;
        font-size: 14px;
    }

    .tf-sidebar-actions {
        margin-top: 12px;
        padding-top: 12px;
    }

    .tf-sidebar-cta {
        min-height: 48px;
        font-size: 14px;
    }

    .tf-mobile-nav-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(22, 22, 26, 0.38);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.25s ease, visibility 0.25s ease;
        z-index: 10020;
    }

    .tf-mobile-nav-overlay.is-active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .tf-mobile-nav-toggle {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 10px;
        position: fixed;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 54px;
        min-height: 138px;
        padding: 12px 8px;
        border: 0;
        border-radius: 18px 0 0 18px;
        background: linear-gradient(180deg, #f5cc5a 0%, #e9b93d 100%);
        color: #23222b;
        box-shadow: 0 14px 28px rgba(233, 185, 61, 0.32);
        z-index: 10040;
        cursor: pointer;
    }

    .tf-mobile-nav-toggle:hover {
        filter: brightness(1.02);
    }

    .tf-mobile-nav-toggle:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(35, 34, 43, 0.12), 0 14px 28px rgba(233, 185, 61, 0.32);
    }

    .tf-mobile-nav-toggle-icon {
        display: flex;
        flex-direction: column;
        gap: 5px;
        align-items: center;
        justify-content: center;
    }

    .tf-mobile-nav-toggle-icon span {
        display: block;
        width: 24px;
        height: 3px;
        border-radius: 999px;
        background: #23222b;
    }

    .tf-mobile-nav-toggle-text {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: auto;
        text-align: center;
        font-size: 12px;
        font-weight: 800;
        letter-spacing: 0;
        text-transform: uppercase;
        line-height: 1;
    }

    .tf-main {
        padding: 20px 18px;
    }

    .tf-topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .tf-topbar-right {
        width: 100%;
        justify-content: flex-start;
    }

    .tf-pro-status-badge {
        order: -1;
    }

    .tf-modal-hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 14px;
    }

    .tf-modal-hero-avatar {
        margin: 0 auto;
    }

    .tf-modal-hero-extra {
        display: none;
    }

    .tf-donate-grid {
        grid-template-columns: 1fr;
    }

    .tf-blik-box {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .tf-blik-left {
        border-right: 0;
        border-bottom: 1px solid #e4e0d8;
        padding-right: 0;
        padding-bottom: 12px;
    }

    .tf-blik-logo {
        justify-self: start;
    }

    .tf-custom-reminder-row,
    .tf-custom-reminder-builder,
    .tf-browar-form {
        grid-template-columns: 1fr;
    }

    .tf-reminder-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .tf-order-actions {
        min-width: 100%;
        flex-direction: column;
    }

    .tf-realizacja-preview-grid,
    .tf-realizacja-current-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tf-preview-realizacja-gallery {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }

    .tf-preview-realizacja-image {
        height: 100px;
        padding: 6px;
    }

    .tf-preview-realizacja-header h2 {
        font-size: 28px;
    }

    .tf-preview-realizacja-section h3 {
        font-size: 22px;
    }

    #tfEditRealizacjaForm .tf-form-actions,
    #tfRealizacjaForm .tf-form-actions,
    #tfFachowiecForm .tf-form-actions {
        flex-direction: column;
    }

    #tfEditRealizacjaForm .tf-btn,
    #tfRealizacjaForm .tf-btn,
    #tfFachowiecForm .tf-btn {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .tf-inline-field-group {
        flex-direction: column;
    }

    .tf-inline-field-group input,
    .tf-inline-field-group .tf-btn {
        width: 100%;
        flex: 1 1 auto;
    }

    .tf-form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .tf-form-actions .tf-btn {
        width: 100%;
        justify-content: center;
    }

    .tf-modal.tf-modal-large {
        width: calc(100vw - 16px);
        max-height: calc(100vh - 16px);
        border-radius: 18px;
    }

    .tf-auth-notice,
    .tf-alert-error,
    .tf-alert-success,
    .tf-form-message {
        scroll-margin-top: 120px;
    }

    .tf-auth-notices {
        margin-bottom: 18px;
    }

    .tf-auth-card {
        padding-top: 34px;
    }

    .tf-scroll-top-btn {
        right: 16px;
        bottom: 16px;
        width: 48px;
        height: 48px;
        font-size: 24px;
    }

    .tf-home-steps,
    .tf-faq-grid,
    .tf-landing-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .tf-home-step,
    .tf-landing-card,
    .tf-home-cta-box {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    .tf-home-step h3,
    .tf-faq-grid .tf-landing-card h3,
    .tf-landing-card h3 {
        font-size: 24px;
        line-height: 1.2;
    }

    .tf-home-step p,
    .tf-faq-grid .tf-landing-card p,
    .tf-landing-card p {
        font-size: 16px;
        line-height: 1.65;
    }
}

@media (max-width: 767px) {
    .tf-home-section {
        margin-top: 36px;
    }

    .tf-home-section-head h2,
    .tf-home-cta-box h2 {
        font-size: 24px;
    }

    .tf-home-step,
    .tf-home-cta-box {
        padding: 22px 18px;
    }
}

@media (max-width: 640px) {
    .tf-main {
        padding: 18px 14px;
    }

    .tf-sidebar {
        width: min(254px, calc(100vw - 62px));
        right: -290px;
        max-height: 76vh;
        padding: 18px 14px 14px;
    }

    .tf-sidebar.tf-sidebar-mobile-open {
        right: 10px;
    }

    .tf-mobile-nav-toggle {
        width: 48px;
        min-height: 118px;
        padding: 10px 6px;
    }

    .tf-mobile-nav-toggle-icon span {
        width: 21px;
    }

    .tf-mobile-nav-toggle-text {
        font-size: 11px;
    }

    .tf-modal-overlay {
        padding: 10px;
    }

    .tf-modal {
        max-height: calc(100vh - 20px);
        border-radius: 20px;
    }

    .tf-edit-order-modal {
        max-width: 100%;
    }

    .tf-card-header,
    .tf-card-body {
        padding-left: 18px;
        padding-right: 18px;
    }

    .tf-landing h1,
    .tf-auth-header h1 {
        font-size: 36px;
    }

    .tf-landing p {
        font-size: 17px;
    }

    .tf-landing-actions {
        flex-direction: column;
    }

    .tf-quick-actions {
        grid-template-columns: 1fr;
    }

    .tf-modal-header-top {
        padding-left: 18px;
        padding-right: 18px;
    }

    .tf-modal-note,
    .tf-donate-grid,
    .tf-transfer-title,
    .tf-bank-line {
        padding-left: 18px;
        padding-right: 18px;
        margin-left: 18px;
        margin-right: 18px;
    }

    .tf-blik-box {
        margin-left: 18px;
        margin-right: 18px;
    }

    .tf-main-donate-btn {
        width: calc(100% - 36px);
    }

    .tf-auth-card {
        padding: 24px 18px;
    }

    .tf-pagination {
        flex-direction: column;
        align-items: flex-start;
    }

    .tf-browar-summary,
    .tf-browar-form,
    .tf-browar-feedback {
        margin-left: 18px;
        margin-right: 18px;
        padding-left: 18px;
        padding-right: 18px;
    }

    .tf-browar-form {
        padding-top: 18px;
        padding-bottom: 0;
    }

    .tf-preview-realizacja-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .tf-preview-realizacja-image {
        height: 96px;
    }

    .tf-preview-realizacja-meta {
        flex-direction: column;
        gap: 8px;
    }
}