/* ==============================================================================
   HABITAR IMÓVEIS PNZ - PAINEL ADMINISTRATIVO (admin.css)
   Design System: Alto Padrão 2026 - Black / Graphite / Gold
   ============================================================================== */

:root {
    --adm-bg: #08090A;
    --adm-card-bg: #101114;
    --adm-surface: #18191D;
    --adm-surface-light: #22242A;
    --adm-border: rgba(255, 255, 255, 0.08);
    --adm-border-focus: #C99532;
    
    --adm-gold: #C99532;
    --adm-gold-light: #E3B75D;
    --adm-gold-glow: rgba(201, 149, 50, 0.2);
    
    --adm-text-primary: #FFFFFF;
    --adm-text-secondary: #9E9E9E;
    --adm-text-muted: #6B7280;
    
    --adm-success: #10B981;
    --adm-danger: #EF4444;
    --adm-warning: #F59E0B;
    --adm-info: #3B82F6;

    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --sidebar-width: 260px;
}

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

body {
    background-color: var(--adm-bg);
    color: var(--adm-text-primary);
    font-family: var(--font-sans);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ==============================================================================
   TELA DE LOGIN
   ============================================================================== */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: radial-gradient(circle at top center, rgba(201, 149, 50, 0.08) 0%, #08090A 70%);
}

.login-card {
    background: var(--adm-card-bg);
    border: 1px solid rgba(201, 149, 50, 0.3);
    border-radius: 20px;
    padding: 44px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
    text-align: center;
}

.login-logo {
    max-height: 48px;
    width: auto;
    margin-bottom: 24px;
}

.login-title {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    color: var(--adm-text-primary);
    margin-bottom: 6px;
}

.login-subtitle {
    font-size: 0.875rem;
    color: var(--adm-text-secondary);
    margin-bottom: 32px;
}

.login-alert {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.8125rem;
    margin-bottom: 20px;
    display: none;
    text-align: left;
}

.login-field {
    text-align: left;
    margin-bottom: 20px;
}

.login-field label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--adm-gold);
    margin-bottom: 8px;
}

.login-field input {
    width: 100%;
    background: var(--adm-surface);
    border: 1px solid var(--adm-border);
    color: var(--adm-text-primary);
    padding: 13px 16px;
    border-radius: 10px;
    font-size: 0.9375rem;
    outline: none;
    font-family: var(--font-sans);
    transition: all 0.3s;
}

.login-field input:focus {
    border-color: var(--adm-gold);
    box-shadow: 0 0 0 3px var(--adm-gold-glow);
}

.btn-login-submit {
    width: 100%;
    background: var(--adm-gold);
    color: #08090A;
    border: none;
    padding: 14px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.btn-login-submit:hover {
    background: var(--adm-gold-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--adm-gold-glow);
}

.login-hint {
    margin-top: 24px;
    font-size: 0.75rem;
    color: var(--adm-text-muted);
}

/* ==============================================================================
   LAYOUT ADMINISTRATIVO (SIDEBAR + MAIN)
   ============================================================================== */
.admin-app {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.admin-sidebar {
    width: var(--sidebar-width);
    background: var(--adm-card-bg);
    border-right: 1px solid var(--adm-border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid var(--adm-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-logo {
    max-height: 36px;
    width: auto;
}

.sidebar-badge {
    font-size: 0.6875rem;
    background: rgba(201, 149, 50, 0.15);
    color: var(--adm-gold);
    border: 1px solid rgba(201, 149, 50, 0.4);
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.sidebar-nav {
    flex: 1;
    padding: 24px 12px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    color: var(--adm-text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-item i {
    width: 20px;
    text-align: center;
    font-size: 1.05rem;
}

.nav-item:hover {
    color: var(--adm-text-primary);
    background: var(--adm-surface);
}

.nav-item.active {
    background: rgba(201, 149, 50, 0.15);
    color: var(--adm-gold);
    font-weight: 600;
    border-left: 3px solid var(--adm-gold);
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--adm-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.user-info-brief {
    display: flex;
    flex-direction: column;
}

.user-email-label {
    font-size: 0.75rem;
    color: var(--adm-text-secondary);
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-sidebar-logout {
    background: none;
    border: none;
    color: var(--adm-danger);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s;
}

.btn-sidebar-logout:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* Área Principal */
.admin-main {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* Topbar */
.admin-topbar {
    height: 70px;
    background: var(--adm-card-bg);
    border-bottom: 1px solid var(--adm-border);
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 90;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-mobile-sidebar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--adm-text-primary);
    font-size: 1.25rem;
    cursor: pointer;
}

.topbar-page-title {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    color: var(--adm-text-primary);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-view-site {
    background: var(--adm-surface);
    border: 1px solid var(--adm-border);
    color: var(--adm-text-secondary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-view-site:hover {
    color: var(--adm-gold);
    border-color: var(--adm-gold);
}

/* Conteúdo */
.admin-content {
    flex: 1;
    padding: 32px;
}

/* ==============================================================================
   ESTILOS GERAIS DE CARDS E BOTÕES NO PAINEL
   ============================================================================== */
.adm-card {
    background: var(--adm-card-bg);
    border: 1px solid var(--adm-border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.btn-adm-primary {
    background: var(--adm-gold);
    color: #08090A;
    border: none;
    padding: 10px 22px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-adm-primary:hover {
    background: var(--adm-gold-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--adm-gold-glow);
}

.btn-adm-secondary {
    background: var(--adm-surface);
    color: var(--adm-text-primary);
    border: 1px solid var(--adm-border);
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-adm-secondary:hover {
    background: var(--adm-surface-light);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-adm-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-adm-danger:hover {
    background: #ef4444;
    color: white;
}

/* ==============================================================================
   DASHBOARD VIEW
   ============================================================================== */
.stats-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card-luxury {
    background: var(--adm-card-bg);
    border: 1px solid var(--adm-border);
    border-radius: 14px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 0.2s ease;
}

.stat-card-luxury:hover {
    transform: translateY(-3px);
    border-color: rgba(201, 149, 50, 0.3);
}

.stat-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.stat-card-icon.gold {
    background: rgba(201, 149, 50, 0.15);
    color: var(--adm-gold);
}

.stat-card-icon.blue {
    background: rgba(59, 130, 246, 0.15);
    color: var(--adm-info);
}

.stat-card-icon.green {
    background: rgba(16, 185, 129, 0.15);
    color: var(--adm-success);
}

.stat-card-icon.red {
    background: rgba(239, 68, 68, 0.15);
    color: var(--adm-danger);
}

.stat-card-icon.purple {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
}

.stat-card-info h4 {
    font-size: 1.625rem;
    font-weight: 700;
    color: var(--adm-text-primary);
    line-height: 1.2;
}

.stat-card-info p {
    font-size: 0.8125rem;
    color: var(--adm-text-secondary);
}

/* Header de Seção */
.section-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.section-top-bar h2 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    color: var(--adm-text-primary);
}

/* ==============================================================================
   TABELA DE IMÓVEIS (CRUD LIST)
   ============================================================================== */
.filters-toolbar-admin {
    background: var(--adm-card-bg);
    border: 1px solid var(--adm-border);
    border-radius: 14px;
    padding: 16px 20px;
    margin-bottom: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.admin-search-input {
    flex: 1;
    min-width: 240px;
    background: var(--adm-surface);
    border: 1px solid var(--adm-border);
    color: var(--adm-text-primary);
    padding: 9px 16px 9px 38px;
    border-radius: 20px;
    font-size: 0.875rem;
    outline: none;
    font-family: var(--font-sans);
}

.admin-search-input:focus {
    border-color: var(--adm-gold);
}

.admin-select {
    background: var(--adm-surface);
    border: 1px solid var(--adm-border);
    color: var(--adm-text-primary);
    padding: 9px 16px;
    border-radius: 20px;
    font-size: 0.8125rem;
    outline: none;
    cursor: pointer;
    font-family: var(--font-sans);
}

.admin-select:focus {
    border-color: var(--adm-gold);
}

/* Tabela Responsiva */
.table-responsive {
    overflow-x: auto;
    border-radius: 14px;
    border: 1px solid var(--adm-border);
    background: var(--adm-card-bg);
}

.adm-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    text-align: left;
}

.adm-table th {
    background: var(--adm-surface);
    color: var(--adm-text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--adm-border);
    white-space: nowrap;
}

.adm-table td {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    vertical-align: middle;
}

.adm-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* Células customizadas */
.property-thumb-cell {
    width: 60px;
    height: 44px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--adm-surface);
}

.property-thumb-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.prop-title-cell {
    font-weight: 600;
    color: var(--adm-text-primary);
    display: flex;
    flex-direction: column;
}

.prop-code-sub {
    font-size: 0.75rem;
    color: var(--adm-gold);
    font-weight: 500;
}

/* Badges de Status na Tabela */
.adm-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    white-space: nowrap;
}

.adm-badge-venda {
    background: rgba(201, 149, 50, 0.15);
    color: var(--adm-gold);
    border: 1px solid rgba(201, 149, 50, 0.3);
}

.adm-badge-aluguel {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.adm-badge-disponivel {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.adm-badge-reservado {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
}

.adm-badge-vendido {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.adm-badge-alugado {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.adm-badge-draft {
    background: rgba(107, 114, 128, 0.2);
    color: #9ca3af;
    border: 1px dashed rgba(107, 114, 128, 0.4);
}

.adm-badge-published {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

/* Ações na Tabela */
.table-actions-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.btn-tbl-action {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--adm-surface);
    border: 1px solid var(--adm-border);
    color: var(--adm-text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.8125rem;
}

.btn-tbl-action:hover {
    color: var(--adm-text-primary);
    background: var(--adm-surface-light);
}

.btn-tbl-action.edit:hover { color: var(--adm-gold); border-color: var(--adm-gold); }
.btn-tbl-action.duplicate:hover { color: var(--adm-info); border-color: var(--adm-info); }
.btn-tbl-action.toggle:hover { color: var(--adm-success); border-color: var(--adm-success); }
.btn-tbl-action.star.active { color: var(--adm-gold); }
.btn-tbl-action.delete:hover { color: var(--adm-danger); border-color: var(--adm-danger); }

/* ==============================================================================
   FORMULÁRIO DE CADASTRO/EDIÇÃO DE IMÓVEL EM BLOCOS
   ============================================================================== */
.form-stepped-wrapper {
    display: flex;
    flex-direction: column;
    gap: 28px;
    max-width: 1080px;
}

.form-block {
    background: var(--adm-card-bg);
    border: 1px solid var(--adm-border);
    border-radius: 16px;
    padding: 28px;
}

.form-block-header {
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--adm-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.form-block-title {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    color: var(--adm-gold);
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.form-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.form-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

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

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

.form-group label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--adm-text-secondary);
}

.form-group label span.required {
    color: var(--adm-gold);
}

.form-control {
    background: var(--adm-surface);
    border: 1px solid var(--adm-border);
    color: var(--adm-text-primary);
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 0.875rem;
    outline: none;
    font-family: var(--font-sans);
    transition: border-color 0.2s;
}

.form-control:focus {
    border-color: var(--adm-gold);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.form-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    color: var(--adm-text-primary);
    cursor: pointer;
    user-select: none;
}

.form-checkbox-label input[type="checkbox"],
.form-checkbox-label input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--adm-gold);
    cursor: pointer;
}

/* Grid de Checkboxes de Características */
.features-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
    margin-top: 10px;
}

/* Tags de Características Personalizadas */
.custom-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.custom-tag-chip {
    background: var(--adm-surface);
    border: 1px solid var(--adm-border);
    color: var(--adm-text-primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8125rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.custom-tag-chip button {
    background: none;
    border: none;
    color: var(--adm-text-muted);
    cursor: pointer;
    font-size: 0.75rem;
}

.custom-tag-chip button:hover {
    color: var(--adm-danger);
}

/* Bloco de Upload de Fotos */
.photo-dropzone {
    border: 2px dashed rgba(201, 149, 50, 0.4);
    background: rgba(24, 25, 29, 0.6);
    border-radius: 14px;
    padding: 36px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.photo-dropzone:hover, .photo-dropzone.dragover {
    background: rgba(201, 149, 50, 0.08);
    border-color: var(--adm-gold);
}

.photo-dropzone i {
    font-size: 2.5rem;
    color: var(--adm-gold);
    margin-bottom: 12px;
}

.photo-dropzone p {
    font-size: 0.875rem;
    color: var(--adm-text-secondary);
}

.photo-grid-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 14px;
    margin-top: 20px;
}

.photo-preview-item {
    position: relative;
    height: 110px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid var(--adm-border);
    background: var(--adm-surface);
}

.photo-preview-item.is-cover {
    border-color: var(--adm-gold);
    box-shadow: 0 0 10px var(--adm-gold-glow);
}

.photo-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cover-badge-tag {
    position: absolute;
    top: 6px;
    left: 6px;
    background: var(--adm-gold);
    color: #08090A;
    font-size: 0.625rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.photo-actions-overlay {
    position: absolute;
    inset: 0;
    background: rgba(8, 9, 10, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.2s;
}

.photo-preview-item:hover .photo-actions-overlay {
    opacity: 1;
}

.btn-photo-action {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-photo-action:hover {
    background: var(--adm-gold);
    color: #08090A;
}

.btn-photo-action.delete:hover {
    background: var(--adm-danger);
    color: white;
}

/* Barra de Ações Fixa no Rodapé do Form */
.form-actions-sticky {
    position: sticky;
    bottom: 20px;
    background: var(--adm-card-bg);
    border: 1px solid var(--adm-gold);
    border-radius: 14px;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    z-index: 80;
}

/* ==============================================================================
   MODAL DE CONFIRMAÇÃO DE EXCLUSÃO & PREVIEW
   ============================================================================== */
.adm-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.adm-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.adm-confirm-dialog {
    background: var(--adm-card-bg);
    border: 1px solid var(--adm-border);
    border-radius: 16px;
    padding: 32px;
    max-width: 440px;
    width: 100%;
    text-align: center;
}

.adm-confirm-icon {
    font-size: 3rem;
    color: var(--adm-danger);
    margin-bottom: 16px;
}

.adm-confirm-dialog h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.adm-confirm-dialog p {
    color: var(--adm-text-secondary);
    font-size: 0.875rem;
    margin-bottom: 24px;
}

.adm-confirm-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* ==============================================================================
   MODAL DE SUCESSO LUXUOSO & ORGANIZADO
   ============================================================================== */
.adm-success-dialog {
    background: linear-gradient(180deg, #161b24 0%, #0d1017 100%) !important;
    border: 1px solid rgba(201, 149, 50, 0.45) !important;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.9), 0 0 35px rgba(201, 149, 50, 0.15) !important;
    position: relative;
    overflow: hidden;
    max-width: 460px !important;
    padding: 36px 32px !important;
}

.adm-success-dialog::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--adm-gold), transparent);
}

.adm-success-icon {
    font-size: 3.5rem;
    color: var(--adm-gold);
    margin-bottom: 18px;
    display: inline-block;
    filter: drop-shadow(0 0 16px rgba(201, 149, 50, 0.45));
    animation: admSuccessPulse 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes admSuccessPulse {
    0% { transform: scale(0.5); opacity: 0; }
    80% { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}

.adm-success-dialog h3 {
    font-family: var(--font-serif);
    font-size: 1.625rem;
    color: var(--adm-gold-light);
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.adm-success-modal-msg {
    color: var(--adm-text-main) !important;
    font-size: 1.125rem !important;
    font-weight: 600 !important;
    margin-bottom: 8px !important;
    line-height: 1.4 !important;
}

.adm-success-modal-sub {
    color: var(--adm-text-muted) !important;
    font-size: 0.875rem !important;
    margin-bottom: 26px !important;
    line-height: 1.5 !important;
}

/* ==============================================================================
   TOAST NOTIFICATIONS (ELEGANTES & ORGANIZADOS)
   ============================================================================== */
.adm-toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 3500;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.adm-toast {
    pointer-events: auto;
    background: rgba(18, 22, 30, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(201, 149, 50, 0.35);
    border-left: 4px solid var(--adm-gold);
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.7);
    color: var(--adm-text-main);
    font-size: 0.875rem;
    max-width: 400px;
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.35s ease;
}

.adm-toast.active {
    transform: translateX(0);
    opacity: 1;
}

.adm-toast-icon {
    font-size: 1.25rem;
    color: var(--adm-gold);
    flex-shrink: 0;
}

.adm-toast.error {
    border-left-color: var(--adm-danger);
}

.adm-toast.error .adm-toast-icon {
    color: var(--adm-danger);
}

.adm-toast-body {
    flex: 1;
    min-width: 0;
}

.adm-toast-title {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--adm-text-main);
    margin-bottom: 2px;
}

.adm-toast-text {
    font-size: 0.8125rem;
    color: var(--adm-text-secondary);
    line-height: 1.35;
}

.adm-toast-close {
    background: none;
    border: none;
    color: var(--adm-text-muted);
    cursor: pointer;
    font-size: 0.9375rem;
    padding: 4px;
    transition: color 0.2s;
    line-height: 1;
    flex-shrink: 0;
}

.adm-toast-close:hover {
    color: var(--adm-text-main);
}

/* Backdrop para fechar Sidebar no Mobile */
.admin-sidebar-backdrop {
    display: none;
}

/* Responsividade Mobile Admin Completa */
@media (max-width: 992px) {
    .admin-sidebar {
        transform: translateX(-100%);
        z-index: 200;
        box-shadow: 10px 0 40px rgba(0, 0, 0, 0.8);
    }

    .admin-sidebar.open {
        transform: translateX(0);
    }

    .admin-sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.75);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 150;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .admin-sidebar-backdrop.active {
        opacity: 1;
        pointer-events: auto;
    }

    .admin-main {
        margin-left: 0;
        width: 100%;
    }

    .btn-mobile-sidebar-toggle {
        display: block;
    }

    .admin-content {
        padding: 20px 16px;
    }

    .topbar-right .btn-view-site span {
        display: none;
    }
}

@media (max-width: 768px) {
    .admin-topbar {
        padding: 0 12px;
        height: 52px;
    }

    .topbar-page-title {
        font-size: 1.05rem;
    }

    .admin-content {
        padding: 12px 10px;
    }

    .login-card {
        padding: 24px 16px;
        border-radius: 14px;
    }

    .login-title {
        font-size: 1.3rem;
    }

    .login-subtitle {
        font-size: 0.75rem;
    }

    .login-field {
        margin-bottom: 12px;
    }

    .login-field label {
        font-size: 0.75rem;
    }

    .login-field input {
        padding: 9px 12px;
        font-size: 0.8125rem;
    }

    .btn-login-submit {
        padding: 10px;
        font-size: 0.8125rem;
    }

    /* Dashboard: 2 Colunas Limpas e Compactas */
    .stats-cards-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        margin-bottom: 16px !important;
    }

    .stat-card-luxury {
        padding: 8px 10px !important;
        gap: 8px !important;
        border-radius: 10px !important;
    }

    .stat-card-icon {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.85rem !important;
        border-radius: 8px !important;
    }

    .stat-card-info h4 {
        font-size: 1.1rem !important;
        line-height: 1.1 !important;
    }

    .stat-card-info p {
        font-size: 0.65rem !important;
        line-height: 1.1 !important;
    }

    /* Topbars de Seção */
    .section-top-bar {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
        margin-bottom: 14px;
    }

    .section-top-bar h2 {
        font-size: 1.15rem;
    }

    .btn-adm-primary {
        padding: 7px 12px;
        font-size: 0.75rem;
        border-radius: 8px;
    }

    /* Barra de Filtros: 2 Colunas Organizadas */
    .filters-toolbar-admin {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        padding: 10px 12px;
        gap: 8px;
        margin-bottom: 14px;
        border-radius: 10px;
    }

    .search-input-box {
        grid-column: 1 / -1;
        min-width: 100%;
        width: 100%;
    }

    .admin-search-input {
        padding: 7px 12px 7px 32px;
        font-size: 0.785rem;
        border-radius: 14px;
        width: 100%;
    }

    .admin-select {
        padding: 6px 10px;
        font-size: 0.725rem;
        border-radius: 8px;
        width: 100%;
        min-width: 0;
    }

    #table-count-info {
        grid-column: 1 / -1;
        font-size: 0.7rem;
        margin-left: 0;
    }

    /* Tabelas Compactas com Scroll Fluido */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 10px;
    }

    .adm-table {
        min-width: 520px;
        font-size: 0.75rem;
    }

    .adm-table th {
        padding: 8px 10px;
        font-size: 0.65rem;
    }

    .adm-table td {
        padding: 8px 10px;
        font-size: 0.75rem;
    }

    .property-thumb-cell {
        width: 44px;
        height: 32px;
        border-radius: 4px;
    }

    .prop-title-cell {
        font-size: 0.785rem;
    }

    .prop-code-sub {
        font-size: 0.625rem;
    }

    .adm-badge {
        padding: 2px 6px;
        font-size: 0.6rem;
    }

    .btn-tbl-action {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }

    .adm-card {
        padding: 14px 12px;
        border-radius: 12px;
    }

    /* Formulário Compacto de Cadastro */
    .form-block {
        padding: 14px 12px;
        border-radius: 10px;
        margin-bottom: 12px;
    }

    .form-block-title {
        font-size: 0.875rem;
    }

    .form-group label {
        font-size: 0.725rem;
        margin-bottom: 2px;
    }

    .form-control {
        padding: 7px 10px;
        font-size: 0.8rem;
        border-radius: 8px;
    }

    #input-prop-name {
        font-size: 0.875rem !important;
        padding: 9px 12px !important;
    }

    #input-price-sale {
        font-size: 0.95rem !important;
    }

    .form-grid-2,
    .form-grid-3 {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .form-grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .photo-dropzone {
        padding: 16px 10px;
        border-radius: 10px;
    }

    .photo-dropzone i {
        font-size: 1.5rem;
    }

    .photo-dropzone p {
        font-size: 0.8rem;
        margin-top: 4px;
    }

    .photo-grid-preview {
        grid-template-columns: repeat(auto-fill, minmax(95px, 1fr));
        gap: 8px;
    }

    .photo-preview-item {
        height: 80px;
        border-radius: 8px;
    }

    .photo-actions-overlay {
        opacity: 1;
        background: transparent;
        pointer-events: none;
        justify-content: flex-end;
        align-items: flex-start;
        padding: 4px;
    }

    .photo-actions-overlay .btn-photo-action {
        pointer-events: auto;
        width: 26px;
        height: 26px;
        font-size: 0.75rem;
        background: rgba(15, 17, 21, 0.85);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .photo-actions-overlay .btn-photo-action.delete {
        background: rgba(220, 53, 69, 0.9);
        border-color: rgba(220, 53, 69, 1);
    }
}

@media (max-width: 640px) {
    .form-actions-sticky {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        border-radius: 14px 14px 0 0;
        padding: 8px 12px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
        z-index: 100;
        box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.9);
    }

    .form-actions-sticky button {
        padding: 8px 14px;
        font-size: 0.785rem;
        border-radius: 8px;
    }

    .form-actions-sticky > div {
        display: flex;
        flex-direction: row;
        gap: 6px;
    }
}

@media (max-width: 380px) {
    .stats-cards-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
    }

    .stat-card-luxury {
        padding: 6px 8px !important;
        gap: 6px !important;
    }

    .stat-card-icon {
        width: 26px !important;
        height: 26px !important;
        font-size: 0.725rem !important;
        border-radius: 6px !important;
    }

    .stat-card-info h4 {
        font-size: 0.95rem !important;
    }

    .stat-card-info p {
        font-size: 0.58rem !important;
    }

    .section-top-bar h2 {
        font-size: 1.05rem;
    }
}
