/* ============================================================
   CAPTUM — Identidade Visual
   Inspirado na paleta do logo (gradiente roxo → magenta)
   ============================================================ */

:root {
    /* Cores primárias do logo */
    --primary: #7c5cf0;          /* roxo principal */
    --primary-dark: #5e3fd9;
    --primary-light: #a29bfe;
    --secondary: #ec4faf;        /* magenta/rosa */
    --secondary-dark: #d63384;
    --gradient: linear-gradient(135deg, #7c5cf0 0%, #b06be0 50%, #ec4faf 100%);
    --gradient-soft: linear-gradient(135deg, #f5f3ff 0%, #fdf2f8 100%);

    /* Tons neutros */
    --ink: #0f172a;
    --ink-soft: #1e293b;
    --gray-900: #0f172a;
    --gray-800: #1e293b;
    --gray-700: #334155;
    --gray-600: #475569;
    --gray-500: #64748b;
    --gray-400: #94a3b8;
    --gray-300: #cbd5e1;
    --gray-200: #e2e8f0;
    --gray-100: #f1f5f9;
    --gray-50: #f8fafc;

    --white: #ffffff;
    --bg: #fafafa;
    --bg-card: #ffffff;

    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;

    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
    --shadow: 0 4px 12px rgba(15, 23, 42, .06);
    --shadow-md: 0 10px 30px rgba(15, 23, 42, .08);
    --shadow-lg: 0 20px 50px rgba(124, 92, 240, .15);
    --shadow-glow: 0 10px 40px rgba(236, 79, 175, .25);

    --font-display: 'Plus Jakarta Sans', -apple-system, sans-serif;
    --font-body: 'Manrope', -apple-system, sans-serif;
}

/* ============================================================
   RESET
   ============================================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.5;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .15s; }
a:hover { color: var(--secondary); }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    line-height: 1.2;
    color: var(--gray-900);
    font-weight: 700;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
    position: sticky;
    top: 0;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-100);
    z-index: 100;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 28px;
}
.logo-link { display: flex; align-items: center; }
.logo-img { height: 44px; width: auto; }

.main-nav {
    display: flex;
    gap: 4px;
    flex: 1;
    margin-left: 20px;
}
.main-nav a {
    color: var(--gray-700);
    font-weight: 600;
    font-size: 14px;
    padding: 8px 14px;
    border-radius: var(--radius);
    transition: all .15s;
}
.main-nav a:hover { background: var(--gray-100); color: var(--ink); }
.main-nav a.active {
    background: var(--gradient-soft);
    color: var(--primary);
}

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

/* ============================================================
   BADGE "MINHA SELEÇÃO" NO HEADER
   ============================================================ */
.selecao-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--gray-100);
    color: var(--gray-700);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all .2s;
    position: relative;
}
.selecao-badge:hover {
    background: var(--gradient-soft);
    color: var(--primary-dark);
    border-color: rgba(124,92,240,.15);
}
.selecao-badge.ativo {
    background: var(--gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(124,92,240,.35);
}
.selecao-badge.ativo:hover {
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(236,79,175,.4);
}
.selecao-badge svg { flex-shrink: 0; }
.selecao-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    background: white;
    color: var(--primary);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}
.selecao-badge:not(.ativo) .selecao-count {
    background: var(--gray-200);
    color: var(--gray-700);
}

/* Pulso quando atualiza */
@keyframes selecao-pulse {
    0% { transform: scale(1); }
    40% { transform: scale(1.15); }
    100% { transform: scale(1); }
}
.selecao-badge.ativo .selecao-count {
    animation: selecao-pulse .4s ease;
}

.creditos-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--gradient-soft);
    color: var(--primary-dark);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(124,92,240,.15);
}

.user-menu { position: relative; }
.user-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--gray-100);
    border: 0;
    padding: 6px 14px 6px 6px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    color: var(--ink);
    transition: background .15s;
}
.user-btn:hover { background: var(--gray-200); }
.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
}
.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-100);
    min-width: 220px;
    padding: 8px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: all .2s;
}
.user-dropdown.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.user-dropdown a {
    display: block;
    padding: 10px 14px;
    color: var(--gray-700);
    font-size: 14px;
    border-radius: var(--radius-sm);
}
.user-dropdown a:hover { background: var(--gray-100); color: var(--primary); }
.user-dropdown hr { border: 0; border-top: 1px solid var(--gray-100); margin: 4px 0; }

.menu-mobile { display: none; background: none; border: 0; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 14px;
    border: 0;
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
    white-space: nowrap;
}
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 16px 32px; font-size: 16px; }

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 14px rgba(124,92,240,.35);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(236,79,175,.4);
    color: white;
}

.btn-outline {
    background: white;
    color: var(--primary);
    border: 2px solid var(--gray-200);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.btn-dark {
    background: var(--gray-900);
    color: white;
}
.btn-dark:hover { background: var(--ink); color: white; transform: translateY(-2px); }

.btn-ghost { background: transparent; color: var(--gray-700); }
.btn-ghost:hover { background: var(--gray-100); }

.btn-link {
    color: var(--gray-700);
    font-weight: 600;
    font-size: 14px;
    padding: 8px 14px;
}
.btn-link:hover { color: var(--primary); }

.btn-block { width: 100%; }

.btn-unlock {
    background: var(--gradient);
    color: white;
    padding: 14px 24px;
    border-radius: var(--radius);
    font-weight: 700;
    border: 0;
    box-shadow: 0 6px 20px rgba(124,92,240,.3);
}

/* ============================================================
   ALERTS
   ============================================================ */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius);
    font-size: 14px;
    margin-bottom: 16px;
}
.alert-success { background: #ecfdf5; color: #065f46; border-left: 4px solid var(--success); }
.alert-error   { background: #fef2f2; color: #991b1b; border-left: 4px solid var(--error); }
.alert-warning { background: #fffbeb; color: #92400e; border-left: 4px solid var(--warning); }
.alert-info    { background: #f5f3ff; color: var(--primary-dark); border-left: 4px solid var(--primary); }

/* ============================================================
   HERO (Home)
   ============================================================ */
.hero {
    position: relative;
    background: linear-gradient(135deg, #1e1a2e 0%, #2d1b4e 50%, #4a1d6b 100%);
    color: white;
    padding: 80px 0 120px;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(236,79,175,.4), transparent 70%);
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -200px;
    left: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(124,92,240,.4), transparent 70%);
    pointer-events: none;
}
.hero-content { position: relative; z-index: 2; max-width: 820px; margin: 0 auto; text-align: center; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.1);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(255,255,255,.2);
}
.hero-badge .dot {
    width: 8px; height: 8px; background: #4ade80; border-radius: 50%;
    box-shadow: 0 0 10px #4ade80;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .5; }
}
.hero h1 {
    font-size: clamp(36px, 5vw, 56px);
    color: white;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 20px;
    font-weight: 800;
}
.hero h1 .highlight {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero p.lead {
    font-size: 18px;
    color: #cbd5e1;
    margin-bottom: 40px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero search */
.hero-search {
    background: white;
    border-radius: var(--radius-xl);
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 640px;
    margin: 0 auto;
    box-shadow: 0 30px 80px rgba(0,0,0,.3);
}
.hero-search input {
    flex: 1;
    border: 0;
    padding: 16px 20px;
    font-size: 16px;
    color: var(--ink);
    background: transparent;
    outline: none;
    font-family: inherit;
}
.hero-search button {
    background: var(--gradient);
    color: white;
    border: 0;
    padding: 14px 28px;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: 15px;
    transition: transform .15s;
}
.hero-search button:hover { transform: scale(1.02); }

/* Hero stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 60px;
    flex-wrap: wrap;
}
.hero-stat strong {
    display: block;
    font-size: 36px;
    font-family: var(--font-display);
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}
.hero-stat span { color: #94a3b8; font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 80px 0; }
.section-sm { padding: 50px 0; }

.section-header { text-align: center; margin-bottom: 48px; }
.section-eyebrow {
    color: var(--primary);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}
.section-title {
    font-size: clamp(28px, 3.5vw, 40px);
    letter-spacing: -1.5px;
    margin-bottom: 16px;
}
.section-sub { font-size: 17px; color: var(--gray-600); max-width: 640px; margin: 0 auto; }

/* ============================================================
   CARD DE IMÓVEL
   ============================================================ */
.imoveis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.imovel-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all .25s;
    border: 1px solid var(--gray-100);
    cursor: pointer;
    position: relative;
    text-decoration: none;
    color: inherit;
}
.imovel-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
    color: inherit;
}

.imovel-img-wrap {
    position: relative;
    aspect-ratio: 4/3;
    background: var(--gray-100);
    overflow: hidden;
}
.imovel-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.imovel-card:hover .imovel-img-wrap img { transform: scale(1.04); }

.imovel-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15,23,42,.85);
    backdrop-filter: blur(10px);
    color: white;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.imovel-tag.tag-locacao { background: rgba(124,92,240,.9); }
.imovel-tag.tag-venda { background: rgba(236,79,175,.9); }

.fav-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.95);
    border: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    transition: all .15s;
}
.fav-btn:hover { color: var(--secondary); transform: scale(1.1); }
.fav-btn.active { color: var(--secondary); }
.fav-btn.active svg { fill: currentColor; }

.imovel-body { padding: 18px; }
.imovel-bairro {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--gray-500);
    font-size: 13px;
    margin-bottom: 6px;
}
.imovel-titulo {
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 12px;
    font-family: var(--font-display);
    line-height: 1.3;
    /* Limita a 2 linhas */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.imovel-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--gray-600);
    font-size: 13px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--gray-100);
}
.imovel-feature { display: inline-flex; align-items: center; gap: 4px; }

.imovel-preco-wrap {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 8px;
}
.imovel-preco {
    font-size: 22px;
    font-weight: 800;
    color: var(--ink);
    font-family: var(--font-display);
    letter-spacing: -0.5px;
}
.imovel-preco small { font-size: 12px; color: var(--gray-500); font-weight: 500; }

.imovel-locked-info {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--gray-200);
    color: var(--gray-500);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.imovel-locked-info .lock-icon { color: var(--primary); }

/* ============================================================
   BOTÃO "SELECIONAR" NO CARD
   ============================================================ */
.card-selecao-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin-top: 12px;
    padding: 9px 12px;
    background: white;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    color: var(--gray-700);
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all .15s;
    position: relative;
    z-index: 3;
}
.card-selecao-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--gradient-soft);
}
.card-selecao-btn .ico-add { display: inline-block; }
.card-selecao-btn .ico-check { display: none; }
.card-selecao-btn.selecionado {
    background: var(--gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(124,92,240,.35);
}
.card-selecao-btn.selecionado:hover {
    background: var(--gradient);
    color: white;
}
.card-selecao-btn.selecionado .ico-add { display: none; }
.card-selecao-btn.selecionado .ico-check { display: inline-block; }

/* Variante para o card de detalhe (botão maior, lado a lado) */
.detalhe-side .card-selecao-btn {
    margin-top: 12px;
    padding: 13px 18px;
    font-size: 14px;
}

/* ============================================================
   PÁGINA "MINHA SELEÇÃO"
   ============================================================ */
.selecao-page {
    background: var(--gray-50);
    min-height: calc(100vh - 72px);
    padding: 40px 0 80px;
}
.selecao-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    margin-top: 24px;
}
.selecao-list {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100);
    overflow: hidden;
}
.selecao-list-header {
    padding: 16px 22px;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.selecao-list-header h3 { font-size: 16px; }
.selecao-item {
    display: grid;
    grid-template-columns: 90px 1fr auto;
    gap: 16px;
    padding: 16px 22px;
    border-bottom: 1px solid var(--gray-100);
    align-items: center;
}
.selecao-item:last-child { border-bottom: 0; }
.selecao-item-img {
    width: 90px;
    height: 70px;
    object-fit: cover;
    border-radius: var(--radius);
    background: var(--gray-100);
}
.selecao-item-body strong {
    display: block;
    font-size: 15px;
    color: var(--ink);
    font-family: var(--font-display);
    margin-bottom: 2px;
    line-height: 1.3;
}
.selecao-item-body .meta {
    font-size: 12px;
    color: var(--gray-500);
    margin-bottom: 4px;
}
.selecao-item-body .preco {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
}
.selecao-item-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 8px;
}
.selecao-status-novo {
    background: var(--gradient-soft);
    color: var(--primary-dark);
}
.selecao-status-desbloqueado {
    background: #ecfdf5;
    color: #065f46;
}
.btn-remover-selecao {
    background: none;
    border: 0;
    color: var(--gray-400);
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .15s;
}
.btn-remover-selecao:hover {
    background: #fef2f2;
    color: var(--error);
}

/* Resumo lateral da seleção */
.selecao-resumo {
    position: sticky;
    top: 88px;
    align-self: start;
    background: white;
    border-radius: var(--radius-xl);
    padding: 24px;
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow);
}
.selecao-resumo h3 {
    font-size: 16px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-100);
}
.selecao-resumo-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 8px 0;
    font-size: 14px;
    color: var(--gray-700);
}
.selecao-resumo-row strong { color: var(--ink); font-weight: 700; }
.selecao-resumo-total {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--gray-100);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}
.selecao-resumo-total span { font-size: 14px; color: var(--gray-600); }
.selecao-resumo-total strong {
    font-size: 30px;
    font-family: var(--font-display);
    letter-spacing: -1px;
    color: var(--ink);
}

/* Box do plano ativo */
.selecao-plano-box {
    background: var(--gradient-soft);
    border: 1px solid rgba(124,92,240,.2);
    border-radius: var(--radius);
    padding: 16px;
    margin-top: 16px;
}
.selecao-plano-box .titulo {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 6px;
}
.selecao-plano-box .creditos-num {
    font-size: 24px;
    font-weight: 800;
    font-family: var(--font-display);
    color: var(--primary-dark);
    line-height: 1;
}
.selecao-plano-box .creditos-label {
    font-size: 13px;
    color: var(--gray-700);
    margin-top: 2px;
}
.selecao-plano-box.alerta {
    background: #fffbeb;
    border-color: #fcd34d;
}
.selecao-plano-box.alerta .titulo { color: #b45309; }
.selecao-plano-box.alerta .creditos-num { color: #92400e; }

/* Empty state da seleção */
.selecao-vazia {
    background: white;
    border-radius: var(--radius-xl);
    padding: 80px 30px;
    text-align: center;
    border: 1px solid var(--gray-100);
}
.selecao-vazia .ico-vazio {
    width: 84px;
    height: 84px;
    margin: 0 auto 20px;
    background: var(--gradient-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}
.selecao-vazia h3 { font-size: 22px; margin-bottom: 8px; }
.selecao-vazia p { color: var(--gray-600); max-width: 420px; margin: 0 auto 24px; line-height: 1.6; }

/* ============================================================
   FILTROS
   ============================================================ */
.busca-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    margin-top: 32px;
}
.filtros-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--gray-100);
    position: sticky;
    top: 88px;
    align-self: start;
}
.filtros-card h3 { font-size: 16px; margin-bottom: 18px; display: flex; align-items: center; gap: 8px;}
.filtro-group { margin-bottom: 18px; }
.filtro-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--gray-700);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.filtro-group select,
.filtro-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--ink);
    background: white;
    font-family: inherit;
}
.filtro-group select:focus,
.filtro-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124,92,240,.1);
}
.filtro-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* Resultado da busca */
.busca-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 20px;
}
.busca-results-count {
    font-size: 14px;
    color: var(--gray-600);
}
.busca-results-count strong { color: var(--ink); font-weight: 700; }

/* ============================================================
   PLANOS
   ============================================================ */
.planos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
}
.plano-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 32px 28px;
    border: 1px solid var(--gray-100);
    position: relative;
    transition: transform .25s;
}
.plano-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.plano-card.destaque {
    background: linear-gradient(160deg, #1e1a2e, #2d1b4e);
    color: white;
    border: 0;
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}
.plano-card.destaque h3, .plano-card.destaque .plano-preco { color: white; }
.plano-card.destaque .plano-creditos { color: var(--primary-light); }
.plano-card.destaque ul li { color: rgba(255,255,255,.85); }

.plano-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient);
    color: white;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: var(--shadow-glow);
}
.plano-nome {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 8px;
}
.plano-preco {
    font-size: 44px;
    font-weight: 800;
    font-family: var(--font-display);
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -2px;
}
.plano-preco small { font-size: 16px; color: var(--gray-500); font-weight: 500; }
.plano-creditos {
    color: var(--secondary);
    font-weight: 700;
    margin-bottom: 24px;
    font-size: 14px;
}
.plano-card ul { list-style: none; padding: 0; margin-bottom: 28px; }
.plano-card ul li {
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 14px;
    color: var(--gray-700);
    display: flex;
    align-items: center;
    gap: 8px;
}
.plano-card.destaque ul li { border-color: rgba(255,255,255,.1); }
.plano-card ul li::before { content: "✓"; color: var(--success); font-weight: bold; }

/* ============================================================
   FORMULÁRIOS (Login/Cadastro)
   ============================================================ */
.auth-page {
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: var(--gradient-soft);
}
.auth-box {
    background: white;
    border-radius: var(--radius-xl);
    padding: 40px;
    max-width: 460px;
    width: 100%;
    box-shadow: var(--shadow-lg);
}
.auth-box h1 {
    font-size: 28px;
    margin-bottom: 8px;
    text-align: center;
}
.auth-box p.sub {
    color: var(--gray-500);
    margin-bottom: 28px;
    text-align: center;
    font-size: 14px;
}
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--gray-700);
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
    color: var(--ink);
    background: white;
    transition: all .15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(124,92,240,.1);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.auth-divider {
    text-align: center;
    color: var(--gray-400);
    font-size: 13px;
    margin: 20px 0;
    position: relative;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 30px);
    height: 1px;
    background: var(--gray-200);
}
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }

/* ============================================================
   PÁGINA DETALHE DO IMÓVEL
   ============================================================ */
.detalhe-page { padding: 32px 0 80px; }
.detalhe-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gray-600);
    font-size: 14px;
    margin-bottom: 20px;
    font-weight: 600;
}
.detalhe-back:hover { color: var(--primary); }

.detalhe-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
}

.galeria {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 140px;
    gap: 8px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 24px;
}
.galeria img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: opacity .2s;
}
.galeria img:hover { opacity: .9; }
.galeria-main { grid-column: 1 / 3; grid-row: 1 / 3; }

.detalhe-titulo {
    font-size: 28px;
    margin-bottom: 8px;
    letter-spacing: -1px;
}
.detalhe-meta {
    color: var(--gray-600);
    font-size: 14px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.detalhe-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 14px;
    margin: 24px 0;
    padding: 20px;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
}
.dfeat-item {
    display: flex;
    align-items: center;
    gap: 10px;
}
.dfeat-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}
.dfeat-text strong { font-size: 16px; color: var(--ink); display: block; }
.dfeat-text span { font-size: 12px; color: var(--gray-500); }

.detalhe-section { margin-top: 32px; }
.detalhe-section h3 {
    font-size: 20px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-100);
}

.feat-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
}
.feat-list span {
    font-size: 13px;
    color: var(--gray-700);
    padding: 4px 0;
}

/* Sidebar do detalhe */
.detalhe-side {
    position: sticky;
    top: 88px;
    align-self: start;
}
.preco-card {
    background: white;
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: var(--shadow);
}
.preco-card .preco-label {
    color: var(--gray-500);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.preco-card .preco-valor {
    font-size: 32px;
    font-weight: 800;
    font-family: var(--font-display);
    margin: 6px 0 16px;
    letter-spacing: -1px;
}
.preco-extras {
    display: grid;
    gap: 6px;
    padding: 14px 0;
    border-top: 1px solid var(--gray-100);
    border-bottom: 1px solid var(--gray-100);
    margin-bottom: 16px;
}
.preco-extras .row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}
.preco-extras .row span { color: var(--gray-500); }
.preco-extras .row strong { color: var(--ink); }

/* Bloco de proprietário (locked) */
.proprietario-locked {
    background: linear-gradient(160deg, #1e1a2e 0%, #2d1b4e 100%);
    border-radius: var(--radius-xl);
    padding: 28px 24px;
    color: white;
    text-align: center;
    margin-top: 16px;
    position: relative;
    overflow: hidden;
}
.proprietario-locked::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(236,79,175,.3), transparent 70%);
}
.proprietario-locked .lock-big {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(236,79,175,.4);
}
.proprietario-locked h4 { color: white; font-size: 18px; margin-bottom: 6px; }
.proprietario-locked p { color: rgba(255,255,255,.7); font-size: 13px; margin-bottom: 18px; }
.proprietario-locked .price-info {
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    padding: 12px;
    font-size: 13px;
    margin-bottom: 16px;
}
.proprietario-locked .price-info strong { color: white; font-size: 16px; }

/* Bloco de proprietário (unlocked) */
.proprietario-unlocked {
    background: linear-gradient(160deg, #ecfdf5 0%, #f0fdf4 100%);
    border: 1px solid #d1fae5;
    border-radius: var(--radius-xl);
    padding: 24px;
    margin-top: 16px;
}
.proprietario-unlocked h4 {
    color: #065f46;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.prop-info-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 14px;
    border-bottom: 1px solid rgba(16,185,129,.15);
}
.prop-info-row:last-child { border-bottom: 0; }
.prop-info-row strong { color: var(--ink); }
.prop-info-row .icon { color: var(--success); flex-shrink: 0; }

/* ============================================================
   DASHBOARD
   ============================================================ */
.dash-page { padding: 32px 0 80px; background: var(--gray-50); min-height: calc(100vh - 72px); }
.dash-welcome {
    background: var(--gradient);
    color: white;
    border-radius: var(--radius-xl);
    padding: 32px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}
.dash-welcome::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,.15), transparent 70%);
}
.dash-welcome h1 { color: white; font-size: 24px; margin-bottom: 4px; }
.dash-welcome p { opacity: .85; font-size: 14px; }

.dash-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}
.dash-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 22px;
    border: 1px solid var(--gray-100);
}
.dash-card-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    background: var(--gradient-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}
.dash-card-label {
    color: var(--gray-500);
    font-size: 13px;
    margin-bottom: 4px;
}
.dash-card-value {
    font-size: 28px;
    font-weight: 800;
    font-family: var(--font-display);
    color: var(--ink);
    line-height: 1;
}

.dash-tabs {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100);
    overflow: hidden;
}
.dash-tab-headers {
    display: flex;
    gap: 4px;
    padding: 8px;
    border-bottom: 1px solid var(--gray-100);
    overflow-x: auto;
}
.dash-tab-headers a {
    padding: 10px 18px;
    border-radius: var(--radius);
    color: var(--gray-600);
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}
.dash-tab-headers a:hover { background: var(--gray-100); }
.dash-tab-headers a.active {
    background: var(--gradient-soft);
    color: var(--primary);
}
.dash-tab-content { padding: 24px; }

.dash-table {
    width: 100%;
    border-collapse: collapse;
}
.dash-table th {
    text-align: left;
    padding: 12px 14px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-500);
    border-bottom: 1px solid var(--gray-100);
    font-weight: 700;
}
.dash-table td {
    padding: 14px;
    border-bottom: 1px solid var(--gray-100);
    font-size: 14px;
}
.dash-table tr:hover td { background: var(--gray-50); }

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-500);
}
.empty-state svg { margin-bottom: 16px; color: var(--gray-300); }
.empty-state h4 { color: var(--ink); font-size: 18px; margin-bottom: 6px; }
.empty-state p { font-size: 14px; margin-bottom: 18px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: #0f172a;
    color: white;
    padding: 64px 0 24px;
    margin-top: 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-logo { height: 36px; filter: brightness(0) invert(1); margin-bottom: 16px; }
.footer-tagline { color: #94a3b8; font-size: 14px; line-height: 1.6; max-width: 320px; }
.footer-col h4 { color: white; font-size: 14px; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 1px;}
.footer-col a { display: block; padding: 6px 0; color: #cbd5e1; font-size: 14px; }
.footer-col a:hover { color: var(--primary-light); }
.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,.08);
    display: flex;
    justify-content: space-between;
    color: #94a3b8;
    font-size: 13px;
}

/* ============================================================
   FEATURE CARDS (Como funciona na home)
   ============================================================ */
.como-funciona {
    background: var(--gray-50);
}
.passos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    counter-reset: passo;
}
.passo-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    border: 1px solid var(--gray-100);
    position: relative;
    counter-increment: passo;
}
.passo-card::before {
    content: counter(passo, decimal-leading-zero);
    font-family: var(--font-display);
    font-size: 60px;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    line-height: 1;
    margin-bottom: 12px;
    opacity: .25;
}
.passo-card h4 { font-size: 17px; margin-bottom: 8px; }
.passo-card p { font-size: 14px; color: var(--gray-600); line-height: 1.6; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .busca-layout { grid-template-columns: 1fr; }
    .filtros-card { position: static; }
    .detalhe-grid { grid-template-columns: 1fr; }
    .detalhe-side { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .menu-mobile { display: flex; flex-direction: column; gap: 4px; padding: 8px; }
    .menu-mobile span { display: block; width: 22px; height: 2px; background: var(--ink); }
    .main-nav {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 16px;
        border-bottom: 1px solid var(--gray-100);
    }
    .main-nav.open { display: flex; }
    .header-actions .creditos-badge,
    .header-actions .user-name,
    .selecao-badge .selecao-label-text { display: none; }
    .selecao-badge { padding: 8px 12px; }
    .hero { padding: 60px 0 80px; }
    .hero-stats { gap: 30px; }
    .galeria { grid-template-columns: 1fr 1fr; grid-auto-rows: 120px; }
    .galeria-main { grid-column: 1 / 3; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; gap: 8px; }
    .plano-card.destaque { transform: none; }
    .selecao-grid { grid-template-columns: 1fr; }
    .selecao-resumo { position: static; }
    .selecao-item { grid-template-columns: 70px 1fr auto; }
    .selecao-item-img { width: 70px; height: 60px; }
}
