/* --- NEW PREMIUM MACRO CARD (Settings) --- */
.macros-card-premium {
    background: #121212;
    /* Darker than normal card? Or stick to var(--card-bg) */
    background: #09090b;
    /* Very Dark, almost black */
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.card-header-simple {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #a1a1aa;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.card-header-simple .icon-gray {
    color: #3f3f46;
}

.chart-area-premium {
    position: relative;
    display: flex;
    justify-content: center;
    padding: 10px 0;
}

.chart-wrapper {
    position: relative;
    width: 180px;
    height: 180px;
}

.center-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

.center-text .label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #71717a;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.center-text .val-big {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
}

.center-text .unit {
    font-size: 0.8rem;
    color: #D4F458;
    font-weight: 600;
}

/* Legend */
.legend-row {
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
}

.legend-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.legend-item .pct {
    font-size: 1.1rem;
    font-weight: 700;
}

.legend-item .pct.lime-text {
    color: #D4F458;
}

.legend-item .pct.grey-text {
    color: #a1a1aa;
}

.legend-item .pct.dark-text {
    color: #3f3f46;
}

/* Dark gray for carbs */

.legend-item .lbl {
    font-size: 0.65rem;
    color: #52525b;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.legend-item .val {
    font-size: 0.95rem;
    color: #fff;
    font-weight: 600;
}

/* Footer Box */
.goal-footer-box {
    background: #000000;
    /* Pure black inset */
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* Subtle border */
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
}

.goal-title {
    color: #52525b;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.goal-sub {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
}