/* Gold Access Popup - frontend */
.gap-overlay,
.gap-overlay * {
    box-sizing: border-box;
}
.gap-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    overflow: auto;
    padding: 24px;
    background:
        radial-gradient(ellipse at 50% 12%, rgba(113, 64, 19, .24), transparent 45%),
        var(--gap-page-bg, #120a04);
    color: var(--gap-text, #fff0c4);
    font-family: inherit;
    text-align: center;
    isolation: isolate;
}
.gap-overlay.gap-active {
    display: flex;
}
body.gap-popup-open { overflow: hidden !important; }
.gap-loading-card {
    width: min(100%, var(--gap-card-width, 570px));
    padding: var(--gap-card-padding, 34px);
    border: 1px solid var(--gap-card-border, #5b3a1b);
    border-radius: var(--gap-card-radius, 42px);
    background:
        linear-gradient(155deg, rgba(75, 31, 8, .52), transparent 58%),
        var(--gap-card-bg, #2b1206);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255, 224, 153, .08);
    animation: gap-card-in .55s ease both;
}
.gap-loading-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    margin: 0 auto 20px;
    padding: 8px 22px;
    border: 1px solid rgba(244, 184, 68, .25);
    border-radius: 999px;
    background: rgba(255, 198, 88, .08);
    color: var(--gap-accent, #f5bd45);
    font-size: 17px;
    font-weight: 900;
    letter-spacing: .08em;
}
.gap-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--gap-icon-size, 126px);
    height: var(--gap-icon-size, 126px);
    margin: 0 auto 24px;
    filter: drop-shadow(0 10px 18px rgba(241, 148, 39, .22));
}
.gap-orb {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background:
        radial-gradient(circle at 32% 24%, var(--gap-icon-highlight, #fff4a9) 0, #ffe078 20%, #ffbf4b 53%, var(--gap-icon-base, #f18b31) 100%);
    box-shadow: inset -8px -10px 0 rgba(192, 79, 15, .12), 9px 10px 0 rgba(0, 0, 0, .42);
    transform: rotate(-18deg);
}
.gap-emoji-icon {
    display: block;
    font-size: calc(var(--gap-icon-size, 126px) * .78);
    line-height: 1;
}
.gap-custom-icon {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.gap-title {
    margin: 0 auto 14px !important;
    color: var(--gap-text, #fff0c4) !important;
    font-size: clamp(27px, 5vw, 42px) !important;
    line-height: 1.13 !important;
    font-weight: 950 !important;
    letter-spacing: .015em;
    text-transform: uppercase;
}
.gap-description {
    max-width: 490px;
    margin: 0 auto 28px !important;
    color: var(--gap-text, #fff0c4) !important;
    font-size: 18px !important;
    line-height: 1.7 !important;
    opacity: .92;
}
.gap-steps {
    display: grid;
    gap: 14px;
    margin: 0 0 24px;
    text-align: left;
}
.gap-step {
    display: flex;
    align-items: center;
    min-height: 70px;
    gap: 14px;
    padding: 12px 18px;
    border: 1px solid rgba(255, 224, 173, .09);
    border-radius: 24px;
    background: rgba(255, 255, 255, .055);
    color: var(--gap-text, #fff0c4);
    font-size: 18px;
    font-weight: 750;
    opacity: .72;
    transition: opacity .25s ease, border-color .25s ease, background .25s ease, transform .25s ease;
}
.gap-step.is-active,
.gap-step.is-complete {
    border-color: color-mix(in srgb, var(--gap-accent, #f5bd45) 30%, transparent);
    background: rgba(255, 195, 76, .075);
    opacity: 1;
}
.gap-step.is-active {
    transform: translateX(2px);
}
.gap-step-number {
    display: inline-flex;
    flex: 0 0 36px;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(245, 189, 69, .18);
    color: var(--gap-accent, #f5bd45);
    font-size: 18px;
    font-weight: 900;
}
.gap-progress {
    width: 100%;
    height: 15px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--gap-progress-track, #33251b);
    text-align: left;
}
.gap-progress-fill {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--gap-progress-start, #fff08a) 0%, #ffc34e 52%, var(--gap-progress-end, #f18b2f) 100%);
    box-shadow: 0 0 14px rgba(255, 191, 71, .25);
    will-change: width;
}
.gap-ready-panel {
    display: none;
    width: 100%;
    align-items: center;
    justify-content: center;
}
.gap-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(var(--gap-button-width, 82%), 760px);
    min-height: var(--gap-button-height, 88px);
    padding: 12px 28px;
    border: 1px solid rgba(255, 255, 222, .65);
    border-radius: var(--gap-button-radius, 60px);
    background: linear-gradient(180deg, var(--gap-button-start, #ffe987), var(--gap-button-end, #f39a2e));
    box-shadow: 0 14px 45px rgba(243, 154, 46, .24), inset 0 2px 1px rgba(255, 255, 255, .65);
    color: var(--gap-button-text, #241304) !important;
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 950;
    line-height: 1.1;
    letter-spacing: .025em;
    text-align: center;
    text-decoration: none !important;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform .2s ease, filter .2s ease;
    animation: gap-button-in .5s ease both;
}
.gap-cta:hover,
.gap-cta:focus {
    color: var(--gap-button-text, #241304) !important;
    filter: brightness(1.04);
    transform: translateY(-2px);
    outline: 3px solid rgba(255, 220, 126, .35);
    outline-offset: 4px;
}
.gap-overlay.gap-ready {
    cursor: pointer;
    background: #050403;
}
.gap-overlay.gap-ready .gap-loading-card {
    display: none;
}
.gap-overlay.gap-ready .gap-ready-panel {
    display: flex;
}
.gap-overlay.gap-ready .gap-cta {
    pointer-events: auto;
}
.gap-screen-reader-status {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
@keyframes gap-card-in {
    from { opacity: 0; transform: translateY(14px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes gap-button-in {
    from { opacity: 0; transform: translateY(12px) scale(.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (max-width: 600px) {
    .gap-overlay { padding: 14px; }
    .gap-loading-card { padding: 24px 18px; border-radius: min(var(--gap-card-radius, 42px), 30px); }
    .gap-loading-pill { min-height: 42px; margin-bottom: 16px; font-size: 14px; }
    .gap-icon-wrap { margin-bottom: 18px; }
    .gap-description { margin-bottom: 20px !important; font-size: 15px !important; line-height: 1.55 !important; }
    .gap-step { min-height: 58px; gap: 10px; padding: 10px 12px; border-radius: 18px; font-size: 14px; }
    .gap-step-number { flex-basis: 32px; width: 32px; height: 32px; font-size: 15px; }
    .gap-progress { height: 12px; }
    .gap-cta { width: 94%; min-height: min(var(--gap-button-height, 88px), 78px); padding: 12px 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .gap-overlay *, .gap-overlay *::before, .gap-overlay *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}
