/* IMX Membership — portal / profile / plan cards (brand tokens) */
.imx-ms {
  --blue: #007CD9; --navy: #002E70; --ink: #0A0A0A; --amber: #FFB800;
  --bg: #F7F9FB; --border: #E3E9EF; --sec: #5B6573;
  font-family: 'Inter', -apple-system, sans-serif;
  color: var(--ink); font-size: 15px; line-height: 1.55;
}
.imx-ms h2, .imx-ms h3 { font-family: 'Poppins', sans-serif; color: var(--navy); margin: 0 0 6px; }
.imx-ms .imx-ms-muted { color: var(--sec); font-size: 13px; }

/* Cards & layout */
.imx-ms-card {
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  padding: 22px; margin-bottom: 18px;
}
.imx-ms-card-title {
  font-family: 'Poppins', sans-serif; font-weight: 700; color: var(--navy);
  font-size: 16px; margin-bottom: 14px;
}
.imx-ms-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.imx-ms-center { text-align: center; }

/* Profile header */
.imx-ms-profile {
  display: flex; align-items: center; gap: 14px; margin-bottom: 18px;
  background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 18px 22px;
}
.imx-ms-avatar { border-radius: 50%; }
.imx-ms-profile-id { flex: 1; min-width: 0; }
.imx-ms-profile-id h2 { font-size: 20px; }

/* Badges & pills */
.imx-ms-badge {
  display: inline-block; padding: 6px 12px; border-radius: 999px;
  font-weight: 700; font-size: 13px; white-space: nowrap;
}
.imx-ms-badge-member { background: rgba(0,124,217,0.10); color: var(--blue); }
.imx-ms-badge-save { background: var(--amber); color: var(--ink); margin-bottom: 10px; }
.imx-ms-pill {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700; vertical-align: middle;
}
.imx-ms-pill-active { background: #E5F5EA; color: #0B7A3B; }
.imx-ms-pill-off { background: #FDECEC; color: #B42318; }

/* Status card */
.imx-ms-plan-line { font-size: 17px; margin-bottom: 8px; }
.imx-ms-discount-line { margin: 0 0 12px; color: var(--sec); }
.imx-ms-discount-line strong { color: var(--blue); font-size: 17px; }
.imx-ms-countdown { display: flex; align-items: center; gap: 12px; margin: 10px 0 16px; }
.imx-ms-days {
  font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 44px;
  color: var(--navy); line-height: 1;
}
.imx-ms-days-label { font-weight: 600; }

/* Buttons */
.imx-ms-btn {
  display: inline-block; padding: 11px 22px; border-radius: 10px;
  font-weight: 700; font-size: 15px; text-decoration: none !important;
  border: 0; cursor: pointer; font-family: 'Inter', sans-serif;
}
.imx-ms-btn-blue { background: var(--blue); color: #fff !important; }
.imx-ms-btn-amber { background: var(--amber); color: var(--ink) !important; }
.imx-ms-btn-ghost {
  background: #fff; color: var(--blue) !important;
  border: 1px solid var(--border);
}
.imx-ms-btn-sm { padding: 7px 14px; font-size: 13px; }

/* Meters */
.imx-ms-meter { margin-bottom: 18px; }
.imx-ms-meter-head { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: 6px; }
.imx-ms-bar { height: 8px; background: var(--bg); border-radius: 999px; overflow: hidden; margin-bottom: 8px; }
.imx-ms-bar-fill { height: 100%; background: var(--blue); border-radius: 999px; }

/* Orders table */
.imx-ms-orders { width: 100%; border-collapse: collapse; }
.imx-ms-orders th, .imx-ms-orders td {
  text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); font-size: 14px;
}
.imx-ms-orders th { color: var(--sec); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.imx-ms-num { text-align: right !important; }
.imx-ms-order-status { padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--bg); color: var(--sec); }
.imx-ms-os-completed { background: #E5F5EA; color: #0B7A3B; }
.imx-ms-os-processing { background: rgba(0,124,217,0.10); color: var(--blue); }
.imx-ms-os-cancelled, .imx-ms-os-failed { background: #FDECEC; color: #B42318; }
.imx-ms-link { color: var(--blue); font-weight: 600; text-decoration: none; }

/* Notices */
.imx-ms-notice { border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; font-weight: 600; }
.imx-ms-notice-ok { background: #E5F5EA; color: #0B7A3B; }
.imx-ms-notice-warn { background: #FFF6E0; color: #8a6100; }

/* Activity log */
.imx-ms-log { margin: 0; padding: 0; list-style: none; }
.imx-ms-log li { padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.imx-ms-log li:last-child { border-bottom: 0; }

/* Plan cards ([imx_plans]) */
.imx-ms-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 340px)); gap: 18px; justify-content: center; }
.imx-ms-plan-card { text-align: left; }
.imx-ms-plan-price { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 30px; color: var(--navy); margin: 6px 0 12px; }
.imx-ms-plan-price del { color: var(--sec); font-size: 18px; font-weight: 600; }
.imx-ms-plan-points { margin: 0 0 16px; padding: 0; list-style: none; }
.imx-ms-plan-points li { padding: 7px 0 7px 26px; position: relative; }
.imx-ms-plan-points li::before {
  content: "\2713"; position: absolute; left: 0; color: var(--blue); font-weight: 800;
}

/* Mobile */
@media (max-width: 760px) {
  .imx-ms-grid { grid-template-columns: 1fr; }
  .imx-ms-profile { flex-wrap: wrap; }
  .imx-ms-orders th:nth-child(2), .imx-ms-orders td:nth-child(2) { display: none; }
  .imx-ms-days { font-size: 38px; }
}
