/* ================================
   X-WEIGHT PRO - VARIÁVEIS GLOBAIS
   ================================ */
:root {
    --xw-blue: #003366;
    --xw-orange: #FF6B00;
    --xw-accent: #00A0E9;
    --xw-light: #F5F9FC;
    --xw-dark: #1A2B3D;
    --success: #28A745;
    --warning: #FFC107;
    --danger: #DC3545;
    --info: #17A2B8;
    
    /* Aliases para compatibilidade */
    --primary: var(--xw-blue);
    --secondary: var(--xw-orange);
    --accent: var(--xw-accent);
    --light: var(--xw-light);
    --dark: var(--xw-dark);
}

/* ================================
   RESET E BASE
   ================================ */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--xw-dark);
    line-height: 1.6;
    background-color: #ffffff;
}

/* ================================
   LOADING SCREEN
   ================================ */
.xw-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--xw-blue) 0%, var(--xw-dark) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
    backdrop-filter: blur(5px);
}

.loader-logo {
    width: 120px;
    text-align: center;
    animation: float 3s ease-in-out infinite;
}

.loader-logo svg {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.loader-logo path {
    stroke-width: 8;
    stroke-linecap: round;
    fill: none;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
}

.x-path {
    animation: draw 1.5s ease-in-out forwards;
}

.w-path {
    animation: draw 1.5s ease-in-out 0.3s forwards;
}

.loader-progress {
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
    overflow: hidden;
}

.loader-progress:after {
    content: '';
    display: block;
    height: 100%;
    width: 0;
    background: var(--xw-orange);
    animation: load 1.5s ease-in-out forwards;
}

@keyframes draw {
    to { stroke-dashoffset: 0; }
}

@keyframes load {
    to { width: 100%; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ================================
   HEADER NAVIGATION
   ================================ */
.xw-navbar {
    background: linear-gradient(135deg, var(--xw-dark) 0%, var(--xw-blue) 100%);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.brand-logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    height: 36px;
    width: 36px;
    transition: transform 0.3s ease;
}

.brand-logo:hover {
    transform: scale(1.1);
}

.brand-name {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.5rem;
    color: white;
    letter-spacing: -0.5px;
}

.tld {
    color: var(--xw-orange);
    font-size: 1rem;
    top: -0.8em;
    font-weight: 400;
    position: relative;
}

.tld:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, var(--xw-orange), transparent);
    opacity: 0.7;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    padding: 0.5rem 1.2rem;
    position: relative;
    transition: all 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: white;
}

.navbar-dark .navbar-nav .nav-link.active {
    color: var(--xw-orange);
}

.navbar-dark .navbar-nav .nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 1.2rem;
    background-color: var(--xw-orange);
    transition: width 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover:after,
.navbar-dark .navbar-nav .nav-link.active:after {
    width: calc(100% - 2.4rem);
}

.dropdown-menu {
    border: none;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: var(--xw-light);
    color: var(--xw-blue);
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.85);
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-primary {
    background-color: var(--xw-orange);
    border-color: var(--xw-orange);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #E05E00;
    border-color: #E05E00;
    transform: translateY(-1px);
}

/* ================================
   HERO SECTION
   ================================ */
.hero {
    background: linear-gradient(135deg, var(--xw-blue) 0%, var(--xw-dark) 100%);
    color: white;
    padding: 6rem 0 5rem;
    position: relative;
    overflow: hidden;
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHBhdHRlcm5UcmFuc2Zvcm09InJvdGF0ZSg0NSkiPjxyZWN0IHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjAzKSIvPjwvcGF0dGVybj48L2RlZnM+PHJlY3QgZmlsbD0idXJsKCNwYXR0ZXJuKSIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIvPjwvc3ZnPg==');
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 107, 0, 0.15);
    color: var(--xw-orange);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 107, 0, 0.3);
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    max-width: 800px;
}

.hero .lead {
    font-size: 1.3rem;
    line-height: 1.6;
    opacity: 0.9;
    max-width: 700px;
    margin-bottom: 2.5rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.cta-button {
    background: var(--xw-orange);
    color: white;
    padding: 0.9rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
    text-decoration: none;
}

.cta-button:hover {
    background: #E05E00;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.4);
    text-decoration: none;
}

.cta-button svg {
    transition: transform 0.3s ease;
}

.cta-button:hover svg {
    transform: translateX(3px);
}

.cta-secondary {
    color: white;
    opacity: 0.8;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

.cta-secondary:hover {
    opacity: 1;
    color: white;
    text-decoration: none;
}

.trust-badges {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.badge-item i {
    color: var(--xw-orange);
}

/* ================================
   SECTIONS GERAIS
   ================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--xw-blue);
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-title p {
    font-size: 1.2rem;
    color: var(--xw-dark);
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.8;
}

/* ================================
   FEATURES SECTION
   ================================ */
.features-section {
    padding: 5rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: var(--xw-accent);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--xw-accent);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--xw-blue);
    font-weight: 600;
}

.feature-card p {
    color: var(--xw-dark);
    opacity: 0.8;
    margin-bottom: 1rem;
}

.feature-link {
    color: var(--xw-accent);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.feature-link:hover {
    color: var(--xw-orange);
    text-decoration: none;
}

.feature-link i {
    transition: transform 0.3s ease;
}

.feature-link:hover i {
    transform: translateX(3px);
}

/* ================================
   DEMO PREVIEW SECTION
   ================================ */
.demo-preview-section {
    padding: 5rem 0;
    background: var(--xw-light);
}

.demo-panel {
    background: white;
    border-radius: 12px;
    padding: 0;
    margin: 2rem auto;
    max-width: 1200px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.nav-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    background: #f8f9fa;
    border-radius: 12px 12px 0 0;
    padding: 0.5rem;
    border-bottom: none;
}

.nav-tabs .nav-item {
    flex: 0 0 auto;
    scroll-snap-align: start;
    margin-right: 0.5rem;
}

.nav-tabs .nav-link {
    white-space: nowrap;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 600;
    color: var(--xw-dark);
    border: none;
}

.nav-tabs .nav-link:hover {
    background-color: rgba(0, 160, 233, 0.1);
    color: var(--xw-accent);
}

.nav-tabs .nav-link.active {
    background-color: var(--xw-orange);
    color: white;
    border-color: var(--xw-orange);
}

.tab-content {
    position: relative;
    min-height: 500px;
}

.tab-pane {
    transition: opacity 0.3s ease;
}

.chart-container {
    position: relative;
    height: 300px;
    margin-bottom: 2rem;
}

.comparison-badge {
    background-color: var(--xw-orange);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

.convergence-step {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.convergence-step:hover {
    background-color: var(--xw-light);
}

.convergence-badge {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--xw-accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-weight: bold;
    font-size: 0.9rem;
}

.convergence-success {
    background-color: var(--xw-orange);
}

/* Controles de navegação do carrossel */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    z-index: 10;
    opacity: 0.7;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.1);
}

.carousel-control:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.carousel-control.prev {
    left: 15px;
}

.carousel-control.next {
    right: 15px;
}

.carousel-control i {
    color: var(--xw-blue);
}

/* ================================
   STATS SECTION
   ================================ */
.stats-section {
    background-color: var(--xw-light);
    padding: 4rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--xw-blue);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--xw-blue), var(--xw-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--xw-dark);
    font-size: 1.1rem;
    font-weight: 500;
}

/* ================================
   CTA SECTION
   ================================ */
.cta-section {
    background: linear-gradient(135deg, var(--xw-blue) 0%, var(--xw-dark) 100%);
    color: white;
    padding: 5rem 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.cta-section .lead {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-outline-primary {
    border-color: white;
    color: white;
    background: transparent;
}

.btn-outline-primary:hover {
    background: white;
    color: var(--xw-blue);
}

/* ================================
   DEMO PAGE ESPECÍFICO
   ================================ */
.demo-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 2rem;
}

.demo-header {
    background: linear-gradient(135deg, var(--xw-blue) 0%, var(--xw-dark) 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.demo-panel {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-left: 4px solid var(--xw-orange);
}

.file-upload-box {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    background-color: var(--xw-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload-box:hover {
    border-color: var(--xw-accent);
    background-color: rgba(0, 160, 233, 0.05);
}

.tech-pill {
    background-color: var(--xw-light);
    color: var(--xw-blue);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.result-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border-left: 3px solid var(--xw-accent);
    transition: all 0.3s ease;
}

.result-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.metric-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--xw-blue);
}

.metric-label {
    font-size: 0.9rem;
    color: var(--xw-dark);
    opacity: 0.8;
}

.progress-thin {
    height: 6px;
    border-radius: 3px;
}

/* ================================
   FOOTER
   ================================ */
footer {
    background-color: var(--xw-dark);
    color: white;
    padding: 3rem 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--xw-accent);
    font-weight: 600;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--xw-accent);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--xw-orange);
    color: white;
    transform: translateY(-2px);
}

.status-console {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
    flex-wrap: wrap;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.status-label {
    opacity: 0.7;
}

.status-value {
    font-weight: 600;
    color: var(--xw-accent);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.7;
}

.copyright a {
    color: var(--xw-accent);
    text-decoration: none;
}

.copyright a:hover {
    text-decoration: underline;
}

/* ================================
   RESPONSIVIDADE
   ================================ */
@media (max-width: 992px) {
    .navbar-collapse {
        background: linear-gradient(135deg, var(--xw-dark) 0%, var(--xw-blue) 100%);
        padding: 1rem;
        margin-top: 0.5rem;
        border-radius: 8px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .demo-container {
        padding: 1rem;
    }
    
    .carousel-control {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 4rem 0;
    }
    
    .hero h1 {
        font-size: 2.3rem;
    }
    
    .hero .lead {
        font-size: 1.1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .nav-tabs {
        padding: 0.5rem 0;
    }
    
    .nav-tabs .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .tab-content {
        min-height: 400px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .status-console {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .nav-tabs .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .carousel-control {
        width: 25px;
        height: 25px;
        font-size: 0.8rem;
    }
    
    .tab-content {
        padding: 1rem 0.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .trust-badges {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ================================
   UTILITÁRIOS
   ================================ */
.text-xw-blue { color: var(--xw-blue) !important; }
.text-xw-orange { color: var(--xw-orange) !important; }
.text-xw-accent { color: var(--xw-accent) !important; }
.bg-xw-blue { background-color: var(--xw-blue) !important; }
.bg-xw-orange { background-color: var(--xw-orange) !important; }
.bg-xw-light { background-color: var(--xw-light) !important; }

.border-xw-orange { border-color: var(--xw-orange) !important; }
.border-xw-accent { border-color: var(--xw-accent) !important; }

.shadow-xw { box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important; }
.shadow-xw-lg { box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important; }

.btn-xw-orange {
    background-color: var(--xw-orange);
    border-color: var(--xw-orange);
    color: white;
}

.btn-xw-orange:hover {
    background-color: #E05E00;
    border-color: #E05E00;
    color: white;
}

.btn-xw-accent {
    background-color: var(--xw-accent);
    border-color: var(--xw-accent);
    color: white;
}

.btn-xw-accent:hover {
    background-color: #0088C7;
    border-color: #0088C7;
    color: white;
}

/* ================================
   ANIMAÇÕES PERSONALIZADAS
   ================================ */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

.slide-up {
    animation: slideUp 0.5s ease-out;
}

.pulse-orange {
    animation: pulseOrange 2s infinite;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseOrange {
    0% { box-shadow: 0 0 0 0 rgba(255, 107, 0, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 107, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 107, 0, 0); }
}

/* ================================
   COMPONENTES ESPECIAIS
   ================================ */
.gradient-text {
    background: linear-gradient(135deg, var(--xw-blue), var(--xw-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* ================================
   MODAL E OVERLAY STYLES
   ================================ */
.modal {
    backdrop-filter: blur(5px);
}

.modal-content {
    border: none;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border-radius: 12px;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--xw-blue) 0%, var(--xw-accent) 100%);
}

.login-icon {
    margin-bottom: 1rem;
}

.demo-card {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    margin-bottom: 0.5rem;
}

.demo-card:hover {
    border-color: var(--xw-accent);
    transform: translateY(-2px);
    background: rgba(0, 160, 233, 0.05);
}

.demo-card i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.demo-card strong {
    display: block;
    color: var(--xw-blue);
}

.demo-card small {
    color: var(--xw-dark);
    opacity: 0.7;
}

.input-group .btn {
    border-left: none;
}

.form-control:focus {
    border-color: var(--xw-accent);
    box-shadow: 0 0 0 0.2rem rgba(0, 160, 233, 0.25);
}

.btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Animações do modal */
.modal.fade .modal-dialog {
    transform: translateY(-50px);
    transition: transform 0.3s ease;
}

.modal.show .modal-dialog {
    transform: translateY(0);
}

/* Loading states */
.btn-loading {
    position: relative;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ================================
   CUSTOM SCROLLBAR
   ================================ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--xw-light);
}

::-webkit-scrollbar-thumb {
    background: var(--xw-accent);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--xw-orange);
}

/* ================================
   PRINT STYLES
   ================================ */
@media print {
    .xw-navbar,
    .carousel-control,
    .btn,
    .status-console {
        display: none !important;
    }
    
    .hero {
        background: white !important;
        color: black !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
}

/* Loading state */
.xw-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: white;
}

.xw-loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}