/* ==========================================================================
   Member Results Grid & Section Layout
   ========================================================================== */
.mResult-grid-section {
  background-color: var(--ez-dark2);
  padding: 80px 0 120px 0;
  position: relative;
}

/* Card Main Container styling */
.mResult-card {
  background-color: #11141d;
  max-width: 400px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: border-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

/* Hover Accent Frame Rule matching UI cards */
.mResult-card:hover {
  border-color: var(--ez-golden-mid);
  box-shadow: 0 3px 40px rgba(201, 147, 10, 0.15);
}

/* Image framing setup */
.mResult-card__img-holder {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  background-color: var(--ez-dark);
}

.mResult-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 1s var(--ease);
}

.mResult-card:hover .mResult-card__img {
  transform: scale(1.04);
}

.mResult-card__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--ez-mid), var(--ez-dark));
}

/* Card Body padding blocks */
.mResult-card__body {
  padding: 16px;
  display: flex;
  background-color: var(--ez-mid);
  flex-direction: column;
  gap: 16px;
}

/* --- Dynamic Header Rules (> 4 Badges Stacked Layout Modification) --- */
.mResult-card__header--stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.mResult-card__title {
  font-family: "Inter", sans-serif;
  font-size: var(--ez-fs-h6);
  font-weight: 600;
  color: var(--ez-white);
  line-height: 1.3;
  letter-spacing: 0;
}

.mResult-card__badges {
  gap: 8px;
}

/* Micro Badge styling */
.mResult-badge {
  display: inline-flex;
  align-items: center;
}

/* ── Pill Tags Design Layout ── */
.mResult-tag {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  text-transform: lowercase;
  padding: 6px 12px;
  border-radius: 50px;
  letter-spacing: 0;
  display: inline-block;
  background-image: linear-gradient(90deg, #C9930A, #F5D870, #E6C153);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  border: 1px solid var(--ez-golden-border);
}

/* Special accent for the trailing category button */
.mResult-tag--more {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  text-transform: lowercase;
  padding: 6px 12px;
  border-radius: 50px;
  letter-spacing: 0;
  background: var(--ez-golden);
  color: var(--ez-dark);
  border: 1px solid var(--ez-golden-border);
}

/* ── Metric Performance Rows ── */
.mResult-card__metrics {
  display: flex;
  gap: 12px;
  flex-direction: column;
  margin-bottom: 16px;
}

.mResult-metric-item {
  width: 100%;
}

.mResult-metric-label {
  font-size: var(--ez-fs-sm);
  line-height: 20px;
  color: var(--ez-white);
  display: inline-flex;
  align-items: center;
}

.mResult-metric-label i {
  color: var(--ez-muted2);
  font-size: 14px;
}

.mResult-metric-value {
  font-family: 'Inter', sans-serif;
  font-size: var(--ez-fs-sm);
  font-weight: 600;
  color: var(--ez-white);
}

/* ── Primary Card Action Button ── */
.mResult-card__btn {
  font-family: "Poppins", sans-serif;
  font-size: var(--ez-fs-sm);
  font-weight: 600;
  color: var(--ez-muted);
  text-decoration: none;
  padding: 12px 24px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  background-color: transparent;
  transition: all 0.3s var(--ease-out);
}

.mResult-card:hover .mResult-card__btn {
  border-color: var(--ez-golden-mid);
  color: var(--ez-golden-mid);
  background-color: rgba(230, 193, 83, 0.03);
}

.mResult-card__btn:hover {
  background-color: var(--ez-golden) !important;
  color: var(--ez-dark) !important;
  border-color: transparent !important;
  box-shadow: 0 4px 15px rgba(201, 147, 10, 0.25);
}


/* ==========================================================================
   Popup Structural Overlay Rules with Backdrop Blur
   ========================================================================== */
/*
.mResult-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  background-color: rgba(7, 9, 13, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}

.mResult-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.mResult-popup {
  position: relative;
  width: 100%;
  max-width: 920px;
  background-color: #0b0d13;
  background-image: url('https://ezwaypromotions.com/wp-content/uploads/2026/06/Frame-2147223858.png');
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card), 0 0 60px rgba(201, 147, 10, 0.08);
  overflow: hidden;
  transform: scale(0.94);
  transition: transform 0.4s var(--ease-bounce);
}

.mResult-overlay.is-visible .mResult-popup {
  transform: scale(1);
}

.mResult-popup__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  background: #ffffff;
  border: none;
  border-radius: 8px;
  color: #11141d;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.mResult-popup__close:hover {
  transform: scale(1.08);
  background-color: var(--ez-golden-mid);
}

.mResult-popup__container {
  display: flex;
  flex-direction: row;
  min-height: 480px;
}

.mResult-popup__content {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 2;
}

.mResult-popup__name {
  font-family: "Poppins", sans-serif;
  font-size: var(--ez-fs-h5);
  font-weight: 800;
  color: var(--ez-white);
  margin: 0 0 8px 0;
  letter-spacing: -0.02em;
}

.mResult-popup__tables-grid {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.mResult-panel-block {
  flex: 1;
  background: rgba(17, 20, 29, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.mResult-panel-header {
  background: var(--ez-golden);
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--ez-dark);
  text-align: center;
  padding: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mResult-panel-list {
  padding: 12px 16px;
  max-height: 330px;
  overflow-y: auto;
}

.mResult-pop-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.mResult-pop-row:last-child {
  border-bottom: none;
}

.mResult-pop-row__label {
  font-size: 12px;
  color: var(--ez-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.mResult-pop-row__label i {
  color: var(--ez-muted2);
  font-size: 12px;
}

.mResult-pop-row__value {
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--ez-golden-text);
}

.mResult-popup__action-row {
  margin-top: auto;
}

.ez-btn.ez-btn--gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 28px;
  background: var(--ez-golden);
  color: var(--ez-dark);
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-weight: 700;
  border-radius: 12px;
  text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.ez-btn.ez-btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 216, 112, 0.3);
  color: var(--ez-dark);
}

.mResult-popup__media {
  width: 38%;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(to top, #0b0d13 15%, transparent 100%);
}

.mResult-popup__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 1;
  mask-image: linear-gradient(to left, rgba(0, 0, 0, 1) 85%, rgba(0, 0, 0, 0) 100%);
  -webkit-mask-image: linear-gradient(to left, rgba(0, 0, 0, 1) 85%, rgba(0, 0, 0, 0) 100%);
} */

/* ==========================================================================
   Responsive Adaptations 
   ========================================================================== */
@media (max-width: 991px) {
  .mResult-popup {
    max-width: 680px;
  }

  .mResult-popup__media {
    display: none !important;
  }

  .mResult-popup__content {
    flex: 0 0 100%;
    width: 100%;
  }
}

@media (max-width: 767px) {
  .mResult-popup {
    transform: scale(1) !important;
    max-height: 90vh;
    overflow-y: auto;
  }

  .mResult-popup__container {
    flex-direction: column;
  }

  .mResult-popup__content {
    padding: 24px;
  }

  .mResult-popup__tables-grid {
    flex-direction: column;
    gap: 15px;
  }
}


/* ==========================================================================
   MEMBER SINGLE RESULTS LAYOUT — MATCHING ARCHIVE PAGE_2.JPG
   ========================================================================== */
.hero_parent {
  min-height: 500px;
}

.mResult-detail-hero {
  background: #0a0a0c;
  position: relative;
  padding: 90px 0;
  color: #fff;
  overflow: hidden;
}

.hero_left_col {
  max-width: 628px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mResult-detail-title {
  font-size: var(--ez-fs-h5);
  font-weight: 700;
  line-height: 44px;
  color: var(--ez-white);
  margin-right: 4px;
}

.mResult-detail-badge-img {
  width: 60px;
  height: 90px;
  object-fit: contain;
}

.hero-excerpt-text {
  font-size: 16px;
  line-height: 24px;
  color: var(--ez-white);
}

.hero-profile-action-btn {
  text-decoration: none;
  display: inline-block;
  padding: 12px 30px;
}

.mResult-detail-hero__img {
  max-width: 500px;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  position: absolute;
  top: 30px;
  right: 0%;
}

.placeholder-hero-box {
  width: 300px;
  height: 380px;
  border-radius: 8px;
}

/* Structural Body Layout Blocks */
.mResult-detail-content-sec {
  padding: 80px 0;
  background-color: #ffffff;
  color: #1a1a1a;
}

/* .mResult-detail-heading {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #0e0f11;
} */

.mResult-detail-p {
  color: var(--ez-mid2);
  line-height: 1.7;
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.custom-sec-divider {
  margin-top: 3rem;
  margin-bottom: 3rem;
  border-top: 1px solid #e2e5ec;
  opacity: 1;
}

/* Metric Analytics Table Grid Styles */
.mResult-detail-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #e2e5ec;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 40px;
}

.mResult-detail-table th {
  background-color: #f1f3f7;
  color: #0e0f11;
  font-weight: 700;
  padding: 16px 24px;
  font-size: 1rem;
}

.mResult-detail-table td {
  padding: 16px 24px;
  border-bottom: 1px solid #e2e5ec;
  color: #1a1a1a;
  font-size: 1.05rem;
  vertical-align: middle;
}

.mResult-detail-table tr:last-child td {
  border-bottom: none;
}

.mResult-table-metric-label {
  font-weight: 600;
  color: #333946;
}

.metric-table-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}


.fallback-table-icon {
  font-size: 16px;
}

.mResult-table-val {
  font-weight: 700;
  color: #0e0f11;
}

/* Native Vector Chart Component Wrapper */
.mResult-chart-card {
  border: 1px solid #e2e5ec;
  border-radius: 12px;
  padding: 30px;
  background: #ffffff;
  box-shadow: 0 4px 20px -2px rgba(14, 15, 17, 0.05);
}

.chart-title-text {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0e0f11;
}

.legend-label-text {
  color: #71717a;
}

.mResult-chart-legend span {
  font-size: 0.9rem;
  font-weight: 600;
}

.mResult-chart-legend__dot {
  display: inline-block;
  width: 16px;
  height: 10px;
  border-radius: 2px;
  margin-right: 6px;
}

.legend-dot--before {
  background: linear-gradient(180deg, #fbbf24 0%, #d97706 100%);
}

.legend-dot--after {
  background: linear-gradient(180deg, #34d399 0%, #059669 100%);
}

/* Vector Layout Container Scroll System */
.svg-container {
  position: relative;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.svg-container::-webkit-scrollbar {
  height: 5px;
}

.svg-container::-webkit-scrollbar-track {
  background: #f1f3f7;
}

.svg-container::-webkit-scrollbar-thumb {
  background: #e2e5ec;
  border-radius: 10px;
}

.native-analytics-svg {
  min-width: 750px;
  overflow: visible;
}

.native-analytics-svg text {
  user-select: none;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Interactive Column Hover Effects */
.chart-group-track {
  transition: fill 0.25s ease-in-out;
  cursor: pointer;
}

.chart-group-track:hover {
  fill: rgba(241, 243, 247, 0.4);
}

/* Responsive Adaptive Flex Alignments */
@media (max-width: 767px) {
  .mResult-chart-card {
    padding: 20px;
  }
}

/* ==========================================================================
   NEW RESPONSIVE OVERRIDES (ADDED SAFELY TO PRESERVE ALL ORIGINAL RULES)
   ========================================================================== */
@media (max-width: 1199px) {
  .mResult-detail-hero__img {
    max-width: 420px;
  }

  .hero_parent {
    min-height: 400px;
  }
}

@media (max-width: 991px) {
  .hero_parent {
    min-height: auto;
  }

  .mResult-detail-hero {
    padding: 60px 0;
  }

  .hero_left_col {
    max-width: 100%;
    margin-top: 2rem !important;
  }

  .mResult-detail-hero__img {
    position: relative;
    top: 0;
    right: 0;
    max-width: 380px;
    margin: 0 auto;
  }

  .placeholder-hero-box {
    margin: 0 auto;
  }

  .mResult-detail-content-sec {
    padding: 50px 0;
  }
}

@media (max-width: 767px) {
  .mResult-detail-title {
    font-size: calc(var(--ez-fs-h5) * 0.85);
    line-height: 1.2;
  }

  .table-responsive-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .mResult-detail-table {
    min-width: 550px;
  }

  .mResult-chart-card {
    padding: 20px;
  }
}