/* Membership pages — ported from the client's redesign (September 2026).
   Loaded only by the membership section views, through @push('styles'). */

/* ==========================================================================
   IBACTP MEMBERSHIP ECOSYSTEM ULTRA-MODERN STYLING
   ========================================================================== */

/* Layout Foundation */
#main .container, .ms-links-strip .container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

/* Luxury Dark Tech Hero */
.ms-hero {
  background: radial-gradient(circle at 82% 18%, rgba(0, 195, 255, 0.16) 0%, transparent 45%),
              radial-gradient(circle at 18% 85%, rgba(37, 99, 235, 0.22) 0%, transparent 50%),
              radial-gradient(circle at 50% 50%, rgba(229, 169, 34, 0.06) 0%, transparent 60%),
              linear-gradient(140deg, #020617 0%, #07122a 45%, #0b224d 100%);
  color: #ffffff;
  padding: 68px 0 84px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.ms-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  opacity: 0.75;
}
.ms-hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 52px;
  align-items: center;
  position: relative;
  z-index: 2;
}
@media (max-width: 991px) {
  .ms-hero__grid { grid-template-columns: 1fr; gap: 36px; }
}

/* Breadcrumb & Badges */
.ms-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.ms-breadcrumb a { color: #94a3b8; text-decoration: none; transition: color 0.2s; }
.ms-breadcrumb a:hover { color: #38bdf8; }
.ms-breadcrumb span.sep { color: #475569; }
.ms-breadcrumb span.current { color: #e2e8f0; font-weight: 500; }

.ms-part-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(2, 132, 199, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: 9999px;
  margin-bottom: 20px;
}

.ms-hero__title {
  font-size: clamp(32px, 3.8vw, 48px);
  line-height: 1.15;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 18px;
  letter-spacing: -0.03em;
}
.ms-hero__title span.highlight {
  background: linear-gradient(135deg, #38bdf8 0%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.ms-hero__tag {
  font-size: 17px;
  line-height: 1.6;
  color: #cbd5e1;
  margin-bottom: 28px;
  max-width: 600px;
}

.ms-hero__ctas {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.ms-btn-primary {
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 14.5px;
  padding: 13px 26px;
  border-radius: 10px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 24px -4px rgba(37, 99, 235, 0.45);
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
}
.ms-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -4px rgba(37, 99, 235, 0.6);
  color: #ffffff !important;
}
.ms-btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 600;
  font-size: 14.5px;
  padding: 13px 22px;
  border-radius: 10px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}
.ms-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.4);
}

.ms-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
@media (max-width: 640px) {
  .ms-hero-stats { grid-template-columns: repeat(2, 1fr); }
}
.ms-hero-stat-item .val {
  font-size: 22px;
  font-weight: 800;
  color: #38bdf8;
  display: block;
  line-height: 1.2;
}
.ms-hero-stat-item .lbl {
  font-size: 11.5px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Hero Media Visual Showcase Card */
.ms-hero-card {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7);
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.ms-hero-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.5);
}
.ms-hero-card__img {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.ms-hero-card__meta {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(8, 16, 40, 0.85);
}
.ms-hero-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: #10b981;
  background: rgba(16, 185, 129, 0.15);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.ms-hero-card__sub {
  font-size: 12px;
  color: #94a3b8;
}

/* Global Sections */
.ms-section {
  padding: 76px 0;
  background: #ffffff;
  position: relative;
}
.ms-section--subtle {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}
.ms-section--dark {
  background: #030712;
  color: #ffffff;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.ms-sec-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 52px;
}
.ms-sec-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #0284c7;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: #e0f2fe;
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 12px;
}
.ms-sec-title {
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
}
.ms-sec-subtitle {
  font-size: 16px;
  color: #64748b;
  line-height: 1.6;
}

/* Bento Cards System */
.ms-bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 991px) {
  .ms-bento-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .ms-bento-grid { grid-template-columns: 1fr; }
}
.ms-bento-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}
.ms-bento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -6px rgba(15, 23, 42, 0.09);
  border-color: #cbd5e1;
}
.ms-bento-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  flex-shrink: 0;
}
.ms-bento-card__icon svg {
  width: 24px;
  height: 24px;
}
.ms-bento-card__title {
  font-size: 19px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 10px;
}
.ms-bento-card__desc {
  font-size: 14.5px;
  color: #475569;
  line-height: 1.55;
  margin-bottom: 16px;
  flex-grow: 1;
}
.ms-bento-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid #f1f5f9;
  padding-top: 14px;
}
.ms-bento-card__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: #334155;
  margin-bottom: 8px;
}
.ms-bento-card__list li svg {
  width: 16px;
  height: 16px;
  color: #10b981;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Bottom Cross-Linking Strip */
.ms-links-strip {
  background: #030712;
  padding: 48px 0;
  color: #ffffff;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.ms-links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 991px) {
  .ms-links-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .ms-links-grid { grid-template-columns: 1fr; }
}
.ms-link-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 14px 18px;
  color: #cbd5e1;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  font-weight: 600;
  transition: all 0.2s ease;
}
.ms-link-pill:hover {
  background: rgba(2, 132, 199, 0.2);
  border-color: #38bdf8;
  color: #ffffff;
  transform: translateX(4px);
}
.ms-link-pill.is-active {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.3) 0%, rgba(37, 99, 235, 0.3) 100%);
  border-color: #38bdf8;
  color: #38bdf8;
}

/* The comparison matrix, the journey stepper and the FAQ accordion: the
   redesign used these class names but never shipped rules for them. */
.ms-matrix-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}
.ms-matrix-header,
.ms-matrix-row {
  display: grid;
  grid-template-columns: 0.8fr 1.1fr 1.1fr;
  gap: 20px;
  padding: 18px 24px;
  align-items: start;
}
.ms-matrix-header {
  background: #0b152d;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.ms-matrix-row {
  border-top: 1px solid #e2e8f0;
  font-size: 14.5px;
  color: #475569;
  line-height: 1.55;
}
.ms-matrix-row:nth-child(even) { background: #f8fafc; }
.ms-matrix-row strong { color: #0f172a; }
@media (max-width: 860px) {
  .ms-matrix-header { display: none; }
  .ms-matrix-row { grid-template-columns: 1fr; gap: 8px; padding: 18px; }
  .ms-matrix-row > div + div { padding-left: 14px; border-left: 3px solid #e0f2fe; }
}

.ms-stepper {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
@media (max-width: 991px) { .ms-stepper { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .ms-stepper { grid-template-columns: 1fr; } }
.ms-step-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 26px 20px 22px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.ms-step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -6px rgba(15, 23, 42, 0.09);
  border-color: #cbd5e1;
}
.ms-step-card.active { border-color: #38bdf8; box-shadow: 0 12px 28px -8px rgba(2, 132, 199, 0.35); }
.ms-step-card .num {
  position: absolute;
  top: -14px;
  left: 20px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px -4px rgba(37, 99, 235, 0.5);
}
.tier-name { font-size: 16px; font-weight: 800; color: #0f172a; margin-bottom: 4px; }
.tier-price { font-size: 13px; font-weight: 700; color: #0284c7; margin-bottom: 10px; }
.tier-desc { font-size: 13.5px; color: #475569; line-height: 1.55; margin: 0; }

.ms-faq-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.ms-faq-item.is-open { border-color: #bae6fd; box-shadow: 0 10px 24px -12px rgba(2, 132, 199, 0.45); }
.ms-faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  text-align: left;
  background: none;
  border: 0;
  padding: 18px 22px;
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
}
.ms-faq-trigger:hover { color: #0284c7; }
.ms-faq-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #0284c7;
  transition: transform 0.2s ease;
}
.ms-faq-item.is-open .ms-faq-icon { transform: rotate(180deg); }
.ms-faq-content { display: none; padding: 0 22px 20px; }
.ms-faq-item.is-open .ms-faq-content { display: block; }
.ms-faq-content p {
  font-size: 14.5px;
  line-height: 1.65;
  color: #475569;
  margin: 0 0 10px;
}
.ms-faq-content p:last-child { margin-bottom: 0; }
.ms-faq-content ul { margin: 0; padding-left: 20px; color: #475569; font-size: 14.5px; line-height: 1.65; }

/* The redesign set its column counts inline, which beats a media query, so the
   wide grids kept four columns on a phone. These bring them back in. */
@media (max-width: 991px) {
  #main [style*="repeat(4,"],
  #main [style*="repeat(3,"],
  #main [style*="repeat(4, "],
  #main [style*="repeat(3, "] { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 860px) {
  #main [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  #main [style*="240px 1fr"] { justify-items: center; }
}

/* ------------------------------------------------------------------ *
 * The membership tier pages use a second set of component names for
 * the same design language, and shipped without rules for them.
 * ------------------------------------------------------------------ */
.ms-hero__text { position: relative; z-index: 2; }
.ms-hero__media { position: relative; z-index: 2; }
.ms-hero-card-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7);
  background: rgba(15, 23, 42, 0.7);
}
.ms-hero-img { display: block; width: 100%; height: auto; }
.ms-hero-badge-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.94) 0%, rgba(2, 6, 23, 0.72) 55%, transparent 100%);
}
.ms-hero-badge-overlay .tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #38bdf8;
  margin-bottom: 6px;
}
.ms-hero-badge-overlay .title { font-size: 16px; font-weight: 800; color: #ffffff; }
.ms-hero-badge-overlay .sub { font-size: 12px; color: #94a3b8; margin-top: 2px; }

.ms-sec { padding: 76px 0; background: #ffffff; position: relative; }
.ms-sec--alt { background: #f8fafc; border-top: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0; }
.ms-h2 {
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
}
.ms-p { font-size: 16px; color: #64748b; line-height: 1.6; }
.ms-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #0284c7;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: #e0f2fe;
  border: 1px solid rgba(2, 132, 199, 0.18);
  padding: 5px 12px;
  border-radius: 9999px;
  margin-bottom: 12px;
}
.ms-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  padding: 9px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: #334155;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.ms-chip:hover { border-color: #38bdf8; transform: translateY(-2px); }
.ms-bento-card__badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.ms-bento-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #0284c7;
  background: #e0f2fe;
  padding: 4px 10px;
  border-radius: 6px;
}

/* The tier pages put their hero outside <main>, so the page measure and the
   mobile column collapse have to reach it as well. */
.ms-hero .container, .ms-sec .container { max-width: 1240px; }
@media (max-width: 991px) {
  .ms-hero [style*="repeat(4,"], .ms-sec [style*="repeat(4,"],
  .ms-hero [style*="repeat(3,"], .ms-sec [style*="repeat(3,"] { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 860px) {
  .ms-hero [style*="grid-template-columns"],
  .ms-sec [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
}

/* The client's six-category comparison table. */
.ms-compare-wrap { overflow-x: auto; border: 1px solid #e2e8f0; border-radius: 16px; background: #ffffff; }
.ms-compare { width: 100%; border-collapse: collapse; min-width: 900px; font-size: 13.5px; }
.ms-compare thead th {
  background: #0b152d;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: left;
  padding: 14px 16px;
  white-space: nowrap;
}
.ms-compare tbody th {
  text-align: left;
  font-weight: 700;
  color: #0f172a;
  padding: 13px 16px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  white-space: nowrap;
}
.ms-compare tbody td {
  padding: 13px 16px;
  color: #475569;
  border-top: 1px solid #e2e8f0;
  vertical-align: top;
}
.ms-compare tbody td.yes { color: #059669; font-weight: 800; }
.ms-compare tbody td.no { color: #94a3b8; }
.ms-compare tbody tr:hover td, .ms-compare tbody tr:hover th { background: #f1f5f9; }
