.studio-upgrade-overlay {
    position: fixed;
    inset: 0;
    z-index: 120000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(8, 12, 20, 0.72);
    backdrop-filter: blur(6px);
    animation: studioUpgradeFadeIn .22s ease;
}

.studio-upgrade-overlay[hidden] {
    display: none !important;
}

@keyframes studioUpgradeFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.studio-upgrade-card {
    width: min(440px, 100%);
    border-radius: 18px;
    border: 1px solid rgba(56, 189, 248, 0.35);
    background: linear-gradient(165deg, rgba(15, 23, 42, 0.98) 0%, rgba(10, 16, 28, 0.98) 100%);
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(14, 165, 233, 0.12),
        0 0 40px rgba(14, 165, 233, 0.08);
    padding: 22px 22px 18px;
    color: #e8eef6;
    position: relative;
}

.studio-upgrade-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 10px;
    background: rgba(148, 163, 184, 0.12);
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s ease, color .15s ease;
}

.studio-upgrade-close:hover {
    background: rgba(148, 163, 184, 0.22);
    color: #f1f5f9;
}

.studio-upgrade-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    padding-right: 28px;
}

.studio-upgrade-icon {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(14, 165, 233, 0.28), rgba(59, 130, 246, 0.18));
    border: 1px solid rgba(56, 189, 248, 0.45);
    box-shadow: 0 0 24px rgba(14, 165, 233, 0.22);
    color: #fde047;
}

.studio-upgrade-icon svg {
    width: 22px;
    height: 22px;
}

.studio-upgrade-title {
    font-size: 20px;
    line-height: 1.2;
    font-weight: 900;
    color: #f8fafc;
}

.studio-upgrade-sub {
    margin-top: 4px;
    font-size: 12px;
    color: #94a3b8;
    font-weight: 600;
}

.studio-upgrade-body {
    border: 1px solid rgba(56, 189, 248, 0.22);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.55);
    padding: 14px 16px;
    font-size: 14px;
    line-height: 1.65;
    color: #cbd5e1;
    font-weight: 600;
    margin-bottom: 18px;
}

.studio-upgrade-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.studio-upgrade-btn {
    min-height: 42px;
    padding: 0 22px;
    border-radius: 12px;
    border: 1px solid rgba(56, 189, 248, 0.55);
    background: linear-gradient(180deg, rgba(14, 165, 233, 0.35), rgba(37, 99, 235, 0.28));
    color: #f8fafc;
    font-size: 14px;
    font-weight: 850;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.18);
    transition: transform .12s ease, box-shadow .15s ease, border-color .15s ease;
}

.studio-upgrade-btn:hover {
    border-color: rgba(125, 211, 252, 0.85);
    box-shadow: 0 0 28px rgba(14, 165, 233, 0.32);
    transform: translateY(-1px);
}

.studio-upgrade-btn:active {
    transform: translateY(0);
}

.studio-upgrade-btn-cancel,
.studio-upgrade-btn-later {
    border-color: rgba(148, 163, 184, 0.35);
    background: rgba(30, 41, 59, 0.65);
    color: #94a3b8;
    box-shadow: none;
}

.studio-upgrade-btn-cancel:hover,
.studio-upgrade-btn-later:hover {
    border-color: rgba(148, 163, 184, 0.55);
    color: #e2e8f0;
    box-shadow: none;
}

html:not(.studio-theme-dark):not(.theme-dark) .studio-upgrade-card {
    background: linear-gradient(165deg, #ffffff 0%, #f8fafc 100%);
    border-color: rgba(14, 165, 233, 0.35);
    color: #0f172a;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

html:not(.studio-theme-dark):not(.theme-dark) .studio-upgrade-title {
    color: #0f172a;
}

html:not(.studio-theme-dark):not(.theme-dark) .studio-upgrade-body {
    background: #f1f5f9;
    color: #334155;
    border-color: #e2e8f0;
}
