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

:root {
    --primary-color: #8B5CF6;
    --primary-hover: #7C3AED;
    --secondary-color: #64748b;
    --text-dark: #1F2937;
    --text-medium: #374151;
    --text-light: #6B7280;
    --bg-light: #F9FAFB;
    --bg-white: #ffffff;
    --border-color: #E5E7EB;
    --badge-new: #FF6B6B;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.08);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: block;
}

.logo h1 {
    font-size: 1.125rem;
    color: var(--text-dark);
    font-weight: 300;
    margin: 0;
}

.logo-ai {
    color: var(--text-dark);
    font-weight: 700;
}

.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.9375rem;
    transition: color 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.nav a:hover {
    color: var(--primary-color);
}

.tools-menu {
    position: relative;
}

.tools-menu-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9375rem;
    color: var(--text-dark);
    font-weight: 400;
    transition: color 0.3s ease;
}

.tools-menu-trigger:hover {
    color: var(--primary-color);
}

.tools-menu-trigger .chevron-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.tools-menu-dropdown.active ~ .tools-menu-trigger .chevron-icon {
    transform: rotate(180deg);
}

.tools-menu-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    min-width: 720px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 0.5rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.tools-menu-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.tools-menu-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    color: #1a1a1a;
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 6px;
    font-size: 0.875rem;
    margin: 0.25rem;
}

.tools-menu-dropdown .dropdown-item:hover {
    background: #f8f9fa;
    color: var(--primary-color);
}

.tools-menu-dropdown .icon-external {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    opacity: 0.5;
}

@media (max-width: 1024px) {
    .tools-menu-dropdown {
        min-width: 480px;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .tools-menu-dropdown {
        min-width: 280px;
        grid-template-columns: 1fr;
        max-height: 400px;
        overflow-y: auto;
    }
}

.user-menu {
    position: relative;
}

.user-menu-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    font-size: 0.95rem;
}

.user-menu-trigger:hover {
    background: #e9ecef;
    border-color: var(--primary-color);
}

.user-name {
    color: #1a1a1a;
    font-weight: 500;
}

.chevron-icon {
    width: 16px;
    height: 16px;
    color: #666;
    transition: transform 0.3s ease;
}

.user-menu-trigger:hover .chevron-icon {
    color: var(--primary-color);
}

.user-menu-dropdown.active ~ .user-menu-trigger .chevron-icon {
    transform: rotate(180deg);
}

.user-menu-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 200px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.user-menu-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    width: 100%;
    color: #1a1a1a;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f3f4f6;
    box-sizing: border-box;
}

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

.dropdown-item:hover {
    background: #f8f9fa;
    color: var(--primary-color);
}

.dropdown-item.logout:hover {
    background: #fee2e2;
    color: #dc2626;
}

.dropdown-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .user-menu-trigger {
        padding: 0.5rem 0.75rem;
    }

    .user-name {
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

.nav a .icon-external-link {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

.hero {
    background: linear-gradient(180deg, #F3E8FF 0%, #FDFCFF 50%, #FFFFFF 100%);
    padding: 2.5rem 0 3.5rem 0;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-content {
    text-align: left;
}

.hero-content h2 {
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hero-content p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    max-width: 500px;
    line-height: 1.5;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: transparent;
    color: var(--primary-color);
    border: none;
    padding: 0;
    font-weight: 500;
}

.btn-primary:hover {
    gap: 0.625rem;
}

/* Hero Visual Elements */
.hero-visual {
    position: relative;
    height: 340px;
}

.floating-card {
    position: absolute;
    background: white;
    border-radius: 0.625rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    padding: 1rem;
}

.card-1 {
    top: 5px;
    left: 0px;
    width: 200px;
    animation-delay: 0s;
    z-index: 3;
}

.card-2 {
    top: 60px;
    right: 0px;
    width: 170px;
    animation-delay: 2s;
    z-index: 2;
}

.card-3 {
    bottom: 15px;
    left: 50px;
    width: 150px;
    animation-delay: 4s;
    z-index: 1;
}

.card-4 {
    top: 160px;
    left: -15px;
    width: 170px;
    animation-delay: 1s;
    z-index: 2;
}

.card-5 {
    top: 5px;
    right: 185px;
    width: 160px;
    animation-delay: 3s;
    z-index: 3;
}

.card-6 {
    bottom: 65px;
    right: 25px;
    width: 150px;
    animation-delay: 5s;
    z-index: 1;
}

.card-7 {
    bottom: -5px;
    right: 185px;
    width: 160px;
    animation-delay: 2.5s;
    z-index: 2;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.card-icon {
    width: 20px;
    height: 20px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.card-icon svg {
    width: 100%;
    height: 100%;
}

.card-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-dark);
}

.card-content {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.progress-bar {
    height: 8px;
    background: #E5E7EB;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    width: 75%;
    animation: progress 3s ease-in-out infinite;
}

@keyframes progress {
    0%, 100% { width: 75%; }
    50% { width: 90%; }
}

.card-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

.doc-line {
    height: 8px;
    background: #E5E7EB;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.doc-line.short {
    width: 60%;
}

.doc-line.highlight {
    background: linear-gradient(90deg, #DDD6FE 0%, #C4B5FD 100%);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.ai-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    border-radius: 2rem;
}

.ai-icon {
    width: 20px;
    height: 20px;
    color: white;
}

.ai-icon svg {
    width: 100%;
    height: 100%;
}

.ai-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
}

.hero-decoration {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    z-index: 0;
}

.decoration-1 {
    width: 200px;
    height: 200px;
    background: var(--primary-color);
    top: -50px;
    right: -50px;
    animation: rotate 20s linear infinite;
}

.decoration-2 {
    width: 150px;
    height: 150px;
    background: var(--primary-hover);
    bottom: -30px;
    left: -30px;
    animation: rotate 15s linear infinite reverse;
}

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

/* Risk Items */
.risk-item {
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.risk-item:last-child {
    margin-bottom: 0;
}

.risk-high {
    background: #FEE2E2;
    color: #991B1B;
}

.risk-medium {
    background: #FEF3C7;
    color: #92400E;
}

/* Summary Stat */
.summary-stat {
    text-align: center;
    padding: 0.5rem;
}

.summary-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.summary-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

/* Chat Bubble */
.chat-bubble {
    background: linear-gradient(135deg, #F3E8FF 0%, #E9D5FF 100%);
    color: var(--text-dark);
    padding: 0.75rem 1rem;
    border-radius: 1rem 1rem 1rem 0.25rem;
    font-size: 0.8125rem;
    font-weight: 500;
}

.btn-secondary {
    background-color: var(--primary-color);
    color: white;
}

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

.tools-section {
    padding: 4rem 0;
    background: white;
}

/* Search Block */
.search-block {
    margin-bottom: 3rem;
    text-align: center;
}

.search-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.search-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    padding: 1rem 3rem 1rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: 0.75rem;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.search-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--text-light);
    pointer-events: none;
}

.search-results {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    max-height: 350px;
    overflow-y: auto;
    z-index: 100;
}

.search-section {
    padding: 0.625rem 0.875rem;
    border-bottom: 1px solid var(--border-color);
}

.search-section:last-child {
    border-bottom: none;
}

.search-section-title {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
    text-align: left;
}

.search-tag {
    display: inline-block;
    padding: 0.375rem 0.625rem;
    background: var(--bg-light);
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    color: var(--text-dark);
    margin: 0.125rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-tag:hover {
    background: var(--primary-color);
    color: white;
}

.search-tool {
    display: block;
    padding: 0.625rem 0.75rem;
    border-radius: 0.375rem;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-bottom: 0.25rem;
    text-align: left;
}

.search-tool:hover {
    background: var(--bg-light);
}

.search-tool-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.125rem;
    text-align: left;
}

.search-tool-desc {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
    text-align: left;
    line-height: 1.4;
}

.search-tool-tags {
    font-size: 0.6875rem;
    color: var(--primary-color);
    text-align: left;
}

.search-empty {
    padding: 1.5rem;
    text-align: left;
    color: var(--text-light);
    font-size: 0.8125rem;
}

/* Suggested Tags */
.suggested-tags {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.suggested-tags-label {
    font-size: 0.8125rem;
    color: var(--text-light);
    font-weight: 500;
    margin-right: 0.25rem;
}

.suggested-tag {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    font-size: 0.8125rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.suggested-tag:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.section-title {
    text-align: left;
    font-size: 1.875rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.section-subtitle {
    text-align: left;
    color: var(--text-light);
    margin-bottom: 3rem;
    font-size: 1rem;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.tool-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-card);
    transition: all 0.2s ease;
    overflow: hidden;
    position: relative;
}

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

.tool-card-content {
    padding: 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.home-page .tool-icon {
    width: 28px;
    height: 28px;
    margin-bottom: 0.75rem;
    color: var(--text-medium);
}

.tool-badge {
    position: absolute;
    top: 0.875rem;
    right: 0.875rem;
    background-color: var(--badge-new);
    color: white;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.1875rem 0.5rem;
    border-radius: 0.3125rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.tool-title {
    font-size: 1.0625rem;
    margin-bottom: 0.625rem;
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1.4;
}

.tool-description {
    color: var(--text-light);
    margin-bottom: 1.25rem;
    flex-grow: 1;
    font-size: 0.875rem;
    line-height: 1.6;
}

.tool-card-footer {
    margin-top: auto;
}

.tool-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    transition: gap 0.2s ease;
}

.tool-link:hover {
    gap: 0.625rem;
}

.tool-link svg {
    width: 16px;
    height: 16px;
}

.icon-external,
.icon-arrow {
    width: 16px;
    height: 16px;
}

.about-section {
    background-color: var(--bg-light);
    padding: 5rem 0;
    display: none;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-weight: 700;
}

.about-content p {
    color: var(--text-light);
    font-size: 1.125rem;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.footer {
    background-color: var(--text-dark);
    color: white;
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-content {
    text-align: center;
}

@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-visual {
        height: 300px;
    }

    .hero-content {
        text-align: center;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .nav {
        gap: 1rem;
    }

    .hero-content h2 {
        font-size: 1.75rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-visual {
        display: none;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.5rem;
    }
}

/* ============================================
   ASSISTENTE JURÍDICO VIRTUAL - CSS COMPLETO
   ============================================ */

/* ============================================
   LANDING PAGE DO ASSISTENTE
   ============================================ */

.landing-page {
    background: linear-gradient(180deg, #F3E8FF 0%, #FDFCFF 50%, #FFFFFF 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 0 3.5rem 0;
    position: relative;
    overflow: hidden;
    transition: filter 0.3s ease;
}

.landing-page.chat-open {
    filter: blur(3px);
}

.landing-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(30, 58, 138, 0.3) 0%, transparent 50%);
    pointer-events: none;
}

.landing-container {
    max-width: 960px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.landing-card {
    background: white;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(229, 231, 235, 0.8);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.landing-header {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    align-items: flex-start;
}

.landing-icon {
    width: 64px;
    height: 64px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.landing-icon svg {
    width: 32px;
    height: 32px;
    stroke: #8b5cf6;
    fill: none;
}

.landing-header-text p {
    color: #6b7280;
    line-height: 1.5;
    font-size: 1rem;
}

.landing-section {
    background: rgba(139, 92, 246, 0.03);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(139, 92, 246, 0.1);
}

.landing-section .section-title {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    align-items: center;
}

.landing-section .section-title h2 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
}

.section-icon {
    width: 24px;
    height: 24px;
    stroke: #8b5cf6;
    fill: none;
}

.section-content {
    color: #374151;
    line-height: 1.6;
}

.section-content p {
    margin-bottom: 1rem;
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.feature-list li {
    color: #374151;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.9375rem;
}

.feature-list li::before {
    content: '●';
    color: #8b5cf6;
    position: absolute;
    left: 0;
    font-size: 1.25rem;
    line-height: 1.2;
}

.warning-box {
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.warning-header {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    align-items: center;
}

.warning-icon {
    width: 20px;
    height: 20px;
    fill: #fbbf24;
}

.warning-header h3 {
    color: #fbbf24;
    font-size: 1rem;
    font-weight: 600;
}

.warning-box p {
    color: #92400e;
    line-height: 1.6;
    font-size: 0.9375rem;
}

.cta-button {
    width: 100%;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #7c3aed, #6b21a8);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.cta-button svg {
    width: 20px;
    height: 20px;
    stroke: white;
    fill: none;
}

/* ============================================
   CHAT INTERFACE DO ASSISTENTE
   ============================================ */

.chat-interface {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.3);
}

.chat-interface.active {
    display: flex;
}

.chat-container {
    width: 100%;
    max-width: 880px;
    height: 80vh;
    max-height: 650px;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease-out;
}

.chat-header {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    padding: 1rem 1.5rem;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.chat-header-left {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-avatar svg {
    width: 22px;
    height: 22px;
    fill: white;
}

.chat-title h1 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

.chat-controls {
    display: flex;
    gap: 0.5rem;
}

.chat-control-btn {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.chat-control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.chat-control-btn svg {
    width: 16px;
    height: 16px;
    stroke: white;
    fill: none;
}

.chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    background: #f8f9fa;
}

.chat-body::-webkit-scrollbar {
    width: 8px;
}

.chat-body::-webkit-scrollbar-track {
    background: transparent;
}

.chat-body::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

/* ============================================
   MENSAGENS DO CHAT
   ============================================ */

.ai-message {
    display: flex;
    gap: 1rem;
    animation: messageSlide 0.3s ease-out;
}

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

.ai-message.user {
    flex-direction: row-reverse;
}

.ai-message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ai-message.user .ai-message-avatar {
    background: #6B7280;
}

.ai-message-avatar svg {
    width: 22px;
    height: 22px;
    fill: white;
}

.ai-message-content {
    max-width: 70%;
}

.ai-message-bubble {
    background: white;
    padding: 1rem 1.25rem;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    line-height: 1.6;
    color: #1F2937;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-height: none;
    overflow: visible;
}

.ai-message.user .ai-message-bubble {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
}

.ai-message-time {
    font-size: 0.75rem;
    color: #9CA3AF;
    margin-top: 0.5rem;
    padding: 0 0.5rem;
}

.ai-suggestions-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6B7280;
    margin-bottom: 1rem;
}

.ai-quick-suggestions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ai-quick-suggestion {
    background: white;
    border: 2px solid #E5E7EB;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #374151;
    text-align: left;
}

.ai-quick-suggestion:hover {
    border-color: #8b5cf6;
    background: #F9FAFB;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.15);
}

.ai-typing-indicator .ai-message-bubble {
    display: flex;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
}

.ai-typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #9CA3AF;
    animation: typingDot 1.4s ease-in-out infinite;
}

.ai-typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.ai-typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingDot {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-10px);
    }
}

/* ============================================
   CHAT FOOTER E INPUT
   ============================================ */

.chat-footer {
    padding: 1.5rem;
    background: white;
    border-top: 1px solid #E5E7EB;
    flex-shrink: 0;
}

.chat-input-container {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
}

.chat-input {
    flex: 1;
    padding: 1rem 1.25rem;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    resize: none;
    max-height: 150px;
    transition: all 0.2s ease;
}

.chat-input::placeholder {
    color: #9ca3af;
}

.chat-input:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.chat-send {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.chat-send:hover {
    background: linear-gradient(135deg, #7c3aed, #6b21a8);
    transform: translateY(-1px);
}

.chat-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.chat-send svg {
    width: 20px;
    height: 20px;
    fill: white;
}

.message-wrapper {
    width: 100%;
}

/* ============================================
   WIDGET FLUTUANTE DO ASSISTENTE
   ============================================ */

.ai-assistant-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9998;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.ai-assistant-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #6366f1;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.ai-assistant-button:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
    background: #5558e3;
}

.ai-assistant-button svg {
    width: 28px;
    height: 28px;
    fill: white;
    stroke: none;
}

.ai-assistant-button .close-icon {
    display: none;
}

.ai-assistant-button.active .chat-icon {
    display: none;
}

.ai-assistant-button.active .close-icon {
    display: block;
}

.ai-assistant-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    border: 3px solid white;
    animation: bounce 0.5s ease-in-out;
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.ai-assistant-chat {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 380px;
    max-width: calc(100vw - 40px);
    height: 600px;
    max-height: calc(100vh - 120px);
    background: white;
    border-radius: 16px;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.05),
        0 10px 40px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9997;
}

.ai-assistant-chat.active {
    display: flex;
}

.ai-assistant-chat.maximized {
    top: 20px;
    right: 20px;
    bottom: 20px;
    left: 20px;
    width: auto !important;
    height: auto !important;
    max-width: none;
    max-height: none;
}

.ai-chat-resize-handle {
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    cursor: nwse-resize;
    z-index: 10;
}

.ai-chat-resize-handle::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    width: 8px;
    height: 8px;
    border-left: 2px solid rgba(99, 102, 241, 0.3);
    border-top: 2px solid rgba(99, 102, 241, 0.3);
}

.ai-assistant-chat.maximized .ai-chat-resize-handle {
    display: none;
}

.ai-chat-header {
    background: #6366f1;
    padding: 1.25rem 1.5rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.875rem;
    border-bottom: none;
}

.ai-chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ai-chat-avatar svg {
    width: 22px;
    height: 22px;
    fill: white;
    stroke: none;
}

.ai-chat-info {
    flex: 1;
}

.ai-chat-info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.125rem 0;
    line-height: 1.4;
}

.ai-chat-subtitle {
    font-size: 0.8125rem;
    margin: 0;
    opacity: 0.85;
    font-weight: 400;
}

.ai-chat-controls {
    display: flex;
    gap: 0.5rem;
}

.ai-chat-control {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.ai-chat-control:hover {
    background: rgba(255, 255, 255, 0.15);
}

.ai-chat-control svg {
    width: 18px;
    height: 18px;
    fill: white;
    stroke: none;
}

.ai-chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.ai-chat-body::-webkit-scrollbar {
    width: 6px;
}

.ai-chat-body::-webkit-scrollbar-track {
    background: transparent;
}

.ai-chat-body::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.ai-chat-body::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

.ai-chat-footer {
    padding: 1rem 1.25rem;
    background: white;
    border-top: 1px solid #e5e7eb;
}

.ai-chat-input-container {
    display: flex;
    gap: 0.625rem;
    align-items: flex-end;
}

.ai-chat-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 0.875rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    resize: none;
    max-height: 120px;
    transition: all 0.2s ease;
    color: #1f2937;
}

.ai-chat-input::placeholder {
    color: #9ca3af;
}

.ai-chat-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.ai-chat-send {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #6366f1;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.ai-chat-send:hover {
    background: #5558e3;
    transform: translateY(-1px);
}

.ai-chat-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.ai-chat-send svg {
    width: 18px;
    height: 18px;
    fill: white;
    stroke: none;
}

.ai-welcome-message {
    text-align: center;
    padding: 1.5rem 1rem;
}

.ai-welcome-icon {
    font-size: 3rem;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.ai-welcome-message h4 {
    font-size: 1rem;
    font-weight: 500;
    color: #1f2937;
    margin: 0;
    line-height: 1.5;
}

/* ============================================
   PARTÍCULAS DECORATIVAS
   ============================================ */

.hero-decoration {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    z-index: 0;
}

.decoration-1 {
    width: 200px;
    height: 200px;
    background: #8b5cf6;
    top: -50px;
    right: -50px;
    animation: rotate 20s linear infinite;
}

.decoration-2 {
    width: 150px;
    height: 150px;
    background: #7c3aed;
    bottom: -30px;
    left: -30px;
    animation: rotate 15s linear infinite reverse;
}

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

/* ============================================
   RESPONSIVE DO ASSISTENTE
   ============================================ */

@media (max-width: 768px) {
    .landing-card {
        padding: 2rem 1.5rem;
    }

    .landing-header {
        flex-direction: column;
        gap: 1rem;
    }

    .chat-interface {
        padding: 0;
    }

    .chat-container {
        max-width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }

    .chat-body {
        padding: 1rem;
    }

    .chat-footer {
        padding: 1rem;
    }

    .ai-message-content {
        max-width: 85%;
    }

    .ai-assistant-widget {
        bottom: 16px;
        right: 16px;
    }

    .ai-assistant-button {
        width: 56px;
        height: 56px;
    }

    .ai-assistant-button svg {
        width: 28px;
        height: 28px;
    }

    .ai-assistant-chat {
        bottom: 84px;
        right: 16px;
        left: 16px;
        width: auto;
        max-width: none;
        height: calc(100vh - 120px);
    }

    .ai-assistant-chat.maximized {
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
    }

    .ai-chat-resize-handle {
        display: none;
    }
}

/* ============================================
   GERADOR DE PETIÇÃO INICIAL - ESTILOS ESPECÍFICOS
   Nota: Usar seletores específicos para não afetar a home
   IMPORTANTE: Todos os estilos abaixo só se aplicam fora da home-page
   ============================================ */

/* Wrapper para isolar estilos dos geradores */
body:not(.home-page) {

/* Hero Section - Not Logged In - Modern & Enigmatic */
.hero-landing {
    background: linear-gradient(180deg, #F3E8FF 0%, #FDFCFF 50%, #FFFFFF 100%);
    color: #1F2937;
    padding: 3rem 2rem 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-landing::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 8s ease-in-out infinite;
}

.hero-landing::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 10s ease-in-out infinite reverse;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #8b5cf6;
    backdrop-filter: blur(10px);
    animation: fadeInDown 0.8s ease-out;
    text-align: center;
}

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

.hero-landing h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: #1F2937;
    animation: fadeInUp 1s ease-out 0.2s both;
    margin-bottom: 2rem;
}

.hero-landing .subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: #6B7280;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-landing .subtitle strong {
    color: #a78bfa;
    font-weight: 700;
}

.cta-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.cta-button-large {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 2.5rem;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow:
        0 4px 12px rgba(139, 92, 246, 0.3),
        0 2px 8px rgba(139, 92, 246, 0.2);
    animation: fadeInUp 1s ease-out 0.6s both;
    overflow: hidden;
}

.cta-button-large::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.cta-button-large:hover::before {
    left: 100%;
}

.cta-button-large:hover {
    transform: translateY(-2px);
    box-shadow:
        0 6px 20px rgba(139, 92, 246, 0.4),
        0 4px 12px rgba(139, 92, 246, 0.3);
}

.cta-button-large svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.cta-button-large:hover svg {
    transform: translateX(5px);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 3.5rem;
    animation: fadeInUp 1s ease-out 0.8s both;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: #a78bfa;
    display: block;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 0.95rem;
    opacity: 0.8;
}

/* Features Section - Modern Design */
.features-section {
    padding: 5rem 2rem;
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f3f0ff, #e9d5ff);
    color: #7c3aed;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2.5rem;
    border-radius: 24px;
    background: white;
    border: 2px solid #f3f4f6;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #8b5cf6, #7c3aed);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.15);
    border-color: #e9d5ff;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    stroke: white;
    stroke-width: 2.5;
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
    font-weight: 700;
}

.feature-card p {
    color: #6b7280;
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Tool Section - Logged In */
.tool-section {
    width: 100%;
    margin: 0;
    padding: 4rem 2rem;
    min-height: 100vh;
    background: linear-gradient(180deg, #F3E8FF 0%, #FDFCFF 50%, #FFFFFF 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* Animated Background Particles */
.tool-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 15% 20%, rgba(139, 92, 246, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 80%, rgba(139, 92, 246, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.03) 0%, transparent 50%);
    animation: backgroundPulse 8s ease-in-out infinite;
    pointer-events: none;
}

/* Floating Particles */
.tool-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 20% 30%, rgba(139, 92, 246, 0.15), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(139, 92, 246, 0.2), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(139, 92, 246, 0.1), transparent),
        radial-gradient(1px 1px at 80% 10%, rgba(139, 92, 246, 0.12), transparent),
        radial-gradient(2px 2px at 90% 60%, rgba(139, 92, 246, 0.18), transparent);
    background-size: 200% 200%;
    animation: particleFloat 20s linear infinite;
    pointer-events: none;
}

.tool-card {
    width: 100%;
    max-width: 1000px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 24px;
    padding: 3rem;
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.08),
        0 10px 30px rgba(139, 92, 246, 0.1);
    position: relative;
    z-index: 1;
}

/* Glassmorphism Shimmer Effect */
.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.05), transparent);
    animation: shimmer 4s infinite;
    pointer-events: none;
}

.tool-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(139, 92, 246, 0.15);
    position: relative;
}

.tool-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 40%;
    height: 2px;
    background: linear-gradient(90deg, #8b5cf6, #ec4899, transparent);
    animation: lineGlow 3s ease-in-out infinite;
}

@keyframes lineGlow {
    0%, 100% { opacity: 0.5; width: 40%; }
    50% { opacity: 1; width: 60%; }
}

.tool-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow:
        0 0 30px rgba(139, 92, 246, 0.6),
        0 0 60px rgba(236, 72, 153, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow:
            0 4px 12px rgba(139, 92, 246, 0.3),
            0 0 20px rgba(139, 92, 246, 0.2);
    }
    50% {
        transform: scale(1.05);
        box-shadow:
            0 6px 16px rgba(139, 92, 246, 0.4),
            0 0 30px rgba(139, 92, 246, 0.3);
    }
}

.tool-icon::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 18px;
    padding: 3px;
    background: linear-gradient(45deg, #8b5cf6, #7c3aed, #8b5cf6);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.5;
    animation: rotate 4s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.tool-icon svg {
    width: 32px;
    height: 32px;
    stroke: white;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
    position: relative;
    z-index: 1;
}

.tool-header h1 {
    font-size: 2rem;
    font-weight: 900;
    color: #1F2937;
    position: relative;
    letter-spacing: -0.5px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.form-row .form-group {
    margin-bottom: 0;
}

.section-divider {
    margin: 3rem 0 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(139, 92, 246, 0.03) 100%);
    border-radius: 16px;
    border-left: 4px solid #8b5cf6;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.section-divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #8b5cf6, #7c3aed, transparent);
    animation: borderFlow 3s linear infinite;
}

@keyframes borderFlow {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.section-divider h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #8b5cf6;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-divider h3::before {
    content: '◆';
    color: #8b5cf6;
    font-size: 1rem;
    animation: float 2s ease-in-out infinite;
    filter: drop-shadow(0 0 4px rgba(139, 92, 246, 0.3));
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 400;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 8px;
    transition: background 0.2s;
    color: #374151;
}

.checkbox-group label:hover {
    background: rgba(139, 92, 246, 0.08);
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #8b5cf6;
    flex-shrink: 0;
}

.money-input {
    font-family: monospace;
    font-size: 1.1rem;
}

/* Wizard Progress */
.wizard-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    padding: 0 1rem;
    position: relative;
}

.wizard-progress::before {
    content: '';
    position: absolute;
    top: 20px;
    left: calc(10% + 20px);
    right: calc(10% + 20px);
    height: 2px;
    background: rgba(139, 92, 246, 0.15);
    z-index: 0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
    flex: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid rgba(139, 92, 246, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    color: #9CA3AF;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.progress-step.active .step-number {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    border-color: #8b5cf6;
    color: white;
    box-shadow:
        0 4px 12px rgba(139, 92, 246, 0.3),
        0 0 20px rgba(139, 92, 246, 0.2);
    animation: stepPulse 2s ease-in-out infinite;
}

@keyframes stepPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.progress-step.completed .step-number {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    border-color: #8b5cf6;
    color: white;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25);
}

/* Linha roxa conectando steps completados */
.progress-step.completed::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #8b5cf6, #7c3aed);
    z-index: 0;
    transition: all 0.3s ease;
}

/* Remover linha do último step */
.progress-step:last-child.completed::after {
    display: none;
}

.step-label {
    font-size: 0.75rem;
    color: #9CA3AF;
    text-align: center;
    font-weight: 500;
}

.progress-step.active .step-label {
    color: #8b5cf6;
    font-weight: 700;
}

/* Wizard Steps */
.wizard-step {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.wizard-step.active {
    display: block;
}

.step-title {
    font-size: 2rem;
    font-weight: 900;
    color: #1F2937;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    letter-spacing: -0.5px;
}

.step-title::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #8b5cf6, #7c3aed);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.4);
}

.step-description {
    font-size: 1.05rem;
    color: #6B7280;
    margin-bottom: 2.5rem;
    margin-top: 1.5rem;
    padding-left: 1.5rem;
    border-left: 3px solid rgba(139, 92, 246, 0.3);
    line-height: 1.6;
}

.wizard-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(139, 92, 246, 0.15);
    position: relative;
}

.wizard-actions::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 50%;
    height: 2px;
    background: linear-gradient(90deg, #8b5cf6, transparent);
    animation: actionBorder 3s ease-in-out infinite;
}

@keyframes actionBorder {
    0%, 100% { opacity: 0.5; width: 50%; }
    50% { opacity: 1; width: 70%; }
}

.wizard-actions .btn-secondary {
    flex: 0 0 auto;
}

.wizard-actions .btn-primary {
    flex: 1;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #374151;
    font-size: 0.95rem;
    position: relative;
    padding-left: 16px;
}

.form-group label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(139, 92, 246, 0.4);
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { transform: translateY(-50%) scale(1); opacity: 0.6; }
    50% { transform: translateY(-50%) scale(1.3); opacity: 1; }
}

.form-group label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 0.75rem;
    cursor: pointer;
    accent-color: #8b5cf6;
    flex-shrink: 0;
}

.form-group label .required {
    color: #ef4444;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #1F2937;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9CA3AF;
}

.form-group select {
    color: #1F2937;
    background: #ffffff;
}

.form-group select option {
    background: #ffffff;
    color: #1F2937;
}

.form-group input:hover,
.form-group textarea:hover,
.form-group select:hover {
    border-color: rgba(139, 92, 246, 0.4);
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.08);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #8b5cf6;
    background: #ffffff;
    box-shadow:
        0 0 0 3px rgba(139, 92, 246, 0.1),
        0 2px 8px rgba(139, 92, 246, 0.15);
}

.form-group textarea {
    min-height: 200px;
    resize: vertical;
}

.form-group .helper-text {
    font-size: 0.875rem;
    color: #9CA3AF;
    margin-top: 0.5rem;
}

.form-group .char-counter {
    font-size: 0.875rem;
    color: #9ca3af;
    text-align: right;
    margin-top: 0.5rem;
}

/* Extension Options */
.extension-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 0.75rem;
}

.extension-option {
    position: relative;
}

.extension-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.extension-option label {
    display: block;
    padding: 1.25rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

.extension-option input[type="radio"]:checked + label {
    border-color: #8b5cf6;
    background: #f8f7ff;
}

.extension-option label .option-title {
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
    display: block;
}

.extension-option label .option-desc {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Buttons */
.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn {
    padding: 0.875rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    flex: 1;
    justify-content: center;
    box-shadow:
        0 4px 12px rgba(139, 92, 246, 0.3),
        0 2px 8px rgba(139, 92, 246, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow:
        0 6px 20px rgba(139, 92, 246, 0.4),
        0 4px 12px rgba(139, 92, 246, 0.3);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: #ffffff;
    color: #374151;
    border: 2px solid #E5E7EB;
}

.btn-secondary:hover {
    border-color: #8b5cf6;
    background: #F9FAFB;
    color: #8b5cf6;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.15);
}

/* Loading State */
.loading-container {
    display: none;
    text-align: center;
    padding: 3rem;
}

.loading-container.active {
    display: block;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e5e7eb;
    border-top-color: #8b5cf6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

.loading-text {
    font-size: 1.125rem;
    color: #1F2937;
    margin-bottom: 0.5rem;
}

.loading-subtext {
    font-size: 0.875rem;
    color: #6B7280;
}

/* Result Section */
.result-container {
    display: none;
    margin-top: 3rem;
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.result-container.active {
    display: block;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f3f4f6;
}

.result-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
}

.result-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-icon {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    background: white;
    border: 2px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
}

.btn-icon:hover {
    border-color: #8b5cf6;
    background: #f8f7ff;
    color: #7c3aed;
}

.btn-icon svg {
    width: 20px;
    height: 20px;
}

.peticao-content {
    background: #ffffff;
    padding: 3rem;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    white-space: pre-wrap;
    font-family: 'Georgia', serif;
    line-height: 2;
    color: #1a1a1a;
    font-size: 1rem;
}

/* Error State */
.error-container {
    display: none;
    text-align: center;
    padding: 2.5rem;
    background: white;
    border: 2px solid #fecaca;
    border-radius: 16px;
    margin-top: 3rem;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.1);
}

.error-container.active {
    display: block;
}

.error-icon {
    width: 48px;
    height: 48px;
    background: #ef4444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.error-icon svg {
    width: 24px;
    height: 24px;
    stroke: white;
}

.error-message {
    color: #991b1b;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Why Section - Enigmatic Design */
.why-section {
    padding: 5rem 2rem;
    background: linear-gradient(180deg, #F3E8FF 0%, #FDFCFF 100%);
    position: relative;
    overflow: hidden;
}

.why-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(139, 92, 246, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.03) 0%, transparent 50%);
}

.why-section .section-header {
    position: relative;
    z-index: 2;
}

.why-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.why-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid rgba(139, 92, 246, 0.15);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.why-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), rgba(139, 92, 246, 0.03));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.why-card:hover {
    transform: translateY(-8px);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.2);
}

.why-card:hover::before {
    opacity: 1;
}

.why-number {
    font-size: 3rem;
    font-weight: 900;
    color: #8b5cf6;
    margin-bottom: 1rem;
    display: block;
}

.why-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #1F2937;
    font-weight: 700;
    position: relative;
}

.why-card p {
    color: #6B7280;
    line-height: 1.7;
    font-size: 1.05rem;
    position: relative;
}

/* CTA Final Section */
.cta-final-section {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
    margin: 0 !important;
}

/* Footer Override */
.footer {
    margin-top: 0 !important;
    padding: 2rem 0;
    background-color: #1F2937;
}

.cta-final-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-final-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.cta-final-content h2 {
    font-size: 3rem;
    font-weight: 900;
    color: white;
    margin-bottom: 1.5rem;
}

.cta-final-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.cta-button-white {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    color: #7c3aed;
    padding: 1.25rem 3rem;
    border-radius: 16px;
    font-size: 1.125rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.cta-button-white:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

/* Responsive - Gerador Petição */
@media (max-width: 768px) {
    .hero-landing h1 {
        font-size: 2rem;
    }

    .tool-card {
        padding: 2rem 1.5rem;
    }

    .extension-options {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .result-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .result-actions {
        width: 100%;
        flex-direction: column;
    }

    .btn-icon {
        width: 100%;
        justify-content: center;
    }
}

/* Formatação do resultado da petição */
.peticao-content {
    background: #ffffff;
    padding: 3rem;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    white-space: pre-wrap;
    font-family: 'Georgia', serif;
    line-height: 2;
    color: #1a1a1a;
    font-size: 1rem;
    text-align: justify;
    margin-top: 2rem;
}

/* Formatação de parágrafos e títulos */
.peticao-content p {
    margin-bottom: 1.5rem;
    text-indent: 2rem;
}

.peticao-content h3,
.peticao-content h2 {
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    text-indent: 0;
    text-align: center;
}

.peticao-content strong {
    font-weight: 700;
}

/* Quebras de linha e espaçamento */
.peticao-content br {
    display: block;
    margin: 0.5rem 0;
    content: "";
}

} /* Fim do wrapper body:not(.home-page) para estilos dos geradores */

/* ============================================
   GERADOR DE HONORÁRIOS - ESTILOS ESPECÍFICOS
   Usando seletores com caminho absoluto para evitar conflitos
   ============================================ */

/* Reset específico para gerador-honorarios - excluindo header e footer */
.gerador-honorarios-page main *,
.gerador-honorarios-page .hero-landing *,
.gerador-honorarios-page .features-section *,
.gerador-honorarios-page .tool-section * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.gerador-honorarios-page body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #fafafa;
    color: #1a1a1a;
}

.gerador-honorarios-page main {
    margin: 0;
    padding: 0;
}

/* Hero Section - Not Logged In */
.gerador-honorarios-page .hero-landing {
    background: linear-gradient(180deg, #F3E8FF 0%, #FDFCFF 50%, #FFFFFF 100%);
    color: #1F2937;
    padding: 3rem 2rem 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.gerador-honorarios-page .hero-landing::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 8s ease-in-out infinite;
}

.gerador-honorarios-page .hero-landing::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 10s ease-in-out infinite reverse;
}

.gerador-honorarios-page .hero-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.gerador-honorarios-page .hero-badge {
    display: inline-block;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.6s ease-out;
}

.gerador-honorarios-page .hero-landing h1 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #1F2937;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.gerador-honorarios-page .hero-landing p {
    font-size: 1.25rem;
    line-height: 1.7;
    color: #6B7280;
    max-width: 900px;
    margin: 0 auto 2.5rem;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.gerador-honorarios-page .cta-button-large {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 2.5rem;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow:
        0 4px 12px rgba(139, 92, 246, 0.3),
        0 2px 8px rgba(139, 92, 246, 0.2);
    animation: fadeInUp 1.2s ease-out 0.6s both;
    position: relative;
    overflow: hidden;
}

.gerador-honorarios-page .cta-button-large::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.gerador-honorarios-page .cta-button-large:hover::before {
    left: 100%;
}

.gerador-honorarios-page .cta-button-large:hover {
    transform: translateY(-2px);
    box-shadow:
        0 6px 20px rgba(139, 92, 246, 0.4),
        0 4px 12px rgba(139, 92, 246, 0.3);
}

.gerador-honorarios-page .cta-button-large svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.gerador-honorarios-page .cta-button-large:hover svg {
    transform: translateX(5px);
}

.gerador-honorarios-page .hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 3.5rem;
    animation: fadeInUp 1.4s ease-out 0.8s both;
}

.gerador-honorarios-page .stat-item {
    text-align: center;
}

.gerador-honorarios-page .stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: #a78bfa;
    display: block;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.gerador-honorarios-page .stat-label {
    font-size: 0.95rem;
    opacity: 0.8;
}

/* Features Section */
.gerador-honorarios-page .features-section {
    padding: 5rem 2rem;
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
}

.gerador-honorarios-page .section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.gerador-honorarios-page .section-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f3f0ff, #e9d5ff);
    color: #7c3aed;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gerador-honorarios-page .section-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: #1F2937;
}

.gerador-honorarios-page .section-subtitle {
    font-size: 1.125rem;
    color: #6B7280;
    line-height: 1.7;
}

.gerador-honorarios-page .features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.gerador-honorarios-page .feature-card {
    padding: 2.5rem;
    border-radius: 24px;
    background: white;
    border: 2px solid #f3f4f6;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.gerador-honorarios-page .feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #8b5cf6, #7c3aed);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.gerador-honorarios-page .feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.15);
    border-color: #e9d5ff;
}

.gerador-honorarios-page .feature-card:hover::before {
    transform: scaleX(1);
}

.gerador-honorarios-page .feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
    transition: transform 0.3s ease;
}

.gerador-honorarios-page .feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.gerador-honorarios-page .feature-icon svg {
    width: 32px;
    height: 32px;
    stroke: white;
    stroke-width: 2.5;
}

.gerador-honorarios-page .feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
    font-weight: 700;
}

.gerador-honorarios-page .feature-card p {
    color: #6b7280;
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Tool Section - Logged In */
.gerador-honorarios-page .tool-section {
    width: 100%;
    margin: 0;
    padding: 4rem 2rem;
    min-height: 100vh;
    background: linear-gradient(180deg, #F3E8FF 0%, #FDFCFF 50%, #FFFFFF 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.gerador-honorarios-page .tool-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 15% 20%, rgba(139, 92, 246, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 80%, rgba(139, 92, 246, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.03) 0%, transparent 50%);
    animation: backgroundPulse 8s ease-in-out infinite;
    pointer-events: none;
}

.gerador-honorarios-page .tool-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 20% 30%, rgba(139, 92, 246, 0.15), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(139, 92, 246, 0.2), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(139, 92, 246, 0.1), transparent),
        radial-gradient(1px 1px at 80% 10%, rgba(139, 92, 246, 0.12), transparent),
        radial-gradient(2px 2px at 90% 60%, rgba(139, 92, 246, 0.18), transparent);
    background-size: 200% 200%;
    animation: particleFloat 20s linear infinite;
    pointer-events: none;
}

.gerador-honorarios-page .tool-card {
    width: 100%;
    max-width: 1000px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 24px;
    padding: 3rem;
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.08),
        0 10px 30px rgba(139, 92, 246, 0.1);
    position: relative;
    z-index: 1;
}

.gerador-honorarios-page .tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.05), transparent);
    animation: shimmer 4s infinite;
    pointer-events: none;
}

.gerador-honorarios-page .tool-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(139, 92, 246, 0.15);
    position: relative;
}

.gerador-honorarios-page .tool-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow:
        0 0 30px rgba(139, 92, 246, 0.6),
        0 0 60px rgba(236, 72, 153, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    animation: iconPulse 3s ease-in-out infinite;
}

.gerador-honorarios-page .tool-icon::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 18px;
    padding: 3px;
    background: linear-gradient(45deg, #8b5cf6, #7c3aed, #8b5cf6);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.5;
    animation: rotate 4s linear infinite;
}

.gerador-honorarios-page .tool-icon svg {
    width: 32px;
    height: 32px;
    stroke: white;
    position: relative;
    z-index: 1;
}

.gerador-honorarios-page .tool-header h1 {
    font-size: 2rem;
    font-weight: 900;
    color: #1F2937;
}

.gerador-honorarios-page .form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.gerador-honorarios-page .form-row .form-group {
    margin-bottom: 0;
}

.gerador-honorarios-page .section-divider {
    margin: 3rem 0 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(139, 92, 246, 0.03) 100%);
    border-radius: 16px;
    border-left: 4px solid #8b5cf6;
}

.gerador-honorarios-page .section-divider h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #8b5cf6;
    margin: 0;
}

.gerador-honorarios-page .checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.gerador-honorarios-page .checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 400;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 8px;
    transition: background 0.2s;
    color: #374151;
}

.gerador-honorarios-page .checkbox-group label:hover {
    background: rgba(139, 92, 246, 0.08);
}

.gerador-honorarios-page .checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #8b5cf6;
    flex-shrink: 0;
}

.gerador-honorarios-page .radio-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.gerador-honorarios-page .radio-option {
    position: relative;
}

.gerador-honorarios-page .radio-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.gerador-honorarios-page .radio-option label {
    display: block;
    padding: 1.25rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

.gerador-honorarios-page .radio-option input[type="radio"]:checked + label {
    border-color: #8b5cf6;
    background: #f8f7ff;
}

.gerador-honorarios-page .radio-option label .option-title {
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
    display: block;
}

.gerador-honorarios-page .radio-option label .option-desc {
    font-size: 0.875rem;
    color: #6b7280;
}

.gerador-honorarios-page .money-input {
    font-family: monospace;
    font-size: 1.1rem;
}

/* Wizard Progress */
.gerador-honorarios-page .wizard-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    padding: 0 1rem;
    position: relative;
}

.gerador-honorarios-page .wizard-progress::before {
    content: '';
    position: absolute;
    top: 20px;
    left: calc(10% + 20px);
    right: calc(10% + 20px);
    height: 2px;
    background: rgba(139, 92, 246, 0.15);
    z-index: 0;
}

.gerador-honorarios-page .progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
    flex: 1;
}

.gerador-honorarios-page .step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid rgba(139, 92, 246, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    color: #9CA3AF;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.gerador-honorarios-page .progress-step.active .step-number {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    border-color: #8b5cf6;
    color: white;
    box-shadow:
        0 4px 12px rgba(139, 92, 246, 0.3),
        0 0 20px rgba(139, 92, 246, 0.2);
    animation: stepPulse 2s ease-in-out infinite;
}

.gerador-honorarios-page .progress-step.completed .step-number {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    border-color: #8b5cf6;
    color: white;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25);
}

/* Linha roxa conectando steps completados */
.gerador-honorarios-page .progress-step.completed::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #8b5cf6, #7c3aed);
    z-index: 0;
    transition: all 0.3s ease;
}

/* Remover linha do último step */
.gerador-honorarios-page .progress-step:last-child.completed::after {
    display: none;
}

.gerador-honorarios-page .step-label {
    font-size: 0.75rem;
    color: #9CA3AF;
    text-align: center;
    font-weight: 500;
}

.gerador-honorarios-page .progress-step.active .step-label {
    color: #8b5cf6;
    font-weight: 700;
}

/* Wizard Steps */
.gerador-honorarios-page .wizard-step {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.gerador-honorarios-page .wizard-step.active {
    display: block;
}

.gerador-honorarios-page .step-title {
    font-size: 2rem;
    font-weight: 900;
    color: #1F2937;
    margin-bottom: 1rem;
}

.gerador-honorarios-page .step-description {
    font-size: 1.05rem;
    color: #6B7280;
    margin-bottom: 2.5rem;
}

.gerador-honorarios-page .wizard-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(139, 92, 246, 0.15);
}

.gerador-honorarios-page .wizard-actions .btn-secondary {
    flex: 0 0 auto;
}

.gerador-honorarios-page .wizard-actions .btn-primary {
    flex: 1;
}

.gerador-honorarios-page .form-group {
    margin-bottom: 1.5rem;
}

.gerador-honorarios-page .form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #374151;
    font-size: 0.95rem;
}

.gerador-honorarios-page .form-group label .required {
    color: #ef4444;
}

.gerador-honorarios-page .form-group input,
.gerador-honorarios-page .form-group textarea,
.gerador-honorarios-page .form-group select {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #1F2937;
}

.gerador-honorarios-page .form-group input:focus,
.gerador-honorarios-page .form-group textarea:focus,
.gerador-honorarios-page .form-group select:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.gerador-honorarios-page .form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.gerador-honorarios-page .form-group .helper-text {
    font-size: 0.875rem;
    color: #9CA3AF;
    margin-top: 0.5rem;
}

/* Buttons */
.gerador-honorarios-page .form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.gerador-honorarios-page .btn {
    padding: 0.875rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.gerador-honorarios-page .btn-primary {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    flex: 1;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.gerador-honorarios-page .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.gerador-honorarios-page .btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.gerador-honorarios-page .btn-secondary {
    background: #ffffff;
    color: #374151;
    border: 2px solid #E5E7EB;
}

.gerador-honorarios-page .btn-secondary:hover {
    border-color: #8b5cf6;
    background: #F9FAFB;
    color: #8b5cf6;
}

/* Loading State */
.gerador-honorarios-page .loading-container {
    display: none;
    text-align: center;
    padding: 3rem;
}

.gerador-honorarios-page .loading-container.active {
    display: block;
}

.gerador-honorarios-page .spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(139, 92, 246, 0.2);
    border-top-color: #8b5cf6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

.gerador-honorarios-page .loading-text {
    font-size: 1.125rem;
    color: #1F2937;
    margin-bottom: 0.5rem;
}

.gerador-honorarios-page .loading-subtext {
    font-size: 0.875rem;
    color: #6B7280;
}

/* Result Section */
.gerador-honorarios-page .result-section {
    display: none;
    margin-top: 3rem;
}

.gerador-honorarios-page .result-section.active {
    display: block;
}

.gerador-honorarios-page .result-container {
    display: none;
    margin-top: 3rem;
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.gerador-honorarios-page .result-container.active {
    display: block;
}

.gerador-honorarios-page .result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f3f4f6;
}

.gerador-honorarios-page .result-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
}

.gerador-honorarios-page .result-actions {
    display: flex;
    gap: 0.75rem;
}

.gerador-honorarios-page .btn-icon {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    background: white;
    border: 2px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
}

.gerador-honorarios-page .btn-icon:hover {
    border-color: #8b5cf6;
    background: #f8f7ff;
    color: #7c3aed;
}

.gerador-honorarios-page .btn-icon svg {
    width: 20px;
    height: 20px;
}

.gerador-honorarios-page .result-content,
.gerador-honorarios-page .contrato-content {
    background: #ffffff;
    padding: 3rem;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    white-space: pre-wrap;
    font-family: 'Georgia', serif;
    line-height: 2;
    color: #1a1a1a;
    font-size: 1rem;
    text-align: justify;
}

/* Formatação de cláusulas e parágrafos */
.gerador-honorarios-page .result-content p,
.gerador-honorarios-page .contrato-content p {
    margin-bottom: 1.5rem;
    text-indent: 2rem;
}

.gerador-honorarios-page .result-content h3,
.gerador-honorarios-page .contrato-content h3 {
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    text-indent: 0;
}

.gerador-honorarios-page .result-content strong,
.gerador-honorarios-page .contrato-content strong {
    font-weight: 700;
}

/* Error State */
.gerador-honorarios-page .error-container {
    display: none;
    text-align: center;
    padding: 2.5rem;
    background: white;
    border: 2px solid #fecaca;
    border-radius: 16px;
    margin-top: 3rem;
}

.gerador-honorarios-page .error-container.active {
    display: block;
}

.gerador-honorarios-page .error-icon {
    width: 48px;
    height: 48px;
    background: #ef4444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.gerador-honorarios-page .error-icon svg {
    width: 24px;
    height: 24px;
    stroke: white;
}

.gerador-honorarios-page .error-message {
    color: #991b1b;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Loading Overlay */
.gerador-honorarios-page .loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.gerador-honorarios-page .loading-overlay.active {
    display: flex;
}

.gerador-honorarios-page .loading-content {
    text-align: center;
    color: white;
}

.gerador-honorarios-page .loading-content .spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: #8b5cf6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

.gerador-honorarios-page .loading-content p {
    font-size: 1.125rem;
    color: white;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .gerador-honorarios-page .hero-landing h1 {
        font-size: 2rem;
    }

    .gerador-honorarios-page .tool-card {
        padding: 2rem 1.5rem;
    }

    .gerador-honorarios-page .form-row {
        grid-template-columns: 1fr;
    }

    .gerador-honorarios-page .radio-group {
        grid-template-columns: 1fr;
    }

    .gerador-honorarios-page .form-actions {
        flex-direction: column;
    }

    .gerador-honorarios-page .result-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .gerador-honorarios-page .result-actions {
        width: 100%;
        flex-direction: column;
    }

    .gerador-honorarios-page .btn-icon {
        width: 100%;
        justify-content: center;
    }
}
