/* ============================================================
   JOIN POPUP — Privacy & Data Collection Agreement
   Single-slide overlay with golden AeroField theme
   ============================================================ */

/* ── Overlay ─────────────────────────────────────────────── */
.join-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.join-overlay.active {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(12px);
    opacity: 1;
    visibility: visible;
}

/* ── Popup Card ──────────────────────────────────────────── */
.join-popup {
    position: relative;
    width: 85%;
    max-width: 380px;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 14px;
    padding: 1.5px;                           /* border thickness */
    transform: scale(0.85) translateY(30px);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* animated golden border */
    background: linear-gradient(
        135deg,
        #77530a, #ffd277, #bf953f, #fcf6ba, #b38728,
        #77530a, #ffd277, #bf953f
    );
    background-size: 400% 400%;
    animation: popupBorderFlow 6s ease infinite;
}

.join-overlay.active .join-popup {
    transform: scale(1) translateY(0);
}

@keyframes popupBorderFlow {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ── Inner body ──────────────────────────────────────────── */
.join-popup-body {
    background: linear-gradient(160deg, #0a0a0f 0%, #111118 50%, #0d0d14 100%);
    border-radius: 13px;
    padding: 22px 20px 18px;
    position: relative;
    overflow: hidden;
}

/* Subtle golden ambient light */
.join-popup-body::before {
    content: '';
    position: absolute;
    top: -60%;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 60%;
    background: radial-gradient(ellipse, rgba(191, 149, 63, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

/* ── Close button ────────────────────────────────────────── */
.join-popup-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 26px;
    height: 26px;
    border: none;
    background: rgba(255, 210, 119, 0.06);
    border-radius: 50%;
    color: rgba(255, 210, 119, 0.5);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
}

.join-popup-close:hover {
    background: rgba(255, 210, 119, 0.15);
    color: #ffd277;
    transform: rotate(90deg);
}

/* ── Shield Icon ─────────────────────────────────────────── */
.join-popup-shield {
    width: 40px;
    height: 40px;
    margin: 0 auto 12px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(191, 149, 63, 0.15), rgba(255, 210, 119, 0.08));
    border: 1px solid rgba(191, 149, 63, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    animation: shieldGlow 3s ease-in-out infinite;
}

@keyframes shieldGlow {
    0%, 100% { box-shadow: 0 0 12px rgba(191, 149, 63, 0.1); }
    50%      { box-shadow: 0 0 24px rgba(191, 149, 63, 0.25); }
}

/* ── Title ───────────────────────────────────────────────── */
.join-popup-title {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4px;
    background: linear-gradient(90deg, #b38728, #fcf6ba, #fff, #fcf6ba, #bf953f);
    background-size: 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: popupTitleShine 4s linear infinite;
}

@keyframes popupTitleShine {
    0%   { background-position: 200% center; }
    100% { background-position: -200% center; }
}

.join-popup-subtitle {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.65rem;
    font-weight: 400;
    text-align: center;
    color: rgba(255, 210, 119, 0.45);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

/* ── Protocol List ───────────────────────────────────────── */
.join-popup-protocols {
    list-style: none;
    padding: 0;
    margin: 0 0 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.join-popup-protocol {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(191, 149, 63, 0.04);
    border: 1px solid rgba(191, 149, 63, 0.08);
    transition: all 0.3s ease;
}

.join-popup-protocol:hover {
    background: rgba(191, 149, 63, 0.08);
    border-color: rgba(191, 149, 63, 0.18);
}

.join-popup-protocol-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    background: linear-gradient(135deg, rgba(191, 149, 63, 0.12), rgba(255, 210, 119, 0.06));
    border: 1px solid rgba(191, 149, 63, 0.15);
}

.join-popup-protocol h4 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 2px;
}

.join-popup-protocol p {
    font-family: 'Inter', sans-serif;
    font-size: 0.62rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.45);
    margin: 0;
    line-height: 1.4;
}

/* ── Divider ─────────────────────────────────────────────── */
.join-popup-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(191, 149, 63, 0.25), transparent);
    margin: 0 0 12px;
    border: none;
}

/* ── Consent text ───────────────────────────────────────── */
.join-popup-consent {
    font-family: 'Inter', sans-serif;
    font-size: 0.6rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.35);
    text-align: center;
    line-height: 1.5;
    margin-bottom: 14px;
}

.join-popup-consent strong {
    color: rgba(255, 210, 119, 0.7);
    font-weight: 500;
}

/* ── Agree Button ────────────────────────────────────────── */
.join-popup-agree {
    display: block;
    width: 100%;
    padding: 10px 18px;
    border: none;
    border-radius: 9px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;

    /* golden gradient background */
    background: linear-gradient(135deg, #77530a, #bf953f, #ffd277, #bf953f, #77530a);
    background-size: 300% 300%;
    animation: agreeBtnFlow 5s ease infinite;

    /* dark text on gold */
    color: #0a0a0f;
    transition: all 0.35s ease;
    box-shadow:
        0 4px 15px rgba(191, 149, 63, 0.25),
        0 0 30px rgba(191, 149, 63, 0.08);
}

@keyframes agreeBtnFlow {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* shimmer sweep on agree button */
.join-popup-agree::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transform: skewX(-20deg);
    transition: left 0.6s ease;
}

.join-popup-agree:hover::before {
    left: 130%;
}

.join-popup-agree:hover {
    transform: translateY(-2px);
    box-shadow:
        0 6px 25px rgba(191, 149, 63, 0.4),
        0 0 50px rgba(255, 210, 119, 0.15);
}

.join-popup-agree:active {
    transform: translateY(0);
    box-shadow:
        0 2px 10px rgba(191, 149, 63, 0.2);
}

/* ── Scrollbar ───────────────────────────────────────────── */
.join-popup::-webkit-scrollbar {
    width: 4px;
}

.join-popup::-webkit-scrollbar-track {
    background: transparent;
}

.join-popup::-webkit-scrollbar-thumb {
    background: rgba(191, 149, 63, 0.2);
    border-radius: 2px;
}

/* ── Mobile ──────────────────────────────────────────────── */
@media (max-width: 600px) {
    .join-popup {
        width: 95%;
        max-height: 90vh;
    }

    .join-popup-body {
        padding: 28px 20px 22px;
    }

    .join-popup-title {
        font-size: 1.15rem;
    }

    .join-popup-protocol {
        padding: 12px;
        gap: 10px;
    }

    .join-popup-protocol-icon {
        width: 30px;
        height: 30px;
        font-size: 15px;
    }

    .join-popup-agree {
        padding: 12px 20px;
        font-size: 0.85rem;
    }
}


/* ═══════════════════════════════════════════════════════════
   LIVE ANIMATED ICONS — Pure CSS, no emoji
   ═══════════════════════════════════════════════════════════ */

/* ── 1. SHIELD — top hero icon ───────────────────────────── */
.live-icon-shield {
    position: relative;
    width: 32px;
    height: 36px;
}

.shield-body {
    position: absolute;
    inset: 0;
    clip-path: polygon(50% 0%, 100% 12%, 100% 55%, 80% 75%, 50% 100%, 20% 75%, 0% 55%, 0% 12%);
    background: linear-gradient(180deg, #ffd277 0%, #bf953f 60%, #77530a 100%);
    animation: shieldBreath 3s ease-in-out infinite;
}

.shield-check {
    position: absolute;
    top: 40%;
    left: 50%;
    width: 14px;
    height: 8px;
    border-left: 2.5px solid #0a0a0f;
    border-bottom: 2.5px solid #0a0a0f;
    transform: translate(-50%, -50%) rotate(-45deg);
    animation: checkDraw 2s ease-out infinite;
}

.shield-pulse {
    position: absolute;
    inset: -4px;
    clip-path: polygon(50% 0%, 100% 12%, 100% 55%, 80% 75%, 50% 100%, 20% 75%, 0% 55%, 0% 12%);
    border: 1px solid rgba(255, 210, 119, 0.3);
    animation: shieldRipple 3s ease-out infinite;
}

@keyframes shieldBreath {
    0%, 100% { filter: brightness(1); }
    50%      { filter: brightness(1.2); }
}

@keyframes checkDraw {
    0%, 30% { clip-path: inset(0 100% 0 0); }
    50%     { clip-path: inset(0 0 0 0); }
    100%    { clip-path: inset(0 0 0 0); }
}

@keyframes shieldRipple {
    0%   { transform: scale(1);   opacity: 0.5; }
    70%  { transform: scale(1.3); opacity: 0; }
    100% { transform: scale(1.3); opacity: 0; }
}


/* ── 2. NO-DATA — prohibited circle ─────────────────────── */
.live-icon-nodata {
    position: relative;
    width: 22px;
    height: 22px;
}

.nodata-circle {
    position: absolute;
    inset: 0;
    border: 2px solid #bf953f;
    border-radius: 50%;
    animation: nodataRotate 8s linear infinite;
}

.nodata-slash {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 2px;
    background: linear-gradient(90deg, #77530a, #ffd277, #77530a);
    transform: translate(-50%, -50%) rotate(-45deg);
    border-radius: 1px;
    animation: slashPulse 2s ease-in-out infinite;
}

.nodata-dot {
    position: absolute;
    top: -2px;
    left: 50%;
    width: 4px;
    height: 4px;
    background: #ffd277;
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 6px rgba(255, 210, 119, 0.6);
    animation: dotOrbit 8s linear infinite;
    transform-origin: 50% 13px;
}

@keyframes nodataRotate {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@keyframes slashPulse {
    0%, 100% { opacity: 0.7; }
    50%      { opacity: 1; background: linear-gradient(90deg, #bf953f, #fcf6ba, #bf953f); }
}

@keyframes dotOrbit {
    from { transform: translateX(-50%) rotate(0deg); }
    to   { transform: translateX(-50%) rotate(360deg); }
}


/* ── 3. LOCK — encryption padlock ────────────────────────── */
.live-icon-lock {
    position: relative;
    width: 18px;
    height: 22px;
}

.lock-shackle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 12px;
    height: 10px;
    transform: translateX(-50%);
    border: 2.5px solid #bf953f;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    animation: shackleGlow 3s ease-in-out infinite;
}

.lock-body {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 14px;
    background: linear-gradient(180deg, #ffd277, #bf953f);
    border-radius: 3px;
    box-shadow: 0 0 8px rgba(191, 149, 63, 0.2);
}

.lock-keyhole {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 6px;
    background: #0a0a0f;
    border-radius: 50% 50% 2px 2px;
    animation: keyholeFlicker 2.5s ease-in-out infinite;
}

.lock-keyhole::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    background: #0a0a0f;
    border-radius: 50%;
}

@keyframes shackleGlow {
    0%, 100% { border-color: #bf953f; filter: drop-shadow(0 0 2px rgba(191,149,63,0.2)); }
    50%      { border-color: #ffd277; filter: drop-shadow(0 0 6px rgba(255,210,119,0.5)); }
}

@keyframes keyholeFlicker {
    0%, 100% { box-shadow: 0 0 0 rgba(255,210,119,0); }
    50%      { box-shadow: 0 0 4px rgba(255,210,119,0.6); }
}


/* ── 4. EYE — transparency scanner ──────────────────────── */
.live-icon-eye {
    position: relative;
    width: 24px;
    height: 16px;
}

.eye-outer {
    position: absolute;
    inset: 0;
    border: 2px solid #bf953f;
    border-radius: 75% 75% 75% 75% / 100% 100% 50% 50%;
    transform: scaleY(0.85);
    animation: eyeBlink 4s ease-in-out infinite;
}

.eye-iris {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    transform: translate(-50%, -50%);
    border: 1.5px solid rgba(191, 149, 63, 0.6);
    border-radius: 50%;
    animation: irisGlow 3s ease-in-out infinite;
}

.eye-pupil {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    background: #ffd277;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 6px rgba(255, 210, 119, 0.8);
    animation: pupilLook 5s ease-in-out infinite;
}

.eye-scan {
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent, #ffd277, transparent);
    opacity: 0.6;
    animation: scanLine 3s ease-in-out infinite;
}

@keyframes eyeBlink {
    0%, 42%, 48%, 100% { transform: scaleY(0.85); }
    45%                { transform: scaleY(0.1); }
}

@keyframes irisGlow {
    0%, 100% { border-color: rgba(191, 149, 63, 0.4); }
    50%      { border-color: rgba(255, 210, 119, 0.8); }
}

@keyframes pupilLook {
    0%, 100% { transform: translate(-50%, -50%); }
    20%      { transform: translate(-70%, -50%); }
    40%      { transform: translate(-30%, -50%); }
    60%      { transform: translate(-50%, -40%); }
    80%      { transform: translate(-50%, -60%); }
}

@keyframes scanLine {
    0%, 70% { left: -2px; opacity: 0; }
    75%     { opacity: 0.6; }
    90%     { left: calc(100% + 2px); opacity: 0.6; }
    95%     { opacity: 0; }
    100%    { left: calc(100% + 2px); opacity: 0; }
}


/* ── 5. DNA — consent helix ──────────────────────────────── */
.live-icon-dna {
    position: relative;
    width: 16px;
    height: 24px;
    animation: dnaFloat 4s ease-in-out infinite;
}

.dna-strand {
    position: absolute;
    width: 100%;
    height: 100%;
}

.dna-strand-1 {
    border-left: 2px solid #bf953f;
    border-radius: 0;
    animation: helixSpin1 3s ease-in-out infinite;
}

.dna-strand-2 {
    border-right: 2px solid #ffd277;
    border-radius: 0;
    animation: helixSpin2 3s ease-in-out infinite;
}

.dna-rung {
    position: absolute;
    left: 2px;
    right: 2px;
    height: 1.5px;
    background: linear-gradient(90deg, #bf953f, #ffd277);
    border-radius: 1px;
}

.dna-rung-1 { top: 20%; animation: rungPulse 3s ease-in-out 0s infinite; }
.dna-rung-2 { top: 50%; animation: rungPulse 3s ease-in-out 0.4s infinite; }
.dna-rung-3 { top: 80%; animation: rungPulse 3s ease-in-out 0.8s infinite; }

@keyframes dnaFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-2px) rotate(5deg); }
}

@keyframes helixSpin1 {
    0%   { transform: scaleX(1); }
    25%  { transform: scaleX(0.3); }
    50%  { transform: scaleX(1); }
    75%  { transform: scaleX(0.3); }
    100% { transform: scaleX(1); }
}

@keyframes helixSpin2 {
    0%   { transform: scaleX(0.3); }
    25%  { transform: scaleX(1); }
    50%  { transform: scaleX(0.3); }
    75%  { transform: scaleX(1); }
    100% { transform: scaleX(0.3); }
}

@keyframes rungPulse {
    0%, 100% { opacity: 0.5; width: 60%; left: 20%; }
    50%      { opacity: 1; width: 85%; left: 7.5%; background: linear-gradient(90deg, #ffd277, #fcf6ba, #ffd277); }
}
