@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700;800;900&display=swap');
@import url('https://quotationtm.ir/api/public/css/style.css');

/* ==========================================================================
   GymGo — design tokens
   ========================================================================== */
:root {
  --accent: #FE9100;
  --accent-2: #FF7A1A;
  --accent-soft: #FFEEDB;
  --red: #FF4A3D;
  --red-soft: #FFE7E5;
  --green: #10B981;
  --green-soft: #E3F9F1;
  --yellow: #FACC15;
  --yellow-soft: #FFF8DD;
  --blue: #3B82F6;
  --blue-soft: #E9F1FE;
  --dark: #2D2D2D;
  --text: #222;
  --muted: #9AA0A6;
  --card: #FFFFFF;
  --bg: #F6F6F6;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 26px;
  --shadow: 0 4px 15px rgba(0, 0, 0, .06);
  --shadow-lift: 0 10px 28px rgba(254, 145, 0, .18);
  --gradient-hero: linear-gradient(120deg, #FE9100 0%, #FF7A1A 45%, #FF4A3D 100%);
  --header-h: 64px;
  --bottomnav-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'vazir', sans-serif;
  background: var(--bg);
  color: var(--text);
  direction: rtl;
  font-feature-settings: "tnum" 1;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--bottomnav-h) + 14px);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
  user-select: none !important;
  -webkit-user-select: none !important;
  -webkit-touch-callout: none !important;
}

input,
textarea,
select {
  font-family: inherit;
}

::selection {
  background: var(--accent-soft);
  color: var(--accent-2);
}

.container {
  min-width: 360px;
  max-width: 520px;
  margin: 0 auto;
  padding: 0 16px;
}

@media(min-width:900px) {
  body {
    padding-bottom: 24px;
  }

  .container {
    max-width: 1180px;
    padding: 0 32px;
  }
}

/* ---------- utility ---------- */
.flex {
  display: flex;
}

.between {
  justify-content: space-between;
  align-items: center;
}

.center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gap-8 {
  gap: 8px;
}

.gap-12 {
  gap: 12px;
}

.gap-16 {
  gap: 16px;
}

.muted {
  color: var(--muted);
}

.mt-0 {
  margin-top: 0;
}

.grow {
  flex: 1;
}

.hide-desktop {
  display: block;
}

.show-desktop {
  display: none;
}

@media(min-width:900px) {
  .hide-desktop {
    display: none;
  }

  .show-desktop {
    display: block;
  }
}

/* ---------- top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 246, 246, .86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, .05);
}

.topbar-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -.3px;
}

.logo .mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--gradient-hero);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  font-size: 16px;
  box-shadow: var(--shadow-lift);
  transform: rotate(-6deg);
}

.logo .word b {
  color: var(--accent-2);
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--card);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: var(--dark);
  flex: none;
}

.icon-notif {
  animation: glow 1.5s ease-in-out infinite;
}

@keyframes glow {

  0%,
  100% {
    box-shadow:
      0 0 10px var(--red),
      0 0 20px var(--red-soft);
  }

  50% {
    box-shadow:
      0 0 20px var(--red),
      0 0 40px var(--red-soft),
      0 0 60px var(--red-soft);
  }
}

.icon-btn .dot {
  position: absolute;
  top: 7px;
  left: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  border: 2px solid var(--card);
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: var(--shadow);
}

/* ---------- drawer menu ---------- */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 15, 10, .45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  z-index: 60;
}

.drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  width: 78%;
  max-width: 320px;
  background: var(--card);
  z-index: 61;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.22, .9, .3, 1);
  display: flex;
  flex-direction: column;
  padding: 22px 18px;
  box-shadow: -10px 0 30px rgba(0, 0, 0, .15);
}

.drawer.open {
  transform: translateX(0);
}

.drawer-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 6px 20px;
  border-bottom: 1px solid #eee;
  margin-bottom: 14px;
}

.drawer-profile img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}

.drawer nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 10px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 4px;
}

.drawer nav a.active,
.drawer nav a:hover {
  background: var(--accent-soft);
  color: var(--accent-2);
}

.drawer nav .ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

/* ---------- bottom nav ---------- */
.bottom-nav {
  position: fixed;
  bottom: 0;
  right: 0;
  left: 0;
  z-index: 50;
  height: var(--bottomnav-h);
  background: var(--card);
  border-top: 1px solid rgba(0, 0, 0, .06);
  display: flex;
  align-items: center;
  box-shadow: 0 -6px 20px rgba(0, 0, 0, .05);
}

@media(min-width:900px) {
  .bottom-nav {
    display: none;
  }
}

.bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  padding: 6px 0;
}

.bottom-nav a svg {
  width: 22px;
  height: 22px;
  stroke: var(--muted);
  fill: none;
  stroke-width: 1.8;
  transition: .2s;
}

.bottom-nav a.active {
  color: var(--accent-2);
}

.bottom-nav a.active svg {
  stroke: var(--accent-2);
}

.bottom-nav a.active .ico-wrap {
  background: var(--accent-soft);
}

.ico-wrap {
  width: 38px;
  height: 26px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- desktop side nav ---------- */
.app-shell {
  display: block;
}

@media(min-width:900px) {
  .app-shell {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 28px;
    align-items: start;
  }

  .side-nav {
    position: sticky;
    top: 24px;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px 14px;
    margin-top: 24px;
  }

  .side-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 2px;
    font-size: 14.5px;
  }

  .side-nav a.active {
    background: var(--accent-soft);
    color: var(--accent-2);
  }

  .side-nav .ico {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
  }

  .main-col {
    margin-top: 24px;
    min-width: 0;
  }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--radius-sm);
  padding: 13px 20px;
  font-weight: 700;
  font-size: 14.5px;
  transition: transform .15s ease, box-shadow .15s ease;
}

.btn:active {
  transform: scale(.97);
}

.btn-primary {
  background: var(--gradient-hero);
  color: #fff;
  box-shadow: var(--shadow-lift);
}

.btn-dark {
  background: var(--dark);
  color: #fff;
}

.btn-outline {
  background: transparent;
  border: 1.5px solid #E4E4E4;
  color: var(--text);
}

.btn-soft {
  background: var(--accent-soft);
  color: var(--accent-2);
}

.btn-sm {
  padding: 9px 14px;
  font-size: 13px;
  border-radius: 10px;
}

.btn-block {
  width: 100%;
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
}

.fab {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gradient-hero);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  box-shadow: var(--shadow-lift);
}

/* ---------- section heading ---------- */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 26px 0 12px;
}

.section-head h2 {
  font-size: 16.5px;
  margin: 0;
  font-weight: 800;
}

.section-head .see-all {
  font-size: 12.5px;
  color: var(--accent-2);
  font-weight: 700;
}

/* ---------- card base ---------- */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.font-xl {
  font-size: 20px;
}

.pad {
  padding: 12px;
}

@media(min-width:900px) {

  .pad {
    padding: 18px;
  }

  .font-xl {
    font-size: 24px;
  }

}

/**/
.no-data {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, .6);
  backdrop-filter: blur(4px);
  border-radius: inherit;
  z-index: 10;

  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.no-data::before {
  content: "!";
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, .15);
  border: 2px solid var(--muted);
  color: var(--muted);
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  opacity: 0.7;
}


/* ---------- badge ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
}

.badge.accent {
  background: var(--accent-soft);
  color: var(--accent-2);
}

.badge.green {
  background: var(--green-soft);
  color: var(--green);
}

.badge.red {
  background: var(--red-soft);
  color: var(--red);
}

.badge.yellow {
  background: var(--yellow-soft);
  color: #9A7B00;
}

.badge.blue {
  background: var(--blue-soft);
  color: var(--blue);
}

.badge.dark {
  background: var(--dark);
  color: #fff;
}

@media(min-width:900px) {

  .badge {
    font-size: 12px;
    padding: 4px 10px;
  }

}

/* ---------- hero (home) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--gradient-hero);
  color: #fff;
  padding: 22px 20px 26px;
  margin-top: 16px;
  isolation: isolate;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: repeating-linear-gradient(-35deg, rgba(255, 255, 255, .10) 0 10px, transparent 10px 26px);
}

.hero::after {
  background: radial-gradient(120px 120px at 88% 10%, rgba(255, 255, 255, .35), transparent 70%);
}

.hero .eyebrow {
  font-size: 12.5px;
  opacity: .9;
  font-weight: 600;
}

.hero h1 {
  font-size: 22px;
  margin: 6px 0 4px;
  font-weight: 800;
}

.hero p {
  font-size: 13px;
  opacity: .92;
  margin: 0 0 16px;
  max-width: 80%;
}

/* ---------- stat ring ---------- */
.stat-ring {
  position: relative;
  width: 80px;
  height: 80px;
  flex: none;
}

.stat-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.stat-ring circle {
  fill: none;
  stroke-width: 9;
  stroke-linecap: round;
}

.stat-ring .bg {
  stroke: var(--bg);
}

.stat-ring .fg {
  stroke: var(--accent);
  transition: stroke-dashoffset 1.1s cubic-bezier(.22, .9, .3, 1);
}

.stat-ring .val {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.stat-ring .val b {
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}

.stat-ring .val span {
  font-size: 9.5px;
  color: var(--muted);
}

@media(min-width:900px) {

  .stat-ring {
    width: 86px;
    height: 86px;
  }

}

@media(max-width:360px) {

  .stat-ring {
    width: 70px;
    height: 70px;
  }

}

/* ---------- chart ---------- */
.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 110px;
  padding-top: 10px;
}

.chart-bars .bar-wrap {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
}

.chart-bars .bar {
  width: 100%;
  max-width: 22px;
  border-radius: 8px 8px 0px 0px;
  background: var(--accent-soft);
  position: relative;
  height: 4px;
  transition: height 1s cubic-bezier(.22, .9, .3, 1);
}

.chart-bars .bar.today {
  background: var(--gradient-hero);
}

.chart-bars .lbl {
  font-size: 10.5px;
  color: var(--muted);
}

/* ---------- activity list ---------- */
.activity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #F1F1F1;
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-item .ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.activity-item .meta {
  font-size: 12px;
  color: var(--muted);
}

.activity-item .name {
  font-weight: 700;
  font-size: 13.5px;
}

/* ---------- horizontal scroller ---------- */
.hscroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  scroll-snap-type: x mandatory;
}

.hscroll::-webkit-scrollbar {
  display: none;
}

.hscroll>* {
  scroll-snap-align: start;
}

/* ---------- article card ---------- */
.article-card {
  width: 230px;
  flex: none;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow);
}

.article-card .thumb {
  height: 120px;
  background-size: cover;
  background-position: center;
}

.article-card .body {
  padding: 12px 14px 15px;
}

.article-card h3 {
  font-size: 13.5px;
  margin: 6px 0 4px;
  font-weight: 700;
  line-height: 1.5;
}

.article-card .meta {
  font-size: 11px;
  color: var(--muted);
}

/* ---------- course card ---------- */
.course-card {
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.course-card .thumb {
  height: 140px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.course-card .thumb .badge {
  position: absolute;
  top: 10px;
  right: 10px;
}

.course-card .body {
  padding: 14px 16px 16px;
}

.course-card h3 {
  font-size: 14.5px;
  margin: 2px 0 6px;
  font-weight: 800;
}

.course-card .coach {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
}

.course-card .progressbar {
  height: 7px;
  border-radius: 99px;
  background: var(--bg);
  overflow: hidden;
  margin-bottom: 8px;
}

.course-card .progressbar span {
  display: block;
  height: 100%;
  background: var(--gradient-hero);
  border-radius: 99px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media(min-width:640px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(min-width:900px) {
  .grid-3-desktop {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-4-desktop {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- price row ---------- */
.price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.price {
  font-weight: 900;
  font-size: 16px;
}

.price-old {
  font-size: 12px;
  color: var(--muted);
  text-decoration: line-through;
}

/* ---------- tabs / pills filter ---------- */
.pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 6px;
}

.pills::-webkit-scrollbar {
  display: none;
}

.pill {
  flex: none;
  padding: 9px 16px;
  border-radius: 99px;
  background: var(--card);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  box-shadow: var(--shadow);
  border: none;
}

.pill.active {
  background: var(--gradient-hero);
  color: #fff;
  box-shadow: var(--shadow-lift);
}

/* ---------- search ---------- */
.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  box-shadow: var(--shadow);
}

.search-box input {
  border: none;
  background: transparent;
  outline: none;
  flex: 1;
  font-size: 13.5px;
  color: var(--text);
}

.search-box svg {
  width: 18px;
  height: 18px;
  stroke: var(--muted);
  fill: none;
  stroke-width: 2;
}

/* ---------- exercise card ---------- */
.exercise-card {
  display: flex;
  gap: 12px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 10px;
  align-items: center;
  cursor: pointer;
  transition: transform .15s ease;
}

.exercise-card:active {
  transform: scale(.98);
}

.exercise-card .thumb {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background-size: cover;
  background-position: center;
  flex: none;
}

.exercise-card h3 {
  font-size: 13.5px;
  margin: 0 0 5px;
  font-weight: 700;
}

.exercise-card .tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* ---------- product card ---------- */
.product-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.product-card .thumb {
  height: 130px;
  background-size: cover;
  background-position: center;
  position: relative;
  background-color: #F0F0F0;
}

.product-card .thumb .heart {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}

.product-card .body {
  padding: 12px 14px 14px;
}

.product-card h3 {
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 6px;
  line-height: 1.5;
  min-height: 39px;
}

.product-card .add-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--gradient-hero);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- video card ---------- */
.video-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #111;
  box-shadow: var(--shadow);
}

.video-card img,
.video-card .thumb {
  height: 170px;
  background-size: cover;
  background-position: center;
  opacity: .85;
}

.video-card .play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-card .play span {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-card .info {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  padding: 14px;
  background: linear-gradient(to top, rgba(0, 0, 0, .75), transparent);
  color: #fff;
}

.video-card .info h3 {
  font-size: 13px;
  margin: 0;
  font-weight: 700;
}

.video-card .info .meta {
  font-size: 11px;
  opacity: .85;
}

/* ---------- podcast row ---------- */
.podcast-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
}

.podcast-row .cover {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background-size: cover;
  flex: none;
}

.podcast-row .play-mini {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  border: none;
}

/* ---------- chat / support ---------- */
.coach-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}

.coach-card img {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  object-fit: cover;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
  margin-left: 4px;
}

.contact-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.contact-actions a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 12px 4px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--dark);
}

.contact-actions .ico {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-window {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 6px 2px 12px;
}

.bubble {
  max-width: 78%;
  padding: 11px 14px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.7;
}

.bubble.in {
  background: var(--card);
  box-shadow: var(--shadow);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.bubble.out {
  background: var(--gradient-hero);
  color: #fff;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.bubble .time {
  display: block;
  font-size: 10px;
  opacity: .6;
  margin-top: 4px;
}

.chat-input {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border-radius: 99px;
  padding: 8px 8px 8px 8px;
  box-shadow: var(--shadow);
  position: sticky;
  bottom: calc(var(--bottomnav-h) + 12px);
}

.chat-input input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 6px 10px;
  font-size: 13.5px;
}

.chat-input button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gradient-hero);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

/* ---------- accordion (FAQ) ---------- */
.faq-item {
  background: var(--card);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  font-weight: 700;
  font-size: 13.5px;
}

.faq-q svg {
  width: 16px;
  height: 16px;
  stroke: var(--muted);
  fill: none;
  stroke-width: 2;
  transition: transform .25s;
}

.faq-item.open .faq-q svg {
  transform: rotate(180deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.9;
}

.faq-a p {
  margin: 0;
  padding: 0 16px 16px;
}

/* ---------- ticket form ---------- */
.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 7px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1.5px solid #ECECEC;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 13.5px;
  outline: none;
  background: var(--card);
  transition: border-color .15s;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--accent);
}

.field textarea {
  resize: vertical;
  min-height: 100px;
}

/* ---------- toast ---------- */
.toast {
  position: fixed;
  bottom: calc(var(--bottomnav-h) + 18px);
  right: 50%;
  transform: translateX(50%) translateY(20px);
  background: var(--dark);
  color: #fff;
  padding: 12px 20px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  opacity: 0;
  pointer-events: none;
  transition: .3s ease;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  transform: translateX(50%) translateY(0);
}

/* ---------- cart fab badge ---------- */
.cart-count {
  position: absolute;
  top: -4px;
  left: -4px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--card);
}

/* ---------- page header ---------- */
.page-title {
  font-size: 19px;
  font-weight: 800;
  margin: 18px 0 4px;
}

.page-sub {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0 0 4px;
}

/* ---------- misc ---------- */
.divider {
  height: 1px;
  background: #EFEFEF;
  margin: 16px 0;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Exercise detail modal (bottom sheet)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 15, 10, .5);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease;
  z-index: 90;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.modal-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 91;
  background: var(--card);
  border-radius: 24px 24px 0 0;
  max-height: 88vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform .32s cubic-bezier(.22, .9, .3, 1);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, .2);
  visibility: hidden;
  pointer-events: none;
  scrollbar-width: none;
}

.modal-sheet.open {
  transform: translateY(0);
  pointer-events: auto;
  visibility: visible;
}

@media(min-width:640px) {
  .modal-sheet {
    left: 50%;
    right: auto;
    bottom: auto;
    top: 50%;
    width: 90%;
    max-width: 480px;
    border-radius: var(--radius-lg);
    transform: translate(-50%, -46%) scale(.96);
    opacity: 0;
  }

  .modal-sheet.open {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
  }
}

.modal-drag {
  width: 40px;
  height: 5px;
  border-radius: 99px;
  background: #E5E5E5;
  margin: 10px auto 0;
}

.modal-media {
  position: relative;
  height: auto;
  background-size: cover;
  background-position: center;
  border-radius: 20px;
  margin: 14px;
  overflow: hidden;
}

.modal-media video {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.modal-media .play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .15);
}

.modal-media .play span {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--accent-2);
}

.modal-media .badge {
  position: absolute;
  top: 12px;
  right: 12px;
}

.modal-close {
  position: absolute;
  top: 24px;
  left: 24px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  z-index: 2;
}

.modal-body {
  padding: 2px 20px 26px;
}

.modal-body h2 {
  font-size: 17px;
  margin: 0 0 8px;
  font-weight: 800;
}

.modal-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.modal-section {
  margin-top: 16px;
}

.modal-section h4 {
  font-size: 13px;
  margin: 0 0 8px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
}

.modal-section p {
  font-size: 12.8px;
  color: var(--muted);
  line-height: 2;
  margin: 0;
}

.modal-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.modal-stats div {
  background: var(--bg);
  border-radius: 14px;
  padding: 10px 6px;
  text-align: center;
}

.modal-stats b {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--accent-2);
}

.modal-stats span {
  font-size: 10.5px;
  color: var(--muted);
}

.modal-steps {
  padding-right: 18px;
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 2.1;
}

.modal-steps li {
  margin-bottom: 2px;
}

.scroll-box {
  height: 300px;
  overflow-y: auto;
}

.scroll-down {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);

  width: 40px;
  height: 40px;
  border-radius: 50%;

  border: none;
  background: #FE9100;
  color: white;
  font-size: 22px;

  opacity: 0;
  pointer-events: none;
  transition: .3s;
}

.scroll-down.show {
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================================================
   Course accordion list (single column)
   ========================================================================== */
.course-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.course-item {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.course-item-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: none;
  background: transparent;
  text-align: right;
}

.course-item-head .thumb {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background-size: cover;
  background-position: center;
  flex: none;
  background-color: #eee;
}

.course-item-head .info {
  flex: 1;
  min-width: 0;
}

.course-item-head h3 {
  font-size: 14px;
  margin: 0 0 4px;
  font-weight: 800;
}

.course-item-head .coach {
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 8px;
}

.course-item-head .chev {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg);
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .25s ease;
}

.course-item.open .course-item-head .chev {
  transform: rotate(180deg);
}

.course-item-head .chev svg {
  width: 14px;
  height: 14px;
  stroke: var(--muted);
  fill: none;
  stroke-width: 2;
}

.course-item-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .32s ease;
}

.course-item-body-inner {
  padding: 0 16px 18px;
  border-top: 1px solid #F2F2F2;
  margin-top: 2px;
}

.course-item-body-inner .body-title {
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 700;
  margin: 14px 0 10px;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.feature-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--dark);
  border: none;
}

.feature-btn .fico {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  font-size: 15px;
}

.feature-btn.file {
  /*grid-column: 1 / -1;*/
  background: var(--accent-soft);
  color: var(--accent-2);
}

.feature-btn.file .fico {
  background: rgba(255, 255, 255, .6);
}

/* ==========================================================================
   Order wizard (خرید دوره — step by step)
   ========================================================================== */
.wizard-topbar {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wizard-progress {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 14px 0 4px;
}

.wizard-progress span {
  width: 26px;
  height: 5px;
  border-radius: 99px;
  background: #E9E9E9;
  transition: .25s;
}

.wizard-progress span.active {
  background: var(--gradient-hero);
  width: 34px;
}

.wizard-step {
  display: none;
}

.wizard-step.active {
  display: block;
}

.option-group {
  margin-top: 20px;
}

.option-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.option-group-title {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent-soft);
}

.option-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--card);
  border: 1.5px solid #EDEDED;
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  margin-bottom: 10px;
  transition: .15s ease;
}

.option-card.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.option-info {
  min-width: 0;
}

.option-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
}

.option-desc {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
}

.option-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: none;
}

.option-price-old {
  font-size: 10px;
  color: var(--red);
  text-decoration: line-through;
  display: block;
  white-space: nowrap;
}

.option-price {
  font-size: 12.5px;
  font-weight: 800;
  white-space: nowrap;
}

.option-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #DADADA;
  flex: none;
  position: relative;
}

.option-card.selected .option-radio {
  border-color: var(--accent);
}

.option-card.selected .option-radio::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--gradient-hero);
}

.wizard-actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.wizard-actions .btn {
  flex: 1;
}

.invoice-card {
  margin-top: 16px;
}

.invoice-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 13px;
}

.invoice-row .label {
  color: var(--dark);
  font-weight: 600;
}

.invoice-row .val {
  font-weight: 700;
}

.invoice-row.muted-row {
  color: var(--muted);
  font-size: 12px;
}

.invoice-row.save .val {
  color: var(--green);
  font-weight: 800;
}

.invoice-row.final {
  border-top: 1.5px dashed #EDEDED;
  margin-top: 6px;
  padding-top: 14px;
}

.invoice-row.final .label {
  font-weight: 800;
  font-size: 13.5px;
}

.invoice-row.final .val {
  font-size: 17px;
  font-weight: 900;
  color: var(--accent-2);
}