/* ==========================================================================
   MEGAEDU - GÓI THÀNH VIÊN (MEMBER PACKAGES) REDESIGN
   ========================================================================== */

:root {
  --mp-primary: #4361ee;
  --mp-primary-rgb: 67, 97, 238;
  --mp-accent: #7209b7;
  --mp-success: #10b981;
  --mp-danger: #ef4444;
  --mp-text-dark: #1e293b;
  --mp-text-muted: #64748b;
  --mp-border-color: #e2e8f0;
  --mp-card-bg: #ffffff;
  --mp-card-hover-bg: #f8fafc;
  --mp-glow-shadow: 0 10px 25px -5px rgba(67, 97, 238, 0.15), 0 8px 10px -6px rgba(67, 97, 238, 0.1);
}

/* Base Container */
.mp-section {
  padding-top: 1rem;
  padding-bottom: 3rem;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  min-height: calc(100vh - 120px);
}

/* Page Header */
.mp-header-wrapper {
  margin-bottom: 1.5rem;
}

.mp-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
  background: rgba(67, 97, 238, 0.08);
  color: #3b82f6;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.mp-page-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #0f172a;
  margin-top: 0.35rem;
  margin-bottom: 0.25rem;
  line-height: 1.25;
}

.mp-page-title .text-gradient {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.mp-page-desc {
  font-size: 0.95rem;
  color: var(--mp-text-muted);
  margin-bottom: 0;
}

/* Left Column: Package List */
.mp-list-card {
  background: #ffffff;
  border: 1px solid var(--mp-border-color);
  border-radius: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mp-package-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.95rem;
  border-radius: 0.75rem;
  border: 1.5px solid transparent;
  background-color: #f8fafc;
  color: var(--mp-text-dark);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  user-select: none;
}

.mp-package-row:hover {
  background-color: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.mp-package-row.is-active {
  background: #ffffff;
  border-color: #3b82f6;
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.15);
}

.mp-package-row.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15%;
  bottom: 15%;
  width: 4px;
  background: linear-gradient(180deg, #3b82f6 0%, #8b5cf6 100%);
  border-radius: 0 4px 4px 0;
}

.mp-pkg-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex: 1;
}

.mp-pkg-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #e2e8f0;
  color: #475569;
  transition: all 0.2s ease;
}

.mp-package-row.is-active .mp-pkg-icon-box,
.mp-package-row:hover .mp-pkg-icon-box {
  background: linear-gradient(135deg, #3b82f6 0%, #7c3aed 100%);
  color: #ffffff;
}

.mp-pkg-icon-box svg {
  width: 20px;
  height: 20px;
}

.mp-pkg-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mp-pkg-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.15rem;
}

.mp-pkg-subtitle {
  font-size: 0.75rem;
  color: var(--mp-text-muted);
}

.mp-tag-recommend {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.45rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  margin-left: 0.4rem;
  vertical-align: middle;
}

.mp-pkg-price-col {
  text-align: right;
  flex-shrink: 0;
  margin-left: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.mp-pkg-price-text {
  font-size: 0.95rem;
  font-weight: 800;
  color: #1e293b;
  white-space: nowrap;
}

.mp-package-row.is-active .mp-pkg-price-text {
  color: #2563eb;
}

.mp-pkg-price-sub {
  font-size: 0.72rem;
  color: var(--mp-text-muted);
}

.mp-pkg-arrow {
  margin-left: 0.5rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  transition: transform 0.2s ease, color 0.2s ease;
}

.mp-package-row.is-active .mp-pkg-arrow {
  color: #3b82f6;
  transform: translateX(3px);
}

/* Right Column: Showcase Card */
.mp-showcase-container {
  position: sticky;
  top: 90px;
}

.mp-showcase-card {
  background: #ffffff;
  border: 1px solid var(--mp-border-color);
  border-radius: 1.25rem;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  overflow: visible;
  height: auto;
}

/* Detail Panels */
.mp-detail-panel {
  display: none;
  flex-direction: column;
  height: auto;
  animation: mpFadeSlide 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.mp-detail-panel.is-active {
  display: flex;
}

@keyframes mpFadeSlide {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Showcase Header */
.mp-showcase-header {
  padding: 1.5rem 1.75rem 1.25rem;
  border-bottom: 1px solid #f1f5f9;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 1.25rem 1.25rem 0 0;
}

.mp-showcase-header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.mp-detail-title-group {
  display: flex;
  flex-direction: column;
}

.mp-detail-tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #3b82f6;
  margin-bottom: 0.25rem;
}

.mp-detail-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0;
  line-height: 1.3;
}

.mp-showcase-price-box {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-bottom: 1.15rem;
}

.mp-detail-price {
  font-size: 2rem;
  font-weight: 800;
  color: #1e293b;
  line-height: 1;
}

.mp-detail-unit {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--mp-text-muted);
}

.mp-detail-sale-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #ef4444;
  background: #fee2e2;
  padding: 0.15rem 0.5rem;
  border-radius: 0.375rem;
  margin-left: 0.5rem;
}

.mp-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.85rem 1.25rem;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  border: none;
  border-radius: 0.75rem;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.mp-cta-btn:hover {
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

.mp-cta-btn svg {
  transition: transform 0.2s ease;
}

.mp-cta-btn:hover svg {
  transform: translateX(4px);
}

/* Showcase Body: Full natural height, no scrollbar, no overflow */
.mp-showcase-body {
  padding: 1.5rem 1.75rem 1.75rem;
  height: auto;
  overflow: visible;
}

.mp-feature-section-title {
  font-size: 0.825rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #475569;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.mp-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mp-features-list:last-child {
  margin-bottom: 0;
}

.mp-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: #334155;
  line-height: 1.5;
}

.mp-icon-pro {
  color: #10b981;
  flex-shrink: 0;
  margin-top: 2px;
}

.mp-icon-con {
  color: #ef4444;
  flex-shrink: 0;
  margin-top: 2px;
}

.mp-feature-con-item {
  color: #64748b;
  text-decoration: none;
}

/* Mobile & Tablet Styles */
.mp-mobile-nav-scroll {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.mp-mobile-nav-scroll::-webkit-scrollbar {
  display: none;
}

.mp-mobile-pill {
  flex-shrink: 0;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  font-size: 0.825rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.mp-mobile-pill.is-active {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

@media (max-width: 991.98px) {
  .mp-showcase-container {
    position: static;
  }
}
