/* Photo.art ? mobile-first design system */

:root {
    --br-green: #006B3F;
    --br-blue: #002776;
    --br-yellow: #FFCC00;
    --brand-logo-height: 48px;
    --brand-logo-height-sidebar: 44px;
    --brand-logo-max-width: 280px;
    --brand-logo-height-mobile: 32px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-top: env(safe-area-inset-top, 0px);
    --touch-min: 44px;
}

/* ?? Navega??o e bot?es globais ?? */
.site-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.site-nav-user {
    font-size: 13px;
    opacity: .92;
    padding: 0 4px;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

header .btn-nav {
    background: rgba(255, 255, 255, .16);
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, .28);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
    padding: 8px 14px;
    font-size: 13px;
    border-radius: 999px;
}

header .btn-nav:hover,
header .btn-nav:focus,
header .btn-nav:active {
    background: rgba(255, 255, 255, .3);
    color: #fff !important;
}

header .btn-nav-accent {
    background: var(--br-yellow, #FFCC00);
    color: var(--br-blue, #002776);
    border-color: transparent;
    font-weight: 700;
}

header .btn-nav-accent:hover {
    background: #ffe566;
    color: var(--br-blue, #002776);
}

header .btn-nav-outline {
    background: transparent;
    border-color: rgba(255, 255, 255, .45);
}

.btn-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    background: #eef2f8;
    color: var(--br-blue, #002776);
    border: 1px solid #d5deed;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
}

.btn-pill:hover {
    background: #e3eaf6;
    color: var(--br-blue, #002776);
    transform: translateY(-1px);
}

.btn-pill-active {
    background: var(--br-green, #006B3F);
    color: #fff !important;
    border-color: var(--br-green, #006B3F);
    box-shadow: 0 3px 10px rgba(0, 107, 63, .28);
}

.admin-nav-wrap {
    margin-bottom: 20px;
    padding: 14px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
}

.admin-brand-row {
    margin-bottom: 12px;
}

.admin-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

a.btn, a.btn-pill, a.btn-nav, a.btn-ghost {
    text-decoration: none;
}

.card form button[type="submit"],
.card .btn-row .btn {
    margin-top: 4px;
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 14px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

body.has-bottom-nav {
    padding-bottom: calc(4.75rem + var(--safe-bottom));
}

body.has-buyer-bottom-nav {
    padding-bottom: calc(4.25rem + var(--safe-bottom));
}

body.has-bottom-nav main,
body.has-buyer-bottom-nav main {
    padding-bottom: 1rem;
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    .gallery-filters,
    .filter-row {
        flex-direction: column;
        align-items: stretch;
    }

    .gallery-filters select,
    .gallery-filters input {
        width: 100%;
    }

    body.has-home-top-bar .hero-carousel {
        padding-top: 5.5rem;
    }

    .auth-card {
        margin: 12px;
        padding: 20px 16px;
    }

    .conta-grid,
    .profile-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    header.site-header nav.desktop-nav {
        display: none !important;
    }

    .mobile-menu-btn {
        display: flex;
    }

    body.modern-layout .seller-sidebar {
        display: none;
    }

    body.modern-layout .seller-shell {
        grid-template-columns: 1fr;
    }

    main {
        padding-left: max(12px, env(safe-area-inset-left));
        padding-right: max(12px, env(safe-area-inset-right));
    }

    input, select, textarea, button, .btn, a.btn {
        min-height: var(--touch-min);
    }

    .btn-xs, a.btn-xs, .chip {
        min-height: 36px;
    }

    .gallery-action-btn {
        min-height: var(--touch-min);
        padding: 10px 16px !important;
        font-size: 13px !important;
        font-weight: 700;
        border-radius: 999px;
        width: 100%;
    }

    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -4px;
        padding: 0 4px;
    }

    .seller-dashboard-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (min-width: 769px) {
    .mobile-menu-btn {
        display: none;
    }

    .foto-sticky-bar {
        display: none;
    }
}

.fade-in-up {
    animation: slideUp .45s ease-out both;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

.chip {
    display: inline-block;
    padding: .35rem .85rem;
    border-radius: 9999px;
    font-size: .8rem;
    font-weight: 600;
    background: #f3f4f6;
    color: #374151;
    text-decoration: none;
    margin: .15rem;
    border: 1px solid #e5e7eb;
    transition: all .2s;
}

.chip:hover, .chip.active {
    background: var(--br-green, #006B3F);
    color: #fff;
    border-color: var(--br-green, #006B3F);
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .3rem .65rem;
    border-radius: 9999px;
    font-size: .75rem;
    font-weight: 600;
    background: #fef9c3;
    color: #854d0e;
    border: 1px solid #fde047;
}

.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    padding: .5rem .25rem calc(.5rem + var(--safe-bottom));
    box-shadow: 0 -4px 20px rgba(0,0,0,.08);
}

@media (min-width: 901px) {
    .bottom-nav,
    .bottom-nav-mobile-only,
    .seller-more-overlay,
    .seller-more-sheet {
        display: none !important;
    }

    body.has-bottom-nav,
    body.has-buyer-bottom-nav {
        padding-bottom: 0;
    }
}

body.admin-layout .table-responsive {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

body.admin-layout .bottom-nav,
body.admin-layout .seller-more-overlay,
body.admin-layout .seller-more-sheet {
    display: none !important;
}

        .bottom-nav a {
    text-decoration: none;
    color: #6b7280;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 3.5rem;
    min-height: 44px;
    justify-content: center;
    padding: 4px 2px;
}

.bottom-nav a.active {
    color: var(--br-green, #006B3F);
}

.bottom-nav .upload-fab {
    margin-top: -1.25rem;
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    background: var(--br-green, #006B3F);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0,107,63,.35);
}

.hero-overlay {
    background: linear-gradient(180deg, rgba(0,39,118,.45) 0%, rgba(0,107,63,.55) 100%);
    z-index: 5;
    pointer-events: none;
}

.hero-carousel {
    overflow: hidden;
}

.hero-carousel-track {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-carousel-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.1s ease-in-out;
    will-change: opacity;
}

.hero-carousel-slide.is-active {
    opacity: 1;
}

.hero-carousel-dots {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
    display: flex;
    gap: 8px;
    align-items: center;
}

.hero-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.35);
    cursor: pointer;
    padding: 0;
    box-shadow: none;
    transition: width 0.25s, background 0.25s;
}

.hero-carousel-dot.is-active {
    background: var(--br-yellow, #FFCC00);
    border-color: var(--br-yellow, #FFCC00);
    width: 26px;
}

.hero-carousel-dot:hover {
    background: rgba(255, 255, 255, 0.75);
    transform: none;
    filter: none;
}

.upload-zone {
    border: 2px dashed #d1d5db;
    border-radius: 1rem;
    padding: 2rem 1rem;
    text-align: center;
    transition: border-color .2s, background .2s;
    cursor: pointer;
}

.upload-zone:hover, .upload-zone.dragover {
    border-color: var(--br-green, #006B3F);
    background: #f0fdf4;
}

/* ?? Preview protegido + licen?a ?? */
.media-protected {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    line-height: 0;
}

.media-protected::before {
    display: none;
}

.media-protected--clean::before,
.media-protected--clean .media-wm-grid {
    display: none !important;
}

.media-protected--clean {
    overflow: visible;
}

.media-protected img {
    display: block;
    width: 100%;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

.media-wm-grid {
    position: absolute;
    inset: -40%;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 22px 28px;
    align-content: center;
    justify-content: center;
    transform: rotate(-32deg);
    transform-origin: center center;
    pointer-events: none;
    opacity: 0.22;
    overflow: hidden;
}

.media-wm-grid span {
    font-size: clamp(5px, 0.75vw, 8px);
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-align: center;
    white-space: nowrap;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 0 1px rgba(0, 0, 0, 0.15);
}

.media-wm-grid span:nth-child(odd),
.media-wm-grid span:nth-child(even) {
    color: rgba(255, 255, 255, 0.82);
    text-shadow: 0 0 1px rgba(0, 0, 0, 0.12);
}

/* ?? Modal zoom (~5?) ?? */
.photo-preview-host {
    cursor: zoom-in;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.photo-preview-host.is-hover-preview {
    transform: scale(1.03);
    box-shadow: 0 8px 24px rgba(0, 39, 118, 0.15);
    z-index: 2;
}

.photo-preview-modal {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 20, 60, 0.72);
    backdrop-filter: blur(4px);
}

.photo-preview-modal.is-open {
    display: flex;
}

body.photo-preview-open {
    overflow: hidden;
}

.photo-preview-dialog {
    position: relative;
    display: flex;
    flex-direction: column;
    max-width: min(96vw, 920px);
    max-height: 92vh;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.photo-preview-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: #002776;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.photo-preview-stage {
    width: 100%;
    margin: 0 auto;
    padding: 16px;
    min-height: 200px;
    max-height: 62vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111;
}

.photo-preview-img {
    display: block;
    max-width: 100%;
    width: auto;
    height: auto;
    max-height: 58vh;
    margin: 0 auto;
    object-fit: contain;
    border-radius: 8px;
}

.photo-preview-meta {
    padding: 14px 18px 18px;
}

.photo-preview-title {
    margin: 0 0 6px;
    font-size: 1.1rem;
    color: #002776;
}

.photo-preview-location,
.photo-preview-price {
    margin: 0 0 4px;
    font-size: 13px;
    color: #64748b;
}

.photo-preview-price {
    font-weight: 700;
    color: #006B3F;
}

.photo-preview-note {
    margin: 8px 0 12px;
    font-size: 12px;
    color: #94a3b8;
}

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

.media-protected--video .photo-preview-thumb {
    filter: brightness(0.92);
}

.media-play-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 39, 118, 0.82);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    pointer-events: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.photo-preview-video {
    display: block;
    width: 100%;
    max-height: 58vh;
    border-radius: 8px;
    background: #000;
}

.btn-license {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
    white-space: nowrap;
    background: var(--br-green, #006B3F);
    color: #fff;
    border: 1px solid rgba(0, 107, 63, 0.35);
    box-shadow: 0 2px 6px rgba(0, 107, 63, 0.2);
}

.btn-license:hover {
    filter: brightness(1.06);
    color: #fff;
    transform: translateY(-1px);
}

/* ?? Bot?es finos extras ?? */
.btn-xs {
    padding: 4px 10px;
    font-size: 11px;
    border-radius: 999px;
}

.btn-nav-compact {
    background: rgba(255, 255, 255, 0.18);
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 999px;
}

.btn-nav-compact:hover {
    background: rgba(255, 255, 255, 0.32);
    color: #fff !important;
    transform: translateY(-1px);
}

/* Exce??es: n?o transformar em bot?o */
a.conv-list-link,
a.brand-logo,
a.chip,
a.block,
a.group,
a.admin-tab,
a.admin-stat-card,
a.admin-stat-card--link,
a.admin-nav-link,
a.btn-license,
a.media-thumb-link,
a[class*="btn-"],
a[data-chip-filter],
.bottom-nav a,
a:has(> img) {
    /* mant?m estilo pr?prio da classe ou do container */
}

/* Links de texto sem classe ? bot?o fino autom?tico */
main a:not([class]),
.seller-shell section a:not([class]),
.data-table a:not([class]),
.admin-content a:not([class]),
.alert a:not([class]),
.card a:not([class]):not(:has(> img)),
header a:not([class]):not(:has(> img)),
body > header a:not([class]):not(:has(> img)),
.page-toolbar a:not([class]) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 5px 12px;
    margin: 2px 4px 2px 0;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    vertical-align: middle;
    background: #fff;
    color: var(--br-blue, #002776);
    border: 1px solid #dce3f0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
}

main a:not([class]):hover,
.seller-shell section a:not([class]):hover,
.data-table a:not([class]):hover,
.admin-content a:not([class]):hover,
.alert a:not([class]):hover,
.card a:not([class]):not(:has(> img)):hover,
header a:not([class]):not(:has(> img)):hover,
body > header a:not([class]):not(:has(> img)):hover,
.page-toolbar a:not([class]):hover {
    background: #f4f7fc;
    color: var(--br-blue, #002776);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

/* Header verde (foto, licen?a, etc.) */
header a:not([class]):not(:has(> img)),
body > header a:not([class]):not(:has(> img)) {
    background: rgba(255, 255, 255, 0.18);
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.35);
}

header a:not([class]):not(:has(> img)):hover,
body > header a:not([class]):not(:has(> img)):hover {
    background: rgba(255, 255, 255, 0.32);
    color: #fff !important;
}

/* Abas e filtros em linha */
.page-tabs,
.admin-inline-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    max-width: 100%;
    min-width: 0;
}

.page-tabs .btn-pill,
.admin-inline-tabs .btn-pill {
    margin: 0;
}

/* ?? Lista de downloads (compras / checkout) ?? */
.download-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.download-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    margin-bottom: 8px;
    border-radius: 12px;
    background: #f8fafb;
    border: 1px solid #e8ecf2;
}

.download-item-title {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--br-blue, #002776);
    line-height: 1.35;
}

.download-item .btn,
.download-item a.btn {
    flex-shrink: 0;
    white-space: nowrap;
}

.download-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #e8ecf2;
}

a.btn,
a.btn-sm,
a.btn-xs,
a.btn-ghost,
a.btn-pill,
a.btn-nav {
    text-decoration: none !important;
}

/* ?? Menu mobile (hamburger) ?? */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: var(--touch-min);
    height: var(--touch-min);
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
    flex-shrink: 0;
}

.mobile-menu-bar {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
}

.site-header-brand {
    flex: 1;
    min-width: 0;
}

.brand-logo img {
    height: var(--brand-logo-height);
    width: auto;
    max-width: var(--brand-logo-max-width);
    object-fit: contain;
    display: block;
}

.admin-sidebar-brand .brand-logo img {
    height: var(--brand-logo-height-sidebar);
    max-width: 100%;
}

@media (max-width: 767px) {
    :root {
        --brand-logo-height: var(--brand-logo-height-mobile, 32px);
        --brand-logo-max-width: min(var(--brand-logo-max-width), 220px);
    }
}

/* ?? Menu do usu?rio logado (desktop) ?? */
.user-env-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.user-env-dropdown {
    position: relative;
}

.user-env-dropdown.is-open .user-env-trigger {
    background: rgba(255, 255, 255, 0.28) !important;
}

.user-env-trigger {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    max-width: min(240px, 42vw);
    padding: 6px 12px 6px 6px !important;
}

.user-env-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: rgba(255, 204, 0, 0.95);
    color: var(--br-blue, #002776);
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
}

.user-env-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 999px;
}

.user-env-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
}

.user-env-caret {
    font-size: 10px;
    opacity: 0.85;
    flex-shrink: 0;
}

.user-env-panel {
    position: fixed;
    z-index: 500;
    min-width: 240px;
    max-width: min(280px, calc(100vw - 24px));
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0, 39, 118, 0.18);
    border: 1px solid #e8ecf2;
    padding: 10px 0;
    box-sizing: border-box;
}

.user-env-panel[hidden] {
    display: none !important;
}

.user-env-panel-title {
    margin: 0;
    padding: 4px 16px 2px;
    font-size: 14px;
    font-weight: 700;
    color: var(--br-blue, #002776);
}

.user-env-panel-email {
    margin: 0 0 8px;
    padding: 0 16px 8px;
    font-size: 12px;
    color: #64748b;
    border-bottom: 1px solid #eef2f7;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.user-env-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b !important;
    text-decoration: none !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    transform: none !important;
}

.user-env-link:hover,
.user-env-link:focus {
    background: #f0f7f4 !important;
    color: var(--br-green, #006B3F) !important;
    transform: none !important;
}

.user-env-link-accent {
    color: var(--br-green, #006B3F) !important;
}

.user-env-link-muted {
    color: #64748b !important;
    border-top: 1px solid #eef2f7;
    margin-top: 4px;
    padding-top: 12px;
}
.nav-menu-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.nav-menu-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--br-blue, #002776);
    opacity: 0.88;
}

.nav-menu-icon svg {
    display: block;
    width: 18px;
    height: 18px;
}

.user-env-link-muted .nav-menu-icon {
    color: #94a3b8;
}

.user-env-link-accent .nav-menu-icon {
    color: var(--br-green, #006B3F);
}

.btn-nav .nav-menu-icon {
    margin-right: 2px;
}

.btn-nav .nav-menu-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.mobile-nav-link-accent .nav-menu-icon {
    color: #fff;
    opacity: 1;
}

.mobile-nav-link-muted .nav-menu-icon {
    color: #94a3b8;
}

@media (max-width: 767px) {
    .user-env-nav.desktop-nav {
        display: none;
    }
}

.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(0, 39, 118, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
}

.mobile-nav-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 310;
    width: min(320px, 88vw);
    background: #fff;
    box-shadow: -8px 0 32px rgba(0, 39, 118, 0.18);
    transform: translateX(100%);
    transition: transform 0.28s ease-out;
    display: flex;
    flex-direction: column;
    padding-bottom: var(--safe-bottom);
}

.mobile-nav-drawer.is-open {
    transform: translateX(0);
}

.mobile-nav-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: max(16px, var(--safe-top)) 16px 14px;
    background: linear-gradient(135deg, var(--br-green), var(--br-blue));
    color: #fff;
}

.mobile-nav-drawer-head strong {
    font-size: 1.1rem;
}

.mobile-nav-close {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
}

.mobile-nav-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--touch-min);
    padding: 12px 16px;
    margin-bottom: 6px;
    border-radius: 12px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 15px;
    color: var(--br-blue);
    background: #f8fafb;
    border: 1px solid #e8ecf2;
}

.mobile-nav-link:hover,
.mobile-nav-link:active {
    background: #f0faf5;
    color: var(--br-green);
}

.mobile-nav-link-accent {
    background: var(--br-green);
    color: #fff !important;
    border-color: var(--br-green);
}

.mobile-nav-link-accent .nav-menu-label,
.mobile-nav-link-accent .nav-menu-label span {
    color: #fff !important;
}

.mobile-nav-link-muted {
    color: #64748b;
    background: transparent;
    border-color: transparent;
}

.mobile-nav-link-featured {
    font-weight: 700;
}

.mobile-nav-link-accent.mobile-nav-link-featured {
    background: linear-gradient(135deg, #006B3F 0%, #004d2e 100%);
    color: #fff !important;
    border-color: #005c38;
    box-shadow: 0 3px 12px rgba(0, 107, 63, 0.28);
}

.mobile-nav-link-accent.mobile-nav-link-featured:hover,
.mobile-nav-link-accent.mobile-nav-link-featured:active {
    background: linear-gradient(135deg, #008752 0%, #006B3F 100%);
    color: #fff !important;
}

.mobile-nav-link-accent.mobile-nav-link-featured .nav-menu-icon {
    color: #fff !important;
    opacity: 1;
}

.mobile-nav-user {
    margin: 4px 0 8px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 700;
    color: var(--blue, #002776);
    background: #f1f5f9;
    border-radius: 10px;
}

/* ?? Bottom nav comprador ?? */
.bottom-nav .bottom-nav-inner,
.bottom-nav > .bottom-nav-row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-around;
    align-items: flex-end;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    gap: 2px;
}

.buyer-bottom-nav .bottom-nav-inner {

.bottom-nav-item {
    text-decoration: none !important;
    color: #6b7280;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 4rem;
    min-height: var(--touch-min);
    justify-content: center;
    padding: 4px 6px;
}

.bottom-nav-item.active {
    color: var(--br-green);
}

.bottom-nav-label {
    line-height: 1.1;
}

.bottom-nav-badge {
    position: absolute;
    top: -4px;
    right: -8px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--br-yellow);
    color: var(--br-blue);
    font-size: 10px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bottom-nav-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin-bottom: 2px;
}

.bottom-nav-icon .nav-menu-icon {
    width: 20px;
    height: 20px;
    color: inherit;
    opacity: 1;
}

.bottom-nav-icon .nav-menu-icon svg {
    width: 20px;
    height: 20px;
}

.bottom-nav-item.active .nav-menu-icon {
    color: var(--br-green, #006B3F);
}

.bottom-nav-item-accent,
.bottom-nav-item-accent .nav-menu-icon {
    color: var(--br-green, #006B3F);
}

.bottom-nav-item-accent.active,
.bottom-nav-item-accent.active .nav-menu-icon {
    color: #004d2e;
}

/* ?? Seller ?Mais? sheet ?? */
.seller-more-overlay {
    position: fixed;
    inset: 0;
    z-index: 55;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s;
}

.seller-more-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.seller-more-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    background: #fff;
    border-radius: 20px 20px 0 0;
    padding: 16px 16px calc(16px + var(--safe-bottom));
    transform: translateY(100%);
    transition: transform 0.28s ease-out;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.12);
}

.seller-more-sheet.is-open {
    transform: translateY(0);
}

.seller-more-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.seller-more-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.seller-more-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: var(--touch-min);
    padding: 12px 14px;
    border-radius: 12px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 14px;
    color: var(--br-blue);
    background: #f8fafb;
    border: 1px solid #e8ecf2;
}

/* ?? Foto: barra fixa mobile ?? */
.foto-sticky-bar {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(4.25rem + var(--safe-bottom));
    z-index: 40;
    padding: 10px 12px;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    gap: 8px;
    align-items: stretch;
}

.foto-sticky-bar .btn {
    flex: 1;
    min-height: var(--touch-min);
    text-align: center;
    justify-content: center;
}

body.foto-page.has-buyer-bottom-nav {
    padding-bottom: calc(8.5rem + var(--safe-bottom));
}

@media (max-width: 768px) {
    .foto-sticky-bar {
        display: flex;
    }
}

.gallery-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 8px;
    padding: 10px 16px;
    border: 0;
    border-radius: 999px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    color: #fff;
    min-height: 40px;
}

.gallery-action-btn--cart {
    background: var(--br-green);
}

.gallery-action-btn--free {
    background: var(--br-blue);
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ?? Upload r?pido no celular ?? */
.mobile-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.mobile-capture-hero {
    display: none;
    text-align: center;
    padding: 8px 0 20px;
}

.mobile-foto-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 8px 28px rgba(0, 107, 63, 0.28);
    transition: transform 0.15s;
    text-decoration: none;
}

.mobile-foto-btn:active {
    transform: scale(0.96);
}

.mobile-foto-btn img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 50%;
    display: block;
}

.mobile-capture-hint {
    margin: 12px 0 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--br-blue, #002776);
}

.mobile-draft-note {
    margin: 0 0 14px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #e8f5e9;
    color: #155724;
    font-size: 13px;
    font-weight: 600;
}

.mobile-field {
    margin-bottom: 16px;
}

.mobile-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 700;
    color: var(--br-blue, #002776);
}

.mobile-select-field,
.mobile-field input,
.mobile-field textarea,
.mobile-field select {
    width: 100%;
    font-size: 16px;
    min-height: 48px;
    padding: 12px 14px;
    border: 2px solid #e8ecf2;
    border-radius: 12px;
    background: #fafbfc;
}

.mobile-field textarea {
    min-height: 90px;
}

.mobile-field-hint {
    margin: 6px 0 0;
    font-size: 12px;
    color: #64748b;
}

.mobile-upload-preview-wrap {
    margin-bottom: 16px;
    padding: 12px;
    border-radius: 14px;
    background: #f8fafb;
    border: 1px solid #e8ecf2;
    text-align: center;
}

.mobile-upload-preview-label {
    margin: 0 0 8px;
    font-weight: 700;
    color: var(--br-green);
}

.mobile-upload-preview-img {
    max-width: 100%;
    max-height: 220px;
    border-radius: 12px;
    object-fit: contain;
}

.mobile-upload-preview-meta {
    margin: 8px 0;
    font-size: 12px;
    color: #64748b;
}

.mobile-retake-btn {
    margin-top: 4px;
}

.mobile-upload-extra {
    margin-bottom: 16px;
    padding: 12px;
    border-radius: 12px;
    background: #f8fafb;
    border: 1px solid #e8ecf2;
}

.mobile-upload-extra summary {
    font-weight: 700;
    color: var(--br-blue);
    cursor: pointer;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.mobile-submit-wrap {
    margin: 20px 0 0;
}

.mobile-submit-btn {
    width: 100%;
    min-height: 52px;
    font-size: 17px;
    border-radius: 14px;
}

.upload-fab-img {
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    width: auto !important;
    height: auto !important;
    margin-top: -1.5rem !important;
}

.upload-fab-img img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 50%;
    display: block;
    filter: drop-shadow(0 4px 12px rgba(0, 107, 63, 0.35));
}

@media (max-width: 768px) {
    .mobile-capture-hero,
    .mobile-capture-hero.seller-dash-capture {
        display: block;
    }

    .desktop-upload-zone {
        display: none !important;
    }

    .mobile-capture-hero.has-photo .mobile-foto-btn img {
        width: 88px;
        height: 88px;
        opacity: 0.92;
    }
}

@media (min-width: 769px) {
    .mobile-capture-hero {
        display: none;
    }

    .desktop-upload-zone {
        cursor: pointer;
    }

    .mobile-only-submit {
        display: none;
    }
}

/* ?? P?gina de upload (celular + menu) ?? */
body.upload-page .mobile-menu-btn {
    display: flex;
}

body.upload-page .user-env-nav.desktop-nav {
    display: none;
}

body.upload-page.has-bottom-nav .bottom-nav {
    display: block !important;
}

.mobile-capture-proof {
    margin: 8px 0 0;
    padding: 8px 10px;
    border-radius: 10px;
    background: #ecfdf5;
    color: #065f46;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.45;
    text-align: left;
}

.desktop-zip-upload {
    margin-top: 16px;
}

#upload-submit-btn {
    width: 100%;
    min-height: 52px;
    margin-top: 16px;
    font-size: 17px;
    border-radius: 14px;
}

@media (max-width: 768px) {
    .desktop-zip-upload {
        display: none;
    }
}

@media (min-width: 1025px) {
    body.upload-page .mobile-menu-btn {
        display: none;
    }

    body.upload-page .user-env-nav.desktop-nav {
        display: flex;
    }
}

/* ?? Campo senha / segredo com olho ?? */
.input-password-wrap {
    position: relative;
    display: block;
    width: 100%;
}

.input-password-wrap > .input-password-field,
.input-password-wrap > input[type="password"],
.input-password-wrap > input[type="text"] {
    width: 100%;
    padding-right: 2.75rem !important;
}

button.input-password-toggle,
.input-password-toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%) !important;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    min-width: 36px;
    min-height: 36px;
    margin: 0;
    padding: 0;
    border: none !important;
    border-radius: 8px;
    background: transparent !important;
    color: #64748b !important;
    cursor: pointer;
    box-shadow: none !important;
    filter: none !important;
    font-weight: 400;
    line-height: 1;
    transition: color 0.15s, background 0.15s;
}

button.input-password-toggle:hover,
button.input-password-toggle:focus-visible,
.input-password-toggle:hover,
.input-password-toggle:focus-visible {
    color: var(--br-green, #006B3F) !important;
    background: rgba(0, 107, 63, 0.08) !important;
    transform: translateY(-50%) !important;
}

.input-password-toggle svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

.admin-content .input-password-toggle {
    right: 4px;
}

.auth-field .input-password-wrap > input {
    padding-right: 2.75rem !important;
}

.human-challenge-field {
    margin-top: 4px;
}
.human-challenge-field input[type="number"] {
    max-width: 160px;
}

/* ?? Funil de compra: preview protegido ?? */
.checkout-buy-card {
    display: grid;
    grid-template-columns: min(400px, 100%) 1fr;
    gap: 20px;
    align-items: start;
}

.checkout-preview-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.checkout-preview-list--detail {
    flex-direction: column;
}

.checkout-preview-item {
    flex: 0 0 auto;
}

.checkout-preview-thumb {
    width: 100px;
    height: 75px;
    object-fit: contain;
    object-position: center;
    background: #0f172a;
    border-radius: 8px;
    cursor: zoom-in;
}

.checkout-preview-thumb--detail {
    width: 100%;
    max-height: 360px;
    height: auto;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
}

.checkout-preview-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
    font-size: 13px;
    color: #666;
}

.checkout-preview-meta strong {
    color: #333;
    font-size: 15px;
}

.checkout-preview-price {
    font-weight: 700;
    color: var(--primary, #009739);
}

.checkout-preview-note {
    font-size: 12px;
    color: #888;
    margin: 8px 0 0;
}

.checkout-preview-note--cart {
    margin: 0 0 16px;
}

.checkout-cart-row {
    display: grid !important;
    grid-template-columns: 112px minmax(0, 1fr) auto auto;
    gap: 12px 16px;
    align-items: center;
    min-height: 100px;
    padding: 12px 14px;
    margin-bottom: 0;
    visibility: visible;
    opacity: 1;
}

.checkout-cart-row--package {
    grid-template-columns: minmax(0, 1fr) auto auto;
    border-left: 4px solid var(--br-blue, #002776);
}

.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.cart-items-list .checkout-cart-row,
.checkout-cart-row.card {
    background: #fff;
    border: 1px solid #e2e8f0;
    position: relative;
    z-index: 1;
}

.checkout-cart-thumb {
    width: 112px;
    height: 84px;
    border-radius: 10px;
    overflow: hidden;
    background: #1e293b;
    position: relative;
    border: 1px solid #cbd5e1;
    padding: 0;
    cursor: zoom-in;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.checkout-cart-thumb--empty {
    cursor: default;
    background: #e2e8f0;
}

.checkout-cart-thumb .media-protected,
.checkout-cart-thumb .photo-preview-host {
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: 84px;
    overflow: hidden;
}

.checkout-cart-thumb .photo-preview-thumb,
.checkout-cart-thumb .checkout-cart-thumb-img,
.checkout-cart-thumb img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    background: transparent;
}

.checkout-cart-thumb .media-wm-grid,
.checkout-cart-thumb .checkout-preview-note {
    display: none;
}

.checkout-cart-thumb-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 11px;
    color: #64748b;
    padding: 6px;
    text-align: center;
}

.checkout-cart-wm {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .08em;
    color: rgba(255, 255, 255, .75);
    text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
    pointer-events: none;
}

.checkout-cart-info {
    min-width: 0;
}

.checkout-cart-title {
    display: block;
    color: #0f172a;
    font-size: 1rem;
    line-height: 1.35;
}

.checkout-cart-meta,
.checkout-cart-hint {
    margin: 4px 0 0;
    color: #666;
    font-size: 13px;
}

.checkout-cart-hint {
    color: #64748b;
    font-size: 12px;
}

.checkout-cart-price {
    font-weight: 700;
    margin: 0;
    white-space: nowrap;
    color: #002776;
    justify-self: end;
}

.checkout-cart-remove {
    margin: 0;
    justify-self: end;
}

@media (max-width: 640px) {
    .checkout-cart-row {
        grid-template-columns: 96px minmax(0, 1fr);
        grid-template-areas:
            "thumb info"
            "thumb price"
            "thumb remove";
    }

    .checkout-cart-row--package {
        grid-template-columns: 1fr;
        grid-template-areas:
            "info"
            "price"
            "remove";
    }

    .checkout-cart-thumb { grid-area: thumb; width: 96px; height: 72px; }
    .checkout-cart-info { grid-area: info; }
    .checkout-cart-price { grid-area: price; justify-self: start; }
    .checkout-cart-remove { grid-area: remove; justify-self: start; }
}

.checkout-order-previews {
    margin-bottom: 16px;
}

.checkout-pending-hero {
    max-width: 560px;
    margin: 0 auto;
    padding: 8px 12px 40px;
}

.checkout-pending-eyebrow {
    margin: 8px 0 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--br-green, #006B3F);
}

.checkout-pending-card {
    text-align: center;
    padding: 28px 22px 24px;
    border: 1px solid #d1fae5;
    background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
    box-shadow: 0 10px 28px rgba(0, 107, 63, 0.08);
}

.checkout-pending-amount {
    font-size: 2rem;
    font-weight: 800;
    color: var(--br-blue, #002776);
    margin: 0 0 10px;
    letter-spacing: -0.02em;
}

.checkout-pending-copy {
    margin: 0 auto;
    max-width: 36ch;
    color: #475569;
    font-size: 14px;
    line-height: 1.45;
}

.checkout-pending-actions {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.checkout-pending-cta,
button.checkout-pending-cta,
a.checkout-pending-cta {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 22px !important;
    border-radius: 999px !important;
    border: 0 !important;
    background: var(--br-green, #006B3F) !important;
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    text-decoration: none !important;
    box-shadow: 0 6px 16px rgba(0, 107, 63, 0.28);
    cursor: pointer;
}

.checkout-pending-cta:hover,
button.checkout-pending-cta:hover,
a.checkout-pending-cta:hover {
    background: #005533 !important;
    color: #fff !important;
}

.checkout-pending-hint {
    margin: 14px 0 0;
    font-size: 12px;
    color: #64748b;
}

@media (max-width: 768px) {
    .checkout-buy-card {
        grid-template-columns: 1fr;
    }
}

/* ?? Galeria: cards alinhados ?? */
#gallery-grid {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.gallery-shell,
.gallery-shell .max-w-6xl {
    max-width: 100%;
    overflow-x: clip;
}

.gallery-card-visual {
    position: relative;
    min-width: 0;
}

.gallery-card-visual-link,
.gallery-card-visual-media {
    display: block;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    min-width: 0;
}

.gallery-card-visual-media .photo-preview-host {
    cursor: zoom-in;
}

/* Portf?lio do fot?grafo ? mesmo padr?o visual da galeria */
.portfolio-card .gallery-card-visual-media {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 120px;
}

.portfolio-card .gallery-card-visual-media .photo-preview-host,
.portfolio-card .gallery-card-visual-media .photo-preview-host img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-card .gallery-card-visual button.gallery-card-select {
    z-index: 20;
}

/* Sobrescreve estilos globais de button do header */
.gallery-card-visual button.gallery-card-select {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
    border-radius: 50%;
    line-height: 1;
    font-size: inherit;
    color: inherit;
    transform: none;
    filter: none;
    pointer-events: auto;
}

.gallery-card-visual button.gallery-card-select:hover,
.gallery-card-visual button.gallery-card-select:focus-visible {
    transform: none;
    filter: none;
    box-shadow: none;
    background: transparent;
}

.gallery-card-select:focus-visible {
    outline: 2px solid var(--br-blue, #002776);
    outline-offset: 2px;
}

.gallery-select-check {
    position: relative;
    display: block;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 3px solid #fff;
    background: rgba(0, 39, 118, 0.55);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
    pointer-events: none;
    transition: background .15s ease, border-color .15s ease, transform .15s ease;
    box-sizing: border-box;
    flex-shrink: 0;
}

.gallery-card-select.is-selected .gallery-select-check {
    background: #2563eb;
    border-color: #2563eb;
    transform: scale(1.05);
}

.gallery-card-select.is-selected .gallery-select-check::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 9px;
    width: 6px;
    height: 11px;
    border: solid #fff;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}

.gallery-card-visual:has(.gallery-card-select.is-selected) .photo-preview-thumb,
.gallery-card-visual:has(.gallery-card-select.is-selected) .gallery-card-thumb {
    box-shadow: inset 0 0 0 3px #2563eb;
}

.gallery-card-select:disabled {
    opacity: .7;
    cursor: wait;
}

.gallery-selection-count {
    margin: 0 0 8px;
    font-size: .9rem;
    font-weight: 700;
    color: var(--br-blue, #002776);
}

.gallery-select-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.gallery-select-total {
    font-size: .85rem;
    font-weight: 600;
    color: var(--br-green, #006B3F);
}

.gallery-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-top: 8px;
}

.gallery-card-title {
    font-weight: 600;
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gallery-card-location {
    font-size: 0.75rem;
    color: #64748b;
    margin: 4px 0 0;
}

.gallery-card-author {
    margin: 6px 0 0;
    font-size: 0.75rem;
}

.photographer-popover-trigger,
button.photographer-popover-trigger,
button.ranking-name-trigger {
    background: none !important;
    border: 0 !important;
    padding: 0 !important;
    color: var(--br-yellow, #FFCC00) !important;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
    box-shadow: none !important;
    font-size: inherit;
}

.photographer-popover-close {
    position: absolute;
    top: 8px;
    right: 10px;
    border: 0;
    background: transparent !important;
    font-size: 22px;
    color: #475569 !important;
    cursor: pointer;
    box-shadow: none !important;
    padding: 4px 8px !important;
    line-height: 1;
}

.ranking-table th {
    background: var(--br-green, #006B3F);
    color: #fff !important;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.04em;
}

.ranking-table td:nth-child(n+4) {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.ranking-name-trigger {
    color: var(--br-blue, #002776) !important;
    font-weight: 600;
}

.cart-checkout-hero {
    position: relative;
    padding: 8px 0 32px;
    background: linear-gradient(180deg, #f0fdf4 0%, #f8fafc 45%, transparent 100%);
    border-radius: 0 0 20px 20px;
    margin: -8px -12px 0;
    padding-left: 12px;
    padding-right: 12px;
}

.cart-summary-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
}

.cart-summary-table td {
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
}

.cart-summary-table td:last-child {
    text-align: right;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.cart-discount-row td {
    color: #006B3F;
}

.cart-total-row td {
    font-size: 1.15rem;
    border-bottom: 0;
    padding-top: 12px;
}

.cart-summary-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.cart-guest-hint {
    margin: 14px 0 0;
    font-size: 13px;
    color: #64748b;
    text-align: right;
}

.btn-cart-remove {
    background: #c0392b !important;
    color: #fff !important;
    font-size: 12px !important;
    padding: 6px 12px !important;
}


.gallery-card-price-row {
    margin-top: auto;
    padding-top: 8px;
}

.gallery-card-price {
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--br-green, #006B3F);
    margin: 0;
}

.gallery-card-price--hidden a {
    color: var(--br-blue, #002776);
    font-size: 0.8rem;
    font-weight: 600;
}

.gallery-card-price--guest {
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 600;
}

.gallery-card-actions {
    margin-top: 8px;
    padding: 0 2px 4px;
}

.gallery-card-actions .gallery-action-btn,
.gallery-card-actions form {
    width: 100%;
}

/* ?? Popover fot?grafo ?? */
.photographer-popover {
    position: fixed;
    z-index: 9000;
    display: none;
    width: min(320px, 92vw);
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(0, 39, 118, 0.18);
    border: 1px solid #e2e8f0;
    padding: 14px;
}

.photographer-popover.is-open {
    display: block;
}

.photographer-popover-close {
    position: absolute;
    top: 8px;
    right: 10px;
    border: 0;
    background: transparent !important;
    font-size: 22px;
    color: #475569 !important;
    cursor: pointer;
    box-shadow: none !important;
    padding: 4px 8px !important;
}

.photographer-popover-head {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 10px;
}

.photographer-popover-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    background: #e8f5ee;
}

.photographer-popover-name {
    margin: 0 0 4px;
    font-size: 1rem;
    color: #002776;
}

.photographer-popover-badge {
    display: inline-block;
    font-size: 11px;
    background: #f0fdf4;
    color: #006B3F;
    padding: 2px 8px;
    border-radius: 999px;
}

.photographer-popover-bio {
    font-size: 13px;
    color: #475569;
    line-height: 1.45;
    margin: 8px 0;
}

.photographer-popover-styles {
    font-size: 12px;
    color: #64748b;
    margin: 0 0 6px;
}

.photographer-popover-stats {
    font-size: 12px;
    color: #94a3b8;
    margin: 0 0 10px;
}

.photographer-popover-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.photographer-popover-profile {
    background: var(--br-yellow, #FFCC00) !important;
    color: var(--br-blue, #002776) !important;
    border-color: transparent !important;
    font-weight: 700 !important;
}

/* ?? Ranking ?? */
.ranking-avatar {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    object-fit: cover;
    background: #e8f5ee;
    display: inline-block;
    vertical-align: middle;
}

.ranking-avatar--sm,
.ranking-avatar--xs {
    width: 14px;
    height: 14px;
    vertical-align: middle;
    margin-right: 6px;
}

.ranking-alltime-list {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.ranking-alltime-list li {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.ranking-name-trigger {
    font-weight: 600;
}

/* ?? Login com fundo HD ?? */
.auth-page--login main,
.auth-page--login .site-main,
.auth-page--forgot main,
.auth-page--reset main,
.auth-page--change-password main,
.auth-page--register main,
.auth-page--register .site-main {
    padding: 0 !important;
    max-width: none !important;
}

.auth-hero-wrap {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    background-image: var(--auth-bg);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 107, 63, 0.72), rgba(0, 39, 118, 0.55));
}

.auth-page--register main,
.auth-page--register .site-main {
    padding: 0 !important;
    max-width: none !important;
}

.auth-shell-wrap {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding: 24px 16px 40px;
}

.auth-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.auth-card {
    backdrop-filter: blur(6px);
}

.auth-remember {
    color: #475569;
}

.admin-price-policy-form {
    display: flex;
    gap: 4px;
    align-items: center;
    flex-wrap: wrap;
}

/* ?? Rodap? legal do site ?? */
.site-legal-footer {
    background: #0f172a;
    color: #94a3b8;
    text-align: center;
    padding: 28px 16px 36px;
    width: 100%;
    box-sizing: border-box;
}

.site-legal-footer-tagline {
    margin: 0 0 14px;
    font-size: 12px;
    color: #cbd5e1;
}

.site-legal-footer .legal-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.site-legal-footer .legal-footer a {
    background: #fff;
    color: #002776 !important;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}

.site-legal-footer .legal-footer a:hover {
    background: #f1f5f9;
    text-decoration: none;
}

.site-legal-footer .legal-footer-sep {
    display: none;
}

/* ?? Banner flutuante (home) ?? */
.floating-home-promo-wrap {
    position: fixed;
    top: var(--floating-promo-top, 5.5rem);
    left: 0;
    right: 0;
    z-index: 55;
    pointer-events: none;
    padding: 0 16px;
    box-sizing: border-box;
}

.floating-home-promo-lane {
    position: absolute;
    top: 0;
    width: min(100%, 400px);
    max-width: calc(100vw - 32px);
    pointer-events: none;
}

.floating-home-promo-lane--left {
    left: 16px;
}

.floating-home-promo-lane--center {
    left: 50%;
    transform: translateX(-50%);
}

.floating-home-promo-lane--right {
    right: 16px;
    left: auto;
}

.floating-home-promo-carousel {
    position: relative;
    min-height: 1px;
}

.floating-home-promo {
    position: relative;
    width: 100%;
    border-radius: 20px;
    background: linear-gradient(120deg, var(--br-blue, #002776) 0%, var(--br-green, #006B3F) 48%, var(--br-yellow, #FFCC00) 100%);
    color: #fff;
    box-shadow: 0 12px 40px rgba(0, 39, 118, .35);
    opacity: 1;
    transform: translateY(0);
    transition: opacity .28s ease, transform .28s ease;
    pointer-events: auto;
}

.floating-home-promo.is-visible,
.floating-home-promo.is-active-slide.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.floating-home-promo[hidden] {
    display: none !important;
}

.floating-home-promo-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
    pointer-events: auto;
}

.floating-home-promo-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: rgba(255, 255, 255, .45);
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
}

.floating-home-promo-dot.is-active {
    background: var(--br-yellow, #FFCC00);
    transform: scale(1.15);
}

.floating-home-promo-inner {
    padding: 20px 48px 20px 20px;
}

.floating-home-promo-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, .2);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease;
    pointer-events: auto;
}

.floating-home-promo-close:hover {
    background: rgba(255, 255, 255, .32);
}

.floating-home-promo-badge {
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--br-yellow, #FFCC00);
}

.floating-home-promo-title {
    margin: 0 0 8px;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
}

.floating-home-promo-desc {
    margin: 0 0 8px;
    font-size: .95rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, .92);
}

.floating-home-promo-meta {
    margin: 0 0 14px;
    font-size: .8rem;
    color: rgba(255, 255, 255, .72);
}

.floating-home-promo-cta {
    display: inline-flex;
    background: var(--br-yellow, #FFCC00) !important;
    color: var(--br-blue, #002776) !important;
    border-color: transparent !important;
    font-weight: 700;
    padding: 10px 18px;
}

@media (min-width: 640px) {
    .floating-home-promo-wrap {
        padding: 0 24px;
    }

    .floating-home-promo-lane {
        width: min(100%, 420px);
    }

    .floating-home-promo-lane--left {
        left: 24px;
    }

    .floating-home-promo-lane--right {
        right: 24px;
    }
}

@media (max-width: 639px) {
    .floating-home-promo-wrap {
        display: flex;
        flex-direction: column;
        gap: 8px;
        max-height: min(52vh, 420px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0 12px;
    }

    .floating-home-promo-lane {
        position: static !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        width: 100%;
        max-width: none;
    }

    .floating-home-promo-lane--center {
        left: auto;
        right: auto;
    }
}

/* ?? Faixa azul secund?ria (Mapa / Ranking / Planos / Carrinho) ?? */
.site-subnav {
    background: linear-gradient(90deg, #002776 0%, #003a8f 55%, #002776 100%) !important;
    border-bottom: 1px solid rgba(255,255,255,.14);
    width: 100%;
    display: block !important;
}
.site-subnav-inner {
    max-width: 72rem;
    margin: 0 auto;
    padding: 8px 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    min-height: 44px;
    align-items: center;
}
a.site-subnav-link,
.site-subnav-link {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 14px !important;
    min-height: 32px;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: .02em;
    white-space: nowrap;
    border-radius: 999px !important;
    border: 1px solid rgba(255,255,255,.42) !important;
    background: rgba(255,255,255,.12) !important;
    box-shadow: none !important;
    opacity: 1 !important;
    line-height: 1.2;
}
a.site-subnav-link:hover,
.site-subnav-link:hover,
a.site-subnav-link.is-active,
.site-subnav-link.is-active {
    background: #fff !important;
    color: #002776 !important;
    border-color: #fff !important;
    filter: none !important;
    transform: none !important;
}
.site-subnav-badge {
    background: var(--br-yellow, #FFCC00) !important;
    color: #002776 !important;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

/* ?? T?tulo padr?o do portal ?? */
.page-heading {
    margin: 10px 0 14px;
    padding: 14px 16px 16px;
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(0,39,118,.06), rgba(0,107,63,.05)),
        #fff !important;
    border: 1px solid rgba(0,39,118,.08);
    box-shadow: 0 8px 24px rgba(0,39,118,.04);
    position: relative;
    overflow: hidden;
    display: block;
    color: inherit;
}
.page-heading::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, var(--br-green, #006B3F), var(--br-blue, #002776));
}
.page-heading__row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.page-heading__icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 8px;
    flex-shrink: 0;
    background: rgba(255,255,255,.9);
    box-shadow: 0 2px 8px rgba(0,39,118,.08);
}
.page-heading__title {
    margin: 0;
    font-size: clamp(1.45rem, 3.6vw, 2rem);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--br-blue, #002776) !important;
}
.page-heading h2.page-heading__title {
    font-size: clamp(1.15rem, 2.8vw, 1.45rem);
}

/* ?? Page shell (fundo atmosf?rico) ?? */
.page-shell {
    position: relative;
    isolation: isolate;
    padding: 8px 0 28px;
    min-height: 40vh;
}
.page-shell__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: var(--page-shell-bg);
    background-size: cover;
    background-position: center;
    opacity: .18;
    filter: saturate(.9);
}
.page-shell__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(247,247,245,.55), rgba(247,247,245,.92));
}
.page-shell__inner {
    position: relative;
    z-index: 1;
}

/* ?? Ranking tabelas ?? */
.ranking-styled-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
}
.ranking-styled-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--br-blue, #002776) !important;
    color: #fff !important;
    font-weight: 700;
    padding: 10px 12px;
    text-align: left;
    border: none;
}
.ranking-styled-table tbody td {
    padding: 8px 12px;
    border-bottom: 1px solid #e8eef6;
    vertical-align: middle;
    background: #fff;
}
.ranking-styled-table tbody tr:nth-child(even) td {
    background: #f3f7fb;
}
.ranking-styled-table tbody tr:hover td {
    background: #eaf3ff;
}
.ranking-table-scroll {
    max-height: 360px;
    overflow: auto;
    border: 1px solid #d5deed;
    border-radius: 12px;
    margin-top: 12px;
}
.ranking-avatar {
    width: 14px !important;
    height: 14px !important;
    border-radius: 50%;
    object-fit: cover;
    display: inline-block;
    vertical-align: middle;
}
.ranking-avatar--xs {
    width: 14px !important;
    height: 14px !important;
}
.ranking-avatar--md {
    width: 14px !important;
    height: 14px !important;
}
.ranking-styled-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #002776;
    color: #fff;
}
.ranking-carousel {
    margin: 8px 0 4px;
}
.ranking-carousel-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 4px 2px 12px;
    -webkit-overflow-scrolling: touch;
}
.ranking-carousel-card {
    flex: 0 0 min(220px, 78vw);
    scroll-snap-align: start;
    background: #fff;
    border: 1px solid #dbe4f0;
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 8px 20px rgba(0,39,118,.06);
}
.ranking-carousel-rank {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    color: #002776;
    background: #FFCC00;
    border-radius: 999px;
    padding: 2px 8px;
    margin-bottom: 8px;
}
.ranking-carousel-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin-bottom: 8px;
}
.ranking-carousel-meta {
    font-size: 12px;
    color: #64748b;
    margin-top: 6px !important;
}
.ranking-carousel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.ranking-alltime-rows {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ranking-alltime-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: rgba(255,255,255,.92);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}
.ranking-alltime-who {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 180px;
}
.ranking-alltime-pos {
    font-weight: 800;
    color: #002776;
    font-size: 13px;
}
.ranking-mini-table-wrap {
    flex: 1;
    min-width: 200px;
    max-width: 320px;
}
.ranking-styled-table--mini {
    font-size: 12px;
}
.ranking-styled-table--mini thead th {
    padding: 6px 8px;
    position: static;
}
.ranking-styled-table--mini tbody td {
    padding: 6px 8px;
}
.ranking-section .page-heading {
    margin-top: 0;
    background: transparent !important;
    box-shadow: none;
    border: none;
    padding: 0 0 10px;
}
.ranking-section .page-heading::before { display: none; }

header.site-header .brand-logo img {
    border-radius: 10px;
}
.page-heading__subtitle {
    margin: 8px 0 0;
    max-width: 46rem;
    font-size: clamp(13px, 2.8vw, 15px);
    line-height: 1.5;
    color: #64748b !important;
    display: block;
}

/* ?? Filtro de ?lbuns (listbox compacto) ?? */
.album-search-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    align-items: end;
}
.album-filter-type select,
#album-filter-type {
    min-height: 44px;
    border: 2px solid #e8ecf2;
    border-radius: 12px;
    padding: 10px 12px;
    background: #fff;
    font-size: 15px;
    color: #002776;
    font-weight: 600;
}
.album-filter-type .photome-help-trigger {
    flex: 0 0 18px !important;
    align-self: center;
}

@media (max-width: 640px) {
    .album-search-fields {
        grid-template-columns: 1fr 1fr;
    }
    .album-filter-type {
        grid-column: 1 / -1;
    }
}

/* legado ? evita regress?o se algum trecho ainda usar pills */
.album-type-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}
.album-type-pill {
    position: relative;
    cursor: pointer;
}
.album-type-pill input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.album-type-pill span {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 6px 16px;
    border-radius: 999px;
    background: #fff;
    color: var(--br-blue, #002776);
    border: 1px solid #dce3f0;
    font-size: 13px;
    font-weight: 700;
}
.album-type-pill.is-active span,
.album-type-pill:has(input:checked) span {
    background: var(--br-green, #006B3F);
    color: #fff;
    border-color: transparent;
}

/* ?? Help flutuante da galeria ?? */
.gallery-search-help {
    position: fixed !important;
    right: max(16px, env(safe-area-inset-right)) !important;
    bottom: max(16px, env(safe-area-inset-bottom)) !important;
    left: auto !important;
    top: auto !important;
    z-index: 9200 !important;
    width: min(360px, calc(100vw - 32px)) !important;
    margin: 0 !important;
    border-radius: 22px !important;
    overflow: hidden !important;
    min-height: 200px;
    box-shadow: 0 18px 40px rgba(0,39,118,.35) !important;
    color: #fff !important;
    background: linear-gradient(135deg, #002776 0%, #006B3F 55%, #0a4d30 100%) !important;
    border: 1px solid rgba(255,255,255,.18);
}
.gallery-search-help[hidden] { display: none !important; }
.gallery-search-help-media,
.gallery-search-help-bg,
.gallery-search-help-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.gallery-search-help-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-size: cover;
    background-position: center;
}
.gallery-search-help-bg--gradient {
    background: linear-gradient(135deg, #002776 0%, #006B3F 55%, #0a4d30 100%);
}
.gallery-search-help-overlay {
    background: linear-gradient(120deg, rgba(0,39,118,.55), rgba(0,107,63,.35));
}
.gallery-search-help-content {
    position: relative;
    z-index: 1;
    padding: clamp(18px, 4vw, 28px);
    max-width: 640px;
    color: #fff !important;
}
.gallery-search-help-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 14px;
    background: rgba(255,255,255,.16);
    margin-bottom: 12px;
}
.gallery-search-help-title {
    margin: 0 0 8px;
    font-size: clamp(1.25rem, 3.5vw, 1.7rem);
    font-weight: 800;
    line-height: 1.2;
    color: #fff !important;
}
.gallery-search-help-body {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255,255,255,.95) !important;
}
.gallery-search-help-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
a.gallery-search-help-cta,
.gallery-search-help-cta,
button.gallery-search-help-dismiss,
.gallery-search-help-dismiss {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 18px !important;
    border-radius: 999px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    cursor: pointer;
    box-shadow: none !important;
    filter: none !important;
    transform: none !important;
}
a.gallery-search-help-cta,
.gallery-search-help-cta {
    background: #FFCC00 !important;
    color: #002776 !important;
    border: 1px solid #FFCC00 !important;
}
a.gallery-search-help-cta:hover,
.gallery-search-help-cta:hover {
    background: #ffe066 !important;
    color: #002776 !important;
}
button.gallery-search-help-dismiss,
.gallery-search-help-dismiss {
    background: rgba(255,255,255,.14) !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,.75) !important;
}
button.gallery-search-help-dismiss:hover,
.gallery-search-help-dismiss:hover {
    background: rgba(255,255,255,.24) !important;
    color: #fff !important;
}
button.gallery-search-help-close,
.gallery-search-help-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 !important;
    border-radius: 999px !important;
    border: 1px solid rgba(255,255,255,.35) !important;
    background: rgba(0,0,0,.4) !important;
    color: #fff !important;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    box-shadow: none !important;
}
.gallery-filters-panel[open] summary {
    margin-bottom: 4px;
}

@media (max-width: 640px) {
    .site-subnav-inner { padding: 8px; gap: 6px; }
    .site-subnav-link { padding: 6px 12px !important; font-size: 11px !important; }
    .page-heading { padding: 12px 14px 14px; }
    .gallery-search-help {
        right: 12px !important;
        left: 12px !important;
        bottom: max(12px, env(safe-area-inset-bottom)) !important;
        width: auto !important;
    }
}

/* N?vel do fot?grafo (?cones) */
.pm-level-badge{display:inline-flex;align-items:center;vertical-align:-0.15em;line-height:0}
.pm-level-badge .pm-level-icon{display:block;flex-shrink:0}
.pm-level-line{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap}
.pm-level-line-text{font-weight:600}
.pm-impersonation-banner{background:#0f172a;color:#f8fafc;padding:10px 16px;font-size:13px;display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between}
.pm-impersonation-banner form{margin:0}
.pm-impersonation-banner .btn{background:#FFCC00;color:#0f172a;border:none}
