@import url("responsive-global.css");
*{margin:0;padding:0;box-sizing:border-box;}
body{font-family:'Segoe UI',Tahoma,Geneva,Verdana,sans-serif;
  background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);
  min-height:100vh;padding:20px;direction:rtl;}
.top-nav{background:white;padding:12px 20px;border-radius:15px;margin-bottom:20px;
  box-shadow:0 4px 6px rgba(0,0,0,.1);display:flex;gap:12px;justify-content:center;flex-wrap:wrap;}
.nav-link{padding:8px 18px;background:linear-gradient(135deg,#667eea,#764ba2);color:white;
  text-decoration:none;border-radius:8px;font-weight:bold;font-size:.9em;transition:all .3s;}
.nav-link:hover{transform:translateY(-2px);box-shadow:0 4px 8px rgba(0,0,0,.2);}
.ulysse-container{position:fixed;top:20px;right:20px;
  background:linear-gradient(135deg,#667eea,#764ba2);border-radius:12px;
  padding:8px 15px;box-shadow:0 3px 10px rgba(0,0,0,.2);z-index:999;color:white;font-weight:bold;}
.agent-avatar{position:fixed;bottom:30px;left:30px;z-index:1000;animation:float 3s ease-in-out infinite;}
@keyframes float{0%,100%{transform:translateY(0)}50%{transform:translateY(-10px)}}
.avatar-image{font-size:2.5em;background:white;border-radius:50%;width:72px;height:72px;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 5px 20px rgba(0,0,0,.3);cursor:pointer;border:4px solid #667eea;}
.avatar-speech{position:absolute;bottom:82px;left:-20px;background:white;
  padding:13px 18px;border-radius:14px;box-shadow:0 5px 20px rgba(0,0,0,.2);
  max-width:270px;display:none;font-size:.88em;border:2px solid #667eea;line-height:1.6;}
.avatar-speech.show{display:block;}
.container{max-width:900px;margin:0 auto;background:white;border-radius:20px;
  padding:32px;box-shadow:0 10px 30px rgba(0,0,0,.2);}
.page-title{text-align:center;color:#667eea;font-size:2em;margin-bottom:6px;font-weight:800;}
.page-subtitle{text-align:center;color:#666;margin-bottom:18px;}
.page-info-bar{display:flex;justify-content:center;gap:12px;margin-bottom:18px;flex-wrap:wrap;}
.info-badge{padding:5px 14px;border-radius:20px;font-size:.8em;font-weight:700;}
.badge-class{background:#e8f4fd;color:#2980b9;border:1px solid #bee3f8;}
.badge-op{background:#f0e6ff;color:#764ba2;border:1px solid #d6bcfa;}
.badge-lvl{background:#e8fff0;color:#27ae60;border:1px solid #9ae6b4;}
.video-box{text-align:center;background:linear-gradient(135deg,#f093fb,#f5576c);
  padding:18px 22px;border-radius:15px;margin:16px 0;}
.video-box h3{color:white;margin-bottom:10px;}
.video-btn{padding:10px 20px;background:white;color:#f5576c;border:none;border-radius:10px;
  font-size:.95em;font-weight:bold;cursor:pointer;}
.progress-container{margin-bottom:20px;}
.progress-bar-outer{background:#e9ecef;height:26px;border-radius:13px;overflow:hidden;margin-bottom:6px;}
.progress-bar-inner{background:linear-gradient(90deg,#28a745,#20c997);height:100%;width:0%;
  transition:width .5s;display:flex;align-items:center;justify-content:center;color:white;font-weight:bold;font-size:.85em;}
.progress-text{text-align:center;color:#666;font-size:.88em;}
.section-title{background:linear-gradient(135deg,#667eea,#764ba2);color:white;
  padding:12px 20px;border-radius:12px;margin-bottom:16px;font-size:1.2em;font-weight:bold;text-align:center;}
.mode-bar{display:flex;justify-content:center;gap:10px;margin-bottom:18px;}
.mode-btn{padding:9px 22px;border-radius:20px;border:2px solid #667eea;background:white;
  color:#667eea;font-weight:bold;cursor:pointer;font-size:.9em;transition:all .2s;}
.mode-btn.active{background:#667eea;color:white;}
.manual-zone{display:none;background:#f8f9fa;border-radius:14px;padding:20px;margin-bottom:18px;}
.manual-zone.show{display:block;}
.manual-form{display:flex;align-items:center;gap:8px;flex-wrap:wrap;direction:ltr;justify-content:center;margin-bottom:14px;}
.frac-inp{display:inline-flex;flex-direction:column;align-items:center;gap:4px;}
.frac-inp input{width:72px;padding:8px;border:2px solid #667eea;border-radius:8px;text-align:center;font-size:1.1em;}
.frac-sep{width:76px;height:2px;background:#333;}
.op-select{padding:8px 12px;border:2px solid #667eea;border-radius:8px;font-size:1.1em;background:white;}
.btn-add-exo{padding:9px 20px;background:linear-gradient(135deg,#667eea,#764ba2);color:white;
  border:none;border-radius:10px;font-size:.88em;font-weight:bold;cursor:pointer;}
.manual-list{list-style:none;}
.manual-item{display:flex;align-items:center;justify-content:space-between;background:white;
  padding:10px 16px;border-radius:10px;margin-bottom:8px;border-right:4px solid #667eea;font-size:1.05em;direction:ltr;}
.manual-item .del-btn{background:none;border:none;color:#dc3545;font-size:1.2em;cursor:pointer;}
.btn-launch{width:100%;padding:12px;background:linear-gradient(135deg,#28a745,#20c997);color:white;
  border:none;border-radius:12px;font-size:1em;font-weight:800;cursor:pointer;margin-top:10px;}
.exo-zone{margin-bottom:10px;}
.final-success{display:none;text-align:center;padding:32px;
  background:linear-gradient(135deg,#28a745,#20c997);color:white;border-radius:20px;margin-top:22px;}
.final-success.show{display:block;}
.final-success h2{font-size:2em;margin-bottom:12px;}
.nav-pages{display:flex;justify-content:space-between;align-items:center;
  margin-top:22px;padding-top:18px;border-top:2px solid #e9ecef;}
.btn-nav{padding:10px 22px;border:none;border-radius:10px;font-size:.9em;font-weight:bold;cursor:pointer;}
.btn-prev{background:#e9ecef;color:#495057;}
.btn-next{background:linear-gradient(135deg,#667eea,#764ba2);color:white;}
.btn-nav:disabled{opacity:.4;cursor:not-allowed;}
.page-indicator{font-size:.9em;color:#666;font-weight:bold;}
.video-modal{display:none;position:fixed;inset:0;background:rgba(0,0,0,.75);z-index:9998;align-items:center;justify-content:center;}
.video-modal.show{display:flex;}
.video-modal-box{background:#1a1a2e;border-radius:16px;padding:18px;width:90%;max-width:680px;}
.video-modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px;}
.video-modal-title{color:white;font-weight:bold;}
.video-modal-close{width:30px;height:30px;background:rgba(255,255,255,.15);border:none;color:white;border-radius:50%;cursor:pointer;}
.video-frame-wrap{position:relative;padding-bottom:56.25%;height:0;border-radius:10px;overflow:hidden;}
.video-frame-wrap iframe{position:absolute;inset:0;width:100%;height:100%;border:none;}
.no-video{background:#2d2d44;border-radius:10px;padding:40px;text-align:center;color:#aaa;}
.erc{border-right:5px solid #667eea!important;margin-bottom:12px;}
.erc.erc-ok{border-right-color:#22c55e!important;}
.erc.erc-faux{border-right-color:#ef4444!important;}
.erc.erc-fini{border-right-color:#a0a0a0!important;}
@media(max-width:768px){.container{padding:16px;}.page-title{font-size:1.5em;}}