/* ═══════════════════════════════════════════════════════════════
   AEGIS WELCOME POPUP — Glasmorph Willkommens-Overlay
   Author: Tom Sanders & Claude | Silicon Networks
   ═══════════════════════════════════════════════════════════════ */

.aw-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 30000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: transparent;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.aw-overlay.active { display: flex; opacity: 1; }

.aw-card {
    position: relative;
    width: 100%;
    max-width: 520px;
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1.5px solid rgba(0,201,167,0.25);
    border-radius: 20px;
    box-shadow: 0 30px 90px rgba(0,0,0,0.45), inset 0 0 0 1px rgba(255,255,255,0.04);
    padding: 40px 36px 30px;
    text-align: center;
    transform: translateY(30px) scale(0.96);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.16,1,0.3,1), opacity 0.5s ease;
}
.aw-overlay.active .aw-card { transform: translateY(0) scale(1); opacity: 1; }

.aw-close {
    position: absolute;
    top: 16px; right: 20px;
    font-size: 1.5rem; line-height: 1;
    color: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: color 0.3s;
}
.aw-close:hover { color: rgba(255,255,255,0.85); }

.aw-shield { width: 180px; height: 180px; margin: 0 auto 20px; display: block; overflow: visible; }

.aw-hook {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem; font-weight: 600; letter-spacing: 2px;
    text-transform: uppercase; color: rgba(255,255,255,0.75);
    margin: 0 0 8px;
}
.aw-hook strong { color: #ffaa00; }

.aw-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.7rem; font-weight: 700; letter-spacing: 3px;
    text-transform: uppercase; color: #00c9a7;
    margin: 0 0 10px;
    text-shadow: 0 0 30px rgba(0,201,167,0.3);
}
.aw-sub {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem; line-height: 1.7;
    color: rgba(255,255,255,0.6); letter-spacing: 0.3px;
    margin: 0 0 24px;
}
.aw-sub strong { color: rgba(0,201,167,0.9); font-weight: 700; }

.aw-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }

.aw-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 14px;
    font-family: 'Rajdhani', sans-serif; font-size: 0.92rem; font-weight: 700;
    letter-spacing: 1.3px; text-transform: uppercase; text-decoration: none;
    color: #00c9a7;
    background: rgba(0,201,167,0.06);
    border: 1px solid rgba(0,201,167,0.35);
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
.aw-btn:hover { background: rgba(0,201,167,0.16); border-color: rgba(0,201,167,0.7); transform: translateY(-2px); }
.aw-btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.aw-btn-primary {
    grid-column: 1 / -1;
    background: rgba(0,201,167,0.14);
    border-color: rgba(0,201,167,0.6);
    color: #fff;
}
.aw-btn-primary:hover { background: rgba(0,201,167,0.26); }

.aw-btn-wide { grid-column: 1 / -1; }

.aw-later {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace; font-size: 0.78rem;
    color: rgba(255,255,255,0.35); letter-spacing: 1px;
    cursor: pointer; text-decoration: none;
    margin-top: 6px; transition: color 0.3s;
}
.aw-later:hover { color: rgba(255,255,255,0.6); }

/* ── Light Theme (Frost) ── */
body:not(.theme-grey):not(.theme-dark):not(.theme-olive) .aw-card {
    background: rgba(255,255,255,0.72);
    border-color: rgba(0,160,130,0.3);
    box-shadow: 0 30px 90px rgba(0,0,0,0.18);
}
body:not(.theme-grey):not(.theme-dark):not(.theme-olive) .aw-sub { color: rgba(0,0,0,0.6); }
body:not(.theme-grey):not(.theme-dark):not(.theme-olive) .aw-close { color: rgba(0,0,0,0.4); }
body:not(.theme-grey):not(.theme-dark):not(.theme-olive) .aw-close:hover { color: rgba(0,0,0,0.8); }
body:not(.theme-grey):not(.theme-dark):not(.theme-olive) .aw-title { color: rgba(0,140,115,1); }
body:not(.theme-grey):not(.theme-dark):not(.theme-olive) .aw-later { color: rgba(0,0,0,0.4); }
body:not(.theme-grey):not(.theme-dark):not(.theme-olive) .aw-btn { color: rgba(0,80,65,0.85); border-color: rgba(0,160,130,0.4); }
body:not(.theme-grey):not(.theme-dark):not(.theme-olive) .aw-btn:hover { background: rgba(0,160,130,0.12); border-color: rgba(0,160,130,0.6); }
body:not(.theme-grey):not(.theme-dark):not(.theme-olive) .aw-btn-primary { color: #006b52; background: rgba(0,180,140,0.15); border-color: rgba(0,160,130,0.5); }
body:not(.theme-grey):not(.theme-dark):not(.theme-olive) .aw-btn-primary:hover { background: rgba(0,160,130,0.25); }
body:not(.theme-grey):not(.theme-dark):not(.theme-olive) .aw-hook { color: rgba(0,0,0,0.65); }

/* ── Mobile ── */
@media (max-width: 520px) {
    .aw-btns { grid-template-columns: 1fr; }
    .aw-title { font-size: 1.4rem; }
    .aw-card { padding: 32px 22px 26px; }
    .aw-shield { width: 130px; height: 130px; }
}
