/* Sistema Rosa Binotti — Componentes reutilizáveis */

/* Botões */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 46px;
    padding: 0 22px;
    border-radius: var(--rb-radius-sm);
    font-weight: 600;
    font-size: 14.5px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform var(--rb-transition), box-shadow var(--rb-transition),
        background var(--rb-transition), border-color var(--rb-transition);
    white-space: nowrap;
    text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn svg { width: 18px; height: 18px; }

.btn-primary {
    background: var(--rb-gradient);
    color: var(--rb-text-on-dark);
    box-shadow: var(--rb-shadow-sm);
}
.btn-primary:hover {
    background: var(--rb-gradient-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--rb-primary);
    border-color: var(--rb-primary);
}
.btn-secondary:hover {
    background: var(--rb-surface-soft);
}

.btn-neutral {
    background: var(--rb-background);
    color: var(--rb-secondary);
    border-color: var(--rb-border);
}
.btn-neutral:hover {
    background: var(--rb-border-light);
}

.btn-danger {
    background: transparent;
    color: var(--rb-danger);
    border-color: var(--rb-danger);
}
.btn-danger:hover {
    background: rgba(132, 46, 40, 0.06);
}

.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }

/* Campos de formulário */
.field { margin-bottom: 20px; }
.field label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--rb-secondary);
    margin-bottom: 7px;
}
.field .hint { font-size: 12.5px; color: var(--rb-text-muted); margin-top: 6px; }
.field .error { font-size: 12.5px; color: var(--rb-danger); margin-top: 6px; }

.input, select.input, textarea.input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    background: var(--rb-surface);
    border: 1px solid var(--rb-border);
    border-radius: var(--rb-radius-sm);
    color: var(--rb-text-primary);
    font-family: var(--rb-font-interface);
    font-size: 15px;
    transition: border-color var(--rb-transition), box-shadow var(--rb-transition);
}
textarea.input { height: auto; min-height: 120px; padding-top: 14px; resize: vertical; }
.input::placeholder { color: var(--rb-text-muted); }
.input:focus, select.input:focus, textarea.input:focus {
    border-color: var(--rb-primary);
    box-shadow: 0 0 0 3px rgba(89, 49, 37, 0.10);
    outline: none;
}

.input-group { position: relative; }
.input-group .input { padding-right: 48px; }
.input-group .input-action {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: var(--rb-text-muted);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.input-group .input-action:hover { background: var(--rb-surface-soft); color: var(--rb-primary); }
.input-group .input-action svg { width: 19px; height: 19px; }
.input-action .icon-eye-off { display: none; }
.input-action.is-visible .icon-eye { display: none; }
.input-action.is-visible .icon-eye-off { display: flex; }

.checkbox-field { display: flex; align-items: center; gap: 10px; }
.checkbox-field input { width: 18px; height: 18px; accent-color: var(--rb-primary); }
.checkbox-field label { margin: 0; font-weight: 500; color: var(--rb-text-secondary); font-size: 14px; }

.checkbox-field-inline { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--rb-text-muted); cursor: pointer; }
.checkbox-field-inline input { accent-color: var(--rb-primary); }

/* Lista de procedimentos com múltipla escolha (Registrar sessão) */
.procedure-checklist {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 8px;
}
.procedure-checklist-group {
    border: 1px solid var(--rb-border-light);
    border-radius: var(--rb-radius-sm);
    padding: 10px 14px 12px;
    margin: 0;
}
.procedure-checklist-group legend {
    padding: 0 4px;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--rb-text-muted);
}
.procedure-checklist-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    font-size: 13.5px;
    color: var(--rb-text-secondary);
    cursor: pointer;
}
.procedure-checklist-item input { accent-color: var(--rb-primary); flex-shrink: 0; }

.professional-photo-preview { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.professional-photo-preview img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--rb-border-light);
}

/* Controle segmentado Sim/Não */
.segmented {
    display: inline-flex;
    border: 1px solid var(--rb-border);
    border-radius: 999px;
    overflow: hidden;
    background: var(--rb-surface);
    width: fit-content;
}
.segmented input[type="radio"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
.segmented label {
    padding: 9px 22px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--rb-text-secondary);
    cursor: pointer;
    margin: 0;
    transition: background var(--rb-transition), color var(--rb-transition);
}
.segmented input[type="radio"]:checked + label {
    background: var(--rb-primary);
    color: #fff;
}
.segmented input[type="radio"]:focus-visible + label {
    outline: 2px solid var(--rb-primary);
    outline-offset: -2px;
}

/* Navegação interna da anamnese (âncoras para cada seção) */
.anamnesis-nav {
    position: sticky;
    top: 72px;
    z-index: 20;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    background: var(--rb-background);
    padding: 12px 0;
    margin-bottom: 8px;
}
.anamnesis-nav a {
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--rb-surface);
    border: 1px solid var(--rb-border-light);
    color: var(--rb-secondary);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
}
.anamnesis-nav a:hover { border-color: var(--rb-primary); color: var(--rb-primary); text-decoration: none; }

.anamnesis-section { scroll-margin-top: 140px; margin-bottom: 20px; }

/* Uma linha por pergunta Sim/Não, evitando um card por campo */
.field-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--rb-border-light);
}
.field-row:last-child { border-bottom: none; }
.field-row .field-row-label { font-size: 14.5px; color: var(--rb-text-primary); font-weight: 500; }
.field-row .field-row-label .hint { display: block; font-size: 12px; color: var(--rb-text-muted); font-weight: 400; margin-top: 2px; }
.field-row .error { margin: 6px 0 0; text-align: right; }

.conditional-field { padding: 14px 0 4px; border-top: 1px dashed var(--rb-border-light); }

/* Texto de declaração/aviso citado (assinatura por checkbox) */
.declaration-text {
    margin: 0;
    padding: 18px 20px;
    background: var(--rb-surface-soft);
    border-left: 3px solid var(--rb-primary);
    border-radius: 0 10px 10px 0;
    font-family: var(--rb-font-title);
    font-size: 17px;
    line-height: 1.6;
    color: var(--rb-text-primary);
}

@media (max-width: 640px) {
    .field-row { flex-direction: column; align-items: flex-start; gap: 10px; }
    .field-row .error { text-align: left; }
}

/* Cards */
.card {
    background: var(--rb-surface);
    border: 1px solid var(--rb-border-light);
    border-radius: var(--rb-radius-md);
    box-shadow: var(--rb-shadow-sm);
    padding: 28px;
}
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 12px;
}
.card-header h2, .card-header h3 { margin: 0; }

/* Badges de status */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    background: var(--rb-surface-soft);
    color: var(--rb-secondary);
    border: 1px solid var(--rb-border-light);
}
.badge-success { color: var(--rb-success); background: rgba(82, 99, 78, 0.08); border-color: rgba(82, 99, 78, 0.18); }
.badge-warning { color: var(--rb-warning); background: rgba(154, 106, 58, 0.08); border-color: rgba(154, 106, 58, 0.18); }
.badge-danger  { color: var(--rb-danger); background: rgba(132, 46, 40, 0.08); border-color: rgba(132, 46, 40, 0.18); }

/* Toasts */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
    max-width: min(360px, calc(100vw - 32px));
}
.toast {
    background: var(--rb-surface);
    border: 1px solid var(--rb-border-light);
    border-left: 4px solid var(--rb-secondary);
    border-radius: 10px;
    box-shadow: var(--rb-shadow-md);
    padding: 14px 16px;
    font-size: 14px;
    color: var(--rb-text-primary);
}
.toast-success { border-left-color: var(--rb-success); }
.toast-error   { border-left-color: var(--rb-danger); }
.toast-warning { border-left-color: var(--rb-warning); }

/* Alertas inline (banners dentro do conteúdo, fora do toast) */
.alert {
    border-radius: 10px;
    padding: 13px 16px;
    font-size: 13.5px;
    border: 1px solid transparent;
}
.alert-info    { background: rgba(89, 49, 37, 0.05);   border-color: rgba(89, 49, 37, 0.15);   color: var(--rb-primary); }
.alert-success { background: rgba(82, 99, 78, 0.06);   border-color: rgba(82, 99, 78, 0.2);    color: var(--rb-success); }
.alert-warning { background: rgba(154, 106, 58, 0.06); border-color: rgba(154, 106, 58, 0.2);  color: var(--rb-warning); }
.alert-error   { background: rgba(132, 46, 40, 0.06);  border-color: rgba(132, 46, 40, 0.2);   color: var(--rb-danger); }

/* Tabelas */
.table-wrapper {
    overflow-x: auto;
    border: 1px solid var(--rb-border-light);
    border-radius: var(--rb-radius-md);
}
table.table { width: 100%; border-collapse: collapse; min-width: 560px; }
table.table th {
    text-align: left;
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--rb-text-muted);
    padding: 14px 18px;
    background: var(--rb-surface-soft);
    border-bottom: 1px solid var(--rb-border-light);
}
table.table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--rb-border-light);
    font-size: 14.5px;
    color: var(--rb-text-primary);
}
table.table tbody tr:last-child td { border-bottom: none; }
table.table tbody tr:hover { background: var(--rb-surface-soft); }
table.table tbody tr.table-row-link { cursor: pointer; }
.table-row-link-name { color: var(--rb-text-primary); font-weight: 600; text-decoration: none; }
.table-row-link-name:hover { color: var(--rb-primary); text-decoration: underline; }

/* Estado vazio */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--rb-text-secondary);
}
.empty-state .icon { margin: 0 auto 16px; color: var(--rb-text-muted); }
.empty-state .icon svg { width: 40px; height: 40px; margin: 0 auto; }

/* Avatar */
.avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--rb-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}
.avatar-lg { width: 56px; height: 56px; font-size: 20px; }

/* Cabeçalho de página padrão (título + ações) */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.page-header-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.patient-header { display: flex; align-items: center; gap: 16px; }

.btn-sm { height: 36px; padding: 0 16px; font-size: 13px; }
.btn-icon-only { width: 36px; padding: 0; flex-shrink: 0; }
.btn-icon-only svg { width: 16px; height: 16px; }

.row-actions { display: flex; gap: 8px; flex-wrap: nowrap; align-items: center; }

/* Grade de formulário multi-coluna */
.form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 24px;
}
.field-span-2 { grid-column: span 2; }
.field-span-3 { grid-column: span 3; }

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    padding-top: 24px;
    border-top: 1px solid var(--rb-border-light);
}

.input-uppercase { text-transform: uppercase; }

.filters-card { margin-bottom: 0; }

@media (max-width: 768px) {
    .form-grid { grid-template-columns: 1fr; }
    .field-span-2, .field-span-3 { grid-column: span 1; }
}

/* Abas do perfil do paciente */
.tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--rb-border-light);
    margin-bottom: 24px;
    overflow-x: auto;
}
.tab-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--rb-text-secondary);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}
.tab-link svg { width: 17px; height: 17px; flex-shrink: 0; }
.tab-link:hover { color: var(--rb-primary); text-decoration: none; }
.tab-link.active { color: var(--rb-primary); border-bottom-color: var(--rb-primary); }

/* Em telas de celular a fileira de abas não cabe e exigia arrastar pro
   lado pra achar "Fotos"/"Histórico" — abaixo de 768px (mesmo ponto em
   que o menu lateral vira gaveta, ver layout.css) troca pra uma grade de
   botões com ícone, todos visíveis de uma vez, sem scroll horizontal. */
@media (max-width: 768px) {
    .tabs {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
        overflow-x: visible;
        border-bottom: none;
        background: var(--rb-surface);
        border: 1px solid var(--rb-border-light);
        border-radius: 14px;
        padding: 8px;
    }
    .tab-link {
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        padding: 10px 4px;
        border-bottom: none;
        border-radius: 10px;
        text-align: center;
        white-space: normal;
        font-size: 11px;
        line-height: 1.2;
        color: var(--rb-text-muted);
        transition: background var(--rb-transition), color var(--rb-transition);
    }
    .tab-link svg { width: 21px; height: 21px; }
    .tab-link:hover { background: var(--rb-surface-soft); color: var(--rb-primary); }
    .tab-link.active {
        background: var(--rb-primary);
        color: #fff;
        border-bottom-color: transparent;
    }
}

/* Lista de definição (visualização de dados em modo leitura) */
.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 32px; }
.detail-grid dt {
    font-size: 12.5px;
    color: var(--rb-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
    margin-bottom: 4px;
}
.detail-grid dd { margin: 0; font-size: 14.5px; color: var(--rb-text-primary); }

.plain-list { list-style: disc; margin: 0; padding-left: 18px; }
.plain-list li { margin-bottom: 2px; }

.label-caption {
    font-size: 12.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--rb-text-muted);
    margin: 0;
}
@media (max-width: 768px) {
    .detail-grid { grid-template-columns: 1fr; }
}

/* Assinatura desenhada (canvas via signature_pad) */
.signature-pad-wrapper {
    max-width: 480px;
    border: 1px dashed var(--rb-border);
    border-radius: 8px;
    background: var(--rb-surface-soft);
    margin-top: 8px;
}
.signature-pad-canvas { display: block; width: 100%; height: 200px; touch-action: none; }
.signature-pad-actions { margin-top: 8px; }

.signature-display {
    margin-bottom: 16px;
    padding: 12px;
    border: 1px solid var(--rb-border-light);
    border-radius: 8px;
    background: var(--rb-surface-soft);
    display: inline-block;
}
/* width/height fixos + object-fit em vez de max-width/max-height: a
   assinatura é desenhada num canvas cuja resolução real varia por
   aparelho (largura do card no desktop x devicePixelRatio no celular),
   então dois PNGs de proporção bem diferente chegam aqui — só max-width/
   max-height deixava o resultado inconsistente (pequeno num aparelho,
   enorme no outro). Com width+height+object-fit:contain a caixa de
   exibição fica sempre do mesmo tamanho, não importa a resolução de origem. */
.signature-display img { display: block; width: 240px; height: 100px; object-fit: contain; }

/* Paginação */
.pagination { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: 8px;
    border: 1px solid var(--rb-border);
    color: var(--rb-secondary);
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
}
.pagination-item:hover { background: var(--rb-surface-soft); text-decoration: none; }
.pagination-item.active { background: var(--rb-gradient); color: #fff; border-color: transparent; }

/* Busca global do cabeçalho */
.global-search { position: relative; width: 280px; }
.global-search .input { height: 42px; }
.search-toggle, .search-close {
    display: none;
    border: none;
    background: transparent;
    color: var(--rb-secondary);
    cursor: pointer;
    padding: 8px;
    flex-shrink: 0;
}
.search-toggle svg, .search-close svg { width: 21px; height: 21px; }
.global-search-results {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--rb-surface);
    border: 1px solid var(--rb-border-light);
    border-radius: 10px;
    box-shadow: var(--rb-shadow-md);
    max-height: 320px;
    overflow-y: auto;
    z-index: 50;
}
.global-search-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 14px;
    text-decoration: none;
    border-bottom: 1px solid var(--rb-border-light);
}
.global-search-item:last-child { border-bottom: none; }
.global-search-item:hover { background: var(--rb-surface-soft); text-decoration: none; }
.global-search-item .name { font-size: 14px; font-weight: 600; color: var(--rb-text-primary); }
.global-search-item .meta { font-size: 12px; color: var(--rb-text-muted); }
.global-search-empty { padding: 14px; font-size: 13px; color: var(--rb-text-muted); }

@media (max-width: 900px) {
    .global-search { display: none; }
    .search-toggle { display: inline-flex; }

    /* Busca em tela cheia no mobile, ativada pelo ícone de lupa —
       antes disso a busca simplesmente sumia abaixo de 900px sem
       nenhum jeito de abrir. Ver data-search-toggle em app.js. */
    .topbar.search-open .topbar-left,
    .topbar.search-open .search-toggle,
    .topbar.search-open .topbar-user {
        display: none;
    }
    .topbar.search-open .global-search {
        display: flex;
        align-items: center;
        position: absolute;
        inset: 0;
        width: auto;
        padding: 0 16px;
        background: var(--rb-surface);
        z-index: 40;
    }
    .topbar.search-open .global-search .input { flex: 1; }
    .topbar.search-open .search-close { display: inline-flex; }
}

/* Variante do item de resultado como <button> (seletor de paciente em formulários) */
button.global-search-item {
    all: unset;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 14px;
    width: 100%;
    cursor: pointer;
    border-bottom: 1px solid var(--rb-border-light);
}
button.global-search-item:last-child { border-bottom: none; }
button.global-search-item:hover { background: var(--rb-surface-soft); }
button.global-search-item .name { font-size: 14px; font-weight: 600; color: var(--rb-text-primary); }
button.global-search-item .meta { font-size: 12px; color: var(--rb-text-muted); }

.patient-picker { position: relative; }

/* Linha do tempo de sessões */
.timeline { list-style: none; display: flex; flex-direction: column; }
.timeline-item {
    position: relative;
    padding: 18px 0 18px 32px;
    border-left: 2px solid var(--rb-border-light);
    margin-left: 8px;
}
.timeline-item:last-child { border-left-color: transparent; }
.timeline-item::before {
    content: "";
    position: absolute;
    left: -7px;
    top: 22px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--rb-gradient);
    border: 2px solid var(--rb-surface);
}
.timeline-header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.timeline-header .number { font-family: var(--rb-font-title); font-size: 20px; color: var(--rb-primary); font-weight: 600; }
.timeline-meta { font-size: 13px; color: var(--rb-text-muted); margin-bottom: 8px; }
.timeline-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }

/* Miniatura da assinatura na linha do tempo — mesma ideia do
   object-fit:contain usado em sessions/show.php, só que num tamanho bem
   menor, pra dar pra ver de relance se a sessão foi assinada sem precisar
   abrir "Visualizar". */
.timeline-signature-thumb {
    display: block;
    width: 90px;
    height: 40px;
    border: 1px solid var(--rb-border-light);
    border-radius: 6px;
    background: var(--rb-surface);
    overflow: hidden;
    flex-shrink: 0;
}
.timeline-signature-thumb img { display: block; width: 100%; height: 100%; object-fit: contain; }

/* Galeria de fotos do paciente */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
}
.photo-gallery-item {
    position: relative;
    margin: 0;
    border: 1px solid var(--rb-border-light);
    border-radius: var(--rb-radius-md);
    overflow: hidden;
    background: var(--rb-background);
}
.photo-gallery-item img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}
.photo-gallery-item figcaption {
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.photo-gallery-item .caption { font-size: 13px; font-weight: 600; color: var(--rb-text-primary); }
.photo-gallery-item .meta { font-size: 11.5px; color: var(--rb-text-muted); }
.photo-gallery-consent-tag { align-self: flex-start; margin-top: 4px; }
.photo-gallery-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--rb-surface);
    border-color: var(--rb-surface);
    box-shadow: var(--rb-shadow-sm);
}

/* Lightbox de fotos do paciente */
body.lightbox-open { overflow: hidden; }
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 40px 24px;
    background: rgba(20, 17, 15, 0.88);
}
.lightbox[hidden] { display: none; }
.lightbox img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--rb-radius-md);
    box-shadow: var(--rb-shadow-lg);
}
.lightbox-caption {
    color: #fff;
    font-size: 14px;
    text-align: center;
    max-width: 90vw;
}
.lightbox-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.22); }
.lightbox-close svg { width: 22px; height: 22px; }
