:root {
    --ae-blue: #3379ff;
    --ae-blue-deep: #1f4fb8;
    --ae-ink: #101a2d;
    --ae-muted: #637391;
}

/* ── Fixed header: always solid, never transparent ── */
#page-header {
    background-color: #fff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}
.dark-mode #page-header {
    background-color: #1a1f2b !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

body {
    font-family: "Poppins", "Noto Sans SC", "PingFang SC", sans-serif;
}

.hero-bubbles {
    border-radius: 1rem;
    overflow: hidden;
}

.ae-hero {
    position: relative;
    border-radius: 1rem;
}

.ae-kicker {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: rgba(51, 121, 255, .1);
    color: var(--ae-blue-deep);
    border: 1px solid rgba(51, 121, 255, .25);
    border-radius: 999px;
    padding: .3rem .7rem;
    margin-bottom: 1rem;
}

.ae-stat {
    border: 1px solid rgba(31, 79, 184, .12);
    border-radius: .75rem;
    padding: .9rem;
    background: rgba(255, 255, 255, .8);
    backdrop-filter: blur(4px);
}

.ae-stat-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ae-ink);
    line-height: 1.1;
}

.ae-stat-label {
    margin-top: .2rem;
    color: var(--ae-muted);
    font-size: .82rem;
}

.ae-fx-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: .75rem;
}

.ae-fx-card {
    border: 1px solid rgba(17, 24, 39, .08);
    border-radius: .75rem;
    padding: .8rem;
    background: #fff;
}

.ae-fx-config {
    transition: opacity .2s ease, filter .2s ease;
}

.ae-fx-config.is-disabled {
    opacity: .45;
    filter: grayscale(.15);
}

.ae-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 999px;
    font-size: 1.5rem;
}

.ae-timeline-list {
    position: relative;
    display: grid;
    gap: .8rem;
}

.ae-timeline-item {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    padding: .7rem;
    border: 1px solid rgba(17, 24, 39, .08);
    border-radius: .75rem;
    background: rgba(255, 255, 255, .8);
}

.ae-timeline-dot {
    width: .8rem;
    height: .8rem;
    border-radius: 999px;
    margin-top: .35rem;
    background: #ccd4e3;
}

.ae-timeline-item.is-running {
    border-color: rgba(51, 121, 255, .35);
    background: rgba(51, 121, 255, .08);
}

.ae-timeline-item.is-running .ae-timeline-dot {
    background: var(--ae-blue);
    box-shadow: 0 0 0 6px rgba(51, 121, 255, .16);
}

.ae-timeline-item.is-done {
    border-color: rgba(33, 180, 115, .3);
    background: rgba(33, 180, 115, .08);
}

.ae-timeline-item.is-done .ae-timeline-dot {
    background: #21b473;
}

.ae-effect-summary {
    display: grid;
    gap: .65rem;
}

.ae-effect-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .55rem .65rem;
    border-radius: .6rem;
    background: rgba(17, 24, 39, .03);
}

.dark-mode .ae-stat,
.dark-mode .ae-fx-card,
.dark-mode .ae-timeline-item,
.dark-mode .ae-effect-row {
    background: rgba(24, 32, 50, .72);
    border-color: rgba(161, 174, 196, .2);
}

.dark-mode .ae-stat-label,
.dark-mode .ae-effect-row,
.dark-mode .ae-kicker {
    color: #d2d9e6;
}

@media (min-width: 992px) {
    .ae-fx-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .ae-kicker {
        font-size: .68rem;
    }
}
