/* ====================================================================== *
 * File: commerce_experience_revision.css
 * Location: static/css/commerce_experience_revision.css
 * Description: Unified premium Fereshte landing, dashboard, bundle, course-support, and scientific-support presentation refinements.
 * Version: 1.0.0
 * Last Modified: Sun Aug 16 2026 - 17:00
 * Dependencies: academy_commerce.css, existing landing/dashboard/course/student-shell styles
 * ====================================================================== */

/* -------------------------------------------------------------------------- *
 * 1. Shared experience tokens and motion
 * -------------------------------------------------------------------------- */

:root {
  --commerce-revision-navy: #081b38;
  --commerce-revision-navy-2: #0b2b55;
  --commerce-revision-ink: #10233f;
  --commerce-revision-muted: #66768b;
  --commerce-revision-gold: #b48734;
  --commerce-revision-gold-soft: #f6efdf;
  --commerce-revision-line: rgba(11, 43, 85, 0.1);
  --commerce-revision-surface: #ffffff;
  --commerce-revision-surface-soft: #f7f9fc;
  --commerce-revision-radius: 22px;
  --commerce-revision-shadow: 0 16px 42px rgba(8, 27, 56, 0.07);
}

.commerce-kicker {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--commerce-revision-gold);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.7;
}

.commerce-text-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--commerce-revision-navy-2);
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
}

.commerce-text-action:hover {
  color: #805e21;
}

.commerce-muted-state {
  color: #7b8797;
  font-size: 0.76rem;
  font-weight: 700;
}

.commerce-reveal {
  opacity: 1;
  transform: none;
}

.js-commerce-reveal .commerce-reveal:not(.is-revealed) {
  opacity: 0;
  transform: translateY(18px);
}

.js-commerce-reveal .commerce-reveal {
  transition: opacity 480ms ease, transform 480ms ease;
}

/* -------------------------------------------------------------------------- *
 * 2. Landing hero hierarchy and top navigation
 * -------------------------------------------------------------------------- */

.landing-topbar .landing-student-login::before {
  content: "↗";
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  color: var(--landing-gold-2);
  font-size: 0.72rem;
  line-height: 1;
  box-shadow: none;
}

.landing-actions.landing-actions-two {
  width: min(610px, 100%);
  flex-wrap: nowrap;
  gap: 14px;
}

.landing-actions-two .landing-cta {
  flex: 1 1 0;
  min-width: 0;
}

.landing-actions-two .landing-cta:first-child {
  border-color: rgba(224, 190, 111, 0.9);
  background: linear-gradient(180deg, #e3c274 0%, #cda654 100%);
  color: #10223c;
  box-shadow: 0 13px 34px rgba(3, 12, 28, 0.2);
}

.landing-actions-two .landing-cta:first-child:hover {
  transform: translateY(-2px);
  box-shadow: 0 17px 38px rgba(3, 12, 28, 0.26);
}

.landing-actions-two .landing-cta.is-disabled {
  opacity: 0.62;
  cursor: default;
}

.landing-center .landing-access-note {
  max-width: 660px;
  margin-top: 14px;
  color: rgba(238, 244, 252, 0.78);
  font-size: 0.82rem;
  line-height: 1.9;
}

/* -------------------------------------------------------------------------- *
 * 3. Public page rhythm and section alternation
 * -------------------------------------------------------------------------- */

.landing-content-flow {
  background: #f7f9fc;
}

.landing-content-flow .landing-course-portfolio {
  padding-bottom: clamp(54px, 7vw, 86px);
}

.commerce-public-section {
  padding: clamp(58px, 7vw, 88px) 20px;
}

.commerce-public-section.commerce-bundles-public {
  background: #ffffff;
}

.commerce-public-section.commerce-learning-compact {
  background:
    radial-gradient(circle at 15% 20%, rgba(176, 137, 63, 0.06), transparent 28%),
    #f7f9fc;
}

.commerce-public-section.commerce-faq-section {
  background: #f7f9fc;
}

.commerce-section-heading {
  margin-bottom: 34px;
}

.commerce-section-heading h2 {
  letter-spacing: -0.015em;
}

/* -------------------------------------------------------------------------- *
 * 4. Public bundle cards
 * -------------------------------------------------------------------------- */

.commerce-public-bundle-grid {
  gap: 16px;
}

.commerce-public-bundle-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(11, 43, 85, 0.09);
  box-shadow: 0 12px 34px rgba(8, 27, 56, 0.055);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.commerce-public-bundle-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 24px;
  left: 24px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(181, 136, 53, 0.65), transparent);
}

.commerce-public-bundle-card:hover {
  transform: translateY(-3px);
  border-color: rgba(181, 136, 53, 0.2);
  box-shadow: 0 18px 44px rgba(8, 27, 56, 0.085);
}

.commerce-public-bundle-value {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
  padding-top: 15px;
  border-top: 1px solid var(--commerce-revision-line);
}

.commerce-public-bundle-value span,
.commerce-public-bundle-value small,
.commerce-public-bundle-value strong,
.commerce-public-bundle-value del {
  display: block;
}

.commerce-public-bundle-value small {
  color: #77859a;
  font-size: 0.68rem;
  line-height: 1.7;
}

.commerce-public-bundle-value strong {
  margin-top: 4px;
  color: var(--commerce-revision-navy-2);
  font-size: 0.92rem;
}

.commerce-public-bundle-value del {
  margin-top: 4px;
  color: #8a95a4;
  font-size: 0.84rem;
}

/* -------------------------------------------------------------------------- *
 * 5. Compact learning structure
 * -------------------------------------------------------------------------- */

.commerce-feature-grid.commerce-feature-grid-compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--commerce-revision-line);
  border-bottom: 1px solid var(--commerce-revision-line);
}

.commerce-feature-grid-compact article {
  position: relative;
  min-height: 0;
  border: 0;
  border-radius: 0;
  padding: 26px 22px;
  background: transparent;
  box-shadow: none;
}

.commerce-feature-grid-compact article + article {
  border-right: 1px solid var(--commerce-revision-line);
}

.commerce-feature-index {
  display: block;
  margin-bottom: 12px;
  color: rgba(180, 135, 52, 0.7);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.commerce-feature-grid-compact strong {
  margin-bottom: 7px;
  font-size: 0.95rem;
}

.commerce-feature-grid-compact p {
  font-size: 0.8rem;
  line-height: 1.85;
}

/* -------------------------------------------------------------------------- *
 * 6. Access timeline instead of six boxed cards
 * -------------------------------------------------------------------------- */

.commerce-access-section {
  background:
    radial-gradient(circle at 18% 22%, rgba(112, 150, 213, 0.12), transparent 30%),
    linear-gradient(180deg, #081b38 0%, #0a274d 100%);
}

.commerce-access-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  padding-top: 4px;
}

.commerce-access-timeline::before {
  content: "";
  position: absolute;
  top: 25px;
  right: 8.3%;
  left: 8.3%;
  height: 1px;
  background: linear-gradient(90deg, rgba(224, 189, 112, 0.15), rgba(224, 189, 112, 0.5), rgba(224, 189, 112, 0.15));
}

.commerce-access-timeline li {
  position: relative;
  min-height: 0;
  border: 0;
  border-radius: 0;
  padding: 0 12px;
  background: transparent;
}

.commerce-access-timeline b {
  position: relative;
  z-index: 1;
  width: 43px;
  height: 43px;
  margin-bottom: 13px;
  background: #0b2c56;
  box-shadow: 0 0 0 7px rgba(8, 27, 56, 0.92);
}

.commerce-access-timeline span {
  display: block;
  max-width: 150px;
  margin: 0 auto;
  font-size: 0.8rem;
}

/* -------------------------------------------------------------------------- *
 * 7. Testimonials/FAQ transition and final CTA
 * -------------------------------------------------------------------------- */

.commerce-testimonials-transition {
  background: #ffffff;
}

.commerce-testimonials-transition .specialist-comments-shell {
  padding-top: clamp(56px, 7vw, 86px);
  padding-bottom: clamp(56px, 7vw, 86px);
}

.commerce-faq-list details {
  border-color: rgba(11, 43, 85, 0.08);
  box-shadow: 0 7px 24px rgba(8, 27, 56, 0.035);
}

.commerce-faq-list details[open] {
  border-color: rgba(181, 136, 53, 0.18);
}

.commerce-final-cta {
  margin-top: clamp(28px, 5vw, 54px);
}

/* -------------------------------------------------------------------------- *
 * 8. Integrated student dashboard sections
 * -------------------------------------------------------------------------- */

.student-dashboard > .dashboard-section,
.commerce-dashboard-section {
  scroll-margin-top: 28px;
}

.commerce-dashboard-section {
  margin-top: 30px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
}

.commerce-dashboard-heading {
  margin-bottom: 16px;
}

.commerce-dashboard-heading .dashboard-section-title p {
  max-width: 760px;
  margin-top: 6px;
  color: var(--commerce-revision-muted);
  line-height: 1.8;
}

.commerce-owned-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.commerce-owned-course-card {
  border: 1px solid var(--commerce-revision-line);
  border-radius: var(--commerce-revision-radius);
  padding: 20px;
  background: var(--commerce-revision-surface);
  box-shadow: var(--commerce-revision-shadow);
}

.commerce-owned-course-top,
.commerce-dashboard-bundle-head,
.commerce-bundle-final-row,
.course-experience-progress-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.commerce-course-state,
.commerce-bundle-label {
  display: inline-block;
  margin-bottom: 6px;
  color: #6d7b8e;
  font-size: 0.7rem;
  font-weight: 800;
}

.commerce-owned-course-card h3,
.commerce-dashboard-bundle-card h3 {
  margin: 0;
  color: var(--commerce-revision-navy);
  font-size: 1.05rem;
  line-height: 1.65;
}

.commerce-progress-number {
  color: var(--commerce-revision-gold);
  font-size: 1.15rem;
}

.commerce-owned-course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 12px;
  color: #718096;
  font-size: 0.75rem;
}

.commerce-owned-course-meta strong {
  color: #3b4e68;
}

.commerce-support-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
  padding: 13px 14px;
  border-radius: 16px;
  background: #f5f8fc;
}

.commerce-support-inline div,
.commerce-support-inline small,
.commerce-support-inline strong,
.commerce-support-inline span {
  display: block;
}

.commerce-support-inline small {
  color: #718096;
  font-size: 0.68rem;
}

.commerce-support-inline strong {
  margin-top: 3px;
  color: var(--commerce-revision-ink);
  font-size: 0.8rem;
}

.commerce-support-inline div > span {
  margin-top: 3px;
  color: #7a8799;
  font-size: 0.68rem;
}

.commerce-support-inline > a {
  flex: 0 0 auto;
  color: var(--commerce-revision-navy-2);
  font-size: 0.75rem;
  font-weight: 800;
  text-decoration: none;
}

.commerce-card-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
}

.commerce-empty-learning,
.scientific-support-empty {
  border: 1px dashed rgba(11, 43, 85, 0.16);
  border-radius: 18px;
  padding: 22px;
  background: #fafbfd;
  color: #6c7a8e;
  text-align: center;
  line-height: 1.8;
}

/* -------------------------------------------------------------------------- *
 * 9. Personalized progress trigger
 * -------------------------------------------------------------------------- */

.commerce-personalized-section {
  margin-top: 22px;
}

.commerce-progress-offer-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  overflow: hidden;
  border: 1px solid rgba(180, 135, 52, 0.22);
  border-radius: 22px;
  padding: 22px 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(207, 168, 90, 0.11), transparent 34%),
    #fffdf8;
}

.commerce-progress-offer-copy h2 {
  margin: 2px 0 8px;
  color: var(--commerce-revision-navy);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.commerce-progress-offer-copy p {
  margin: 0;
  color: #5d6c80;
  line-height: 1.85;
}

.commerce-progress-offer-copy small {
  display: block;
  margin-top: 7px;
  color: #8b7447;
}

.commerce-progress-offer-price {
  display: grid;
  justify-items: end;
  gap: 8px;
  min-width: 180px;
}

.commerce-progress-offer-price > strong {
  color: var(--commerce-revision-navy);
  font-size: 1.05rem;
}

.commerce-progress-offer-price > span {
  color: #758296;
  font-size: 0.72rem;
}

/* -------------------------------------------------------------------------- *
 * 10. Dashboard bundle discovery and upgrade cards
 * -------------------------------------------------------------------------- */

.commerce-dashboard-bundle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.commerce-dashboard-bundle-card {
  border: 1px solid var(--commerce-revision-line);
  border-radius: var(--commerce-revision-radius);
  padding: 20px;
  background: #ffffff;
  box-shadow: 0 13px 34px rgba(8, 27, 56, 0.055);
}

.commerce-dashboard-bundle-card.is-upgrade {
  border-color: rgba(180, 135, 52, 0.2);
}

.commerce-dashboard-bundle-card.is-complete {
  background: #f8fafc;
  box-shadow: none;
}

.commerce-bundle-saving {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 5px 9px;
  background: var(--commerce-revision-gold-soft);
  color: #806022;
  font-size: 0.68rem;
  font-weight: 800;
}

.commerce-dashboard-bundle-description {
  margin: 10px 0 0;
  color: #66768b;
  font-size: 0.8rem;
  line-height: 1.8;
}

.commerce-bundle-course-list {
  display: grid;
  gap: 6px;
  margin: 15px 0;
  padding: 0;
  list-style: none;
}

.commerce-bundle-course-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(11, 43, 85, 0.055);
  padding: 7px 0;
  color: #3d4f68;
  font-size: 0.78rem;
}

.commerce-bundle-course-list li::before {
  display: none;
}

.commerce-bundle-course-list li.is-owned span::before {
  content: "✓";
  margin-left: 6px;
  color: #4f7b62;
  font-weight: 900;
}

.commerce-bundle-course-list small {
  color: #6f806f;
  font-size: 0.65rem;
  text-align: left;
}

.commerce-bundle-value-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.commerce-bundle-value-row > span {
  min-width: 0;
  border-radius: 13px;
  padding: 10px;
  background: #f6f8fb;
}

.commerce-bundle-value-row small,
.commerce-bundle-value-row strong {
  display: block;
}

.commerce-bundle-value-row small {
  color: #7b8798;
  font-size: 0.64rem;
}

.commerce-bundle-value-row strong {
  margin-top: 3px;
  color: var(--commerce-revision-navy-2);
  font-size: 0.78rem;
}

.commerce-bundle-final-row {
  align-items: flex-end;
  margin-top: 15px;
  padding-top: 14px;
  border-top: 1px solid var(--commerce-revision-line);
}

.commerce-bundle-final-row > div small,
.commerce-bundle-final-row > div strong,
.commerce-bundle-final-row > div span {
  display: block;
}

.commerce-bundle-final-row > div small {
  color: #7b8798;
  font-size: 0.66rem;
}

.commerce-bundle-final-row > div strong {
  margin-top: 2px;
  color: var(--commerce-revision-navy);
  font-size: 1rem;
}

.commerce-bundle-final-row > div span {
  margin-top: 3px;
  color: #8b7447;
  font-size: 0.66rem;
}

.commerce-bundle-complete-state {
  margin-top: 15px;
  border-radius: 15px;
  padding: 13px 14px;
  background: #eef4f0;
}

.commerce-bundle-complete-state strong,
.commerce-bundle-complete-state span {
  display: block;
}

.commerce-bundle-complete-state strong {
  color: #365a45;
  font-size: 0.8rem;
}

.commerce-bundle-complete-state span {
  margin-top: 3px;
  color: #6f806f;
  font-size: 0.7rem;
}

.dashboard-secondary-catalog {
  margin-top: 36px;
  padding-top: 26px;
  border-top: 1px solid rgba(11, 43, 85, 0.08);
}

/* -------------------------------------------------------------------------- *
 * 11. Owned-course header support / next path strip
 * -------------------------------------------------------------------------- */

.course-experience-strip {
  display: grid;
  grid-template-columns: 1.05fr 1fr 0.9fr;
  gap: 1px;
  margin: 15px 0 24px;
  overflow: hidden;
  border: 1px solid var(--commerce-revision-line);
  border-radius: 20px;
  background: var(--commerce-revision-line);
}

.course-experience-strip > div {
  min-width: 0;
  padding: 18px;
  background: #ffffff;
}

.course-experience-progress h2 {
  margin: 0;
  color: var(--commerce-revision-navy);
  font-size: 1rem;
}

.course-experience-progress-head > span {
  color: #718096;
  font-size: 0.7rem;
}

.course-experience-progress .commerce-progress-track {
  margin: 11px 0 9px;
}

.course-experience-support > strong,
.course-experience-support > span,
.course-experience-path > strong,
.course-experience-path-price {
  display: block;
}

.course-experience-support > strong,
.course-experience-path > strong {
  color: var(--commerce-revision-navy);
  font-size: 0.85rem;
  line-height: 1.7;
}

.course-experience-support > span,
.course-experience-path-price {
  margin-top: 4px;
  color: #738095;
  font-size: 0.7rem;
}

.course-experience-support p,
.course-experience-path p {
  margin: 8px 0;
  color: #68788c;
  font-size: 0.72rem;
  line-height: 1.75;
}

.course-experience-support .commerce-primary-button {
  min-height: 38px;
  margin-top: 7px;
  padding: 8px 13px;
  font-size: 0.74rem;
}

/* -------------------------------------------------------------------------- *
 * 12. Scientific support inbox and thread
 * -------------------------------------------------------------------------- */

.scientific-support-shell {
  width: min(1080px, 100%);
  margin: 28px auto 56px;
  direction: rtl;
}

.scientific-support-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  border-radius: 24px;
  padding: 28px 30px;
  background:
    radial-gradient(circle at 0% 0%, rgba(184, 139, 56, 0.14), transparent 34%),
    var(--commerce-revision-navy);
  color: #ffffff;
}

.scientific-support-hero h1 {
  margin: 3px 0 8px;
  color: #ffffff;
  font-size: clamp(1.55rem, 3vw, 2.05rem);
}

.scientific-support-hero p {
  max-width: 760px;
  margin: 0;
  color: #d5dfec;
  line-height: 1.9;
}

.scientific-support-hero .commerce-text-action {
  flex: 0 0 auto;
  color: #e4c67f;
}

.scientific-support-section {
  margin-top: 22px;
  border: 1px solid var(--commerce-revision-line);
  border-radius: 22px;
  padding: 22px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(8, 27, 56, 0.045);
}

.scientific-support-section-head {
  margin-bottom: 16px;
}

.scientific-support-section-head h2 {
  margin: 0;
  color: var(--commerce-revision-navy);
  font-size: 1.08rem;
}

.scientific-support-section-head p {
  margin: 5px 0 0;
  color: #6d7b8e;
  font-size: 0.78rem;
  line-height: 1.85;
}

.scientific-support-quota-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.scientific-support-quota-card {
  border-radius: 16px;
  padding: 15px 16px;
  background: #f6f8fb;
}

.scientific-support-quota-card.is-inactive {
  opacity: 0.72;
}

.scientific-support-quota-card h3,
.scientific-support-quota-card strong,
.scientific-support-quota-card span,
.scientific-support-quota-card small {
  display: block;
}

.scientific-support-quota-card h3 {
  margin: 0 0 6px;
  color: var(--commerce-revision-navy);
  font-size: 0.86rem;
}

.scientific-support-quota-card strong {
  color: #3d506a;
  font-size: 0.78rem;
}

.scientific-support-quota-card span,
.scientific-support-quota-card small {
  margin-top: 4px;
  color: #748196;
  font-size: 0.68rem;
}

.scientific-support-form {
  display: grid;
  gap: 14px;
}

.scientific-support-form label > span {
  display: block;
  margin-bottom: 6px;
  color: #34475f;
  font-size: 0.76rem;
  font-weight: 800;
}

.scientific-support-form input,
.scientific-support-form select,
.scientific-support-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #dbe3ed;
  border-radius: 13px;
  padding: 11px 12px;
  background: #fbfcfe;
  color: #172d4b;
  font: inherit;
  line-height: 1.75;
  outline: none;
}

.scientific-support-form textarea {
  resize: vertical;
}

.scientific-support-form input:focus,
.scientific-support-form select:focus,
.scientific-support-form textarea:focus {
  border-color: rgba(180, 135, 52, 0.55);
  box-shadow: 0 0 0 3px rgba(180, 135, 52, 0.1);
}

.scientific-support-form ul.errorlist,
.scientific-support-form-error {
  margin: 6px 0 0;
  color: #9d3d3d;
  font-size: 0.72rem;
  list-style: none;
}

.scientific-support-scope-notice {
  border-right: 3px solid var(--commerce-revision-gold);
  padding: 8px 12px 8px 0;
  background: #fffdf8;
}

.scientific-support-scope-notice strong {
  color: #695226;
  font-size: 0.76rem;
}

.scientific-support-scope-notice p {
  margin: 4px 0 0;
  color: #786d59;
  font-size: 0.72rem;
  line-height: 1.8;
}

.scientific-support-form .commerce-primary-button {
  width: fit-content;
  min-width: 150px;
}

.scientific-support-ticket-list {
  display: grid;
  gap: 8px;
}

.scientific-support-ticket-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  border: 1px solid rgba(11, 43, 85, 0.08);
  border-radius: 16px;
  padding: 15px 16px;
  color: inherit;
  text-decoration: none;
  transition: border-color 180ms ease, background 180ms ease;
}

.scientific-support-ticket-card:hover,
.scientific-support-ticket-card.has-unread {
  border-color: rgba(180, 135, 52, 0.2);
  background: #fffdf8;
}

.scientific-support-ticket-course {
  color: #7a8798;
  font-size: 0.67rem;
  font-weight: 700;
}

.scientific-support-ticket-main h3 {
  margin: 3px 0;
  color: var(--commerce-revision-navy);
  font-size: 0.88rem;
}

.scientific-support-ticket-main p {
  margin: 0;
  color: #6c7a8c;
  font-size: 0.72rem;
  line-height: 1.75;
}

.scientific-support-ticket-meta {
  display: grid;
  align-content: center;
  justify-items: end;
  gap: 5px;
}

.support-status {
  border-radius: 999px;
  padding: 4px 8px;
  background: #eef2f7;
  color: #53647a;
  font-size: 0.64rem;
  font-weight: 800;
}

.support-status-answered {
  background: #edf5ef;
  color: #3f6b50;
}

.support-status-out_of_scope,
.support-status-closed {
  background: #f2f2f3;
  color: #777e88;
}

.scientific-support-unread {
  color: #8a6423;
  font-size: 0.64rem;
}

.scientific-support-ticket-meta time {
  color: #8b95a3;
  font-size: 0.63rem;
}

.scientific-support-thread-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: #c9d6e5;
  font-size: 0.72rem;
}

.scientific-support-thread {
  display: grid;
  gap: 12px;
}

.scientific-support-message {
  max-width: 82%;
  border-radius: 18px;
  padding: 14px 16px;
}

.scientific-support-message.is-student {
  justify-self: start;
  border-bottom-right-radius: 5px;
  background: #eef3f9;
}

.scientific-support-message.is-support {
  justify-self: end;
  border: 1px solid rgba(180, 135, 52, 0.14);
  border-bottom-left-radius: 5px;
  background: #fffaf0;
}

.scientific-support-message header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 6px;
}

.scientific-support-message header strong {
  color: var(--commerce-revision-navy);
  font-size: 0.72rem;
}

.scientific-support-message header time {
  color: #8994a2;
  font-size: 0.62rem;
}

.scientific-support-message p {
  margin: 0;
  color: #394d67;
  font-size: 0.78rem;
  line-height: 1.9;
}

/* -------------------------------------------------------------------------- *
 * 13. Tablet behavior
 * -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .commerce-feature-grid.commerce-feature-grid-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .commerce-feature-grid-compact article:nth-child(3) {
    border-right: 0;
    border-top: 1px solid var(--commerce-revision-line);
  }

  .commerce-feature-grid-compact article:nth-child(4) {
    border-top: 1px solid var(--commerce-revision-line);
  }

  .commerce-access-timeline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 28px;
  }

  .commerce-access-timeline::before {
    display: none;
  }

  .commerce-access-timeline b {
    box-shadow: none;
  }

  .commerce-owned-grid,
  .commerce-dashboard-bundle-grid,
  .scientific-support-quota-grid {
    grid-template-columns: 1fr;
  }

  .course-experience-strip {
    grid-template-columns: 1fr 1fr;
  }

  .course-experience-path {
    grid-column: 1 / -1;
  }
}

/* -------------------------------------------------------------------------- *
 * 14. Mobile behavior
 * -------------------------------------------------------------------------- */

@media (max-width: 640px) {
  .landing-center {
    padding-bottom: 232px;
  }

  .landing-actions.landing-actions-two {
    display: grid;
    width: min(330px, calc(100% - 14px));
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .landing-actions-two .landing-cta {
    width: 100%;
    min-height: 48px;
    padding: 10px 12px;
    font-size: 0.8rem;
    line-height: 1.55;
  }

  .landing-center .landing-access-note {
    width: min(350px, calc(100% - 22px));
    margin-top: 11px;
    font-size: 0.72rem;
  }

  .landing-topbar {
    width: calc(100% - 22px);
    justify-content: space-between;
  }

  .landing-topbar .landing-contact-top {
    min-height: 36px;
    padding: 7px 10px;
    font-size: 0.72rem;
  }

  .commerce-public-section {
    padding: 48px 15px;
  }

  .commerce-section-heading {
    margin-bottom: 24px;
    text-align: right;
  }

  .commerce-section-heading h2 {
    font-size: 1.38rem;
  }

  .commerce-section-heading p {
    font-size: 0.8rem;
    line-height: 1.85;
  }

  .commerce-public-bundle-grid {
    grid-template-columns: 1fr;
  }

  .commerce-public-bundle-card {
    padding: 19px;
  }

  .commerce-feature-grid.commerce-feature-grid-compact {
    grid-template-columns: 1fr;
    border-top: 0;
    border-bottom: 0;
  }

  .commerce-feature-grid-compact article,
  .commerce-feature-grid-compact article + article,
  .commerce-feature-grid-compact article:nth-child(3),
  .commerce-feature-grid-compact article:nth-child(4) {
    border: 0;
    border-bottom: 1px solid var(--commerce-revision-line);
    padding: 18px 2px;
  }

  .commerce-access-timeline {
    grid-template-columns: 1fr;
    gap: 0;
    padding-right: 8px;
  }

  .commerce-access-timeline li {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 10px 0;
    text-align: right;
  }

  .commerce-access-timeline li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 49px;
    right: 19px;
    width: 1px;
    height: 20px;
    background: rgba(225, 189, 114, 0.3);
  }

  .commerce-access-timeline b {
    width: 39px;
    height: 39px;
    margin: 0;
  }

  .commerce-access-timeline span {
    max-width: none;
    margin: 0;
    font-size: 0.82rem;
  }

  .commerce-final-cta {
    margin-inline: 15px;
    padding: 22px;
  }

  .commerce-owned-course-card,
  .commerce-dashboard-bundle-card {
    padding: 17px;
  }

  .commerce-support-inline,
  .commerce-bundle-final-row,
  .commerce-progress-offer-card,
  .scientific-support-hero {
    display: grid;
    grid-template-columns: 1fr;
  }

  .commerce-card-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .commerce-card-actions .commerce-primary-button,
  .commerce-card-actions .commerce-text-action,
  .commerce-bundle-final-row .commerce-primary-button,
  .commerce-progress-offer-price .commerce-primary-button {
    width: 100%;
    box-sizing: border-box;
  }

  .commerce-progress-offer-price {
    min-width: 0;
    justify-items: stretch;
  }

  .commerce-bundle-value-row {
    grid-template-columns: 1fr 1fr;
  }

  .commerce-bundle-course-list li {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .commerce-bundle-course-list small {
    text-align: right;
  }

  .course-experience-strip {
    grid-template-columns: 1fr;
    margin-top: 12px;
  }

  .course-experience-path {
    grid-column: auto;
  }

  .scientific-support-shell {
    margin-top: 18px;
  }

  .scientific-support-hero,
  .scientific-support-section {
    border-radius: 18px;
    padding: 18px;
  }

  .scientific-support-ticket-card {
    grid-template-columns: 1fr;
  }

  .scientific-support-ticket-meta {
    display: flex;
    flex-wrap: wrap;
    justify-items: initial;
    align-items: center;
  }

  .scientific-support-message {
    max-width: 92%;
  }

  .scientific-support-form .commerce-primary-button {
    width: 100%;
  }
}

/* -------------------------------------------------------------------------- *
 * 15. Reduced motion #
 * -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .js-commerce-reveal .commerce-reveal,
  .commerce-public-bundle-card,
  .landing-actions-two .landing-cta:first-child,
  .scientific-support-ticket-card {
    transition: none;
    transform: none;
  }

  .js-commerce-reveal .commerce-reveal:not(.is-revealed) {
    opacity: 1;
    transform: none;
  }
}

/* ============================= End of commerce_experience_revision.css ============================= */