/* Programming term detail page — focused, roadmap-like, mobile-first */
.term-detail-page {
  direction: rtl;
  text-align: right;
  font-family: var(--bahariom-font, 'Dana', 'Vazirmatn', Tahoma, sans-serif);
  --term-bg: #fbfcf6;
  --term-surface: #ffffff;
  --term-surface-soft: #f0f8eb;
  --term-text: #243124;
  --term-muted: #657463;
  --term-border: #e3eadf;
  --term-green: #58cc02;
  --term-green-dark: #46a302;
  --term-green-shadow: #378900;
  --term-blue: #1cb0f6;
  --term-blue-soft: #edf8ff;
  --term-yellow: #fff8dc;
  --term-yellow-border: #ffe491;
  --term-radius-xl: 32px;
  --term-radius-lg: 24px;
  --term-radius-md: 17px;
  --term-shadow-card: 0 7px 0 #dbe4d7;
  --term-shadow-soft: 0 18px 48px rgba(36, 49, 36, 0.08);
  background:
    radial-gradient(circle at 88% 2%, rgba(88, 204, 2, 0.14), transparent 34%),
    radial-gradient(circle at 12% 12%, rgba(28, 176, 246, 0.08), transparent 28%),
    var(--term-bg);
  color: var(--term-text);
  min-height: 100vh;
  padding-bottom: 118px;
}

.term-detail-page * { box-sizing: border-box; }
.term-detail-page a { color: inherit; }

.term-container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.term-hero {
  padding: clamp(34px, 6vw, 70px) 0 42px;
}

.term-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.term-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.term-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--term-muted);
  font-weight: 900;
  text-decoration: none;
  font-size: 0.9rem;
}

.term-back-link:hover { color: var(--term-green-dark); }

.term-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 999px;
  background: #ecffe4;
  border: 2px solid #cef2bf;
  color: #2c7910;
  font-weight: 1000;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.term-title {
  margin: 0;
  color: var(--term-green-dark);
  font-weight: 1000;
  font-size: clamp(2rem, 7vw, 4.15rem);
  line-height: 1.35;
  letter-spacing: -0.03em;
}

.term-subtitle {
  margin: 8px 0 0;
  color: #2b7a0b;
  font-weight: 900;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  line-height: 2;
}

.term-status-card {
  width: 100%;
  margin-top: 20px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 15px 16px;
  background: var(--term-surface);
  border: 2px solid var(--term-border);
  border-bottom: 6px solid #dbe4d7;
  border-radius: var(--term-radius-lg);
  box-shadow: var(--term-shadow-soft);
}

.term-status-card.is-open {
  border-color: rgba(88, 204, 2, 0.34);
  border-bottom-color: rgba(88, 204, 2, 0.42);
  background: linear-gradient(135deg, #ffffff, #f2ffea);
}

.term-status-card.is-locked {
  border-color: rgba(156, 163, 175, 0.28);
  border-bottom-color: rgba(156, 163, 175, 0.34);
  background: linear-gradient(135deg, #ffffff, #f8fafc);
}

.term-status-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  background: var(--term-surface-soft);
  font-size: 1.32rem;
}

.term-status-card strong {
  display: block;
  margin-bottom: 3px;
  font-weight: 1000;
  color: var(--term-text);
}

.term-status-card p {
  margin: 0;
  color: var(--term-muted);
  font-weight: 800;
  line-height: 1.9;
  font-size: 0.9rem;
}

.term-meta-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.term-meta-pill {
  display: grid;
  gap: 2px;
  min-height: 78px;
  padding: 11px 12px;
  border-radius: 18px;
  background: var(--term-surface);
  border: 2px solid var(--term-border);
  border-bottom: 5px solid #dbe4d7;
  text-align: center;
  align-content: center;
}

.term-meta-pill span { font-size: 1.12rem; }
.term-meta-pill strong {
  display: block;
  color: var(--term-text);
  font-size: 0.86rem;
  font-weight: 1000;
  line-height: 1.5;
}
.term-meta-pill small {
  color: var(--term-muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.term-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.term-btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 17px;
  padding: 11px 22px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-weight: 1000;
  line-height: 1.6;
  transition: transform 0.12s ease, border-bottom-width 0.12s ease, filter 0.12s ease;
}

.term-btn-primary {
  background: var(--term-green);
  color: #fff;
  border-bottom: 6px solid var(--term-green-shadow);
  box-shadow: 0 12px 20px rgba(88, 204, 2, 0.18);
}

.term-btn-secondary {
  background: var(--term-surface);
  color: var(--term-green-dark);
  border: 2px solid var(--term-border);
  border-bottom: 6px solid #dbe4d7;
}

.term-btn-disabled {
  background: #e5e7eb;
  color: #4b5563;
  border-bottom: 6px solid #bdc4ce;
  cursor: not-allowed;
  text-align: center;
}

.term-btn:active:not(:disabled) {
  transform: translateY(4px);
  border-bottom-width: 2px;
}

.term-hero-media {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.term-illustration {
  width: 130px;
  height: 130px;
  border: 5px solid var(--term-green);
  border-radius: 999px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 7px 0 #d8e8d1;
  position: relative;
  z-index: 2;
}

.term-illustration img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

.term-syllabus-card,
.term-info-panel {
  background: var(--term-surface);
  border: 2px solid var(--term-border);
  border-bottom: 7px solid #dbe4d7;
  border-radius: var(--term-radius-xl);
  box-shadow: var(--term-shadow-soft);
}

.term-syllabus-card {
  width: 100%;
  margin-top: -9px;
  padding: 28px 20px 20px;
  background: linear-gradient(135deg, #ecffe4, #ffffff 72%);
  border-color: #b7efa0;
  border-bottom-color: #8edb6d;
}

.term-card-heading {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-bottom: 15px;
}

.term-card-icon,
.term-feature-icon {
  display: grid;
  place-items: center;
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.72);
}

.term-card-icon {
  width: 46px;
  height: 46px;
  font-size: 1.35rem;
  border: 2px solid rgba(88, 204, 2, 0.18);
}

.term-card-heading h2 {
  margin: 0;
  color: var(--term-text);
  font-weight: 1000;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.7;
}

.term-card-heading p {
  margin: 1px 0 0;
  color: var(--term-muted);
  font-weight: 800;
  line-height: 1.8;
  font-size: 0.86rem;
}

.term-check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.term-check-list li {
  position: relative;
  padding: 10px 36px 10px 12px;
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid #cff5c0;
  color: #315c24;
  font-weight: 850;
  line-height: 1.9;
  font-size: 0.9rem;
}

.term-check-list li::before {
  content: "✓";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 19px;
  height: 19px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--term-green);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 1000;
}

.term-section {
  padding: 26px 0 18px;
}

.term-two-column {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.term-info-panel {
  padding: 22px;
}

.term-feature-list {
  display: grid;
  gap: 12px;
}

.term-feature-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 76px;
  padding: 14px 15px;
  border-radius: 20px;
  font-weight: 850;
  line-height: 1.9;
}

.term-feature-card p { margin: 0; }

.term-feature-icon {
  width: 40px;
  height: 40px;
  font-size: 1.3rem;
}

.term-feature-card-future {
  background: var(--term-yellow);
  border: 2px solid var(--term-yellow-border);
  border-bottom: 5px solid var(--term-yellow-border);
  color: #4e3c00;
}

.term-feature-card-support {
  background: var(--term-blue-soft);
  border: 2px solid #d0e4ff;
  border-bottom: 5px solid #d0e4ff;
  color: #173e64;
}

.term-sample-channel-section {
  padding: 22px 0 70px;
}

.term-sample-channel-card {
  min-height: 218px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  text-decoration: none;
  border-radius: 32px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-bottom: 8px solid rgba(25, 78, 31, 0.28);
  box-shadow: 0 18px 34px rgba(31, 95, 46, 0.16);
  background-image:
    linear-gradient(180deg, rgba(4,23,10,.06) 0%, rgba(4,23,10,.30) 46%, rgba(4,23,10,.88) 100%),
    url('/static/images/programming-sample-channel-tv.webp?v=20260607');
  background-size: cover;
  background-position: center;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.term-sample-channel-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 42px rgba(31, 95, 46, 0.2);
}

.term-sample-channel-content {
  width: 100%;
  color: #fff;
  padding: 24px 22px;
  text-shadow: 0 2px 12px rgba(0,0,0,.36);
}

.term-sample-channel-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.93);
  color: #1f5f2e;
  text-shadow: none;
  font-size: 0.78rem;
  font-weight: 1000;
  margin-bottom: 10px;
}

.term-sample-channel-content h2 {
  margin: 0 0 6px;
  color: #fff;
  line-height: 1.7;
  font-size: clamp(1.25rem, 4vw, 1.85rem);
  font-weight: 1000;
}

.term-sample-channel-content p {
  margin: 0;
  max-width: 690px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.9;
  font-weight: 850;
}

.term-sample-channel-button {
  margin-top: 14px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: #1f5f2e;
  font-weight: 1000;
  text-shadow: none;
  box-shadow: 0 6px 0 rgba(218, 218, 218, 0.72), 0 12px 20px rgba(0,0,0,.16);
}

.term-sample-channel-card:active .term-sample-channel-button {
  transform: translateY(3px);
  box-shadow: 0 3px 0 rgba(218, 218, 218, 0.72), 0 8px 14px rgba(0,0,0,.14);
}

.term-paybar {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: max(14px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(520px, calc(100vw - 28px));
  z-index: 99999;
  border-radius: 24px;
  padding: 8px;
  background: rgba(255,255,255,.9);
  border: 2px solid rgba(88,204,2,.26);
  box-shadow: 0 16px 34px rgba(31,95,46,.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.term-paybar-btn {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1px;
  border-radius: 18px;
  text-decoration: none;
  font-weight: 1000;
  color: #fff;
  background: var(--term-green);
  border-bottom: 6px solid var(--term-green-shadow);
  box-shadow: 0 8px 18px rgba(88,204,2,.18);
  line-height: 1.6;
}

.term-paybar-btn small {
  display: block;
  font-size: 0.76rem;
  opacity: .9;
  font-weight: 900;
}

.term-paybar-btn:active {
  transform: translateY(3px);
  border-bottom-width: 3px;
}

.term-paybar-locked {
  border-color: rgba(156, 163, 175, 0.32);
  box-shadow: 0 12px 26px rgba(75,85,99,.12);
}

.term-paybar-btn-disabled {
  cursor: not-allowed;
  background: #e5e7eb;
  color: #4b5563;
  border-bottom-color: #bfc5ce;
  text-align: center;
  padding: 10px 14px;
  line-height: 1.9;
  font-size: 0.88rem;
}

.term-accent-blue {
  --term-green: #1cb0f6;
  --term-green-dark: #147fc2;
  --term-green-shadow: #0d63a0;
  --term-surface-soft: #edf8ff;
}

.term-accent-orange {
  --term-green: #ff9600;
  --term-green-dark: #c66e00;
  --term-green-shadow: #9d5400;
  --term-surface-soft: #fff3dc;
}

body.programming-term-detail-page {
  padding-bottom: 96px !important;
}

body.programming-term-detail-page footer,
body.programming-term-detail-page .site-footer,
body.programming-term-detail-page .footer,
body.programming-term-detail-page #footer,
body.programming-term-detail-page .footer-grid,
body.programming-term-detail-page .footer-bottom,
body.programming-term-detail-page .site-bottom {
  display: none !important;
}

@media (max-width: 720px) {
  body.programming-term-detail-page .mobile-nav,
  body.programming-term-detail-page nav.mobile-nav,
  body.programming-term-detail-page .mobile-nav.modern,
  body.programming-term-detail-page .mobile-nav.mobile-nav-lite {
    display: none !important;
  }
}

@media (min-width: 860px) {
  .term-hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
    gap: 44px;
  }

  .term-two-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }

  .term-hero-copy {
    padding-top: 12px;
  }

  .term-illustration {
    width: 150px;
    height: 150px;
  }
}

@media (max-width: 720px) {
  .term-detail-page {
    padding-bottom: 112px;
  }

  .term-container {
    width: min(100% - 24px, 1120px);
  }

  .term-hero {
    padding-top: 30px;
  }

  .term-hero-copy {
    align-items: center;
    text-align: center;
  }

  .term-title,
  .term-subtitle {
    text-align: center;
  }

  .term-status-card {
    text-align: right;
    grid-template-columns: 40px minmax(0, 1fr);
    padding: 13px 14px;
    border-radius: 21px;
  }

  .term-status-icon {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    font-size: 1.15rem;
  }

  .term-status-card p {
    font-size: 0.82rem;
  }

  .term-meta-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .term-meta-pill {
    min-height: 72px;
    padding: 9px 7px;
    border-radius: 15px;
  }

  .term-meta-pill strong {
    font-size: 0.74rem;
  }

  .term-meta-pill small {
    font-size: 0.65rem;
  }

  .term-actions,
  .term-actions .term-btn {
    width: 100%;
  }

  .term-illustration {
    width: 104px;
    height: 104px;
    border-width: 4px;
    box-shadow: 0 5px 0 #d8e8d1;
  }

  .term-syllabus-card,
  .term-info-panel {
    border-radius: 25px;
  }

  .term-syllabus-card {
    padding: 24px 14px 16px;
  }

  .term-info-panel {
    padding: 18px 15px;
  }

  .term-card-heading {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
  }

  .term-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 15px;
    font-size: 1.16rem;
  }

  .term-check-list li,
  .term-feature-card {
    font-size: 0.82rem;
  }

  .term-feature-card {
    min-height: 70px;
    border-radius: 18px;
    grid-template-columns: 38px minmax(0, 1fr);
    padding: 12px 13px;
  }

  .term-feature-icon {
    width: 36px;
    height: 36px;
    border-radius: 14px;
    font-size: 1.15rem;
  }

  .term-sample-channel-section {
    padding-bottom: 95px;
  }

  .term-sample-channel-card {
    min-height: 176px;
    border-radius: 25px;
  }

  .term-sample-channel-content {
    padding: 18px 16px;
  }

  .term-sample-channel-content p {
    font-size: 0.82rem;
  }

  .term-paybar {
    left: max(12px, env(safe-area-inset-left));
    right: max(12px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
    transform: none;
    width: auto;
    border-radius: 22px;
  }
}

body.dark .term-detail-page,
html.dark .term-detail-page,
[data-theme="dark"] .term-detail-page {
  --term-bg: #0b150e;
  --term-surface: rgba(20,38,28,.94);
  --term-surface-soft: rgba(88,204,2,.12);
  --term-text: #eaffd7;
  --term-muted: #c6dec0;
  --term-border: rgba(127,203,120,.28);
  --term-shadow-card: 0 7px 0 rgba(8,21,12,.78);
  background:
    radial-gradient(circle at 88% 2%, rgba(88, 204, 2, 0.12), transparent 34%),
    radial-gradient(circle at 12% 12%, rgba(28, 176, 246, 0.06), transparent 28%),
    var(--term-bg);
}

body.dark .term-status-card,
body.dark .term-syllabus-card,
body.dark .term-info-panel,
html.dark .term-status-card,
html.dark .term-syllabus-card,
html.dark .term-info-panel,
[data-theme="dark"] .term-status-card,
[data-theme="dark"] .term-syllabus-card,
[data-theme="dark"] .term-info-panel {
  background: rgba(20,38,28,.94);
  border-color: rgba(127,203,120,.28);
  border-bottom-color: rgba(8,21,12,.78);
  box-shadow: 0 10px 26px rgba(0,0,0,.24);
}

body.dark .term-syllabus-card,
html.dark .term-syllabus-card,
[data-theme="dark"] .term-syllabus-card {
  background: rgba(88,204,2,.12);
  border-bottom-color: rgba(45,119,28,.62);
}

body.dark .term-title,
body.dark .term-card-heading h2,
html.dark .term-title,
html.dark .term-card-heading h2,
[data-theme="dark"] .term-title,
[data-theme="dark"] .term-card-heading h2 {
  color: #eaffd7;
}

body.dark .term-subtitle,
html.dark .term-subtitle,
[data-theme="dark"] .term-subtitle {
  color: #c6dec0;
}

body.dark .term-check-list li,
html.dark .term-check-list li,
[data-theme="dark"] .term-check-list li {
  background: rgba(255,255,255,.07);
  border-color: rgba(127,203,120,.22);
  color: #e8ffd8;
}

body.dark .term-feature-card-future,
html.dark .term-feature-card-future,
[data-theme="dark"] .term-feature-card-future {
  background: rgba(255,216,61,.10);
  border-color: rgba(255,229,150,.24);
  border-bottom-color: rgba(8,21,12,.78);
  color: #f8e7a4;
}

body.dark .term-feature-card-support,
html.dark .term-feature-card-support,
[data-theme="dark"] .term-feature-card-support {
  background: rgba(24,119,242,.10);
  border-color: rgba(98,169,245,.22);
  border-bottom-color: rgba(8,21,12,.78);
  color: #d8ecff;
}

body.dark .term-paybar,
html.dark .term-paybar,
[data-theme="dark"] .term-paybar {
  background: rgba(12,24,16,.86);
  border-color: rgba(127,203,120,.28);
  box-shadow: 0 16px 34px rgba(0,0,0,.34);
}

@media (prefers-reduced-motion: reduce) {
  .term-detail-page *,
  .term-detail-page *::before,
  .term-detail-page *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

/* =====================================================================
   Sample channel card exact visual-size polish 20260615
   Match the requested image-like card shape: large, almost-square,
   background-covered, with text layered inside the image.
   ===================================================================== */
.term-sample-channel-section{
  padding:28px 0 86px!important;
}
.term-sample-channel-card{
  width:min(100%, 960px)!important;
  margin-inline:auto!important;
  aspect-ratio:1.04 / 1!important;
  min-height:0!important;
  height:auto!important;
  align-items:flex-end!important;
  border-radius:34px!important;
  border:2px solid rgba(255,255,255,.94)!important;
  border-bottom:9px solid rgba(24,68,31,.35)!important;
  background-position:center!important;
  background-size:cover!important;
  box-shadow:0 20px 40px rgba(31,95,46,.18)!important;
}
.term-sample-channel-content{
  padding:clamp(18px, 4.2vw, 40px)!important;
}
.term-sample-channel-badge{
  font-size:clamp(.78rem, 2.3vw, 1rem)!important;
  padding:8px 16px!important;
  margin-bottom:clamp(12px, 2.8vw, 20px)!important;
}
.term-sample-channel-content h2{
  max-width:840px!important;
  font-size:clamp(1.75rem, 7.6vw, 3.6rem)!important;
  line-height:1.55!important;
  margin-bottom:clamp(10px, 2.8vw, 22px)!important;
}
.term-sample-channel-content p{
  max-width:820px!important;
  font-size:clamp(1rem, 4.2vw, 2rem)!important;
  line-height:2!important;
  font-weight:780!important;
}
.term-sample-channel-button{
  margin-top:clamp(18px, 4vw, 34px)!important;
  min-height:clamp(52px, 10vw, 74px)!important;
  padding:10px clamp(22px, 6vw, 42px)!important;
  border-radius:999px!important;
  font-size:clamp(1rem, 4.1vw, 1.72rem)!important;
}
@media(max-width:720px){
  .term-sample-channel-section{
    padding:22px 0 98px!important;
  }
  .term-sample-channel-card{
    aspect-ratio:1.03 / 1!important;
    border-radius:26px!important;
  }
  .term-sample-channel-content{
    padding:22px 18px 24px!important;
  }
  .term-sample-channel-content h2{
    font-size:clamp(1.6rem, 8vw, 2.7rem)!important;
  }
  .term-sample-channel-content p{
    font-size:clamp(.95rem, 4.8vw, 1.35rem)!important;
  }
}


/* =====================================================================
   Term detail sample channel — match homepage BaharTV card
   Only the background/image is different from the homepage sample TV card.
   ===================================================================== */
.term-detail-page .term-sample-tv-section{
  padding:22px 0 72px!important;
}
.term-detail-page .term-sample-tv-wrap{
  display:flex!important;
  justify-content:center!important;
  margin-top:16px!important;
}
.term-detail-page .term-sample-tv-card{
  position:relative!important;
  display:block!important;
  width:min(92vw, 520px)!important;
  min-height:0!important;
  border-radius:26px!important;
  overflow:hidden!important;
  color:#fff!important;
  text-decoration:none!important;
  border:0!important;
  border-bottom:0!important;
  box-shadow:0 18px 40px rgba(18,70,40,.18)!important;
  background:none!important;
  transform:none!important;
}
.term-detail-page .term-sample-tv-card:hover{
  transform:none!important;
  box-shadow:0 18px 40px rgba(18,70,40,.18)!important;
}
.term-detail-page .term-sample-tv-img{
  width:100%!important;
  height:320px!important;
  object-fit:cover!important;
  display:block!important;
  filter:saturate(1.05)!important;
}
.term-detail-page .term-sample-tv-overlay{
  position:absolute!important;
  inset:auto 20px 18px 20px!important;
  background:linear-gradient(180deg,rgba(0,0,0,0) 0%,rgba(8,30,18,.85) 55%,rgba(8,30,18,.95) 100%)!important;
  color:#fff!important;
  padding:22px 18px 18px!important;
  border-radius:18px!important;
  text-align:right!important;
  display:grid!important;
  gap:10px!important;
  width:auto!important;
  text-shadow:none!important;
}
.term-detail-page .term-sample-tv-overlay .bahartv-title,
.term-detail-page .term-sample-tv-overlay #sample-channel-title{
  margin:0!important;
  color:#fff!important;
  font-weight:900!important;
  font-size:1.2rem!important;
  line-height:1.65!important;
  text-shadow:none!important;
}
.term-detail-page .term-sample-tv-overlay .bahartv-text{
  margin:0!important;
  max-width:none!important;
  font-size:.85rem!important;
  color:rgba(255,255,255,.85)!important;
  line-height:1.7!important;
  font-weight:850!important;
  text-shadow:none!important;
}
.term-detail-page .term-sample-tv-overlay .bahartv-tags{
  display:flex!important;
  gap:8px!important;
  flex-wrap:wrap!important;
}
.term-detail-page .term-sample-tv-overlay .bahartv-tags span{
  background:rgba(255,255,255,.15)!important;
  border:1px solid rgba(255,255,255,.3)!important;
  border-radius:999px!important;
  padding:3px 8px!important;
  font-size:.7rem!important;
  font-weight:850!important;
  color:#fff!important;
}
.term-detail-page .term-sample-tv-btn{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  justify-self:start!important;
  min-height:0!important;
  margin-top:0!important;
  background:#fff!important;
  color:#0d2b1c!important;
  font-weight:800!important;
  border-radius:999px!important;
  padding:8px 14px!important;
  box-shadow:0 8px 18px rgba(0,0,0,.2)!important;
  font-size:.85rem!important;
  text-shadow:none!important;
  border:0!important;
}
.term-detail-page .term-sample-tv-card:active .term-sample-tv-btn{
  transform:none!important;
  box-shadow:0 8px 18px rgba(0,0,0,.2)!important;
}
body.dark .term-detail-page .term-sample-tv-card{
  box-shadow:0 18px 40px rgba(0,0,0,.4)!important;
}
@media(max-width:720px){
  .term-detail-page .term-sample-tv-section{
    padding-bottom:72px!important;
  }
  .term-detail-page .term-sample-tv-img{
    height:240px!important;
  }
  .term-detail-page .term-sample-tv-overlay{
    inset:auto 12px 12px 12px!important;
    padding:18px 14px 14px!important;
  }
  .term-detail-page .term-sample-tv-overlay .bahartv-title,
  .term-detail-page .term-sample-tv-overlay #sample-channel-title{
    font-size:1.05rem!important;
  }
  .term-detail-page .term-sample-tv-overlay .bahartv-text{
    font-size:.8rem!important;
  }
}


/* =====================================================================
   FINAL FIX 20260617-B: Programming term detail color themes
   Term 1 = green, Term 2 = blue, Term 3 = golden yellow, Term 4 = purple,
   Term 5 keeps its existing orange theme.
   ===================================================================== */
.term-detail-page.term-accent-yellow{
  --term-green:#f4c430;
  --term-green-dark:#b8860b;
  --term-green-shadow:#8f6b08;
  --term-surface-soft:#fff6cf;
  --term-yellow:#fff0a6;
  --term-yellow-border:#d6a51a;
  background:
    radial-gradient(circle at 88% 2%, rgba(244,196,48,.20), transparent 34%),
    radial-gradient(circle at 12% 12%, rgba(255,221,84,.14), transparent 28%),
    var(--term-bg)!important;
}
.term-detail-page.term-accent-yellow .term-eyebrow,
.term-detail-page.term-accent-yellow .term-status-card,
.term-detail-page.term-accent-yellow .term-panel{
  border-color:rgba(214,165,26,.25)!important;
}
.term-detail-page.term-accent-yellow .term-eyebrow{
  background:#fff6cf!important;
  color:#8f6b08!important;
}
.term-detail-page.term-accent-purple{
  --term-green:#8b5cf6;
  --term-green-dark:#6d28d9;
  --term-green-shadow:#5421a6;
  --term-surface-soft:#f3edff;
  --term-yellow:#efe4ff;
  --term-yellow-border:#bfa7ff;
  background:
    radial-gradient(circle at 88% 2%, rgba(139,92,246,.18), transparent 34%),
    radial-gradient(circle at 12% 12%, rgba(196,181,253,.14), transparent 28%),
    var(--term-bg)!important;
}
.term-detail-page.term-accent-purple .term-eyebrow,
.term-detail-page.term-accent-purple .term-status-card,
.term-detail-page.term-accent-purple .term-panel{
  border-color:rgba(139,92,246,.24)!important;
}
.term-detail-page.term-accent-purple .term-eyebrow{
  background:#f3edff!important;
  color:#6d28d9!important;
}
body.dark .term-detail-page.term-accent-yellow{
  background:
    radial-gradient(circle at 88% 2%, rgba(244,196,48,.12), transparent 34%),
    radial-gradient(circle at 12% 12%, rgba(255,221,84,.10), transparent 28%),
    var(--term-bg)!important;
}
body.dark .term-detail-page.term-accent-purple{
  background:
    radial-gradient(circle at 88% 2%, rgba(139,92,246,.13), transparent 34%),
    radial-gradient(circle at 12% 12%, rgba(196,181,253,.09), transparent 28%),
    var(--term-bg)!important;
}


/* =====================================================================
   FINAL 20260617-D: Term detail locked state cleanup + robot prerequisite note
   ===================================================================== */
.term-robot-requirement-card{
  background:linear-gradient(180deg,#f5fbff,#ffffff)!important;
  border-color:rgba(28,176,246,.22)!important;
  border-bottom-color:rgba(185,196,210,.72)!important;
  box-shadow:0 12px 26px rgba(28,176,246,.08)!important;
}
.term-robot-requirement-card .term-status-icon{
  background:linear-gradient(180deg,#eaf8ff,#ffffff)!important;
  color:#147fc2!important;
}
.term-robot-requirement-card strong{
  color:#364252!important;
}
.term-robot-requirement-card p{
  color:#5d6877!important;
}
body.dark .term-robot-requirement-card{
  background:linear-gradient(180deg,rgba(22,34,46,.96),rgba(15,24,33,.98))!important;
  border-color:rgba(28,176,246,.18)!important;
  border-bottom-color:rgba(5,12,18,.82)!important;
}
body.dark .term-robot-requirement-card strong{
  color:#edf8ff!important;
}
body.dark .term-robot-requirement-card p{
  color:#c6d4df!important;
}


/* =====================================================================
   RESTORE 20260617-E: locked term message + bottom locked paybar
   ===================================================================== */
.term-btn-disabled{
  background:linear-gradient(180deg,#f2f4f7,#e5e8ee)!important;
  color:#6b7280!important;
  border:2px solid #d6dbe4!important;
  border-bottom:5px solid #c0c7d2!important;
  box-shadow:none!important;
  cursor:not-allowed!important;
  opacity:.92!important;
}
.term-paybar{
  z-index:12000!important;
}
.term-paybar-locked{
  width:min(100%,620px)!important;
  min-height:64px!important;
  margin:0 auto!important;
  padding:13px 16px!important;
  display:grid!important;
  grid-template-columns:42px minmax(0,1fr)!important;
  align-items:center!important;
  gap:12px!important;
  border-radius:22px!important;
  background:linear-gradient(180deg,#f5f7fa,#e7ebf1)!important;
  border:2px solid #d9e0ea!important;
  border-bottom:6px solid #c3ccd8!important;
  box-shadow:0 12px 26px rgba(69,84,104,.12)!important;
  color:#4b5563!important;
  text-align:right!important;
}
.term-paybar-lock-icon{
  width:38px!important;
  height:38px!important;
  display:grid!important;
  place-items:center!important;
  border-radius:14px!important;
  background:#edf1f6!important;
  border:1px solid #d6dfe9!important;
  font-size:1.12rem!important;
}
.term-paybar-locked p{
  margin:0!important;
  color:#4b5563!important;
  font-weight:900!important;
  line-height:1.9!important;
  font-size:.88rem!important;
}
body.dark .term-btn-disabled{
  background:linear-gradient(180deg,#202832,#171d25)!important;
  color:#b9c4d1!important;
  border-color:#35404c!important;
  border-bottom-color:#0d1117!important;
}
body.dark .term-paybar-locked{
  background:linear-gradient(180deg,#202832,#171d25)!important;
  border-color:#35404c!important;
  border-bottom-color:#0d1117!important;
  box-shadow:0 12px 26px rgba(0,0,0,.28)!important;
}
body.dark .term-paybar-lock-icon{
  background:#151b22!important;
  border-color:#35404c!important;
}
body.dark .term-paybar-locked p{
  color:#d2dbe6!important;
}
@media(max-width:720px){
  .term-paybar{
    padding:10px 10px calc(10px + env(safe-area-inset-bottom, 0px))!important;
  }
  .term-paybar-locked{
    width:100%!important;
    min-height:60px!important;
    border-radius:20px!important;
    padding:11px 12px!important;
    grid-template-columns:36px minmax(0,1fr)!important;
    gap:10px!important;
  }
  .term-paybar-lock-icon{
    width:34px!important;
    height:34px!important;
    border-radius:12px!important;
    font-size:1rem!important;
  }
  .term-paybar-locked p{
    font-size:.82rem!important;
    line-height:1.85!important;
  }
}


/* =====================================================================
   ROUND21 FINAL: Wider register/pay buttons on tablet and desktop only
   ===================================================================== */
@media(min-width:721px){
  .term-actions .term-btn-primary{
    min-width:240px!important;
    padding-inline:38px!important;
  }

  .term-paybar{
    width:min(640px, calc(100vw - 44px))!important;
  }

  .term-paybar-btn{
    min-height:60px!important;
    font-size:1rem!important;
  }
}
