.app-header{background:#fffffffa;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);box-shadow:0 4px 20px #0000001a;position:sticky;top:0;z-index:1000;border-bottom:3px solid transparent;border-image:linear-gradient(90deg,#667eea,#764ba2,#f093fb) 1}.header-content{max-width:1400px;margin:0 auto;padding:15px 30px;display:flex;justify-content:space-between;align-items:center}.header-left{display:flex;align-items:center;gap:18px}.header-slogan{font-size:1.1em;font-weight:600;color:#7f8c8d;padding-left:18px;border-left:2px solid #e0e0e0;line-height:1.3}.header-logo{transition:all .3s ease}.header-logo:hover{transform:scale(1.05)}.header-logo .logo-text{font-size:1.6em;font-weight:800;margin:0;background:linear-gradient(135deg,#667eea,#764ba2);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.header-user{display:flex;align-items:center;gap:20px}.user-info{display:flex;align-items:center;gap:12px}.user-avatar{width:40px;height:40px;border-radius:50%;border:2px solid #667eea;box-shadow:0 2px 10px #667eea4d}.user-name{font-weight:600;color:#2c3e50;font-size:1.05em}.logout-btn{padding:10px 24px;background:linear-gradient(135deg,#e74c3c,#c0392b);color:#fff;border:none;border-radius:12px;font-weight:600;cursor:pointer;transition:all .3s ease;box-shadow:0 4px 15px #e74c3c4d}.logout-btn:hover{box-shadow:0 6px 20px #e74c3c66}@media (max-width: 768px){.header-content{padding:12px 20px}.header-slogan{display:none}.header-logo .logo-text{font-size:1.3em}.user-name{display:none}.logout-btn{padding:8px 18px;font-size:.9em}}.toast-container{position:fixed;top:90px;right:20px;z-index:10000;display:flex;flex-direction:column;gap:12px;max-width:400px}.toast{background:#fff;padding:18px 24px;border-radius:16px;box-shadow:0 10px 40px #00000026;display:flex;align-items:center;gap:15px;min-width:320px;border-left:4px solid}.toast-success{border-left-color:#27ae60}.toast-error{border-left-color:#e74c3c}.toast-warning{border-left-color:#f39c12}.toast-info{border-left-color:#3498db}.toast-icon{width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:1.3em;font-weight:700;flex-shrink:0}.toast-success .toast-icon{background:linear-gradient(135deg,#27ae60,#229954);color:#fff}.toast-error .toast-icon{background:linear-gradient(135deg,#e74c3c,#c0392b);color:#fff}.toast-warning .toast-icon{background:linear-gradient(135deg,#f39c12,#e67e22);color:#fff}.toast-info .toast-icon{background:linear-gradient(135deg,#3498db,#2980b9);color:#fff}.toast-message{flex:1;color:#2c3e50;font-size:1em;font-weight:600;line-height:1.4}.toast-close{background:none;border:none;color:#95a5a6;font-size:1.8em;cursor:pointer;padding:0;width:24px;height:24px;display:flex;align-items:center;justify-content:center;border-radius:50%;transition:all .2s ease;flex-shrink:0;line-height:1}.toast-close:hover{background:#ecf0f1;color:#7f8c8d}@media (max-width: 768px){.toast-container{right:10px;left:10px;max-width:none}.toast{min-width:auto;width:100%}}.external-tools-section{padding:4rem 2rem;background:linear-gradient(to bottom,#fffffff2,#f8f9fa)}.tool-card{display:flex;flex-direction:column;align-items:center;gap:.75rem;padding:1.5rem 1rem;background:#fff;border-radius:12px;box-shadow:0 4px 15px #00000014;text-decoration:none;color:#333;transition:all .3s ease;cursor:pointer}.tool-card:hover{box-shadow:0 8px 25px #667eea26;transform:translateY(-4px)}@media (max-width: 768px){.external-tools-section{padding:3rem 1.5rem}.tools-title{font-size:2rem}.tools-grid{grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:1rem}.tool-card{padding:1rem .75rem}.tool-card img{width:56px;height:56px}.tool-card span{font-size:.85rem}.tools-category h3{font-size:1.3rem}.tools-subcategory h4{font-size:1rem}}@media (max-width: 480px){.external-tools-section{padding:1.5rem 1rem}.tools-title{font-size:1.5rem;margin-bottom:2rem}.tools-grid{grid-template-columns:repeat(auto-fit,minmax(100px,1fr));gap:.75rem}.tools-category h3{font-size:1.2rem;margin-bottom:1rem}.tools-subcategory h4{font-size:.95rem}.tool-card{padding:.75rem;gap:.5rem}.tool-card img{width:48px;height:48px}.tool-card span{font-size:.75rem}}.landing-page{min-height:100vh;background:linear-gradient(135deg,#667eea,#764ba2);display:flex;flex-direction:column;color:#333}.landing-nav{position:sticky;top:0;z-index:1000;background:#fffffff2;border-bottom:1px solid rgba(0,0,0,.1);padding:1rem 2rem}.nav-container{max-width:1200px;margin:0 auto;display:flex;justify-content:space-between;align-items:center}.nav-logo{font-size:1.8rem;font-weight:700;margin:0;background:linear-gradient(135deg,#667eea,#764ba2);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.nav-login-btn{padding:.75rem 1.5rem;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:8px;font-weight:600;cursor:pointer;transition:all .3s ease}.nav-login-btn:hover{transform:translateY(-2px);box-shadow:0 4px 12px #667eea4d}.landing-hero{flex:1;display:flex;align-items:center;justify-content:center;padding:3rem 2rem;color:#fff;text-align:center}.hero-content{max-width:800px}.hero-title{font-size:4rem;font-weight:800;margin:0 0 1rem;text-shadow:2px 2px 8px rgba(0,0,0,.2);line-height:1.2}.hero-subtitle{font-size:1.8rem;font-weight:300;margin:0 0 1.5rem;opacity:.95;text-shadow:1px 1px 4px rgba(0,0,0,.2)}.hero-description{font-size:1.2rem;margin:0 0 2.5rem;opacity:.9;text-shadow:1px 1px 4px rgba(0,0,0,.2);line-height:1.6}.hero-cta-btn{padding:1rem 2.5rem;font-size:1.1rem;font-weight:600;color:#667eea;background:#fff;border:none;border-radius:50px;cursor:pointer;transition:all .3s ease;box-shadow:0 4px 15px #0000001a}.hero-cta-btn:hover{background:#f0f0f0;box-shadow:0 6px 20px #00000026}.landing-features{padding:4rem 2rem;background:linear-gradient(to bottom,#fffffff2,#f8f9fa)}.features-container{max-width:1200px;margin:0 auto}.features-title{font-size:2.5rem;font-weight:800;text-align:center;margin:0 0 .5rem;background:linear-gradient(135deg,#667eea,#764ba2);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.features-subtitle{text-align:center;font-size:1.1rem;color:#666;margin:0 0 2rem;line-height:1.6}.features-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1.5rem}.feature-card{background:#fff;border-radius:12px;padding:1.5rem;box-shadow:0 2px 8px #0000000f;transition:all .3s ease;cursor:pointer}.feature-card:hover{box-shadow:0 4px 12px #0000001a}.feature-icon-wrapper{width:70px;height:70px;border-radius:12px;display:flex;align-items:center;justify-content:center;margin-bottom:1rem;box-shadow:0 2px 8px #00000014}.feature-icon{font-size:2rem}.feature-content{text-align:left}.feature-title{font-size:1.1rem;font-weight:700;margin:0 0 .5rem;color:#333}.feature-description{font-size:.85rem;color:#666;margin:0;line-height:1.6}.landing-tools{padding:4rem 2rem;background:linear-gradient(to bottom,#fffffff2,#f8f9fa)}.tools-container{max-width:1200px;margin:0 auto}.tools-title{font-size:2.5rem;font-weight:800;text-align:center;margin:0 0 2rem;background:linear-gradient(135deg,#667eea,#764ba2);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.tools-category{margin-bottom:2rem}.tools-category h3{font-size:1.5rem;color:#667eea;margin:0 0 1.5rem;padding-bottom:.5rem;border-bottom:2px solid #667eea;font-weight:700}.tools-subcategory{margin-bottom:1.5rem;margin-left:1rem}.tools-subcategory h4{font-size:1.1rem;color:#555;margin:0 0 1rem;font-weight:600}.tools-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:1.5rem;margin-bottom:1rem}.tool-card{display:flex;flex-direction:column;align-items:center;gap:.75rem;padding:1.5rem 1rem;background:#fff;border-radius:12px;box-shadow:0 2px 8px #0000000f;text-decoration:none;color:#333;transition:all .3s ease;cursor:pointer}.tool-card:hover{box-shadow:0 4px 12px #667eea1f;transform:translateY(-4px)}.tool-card img{width:64px;height:64px;object-fit:contain}.tool-card span{font-size:.9rem;font-weight:600;text-align:center;line-height:1.2}.landing-footer{background:#000c;color:#fff;padding:2rem}.footer-content{max-width:1200px;margin:0 auto;text-align:center}.landing-footer p{margin:0 0 1rem;font-size:.95rem;opacity:.8}.social-links{display:flex;gap:1.5rem;justify-content:center;flex-wrap:wrap}.social-links a{color:#fff;text-decoration:none;font-weight:500;transition:all .3s ease;padding:.5rem 1rem;border-radius:6px}.social-links a:hover{background:#ffffff1a;color:#667eea}@media (max-width: 768px){.hero-title{font-size:2.5rem}.hero-subtitle{font-size:1.3rem}.hero-description{font-size:1rem}.features-title,.tools-title{font-size:2rem}.nav-logo{font-size:1.4rem}.nav-login-btn{padding:.6rem 1.2rem;font-size:.9rem}.hero-cta-btn{padding:.8rem 2rem;font-size:1rem}.landing-features{padding:3rem 1.5rem}.tools-grid{grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:1rem}.tool-card{padding:1rem .75rem}.tool-card img{width:56px;height:56px}.tool-card span{font-size:.85rem}.landing-tools{padding:3rem 1.5rem}.tools-category h3{font-size:1.3rem}.tools-subcategory h4{font-size:1rem}}@media (max-width: 480px){.landing-hero{padding:2rem 1rem}.hero-title{font-size:1.8rem}.hero-subtitle{font-size:1.1rem}.hero-description{font-size:.95rem}.features-grid{grid-template-columns:1fr}.feature-card{padding:1.5rem}.landing-features{padding:2rem 1rem}.landing-tools{padding:1.5rem 1rem}.tools-title{font-size:1.5rem;margin-bottom:2rem}.tools-grid{grid-template-columns:repeat(auto-fit,minmax(100px,1fr));gap:.75rem}.tools-category h3{font-size:1.2rem;margin-bottom:1rem}.tools-subcategory h4{font-size:.95rem}.tool-card{padding:.75rem;gap:.5rem}.tool-card img{width:48px;height:48px}.tool-card span{font-size:.75rem}.social-links{gap:1rem}}.login-page{min-height:100vh;display:flex;justify-content:center;align-items:center;background:linear-gradient(135deg,#667eea,#764ba2,#f093fb);background-size:200% 200%;animation:gradientShift 15s ease infinite;padding:20px}.login-container{max-width:500px;width:100%}.login-logo{text-align:center;margin-bottom:40px}.logo-text{font-size:3em;font-weight:900;color:#fff;margin:0 0 10px;text-shadow:0 4px 20px rgba(0,0,0,.2)}.logo-subtitle{font-size:1.2em;color:#fffffff2;font-weight:600;margin:0;text-shadow:0 2px 10px rgba(0,0,0,.15)}.login-card{background:#fffffffa;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);border-radius:28px;padding:50px 40px;box-shadow:0 30px 90px #00000040;border:3px solid rgba(255,255,255,.5)}.login-title{font-size:2em;font-weight:800;color:#2c3e50;margin:0 0 15px;text-align:center}.login-description{font-size:1.05em;color:#7f8c8d;text-align:center;margin:0 0 35px;line-height:1.6}.error-message{background:linear-gradient(135deg,#fee,#fdd);border:2px solid #e74c3c;color:#c0392b;padding:15px 20px;border-radius:14px;margin-bottom:25px;text-align:center;font-weight:600}.google-login-btn{width:100%;padding:18px 24px;background:#fff;border:2px solid #e0e6ed;border-radius:16px;font-size:1.1em;font-weight:600;color:#2c3e50;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:12px;transition:all .3s ease;box-shadow:0 4px 15px #00000014;margin-bottom:20px}.google-login-btn:hover{background:#f8f9fa;border-color:#667eea;box-shadow:0 8px 25px #667eea33}.google-login-btn:disabled{opacity:.6;cursor:not-allowed}.google-icon{width:24px;height:24px}.login-note{font-size:.9em;color:#95a5a6;text-align:center;margin:0;line-height:1.5}.login-footer{text-align:center;margin-top:30px;color:#ffffffe6;font-size:1.05em;font-weight:600}.login-footer p{margin:0}@media (max-width: 768px){.logo-text{font-size:2.2em}.logo-subtitle{font-size:1em}.login-card{padding:35px 25px}.login-title{font-size:1.6em}.login-description{font-size:.95em}.google-login-btn{font-size:1em;padding:16px 20px}}.help-video-modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background-color:#0009;display:flex;align-items:center;justify-content:center;z-index:1300;padding:20px}.help-video-modal-content{background:#fff;border-radius:12px;box-shadow:0 10px 40px #0000004d;overflow:hidden;max-width:95%;width:900px;max-height:95vh;display:flex;flex-direction:column;position:relative}.help-video-modal-close{position:absolute;top:16px;right:16px;background:#ffffffe6;border:none;border-radius:50%;width:40px;height:40px;font-size:24px;cursor:pointer;display:flex;align-items:center;justify-content:center;z-index:10;transition:all .2s ease;color:#333}.help-video-modal-close:hover{background:#fff;transform:scale(1.1)}.help-video-modal-header{padding:24px 24px 16px;border-bottom:1px solid #f0f0f0}.help-video-modal-header h2{margin:0;font-size:22px;font-weight:600;color:#333}.help-video-modal-description{margin:8px 0 0;color:#666;font-size:14px}.help-video-modal-video-container{position:relative;width:100%;height:0;padding-bottom:56.25%;background:#000;overflow:hidden}.help-video-modal-video-container iframe{position:absolute;top:0;left:0;width:100%;height:100%;border:0}@media (max-width: 1024px){.help-video-modal-content{width:90%;max-width:95%}.help-video-modal-video-container{min-height:600px}}@media (max-width: 768px){.help-video-modal-overlay{padding:10px}.help-video-modal-content{max-height:95vh;width:95%}.help-video-modal-video-container{min-height:400px}.help-video-modal-header h2{font-size:18px}.help-video-modal-close{width:36px;height:36px;font-size:20px}}@media (max-width: 480px){.help-video-modal-header{padding:16px 16px 12px}.help-video-modal-header h2{font-size:16px}.help-video-modal-video-container{min-height:250px}}.home-page{min-height:100vh;background:linear-gradient(135deg,#667eea,#764ba2,#f093fb);background-size:200% 200%;animation:gradientShift 15s ease infinite}.home-content{max-width:1400px;margin:0 auto;padding:40px 20px}.home-hero{text-align:center;margin-bottom:40px}.hero-title{font-size:3.2em;font-weight:900;color:#fff;margin:0 0 20px;text-shadow:0 4px 30px rgba(0,0,0,.3);background:linear-gradient(135deg,#fff,#f0f0f0);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.hero-subtitle{font-size:1.25em;color:#fffffff2;font-weight:600;margin:0;text-shadow:0 2px 15px rgba(0,0,0,.2)}.modules-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:20px;margin-top:40px}.module-card{background:#fffffffa;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);border-radius:20px;padding:25px;box-shadow:0 20px 60px #00000026;cursor:pointer;transition:all .4s cubic-bezier(.34,1.56,.64,1);border:3px solid rgba(255,255,255,.5);position:relative;overflow:hidden}.module-card:before{content:"";position:absolute;top:0;left:0;right:0;height:4px;background:linear-gradient(90deg,#667eea,#764ba2,#f093fb);transform:scaleX(0);transition:transform .4s ease}.module-card:hover:before{transform:scaleX(1)}.module-card.disabled{opacity:.7;cursor:not-allowed}.module-card.disabled:hover{transform:none}.module-icon-wrapper{width:80px;height:80px;border-radius:16px;margin-bottom:20px;display:flex;align-items:center;justify-content:center;box-shadow:0 10px 30px #0003}.module-icon{font-size:2.8em}.module-content{position:relative}.module-title{font-size:1.5em;font-weight:800;color:#2c3e50;margin:0 0 10px}.module-description{font-size:1em;margin:0 0 20px;color:#7f8c8d;line-height:1.6}.coming-soon-badge{display:inline-block;background:linear-gradient(135deg,#f39c12,#e67e22);color:#fff;padding:6px 12px;border-radius:16px;font-size:.85em;font-weight:600}.module-button{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;padding:12px 24px;border-radius:12px;font-size:1em;font-weight:600;cursor:pointer;box-shadow:0 6px 20px #667eea4d;transition:all .3s ease}.module-button:hover{box-shadow:0 8px 25px #667eea66}@keyframes gradientShift{0%,to{background-position:0% 50%}50%{background-position:100% 50%}}.home-footer{text-align:center;padding:30px 20px;color:#ffffffd9;border-top:1px solid rgba(255,255,255,.2);margin-top:40px}.home-footer p{margin:0 0 15px;font-weight:500;font-size:.9em;text-indent:0}.social-links a{color:#fff;font-weight:600;text-decoration:none;margin:0 15px;font-size:.95em;transition:all .3s ease}.social-links a:hover{text-decoration:underline;opacity:.8}@media (max-width: 768px){.hero-title{font-size:2.5em}.hero-subtitle{font-size:1.2em}.modules-grid{grid-template-columns:1fr}.module-card{padding:25px}.module-icon-wrapper{width:80px;height:80px}.module-icon{font-size:2.8em}.module-title{font-size:1.5em}}.quiz-overlay-iv{position:absolute;top:0;left:0;width:100%;height:100%;background:#000000eb;-webkit-backdrop-filter:blur(15px);backdrop-filter:blur(15px);display:flex;justify-content:center;align-items:center;z-index:100}.quiz-content-iv{background:linear-gradient(145deg,#fff,#f8f9fa);color:#2c3e50;padding:45px;border-radius:28px;max-width:650px;width:90%;box-shadow:0 30px 100px #0006;border:3px solid rgba(255,255,255,.5)}.quiz-header-iv{margin-bottom:25px;text-align:center}.question-number-badge{display:inline-block;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;padding:8px 20px;border-radius:20px;font-weight:700;font-size:1em}.question-text-iv{margin:0 0 30px;font-size:1.8em;color:#2c3e50;text-align:center;font-weight:800;line-height:1.4}.answers-container-iv{margin:25px 0}.answer-btn-iv{display:flex;align-items:center;gap:15px;width:100%;padding:18px 24px;margin:14px 0;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:18px;cursor:pointer;font-size:1.15em;font-weight:600;transition:all .3s cubic-bezier(.34,1.56,.64,1);box-shadow:0 6px 25px #667eea66;text-align:left;position:relative;overflow:hidden}.answer-btn-iv:hover:before{content:"";position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.3),transparent);animation:shimmer .8s}@keyframes shimmer{to{left:100%}}.answer-btn-iv.disabled{background:linear-gradient(135deg,#bdc3c7,#95a5a6);cursor:not-allowed;box-shadow:0 3px 10px #95a5a64d}.answer-btn-iv.correct{background:linear-gradient(135deg,#27ae60,#229954);box-shadow:0 10px 35px #27ae6080;animation:correctPulse .6s ease}.answer-btn-iv.incorrect{background:linear-gradient(135deg,#e74c3c,#c0392b);box-shadow:0 10px 35px #e74c3c80;animation:incorrectShake .5s ease}@keyframes correctPulse{0%,to{transform:scale(1)}50%{transform:scale(1.05)}}@keyframes incorrectShake{0%,to{transform:translate(0)}25%{transform:translate(-10px)}75%{transform:translate(10px)}}.answer-label-iv{display:flex;align-items:center;justify-content:center;min-width:35px;height:35px;background:#ffffff4d;border-radius:50%;font-weight:800;font-size:1em}.answer-text-iv{flex:1}.quiz-actions-iv{margin-top:25px;text-align:center}.rewind-btn-iv{padding:14px 28px;background:linear-gradient(135deg,#3498db,#2980b9);color:#fff;border:none;border-radius:14px;cursor:pointer;font-size:1.05em;font-weight:600;transition:all .3s ease;box-shadow:0 6px 20px #3498db66}.feedback-iv{margin-top:25px;padding:18px;border-radius:16px;font-weight:700;text-align:center;font-size:1.3em;display:flex;align-items:center;justify-content:center;gap:12px}.feedback-iv.correct{background:linear-gradient(135deg,#d4edda,#c3e6cb);color:#155724;border:2px solid #28a745}.feedback-iv.incorrect{background:linear-gradient(135deg,#fff3cd,#ffeaa7);color:#856404;border:2px solid #ffc107}.feedback-icon-iv{font-size:1.5em}@media (max-width: 768px){.quiz-content-iv{padding:30px 25px}.question-text-iv{font-size:1.4em}.answer-btn-iv{padding:15px 20px;font-size:1.05em}}.video-player-wrapper{width:100%;max-width:1400px;margin:0 auto;position:relative}.back-button{position:fixed;top:50%;left:20px;transform:translateY(-50%);background:#ffffffe6;color:#2c3e50;border:none;border-radius:12px;padding:12px 18px;font-size:1em;font-weight:600;cursor:pointer;z-index:101;box-shadow:0 4px 15px #0003}.back-button{transition:all .3s ease}.back-button:hover{background:#fff;box-shadow:0 6px 20px #00000040}.video-player-container{position:relative;width:100%;aspect-ratio:16/9;background:#000;border-radius:24px;overflow:hidden;box-shadow:0 30px 90px #0006}.youtube-player{width:100%;height:100%}.youtube-player iframe{width:100%;height:100%;border:none}.score-display{position:absolute;top:20px;right:20px;background:#000000d9;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);color:#fff;padding:14px 24px;border-radius:24px;font-weight:700;font-size:1.2em;z-index:10;box-shadow:0 6px 25px #0006;border:2px solid rgba(255,255,255,.1)}.score-number{background:linear-gradient(135deg,#667eea,#764ba2);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;font-size:1.3em;font-weight:800}.rewind-icon-btn{position:absolute;bottom:20px;left:20px;width:60px;height:60px;background:#000000bf;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);color:#fff;border:2px solid rgba(255,255,255,.2);border-radius:50%;cursor:pointer;font-size:1.8em;display:flex;align-items:center;justify-content:center;z-index:10;transition:all .3s cubic-bezier(.34,1.56,.64,1);box-shadow:0 6px 25px #0006}.rewind-icon-btn:hover{background:#000000e6}@media (max-width: 768px){.back-button{top:-50px;padding:10px 20px;font-size:.95em}.score-display{padding:10px 18px;font-size:1em}.rewind-icon-btn{width:50px;height:50px;font-size:1.5em;bottom:15px;left:15px}}.student-player-page{min-height:100vh;display:flex;justify-content:center;align-items:center;padding:20px;background:linear-gradient(135deg,#667eea,#764ba2,#f093fb);background-size:200% 200%;animation:gradientShift 15s ease infinite}.player-wrapper{width:100%;max-width:1400px}.student-player-loading,.student-player-error{min-height:100vh;display:flex;justify-content:center;align-items:center;background:linear-gradient(135deg,#667eea,#764ba2,#f093fb);background-size:200% 200%;animation:gradientShift 15s ease infinite;padding:20px}.loading-content,.error-content{text-align:center;background:#fffffffa;padding:60px 80px;border-radius:28px;box-shadow:0 30px 90px #00000040}.loading-spinner{width:60px;height:60px;border:5px solid #e0e6ed;border-top:5px solid #667eea;border-radius:50%;margin:0 auto 30px;animation:spin 1s linear infinite}.loading-content p{font-size:1.3em;color:#2c3e50;font-weight:600;margin:0}.error-icon{font-size:5em;margin-bottom:20px}.error-content h2{font-size:2em;color:#2c3e50;margin:0 0 15px;font-weight:800}.error-content p{font-size:1.2em;color:#7f8c8d;margin:0}@media (max-width: 768px){.loading-content,.error-content{padding:40px 30px}.error-content h2{font-size:1.6em}.error-content p{font-size:1.05em}}.robot-page{min-height:calc(100vh - 70px);background:linear-gradient(135deg,#667eea,#764ba2);padding:25px 20px;display:flex;flex-direction:column}.robot-header{text-align:center;color:#fff;margin-bottom:15px}.robot-header h1{font-size:2em;margin:0;text-shadow:2px 2px 4px rgba(0,0,0,.2)}.robot-tabs{display:flex;gap:10px;justify-content:center;margin-bottom:20px;flex-wrap:wrap}.tab-button{padding:12px 24px;border:2px solid white;background:#ffffff1a;color:#fff;border-radius:25px;cursor:pointer;font-size:1em;font-weight:600;transition:all .3s ease}.tab-button:hover{background:#fff3;transform:translateY(-2px)}.tab-button.active{background:#fff;color:#667eea}.robot-content{max-width:1200px;margin:0 auto;background:#fff;border-radius:15px;padding:30px;box-shadow:0 10px 30px #0003;flex:1;width:100%}.robot-container{max-width:1200px;margin:0 auto;padding:20px}.robot-list{animation:fadeIn .3s ease}@keyframes fadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.robot-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:20px}.robot-list-empty{text-align:center;padding:60px 20px;color:#666}.empty-icon{font-size:4em;margin-bottom:20px;animation:bounce 2s infinite}@keyframes bounce{0%,to{transform:translateY(0)}50%{transform:translateY(-20px)}}.robot-list-empty h2{font-size:1.8em;margin-bottom:10px;color:#333}.robot-list-empty p{font-size:1.1em;color:#999}.robot-list-loading{text-align:center;padding:40px;color:#666;font-size:1.1em}.robot-card{background:#fff;border:2px solid #f0f0f0;border-radius:15px;padding:20px;display:flex;flex-direction:column;gap:15px;transition:all .3s ease;box-shadow:0 2px 8px #0000001a}.robot-card:hover{transform:translateY(-5px);box-shadow:0 5px 15px #667eea33;border-color:#667eea}.robot-avatar{text-align:center;height:120px;display:flex;align-items:center;justify-content:center}.robot-avatar img{max-height:120px;max-width:120px;object-fit:contain}.robot-info h3{margin:0;color:#333;font-size:1.3em}.robot-topic{color:#667eea;margin:5px 0;font-weight:500}.robot-meta{display:flex;gap:10px;flex-wrap:wrap}.style-badge,.visibility-badge{display:inline-block;padding:4px 12px;background:#f0f0f0;border-radius:20px;font-size:.85em;color:#666}.style-badge{background:#667eea;color:#fff}.robot-actions{display:flex;gap:8px;justify-content:flex-end;padding-top:10px;border-top:1px solid #f0f0f0}.btn-icon{width:40px;height:40px;border:none;background:#f5f5f5;border-radius:8px;cursor:pointer;font-size:1.2em;transition:all .2s ease;display:flex;align-items:center;justify-content:center}.btn-icon:hover{background:#667eea;color:#fff;transform:scale(1.1)}.btn-icon:disabled{opacity:.6;cursor:not-allowed}.btn-icon.btn-delete:hover{background:#e74c3c}.robot-form{display:flex;flex-direction:column;gap:30px;max-width:800px}.form-section{border:1px solid #f0f0f0;border-radius:10px;padding:20px;background:#fafafa}.form-section h2{margin-top:0;margin-bottom:20px;color:#333;font-size:1.3em}.form-group{display:flex;flex-direction:column;gap:8px;margin-bottom:15px}.api-config-modal .form-group{margin-bottom:20px}.form-group label{font-weight:600;color:#333;display:flex;flex-direction:column;gap:4px}.hint{font-size:.85em;font-weight:400;color:#666;margin-top:4px}.form-group input:not(.password-input-group input):not(.api-key-input),.form-group select,.form-group textarea{padding:12px;border:2px solid #ddd;border-radius:8px;font-family:inherit;font-size:1em;transition:all .2s ease}.form-group .password-input-group{border:2px solid #ddd;border-radius:8px}.form-group input:focus,.form-group select:focus,.form-group textarea:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 3px #667eea1a}.form-group textarea{resize:vertical;min-height:150px}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:20px}.form-row .form-group{margin-bottom:0}.half-width{width:100%}.error-text{color:#e74c3c;font-size:.9em;margin-top:4px}.input-hint{font-size:.9em;color:#667eea;margin-top:4px}.input-hint a{color:#667eea;text-decoration:none}.input-hint a:hover{text-decoration:underline}.radio-group{display:flex;gap:15px;flex-wrap:wrap}.radio-label{display:flex;align-items:center;gap:8px;cursor:pointer;font-weight:500;color:#333;transition:color .2s ease}.radio-label input[type=radio]{width:18px;height:18px;cursor:pointer;accent-color:#667eea}.radio-label:hover{color:#667eea}.radio-label input[type=radio]:checked+span{color:#667eea;font-weight:600}.avatar-selector{display:grid;grid-template-columns:repeat(auto-fit,minmax(100px,1fr));gap:15px}.avatar-option{display:flex;flex-direction:column;align-items:center;gap:8px;padding:15px;border:2px solid #ddd;border-radius:10px;cursor:pointer;transition:all .2s ease;background:#fff}.avatar-option:hover{border-color:#667eea;background:#f5f7ff;transform:translateY(-3px)}.avatar-option.selected{border-color:#667eea;background:#667eea;color:#fff}.avatar-option img{width:60px;height:60px;object-fit:contain}.avatar-option span{font-weight:600;text-align:center;font-size:.9em}.api-config{display:flex;align-items:center;gap:15px;padding:15px;background:#fff;border-radius:8px}.api-status{display:flex;align-items:center;gap:10px;flex:1;color:#27ae60}.api-status.error{color:#e74c3c}.status-icon{font-size:1.5em}.model-info{display:block;font-size:.85em;opacity:.8;margin-left:auto}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000}.modal-content{background:#fff;border-radius:15px;box-shadow:0 10px 40px #0000004d;max-width:500px;width:90%;max-height:90vh;overflow-y:auto}.modal-header{display:flex;justify-content:space-between;align-items:center;padding:20px;border-bottom:1px solid #f0f0f0}.modal-header h2{margin:0;color:#333}.btn-close{background:none;border:none;font-size:1.5em;cursor:pointer;color:#666}.btn-close:hover{color:#333}.modal-body{padding:20px}.api-key-input{padding:12px 14px!important;border:2px solid #ddd!important;border-radius:8px!important;font-size:1em!important;outline:none!important;background:#fff!important;box-shadow:none!important;transition:all .2s ease!important;font-family:Courier New,monospace!important;word-break:break-all!important;-webkit-text-security:none!important;text-security:none!important;letter-spacing:normal!important;color:#333!important}.api-key-input::placeholder{color:#999!important}.api-key-input:focus{border-color:#667eea!important;box-shadow:0 0 0 3px #667eea1a!important;background:#fafafa!important}.password-input-group{position:relative;display:flex;gap:0;border-radius:8px;overflow:hidden;border:2px solid #ddd;transition:border-color .2s ease,box-shadow .2s ease;margin-bottom:0!important;height:44px}.password-input-group:focus-within{border-color:#667eea;box-shadow:0 0 0 3px #667eea1a}.password-input-group input{flex:1;padding:12px 14px!important;border:none!important;font-size:1em!important;outline:none!important;background:#fff!important;border-radius:0!important;box-shadow:none!important;transition:background-color .2s ease;height:100%!important}.password-input-group input:focus{border-color:transparent!important;box-shadow:none!important;background:#fafafa!important}.btn-toggle-visibility{padding:0 16px;background:#f5f5f5;border:none;border-left:1px solid #ddd;cursor:pointer;font-size:1.4em;display:flex;align-items:center;justify-content:center;height:100%;min-width:50px;transition:all .2s ease;flex-shrink:0;color:#333;line-height:1}.btn-toggle-visibility:hover{background:#efefef;border-left-color:#bbb}.btn-toggle-visibility:active{background:#e0e0e0;transform:scale(.95)}.btn-toggle-visibility:focus{outline:none}.info-box{background:#f5f7ff;border-left:4px solid #667eea;padding:15px;border-radius:8px;margin-top:15px}.info-box h3{margin-top:0;color:#667eea}.info-box ol{margin:10px 0;padding-left:20px}.info-box li{margin-bottom:8px;color:#666}.info-box a{color:#667eea;text-decoration:none}.info-box a:hover{text-decoration:underline}.modal-footer{display:flex;gap:10px;justify-content:flex-end;padding:20px;border-top:1px solid #f0f0f0}.btn-primary,.btn-secondary{padding:12px 24px;border:none;border-radius:8px;cursor:pointer;font-size:1em;font-weight:600;transition:all .2s ease;display:inline-flex;align-items:center;justify-content:center;gap:8px}.btn-primary{background:#667eea;color:#fff}.btn-primary:hover:not(:disabled){background:#5568d3;transform:translateY(-2px);box-shadow:0 5px 15px #667eea4d}.btn-secondary{background:#f0f0f0;color:#333;border:1px solid #ddd}.btn-secondary:hover:not(:disabled){background:#efefef}.btn-primary:disabled,.btn-secondary:disabled{opacity:.6;cursor:not-allowed}.form-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:20px}.robot-chat-window{display:flex;flex-direction:column;height:600px;border:1px solid #ddd;border-radius:15px;overflow:hidden;background:#fff}.chat-header{display:flex;justify-content:space-between;align-items:center;padding:15px 20px;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;flex-shrink:0}.chat-info{display:flex;gap:15px;align-items:center;flex:1}.chat-avatar{width:40px;height:40px;border-radius:50%;object-fit:cover;border:2px solid white}.chat-title h3{margin:0;font-size:1.1em}.chat-title p{margin:3px 0 0;font-size:.85em;opacity:.8}.chat-controls{display:flex;gap:10px}.btn-voice{padding:8px 14px;border:2px solid white;background:#fff3;color:#fff;border-radius:8px;cursor:pointer;font-size:.95em;font-weight:500;transition:all .2s ease;display:flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap;min-height:40px}.btn-voice:hover{background:#ffffff4d;transform:scale(1.05)}.btn-voice.active{background:#fff;color:#667eea;box-shadow:0 2px 8px #0003}.btn-back{padding:8px 16px;background:#667eea;color:#fff;border:none;border-radius:6px;cursor:pointer;font-size:.95em;font-weight:500;transition:all .2s ease;display:flex;align-items:center;gap:6px}.btn-back:hover{background:#5568d3;transform:translate(-2px)}.chat-messages{flex:1;overflow-y:auto;padding:20px;display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;gap:15px;background:#fafafa}.chat-messages-wrapper{display:flex;gap:20px;align-items:flex-start;height:100%;padding:20px 0}.robot-avatar-column{display:flex;align-items:flex-start;justify-content:center;padding:0 20px;min-width:fit-content}.robot-avatar-sticky{width:140px;height:140px;border-radius:12px;object-fit:cover;box-shadow:0 4px 12px #0000001a;position:sticky;top:20px}.chat-messages-column{flex:1;display:flex;flex-direction:column;gap:15px;overflow-y:auto;max-height:100%;padding:0 20px 0 0}.chat-welcome{margin:auto;text-align:center;color:#999}.welcome-icon{font-size:3em;margin-bottom:10px;animation:bounce 2s infinite}.chat-welcome h3{color:#333}.chat-message{display:flex;animation:slideIn .3s ease}@keyframes slideIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.message-user{justify-content:flex-end}.message-assistant,.message-system{justify-content:flex-start}.message-content{max-width:100%;width:auto;padding:12px 16px;border-radius:12px;word-wrap:break-word;display:flex;gap:10px;align-items:flex-end}.message-user .message-content{background:#667eea;color:#fff}.message-assistant .message-content{background:#fff;color:#333;border:1px solid #ddd}.message-system .message-content{background:#fff3cd;color:#856404;border:1px solid #ffeaa7;width:100%;justify-content:center}.system-message{font-style:italic;font-size:.9em}.message-content a{color:#667eea;text-decoration:underline;cursor:pointer;word-break:break-all;transition:color .2s ease}.message-content a:hover{color:#5568d3;text-decoration:underline}.message-user .message-content a{color:#fff;opacity:.9}.message-user .message-content a:hover{opacity:1}.btn-stop-speak{padding:4px 8px;background:#ffffff4d;border:1px solid white;color:#fff;border-radius:4px;cursor:pointer;font-size:.8em;white-space:nowrap}.typing-indicator{display:flex;gap:4px;align-items:center;height:20px}.typing-indicator span{width:8px;height:8px;background:#999;border-radius:50%;animation:typing 1.4s infinite}.typing-indicator span:nth-child(2){animation-delay:.2s}.typing-indicator span:nth-child(3){animation-delay:.4s}@keyframes typing{0%,60%,to{opacity:.3}30%{opacity:1}}.chat-input-area{display:flex;flex-direction:column;gap:10px;padding:15px 20px;background:#fff;border-top:1px solid #ddd;flex-shrink:0}.input-with-buttons{display:flex;gap:10px;align-items:flex-end}.chat-input-area textarea{flex:1;padding:10px;border:1px solid #ddd;border-radius:8px;resize:none;font-family:inherit;font-size:.95em}.chat-input-area textarea:focus{outline:none;border-color:#667eea}.chat-input-area textarea:disabled{background:#f5f5f5;opacity:.6}.chat-input-buttons{display:flex;gap:10px;justify-content:flex-end;flex-shrink:0}.btn-voice-input{width:44px;height:44px;padding:0;border:none;background:#ff6b6b;color:#fff;border-radius:8px;cursor:pointer;font-size:1.2em;display:flex;align-items:center;justify-content:center;transition:all .2s ease;flex-shrink:0}.btn-voice-input:hover:not(:disabled){background:#ee5a52;transform:scale(1.05)}.btn-voice-input:disabled{opacity:.5;cursor:not-allowed}.btn-voice-input.recording{background:#d63031;animation:pulse 1s infinite;min-width:120px;padding:0 16px;width:auto}@keyframes pulse{0%,to{box-shadow:0 0 #ff6b6bb3}50%{box-shadow:0 0 0 10px #ff6b6b00}}.btn-send{width:44px;height:44px;padding:0;border:none;background:#667eea;color:#fff;border-radius:8px;cursor:pointer;font-size:1.2em;display:flex;align-items:center;justify-content:center;transition:all .2s ease;flex-shrink:0}.btn-send:hover:not(:disabled){background:#5568d3;transform:scale(1.05)}.btn-send:disabled{opacity:.5;cursor:not-allowed}.speaking-indicator{padding:10px 15px;background:#fff3cd;border-top:1px solid #ffc107;color:#856404;display:flex;align-items:center;gap:10px;font-size:.9em}.btn-small{padding:4px 8px;background:#ffc107;border:none;color:#fff;border-radius:4px;cursor:pointer;font-size:.85em}.btn-small:hover{background:#e0a800}.robot-preview-container{display:flex;flex-direction:column;gap:20px}.preview-header{display:flex;justify-content:space-between;align-items:center;padding:20px;background:#f5f5f5;border-radius:10px}.preview-header h2{margin:0;color:#333}.preview-header .btn-close{color:#333}.preview-info{display:grid;grid-template-columns:120px 1fr;gap:20px;padding:20px;background:#fff;border-radius:10px;border:1px solid #ddd}.preview-avatar{display:flex;align-items:center;justify-content:center;background:#f5f5f5;border-radius:10px;padding:10px}.preview-avatar img{max-width:100px;max-height:100px;object-fit:contain}.preview-details h3{margin-top:0;color:#333;font-size:1.3em}.preview-details p{margin:8px 0;color:#666}.preview-content-hint{margin-top:10px;padding-top:10px;border-top:1px solid #eee}.content-preview{margin:8px 0 0;padding:8px;background:#f9f9f9;border-radius:5px;font-size:.9em;color:#666;max-height:80px;overflow:hidden}@media (max-width: 768px){.robot-page{padding:20px 10px}.robot-header h1{font-size:2em}.robot-content{padding:20px}.robot-grid{grid-template-columns:1fr}.robot-chat-window{height:500px}.message-content{max-width:90%}.form-row{grid-template-columns:1fr}.form-actions{flex-direction:column-reverse}.form-actions button{width:100%}.chat-input-area,.chat-input-buttons{gap:8px}.btn-voice-input,.btn-send{width:40px;height:40px;font-size:1.1em}.preview-info{grid-template-columns:1fr}.avatar-selector{grid-template-columns:repeat(3,1fr)}.modal-content{width:95%}}@media (max-width: 480px){.robot-header h1{font-size:1.5em}.robot-header p{font-size:.95em}.robot-grid{gap:15px}.robot-card{padding:15px}.robot-actions{gap:5px}.btn-icon{width:35px;height:35px;font-size:1em}.chat-avatar{width:35px;height:35px}.chat-title h3{font-size:1em}.message-content{max-width:95%;font-size:.9em}.avatar-selector{grid-template-columns:repeat(2,1fr)}}.ai-tools-links{width:100%;margin-top:2rem;padding-bottom:1rem}.ai-tools-subcategory{margin-bottom:2rem}.ai-tools-subcat-title{font-size:1.25rem;font-weight:600;color:#333;margin-bottom:1.5rem;padding-bottom:.75rem;border-bottom:2px solid #e0e0e0}.ai-tools-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:1.5rem;align-items:start}.ai-tool-card{display:flex;flex-direction:column;align-items:center;gap:.75rem;padding:1rem;border-radius:8px;background:#f9f9f9;border:1px solid #e0e0e0;text-decoration:none;color:#333;cursor:pointer;transition:all .3s ease}.ai-tool-card:hover{background:#f0f7ff;border-color:#2196f3}.ai-tool-icon-wrapper{width:60px;height:60px;display:flex;align-items:center;justify-content:center;border-radius:8px;background:#fff;overflow:hidden}.ai-tool-icon{width:100%;height:100%;object-fit:cover}.ai-tool-name{font-size:.875rem;font-weight:500;text-align:center;line-height:1.3;word-break:break-word}@media (max-width: 768px){.ai-tools-links{margin-top:2rem;padding-bottom:1rem}.ai-tools-subcategory{margin-bottom:2rem}.ai-tools-subcat-title{font-size:1.1rem;margin-bottom:1rem}.ai-tools-grid{grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:1rem}.ai-tool-card{padding:.75rem;gap:.5rem}.ai-tool-icon-wrapper{width:50px;height:50px}.ai-tool-name{font-size:.8rem}}@media (max-width: 480px){.ai-tools-links{margin-top:1.5rem}.ai-tools-subcategory{margin-bottom:1.5rem}.ai-tools-subcat-title{font-size:1rem;margin-bottom:.75rem}.ai-tools-grid{grid-template-columns:repeat(3,1fr);gap:.75rem}.ai-tool-card{padding:.5rem;gap:.375rem}.ai-tool-icon-wrapper{width:45px;height:45px}.ai-tool-name{font-size:.75rem}}.api-setup-page{min-height:100vh;background:linear-gradient(135deg,#667eea,#764ba2)}.api-setup-container{max-width:900px;margin:0 auto;padding:3rem 1.5rem}.api-setup-card{background:#fff;border-radius:20px;box-shadow:0 20px 60px #00000026;overflow:hidden}.api-setup-header{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;padding:3rem 2rem;text-align:center}.api-setup-title{font-size:2.5rem;font-weight:800;margin:0 0 1rem}.api-setup-subtitle{font-size:1.1rem;color:#fffffff2;margin:0;line-height:1.6}.api-setup-content{padding:3rem 2rem}.setup-steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:2rem;margin-bottom:3rem}.step{display:flex;gap:1.5rem}.step-number{width:50px;height:50px;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:1.5rem;font-weight:700;flex-shrink:0}.step-content h3{margin:0 0 .5rem;font-size:1rem;color:#2d3748}.step-content p{margin:0;font-size:.9rem;color:#718096;line-height:1.5}.step-links{display:flex;flex-wrap:wrap;gap:1rem;margin-top:.5rem}.step-link{display:inline-block;color:#667eea;text-decoration:none;font-weight:600;transition:color .2s}.step-link:hover{color:#5568d3;text-decoration:underline}.api-setup-form{background:#f8fafc;padding:2rem;border-radius:15px;border:2px solid #e2e8f0;margin-bottom:2rem}.form-group{margin-bottom:1.5rem}.form-group:last-child{margin-bottom:0}.form-label{display:block;font-size:.95rem;font-weight:600;color:#2d3748;margin-bottom:.75rem}.api-key-input{width:100%;padding:.875rem 1rem;border:2px solid #cbd5e0;border-radius:10px;font-size:1rem;font-family:Courier New,monospace;transition:all .3s ease;-webkit-text-security:none!important;text-security:none!important;color:#2d3748!important;background:#fff;margin-bottom:.5rem}.api-key-input:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 3px #667eea1a;background:#fafbff}.api-key-input::placeholder{color:#a0aec0}.model-select{width:100%;padding:.875rem 1rem;border:2px solid #cbd5e0;border-radius:10px;font-size:1rem;transition:all .3s ease;background:#fff;color:#2d3748;cursor:pointer;margin-bottom:.5rem}.model-select:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 3px #667eea1a;background:#fafbff}.form-hint{font-size:.85rem;color:#718096;margin:0;line-height:1.4}.error-message{padding:1rem;background:#fed7d7;color:#c53030;border:1px solid #fc8181;border-radius:8px;margin-bottom:1rem;font-weight:500}.success-message{padding:1rem;background:#c6f6d5;color:#22543d;border:1px solid #9ae6b4;border-radius:8px;margin-bottom:1rem;font-weight:500}.btn-setup{width:100%;padding:1rem;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:10px;font-size:1.05rem;font-weight:600;cursor:pointer;transition:all .3s ease;margin-top:1.5rem;display:flex;align-items:center;justify-content:center;gap:.75rem}.btn-setup:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 10px 25px #667eea4d}.btn-setup:disabled{opacity:.6;cursor:not-allowed}.spinner{display:inline-block;width:1em;height:1em;border:2px solid rgba(255,255,255,.3);border-radius:50%;border-top-color:#fff;animation:spin .8s linear infinite}.video-guide{background:#f0f4ff;padding:1.5rem;border-radius:12px;border-left:4px solid #667eea;text-align:center}.video-guide h3{margin:0 0 .5rem;color:#2d3748;font-size:1rem}.video-guide p{margin:.5rem 0;color:#718096;font-size:.95rem}.video-link{display:inline-block;margin-top:1rem;padding:.75rem 1.5rem;background:#667eea;color:#fff;text-decoration:none;border-radius:8px;font-weight:600;transition:all .3s ease}.video-link:hover{background:#5568d3;transform:translateY(-2px);box-shadow:0 5px 15px #667eea4d}@media (max-width: 768px){.api-setup-header{padding:2rem 1.5rem}.api-setup-title{font-size:2rem}.api-setup-content{padding:1.5rem 1rem}.setup-steps{grid-template-columns:1fr;gap:1.5rem}.api-setup-form{padding:1.5rem}}.ai-tools-page{min-height:100vh;background:linear-gradient(135deg,#667eea,#764ba2)}.ai-tools-content{max-width:1200px;margin:0 auto;padding:1.5rem}.ai-tools-hero{text-align:center;margin-bottom:2rem;padding:1rem 0}.ai-tools-hero .hero-title{font-size:2.8rem;font-weight:800;background:linear-gradient(135deg,#fff,#f0f0f0);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;margin-bottom:.75rem}.ai-tools-hero .hero-subtitle{font-size:1.1rem;color:#ffffffe6;max-width:600px;margin:0 auto}.ai-tools-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1.5rem;margin-bottom:2.5rem}.ai-tool-card{background:#fff;border-radius:20px;overflow:hidden;cursor:pointer;transition:all .3s ease;box-shadow:0 10px 30px #0000001a;position:relative}.ai-tool-card:hover{box-shadow:0 20px 50px #0003}.tool-icon-wrapper{height:120px;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden}.tool-icon-wrapper:before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;background:#0000001a}.tool-icon{font-size:3rem;position:relative;z-index:1}.tool-content{padding:1.5rem}.tool-title{font-size:1.4rem;font-weight:700;color:#2d3748;margin-bottom:.6rem}.tool-description{font-size:.9rem;color:#718096;line-height:1.5;margin-bottom:.75rem}.tool-button{width:100%;padding:.75rem;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:10px;font-size:.95rem;font-weight:600;cursor:pointer;transition:all .3s ease}.tool-button:hover{transform:translateY(-2px);box-shadow:0 5px 15px #667eea66}.tool-badge{position:absolute;top:1rem;right:1rem;background:#fffffff2;padding:.5rem 1rem;border-radius:20px;font-weight:700;font-size:.8rem;color:#667eea;box-shadow:0 2px 10px #0000001a}.ai-tools-info{background:#fffffff2;padding:1.75rem;border-radius:20px;text-align:center;box-shadow:0 10px 30px #0000001a}.ai-tools-info h2{font-size:1.6rem;font-weight:700;color:#2d3748;margin-bottom:.75rem}.ai-tools-info p{font-size:1rem;color:#4a5568;line-height:1.7;max-width:800px;margin:0 auto}@media (max-width: 768px){.ai-tools-hero .hero-title{font-size:2.5rem}.ai-tools-hero .hero-subtitle{font-size:1.1rem}.ai-tools-grid{grid-template-columns:1fr;gap:1.5rem}.tool-content{padding:1.5rem}.ai-tools-info{padding:2rem}.ai-tools-info h2{font-size:1.5rem}.ai-tools-info p{font-size:1rem}}.api-status{font-size:1rem;color:#fffffff2;margin-top:1rem;padding:.5rem 1rem;background:#10b98133;border-radius:20px;display:inline-block}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#000000b3;display:flex;align-items:center;justify-content:center;z-index:9999;padding:2rem}.modal-content{background:#fff;border-radius:20px;padding:2.5rem;max-width:500px;width:100%;box-shadow:0 25px 50px #0000004d}.modal-title{font-size:1.8rem;font-weight:700;color:#2d3748;margin-bottom:1rem}.modal-description{font-size:1rem;color:#4a5568;line-height:1.6;margin-bottom:1.5rem}.input-group{margin-bottom:1.5rem}.input-group label{display:block;font-size:.9rem;font-weight:600;color:#2d3748;margin-bottom:.5rem}.api-key-input{width:100%;padding:.875rem 1rem;border:2px solid #e2e8f0;border-radius:10px;font-size:1rem;transition:all .3s ease;-webkit-text-security:none!important;text-security:none!important;font-family:Courier New,monospace;letter-spacing:normal!important;color:#2d3748!important}.api-key-input:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 3px #667eea1a}.api-key-input::placeholder{color:#a0aec0!important}.modal-links{display:flex;gap:1rem;margin-bottom:1.5rem;flex-wrap:wrap}.help-link{font-size:.875rem;color:#667eea;text-decoration:none;transition:color .2s}.help-link:hover{color:#5568d3;text-decoration:underline}.modal-actions{display:flex;gap:1rem;justify-content:flex-end}.btn-primary,.btn-secondary{padding:.75rem 1.5rem;border-radius:10px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .3s ease;border:none}.btn-primary:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 5px 15px #667eea66}.btn-primary:disabled{opacity:.5;cursor:not-allowed}.btn-secondary{background:#e2e8f0;color:#2d3748}.btn-secondary:hover{background:#cbd5e0}.current-key-note{margin-top:1rem;font-size:.875rem;color:#10b981;text-align:center}@media (max-width: 640px){.modal-overlay{padding:1rem}.modal-content{padding:1.5rem}.modal-actions{flex-direction:column-reverse}.btn-primary,.btn-secondary{width:100%}}.api-key-input{appearance:none;-webkit-appearance:none;-moz-appearance:none;background-image:url(data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%236B7280%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-13%205.4A17.6%2017.6%200%200%200%200%2086.8c0%205%201.8%209.3%205.4%2013l128%20128c3.6%203.6%207.8%205.4%2013%205.4s9.4-1.8%2013-5.4l128-128c3.6-3.6%205.4-7.8%205.4-13%200-5-1.8-9.4-5.4-13z%22%2F%3E%3C%2Fsvg%3E);background-repeat:no-repeat;background-position:right 1rem center;background-size:.75em;padding-right:2.5rem}.api-key-input::-ms-expand{display:none}.blank-space-canvas{position:relative;-webkit-user-select:none;user-select:none}.blank-space-canvas.dragging{cursor:grabbing}.blank-item{cursor:grab;transition:transform .2s ease}.blank-item:hover{transform:scale(1.05)}.blank-item:active{cursor:grabbing}.blank-box{box-shadow:0 2px 4px #0000001a;transition:all .2s ease}.blank-item:hover .blank-box{box-shadow:0 4px 8px #2196f34d;border-color:#1976d2}.quiz-canvas{position:relative;-webkit-user-select:none;user-select:none}.quiz-blank{position:absolute;z-index:10}.blank-drop-zone{position:relative;transition:all .3s ease;cursor:pointer}.blank-drop-zone:hover{box-shadow:0 2px 8px #0003}.quiz-blank.correct .blank-drop-zone{animation:correctAnimation .6s ease-out}@keyframes correctAnimation{0%{box-shadow:0 0 #4caf50b3;transform:scale(1)}50%{box-shadow:0 0 15px #4caf504d;transform:scale(1.05)}to{box-shadow:0 0 #4caf5000;transform:scale(1)}}.quiz-blank.incorrect .blank-drop-zone{animation:incorrectAnimation .6s ease-out}@keyframes incorrectAnimation{0%,to{transform:translate(0)}10%,30%,50%,70%,90%{transform:translate(-5px)}20%,40%,60%,80%{transform:translate(5px)}}.answer-chip{cursor:grab;-webkit-user-select:none;user-select:none;transition:transform .2s ease}.answer-chip:hover{transform:translateY(-2px)}.answer-chip:active{cursor:grabbing;transform:scale(.98)}.answer-chip[draggable=true]{opacity:1;transition:opacity .2s ease}@keyframes slideInUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}@keyframes pulse{0%,to{opacity:1}50%{opacity:.7}}[draggable=true]{-webkit-user-select:none;user-select:none}.blank-drop-zone:hover{background-color:#2196f333}@media (pointer: coarse){.answer-chip,.blank-drop-zone,.blank-item{touch-action:auto;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}.answer-chip:active{opacity:.7;transform:scale(.95)}.blank-drop-zone:active{box-shadow:0 4px 12px #2196f366;background-color:#2196f326!important}}@media (max-width: 768px){.blank-box{font-size:10px}.answer-chip button{font-size:14px;padding:10px!important}.quiz-canvas{width:100%;margin-bottom:20px}button{min-height:44px!important;min-width:44px!important}.quiz-blank{z-index:15}.blank-drop-zone{min-width:40px;min-height:30px}}.no-select{user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}.drag-over{background-color:#2196f326;border-color:#1976d2}.correct-answer{border-color:#4caf50;background-color:#4caf501a}.incorrect-answer{border-color:#f44336;background-color:#f443361a}*[draggable=true]{transition:opacity .2s ease}button:disabled{opacity:.6;cursor:not-allowed}.blank-space-canvas::-webkit-scrollbar,.quiz-canvas::-webkit-scrollbar{width:8px;height:8px}.blank-space-canvas::-webkit-scrollbar-track,.quiz-canvas::-webkit-scrollbar-track{background:#f1f1f1;border-radius:4px}.blank-space-canvas::-webkit-scrollbar-thumb,.quiz-canvas::-webkit-scrollbar-thumb{background:#888;border-radius:4px}.blank-space-canvas::-webkit-scrollbar-thumb:hover,.quiz-canvas::-webkit-scrollbar-thumb:hover{background:#555}.quiz-preview-container{width:100%;height:100vh;overflow:hidden;display:flex;flex-direction:column}.quiz-preview-content{width:100%;flex:1;overflow:hidden;display:flex;flex-direction:column;padding:2px!important;gap:2px!important}.quiz-preview-layout{width:100%;flex:1;overflow:hidden;display:flex;flex-direction:row;gap:2px!important}@media (max-width: 768px){.quiz-preview-layout{flex-direction:column!important}.quiz-preview-sidebar-container{width:100%!important;max-height:200px}.quiz-preview-canvas-section{width:100%!important;overflow:auto!important;justify-content:flex-start!important;padding:0!important}.quiz-canvas{min-width:100%!important;min-height:auto!important;flex-shrink:0!important}}.quiz-preview-sidebar-container{width:350px;overflow-y:auto;overflow-x:hidden;flex-shrink:0;max-height:100%}.quiz-preview-sidebar-container::-webkit-scrollbar{width:6px}.quiz-preview-sidebar-container::-webkit-scrollbar-track{background:transparent}.quiz-preview-sidebar-container::-webkit-scrollbar-thumb{background:#0003;border-radius:3px}.quiz-preview-sidebar-container::-webkit-scrollbar-thumb:hover{background:#0006}.quiz-preview-sidebar-container>div[data-sidebar]{display:flex;flex-direction:column;gap:2px;padding:2px}.quiz-preview-sidebar-container>div[data-sidebar]>div:nth-child(3){flex:1;overflow-y:auto;overflow-x:hidden;padding-right:4px}.quiz-preview-sidebar-container>div[data-sidebar]>div:nth-child(3)::-webkit-scrollbar{width:6px}.quiz-preview-sidebar-container>div[data-sidebar]>div:nth-child(3)::-webkit-scrollbar-track{background:transparent}.quiz-preview-sidebar-container>div[data-sidebar]>div:nth-child(3)::-webkit-scrollbar-thumb{background:#0003;border-radius:3px}.quiz-preview-sidebar-container>div[data-sidebar]>div:nth-child(3)::-webkit-scrollbar-thumb:hover{background:#0006}@media (max-width: 768px){.quiz-preview-container .quiz-canvas{width:auto!important;margin-bottom:0!important}.quiz-preview-container .answer-chip button{font-size:inherit;padding:inherit!important}.quiz-preview-container button{min-height:inherit!important;min-width:inherit!important}.quiz-preview-container .quiz-blank{z-index:10}.quiz-preview-container .blank-drop-zone{min-width:auto;min-height:auto}.quiz-preview-content{width:100%!important;min-width:unset!important}.quiz-preview-layout{width:100%!important;justify-content:flex-start!important;gap:24px!important}}.teaching-materials-page{width:100%;min-height:100vh;background:linear-gradient(135deg,#667eea,#764ba2)}.tm-header{background:linear-gradient(135deg,#667eea,#764ba2);padding:60px 20px;text-align:center;color:#fff;box-shadow:0 10px 40px #0000001a;position:relative}.tm-home-btn{position:absolute;left:20px;top:20px;background:#fff3;color:#fff;border:1px solid rgba(255,255,255,.3);padding:10px 16px;border-radius:8px;font-size:.95rem;font-weight:600;cursor:pointer;transition:all .3s ease;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.tm-home-btn:hover{background:#ffffff4d;border-color:#ffffff80;transform:translate(-2px)}.tm-home-btn:active{transform:translate(0)}.tm-header-content{max-width:1200px;margin:0 auto}.tm-title{font-size:3rem;font-weight:700;margin:0 0 10px;text-shadow:0 2px 10px rgba(0,0,0,.2)}.tm-subtitle{font-size:1.1rem;margin:0;opacity:.95;font-weight:300}.tm-container{display:grid;grid-template-columns:280px 1fr;gap:30px;max-width:1400px;margin:-30px auto 0;padding:30px 20px 50px;z-index:1;position:relative}.tm-sidebar{position:sticky;top:20px;height:fit-content}.tm-main{min-height:400px}.tm-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:400px;gap:20px}.tm-loading .spinner{width:50px;height:50px;border:4px solid rgba(255,255,255,.3);border-top:4px solid white;border-radius:50%;animation:spin 1s linear infinite}.tm-loading p{color:#fff;font-size:1.1rem;font-weight:500}.tm-error{background:#fff;border:2px solid #ff6b6b;border-radius:12px;padding:40px;text-align:center;box-shadow:0 10px 30px #0000001a}.tm-error p{color:#ff6b6b;font-size:1.1rem;margin:0 0 20px}.tm-retry-btn{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;padding:12px 30px;border-radius:8px;font-size:1rem;font-weight:600;cursor:pointer;transition:transform .3s ease,box-shadow .3s ease}.tm-retry-btn:hover{transform:translateY(-2px);box-shadow:0 10px 20px #667eea4d}.tm-empty{background:#fff;border-radius:12px;padding:80px 40px;text-align:center;box-shadow:0 10px 30px #0000001a}.tm-empty-icon{font-size:4rem;display:block;margin-bottom:20px}.tm-empty-text{color:#666;font-size:1.2rem;margin:0 0 30px;font-weight:500}.tm-reset-btn{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;padding:12px 30px;border-radius:8px;font-size:1rem;font-weight:600;cursor:pointer;transition:transform .3s ease,box-shadow .3s ease}.tm-reset-btn:hover{transform:translateY(-2px);box-shadow:0 10px 20px #667eea4d}.material-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:25px;animation:fadeIn .6s ease}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.material-card{background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 5px 20px #00000014;transition:all .3s cubic-bezier(.4,0,.2,1);display:flex;flex-direction:column;height:100%}.material-card:hover{box-shadow:0 15px 40px #00000026}.material-thumbnail{position:relative;width:100%;aspect-ratio:16 / 10;background:linear-gradient(135deg,#f5f7fa,#c3cfe2);overflow:hidden}.material-image{width:100%;height:100%;object-fit:cover;transition:transform .3s ease}.material-card:hover .material-image{transform:scale(1.05)}.material-image-fallback{width:100%;height:100%;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}.material-icon{font-size:3rem}.material-category-badge{position:absolute;top:10px;right:10px;background:#667eeae6;color:#fff;padding:6px 12px;border-radius:20px;font-size:.75rem;font-weight:600;text-transform:uppercase;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.material-content{flex:1;display:flex;flex-direction:column;padding:20px}.material-title{font-size:1.1rem;font-weight:700;color:#1a1a1a;margin:0 0 10px;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.material-description{font-size:.9rem;color:#666;margin:0 0 15px;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;flex:1}.material-footer{margin-bottom:15px;padding-top:15px;border-top:1px solid #eee}.material-stats{display:flex;gap:15px;font-size:.9rem;color:#999}.material-views,.material-date{display:flex;align-items:center;gap:5px;white-space:nowrap}.material-actions{display:flex;gap:10px;width:100%}.material-btn{flex:1;padding:10px 12px;border:none;border-radius:8px;font-size:.9rem;font-weight:600;cursor:pointer;transition:all .3s ease;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.material-btn-primary{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}.material-btn-primary:hover{transform:translateY(-2px);box-shadow:0 8px 16px #667eea4d}.material-btn-primary:active{transform:translateY(0)}.material-btn-secondary{background:#f0f0f0;color:#333;border:1px solid #ddd}.material-btn-secondary:hover{background:#e8e8e8;border-color:#ccc}.material-btn-secondary.copied{background:#4caf50;color:#fff;border-color:#4caf50}.material-btn-video{background:linear-gradient(135deg,#ff6b6b,#ee5a6f);color:#fff;border:none}.material-btn-video:hover{transform:translateY(-2px);box-shadow:0 8px 16px #ff6b6b4d}.material-btn-video:active{transform:translateY(0)}.category-filter{background:#fff;border-radius:12px;padding:25px;box-shadow:0 5px 20px #00000014}.filter-section{margin-bottom:30px}.filter-section:last-child{margin-bottom:0}.filter-title{font-size:1rem;font-weight:700;color:#1a1a1a;margin:0 0 15px}.search-input-wrapper{position:relative}.search-input{width:100%;padding:12px 15px;border:2px solid #e0e0e0;border-radius:8px;font-size:.95rem;transition:all .3s ease;font-family:inherit}.search-input:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 3px #667eea1a}.search-input.active{border-color:#667eea}.search-clear-btn{position:absolute;right:12px;top:50%;transform:translateY(-50%);background:none;border:none;font-size:1.2rem;cursor:pointer;color:#999;padding:5px;transition:color .2s ease}.search-clear-btn:hover{color:#333}.category-list{display:flex;flex-direction:column;gap:8px}.category-btn{text-align:left;padding:10px 12px;border:1px solid #e0e0e0;background:#fff;border-radius:6px;font-size:.95rem;cursor:pointer;transition:all .3s ease;color:#333;font-weight:500}.category-btn:hover{border-color:#667eea;background:#f8f9ff}.category-btn.active{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border-color:transparent;box-shadow:0 4px 12px #667eea4d}.sort-select{width:100%;padding:10px 12px;border:2px solid #e0e0e0;border-radius:8px;font-size:.95rem;background:#fff;cursor:pointer;transition:all .3s ease;font-family:inherit;font-weight:500}.sort-select:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 3px #667eea1a}.sort-select:hover{border-color:#667eea}.reset-filters-btn{width:100%;padding:10px 12px;background:#f5f5f5;border:1px solid #ddd;border-radius:8px;font-size:.95rem;font-weight:600;cursor:pointer;color:#333;transition:all .3s ease}.reset-filters-btn:hover{background:#efefef;border-color:#ccc}.filter-stats{padding-top:20px;border-top:1px solid #e0e0e0}.filter-info{font-size:.85rem;color:#999;margin:0;display:flex;align-items:center;gap:8px;line-height:1.5}.tm-thank-you{background:linear-gradient(135deg,#43e97b,#38f9d7);padding:40px 20px;text-align:center;color:#fff;margin-top:50px}.tm-thank-you-text{max-width:700px;margin:0 auto;font-size:1.1rem;font-style:italic;font-weight:500;line-height:1.6;text-shadow:0 2px 4px rgba(0,0,0,.1)}@media (max-width: 1024px){.tm-title{font-size:2.2rem}.tm-container{grid-template-columns:1fr;gap:20px;padding:20px 15px 40px}.tm-sidebar{position:static}.material-grid{grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:20px}}@media (max-width: 768px){.tm-header{padding:40px 15px}.tm-title{font-size:1.8rem}.tm-subtitle{font-size:1rem}.tm-container{padding:15px 15px 30px}.material-grid{grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:15px}.material-card{box-shadow:0 2px 10px #0000000f}.material-card:hover{box-shadow:0 8px 20px #0000001a}.material-title{font-size:.95rem}.material-description{font-size:.85rem;-webkit-line-clamp:1}.material-btn{padding:8px 10px;font-size:.8rem}.category-filter{padding:20px}.filter-title{font-size:.95rem}.tm-thank-you-text{font-size:1rem}}@media (max-width: 480px){.tm-header{padding:50px 10px 30px}.tm-home-btn{left:10px;top:10px;padding:8px 12px;font-size:.85rem}.tm-title{font-size:1.5rem;margin-bottom:8px}.tm-subtitle{font-size:.9rem}.tm-container{padding:10px 10px 20px}.material-grid{grid-template-columns:1fr;gap:12px}.material-thumbnail{aspect-ratio:16 / 12}.material-content{padding:15px}.material-icon{font-size:2rem}.material-actions{flex-direction:column}.material-btn{padding:10px;font-size:.85rem}.category-filter{padding:15px}.tm-empty{padding:40px 20px}.tm-empty-icon{font-size:3rem}.tm-empty-text{font-size:1rem}.tm-thank-you{padding:30px 15px}.tm-thank-you-text{font-size:.95rem}}.wheel-container{display:flex;justify-content:center;align-items:center;position:relative;width:100%;max-width:600px;margin:0 auto;padding:20px}.wheel-wrapper{position:relative;width:100%;aspect-ratio:1 / 1;max-width:600px;display:flex;justify-content:center;align-items:center}#wheel{width:100%;height:100%;transition:transform 6s cubic-bezier(.25,.1,.25,1);filter:drop-shadow(0 20px 50px rgba(0,0,0,.4)) drop-shadow(-10px -10px 30px rgba(255,255,255,.2))}.wheel-pointer{position:absolute;top:50%;transform:translateY(-50%);right:-20px;z-index:10;width:50px;height:14px;background-color:#fff;border-radius:0 4px 4px 0;filter:drop-shadow(0 2px 4px rgba(0,0,0,.4))}.wheel-pointer:before{content:"";position:absolute;right:100%;top:0;width:0;height:0;border-top:7px solid transparent;border-bottom:7px solid transparent;border-right:15px solid #ffffff}.wheel-center{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:60px;height:60px;background:linear-gradient(135deg,#fa709a,#fee140);border-radius:50%;border:5px solid white;z-index:20;display:flex;justify-content:center;align-items:center;box-shadow:0 5px 15px #0000004d}.wheel-center:after{content:"";width:10px;height:10px;background:#fff;border-radius:50%}.spin-button{position:absolute;bottom:-80px;left:50%;transform:translate(-50%);padding:12px 40px;font-size:18px;font-weight:700;background:linear-gradient(135deg,#fa709a,#fee140);color:#fff;border:none;border-radius:50px;cursor:pointer;transition:all .3s ease;box-shadow:0 5px 15px #fa709a66;z-index:5}.spin-button:hover:not(:disabled){transform:translate(-50%) translateY(-2px);box-shadow:0 8px 20px #fa709a99}.spin-button:active:not(:disabled){transform:translate(-50%) translateY(0);box-shadow:0 3px 10px #fa709a66}.spin-button:disabled{opacity:.6;cursor:not-allowed;background:linear-gradient(135deg,#ccc,#ddd)}.student-name{position:absolute;transform-origin:50% 50%;text-shadow:1px 1px 2px rgba(0,0,0,.5);font-weight:600;color:#fff;text-align:center;max-width:40%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:clamp(10px,2vw,16px)}@media (max-width: 768px){.wheel-container{padding:10px;max-width:400px}.wheel-wrapper{max-width:400px}.wheel-pointer{border-top:12px solid transparent;border-bottom:12px solid transparent;border-left:20px solid white;right:-8px;top:50%;transform:translateY(-50%)}.wheel-center{width:50px;height:50px;border:4px solid white}.spin-button{padding:10px 30px;font-size:16px;bottom:-70px}.student-name{font-size:clamp(8px,1.5vw,12px)}}@media (max-width: 480px){.wheel-container{padding:5px;max-width:300px}.wheel-wrapper{max-width:300px}.wheel-pointer{border-top:10px solid transparent;border-bottom:10px solid transparent;border-left:16px solid white;right:-6px;top:50%;transform:translateY(-50%)}.wheel-center{width:40px;height:40px;border:3px solid white}.spin-button{padding:8px 24px;font-size:14px;bottom:-65px}.student-name{font-size:clamp(7px,1.2vw,10px)}}@keyframes pulse{0%{box-shadow:0 0 #fa709ab3}70%{box-shadow:0 0 0 15px #fa709a00}to{box-shadow:0 0 #fa709a00}}.spin-button:not(:disabled){animation:pulse 2s infinite}.spin-button.spinning{animation:none;box-shadow:0 5px 15px #c8c8c866}#confetti-canvas{position:fixed;top:0;left:0;width:100%;height:100%;pointer-events:none;z-index:100}.random-mode-config-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background-color:#00000080;display:flex;align-items:center;justify-content:center;z-index:2000}.random-mode-config-modal{background:#fff;border-radius:12px;padding:30px;max-width:400px;width:90%;box-shadow:0 10px 40px #0003;z-index:2001}.random-mode-config-modal h2{margin-top:0;margin-bottom:20px;font-size:1.5rem;color:#333;text-align:center;font-weight:600}.config-description{text-align:center;color:#555;font-size:1rem;margin-bottom:20px;line-height:1.5}.config-input-group{margin-bottom:20px;display:flex;flex-direction:column;gap:8px}.config-input-group label{font-weight:600;color:#333;font-size:.95rem}.config-input{padding:10px 12px;border:2px solid #e0e0e0;border-radius:6px;font-size:1rem;transition:border-color .2s}.config-input:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 3px #667eea1a}.config-hint{font-size:.85rem;color:#999}.config-info{background:#f5f5f5;border-left:4px solid #667eea;padding:12px;margin-bottom:20px;border-radius:4px;font-size:.9rem;color:#555;line-height:1.6}.config-info p{margin:0}.config-buttons{display:flex;gap:10px;justify-content:flex-end}.config-buttons button{padding:10px 20px;border:none;border-radius:6px;font-weight:600;cursor:pointer;transition:all .2s;font-size:.95rem}.btn-secondary{background:#e0e0e0;color:#333}.btn-secondary:hover{background:#d0d0d0}.btn-primary{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}.btn-primary:hover{transform:translateY(-2px);box-shadow:0 4px 12px #667eea4d}.btn-primary:active{transform:translateY(0)}@media (max-width: 600px){.random-mode-config-modal{max-width:100%;width:95%;padding:20px}.random-mode-config-modal h2{font-size:1.3rem;margin-bottom:15px}.config-buttons{flex-direction:column}.config-buttons button{width:100%}}.wheel-quiz-page{min-height:100vh;background:linear-gradient(135deg,#70aefa,#39e5d7,#e9a6f0);background-size:200% 200%;animation:gradientShift 15s ease infinite;padding:20px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,sans-serif}.wheel-quiz-container{max-width:1400px;margin:0 auto}.wheel-quiz-header{background:linear-gradient(135deg,#fa709a,#fee140);color:#fff;padding:30px 20px;border-radius:10px;margin-bottom:30px;box-shadow:0 5px 20px #fa709a4d;text-align:center}.wheel-quiz-header h1{margin:0;font-size:2.5rem;font-weight:700;text-shadow:2px 2px 4px rgba(0,0,0,.2)}.wheel-quiz-header p{margin:10px 0 0;font-size:1rem;opacity:.95}.wheel-quiz-layout{display:grid;grid-template-columns:1fr 2fr 1fr;gap:20px;margin-bottom:40px}@media (max-width: 1024px){.wheel-quiz-layout{grid-template-columns:1fr 1fr}}@media (max-width: 768px){.wheel-quiz-layout{grid-template-columns:1fr}}.quiz-panel{background:#fffffff2;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);border-radius:16px;padding:25px;box-shadow:0 8px 32px #0000001a;border:1px solid rgba(255,255,255,.3)}.quiz-panel h2{margin:0 0 20px;font-size:1.5rem;color:#333;border-bottom:3px solid #fa709a;padding-bottom:10px}.quiz-panel h3{margin:20px 0 15px;font-size:1.1rem;color:#555}.student-list{max-height:400px;overflow-y:auto;border:1px solid #eee;border-radius:8px;padding:10px;margin-bottom:15px}.student-item{display:flex;justify-content:space-between;align-items:center;padding:10px;background:#f9f9f9;border-radius:6px;margin-bottom:8px;transition:background .2s}.student-item:hover{background:#f0f0f0}.student-item button{padding:4px 12px;background:#ff6b6b;color:#fff;border:none;border-radius:4px;cursor:pointer;font-size:.85rem;transition:background .2s}.student-item button:hover{background:#ff5252}.quiz-form{margin-bottom:20px}.form-group{margin-bottom:15px}.form-group label{display:block;margin-bottom:8px;font-weight:600;color:#333;font-size:.95rem}.form-group input,.form-group textarea,.form-group select{width:100%;padding:12px;border:1px solid #ddd;border-radius:6px;font-size:1rem;font-family:inherit;transition:border-color .2s,box-shadow .2s}.form-group input:focus,.form-group textarea:focus,.form-group select:focus{outline:none;border-color:#fa709a;box-shadow:0 0 0 3px #fa709a1a}.form-group textarea{resize:vertical;min-height:100px;font-family:Courier New,monospace}.btn{padding:12px 24px;border:none;border-radius:6px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .3s ease;display:inline-flex;align-items:center;gap:8px;text-decoration:none}.btn-primary{background:linear-gradient(135deg,#fa709a,#fee140);color:#fff;box-shadow:0 4px 12px #fa709a4d}.btn-primary:hover{transform:translateY(-2px);box-shadow:0 6px 16px #fa709a66}.btn-primary:active{transform:translateY(0);box-shadow:0 2px 8px #fa709a33}.btn-secondary{background:#6c757d;color:#fff}.btn-secondary:hover{background:#5a6268}.btn-danger{background:#ff6b6b;color:#fff}.btn-danger:hover{background:#ff5252}.btn-success{background:#51cf66;color:#fff}.btn-success:hover{background:#40c057}.btn-small{padding:6px 12px;font-size:.85rem}.btn-block{width:100%;justify-content:center}.btn:disabled{opacity:.5;cursor:not-allowed}.leaderboard{margin-top:20px}.leaderboard-table{width:100%;border-collapse:collapse;margin-top:15px}.leaderboard-table thead{background:#fa709a;color:#fff}.leaderboard-table th{padding:12px;text-align:left;font-weight:600}.leaderboard-table td{padding:12px;border-bottom:1px solid #eee}.leaderboard-table tbody tr:hover{background:#f9f9f9}.leaderboard-table tbody tr:nth-child(1){background:#fff3cd}.leaderboard-table tbody tr:nth-child(2){background:#f8f9fa}.leaderboard-table tbody tr:nth-child(3){background:#ffe8d9}.rank-badge{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:50%;font-weight:700;color:#fff;font-size:.9rem}.rank-1{background:gold;color:#333}.rank-2{background:silver;color:#333}.rank-3{background:#cd7f32}.quiz-board{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;padding:40px;border-radius:12px;text-align:center;margin-bottom:20px}.quiz-board.correct{background:linear-gradient(135deg,#51cf66,#37b24d)}.quiz-board.wrong{background:linear-gradient(135deg,#ff6b6b,#ff5252)}.quiz-question{font-size:1.5rem;font-weight:700;margin-bottom:30px;line-height:1.4}.quiz-options{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin-bottom:20px}@media (max-width: 600px){.quiz-options{grid-template-columns:1fr}}.quiz-option{padding:20px;background:#fff3;border:2px solid transparent;border-radius:8px;cursor:pointer;transition:all .3s ease;font-size:1.1rem;font-weight:600}.quiz-option:hover{background:#ffffff4d;border-color:#fff;transform:translateY(-2px)}.quiz-option.selected{background:#fff6;border-color:#fff}.quiz-option.correct{background:#51cf66;border-color:#fff}.quiz-option.wrong{background:#ff6b6b;border-color:#fff}.alert{padding:15px;border-radius:8px;margin-bottom:15px;display:flex;align-items:center;gap:12px}.alert-info{background:#d1ecf1;color:#0c5460;border:1px solid #bee5eb}.alert-success{background:#d4edda;color:#155724;border:1px solid #c3e6cb}.alert-warning{background:#fff3cd;color:#856404;border:1px solid #ffeaa7}.alert-danger{background:#f8d7da;color:#721c24;border:1px solid #f5c6cb}.quota-display{padding:12px;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border-radius:6px;text-align:center;font-weight:600;margin-bottom:20px}.quota-display.pro{background:linear-gradient(135deg,#51cf66,#37b24d)}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#00000080;display:flex;justify-content:center;align-items:center;z-index:1000}.ML__virtual-keyboard-toggle,.ML__virtual-keyboard{position:fixed!important;z-index:2000!important}math-field{position:relative;z-index:1001}.modal-content{background:#fff;border-radius:12px;padding:30px;max-width:500px;max-height:90vh;overflow-y:auto;box-shadow:0 10px 40px #0000004d;overflow:visible}.modal-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;border-bottom:2px solid #fa709a;padding-bottom:15px}.modal-header h2{margin:0;font-size:1.5rem;color:#333}.modal-close{background:none;border:none;font-size:1.5rem;cursor:pointer;color:#666}.modal-close:hover{color:#333}.loading{display:flex;justify-content:center;align-items:center;min-height:200px}.spinner{width:50px;height:50px;border:5px solid #f3f3f3;border-top:5px solid #fa709a;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.empty-state{text-align:center;padding:40px 20px;color:#999}.empty-state-icon{font-size:3rem;margin-bottom:15px}.empty-state h3{margin:15px 0 8px;color:#666;font-size:1.2rem}.text-center{text-align:center}.text-muted{color:#999;font-size:.9rem}.mb-10{margin-bottom:10px}.mb-20{margin-bottom:20px}.mt-20{margin-top:20px}.hidden{display:none!important}.flex{display:flex}.flex-center{display:flex;justify-content:center;align-items:center}.flex-between{display:flex;justify-content:space-between;align-items:center}.gap-10{gap:10px}.gap-20{gap:20px}.wheel-quiz-footer{text-align:center;padding:20px;color:#666;font-size:.9rem;border-top:1px solid #ddd}.wheel-quiz-footer p{margin:5px 0}@media (max-width: 768px){.wheel-quiz-page{padding:10px}.wheel-quiz-header{padding:20px 15px;margin-bottom:20px}.wheel-quiz-header h1{font-size:1.8rem}.quiz-panel{padding:15px}.quiz-panel h2{font-size:1.2rem}.quiz-board{padding:20px}.quiz-question{font-size:1.2rem}}@media (max-width: 480px){.wheel-quiz-header h1{font-size:1.5rem}.quiz-panel h2{font-size:1.1rem}.form-group input,.form-group textarea{padding:10px;font-size:16px}.btn{padding:10px 20px;font-size:.95rem}.quiz-board{padding:15px}}.app-container{min-height:100vh;display:flex;justify-content:center;align-items:center;padding:20px;background:linear-gradient(135deg,#667eea,#764ba2,#f093fb);animation:gradientShift 15s ease infinite;background-size:200% 200%}@keyframes gradientShift{0%{background-position:0% 50%}50%{background-position:100% 50%}to{background-position:0% 50%}}.player-container{width:100%;display:flex;justify-content:center;align-items:center}@keyframes spin{to{transform:rotate(360deg)}}@keyframes slideUp{0%{transform:translateY(100px);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes slideDown{0%{transform:translateY(0);opacity:1}to{transform:translateY(100px);opacity:0}}*{margin:0;padding:0;box-sizing:border-box}body{margin:0;font-family:Segoe UI,Noto Sans,-apple-system,BlinkMacSystemFont,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-color:#000;min-height:100vh;overflow-x:hidden}#root{min-height:100vh}button{font-family:inherit;cursor:pointer}input,select{font-family:inherit}::placeholder{color:#95a5a6;opacity:.8}.hotspot-placeholder{width:32px;height:32px;border-radius:50%;background-color:#0096ffb3;border:2px solid white;cursor:pointer}.hotspot-placeholder:hover{background-color:#0096ff}
