:root {
    --bg-dark: #0B0B0F;
    /* Main Dark Background */
    --bg-light: #f6f7f9;
    --bg-card-dark: #121217;
    /* Light section background */
    --primary-blue: #3B82F6;
    --text-white: #FFFFFF;
    --text-gray: #9CA3AF;
    --text-dark: #111827;
    --border-color: rgba(255, 255, 255, 0.1);
    --font-family: 'Bricolage Grotesque', sans-serif;
    --font-button: 'Poppins', sans-serif;
    --font-secondary: 'Sora', sans-serif;
    --avalon-green: #3B82F6;
    --avalon-dark: #181B24;
    --avalon-card-bg: #252A36;
}

/* ... existing CSS ... */

/* ========== AVALON SECTION ========== */
.avalon {
    background-color: var(--bg-light);
    padding: 100px 0;
    overflow: hidden;
}

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

.avalon-header {
    text-align: center;
    margin-bottom: 60px;
}

.avalon-icon {
    width: 84px;
    height: 84px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avalon-icon svg {
    width: 100%;
    height: 100%;
    fill: var(--avalon-green);
}

.avalon-header h2 {
    font-size: 62px;
    font-weight: 600;
    line-height: 100%;
    color: #252A36;
    margin-bottom: 16px;
    font-family: 'Bricolage Grotesque', sans-serif;
}

.avalon-header p {
    font-size: 18px;
    line-height: 26px;
    color: #61697A;
    max-width: 800px;
    margin: 0 auto;
    font-family: 'Bricolage Grotesque', sans-serif;
}

/* Cards */
.avalon-main-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
}

@media (min-width: 1024px) {
    .avalon-main-grid {
        grid-template-columns: 0.9fr 1.1fr;
        gap: 60px;
    }

    .avalon-header {
        text-align: left !important;
        margin-bottom: 0 !important;
    }

    .avalon-header .avalon-icon {
        margin: 0 0 24px 0 !important;
    }
}

.avalon-card-main {
    background: linear-gradient(178deg, var(--avalon-dark) -88%, #11131a 61%);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* Card 2 Specific: Horizontal Layout */
.avalon-card-horizontal {
    background: linear-gradient(178deg, var(--avalon-dark) -88%, #11131a 61%);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
}

@media (min-width: 1024px) {
    .avalon-card-horizontal {
        grid-template-columns: 1.1fr 0.9fr;
    }

    .avalon-card-horizontal .card-chart {
        height: 100%;
        min-height: 450px;
        border-right: 1px solid rgba(255, 255, 255, 0.03);
        /* Sutil separação */
    }

    .avalon-card-horizontal .card-description {
        padding: 40px 60px;
    }
}

.avalon-card-main:hover,
.avalon-card-horizontal:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.15);
}

.avalon-cards {
    display: grid;
    gap: 20px;
}

/* Layout para os cards inferiores (3 e 4) ficarem lado a lado se possível */
@media (min-width: 1024px) {
    .avalon-cards-bottom-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.avalon-cards-bottom-grid {
    display: grid;
    gap: 20px;
}

.avalon-card {
    background: linear-gradient(178deg, var(--avalon-dark) -88%, #11131a 61%);
    border-radius: 16px;
    overflow: hidden;
    padding: 32px;
    position: relative;
}

/* Card Chart - SEM PADDING */
.card-chart {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
    flex-shrink: 0;
}

.chart-graphic {
    width: 150%;
    height: 100%;
    will-change: transform;
    opacity: 1;
    transform: none;
    transition: transform 0.1s linear;
}

.chart-graphic svg {
    width: 100%;
    height: 100%;
    stroke: var(--avalon-green);
    fill: none;
    opacity: 0.8;
}

/* Alert Notification */
.alert-notification {
    position: absolute;
    top: 50%;
    left: 50%;
    will-change: transform;
    opacity: 1;
    transform: translate(-50%, -50%);
    background: rgba(24, 28, 37, 0.97);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(37, 42, 54, 0.5);
    border-radius: 17px;
    padding: 24px;
    min-width: 300px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: transform 0.1s linear;
}

.notification-header {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.notification-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    color: var(--avalon-green);
}

.notification-badge svg {
    width: 16px;
    height: 17px;
    fill: var(--avalon-green);
}

.notification-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.btc-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btc-info svg {
    width: 32px;
    height: 32px;
}

.btc-label {
    font-size: 26.9px;
    font-weight: 600;
    line-height: 100%;
    color: #F6F7F9;
    font-family: 'Bricolage Grotesque', sans-serif;
}

.btc-value {
    font-size: 30.14px;
    line-height: 100%;
    color: #F6F7F9;
    font-family: 'Bricolage Grotesque', sans-serif;
}

/* Card Description - COM PADDING */
.card-description {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 32px;
}

.card-description h3 {
    font-size: 32px;
    font-weight: 500;
    line-height: 120%;
    color: var(--text-white);
    font-family: 'Bricolage Grotesque', sans-serif;
}

.card-description h3 .highlight {
    color: var(--avalon-green);
}

.card-description p {
    font-size: 16px;
    line-height: 26px;
    color: var(--text-white);
    opacity: 0.8;
    font-family: 'Bricolage Grotesque', sans-serif;
}

/* Icon Header for Cards 2 & 3 */
.card-icon-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 32px;
    padding: 40px 0;
}

.icon-wrapper {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.icon-wrapper svg {
    width: 60px;
    height: 60px;
}

.avalon-card:hover .icon-wrapper {
    background: rgba(59, 130, 246, 0.2);
    transform: scale(1.1);
}

/* Card Hover Effects */
.avalon-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.avalon-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.15);
}

/* ========== CARD 2 - COMPLETAR OPERAÇÕES ========== */
.chart-line-small {
    position: absolute;
    top: 23px;
    left: 0;
    width: 100%;
    height: 5px;
    opacity: 0.3;
    will-change: transform;
    z-index: 1;
}

.chart-line-small svg {
    width: 100%;
    height: 100%;
    stroke: var(--avalon-green);
}

.chart-graphic-small {
    width: 1220px;
    height: 234px;
    position: absolute;
    top: 50%;
    margin-top: -117px;
    /* Metade da altura para centralizar verticalmente */
    left: -184px;
    /* Posicionamento inicial conforme referência */
    will-change: transform;
    opacity: 1;
    image-rendering: pixelated;
    pointer-events: none;
}

.chart-graphic-small svg {
    width: 100%;
    height: 100%;
    stroke: var(--avalon-green);
    fill: none;
    opacity: 1;
    /* Opacidade corrigida para 1 conforme referência */
}

.result-card {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    /* Centralizado inicialmente */
    background: rgba(24, 28, 37, 0.97);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(37, 42, 54, 0.5);
    border-radius: 17px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    will-change: transform;
    transition: transform 0.1s linear;
    z-index: 2;
    /* Garantir que fique acima do gráfico */
}

.result-icon svg {
    width: 61px;
    height: 61px;
    fill: var(--avalon-green);
}

.result-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.result-label {
    font-size: 12px;
    line-height: 100%;
    color: rgba(246, 247, 249, 0.6);
    font-family: 'Bricolage Grotesque', sans-serif;
}

.result-value {
    font-size: 42px;
    line-height: 100%;
    color: var(--avalon-green);
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 600;
}

/* ========== CARD 3 - FEED DE NOTÍCIAS ========== */
.news-container {
    background: rgba(24, 28, 37, 0.97);
    border: 1px solid rgba(37, 42, 54, 0.5);
    border-radius: 17px;
    padding: 20px;
    will-change: transform;
    opacity: 1;
    transform: none;
    margin: 0 32px 0 32px;
    margin-top: -32px;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.news-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #F6F7F9;
    font-size: 19.62px;
    font-family: 'Bricolage Grotesque', sans-serif;
}

.news-header-icon {
    width: 20px;
    height: 21px;
    fill: var(--avalon-green);
}

.news-toggle-icon {
    width: 40px;
    height: 21px;
    fill: rgba(255, 255, 255, 0.3);
}

.popular-assets {
    margin-top: 20px;
}

.popular-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 19.62px;
    color: var(--avalon-green);
    font-family: 'Bricolage Grotesque', sans-serif;
}

.assets-icon {
    width: 15px;
    height: 15px;
    fill: var(--avalon-green);
}

.assets-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.asset-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(37, 42, 54, 0.3);
    border-radius: 12px;
}

.asset-flag {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.asset-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.asset-name {
    font-size: 19.62px;
    line-height: 100%;
    color: #F6F7F9;
    font-family: 'Bricolage Grotesque', sans-serif;
}

.asset-value {
    font-size: 11.45px;
    line-height: 100%;
    color: rgba(246, 247, 249, 0.6);
    font-family: 'Bricolage Grotesque', sans-serif;
}

.asset-number {
    font-size: 19.62px;
    line-height: 100%;
    color: var(--avalon-green);
    font-family: 'Bricolage Grotesque', sans-serif;
}

.news-footer {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14.72px;
    line-height: 100%;
    text-align: center;
    color: #F6F7F9;
    font-family: 'Bricolage Grotesque', sans-serif;
}

/* ========== CARD 4 - CALENDÁRIO ECONÔMICO ========== */
.calendar-container {
    background: rgba(24, 28, 37, 0.97);
    border: 1px solid rgba(37, 42, 54, 0.5);
    border-radius: 17px;
    padding: 20px;
    will-change: transform;
    opacity: 1;
    transform: translateY(-50%);
    margin: 0 32px 0 32px;
    margin-top: -32px;
    transition: transform 0.1s linear;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.calendar-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #F6F7F9;
    font-size: 22.22px;
    font-family: 'Bricolage Grotesque', sans-serif;
}

.calendar-header-icon {
    width: 24px;
    height: 23px;
    fill: var(--avalon-green);
}

.calendar-toggle-icon {
    width: 46px;
    height: 23px;
    fill: rgba(255, 255, 255, 0.3);
}

.calendar-events {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
}

.calendar-event {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(37, 42, 54, 0.3);
    border-radius: 12px;
}

.event-flag {
    width: 46px;
    height: 46px;
    border-radius: 8px;
    object-fit: cover;
}

.event-title {
    flex: 1;
    font-size: 14.82px;
    line-height: 100%;
    color: #F6F7F9;
    font-family: 'Bricolage Grotesque', sans-serif;
}

.event-time-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-time {
    font-size: 9.26px;
    line-height: 100%;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Bricolage Grotesque', sans-serif;
    background: rgba(37, 42, 54, 1);
    padding: 6px 10px;
    border-radius: 6px;
}

.calendar-event:first-child .event-time {
    color: rgb(37, 42, 54);
}

.event-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
}

.event-dot.active {
    background: var(--avalon-green);
}

/* Responsive Design */
@media (max-width: 768px) {
    .avalon {
        padding: 60px 0;
    }

    .avalon-main-grid {
        gap: 32px;
        margin-bottom: 32px;
    }

    .avalon-header {
        margin-bottom: 32px;
    }

    .avalon-cards,
    .avalon-cards-bottom-grid {
        gap: 32px;
    }

    .avalon-header h2 {
        font-size: 36px;
    }

    .avalon-header p {
        font-size: 16px;
    }

    .avalon-card {
        padding: 24px;
    }

    .card-chart {
        height: 300px;
        min-height: 300px;
    }

    .alert-notification {
        transform: translate(-50%, -50%) scale(0.7);
        min-width: 250px;
    }

    .card-description h3 {
        font-size: 24px;
    }

    .card-description p {
        font-size: 14px;
    }

    .btc-label {
        font-size: 20px;
    }

    .btc-value {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .avalon-header h2 {
        font-size: 28px;
    }

    .avalon-icon {
        width: 60px;
        height: 60px;
    }

    .alert-notification {
        transform: translate(-50%, -50%) scale(0.6);
    }
}