/* Tighten result box */
.result-box {
    backdrop-filter: blur(12px);
    background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* Reduced Pillar Height to save vertical space */
.growth-pillar-wrapper {
    position: relative;
    width: 60px;
    height: 120px; /* Reduced from 180px/220px */
    padding: 4px;
    background: #0a0f1e;
    border-radius: 30px;
    border: 1px solid #1e293b;
}

.pillar-glass {
    width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 25px;
    overflow: hidden;
    display: flex; flex-direction: column-reverse;
}

.growth-fill {
    width: 100%;
    background: linear-gradient(to top, #0891b2, #22d3ee, #a5f3fc);
    transition: height 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
}

.fill-glow {
    position: absolute; top: 0; left: 0; right: 0;
    height: 4px; background: white;
    filter: blur(4px); opacity: 0.8;
}

.pillar-label {
    position: absolute; left: 70px;
    font-size: 8px; font-weight: 900;
    color: #475569; text-transform: uppercase;
}
.pillar-label.top { top: 8px; }
.pillar-label.bottom { bottom: 8px; }

/* Input Focus Glow */
input:focus {
    box-shadow: 0 0 15px rgba(34, 211, 238, 0.2);
}

/* FIX: Formula Box overflowing */
.formula-box {
    background: rgba(0,0,0,0.3);
    border: 1px dashed rgba(34, 211, 238, 0.3);
    /* This prevents text from jumping out */
    max-width: 100%;
    overflow-x: auto;
    white-space: nowrap;
}

.formula-text {
    /* Responsive font size: smaller on mobile, larger on desktop */
    font-size: clamp(1.2rem, 5vw, 2rem);
}

.explanation-card {
    background: #111827 !important;
    border: 1px solid #1f2937 !important;
}

.explanation-text {
    color: #94a3b8;
    line-height: 1.6;
    font-size: 0.9rem;
}

#compound_total {
    transition: all 0.4s ease;
    color: #22d3ee; /* This makes it bright Cyan */
    text-shadow: 0 0 10px rgba(34, 211, 238, 0.5); /* Adds a subtle glow */
}