/* ============================================================================
   PDV PARCEIROS — DESIGN SYSTEM MONOCROMÁTICO (PRETO & TONS DE BRANCO)
   Estética Editorial de Alto Contraste | Zero Cores Externas
   ============================================================================ */

:root {
    --bg-black: #000000;
    --bg-surface-1: #080808;
    --bg-surface-2: #101010;
    --bg-surface-3: #181818;
    --bg-surface-hover: #202020;
    --bg-glass: rgba(10, 10, 10, 0.88);

    --white-100: #FFFFFF;
    --white-90: #E6E6E6;
    --white-75: #BFBFBF;
    --white-55: #8C8C8C;
    --white-35: #595959;
    --white-15: #262626;

    --border-hairline: rgba(255, 255, 255, 0.10);
    --border-regular: rgba(255, 255, 255, 0.18);
    --border-focus: rgba(255, 255, 255, 0.65);
    --border-solid: #FFFFFF;

    /* Destaques em Verde Temático da Bandeira (Busca, Atalhos, Filtros Ativos e Pino do Mapa) */
    --sky-blue: #22C55E;
    --sky-blue-bright: #4ADE80;
    --sky-blue-deep: #009B3A;
    --sky-blue-bg: rgba(34, 197, 94, 0.14);
    --sky-blue-border: rgba(34, 197, 94, 0.55);
    --sky-blue-glow: 0 0 18px rgba(34, 197, 94, 0.42);

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-pill: 9999px;

    --shadow-elevated: 0 18px 45px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.10);
    --shadow-glow: 0 0 30px rgba(255, 255, 255, 0.07);

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-black);
    color: var(--white-100);
    color-scheme: dark;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-black);
    background-image:
        radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.05) 0%, transparent 55%),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 100% 100%, 48px 48px, 48px 48px;
    color: var(--white-100);
    line-height: 1.55;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--white-100);
    text-decoration: none;
    transition: opacity 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

button, input, select, textarea {
    font-family: inherit;
    color: inherit;
}

/* Scrollbar Monocromática */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-black);
}
::-webkit-scrollbar-thumb {
    background: var(--white-35);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--white-75);
}

/* ============================================================================
   LAYOUT & CABEÇALHO
   ============================================================================ */
.container {
    width: 100%;
    max-width: 1340px;
    margin: 0 auto;
    padding: 0 24px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-regular);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-mark {
    width: 44px;
    height: 32px;
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: none;
    flex-shrink: 0;
}

.brand-mark svg {
    width: 100%;
    height: 100%;
    display: block;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--white-100);
}

.brand-subtitle {
    font-size: 0.72rem;
    color: var(--white-55);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* ============================================================================
   BOTÕES MONOCROMÁTICOS
   ============================================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: 0.86rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid var(--border-regular);
    background: var(--bg-surface-2);
    color: var(--white-100);
    white-space: nowrap;
}

.btn:hover {
    border-color: var(--white-100);
    background: var(--bg-surface-hover);
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--white-100);
    color: var(--bg-black);
    border-color: var(--white-100);
    font-weight: 700;
}

.btn-primary:hover {
    background: var(--white-90);
    color: var(--bg-black);
    box-shadow: 0 0 24px rgba(255, 255, 255, 0.28);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-regular);
    color: var(--white-90);
}

.btn-outline:hover {
    border-color: var(--white-100);
    background: rgba(255, 255, 255, 0.06);
    color: var(--white-100);
}

.btn-ghost {
    background: transparent;
    border-color: transparent;
    color: var(--white-75);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white-100);
    border-color: var(--border-hairline);
}

.btn-sm {
    padding: 7px 12px;
    font-size: 0.78rem;
}

.btn-block {
    width: 100%;
}

/* ============================================================================
   HERO & BARRA DE LOCALIZAÇÃO
   ============================================================================ */
.hero-section {
    padding: 46px 0 32px;
    border-bottom: 1px solid var(--border-hairline);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 28px;
    align-items: end;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-regular);
    background: var(--bg-surface-1);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--white-75);
    margin-bottom: 16px;
}

.pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--white-100);
    box-shadow: 0 0 8px var(--white-100);
    animation: monoPulse 2s infinite;
}

@keyframes monoPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.35; transform: scale(0.85); }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 3.5vw, 3.1rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--white-100);
    margin-bottom: 14px;
}

.hero-description {
    font-size: 1rem;
    color: var(--white-75);
    max-width: 640px;
}

.geo-status-card {
    background: var(--bg-surface-1);
    border: 1px solid var(--border-regular);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: var(--shadow-glow);
}

.geo-status-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.geo-status-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--white-55);
    font-weight: 600;
}

.geo-status-badge {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    padding: 3px 9px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-regular);
    background: var(--bg-surface-3);
    color: var(--white-90);
}

.geo-status-text {
    font-size: 0.88rem;
    color: var(--white-90);
}

/* ============================================================================
   PAINEL DE FILTROS E MAPA INTERATIVO P&B
   ============================================================================ */
.workspace-section {
    padding: 28px 0 64px;
}

.filter-bar {
    background: var(--bg-surface-1);
    border: 1px solid var(--sky-blue-border);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 0 28px rgba(34, 197, 94, 0.08);
}

.filter-controls-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.2fr 1.2fr auto;
    gap: 12px;
    align-items: end;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field-label {
    font-size: 0.73rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--white-75);
}

.filter-bar .field-label {
    color: var(--sky-blue-bright);
}

.input-control,
.select-control,
.textarea-control {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-black);
    border: 1px solid var(--border-regular);
    border-radius: var(--radius-sm);
    color: var(--white-100);
    font-size: 0.9rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

/* Destaque em Azul Claro para o campo de busca e filtros da barra */
#filterSearch {
    border-color: var(--sky-blue-border);
    background: rgba(34, 197, 94, 0.06);
}

#filterSearch::placeholder {
    color: rgba(74, 222, 128, 0.55);
}

.input-control::placeholder,
.textarea-control::placeholder {
    color: var(--white-35);
}

.input-control:focus,
.select-control:focus,
.textarea-control:focus {
    outline: none;
    border-color: var(--sky-blue);
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25);
}

/* Estado Azul Claro quando um campo de busca ou select está filtrando ativamente */
.input-control.filter-active,
.select-control.filter-active {
    border-color: var(--sky-blue) !important;
    background-color: rgba(34, 197, 94, 0.18) !important;
    color: #FFFFFF !important;
    font-weight: 600;
    box-shadow: var(--sky-blue-glow) !important;
}

.select-control option {
    background-color: #0b0b0b;
    color: #FFFFFF;
}

.tags-strip-wrapper {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(34, 197, 94, 0.20);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

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

.tags-strip-title {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--sky-blue-bright);
    min-width: 90px;
    font-weight: 700;
}

.tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 11px;
    font-size: 0.76rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(34, 197, 94, 0.42);
    background: rgba(34, 197, 94, 0.08);
    color: var(--sky-blue-bright);
    cursor: pointer;
    transition: all 0.18s ease;
    user-select: none;
}

.tag-pill:hover {
    border-color: var(--sky-blue);
    color: #000000;
    background: var(--sky-blue-bright);
}

.tag-pill.active {
    background: var(--sky-blue);
    color: #000000;
    border-color: var(--sky-blue);
    box-shadow: var(--sky-blue-glow);
    font-weight: 700;
}

.tag-pill-service {
    border-style: dashed;
}

/* ============================================================================
   MAPA MONOCROMÁTICO COM PINOS EM AZUL CLARO
   ============================================================================ */
.map-section-card {
    background: var(--bg-surface-1);
    border: 1px solid var(--border-regular);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 28px;
}

.map-card-header {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-hairline);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.map-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.map-legend {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.78rem;
    color: var(--white-75);
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.legend-pin-partner {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--sky-blue);
    border: 2px solid var(--bg-black);
    box-shadow: 0 0 8px var(--sky-blue);
}

.legend-pin-user {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg-black);
    border: 2px solid var(--sky-blue-bright);
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.35);
}

.monochrome-map {
    width: 100%;
    height: 390px;
    background: #050505;
}

/* Converte o mapa OpenStreetMap oficial para Dark Mode Monocromático (P&B puro, sem chave de API) */
.leaflet-tile-pane {
    filter: invert(100%) grayscale(100%) brightness(88%) contrast(122%);
}

.leaflet-attribution-flag {
    display: none !important;
}

.leaflet-container {
    background: #050505 !important;
    font-family: var(--font-sans) !important;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
    background: var(--bg-black) !important;
    color: var(--white-100) !important;
    border: 1px solid var(--sky-blue) !important;
    border-radius: var(--radius-sm) !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.95) !important;
}

.leaflet-popup-content {
    margin: 14px 16px !important;
    line-height: 1.45 !important;
}

.leaflet-control-zoom a {
    background-color: var(--bg-black) !important;
    color: var(--white-100) !important;
    border-color: var(--border-regular) !important;
}

.leaflet-control-zoom a:hover {
    background-color: var(--sky-blue) !important;
    color: var(--bg-black) !important;
}

.leaflet-control-attribution {
    background: rgba(0, 0, 0, 0.75) !important;
    color: var(--white-55) !important;
    font-size: 10px !important;
}
.leaflet-control-attribution a {
    color: var(--white-75) !important;
}

/* Marcadores Customizados em Azul Claro */
.mono-pin-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mono-pin {
    width: 28px;
    height: 28px;
    border-radius: 50% 50% 50% 0;
    background: var(--sky-blue);
    border: 2px solid var(--bg-black);
    transform: rotate(-45deg);
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.65), 0 0 0 2px var(--sky-blue-bright);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.mono-pin::after {
    content: '';
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--bg-black);
}

.mono-pin.pending-pin {
    background: var(--bg-surface-3);
    border: 2px dashed var(--sky-blue-bright);
}
.mono-pin.pending-pin::after {
    background: var(--sky-blue-bright);
}

.mono-user-pin {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--bg-black);
    border: 3px solid var(--sky-blue);
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.28), 0 0 18px rgba(34, 197, 94, 0.85);
}

/* ============================================================================
   GRID DE CARDS DE EMPRESAS PARCEIRAS
   ============================================================================ */
.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    gap: 12px;
    flex-wrap: wrap;
}

.results-count {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--white-90);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 20px;
}

.partner-card {
    background: var(--bg-surface-1);
    border: 1px solid var(--border-regular);
    border-radius: var(--radius-md);
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
    position: relative;
}

.partner-card:hover {
    transform: translateY(-3px);
    border-color: var(--white-100);
    box-shadow: var(--shadow-elevated);
}

.partner-card-top {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.partner-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.partner-name {
    font-family: var(--font-display);
    font-size: 1.22rem;
    font-weight: 700;
    color: var(--white-100);
    line-height: 1.25;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.partner-flag-icon {
    width: 22px;
    height: 16px;
    border-radius: 3px;
    flex-shrink: 0;
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.rating-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(251, 191, 36, 0.55);
    background: rgba(251, 191, 36, 0.12);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 700;
    color: #FBBF24;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 0 12px rgba(251, 191, 36, 0.18);
    transition: all 0.18s ease;
}

.rating-pill:hover {
    border-color: #FBBF24;
    background: #FBBF24;
    color: var(--bg-black);
    box-shadow: 0 0 18px rgba(251, 191, 36, 0.45);
}

.partner-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.82rem;
    color: var(--white-75);
}

.location-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.distance-badge {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    background: var(--sky-blue);
    color: var(--bg-black);
    font-weight: 700;
}

.partner-desc {
    font-size: 0.88rem;
    color: var(--white-75);
    line-height: 1.5;
}

.partner-offerings {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 0;
    border-top: 1px solid var(--border-hairline);
    border-bottom: 1px solid var(--border-hairline);
}

.offering-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.offering-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--white-55);
}

.offering-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.mini-tag {
    font-size: 0.74rem;
    padding: 3px 9px;
    border-radius: var(--radius-sm);
    background: var(--bg-surface-2);
    border: 1px solid var(--border-regular);
    color: var(--white-90);
    cursor: pointer;
    transition: all 0.15s ease;
}

.mini-tag.service-variant {
    background: transparent;
    border-style: dashed;
}

.mini-tag:hover,
.mini-tag.active,
.mini-tag.service-variant:hover,
.mini-tag.service-variant.active {
    background: var(--sky-blue);
    color: var(--bg-black);
    border-color: var(--sky-blue);
    border-style: solid;
    font-weight: 700;
    box-shadow: var(--sky-blue-glow);
}

.partner-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.partner-actions-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

/* Botões de Contato (WhatsApp, Instagram, Site) com contorno branco sem preenchimento */
.btn-contact-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    width: 100%;
    padding: 9px 12px;
    font-size: 0.82rem;
    font-weight: 600;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: var(--radius-sm);
    color: #FFFFFF;
    transition: all 0.2s ease;
    overflow: hidden;
}

.btn-contact-outline:hover {
    background: rgba(255, 255, 255, 0.10);
    border-color: #FFFFFF;
    color: #FFFFFF;
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.16);
    transform: translateY(-1px);
}

.btn-contact-outline svg {
    flex-shrink: 0;
}

.btn-contact-outline span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.partner-actions-secondary {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    margin-top: 8px;
}

/* ============================================================================
   MODAIS MONOCROMÁTICOS (CADASTRO & AVALIAÇÕES)
   ============================================================================ */
/* Trava o scroll da página de fundo quando qualquer modal está aberto */
body.modal-open {
    overflow: hidden !important;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
    overscroll-behavior: contain;
}

.modal-backdrop.open {
    display: flex;
}

.modal-dialog {
    width: 100%;
    max-width: 680px;
    max-height: 88vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--bg-surface-1);
    border: 1px solid var(--sky-blue);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-elevated);
    animation: modalFadeIn 0.2s ease;
}

.modal-dialog::-webkit-scrollbar {
    width: 10px;
}
.modal-dialog::-webkit-scrollbar-track {
    background: #050505;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
}
.modal-dialog::-webkit-scrollbar-thumb {
    background: var(--sky-blue);
    border-radius: 5px;
    border: 2px solid #050505;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-regular);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: sticky;
    top: 0;
    background: var(--bg-surface-1);
    z-index: 10;
}

.modal-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.modal-close {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-regular);
    background: var(--bg-black);
    color: var(--white-100);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.modal-close:hover {
    background: var(--white-100);
    color: var(--bg-black);
}

.modal-body {
    padding: 24px;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-row {
    margin-bottom: 14px;
}

.field-hint {
    font-size: 0.74rem;
    color: var(--white-55);
    margin-top: 4px;
}

.mini-picker-map {
    width: 100%;
    height: 210px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-regular);
    margin-top: 8px;
}

/* Honeypot invisível para humanos */
.hp-trap-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Seletor de Estrelas em P&B */
.star-rating-selector {
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 6px;
}

.star-rating-selector input {
    display: none;
}

.star-rating-selector label {
    font-size: 1.75rem;
    color: var(--white-35);
    cursor: pointer;
    transition: transform 0.15s ease, color 0.15s ease;
    line-height: 1;
}

.star-rating-selector label:hover,
.star-rating-selector label:hover ~ label,
.star-rating-selector input:checked ~ label {
    color: #FBBF24;
    text-shadow: 0 0 14px rgba(251, 191, 36, 0.55);
    transform: scale(1.06);
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
    max-height: 290px;
    overflow-y: auto;
    padding-right: 4px;
}

.review-item {
    background: var(--bg-black);
    border: 1px solid var(--border-regular);
    border-radius: var(--radius-sm);
    padding: 14px;
}

.review-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    gap: 8px;
}

.reviewer-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--white-100);
}

.review-stars {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: #FBBF24;
}

.review-comment {
    font-size: 0.86rem;
    color: var(--white-75);
    white-space: pre-wrap;
    word-break: break-word;
}

.review-date {
    font-size: 0.72rem;
    color: var(--white-55);
    margin-top: 6px;
}

.security-challenge-box {
    background: var(--bg-black);
    border: 1px solid var(--border-regular);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.status-banner {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--white-100);
    background: var(--bg-surface-2);
    color: var(--white-100);
    font-size: 0.88rem;
    margin-bottom: 16px;
    display: none;
}

.status-banner.show {
    display: block;
}

/* ============================================================================
   PAINEL DO ADMINISTRADOR (DASHBOARD, GRÁFICOS P&B, TABELAS)
   ============================================================================ */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.kpi-card {
    background: var(--bg-surface-1);
    border: 1px solid var(--border-regular);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.kpi-label {
    font-size: 0.73rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--white-55);
    font-weight: 600;
}

.kpi-value {
    font-family: var(--font-display);
    font-size: 2.1rem;
    font-weight: 700;
    color: var(--white-100);
    line-height: 1.1;
}

.kpi-sub {
    font-size: 0.78rem;
    color: var(--white-75);
}

.admin-charts-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 20px;
    margin-bottom: 24px;
}

.admin-panel-card {
    background: var(--bg-surface-1);
    border: 1px solid var(--border-regular);
    border-radius: var(--radius-md);
    padding: 22px;
    margin-bottom: 24px;
}

.admin-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-hairline);
    flex-wrap: wrap;
}

.mono-bar-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mono-bar-row {
    display: grid;
    grid-template-columns: 180px 1fr 50px;
    align-items: center;
    gap: 12px;
    font-size: 0.82rem;
}

.mono-bar-track {
    width: 100%;
    height: 10px;
    background: var(--bg-black);
    border: 1px solid var(--border-regular);
    border-radius: var(--radius-pill);
    overflow: hidden;
}

.mono-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--white-55), var(--white-100));
    border-radius: var(--radius-pill);
}

.admin-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.86rem;
}

.admin-table th,
.admin-table td {
    padding: 13px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-hairline);
    vertical-align: top;
}

.admin-table th {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--white-55);
    background: var(--bg-black);
}

.badge-mono {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: var(--radius-pill);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.badge-approved {
    background: var(--white-100);
    color: var(--bg-black);
}

.badge-pending {
    background: transparent;
    color: var(--white-100);
    border: 1px dashed var(--white-100);
}

.empty-state {
    text-align: center;
    padding: 48px 20px;
    border: 1px dashed var(--border-regular);
    border-radius: var(--radius-md);
    color: var(--white-75);
}

.site-footer {
    border-top: 1px solid var(--border-regular);
    padding: 28px 0;
    margin-top: 40px;
    font-size: 0.82rem;
    color: var(--white-55);
}

@media (max-width: 992px) {
    .hero-grid,
    .admin-charts-grid {
        grid-template-columns: 1fr;
    }
    .filter-controls-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .filter-controls-grid,
    .form-grid-2,
    .partner-actions {
        grid-template-columns: 1fr;
    }
    .partners-grid {
        grid-template-columns: 1fr;
    }
    .header-inner {
        height: auto;
        padding: 14px 0;
        flex-direction: column;
        align-items: stretch;
    }
    .header-actions {
        justify-content: space-between;
    }
    .mono-bar-row {
        grid-template-columns: 120px 1fr 36px;
    }
}
