:root {
    --astra-bg: #030303;
    --astra-accent: #7c3aed;
    --astra-accent-soft: #a78bfa;
    --astra-text: #ffffff;
    --astra-muted: #94a3b8;

    --glass-bg: rgba(255, 255, 255, 0.07);
    --glass-border: rgba(255, 255, 255, 0.14);
    --glass-blur: blur(24px) saturate(160%);
    --glass-shadow: 0 4px 24px rgba(0, 0, 0, 0.4),
                    inset 0 1px 0 rgba(255, 255, 255, 0.22),
                    inset 0 -1px 0 rgba(255, 255, 255, 0.04);
    --glass-shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.45),
                          0 0 24px rgba(124, 58, 237, 0.18),
                          inset 0 1px 0 rgba(255, 255, 255, 0.28),
                          inset 0 -1px 0 rgba(255, 255, 255, 0.06);
}

html, body {
    background-color: #07060f;
    background-image: url('/bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: var(--astra-text);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* Global glow overlay — lives on body so nothing clips it */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 88% 12%, rgba(168, 50, 230, 0.55) 0%, rgba(168, 50, 230, 0) 50%),
        radial-gradient(ellipse at 12% 78%, rgba(90, 70, 180, 0.35) 0%, rgba(90, 70, 180, 0) 46%);
    pointer-events: none;
    z-index: 0;
}

/* Ensure page content sits above the body::before glow */
#app, .page, main, article {
    position: relative;
    z-index: 1;
}

.astra-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: var(--glass-shadow);
}

.btn-astra {
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: bold;
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.45),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn-astra:hover:not(:disabled) {
    opacity: 0.92;
    transform: translateY(-1px);
    box-shadow: 0 0 28px rgba(124, 58, 237, 0.6),
                inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* Mobile: fixed background attachment janks/breaks on iOS Safari and Android Chrome */
@media (max-width: 768px) {
    html, body {
        background-attachment: scroll;
    }
}
