:root {
    --discord-gradient: linear-gradient(45deg, #7289da, #5865f2);
    --accent-success: #28a745;
}

/* =================================
   10. FOOTER
   ================================= */
.footer {
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
    margin-bottom: 2rem; /* Espaço reduzido */
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.footer p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.footer-link:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.footer-brand {
    font-weight: 700;
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =================================
   11. RESPONSIVENESS
   ================================= */
@media (max-width: 920px) { /* Ponto de quebra ajustado */
    .calculator-page {
        flex-direction: column;
        align-items: center;
    }
}

/* Melhorias de responsividade para tablets */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .header {
        padding: 1rem 1.5rem;
        max-width: 100%;
        border-radius: 0;
    }
    
    .calculator-container {
        padding: 2rem;
    }
    
    .extra-features {
        margin-top: 3rem;
    }
}

/* Header mobile horizontal compacto e profissional */
@media (max-width: 768px) {
    .header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem 1rem;
        min-height: 60px;
        position: sticky;
        background: rgba(15, 15, 35, 0.95);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 0;
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
        gap: 0.75rem;
    }

    /* Logo à esquerda - compacto */
    .logo-link {
        flex-shrink: 0;
        margin: 0;
    }
    
    .logo-text {
        font-size: 1.1rem;
        margin-left: 0.5rem;
        font-weight: 800;
        background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    .logo-img {
        height: 28px;
        width: 28px;
    }

    /* Navegação no centro - horizontal compacta */
    .main-nav {
        display: flex;
        gap: 0.4rem;
        align-items: center;
        margin: 0;
        flex: 1;
        justify-content: center;
        max-width: 180px;
    }
    
    .nav-link {
        font-size: 0.8rem;
        padding: 0.4rem 0.7rem;
        text-align: center;
        white-space: nowrap;
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.12);
        transition: all 0.2s ease;
        font-weight: 600;
        color: var(--text-secondary);
    }
    
    .nav-link:hover {
        background: rgba(0, 212, 255, 0.15);
        border-color: rgba(0, 212, 255, 0.3);
        color: var(--accent-primary);
        transform: translateY(-1px);
    }
    
    .nav-link.active {
        background: rgba(0, 212, 255, 0.2);
        border-color: rgba(0, 212, 255, 0.4);
        color: var(--accent-primary);
        box-shadow: 0 2px 8px rgba(0, 212, 255, 0.2);
    }

    /* Seletor de idioma à direita - compacto */
    .language-selector {
        flex-shrink: 0;
        margin: 0;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 14px;
        padding: 0.2rem;
    }
    
    .lang-btn {
        padding: 0.3rem 0.5rem;
        font-size: 0.7rem;
        min-width: 26px;
        border-radius: 10px;
        font-weight: 700;
        transition: all 0.2s ease;
        color: var(--text-secondary);
    }
    
    .lang-btn.active {
        background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
        color: white;
        box-shadow: 0 3px 15px rgba(0, 212, 255, 0.4);
        transform: scale(1.05);
    }
    
    .lang-btn:hover:not(.active) {
        background: rgba(255, 255, 255, 0.15);
        color: var(--text-primary);
        transform: scale(1.02);
    }

    .hero-title {
        font-size: 2.2rem;
        margin-top: 1rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .page-title {
        font-size: 2rem;
        margin-top: 1rem;
    }

    .calculator-page {
        margin: 1.5rem auto;
        padding: 0 1rem;
    }
    
    .calculator-container {
        padding: 1.5rem;
        margin-top: 1rem;
    }
    
    .tool-header {
        margin-top: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .glow-text {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .subtitle {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }

    .tools-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
        gap: 1.5rem;
    }
    
    .tool-card {
        padding: 1.5rem;
    }
    
    .tool-card h3 {
        font-size: 1.3rem;
    }

    .discord-fab {
        width: 56px;
        height: 56px;
        bottom: 1.5rem;
        right: 1.5rem;
    }

    .discord-fab i {
        font-size: 1.8rem;
    }

    .toast-notification {
        top: 80px;
        right: 1rem;
        left: 1rem;
        min-width: auto;
        max-width: none;
        font-size: 0.85rem;
        padding: 0.9rem 1.2rem;
    }
    
    .input-field {
        padding: 16px 70px 16px 20px;
        font-size: 1rem;
    }
    
    .calculate-btn {
        padding: 18px;
        font-size: 1rem;
    }
    
    .result-box, .reverse-result-box {
        padding: 1.25rem 3rem;
    }
    
    #result-value, #reverse-result-value {
        font-size: 2.2rem;
    }
    
    .copy-btn {
        right: 1rem;
        width: 36px;
        height: 36px;
    }
    
    .stepper-btns {
        right: 10px;
    }
    
    .stepper-btn {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }
}

/* Melhorias para telas muito pequenas */
@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .container {
        padding: 0 0.75rem;
    }
    
    .header {
        padding: 0.6rem 0.75rem;
        min-height: 56px;
        gap: 0.5rem;
    }
    
    .main-nav {
        max-width: 160px;
        gap: 0.3rem;
    }
    
    .logo-text {
        font-size: 1rem;
        margin-left: 0.4rem;
    }
    
    .logo-img {
        height: 24px;
        width: 24px;
    }
    
    .nav-link {
        font-size: 0.8rem;
        padding: 0.35rem 0.6rem;
    }
    
    .language-selector {
        margin-top: 0.25rem;
    }
    
    .lang-btn {
        padding: 0.3rem 0.4rem;
        font-size: 0.7rem;
        min-width: 24px;
    }

    .hero-title {
        font-size: 1.8rem;
        margin-top: 0.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        padding: 0 0.5rem;
    }
    
    .cta-btn {
        padding: 0.8rem 2rem;
        font-size: 0.9rem;
    }

    .page-title {
        font-size: 1.8rem;
        margin-top: 0.5rem;
    }
    
    .glow-text {
        font-size: 1.8rem;
        line-height: 1.1;
    }
    
    .subtitle {
        font-size: 0.85rem;
        margin-bottom: 1.5rem;
    }

    .calculator-container {
        padding: 1.25rem;
        margin-top: 0.5rem;
    }
    
    .tool-header {
        margin-top: 1.5rem;
        margin-bottom: 1.25rem;
    }

    .input-field {
        padding: 14px 60px 14px 16px;
        font-size: 0.95rem;
    }
    
    .calculate-btn {
        padding: 16px;
        font-size: 0.95rem;
    }
    
    .result-box, .reverse-result-box {
        padding: 1rem 2.5rem;
    }
    
    #result-value, #reverse-result-value {
        font-size: 1.8rem;
    }
    
    .copy-btn {
        right: 0.75rem;
        width: 32px;
        height: 32px;
    }
    
    .stepper-btns {
        right: 8px;
    }
    
    .stepper-btn {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }

    .tools-grid {
        padding: 0 0.75rem;
        gap: 1.25rem;
    }
    
    .tool-card {
        padding: 1.25rem;
    }
    
    .tool-card h3 {
        font-size: 1.2rem;
    }
    
    .tool-icon {
        font-size: 1.3rem;
        margin-right: 0.5rem;
    }

    .discord-fab {
        width: 50px;
        height: 50px;
        bottom: 1rem;
        right: 1rem;
    }

    .discord-fab i {
        font-size: 1.5rem;
    }

    .toast-notification {
        top: 70px;
        right: 0.5rem;
        left: 0.5rem;
        font-size: 0.8rem;
        padding: 0.8rem 1rem;
    }
    
    .footer {
        padding: 1.5rem;
        margin-top: 3rem;
        margin-bottom: 1rem; /* Corrigido para mobile */
    }
    
    .footer p {
        font-size: 0.8rem;
    }
    
    .footer-link {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Melhorias para telas extra pequenas */
@media (max-width: 360px) {
    .header {
        padding: 0.5rem;
    }
    
    .main-nav {
        gap: 0.1rem;
    }
    
    .nav-link {
        font-size: 0.75rem;
        padding: 0.3rem 0.5rem;
    }
    
    .calculator-container {
        padding: 1rem;
    }
    
    .input-field {
        padding: 12px 55px 12px 14px;
        font-size: 0.9rem;
    }
    
    .calculate-btn {
        padding: 14px;
        font-size: 0.9rem;
    }
    
    .result-box, .reverse-result-box {
        padding: 0.75rem 2rem;
    }
    
    #result-value, #reverse-result-value {
        font-size: 1.6rem;
    }
    
    .stepper-btn {
        width: 26px;
        height: 26px;
        font-size: 14px;
    }
    
    .copy-btn {
        width: 30px;
        height: 30px;
        right: 0.5rem;
    }
}

/* =================================
   9. FLOATING ACTION BUTTON & TOAST
   ================================= */
.discord-fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, #5865f2, #7289da);
    color: white;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.3);
    text-decoration: none;
    transition: all 0.3s ease;
    z-index: 9999;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.discord-fab:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(88, 101, 242, 0.4);
    background: linear-gradient(135deg, #7289da, #5865f2);
}

.discord-fab i {
    font-size: 2rem;
    transition: all 0.3s ease;
}

.discord-fab:hover i {
    transform: scale(1.1);
}

/* Animações */
@keyframes pulse-discord {
    0% {
        transform: scale(1);
        opacity: 0.4;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.1;
    }
    100% {
        transform: scale(1);
        opacity: 0.4;
    }
}

.toast-notification {
    position: fixed;
    top: 100px;
    right: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 250px;
    max-width: 350px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transform: translateX(100%);
    opacity: 0;
}

.toast-notification::before {
    content: '✓';
    background: rgba(255, 255, 255, 0.2);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
    flex-shrink: 0;
}

.toast-notification.show {
    top: 100px;
    transform: translateX(0);
    opacity: 1;
    animation: toastSlideIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast-notification.hide {
    top: -120px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease-in-out;
}

/* Animação de entrada mais suave */
@keyframes toastSlideIn {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    60% {
        transform: translateX(-10px);
        opacity: 1;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* =================================
   7. CALCULATOR PAGE
   ================================= */
.calculator-page {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    align-items: flex-start;
    max-width: 1400px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.calculator-container {
    background: var(--bg-secondary);
    padding: 2.5rem;
    border-radius: 1.5rem;
    border: 1px solid var(--border-primary);
    box-shadow: 0 12px 50px var(--shadow-dark);
    flex: 1 1 400px;
    max-width: 500px;
}

.calculator-container h2 {
    text-align: center;
    margin-bottom: 0.75rem;
    font-size: 2rem;
    font-weight: 600;
}

.calculator-container .subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

.form-group {
    margin-bottom: 1.75rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
}

.input-wrapper {
    position: relative;
}

.input-field {
    width: 100%;
    background: var(--bg-primary);
    border: 1px solid var(--border-primary);
    color: var(--text-primary);
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    font-size: 1.1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-field::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

.input-field:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px var(--shadow-light);
}

.btn {
    display: block;
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 0.75rem;
    background: var(--accent-primary);
    color: var(--bg-primary);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.3s ease;
}

.btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px var(--shadow-light);
    background-color: var(--text-glow);
}

.result-section {
    margin-top: 2.5rem;
    padding: 2rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-primary);
    border-radius: 1rem;
    text-align: center;
    display: none; /* Hidden by default */
    transition: all 0.3s ease;
}
  
  .result-section h3 {
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.result-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.result-explanation {
    color: var(--text-secondary);
    font-size: 1rem;
}

.result-explanation strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* =================================
   6. TOOLS PAGE
   ================================= */
.tools-page {
    padding: 4rem 0;
}

.page-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: 600;
}

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

.tool-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    padding: 1.75rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: transform 0.2s ease-in-out, border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
    height: 100%; /* Garante que os cards tenham a mesma altura */
}

.tool-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

.tool-icon {
    font-size: 1.5rem;
    color: var(--accent-primary);
    margin-right: 0.75rem;
}

.tool-card h3 {
    font-size: 1.5rem;
    color: var(--accent-primary);
    margin-bottom: 0; /* Reset margin as it's handled by the header */
}

.tool-card p {
    color: var(--text-secondary);
    flex-grow: 1; /* Makes p take available space */
    margin-bottom: 1.5rem;
}

.tool-card .cta-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    align-self: flex-end;
}

.tool-card .cta-link::after {
    content: ' →';
    transition: transform 0.3s ease;
    display: inline-block;
}

.tool-card:hover .cta-link::after {
    transform: translateX(5px);
}

/* Destaque especial para a calculadora */
.tool-card.featured {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(123, 104, 238, 0.1));
    border: 2px solid var(--accent-primary);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.2);
    position: relative;
    overflow: hidden;
    transform: scale(1.02);
}

.tool-card.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

.tool-card.featured:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.3);
}

.tool-card.featured .tool-icon {
    color: var(--accent-primary);
    text-shadow: 0 0 10px var(--accent-primary);
    animation: glow 2s ease-in-out infinite alternate;
}

.tool-card.featured h3 {
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tool-card.featured .cta-link {
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes glow {
    0% { text-shadow: 0 0 10px var(--accent-primary); }
    100% { text-shadow: 0 0 20px var(--accent-primary), 0 0 30px var(--accent-primary); }
}

/* =================================
   5. HERO SECTION (HOME PAGE)
   ================================= */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: calc(100vh - 100px); /* Viewport height minus header height */
    padding: 4rem 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-tertiary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 5s ease infinite;
    background-size: 200% 200%;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 2rem;
}

.cta-btn {
    background: var(--accent-primary);
    color: var(--bg-primary);
    text-decoration: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 20px var(--shadow-light);
}

.cta-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 30px var(--shadow-light);
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes moveBackground {
    0% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(-20px) translateY(-10px); }
    50% { transform: translateX(20px) translateY(10px); }
    75% { transform: translateX(-10px) translateY(20px); }
    100% { transform: translateX(0) translateY(0); }
}

@keyframes moveStars {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(-200px) translateY(-100px); }
}

/* =================================
   1. CSS VARIABLES
   ================================= */
:root {
    --bg-primary: #0f0f23;
    --bg-secondary: #1a1a2e;
    --bg-tertiary: rgba(26, 26, 46, 0.6);
    --bg-blur: blur(20px);

    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-glow: #00d4ff;

    --accent-primary: #00d4ff;
    --accent-secondary: #7b68ee;
    --accent-tertiary: #ff6b9d;
    --discord-blue: #5865F2;

    --border-primary: rgba(255, 255, 255, 0.1);
    --border-hover: var(--accent-primary);

    --shadow-light: rgba(0, 212, 255, 0.3);
    --shadow-dark: rgba(0, 0, 0, 0.3);

    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Inter', sans-serif;

    --transition-fast: all 0.2s ease;
    --transition-medium: all 0.3s ease;
}

/* =================================
   2. GLOBAL & RESET STYLES
   ================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* =================================
   MAGIC UI BACKGROUND ANIMATION
   ================================= */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
}

.background-animation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.2) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite, moveBackground 30s linear infinite;
}

.background-animation::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.15), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.1), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255, 255, 255, 0.1), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255, 255, 255, 0.1), transparent),
        radial-gradient(2px 2px at 160px 30px, rgba(255, 255, 255, 0.1), transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: moveStars 40s linear infinite;
}

/* Efeito de grade estática */
.background-animation .grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

main {
    /* padding-top: 100px; */ /* Espaço para o header fixo removido */
}



/* =================================
   4. HEADER & NAVIGATION
   ================================= */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    position: sticky;
    top: 0;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.logo-link:hover {
    transform: scale(1.02);
}

.logo-img {
    height: 32px;
    width: 32px;
    border-radius: 8px;
    transition: transform var(--transition-medium);
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-left: 0.75rem;
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-link:hover .logo-img {
    transform: rotate(-5deg) scale(1.05);
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    position: relative;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.nav-link:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.nav-link.active {
    color: var(--text-primary);
    background-color: rgba(255, 107, 157, 0.1);
    border-color: rgba(255, 107, 157, 0.2);
}

.language-selector {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.25rem;
    backdrop-filter: blur(10px);
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 0.4rem 0.6rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.8rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    min-width: 32px;
}

.lang-btn:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.lang-btn.active {
    color: white;
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
    box-shadow: 0 2px 8px rgba(255, 107, 157, 0.3);
}

/* =================================
   5. TYPOGRAPHY & TEXT STYLES
   ================================= */
.glow-text {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 900;
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary), var(--accent-tertiary));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 4s ease infinite;
    text-shadow: 0 0 30px var(--shadow-light);
    margin-bottom: 1rem;
}

.subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* =================================
   6. BUTTONS
   ================================= */
.cta-button {
    background-color: var(--text-primary);
    color: var(--bg-primary);
    padding: 0.85rem 1.75rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-medium);
    border: 2px solid transparent;
}

.cta-button:hover {
    background-color: transparent;
    border-color: var(--text-primary);
    color: var(--text-primary);
    transform: translateY(-3px);
}

.calculate-btn {
    width: 100%;
    padding: 20px;
    font-size: 1.1rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: var(--transition-medium);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.calculate-btn::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 ease;
}

.calculate-btn:hover::before {
    left: 100%;
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px var(--shadow-light);
}

.calculate-btn.secondary {
    background: var(--border-primary);
}

.calculate-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.stepper-btn {
    background: var(--border-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.stepper-btn:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}



/* =================================
   7. DISCORD FLOATING BUTTON
   ================================= */
/* Implementação consolidada movida para seção 9 */

/* =================================
   8. PAGE-SPECIFIC: HOME
   ================================= */
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 100vh;
    padding: 0 2rem;
}





/* =================================
   10. PAGE-SPECIFIC: CALCULADORA
   ================================= */
.calculator-section {
    padding: 2rem 0;
}

.tool-header {
    text-align: center;
    margin-top: 3rem;
    margin-bottom: 2rem;
}

.calculator-container {
    background: var(--bg-tertiary);
    backdrop-filter: var(--bg-blur);
    border: 1px solid var(--border-primary);
    border-radius: 24px;
    padding: clamp(1.5rem, 5vw, 2.5rem);
    margin: 0 auto;
    max-width: 600px;
    box-shadow: 0 25px 50px var(--shadow-dark);
    position: relative;
    overflow: hidden;
}

.calculator-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
}

.input-group {
    margin-bottom: 2rem;
    position: relative;
}

.input-label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-field {
    width: 100%;
    padding: 18px 80px 18px 24px; /* Espaço para botões */
    font-size: 1.1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 2px solid var(--border-primary);
    border-radius: 16px;
    color: var(--text-primary);
    transition: var(--transition-medium);
    outline: none;
}

.input-field:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px var(--shadow-light);
    background: rgba(0, 0, 0, 0.3);
}

.input-field::placeholder { color: #667; }

.stepper-btns {
    position: absolute;
    right: 12px;
    display: flex;
    gap: 6px;
}

.result-section {
    margin-top: 2rem;
    text-align: center;
}

.result-title {
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.result-box, .reverse-result-box {
    position: relative; /* Para posicionar o botão de copiar */
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.1), rgba(255, 193, 7, 0.1));
    border: 1px solid rgba(255, 107, 157, 0.2);
    padding: 1.5rem 4rem; /* Aumenta o padding para dar espaço ao botão */
    border-radius: 16px;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(255, 107, 157, 0.1);
    animation: slideIn 0.5s ease-out;
}

#result-value, #reverse-result-value {
    font-size: clamp(2rem, 8vw, 2.8rem);
    font-weight: 900;
    color: var(--accent-primary);
    text-shadow: 0 2px 4px rgba(255, 107, 157, 0.3);
}

.result-explanation {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.result-explanation strong { color: var(--text-primary); font-weight: 600; }

.ideal-badge {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.4rem 0.8rem;
    background: linear-gradient(45deg, #ffc107, #ff9800);
    color: var(--bg-secondary);
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(255, 193, 7, 0.3);
}

.extra-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.feature-card {
    background: var(--bg-tertiary);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-primary);
    border-radius: 24px;
    padding: 2rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.feature-card p { color: var(--text-secondary); margin-bottom: 1.5rem; }

.reverse-result-text {
    margin-top: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 600;
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.1), rgba(255, 193, 7, 0.1));
    border: 1px solid rgba(255, 107, 157, 0.2);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(255, 107, 157, 0.1);
    animation: slideIn 0.5s ease-out;
}

.reverse-result-text strong {
    color: var(--accent-primary);
    font-size: 1.3rem;
    font-weight: 900;
    text-shadow: 0 2px 4px rgba(255, 107, 157, 0.3);
}

/* =================================
   8. CALCULATOR EXTRA COMPONENTS
   ================================= */
.copy-btn {
    position: absolute;
    top: 50%;
    right: 1.25rem; /* Ajusta a posição */
    transform: translateY(-50%);
    background: var(--bg-surface);
    border: 1px solid var(--border-primary);
    color: var(--text-secondary);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease-in-out;
}

.copy-btn:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: translateY(-50%) scale(1.05);
}

.copy-btn .copy-icon {
    display: block;
}

.copy-btn .check-icon {
    display: none;
}

.copy-btn.copied .copy-icon {
    display: none;
}

.copy-btn.copied .check-icon {
    display: block;
    color: var(--accent-success);
}

.ideal-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--accent-tertiary);
    color: white;
    padding: 3px 8px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 2px 5px rgba(255, 107, 157, 0.5);
    display: none; /* Hidden by default */
}

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

.stepper-btn {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    color: var(--text-primary);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

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

.stepper-btn:active {
    transform: scale(0.9);
}

/* =================================
   11. UTILITIES & HELPERS
   ================================= */

