/*
 * Legal Booking — style frontendowe (lb-styles.css)
 * Wersja: 1.1.0
 *
 * Brand:
 *   Czcionka:  Montserrat (Google Fonts)
 *   Tło:       #FFFFFF (białe)
 *   Teksty:    #111111 (czarne)
 *   Akcent:    #BA935E (złoty)
 */

/* ─── Google Fonts: Montserrat ───────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

/* ─── Zmienne globalne ───────────────────────────────────────────────────────── */
:root {
    --lb-primary:       #111111;
    --lb-primary-hover: #333333;
    --lb-accent:        #BA935E;
    --lb-accent-hover:  #a07d4a;
    --lb-accent-light:  rgba(186,147,94,0.12);
    --lb-bg:            #F7F7F7;
    --lb-surface:       #FFFFFF;
    --lb-border:        #E5E5E5;
    --lb-text:          #111111;
    --lb-text-muted:    #777777;
    --lb-text-light:    #AAAAAA;
    --lb-error:         #C0392B;
    --lb-success:       #27AE60;
    --lb-warning:       #E67E22;
    --lb-radius:        12px;
    --lb-radius-sm:     8px;
    --lb-radius-xs:     4px;
    --lb-shadow:        0 2px 16px rgba(0,0,0,0.07);
    --lb-shadow-hover:  0 6px 28px rgba(0,0,0,0.12);
    --lb-transition:    0.2s ease;
    --lb-font:          'Montserrat', sans-serif;
    --lb-font-size:     15px;
    --lb-line-height:   1.6;
}

/* ─── Reset / base ───────────────────────────────────────────────────────────── */
.lb-wrap *, .lb-wrap *::before, .lb-wrap *::after {
    box-sizing: border-box;
}

.lb-wrap {
    font-family: var(--lb-font);
    font-size: var(--lb-font-size);
    line-height: var(--lb-line-height);
    color: var(--lb-text);
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 20px;
}

.lb-wrap h1, .lb-wrap h2, .lb-wrap h3, .lb-wrap h4 {
    font-family: var(--lb-font);
    font-weight: 700;
    color: var(--lb-text);
    line-height: 1.25;
    margin-top: 0;
}

/* ─── Przyciski ──────────────────────────────────────────────────────────────── */
.lb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 28px;
    border: 2px solid transparent;
    border-radius: var(--lb-radius-sm);
    font-family: var(--lb-font);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    text-decoration: none;
    transition: background var(--lb-transition), color var(--lb-transition),
                border-color var(--lb-transition), transform var(--lb-transition),
                box-shadow var(--lb-transition);
    line-height: 1;
    white-space: nowrap;
}

.lb-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--lb-shadow-hover);
    text-decoration: none;
}

/* Czarny wypełniony */
.lb-btn-primary {
    background: var(--lb-primary);
    color: #fff;
    border-color: var(--lb-primary);
}
.lb-btn-primary:hover {
    background: var(--lb-primary-hover);
    border-color: var(--lb-primary-hover);
    color: #fff;
}

/* Złoty wypełniony */
.lb-btn-accent {
    background: var(--lb-accent);
    color: #fff;
    border-color: var(--lb-accent);
}
.lb-btn-accent:hover {
    background: var(--lb-accent-hover);
    border-color: var(--lb-accent-hover);
    color: #fff;
}

/* Czarny obramowanie */
.lb-btn-outline {
    background: transparent;
    color: var(--lb-primary);
    border-color: var(--lb-primary);
}
.lb-btn-outline:hover {
    background: var(--lb-primary);
    color: #fff;
}

/* Złoty obramowanie */
.lb-btn-outline-accent {
    background: transparent;
    color: var(--lb-accent);
    border-color: var(--lb-accent);
}
.lb-btn-outline-accent:hover {
    background: var(--lb-accent);
    color: #fff;
}

.lb-btn-sm   { padding: 9px 18px; font-size: 13px; }
.lb-btn-lg   { padding: 16px 36px; font-size: 15px; }
.lb-btn-full { width: 100%; }
.lb-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ─── Formularze ─────────────────────────────────────────────────────────────── */
.lb-form {
    background: var(--lb-surface);
    border-radius: var(--lb-radius);
    padding: 40px;
    box-shadow: var(--lb-shadow);
    max-width: 480px;
    margin: 0 auto;
}

.lb-form-wide { max-width: 640px; }

.lb-form h2 {
    font-size: 26px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 8px;
}

.lb-form h2 span { color: var(--lb-accent); }

.lb-form-subtitle {
    text-align: center;
    color: var(--lb-text-muted);
    font-size: 14px;
    margin-bottom: 28px;
}

.lb-field { margin-bottom: 20px; }

.lb-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--lb-text);
    margin-bottom: 7px;
    letter-spacing: 0.2px;
}

.lb-field label .lb-required { color: var(--lb-accent); margin-left: 2px; }

.lb-field input[type="text"],
.lb-field input[type="email"],
.lb-field input[type="password"],
.lb-field input[type="tel"],
.lb-field input[type="number"],
.lb-field textarea,
.lb-field select {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--lb-border);
    border-radius: var(--lb-radius-sm);
    font-family: var(--lb-font);
    font-size: 14px;
    font-weight: 500;
    color: var(--lb-text);
    background: var(--lb-surface);
    transition: border-color var(--lb-transition), box-shadow var(--lb-transition);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.lb-field input:focus,
.lb-field textarea:focus,
.lb-field select:focus {
    border-color: var(--lb-accent);
    box-shadow: 0 0 0 3px var(--lb-accent-light);
}

.lb-field textarea {
    resize: vertical;
    min-height: 110px;
}

.lb-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23777' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.lb-field-hint  { font-size: 12px; color: var(--lb-text-muted); margin-top: 5px; }
.lb-field-error { font-size: 12px; color: var(--lb-error); margin-top: 5px; font-weight: 600; }

/* Toggle hasła */
.lb-pw-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--lb-text-muted);
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--lb-transition);
    outline: none;
}
.lb-pw-toggle:hover { color: var(--lb-primary); }

/* Divider "lub" */
.lb-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: var(--lb-text-light);
    font-size: 13px;
}
.lb-divider::before, .lb-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--lb-border);
}

/* Upload pliku */
.lb-file-upload {
    display: block;
    border: 2px dashed var(--lb-border);
    border-radius: var(--lb-radius-sm);
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    transition: border-color var(--lb-transition), background var(--lb-transition);
}
.lb-file-upload:hover      { border-color: var(--lb-accent); background: var(--lb-accent-light); }
.lb-file-upload.has-file   { border-color: var(--lb-success); background: rgba(39,174,96,0.05); }
.lb-file-upload input[type="file"] { display: none; }
.lb-file-upload__icon  { font-size: 32px; margin-bottom: 8px; }
.lb-file-upload__label { font-size: 14px; font-weight: 600; color: var(--lb-text-muted); }
.lb-file-upload__hint  { font-size: 12px; color: var(--lb-text-light); margin-top: 4px; }

/* Tabs rejestracji */
.lb-register-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 28px;
}
.lb-tab-btn {
    flex: 1;
    padding: 13px 12px;
    background: var(--lb-bg);
    border: 1.5px solid var(--lb-border);
    border-radius: var(--lb-radius-sm);
    font-family: var(--lb-font);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    color: var(--lb-text-muted);
    transition: all var(--lb-transition);
    outline: none;
}
.lb-tab-btn:hover {
    border-color: var(--lb-primary);
    color: var(--lb-primary);
}
.lb-tab-btn.active {
    background: var(--lb-primary);
    border-color: var(--lb-primary);
    color: #fff;
}

/* Link pod formularzem */
.lb-form-footer {
    text-align: center;
    font-size: 13px;
    color: var(--lb-text-muted);
    margin-top: 20px;
}
.lb-form-footer a { color: var(--lb-accent); font-weight: 600; text-decoration: none; }
.lb-form-footer a:hover { text-decoration: underline; }

/* ─── Alerty ─────────────────────────────────────────────────────────────────── */
.lb-alert {
    padding: 13px 16px;
    border-radius: var(--lb-radius-sm);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}
.lb-alert-error   { background: #FEF2F2; color: var(--lb-error);   border-left: 4px solid var(--lb-error); }
.lb-alert-success { background: #F0FDF4; color: var(--lb-success);  border-left: 4px solid var(--lb-success); }
.lb-alert-warning { background: #FFFBEB; color: var(--lb-warning);  border-left: 4px solid var(--lb-warning); }
.lb-alert-info    { background: var(--lb-accent-light); color: #7a5c2e; border-left: 4px solid var(--lb-accent); }

/* ─── Filtry / wyszukiwarka ──────────────────────────────────────────────────── */
.lb-search-bar {
    background: var(--lb-surface);
    border-radius: var(--lb-radius);
    padding: 28px 32px;
    box-shadow: var(--lb-shadow);
    display: flex;
    gap: 16px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.lb-search-bar .lb-field {
    flex: 1 1 200px;
    margin-bottom: 0;
}

.lb-search-bar .lb-btn {
    flex-shrink: 0;
    align-self: flex-end;
}

/* Wyszukiwanie tekstowe */
.lb-search-input-wrap {
    position: relative;
}
.lb-search-input-wrap input {
    padding-left: 40px !important;
}
.lb-search-input-wrap::before {
    content: '🔍';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    pointer-events: none;
}

/* ─── Kafelki prawników ──────────────────────────────────────────────────────── */
.lb-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.lb-results-count {
    font-size: 14px;
    color: var(--lb-text-muted);
    font-weight: 500;
}

.lb-lawyers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 1024px) { .lb-lawyers-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .lb-lawyers-grid { grid-template-columns: 1fr; } }

.lb-lawyer-card {
    background: var(--lb-surface);
    border-radius: var(--lb-radius);
    padding: 24px;
    box-shadow: var(--lb-shadow);
    border: 1.5px solid transparent;
    transition: box-shadow var(--lb-transition), transform var(--lb-transition), border-color var(--lb-transition);
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}
.lb-lawyer-card:hover {
    box-shadow: var(--lb-shadow-hover);
    transform: translateY(-3px);
    border-color: var(--lb-accent);
    text-decoration: none;
    color: inherit;
}

.lb-lawyer-card__top {
    display: flex;
    align-items: center;
    gap: 14px;
}

.lb-lawyer-card__avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--lb-bg);
    border: 2px solid var(--lb-border);
    flex-shrink: 0;
}

.lb-lawyer-card__name {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 3px;
}

.lb-lawyer-card__province {
    font-size: 12px;
    color: var(--lb-text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.lb-lawyer-card__specializations {
    font-size: 12px;
    color: var(--lb-text-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.lb-tag {
    background: var(--lb-bg);
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 600;
    color: var(--lb-text-muted);
    border: 1px solid var(--lb-border);
}

.lb-tag-accent {
    background: var(--lb-accent-light);
    color: var(--lb-accent);
    border-color: var(--lb-accent);
}

.lb-lawyer-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--lb-border);
    margin-top: auto;
}

.lb-lawyer-card__prices {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lb-lawyer-card__price {
    font-size: 12px;
    color: var(--lb-text-muted);
}

.lb-lawyer-card__price strong {
    color: var(--lb-text);
    font-weight: 700;
}

.lb-lawyer-card__rating {
    text-align: right;
}

.lb-stars { color: var(--lb-accent); font-size: 13px; }
.lb-rating-count { font-size: 11px; color: var(--lb-text-light); }

/* Przycisk ulubionych */
.lb-favorite-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    font-size: 20px;
    color: var(--lb-border);
    transition: color var(--lb-transition), transform var(--lb-transition);
    line-height: 1;
}
.lb-favorite-btn:hover   { color: var(--lb-accent); transform: scale(1.15); }
.lb-favorite-btn.is-active { color: var(--lb-accent); }

/* ─── Profil prawnika (publiczny) ────────────────────────────────────────────── */
.lb-lawyer-profile { max-width: 880px; margin: 0 auto; }

.lb-lawyer-profile__header {
    background: var(--lb-surface);
    border-radius: var(--lb-radius);
    padding: 36px;
    box-shadow: var(--lb-shadow);
    display: flex;
    gap: 28px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.lb-lawyer-profile__avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--lb-accent);
    flex-shrink: 0;
}

.lb-lawyer-profile__name {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 8px;
}

.lb-lawyer-profile__rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.lb-lawyer-profile__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lb-lawyer-profile__bio {
    background: var(--lb-surface);
    border-radius: var(--lb-radius);
    padding: 28px 36px;
    box-shadow: var(--lb-shadow);
    margin-bottom: 24px;
    font-size: 15px;
    line-height: 1.7;
    white-space: pre-wrap;
}

.lb-lawyer-profile__bio h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--lb-accent);
    display: inline-block;
}

/* ─── Boksy usług ────────────────────────────────────────────────────────────── */
.lb-services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

@media (max-width: 600px) { .lb-services-grid { grid-template-columns: 1fr; } }

.lb-service-card {
    background: var(--lb-surface);
    border-radius: var(--lb-radius);
    padding: 24px;
    box-shadow: var(--lb-shadow);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--lb-transition);
}
.lb-service-card:hover, .lb-service-card.selected {
    border-color: var(--lb-accent);
    background: var(--lb-accent-light);
}

.lb-service-card__name { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.lb-service-card__duration { font-size: 13px; color: var(--lb-text-muted); margin-bottom: 12px; }
.lb-service-card__price { font-size: 22px; font-weight: 800; color: var(--lb-accent); }

/* ─── Kalendarz rezerwacji ───────────────────────────────────────────────────── */
.lb-booking-calendar {
    background: var(--lb-surface);
    border-radius: var(--lb-radius);
    padding: 28px;
    box-shadow: var(--lb-shadow);
    margin-bottom: 24px;
}

.lb-booking-calendar h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 20px;
}

.lb-calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.lb-calendar-nav-btn {
    background: none;
    border: 1.5px solid var(--lb-border);
    border-radius: var(--lb-radius-xs);
    width: 34px;
    height: 34px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--lb-transition);
}
.lb-calendar-nav-btn:hover {
    background: var(--lb-primary);
    color: #fff;
    border-color: var(--lb-primary);
}

.lb-calendar-month { font-size: 16px; font-weight: 700; }

.lb-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 6px;
}

.lb-calendar-weekday {
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--lb-text-muted);
    padding: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.lb-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.lb-calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--lb-radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: default;
    border: 1.5px solid transparent;
    transition: all var(--lb-transition);
}

.lb-calendar-day--other-month { color: var(--lb-text-light); }
.lb-calendar-day--today { border-color: var(--lb-accent); color: var(--lb-accent); }

.lb-calendar-day--available {
    cursor: pointer;
    color: var(--lb-text);
}
.lb-calendar-day--available:hover {
    background: var(--lb-primary);
    color: #fff;
    border-color: var(--lb-primary);
}

.lb-calendar-day--selected {
    background: var(--lb-accent);
    color: #fff;
    border-color: var(--lb-accent);
}

.lb-calendar-day--disabled {
    color: var(--lb-border);
    cursor: not-allowed;
    text-decoration: line-through;
}

/* Sloty godzinowe */
.lb-slots-label { font-size: 14px; font-weight: 700; margin: 20px 0 12px; }

.lb-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
    gap: 8px;
}

.lb-slot {
    padding: 9px 6px;
    text-align: center;
    border-radius: var(--lb-radius-sm);
    font-family: var(--lb-font);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    border: 1.5px solid var(--lb-border);
    background: var(--lb-surface);
    transition: all var(--lb-transition);
}
.lb-slot:hover, .lb-slot--selected {
    background: var(--lb-accent);
    color: #fff;
    border-color: var(--lb-accent);
}
.lb-slot--booked {
    background: var(--lb-bg);
    color: var(--lb-border);
    cursor: not-allowed;
    border-color: var(--lb-border);
    text-decoration: line-through;
}

/* ─── Dashboard ──────────────────────────────────────────────────────────────── */
.lb-dashboard {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 24px;
    align-items: start;
}

@media (max-width: 900px) {
    .lb-dashboard { grid-template-columns: 1fr; }
}

.lb-dashboard__nav {
    background: var(--lb-surface);
    border-radius: var(--lb-radius);
    padding: 12px;
    box-shadow: var(--lb-shadow);
    position: sticky;
    top: 24px;
}

.lb-dashboard__nav-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--lb-text-light);
    padding: 8px 12px 6px;
}

.lb-dashboard__nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--lb-radius-sm);
    color: var(--lb-text);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background var(--lb-transition), color var(--lb-transition);
    cursor: pointer;
}
.lb-dashboard__nav a:hover { background: var(--lb-bg); text-decoration: none; }
.lb-dashboard__nav a.active {
    background: var(--lb-primary);
    color: #fff;
}
.lb-dashboard__nav a .lb-nav-icon { font-size: 16px; width: 20px; text-align: center; }

.lb-dashboard__nav-separator {
    height: 1px;
    background: var(--lb-border);
    margin: 8px 0;
}

/* Przycisk wyloguj */
.lb-dashboard__nav a.lb-logout { color: var(--lb-error); }
.lb-dashboard__nav a.lb-logout:hover { background: #FEF2F2; }

.lb-dashboard__content {
    background: var(--lb-surface);
    border-radius: var(--lb-radius);
    padding: 32px;
    box-shadow: var(--lb-shadow);
    min-height: 400px;
}

.lb-dashboard__content h2 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--lb-bg);
}

.lb-dashboard__panel { display: none; }
.lb-dashboard__panel.active { display: block; }

/* ─── Profil completeness checker ───────────────────────────────────────────── */
.lb-completeness-box {
    border-radius: var(--lb-radius);
    border: 1.5px solid var(--lb-border);
    padding: 20px 24px;
    margin-bottom: 24px;
}

.lb-completeness-box h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 12px;
}

.lb-progress-wrap {
    background: var(--lb-bg);
    border-radius: 20px;
    height: 8px;
    margin-bottom: 16px;
    overflow: hidden;
}

.lb-progress-bar {
    height: 100%;
    background: var(--lb-accent);
    border-radius: 20px;
    transition: width 0.5s ease;
}

.lb-checklist { list-style: none; padding: 0; margin: 0; }
.lb-checklist li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    font-size: 13px;
    border-bottom: 1px solid var(--lb-bg);
}
.lb-checklist li:last-child { border-bottom: none; }
.lb-checklist li.done    { color: var(--lb-success); }
.lb-checklist li.missing { color: var(--lb-error); }

/* ─── Tabela wizyt ───────────────────────────────────────────────────────────── */
.lb-table-wrap { overflow-x: auto; }

.lb-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    font-family: var(--lb-font);
}

.lb-table th {
    text-align: left;
    padding: 10px 14px;
    background: var(--lb-bg);
    color: var(--lb-text-muted);
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1.5px solid var(--lb-border);
    white-space: nowrap;
}

.lb-table td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--lb-border);
    vertical-align: middle;
}

.lb-table tr:last-child td { border-bottom: none; }
.lb-table tbody tr:hover td { background: var(--lb-bg); }

.lb-table-empty {
    text-align: center;
    padding: 40px;
    color: var(--lb-text-muted);
    font-size: 14px;
}

/* ─── Badges ─────────────────────────────────────────────────────────────────── */
.lb-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    white-space: nowrap;
}
.lb-badge-confirmed { background: #F0FDF4; color: #166534; }
.lb-badge-completed { background: #EFF6FF; color: #1E40AF; }
.lb-badge-cancelled { background: #FEF2F2; color: #991B1B; }
.lb-badge-pending   { background: #FFFBEB; color: #92400E; }

/* ─── Ocena gwiazdkowa ───────────────────────────────────────────────────────── */
.lb-star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
}
.lb-star-rating input { display: none; }
.lb-star-rating label {
    font-size: 30px;
    color: var(--lb-border);
    cursor: pointer;
    transition: color var(--lb-transition);
    line-height: 1;
}
.lb-star-rating label:hover,
.lb-star-rating label:hover ~ label,
.lb-star-rating input:checked ~ label { color: var(--lb-accent); }

/* ─── Loader ─────────────────────────────────────────────────────────────────── */
.lb-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: lb-spin 0.65s linear infinite;
    vertical-align: middle;
}

.lb-spinner-dark {
    border-color: var(--lb-border);
    border-top-color: var(--lb-primary);
}

@keyframes lb-spin { to { transform: rotate(360deg); } }

.lb-loading {
    text-align: center;
    padding: 48px 20px;
    color: var(--lb-text-muted);
    font-size: 14px;
}

.lb-no-results {
    text-align: center;
    padding: 64px 20px;
    color: var(--lb-text-muted);
}
.lb-no-results__icon { font-size: 48px; margin-bottom: 16px; }
.lb-no-results h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.lb-no-results p { font-size: 14px; }

/* ─── Responsywność ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .lb-wrap { padding: 20px 16px; }
    .lb-form { padding: 28px 20px; }
    .lb-form h2 { font-size: 22px; }
    .lb-search-bar { padding: 20px; gap: 12px; }
    .lb-search-bar .lb-field { flex: 1 1 100%; }
    .lb-lawyer-profile__header { flex-direction: column; align-items: center; text-align: center; }
    .lb-dashboard__content { padding: 20px 16px; }
    .lb-booking-calendar { padding: 20px 16px; }
}

@media (max-width: 480px) {
    .lb-register-tabs .lb-tab-btn { font-size: 13px; padding: 10px 8px; }
    .lb-services-grid { grid-template-columns: 1fr; }
    .lb-slots-grid { grid-template-columns: repeat(4, 1fr); }
    .lb-table th, .lb-table td { padding: 8px 10px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ELEMENTOR OVERRIDE — resetujemy style nakładane przez Hello Elementor
   na elementy button, a, input wewnątrz .lb-wrap
   ═══════════════════════════════════════════════════════════════════════════ */

/* Reset wszystkich buttonów w lb-wrap */
.lb-wrap button,
.lb-wrap input[type="submit"],
.lb-wrap input[type="button"] {
    background: none;
    border: none;
    border-radius: 0;
    color: inherit;
    font-family: var(--lb-font);
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    padding: 0;
    margin: 0;
    cursor: pointer;
    text-decoration: none;
    box-shadow: none;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

/* Przyciski główne — pełny override */
.lb-wrap .lb-btn,
.lb-wrap button.lb-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 13px 28px !important;
    border-radius: var(--lb-radius-sm) !important;
    font-family: var(--lb-font) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px !important;
    cursor: pointer !important;
    transition: background var(--lb-transition), color var(--lb-transition),
                border-color var(--lb-transition), transform var(--lb-transition) !important;
    text-decoration: none !important;
    box-shadow: none !important;
    white-space: nowrap !important;
}

.lb-wrap .lb-btn-primary,
.lb-wrap button.lb-btn-primary {
    background: var(--lb-primary) !important;
    color: #fff !important;
    border: 2px solid var(--lb-primary) !important;
}
.lb-wrap .lb-btn-primary:hover,
.lb-wrap button.lb-btn-primary:hover {
    background: var(--lb-primary-hover) !important;
    border-color: var(--lb-primary-hover) !important;
    color: #fff !important;
    transform: translateY(-1px) !important;
}

.lb-wrap .lb-btn-accent,
.lb-wrap button.lb-btn-accent {
    background: var(--lb-accent) !important;
    color: #fff !important;
    border: 2px solid var(--lb-accent) !important;
}
.lb-wrap .lb-btn-accent:hover,
.lb-wrap button.lb-btn-accent:hover {
    background: var(--lb-accent-hover) !important;
    border-color: var(--lb-accent-hover) !important;
    color: #fff !important;
    transform: translateY(-1px) !important;
}

.lb-wrap .lb-btn-outline,
.lb-wrap button.lb-btn-outline {
    background: transparent !important;
    color: var(--lb-primary) !important;
    border: 2px solid var(--lb-primary) !important;
}
.lb-wrap .lb-btn-outline:hover,
.lb-wrap button.lb-btn-outline:hover {
    background: var(--lb-primary) !important;
    color: #fff !important;
}

.lb-wrap .lb-btn-full,
.lb-wrap button.lb-btn-full {
    width: 100% !important;
}

.lb-wrap .lb-btn:disabled,
.lb-wrap button.lb-btn:disabled {
    opacity: 0.45 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

/* Zakładki rejestracji — pełny override */
.lb-wrap .lb-tab-btn,
.lb-wrap button.lb-tab-btn {
    display: block !important;
    flex: 1 !important;
    padding: 13px 12px !important;
    background: var(--lb-bg) !important;
    border: 1.5px solid var(--lb-border) !important;
    border-radius: var(--lb-radius-sm) !important;
    font-family: var(--lb-font) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    color: var(--lb-text-muted) !important;
    text-align: center !important;
    transition: all var(--lb-transition) !important;
    outline: none !important;
    box-shadow: none !important;
}
.lb-wrap .lb-tab-btn:hover,
.lb-wrap button.lb-tab-btn:hover {
    border-color: var(--lb-primary) !important;
    color: var(--lb-primary) !important;
    background: var(--lb-bg) !important;
}
.lb-wrap .lb-tab-btn.active,
.lb-wrap button.lb-tab-btn.active {
    background: var(--lb-primary) !important;
    border-color: var(--lb-primary) !important;
    color: #fff !important;
}

/* Toggle hasła — pełny reset + własne style */
.lb-wrap .lb-pw-toggle,
.lb-wrap button.lb-pw-toggle {
    all: unset !important;
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    color: var(--lb-text-muted) !important;
    padding: 4px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: color var(--lb-transition) !important;
    outline: none !important;
    box-shadow: none !important;
    width: auto !important;
    height: auto !important;
    border-radius: 0 !important;
    line-height: 1 !important;
}
.lb-wrap .lb-pw-toggle:hover,
.lb-wrap button.lb-pw-toggle:hover {
    color: var(--lb-primary) !important;
    background: none !important;
    transform: translateY(-50%) !important;
}
.lb-wrap .lb-pw-toggle svg,
.lb-wrap button.lb-pw-toggle svg {
    display: block !important;
    pointer-events: none !important;
}

/* Inputy — reset różowych border od Elementora */
.lb-wrap input[type="text"],
.lb-wrap input[type="email"],
.lb-wrap input[type="password"],
.lb-wrap input[type="tel"],
.lb-wrap input[type="number"],
.lb-wrap textarea,
.lb-wrap select {
    border: 1.5px solid var(--lb-border) !important;
    border-radius: var(--lb-radius-sm) !important;
    color: var(--lb-text) !important;
    background: #fff !important;
    font-family: var(--lb-font) !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}
.lb-wrap input[type="text"]:focus,
.lb-wrap input[type="email"]:focus,
.lb-wrap input[type="password"]:focus,
.lb-wrap input[type="tel"]:focus,
.lb-wrap input[type="number"]:focus,
.lb-wrap textarea:focus,
.lb-wrap select:focus {
    border-color: var(--lb-accent) !important;
    box-shadow: 0 0 0 3px var(--lb-accent-light) !important;
    outline: none !important;
}

/* ─── Dashboard prawnika — dodatkowe style ───────────────────────────────────── */

.lb-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 8px;
}
@media (max-width: 640px) { .lb-stats-grid { grid-template-columns: 1fr; } }

.lb-stat-card {
    background: var(--lb-bg);
    border-radius: var(--lb-radius);
    padding: 20px;
    text-align: center;
    border: 1.5px solid var(--lb-border);
}
.lb-stat-card__value {
    font-size: 24px;
    font-weight: 800;
    color: var(--lb-accent);
    margin-bottom: 4px;
}
.lb-stat-card__label {
    font-size: 12px;
    color: var(--lb-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Specjalizacje — checkboxy */
.lb-checkboxes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 8px;
}
.lb-checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1.5px solid var(--lb-border);
    border-radius: var(--lb-radius-sm);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all var(--lb-transition);
    background: var(--lb-surface);
}
.lb-checkbox-item:hover { border-color: var(--lb-accent); }
.lb-checkbox-item input[type="checkbox"] {
    width: 16px !important;
    height: 16px !important;
    accent-color: var(--lb-accent);
    flex-shrink: 0;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}
.lb-checkbox-item:has(input:checked) {
    border-color: var(--lb-accent);
    background: var(--lb-accent-light);
}

/* Tabela dostępności */
.lb-avail-table-wrap { overflow-x: auto; }
.lb-avail-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.lb-avail-table th {
    text-align: left;
    padding: 10px 14px;
    background: var(--lb-bg);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--lb-text-muted);
    border-bottom: 1.5px solid var(--lb-border);
}
.lb-avail-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--lb-border);
    vertical-align: middle;
}
.lb-avail-row--inactive td { opacity: 0.4; }
.lb-avail-row--inactive td:first-child { opacity: 1; }

.lb-avail-table input[type="time"] {
    padding: 7px 10px !important;
    border: 1.5px solid var(--lb-border) !important;
    border-radius: var(--lb-radius-sm) !important;
    font-family: var(--lb-font) !important;
    font-size: 13px !important;
    width: 110px;
}
.lb-avail-table input[type="time"]:focus {
    border-color: var(--lb-accent) !important;
    outline: none !important;
}
.lb-avail-table input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    accent-color: var(--lb-accent);
    cursor: pointer;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* Wyjątek form */
.lb-exception-form {
    background: var(--lb-bg);
    border-radius: var(--lb-radius-sm);
    padding: 16px;
    margin-bottom: 16px;
}
.lb-exception-form input[type="date"] {
    padding: 10px 12px !important;
    border: 1.5px solid var(--lb-border) !important;
    border-radius: var(--lb-radius-sm) !important;
    font-family: var(--lb-font) !important;
    font-size: 14px !important;
    width: 100%;
}

/* ─── Tabela dostępności — override Elementor ────────────────────────────────── */
.lb-wrap .lb-avail-table,
.lb-wrap .lb-avail-table th,
.lb-wrap .lb-avail-table td {
    border-collapse: collapse !important;
    font-family: var(--lb-font) !important;
}

.lb-wrap .lb-avail-table {
    width: 100% !important;
    background: var(--lb-surface) !important;
    border-radius: var(--lb-radius) !important;
    overflow: hidden !important;
    box-shadow: var(--lb-shadow) !important;
    border: none !important;
}

.lb-wrap .lb-avail-table thead tr {
    background: var(--lb-bg) !important;
    border-bottom: 1.5px solid var(--lb-border) !important;
}

.lb-wrap .lb-avail-table th {
    padding: 11px 16px !important;
    text-align: left !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.6px !important;
    color: var(--lb-text-muted) !important;
    background: var(--lb-bg) !important;
    border: none !important;
}

.lb-wrap .lb-avail-table td {
    padding: 12px 16px !important;
    border: none !important;
    border-bottom: 1px solid var(--lb-border) !important;
    vertical-align: middle !important;
    font-size: 14px !important;
    color: var(--lb-text) !important;
    background: transparent !important;
}

.lb-wrap .lb-avail-table tbody tr:last-child td {
    border-bottom: none !important;
}

.lb-wrap .lb-avail-table tbody tr:hover td {
    background: var(--lb-bg) !important;
}

.lb-wrap .lb-avail-row--inactive td {
    opacity: 0.38 !important;
}
.lb-wrap .lb-avail-row--inactive td:first-child {
    opacity: 1 !important;
}

/* Inputy czasu w tabeli */
.lb-wrap .lb-avail-table input[type="time"] {
    padding: 8px 10px !important;
    border: 1.5px solid var(--lb-border) !important;
    border-radius: var(--lb-radius-sm) !important;
    font-family: var(--lb-font) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--lb-text) !important;
    background: var(--lb-bg) !important;
    width: 120px !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}
.lb-wrap .lb-avail-table input[type="time"]:focus {
    border-color: var(--lb-accent) !important;
    box-shadow: 0 0 0 3px var(--lb-accent-light) !important;
}
.lb-wrap .lb-avail-table input[type="time"]:disabled {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
}

/* Checkbox w tabeli */
/* avail-active checkbox — handled by custom checkbox rules below (appearance:none + black bg) */

/* Nazwa dnia */
.lb-wrap .lb-avail-row td:nth-child(2) {
    font-weight: 700 !important;
    font-size: 14px !important;
}

/* Responsywność tabeli dostępności */
@media (max-width: 640px) {
    .lb-wrap .lb-avail-table th:nth-child(1),
    .lb-wrap .lb-avail-table td:nth-child(1) { padding: 10px 10px !important; }
    .lb-wrap .lb-avail-table input[type="time"] { width: 100px !important; }
}

/* ─── Checkboxy — custom styl (białe ptaszki, czarne tło) ───────────────────── */

/* Specjalizacje */
.lb-wrap .lb-checkbox-item {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 10px 14px !important;
    border: 1.5px solid var(--lb-border) !important;
    border-radius: var(--lb-radius-sm) !important;
    cursor: pointer !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    font-family: var(--lb-font) !important;
    transition: all var(--lb-transition) !important;
    background: var(--lb-surface) !important;
    user-select: none !important;
    line-height: 1.3 !important;
}
.lb-wrap .lb-checkbox-item:hover {
    border-color: var(--lb-accent) !important;
    background: var(--lb-accent-light) !important;
}
.lb-wrap .lb-checkbox-item:has(input:checked) {
    border-color: var(--lb-accent) !important;
    background: var(--lb-accent-light) !important;
}

/* Custom checkbox — reset + własny wygląd */
.lb-wrap .lb-checkbox-item input[type="checkbox"],
.lb-wrap .lb-avail-active,
.lb-wrap .lb-avail-table .lb-avail-active {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    border: 2px solid var(--lb-border) !important;
    border-radius: 4px !important;
    background: #fff !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    position: relative !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    transition: background var(--lb-transition), border-color var(--lb-transition) !important;
}

/* Zaznaczony — czarne tło, biały ptaszek */
.lb-wrap .lb-checkbox-item input[type="checkbox"]:checked,
.lb-wrap .lb-avail-table .lb-avail-active:checked,
.lb-wrap .lb-avail-active:checked {
    background: var(--lb-primary) !important;
    border-color: var(--lb-primary) !important;
}

/* Biały ptaszek przez pseudo-element */
.lb-wrap .lb-checkbox-item input[type="checkbox"]:checked::after,
.lb-wrap .lb-avail-table .lb-avail-active:checked::after,
.lb-wrap .lb-avail-active:checked::after {
    content: '' !important;
    display: block !important;
    width: 5px !important;
    height: 9px !important;
    border: 2px solid #fff !important;
    border-top: none !important;
    border-left: none !important;
    transform: rotate(45deg) translateY(-1px) !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    margin-top: -5px !important;
    margin-left: -3px !important;
}

/* Hover na checkboxie */
.lb-wrap .lb-checkbox-item input[type="checkbox"]:hover:not(:checked),
.lb-wrap .lb-avail-active:hover:not(:checked) {
    border-color: var(--lb-accent) !important;
}

/* Tekst obok checkboxa w specjalizacjach */
.lb-wrap .lb-checkbox-item span {
    flex: 1 !important;
    line-height: 1.3 !important;
}

/* Usunięcie przycisku "Usuń" z tabeli wyjątków — stylowanie */
.lb-wrap .lb-avail-table .lb-exception-delete {
    background: transparent !important;
    color: var(--lb-error) !important;
    border: 1.5px solid var(--lb-error) !important;
    padding: 5px 12px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    border-radius: var(--lb-radius-sm) !important;
    cursor: pointer !important;
    transition: all var(--lb-transition) !important;
    box-shadow: none !important;
}
.lb-wrap .lb-avail-table .lb-exception-delete:hover {
    background: var(--lb-error) !important;
    color: #fff !important;
}

/* ─── Dashboard klienta — karty wizyt ───────────────────────────────────────── */

.lb-visit-card {
    background: var(--lb-surface);
    border: 1.5px solid var(--lb-border);
    border-radius: var(--lb-radius);
    padding: 20px 24px;
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 24px;
    transition: box-shadow var(--lb-transition);
}
.lb-visit-card:hover { box-shadow: var(--lb-shadow-hover); }
.lb-visit-card--past { opacity: 0.9; }

.lb-visit-card__lawyer {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 180px;
}
.lb-visit-card__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--lb-border);
    flex-shrink: 0;
}
.lb-visit-card__name {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}
.lb-visit-card__details {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.lb-visit-card__detail {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--lb-text-muted);
    white-space: nowrap;
}
.lb-visit-card__detail-icon { font-size: 14px; }
.lb-visit-card__action { min-width: 140px; text-align: right; }
.lb-rating-wrap { min-width: 160px; }

/* Gwiazdki (małe w historii) */
.lb-star-rating--sm label { font-size: 22px !important; }

/* Karta ulubionych */
.lb-favorite-card {
    background: var(--lb-surface);
    border: 1.5px solid var(--lb-border);
    border-radius: var(--lb-radius);
    padding: 16px 20px;
    transition: box-shadow var(--lb-transition), border-color var(--lb-transition);
}
.lb-favorite-card:hover {
    box-shadow: var(--lb-shadow-hover);
    border-color: var(--lb-accent);
}

/* Empty state */
.lb-empty-state {
    text-align: center;
    padding: 48px 20px;
    color: var(--lb-text-muted);
}
.lb-empty-state__icon  { font-size: 48px; margin-bottom: 16px; }
.lb-empty-state__title { font-size: 18px; font-weight: 700; color: var(--lb-text); margin-bottom: 8px; }
.lb-empty-state p      { font-size: 14px; margin: 0; }

/* Responsywność kart wizyt */
@media (max-width: 900px) {
    .lb-visit-card {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto auto;
    }
    .lb-visit-card__lawyer  { grid-column: 1; }
    .lb-visit-card__details { grid-column: 1 / -1; }
    .lb-visit-card__action  { grid-row: 1; grid-column: 2; }
    .lb-rating-wrap         { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
    .lb-visit-card { padding: 16px; gap: 12px; }
    .lb-visit-card__lawyer { min-width: 0; }
    .lb-visit-card__details { gap: 10px; }
}

/* ─── Profil prawnika — booking UI ──────────────────────────────────────────── */

.lb-booking-step {
    margin-bottom: 28px;
}

.lb-step-label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--lb-text-muted);
    margin-bottom: 14px;
}

/* Podsumowanie rezerwacji */
.lb-booking-summary {
    background: var(--lb-bg);
    border-radius: var(--lb-radius);
    overflow: hidden;
    border: 1.5px solid var(--lb-border);
}
.lb-booking-summary__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    font-size: 14px;
    border-bottom: 1px solid var(--lb-border);
}
.lb-booking-summary__row:last-child { border-bottom: none; }
.lb-booking-summary__row span { color: var(--lb-text-muted); }
.lb-booking-summary__row--total {
    background: var(--lb-surface);
    padding: 18px 20px;
}
.lb-booking-summary__row--total span {
    font-size: 15px;
    font-weight: 700;
    color: var(--lb-text);
}

/* Ulubieni na profilu */
.lb-profile-favorite {
    font-size: 26px;
    padding: 4px 8px;
    line-height: 1;
    background: none !important;
    border: none !important;
    cursor: pointer;
    color: var(--lb-border);
    transition: color var(--lb-transition), transform var(--lb-transition);
    box-shadow: none !important;
    outline: none !important;
}
.lb-profile-favorite:hover { color: var(--lb-accent); transform: scale(1.2); }
.lb-profile-favorite.is-active { color: var(--lb-accent); }

/* Responsywność profilu */
@media (max-width: 640px) {
    .lb-lawyer-profile__header { flex-direction: column; align-items: center; text-align: center; }
    .lb-lawyer-profile__header > div { width: 100%; }
    .lb-services-grid { grid-template-columns: 1fr; }
    .lb-slots-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ─── Fixes profilu prawnika ─────────────────────────────────────────────────── */

/* Fix 1: O mnie — usuń zbędny lewy padding */
.lb-wrap .lb-lawyer-profile__bio {
    padding: 24px !important;
}
.lb-wrap .lb-lawyer-profile__bio h3 {
    font-size: 16px !important;
    font-weight: 700 !important;
    margin: 0 0 12px !important;
    padding-bottom: 8px !important;
    border-bottom: 2px solid var(--lb-accent) !important;
    display: inline-block !important;
}

/* Fix 3: Serduszko — większe i bardziej widoczne */
.lb-wrap .lb-profile-favorite {
    width: 44px !important;
    height: 44px !important;
    font-size: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    border: 1.5px solid var(--lb-border) !important;
    background: var(--lb-surface) !important;
    color: var(--lb-text-muted) !important;
    cursor: pointer !important;
    transition: all var(--lb-transition) !important;
    box-shadow: var(--lb-shadow) !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
}
.lb-wrap .lb-profile-favorite:hover {
    border-color: var(--lb-accent) !important;
    color: var(--lb-accent) !important;
    transform: scale(1.1) !important;
    box-shadow: var(--lb-shadow-hover) !important;
    background: var(--lb-accent-light) !important;
}
.lb-wrap .lb-profile-favorite.is-active {
    border-color: var(--lb-accent) !important;
    color: var(--lb-accent) !important;
    background: var(--lb-accent-light) !important;
}

/* ─── Fixes faza 5.2 ─────────────────────────────────────────────────────────── */

/* Fix 1: O mnie — bez wcięcia tekstu */
.lb-wrap .lb-bio-text {
    font-size: 15px !important;
    line-height: 1.7 !important;
    color: var(--lb-text) !important;
    text-indent: 0 !important;
    white-space: pre-wrap !important;
    font-family: var(--lb-font) !important;
}

/* Fix 2: Inputy time w wyjątkach — identyczne jak w harmonogramie */
.lb-wrap .lb-avail-time-input,
.lb-wrap input.lb-avail-time-input {
    padding: 8px 10px !important;
    border: 1.5px solid var(--lb-border) !important;
    border-radius: var(--lb-radius-sm) !important;
    font-family: var(--lb-font) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--lb-text) !important;
    background: var(--lb-bg) !important;
    width: 120px !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}
.lb-wrap .lb-avail-time-input:focus,
.lb-wrap input.lb-avail-time-input:focus {
    border-color: var(--lb-accent) !important;
    box-shadow: 0 0 0 3px var(--lb-accent-light) !important;
}

/* Fix: date input w wyjątkach */
.lb-wrap #lb-exception-date {
    padding: 10px 12px !important;
    border: 1.5px solid var(--lb-border) !important;
    border-radius: var(--lb-radius-sm) !important;
    font-family: var(--lb-font) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: var(--lb-text) !important;
    background: var(--lb-surface) !important;
    outline: none !important;
    box-shadow: none !important;
    width: 100% !important;
}
.lb-wrap #lb-exception-date:focus {
    border-color: var(--lb-accent) !important;
    box-shadow: 0 0 0 3px var(--lb-accent-light) !important;
}

/* ─── Tabela spotkań prawnika — override Elementor ───────────────────────────── */
.lb-wrap .lb-table,
.lb-wrap .lb-table th,
.lb-wrap .lb-table td {
    border-collapse: collapse !important;
    font-family: var(--lb-font) !important;
}

.lb-wrap .lb-table {
    width: 100% !important;
    background: var(--lb-surface) !important;
    border-radius: var(--lb-radius) !important;
    overflow: hidden !important;
    box-shadow: var(--lb-shadow) !important;
    border: none !important;
}

.lb-wrap .lb-table thead tr {
    background: var(--lb-bg) !important;
}

.lb-wrap .lb-table th {
    padding: 11px 16px !important;
    text-align: left !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.6px !important;
    color: var(--lb-text-muted) !important;
    background: var(--lb-bg) !important;
    border: none !important;
    border-bottom: 1.5px solid var(--lb-border) !important;
}

.lb-wrap .lb-table td {
    padding: 13px 16px !important;
    border: none !important;
    border-bottom: 1px solid var(--lb-border) !important;
    vertical-align: middle !important;
    font-size: 14px !important;
    color: var(--lb-text) !important;
    background: transparent !important;
}

.lb-wrap .lb-table tbody tr:last-child td {
    border-bottom: none !important;
}

.lb-wrap .lb-table tbody tr:hover td {
    background: var(--lb-bg) !important;
}

/* ─── Wyszukiwarka — filtry ──────────────────────────────────────────────────── */
.lb-search-filters {
    background: var(--lb-surface);
    border-radius: var(--lb-radius);
    padding: 20px 24px;
    box-shadow: var(--lb-shadow);
    margin-bottom: 28px;
}

.lb-search-filters__row {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.lb-search-filters__field {
    flex: 1 1 160px;
}

.lb-search-filters__field--wide {
    flex: 2 1 240px;
}

.lb-search-filters__field input,
.lb-search-filters__field select {
    width: 100% !important;
    padding: 11px 14px !important;
    border: 1.5px solid var(--lb-border) !important;
    border-radius: var(--lb-radius-sm) !important;
    font-family: var(--lb-font) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: var(--lb-text) !important;
    background: var(--lb-bg) !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    transition: border-color var(--lb-transition), box-shadow var(--lb-transition) !important;
}

.lb-search-filters__field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23777' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    padding-right: 36px !important;
}

.lb-search-filters__field input:focus,
.lb-search-filters__field select:focus {
    border-color: var(--lb-accent) !important;
    box-shadow: 0 0 0 3px var(--lb-accent-light) !important;
    background: var(--lb-surface) !important;
}

/* Ikona wyszukiwania */
.lb-search-input-wrap {
    position: relative;
}
.lb-search-input-wrap::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23aaa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
}
.lb-search-input-wrap input {
    padding-left: 40px !important;
}

/* ─── Formularz na stronę główną ─────────────────────────────────────────────── */
.lb-search-form-home {
    width: 100%;
}

.lb-home-filter__fields {
    display: flex;
    gap: 12px;
    align-items: stretch;
    flex-wrap: wrap;
}

.lb-home-filter__field {
    flex: 1 1 200px;
}

.lb-home-filter__select {
    width: 100% !important;
    padding: 13px 16px !important;
    border: 1.5px solid var(--lb-border) !important;
    border-radius: var(--lb-radius-sm) !important;
    font-family: var(--lb-font) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: var(--lb-text) !important;
    background: var(--lb-surface) !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23777' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    padding-right: 36px !important;
    transition: border-color var(--lb-transition) !important;
    cursor: pointer !important;
}

.lb-home-filter__select:focus {
    border-color: var(--lb-accent) !important;
    box-shadow: 0 0 0 3px var(--lb-accent-light) !important;
}

.lb-home-filter__btn {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    padding: 13px 28px !important;
}

/* Responsywność */
@media (max-width: 768px) {
    .lb-search-filters__row { flex-direction: column; }
    .lb-search-filters__field { flex: 1 1 100%; }
    .lb-home-filter__fields { flex-direction: column; }
    .lb-home-filter__btn { width: 100% !important; }
}

/* ─── Fixes faza 6 ───────────────────────────────────────────────────────────── */

/* Fix 2: Złota ramka zawsze widoczna na kartach (nie tylko hover) */
.lb-wrap .lb-lawyer-card {
    border: 1.5px solid var(--lb-border) !important;
}
.lb-wrap .lb-lawyer-card:hover {
    border-color: var(--lb-accent) !important;
}

/* Fix 1: Serduszko na kartach wyszukiwania — override Elementor purple */
.lb-wrap .lb-lawyer-card .lb-favorite-btn,
.lb-wrap .lb-lawyer-card button.lb-favorite-btn {
    all: unset !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    border: 1.5px solid var(--lb-border) !important;
    background: var(--lb-surface) !important;
    color: var(--lb-text-muted) !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    flex-shrink: 0 !important;
    transition: all var(--lb-transition) !important;
    line-height: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}
.lb-wrap .lb-lawyer-card .lb-favorite-btn:hover,
.lb-wrap .lb-lawyer-card button.lb-favorite-btn:hover {
    border-color: var(--lb-accent) !important;
    color: var(--lb-accent) !important;
    background: var(--lb-accent-light) !important;
    transform: scale(1.1) !important;
}
.lb-wrap .lb-lawyer-card .lb-favorite-btn.is-active,
.lb-wrap .lb-lawyer-card button.lb-favorite-btn.is-active {
    border-color: var(--lb-accent) !important;
    color: var(--lb-accent) !important;
    background: var(--lb-accent-light) !important;
}

/* Fix 3: Search bar na stronie wyników — elegancki, 4 kolumny */
.lb-search-filters {
    background: var(--lb-surface) !important;
    border-radius: var(--lb-radius) !important;
    padding: 20px 24px !important;
    box-shadow: var(--lb-shadow) !important;
    margin-bottom: 24px !important;
    border: 1.5px solid var(--lb-border) !important;
}

.lb-search-filters__row {
    display: grid !important;
    grid-template-columns: 1.8fr 1.4fr 1.4fr auto !important;
    gap: 12px !important;
    align-items: center !important;
}

.lb-search-filters__field {
    flex: unset !important;
}

.lb-search-filters__field--wide {
    flex: unset !important;
}

.lb-search-filters__field input,
.lb-search-filters__field select {
    background: var(--lb-bg) !important;
    height: 46px !important;
}

#lb-search-btn {
    height: 46px !important;
    white-space: nowrap !important;
    padding: 0 24px !important;
}

/* Padding nad licznikiem wyników */
#lb-search-results {
    padding-top: 8px !important;
}

.lb-results-header {
    margin-bottom: 20px !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid var(--lb-border) !important;
}

@media (max-width: 900px) {
    .lb-search-filters__row {
        grid-template-columns: 1fr 1fr !important;
    }
    .lb-search-filters__field--wide {
        grid-column: 1 / -1 !important;
    }
    #lb-search-btn {
        grid-column: 1 / -1 !important;
        width: 100% !important;
    }
}

@media (max-width: 560px) {
    .lb-search-filters__row {
        grid-template-columns: 1fr !important;
    }
    .lb-search-filters__field--wide {
        grid-column: unset !important;
    }
}

/* ─── Formularz strony głównej — redesign z ikonkami ─────────────────────────── */

.lb-search-form-home { width: 100%; }

.lb-home-filter__fields {
    display: flex;
    align-items: stretch;
    background: var(--lb-surface);
    border: 1.5px solid var(--lb-border);
    border-radius: 60px;
    overflow: hidden;
    box-shadow: var(--lb-shadow);
    height: 60px;
}

/* Pole z ikonką i selectem */
.lb-home-filter__field {
    flex: 1;
    min-width: 0;
}

.lb-home-filter__select-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 20px;
    height: 100%;
    position: relative;
}

.lb-home-filter__icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    opacity: 0.6;
}

.lb-home-filter__select {
    flex: 1 !important;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    font-family: var(--lb-font) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--lb-text) !important;
    outline: none !important;
    box-shadow: none !important;
    cursor: pointer !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    height: 100% !important;
    min-width: 0 !important;
}

.lb-home-filter__select option { color: var(--lb-text); }

.lb-home-filter__chevron {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    pointer-events: none;
}

/* Separator pionowy między polami */
.lb-home-filter__separator {
    width: 1px;
    background: var(--lb-border);
    margin: 12px 0;
    flex-shrink: 0;
}

/* Przycisk submit */
.lb-home-filter__btn-submit {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: var(--lb-accent) !important;
    color: #fff !important;
    border: none !important;
    padding: 0 28px !important;
    font-family: var(--lb-font) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    border-radius: 0 60px 60px 0 !important;
    transition: background var(--lb-transition) !important;
    outline: none !important;
    box-shadow: none !important;
    letter-spacing: 0.3px !important;
    margin: 0 !important;
    height: 100% !important;
}
.lb-home-filter__btn-submit:hover {
    background: var(--lb-accent-hover) !important;
}
.lb-home-filter__btn-submit svg {
    flex-shrink: 0 !important;
}

/* Responsywność formularza głównego */
@media (max-width: 768px) {
    .lb-home-filter__fields {
        flex-direction: column;
        border-radius: var(--lb-radius);
        height: auto;
        overflow: visible;
    }
    .lb-home-filter__separator { display: none; }
    .lb-home-filter__select-wrap {
        padding: 14px 16px;
        border-bottom: 1px solid var(--lb-border);
    }
    .lb-home-filter__btn-submit {
        border-radius: 0 0 var(--lb-radius) var(--lb-radius) !important;
        justify-content: center !important;
        padding: 16px !important;
        width: 100% !important;
        height: auto !important;
    }
}

/* ─── Strona podziękowania (thank-you) ───────────────────────────────────────── */
.lb-thankyou-box {
    background: #fff;
    border: 1.5px solid var(--lb-border);
    border-radius: var(--lb-radius);
    padding: 36px 32px;
    margin-bottom: 32px;
    box-shadow: var(--lb-shadow);
    text-align: center;
    max-width: 640px;
}

.lb-thankyou-box__icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.lb-thankyou-box__title {
    font-size: 24px !important;
    font-weight: 800 !important;
    margin: 0 0 8px !important;
    color: var(--lb-text) !important;
}

.lb-thankyou-box__sub {
    font-size: 14px;
    color: var(--lb-text-muted);
    margin-bottom: 24px;
}

.lb-thankyou-box__details {
    background: var(--lb-bg);
    border-radius: var(--lb-radius-sm);
    overflow: hidden;
    margin-bottom: 24px;
    text-align: left;
    border: 1px solid var(--lb-border);
}

.lb-thankyou-box__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 20px;
    border-bottom: 1px solid var(--lb-border);
    font-size: 14px;
    flex-wrap: wrap;
    gap: 8px;
}

.lb-thankyou-box__row:last-child { border-bottom: none; }
.lb-thankyou-box__row span { color: var(--lb-text-muted); }
.lb-thankyou-box__row strong { font-weight: 700; }

.lb-thankyou-box__meet-link {
    color: var(--lb-accent) !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}
.lb-thankyou-box__meet-link:hover { text-decoration: underline !important; }

.lb-thankyou-box__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 560px) {
    .lb-thankyou-box { padding: 24px 16px; }
    .lb-thankyou-box__actions { flex-direction: column; }
    .lb-thankyou-box__actions .lb-btn { width: 100%; }
}

/* ─── Fix "O mnie" — wyrównanie do lewej ────────────────────────────────────── */
.lb-wrap .lb-lawyer-profile__bio h3 {
    display: block !important;
    text-align: left !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
}

.lb-wrap .lb-bio-text {
    text-align: left !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
    text-indent: 0 !important;
}

/* ─── Fix "O mnie" — auto height, bez paddingu na dole ──────────────────────── */
.lb-wrap .lb-lawyer-profile__bio {
    padding: 24px !important;
    /* auto height — dostosowuje się do treści */
    height: auto !important;
    min-height: 0 !important;
}

/* ─── Fix dashboard prawnika — z-index nawigacji ────────────────────────────── */
.lb-wrap .lb-dashboard__nav {
    position: relative !important;  /* zamiast sticky który powoduje overlap */
    top: auto !important;
    z-index: 1 !important;
}

/* Na dużych ekranach sticky jest OK ale tylko jeśli nie nakłada się */
@media (min-width: 1024px) {
    .lb-wrap .lb-dashboard__nav {
        position: sticky !important;
        top: 24px !important;
        z-index: 10 !important;
        align-self: start !important;
    }
    /* Treść dashboardu ma wyższy z-index żeby checkbox był ponad nav */
    .lb-wrap .lb-dashboard__content {
        position: relative !important;
        z-index: 20 !important;
    }
}

/* ─── Fix 1: WC error notice — ikona nie nachodzi na tekst ──────────────────── */
.woocommerce-checkout .woocommerce-error,
.woocommerce-checkout .woocommerce-message,
.woocommerce-checkout .woocommerce-info {
    padding-left: 3.5em !important;
    position: relative !important;
    font-family: "Montserrat", sans-serif !important;
    font-size: 14px !important;
}

.woocommerce-checkout .woocommerce-error::before,
.woocommerce-checkout .woocommerce-message::before,
.woocommerce-checkout .woocommerce-info::before {
    position: absolute !important;
    left: 1em !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}

/* ─── Fix 3: "O mnie" — krótka złota linia, mniejszy padding ────────────────── */
.lb-wrap .lb-lawyer-profile__bio {
    padding: 20px 24px !important;
    height: auto !important;
    min-height: 0 !important;
}

.lb-wrap .lb-lawyer-profile__bio h3 {
    font-size: 15px !important;
    font-weight: 700 !important;
    margin: 0 0 10px !important;
    padding-bottom: 8px !important;
    /* Krótka złota linia tylko pod tekstem nagłówka */
    border-bottom: none !important;
    display: inline-block !important;
    position: relative !important;
}

.lb-wrap .lb-lawyer-profile__bio h3::after {
    content: '' !important;
    display: block !important;
    height: 2px !important;
    background: var(--lb-accent) !important;
    margin-top: 6px !important;
    border-radius: 2px !important;
    width: 100% !important;
}

.lb-wrap .lb-bio-text {
    margin-top: 10px !important;
    padding-top: 0 !important;
}

/* ─── Fix 4: Profil prawnika — responsywny header ────────────────────────────── */
@media (max-width: 640px) {
    .lb-wrap .lb-lawyer-profile__header {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        padding: 24px 20px !important;
        gap: 16px !important;
    }

    .lb-wrap .lb-lawyer-profile__header > div {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .lb-wrap .lb-lawyer-profile__name {
        text-align: center !important;
    }

    .lb-wrap .lb-lawyer-profile__rating {
        justify-content: center !important;
    }

    .lb-wrap .lb-lawyer-profile__tags {
        justify-content: center !important;
    }

    .lb-wrap .lb-lawyer-profile__header > div > div[style*="justify-content:space-between"] {
        justify-content: center !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 12px !important;
    }

    .lb-wrap .lb-profile-favorite {
        align-self: center !important;
    }
}

/* ─── Fix 5: Dashboard klienta — karty wizyt na mobile ──────────────────────── */
@media (max-width: 900px) {
    .lb-visit-card {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        padding: 16px !important;
    }

    .lb-visit-card__lawyer {
        min-width: 0 !important;
    }

    .lb-visit-card__details {
        gap: 10px !important;
    }

    .lb-visit-card__action {
        min-width: 0 !important;
        text-align: left !important;
        padding-top: 4px !important;
        border-top: 1px solid var(--lb-border) !important;
    }

    .lb-rating-wrap {
        min-width: 0 !important;
        padding-top: 4px !important;
        border-top: 1px solid var(--lb-border) !important;
    }
}

/* ─── Fix 6: Dashboard prawnika — tabela spotkań na mobile ──────────────────── */
@media (max-width: 768px) {
    /* Zastąp tabelę kartami na mobile */
    .lb-dashboard__content .lb-table thead {
        display: none !important;
    }

    .lb-dashboard__content .lb-table,
    .lb-dashboard__content .lb-table tbody,
    .lb-dashboard__content .lb-table tr,
    .lb-dashboard__content .lb-table td {
        display: block !important;
        width: 100% !important;
    }

    .lb-dashboard__content .lb-table tr {
        border: 1.5px solid var(--lb-border) !important;
        border-radius: var(--lb-radius-sm) !important;
        margin-bottom: 10px !important;
        padding: 12px 14px !important;
        background: var(--lb-surface) !important;
        box-shadow: var(--lb-shadow) !important;
    }

    .lb-dashboard__content .lb-table td {
        padding: 4px 0 !important;
        border: none !important;
        font-size: 13px !important;
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
    }

    .lb-dashboard__content .lb-table td:first-child { font-weight: 700 !important; }
    .lb-dashboard__content .lb-table td:empty { display: none !important; }

    /* Przypisz etykiety przez attr */
    .lb-dashboard__content .lb-table td::before {
        content: attr(data-label) !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        color: var(--lb-text-muted) !important;
        min-width: 70px !important;
    }
}

/* ─── Fix 1: Wizyty klienta mobile — wyrównanie i brak separatora ───────────── */
@media (max-width: 900px) {
    .lb-visit-card__action {
        border-top: none !important;
        padding-top: 0 !important;
    }
    .lb-visit-card__action .lb-btn {
        width: 100% !important;
        justify-content: center !important;
    }
    /* Wyrównaj lawyer info do lewej */
    .lb-visit-card__lawyer {
        align-items: flex-start !important;
        text-align: left !important;
    }
}

/* ─── Fix 3: "O mnie" — brak wyśrodkowania, poprawiony padding ──────────────── */
.lb-wrap .lb-lawyer-profile__bio {
    padding: 20px 24px !important;
    height: auto !important;
    min-height: 0 !important;
}

.lb-wrap .lb-lawyer-profile__bio h3 {
    display: inline-block !important;
    text-align: left !important;
    margin: 0 0 12px !important;
    padding: 0 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
}

.lb-wrap .lb-lawyer-profile__bio h3::after {
    content: '' !important;
    display: block !important;
    height: 2px !important;
    width: 100% !important;
    background: var(--lb-accent) !important;
    margin-top: 6px !important;
    border-radius: 2px !important;
}

.lb-wrap .lb-bio-text {
    margin: 0 !important;
    padding: 0 !important;
    text-indent: 0 !important;
    text-align: left !important;
    font-size: 15px !important;
    line-height: 1.7 !important;
}

@media (max-width: 640px) {
    .lb-wrap .lb-lawyer-profile__bio {
        padding: 16px !important;
    }
    .lb-wrap .lb-lawyer-profile__bio h3 {
        text-align: left !important;
    }
}

/* ─── Fix 4: Dashboard prawnika — usuń hover na kartach mobile ───────────────── */
@media (max-width: 768px) {
    .lb-dashboard__content .lb-table tbody tr:hover td {
        background: transparent !important;
    }
    .lb-dashboard__content .lb-table tr:hover {
        background: var(--lb-surface) !important;
    }
}

/* ─── Fix 6: Stats grid — zarobki jako pełna szerokość na mobile ─────────────── */
@media (max-width: 600px) {
    .lb-stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .lb-stats-grid > div:last-child {
        grid-column: 1 / -1 !important;  /* zarobki zajmują pełną szerokość */
    }
}

@media (max-width: 380px) {
    .lb-stats-grid {
        grid-template-columns: 1fr !important;
    }
    .lb-stats-grid > div:last-child {
        grid-column: unset !important;
    }
}


/* ═══════════════════════════════════════════════════════════════════
   "O MNIE" — ostateczny, czysty override (zastępuje wszystkie poprzednie)
   ═══════════════════════════════════════════════════════════════════ */
.lb-wrap .lb-lawyer-profile__bio,
.lb-lawyer-profile__bio {
    /* Reset wszystkich poprzednich nadpisań */
    padding: 20px !important;
    margin: 0 0 24px !important;
    background: #fff !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07) !important;
    border: 1.5px solid #E5E5E5 !important;
    /* Automatyczna wysokość */
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
}

.lb-wrap .lb-lawyer-profile__bio h3,
.lb-lawyer-profile__bio h3 {
    all: unset !important;
    display: block !important;
    font-family: "Montserrat", sans-serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #111 !important;
    margin: 0 0 6px !important;
    padding: 0 !important;
    text-align: left !important;
}

/* Złota linia — tylko pod słowem, nie przez cały box */
.lb-wrap .lb-lawyer-profile__bio h3::after,
.lb-lawyer-profile__bio h3::after {
    content: "" !important;
    display: block !important;
    width: 40px !important;
    height: 2px !important;
    background: #BA935E !important;
    margin-top: 5px !important;
    border-radius: 2px !important;
}

.lb-wrap .lb-bio-text,
.lb-bio-text {
    display: block !important;
    font-family: "Montserrat", sans-serif !important;
    font-size: 15px !important;
    line-height: 1.7 !important;
    color: #111 !important;
    margin: 12px 0 0 !important;
    padding: 0 !important;
    text-indent: 0 !important;
    text-align: left !important;
    white-space: pre-wrap !important;
    word-break: break-word !important;
}
