/* Karim Academy V57 — compact floating student shortcuts; visual-only layer. */
.kf-student-dock {
  box-sizing: border-box;
  position: fixed;
  top: 12px;
  left: 16px;
  width: calc(100vw - 32px);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  min-height: 82px;
  padding: 8px 12px;
  z-index: 60;
  border: 1px solid rgba(126, 102, 219, .21);
  border-radius: 23px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 15px 48px rgba(33, 24, 84, .15), 0 2px 10px rgba(33,24,84,.055);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-22px) scale(.98);
  pointer-events: none;
  transition: opacity .25s ease, transform .28s cubic-bezier(.2,.85,.25,1), visibility .25s;
  direction: rtl;
}
.kf-student-dock.is-shown { opacity:1; visibility:visible; transform:translateY(0) scale(1); pointer-events:auto; }
.kf-student-dock-heading {
  display:flex; align-items:center; gap:9px; padding-inline:3px 7px;
  white-space:nowrap; font-size:12px; font-weight:750; color:#322368; flex-shrink:0;
}
.kf-student-dock-heading-mark {
  width:36px; height:36px; border-radius:13px; display:grid;place-items:center;
  background:linear-gradient(135deg,#8365fc,#5640c8); color:#fff;
  box-shadow: 0 5px 13px rgba(113,85,217,.21);
}
.kf-student-dock-links {
  display:flex; flex:1; min-width:0; align-items:stretch; gap:6px;
  padding:4px 2px; overflow-x:auto; overflow-y:hidden;
  scrollbar-width:thin; scrollbar-color:#c4b8ec transparent;
  overscroll-behavior-x:contain; scroll-snap-type:x proximity;
}
.kf-student-dock-link {
  flex:1 0 84px; min-width:84px; max-width:160px;
  min-height:63px; display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:4px; padding:7px 8px; border-radius:15px;
  text-decoration:none!important; text-align:center; white-space:nowrap;
  color:#302952!important; font-size:11px; font-weight:700;
  scroll-snap-align:start; transition:background .18s ease, transform .18s ease;
}
.kf-student-dock-link:hover { background:var(--kf-dock-tint,#f1edff); transform:translateY(-2px); }
.kf-student-dock-link:focus-visible { outline:3px solid #9b87f2; outline-offset:-2px; }
.kf-student-dock-link .kf-dock-icon {
  display:grid; place-items:center; width:35px;height:35px; flex-shrink:0;
  color:var(--kf-dock-tone,#6f55db); background:var(--kf-dock-tint,#f0ebff);
  border-radius:12px;
}
.kf-student-dock-link .kf-dock-icon svg {width:21px!important; height:21px!important;stroke:currentColor;}
.kf-student-dock-link .kf-dock-label { display:block; max-width:100%; overflow:hidden; text-overflow:ellipsis; }
.kf-student-dock-link:nth-child(7n + 1) {--kf-dock-tone:#7153da;--kf-dock-tint:#f0ecff}
.kf-student-dock-link:nth-child(7n + 2) {--kf-dock-tone:#0d927d;--kf-dock-tint:#def8f1}
.kf-student-dock-link:nth-child(7n + 3) {--kf-dock-tone:#d68722;--kf-dock-tint:#fff2dc}
.kf-student-dock-link:nth-child(7n + 4) {--kf-dock-tone:#3176d4;--kf-dock-tint:#eaf1ff}
.kf-student-dock-link:nth-child(7n + 5) {--kf-dock-tone:#bd4677;--kf-dock-tint:#ffebf3}
.kf-student-dock-link:nth-child(7n + 6) {--kf-dock-tone:#8a65cb;--kf-dock-tint:#f0e9ff}
.kf-student-dock-link:nth-child(7n + 7) {--kf-dock-tone:#c05e36;--kf-dock-tint:#fff0e7}
@media(max-width:900px) {
  .kf-student-dock {top:9px; min-height:69px; padding:6px 8px; gap:4px; border-radius:19px;}
  .kf-student-dock-heading {display:none;}
  .kf-student-dock-link {min-height:60px; flex:0 0 81px; min-width:81px; padding:5px 4px; font-size:10px;}
  .kf-student-dock-link .kf-dock-icon {width:30px;height:30px;border-radius:10px}
  .kf-student-dock-link .kf-dock-icon svg {width:19px!important;height:19px!important}
}
@media(max-width:520px) {
  .kf-student-dock {top:8px; border-radius:16px; min-height:65px;}
  .kf-student-dock-link {min-height:56px; flex-basis:76px; min-width:76px; font-size:9px;}
  .kf-student-dock-link .kf-dock-icon {width:28px;height:28px}
}
@media(prefers-reduced-motion:reduce) {
  .kf-student-dock,.kf-student-dock-link {transition:none!important;}
}
