#michevia-reels {
  padding: 72px 5%;
  background: #0b0b0e;
  color: #fff;
  font-family: inherit;
}
#michevia-reels .mr-head {
  max-width: 1200px;
  margin: 0 auto 28px;
}
#michevia-reels .mr-eyebrow {
  color: #c6a76a;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 11px;
}
#michevia-reels h2 {
  margin: 10px 0;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600;
}
#michevia-reels .mr-subtitle,
#michevia-reels .mr-status {
  color: #aaaab4;
}
#michevia-reels .mr-grid {
  max-width: 1200px;
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
#michevia-reels .mr-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 9 / 13;
  overflow: hidden;
  padding: 0;
  border: 1px solid #282830;
  border-radius: 12px;
  background: #17171d;
  cursor: pointer;
  color: white;
  text-align: left;
}
#michevia-reels .mr-card video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
#michevia-reels .mr-card:after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(transparent, rgba(0,0,0,.8));
  pointer-events: none;
}
#michevia-reels .mr-card-info {
  position: absolute;
  z-index: 1;
  bottom: 12px;
  left: 12px;
  right: 12px;
  font-size: 13px;
  overflow-wrap: anywhere;
}
#michevia-reels .mr-empty {
  grid-column: 1 / -1;
  border: 1px solid #292930;
  border-radius: 12px;
  padding: 35px 20px;
  color: #b8b8c2;
  text-align: center;
}
.mr-modal {
  position: fixed;
  z-index: 2147483000;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.96);
  color: white;
  font-family: Arial, sans-serif;
}
.mr-modal.mr-open { display: flex; }
.mr-player {
  position: relative;
  height: min(92dvh, 850px);
  width: min(100%, 460px);
  background: #111;
  border-radius: 14px;
  overflow: hidden;
}
.mr-player video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}
.mr-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  border: 0;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  color: white;
  background: rgba(20,20,20,.8);
  font-size: 24px;
  cursor: pointer;
}
.mr-actions {
  position: absolute;
  z-index: 2;
  right: 10px;
  bottom: 24px;
  display: grid;
  gap: 9px;
}
.mr-actions button {
  border: 1px solid #555;
  border-radius: 24px;
  padding: 10px 12px;
  color: white;
  background: rgba(15,15,18,.8);
  cursor: pointer;
}
.mr-caption {
  position: absolute;
  z-index: 2;
  bottom: 25px;
  left: 14px;
  right: 100px;
  overflow-wrap: anywhere;
  text-shadow: 0 1px 5px #000;
}
.mr-dialog {
  width: min(92%, 400px);
  padding: 24px;
  background: #17171d;
  border: 1px solid #383842;
  border-radius: 14px;
}
.mr-dialog h3 { margin-top: 0; }
.mr-dialog textarea,
.mr-dialog select {
  box-sizing: border-box;
  width: 100%;
  margin: 8px 0;
  padding: 10px;
  background: #0c0c10;
  color: white;
  border: 1px solid #454550;
  border-radius: 8px;
}
.mr-dialog button {
  margin: 8px 8px 0 0;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #c6a76a;
  background: #c6a76a;
  color: #111;
  cursor: pointer;
}
.mr-dialog .mr-secondary {
  background: transparent;
  color: white;
  border-color: #555;
}
@media (max-width: 800px) {
  #michevia-reels { padding: 48px 4%; }
  #michevia-reels .mr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}


#michevia-upgrade-button {
  position: fixed;
  z-index: 2147482000;
  right: 22px;
  bottom: 22px;
  display: inline-block;
  padding: 13px 20px;
  border: 1px solid #e0c58a;
  border-radius: 30px;
  background: linear-gradient(135deg, #e4cc91, #b89450);
  color: #17130b;
  font: 600 14px Arial, sans-serif;
  text-decoration: none;
  box-shadow: 0 5px 24px rgba(0,0,0,.35);
}
#michevia-upgrade-button:hover {
  filter: brightness(1.08);
}
@media (max-width: 600px) {
  #michevia-upgrade-button {
    right: 12px;
    bottom: 12px;
    padding: 11px 15px;
  }
}


/* MICHEVIA_UPGRADE_PLANS_FIX */
#michevia-plans-overlay {
  position: fixed; inset: 0; z-index: 2147483000;
  overflow-y: auto; padding: 28px 16px;
  background: rgba(8, 8, 12, .96); color: #f8f5ee;
  font-family: inherit; box-sizing: border-box;
}
#michevia-plans-overlay * { box-sizing: border-box; }
.michevia-plans-panel { max-width: 1000px; margin: 20px auto; }
.michevia-plans-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 20px; margin-bottom: 28px;
}
.michevia-plans-top small { color: #d6b56d; letter-spacing: 2px; }
.michevia-plans-top h2 { font-size: 32px; margin: 10px 0; }
.michevia-plans-top p { color: #b9b6b0; }
#michevia-plans-cancel, .michevia-plan-card button {
  border: 1px solid #c9a75b; border-radius: 24px;
  padding: 11px 20px; cursor: pointer; font-weight: 600;
}
#michevia-plans-cancel { background: transparent; color: #f8f5ee; }
#michevia-plans-list {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.michevia-plan-card {
  padding: 24px; border: 1px solid #4a4030; border-radius: 16px;
  background: #17161a;
}
.michevia-plan-card h3 { font-size: 21px; }
.michevia-plan-price { color: #e1c27b; font-size: 25px; font-weight: 700; }
.michevia-plan-card p { color: #c6c1b9; min-height: 36px; }
.michevia-plan-card button {
  width: 100%; margin-top: 14px; background: #d6b56d; color: #17130b;
}

/* Michevia blue plans interface */
#michevia-plans-overlay {
  background: #f5f8ff;
  color: #172033;
}

.michevia-plans-top small {
  color: #2563eb;
  letter-spacing: 1.5px;
}

.michevia-plans-top h2 {
  color: #172033;
}

.michevia-plans-top p {
  color: #64748b;
}

#michevia-plans-cancel {
  background: #fff;
  color: #2563eb;
  border: 1px solid #2563eb;
  border-radius: 10px;
}

.michevia-plan-card {
  background: #fff;
  color: #172033;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  box-shadow: 0 5px 20px rgba(37, 99, 235, .08);
}

.michevia-plan-card h3 {
  color: #172033;
}

.michevia-plan-price {
  color: #2563eb;
  font-size: 28px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.michevia-plan-card p {
  color: #475569;
  min-height: 36px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.michevia-plan-card button {
  background: #2563eb;
  color: #fff;
  border: 1px solid #2563eb;
  border-radius: 10px;
}

.michevia-plan-card button:hover {
  background: #1d4ed8;
}

/* Michevia blue subscription cards */
#michevia-plans-overlay {
  background: #f5f8ff;
  color: #172033;
}
.michevia-plans-top small { color: #2563eb; letter-spacing: 1.5px; }
.michevia-plans-top h2 { color: #172033; }
.michevia-plans-top p { color: #64748b; }
#michevia-plans-cancel {
  background: #fff; color: #2563eb; border: 1px solid #2563eb;
  border-radius: 10px;
}
#michevia-plans-list {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px; align-items: stretch;
}
.michevia-plan-card {
  position: relative; padding: 26px 22px; background: #fff;
  color: #172033; border: 1px solid #dbeafe; border-radius: 14px;
  box-shadow: 0 8px 32px rgba(37, 99, 235, .08);
}
.michevia-plan-card.is-popular {
  border: 2px solid #2563eb;
  background: linear-gradient(145deg, #fff 0%, #f4f7ff 100%);
}
.michevia-plan-badge {
  display: inline-block; margin-bottom: 12px; padding: 5px 12px;
  border-radius: 20px; background: #2563eb; color: #fff;
  font-size: 12px; font-weight: 700;
}
.michevia-plan-card h3 { color: #172033; font-size: 20px; }
.michevia-plan-price {
  margin-top: 18px; color: #2563eb; font-size: 32px;
  font-weight: 700; overflow-wrap: anywhere;
}
.michevia-plan-period { margin: 4px 0 18px; color: #64748b; }
.michevia-plan-features {
  padding-left: 20px; margin: 0 0 22px; color: #334155; line-height: 1.9;
}
.michevia-plan-card button {
  width: 100%; margin-top: auto; padding: 12px 16px;
  background: #2563eb; color: #fff; border: 1px solid #2563eb;
  border-radius: 10px; cursor: pointer; font-weight: 700;
}
.michevia-plan-card button:hover { background: #1d4ed8; }

/* Michevia checkout cancel button */
#michevia-checkout-cancel {
  position: fixed;
  top: 82px;
  left: 18px;
  z-index: 99999;
  padding: 10px 15px;
  border: 1px solid #2563eb;
  border-radius: 10px;
  background: #fff;
  color: #2563eb;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(37, 99, 235, .12);
}
#michevia-checkout-cancel:hover {
  background: #2563eb;
  color: #fff;
}
@media (max-width: 600px) {
  #michevia-checkout-cancel {
    top: 70px;
    left: 10px;
    padding: 8px 11px;
    font-size: 13px;
  }
}

/* MICHEVIA CHECKOUT BUTTONS — LIGHT AND DARK THEMES */
#michevia-checkout-cancel {
  position: fixed;
  top: 82px;
  left: 18px;
  z-index: 99999;
  padding: 10px 15px;
  border: 1px solid #2563eb;
  border-radius: 10px;
  background: #ffffff;
  color: #2563eb;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(37, 99, 235, .12);
}

#michevia-checkout-cancel:hover {
  background: #2563eb;
  color: #ffffff;
}

/* Keep checkout/payment buttons visible and clickable */
button[type="submit"],
a[href*="checkout"],
button[id*="checkout"],
button[class*="checkout"] {
  cursor: pointer;
}

/* Dark theme */
html.dark #michevia-checkout-cancel,
body.dark #michevia-checkout-cancel,
[data-theme="dark"] #michevia-checkout-cancel,
.dark #michevia-checkout-cancel {
  background: #18181b;
  color: #93c5fd;
  border-color: #60a5fa;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .35);
}

html.dark #michevia-checkout-cancel:hover,
body.dark #michevia-checkout-cancel:hover,
[data-theme="dark"] #michevia-checkout-cancel:hover,
.dark #michevia-checkout-cancel:hover {
  background: #2563eb;
  color: #ffffff;
}

@media (max-width: 600px) {
  #michevia-checkout-cancel {
    top: 70px;
    left: 10px;
    padding: 8px 11px;
    font-size: 13px;
  }
}

/* MICHEVIA: Keep Cancel button blue in every theme */
#michevia-checkout-cancel,
html.dark #michevia-checkout-cancel,
body.dark #michevia-checkout-cancel,
[data-theme="dark"] #michevia-checkout-cancel,
.dark #michevia-checkout-cancel {
  background: #2563eb !important;
  color: #ffffff !important;
  border: 1px solid #2563eb !important;
}

#michevia-checkout-cancel:hover,
html.dark #michevia-checkout-cancel:hover,
body.dark #michevia-checkout-cancel:hover,
[data-theme="dark"] #michevia-checkout-cancel:hover,
.dark #michevia-checkout-cancel:hover {
  background: #1d4ed8 !important;
  color: #ffffff !important;
  border-color: #1d4ed8 !important;
}

/* Michevia live checkout payment buttons */
body.michevia-checkout-page .MuiButton-outlined {
  background-color: #2563eb !important;
  color: #ffffff !important;
  border: 1px solid #2563eb !important;
}

body.michevia-checkout-page .MuiButton-outlined:hover {
  background-color: #1d4ed8 !important;
  color: #ffffff !important;
  border-color: #1d4ed8 !important;
}

body.michevia-checkout-page .MuiButton-outlined.Mui-disabled {
  background-color: #93c5fd !important;
  color: #ffffff !important;
  border-color: #93c5fd !important;
}

/* MICHEVIA_DASHBOARD_PLANS_THEME_TOGGLE */
.michevia-plans-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

#michevia-plans-theme {
  padding: 10px 14px;
  border: 1px solid #2563eb;
  border-radius: 10px;
  background: #fff;
  color: #2563eb;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

#michevia-plans-overlay.michevia-plans-dark {
  background: #090b12;
  color: #f8fafc;
}

#michevia-plans-overlay.michevia-plans-dark .michevia-plans-top h2 {
  color: #f8fafc;
}

#michevia-plans-overlay.michevia-plans-dark .michevia-plans-top p {
  color: #b6c0d1;
}

#michevia-plans-overlay.michevia-plans-dark .michevia-plans-top small {
  color: #e4c779;
}

#michevia-plans-overlay.michevia-plans-dark #michevia-plans-cancel,
#michevia-plans-overlay.michevia-plans-dark #michevia-plans-theme {
  background: #171c29;
  color: #f8fafc;
  border-color: #58647a;
}

#michevia-plans-overlay.michevia-plans-dark .michevia-plan-card {
  background: #151a25;
  color: #f1f5f9;
  border-color: #343e50;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .24);
}

#michevia-plans-overlay.michevia-plans-dark .michevia-plan-card.is-popular {
  background: linear-gradient(145deg, #20283a, #151a25);
  border-color: #d6b56d;
}

#michevia-plans-overlay.michevia-plans-dark .michevia-plan-card h3 {
  color: #f8fafc;
}

#michevia-plans-overlay.michevia-plans-dark .michevia-plan-price {
  color: #e4c779;
}

#michevia-plans-overlay.michevia-plans-dark .michevia-plan-period,
#michevia-plans-overlay.michevia-plans-dark .michevia-plan-features {
  color: #c2cada;
}

#michevia-plans-overlay.michevia-plans-dark .michevia-plan-card button {
  background: #d6b56d;
  color: #17130b;
  border-color: #d6b56d;
}

@media (max-width: 600px) {
  .michevia-plans-top {
    flex-wrap: wrap;
  }
  .michevia-plans-controls {
    justify-content: flex-start;
  }
}

/* MICHEVIA HOMEPAGE-MATCHED UPGRADE CARDS */
#michevia-plans-overlay {
  --page: #f5f3fa;
  --card: #ffffff;
  --text: #24212d;
  --muted: #686575;
  --border: #ded9e9;
  --accent: #b8a0ff;
  --button-text: #17131f;
  --popular-start: #ffffff;
  --popular-end: #f0ebff;
  background: var(--page);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#michevia-plans-overlay * { box-sizing: border-box; }

#michevia-plans-overlay .michevia-plans-panel {
  width: 100%;
  max-width: 1100px;
  margin: 20px auto;
}

#michevia-plans-overlay #michevia-plans-list {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 20px;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  flex-wrap: wrap;
}

#michevia-plans-overlay .michevia-plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 280px;
  flex-shrink: 0;
  padding: 28px;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  color: var(--text);
  box-shadow: 0 8px 32px #0002;
  transition: transform .3s ease, box-shadow .3s ease;
}

#michevia-plans-overlay .michevia-plan-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px #0003;
}

#michevia-plans-overlay .michevia-plan-card.is-popular {
  width: 310px;
  border-color: var(--accent);
  background: linear-gradient(145deg, var(--popular-start), var(--popular-end));
  box-shadow: 0 0 0 1px #b8a0ff33, 0 18px 40px #0002;
}

#michevia-plans-overlay .michevia-plan-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  display: none;
  align-items: center;
  gap: 5px;
  border-radius: 50px;
  background: var(--accent);
  color: var(--button-text);
  padding: 5px 13px;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .8px;
}

#michevia-plans-overlay .michevia-plan-card.is-popular .michevia-plan-badge {
  display: flex;
}

#michevia-plans-overlay .michevia-plan-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

#michevia-plans-overlay .michevia-plan-title {
  font-size: 17px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

#michevia-plans-overlay .michevia-plan-since {
  color: var(--muted);
  opacity: .7;
  font-size: 10px;
  white-space: nowrap;
}

#michevia-plans-overlay .michevia-plan-price-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin: 25px 0 4px;
}

#michevia-plans-overlay .michevia-plan-price {
  color: var(--text);
  font-size: 39px;
  line-height: 1;
  font-weight: 750;
  letter-spacing: -1px;
  overflow-wrap: anywhere;
}

#michevia-plans-overlay .michevia-plan-period {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 4px;
  white-space: nowrap;
}

#michevia-plans-overlay .michevia-plan-strike {
  color: var(--muted);
  opacity: .6;
  font-size: 12px;
  text-decoration: line-through;
  margin: 12px 0 0;
}

#michevia-plans-overlay .michevia-plan-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0 24px;
}

#michevia-plans-overlay .michevia-plan-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 6px 10px;
  color: var(--muted);
  background: #ffffff05;
  font-size: 11px;
  font-weight: 550;
}

#michevia-plans-overlay .michevia-plan-pill.credits {
  border-color: #b8a0ff66;
  background: #b8a0ff12;
  color: var(--accent);
}

#michevia-plans-overlay .michevia-plan-pill .symbol { font-size: 13px; }

#michevia-plans-overlay .michevia-plan-divider {
  height: 1px;
  background: var(--border);
  opacity: .7;
  margin-bottom: 24px;
}

#michevia-plans-overlay .michevia-plan-features {
  display: flex;
  flex-direction: column;
  gap: 13px;
  flex: 1;
  margin: 0 0 28px;
}

#michevia-plans-overlay .michevia-plan-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

#michevia-plans-overlay .michevia-plan-feature .check {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--accent);
  background: #b8a0ff1e;
  font-size: 11px;
  font-weight: 800;
}

#michevia-plans-overlay .michevia-plan-cta {
  width: 100%;
  margin-top: auto;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  text-align: center;
  cursor: pointer;
  transition: all .25s ease;
}

#michevia-plans-overlay .michevia-plan-card.is-popular .michevia-plan-cta,
#michevia-plans-overlay .michevia-plan-cta:hover {
  background: var(--accent);
  border-color: transparent;
  color: var(--button-text);
}

#michevia-plans-overlay .michevia-plan-cta:hover { transform: scale(1.02); }

#michevia-plans-overlay.michevia-plans-dark {
  --page: #101014;
  --card: #19191f;
  --text: #f7f7fb;
  --muted: #a5a5b4;
  --border: #343440;
  --popular-start: #20202a;
  --popular-end: #15151b;
  background: var(--page);
  color: var(--text);
}

#michevia-plans-overlay.michevia-plans-dark .michevia-plan-price {
  color: var(--text);
}

#michevia-plans-overlay.michevia-plans-dark .michevia-plan-card.is-popular {
  border-color: var(--accent);
}

@media (max-width: 700px) {
  #michevia-plans-overlay #michevia-plans-list {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }
  #michevia-plans-overlay .michevia-plan-card,
  #michevia-plans-overlay .michevia-plan-card.is-popular {
    width: 100%;
    max-width: 420px;
  }
}
