/* ============================================================
   IndikaHome - Design System
   Plataforma de indicação de leads imobiliários
   ============================================================ */

/* === Design Tokens === */
:root {
    /* Paleta Premium - Azul Royal Gradient */
    --blue-50: #eff6ff;
    --blue-100: #dbeafe;
    --blue-200: #bfdbfe;
    --blue-300: #93c5fd;
    --blue-400: #60a5fa;
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;
    --blue-800: #1e40af;
    --blue-900: #1e3a8a;

    /* Cores funcionais */
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #60a5fa;
    --primary-gradient: linear-gradient(135deg, #2563eb 0%, #4338ca 100%);
    --primary-gradient-hover: linear-gradient(135deg, #1d4ed8 0%, #3730a3 100%);

    --secondary: #0f766e;
    --secondary-light: #14b8a6;

    /* Fundo & superfícies */
    --bg-body: #f1f5f9; /* Sleek off-gray */
    --bg-white: #ffffff;
    --bg-subtle: #f8fafc;
    --bg-glass: rgba(255, 255, 255, 0.75);

    /* Texto */
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --text-inverse: #ffffff;

    /* Status */
    --success: #10b981;
    --success-bg: #ecfdf5;
    --success-border: #a7f3d0;
    --warning: #f59e0b;
    --warning-bg: #fffbeb;
    --warning-border: #fde68a;
    --danger: #ef4444;
    --danger-bg: #fef2f2;
    --danger-border: #fecaca;

    /* Status de lead */
    --status-pendente: #f59e0b;
    --status-pendente-bg: #fffbeb;
    --status-em-contato: #3b82f6;
    --status-em-contato-bg: #eff6ff;
    --status-negociacao: #8b5cf6;
    --status-negociacao-bg: #f5f3ff;
    --status-fechado: #10b981;
    --status-fechado-bg: #ecfdf5;
    --status-cancelado: #ef4444;
    --status-cancelado-bg: #fef2f2;

    /* Bordas & sombras */
    --border: rgba(226, 232, 240, 0.8);
    --border-focus: #3b82f6;
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 8px 16px -4px rgba(15, 23, 42, 0.05), 0 4px 8px -4px rgba(15, 23, 42, 0.03);
    --shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, 0.06), 0 10px 10px -5px rgba(15, 23, 42, 0.03);
    --shadow-glow: 0 0 20px rgba(37, 99, 235, 0.2);

    /* Raios */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Transições */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 400ms cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Tipografia */
    --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Outfit', -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}
a:hover { color: var(--primary-dark); }

/* === Animações === */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.animate-fade-in-up { animation: fadeInUp 0.5s ease-out forwards; }
.animate-fade-in    { animation: fadeIn 0.35s ease-out forwards; }

/* === Layout === */
.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    padding: 2rem 3rem;
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
}

/* ================================================================
   NAVBAR (Glassmorphism)
   ================================================================ */
.navbar {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    padding: 0 2rem;
    height: 72px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02), 0 2px 4px -1px rgba(0,0,0,0.01);
}

.navbar-inner {
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-brand .brand-logo {
    height: 38px;
    width: auto;
    object-fit: contain;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    list-style: none;
}

.nav-link {
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-sm);
    color: var(--text-secondary) !important;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all var(--transition-fast);
    white-space: nowrap;
}
.nav-link:hover {
    color: var(--primary) !important;
    background: var(--primary-50);
}
.nav-link.active {
    color: var(--primary) !important;
    background: var(--primary-100);
}

.navbar-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.35rem 0.6rem;
}

/* ================================================================
   CARDS
   ================================================================ */
.card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

.card-static {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

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

/* ================================================================
   HEADING
   ================================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.4rem;
    border: 1px solid transparent;
    border-radius: var(--radius-lg);
    font-family: var(--font);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-bounce);
    text-decoration: none !important;
    line-height: 1.4;
    white-space: nowrap;
    letter-spacing: 0.01em;
}
.btn:active { transform: scale(0.96); }

.btn-primary {
    background: var(--primary-gradient);
    color: var(--text-inverse);
    border: none;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}
.btn-primary:hover {
    background: var(--primary-gradient-hover);
    color: var(--text-inverse);
    box-shadow: var(--shadow-glow);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--text-inverse);
    border-color: var(--secondary);
}
.btn-secondary:hover {
    background: #0d6560;
    border-color: #0d6560;
    color: var(--text-inverse);
}

.btn-success {
    background: var(--success);
    color: var(--text-inverse);
    border-color: var(--success);
}
.btn-success:hover {
    background: #15803d;
    color: var(--text-inverse);
}

.btn-warning {
    background: var(--warning);
    color: var(--text-inverse);
    border-color: var(--warning);
}

.btn-danger {
    background: var(--danger);
    color: var(--text-inverse);
    border-color: var(--danger);
}
.btn-danger:hover {
    background: #b91c1c;
    color: var(--text-inverse);
}

.btn-outline {
    background: var(--bg-white);
    border: 1px solid var(--border);
    color: var(--text-secondary);
}
.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-50);
}

.btn-ghost {
    background: transparent;
    color: var(--primary);
    border: none;
}
.btn-ghost:hover {
    background: var(--primary-50);
}

.btn-sm { padding: 0.35rem 0.85rem; font-size: 0.8rem; }
.btn-lg { padding: 0.7rem 1.75rem; font-size: 0.95rem; }

/* ================================================================
   FORMS
   ================================================================ */
.form-group {
    margin-bottom: 1.25rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.form-control, .form-select {
    width: 100%;
    padding: 0.6rem 0.85rem;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 0.9rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    outline: none;
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.form-control::placeholder { color: var(--text-muted); }

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

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.65rem center;
    background-repeat: no-repeat;
    background-size: 1.25em 1.25em;
    padding-right: 2.25rem;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 0.85rem;
}
.form-check-input {
    width: 1.1rem;
    height: 1.1rem;
    margin-top: 0.2rem;
    accent-color: var(--primary);
    cursor: pointer;
    flex-shrink: 0;
}
.form-check-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
    cursor: pointer;
}

.errorlist {
    list-style: none;
    padding: 0;
    margin: 0.3rem 0 0;
}
.errorlist li {
    color: var(--danger);
    font-size: 0.8rem;
}

/* ================================================================
   ALERTS
   ================================================================ */
.alert {
    padding: 0.85rem 1.1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.25rem;
    border: 1px solid;
    font-size: 0.875rem;
    animation: slideDown 0.35s ease-out;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.alert-success {
    background: var(--success-bg);
    border-color: var(--success-border);
    color: var(--success);
}
.alert-warning {
    background: var(--warning-bg);
    border-color: var(--warning-border);
    color: var(--warning);
}
.alert-danger, .alert-error {
    background: var(--danger-bg);
    border-color: var(--danger-border);
    color: var(--danger);
}
.alert-info {
    background: var(--info-bg);
    border-color: var(--info-border);
    color: var(--info);
}

/* Aviso legal */
.alert-legal {
    background: var(--blue-50);
    border: 1px solid var(--blue-200);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    color: var(--blue-800);
    font-size: 0.84rem;
    line-height: 1.65;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}
.alert-legal .alert-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 0.1rem; }

/* ================================================================
   BADGES
   ================================================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.7rem;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.badge-pendente     { background: var(--status-pendente-bg);   color: var(--status-pendente);   border: 1px solid #fde68a; }
.badge-em_contato,
.badge-interessado  { background: var(--status-em-contato-bg); color: var(--status-em-contato); border: 1px solid #bfdbfe; }
.badge-negociacao,
.badge-em_atendimento { background: var(--status-negociacao-bg); color: var(--status-negociacao); border: 1px solid #c4b5fd; }
.badge-fechado,
.badge-concluido    { background: var(--status-fechado-bg);    color: var(--status-fechado);    border: 1px solid #bbf7d0; }
.badge-cancelado    { background: var(--status-cancelado-bg);  color: var(--status-cancelado);  border: 1px solid #fecaca; }

/* ================================================================
   STAT CARDS (Dashboard)
   ================================================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
    gap: 0.85rem;
    margin-bottom: 1.75rem;
}

.stat-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.15rem 1rem;
    text-align: center;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-xs);
}
.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-card .stat-number {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.25rem;
}
.stat-card .stat-label {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card.stat-primary .stat-number { color: var(--primary); }
.stat-card.stat-warning .stat-number { color: var(--warning); }
.stat-card.stat-info    .stat-number { color: var(--info); }
.stat-card.stat-purple  .stat-number { color: #7c3aed; }
.stat-card.stat-success .stat-number { color: var(--success); }
.stat-card.stat-danger  .stat-number { color: var(--danger); }

/* ================================================================
   TABLES
   ================================================================ */
.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.table {
    width: 100%;
    border-collapse: collapse;
}
.table th {
    background: var(--bg-subtle);
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    white-space: nowrap;
}
.table td {
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.875rem;
    color: var(--text-primary);
}
.table tbody tr { transition: background var(--transition-fast); }
.table tbody tr:hover { background: var(--blue-50); }

.table-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 2.5rem 1rem !important;
    font-size: 0.9rem;
}

/* ================================================================
   HERO - Split Layout
   ================================================================ */
.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
    padding: 4rem 3rem;
    min-height: 480px;
}

.hero-split-content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.hero-badge {
    display: inline-flex;
    align-self: flex-start;
    padding: 0.35rem 1rem;
    background: var(--blue-50);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: 1px solid var(--blue-200);
}

.hero-split h1 {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -1.5px;
    color: var(--text-primary);
    margin: 0;
}
.hero-split h1 .highlight {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-split p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 520px;
    margin: 0;
}

.hero-split .hero-cta {
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
    justify-content: flex-start;
    animation: none;
}

.hero-trust {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}
.hero-trust-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
}

.hero-split-image {
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-split-image img {
    width: 100%;
    max-width: 560px;
    height: auto;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
}

/* ================================================================
   TRUST NUMBERS BAR
   ================================================================ */
.trust-numbers {
    background: var(--bg-white);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 2rem 3rem;
}
.trust-numbers-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}
.trust-number-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.trust-number-value {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}
.trust-number-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.trust-number-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* ================================================================
   SECTION TAGS & TITLES
   ================================================================ */
.section-tag {
    display: inline-block;
    padding: 0.3rem 0.9rem;
    background: var(--blue-50);
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    border: 1px solid var(--blue-100);
}

/* ================================================================
   FEATURES
   ================================================================ */
.features-section { padding: 4rem 3rem; }

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}
.section-title h2 {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 0.35rem;
    color: var(--text-primary);
}
.section-title p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ================================================================
   STEPS
   ================================================================ */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.step-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all var(--transition-bounce);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.step-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
    border-color: var(--blue-200);
}

.step-icon-wrap {
    width: 56px;
    height: 56px;
    background: var(--primary-gradient);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.step-card h3 {
    margin-bottom: 0.75rem;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text-primary);
}
.step-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ================================================================
   FEATURE CARDS
   ================================================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.feature-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.feature-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--blue-200);
}

.feature-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.feature-content {
    padding: 1.5rem;
    flex: 1;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.feature-card p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0;
    line-height: 1.6;
}

/* ================================================================
   CTA FINAL SECTION
   ================================================================ */
.cta-final-section {
    padding: 4rem 3rem;
    text-align: center;
}
.cta-final-inner {
    background: var(--primary-gradient);
    border-radius: var(--radius-xl);
    padding: 4rem 3rem;
    color: white;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.2);
}
.cta-final-inner h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: white;
}
.cta-final-inner p {
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
}
.cta-final-inner .btn-primary {
    background: white;
    color: var(--primary);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}
.cta-final-inner .btn-primary:hover {
    background: var(--blue-50);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* ================================================================
   PAGE HEADER
   ================================================================ */
.page-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}
.page-header h1 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}
.page-header p {
    color: var(--text-secondary);
    margin-top: 0.25rem;
    font-size: 0.9rem;
}
.page-header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ================================================================
   AUTH FORMS
   ================================================================ */
.auth-container {
    max-width: 480px;
    margin: 2rem auto;
}
.auth-container .card { padding: 2.5rem; }

.auth-container h1 {
    font-size: 1.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 0.35rem;
    color: var(--text-primary);
}
.auth-container .subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 1.75rem;
    font-size: 0.9rem;
}
.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* ================================================================
   LEAD DETAIL
   ================================================================ */
.lead-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.detail-item {
    padding: 0.85rem 1rem;
    background: var(--bg-subtle);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}
.detail-item .detail-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
    font-weight: 600;
}
.detail-item .detail-value {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* ================================================================
   CHAT
   ================================================================ */
.chat-container {
    max-height: 400px;
    overflow-y: auto;
    padding: 1rem;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.chat-msg {
    max-width: 80%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    animation: fadeInUp 0.25s ease-out;
}

.chat-msg-mine {
    align-self: flex-end;
    background: var(--primary);
    color: white;
    border-bottom-right-radius: 4px;
}
.chat-msg-mine .chat-msg-header strong { color: rgba(255,255,255,0.9); }
.chat-msg-mine .chat-msg-time { color: rgba(255,255,255,0.65); }
.chat-msg-mine .chat-msg-body { color: white; }

.chat-msg-other {
    align-self: flex-start;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-bottom-left-radius: 4px;
}

.chat-msg-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.3rem;
}
.chat-msg-header strong {
    font-size: 0.78rem;
}
.chat-msg-time {
    font-size: 0.68rem;
    color: var(--text-muted);
    white-space: nowrap;
}
.chat-msg-body {
    font-size: 0.9rem;
    line-height: 1.5;
    word-wrap: break-word;
}

.chat-input-group {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
}
.chat-input-group textarea {
    flex: 1;
    min-height: 44px;
}
.chat-input-group .btn {
    height: 44px;
    padding: 0 1.5rem;
}

/* ================================================================
   TIMELINE (Workflow History)
   ================================================================ */
.timeline {
    position: relative;
    padding-left: 24px;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--border);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    padding-bottom: 1.25rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    position: absolute;
    left: -23px;
    top: 4px;
    border: 2px solid var(--bg-body);
    z-index: 1;
}
.timeline-dot-criacao   { background: var(--primary); }
.timeline-dot-status    { background: var(--warning); }
.timeline-dot-interesse { background: var(--secondary-light); }
.timeline-dot-avaliacao { background: #8b5cf6; }
.timeline-dot-mensagem  { background: var(--text-muted); }

.timeline-content {
    flex: 1;
}
.timeline-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.2rem;
}
.timeline-badge {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
}
.timeline-badge-criacao   { background: var(--blue-50); color: var(--primary); }
.timeline-badge-status    { background: var(--warning-bg); color: var(--warning); }
.timeline-badge-interesse { background: #ecfdf5; color: var(--secondary); }
.timeline-badge-avaliacao { background: #f5f3ff; color: #7c3aed; }
.timeline-badge-mensagem  { background: var(--bg-subtle); color: var(--text-muted); }

.timeline-date {
    font-size: 0.72rem;
    color: var(--text-muted);
}
.timeline-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* ================================================================
   LEGAL PAGES
   ================================================================ */
.legal-content {
    max-width: 760px;
    margin: 0 auto;
}
.legal-content h1 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
    color: var(--text-primary);
}
.legal-content .last-update {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 1.75rem;
}
.legal-content h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}
.legal-content p,
.legal-content li {
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
}
.legal-content ul, .legal-content ol {
    padding-left: 1.25rem;
    margin-bottom: 0.85rem;
}

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
    background: var(--bg-white);
    border-top: 1px solid var(--border);
    padding: 1.75rem 2rem;
    text-align: center;
    margin-top: auto;
}
.footer-content {
    max-width: 100%;
    margin: 0 auto;
}
.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 0.85rem;
    flex-wrap: wrap;
}
.footer-links a {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
}
.footer-links a:hover { color: var(--primary); }

.footer-legal {
    color: var(--text-muted);
    font-size: 0.72rem;
    line-height: 1.6;
    max-width: 650px;
    margin: 0 auto;
}
.footer-copyright {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-top: 0.75rem;
}

/* ================================================================
   UTILITY CLASSES
   ================================================================ */
.text-center { text-align: center; }
.text-primary-color { color: var(--primary) !important; }
.text-secondary-color { color: var(--text-secondary) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-success { color: var(--success) !important; }
.text-warning { color: var(--warning) !important; }
.text-danger { color: var(--danger) !important; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.d-flex { display: flex; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.flex-wrap { flex-wrap: wrap; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }

.full-width { width: 100%; }

/* ================================================================
   BONIFICACAO SELECTION
   ================================================================ */
.bonif-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}
.bonif-radio-label {
    cursor: pointer;
    position: relative;
}
.bonif-radio-label input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.bonif-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-white);
    transition: all 0.2s ease;
    text-align: center;
}
.bonif-radio-label input:checked + .bonif-card {
    border-color: var(--primary);
    background: var(--blue-50);
    box-shadow: 0 0 0 1px var(--primary);
}
.bonif-value {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.95rem;
}

/* ================================================================
   TERMS ACCEPTANCE
   ================================================================ */
.terms-box {
    background: linear-gradient(135deg, #fff9db 0%, #fff 100%);
    border: 1px solid #ffe066;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}
.terms-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: #e67700;
    font-weight: 700;
}
.terms-content {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}
.bonif-highlight {
    background: #fff3bf;
    color: #e67700;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 800;
}

/* ================================================================
   RESPONSIVE (DESKTOP, TABLET & MOBILE)
   ================================================================ */

/* Tablet & Mobile (abaixo de 992px) */
@media (max-width: 991px) {
    .hero h1 { font-size: 2.5rem; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(3, 1fr); }
    .lead-detail-grid { grid-template-columns: 1fr; gap: 0.75rem; }
}

/* Mobile & Tablet Portrait (abaixo de 768px) */
@media (max-width: 768px) {
    /* Navbar */
    .navbar { padding: 0 1.25rem; }
    .navbar-inner { flex-wrap: wrap; position: relative; }
    .navbar-toggle { 
        display: block; 
        padding: 0.4rem 0.6rem; 
        font-size: 1.5rem; 
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        background: transparent;
        color: var(--primary);
    }
    .navbar-nav {
        display: none;
        position: absolute;
        top: 64px;
        left: -1.25rem;
        right: -1.25rem;
        width: calc(100% + 2.5rem);
        background: var(--bg-white);
        flex-direction: column;
        padding: 1rem 1.25rem;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
        gap: 0.5rem;
        z-index: 1000;
    }
    .navbar-nav.active { display: flex; }
    .nav-link { 
        padding: 0.75rem 1rem; 
        width: 100%; 
        text-align: left; 
        font-size: 1rem; 
    }
    .navbar-nav .btn { display: flex; width: 100%; margin-top: 0.5rem; }

    /* Layout & Componentes */
    .hero-split {
        grid-template-columns: 1fr;
        padding: 2.5rem 1rem 2rem;
        gap: 2rem;
        text-align: center;
    }
    .hero-split-content { align-items: center; }
    .hero-split h1 { font-size: 2.1rem; line-height: 1.2; }
    .hero-split p { font-size: 1rem; max-width: 100%; }
    .hero-split .hero-cta { justify-content: center; }
    .hero-trust { justify-content: center; }
    .hero-split-image { order: -1; }
    .hero-split-image img { max-width: 360px; border-radius: var(--radius-lg); }
    .hero-badge { align-self: center; }

    .trust-numbers { padding: 1.5rem 1rem; }
    .trust-numbers-grid { gap: 1.5rem; }
    .trust-number-divider { display: none; }

    .main-content { padding: 1.5rem 1rem; }
    .card, .card-static { padding: 1.5rem; }
    .features-section { padding: 3rem 1rem; }
    .cta-final-section { padding: 2rem 1rem; }
    .cta-final-inner { padding: 3rem 1.5rem; border-radius: var(--radius-lg); }
    
    .features-grid, .steps-grid { grid-template-columns: 1fr; gap: 1rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    
    .page-header h1 { font-size: 1.35rem; }
    .page-header-flex { flex-direction: column; align-items: flex-start; gap: 1rem; }

    /* Tabelas */
    .table-wrapper {
        border-right: none;
        border-left: none;
        border-radius: 0;
        margin: 0 -1.5rem;
        padding: 0 1.5rem;
        width: calc(100% + 3rem);
    }
    .table td, .table th { padding: 0.85rem 0.75rem; }

    /* Footer */
    .footer { padding: 1.5rem 1rem; }
    .footer-links { flex-direction: column; gap: 1rem; }
}

/* Mobile pequeno (abaixo de 480px) */
@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .hero-split h1 { font-size: 1.75rem; }
    .hero-split p { font-size: 0.9rem; }
    .hero-split .hero-cta { flex-direction: column; align-items: stretch; width: 100%; }
    .hero-split .hero-cta .btn { width: 100%; max-width: 100%; padding: 0.8rem; }
    .hero-split-image img { max-width: 280px; }
    
    .auth-container { margin: 1rem auto; width: 100%; }
    .auth-container .card { padding: 1.5rem; border-radius: var(--radius-md); border: none; box-shadow: none; border-top: 1px solid var(--border); }
    
    .form-control, .form-select, .btn { font-size: 1rem; /* previne zoom no iOS */ }
    
    .table-wrapper { margin: 0 -1rem; padding: 0 1rem; width: calc(100% + 2rem); }
}

/* Tooltips de Informação */
.info-tooltip {
    position: relative;
    display: inline-flex;
    cursor: help;
    margin-left: 5px;
    color: var(--text-muted);
    transition: color 0.2s;
    vertical-align: middle;
}

.info-tooltip:hover {
    color: var(--primary);
}

.info-tooltip .tooltip-text {
    display: none;
    width: 240px;
    background-color: #272c36;
    color: #fff;
    text-align: left;
    border-radius: 8px;
    padding: 12px;
    position: absolute;
    z-index: 1000;
    bottom: 150%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    font-size: 0.75rem;
    font-weight: normal;
    line-height: 1.5;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    pointer-events: none;
    border: 1px solid rgba(255,255,255,0.1);
}


.info-tooltip .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #272c36 transparent transparent transparent;
}

.info-tooltip:hover .tooltip-text,
.info-tooltip.active .tooltip-text {
    display: block;
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}


/* Autocomplete Suggestions */
.autocomplete-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    z-index: 2000;
    max-height: 250px;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    margin-top: 4px;
}

.suggestion-item {
    padding: 10px 15px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.2s;
    border-bottom: 1px solid var(--bg-gray);
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background-color: var(--blue-50);
    color: var(--primary);
}

.suggestion-item strong {
    display: block;
    color: var(--text-dark);
}

/* ================================================================
   LEAD DETAIL REFINEMENTS
   ================================================================ */
.lead-detail-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 991px) {
    .lead-detail-layout { grid-template-columns: 1fr; }
}

.lead-info-primary {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.info-group-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

@media (max-width: 576px) {
    .info-group-grid { grid-template-columns: 1fr; }
}

.detail-value-large {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-dark);
    letter-spacing: -0.5px;
}

.location-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-subtle);
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    border: 1px dashed var(--border);
}

.location-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.btn-xs { padding: 0.25rem 0.6rem; font-size: 0.7rem; }

.btn-copy, .btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: white;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-copy:hover { color: var(--primary); border-color: var(--primary); background: var(--blue-50); }
.btn-whatsapp:hover { color: #25d366; border-color: #25d366; background: #e8f9ee; }

.user-mini-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-subtle);
    padding: 0.75rem;
    border-radius: var(--radius-md);
}

.user-avatar-small {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.user-avatar-small img { width: 100%; height: 100%; object-fit: cover; }

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.user-info-small { display: flex; flex-direction: column; gap: 0.1rem; }
.user-info-small strong { font-size: 0.9rem; color: var(--text-primary); }
.user-info-small span { font-size: 0.75rem; color: var(--text-muted); }
.user-info-small .btn-link { font-size: 0.75rem; font-weight: 600; color: var(--primary); text-decoration: underline; }

.bonif-value-large {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-dark);
}

.divider { height: 1px; background: var(--border); width: 100%; }
.my-3 { margin-top: 1.5rem; margin-bottom: 1.5rem; }

/* Toast */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #333;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    z-index: 2000;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show { transform: translateX(-50%) translateY(0); }
