/* ==========================================
   EU CORRETOR — DESIGN SYSTEM FUTURISTA
   Paleta: Indigo + Cyan Neon | Glassmorphism
   ========================================== */
:root {
    /* CORES PRINCIPAIS */
    --primary: #6366f1;          /* Indigo neon */
    --primary-dark: #4f46e5;
    --primary-glow: rgba(99, 102, 241, 0.45);
    --accent: #06b6d4;           /* Cyan neon */
    --accent-dark: #0891b2;
    --accent-glow: rgba(6, 182, 212, 0.45);

    /* GRADIENTES ASSINATURA */
    --grad-primary: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
    --grad-soft: linear-gradient(135deg, rgba(99,102,241,0.12) 0%, rgba(6,182,212,0.12) 100%);
    --grad-radial: radial-gradient(circle at top right, rgba(99,102,241,0.15), transparent 60%);

    /* SUPERFÍCIES (modo claro) */
    --bg: #f6f7fb;
    --bg-card: #ffffff;
    --bg-elevated: #ffffff;
    --bg-overlay: rgba(255, 255, 255, 0.7);
    --text: #0f172a;
    --text-muted: #64748b;
    --text-soft: #94a3b8;
    --border: rgba(15, 23, 42, 0.08);
    --border-strong: rgba(15, 23, 42, 0.15);
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
    --shadow-glow: 0 0 40px var(--primary-glow);

    /* SEMÂNTICAS */
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;

    /* RAIOS */
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-pill: 999px;
}

/* MODO ESCURO — VISUAL FUTURISTA REAL */
[data-theme="dark"] {
    --bg: #0a0a14;
    --bg-card: #14141f;
    --bg-elevated: #1c1c2e;
    --bg-overlay: rgba(20, 20, 31, 0.7);
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --text-soft: #64748b;
    --border: rgba(99, 102, 241, 0.18);
    --border-strong: rgba(99, 102, 241, 0.35);
    --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 25px 60px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 50px var(--primary-glow);
    --grad-radial: radial-gradient(circle at top right, rgba(99,102,241,0.25), transparent 60%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
}

html, body {
    background-color: var(--bg);
    color: var(--text);
    transition: background-color 0.3s ease, color 0.3s ease;
    min-height: 100vh;
}

body {
    background-image: var(--grad-radial);
    background-attachment: fixed;
}

main {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    padding-bottom: 60px;
    position: relative;
}

.container {
    padding: 20px 16px;
}

/* ==========================================
   TIPOGRAFIA
   ========================================== */
h1, h2, h3, h4 {
    color: var(--text);
    letter-spacing: -0.02em;
    font-weight: 700;
}

a { color: var(--primary); }

/* ==========================================
   TOPBAR FUTURISTA
   ========================================== */
.topbar {
    background: var(--bg-overlay);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border-bottom: 1px solid var(--border);
    color: var(--text);
    padding: 14px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.topbar-content {
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
}

.topbar-logo img {
    height: 36px;
    width: 36px;
    object-fit: contain;
    border-radius: 10px;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.topbar-btn {
    background: transparent;
    border: 1px solid var(--border);
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text);
    transition: all 0.2s ease;
    text-decoration: none;
}

.topbar-btn:hover {
    background: var(--grad-soft);
    border-color: var(--border-strong);
    transform: translateY(-1px);
}

.topbar-btn svg {
    width: 18px;
    height: 18px;
}

.user-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--grad-soft);
    border: 1px solid var(--border);
    padding: 6px 10px 6px 6px;
    border-radius: var(--radius-pill);
    font-size: 0.82rem;
    color: var(--text);
    font-weight: 600;
}

.user-chip .avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--grad-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

/* ==========================================
   FORMULÁRIOS
   ========================================== */
.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.85rem;
    color: var(--text);
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background-color: var(--bg-card);
    color: var(--text);
    font-size: 0.95rem;
    transition: all 0.2s ease;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

.form-control::placeholder { color: var(--text-soft); }

textarea.form-control {
    resize: vertical;
    min-height: 90px;
}

select.form-control {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

/* ==========================================
   BOTÕES
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 18px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-primary {
    background: var(--grad-primary);
    color: #fff;
    box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 28px var(--primary-glow);
}

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

.btn-secondary {
    background: var(--bg-card);
    color: var(--text);
    border: 1px solid var(--border-strong);
}

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

.btn-ghost {
    background: var(--grad-soft);
    color: var(--primary);
    border: 1px solid var(--border);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.18);
}

.btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* ==========================================
   CARDS
   ========================================== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.card-glass {
    background: var(--bg-overlay);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

/* ==========================================
   ALERTS & TOASTS
   ========================================== */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideDown 0.3s ease;
}

.alert-success {
    background: rgba(16, 185, 129, 0.12);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.12);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.12);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.25);
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================
   BADGES & TAGS
   ========================================== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-size: 0.72rem;
    font-weight: 600;
    background: var(--grad-soft);
    color: var(--primary);
    border: 1px solid var(--border);
    white-space: nowrap;
}

.badge-solid {
    background: var(--grad-primary);
    color: #fff;
    border: none;
}

.badge-success {
    background: rgba(16, 185, 129, 0.12);
    color: var(--success);
    border-color: rgba(16, 185, 129, 0.25);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.12);
    color: var(--warning);
    border-color: rgba(245, 158, 11, 0.25);
}

/* CHIPS (filtros) */
.chip-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0 12px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.chip-row::-webkit-scrollbar { display: none; }

.chip {
    padding: 7px 14px;
    border-radius: var(--radius-pill);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    background: var(--bg-card);
    color: var(--text-muted);
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.chip:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.chip.active {
    background: var(--grad-primary);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 14px var(--primary-glow);
}

/* ==========================================
   PROPERTY CARD (Dashboard)
   ========================================== */
.property-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.property-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.property-slider {
    position: relative;
    width: 100%;
    background: var(--bg-elevated);
}

.slider-fotos {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.slider-fotos::-webkit-scrollbar { display: none; }

.slider-fotos img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    scroll-snap-align: center;
    flex: 0 0 100%;
    display: block;
}

.btn-seta {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-overlay);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text);
    font-size: 1.1rem;
    z-index: 10;
    transition: all 0.2s ease;
}

.btn-seta:active {
    transform: translateY(-50%) scale(0.92);
}

.property-price-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--grad-primary);
    color: #fff;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 4px 14px var(--primary-glow);
}

.property-type-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    color: #fff;
    padding: 5px 11px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.property-thumbs {
    display: flex;
    gap: 4px;
    padding: 6px 14px 0 14px;
    width: 100%;
}

.property-thumbs .thumb {
    flex: 1;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
}

.property-thumbs .thumb img {
    width: 100%;
    height: 56px;
    object-fit: cover;
    display: block;
}

.property-thumbs .thumb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
}

.property-info { padding: 14px 16px; }

.property-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
    margin-bottom: 4px;
}

.property-location {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.property-features {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding: 8px 0;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.property-feature {
    display: flex;
    align-items: center;
    gap: 4px;
}

.property-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

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

.action-row {
    display: flex;
    gap: 8px;
}

.action-row .btn { flex: 1; padding: 9px; font-size: 0.85rem; }

/* ==========================================
   PROPERTY VIEW (página pública)
   ========================================== */
.public-hero {
    text-align: center;
    padding: 14px;
    background: var(--bg-overlay);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.public-hero img {
    height: 50px;
    object-fit: contain;
    margin-bottom: 4px;
}

.public-hero p {
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 500;
}

.public-slider {
    background: #000;
    position: relative;
}

.public-slider .slider-fotos img {
    height: 360px;
}

.public-stats {
    display: flex;
    justify-content: space-around;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 14px;
    margin: 16px 0;
}

.public-stat {
    text-align: center;
    flex: 1;
}

.public-stat-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
}

.public-stat-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 2px;
}

.public-corretor {
    background: var(--grad-soft);
    border: 1px solid var(--border);
    padding: 16px;
    border-radius: var(--radius-lg);
    text-align: center;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.public-corretor-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--grad-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0;
}

.public-corretor-info {
    text-align: left;
    flex: 1;
}

.public-corretor-info .label {
    color: var(--text-muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.public-corretor-info .name {
    font-weight: 700;
    color: var(--text);
    font-size: 1.05rem;
    margin-top: 2px;
}

.public-cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--bg-overlay);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    padding: 14px 16px;
    z-index: 1000;
}

.public-cta-bar .inner {
    max-width: 480px;
    margin: 0 auto;
}

/* ==========================================
   EMPTY STATE
   ========================================== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    background: var(--grad-soft);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.empty-state h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
    color: var(--text);
}

.empty-state p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

/* ==========================================
   LOADING & ANIMATIONS
   ========================================== */
.loading-pulse {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid var(--primary);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

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

.fade-in { animation: fadeIn 0.4s ease; }

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

/* ==========================================
   PAGE HEADER (Botão voltar + título)
   ========================================== */
.page-header {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
    gap: 12px;
}

.page-header-back {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    text-decoration: none;
    transition: all 0.2s;
}

.page-header-back:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.page-header h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
}

/* ==========================================
   FOTOS PREVIEW (Adicionar/Editar)
   ========================================== */
.preview-grid {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px 0 4px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.preview-grid::-webkit-scrollbar { display: none; }

.preview-grid img {
    width: 78px;
    height: 78px;
    min-width: 78px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid var(--primary);
    box-shadow: 0 4px 12px var(--primary-glow);
}

.fotos-current-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.fotos-current-grid .item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
}

.fotos-current-grid .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fotos-current-grid .badge-capa {
    position: absolute;
    top: 4px;
    left: 4px;
    background: var(--grad-primary);
    color: #fff;
    font-size: 0.62rem;
    padding: 2px 7px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.fotos-current-grid .btn-remover {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--danger);
    color: #fff;
    text-decoration: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    border: 2px solid var(--bg-card);
}

/* ==========================================
   CONFIGURAÇÕES — PLANOS
   ========================================== */
.plan-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    text-decoration: none;
    color: var(--text);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
    position: relative;
}

.plan-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.plan-card.featured {
    border-color: var(--primary);
    background: var(--grad-soft);
    box-shadow: 0 6px 24px var(--primary-glow);
}

.plan-card .badge-recomendado {
    position: absolute;
    top: -10px;
    right: 16px;
    background: var(--grad-primary);
    color: #fff;
    font-size: 0.65rem;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    letter-spacing: 0.04em;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--border);
    border-radius: var(--radius-pill);
    overflow: hidden;
}

.progress-bar > div {
    height: 100%;
    background: var(--grad-primary);
    border-radius: var(--radius-pill);
    transition: width 0.5s ease;
}

/* ==========================================
   AUTH PAGES (login/cadastro)
   ========================================== */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: var(--bg);
    background-image:
        radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.18), transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(6, 182, 212, 0.18), transparent 50%);
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--bg-overlay);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--border);
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.auth-logo {
    text-align: center;
    margin-bottom: 24px;
}

.auth-logo img {
    max-height: 80px;
    margin-bottom: 10px;
    object-fit: contain;
}

.auth-logo h1 {
    font-size: 1.5rem;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
}

.auth-logo p { color: var(--text-muted); font-size: 0.9rem; }

.auth-link {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-link a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

/* ==========================================
   INSTALAR (LANDING PWA)
   ========================================== */
.install-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 24px 20px;
    text-align: center;
    background: var(--bg);
    background-image:
        radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.25), transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(6, 182, 212, 0.25), transparent 50%);
    position: relative;
    overflow: hidden;
}

.install-wrapper::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--grad-primary);
    opacity: 0.15;
    border-radius: 50%;
    top: -100px;
    right: -100px;
    filter: blur(80px);
}

.install-content {
    position: relative;
    z-index: 1;
    max-width: 360px;
    width: 100%;
}

.install-logo img {
    max-width: 110px;
    margin-bottom: 18px;
    filter: drop-shadow(0 12px 30px var(--primary-glow));
}

.install-title {
    font-size: 2.2rem;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.install-subtitle {
    color: var(--text-muted);
    margin-bottom: 32px;
    font-size: 1rem;
    line-height: 1.5;
}

/* ==========================================
   MAPA / GEO BOX
   ========================================== */
.geo-box {
    background: var(--grad-soft);
    border: 1px dashed var(--border-strong);
    padding: 14px;
    border-radius: var(--radius-md);
    margin: 16px 0;
}

.geo-divider {
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 10px 0;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ==========================================
   IFRAME MAPA
   ========================================== */
.map-frame {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

/* ==========================================
   UTILS
   ========================================== */
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

/* TRUQUE: filtro escuro para logo_login no tema escuro caso seja PNG colorido sólido */
[data-theme="dark"] img[src*="logo_login.png"] {
    filter: brightness(1.05);
}

/* ESCONDE elementos */
.hidden { display: none !important; }

/* SCROLL DA PÁGINA SUAVE */
html { scroll-behavior: smooth; }
