/* ----------------------------------------------------------------------
 * BETA APPLY MODAL — standalone stylesheet
 * Loaded by both the public homepage and the /dashboard/beta page.
 * Kept separate from main.css / dashboard.css so it can drop in anywhere
 * without colliding with page-level styles.
 * Source component: assets/js/components/beta-apply-modal.js
 * -------------------------------------------------------------------- */

.beta-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 7, 0.78);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 1rem;
    box-sizing: border-box;
    animation: betaModalFadeIn 180ms ease-out;
}
.beta-modal-overlay[hidden] { display: none !important; }

@keyframes betaModalFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes betaModalScaleIn {
    from { opacity: 0; transform: translateY(8px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0)   scale(1);    }
}

.beta-modal {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: 92vh;
    overflow-y: auto;
    box-sizing: border-box;
    background: linear-gradient(180deg, #131318 0%, #0d0d11 100%);
    border: 1px solid rgba(255, 138, 61, 0.25);
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6),
                inset 0 0 0 1px rgba(255, 138, 61, 0.05);
    padding: 1.75rem 1.5rem 1.5rem;
    color: #f1f1f3;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.4;
    animation: betaModalScaleIn 220ms cubic-bezier(0.2, 0.9, 0.3, 1);
}

.beta-modal-close {
    position: absolute;
    top: 0.65rem;
    right: 0.85rem;
    background: none;
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    color: #888;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 120ms, color 120ms;
    padding: 0;
}
.beta-modal-close:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.beta-modal-header {
    text-align: center;
    padding: 0 0 1.25rem;
}
.beta-modal-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 0.85rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 138, 61, 0.18), rgba(255, 138, 61, 0.06));
    border: 1px solid rgba(255, 138, 61, 0.35);
    color: #FF8A3D;
    font-size: 1.4rem;
}
.beta-modal-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.25rem;
    margin: 0 0 0.4rem;
    color: #fff;
    letter-spacing: 0.02em;
    font-weight: 600;
}
.beta-modal-subtitle {
    margin: 0;
    color: #b5b5be;
    font-size: 0.92rem;
}
.beta-modal-subtitle strong {
    color: #FF8A3D;
    font-weight: 600;
}

.beta-modal-body {
    padding: 0.25rem 0 0.75rem;
}

.beta-modal-points {
    list-style: none;
    padding: 0.75rem 0.9rem;
    margin: 0 0 1.1rem;
    display: grid;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}
.beta-modal-points li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: #cfcfd6;
    margin: 0;
    padding: 0;
}
.beta-modal-points li i {
    color: #FF8A3D;
    width: 16px;
    text-align: center;
    font-size: 0.85rem;
}
/* Inline SVG icons (modal is rendered on pages without Font Awesome).
   Sized to match the previous <i class="fa-…"> footprint. */
.beta-modal-icon .beta-modal-svg {
    width: 22px;
    height: 22px;
    color: #FF8A3D;
}
.beta-modal-points li .beta-modal-svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: #FF8A3D;
}
.beta-modal-svg-btn {
    width: 14px;
    height: 14px;
    vertical-align: -2px;
}

.beta-modal-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 500;
    color: #d6d6dc;
    margin: 0.3rem 0 0.4rem;
}
.beta-modal-label .optional {
    color: #8a8a92;
    font-weight: 400;
}

.beta-modal-textarea {
    width: 100%;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 0.7rem 0.85rem;
    color: #fff;
    font-family: inherit;
    font-size: 0.9rem;
    line-height: 1.45;
    resize: vertical;
    min-height: 76px;
    transition: border-color 120ms, background 120ms;
}
.beta-modal-textarea:focus {
    outline: none;
    border-color: rgba(255, 138, 61, 0.55);
    background: rgba(255, 255, 255, 0.06);
}

.beta-modal-charcount {
    text-align: right;
    font-size: 0.72rem;
    color: #6a6a72;
    margin-top: 0.25rem;
}

.beta-modal-error {
    margin-top: 0.6rem;
    padding: 0.55rem 0.75rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.35);
    border-radius: 8px;
    color: #fca5a5;
    font-size: 0.82rem;
}
.beta-modal-error[hidden] { display: none !important; }

.beta-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 0.6rem;
}
.beta-modal-footer .btn {
    min-width: 120px;
    padding: 0.65rem 1.2rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: background 120ms, color 120ms, transform 80ms;
}
.beta-modal-footer .btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #cfcfd6;
}
.beta-modal-footer .btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}
.beta-modal-footer .btn-primary {
    background: linear-gradient(135deg, #FF8A3D, #ff7a25);
    color: #0a0a0b;
}
.beta-modal-footer .btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #ff9a4d, #ff8a35);
    transform: translateY(-1px);
}
.beta-modal-footer .btn-primary:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

@media (max-width: 520px) {
    .beta-modal { padding: 1.4rem 1.1rem 1.2rem; }
    .beta-modal-footer { flex-direction: column-reverse; }
    .beta-modal-footer .btn { width: 100%; }
}
