/* ============================================
   AI EXAM COACH - ROBOTIC HUD INTERFACE
   Cyberpunk/Sci-Fi Theme with Circuit Patterns
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Share+Tech+Mono&display=swap');

:root {
    --ai-bg-dark: #050510;
    --ai-bg-secondary: #0a0a1f;
    --ai-bg-card: #0f0f2a;
    --ai-primary: #00f5ff;
    --ai-secondary: #ff00ff;
    --ai-accent: #f59e0b;
    --ai-success: #00ff88;
    --ai-danger: #ff3366;
    --ai-warning: #ffaa00;
    --ai-text: #e0f7ff;
    --ai-text-muted: #6b8899;

    /* Neon Glows */
    --glow-cyan: 0 0 10px #00f5ff, 0 0 20px #00f5ff, 0 0 40px #00f5ff;
    --glow-magenta: 0 0 10px #ff00ff, 0 0 20px #ff00ff, 0 0 40px #ff00ff;
    --glow-green: 0 0 10px #00ff88, 0 0 20px #00ff88;
}

/* =============== BASE & BACKGROUND =============== */
.ai-coach-page {
    min-height: 100vh;
    background: var(--ai-bg-dark);
    color: var(--ai-text);
    font-family: 'Orbitron', monospace;
    overflow-x: hidden;
    position: relative;
}

/* Circuit Board Pattern */
.ai-coach-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        /* Horizontal lines */
        repeating-linear-gradient(0deg,
            transparent,
            transparent 60px,
            rgba(0, 245, 255, 0.03) 60px,
            rgba(0, 245, 255, 0.03) 61px),
        /* Vertical lines */
        repeating-linear-gradient(90deg,
            transparent,
            transparent 60px,
            rgba(0, 245, 255, 0.03) 60px,
            rgba(0, 245, 255, 0.03) 61px),
        /* Diagonal circuit paths */
        linear-gradient(45deg, transparent 48%, rgba(0, 245, 255, 0.02) 49%, rgba(0, 245, 255, 0.02) 51%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(255, 0, 255, 0.01) 49%, rgba(255, 0, 255, 0.01) 51%, transparent 52%);
    background-size: 60px 60px, 60px 60px, 120px 120px, 120px 120px;
    pointer-events: none;
    z-index: 0;
    animation: circuit-pulse 4s ease-in-out infinite;
}

@keyframes circuit-pulse {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

/* HUD Scanline Effect */
.ai-coach-page::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.15) 2px,
            rgba(0, 0, 0, 0.15) 4px);
    pointer-events: none;
    z-index: 100;
    animation: scanline-move 10s linear infinite;
}

@keyframes scanline-move {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(100px);
    }
}

/* =============== HUD CORNERS & BORDERS =============== */
.hud-frame {
    position: relative;
    border: 2px solid transparent;
    background:
        linear-gradient(var(--ai-bg-card), var(--ai-bg-card)) padding-box,
        linear-gradient(135deg, var(--ai-primary), var(--ai-secondary), var(--ai-primary)) border-box;
    clip-path: polygon(0 15px, 15px 0, calc(100% - 15px) 0, 100% 15px,
            100% calc(100% - 15px), calc(100% - 15px) 100%, 15px 100%, 0 calc(100% - 15px));
}

.hud-frame::before,
.hud-frame::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border: 2px solid var(--ai-primary);
    z-index: 2;
}

.hud-frame::before {
    top: -2px;
    left: -2px;
    border-right: none;
    border-bottom: none;
    animation: corner-glow 2s ease-in-out infinite;
}

.hud-frame::after {
    bottom: -2px;
    right: -2px;
    border-left: none;
    border-top: none;
    animation: corner-glow 2s ease-in-out infinite 1s;
}

@keyframes corner-glow {

    0%,
    100% {
        box-shadow: var(--glow-cyan);
    }

    50% {
        box-shadow: none;
    }
}

/* =============== FLOATING PARTICLES =============== */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: var(--ai-primary);
    border-radius: 50%;
    animation: float-particle 20s infinite linear;
    box-shadow: 0 0 10px var(--ai-primary);
}

.particle.type-a {
    width: 3px;
    height: 3px;
}

.particle.type-b {
    width: 2px;
    height: 2px;
    background: var(--ai-secondary);
    box-shadow: 0 0 10px var(--ai-secondary);
}

.particle.type-c {
    width: 4px;
    height: 4px;
    background: var(--ai-success);
    box-shadow: 0 0 10px var(--ai-success);
}

@keyframes float-particle {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    5% {
        opacity: 0.8;
    }

    95% {
        opacity: 0.8;
    }

    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

/* =============== DATA STREAM EFFECT =============== */
.data-stream {
    position: fixed;
    top: 0;
    width: 1px;
    height: 100vh;
    background: linear-gradient(180deg,
            transparent 0%,
            var(--ai-primary) 20%,
            var(--ai-primary) 80%,
            transparent 100%);
    animation: data-flow 3s linear infinite;
    opacity: 0.3;
}

@keyframes data-flow {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(100%);
    }
}

/* =============== MODE SELECT CONTAINER =============== */
.mode-select-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    z-index: 10;
}

/* =============== ROBOTIC MODE CARDS =============== */
.mode-card {
    background:
        linear-gradient(135deg, rgba(0, 245, 255, 0.05), rgba(255, 0, 255, 0.03)),
        var(--ai-bg-card);
    border: 2px solid var(--ai-primary);
    border-radius: 0;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    clip-path: polygon(0 20px, 20px 0, calc(100% - 20px) 0, 100% 20px,
            100% calc(100% - 20px), calc(100% - 20px) 100%, 20px 100%, 0 calc(100% - 20px));
    transition: all 0.3s ease;
}

/* Corner Brackets */
.mode-card::before {
    content: '[ ]';
    position: absolute;
    top: 10px;
    left: 15px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.8rem;
    color: var(--ai-primary);
    opacity: 0.5;
}

.mode-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(0, 245, 255, 0.2),
            transparent);
    transition: left 0.6s ease;
}

.mode-card:hover::after {
    left: 150%;
}

.mode-card:hover {
    border-color: var(--ai-success);
    box-shadow: var(--glow-cyan), inset 0 0 30px rgba(0, 245, 255, 0.1);
    transform: scale(1.02);
}

.mode-card.ai-mode {
    border-color: var(--ai-secondary);
}

.mode-card.ai-mode:hover {
    border-color: var(--ai-secondary);
    box-shadow: var(--glow-magenta), inset 0 0 30px rgba(255, 0, 255, 0.1);
}

/* =============== MODE ICON (HEXAGONAL) =============== */
.mode-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mode-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--ai-primary), var(--ai-secondary));
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    animation: hex-rotate 10s linear infinite;
}

.mode-icon i {
    position: relative;
    z-index: 1;
    font-size: 2.5rem;
    color: var(--ai-bg-dark);
}

@keyframes hex-rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.ai-mode .mode-icon::before {
    background: linear-gradient(135deg, var(--ai-secondary), #ff6b6b);
}

/* =============== TITLE STYLING =============== */
.mode-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    background: linear-gradient(90deg, var(--ai-primary), var(--ai-text), var(--ai-primary));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: text-shine 3s linear infinite;
}

@keyframes text-shine {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

.mode-description {
    font-family: 'Share Tech Mono', monospace;
    color: var(--ai-text-muted);
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* =============== BUTTONS =============== */
.mode-btn,
.ai-btn-primary {
    background: transparent;
    color: var(--ai-primary);
    border: 2px solid var(--ai-primary);
    padding: 1rem 2.5rem;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}

.mode-btn::before,
.ai-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--ai-primary), transparent);
    transition: left 0.4s ease;
}

.mode-btn:hover,
.ai-btn-primary:hover {
    background: var(--ai-primary);
    color: var(--ai-bg-dark);
    box-shadow: var(--glow-cyan);
}

.mode-btn:hover::before,
.ai-btn-primary:hover::before {
    left: 100%;
}

.ai-mode .mode-btn {
    border-color: var(--ai-secondary);
    color: var(--ai-secondary);
}

.ai-mode .mode-btn:hover {
    background: var(--ai-secondary);
    box-shadow: var(--glow-magenta);
}

.ai-btn-primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* =============== BETA BADGE =============== */
.beta-badge {
    position: absolute;
    top: 15px;
    right: -35px;
    background: linear-gradient(135deg, var(--ai-warning), #ff6b35);
    color: var(--ai-bg-dark);
    padding: 5px 45px;
    font-size: 0.65rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    transform: rotate(45deg);
    font-family: 'Orbitron', monospace;
    box-shadow: 0 0 20px rgba(255, 170, 0, 0.5);
}

/* =============== ROBOT AVATAR (ENHANCED) =============== */
.robot-container {
    width: 180px;
    height: 200px;
    margin: 0 auto 2rem;
    position: relative;
}

.robot-avatar {
    width: 100%;
    height: 100%;
    position: relative;
    animation: robot-hover 3s ease-in-out infinite;
}

@keyframes robot-hover {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-10px) rotate(-1deg);
    }

    75% {
        transform: translateY(-10px) rotate(1deg);
    }
}

/* Robot Head - More Mechanical */
.robot-head {
    width: 110px;
    height: 90px;
    background:
        linear-gradient(180deg, #1a3a5c 0%, #0d1f30 100%);
    border: 3px solid var(--ai-primary);
    margin: 0 auto;
    position: relative;
    clip-path: polygon(10% 0%, 90% 0%, 100% 15%, 100% 85%, 90% 100%, 10% 100%, 0% 85%, 0% 15%);
    box-shadow:
        var(--glow-cyan),
        inset 0 0 20px rgba(0, 245, 255, 0.2);
}

/* Circuit pattern on head */
.robot-head::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    background:
        linear-gradient(90deg, transparent 48%, rgba(0, 245, 255, 0.3) 50%, transparent 52%),
        linear-gradient(0deg, transparent 48%, rgba(0, 245, 255, 0.3) 50%, transparent 52%);
    background-size: 20px 20px;
    opacity: 0.5;
}

/* Visor / Eye Section */
.robot-visor {
    width: 80px;
    height: 25px;
    background: linear-gradient(180deg, #000 0%, #0a2035 100%);
    border: 2px solid var(--ai-primary);
    margin: 20px auto 0;
    position: relative;
    clip-path: polygon(5% 0%, 95% 0%, 100% 100%, 0% 100%);
    overflow: hidden;
}

.robot-visor::after {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 245, 255, 0.8), transparent);
    animation: visor-scan 2s linear infinite;
}

@keyframes visor-scan {
    0% {
        left: -50%;
    }

    100% {
        left: 150%;
    }
}

.robot-eyes {
    display: flex;
    justify-content: center;
    gap: 25px;
    padding-top: 25px;
}

.robot-eye {
    width: 22px;
    height: 22px;
    background: radial-gradient(circle, var(--ai-primary) 40%, #00a0a0 100%);
    border-radius: 50%;
    animation: eye-pulse 2s ease-in-out infinite;
    box-shadow: var(--glow-cyan);
    position: relative;
}

.robot-eye::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
}

@keyframes eye-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(0.9);
        opacity: 0.8;
    }

    95%,
    96% {
        transform: scaleY(0.1);
    }
}

/* Robot Mouth / Speaker */
.robot-mouth {
    width: 50px;
    height: 12px;
    background: var(--ai-bg-dark);
    border: 2px solid var(--ai-primary);
    margin: 12px auto 0;
    position: relative;
    display: flex;
    gap: 3px;
    padding: 2px;
    justify-content: center;
    align-items: center;
}

.robot-mouth span {
    width: 4px;
    height: 4px;
    background: var(--ai-primary);
    animation: mouth-bar 0.3s ease-in-out infinite alternate;
}

.robot-mouth span:nth-child(1) {
    animation-delay: 0s;
}

.robot-mouth span:nth-child(2) {
    animation-delay: 0.1s;
}

.robot-mouth span:nth-child(3) {
    animation-delay: 0.2s;
}

.robot-mouth span:nth-child(4) {
    animation-delay: 0.1s;
}

.robot-mouth span:nth-child(5) {
    animation-delay: 0s;
}

@keyframes mouth-bar {
    0% {
        height: 3px;
    }

    100% {
        height: 8px;
    }
}

.robot-mouth:not(.speaking) span {
    animation: none;
    height: 4px;
    opacity: 0.5;
}

/* Robot Antenna */
.robot-antenna {
    width: 6px;
    height: 35px;
    background: linear-gradient(180deg, var(--ai-primary), var(--ai-secondary));
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 3px;
}

.robot-antenna::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: var(--ai-secondary);
    border-radius: 50%;
    box-shadow: var(--glow-magenta);
    animation: antenna-pulse 1s ease-in-out infinite;
}

@keyframes antenna-pulse {

    0%,
    100% {
        transform: translateX(-50%) scale(1);
        opacity: 1;
    }

    50% {
        transform: translateX(-50%) scale(1.3);
        opacity: 0.7;
    }
}

/* Robot Body */
.robot-body {
    width: 70px;
    height: 50px;
    background: linear-gradient(180deg, #1a3a5c 0%, #0d1f30 100%);
    margin: 8px auto 0;
    border: 2px solid var(--ai-primary);
    position: relative;
    clip-path: polygon(10% 0%, 90% 0%, 100% 100%, 0% 100%);
}

/* Chest Display */
.robot-body::before {
    content: '◉';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    color: var(--ai-success);
    animation: chest-glow 1.5s ease-in-out infinite;
}

@keyframes chest-glow {

    0%,
    100% {
        text-shadow: 0 0 10px var(--ai-success);
    }

    50% {
        text-shadow: 0 0 25px var(--ai-success), 0 0 35px var(--ai-success);
    }
}

/* =============== VOICE WAVE =============== */
.voice-wave-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 4px;
    height: 50px;
    margin: 1.5rem 0;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 245, 255, 0.2);
    border-radius: 5px;
}

.voice-wave-bar {
    width: 5px;
    background: linear-gradient(180deg, var(--ai-primary), var(--ai-secondary));
    border-radius: 2px;
    transition: height 0.1s ease;
}

.voice-wave-bar:nth-child(1) {
    height: 15px;
    animation: wave-1 0.5s ease-in-out infinite;
}

.voice-wave-bar:nth-child(2) {
    height: 25px;
    animation: wave-2 0.5s ease-in-out infinite;
}

.voice-wave-bar:nth-child(3) {
    height: 40px;
    animation: wave-3 0.5s ease-in-out infinite;
}

.voice-wave-bar:nth-child(4) {
    height: 30px;
    animation: wave-4 0.5s ease-in-out infinite;
}

.voice-wave-bar:nth-child(5) {
    height: 20px;
    animation: wave-5 0.5s ease-in-out infinite;
}

.voice-wave-bar:nth-child(6) {
    height: 35px;
    animation: wave-3 0.5s ease-in-out infinite 0.1s;
}

.voice-wave-bar:nth-child(7) {
    height: 15px;
    animation: wave-1 0.5s ease-in-out infinite 0.2s;
}

@keyframes wave-1 {

    0%,
    100% {
        height: 15px;
    }

    50% {
        height: 30px;
    }
}

@keyframes wave-2 {

    0%,
    100% {
        height: 25px;
    }

    50% {
        height: 40px;
    }
}

@keyframes wave-3 {

    0%,
    100% {
        height: 40px;
    }

    50% {
        height: 20px;
    }
}

@keyframes wave-4 {

    0%,
    100% {
        height: 30px;
    }

    50% {
        height: 45px;
    }
}

@keyframes wave-5 {

    0%,
    100% {
        height: 20px;
    }

    50% {
        height: 35px;
    }
}

.voice-wave-container:not(.speaking) .voice-wave-bar {
    animation: none !important;
    height: 8px !important;
    opacity: 0.3;
}

/* =============== AI SECTION CONTAINERS =============== */
.ai-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    z-index: 10;
}

/* =============== HUD GLASS CARD =============== */
.ai-glass-card {
    background:
        linear-gradient(135deg, rgba(0, 245, 255, 0.03), rgba(255, 0, 255, 0.02)),
        rgba(10, 10, 31, 0.95);
    border: 2px solid var(--ai-primary);
    padding: 2.5rem;
    max-width: 650px;
    width: 100%;
    text-align: center;
    position: relative;
    clip-path: polygon(0 15px, 15px 0, calc(100% - 15px) 0, 100% 15px,
            100% calc(100% - 15px), calc(100% - 15px) 100%, 15px 100%, 0 calc(100% - 15px));
    box-shadow:
        0 0 30px rgba(0, 245, 255, 0.1),
        inset 0 0 60px rgba(0, 245, 255, 0.03);
}

/* HUD Corner Decorations */
.ai-glass-card::before {
    content: '◢';
    position: absolute;
    top: 5px;
    left: 10px;
    font-size: 0.8rem;
    color: var(--ai-primary);
    opacity: 0.6;
}

.ai-glass-card::after {
    content: '◣';
    position: absolute;
    bottom: 5px;
    right: 10px;
    font-size: 0.8rem;
    color: var(--ai-primary);
    opacity: 0.6;
}

/* =============== INPUT FIELDS =============== */
.ai-input {
    width: 100%;
    padding: 1.2rem 1.5rem;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid var(--ai-primary);
    color: var(--ai-text);
    font-size: 1rem;
    font-family: 'Share Tech Mono', monospace;
    transition: all 0.3s;
    clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}

.ai-input:focus {
    outline: none;
    box-shadow: var(--glow-cyan);
    background: rgba(0, 245, 255, 0.05);
}

.ai-input::placeholder {
    color: var(--ai-text-muted);
}

/* =============== QUIZ INTERFACE =============== */
.quiz-container {
    max-width: 850px;
    width: 100%;
}

.quiz-progress {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 2rem;
}

.quiz-progress-dot {
    width: 45px;
    height: 45px;
    background: transparent;
    border: 2px solid var(--ai-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.quiz-progress-dot.active {
    background: var(--ai-primary);
    color: var(--ai-bg-dark);
    box-shadow: var(--glow-cyan);
    transform: scale(1.15);
}

.quiz-progress-dot.completed {
    background: var(--ai-success);
    border-color: var(--ai-success);
    color: var(--ai-bg-dark);
}

.quiz-question-card {
    background: rgba(10, 10, 31, 0.9);
    border: 2px solid var(--ai-primary);
    padding: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    clip-path: polygon(0 10px, 10px 0, calc(100% - 10px) 0, 100% 10px,
            100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px));
}

.quiz-question-text {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 2rem;
    line-height: 1.7;
    font-family: 'Share Tech Mono', monospace;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quiz-option {
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(0, 245, 255, 0.3);
    padding: 1.2rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
    font-family: 'Share Tech Mono', monospace;
}

.quiz-option:hover {
    border-color: var(--ai-primary);
    background: rgba(0, 245, 255, 0.1);
}

.quiz-option.selected {
    border-color: var(--ai-primary);
    background: rgba(0, 245, 255, 0.15);
    box-shadow: 0 0 15px rgba(0, 245, 255, 0.3);
}

.quiz-option.correct {
    border-color: var(--ai-success) !important;
    background: rgba(0, 255, 136, 0.15) !important;
    box-shadow: var(--glow-green);
}

.quiz-option.incorrect {
    border-color: var(--ai-danger) !important;
    background: rgba(255, 51, 102, 0.15) !important;
}

.option-letter {
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid var(--ai-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    flex-shrink: 0;
}

/* =============== RESULTS =============== */
.result-score-circle {
    width: 200px;
    height: 200px;
    margin: 0 auto 2rem;
    position: relative;
}

.result-score-ring {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(var(--ai-primary) calc(var(--score) * 1%),
            rgba(0, 245, 255, 0.1) calc(var(--score) * 1%));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--glow-cyan);
}

.result-score-inner {
    width: 160px;
    height: 160px;
    background: var(--ai-bg-dark);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--ai-primary);
}

.result-score-value {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--ai-primary);
    text-shadow: var(--glow-cyan);
}

.result-score-label {
    font-size: 0.9rem;
    color: var(--ai-text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* =============== STUDY PLAN =============== */
.study-plan-timeline {
    position: relative;
    padding-left: 40px;
}

.study-plan-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--ai-primary), var(--ai-secondary), var(--ai-success));
}

.study-plan-item {
    position: relative;
    margin-bottom: 1.5rem;
    background: rgba(10, 10, 31, 0.8);
    border: 1px solid rgba(0, 245, 255, 0.2);
    padding: 1.5rem;
    transition: all 0.3s;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.study-plan-item::before {
    content: '◆';
    position: absolute;
    left: -33px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ai-primary);
    font-size: 1rem;
    text-shadow: var(--glow-cyan);
}

.study-plan-item:hover {
    border-color: var(--ai-primary);
    transform: translateX(10px);
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.1);
}

.topic-badge {
    display: inline-block;
    background: transparent;
    border: 1px solid var(--ai-primary);
    color: var(--ai-primary);
    padding: 0.3rem 0.8rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.topic-badge.important {
    border-color: var(--ai-danger);
    color: var(--ai-danger);
}

.topic-badge.moderate {
    border-color: var(--ai-warning);
    color: var(--ai-warning);
}

/* =============== LEARNING SCREEN (NEW) =============== */
.learning-container {
    max-width: 900px;
    width: 100%;
}

.learning-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid var(--ai-primary);
    margin-bottom: 1.5rem;
    clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}

.learning-timer {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ai-primary);
    font-family: 'Share Tech Mono', monospace;
    display: flex;
    align-items: center;
    gap: 10px;
}

.learning-timer i {
    animation: timer-pulse 1s ease-in-out infinite;
}

@keyframes timer-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.learning-topic-title {
    font-size: 1.2rem;
    color: var(--ai-text);
}

.learning-content-card {
    background: rgba(10, 10, 31, 0.95);
    border: 2px solid var(--ai-primary);
    padding: 2rem;
    margin-bottom: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
    font-family: 'Share Tech Mono', monospace;
    line-height: 1.9;
    font-size: 1rem;
}

.learning-content-card::-webkit-scrollbar {
    width: 8px;
}

.learning-content-card::-webkit-scrollbar-track {
    background: var(--ai-bg-dark);
}

.learning-content-card::-webkit-scrollbar-thumb {
    background: var(--ai-primary);
    border-radius: 4px;
}

.learning-content-card h3 {
    color: var(--ai-primary);
    border-bottom: 1px solid var(--ai-primary);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.learning-content-card ul {
    margin-left: 1.5rem;
}

.learning-content-card li {
    margin-bottom: 0.8rem;
}

.learning-content-card strong {
    color: var(--ai-success);
}

.learning-progress-bar {
    height: 8px;
    background: rgba(0, 245, 255, 0.2);
    border-radius: 4px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.learning-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--ai-primary), var(--ai-success));
    transition: width 1s linear;
    box-shadow: 0 0 10px var(--ai-primary);
}

/* =============== LOGO =============== */
.ai-logo {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: var(--ai-primary);
    text-shadow: var(--glow-cyan);
}

.ai-tagline {
    color: var(--ai-text-muted);
    font-size: 1rem;
    letter-spacing: 3px;
    font-family: 'Share Tech Mono', monospace;
}

/* =============== LOADING =============== */
.ai-loading {
    display: inline-flex;
    gap: 8px;
}

.ai-loading-dot {
    width: 12px;
    height: 12px;
    background: var(--ai-primary);
    border-radius: 50%;
    animation: loading-bounce 1s ease-in-out infinite;
    box-shadow: 0 0 10px var(--ai-primary);
}

.ai-loading-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.ai-loading-dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes loading-bounce {

    0%,
    80%,
    100% {
        transform: scale(0.5);
        opacity: 0.5;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* =============== RESPONSIVE =============== */
@media (max-width: 768px) {
    .mode-card {
        padding: 2rem 1.5rem;
    }

    .mode-title {
        font-size: 1.2rem;
    }

    .robot-container {
        width: 140px;
        height: 160px;
    }

    .robot-head {
        width: 90px;
        height: 70px;
    }

    .ai-glass-card {
        padding: 1.5rem;
    }

    .quiz-question-text {
        font-size: 1.1rem;
    }

    .ai-logo {
        font-size: 1.6rem;
    }

    .learning-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}