/* Credit Status Bar - Base Styles */
.credit-status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-top: 28px !important; /* Generous gap below the page titles / header description */
    margin-bottom: 32px !important; /* Premium space above the dropzone / workspace */
}

.credit-status-bar .credits-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.credit-status-bar .credit-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.credit-status-bar .credit-badge.premium {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #ffffff;
}

.credit-status-bar .credit-count {
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff;
}

.credit-status-bar .credit-label {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
}

/* Margin utilities for replaced inline styles */
.credit-status-bar .ml-8 {
    margin-left: 8px;
}

.credit-status-bar .ml-12 {
    margin-left: 12px;
}

/* Settings Button */
.credit-status-bar .settings-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 12px 24px !important;
    background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 12px !important;
    font-weight: 800 !important;
    font-size: 1rem !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
    white-space: nowrap !important;
}

.credit-status-bar .settings-btn:hover {
    background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: none !important;
}

.credit-status-bar .settings-btn:active {
    transform: translateY(0) !important;
    box-shadow: none !important;
}

.credit-status-bar .settings-btn .btn-text {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* Get Credits Button */
.credit-status-bar .get-credits-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 10px 20px !important;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: none !important;
    white-space: nowrap !important;
}

.credit-status-bar .get-credits-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: none !important;
    background: linear-gradient(135deg, #7c3aed, #6d28d9) !important;
}

/* Mobile Responsive Credit Status Bar */
@media (max-width: 768px) {
    .credit-status-bar {
        flex-direction: column;
        align-items: stretch !important;
        text-align: center;
        gap: 16px !important;
        padding: 16px !important;
    }

    .credit-status-bar .credits-info {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    .credit-status-bar .credits-info>div {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    .credit-status-bar .settings-btn,
    .credit-status-bar .get-credits-btn {
        width: 100% !important;
        justify-content: center !important;
        padding: 12px 20px !important;
    }
}

@media (max-width: 480px) {
    .credit-status-bar {
        padding: 12px !important;
        gap: 12px !important;
    }

    .credit-status-bar .credit-badge {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    .credit-status-bar .credit-count {
        font-size: 1.2rem;
    }

    .credit-status-bar .credit-label {
        font-size: 1rem;
    }

    .credit-status-bar .settings-btn,
    .credit-status-bar .get-credits-btn {
        padding: 10px 16px !important;
        font-size: 0.85rem !important;
    }
}