@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

.glass-card {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(27, 67, 50, 0.06);
}

.custom-scrollbar::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #2d6a4f;
    border-radius: 10px;
}

.page-transition {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes pulse-soft {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.3;
        transform: scale(0.96);
    }
}

.typing-indicator span {
    animation: pulse-soft 1.2s infinite ease-in-out;
}

:root {
    --brand-500: #1b4332;
    --brand-700: #0f251c;
}

/* =========================================================================
   STUDYMATE HIGH-FIDELITY DARK MODE SYSTEM TOKENS (CSS OVERRIDES)
   ========================================================================= */

/* HTML/Body Base Transition & Background */
html.dark,
body.dark-theme-active {
    background-color: #111b15 !important;
    color: #e1efe9 !important;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Background overrides for container components */
.dark-theme-active #mainApplicationLayout,
.dark-theme-active main,
.dark-theme-active #page-dashboard,
.dark-theme-active #page-subjects,
.dark-theme-active #page-papers,
.dark-theme-active #page-quiz,
.dark-theme-active #page-pdfs,
.dark-theme-active #page-privacy,
.dark-theme-active #page-terms,
.dark-theme-active #page-support {
    background-color: #111b15 !important;
}

/* Header Component */
.dark-theme-active header {
    background-color: #1c2a22 !important;
    border-color: #2c3f35 !important;
    color: #ffffff !important;
}

.dark-theme-active header button {
    color: #a3b899 !important;
}

.dark-theme-active header button:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: #ffffff !important;
}

/* Search bar styling */
.dark-theme-active #globalSearch {
    background-color: #111b15 !important;
    border-color: #2c3f35 !important;
    color: #ffffff !important;
}

.dark-theme-active #globalSearch::placeholder {
    color: #8da383 !important;
}

/* Motivation banner in header */
.dark-theme-active header div.bg-brand-50 {
    background-color: #2c3f35 !important;
    border-color: #385143 !important;
    color: #e1efe9 !important;
}

/* Standard cards, glass-cards, list items, dynamic boxes */
.dark-theme-active .glass-card,
.dark-theme-active #subjectGrid>div,
.dark-theme-active #innerChaptersContainer>div,
.dark-theme-active #papersContainer>div,
.dark-theme-active #quizBox,
.dark-theme-active #pdfVaultGrid>div,
.dark-theme-active #page-privacy,
.dark-theme-active #page-terms,
.dark-theme-active #page-support,
.dark-theme-active #highYieldBlueprintSection>div,
.dark-theme-active #globalChapterNotesModalOverlay>div,
.dark-theme-active #privateGatewayModal>div {
    background-color: #1c2a22 !important;
    background-image: linear-gradient(145deg, #1c2a22 0%, #17221b 100%) !important;
    border-color: #2c3f35 !important;
    color: #e1efe9 !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.4) !important;
}

/* Text elements color overrides inside dark mode cards to guarantee contrast */
.dark-theme-active h1,
.dark-theme-active h2,
.dark-theme-active h3,
.dark-theme-active h4,
.dark-theme-active h5,
.dark-theme-active h6,
.dark-theme-active .font-bold.text-slate-800,
.dark-theme-active .text-slate-800 {
    color: #ffffff !important;
}

.dark-theme-active p,
.dark-theme-active span:not(.font-bold),
.dark-theme-active .text-slate-600,
.dark-theme-active .text-slate-500,
.dark-theme-active .text-slate-400 {
    color: #a3b899 !important;
}

/* Badge/Chips */
.dark-theme-active .bg-slate-100 {
    background-color: #2c3f35 !important;
    color: #e1efe9 !important;
}

/* Subject view cards icon backing / decoration styling */
.dark-theme-active #subjectGrid>div:hover {
    border-color: #2d6a4f !important;
}

.dark-theme-active #subjectGrid>div .text-slate-600 {
    background-color: #2c3f35 !important;
    color: #e1efe9 !important;
}

/* Detail view high-yield repeat blueprint list block */
.dark-theme-active #highYieldBlueprintSection>div.bg-gradient-to-br {
    background-image: linear-gradient(135deg, #24352a 0%, #1c2a22 100%) !important;
    border-color: #385143 !important;
}

.dark-theme-active #highYieldBlueprintSection h5 {
    color: #ffffff !important;
}

.dark-theme-active #highYieldBlueprintSection p.text-slate-600 {
    background-color: #111b15 !important;
    border-color: #2c3f35 !important;
    color: #e1efe9 !important;
}

.dark-theme-active #highYieldBlueprintSection p.text-amber-800 {
    color: #fbd38d !important;
}

/* Curriculum course chapters */
.dark-theme-active #innerChaptersContainer>div {
    border-color: #2c3f35 !important;
}

.dark-theme-active #innerChaptersContainer>div:hover {
    border-color: #2d6a4f !important;
}

.dark-theme-active #innerChaptersContainer .bg-brand-50 {
    background-color: #2c3f35 !important;
    color: #a3e635 !important;
}

.dark-theme-active #innerChaptersContainer button {
    color: #2d6a4f !important;
}

.dark-theme-active #innerChaptersContainer button:hover {
    color: #40916c !important;
}

/* MCQ Quiz box answers & buttons list overrides */
.dark-theme-active #quizAnswersButtonsWrapper button {
    background-color: #2c3f35 !important;
    border-color: #385143 !important;
    color: #e1efe9 !important;
}

.dark-theme-active #quizAnswersButtonsWrapper button:hover {
    background-color: #385143 !important;
    color: #ffffff !important;
}

/* PDF paper viewing frames */
.dark-theme-active #papersContainer>div {
    border-color: #2c3f35 !important;
}

.dark-theme-active #papersContainer button {
    background-color: #2c3f35 !important;
    border-color: #385143 !important;
    color: #e1efe9 !important;
}

.dark-theme-active #papersContainer button:hover {
    background-color: #385143 !important;
}

/* Modals overlays backgrounds */
.dark-theme-active #globalChapterNotesModalOverlay,
.dark-theme-active #privateGatewayModal {
    background-color: rgba(17, 27, 21, 0.8) !important;
}

.dark-theme-active #modalChapterNotesPayloadContainer>div {
    background-color: #2c3f35 !important;
    border-color: #385143 !important;
}

.dark-theme-active #modalChapterNotesPayloadContainer p {
    background-color: #111b15 !important;
    border-color: #2c3f35 !important;
    color: #e1efe9 !important;
}

/* PrivateGateway verification */
.dark-theme-active #gatewayPasswordInput {
    background-color: #111b15 !important;
    border-color: #2c3f35 !important;
    color: #ffffff !important;
}

/* Incognito Chat Sidebar overrides */
.dark-theme-active #privateSpaceDashboard {
    background-color: #111b15 !important;
}

.dark-theme-active #chatSidebarPanel {
    background-color: #1c2a22 !important;
    border-color: #2c3f35 !important;
}

.dark-theme-active #chatSidebarPanel .bg-slate-50 {
    background-color: #111b15 !important;
    border-color: #2c3f35 !important;
}

.dark-theme-active #targetChatPartnerInput {
    background-color: #1c2a22 !important;
    border-color: #2c3f35 !important;
    color: #ffffff !important;
}

.dark-theme-active #privateChatThreadsContainer {
    background-color: #1c2a22 !important;
}

.dark-theme-active #privateChatThreadsContainer>div:hover {
    background-color: #2c3f35 !important;
}

/* Chat Main Feed Header & logs overrides */
.dark-theme-active #chatMainWindowFeed {
    background-color: #111b15 !important;
}

.dark-theme-active #chatMainWindowFeed>div:first-child {
    background-color: #1c2a22 !important;
    border-color: #2c3f35 !important;
}

.dark-theme-active #activeChatHeaderTitle {
    color: #ffffff !important;
}

.dark-theme-active #privateChatContentLog {
    background-color: #111b15 !important;
}

/* Chat Input strip at the bottom */
.dark-theme-active #chatMainWindowFeed>div:last-child {
    background-color: #1c2a22 !important;
    border-color: #2c3f35 !important;
}

.dark-theme-active #chatSecureInputField {
    background-color: #111b15 !important;
    border-color: #2c3f35 !important;
    color: #ffffff !important;
}

.dark-theme-active #chatMainWindowFeed button.text-slate-500 {
    color: #a3b899 !important;
}

.dark-theme-active #chatMainWindowFeed button.text-slate-500:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: #ffffff !important;
}

.dark-theme-active #typingIndicatorWrapper {
    background-color: #111b15 !important;
    color: #8da383 !important;
}

/* Fullscreen Active Repeat Matrix Modal Portals */
.dark-theme-active #globalChapterNotesModalOverlay.fullscreen-active {
    background-color: #111b15 !important;
    background-image: none !important;
}

.dark-theme-active #globalChapterNotesModalOverlay.fullscreen-active>div {
    background-color: #111b15 !important;
    background-image: none !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

#globalChapterNotesModalOverlay.fullscreen-active {
    background-color: #ffffff;
}

#globalChapterNotesModalOverlay.fullscreen-active>div {
    background-color: transparent;
    border-color: transparent;
    box-shadow: none;
}

/* AI Widget Animation Utility Classes Overrides */
#aiChatWindowConsole.active-view-open {
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
}

#aiChatWindowConsole.active-view-open+#aiConsoleTriggerBubble {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: scale(0.8) !important;
    transition: all 0.3s ease !important;
}

.message-bubble-pop {
    animation: bubbleSlidePopUp 0.28s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes bubbleSlidePopUp {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* AI Console Premium Dark Mode Color Overrides */
.dark-theme-active #aiChatWindowConsole {
    background-color: #1c2a22 !important;
    border-color: #2c3f35 !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.5) !important;
}

.dark-theme-active #aiChatMessagesViewport {
    background-color: #111b15 !important;
}

.dark-theme-active #aiChatTerminalForm {
    background-color: #1c2a22 !important;
    border-color: #2c3f35 !important;
}

.dark-theme-active #aiTerminalInputQuery {
    background-color: #111b15 !important;
    border-color: #2c3f35 !important;
    color: #ffffff !important;
}

.dark-theme-active #aiTerminalInputQuery::placeholder {
    color: #8da383 !important;
}

.dark-theme-active #aiChatMessagesViewport .bg-white {
    background-color: #2c3f35 !important;
    border-color: #385143 !important;
    color: #ffffff !important;
}

.dark-theme-active #aiSystemLoaderBubble {
    background-color: #2c3f35 !important;
    border-color: #385143 !important;
}

/* =========================================================================
   💎 PREMIUM SUBSCRIPTION PAYWALL STYLES
   ========================================================================= */

/* Gradient animated text for "Premium" heading */
.premium-gradient-text {
    background: linear-gradient(135deg, #f59e0b 0%, #10b981 35%, #8b5cf6 70%, #f59e0b 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: premiumGradientShift 4s ease-in-out infinite;
}

@keyframes premiumGradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Plan Card Hover micro-animation */
.premium-plan-card {
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-plan-card:hover {
    transform: translateY(-4px);
}

.premium-plan-card.premium-plan-featured:hover {
    transform: translateY(-6px) scale(1.05);
}

/* Featured card glowing border accent */
.premium-plan-featured {
    box-shadow: 0 0 30px -5px rgba(16, 185, 129, 0.15), 0 10px 30px -10px rgba(0, 0, 0, 0.1);
}

.premium-plan-featured::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 1.5rem;
    padding: 2px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.6), rgba(20, 184, 166, 0.3), rgba(16, 185, 129, 0.6));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    animation: glowBorderRotate 3s linear infinite;
}

@keyframes glowBorderRotate {
    0% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.6;
    }
}

/* Premium Locked / Blurred content overlay for free-tier users */
.premium-locked-content {
    position: relative;
    overflow: hidden;
}

.premium-locked-content::after {
    content: '🔒 Premium Only';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    font-size: 12px;
    font-weight: 800;
    color: #1b4332;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: inherit;
    cursor: pointer;
    z-index: 5;
}

.dark-theme-active .premium-locked-content::after {
    background: rgba(17, 27, 21, 0.7);
    color: #fbbf24;
}

/* AI Limit Exhaustion Banner inside chat */
.ai-limit-banner {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #92400e;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    animation: bubbleSlidePopUp 0.28s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.dark-theme-active .ai-limit-banner {
    background: linear-gradient(135deg, #2c3f35 0%, #1c2a22 100%);
    border-color: #385143;
    color: #fbbf24;
}

/* Dark mode overrides for premium page cards */
.dark-theme-active #page-premium {
    background-color: #111b15 !important;
}

.dark-theme-active .premium-plan-card {
    background-color: #1c2a22 !important;
    background-image: linear-gradient(145deg, #1c2a22 0%, #17221b 100%) !important;
    border-color: #2c3f35 !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.4) !important;
}

.dark-theme-active .premium-plan-featured {
    box-shadow: 0 0 40px -5px rgba(16, 185, 129, 0.15), 0 15px 35px -10px rgba(0, 0, 0, 0.5) !important;
}

/* Custom Gateways Overlay Specific Transition Classes */
#customPrivateAuthModal.modal-visible {
    opacity: 1 !important;
}

#customPrivateAuthModal.modal-visible>div {
    transform: scale(1) !important;
}

/* =========================================================================
   🎙️ PREMIUM 3D VOICE ORB ANIMATIONS & STATES
   ========================================================================= */

.preserve-3d {
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* Base state transitions */
#orbCore,
#orbGlow,
#orbRing1,
#orbRing2 {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 1. IDLE STATE */
.voice-state-idle #orbCore {
    background: radial-gradient(circle at 30% 30%, #4b5563, #1f2937);
    box-shadow: 0 0 20px rgba(75, 85, 99, 0.3);
    transform: scale(1);
}

.voice-state-idle #orbGlow {
    background: #4b5563;
    transform: scale(1);
    opacity: 0.2;
}

.voice-state-idle #orbRing1 {
    transform: scale(1) rotateX(60deg) rotateY(0deg);
    border-color: rgba(255, 255, 255, 0.05);
}

.voice-state-idle #orbRing2 {
    transform: scale(1) rotateX(60deg) rotateY(90deg);
    border-color: rgba(255, 255, 255, 0.02);
}

/* 2. LISTENING STATE (Blue/Purple Pulse) */
.voice-state-listening #orbCore {
    background: radial-gradient(circle at 30% 30%, #8b5cf6, #3b82f6);
    animation: pulseListening 2s infinite ease-in-out;
}

.voice-state-listening #orbGlow {
    background: #6366f1;
    animation: pulseGlow 2s infinite ease-in-out;
}

.voice-state-listening #orbRing1 {
    animation: rotateRing1 4s infinite linear;
    border-color: rgba(99, 102, 241, 0.4);
}

.voice-state-listening #orbRing2 {
    animation: rotateRing2 5s infinite linear reverse;
    border-color: rgba(139, 92, 246, 0.4);
}

/* 3. PROCESSING STATE (Rotating Matrix Wave - Cyan/Blue) */
.voice-state-processing #orbCore {
    background: radial-gradient(circle at 30% 30%, #0ea5e9, #0284c7);
    animation: spinProcessing 1.5s infinite cubic-bezier(0.68, -0.55, 0.26, 1.55);
}

.voice-state-processing #orbGlow {
    background: #0ea5e9;
    transform: scale(1.2);
    opacity: 0.6;
}

.voice-state-processing #orbRing1 {
    animation: rotateRing1 1.5s infinite linear;
    border-color: rgba(14, 165, 233, 0.6);
}

.voice-state-processing #orbRing2 {
    animation: rotateRing2 2s infinite linear;
    border-color: rgba(2, 132, 199, 0.6);
}

/* 4. SPEAKING STATE (Vibrant Green Active Soundwave Scales) */
.voice-state-speaking #orbCore {
    background: radial-gradient(circle at 30% 30%, #22c55e, #15803d);
    animation: bounceSpeaking 0.4s infinite alternate cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.voice-state-speaking #orbGlow {
    background: #22c55e;
    animation: pulseSpeakingGlow 0.4s infinite alternate;
}

.voice-state-speaking #orbRing1 {
    animation: scaleRing 0.5s infinite alternate ease-in-out;
    border-color: rgba(34, 197, 94, 0.8);
}

.voice-state-speaking #orbRing2 {
    animation: scaleRing 0.7s infinite alternate ease-in-out;
    border-color: rgba(21, 128, 61, 0.6);
}

/* Keyframes */
@keyframes pulseListening {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
    }

    50% {
        transform: scale(1.08);
        box-shadow: 0 0 60px rgba(139, 92, 246, 0.8);
    }
}

@keyframes pulseGlow {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.3);
        opacity: 0.6;
    }
}

@keyframes rotateRing1 {
    0% {
        transform: rotateX(60deg) rotateY(0deg) rotateZ(0deg);
    }

    100% {
        transform: rotateX(60deg) rotateY(360deg) rotateZ(360deg);
    }
}

@keyframes rotateRing2 {
    0% {
        transform: rotateX(60deg) rotateY(90deg) rotateZ(0deg);
    }

    100% {
        transform: rotateX(60deg) rotateY(90deg) rotateZ(360deg);
    }
}

@keyframes spinProcessing {
    0% {
        transform: rotateY(0deg) rotateX(0deg);
    }

    100% {
        transform: rotateY(360deg) rotateX(180deg);
    }
}

@keyframes bounceSpeaking {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 40px rgba(34, 197, 94, 0.6);
    }

    100% {
        transform: scale(1.15);
        box-shadow: 0 0 80px rgba(34, 197, 94, 1);
    }
}

@keyframes pulseSpeakingGlow {
    0% {
        transform: scale(1);
        opacity: 0.4;
    }

    100% {
        transform: scale(1.5);
        opacity: 0.8;
    }
}

@keyframes scaleRing {
    0% {
        transform: scale(0.9);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* =========================================================================
   💎 PREMIUM DASHBOARD — ANIMATED BANNER, METRICS & INTERACTIONS
   ========================================================================= */

/* 1. PREMIUM TOP BANNER — deep gradient + animated mesh glow ball */
.premium-top-banner {
    background: linear-gradient(135deg, #11221e 0%, #16362f 100%) !important;
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 12px 40px rgba(17, 34, 30, 0.35), 0 2px 0 rgba(255, 255, 255, 0.04) inset;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Animated rotating radial mesh background orb */
.premium-top-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(46, 213, 115, 0.15) 0%, transparent 60%);
    animation: meshRotate 12s linear infinite;
    pointer-events: none;
}

/* Second subtle accent orb (top-right corner) */
.premium-top-banner::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 60%;
    height: 160%;
    background: radial-gradient(circle, rgba(46, 213, 115, 0.08) 0%, transparent 65%);
    animation: meshRotate 18s linear infinite reverse;
    pointer-events: none;
}

@keyframes meshRotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* 2. GLOWING RANK BADGE — amber pulse inside banner */
.premium-rank-badge {
    background: rgba(255, 165, 0, 0.15);
    color: #ffa500;
    border: 1px solid rgba(255, 165, 0, 0.4);
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 15px rgba(255, 165, 0, 0.2);
    animation: rankPulse 2s infinite alternate;
    white-space: nowrap;
    flex-shrink: 0;
}

@keyframes rankPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(255, 165, 0, 0.2);
    }

    100% {
        transform: scale(1.04);
        box-shadow: 0 0 22px rgba(255, 165, 0, 0.55);
    }
}

/* 3. LIVE STATUS DOT — for Active Channels metric */
.live-status-dot {
    width: 8px;
    height: 8px;
    background-color: #2ed573;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
    box-shadow: 0 0 10px #2ed573;
    animation: livePulse 1.5s infinite;
    flex-shrink: 0;
    vertical-align: middle;
}

@keyframes livePulse {
    0% {
        opacity: 0.3;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }

    100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
}

/* 4. METRIC CARD BOX — 3D lift + icon rotation on hover */
.metric-card-box {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.metric-card-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.09);
    border-color: rgba(22, 54, 47, 0.12);
}

.metric-card-box .icon-wrapper-container {
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.metric-card-box:hover .icon-wrapper-container {
    transform: rotate(8deg) scale(1.12);
}

/* 5. TRACK LIST ITEM ROW — left-border glow slide on hover */
.track-list-item {
    background: #ffffff;
    border-radius: 18px;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-left: 4px solid transparent;
}

.track-list-item:hover {
    background: linear-gradient(90deg, #ffffff 0%, #f4faf8 100%);
    border-left-color: #16362f;
    transform: translateX(4px);
    box-shadow: 0 6px 20px rgba(22, 54, 47, 0.07);
}

/* Dark mode companions */
.dark-theme-active .premium-top-banner {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 2px 0 rgba(255, 255, 255, 0.03) inset;
}

.dark-theme-active .metric-card-box {
    background-color: #1c2a22 !important;
    border-color: #2c3f35 !important;
    background-image: linear-gradient(145deg, #1c2a22 0%, #17221b 100%) !important;
}

.dark-theme-active .metric-card-box:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4) !important;
    border-color: #385143 !important;
}

.dark-theme-active .track-list-item {
    background: #1c2a22 !important;
    border-color: #2c3f35 !important;
    border-left-color: transparent !important;
}

.dark-theme-active .track-list-item:hover {
    background: linear-gradient(90deg, #1c2a22 0%, #243325 100%) !important;
    border-left-color: #2ed573 !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3) !important;
}

/* =========================================================================
   🖼️ PREMIUM DYNAMIC PROMOTIONAL CAROUSEL/SLIDER (16:9 Ratio)
   ========================================================================= */
.promo-carousel-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    /* Perfect YouTube Thumbnail Ratio */
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    background: #11221e;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.carousel-track {
    display: flex;
    width: 300%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-slide {
    width: 33.333%;
    height: 100%;
    position: relative;
}

.slide-poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(17, 34, 30, 0.8) 0%, transparent 60%);
    pointer-events: none;
}

.carousel-dots-wrapper {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.active-dot {
    background: #ffa500 !important;
    width: 20px;
    border-radius: 4px;
}

/* 1. LAYERED 3D NEON ACTION CARDS */
.action-track-card {
    background: rgba(255, 255, 255, 0.65) !important;
    backdrop-filter: blur(16px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.action-track-card:hover {
    transform: translateY(-6px) scale(1.01) rotateX(2deg);
    box-shadow: 0 20px 35px rgba(22, 54, 47, 0.12);
    background: #ffffff !important;
}

/* Specific left glow borders for high visual identity */
.quiz-card-premium {
    border-left: 5px solid #2ed573 !important;
}

.papers-card-premium {
    border-left: 5px solid #2f3542 !important;
}

/* 2. DYNAMIC HOT STREAK BOX & METALLIC SHIMMER */
.streak-premium-container {
    background: linear-gradient(135deg, rgba(255, 107, 12, 0.05) 0%, rgba(255, 165, 0, 0.12) 100%) !important;
    border: 1px solid rgba(255, 107, 12, 0.2) !important;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

/* Fire icon breathing pulse animation */
.streak-fire-pulse {
    animation: fireBreathing 1.2s ease-in-out infinite alternate;
}

@keyframes fireBreathing {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 2px #ff4757);
    }

    100% {
        transform: scale(1.18);
        filter: drop-shadow(0 0 8px #ff6b16);
    }
}

/* 3. GAMIFIED LEADERBOARD SYSTEM (PODIUM LINES) */
.leaderboard-row-premium {
    background: rgba(255, 255, 255, 0.5);
    margin-bottom: 8px;
    padding: 12px 16px;
    border-radius: 14px;
    transition: all 0.25s ease;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.leaderboard-row-premium:hover {
    background: #ffffff;
    transform: translateX(4px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

/* Rank special stylings */
.rank-row-1 {
    background: linear-gradient(90deg, rgba(255, 223, 0, 0.1) 0%, rgba(255, 255, 255, 0.6) 100%) !important;
    border: 1px solid rgba(255, 223, 0, 0.3) !important;
}

.rank-row-2 {
    background: linear-gradient(90deg, rgba(192, 192, 192, 0.1) 0%, rgba(255, 255, 255, 0.6) 100%) !important;
    border: 1px solid rgba(192, 192, 192, 0.3) !important;
}

/* XP Badge encapsulation block */
.xp-pill-badge {
    background: #16362f;
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(22, 54, 47, 0.2);
}

/* 4. QUESTS LIST LABELS WITH INTERACTIVE BULLETS */
.quest-item-box {
    border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
    padding: 10px 0;
    transition: opacity 0.3s ease;
}

.quest-item-box:hover {
    opacity: 0.85;
}

/* 5. DARK THEME PREMIUM OVERRIDES */
.dark-theme-active .action-track-card {
    background: rgba(28, 42, 34, 0.65) !important;
    border-color: rgba(44, 63, 53, 0.5) !important;
}

.dark-theme-active .action-track-card:hover {
    background: #1c2a22 !important;
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.4) !important;
}

.dark-theme-active .papers-card-premium {
    border-left: 5px solid #a3b899 !important;
}

.dark-theme-active .streak-premium-container {
    background: linear-gradient(135deg, rgba(255, 107, 12, 0.08) 0%, rgba(255, 165, 0, 0.18) 100%) !important;
    border-color: rgba(255, 107, 12, 0.3) !important;
}

.dark-theme-active .leaderboard-row-premium {
    background: rgba(28, 42, 34, 0.5) !important;
    border-color: rgba(44, 63, 53, 0.2) !important;
}

.dark-theme-active .leaderboard-row-premium:hover {
    background: #1c2a22 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
}

.dark-theme-active .rank-row-1 {
    background: linear-gradient(90deg, rgba(255, 223, 0, 0.15) 0%, rgba(28, 42, 34, 0.6) 100%) !important;
}

.dark-theme-active .rank-row-2 {
    background: linear-gradient(90deg, rgba(192, 192, 192, 0.15) 0%, rgba(28, 42, 34, 0.6) 100%) !important;
}

.dark-theme-active .xp-pill-badge {
    background: #2ed573;
    color: #111b15;
    box-shadow: 0 2px 6px rgba(46, 213, 181, 0.2);
}

.dark-theme-active .quest-item-box {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

/* Clickable Metric Box Adjustments */
.metric-card-box {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.metric-card-box:active {
    transform: scale(0.95);
    /* Realistic button press click response */
}

/* Modal Overlay Layer */
.dashboard-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 34, 30, 0.6);
    /* Translucent branding color shield */
    backdrop-filter: blur(8px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dashboard-modal-overlay.show-modal {
    display: flex;
    opacity: 1;
}

/* Modal Content Box */
.dashboard-modal-content {
    background: #ffffff;
    padding: 30px;
    border-radius: 24px;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    transform: translateY(30px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dashboard-modal-overlay.show-modal .dashboard-modal-content {
    transform: translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close-btn:hover {
    color: #16362f;
}

/* Custom inner modal premium presentation layout */
.modal-feature-title {
    font-size: 1.4rem;
    color: #16362f;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-feature-desc {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.modal-action-btn {
    background: #16362f;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s;
}

.modal-action-btn:hover {
    background: #11221e;
}

/* Dark Mode modal overrides */
.dark-theme-active .dashboard-modal-overlay {
    background: rgba(11, 21, 19, 0.8) !important;
}

.dark-theme-active .dashboard-modal-content {
    background: #1c2a22 !important;
    border: 1px solid #2c3f35;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6) !important;
}

.dark-theme-active .modal-close-btn:hover {
    color: #ffffff !important;
}

.dark-theme-active .modal-feature-title {
    color: #4db6ac !important;
}

.dark-theme-active .modal-feature-desc {
    color: #a3b899 !important;
}

.dark-theme-active .modal-action-btn {
    background: #2d6a4f !important;
}

.dark-theme-active .modal-action-btn:hover {
    background: #40916c !important;
}

/* Premium Header and Back Button Wrapper */
.syllabus-back-header-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #16362f 0%, #11221e 100%);
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(22, 54, 47, 0.15);
}

.premium-back-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 8px 14px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.premium-back-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateX(-3px);
}

/* Locked Option visual cue */
.locked-premium-option {
    position: relative;
    cursor: pointer;
}

/* Global Toast Container Positioning */
.premium-toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 90%;
    max-width: 380px;
    pointer-events: none;
}

/* Base Style for All Premium Pop-ups */
.premium-toast {
    background: rgba(22, 54, 47, 0.85) !important;
    /* Dark emerald brand theme */
    backdrop-filter: blur(14px) saturate(140%);
    color: #ffffff;
    padding: 16px 20px;
    border-radius: 16px;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: auto;

    /* Smooth sliding drop-down entry animation */
    animation: toastSlideDown 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    transition: all 0.3s ease;
}

/* Slide Down Animation Pattern */
@keyframes toastSlideDown {
    0% {
        transform: translateY(-40px);
        opacity: 0;
        filter: blur(4px);
    }

    100% {
        transform: translateY(0);
        opacity: 1;
        filter: blur(0);
    }
}

/* Fade Out Animation Pattern applied before removal */
.premium-toast.fade-out {
    opacity: 0;
    transform: translateY(-20px) scale(0.9);
    filter: blur(4px);
}

/* TYPE SPECIFIC UNIQUE VARIATIONS */
.toast-premium-upgrade {
    background: linear-gradient(135deg, rgba(255, 107, 12, 0.95), rgba(214, 48, 49, 0.95)) !important;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 12px 30px rgba(255, 107, 12, 0.3);
}

.toast-success-clean {
    border-left: 5px solid #2ed573 !important;
}

.toast-info-clean {
    border-left: 5px solid #341f97 !important;
}

/* Premium Active Status Card Styling */
.premium-active-card-premium {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(245, 158, 11, 0.08) 100%) !important;
    border: 1px solid rgba(245, 158, 11, 0.25) !important;
    padding: 20px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.15);
    text-align: left;
    transition: all 0.3s ease;
    width: 100%;
}

.premium-active-card-premium p {
    margin: 0;
}

.premium-active-card-premium strong {
    color: #f59e0b !important;
}

/* Sidebar premium styling overrides */
.premium-access-granted-theme {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(251, 191, 36, 0.03) 100%) !important;
    border: 1px solid rgba(245, 158, 11, 0.3) !important;
    color: #fbbf24 !important;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.12);
}

.premium-access-granted-theme:hover {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.25) 0%, rgba(251, 191, 36, 0.08) 100%) !important;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.25);
}

.non-premium-theme {
    /* Default styling */
}

.new-badge-pill {
    background-color: #f59e0b;
    color: white;
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 800;
    text-transform: uppercase;
    animation: pulse 2s infinite;
}

.token-balance-card {
    background: linear-gradient(135deg, #16362f 0%, #11221e 100%);
    color: #ffffff;
    padding: 25px;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 25px rgba(22, 54, 47, 0.25);
    margin-bottom: 20px;
}

.token-balance-card h1 {
    margin: 8px 0;
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.refer-code-box {
    background: #ffffff;
    border: 1px dashed rgba(22, 54, 47, 0.3);
    padding: 16px;
    border-radius: 16px;
    margin-bottom: 20px;
}

.code-row {
    display: flex;
    gap: 10px;
}

.code-row input {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: #f9f9f9;
    font-weight: 700;
    text-align: center;
    color: #16362f;
    font-size: 1.1rem;
}

.copy-btn {
    background: #16362f;
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.withdrawal-panel-card {
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(0, 0, 0, 0.05);
    padding: 20px;
    border-radius: 20px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.claim-payout-btn {
    background: #ffa500;
    color: #16362f;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(255, 165, 0, 0.3);
    transition: all 0.2s;
}

.claim-payout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 165, 0, 0.4);
}

.history-entry-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 8px;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.swiper-slide {
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), filter 0.25s ease;
    will-change: transform;
}

.swiper-slide:active {
    transform: scale(0.97);
    /* Premium click/press feedback compression */
    filter: brightness(0.9);
}

/* Horizontal Container Logic */
.ai-subject-pill-scroller {
    display: flex;
    gap: 6px !important;
    padding: 6px 10px !important;
    overflow-x: auto;
    white-space: nowrap;
    scroll-behavior: smooth;
    background: rgba(255, 255, 255, 0.4) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.ai-subject-pill-scroller::-webkit-scrollbar {
    display: none;
    /* Hide rough browser scrollbars on mobile layout */
}

/* Base Pill Elements */
.subject-pill-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px !important;
    font-size: 0.8rem !important;
    border-radius: 30px !important;
    background: rgba(255, 255, 255, 0.8) !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    color: #475569;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.subject-pill-item:hover {
    background: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    color: #1e293b;
}

.subject-pill-item i {
    font-size: 0.95rem;
    opacity: 0.85;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.subject-pill-item:hover i {
    transform: scale(1.1);
    opacity: 1;
}

.subject-pill-item.active-pill i {
    opacity: 1;
    transform: scale(1.1);
}

.chat-bubble-user,
.message-bubble.user-bubble {
    background: linear-gradient(135deg, #007aff, #0056b3) !important;
    color: #ffffff !important;
    border-radius: 18px 18px 4px 18px !important;
    font-weight: 500;
    user-select: text !important;
}

.chat-bubble-ai,
.message-bubble.ai-bubble {
    background: rgba(255, 255, 255, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    color: #1c1c1e !important;
    border-radius: 18px 18px 18px 4px !important;
    font-weight: 500;
    user-select: text !important;
}

/* Active State Styles with specific dynamic theme color pops */
.subject-pill-item.active-pill {
    color: #ffffff !important;
    transform: scale(1.04);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
}

/* Custom colors mapped dynamically via JS active class triggers */
.active-general {
    background: #16362f !important;
    border-color: #16362f !important;
}

.active-english {
    background: #3498db !important;
    border-color: #3498db !important;
}

.active-maths {
    background: #e67e22 !important;
    border-color: #e67e22 !important;
}

.active-science {
    background: #2ecc71 !important;
    border-color: #2ecc71 !important;
}

.active-social_science {
    background: #9b59b6 !important;
    border-color: #9b59b6 !important;
}

.active-hindi {
    background: #e74c3c !important;
    border-color: #e74c3c !important;
}

.active-assamese {
    background: #1abc9c !important;
    border-color: #1abc9c !important;
}

/* Micro interaction to give feedback to the chat footer input box wrapper */
#aiTerminalInputQuery {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.exam-status-card.warning-glow {
    border: 2px dashed #e67e22 !important;
    background: linear-gradient(135deg, #fffcf9 0%, #fff5eb 100%) !important;
}
.exam-status-card.active-ready-glow {
    border: 2px solid #e74c3c !important;
    background: linear-gradient(135deg, #fff5f5 0%, #ffebeb 100%) !important;
    animation: activeBorderPulse 2s infinite alternate;
}
@keyframes activeBorderPulse {
    0% { box-shadow: 0 0 10px rgba(231, 76, 60, 0.2); }
    100% { box-shadow: 0 0 25px rgba(231, 76, 60, 0.5); }
}

.custom-option-pill {
    padding: 15px 20px; border: 2px solid #edf2f7; border-radius: 16px;
    background: #f8fafc; color: #2d3748; font-weight: 600; cursor: pointer;
    transition: all 0.2s ease; text-align: left;
}
.custom-option-pill:hover { border-color: #16362f; background: #f0fdf4; }
.custom-option-pill.pill-selected { border-color: #2ecc71 !important; background: #e8f5e9 !important; color: #16362f; }

/* Sahi answer select karne par bounce aur glowing pulse */
.pill-correct-anim {
    background: #e8f5e9 !important;
    border-color: #2ecc71 !important;
    color: #16362f !important;
    animation: correctSuccessBounce 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 15px rgba(46, 204, 113, 0.4);
}

/* Galat answer select karne par error shake */
.pill-wrong-anim {
    background: #ffebeb !important;
    border-color: #e74c3c !important;
    color: #c0392b !important;
    animation: wrongErrorShake 0.4s ease-in-out;
}

@keyframes correctSuccessBounce {
    0% { transform: scale(1); }
    50% { transform: scale(1.04); }
    100% { transform: scale(1); }
}

@keyframes wrongErrorShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

/* =========================================================================
   🤖 FUTURISTIC ROBOT VOICE MODE STYLES
   ========================================================================= */
.bg-radial-glow {
    background: radial-gradient(circle, rgba(45, 212, 191, 0.18) 0%, rgba(15, 23, 42, 0) 70%);
}

#voiceOrbContainer.voice-state-listening #eye-left,
#voiceOrbContainer.voice-state-listening #eye-right {
    transform: scale(1.15);
    box-shadow: 0 0 14px rgba(45, 212, 191, 0.95);
}

#voiceOrbContainer.voice-state-processing #eye-left,
#voiceOrbContainer.voice-state-processing #eye-right {
    transform: scale(0.95);
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.95);
}

#voiceOrbContainer.voice-state-speaking #robot-face {
    box-shadow: 0 0 40px rgba(45, 212, 191, 0.5);
}

@keyframes eyeWave {
    0%, 100% { height: 16px; border-radius: 9999px; }
    50% { height: 32px; border-radius: 4px; }
}

.robot-speaking-eye {
    animation: eyeWave 0.4s ease-in-out infinite alternate;
}