/* Download progress inside a card */
.opt-progress {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
}

.opt-bar {
    position: relative;
    height: 8px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.opt-bar span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: var(--brand-gradient);
    transition: width 0.5s ease;
}

.opt-bar.indeterminate span {
    width: 35%;
    animation: optSlide 1.2s ease-in-out infinite;
}

@keyframes optSlide {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(300%); }
}

.opt-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.opt-status-text {
    font-variant-numeric: tabular-nums;
}

.opt-cancel {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
}

.opt-cancel:hover {
    color: var(--text-primary);
}

.opt-error,
.opt-done {
    font-size: 0.8rem;
    line-height: 1.4;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
}

.opt-error {
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.opt-done {
    color: #86efac;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.opt-notice {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: -4px 0 12px;
}

.opt-notice.warn {
    color: #fbbf24;
}

.opt-notice-action,
.opt-another {
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    font-size: inherit;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.opt-save-link {
    display: inline-block;
    margin-top: 6px;
    font-weight: 800;
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.opt-another {
    margin-top: 4px;
    color: #bbf7d0;
}

/* -------------------------------------------------------------
   Turbo Speed Booster Download Toast HUD
   ------------------------------------------------------------- */
.turbo-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    background: rgba(13, 18, 36, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 242, 254, 0.35);
    border-radius: 14px;
    padding: 16px 20px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5), 0 0 25px rgba(0, 242, 254, 0.2);
    display: flex;
    align-items: center;
    gap: 14px;
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 380px;
    pointer-events: none;
}

.turbo-toast.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: none;   /* informational only — taps reach the buttons underneath */
}

/* Phones: show at the top so it never covers the card's buttons and messages */
@media (max-width: 680px) {
    .turbo-toast {
        top: 12px;
        bottom: auto;
        left: 12px;
        right: 12px;
        max-width: none;
        padding: 10px 14px;
        transform: translateY(-140px);
    }
    .turbo-toast.active {
        transform: translateY(0);
    }
}

.turbo-icon-glow {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #00f2fe, #4facfe);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.5);
    flex-shrink: 0;
    animation: turboPulse 1.5s infinite;
}

@keyframes turboPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); filter: brightness(1.2); }
    100% { transform: scale(1); }
}

.turbo-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.turbo-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
}

.turbo-title .badge-8x {
    background: linear-gradient(135deg, #ff3366, #ff6b8b);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
}

.turbo-desc {
    font-size: 0.78rem;
    color: #94a3b8;
    line-height: 1.3;
}
