/* Practice unlock modal — confirmation gate fired before
   PGPracticeModal.open() for free users on a locked song. */

.pg-unlock-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    padding: 24px;
    backdrop-filter: blur(2px);
}

.pg-unlock-modal__card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 32px;
    max-width: 440px;
    width: 100%;
    font-family: system-ui, -apple-system, sans-serif;
    color: #1d1f22;
}

.pg-unlock-modal__title {
    font-family: var(--font-display, Georgia, serif);
    font-size: 1.5rem;
    margin: 0 0 12px;
    line-height: 1.2;
}

.pg-unlock-modal__body {
    font-size: 1rem;
    line-height: 1.5;
    color: #4a5460;
    margin: 0 0 24px;
}

.pg-unlock-modal__actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    align-items: center;
}

.pg-unlock-modal__btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.pg-unlock-modal__btn--primary {
    background: #2a6cdf;
    color: #fff;
}

.pg-unlock-modal__btn--primary:hover {
    background: #1f57b8;
}

.pg-unlock-modal__btn--primary:disabled {
    background: #95b3e3;
    cursor: not-allowed;
}

.pg-unlock-modal__btn--ghost {
    background: transparent;
    color: #4a5460;
    border-color: #d4d8de;
}

.pg-unlock-modal__btn--ghost:hover {
    background: #f3f5f7;
}

.pg-unlock-modal__error {
    margin-top: 12px;
    padding: 10px 14px;
    background: #fdecec;
    border-radius: 6px;
    color: #b3261e;
    font-size: 0.9rem;
}

/* Upload-modal extensions — fires when a non-curator user requests a
   real-band practice mode (Play/Solo/Sing/Drill) on a song they've
   unlocked but haven't uploaded audio for yet. Drag-drop, multipart
   POST to /audio-jobs, then poll until succeeded. */

.pg-unlock-modal__card--wide {
    max-width: 560px;
}

.pg-upload-drop {
    display: block;
    border: 2px dashed #c1c8d2;
    border-radius: 10px;
    padding: 32px 24px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    margin: 8px 0 16px;
}

.pg-upload-drop:hover,
.pg-upload-drop:focus,
.pg-upload-drop.is-over {
    border-color: #2a6cdf;
    background: #f3f7fd;
    outline: none;
}

.pg-upload-drop__lead {
    font-size: 1.05rem;
    color: #1d1f22;
    margin-bottom: 4px;
}

.pg-upload-drop__sub {
    font-size: 0.85rem;
    color: #5a6470;
}

.pg-upload-status {
    margin: 8px 0 16px;
    padding: 14px 16px;
    background: #f3f5f7;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #1d1f22;
}

/* Purchase-links row in the upload modal — Apple Music + Amazon Music.
   Presented neutrally as available links; we don't tell users how to
   acquire the file. */
.pg-unlock-modal__buy-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin: 12px 0;
    padding: 12px 16px;
    background: #f3f7fd;
    border: 1px solid #cfdcf2;
    border-radius: 8px;
}

.pg-unlock-modal__buy-label {
    font-weight: 600;
    color: #1d1f22;
    font-size: 0.95rem;
}

.pg-unlock-modal__buy-link {
    color: #2a6cdf;
    text-decoration: none;
    font-weight: 500;
}

.pg-unlock-modal__buy-link:hover {
    text-decoration: underline;
}

/* Confirm-after-match step in the upload modal. After the worker
   fingerprints the user upload and the result clears the threshold,
   the modal swaps the status banner for this block + a Proceed
   button so the user can OK the full processing. */
.pg-upload-confirm {
    margin: 12px 0;
    padding: 14px 16px;
    background: #ecf7ee;
    border: 1px solid #b6dcc0;
    border-radius: 8px;
}

.pg-upload-confirm__head {
    font-weight: 600;
    color: #1d3a23;
    margin-bottom: 4px;
}

.pg-upload-confirm__sub {
    font-size: 0.9rem;
    color: #2b5535;
}
