:root {
  --rp-brand: #EE6B65;
  --rp-brand-deep: #E2564F;
  --rp-brand-soft: #FDEDEC;
  --rp-ground: #f4f5f8;
  --rp-card: #ffffff;
  --rp-line: #e6e9f0;
  --rp-line-soft: #f0f2f6;
  --rp-ink: #1e1c26;
  --rp-soft: #6b7280;
  --rp-faint: #a0a6b3;
  --rp-r: 16px;
  --rp-r-sm: 10px;
  --rp-shadow: 0 10px 30px -18px rgba(20, 24, 40, .25);
}

.rahav-dark {
  --rp-ground: #101318;
  --rp-card: #181c24;
  --rp-line: #262b36;
  --rp-line-soft: #202530;
  --rp-ink: #eef0f4;
  --rp-soft: #9aa3b2;
  --rp-faint: #6b7280;
  --rp-brand-soft: #3a2220;
  --rp-shadow: 0 10px 30px -18px rgba(0, 0, 0, .8);
}

body.rahav-panel-body {
  margin: 0;
  background: var(--rp-ground);
  color: var(--rp-ink);
  font-family: var(--rahav-font, "Vazirmatn", "Segoe UI", Tahoma, sans-serif);
  font-size: 15px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

body.rahav-panel-body * {
  box-sizing: border-box;
}

body.rahav-panel-locked {
  overflow: hidden;
}

.rahav-panel {
  --rp-top-h: 70px;
  background: var(--rp-ground);
  color: var(--rp-ink);
}

.rahav-panel__ico {
  width: 1.15em;
  height: 1.15em;
  display: inline-block;
  vertical-align: -0.2em;
  flex: 0 0 auto;
}

.rahav-panel :focus-visible {
  outline: 2px solid var(--rp-brand);
  outline-offset: 2px;
}

.rahav-panel__side {
  position: fixed;
  inset-inline-start: 0;
  top: 0;
  bottom: 0;
  z-index: 60;
  width: 300px;
  display: flex;
  flex-direction: column;
  padding: 28px 24px 24px;
  background: var(--rp-card);
  border-radius: 0 0 0 28px;
  box-shadow: var(--rp-shadow);
  overflow-y: auto;
}

[dir=rtl] .rahav-panel__side {
  border-radius: 0 0 0 28px;
}

.rahav-panel__wrap {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-inline-start: 300px;
}

.rahav-panel__top,
.rahav-panel__content {
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: 36px;
  box-sizing: border-box;
}

.rahav-panel__top {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 22px;
  padding-bottom: 6px;
  background: var(--rp-ground);
}

.rahav-panel__content {
  flex: 1 1 auto;
  padding-top: 12px;
  padding-bottom: 8px;
}

@media (min-width: 783px) {
  .admin-bar .rahav-panel__side {
    top: 32px;
    height: calc(100% - 32px);
  }
  .admin-bar .rahav-panel__wrap {
    padding-top: 32px;
  }
  .admin-bar .rahav-panel__top {
    top: 32px;
  }
  .admin-bar .rahav-panel {
    --rp-top-h: 102px;
  }
}
@media (max-width: 782px) {
  .admin-bar .rahav-panel__wrap {
    padding-top: 46px;
  }
  .admin-bar .rahav-panel__top {
    top: 46px;
  }
  .admin-bar .rahav-panel {
    --rp-top-h: 116px;
  }
}
.rahav-panel__side-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  height: 44px;
  margin-bottom: 26px;
}

.rahav-panel__brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  color: var(--rp-ink);
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
}

.rahav-panel__brand:hover {
  color: var(--rp-ink);
}

.rahav-panel__brand img {
  width: auto;
  height: 18px;
  max-width: 160px;
  object-fit: contain;
  display: block;
}

.rahav-panel__brand span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rahav-panel__side-close {
  display: none;
  margin-inline-start: auto;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--rp-ground);
  color: var(--rp-soft);
  cursor: pointer;
}

.rahav-panel__side-close:hover {
  background: var(--rp-brand-soft);
  color: var(--rp-brand-deep);
}

.rahav-panel__nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rahav-panel__nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--rp-r-sm);
  color: var(--rp-ink);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.rahav-panel__nav-link:hover {
  background: var(--rp-ground);
  color: var(--rp-ink);
}

.rahav-panel__nav-icon {
  display: inline-flex;
  color: inherit;
}

.rahav-panel__nav-icon .rahav-panel__ico {
  width: 21px;
  height: 21px;
}

.rahav-panel__badge {
  margin-inline-start: auto;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--rp-brand);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.6;
  white-space: nowrap;
}

.rahav-panel__nav-item.is-active .rahav-panel__nav-link {
  background: transparent;
  color: var(--rp-ink);
  font-weight: 800;
}

.rahav-panel__nav-item.is-active .rahav-panel__nav-icon {
  color: var(--rp-brand);
}

.rahav-panel__nav-item.is-active .rahav-panel__nav-link::after {
  content: "";
  position: absolute;
  inset-inline-start: -24px;
  top: 9px;
  bottom: 9px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: var(--rp-brand);
}

.rahav-panel__top-start {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.rahav-panel__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  min-width: 0;
  color: var(--rp-ink);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
}

.rahav-panel__title span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rahav-panel__title-arrow {
  display: inline-flex;
  color: var(--rp-faint);
}

.rahav-panel__title-arrow .rahav-panel__ico {
  width: 20px;
  height: 20px;
}

.rahav-panel__top-end {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.rahav-panel__icon-btn,
.rahav-panel__top-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  min-width: 42px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  background: var(--rp-card);
  color: var(--rp-ink);
  font: inherit;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.rahav-panel__icon-btn:hover,
.rahav-panel__top-btn:hover {
  background: var(--rp-brand-soft);
  color: var(--rp-brand-deep);
}

.rahav-panel__top-btn .rahav-panel__ico,
.rahav-panel__icon-btn .rahav-panel__ico {
  width: 20px;
  height: 20px;
}

.rahav-panel__top-back {
  padding: 0 16px;
}

.rahav-panel__menu {
  display: none;
}

.rahav-panel__when-dark {
  display: none;
}

.rahav-dark .rahav-panel__when-dark {
  display: inline-flex;
}

.rahav-dark .rahav-panel__when-light {
  display: none;
}

.rahav-panel__user {
  position: relative;
}

.rahav-panel__user-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 10px;
  border: 0;
  border-radius: 12px;
  background: var(--rp-card);
  color: var(--rp-ink);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.rahav-panel__user-btn:hover {
  background: var(--rp-brand-soft);
  color: var(--rp-brand-deep);
}

.rahav-panel__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 30px;
  background: var(--rp-brand);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.rahav-panel__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rahav-panel__user-name {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rahav-panel__caret {
  display: inline-flex;
  color: var(--rp-faint);
}

.rahav-panel__caret .rahav-panel__ico {
  width: 16px;
  height: 16px;
}

.rahav-panel__user-menu {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  z-index: 70;
  min-width: 240px;
  padding: 6px 0;
  border: 1px solid var(--rp-line);
  border-radius: 14px;
  background: var(--rp-card);
  box-shadow: 0 18px 44px -12px rgba(20, 18, 28, 0.2);
  overflow: hidden;
}

.rahav-panel__user-menu[hidden] {
  display: none;
}

.rahav-panel__user-scrim {
  display: none;
}

.rahav-panel__user-menu-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 18px 8px;
  border-bottom: 1px solid var(--rp-line-soft);
  margin-bottom: 4px;
}

.rahav-panel__user-menu-head b {
  font-size: 13.5px;
  font-weight: 800;
}

.rahav-panel__user-menu-head small {
  color: var(--rp-faint);
  font-size: 11.5px;
  direction: ltr;
  text-align: end;
}

.rahav-panel__user-menu-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 18px;
  color: var(--rp-ink);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.rahav-panel__user-menu-link:hover {
  background: var(--rp-ground);
  color: var(--rp-ink);
}

.rahav-panel__user-menu-link .rahav-panel__ico {
  width: 20px;
  height: 20px;
  color: var(--rp-soft);
}

.rahav-panel__user-menu-link.is-current {
  color: var(--rp-brand);
}

.rahav-panel__user-menu-link.is-current .rahav-panel__ico {
  color: var(--rp-brand);
}

.rahav-panel__logout {
  margin-top: 4px;
  border-top: 1px solid var(--rp-line-soft);
}

.rahav-panel__logout .rahav-panel__ico {
  color: var(--rp-brand);
}
.rahav-panel__dark-item {
  width: 100%;
  background: transparent;
  border: 0;
  font: inherit;
  text-align: start;
  cursor: pointer;
}
.rahav-panel__user-menu .rahav-panel__dark-item {
  display: none;
}
.rahav-panel__dark-item .rahav-panel__dark-label {
  flex: 1;
}

.rahav-panel-block__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.rahav-panel-block__title {
  margin: 0;
  color: var(--rp-ink);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.6;
}

.rahav-panel-block__count {
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--rp-card);
  color: var(--rp-soft);
  font-size: 12px;
  white-space: nowrap;
}

.rahav-panel .rahav-empty {
  padding: 40px 16px;
  border-radius: var(--rp-r);
  background: var(--rp-card);
  border: 1px solid var(--rp-line);
  color: var(--rp-soft);
  text-align: center;
}

.rahav-mycards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.rahav-mycard {
  display: block;
}

.rahav-mycard__link {
  display: block;
  text-decoration: none !important;
  color: inherit !important;
}

.rahav-mycard__shot {
  position: relative;
  display: block;
  aspect-ratio: 560/860;
  overflow: hidden;
  border-radius: 10px;
  background: #1c1a1f;
  box-shadow: 0 8px 22px -10px rgba(0, 0, 0, 0.25);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
}

@supports not (aspect-ratio: 560 / 860) {
  .rahav-mycard__shot {
    height: 0;
    padding-bottom: 153.5714%;
  }
}
.rahav-mycard__shot.is-blank {
  background: radial-gradient(120% 90% at 80% 15%, #3a2a2c 0%, #232028 55%, #17161c 100%);
}

.rahav-mycard__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.rahav-mycard__shot::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 60%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to top, rgba(12, 10, 16, 0.88) 0%, rgba(12, 10, 16, 0.66) 30%, rgba(12, 10, 16, 0.34) 58%, rgba(12, 10, 16, 0.1) 82%, rgba(12, 10, 16, 0) 100%);
}

.rahav-mycard__top {
  position: absolute;
  z-index: 3;
  inset-inline: 0;
  top: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  color: #fff;
  background: linear-gradient(to bottom, rgba(12, 10, 16, 0.55), rgba(12, 10, 16, 0));
}

.rahav-mycard__pct {
  font-size: 12.5px;
  font-weight: 700;
}

.rahav-mycard__price {
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.rahav-mycard__price.is-free {
  background: rgba(61, 180, 127, 0.9);
  border-color: rgba(61, 180, 127, 0.9);
}

.rahav-mycard__go {
  margin-inline-start: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.rahav-mycard__go .rahav-panel__ico {
  width: 15px;
  height: 15px;
}

.rahav-mycard__bar {
  position: absolute;
  z-index: 3;
  inset-inline: 0;
  top: 44px;
  height: 4px;
  background: rgba(255, 255, 255, 0.22);
}

.rahav-mycard__bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #F69A4C, #EE6B65);
}

.rahav-mycard__caption {
  position: absolute;
  z-index: 2;
  inset-inline: 10%;
  bottom: 9%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
}

.rahav-mycard__name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.5;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.rahav-mycard__desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.2em;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.6;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

@media (hover: hover) and (pointer: fine) {
  .rahav-mycard:hover .rahav-mycard__shot {
    transform: translateY(-6px);
    box-shadow: 0 30px 44px -22px rgba(0, 0, 0, 0.5);
  }
  .rahav-mycard:hover .rahav-mycard__img {
    transform: scale(1.035);
  }
}
.rahav-panel-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  border-radius: var(--rp-r);
  border: 1px solid var(--rp-line);
  background: var(--rp-card);
}

.rahav-panel-empty__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--rp-brand-soft);
  color: var(--rp-brand);
}

.rahav-panel-empty__mark .rahav-panel__ico {
  width: 28px;
  height: 28px;
}

.rahav-panel-empty__title {
  margin: 0 0 6px;
  color: var(--rp-ink);
  font-size: 18px;
  font-weight: 800;
}

.rahav-panel-empty__text {
  margin: 0 0 20px;
  max-width: 46ch;
  color: var(--rp-soft);
  font-size: 13.5px;
}

.rahav-panel-empty__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 26px;
  border-radius: 12px;
  background: var(--rp-brand);
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.rahav-panel-empty__cta:hover {
  background: var(--rp-brand-deep);
  transform: translateY(-1px);
}

.rahav-panel__scrim {
  display: none;
}

.rahav-panel__main {
  position: fixed;
  inset-inline-start: 0;
  top: 0;
  bottom: 0;
  z-index: 90;
  width: 300px;
  max-width: calc(100vw - 40px);
  display: flex;
  flex-direction: column;
  padding: 28px 24px 24px;
  background: var(--rp-card);
  border-radius: 0 0 0 28px;
  box-shadow: 0 18px 50px -22px rgba(20, 24, 40, 0.45);
  overflow-y: auto;
  animation: rahav-panel-main-in 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

[dir=rtl] .rahav-panel__main {
  border-radius: 0 0 0 28px;
}

.rahav-panel__main[hidden] {
  display: none;
}

.rahav-panel__main .rahav-panel__side-head {
  margin-bottom: 14px;
}

.rahav-panel__main-close {
  display: inline-flex;
}

.rahav-panel__main-scrim {
  position: fixed;
  inset: 0;
  z-index: 85;
  background: rgba(20, 18, 28, 0.5);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.rahav-panel__main-scrim[hidden] {
  display: none;
}

@keyframes rahav-panel-main-in {
  from {
    opacity: 0;
    transform: translateX(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rahav-panel__main {
    animation: none;
  }
}

@media (max-width: 1199px) {
  .rahav-panel__wrap {
    padding-inline-start: 0;
  }
  .rahav-panel__side {
    z-index: 80;
    width: 290px;
    padding: 24px 20px;
    border-radius: 0;
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  }
  [dir=rtl] .rahav-panel__side {
    border-radius: 0;
    transform: translateX(100%);
  }
  .rahav-panel.is-side-open .rahav-panel__side {
    transform: none;
  }
  .rahav-panel__scrim:not([hidden]) {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 70;
    background: rgba(20, 18, 28, 0.5);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
  }
  .rahav-panel__side-close,
  .rahav-panel__menu {
    display: inline-flex;
  }
  .rahav-panel__top,
  .rahav-panel__content {
    padding-inline: 20px;
  }
  .rahav-panel__top-back span {
    display: none;
  }
  .rahav-panel__top-back {
    padding: 0 12px;
  }
}
@media (max-width: 991px) {
  .rahav-mycards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}
@media (max-width: 767px) {
  .rahav-panel__user-name {
    display: none;
  }
  .rahav-panel__top-end > .rahav-panel__dark {
    display: none;
  }
  .rahav-panel__user-menu .rahav-panel__dark-item {
    display: flex;
  }
}
@media (max-width: 575px) {
  .rahav-panel__title {
    font-size: 16px;
  }
  .rahav-mycard__name {
    font-size: 14px;
  }
  .rahav-mycard__desc {
    font-size: 11.5px;
  }
  .rahav-panel__content {
    padding-top: 8px;
  }
}
@media (max-width: 560px) {
  .rahav-mycards {
    gap: 12px;
  }
  .rahav-panel__user-menu {
    min-width: 0;
    width: max-content;
    max-width: calc(100vw - 24px);
  }
}
@media (max-width: 400px) {
  .rahav-panel__top-back {
    display: none;
  }
}
.rahav-panel__side--course {
  padding: 22px 18px 20px;
}

.rahav-cw-rail {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rahav-cw-rail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.rahav-cw-rail-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--rp-ink);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

.rahav-cw-rail-back:hover {
  color: var(--rp-brand-deep);
}

.rahav-cw-rail-back .rahav-panel__ico {
  width: 20px;
  height: 20px;
  color: var(--rp-brand);
}

.rahav-cw-suggest {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border: 1px solid #f6d7c8;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff8f3, var(--rp-card) 72%);
}

.rahav-cw-suggest__head {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.rahav-cw-suggest__ico {
  flex: 0 0 auto;
  font-size: 17px;
  line-height: 1.5;
}

.rahav-cw-suggest__copy {
  min-width: 0;
}

.rahav-cw-suggest__title {
  display: block;
  color: var(--rp-ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.7;
}

.rahav-cw-suggest__desc {
  display: block;
  margin-top: 2px;
  color: var(--rp-soft);
  font-size: 11.5px;
  line-height: 1.8;
}

.rahav-cw-suggest__field {
  width: 100%;
  min-height: 58px;
  padding: 8px 10px;
  border: 1px solid var(--rp-line);
  border-radius: 10px;
  background: var(--rp-card);
  color: var(--rp-ink);
  font: inherit;
  font-size: 12.5px;
  line-height: 1.8;
  resize: vertical;
  outline: 0;
}

.rahav-cw-suggest__field:focus {
  border-color: var(--rp-brand);
  box-shadow: 0 0 0 3px var(--rp-brand-soft);
}

.rahav-cw-suggest__field::placeholder {
  color: var(--rp-faint);
}

.rahav-cw-suggest__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.rahav-cw-suggest__status {
  min-width: 0;
  color: var(--rp-soft);
  font-size: 11.5px;
  line-height: 1.6;
}

.rahav-cw-suggest__status.is-ok {
  color: #0b6b45;
}

.rahav-cw-suggest__status.is-err {
  color: #b42318;
}

.rahav-cw-suggest__btn {
  flex: 0 0 auto;
  padding: 6px 14px;
  font-size: 12px;
}

.rahav-cw-suggest__btn:disabled {
  opacity: .6;
  cursor: progress;
}

.rahav-dark .rahav-cw-suggest {
  border-color: #3a2a22;
  background: linear-gradient(180deg, #241a16, var(--rp-card) 72%);
}

.rahav-dark .rahav-cw-suggest__status.is-ok {
  color: #7fe0b3;
}

.rahav-dark .rahav-cw-suggest__status.is-err {
  color: #ff9b91;
}

.rahav-cw-progress {
  height: 6px;
  border-radius: 99px;
  background: var(--rp-line);
  overflow: hidden;
}

.rahav-cw-progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #F69A4C, #EE6B65);
}

.rahav-cw-progress-text {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: -6px;
  color: var(--rp-soft);
  font-size: 12px;
}

.rahav-cw-progress-text b {
  color: var(--rp-ink);
  font-size: 14px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.rahav-cw-tools {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rahav-cw-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--rp-line);
  border-radius: 10px;
  background: var(--rp-card);
  color: var(--rp-faint);
}

.rahav-cw-search .rahav-panel__ico {
  width: 18px;
  height: 18px;
}

.rahav-cw-search input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 40px;
  border: 0;
  background: transparent;
  color: var(--rp-ink);
  font: inherit;
  font-size: 13px;
  outline: 0;
}

.rahav-cw-search-x {
  border: 0;
  background: none;
  padding: 0;
  color: var(--rp-faint);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.rahav-cw-search-x:hover {
  color: var(--rp-ink);
}

.rahav-cw-tree {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rahav-cw-tree[hidden] {
  display: none;
}

.rahav-cw-sec {
  border: 1px solid var(--rp-line-soft);
  border-radius: 12px;
  background: var(--rp-card);
  overflow: hidden;
}

.rahav-cw-sec[hidden] {
  display: none;
}

.rahav-cw-sec-head {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 12px;
  border: 0;
  background: transparent;
  color: var(--rp-ink);
  font: inherit;
  text-align: start;
  cursor: pointer;
}

.rahav-cw-num {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--rp-ground);
  color: var(--rp-soft);
  font-size: 12px;
  font-weight: 700;
}

.rahav-cw-sec-title {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.7;
}

.rahav-cw-sec-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--rp-faint);
}

.rahav-cw-sec-count {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.rahav-cw-chev {
  display: inline-flex;
  transition: transform 0.2s ease;
}

.rahav-cw-chev .rahav-panel__ico {
  width: 16px;
  height: 16px;
}

.rahav-cw-sec.is-open .rahav-cw-chev {
  transform: rotate(180deg);
}

.rahav-cw-topics {
  list-style: none;
  margin: 0;
  padding: 0 8px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rahav-cw-sec:not(.is-open) .rahav-cw-topics {
  display: none;
}

.rahav-cw-topics li[hidden] {
  display: none;
}

.rahav-cw-topic {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 9px;
  border-radius: 9px;
  color: var(--rp-soft);
  font-size: 12.5px;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.rahav-cw-topic:hover {
  background: var(--rp-ground);
  color: var(--rp-ink);
}

.rahav-cw-topic.is-locked {
  cursor: default;
}

.rahav-cw-topic.is-locked:hover {
  background: transparent;
  color: var(--rp-soft);
}

.rahav-cw-play {
  display: inline-flex;
  color: var(--rp-faint);
}

.rahav-cw-play .rahav-panel__ico {
  width: 15px;
  height: 15px;
}

.rahav-cw-topic-title {
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.7;
}

.rahav-cw-topic-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--rp-faint);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.rahav-cw-done {
  display: inline-flex;
  color: #2A8F64;
}

.rahav-cw-done .rahav-panel__ico {
  width: 14px;
  height: 14px;
}

.rahav-cw-badge {
  padding: 2px 8px;
  border-radius: 99px;
  background: var(--rp-brand-soft);
  color: var(--rp-brand-deep);
  font-size: 10.5px;
  font-weight: 700;
}

.rahav-cw-topic.is-current {
  background: var(--rp-brand-soft);
  color: var(--rp-brand-deep);
  font-weight: 700;
}

.rahav-cw-topic.is-current .rahav-cw-play,
.rahav-cw-topic.is-current .rahav-cw-topic-meta {
  color: currentColor;
}

.rahav-cw-empty {
  margin: 0;
  padding: 16px 10px;
  text-align: center;
  color: var(--rp-soft);
  font-size: 12px;
}

.rahav-cw {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rahav-cw-player {
  position: relative;
  border-radius: var(--rp-r);
  overflow: hidden;
  background: #000;
  box-shadow: var(--rp-shadow);
}

.rahav-cw .rahav-video {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
}

.rahav-cw-player:fullscreen,
.rahav-cw-player:-webkit-full-screen {
  background: #000;
}

.rahav-cw-player:fullscreen .rahav-video,
.rahav-cw-player:-webkit-full-screen .rahav-video {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
}

.rahav-fs-btn {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: rgba(15, 23, 42, .55);
  color: #fff;
  cursor: pointer;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  transition: background-color .2s ease;
}

.rahav-fs-btn[hidden] {
  display: none;
}

.rahav-fs-btn:hover {
  background: rgba(15, 23, 42, .78);
}

.rahav-fs-btn:focus-visible {
  outline: 2px solid var(--rp-brand, #EE6B65);
  outline-offset: 2px;
}

.rahav-fs-btn svg {
  width: 21px;
  height: 21px;
}

.rahav-fs-btn__close {
  display: none;
}

.rahav-fs-btn.is-on .rahav-fs-btn__open {
  display: none;
}

.rahav-fs-btn.is-on .rahav-fs-btn__close {
  display: inline-flex;
}

.rahav-cw-player.is-audio .rahav-fs-btn,
.rahav-player__stage.is-audio .rahav-fs-btn,
.rahav-cw-player.is-release-locked .rahav-fs-btn,
.rahav-player__stage.is-release-locked .rahav-fs-btn,
.rahav-player.is-release-locked .rahav-fs-btn {
  display: none;
}

.rahav-fs-ready .rahav-video::-webkit-media-controls-fullscreen-button {
  display: none !important;
}

.rahav-wm-faux-fs {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-width: none !important;
  border-radius: 0 !important;
  z-index: 2147483000 !important;
  background: #000 !important;
}

.rahav-wm-faux-fs .rahav-video {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
}

html.rahav-wm-faux-fs-lock,
html.rahav-wm-faux-fs-lock body {
  overflow: hidden !important;
}

.rahav-wm-faux-exit {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.rahav-wm-faux-exit:hover {
  background: rgba(0, 0, 0, 0.75);
}

.rahav-cw-prep {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.95rem;
  text-align: center;
  pointer-events: none;
}

.rahav-cw-prep[hidden] {
  display: none;
}

.rahav-cw-prep__text {
  max-width: 38ch;
  line-height: 1.9;
}

.rahav-cw-prep__bar {
  width: min(260px, 60%);
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  overflow: hidden;
}

.rahav-cw-prep__bar[hidden] {
  display: none;
}

.rahav-cw-prep__bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: #fff;
  transition: width 0.6s ease;
}

.rahav-cw-titlebar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border: 1px solid var(--rp-line);
  border-radius: var(--rp-r);
  background: var(--rp-card);
}

.rahav-cw-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.rahav-cw-title-sub {
  color: var(--rp-brand-deep);
  font-size: 12px;
  font-weight: 700;
}

.rahav-cw-title-main {
  margin: 0;
  color: var(--rp-ink);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.rahav-cw-title-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
}

.rahav-cw-title-actions .rahav-btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

.rahav-cw-title-actions .rahav-qsel {
  min-width: 0;
  max-width: 100%;
}

.rahav-cw-title-actions .rahav-qsel__label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rahav-cw-pct {
  color: var(--rp-soft);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}

.rahav-cw-list-btn {
  display: none;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--rp-line);
  border-radius: var(--rp-r);
  background: var(--rp-card);
  color: var(--rp-ink);
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
}

.rahav-cw-list-ico {
  display: inline-flex;
  color: var(--rp-brand);
}

.rahav-cw-list-ico .rahav-panel__ico {
  width: 20px;
  height: 20px;
}

.rahav-cw-list-text {
  flex: 1 1 auto;
  text-align: start;
}

.rahav-cw-list-chev {
  display: inline-flex;
  color: var(--rp-faint);
}

.rahav-cw-list-chev .rahav-panel__ico {
  width: 16px;
  height: 16px;
}

.rahav-cw-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--rp-line);
}

.rahav-cw-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: -1px;
  padding: 10px 14px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--rp-soft);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.rahav-cw-tab:hover {
  color: var(--rp-ink);
}

.rahav-cw-tab.is-active {
  border-bottom-color: var(--rp-brand);
  color: var(--rp-ink);
  font-weight: 700;
}

.rahav-cw-tab[hidden] {
  display: none;
}

.rahav-cw-pane {
  display: none;
}

.rahav-cw-pane.is-active {
  display: block;
}

.rahav-lesson-content {
  padding: 18px 20px;
  border: 1px solid var(--rp-line);
  border-radius: var(--rp-r);
  background: var(--rp-card);
  color: var(--rp-ink);
  font-size: 16px;
  line-height: 2;
}

.rahav-lesson-content:empty {
  display: none;
}

.rahav-lesson-content p {
  margin: 0 0 10px;
}

.rahav-lesson-content a {
  color: var(--rp-brand);
}

.rahav-lesson-content .rahav-ts {
  color: var(--rp-brand);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  cursor: pointer;
}

.rahav-lesson-content .rahav-ts:hover {
  background: var(--rp-brand-soft);
  color: var(--rp-brand-deep);
}

.rahav-lesson-content .rahav-ts:focus-visible {
  border-radius: 4px;
  outline: 2px solid var(--rp-brand);
  outline-offset: 2px;
}

.rahav-lesson-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 12px;
}

.rahav-lesson-content th,
.rahav-lesson-content td {
  border: 1px solid var(--rp-line);
  padding: 8px 10px;
  text-align: right;
  vertical-align: top;
}

.rahav-lesson-content thead th {
  background: var(--rp-line-soft);
  font-weight: 700;
}

.rahav-lesson-files {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rahav-lesson-files:empty {
  display: none;
}

.rahav-cw-file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid var(--rp-line);
  border-radius: 12px;
  background: var(--rp-card);
  color: var(--rp-ink);
  text-decoration: none;
}

.rahav-cw-file:hover {
  border-color: var(--rp-brand);
}

.rahav-cw-file-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.rahav-cw-file-text b {
  font-size: 13.5px;
  font-weight: 700;
}

.rahav-cw-file-text span {
  color: var(--rp-faint);
  font-size: 11.5px;
}

.rahav-cw-file-dl {
  display: inline-flex;
  color: var(--rp-brand);
}

.rahav-cw-file-dl svg {
  width: 18px;
  height: 18px;
}

.rahav-cw-files-empty {
  margin: 0;
  padding: 18px;
  border: 1px dashed var(--rp-line);
  border-radius: var(--rp-r);
  color: var(--rp-soft);
  font-size: 13px;
  text-align: center;
}

.rahav-cw-files-empty[hidden] {
  display: none;
}

.rahav-cw-stepnav {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.rahav-cw-step {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 48%;
  padding: 10px 14px;
  border: 1px solid var(--rp-line);
  border-radius: 12px;
  background: var(--rp-card);
  color: var(--rp-ink);
  text-decoration: none;
}

.rahav-cw-step[hidden] {
  display: none;
}

.rahav-cw-step:hover {
  border-color: var(--rp-brand);
}

.rahav-cw-step--prev .rahav-cw-step-ico {
  transform: scaleX(-1);
}

.rahav-cw-step--next {
  margin-inline-start: auto;
  text-align: end;
}

/* Media card row: previous/next step boxes flank the centred ±N seconds
   controls of the dedicated audio edition. */
.rahav-cw-stepnav--media {
  align-items: center;
}

.rahav-cw-stepnav--media .rahav-cw-step--next {
  margin-inline-start: 0;
}

.rahav-cw-stepnav__center {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.rahav-cw-stepnav__center[hidden] {
  display: none;
}

.rahav-cw-stepnav__center .rahav-seek {
  position: static;
  justify-content: center;
  gap: 14px;
  margin-top: 0;
  transform: none;
  pointer-events: auto;
}

.rahav-cw-stepnav__center .rahav-seek__btn {
  width: 44px;
  height: 44px;
  border-color: rgba(255, 255, 255, .3);
  background: rgba(15, 23, 42, .72);
  box-shadow: 0 2px 8px rgba(15, 23, 42, .18);
}

.rahav-cw-stepnav__center .rahav-seek__ico svg {
  width: 26px;
  height: 26px;
}

.rahav-cw-stepnav__center .rahav-seek__num {
  font-size: 12px;
}

.rahav-cw-step-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.rahav-cw-step-text small {
  color: var(--rp-faint);
  font-size: 11px;
}

.rahav-cw-step-text b {
  max-width: 100%;
  overflow: hidden;
  color: var(--rp-ink);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.7;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rahav-cw-step-ico {
  display: inline-flex;
  flex: 0 0 auto;
  color: var(--rp-faint);
}

.rahav-cw-step-ico .rahav-panel__ico {
  width: 16px;
  height: 16px;
}

.rahav-cw-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--rp-line);
  border-radius: var(--rp-r);
  background: var(--rp-card);
}

.rahav-cw-card--access {
  border-color: transparent;
  background: var(--rp-brand-soft);
}

.rahav-cw-card-ico {
  display: inline-flex;
  flex: 0 0 auto;
  color: var(--rp-brand);
}

.rahav-cw-card-ico .rahav-panel__ico {
  width: 22px;
  height: 22px;
}

.rahav-cw-card-body {
  flex: 1 1 auto;
}

.rahav-cw-card-body b {
  display: block;
  font-size: 14px;
  font-weight: 800;
}

.rahav-cw-card-body p {
  margin: 4px 0 0;
  color: var(--rp-soft);
  font-size: 13px;
  line-height: 1.9;
}

.rahav-cw-card-act {
  flex: 0 0 auto;
}

.rahav-dark .rahav-cw .rahav-btn--ghost {
  border-color: var(--rp-line);
  background: var(--rp-card);
  color: var(--rp-ink);
}

.rahav-dark .rahav-cw .rahav-btn--ghost:hover {
  background: var(--rp-ground);
}

@media (max-width: 1199px) {
  .rahav-cw-list-btn {
    display: inline-flex;
  }
}
@media (max-width: 575px) {
  .rahav-cw-title-actions {
    gap: 8px;
  }
  .rahav-cw-title-actions .rahav-btn {
    padding: 9px 16px;
  }
  .rahav-cw-title-actions .rahav-qsel__btn {
    padding: 5px 9px;
    font-size: .78rem;
  }
  .rahav-cw-stepnav {
    flex-direction: column;
  }
  .rahav-cw-step {
    max-width: none;
  }
  .rahav-cw-step--next {
    margin-inline-start: 0;
    text-align: start;
  }
}
@media (prefers-reduced-motion: reduce) {
  .rahav-mycard__shot,
  .rahav-mycard__img,
  .rahav-panel__side,
  .rahav-cw-chev {
    transition: none;
  }
}

/* Rahav LMS - audio lesson player: compact bar instead of a 16:9 box */
.rahav-video.rahav-media--audio { aspect-ratio: auto; height: 74px; background: #0b0f19; border-radius: 12px; }
.rahav-cw .rahav-video.rahav-media--audio { aspect-ratio: auto; height: 74px; }

/* ==========================================================================
   Account settings («تنظیمات حساب») — same design tokens as the panel.
   ========================================================================== */
.rahav-acc { max-width: 860px; margin: 0 auto; }
.rahav-acc__card {
  background: var(--rp-card); border: 1px solid var(--rp-line); border-radius: var(--rp-r);
  padding: 22px; box-shadow: var(--rp-shadow);
}
.rahav-acc__note { margin-bottom: 16px; padding: 12px 14px; border-radius: var(--rp-r-sm); font-size: 13.5px; font-weight: 600; }
.rahav-acc__note.is-ok { background: #e9f7f0; color: #2a8f64; }
.rahav-acc__note.is-error { background: var(--rp-brand-soft); color: var(--rp-brand-deep); }

.rahav-acc__identity { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.rahav-acc-avatar {
  width: 64px; height: 64px; flex: 0 0 64px; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center; background: var(--rp-brand); color: #fff; font-weight: 800; font-size: 24px;
}
.rahav-acc-avatar img { width: 100%; height: 100%; object-fit: cover; }
.rahav-acc__identity-info { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; }
.rahav-acc__identity-info b { font-size: 16px; color: var(--rp-ink); }
.rahav-acc__identity-info small { color: var(--rp-soft); font-size: 12.5px; }
.rahav-acc-upload {
  display: inline-flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 9px 16px; border: 1px solid var(--rp-brand); border-radius: var(--rp-r-sm);
  color: var(--rp-brand); cursor: pointer; font-size: 13px; font-weight: 700; transition: background-color .15s ease, color .15s ease;
}
.rahav-acc-upload:hover { background: var(--rp-brand); color: #fff; }
.rahav-acc-upload small { font-weight: 400; font-size: 11px; opacity: .85; }

.rahav-acc__sep { border-top: 1px dashed var(--rp-line); margin: 20px 0; }
.rahav-acc__section { margin: 0 0 12px; font-size: 15px; font-weight: 800; color: var(--rp-ink); }
.rahav-acc__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.rahav-acc__hint { margin: 12px 0 0; color: var(--rp-faint); font-size: 12px; }
@media (max-width: 760px) { .rahav-acc__grid { grid-template-columns: 1fr; } }

.rahav-acc-field { position: relative; display: block; }
.rahav-acc-input {
  width: 100%; height: 54px; border: 1px solid var(--rp-line); border-radius: var(--rp-r-sm);
  background: var(--rp-card); color: var(--rp-ink); padding: 20px 14px 6px; font: inherit; font-size: 14px;
  box-shadow: none; appearance: none; transition: border-color .15s ease, box-shadow .15s ease;
}
.rahav-acc-field--ltr .rahav-acc-input { direction: ltr; text-align: left; }
.rahav-acc-input:focus { outline: 0; border-color: var(--rp-brand); box-shadow: 0 0 0 3px rgba(238, 107, 101, .16); }
.rahav-acc-label {
  position: absolute; inset-inline-start: 14px; top: 17px; font-size: 14px; color: var(--rp-faint);
  pointer-events: none; transition: top .14s ease, font-size .14s ease, color .14s ease;
}
.rahav-acc-input:focus + .rahav-acc-label,
.rahav-acc-input:not(:placeholder-shown) + .rahav-acc-label,
.rahav-acc-field--select .rahav-acc-label,
.rahav-acc-field.is-readonly .rahav-acc-label { top: 7px; font-size: 11px; color: var(--rp-soft); }
.rahav-acc-field.is-readonly .rahav-acc-input { background: var(--rp-ground); color: var(--rp-soft); }
.rahav-acc-field--select::after {
  content: "\25BE"; position: absolute; inset-inline-end: 14px; top: 50%; transform: translateY(-50%);
  color: var(--rp-faint); pointer-events: none; font-size: 12px;
}
.req { color: var(--rp-brand); font-style: normal; }

.rahav-acc-eye {
  position: absolute; inset-inline-end: 8px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border: 0; background: none; color: var(--rp-faint); cursor: pointer;
  display: grid; place-items: center; padding: 0;
}
.rahav-acc-eye svg { width: 19px; height: 19px; }
.rahav-acc-eye.is-on { color: var(--rp-brand); }

.rahav-acc-switch { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13.5px; color: var(--rp-ink); margin: 4px 0 16px; }
.rahav-acc-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.rahav-acc-switch__track { position: relative; width: 44px; height: 24px; flex: 0 0 44px; border-radius: 999px; background: var(--rp-line); transition: background-color .16s ease; }
.rahav-acc-switch__dot { position: absolute; top: 3px; inset-inline-start: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .18s ease; }
.rahav-acc-switch input:checked + .rahav-acc-switch__track { background: var(--rp-brand); }
.rahav-acc-switch input:checked + .rahav-acc-switch__track .rahav-acc-switch__dot { transform: translateX(-20px); }
.rahav-acc-switch input:focus-visible + .rahav-acc-switch__track { box-shadow: 0 0 0 3px rgba(238, 107, 101, .25); }

.rahav-acc__actions { display: flex; justify-content: flex-end; margin-top: 18px; }
.rahav-acc__submit {
  height: 48px; padding: 0 30px; border: 0; border-radius: var(--rp-r-sm);
  background: var(--rp-brand); color: #fff; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer;
  transition: background-color .15s ease, transform .1s ease;
}
.rahav-acc__submit:hover { background: var(--rp-brand-deep); }
.rahav-acc__submit:active { transform: translateY(1px); }
/* Account — phone change + cascade helpers */
.rahav-acc-field--action { display: flex; align-items: flex-end; }
.rahav-acc-mini {
  height: 46px; padding: 0 18px; border: 1px solid var(--rp-line); border-radius: var(--rp-r-sm);
  background: var(--rp-card); color: var(--rp-ink); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
  transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}
.rahav-acc-mini:hover { border-color: var(--rp-brand); color: var(--rp-brand); }
.rahav-acc-mini.is-primary { background: var(--rp-brand); border-color: var(--rp-brand); color: #fff; }
.rahav-acc-mini.is-primary:hover { background: var(--rp-brand-deep); border-color: var(--rp-brand-deep); color: #fff; }
.rahav-acc-phone-panel { margin-top: 14px; padding: 16px; border: 1px dashed var(--rp-line); border-radius: var(--rp-r-sm); background: var(--rp-ground); }
.rahav-acc-phone-actions { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }

/* Audio mode: compact bar for audio-only lessons (0.2.4). */
.rahav-cw-player.is-audio,
.rahav-player__stage.is-audio {
	background: #0b0f19;
	padding-bottom: 10px;
}

/* Audio track: the lesson's dedicated audio edition plays in its own bar
   below the video box (0.2.4). */
.rahav-audio-track {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-top: 12px;
	padding: 10px 14px;
	border: 1px solid var(--rp-line, rgba(15, 23, 42, .1));
	border-radius: 14px;
	background: var(--rp-card, #fff);
}
.rahav-audio-track[hidden] { display: none; }
.rahav-audio-track__label {
	font-size: 12.5px;
	font-weight: 700;
	color: var(--rp-ink, #1f2937);
	opacity: .8;
}
.rahav-audio-track audio {
	display: block;
	width: 100%;
	height: 44px;
}
.rahav-cw > .rahav-audio-track { margin-top: 0; }

/* Media card: the dedicated audio edition and the lesson step navigation
   share one card under the video box. */
.rahav-media-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 10px 14px;
	border: 1px solid var(--rp-line, rgba(15, 23, 42, .1));
	border-radius: 14px;
	background: var(--rp-card, #fff);
}
.rahav-media-card .rahav-audio-track {
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
}

/* Skip ±N seconds (0.2.44): round overlay buttons on the player stage.
   The native control bar has no rewind/forward buttons on touch devices,
   so these are the only way to jump back or ahead five seconds. */
.rahav-seek {
	position: absolute;
	top: 50%;
	inset-inline-start: 14px;
	inset-inline-end: 14px;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: space-between;
	transform: translateY(-50%);
	pointer-events: none;
}
.rahav-seek__btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, .22);
	border-radius: 50%;
	background: rgba(15, 23, 42, .55);
	color: #fff;
	cursor: pointer;
	pointer-events: auto;
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	transition: background-color .2s ease, border-color .2s ease, transform .15s ease;
}
.rahav-seek__btn:hover { background: var(--rp-brand, #EE6B65); border-color: transparent; }
.rahav-seek__btn:active { transform: scale(.94); }
.rahav-seek__btn:focus-visible { outline: 2px solid var(--rp-brand, #EE6B65); outline-offset: 2px; }
.rahav-seek__ico { display: inline-flex; }
.rahav-seek__ico svg { width: 26px; height: 26px; }
.rahav-seek__btn--fwd .rahav-seek__ico { transform: scaleX(-1); }
.rahav-seek__num {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12.5px;
	font-weight: 800;
	line-height: 1;
	pointer-events: none;
}
/* Audio-only stage (and the dedicated audio bar): the native bar spans the
   full width, so centre the buttons in their own row underneath instead of
   covering the play/volume controls. */
.rahav-cw-player.is-audio .rahav-seek,
.rahav-player__stage.is-audio .rahav-seek,
.rahav-audio-track .rahav-seek {
	position: static;
	justify-content: center;
	gap: 14px;
	margin-top: 8px;
	transform: none;
	pointer-events: auto;
}
.rahav-cw-player.is-audio .rahav-seek__btn,
.rahav-player__stage.is-audio .rahav-seek__btn,
.rahav-audio-track .rahav-seek__btn { width: 38px; height: 38px; }
.rahav-cw-player.is-audio .rahav-seek__ico svg,
.rahav-player__stage.is-audio .rahav-seek__ico svg,
.rahav-audio-track .rahav-seek__ico svg { width: 22px; height: 22px; }
/* The smaller audio buttons shrink their icon but keep the same font size, so
   pull the numeral in a notch to keep clear of the (now thinner) ring. */
.rahav-cw-player.is-audio .rahav-seek__num,
.rahav-player__stage.is-audio .rahav-seek__num,
.rahav-audio-track .rahav-seek__num { font-size: 11px; }
/* Never draw the overlay while the lesson is release-locked (no video yet). */
.rahav-player.is-release-locked .rahav-seek,
.rahav-cw-player.is-release-locked .rahav-seek,
.rahav-player__stage.is-release-locked .rahav-seek { display: none; }
@media (max-width: 480px) {
	.rahav-seek { inset-inline-start: 8px; inset-inline-end: 8px; }
	.rahav-seek__btn { width: 40px; height: 40px; }
	.rahav-seek__ico svg { width: 23px; height: 23px; }
}

/* Chapter tooltip: one fixed layer created by rahav.js on <body>. The course
   card clips its children (overflow:hidden, rounded corners), so a tooltip
   positioned inside the card was cut off; a fixed layer never is. */
.rahav-cw-floater {
	position: fixed;
	z-index: 99990;
	max-width: 340px;
	padding: 10px 12px;
	border: 1px solid var(--rp-line);
	border-radius: 10px;
	background: var(--rp-card);
	box-shadow: 0 14px 34px rgba(15, 18, 25, 0.2);
	color: var(--rp-soft);
	font-size: 11.5px;
	line-height: 1.9;
	text-align: start;
	pointer-events: none;
	animation: rahav-cw-tip-in 0.12s ease-out;
}
.rahav-cw-floater[hidden] {
	display: none;
}
.rahav-cw-floater-h {
	display: block;
	margin-bottom: 3px;
	color: var(--rp-ink);
	font-size: 12px;
	font-weight: 700;
}
.rahav-cw-floater-b {
	display: block;
}
@keyframes rahav-cw-tip-in {
	from { opacity: 0; transform: translateY(-3px); }
	to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
	.rahav-cw-floater { animation: none; }
}

/* Rahav LMS - AI workshop sample edition (0.3.62) */
.rahav-cw-badge.is-trial {
  background: var(--rp-line-soft);
  color: var(--rp-soft);
}
.rahav-cw-topic.is-trial {
  opacity: .72;
}
.rahav-cw-trial {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px dashed rgba(238, 107, 101, .5);
  border-radius: 12px;
  background: linear-gradient(180deg, var(--rp-brand-soft), var(--rp-card));
  color: var(--rp-ink);
  text-decoration: none;
  transition: border-color .15s ease, transform .15s ease;
}
.rahav-cw-trial:hover {
  border-color: var(--rp-brand);
  transform: translateY(-1px);
}
.rahav-cw-trial__ico {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--rp-brand);
  color: #fff;
}
.rahav-cw-trial__ico .rahav-panel__ico {
  width: 18px;
  height: 18px;
}
.rahav-cw-trial__body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.rahav-cw-trial__title {
  color: var(--rp-brand-deep);
  font-size: 12.5px;
  font-weight: 800;
}
.rahav-cw-trial__text {
  color: var(--rp-soft);
  font-size: 11px;
  line-height: 1.8;
}
.rahav-cw-trial__action {
  align-self: flex-start;
  margin-top: 3px;
  padding: 3px 9px;
  border-radius: 99px;
  background: var(--rp-brand);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
}
.rahav-cw-step--trial {
  border-color: rgba(238, 107, 101, .55);
  background: var(--rp-brand-soft);
}
.rahav-cw-step--trial .rahav-cw-step-text small,
.rahav-cw-step--trial .rahav-cw-step-text b,
.rahav-cw-step--trial .rahav-cw-step-ico {
  color: var(--rp-brand-deep);
}
/* Rahav LMS - trial loyalty line (0.3.64) */
.rahav-cw-trial__loyalty {
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px dashed var(--rp-line);
  color: #2A8F64;
  font-size: 10.5px;
  line-height: 1.9;
}
.rahav-dark .rahav-cw-trial__loyalty {
  color: #7BD8A8;
}
@media (max-width: 767px) {
  .rahav-panel__user-menu {
    position: fixed;
    inset-inline: 12px;
    top: calc(var(--rp-top-h) + 6px);
    width: auto;
    min-width: 0;
    max-width: 420px;
    margin-inline: auto;
    max-height: calc(100vh - var(--rp-top-h) - 18px);
    max-height: calc(100dvh - var(--rp-top-h) - 18px);
    padding: 6px 0 max(6px, env(safe-area-inset-bottom));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    border-radius: 18px;
    box-shadow: 0 22px 50px -18px rgba(20, 18, 28, 0.35);
  }
  .rahav-panel__user-scrim:not([hidden]) {
    display: block;
    position: fixed;
    inset-inline: 0;
    top: var(--rp-top-h);
    bottom: 0;
    z-index: 60;
    background: rgba(20, 18, 28, 0.45);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
  }
}
