﻿body.ic-ghete,
body.ic-ghete-list {
  background: #fff;
  padding-bottom: 0;
}

.ic-ght-head {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: #fff;
}

.ic-ght-info,
.ic-ght-diamond,
.ic-ght-close {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.ic-ght-info {
  left: 16px;
}

.ic-ght-diamond {
  left: 55px;
  width: 40px;
  height: 40px;
}

.ic-ght-close {
  right: 10px;
  color: #2d3a4a;
}

.ic-ght-diamond-icon {
  color: #4e91e6;
}

.ic-ght-diamond[hidden] {
  display: none !important;
}

.ic-ght-title {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  color: #2d3a4a;
  text-align: center;
}

.ic-ght-grid {
  padding: 8px 0 8px 8px;
}

.ic-ght-card {
  display: block;
  width: 100%;
  color: inherit;
  text-decoration: none;
  padding: 12px 0 12px 12px;
  margin-bottom: -15px;
}

.ic-ght-card.is-alt {
  padding-right: 12px;
  padding-left: 0;
}

.ic-ght-card-inner {
  display: flex;
  flex-direction: row;
  direction: ltr;
  align-items: stretch;
  justify-content: space-between;
  margin-right: -5px;
}

.ic-ght-card.is-alt .ic-ght-card-inner {
  flex-direction: row-reverse;
}

.ic-ght-card-text {
  flex: 1;
  min-width: 0;
  padding-top: 20px;
  margin-left: -15px;
  margin-right: -15px;
}

.ic-ght-card.is-alt .ic-ght-card-text {
  margin-left: -5px;
  margin-right: 8px;
}

.ic-ght-card-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  direction: rtl;
}

.ic-ght-card-title-row {
  display: flex;
  flex-direction: row;
  direction: ltr;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin: 12px 0 8px;
}

.ic-ght-card.is-alt .ic-ght-card-title-row,
.ic-ght-card.is-alt .ic-ght-card-desc,
.ic-ght-card.is-alt .ic-ght-card-lessons,
.ic-ght-card.is-alt .ic-ght-progress {
  margin-right: 20px;
}

.ic-ght-new-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fb5d5d;
  animation: ic-ght-pulse 1.7s ease-in-out infinite;
}

@keyframes ic-ght-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}

.ic-ght-card-title-row h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #2d3a4a;
  text-align: right;
  direction: rtl;
}

.ic-ght-card-desc {
  margin: 0 0 8px 12px;
  font-size: 11.5px;
  line-height: 20px;
  color: #6a81a9;
  text-align: right;
}

.ic-ght-card.is-alt .ic-ght-card-desc {
  margin-left: 12px;
  margin-bottom: 12px;
}

.ic-ght-card-lessons {
  margin: 0 0 8px;
  font-size: 11px;
  color: #92a5c7;
  text-align: right;
}

.ic-ght-progress {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  direction: ltr;
  width: 100%;
}

.ic-ght-progress.is-odd.is-complete {
  gap: 3px;
}

.ic-ght-progress-pct {
  font-size: 12px;
  color: var(--ght-text, #6a81a9);
  min-width: 34px;
  text-align: right;
}

.ic-ght-progress-track {
  display: block;
  height: 8px;
  width: 145px;
  border-radius: 4px;
  background: var(--ght-bg, rgba(0, 0, 0, 0.1));
  overflow: hidden;
  flex-shrink: 0;
}

.ic-ght-progress.is-narrow.is-even:not(.is-complete) .ic-ght-progress-track {
  width: 135px;
}

.ic-ght-progress.is-narrow.is-odd:not(.is-complete) .ic-ght-progress-track {
  width: 142px;
}

.ic-ght-progress.is-even.is-complete .ic-ght-progress-track {
  width: 112px;
}

.ic-ght-progress.is-odd.is-complete .ic-ght-progress-track {
  width: 122px;
}

.ic-ght-progress-bar {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: var(--ght-bar, #6a81a9);
  width: 0;
  transition: width 1s ease;
}

.ic-ght-progress-tick .ic-icon {
  background: var(--ght-bar, #6a81a9);
}

.ic-ght-progress.is-odd.is-complete .ic-ght-progress-tick {
  margin-left: -15px;
}

.ic-ght-card-media {
  width: 190px;
  height: 190px;
  max-width: 42vw;
  max-height: 42vw;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: -5px;
}

.ic-ght-card.is-alt .ic-ght-card-media {
  margin-right: 0;
  margin-left: -15px;
}

.ic-ght-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 800px), (min-width: 801px) {
  body.ic-ghete .ic-header,
  body.ic-ghete .ic-footer,
  body.ic-ghete .ic-tabbar,
  body.ic-ghete .ic-tabbar-dock,
  body.ic-ghete-list .ic-header,
  body.ic-ghete-list .ic-footer,
  body.ic-ghete-list .ic-tabbar,
  body.ic-ghete-list .ic-tabbar-dock,
  body.ic-ghete-learn .ic-header,
  body.ic-ghete-learn .ic-footer,
  body.ic-ghete-learn .ic-tabbar,
  body.ic-ghete-learn .ic-tabbar-dock {
    display: none !important;
  }
}

.ic-ght-list-head {
  direction: ltr;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 55px;
  padding: 0 16px;
  background: #fff;
}

.ic-ght-list-head-space,
.ic-ght-list-back {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.ic-ght-list-back {
  display: grid;
  place-items: center;
  color: #2d3a4a;
  text-decoration: none;
}

.ic-ght-list-title {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  color: #2d3a4a;
  text-align: center;
}

.ic-ght-list-body {
  padding: 0 16px 16px;
}

.ic-ght-list-intro {
  display: flex;
  flex-direction: row;
  direction: ltr;
  align-items: center;
  justify-content: flex-end;
  padding: 10px 12px;
  margin-bottom: 20px;
}

.ic-ght-list-intro-text {
  flex: 1;
  margin-right: 2px;
  direction: rtl;
  text-align: right;
}

.ic-ght-list-intro-text h2 {
  margin: 0 0 4px;
  padding-right: 11px;
  font-size: 16px;
  font-weight: 700;
  color: #2d3a4a;
}

.ic-ght-list-intro-text p {
  margin: 0 0 12px;
  padding-right: 12px;
  font-size: 12.5px;
  line-height: 22px;
  color: #6a81a9;
}

.ic-ght-ring {
  position: relative;
  width: 100px;
  height: 100px;
  flex-shrink: 0;
}

.ic-ght-ring svg {
  width: 100%;
  height: 100%;
  display: block;
}

.ic-ght-ring-bg {
  stroke: #f3f8fb;
}

.ic-ght-ring-fill {
  stroke: #68c5f9;
  transition: stroke-dashoffset 0.6s ease;
}

.ic-ght-ring-val {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 400;
  color: #2d3a4a;
}

.ic-ght-parts {
  padding: 0;
}

.ic-ght-part {
  position: relative;
  display: block;
  width: 100%;
  height: 150px;
  margin-bottom: 16px;
  padding: 16px;
  border: 0;
  border-radius: 20px;
  background: #e1edfd;
  overflow: hidden;
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  color: inherit;
  cursor: pointer;
}

.ic-ght-part-tags {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
}

.ic-ght-tag {
  padding: 5px 9px;
  border-radius: 7px;
  font-size: 8.5px;
  font-weight: 700;
  line-height: 1;
}

.ic-ght-tag.is-free {
  background: #d5e5f9;
  color: #89a6c9;
}

.ic-ght-tag.is-new {
  background: #ddf6df;
  color: #82c78c;
}

.ic-ght-tag[hidden],
.ic-ght-part-tags[hidden] {
  display: none !important;
}

.ic-ght-part-media {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 40%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ght-part-bg, #A262FF);
}

.ic-ght-part-media img {
  width: 100%;
  height: 100px;
  object-fit: contain;
}

.ic-ght-part-row {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row;
  direction: ltr;
  align-items: stretch;
  justify-content: flex-start;
  height: 100%;
}

.ic-ght-part-text {
  flex: 0 0 auto;
  width: 54%;
  max-width: 54%;
  min-width: 0;
  margin-right: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  direction: rtl;
  text-align: right;
}

.ic-ght-part-text strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #7a88ba;
  margin-bottom: -5px;
}

.ic-ght-part-dest {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 11.5px;
  line-height: 19px;
  color: #829ecf;
}

.ic-ght-part-progress {
  display: flex;
  flex-direction: row;
  direction: ltr;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  width: 100%;
}

.ic-ght-part-progress > span:first-child {
  font-size: 12px;
  color: #6a81a9;
}

.ic-ght-part-track {
  display: block;
  width: 152px;
  max-width: calc(100% - 42px);
  height: 9px;
  border-radius: 5px;
  background: #c9e1ff;
  overflow: hidden;
  flex-shrink: 1;
}

.ic-ght-part-progress.is-complete .ic-ght-part-track {
  width: 130px;
}

.ic-ght-part-bar {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: #83b4ed;
  width: 0;
  transition: width 1s ease;
}

.ic-ght-part-progress.is-complete .ic-ght-part-bar {
  background: #8db5e4;
}

.ic-ght-part-tick .ic-icon {
  background: #8db5e4;
}

.ic-ght-part-spacer {
  flex: 1;
  min-width: 0;
  height: auto;
}

.ic-ght-restrict[hidden] {
  display: none !important;
}

.ic-ght-restrict {
  position: fixed;
  inset: 0;
  z-index: 180;
}

.ic-ght-restrict-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.ic-ght-restrict-card {
  position: absolute;
  right: 24px;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  padding: 30px 22px 20px;
  border-radius: 24px;
  background: #fff;
  text-align: center;
}

.ic-ght-restrict-card h2 {
  margin: 0 0 15px;
  font-size: 14px;
  font-weight: 700;
  color: #2d3a4a;
}

.ic-ght-restrict-card p {
  margin: 0 0 22px;
  font-size: 13px;
  line-height: 24px;
  color: #6a81a9;
}

.ic-ght-restrict-go {
  display: block;
  margin-bottom: 10px;
  padding: 14px;
  border-radius: 14px;
  background: #4e91e6;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.ic-ght-restrict-close {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  color: #919aaf;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
}

body.ic-ghete-learn {
  background: #fff;
  padding-bottom: 0 !important;
}

body.ic-ghete-learn .ic-tabbar-dock {
  display: none !important;
}

.ic-ght-learn {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  height: 100%;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  background: #fff;
  direction: rtl;
}

.ic-ght-learn-head {
  direction: ltr;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 45px;
  padding: 0 8px;
  background: #fff;
  flex-shrink: 0;
}

.ic-ght-learn-head-space,
.ic-ght-learn-close {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.ic-ght-learn-close {
  display: grid;
  place-items: center;
  color: #2d3a4a;
  text-decoration: none;
}

.ic-ght-learn-title {
  margin: 0;
  flex: 1;
  font-size: 14px;
  font-weight: 400;
  color: #4e91e6;
  text-align: center;
}

.ic-ght-learn-progress {
  width: 90%;
  margin: 10px auto 16px;
  flex-shrink: 0;
}

.ic-ght-learn-track {
  display: block;
  direction: ltr;
  height: 15px;
  border-radius: 7.5px;
  background: #ebf0f9;
  overflow: hidden;
}

.ic-ght-learn-bar {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 7.5px;
  background: #4C8BF5;
  transition: width 0.35s ease;
}

.ic-ght-learn-body {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0 20px calc(112px + env(safe-area-inset-bottom, 0px));
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.ic-ght-learn-ti {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  line-height: 28px;
  color: #39414b;
  text-align: right;
}

.ic-ght-learn-ti.is-q {
  font-size: 13px;
  line-height: 30px;
}

.ic-ght-learn-ti2 {
  margin: 0 0 10px;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 30px;
  color: #39414b;
  text-align: right;
}

.ic-ght-learn-tx {
  margin: 0 0 20px;
  font-size: 12.5px;
  line-height: 30px;
  color: #3f4048;
  text-align: right;
  white-space: pre-line;
}

.ic-ght-learn-tx b {
  font-size: 12px;
  font-weight: 700;
}

.ic-ght-learn-img {
  display: block;
  width: 100%;
  max-width: 520px;
  height: 175px;
  margin: 20px auto 20px;
  object-fit: contain;
  border-radius: 8px;
  cursor: zoom-in;
  background: transparent;
}

.ic-ght-learn-quiz {
  margin: 30px 0;
  overflow: hidden;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.ic-ght-learn-quiz.is-out {
  opacity: 0;
  transform: translateY(-20px);
}

.ic-ght-learn-quiz.is-prep {
  opacity: 0;
  transform: translateY(-30px);
  transition: none;
}

.ic-ght-learn-quiz.is-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.ic-ght-learn-opt {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-bottom: 10px;
  padding: 14px 15px;
  min-height: 56px;
  border: 1px solid #e3e6ed;
  border-radius: 16px;
  background: #fff;
  color: #333;
  font-size: 11px;
  font-family: inherit;
  text-align: center;
  cursor: pointer;
}

.ic-ght-learn-opt.is-on {
  border-color: #73a8eb;
  background: #eff5fe;
  color: #4e91e6;
}

.ic-ght-learn-opt.is-ok {
  border-color: #53aa00;
  background: #e8f8d9;
  color: #53aa00;
}

.ic-ght-learn-opt.is-bad {
  border-color: #ff4b4c;
  background: #ffe7e8;
  color: #ff4b4c;
}

.ic-ght-learn-opt:disabled {
  cursor: default;
}

.ic-ght-learn-input-wrap {
  margin: 15px 0;
  display: flex;
  align-items: center;
  height: 62px;
  padding: 0 16px;
  border: 0.9px solid #ddeafb;
  border-radius: 16px;
  background: #fff;
}

.ic-ght-learn-input-wrap.is-on {
  border-color: #4e91e6;
}

.ic-ght-learn-input {
  width: 100%;
  height: 60px;
  border: 0;
  background: transparent;
  font-size: 13px;
  font-family: inherit;
  color: #2d3a4a;
  text-align: center;
}

.ic-ght-learn-input:focus {
  outline: 0;
}

/* کنترل پایین — fixed + safe-area تا زیر کلیدهای گوشی نرود */
.ic-ght-learn-foot {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  flex-shrink: 0;
  z-index: 45;
  display: flex;
  flex-direction: row;
  direction: ltr;
  align-items: stretch;
  gap: 10px;
  padding: 10px 10px calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid #edf0f6;
  touch-action: manipulation;
}

.ic-ght-learn-nav {
  width: 50px;
  flex-shrink: 0;
  border: 0;
  border-radius: 13px;
  background: #4C8BF5;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.ic-ght-learn-nav:disabled {
  background: #bfccd4;
  cursor: default;
}

.ic-ght-learn-main {
  flex: 1;
  min-height: 50px;
  border: 0;
  border-radius: 13px;
  background: #4C8BF5;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

.ic-ght-learn-main.is-disabled {
  background: #bfccd4;
  cursor: default;
}

.ic-ght-learn-done[hidden],
.ic-ght-learn-lightbox[hidden] {
  display: none !important;
}

.ic-ght-learn-sheet[hidden] {
  display: none;
}

.ic-ght-learn-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  height: auto;
  min-height: 240px;
  padding: 24px 24px calc(32px + env(safe-area-inset-bottom, 0px));
  border-radius: 40px 40px 0 0;
  text-align: center;
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.16s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.ic-ght-learn-sheet.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.ic-ght-learn-sheet.is-closing {
  transition: transform 0.15s cubic-bezier(0.55, 0.06, 0.68, 0.19), opacity 0.1s ease-in;
}

.ic-ght-learn-sheet.is-ok {
  background: #d7ffb8;
}

.ic-ght-learn-sheet.is-bad {
  background: #ffdfe0;
}

.ic-ght-learn-sheet.is-warn {
  background: #ffe8cc;
}

.ic-ght-learn-sheet-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 26px;
  font-weight: 700;
}

.ic-ght-learn-sheet.is-ok .ic-ght-learn-sheet-icon {
  background: #57cc02;
}

.ic-ght-learn-sheet.is-bad .ic-ght-learn-sheet-icon {
  background: #ff4b4c;
}

.ic-ght-learn-sheet-msg {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 700;
}

.ic-ght-learn-sheet.is-ok .ic-ght-learn-sheet-msg {
  color: #53aa00;
}

.ic-ght-learn-sheet.is-bad .ic-ght-learn-sheet-msg {
  color: #ff4b4c;
}

.ic-ght-learn-sheet.is-warn .ic-ght-learn-sheet-msg {
  color: #ff8c00;
}

.ic-ght-learn-sheet-btn {
  display: block;
  width: 100%;
  padding: 16px 20px;
  border: 0;
  border-radius: 16px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

.ic-ght-learn-sheet.is-ok .ic-ght-learn-sheet-btn {
  background: #56c902;
}

.ic-ght-learn-sheet.is-bad .ic-ght-learn-sheet-btn {
  background: #ff4b4c;
}

.ic-ght-learn-sheet.is-warn .ic-ght-learn-sheet-btn {
  background: #ff8c00;
}

.ic-ght-learn-done {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  background: #fff;
  text-align: center;
}

.ic-ght-learn-done h2 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  color: #2d3a4a;
}

.ic-ght-learn-done p {
  margin: 0 0 28px;
  font-size: 14px;
  color: #6a81a9;
}

.ic-ght-learn-done-btn {
  display: block;
  width: 100%;
  max-width: 320px;
  padding: 14px;
  border-radius: 14px;
  background: #4C8BF5;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.ic-ght-learn-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.ic-ght-learn-lightbox img {
  max-width: 94%;
  max-height: 90%;
  object-fit: contain;
}

.ic-ght-learn-lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 30px;
  background: rgba(241, 241, 243, 0.76);
  font-size: 24px;
  color: #2d3a4a;
  cursor: pointer;
}

@media (max-width: 800px), (min-width: 801px) {
  .ic-ght,
  .ic-ght-list {
    min-height: 100dvh;
    padding-bottom: 24px;
  }
}

