/* --- Goal Modal Styles --- */
.goal-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    /* Slightly darker backdrop */
    backdrop-filter: blur(8px);
    /* More blur */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.goal-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.goal-modal {
    background: #09090b;
    /* Pitch black / zinc-950 */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 32px;
    width: 90%;
    max-width: 500px;
    /* Wider for rich content */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    /* Prevent overflow on small screens */
}

.goal-modal-overlay.active .goal-modal {
    transform: translateY(0);
}

.goal-modal h2 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 8px;
    text-align: center;
    font-weight: 700;
}

.goal-modal p {
    color: #a1a1aa;
    text-align: center;
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.goal-options-scroll {
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-right: 4px;
    /* Space for scrollbar */
    margin-bottom: 16px;
}

/* Custom Scrollbar */
.goal-options-scroll::-webkit-scrollbar {
    width: 6px;
}

.goal-options-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.goal-options-scroll::-webkit-scrollbar-thumb {
    background: #3f3f46;
    border-radius: 3px;
}

/* Rich Option Button */
.goal-option-btn.rich {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.goal-option-btn.rich:hover {
    background: rgba(212, 244, 88, 0.05);
    /* Very subtle lime tint */
    border-color: #D4F458;
    transform: translateY(-2px);
}

.opt-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.opt-title {
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.opt-desc {
    color: #a1a1aa;
    font-size: 0.8rem;
    line-height: 1.3;
}

.opt-macros {
    color: #D4F458;
    /* Lime accent for macros */
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 4px;
    text-transform: uppercase;
    opacity: 0.9;
}

.opt-right {
    display: flex;
    align-items: center;
}

.val-tag {
    background: #18181b;
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.goal-close {
    margin-top: auto;
    width: 100%;
    padding: 14px;
    background: #27272a;
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.goal-close:hover {
    background: #3f3f46;
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #D4F458;
    color: #000;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 8px;
}

.toast-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast-notification i {
    font-size: 1.1em;
}

/* Active State for Goal Options */
.goal-option-btn.rich.active {
    background: rgba(212, 244, 88, 0.15);
    /* Stronger lime tint */
    border-color: #D4F458;
    box-shadow: 0 0 15px rgba(212, 244, 88, 0.1);
}

.goal-option-btn.rich.active .opt-title {
    color: #D4F458;
}

.goal-option-btn.rich.active .val-tag {
    background: #D4F458;
    color: #000;
    border-color: #D4F458;
}