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

body {
    font-family: -apple-system, 'SF Pro Display', 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: #ffffff;
    color: #1d1d1f;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.hidden {
    display: none !important;
}

/* ============================
   NAVBAR
   ============================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.nav-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 14px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    font-size: 1.4rem;
    color: #0071e3;
}

.logo-text {
    font-size: 1.1rem;
    color: #1d1d1f;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.logo-text strong {
    font-weight: 600;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 28px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #424245;
    font-size: 0.87rem;
    font-weight: 400;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #0071e3;
}

.nav-cta {
    background: #0071e3 !important;
    color: #fff !important;
    padding: 8px 18px;
    border-radius: 980px;
    font-weight: 500 !important;
    font-size: 0.85rem !important;
    transition: all 0.2s !important;
}

.nav-cta:hover {
    background: #0077ed !important;
}

/* ============================
   HERO
   ============================ */
.hero {
    position: relative;
    padding: 140px 32px 80px;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(180deg, #fbfbfd 0%, #ffffff 100%);
}

.hero-bg {
    display: none;
}

.hero-container {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 113, 227, 0.08);
    border: none;
    border-radius: 980px;
    font-size: 0.8rem;
    color: #0071e3;
    font-weight: 500;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 700;
    color: #1d1d1f;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #86868b;
    line-height: 1.5;
    max-width: 620px;
    margin: 0 auto 36px;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 56px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 56px;
    padding-top: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.hero-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-number {
    font-size: 1.6rem;
    font-weight: 600;
    color: #1d1d1f;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.78rem;
    color: #86868b;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
}

/* ============================
   SECTIONS
   ============================ */
.section {
    padding: 80px 32px;
}

.section-dark {
    background: #f5f5f7;
}

.section-container {
    max-width: 1000px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-tag {
    display: inline-block;
    padding: 5px 14px;
    background: rgba(0, 113, 227, 0.08);
    border-radius: 980px;
    font-size: 0.75rem;
    color: #0071e3;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 2.4rem;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 12px;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.section-header p {
    font-size: 1.1rem;
    color: #86868b;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Cards Grid - Servicos */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    padding: 36px 28px;
    transition: all 0.3s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.card-icon {
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.card h3 {
    font-size: 1.15rem;
    color: #1d1d1f;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.card p {
    color: #86868b;
    font-size: 0.93rem;
    line-height: 1.5;
}

/* Steps Grid - Como Funciona */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.step-card {
    text-align: center;
    padding: 28px 16px;
}

.step-num {
    font-size: 2.6rem;
    font-weight: 700;
    color: rgba(0, 113, 227, 0.12);
    margin-bottom: 12px;
    line-height: 1;
    letter-spacing: -0.03em;
}

.step-card h3 {
    font-size: 1rem;
    color: #1d1d1f;
    font-weight: 600;
    margin-bottom: 8px;
}

.step-card p {
    font-size: 0.88rem;
    color: #86868b;
    line-height: 1.5;
}

/* Numbers Grid */
.numbers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.number-card {
    text-align: center;
    padding: 36px 16px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.number-value {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

.number-label {
    font-size: 0.82rem;
    color: #86868b;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
}

/* Busca Leilões */
.busca-leiloes-box {
    background: #fff;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.busca-filtros {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}
.busca-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #d2d2d7;
    border-radius: 12px;
    font-size: .95rem;
    transition: border-color .2s;
    outline: none;
    font-family: inherit;
}
.busca-input:focus {
    border-color: #0071e3;
    box-shadow: 0 0 0 3px rgba(0,113,227,.1);
}
.busca-select {
    padding: 12px 16px;
    border: 1px solid #d2d2d7;
    border-radius: 12px;
    font-size: .95rem;
    background: #fff;
    min-width: 180px;
    outline: none;
    cursor: pointer;
    font-family: inherit;
}
.busca-select:focus {
    border-color: #0071e3;
}
.busca-filtros-avancados {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: flex-end;
    margin-bottom: 16px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e8e8ed;
}
.filtro-grupo {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.filtro-grupo label {
    font-size: .72rem;
    color: #86868b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.busca-input-sm {
    padding: 8px 12px;
    border: 1px solid #d2d2d7;
    border-radius: 10px;
    font-size: .85rem;
    font-family: inherit;
    outline: none;
    transition: border-color .2s;
    min-width: 130px;
}
.busca-input-sm:focus {
    border-color: #0071e3;
    box-shadow: 0 0 0 3px rgba(0,113,227,.1);
}
.busca-btn-limpar {
    padding: 8px 16px;
    background: #e8e8ed;
    color: #1d1d1f;
    border: none;
    border-radius: 10px;
    font-size: .85rem;
    font-family: inherit;
    cursor: pointer;
    transition: background .2s;
}
.busca-btn-limpar:hover {
    background: #d2d2d7;
}
.busca-filter-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}
.busca-filter-tab {
    padding: 8px 16px;
    border-radius: 980px;
    background: #f5f5f7;
    border: 1px solid #d2d2d7;
    font-size: .85rem;
    cursor: pointer;
    font-family: inherit;
    transition: all .2s;
    color: #1d1d1f;
}
.busca-filter-tab.active {
    background: #0071e3;
    color: #fff;
    border-color: #0071e3;
}
.busca-stats {
    font-size: .85rem;
    color: #86868b;
    margin-bottom: 16px;
}
.busca-stats strong {
    color: #1d1d1f;
}
.busca-resultados {
    min-height: 200px;
}
.busca-empty {
    text-align: center;
    padding: 48px 20px;
    color: #86868b;
}
.busca-empty .icon {
    font-size: 4rem;
    margin-bottom: 16px;
}
.busca-empty p {
    margin-top: 8px;
    font-size: .95rem;
}

/* Busca Grid - Admin Style Cards */
.busca-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.busca-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    border: 1px solid rgba(0,0,0,.06);
    display: flex;
    flex-direction: column;
    transition: all .3s ease;
    position: relative;
}
.busca-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0,0,0,.15);
    border-color: var(--site-color, #0071e3);
}
.busca-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--site-color, #0071e3);
    opacity: 0;
    transition: opacity .3s;
}
.busca-card:hover::before { opacity: 1; }
.busca-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}
.busca-card-link:hover { text-decoration: none; }
.busca-card .origin-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: linear-gradient(90deg, var(--site-color, #0071e3) 0%, color-mix(in srgb, var(--site-color, #0071e3) 85%, #000) 100%);
}
.busca-card .origin-info {
    display: flex;
    align-items: center;
    gap: 10px;
}
.busca-card .origin-logo {
    width: 28px; height: 28px;
    border-radius: 6px;
    background: rgba(255,255,255,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.busca-card .origin-logo img {
    width: 100%; height: 100%; object-fit: contain;
}
.busca-card .origin-logo .fallback {
    color: #fff; font-size: .9rem; font-weight: 700;
}
.busca-card .origin-name {
    color: #fff; font-size: .75rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: .5px;
}
.busca-card .origin-badge {
    background: rgba(255,255,255,.2);
    color: #fff;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: .7rem;
    font-weight: 500;
}
.busca-card .img-wrapper { overflow: hidden; }
.busca-card .card-img {
    width: 100%; height: 160px;
    object-fit: cover;
    background: linear-gradient(135deg, #e8e8ed 0%, #d2d2d7 100%);
    transition: transform .3s;
}
.busca-card:hover .card-img { transform: scale(1.03); }
.busca-card .img-placeholder {
    width: 100%; height: 160px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff; font-size: 3rem;
}
.busca-card .tipo-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    font-size: .8rem;
    font-weight: 600;
    color: #fff;
}
.busca-card .tipo-bar.imoveis { background: #4caf50; }
.busca-card .tipo-bar.veiculos { background: #ff9800; }
.busca-card .tipo-bar.outros { background: #9c27b0; }
.busca-card .tipo-bar .tipo-info {
    display: flex; align-items: center; gap: 6px;
}
.busca-card .tipo-bar .stats {
    display: flex; gap: 12px; font-weight: 400; font-size: .75rem;
}
.busca-card .tipo-bar .stats span {
    display: flex; align-items: center; gap: 4px;
}
.busca-card .card-content {
    padding: 16px; flex: 1;
    display: flex; flex-direction: column;
}
.busca-card .card-title {
    font-weight: 600; font-size: .92rem;
    line-height: 1.45; margin-bottom: 14px;
    color: #1d1d1f;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 48px;
    letter-spacing: -.01em;
}
.busca-card:hover .card-title { color: var(--site-color, #0071e3); }
.busca-card .card-datas {
    margin-bottom: 12px;
    display: flex; flex-direction: column; gap: 8px;
}
.busca-card .data-item {
    background: #f8f9fa;
    padding: 10px 12px;
    border-radius: 10px;
    border-left: 3px solid #0071e3;
}
.busca-card .data-item:nth-child(2) { border-left-color: #ff9500; }
.busca-card .data-item .label {
    font-weight: 600; font-size: .78rem; color: #1d1d1f;
    display: flex; align-items: center; gap: 4px;
    margin-bottom: 2px;
}
.busca-card .data-item .date {
    font-size: .8rem; color: #424245; font-weight: 500;
}
.busca-card .data-item .value {
    font-size: .78rem; color: #4caf50; font-weight: 600;
    margin-top: 2px;
}
.busca-card .card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-top: 1px solid #e8e8ed;
    background: #fafafa;
}
.busca-card .card-codigo {
    font-size: .75rem; color: #86868b;
    background: #f5f5f7;
    padding: 4px 10px; border-radius: 6px;
}
.busca-card .card-valor {
    font-size: .82rem; color: #4caf50; font-weight: 700;
}
.busca-card .card-actions {
    display: flex; gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid #e8e8ed;
    background: #fafafa;
}
.busca-card .card-actions .btn-ver {
    flex: 1;
    display: flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px 14px;
    background: linear-gradient(135deg, #0071e3 0%, #005bb5 100%);
    color: #fff;
    border: none; border-radius: 10px;
    font-size: .8rem; font-weight: 500;
    text-decoration: none; cursor: pointer;
    font-family: inherit;
    transition: all .2s;
}
.busca-card .card-actions .btn-ver:hover {
    background: linear-gradient(135deg, #0077ED 0%, #0062c4 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,113,227,.3);
}

.busca-paginacao {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}
.busca-paginacao button {
    padding: 8px 16px;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-size: .85rem;
    font-family: inherit;
    transition: all .2s;
}
.busca-paginacao button.active {
    background: #0071e3;
    color: #fff;
    border-color: #0071e3;
}
.busca-paginacao button:disabled {
    opacity: .4;
    cursor: not-allowed;
}
.busca-paginacao button:hover:not(.active):not(:disabled) {
    border-color: #0071e3;
    color: #0071e3;
}
@media (max-width: 1200px) {
    .busca-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
    .busca-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .busca-filtros { flex-direction: column; }
    .busca-select { min-width: 100%; }
    .busca-filter-tabs { flex-wrap: wrap; }
    .busca-grid { grid-template-columns: 1fr; }
}

/* CTA Section */
.section-cta {
    text-align: center;
    background: linear-gradient(180deg, #f5f5f7 0%, #ffffff 100%);
    border-top: none;
}

.section-cta h2 {
    font-size: 2rem;
    color: #1d1d1f;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.section-cta p {
    color: #86868b;
    font-size: 1.1rem;
    margin-bottom: 28px;
}

/* Footer */
.footer {
    padding: 40px 32px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    background: #f5f5f7;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.footer-brand p {
    color: #86868b;
    font-size: 0.87rem;
    margin-top: 10px;
    max-width: 300px;
}

.footer-contact h4 {
    color: #424245;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    font-weight: 600;
}

.footer-contact p {
    color: #86868b;
    font-size: 0.87rem;
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.footer-bottom p {
    color: #86868b;
    font-size: 0.78rem;
    text-align: center;
}

/* ============================
   BUTTONS
   ============================ */
.btn {
    display: inline-block;
    padding: 11px 24px;
    border: none;
    border-radius: 980px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    font-family: inherit;
    letter-spacing: -0.01em;
}

.btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.btn-primary {
    background: #0071e3;
    color: #fff;
}

.btn-primary:hover:not(:disabled) {
    background: #0077ed;
    box-shadow: none;
    transform: none;
}

.btn-outline {
    background: transparent;
    color: #0071e3;
    border: 1px solid #0071e3;
}

.btn-outline:hover {
    background: rgba(0, 113, 227, 0.06);
    color: #0071e3;
}

.btn-secondary {
    background: #e8e8ed;
    color: #1d1d1f;
    margin-right: 8px;
}

.btn-secondary:hover:not(:disabled) {
    background: #d2d2d7;
}

.btn-large {
    padding: 14px 32px;
    font-size: 1rem;
}

/* ============================
   WIZARD APP
   ============================ */
#wizard-app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#wizard-app .navbar {
    position: relative;
}

.wizard-page {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(180deg, #fbfbfd 0%, #ffffff 100%);
}

.wizard-container {
    width: 100%;
    max-width: 600px;
}

.wizard-container-wide {
    max-width: 700px;
}

/* Form Layout */
.form-row {
    margin-bottom: 16px;
}

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

.form-section {
    margin: 28px 0;
}

.form-section h3 {
    font-size: 1rem;
    color: #1d1d1f;
    margin-bottom: 14px;
    font-weight: 600;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.form-actions .btn {
    flex: 1;
}

/* Option Cards */
.option-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border: 2px solid #e8e8ed;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s;
    background: #ffffff;
}

.option-card:hover {
    border-color: #d2d2d7;
    background: #fafafa;
}

.option-card.selected {
    border-color: #0071e3;
    background: rgba(0, 113, 227, 0.03);
}

.option-card input[type="radio"] {
    display: none;
}

.option-icon {
    font-size: 1.8rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f7;
    border-radius: 12px;
    flex-shrink: 0;
}

.option-card.selected .option-icon {
    background: rgba(0, 113, 227, 0.1);
}

.option-content {
    flex: 1;
}

.option-content strong {
    display: block;
    font-size: 0.95rem;
    color: #1d1d1f;
    margin-bottom: 2px;
}

.option-content span {
    font-size: 0.82rem;
    color: #86868b;
}

.option-check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e8e8ed;
    color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    transition: all 0.2s;
}

.option-card.selected .option-check {
    background: #0071e3;
    color: #fff;
}

/* Terms Checkbox */
.terms-section {
    margin: 24px 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.87rem;
    color: #424245;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 22px;
    height: 22px;
    border: 2px solid #d2d2d7;
    border-radius: 6px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    margin-top: 1px;
}

.checkbox-label input:checked + .checkmark {
    background: #0071e3;
    border-color: #0071e3;
}

.checkbox-label input:checked + .checkmark::after {
    content: '✓';
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
}

.checkbox-label a {
    color: #0071e3;
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* Upload Hint */
.upload-hint {
    display: block;
    font-size: 0.78rem;
    color: #aeaeb2;
    margin-top: 8px;
}

/* Value Display */
.valor-extraido {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, rgba(0, 113, 227, 0.05) 0%, rgba(52, 199, 89, 0.05) 100%);
    border-radius: 16px;
    margin: 20px 0;
    border: 1px solid rgba(0, 113, 227, 0.1);
}

.valor-label {
    font-size: 0.87rem;
    color: #86868b;
    margin-bottom: 4px;
}

.valor-numero {
    font-size: 2rem;
    font-weight: 700;
    color: #1d1d1f;
    letter-spacing: -0.02em;
}

/* Pricing Card */
.pricing-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    overflow: hidden;
    margin: 20px 0;
}

.pricing-header {
    padding: 16px 20px;
    background: #f5f5f7;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.pricing-header h3 {
    font-size: 1rem;
    color: #1d1d1f;
    margin: 0 0 4px;
}

.pricing-header p {
    font-size: 0.82rem;
    color: #86868b;
    margin: 0;
}

.pricing-value {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #0071e3 0%, #0077ed 100%);
    color: #fff;
}

.price-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.price-amount {
    font-size: 1.6rem;
    font-weight: 700;
}

.pricing-table {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s;
}

.pricing-card:hover .pricing-table,
.pricing-table.show {
    max-height: 300px;
}

.pricing-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 20px;
    font-size: 0.82rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.pricing-row:last-child {
    border-bottom: none;
}

.pricing-row-header {
    background: #fafafa;
    font-weight: 600;
    color: #86868b;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.pricing-row.active {
    background: rgba(0, 113, 227, 0.06);
    color: #0071e3;
    font-weight: 600;
}

/* Step Success Header */
.step-success-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(52, 199, 89, 0.08) 0%, rgba(52, 199, 89, 0.03) 100%);
    border: 1px solid rgba(52, 199, 89, 0.2);
    border-radius: 16px;
    margin-bottom: 28px;
}

.success-icon-small {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #34c759;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-success-header h2 {
    margin: 0 0 4px;
    font-size: 1.2rem;
    color: #1d1d1f;
}

.step-success-header p {
    margin: 0;
    font-size: 0.9rem;
    color: #86868b;
}

/* Documents Section */
.docs-section {
    margin-bottom: 28px;
}

.docs-section h3 {
    font-size: 1rem;
    color: #1d1d1f;
    margin-bottom: 6px;
    font-weight: 600;
}

.docs-hint {
    font-size: 0.82rem;
    color: #86868b;
    margin-bottom: 14px;
}

/* Upload Grid */
.upload-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.upload-grid-single {
    grid-template-columns: 1fr;
    max-width: 320px;
}

.upload-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px 20px;
    border: 2px dashed #d2d2d7;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s;
    background: #fbfbfd;
    text-align: center;
    min-height: 140px;
}

.upload-box:hover {
    border-color: #0071e3;
    background: rgba(0, 113, 227, 0.03);
}

.upload-box.uploaded {
    border-color: #34c759;
    border-style: solid;
    background: rgba(52, 199, 89, 0.05);
}

.upload-box-icon {
    font-size: 2rem;
    margin-bottom: 8px;
    opacity: 0.6;
}

.upload-box.uploaded .upload-box-icon {
    opacity: 1;
}

.upload-box-label {
    font-size: 0.9rem;
    color: #1d1d1f;
    font-weight: 500;
    margin-bottom: 4px;
}

.upload-box-status {
    font-size: 0.78rem;
    color: #86868b;
}

.upload-box.uploaded .upload-box-status {
    color: #34c759;
}

/* Dados Form */
.dados-form {
    margin: 24px 0;
}

.section-subtitle {
    font-size: 0.95rem;
    color: #1d1d1f;
    margin: 24px 0 14px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    font-weight: 600;
}

/* Procuração Preview */
.procuracao-preview {
    margin: 28px 0;
}

.procuracao-preview h3 {
    font-size: 0.95rem;
    color: #1d1d1f;
    margin-bottom: 12px;
    font-weight: 600;
}

.procuracao-box {
    background: #f5f5f7;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    padding: 20px;
    font-size: 0.87rem;
    line-height: 1.7;
    color: #424245;
    max-height: 300px;
    overflow-y: auto;
}

.procuracao-box strong {
    color: #1d1d1f;
}

/* Wizard Steps */
.wizard-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 36px;
    gap: 0;
}

.wizard-steps .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    opacity: 0.35;
    transition: opacity 0.3s;
}

.wizard-steps .step.active,
.wizard-steps .step.done {
    opacity: 1;
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f5f5f7;
    border: 2px solid #d2d2d7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: #86868b;
    transition: all 0.3s;
}

.wizard-steps .step.active .step-number {
    background: #0071e3;
    border-color: #0071e3;
    color: #fff;
}

.wizard-steps .step.done .step-number {
    background: #34c759;
    border-color: #34c759;
    color: #fff;
}

.wizard-steps .step-label {
    font-size: 0.75rem;
    color: #86868b;
    white-space: nowrap;
    font-weight: 500;
}

.step-line {
    flex: 1;
    height: 1px;
    background: #d2d2d7;
    margin: 0 12px;
    margin-bottom: 22px;
    max-width: 80px;
}

/* Wizard Content */
.wizard-content {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.wizard-content h2 {
    color: #1d1d1f;
    margin-bottom: 8px;
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.wizard-content p {
    color: #86868b;
}

/* Upload Area */
.upload-area {
    border: 2px dashed #d2d2d7;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    margin: 20px 0;
    background: #fbfbfd;
}

.upload-area:hover, .upload-area.dragover {
    border-color: #0071e3;
    background: rgba(0, 113, 227, 0.03);
}

.upload-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    opacity: 0.6;
}

.upload-area p {
    color: #86868b;
    font-size: 0.93rem;
}

/* File List */
.file-list {
    margin: 12px 0;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #f5f5f7;
    border-radius: 10px;
    margin-bottom: 6px;
}

.file-item .file-name {
    color: #1d1d1f;
    font-size: 0.9rem;
}

.file-item .file-size {
    color: #86868b;
    font-size: 0.82rem;
}

.file-item .file-remove {
    color: #ff3b30;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1.1rem;
    padding: 0 4px;
}

/* Loading / Spinner */
.loading {
    text-align: center;
    padding: 40px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e8e8ed;
    border-top-color: #0071e3;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin: 0 auto 14px;
}

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

/* Resultado */
.resultado {
    background: #f5f5f7;
    border-radius: 12px;
    padding: 20px 24px;
    margin: 16px 0;
    white-space: pre-wrap;
    line-height: 1.6;
    max-height: 400px;
    overflow-y: auto;
    color: #1d1d1f;
    font-size: 0.93rem;
}

/* PIX */
.pix-container {
    text-align: center;
    padding: 20px 0;
}

.pix-container h3 {
    color: #1d1d1f;
    font-weight: 600;
}

.pix-container p {
    color: #86868b;
}

.pix-valor {
    font-size: 1.3rem;
    margin-bottom: 16px;
    color: #1d1d1f;
}

.pix-valor strong {
    color: #1d1d1f;
}

.pix-code {
    background: #f5f5f7;
    border-radius: 12px;
    padding: 14px;
    margin: 14px 0;
    word-break: break-all;
    font-family: 'SF Mono', Menlo, monospace;
    font-size: 0.78rem;
    color: #424245;
    max-height: 100px;
    overflow-y: auto;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

/* Processing Animation */
.processing-animation {
    margin-top: 24px;
    text-align: center;
}

.processing-scene {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.proc-desk {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: proc-bounce 2s ease-in-out infinite;
}

.proc-desk-2 { animation-delay: 0.3s; }
.proc-desk-3 { animation-delay: 0.6s; }

.proc-analyst { font-size: 2.2rem; margin-bottom: 4px; }
.proc-doc { font-size: 1.3rem; animation: proc-flip 1.5s ease-in-out infinite; }
.proc-desk-2 .proc-doc { animation-delay: 0.5s; }
.proc-desk-3 .proc-doc { animation-delay: 1s; }

.proc-magnifier {
    position: absolute;
    top: 8px;
    right: -8px;
    font-size: 1.1rem;
    animation: proc-scan 2s ease-in-out infinite;
}

.proc-desk-2 .proc-magnifier { animation-delay: 0.4s; }
.proc-desk-3 .proc-magnifier { animation-delay: 0.8s; }

@keyframes proc-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes proc-flip {
    0%, 100% { transform: rotateY(0deg); }
    50% { transform: rotateY(15deg); }
}

@keyframes proc-scan {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-5px, 3px) rotate(-8deg); }
    50% { transform: translate(3px, -2px) rotate(4deg); }
    75% { transform: translate(-2px, 2px) rotate(-3deg); }
}

.processing-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 16px;
}

.proc-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1d1d1f;
}

.proc-detail {
    font-size: 0.87rem;
    color: #86868b;
    transition: opacity 0.3s;
    min-height: 1.2em;
}

.processing-bar {
    width: 100%;
    max-width: 240px;
    height: 3px;
    background: #e8e8ed;
    border-radius: 3px;
    overflow: hidden;
    margin: 0 auto;
}

.processing-bar-fill {
    width: 30%;
    height: 100%;
    background: #0071e3;
    border-radius: 3px;
    animation: proc-bar 2s ease-in-out infinite;
}

@keyframes proc-bar {
    0% { transform: translateX(-100%); width: 30%; }
    50% { width: 60%; }
    100% { transform: translateX(350%); width: 30%; }
}

/* Success */
.success-icon {
    font-size: 3.5rem;
    color: #34c759;
    text-align: center;
    margin: 20px 0;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 12px 20px;
    border-radius: 12px;
    background: #1d1d1f;
    color: #fff;
    font-size: 0.9rem;
    z-index: 1000;
    transition: opacity 0.3s;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.toast.error {
    background: #ff3b30;
}

.toast.success {
    background: #1d1d1f;
}

/* ============================
   FORM INPUTS
   ============================ */
.form-group {
    margin-bottom: 16px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #1d1d1f;
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 11px 14px;
    background: #ffffff;
    border: 1px solid #d2d2d7;
    border-radius: 10px;
    color: #1d1d1f;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: #0071e3;
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
}

.form-input::placeholder {
    color: #aeaeb2;
}

/* ============================
   CONCLUSAO
   ============================ */
.conclusao-info {
    text-align: left;
    max-width: 500px;
    margin: 0 auto;
}

.conclusao-info p {
    margin-bottom: 12px;
    line-height: 1.6;
}

.destaque-info {
    background: rgba(0, 113, 227, 0.05);
    border-left: 3px solid #0071e3;
    padding: 14px 18px;
    border-radius: 0 10px 10px 0;
    margin: 16px 0;
}

.destaque-info p { margin-bottom: 6px; }
.destaque-info ul { padding-left: 18px; }
.destaque-info li { margin-bottom: 4px; line-height: 1.5; }

.info-contato {
    text-align: center;
    margin-top: 16px;
    padding: 12px;
    background: rgba(52, 199, 89, 0.06);
    border-radius: 10px;
    border: 1px solid rgba(52, 199, 89, 0.2);
}

/* ============================
   STEP 3 - SPLIT LAYOUT
   ============================ */
.wizard-content-wide {
    max-width: 100% !important;
    padding: 20px !important;
}

.step3-header {
    margin-bottom: 16px;
}

.step3-header h2 {
    color: #1d1d1f;
}

.step3-status {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 6px 0;
    flex-wrap: wrap;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 980px;
    font-size: 0.82rem;
    font-weight: 500;
}

.status-pago {
    background: rgba(52, 199, 89, 0.1);
    color: #248a3d;
    border: 1px solid rgba(52, 199, 89, 0.25);
}

.status-email {
    font-size: 0.82rem;
    color: #86868b;
}

.step3-info {
    color: #86868b;
    font-size: 0.87rem;
}

.step3-footer {
    margin-top: 16px;
    text-align: center;
}

/* Split: Editor left, Chat right */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 12px;
    height: 600px;
}

.split-left {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
}

.split-right {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #f5f5f7;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.panel-header h3 {
    margin: 0;
    font-size: 0.9rem;
    color: #1d1d1f;
}

/* Panel Tabs */
.panel-tabs {
    display: flex;
    gap: 4px;
}

.panel-tab {
    background: transparent;
    border: 1px solid #d2d2d7;
    color: #86868b;
    padding: 5px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s;
    font-family: inherit;
}

.panel-tab:hover {
    color: #1d1d1f;
    background: rgba(0, 0, 0, 0.03);
}

.panel-tab.active {
    background: #0071e3;
    color: #fff;
    border-color: #0071e3;
}

.tab-content {
    flex: 1;
    overflow: auto;
}

.tab-content.active {
    display: block !important;
}

#editor-analise-container {
    flex: 1;
    overflow: auto;
    padding: 20px 24px;
    color: #1d1d1f;
    line-height: 1.7;
    font-size: 0.9rem;
    height: 100%;
    max-height: 560px;
}

#editor-analise-container h2 {
    color: #1d1d1f;
    margin: 20px 0 8px;
    font-size: 1.05rem;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    font-weight: 600;
}

#editor-analise-container h2:first-child {
    margin-top: 0;
}

#editor-analise-container h3 {
    color: #1d1d1f;
    margin: 14px 0 6px;
    font-size: 0.95rem;
}

#editor-analise-container strong {
    color: #1d1d1f;
}

#editor-analise-container ul,
#editor-analise-container ol {
    margin: 6px 0 6px 20px;
}

#editor-analise-container li { margin-bottom: 4px; }
#editor-analise-container p { margin-bottom: 8px; }

#editor-analise-container hr {
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    margin: 16px 0;
}

/* Editor */
.editor-toolbar {
    display: flex;
    gap: 6px;
}

.btn-small {
    padding: 5px 10px;
    font-size: 0.76rem;
}

#editor-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* CKEditor light theme */
.ck.ck-editor {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
}

.ck.ck-editor__main {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

.ck.ck-editor__main>.ck-editor__editable {
    background: #ffffff !important;
    color: #1d1d1f !important;
    flex: 1 !important;
    overflow-y: auto !important;
    border: none !important;
    font-size: 0.92rem !important;
    line-height: 1.65 !important;
}

.ck.ck-toolbar {
    background: #f5f5f7 !important;
    border-color: rgba(0, 0, 0, 0.06) !important;
}

.ck.ck-toolbar .ck-button {
    color: #424245 !important;
}

.ck.ck-toolbar .ck-button:hover {
    background: rgba(0, 0, 0, 0.06) !important;
    color: #1d1d1f !important;
}

.ck.ck-editor__editable h1,
.ck.ck-editor__editable h2,
.ck.ck-editor__editable h3 {
    color: #1d1d1f !important;
    font-weight: 600 !important;
}

.ck.ck-editor__editable strong {
    color: #1d1d1f;
}

/* Reference highlight in editor */
.ref-highlight,
mark.ref-highlight {
    background: rgba(0, 113, 227, 0.1) !important;
    color: #1d1d1f !important;
    padding: 4px 8px;
    border-radius: 6px;
    border-left: 3px solid #0071e3;
    display: inline;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    box-shadow: 0 0 0 1px rgba(0, 113, 227, 0.15);
    animation: highlightPulse 2s ease-in-out;
}

@keyframes highlightPulse {
    0%, 100% { background: rgba(0, 113, 227, 0.1) !important; }
    50% { background: rgba(0, 113, 227, 0.2) !important; }
}

/* Paragraph numbering */
.para-num {
    color: #0071e3;
    font-size: 0.76rem;
    margin-right: 6px;
    opacity: 0.5;
    font-weight: 600;
}

/* Active paragraph highlight */
.para-active {
    background: rgba(0, 113, 227, 0.06) !important;
    border-left: 3px solid #0071e3 !important;
    padding-left: 12px !important;
    border-radius: 8px;
    box-shadow: 0 0 0 1px rgba(0, 113, 227, 0.1);
    animation: paraGlow 2s ease-in-out;
}

@keyframes paraGlow {
    0%, 100% { background: rgba(0, 113, 227, 0.06) !important; }
    50% { background: rgba(0, 113, 227, 0.12) !important; }
}

/* Chat */
.chat-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #f5f5f7;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.chat-header-icon {
    font-size: 1.4rem;
}

.chat-header h3 {
    margin: 0;
    font-size: 0.87rem;
    color: #1d1d1f;
    font-weight: 600;
}

.chat-header p {
    margin: 1px 0 0;
    font-size: 0.73rem;
    color: #86868b;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #fafafa;
}

.chat-msg {
    display: flex;
    gap: 8px;
    max-width: 95%;
}

.chat-msg.chat-user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.chat-msg.chat-ia {
    align-self: flex-start;
}

.chat-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    flex-shrink: 0;
}

.chat-ia .chat-avatar {
    background: #0071e3;
    color: #fff;
}

.chat-user .chat-avatar {
    background: #e8e8ed;
    color: #424245;
}

.chat-bubble {
    padding: 8px 12px;
    border-radius: 14px;
    font-size: 0.85rem;
    line-height: 1.5;
}

.chat-ia .chat-bubble {
    background: #f0f0f5;
    color: #1d1d1f;
    border-bottom-left-radius: 4px;
}

.chat-user .chat-bubble {
    background: #0071e3;
    color: #fff;
    border-bottom-right-radius: 4px;
}

/* Reference chips */
.chat-ref {
    display: inline-block;
    background: rgba(0, 113, 227, 0.08);
    border: 1px solid rgba(0, 113, 227, 0.2);
    border-radius: 8px;
    padding: 3px 8px;
    margin: 3px 2px;
    font-size: 0.76rem;
    color: #0071e3;
    cursor: pointer;
    transition: all 0.15s;
    line-height: 1.4;
}

.chat-ref:hover {
    background: rgba(0, 113, 227, 0.15);
    border-color: #0071e3;
}

/* Suggestion chips */
.chat-sugestoes {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 6px 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.chat-sugestao {
    padding: 4px 10px;
    background: #ffffff;
    border: 1px solid #d2d2d7;
    border-radius: 980px;
    font-size: 0.73rem;
    color: #424245;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
}

.chat-sugestao:hover {
    background: rgba(0, 113, 227, 0.06);
    border-color: #0071e3;
    color: #0071e3;
}

/* Chat input */
.chat-input-area {
    display: flex;
    gap: 6px;
    padding: 8px 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    background: #ffffff;
}

.chat-input-area .form-input {
    flex: 1;
    padding: 8px 12px;
    font-size: 0.85rem;
}

.chat-input-area .btn {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 8px 14px;
    font-size: 0.85rem;
}

/* Typing indicator */
.typing-dots {
    display: inline-flex;
    gap: 3px;
}

.typing-dots span {
    animation: typingBounce 1.4s infinite ease-in-out;
    font-size: 1.3rem;
    line-height: 1;
    color: #86868b;
}

.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
    0%, 80%, 100% { opacity: 0.3; transform: translateY(0); }
    40% { opacity: 1; transform: translateY(-3px); }
}

/* ============================
   ANALYSIS PAGE (Fullscreen Step 3)
   ============================ */
#analysis-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#analysis-page .navbar {
    position: relative;
}

.analysis-container {
    flex: 1;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 24px 32px;
    display: flex;
    flex-direction: column;
}

.analysis-header {
    margin-bottom: 20px;
}

.analysis-title {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.analysis-title h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1d1d1f;
    letter-spacing: -0.02em;
    margin: 0;
}

.analysis-badges {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.analysis-subtitle {
    color: #86868b;
    font-size: 0.9rem;
    margin-top: 6px;
}

.analysis-split {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 16px;
    flex: 1;
    min-height: 0;
}

.analysis-left {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
}

.analysis-right {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
}

/* Editor container in analysis page - take full height */
#analysis-page #editor-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 500px;
}

#analysis-page #editor-analise-container {
    flex: 1;
    overflow: auto;
    padding: 24px 28px;
    min-height: 500px;
    max-height: none;
}

#analysis-page .tab-content {
    flex: 1;
    overflow: auto;
    display: none;
}

#analysis-page .tab-content.active {
    display: flex !important;
    flex-direction: column;
}

/* Compact footer for analysis page */
.footer-compact {
    padding: 16px 32px;
}

.footer-compact .footer-bottom {
    padding-top: 0;
    border-top: none;
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 900px) {
    .cards-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .numbers-grid { grid-template-columns: repeat(2, 1fr); }
    .hero h1 { font-size: 2rem; }
    .hero-stats { flex-direction: column; gap: 20px; }
    .nav-links { display: none; }
    .split-layout { grid-template-columns: 1fr; height: auto; }
    .split-left { height: 500px; }
    .split-right { height: 450px; }
}

@media (max-width: 600px) {
    .hero { padding: 110px 20px 50px; }
    .hero h1 { font-size: 1.6rem; }
    .hero-actions { flex-direction: column; align-items: center; }
    .section { padding: 50px 20px; }
    .section-header h2 { font-size: 1.5rem; }
    .steps-grid { grid-template-columns: 1fr; }
    .numbers-grid { grid-template-columns: 1fr; }
    .container { padding: 20px 12px; }
    .wizard-content { padding: 24px 16px; }
    .step-label { font-size: 0.7rem; }
    .step-number { width: 30px; height: 30px; font-size: 0.82rem; }
    .footer-content { flex-direction: column; gap: 20px; }
    .step3-status { flex-direction: column; align-items: flex-start; }
    .split-left { height: 400px; }
    .split-right { height: 380px; }
}
