/* ==========================================================================
   MembersGrid Pro — Frontend UI v2
   ========================================================================== */

.mym-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border: 1px solid #e4e4e7;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  color: #09090b;
  background: #f4f4f5;
  line-height: 1.5;
}

.mym-badge-sm {
  font-size: 11px;
  padding: 2px 8px;
}

.mym-badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mympro-restricted {
  margin: 24px 0;
}

.mympro-restricted-card {
  text-align: center;
  background: #ffffff;
  border: 1px solid #e4e4e7;
  border-radius: 14px;
  padding: 36px 28px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 12px 24px -6px rgba(15, 23, 42, 0.06);
}

.mympro-restricted-card .mym-locker-badge-icon {
  margin: 0 auto 12px;
}

.mym-restricted-title {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 8px 0;
}

.mym-restricted-message {
  color: #64748b;
  font-size: 14.5px;
  line-height: 1.6;
  max-width: 480px;
  margin: 0 auto 20px;
}

.mympro-restricted-card .mym-restricted-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.mym-restricted-btn-login {
  padding: 10px 22px;
  font-size: 14.5px;
  font-weight: 600;
  border-radius: 8px;
}

.mym-restricted-btn-register {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  background: #ffffff;
  color: #475569;
  border: 1.5px solid #cbd5e1;
}

.mym-restricted-btn-register:hover {
  background: #f8fafc;
  color: #0f172a;
}

/* --------------------------------------------------------------------------
   Member Directory
   -------------------------------------------------------------------------- */

.mympro-directory {
  margin: 28px 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #0f172a;
}

.mympro-directory-search {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.mympro-directory-search .mym-input {
  flex: 1;
  min-width: 200px;
  max-width: 340px;
  border-radius: 8px;
  border: 1.5px solid #cbd5e1;
  padding: 9px 14px;
  font-size: 14px;
}

.mympro-directory-search .mympro-directory-plan {
  padding: 9px 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  min-width: 160px;
  cursor: pointer;
  color: #1e293b;
}

.mympro-directory-list {
  display: grid;
  gap: 18px;
}

.mympro-directory-grid .mympro-directory-list {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.mympro-member-card {
  background: #ffffff;
  border: 1px solid #e4e4e7;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  box-shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.04), 0 1px 2px 0 rgba(15, 23, 42, 0.02);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.mympro-member-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px -4px rgba(15, 23, 42, 0.09);
  border-color: #d4d4d8;
}

.mympro-directory-list .mympro-member-avatar {
  flex-shrink: 0;
}

.mympro-directory-list .mympro-member-avatar img {
  border-radius: 50%;
  display: block;
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px rgba(0, 0, 0, 0.12);
}

.mympro-member-body {
  min-width: 0;
  flex: 1;
}

.mympro-member-name {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.mympro-member-name a {
  color: #0f172a;
  text-decoration: none;
  transition: color 0.15s ease;
}

.mympro-member-name a:hover {
  color: #000000;
}

.mympro-member-plans {
  margin-bottom: 8px;
}

.mympro-member-field {
  font-size: 13px;
  margin-top: 5px;
  color: #475569;
  word-wrap: break-word;
  line-height: 1.4;
}

.mympro-field-label {
  font-weight: 600;
  color: #64748b;
  margin-right: 4px;
}

.mympro-directory-empty {
  padding: 36px 24px;
  text-align: center;
  color: #64748b;
  background: #f8fafc;
  border: 1.5px dashed #cbd5e1;
  border-radius: 12px;
  font-size: 14px;
}

.mympro-directory-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
}

.mympro-pagination-info {
  font-size: 13.5px;
  color: #64748b;
  font-weight: 500;
}

.mympro-directory-denied {
  text-align: center;
}

/* --------------------------------------------------------------------------
   Member Profile Card
   -------------------------------------------------------------------------- */

.mympro-profile {
  margin: 28px 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #0f172a;
}

.mympro-profile-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.05);
}

.mympro-profile-head {
  display: flex;
  gap: 22px;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e2e8f0;
}

.mympro-profile-head img {
  border-radius: 50%;
  display: block;
  box-shadow: 0 0 0 3px #ffffff, 0 0 0 5px rgba(0, 0, 0, 0.15);
}

.mympro-profile-name {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.015em;
}

.mympro-profile-fields {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.mympro-profile-fields th,
.mympro-profile-fields td {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13.5px;
}

.mympro-profile-fields th {
  width: 30%;
  background: #f8fafc;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.03em;
  color: #64748b;
  border-radius: 6px 0 0 6px;
}

.mympro-profile-fields td {
  color: #0f172a;
}

.mympro-profile-fields tr:last-child th,
.mympro-profile-fields tr:last-child td {
  border-bottom: none;
}

@media (max-width: 600px) {
  .mympro-directory-grid .mympro-directory-list {
    grid-template-columns: 1fr;
  }
  .mympro-profile-head {
    flex-direction: column;
    text-align: center;
  }
}

/* --------------------------------------------------------------------------
   Password Toggle Button & Field Wrapper
   -------------------------------------------------------------------------- */

.mym-password-wrap {
  position: relative;
  display: block;
  width: 100%;
}

.mym-password-wrap .mym-input {
  padding-right: 42px !important;
}

.mym-password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  margin: 0;
  background: transparent;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  color: #64748b;
  transition: color 0.15s ease, background-color 0.15s ease;
  z-index: 2;
  outline: none;
  box-shadow: none !important;
  line-height: 1;
}

.mym-password-toggle:hover {
  color: #1e293b;
  background: rgba(0, 0, 0, 0.05);
}

.mym-password-toggle:focus-visible {
  outline: 2px solid #000;
  outline-offset: 1px;
}

.mym-password-toggle svg {
  width: 18px;
  height: 18px;
  pointer-events: none;
  stroke: currentColor;
}

.mym-password-toggle .mym-eye-off {
  display: none;
}

.mym-password-toggle.mym-showing .mym-eye-open {
  display: none;
}

.mym-password-toggle.mym-showing .mym-eye-off {
  display: block;
}

input::-ms-reveal,
input::-ms-clear {
  display: none !important;
}

/* --------------------------------------------------------------------------
   Team & Corporate Group Accounts
   -------------------------------------------------------------------------- */
.mym-group-account-panel {
  font-family: inherit;
}

.mym-team-dashboard-card,
.mym-team-member-card {
  box-shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.05);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.mym-team-dashboard-card:hover,
.mym-team-member-card:hover {
  box-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.08);
}

.mym-copy-invite-btn {
  transition: all 0.2s ease;
}

@media (max-width: 640px) {
  .mym-team-dashboard-card,
  .mym-team-member-card {
    padding: 16px !important;
  }
}

/* --------------------------------------------------------------------------
   Pay Per Post (Single Content Monetization)
   -------------------------------------------------------------------------- */
.mympro-ppp-wrapper {
  margin: 32px 0;
  font-family: inherit;
}

.mympro-ppp-teaser-wrap {
  position: relative;
  margin-bottom: 24px;
}

.mympro-ppp-teaser-text {
  font-size: 16px;
  line-height: 1.7;
  color: #334155;
  filter: blur(0.5px);
}

.mympro-ppp-teaser-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 90px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.95) 85%, #ffffff 100%);
  pointer-events: none;
}

.mympro-ppp-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #e4e4e7;
  border-radius: 14px;
  padding: 32px 28px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 14px 28px -6px rgba(15, 23, 42, 0.07);
  max-width: 580px;
  margin: 0 auto;
}

.mympro-ppp-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}

.mympro-ppp-badge svg {
  color: #4f46e5;
}

.mympro-ppp-title {
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 6px 0;
  line-height: 1.3;
}

.mympro-ppp-subtitle {
  font-size: 14px;
  color: #64748b;
  margin: 0 0 20px 0;
  line-height: 1.5;
}

.mympro-ppp-pricing-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
}

.mympro-ppp-price-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.mympro-ppp-price-free {
  font-size: 26px;
  font-weight: 800;
  color: #059669;
}

.mympro-ppp-price-original {
  font-size: 16px;
  color: #94a3b8;
  text-decoration: line-through;
  font-weight: 500;
}

.mympro-ppp-price-final {
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
}

.mympro-ppp-price-duration {
  font-size: 14px;
  color: #64748b;
  font-weight: 500;
}

.mympro-ppp-discount-pill {
  display: inline-block;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 11.5px;
  font-weight: 600;
  margin-left: 6px;
}

.mympro-ppp-actions {
  margin-bottom: 14px;
}

.mympro-ppp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease-in-out;
  border: none;
  box-sizing: border-box;
}

.mympro-ppp-btn-primary {
  background: #0f172a;
  color: #ffffff !important;
}

.mympro-ppp-btn-primary:hover {
  background: #1e293b;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.mympro-ppp-footer-note {
  font-size: 13px;
  color: #64748b;
}

.mympro-ppp-footer-note a {
  color: #0f172a;
  font-weight: 600;
  text-decoration: underline;
}

.mympro-ppp-already-owned {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  color: #065f46;
  margin: 18px 0;
}

.mympro-ppp-already-owned a {
  color: #047857;
  font-weight: 600;
  margin-left: auto;
  text-decoration: none;
}

.mympro-ppp-already-owned a:hover {
  text-decoration: underline;
}

.mympro-ppp-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 24px;
  font-size: 14.5px;
  font-weight: 500;
}

.mympro-ppp-alert-success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.mympro-ppp-alert-icon svg {
  display: block;
}

/* Pay Per Post Modal */
.mympro-ppp-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.mympro-ppp-modal.mym-active {
  display: flex;
}

.mympro-ppp-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
}

.mympro-ppp-modal-dialog {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  max-width: 480px;
  width: 100%;
  padding: 28px 24px;
  z-index: 2;
  box-sizing: border-box;
  animation: mymproModalFade 0.2s ease-out;
}

@keyframes mymproModalFade {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.mympro-ppp-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px 8px;
}

.mympro-ppp-modal-close:hover {
  color: #0f172a;
}

.mympro-ppp-modal-header {
  margin-bottom: 20px;
}

.mympro-ppp-modal-header h3 {
  font-size: 19px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Retention Modal & Smart Dunning UI
   -------------------------------------------------------------------------- */
body.mym-modal-open {
  overflow: hidden;
}

.mym-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.mym-modal-overlay.mym-active {
  display: flex;
}

.mym-modal-dialog {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-width: 520px;
  width: 100%;
  padding: 32px 28px;
  box-sizing: border-box;
  animation: mymModalFade 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 90vh;
  overflow-y: auto;
}

@keyframes mymModalFade {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.mym-modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.15s ease;
}

.mym-modal-close:hover {
  color: #0f172a;
}

.mym-retention-card {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.mym-retention-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.mym-dunning-alert {
  animation: mymFadeIn 0.3s ease;
}

@keyframes mymFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Content Locker, Teaser Previews & Paywalls [PRO Feature 3]
   ========================================================================== */

.mym-locker-container {
  margin: 32px 0;
  position: relative;
  clear: both;
}

/* Teaser Preview & Fade-out Mask */
.mym-teaser-wrap {
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
}

.mym-teaser-content {
  line-height: 1.7;
  color: inherit;
}

.mym-teaser-fade-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.85) 60%, #ffffff 100%);
  pointer-events: none;
}

/* Base Locker Card */
.mym-locker-card {
  box-sizing: border-box;
  text-align: center;
  position: relative;
  z-index: 2;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mym-locker-badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #475569;
  margin-bottom: 12px;
}

.mym-locker-title {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 10px 0;
}

.mym-locker-desc {
  font-size: 14.5px;
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto 20px;
}

.mym-locker-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.mym-locker-login-text {
  font-size: 13.5px;
  color: #64748b;
}

.mym-locker-link {
  color: #6366f1;
  text-decoration: underline;
  font-weight: 600;
}

/* Template 1: Minimalist Card */
.mym-locker-minimalist {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 36px 28px;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
}

.mym-locker-minimalist .mym-locker-title {
  color: #0f172a;
}

.mym-locker-minimalist .mym-locker-desc {
  color: #64748b;
}

.mym-locker-minimalist .mym-locker-btn-main {
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
}

/* Template 2: Gradient Glow (Modern Dark SaaS) */
.mym-locker-glow-outer {
  position: relative;
  padding: 2px;
  border-radius: 18px;
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.35);
  animation: mymGlowPulse 4s ease-in-out infinite alternate;
}

@keyframes mymGlowPulse {
  0% { box-shadow: 0 0 25px rgba(99, 102, 241, 0.25); }
  100% { box-shadow: 0 0 40px rgba(168, 85, 247, 0.45); }
}

.mym-locker-gradient-glow {
  background: #0b0f19;
  color: #f8fafc;
  border-radius: 16px;
  padding: 40px 30px;
}

.mym-locker-gradient-glow .mym-locker-glow-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.18);
  color: #a5b4fc;
  margin-bottom: 14px;
}

.mym-locker-gradient-glow .mym-locker-title {
  color: #ffffff;
  font-size: 23px;
}

.mym-locker-gradient-glow .mym-locker-desc {
  color: #94a3b8;
}

.mym-locker-btn-glow {
  background: linear-gradient(135deg, #6366f1 0%, #d946ef 100%);
  color: #ffffff !important;
  font-weight: 600;
  border: none;
  padding: 13px 32px;
  font-size: 15px;
  border-radius: 9px;
  box-shadow: 0 4px 18px rgba(217, 70, 239, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
}

.mym-locker-btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(217, 70, 239, 0.55);
}

.mym-locker-link-glow {
  color: #c084fc;
  text-decoration: underline;
  font-weight: 600;
}

/* Template 3: Glassmorphism Blur */
.mym-locker-glassmorphism {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.08);
  border-radius: 18px;
  padding: 38px 28px;
}

.mym-locker-glass-icon {
  background: rgba(99, 102, 241, 0.1);
  color: #4f46e5;
}

.mym-locker-btn-glass {
  border-radius: 999px;
  padding: 12px 30px;
  font-size: 15px;
  font-weight: 600;
}

/* Template 4: Compact Inline Banner */
.mym-locker-compact-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 22px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  text-align: left;
}

.mym-locker-compact-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
}

.mym-locker-compact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #e0e7ff;
  color: #4338ca;
  flex-shrink: 0;
}

.mym-locker-compact-info {
  display: flex;
  flex-direction: column;
}

.mym-locker-compact-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}

.mym-locker-compact-subtitle {
  font-size: 13px;
  color: #64748b;
  margin-top: 2px;
}

.mym-locker-compact-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.mym-locker-compact-btn {
  padding: 8px 18px;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 7px;
}

.mym-locker-compact-login {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: #475569;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  text-decoration: none;
}

.mym-locker-compact-login:hover {
  background: #f1f5f9;
  color: #0f172a;
}

@media (max-width: 680px) {
  .mym-locker-compact-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .mym-locker-compact-right {
    width: 100%;
    justify-content: flex-start;
  }
}

/* Template 5: Feature Matrix Locker */
.mym-locker-matrix {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 36px 30px;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
}

.mym-locker-matrix-top {
  margin-bottom: 12px;
}

.mym-locker-matrix-price {
  display: inline-block;
  margin-top: 8px;
  font-size: 24px;
  font-weight: 800;
  color: #4f46e5;
  background: #eef2ff;
  padding: 4px 14px;
  border-radius: 999px;
}

.mym-locker-matrix-period {
  font-size: 14px;
  font-weight: 500;
  color: #6366f1;
}

.mym-locker-matrix-list {
  list-style: none;
  margin: 22px auto;
  padding: 0;
  max-width: 480px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mym-locker-matrix-list li {
  font-size: 14px;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid #f1f5f9;
}

.mym-locker-matrix-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #22c55e;
  color: #ffffff;
  font-weight: bold;
  font-size: 12px;
  flex-shrink: 0;
}

/* Template 6: Custom HTML */
.mym-locker-custom {
  background: transparent;
  padding: 0;
}

/* ==========================================================================
   Drip / Scheduled Content Styles
   ========================================================================== */
.mympro-drip-countdown {
  margin: 16px auto 10px;
  display: inline-block;
  text-align: center;
}

.mympro-countdown-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.05);
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.mympro-cd-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 44px;
}

.mympro-cd-num {
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: #0f172a;
}

.mympro-cd-lbl {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
  margin-top: 4px;
  font-weight: 600;
}

.mympro-cd-sep {
  font-size: 20px;
  font-weight: 700;
  color: #94a3b8;
  margin-top: -10px;
}

.mympro-cd-unlocked {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #dcfce7;
  color: #166534;
  border-radius: 20px;
  font-weight: 600;
  font-size: 13px;
}

.mympro-drip-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #0284c7;
  background: #e0f2fe;
  padding: 2px 8px;
  border-radius: 12px;
  vertical-align: middle;
  margin-left: 6px;
}

.mympro-drip-badge .dashicons {
  font-size: 13px;
  width: 13px;
  height: 13px;
  line-height: 13px;
}

.mympro-drip-expired-box {
  background: #fef2f2;
  border: 1px solid #fee2e2;
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
  color: #991b1b;
  margin: 24px auto;
  max-width: 540px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.mympro-drip-expired-box p {
  color: #7f1d1d;
  font-size: 14.5px;
  margin: 8px 0 16px;
}

/* ==========================================================================
   MembersGrid Pro — Frontend Utilities
   Prefix: mym-
   ========================================================================== */

.mym-flex { display: flex; }
.mym-inline-flex { display: inline-flex; }
.mym-flex-col { flex-direction: column; }
.mym-flex-wrap { flex-wrap: wrap; }
.mym-items-center { align-items: center; }
.mym-items-start { align-items: flex-start; }
.mym-justify-between { justify-content: space-between; }
.mym-justify-center { justify-content: center; }

.mym-gap-1 { gap: 4px; }
.mym-gap-2 { gap: 8px; }
.mym-gap-3 { gap: 12px; }
.mym-gap-4 { gap: 16px; }

.mym-mt-1 { margin-top: 4px; }
.mym-mt-2 { margin-top: 8px; }
.mym-mt-3 { margin-top: 12px; }
.mym-mt-4 { margin-top: 16px; }
.mym-mt-6 { margin-top: 24px; }

.mym-mb-1 { margin-bottom: 4px; }
.mym-mb-2 { margin-bottom: 8px; }
.mym-mb-3 { margin-bottom: 12px; }
.mym-mb-4 { margin-bottom: 16px; }

.mym-w-full { width: 100%; }
.mym-text-xs { font-size: 11px; }
.mym-text-sm { font-size: 13px; }
.mym-text-base { font-size: 14px; }
.mym-text-muted { color: #64748b; }
.mym-text-center { text-align: center; }
.mym-text-right { text-align: right; }

/* Download Component */
.mym-download-unavailable {
  color: #ef4444;
  font-size: 13px;
  padding: 8px 12px;
  background: #fef2f2;
  border: 1px solid #fee2e2;
  border-radius: 6px;
}
.mym-download-card {
  border: 1px solid var(--mym-borderColor, #e2e8f0);
  border-radius: 12px;
  background: #ffffff;
  padding: 20px;
  max-width: 440px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  margin: 16px 0;
  font-family: inherit;
}
.mym-download-card-body {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.mym-download-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid #f1f5f9;
}
.mym-download-card-info {
  flex-grow: 1;
  min-width: 0;
}
.mym-download-card-title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.3;
}
.mym-download-card-desc {
  margin: 0 0 8px;
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.4;
}
.mym-download-meta {
  font-size: 11.5px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 10px;
}
.mym-download-card-footer {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mym-download-access-granted {
  font-size: 12px;
  color: #10b981;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.mym-downloads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin: 20px 0;
}
.mym-empty-downloads {
  padding: 24px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  text-align: center;
  color: #64748b;
  font-size: 14px;
}
.mym-download-restricted-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 10px;
}
.mym-download-restricted-msg {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #dc2626;
  font-weight: 500;
}
.mym-file-icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #f1f5f9;
  flex-shrink: 0;
}
.mym-empty-icon-lg {
  margin-bottom: 12px;
  opacity: 0.5;
}
.mym-scrollable-table-wrap {
  overflow-y: auto;
  max-height: 70vh;
}

/* ==========================================================================
   Member Account Portal — Plan Details & Upgrades Components
   ========================================================================== */

/* Payment History Table Wrap */
.mym-payments-table-wrap {
  overflow-y: auto;
  height: 100%;
  max-height: 70vh;
}

/* Invoice Download Button */
.mym-invoice-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  text-decoration: none;
  font-size: 12px;
  min-height: 28px;
  padding: 4px 10px;
}

/* Active Plan Details Card Component */
.mym-plan-details-card {
  margin-top: 24px;
  border: 1px solid var(--mym-border, #e4e4e7);
  border-radius: var(--mym-radius-sm, 8px);
  padding: 22px 24px;
  background: var(--mym-bg, #ffffff);
  box-shadow: var(--mym-shadow-sm, 0 1px 3px 0 rgba(15, 23, 42, 0.08));
}

.mym-plan-details-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.mym-plan-details-title-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.mym-plan-details-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--mym-text, #09090b);
  line-height: 1.3;
}

.mym-plan-recurring-tag {
  font-size: 11.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--mym-border, #e4e4e7);
  background: var(--mym-bg-soft, #fafafa);
  color: var(--mym-text-muted, #71717a);
}

.mym-plan-details-pricing {
  text-align: right;
}

.mym-plan-details-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--mym-text, #09090b);
}

.mym-plan-details-cycle {
  font-size: 13px;
  color: var(--mym-text-muted, #71717a);
  font-weight: 500;
}

.mym-plan-details-desc {
  font-size: 13.5px;
  color: var(--mym-text-muted, #71717a);
  margin: 0 0 16px;
  line-height: 1.55;
  max-width: 720px;
}

.mym-plan-details-grid {
  padding: 14px 18px;
  background: var(--mym-bg-soft, #fafafa);
  border: 1px solid var(--mym-border, #e4e4e7);
  border-radius: var(--mym-radius-sm, 8px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px 24px;
  font-size: 13px;
}

.mym-plan-meta-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--mym-text-muted, #71717a);
  margin-bottom: 3px;
}

.mym-plan-meta-val {
  font-weight: 600;
  color: var(--mym-text, #09090b);
}

.mym-plan-meta-val-sub {
  color: var(--mym-text, #09090b);
  font-weight: 500;
}

.mym-plan-card-display {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--mym-text, #09090b);
  font-weight: 500;
}

.mym-plan-no-card {
  color: var(--mym-warning, #f59e0b);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.mym-plan-details-actions {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--mym-border, #e4e4e7);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.mym-plan-actions-desc {
  font-size: 12.5px;
  color: var(--mym-text-muted, #71717a);
}

.mym-plan-actions-btns {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Available Plans & Upgrades Section */
.mym-available-plans-section {
  margin-top: 32px;
  border-top: 1px solid var(--mym-border, #e4e4e7);
  padding-top: 24px;
}

.mym-upgrade-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}

.mym-upgrade-title {
  margin: 0;
  font-size: 16px;
}

.mym-upgrade-subtitle {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--mym-text-muted, #71717a);
}

.mym-upgrade-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.mym-upgrade-card {
  border: 1px solid var(--mym-border, #e4e4e7);
  border-radius: var(--mym-radius-sm, 8px);
  padding: 18px;
  background: var(--mym-bg, #ffffff);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mym-upgrade-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.mym-upgrade-card-name {
  font-size: 15px;
  color: var(--mym-text, #09090b);
}

.mym-upgrade-pill {
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 700;
  padding: 2px 6px;
  background: rgba(99, 102, 241, 0.12);
  color: #4f46e5;
  border-radius: 999px;
}

.mym-upgrade-card-price {
  font-size: 18px;
  font-weight: 700;
  margin: 6px 0;
}

.mym-upgrade-card-desc {
  font-size: 12px;
  color: var(--mym-text-muted, #71717a);
  margin: 0 0 12px;
  line-height: 1.4;
}

.mym-upgrade-credit-box {
  margin: 10px 0;
  padding: 8px 10px;
  background: var(--mym-bg-soft, #fafafa);
  border-radius: var(--mym-radius-sm, 8px);
  font-size: 12px;
  border: 1px solid var(--mym-border, #e4e4e7);
}

.mym-upgrade-credit-val {
  color: var(--mym-success, #16a34a);
  font-weight: 600;
}

.mym-upgrade-due-val {
  color: var(--mym-text, #09090b);
  font-weight: 700;
  margin-top: 2px;
}

.mym-upgrade-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  text-align: center;
  min-height: 38px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  margin-top: 12px;
  width: 100%;
  box-sizing: border-box;
}

/* ==========================================================================
   Card Setup Modal Components
   ========================================================================== */
.mym-card-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--mym-bg, #ffffff);
  border: 1px solid var(--mym-border, #e4e4e7);
  border-radius: var(--mym-radius, 12px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  padding: 24px;
  box-sizing: border-box;
}

.mym-card-modal-header {
  margin-bottom: 20px;
  padding-right: 24px;
}

.mym-card-modal-title {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 600;
  color: var(--mym-text, #09090b);
  letter-spacing: -0.01em;
}

.mym-card-modal-desc {
  margin: 0;
  font-size: 13px;
  color: var(--mym-text-muted, #71717a);
  line-height: 1.45;
}

.mym-card-modal-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.mym-empty-cards {
  padding: 16px;
  border: 1px dashed var(--mym-border, #e4e4e7);
  border-radius: var(--mym-radius-sm, 8px);
  text-align: center;
  background: var(--mym-bg-soft, #fafafa);
}

.mym-empty-cards-text {
  margin: 0;
  font-size: 13px;
  color: var(--mym-text-muted, #71717a);
}

.mym-card-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 14px;
  border: 1px solid var(--mym-border, #e4e4e7);
  border-radius: var(--mym-radius-sm, 8px);
  background: var(--mym-bg, #ffffff);
}

.mym-card-item.is-default {
  border-color: var(--mym-border-strong, #a1a1aa);
  background: var(--mym-bg-soft, #fafafa);
}

.mym-card-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mym-card-brand-badge {
  width: 36px;
  height: 22px;
  background: #f4f4f5;
  border-radius: 4px;
  border: 1px solid var(--mym-border, #e4e4e7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9.5px;
  font-weight: 700;
  color: var(--mym-text, #09090b);
  text-transform: uppercase;
}

.mym-card-item-title {
  font-size: 13px;
  color: var(--mym-text, #09090b);
  font-weight: 600;
}

.mym-card-item-exp {
  font-size: 11.5px;
  color: var(--mym-text-muted, #71717a);
  display: block;
  margin-top: 1px;
}

.mym-card-item-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mym-card-default-badge {
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 7px;
}

.mym-set-default-card-btn {
  font-size: 11.5px;
  min-height: 28px;
  padding: 3px 9px;
  border-radius: 6px;
  cursor: pointer;
}

.mym-delete-card-btn {
  font-size: 12px;
  min-height: 28px;
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
}

.mym-card-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mym-card-setup-btn {
  width: 100%;
  min-height: 40px;
  padding: 10px 16px;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: var(--mym-btn-radius, var(--mym-radius-sm, 8px));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  cursor: pointer;
}

.mym-card-modal-error {
  color: var(--mym-danger, #ef4444);
  background: var(--mym-danger-soft, #fef2f2);
  border: 1px solid var(--mym-danger-border, #fecaca);
  padding: 8px 12px;
  border-radius: var(--mym-radius-sm, 8px);
  font-size: 12px;
  text-align: center;
}

.mym-card-modal-security {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--mym-border, #e4e4e7);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--mym-text-muted, #71717a);
}

body.mym-modal-open {
  overflow: hidden;
}

/* ==========================================================================
   Checkout & Order Summary Components
   ========================================================================== */
.mym-order-summary-box {
  background: var(--mym-bg-soft, #fafafa);
  border: 1px solid var(--mym-border, #e4e4e7);
  border-radius: var(--mym-radius, 12px);
  padding: 18px 20px;
  margin-bottom: 24px;
}

.mym-order-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.mym-order-summary-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--mym-text-muted, #71717a);
  font-weight: 600;
  display: block;
}

.mym-order-summary-plan-name {
  font-size: 18px;
  color: var(--mym-text, #09090b);
}

.mym-order-summary-price {
  font-size: 24px;
  font-weight: 800;
  color: var(--mym-text, #09090b);
}

.mym-switch-notice-box {
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: var(--mym-radius-sm, 8px);
  padding: 14px 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.mym-switch-notice-icon {
  flex-shrink: 0;
  margin-top: 2px;
  stroke: #4f46e5;
}

.mym-switch-notice-title {
  font-weight: 700;
  color: #1e1b4b;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.mym-switch-notice-desc {
  font-size: 13px;
  color: #4338ca;
  margin-top: 4px;
  line-height: 1.4;
}

.mym-plan-features-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  text-align: left;
}

.mym-plan-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13.5px;
  color: var(--mym-text, #09090b);
  line-height: 1.4;
}

.mym-plan-feature-icon {
  flex-shrink: 0;
  margin-top: 2px;
  stroke: var(--mym-success, #16a34a);
}

.mym-checkout-fields-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}

.mym-checkout-multistep-wrap .mym-steps-bar {
  margin-bottom: 20px;
}
.mym-checkout-multistep-wrap .mym-form-step {
  width: 100%;
  min-width: 0;
}
.mym-checkout-multistep-wrap .mym-step-nav .mym-btn {
  width: auto;
}

.mym-col-span-1 { grid-column: span 1; }
.mym-col-span-2 { grid-column: span 2; }
.mym-col-span-3 { grid-column: span 3; }
.mym-col-span-4 { grid-column: span 4; }
.mym-col-span-5 { grid-column: span 5; }
.mym-col-span-6 { grid-column: span 6; }

@media (max-width: 640px) {
  .mym-checkout-fields-grid {
    grid-template-columns: 1fr !important;
  }
  .mym-col-span-1, .mym-col-span-2, .mym-col-span-3,
  .mym-col-span-4, .mym-col-span-5, .mym-col-span-6 {
    grid-column: span 1 !important;
  }
}

.mym-plan-picker-card {
  width: 100%;
  max-width: 1040px;
  margin: 28px auto;
  padding: 0 16px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  box-sizing: border-box;
}
.mym-plan-picker-card.mym-plan-picker-mode-list,
.mym-plan-picker-card.mym-plan-picker-mode-dropdown {
  max-width: 680px;
}
.mym-plan-picker-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 28px;
}
.mym-plan-picker-title {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--mym-text, #09090b);
}
.mym-plan-picker-subtitle {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--mym-text-muted, #71717a);
}
.mym-plan-switcher-wrap {
  text-align: center;
  margin: 0 0 26px;
}

.mym-plan-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  align-items: stretch;
  margin-top: 12px;
}
.mym-plan-cards-grid.mym-plan-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.mym-plan-cards-grid.mym-plan-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.mym-plan-cards-grid.mym-plan-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mym-plan-card-item {
  border: 1px solid var(--mym-border, #e4e4e7);
  border-radius: var(--mym-radius, 12px);
  padding: 26px 24px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--mym-bg, #ffffff);
  position: relative;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.mym-plan-card-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -8px rgba(15, 23, 42, 0.1);
  border-color: var(--mym-border-strong, #d4d4d8);
}

.mym-plan-card-item.is-featured {
  border: 2px solid var(--mym-primary, #09090b);
  box-shadow: 0 14px 30px -10px rgba(15, 23, 42, 0.14);
}
.mym-plan-card-item.is-featured:hover {
  border-color: var(--mym-primary, #09090b);
}

.mym-plan-card-featured-badge {
  position: absolute;
  top: -12px;
  right: 18px;
  background: var(--mym-primary, #09090b);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 11px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.18);
}

.mym-plan-card-top {
  display: flex;
  flex-direction: column;
}
.mym-plan-card-meta-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.mym-plan-type-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: #f4f4f5;
  color: #52525b;
  border: 1px solid #e4e4e7;
}
.mym-plan-trial-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.mym-plan-card-title {
  margin: 0 0 10px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--mym-text, #09090b);
  line-height: 1.3;
}

.mym-plan-card-price-wrap {
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--mym-border, #e4e4e7);
}
.mym-plan-card-price-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px;
}

.mym-plan-card-price {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--mym-text, #09090b);
}

.mym-plan-card-cadence {
  color: var(--mym-text-muted, #71717a);
  font-size: 13.5px;
  font-weight: 500;
}
.mym-plan-setup-note {
  margin-top: 4px;
  font-size: 12px;
  color: var(--mym-text-muted, #71717a);
}
.mym-plan-card-desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--mym-text-muted, #71717a);
  margin: 4px 0 8px;
}

.mym-plan-card-btn-wrap {
  margin-top: 20px;
  padding-top: 6px;
}

.mym-plan-card-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  text-decoration: none;
  min-height: 44px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--mym-btn-radius, 8px);
}

/* Radio List Mode Upgrades */
.mym-plan-list-main {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
}
.mym-plan-list-info {
  flex: 1 1 auto;
  min-width: 0;
}
.mym-plan-list-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 4px;
}
.mym-plan-list-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--mym-text, #09090b);
}
.mym-plan-list-featured-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  background: var(--mym-primary, #09090b);
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.mym-plan-list-price-col {
  text-align: right;
  flex-shrink: 0;
}
.mym-plan-list-price {
  font-size: 20px;
  font-weight: 800;
  color: var(--mym-text, #09090b);
  line-height: 1.2;
}
.mym-plan-list-cadence {
  font-size: 12.5px;
  color: var(--mym-text-muted, #71717a);
}
.mym-plan-list-item.is-selected {
  border-color: var(--mym-primary, #09090b);
  background: #fafafa;
  box-shadow: 0 0 0 1px var(--mym-primary, #09090b);
}
.mym-plan-list-actions {
  margin-top: 20px;
}

/* Dropdown Preview Card */
.mym-plan-dropdown-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--mym-border, #e4e4e7);
}
.mym-plan-dropdown-price-col {
  text-align: right;
}

@media (max-width: 900px) {
  .mym-plan-cards-grid.mym-plan-cols-4,
  .mym-plan-cards-grid.mym-plan-cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .mym-plan-picker-card {
    margin: 18px auto;
    padding: 0 12px;
  }
  .mym-plan-picker-title {
    font-size: 22px;
  }
  .mym-plan-cards-grid,
  .mym-plan-cards-grid.mym-plan-cols-2,
  .mym-plan-cards-grid.mym-plan-cols-3,
  .mym-plan-cards-grid.mym-plan-cols-4 {
    grid-template-columns: 1fr;
  }
  .mym-plan-list-item {
    flex-direction: column;
    gap: 10px;
  }
  .mym-plan-list-price-col,
  .mym-plan-dropdown-price-col {
    text-align: left;
  }
}

/* ==========================================================================
   Team & Groups Components
   ========================================================================== */
.mym-team-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--mym-border, #e2e8f0);
}

.mym-team-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.mym-team-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--mym-text, #0f172a);
}

.mym-team-rename-form {
  display: flex;
  gap: 6px;
  align-items: center;
}

.mym-team-rename-input {
  padding: 6px 10px;
  font-size: 13px;
  border: 1px solid var(--mym-border, #cbd5e1);
  border-radius: 6px;
  width: 160px;
}

.mym-team-progress-card {
  background: #ffffff;
  border: 1px solid var(--mym-border, #e2e8f0);
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 24px;
}

.mym-team-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.mym-team-progress-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--mym-text, #0f172a);
}

.mym-team-progress-remaining {
  font-size: 13px;
  font-weight: 500;
}

.mym-team-progress-track {
  background: #e2e8f0;
  height: 10px;
  border-radius: 9999px;
  overflow: hidden;
  width: 100%;
}

.mym-team-progress-bar {
  background: linear-gradient(90deg, #4f46e5 0%, #06b6d4 100%);
  height: 100%;
  border-radius: 9999px;
  transition: width 0.3s ease;
}

.mym-team-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.mym-team-card {
  background: #ffffff;
  border: 1px solid var(--mym-border, #e2e8f0);
  border-radius: 10px;
  padding: 18px;
}

.mym-team-card-title {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--mym-text, #0f172a);
}

.mym-team-card-desc {
  margin: 0 0 12px;
  font-size: 12px;
  color: var(--mym-text-muted, #64748b);
}

.mym-team-invite-group {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 10px;
}

.mym-team-invite-input {
  width: 100%;
  padding: 8px 10px;
  font-size: 12px;
  border: 1px solid var(--mym-border, #cbd5e1);
  border-radius: 6px;
  background: #f8fafc;
}

.mym-team-btn-regen {
  background: none;
  border: none;
  padding: 0;
  font-size: 11px;
  color: #dc2626;
  cursor: pointer;
  text-decoration: underline;
}

.mym-team-members-card {
  background: #ffffff;
  border: 1px solid var(--mym-border, #e2e8f0);
  border-radius: 10px;
  padding: 20px;
}

.mym-team-table-wrap {
  overflow-x: auto;
}

.mym-team-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.mym-team-table th {
  padding: 12px 18px;
  background: #f8fafc;
  border-bottom: 1px solid var(--mym-border, #e2e8f0);
  color: var(--mym-text-muted, #64748b);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mym-team-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--mym-border, #e2e8f0);
}

.mym-team-table tr:last-child td {
  border-bottom: none;
}

.mym-team-member-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mym-team-avatar-wrap {
  border-radius: 9999px;
  overflow: hidden;
  flex-shrink: 0;
}

.mym-team-members-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--mym-border, #e2e8f0);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mym-team-empty {
  padding: 32px 20px;
  text-align: center;
  color: var(--mym-text-muted, #64748b);
  font-size: 14px;
}

.mym-team-empty-icon {
  margin-bottom: 10px;
  opacity: 0.6;
}

.mym-team-member-name {
  font-weight: 600;
  color: var(--mym-text, #0f172a);
}

.mym-team-member-card {
  background: #ffffff;
  border: 1px solid var(--mym-border, #e2e8f0);
  border-radius: 10px;
  padding: 24px;
}

.mym-team-sub-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 15px;
}

.mym-btn-copied {
  background: #059669 !important;
  border-color: #059669 !important;
  color: #fff !important;
}

.mympro-ppp-gateway-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--mym-border, #cbd5e1);
  border-radius: var(--mym-radius-sm, 8px);
  margin-bottom: 6px;
  cursor: pointer;
  background: var(--mym-bg, #ffffff);
}
.mympro-ppp-gateway-name {
  font-weight: 600;
  font-size: 13.5px;
  color: var(--mym-text, #1e293b);
}
.mym-paid-posts-wrapper {
  display: grid;
  gap: 24px;
  margin: 24px 0;
}
.mym-paid-posts-wrapper.mym-grid-cols-1 { grid-template-columns: 1fr; }
.mym-paid-posts-wrapper.mym-grid-cols-2 { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.mym-paid-posts-wrapper.mym-grid-cols-3,
.mym-paid-posts-wrapper.mym-grid-cols-4 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.mym-paid-post-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--mym-border, #e2e8f0);
  border-radius: var(--mym-radius, 14px);
  overflow: hidden;
  background: var(--mym-bg, #ffffff);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}
.mym-post-thumb-wrap {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: #0f172a;
}
.mym-post-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mym-post-thumb-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.mym-post-badge-glass {
  background: rgba(15, 23, 42, 0.85);
  color: #fff;
  backdrop-filter: blur(4px);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}
.mym-post-badge-primary {
  background: var(--mym-primary, #4f46e5);
  color: #fff;
  padding: 4px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}
.mym-post-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}
.mym-post-card-title {
  margin: 0 0 10px 0;
  font-size: 17px;
  line-height: 1.4;
}
.mym-post-card-title a {
  color: var(--mym-text, #0f172a);
  text-decoration: none;
  font-weight: 700;
}
.mym-post-card-excerpt {
  margin: 0 0 16px 0;
  font-size: 13px;
  color: var(--mym-text-muted, #64748b);
  line-height: 1.5;
}
.mym-post-card-footer {
  padding-top: 14px;
  border-top: 1px solid var(--mym-border, #f1f5f9);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.mym-post-price-free { font-size: 15px; font-weight: 700; color: var(--mym-success, #059669); }
.mym-post-price-final { font-size: 17px; font-weight: 800; color: var(--mym-text, #0f172a); }
.mym-post-price-original { text-decoration: line-through; color: #94a3b8; font-size: 12px; margin-left: 4px; }
.mym-font-bold { font-weight: 700; }
.mym-h-full { height: 100%; }

.mympro-ppp-account-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--mym-border, #e2e8f0);
  border-radius: var(--mym-radius-sm, 12px);
  padding: 20px;
  background: var(--mym-bg, #ffffff);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.mympro-ppp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.mym-border-dashed { border: 1px dashed var(--mym-border, #cbd5e1); }
.mym-text-2xl { font-size: 32px; }

/* ==========================================================================
   Badges & Celebration Components
   ========================================================================== */
.mym-celebration-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: mymFadeIn 0.3s forwards ease-out;
}

.mym-confetti-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
}

.mym-celebration-card {
  position: relative;
  background: #ffffff;
  border-radius: 20px;
  max-width: 440px;
  width: 100%;
  padding: 32px 28px;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: mymPopIn 0.4s 0.1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes mymPopIn {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.mym-celebration-tag {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  color: var(--mym-badge-color, #4f46e5);
}

.mym-celebration-badge-icon {
  width: 96px;
  height: 96px;
  margin: 16px auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--mym-badge-color, #4f46e5) 0%, #1e1b4b 100%);
  box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.3);
  border: 4px solid #ffffff;
}

.mym-celebration-badge-icon img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.mym-celebration-badge-icon span {
  font-size: 42px;
}

.mym-celebration-title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
}

.mym-celebration-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
}

.mym-celebration-rarity-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--mym-rarity-bg, rgba(99, 102, 241, 0.15));
  color: var(--mym-rarity-color, #4f46e5);
}

.mym-celebration-points-tag {
  font-size: 12px;
  font-weight: 700;
  color: #f59e0b;
  background: #fef3c7;
  padding: 2px 8px;
  border-radius: 999px;
}

.mym-celebration-desc {
  margin: 0 0 20px;
  font-size: 14px;
  color: #64748b;
  line-height: 1.5;
}

.mym-celebration-reward-box {
  background: #f0fdf4;
  border: 1px dashed #86efac;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 20px;
  font-size: 13px;
  color: #166534;
}

.mym-celebration-reward-label {
  font-weight: 600;
  display: block;
}

.mym-celebration-reward-code {
  font-size: 15px;
  font-weight: 700;
  color: #15803d;
  background: #ffffff;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-top: 4px;
}

.mym-celebration-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: var(--mym-badge-color, #4f46e5);
  color: #ffffff;
  border: none;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: var(--mym-btn-radius, 12px);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-sizing: border-box;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

.mym-celebration-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.mym-badges-header-card {
  background: var(--mym-bg-soft, #fafafa);
  border: 1px solid var(--mym-border, #e4e4e7);
  border-radius: var(--mym-radius, 12px);
  padding: 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.mym-badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}

.mym-badge-item-card {
  background: #ffffff;
  border: 1.5px solid var(--mym-border, #e2e8f0);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
}

.mym-stat-label { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--mym-text-muted, #71717a); letter-spacing: 0.05em; }
.mym-stat-val { font-size: 22px; color: var(--mym-text, #09090b); }
.mym-text-warning { color: #f59e0b !important; }
.mym-divider-v { height: 32px; width: 1px; background: var(--mym-border, #e4e4e7); }
.mym-badges-section-title { margin: 0 0 14px; font-size: 15px; font-weight: 700; }
.mym-badge-card-corner { position: absolute; top: 10px; right: 10px; display: flex; gap: 4px; }
.mym-badge-rarity-pill {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--mym-rarity-bg, rgba(99, 102, 241, 0.15));
  color: var(--mym-rarity-color, #4f46e5);
}
.mym-badge-avatar-wrap {
  width: 64px;
  height: 64px;
  margin: 8px 0 12px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--mym-badge-color, #6366f1) 0%, #1e1b4b 100%);
  box-shadow: 0 6px 16px -4px rgba(0,0,0,0.3);
  color: #fff;
}
.mym-badge-avatar-sm {
  width: 54px;
  height: 54px;
  margin: 0 auto 10px;
}
.mym-badge-item-title { font-size: 15px; color: var(--mym-text, #09090b); margin-bottom: 4px; }
.mym-badge-item-desc { font-size: 12px; color: var(--mym-text-muted, #71717a); margin: 0 0 10px; line-height: 1.4; }
.mym-badge-item-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-size: 11px;
  color: var(--mym-text-muted, #71717a);
  padding-top: 8px;
  border-top: 1px solid var(--mym-border, #e4e4e7);
}
.mym-badges-locked-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.mym-badge-locked-card {
  background: var(--mym-bg-soft, #fafafa);
  border: 1px solid var(--mym-border, #e4e4e7);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0.85;
}
.mym-badge-locked-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: grayscale(1);
}
.mym-badge-locked-title {
  font-size: 14px;
  color: var(--mym-text, #09090b);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mym-badge-locked-desc {
  font-size: 12px;
  color: var(--mym-text-muted, #71717a);
  margin: 0;
  line-height: 1.4;
}
.mym-progress-track {
  height: 6px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}
.mym-user-badges-pills {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.mym-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  font-size: 11px;
  font-weight: 600;
  color: var(--mym-badge-color, #4f46e5);
}
.mym-badge-pill-img {
  width: 12px;
  height: 12px;
  object-fit: contain;
  vertical-align: middle;
}
.mym-comment-badge-flair {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.12);
  color: var(--mym-badge-color, #4f46e5);
  border: 1px solid rgba(99, 102, 241, 0.25);
  vertical-align: middle;
}

/* ==========================================================================
   Retention & Dunning Components
   ========================================================================== */
.mym-dunning-alert {
  margin-bottom: 20px;
  padding: 16px 20px;
  border-radius: var(--mym-radius, 12px);
  background: #fff7ed;
  border: 1px solid #fed7aa;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.mym-dunning-icon {
  flex-shrink: 0;
  color: #ea580c;
  margin-top: 2px;
}

.mym-dunning-title {
  font-weight: 700;
  color: #9a3412;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.mym-dunning-desc {
  font-size: 13px;
  color: #c2410c;
  margin: 6px 0 12px;
  line-height: 1.45;
}

.mym-dunning-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.mym-dunning-btn-update {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  min-height: 34px;
  padding: 6px 14px;
  border-radius: 7px;
  background: #ea580c;
  border-color: #ea580c;
  color: #ffffff;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.mym-dunning-btn-update:hover {
  background: #c2410c;
  border-color: #c2410c;
  color: #ffffff;
}

.mym-dunning-btn-retry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  min-height: 34px;
  padding: 6px 14px;
  border-radius: 7px;
  background: #ffffff;
  border: 1px solid #fed7aa;
  color: #9a3412;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.mym-dunning-btn-retry:hover {
  background: #fff7ed;
  border-color: #fdba74;
  color: #7c2d12;
}

.mym-retention-dialog {
  max-width: 540px;
  padding: 28px 26px 24px;
  border: 1px solid var(--mym-border, #e4e4e7);
  border-radius: 16px;
  box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.24), 0 0 0 1px rgba(15, 23, 42, 0.04);
}
.mym-retention-dialog:focus {
  outline: none;
}

.mym-retention-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  top: 14px;
  right: 14px;
  padding: 0;
  border-radius: 999px;
  font-size: 20px;
  color: #64748b;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.mym-retention-close-btn:hover,
.mym-retention-close-btn:focus-visible {
  background: #f4f4f5;
  color: #0f172a;
  outline: none;
}

.mym-retention-step {
  animation: mymFadeIn 0.18s ease;
}

.mym-retention-step-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
  padding-right: 30px;
}
.mym-retention-step-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: #f4f4f5;
  color: #52525b;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.mym-retention-back-btn {
  background: none;
  border: none;
  padding: 0;
  color: #52525b;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s ease;
}
.mym-retention-back-btn:hover {
  color: #09090b;
}

.mym-retention-header {
  text-align: center;
  margin-bottom: 18px;
}
.mym-retention-header-left {
  text-align: left;
  margin-bottom: 14px;
}

.mym-retention-header-icon {
  width: 46px;
  height: 46px;
  margin: 0 auto 12px;
  background: #eef2ff;
  color: #4f46e5;
  border: 1px solid #e0e7ff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mym-retention-result-icon.is-success {
  background: #ecfdf5;
  color: #059669;
  border-color: #a7f3d0;
}
.mym-retention-result-icon.is-cancelled {
  background: #fef2f2;
  color: #dc2626;
  border-color: #fecaca;
}

.mym-retention-title {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--mym-text, #09090b);
}
.mym-retention-subtitle {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--mym-text-muted, #71717a);
}

.mym-retention-plan-pill {
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
}

.mym-retention-offers-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.mym-retention-card-discount {
  padding: 14px 16px;
  border: 1px solid #c7d2fe;
  background: linear-gradient(180deg, #fafaff 0%, #f5f3ff 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.mym-retention-card-pause {
  padding: 14px 16px;
  border: 1px solid #fde68a;
  background: linear-gradient(180deg, #fffdf5 0%, #fffbeb 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.mym-retention-card-body {
  flex: 1 1 auto;
  min-width: 0;
}
.mym-retention-offer-head {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.mym-retention-offer-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.mym-badge-discount {
  background: #4f46e5;
  color: #ffffff;
}
.mym-badge-pause {
  background: #d97706;
  color: #ffffff;
}
.mym-retention-offer-title {
  font-size: 14px;
  font-weight: 700;
  color: #09090b;
}
.mym-retention-offer-desc {
  display: block;
  font-size: 12px;
  line-height: 1.45;
  color: #52525b;
}

.mym-retention-cta {
  flex-shrink: 0;
  white-space: nowrap;
}
.mym-retention-pause-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.mym-retention-pause-select {
  width: auto !important;
  min-height: 32px !important;
  padding: 4px 8px !important;
  font-size: 12px !important;
  border-radius: 6px !important;
  background: #ffffff;
}
.mym-retention-pause-btn {
  background: #d97706;
  border-color: #d97706;
  color: #ffffff;
}
.mym-retention-pause-btn:hover {
  background: #b45309;
  border-color: #b45309;
  color: #ffffff;
}

.mym-retention-info-note {
  padding: 12px 14px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 13px;
  color: #475569;
  line-height: 1.45;
  text-align: center;
}

.mym-retention-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--mym-border, #e4e4e7);
  flex-wrap: wrap;
}

.mym-retention-reasons-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 14px;
}
.mym-retention-reason-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--mym-text, #09090b);
  cursor: pointer;
  padding: 9px 12px;
  border: 1px solid var(--mym-border, #e4e4e7);
  border-radius: 8px;
  background: #ffffff;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.mym-retention-reason-label:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}
.mym-retention-reason-label.is-selected {
  background: #f8fafc;
  border-color: #09090b;
  font-weight: 600;
}
.mym-retention-reason-radio {
  margin: 0 !important;
  accent-color: #09090b;
  flex-shrink: 0;
}

.mym-retention-feedback-wrap {
  margin-bottom: 12px;
}
.mym-retention-feedback-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--mym-text, #09090b);
  margin-bottom: 6px;
}
.mym-retention-textarea {
  width: 100%;
  box-sizing: border-box;
  font-size: 13px;
  padding: 8px 11px;
  border: 1px solid var(--mym-border, #e4e4e7);
  border-radius: 8px;
  resize: vertical;
}

.mym-retention-access-note {
  padding: 9px 12px;
  border-radius: 8px;
  background: #f4f4f5;
  font-size: 12.5px;
  color: #3f3f46;
  margin-bottom: 12px;
}
.mym-retention-error-box {
  padding: 9px 12px;
  border-radius: 8px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: 12.5px;
  font-weight: 500;
  margin-bottom: 12px;
}
.mym-retention-result-step {
  text-align: center;
  padding: 12px 0 6px;
}

@media (max-width: 540px) {
  .mym-retention-dialog {
    padding: 22px 16px 18px;
  }
  .mym-retention-card-discount,
  .mym-retention-card-pause {
    flex-direction: column;
    align-items: stretch;
  }
  .mym-retention-cta {
    width: 100%;
  }
  .mym-retention-pause-controls {
    width: 100%;
  }
  .mym-retention-pause-select {
    flex: 1 1 auto;
  }
  .mym-retention-footer {
    flex-direction: column-reverse;
    align-items: stretch;
    text-align: center;
  }
  .mym-retention-footer .mym-btn {
    width: 100%;
  }
}

/* ==========================================================================
   Pay Per Post Grid Components
   ========================================================================== */
.mym-paid-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin: 24px 0;
}

.mym-paid-post-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.mym-post-thumb-wrap {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: #0f172a;
}

.mym-post-badge-container {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.mym-post-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.mym-post-card-footer {
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mym-plan-list-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--mym-border, #e4e4e7);
  border-radius: var(--mym-radius-sm, 8px);
  cursor: pointer;
  margin-bottom: 12px;
  background: var(--mym-bg, #ffffff);
  transition: all 0.15s ease;
}

.mym-plan-list-item.is-featured {
  border: 2px solid var(--mym-primary, #4f46e5);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.mym-plan-list-radio {
  margin-top: 4px;
  accent-color: var(--mym-primary, #4f46e5);
  width: 18px;
  height: 18px;
}

.mym-dropdown-plan-card {
  border: 1px solid var(--mym-border, #e4e4e7);
  border-radius: var(--mym-radius, 12px);
  padding: 24px;
  background: var(--mym-bg-soft, #fafafa);
  margin-bottom: 20px;
  position: relative;
}

.mym-dropdown-plan-card.is-featured {
  border: 2px solid var(--mym-primary, #4f46e5);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.mym-switcher-bar {
  display: inline-flex;
  align-items: center;
  background: var(--mym-bg, #ffffff);
  border: 1px solid var(--mym-border, #e4e4e7);
  border-radius: 9999px;
  padding: 4px;
  gap: 4px;
  flex-wrap: wrap;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

.mym-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--mym-text-muted, #52525b);
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.mym-pill-btn:hover {
  color: var(--mym-text, #09090b);
  background: #f4f4f5;
}

.mym-pill-btn:focus-visible {
  outline: 2px solid transparent;
  box-shadow: 0 0 0 3px rgba(var(--mym-primary-rgb, 79, 70, 229), 0.22);
}

.mym-pill-btn.active {
  background: var(--mym-primary, #4f46e5);
  border-color: var(--mym-primary, #4f46e5);
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.16);
}

.mym-border-t { border-top: 1px solid var(--mym-border, #e4e4e7); }
.mym-border-b { border-bottom: 1px solid var(--mym-border, #e4e4e7); }
.mym-border-t-dashed { border-top: 1px dashed var(--mym-border, #e4e4e7); }
.mym-font-mono { font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.mym-team-tier-badge { background: rgba(99, 102, 241, 0.1); color: #4f46e5; border-radius: var(--mym-radius-sm, 8px); font-size: 13px; }
.mym-trial-banner { background: var(--mym-success-soft, #f0fdf4); color: var(--mym-success, #16a34a); border-radius: var(--mym-radius-sm, 8px); font-size: 13px; }
.mym-account-info-box { padding: 12px 16px; background: var(--mym-bg-soft, #fafafa); border-radius: var(--mym-radius-sm, 8px); border: 1px solid var(--mym-border, #e4e4e7); }
.mym-btn-link { background: none; border: none; padding: 0; cursor: pointer; color: var(--mym-primary, #4f46e5); font-size: 13px; font-weight: 600; text-decoration: none; transition: opacity 0.15s ease, color 0.15s ease; }
.mym-btn-link:hover { text-decoration: underline; opacity: 0.85; }
.mym-gateway-option { padding: 14px 16px; border: 1px solid var(--mym-border, #e4e4e7); border-radius: var(--mym-radius-sm, 8px); cursor: pointer; transition: border-color 0.15s ease; background: var(--mym-bg, #ffffff); }
.mym-gateway-radio { margin-top: 3px; accent-color: var(--mym-primary, #4f46e5); }
.mym-grid-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .mym-grid-2 { grid-template-columns: 1fr; } }

.mym-plan-switch-toggle {
  margin-left: 10px;
  font-size: 12px;
  font-weight: 600;
  min-height: 28px;
  padding: 4px 10px;
  vertical-align: middle;
  text-transform: none;
  cursor: pointer;
  background: #ffffff;
  color: #334155;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.mym-plan-switch-toggle:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
}
.mym-plan-switch-link { all: unset; }
.mym-checkout-line-row {
  margin-top: 10px;
  padding-top: 10px;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mym-checkout-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 17px;
  font-weight: 700;
  color: var(--mym-text, #09090b);
  padding-top: 10px;
  margin-top: 12px;
}
.mym-coupon-checkout-box { margin-bottom: 24px; }
.mym-coupon-input-container { margin-top: 10px; }
.mym-coupon-input-row { display: flex; gap: 8px; max-width: 380px; }
.mym-coupon-feedback-msg { margin-top: 8px; font-size: 13px; font-weight: 500; }
.mym-remove-coupon-link { color: var(--mym-danger, #ef4444); font-size: 11px; margin-left: 6px; text-decoration: none; font-weight: 600; }
.mym-payment-title { margin: 0 0 14px; font-size: 15px; font-weight: 600; }
.mym-gateway-desc { margin: 4px 0 0; font-size: 13px; color: var(--mym-text-muted, #71717a); line-height: 1.4; }
.mym-trial-desc { font-size: 12px; opacity: 0.9; margin-top: 3px; line-height: 1.4; }
.mym-uppercase { text-transform: uppercase; }
.mym-tracking-wide { letter-spacing: 0.05em; }
.mym-whitespace-nowrap { white-space: nowrap; }
.mym-flex-1 { flex: 1; }

/* Checkout Extra Fields Components */
.mym-checkout-extra-fields {
  margin-bottom: 24px;
}
.mym-checkout-extra-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--mym-text, #09090b);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--mym-border, #e4e4e7);
}
.mym-avatar-preview {
  margin-bottom: 8px;
}
.mym-avatar-preview img,
.mym-avatar-img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--mym-border, #e4e4e7);
  display: block;
}
.mym-file-preview-info {
  font-size: 12px;
  margin-bottom: 6px;
  color: var(--mym-text-muted, #71717a);
}
.mym-help-block {
  display: block !important;
  margin-top: 4px !important;
  color: var(--mym-text-muted, #71717a) !important;
  font-size: 12px !important;
}
.mym-field-row-terms {
  margin: 4px 0 !important;
}

.mym-choice-terms {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  font-size: 13.5px;
  color: var(--mym-text, #09090b);
}
.mym-choice-input {
  margin-top: 3px !important;
  accent-color: var(--mym-primary, #4f46e5);
}
.mym-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 4px;
}
.mym-radio-choice {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 13.5px;
  color: var(--mym-text, #09090b);
}
.mym-file-current-link {
  color: var(--mym-primary, #4f46e5);
  word-break: break-all;
}
.mym-badge-icon-emoji {
  font-size: 28px;
  line-height: 1;
  display: inline-block;
}
.mym-badge-icon-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}
.mympro-drip-expired-icon {
  font-size: 32px;
  width: 32px;
  height: 32px;
  margin-bottom: 8px;
}
.mympro-drip-expired-title {
  margin: 4px 0 8px;
  color: #991b1b;
}
.mym-archive-paywall-wrap {
  max-width: 960px;
  margin: 50px auto;
  padding: 0 24px;
  box-sizing: border-box;
}
.mym-col-span-1 { grid-column: span 1 !important; }
.mym-col-span-2 { grid-column: span 2 !important; }
.mym-col-span-3 { grid-column: span 3 !important; }
.mym-col-span-4 { grid-column: span 4 !important; }
.mym-col-span-5 { grid-column: span 5 !important; }
.mym-col-span-6 { grid-column: span 6 !important; }

/* Display & Visibility Utilities */
.mym-d-none { display: none !important; }
.mym-d-block { display: block !important; }
.mym-d-inline { display: inline !important; }
.mym-d-inline-block { display: inline-block !important; }
.mym-d-flex { display: flex !important; }
.mym-d-inline-flex { display: inline-flex !important; }



