/* Rightbar extra styles — extracted from _rightbar.html partial */

/* PSB Card (Coach subscription panel) */
.psb-card {
  background: #fff;
  border: 1px solid #d6d9dc;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.psb-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #e3e6e8;
}
.psb-card__title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
  color: #232629;
  margin: 0;
}
.psb-card__see-all {
  font-size: 12px;
  color: #0074cc;
  text-decoration: none;
  font-weight: 400;
}
.psb-card__see-all:hover {
  color: #0063b1;
}
.psb-card__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #f1f2f3;
}
.psb-card__item:last-child {
  border-bottom: none;
}
.psb-card__item-icon {
  color: #6a737c;
  flex-shrink: 0;
  margin-top: 1px;
}
.psb-card__item-body {
  flex: 1;
  min-width: 0;
}
.psb-card__item-name {
  font-size: 13px;
  font-weight: 600;
  color: #232629;
  margin-bottom: 2px;
}
.psb-card__item-meta {
  font-size: 12px;
  color: #6a737c;
  line-height: 1.4;
}
.psb-card__progress {
  height: 4px;
  background: #e3e6e8;
  border-radius: 2px;
  overflow: hidden;
  margin-top: 6px;
}
.psb-card__progress-bar {
  height: 100%;
  background: #0074cc;
  border-radius: 2px;
  transition: width 0.4s ease;
}
.psb-card__alert {
  margin: 0 16px 14px;
  padding: 8px 12px;
  background: #fdf7e3;
  border: 1px solid #e8c872;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  color: #6a5317;
}
.psb-card__alert--danger {
  background: #fdf0f0;
  border-color: #e8a0a0;
  color: #7a1b1b;
}
.psb-card__footer {
  padding: 12px 16px;
  border-top: 1px solid #e3e6e8;
  text-align: center;
}
.psb-card__btn {
  display: inline-block;
  padding: 8px 24px;
  border: 1px solid #0074cc;
  border-radius: 4px;
  color: #0074cc;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s;
}
.psb-card__btn:hover {
  background: #0074cc;
  color: #fff;
}

/* FAQ Help Box */
.faq-box { border-color: #d6d9dc; }
.faq-box .card__header {
  padding-bottom: 8px;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 4px;
}
.faq-box .card__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 700;
  color: #1f2d3d;
  margin: 0;
}
.faq-box .card__title .faq-box__icon {
  width: 24px;
  height: 24px;
  font-size: 14px;
}
.faq-box__list { display: flex; flex-direction: column; }

.faq-box__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 1px;
  border-bottom: 1px solid #e5e7eb;
  text-decoration: none;
  color: #0969da;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s;
  cursor: pointer;
}

.faq-box__item:hover {
  background: #f0f6ff;
  text-decoration: none;
  color: #0550ae;
}

.faq-box__item--last {
  border-bottom: none;
}

.faq-box__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #22c7d6;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1;
}

.faq-box__text { flex: 1; }

/* FAQ Popup */
.faq-popup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.faq-popup.visible { display: flex; }

.faq-popup__content {
  background: #fff;
  border-radius: 12px;
  padding: 28px 32px;
  max-width: 460px;
  width: 92%;
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
  max-height: 80vh;
  overflow-y: auto;
}

.faq-popup__title {
  margin: 0 0 14px 0;
  font-size: 17px;
  font-weight: 700;
  color: #1f2d3d;
}

.faq-popup__body {
  font-size: 14px;
  line-height: 1.7;
  color: #444;
  margin-bottom: 20px;
}

.faq-popup__body p { margin: 0 0 10px 0; }
.faq-popup__body p:last-child { margin-bottom: 0; }

.faq-popup__body .faq-icon-demo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  vertical-align: middle;
  margin: 0 4px;
}

.faq-popup__body .faq-icon-demo--apply {
  background: #dbeafe;
  color: #3b82f6;
}

.faq-popup__body .faq-icon-demo--video {
  background: #dc2626;
  color: #fff;
}

.faq-popup__body .faq-icon-demo--video-inactive {
  background: transparent;
  color: #9ca3af;
}

.faq-popup__close {
  display: inline-block;
  padding: 8px 28px;
  background: #22c7d6;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.faq-popup__close:hover { background: #1ab0bd; }
