/* ============================================
   C-CAP CORE - ESTILOS FUTURISTAS
   Apenas elementos com prefixo .ccap-
   NÃO interfere no resto do site
   ============================================ */

/* Reset apenas dentro do ccap-wrap */
.ccap-wrap * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* WRAP PRINCIPAL - SEM FUNDO PARA NÃO INTERFERIR */
.ccap-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 20px;
    font-family: 'Poppins', 'Segoe UI', 'Inter', system-ui, sans-serif;
    position: relative;
}

/* CARD PRINCIPAL */
.ccap-card {
    position: relative;
    width: 100%;
    max-width: 680px;
    background: rgba(15, 25, 45, 0.85);
    backdrop-filter: blur(20px);
    border-radius: 48px;
    padding: 35px 30px 40px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(0, 255, 255, 0.15),
                0 0 50px rgba(0, 255, 255, 0.2);
    border: 1px solid rgba(0, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    overflow: hidden;
}

.ccap-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6),
                0 0 0 1px rgba(0, 255, 255, 0.25),
                0 0 80px rgba(0, 255, 255, 0.3);
}

/* HEADER */
.ccap-header {
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.15);
    padding-bottom: 15px;
    text-align: center;
}

.ccap-brand-icon {
    font-size: 58px;
    filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.5));
    animation: ccapIconFloat 3s ease-in-out infinite;
}

@keyframes ccapIconFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.ccap-brand-name {
    font-size: 38px;
    font-weight: 800;
    background: linear-gradient(135deg, #00ffff, #ff00ff, #ffaa00);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    letter-spacing: 2px;
}

.ccap-brand-subtitle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    gap: 8px;
    margin-top: 10px;
}

.ccap-subtitle-text {
    font-size: 18px;
    color: #88aaff;
    letter-spacing: 2px;
    font-weight: 600;
}

.ccap-subtitle-desc {
    font-size: 14px;
    color: #5a7b9c;
    letter-spacing: 1px;
}

/* BOTÃO INICIAR */
.ccap-inicio-container {
    position: relative;
    text-align: center;
    margin: 15px 0 10px;
}

.ccap-btn-cosmic {
    position: relative;
    width: 100%;
    padding: 20px 25px;
    border: none;
    border-radius: 60px;
    background: linear-gradient(135deg, #00aaff, #ff00aa);
    color: #ffffff;
    font-size: 20px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s;
    overflow: hidden;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-family: inherit;
    box-shadow: 0 5px 20px rgba(0, 170, 255, 0.4);
    z-index: 2;
}

.ccap-btn-cosmic::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    animation: ccapBtnShine 3s infinite;
}

@keyframes ccapBtnShine {
    0% { transform: translateX(-100%) rotate(45deg); }
    20%, 100% { transform: translateX(100%) rotate(45deg); }
}

.ccap-btn-cosmic:hover {
    transform: scale(1.02);
    letter-spacing: 4px;
    box-shadow: 0 0 35px rgba(0, 170, 255, 0.8);
}

.ccap-btn-cosmic:active {
    transform: scale(0.98);
}

.ccap-btn-glow {
    position: absolute;
    inset: -6px;
    border-radius: 60px;
    background: linear-gradient(115deg, #00ffff, #ff00ff, #ffaa00, #00ffff);
    background-size: 300% 300%;
    opacity: 0;
    transition: opacity 0.4s ease;
    filter: blur(25px);
    z-index: 1;
    animation: ccapAuroraWave 2s infinite alternate;
}

@keyframes ccapAuroraWave {
    0% { background-position: 0% 50%; filter: blur(20px); }
    100% { background-position: 100% 50%; filter: blur(30px);}
}

.ccap-inicio-container:hover .ccap-btn-glow {
    opacity: 0.7;
}

/* BLOCO LRA */
.ccap-bloco-lra {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 28px;
    padding: 25px;
    margin-top: 10px;
}

.ccap-label-lra {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #00ffff;
    margin-bottom: 20px;
    text-align: center;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* INPUT FUTURISTA */
.ccap-input-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.ccap-num-input {
    width: 100%;
    max-width: 300px;
    height: 62px;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.6) !important;
    border: 1px solid rgba(0, 255, 255, 0.4) !important;
    border-radius: 40px !important;
    font-size: 22px;
    text-align: center;
    font-weight: 700;
    color: #00ffff !important;
    backdrop-filter: blur(5px);
    transition: all 0.2s;
    font-family: inherit;
}

/* Remove autocomplete fundo branco */
.ccap-num-input:-webkit-autofill,
.ccap-num-input:-webkit-autofill:hover,
.ccap-num-input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 100px rgba(0, 0, 0, 0.6) inset !important;
    -webkit-text-fill-color: #00ffff !important;
}

.ccap-num-input:hover {
    border-color: #ff00ff !important;
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.3);
}

.ccap-num-input:focus {
    border-color: #ffaa00 !important;
    outline: none;
    box-shadow: 0 0 20px rgba(255, 170, 0, 0.4);
    color: #ffaa00 !important;
}

/* Remove setas do input number */
.ccap-num-input::-webkit-inner-spin-button,
.ccap-num-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.ccap-num-input {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* OBS */
.ccap-obs {
    font-size: 13px;
    color: #7a9bc0;
    text-align: center;
    margin-top: 15px;
    padding: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 30px;
}

.ccap-obs span {
    margin-right: 6px;
}

/* RESULTADO HOLOGRÁFICO */
.ccap-resultado-holografico {
    margin-top: 25px;
    padding: 20px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5), rgba(10, 20, 50, 0.8));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 255, 0.3);
    text-align: center;
    animation: ccapFadeInUp 0.4s ease;
}

.ccap-resultado-holografico strong {
    font-size: 36px;
    background: linear-gradient(135deg, #00ffff, #ff00ff, #ffaa00);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    display: inline-block;
    margin: 10px 0;
}

.ccap-resultado-placeholder {
    color: #5a7b9c;
    font-size: 16px;
    letter-spacing: 2px;
}

@keyframes ccapFadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* BOTÃO RESET */
.ccap-reset-container {
    text-align: center;
    margin-top: 20px;
}

.ccap-btn-reset {
    padding: 14px 32px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 255, 255, 0.4);
    border-radius: 40px;
    color: #88aaff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.ccap-btn-reset:hover {
    background: rgba(0, 255, 255, 0.15);
    border-color: #00ffff;
    color: #00ffff;
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
}

/* AVISO INVERTER */
.ccap-aviso-inverter {
    margin-top: 25px;
    padding: 18px 20px;
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.15), rgba(255, 100, 0, 0.1));
    border: 1px solid rgba(255, 80, 40, 0.5);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
    animation: ccapPulseWarning 2s infinite;
}

@keyframes ccapPulseWarning {
    0%, 100% {
        border-color: rgba(255, 80, 40, 0.5);
        box-shadow: 0 0 5px rgba(255, 80, 40, 0.2);
    }
    50% {
        border-color: rgba(255, 80, 40, 0.9);
        box-shadow: 0 0 15px rgba(255, 80, 40, 0.4);
    }
}

.ccap-aviso-icon {
    font-size: 28px;
    filter: drop-shadow(0 0 5px rgba(255, 80, 40, 0.6));
}

.ccap-aviso-texto {
    font-size: 16px;
    font-weight: 800;
    color: #ff8866;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* TECH BADGE */
.ccap-tech-badge {
    text-align: center;
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 255, 255, 0.15);
    font-size: 12px;
    font-weight: 500;
    color: #dddddd;
    letter-spacing: 1px;
    font-family: monospace;
}

/* RESPONSIVO */
@media (max-width: 600px) {
    .ccap-wrap {
        padding: 10px;
    }
    
    .ccap-card {
        padding: 25px 20px;
        border-radius: 32px;
    }
    
    .ccap-brand-name {
        font-size: 28px;
    }
    
    .ccap-brand-icon {
        font-size: 48px;
    }
    
    .ccap-subtitle-text {
        font-size: 14px;
    }
    
    .ccap-subtitle-desc {
        font-size: 11px;
    }
    
    .ccap-num-input {
        font-size: 20px;
        height: 56px;
        max-width: 260px;
    }
    
    .ccap-btn-cosmic {
        font-size: 16px;
        padding: 16px 20px;
    }
    
    .ccap-resultado-holografico strong {
        font-size: 28px;
    }
    
    .ccap-label-lra {
        font-size: 13px;
    }
    
    .ccap-aviso-texto {
        font-size: 12px;
    }
    
    .ccap-aviso-icon {
        font-size: 22px;
    }
    
    .ccap-tech-badge {
        font-size: 11px;
    }
}


/* ============================================
   C-CAP CORE -PARTE DA VERSÃO
   ============================================ */
   /* BADGE CORE 2.0 */
.ccce-badge {
    text-align: center;
    margin-top: 12px;
    padding: 6px 15px;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1), rgba(255, 0, 255, 0.1));
    border: 1px solid rgba(0, 255, 255, 0.4);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #00ffff;
    text-transform: uppercase;
    font-family: monospace;
    backdrop-filter: blur(5px);
    display: inline-block;
    width: auto;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.ccce-badge:hover {
    color: #ff00ff;
    border-color: #ff00ff;
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.3);
    transform: scale(1.02);
}


/* ============================================
   LOADING ANIMADO COM PORCENTAGEM - C-CAP CORE
   ============================================ */

.ccap-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 30, 0.96);
    backdrop-filter: blur(12px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    font-family: 'Poppins', 'Segoe UI', 'Inter', system-ui, sans-serif;
}

.ccap-loading-content {
    text-align: center;
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(0, 20, 40, 0.95), rgba(0, 40, 60, 0.95));
    border-radius: 40px;
    border: 1px solid rgba(0, 255, 255, 0.4);
    box-shadow: 0 0 60px rgba(0, 255, 255, 0.3), 0 10px 40px rgba(0, 0, 0, 0.5);
    min-width: 320px;
    backdrop-filter: blur(20px);
    animation: ccapLoadingPulse 2s infinite;
}

@keyframes ccapLoadingPulse {
    0%, 100% { box-shadow: 0 0 40px rgba(0, 255, 255, 0.2); }
    50% { box-shadow: 0 0 80px rgba(0, 255, 255, 0.5); }
}

.ccap-loading-content .loading-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: ccapIconSpin 2s ease-in-out infinite;
}

@keyframes ccapIconSpin {
    0%, 100% { transform: rotate(0deg); filter: drop-shadow(0 0 5px cyan); }
    50% { transform: rotate(180deg); filter: drop-shadow(0 0 20px magenta); }
}

.ccap-loading-content .loading-message {
    font-size: 1.3rem;
    background: linear-gradient(135deg, #00ffff, #ff00ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.ccap-loading-content .loading-percent {
    font-size: 3rem;
    font-weight: bold;
    color: #00ffff;
    margin: 15px 0;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 15px cyan;
    letter-spacing: 3px;
}

.ccap-loading-content .loading-bar-container {
    width: 280px;
    height: 10px;
    background: rgba(0, 255, 255, 0.15);
    margin: 15px auto 0;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.5);
}

.ccap-loading-content .loading-bar {
    width: 0%;
    height: 100%;
    border-radius: 20px;
    transition: width 0.05s linear;
    position: relative;
}

.ccap-loading-content .loading-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: ccapBarShine 1s infinite;
}

@keyframes ccapBarShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.ccap-loading-content .loading-submessage {
    margin-top: 20px;
    font-size: 11px;
    color: #7a9bc0;
    letter-spacing: 1px;
    font-family: monospace;
}

/* Efeito de partículas no loading */
.ccap-loading-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 20% 30%, rgba(0,255,255,0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
    animation: ccapParticleMove 20s linear infinite;
}

@keyframes ccapParticleMove {
    0% { background-position: 0 0; }
    100% { background-position: 30px 30px; }
}

/* ============================================
   C-CAP CORE - EFEITO SONORO VISUAL
   ============================================ */
   
   /* Efeito de scanline no loading */
.ccap-loading-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(transparent 50%, rgba(0, 255, 255, 0.03) 50%);
    background-size: 100% 4px;
    pointer-events: none;
    animation: ccapScanLine 8s linear infinite;
}

@keyframes ccapScanLine {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

/* Garantir que a área de cálculo comece escondida e com transição suave */
.ccap-area-calculo {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* CONTAINER DOS BOTÕES */
.ccap-buttons-container {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* BOTÃO VOLTAR */
.ccap-btn-back {
    padding: 14px 32px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 100, 0, 0.4);
    border-radius: 40px;
    color: #ffaa66;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.ccap-btn-back:hover {
    background: rgba(255, 100, 0, 0.15);
    border-color: #ffaa00;
    color: #ffaa00;
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(255, 100, 0, 0.2);
}

/* RESPONSIVO - Adicione dentro do @media */
@media (max-width: 600px) {
    .ccap-buttons-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .ccap-btn-reset, .ccap-btn-back {
        width: 100%;
    }
}