/* EjectaMembership — panel + premium prompt (shared across fullscreen apps).
   Dark theme to match the topbar menu. */

.ejecta-membership-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, .72);
    overflow: auto;
}
.ejecta-membership-modal.open { display: flex; }

.ejecta-membership-dialog {
    position: relative;
    width: 100%;
    max-width: 720px;
    max-height: 90vh;
    overflow-y: auto;
    background: #1c2333;
    color: #c9d1d9;
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 24px 22px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .6);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    text-align: center;
}

.ejecta-membership-close {
    position: absolute;
    top: 6px;
    right: 12px;
    border: 0;
    background: none;
    color: #8b949e;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}
.ejecta-membership-close:hover { color: #fff; }

.ejecta-membership-title { margin: .1em 0 .2em; font-size: 24px; color: #fff; }
.ejecta-membership-sub { margin: 0 0 18px; color: #8b949e; font-size: 14px; }

.ejecta-membership-tiers {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0 0 18px;
}

.ejecta-tier {
    flex: 1 1 180px;
    min-width: 170px;
    max-width: 220px;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 10px;
    padding: 16px 14px;
    text-align: left;
}
.ejecta-tier h3 { margin: 0 0 8px; font-size: 18px; color: #fff; }
.ejecta-tier-bronze h3 { color: #cd7f32; }
.ejecta-tier-silver h3 { color: #c0c6d2; }
.ejecta-tier-gold h3 { color: #f0c040; }
.ejecta-tier ul { margin: 0 0 14px; padding-left: 18px; font-size: 13px; color: #b9c2cf; }
.ejecta-tier li { margin: 4px 0; }
.ejecta-tier.current { border-color: #58a6ff; box-shadow: 0 0 0 1px #58a6ff inset; }

.ejecta-tier-buy {
    width: 100%;
    padding: 9px 12px;
    border-radius: 7px;
    border: 1px solid #30363d;
    background: #1f6feb;
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
.ejecta-tier-buy:hover { background: #388bfd; }

.ejecta-membership-token {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 6px 0 10px;
}
.ejecta-token-btn {
    padding: 8px 14px;
    border-radius: 7px;
    border: 1px solid #30363d;
    background: #21262d;
    color: #c9d1d9;
    font: inherit;
    cursor: pointer;
}
.ejecta-token-btn:hover { background: #30363d; }

.ejecta-membership-status { margin: 8px 0 0; font-size: 13px; color: #8b949e; }

/* Premium prompt */
.ejecta-premium-text { margin: .4em 0 18px; font-size: 14px; line-height: 1.5; color: #c9d1d9; }
.ejecta-premium-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.ejecta-premium-continue,
.ejecta-premium-upgrade {
    padding: 10px 16px;
    border-radius: 7px;
    font: inherit;
    cursor: pointer;
    border: 1px solid #30363d;
}
.ejecta-premium-continue { background: #21262d; color: #c9d1d9; }
.ejecta-premium-continue:hover { background: #30363d; }
.ejecta-premium-upgrade { background: #1f6feb; color: #fff; font-weight: 600; }
.ejecta-premium-upgrade:hover { background: #388bfd; }
