:root {
    --neon-teal: #00ffe0;
    --teal-glow: rgba(0, 255, 224, 0.4);
    --bg-deep: #050a14;
    --bg-card: #0d1425;
    --text-main: #f0f3f9;
    --accent-red: #ff4d4d;
}

/* APP WRAPPER - Fullscreen Overlay to separate from Theme */
#wpex-exam-app {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-deep);
    color: var(--text-main);
    line-height: 1.6;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 99999;
    overflow-y: auto;
}

#wpex-exam-app * {
    box-sizing: border-box;
}

/* Views Logic */
.wpex-view-container {
    display: none;
}
.wpex-view-container.active {
    display: block;
}

/* Background UI */
#wpex-bg-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -2;
    background: radial-gradient(circle at 50% 50%, #0a1628 0%, #050a14 100%);
}

.wpex-grid-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: linear-gradient(rgba(0, 255, 224, 0.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(0, 255, 224, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
    mask-image: radial-gradient(ellipse at center, black, transparent 90%);
    pointer-events: none;
}

.wpex-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 5%;
}

.wpex-btn-main {
    padding: 1.2rem 2.5rem;
    background: var(--neon-teal);
    color: var(--bg-deep);
    border: none;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
    text-decoration: none;
    margin-top: 20px;
}

.wpex-btn-main:hover {
    box-shadow: 0 0 30px var(--neon-teal);
    transform: translateY(-2px);
}
.wpex-btn-main:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* HERO */
.wpex-hero {
    min-height: 100vh;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.wpex-brand-decorative {
    font-family: 'Audiowide', cursive;
    color: var(--neon-teal);
    letter-spacing: 4px;
    text-transform: uppercase;
    font-size: 1.2rem;
}
.wpex-hero h1 {
    font-family: 'Audiowide', cursive;
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 800;
    margin-top: 1rem;
    color: #fff;
}
.wpex-hero h1 span {
    color: var(--neon-teal);
    display: block;
    text-shadow: 0 0 20px var(--teal-glow);
}

/* REGISTRATION */
.wpex-reg-portal {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 0;
}
.wpex-reg-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    width: 100%;
    max-width: 640px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    overflow: hidden;
    position: relative;
}
.wpex-reg-banner {
    width: 100%;
    height: 160px;
    background: linear-gradient(135deg, #0a1628 0%, var(--bg-card) 100%);
    position: relative;
    border-bottom: 4px solid var(--neon-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}
.wpex-banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.wpex-reg-banner span {
    font-family: 'Audiowide', cursive;
    color: var(--neon-teal);
    font-size: 1.5rem;
    z-index: 1;
    text-shadow: 0 0 10px var(--teal-glow);
    letter-spacing: 2px;
    background: rgba(0,0,0,0.5);
    padding: 5px 10px;
    border-radius: 4px;
    position: relative;
}
.wpex-reg-form-content {
    padding: 3rem 2.5rem;
}
.wpex-reg-card h2 {
    text-align: left;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: white;
    font-family: 'Inter', sans-serif;
}

.wpex-input-group {
    margin-bottom: 1.5rem;
}
.wpex-input-group input {
    width: 100%;
    padding: 1rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    color: white;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.wpex-input-group input:focus {
    outline: none;
    border-color: var(--neon-teal);
    background: rgba(0, 255, 224, 0.02);
}

/* Rules */
.wpex-rules-box {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.wpex-rules-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.2rem;
    font-weight: 700;
    color: #f1c40f;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.wpex-rules-list {
    list-style: none;
    padding: 0;
}
.wpex-rules-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    opacity: 0.75;
    line-height: 1.4;
}
.wpex-rules-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--neon-teal);
}

/* QUIZ UI */
.wpex-quiz-portal {
    min-height: 100vh;
}
.wpex-quiz-header {
    background: #1a202c;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: monospace;
    font-size: 1.2rem;
    border-bottom: 2px solid var(--neon-teal);
    position: sticky;
    top: 0;
    z-index: 100;
}
.wpex-quiz-content {
    max-width: 900px;
    margin: 3rem auto;
    padding: 0 5%;
    padding-bottom: 80px;
}
.wpex-question-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
}
.wpex-question-card h3 {
    margin-bottom: 2rem;
    color: var(--neon-teal);
    font-size: 1.3rem;
    margin-top: 0;
}
.wpex-option {
    display: flex;
    align-items: center;
    padding: 1.2rem;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: 0.2s;
}
.wpex-option:hover {
    background: rgba(0, 255, 224, 0.05);
    border-color: var(--neon-teal);
}
.wpex-option.selected {
    background: rgba(0, 255, 224, 0.1);
    border-color: var(--neon-teal);
}
.wpex-option input {
    margin-right: 1.5rem;
    accent-color: var(--neon-teal);
    width: 20px;
    height: 20px;
}

.wpex-finish-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--accent-red);
    color: white;
    text-align: center;
    padding: 1rem;
    cursor: pointer;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    z-index: 100;
}
.wpex-finish-bar:hover {
    background: #d63031;
}