/**
 * Aurora Night — My Modules (/my-products) and Modules catalog (/products).
 * 20261010.
 *
 * Library: accredify_create_product/main (weight 60), on top of the shared
 * base css/aurora.css (library accredify_create_product/aurora, weight 50),
 * which provides the night-sky background, graduates band, .ax-glass and
 * the --ax-* tokens.
 *
 * Opt-in: only the two pages whose controller #prefix carries "acx-aurora"
 * (LearnerController::myProducts(), PublicController::catalog()). Course /
 * lesson pages share .acp-layout--fullpage / .acp-pro but NOT acx-aurora,
 * so they keep the old look. Every rule below is scoped under .acx-aurora
 * (or :has(.acx-aurora) for the theme wrappers / body-level toast).
 *
 * The old stylesheet (accredify_create_product.css) uses a lot of
 * !important; rules here mostly start from ".acx-aurora.acp-layout--fullpage"
 * (0,2,0) and use !important where the old rule does, so they win by
 * specificity + load order without deleting anything old.
 */

/* ── 1. Page canvas: aurora from header to footer, no white sheets ─────── */
/* The theme wrappers between the site header and footer (section#our-shop,
   .container, region/block divs, .vivek-shift-footer-to-bottom) get the
   night colour, so any gap they leave reads as night sky, not a white band.
   The header and footer themselves are siblings of these, untouched. */
section:has(.acx-aurora),
section:has(.acx-aurora) *:has(.acx-aurora),
.vivek-shift-footer-to-bottom:has(.acx-aurora) {
  background-color: #0a1124 !important;
  background-image: none !important;
}
.acx-aurora.acp-layout--fullpage {
  min-height: calc(100vh - 100px);
  overflow: hidden;        /* clips the graduates band / glows to the page */
  overflow: clip;
}
.acx-aurora.acp-layout--fullpage .acp-layout-centre,
.acx-aurora.acp-layout--fullpage .acp-page-canvas,
.acx-aurora.acp-layout--fullpage .acp-page-panel,
.acx-aurora.acp-layout--fullpage .acp-dashboard,
.acx-aurora.acp-layout--fullpage .acp-table-scroll-wrap {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}
.acx-aurora.acp-layout--fullpage,
.acx-aurora.acp-layout--fullpage .acp-page-canvas,
.acx-aurora.acp-layout--fullpage .acp-page-panel {
  color: var(--ax-text);
}
.acx-aurora a { color: var(--ax-link); }
.acx-aurora .visually-hidden {
  position: absolute !important; width: 1px !important; height: 1px !important;
  overflow: hidden !important; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; word-wrap: normal;
}

/* Keyboard focus: one clear ring everywhere on these pages. */
.acx-aurora a:focus-visible,
.acx-aurora button:focus-visible,
.acx-aurora select:focus-visible,
.acx-aurora .acp-btn:focus-visible {
  outline: 2px solid #7dd3fc !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 5px rgba(56, 189, 248, .25) !important;
}

/* ── 2. Hero: transparent, eyebrow + gradient title, glass count tiles ─── */
.acx-aurora.acp-layout--fullpage .acp-hero-header.acp-pro-hero {
  background: transparent !important;
  min-height: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 46px 40px 30px !important;
  margin: 0 !important;
  color: var(--ax-text) !important;
  text-align: left !important;
  align-items: flex-end !important;
}
/* Catalog: the hero sits inside .acp-page-panel (which already has the
   40px side padding), so it doesn't bleed out again. */
.acx-aurora.acp-layout--fullpage .acp-page-panel .acp-hero-header.acp-pro-hero {
  margin: 0 !important;
  padding: 46px 0 28px !important;
}
.acx-aurora .acp-pro-hero__eyebrow {
  color: #a5b4fc !important;
  font-size: .72rem !important;
  font-weight: 800 !important;
  letter-spacing: .12em !important;
  margin: 0 0 6px !important;
}
.acx-aurora.acp-layout--fullpage .acp-hero-header__title,
.acx-aurora.acp-layout--fullpage .acp-pro-hero h1 {
  font-family: 'Lato', sans-serif !important;
  font-weight: 800 !important;
  font-size: 2.1rem !important;
  line-height: 1.15 !important;
  letter-spacing: 0 !important;
  margin: 0 0 6px !important;
  color: #ffffff !important;          /* fallback when background-clip:text is unsupported */
  background: var(--ax-title);
  -webkit-background-clip: text;
  background-clip: text;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .acx-aurora.acp-layout--fullpage .acp-hero-header__title,
  .acx-aurora.acp-layout--fullpage .acp-pro-hero h1 {
    color: transparent !important;
    -webkit-text-fill-color: transparent;
  }
}
.acx-aurora .acp-hero-header__sub {
  color: rgba(255, 255, 255, .78) !important;
  font-size: 15px !important;
  margin: 0 !important;
}
.acx-aurora .acp-hero-header__sub strong { color: #fff !important; }

.acx-aurora .acp-pro-stats { gap: 12px; }
.acx-aurora .acp-pro-stat {
  position: relative;
  min-width: 104px;
  padding: 12px 16px;
  text-align: center;
  background: var(--ax-glass);
  -webkit-backdrop-filter: var(--ax-blur); backdrop-filter: var(--ax-blur);
  border: 1px solid var(--ax-glass-border);
  border-radius: var(--ax-radius);
  box-shadow: var(--ax-glass-shadow);
}
.acx-aurora .acp-pro-stat b {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  background: linear-gradient(180deg, #ffffff, #bae6fd);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.acx-aurora .acp-pro-stat span {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .78);
}

/* ── 3. Glass panel holding the table ──────────────────────────────────── */
.acx-aurora.acp-layout--fullpage .acp-modern-table,
.acx-aurora.acp-layout--fullpage .acp-catalog-modern-table {
  position: relative;
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  background: var(--ax-glass) !important;
  -webkit-backdrop-filter: var(--ax-blur); backdrop-filter: var(--ax-blur);
  border: 1px solid var(--ax-glass-border) !important;
  border-radius: var(--ax-radius) !important;
  box-shadow: var(--ax-glass-shadow) !important;
  overflow: hidden;
  color: var(--ax-text);
}
.acx-aurora.acp-layout--fullpage .acp-modern-table thead,
.acx-aurora.acp-layout--fullpage .acp-modern-table tbody,
.acx-aurora.acp-layout--fullpage .acp-catalog-modern-table thead,
.acx-aurora.acp-layout--fullpage .acp-catalog-modern-table tbody {
  background: transparent !important;
}
/* Header row: translucent indigo → sky, painted once across the row. */
.acx-aurora.acp-layout--fullpage .acp-modern-table thead tr,
.acx-aurora.acp-layout--fullpage .acp-catalog-modern-table thead tr {
  background: var(--ax-table-head);
}
.acx-aurora.acp-layout--fullpage .acp-modern-table th,
.acx-aurora.acp-layout--fullpage .acp-catalog-modern-table th {
  background: transparent !important;
  color: #e0e7ff !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: .01em !important;
  text-transform: none !important;
  padding: 14px 16px !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, .18) !important;
  border-radius: 0 !important;
}
/* Body rows: transparent with faint dividers, hover lightens. */
.acx-aurora.acp-layout--fullpage .acp-modern-table tbody tr td,
.acx-aurora.acp-layout--fullpage .acp-catalog-modern-table tbody tr td,
.acx-aurora.acp-layout--fullpage .acp-modern-table tbody tr:nth-child(even) td,
.acx-aurora.acp-layout--fullpage .acp-catalog-modern-table tbody tr:nth-child(even) td,
.acx-aurora.acp-layout--fullpage .acp-modern-table tbody tr.acp-row--member:nth-child(even) td,
.acx-aurora.acp-layout--fullpage .acp-modern-table tbody tr:not(.acp-row--container):not(.acp-row--member):nth-child(even) td,
.acx-aurora.acp-layout--fullpage .acp-modern-table tbody tr.acp-row--completed td,
.acx-aurora.acp-layout--fullpage .acp-modern-table tbody tr.acp-row--container td,
.acx-aurora.acp-layout--fullpage .acp-modern-table tbody tr.acp-row--container-subscription td,
.acx-aurora.acp-layout--fullpage .acp-modern-table tbody tr.acp-row--container-bundle td,
.acx-aurora.acp-layout--fullpage .acp-catalog-modern-table tbody tr[data-acp-type] td {
  background: transparent !important;
}
.acx-aurora.acp-layout--fullpage .acp-modern-table tbody tr td,
.acx-aurora.acp-layout--fullpage .acp-catalog-modern-table tbody tr td {
  color: var(--ax-text) !important;
  border-bottom: 1px solid rgba(255, 255, 255, .08) !important;
  font-size: 14px !important;
  padding: 14px 16px !important;
  vertical-align: middle;
}
.acx-aurora.acp-layout--fullpage .acp-modern-table tbody tr:last-child td,
.acx-aurora.acp-layout--fullpage .acp-catalog-modern-table tbody tr:last-child td {
  border-bottom: 0 !important;
}
.acx-aurora.acp-layout--fullpage .acp-modern-table tbody tr:hover td,
.acx-aurora.acp-layout--fullpage .acp-catalog-modern-table tbody tr:hover td {
  background: rgba(255, 255, 255, .06) !important;
}
/* Subscription = soft pink wash from the left; bundle = soft gold wash.
   Painted on the row (not each cell) so it reads as one wash. */
.acx-aurora .acp-modern-table tbody tr.acp-row--container-subscription,
.acx-aurora .acp-catalog-modern-table tbody tr[data-acp-type="subscription"] {
  background: linear-gradient(90deg, rgba(236, 72, 153, .20), rgba(236, 72, 153, .06) 55%, rgba(236, 72, 153, 0));
}
.acx-aurora .acp-modern-table tbody tr.acp-row--container-bundle,
.acx-aurora .acp-catalog-modern-table tbody tr[data-acp-type="bundle"] {
  background: linear-gradient(90deg, rgba(245, 158, 11, .20), rgba(245, 158, 11, .06) 55%, rgba(245, 158, 11, 0));
}
/* Arriving from "Take Free Exam(s)": free rows first, soft green wash. */
.acx-aurora .acp-modern-table tbody tr.acp-row--free-new {
  background: linear-gradient(90deg, rgba(34, 197, 94, .22), rgba(34, 197, 94, .07) 55%, rgba(34, 197, 94, 0));
  box-shadow: inset 3px 0 0 #4ade80;
}
.acx-aurora.acp-layout--fullpage .acp-modern-table tbody tr.acp-row--free-new.acp-row--free-new.acp-row--free-new td {
  background: transparent !important;
}
.acx-aurora.acp-layout--fullpage .acp-modern-table tbody tr.acp-row--free-new.acp-row--free-new.acp-row--free-new:hover td {
  background: rgba(255, 255, 255, .06) !important;
}

/* Module names */
.acx-aurora.acp-layout--fullpage .acp-dt-title,
.acx-aurora.acp-layout--fullpage .acp-catalog-title-link {
  color: #ffffff !important;
  font-weight: 500 !important;
  text-decoration: none;
}
.acx-aurora.acp-layout--fullpage .acp-catalog-title-link:hover { color: #bae6fd !important; text-decoration: underline; }
.acx-aurora.acp-layout--fullpage .acp-row--container .acp-dt-title,
.acx-aurora.acp-layout--fullpage .acp-row--free-new .acp-dt-title,
.acx-aurora.acp-layout--fullpage tr[data-acp-type="subscription"] .acp-catalog-title-link,
.acx-aurora.acp-layout--fullpage tr[data-acp-type="bundle"] .acp-catalog-title-link {
  font-weight: 700 !important;
  font-size: 14.5px;
}
/* Members of a subscription/bundle: indented with a faint └. */
.acx-aurora.acp-layout--fullpage .acp-modern-table--reorderable .acp-row--member .acp-dt-title {
  padding-left: 36px !important;
}
.acx-aurora.acp-layout--fullpage .acp-modern-table--reorderable .acp-row--member .acp-dt-title::before {
  left: 18px; top: calc(50% - 11px); width: 9px; height: 10px;
  border-top: 0;
  border-left: 1.5px solid rgba(255, 255, 255, .45);
  border-bottom: 1.5px solid rgba(255, 255, 255, .45);
  border-radius: 0;
}
.acx-aurora.acp-layout--fullpage .acp-dt-date {
  color: rgba(255, 255, 255, .78) !important;
  font-variant-numeric: tabular-nums;
}

/* ── 4. Chips: type / status / free ─────────────────────────────────────── */
.acx-aurora .acp-type-pill,
.acx-aurora .acp-free-pill,
.acx-aurora.acp-layout--fullpage .acp-status-badge {
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
  padding: 3px 10px !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.35;
  white-space: nowrap;
  border: 1px solid !important;
  font-style: normal !important;
}
/* Practice exam (default) = sky blue */
.acx-aurora .acp-type-pill,
.acx-aurora .acp-type-pill.acp-type-pill--practice-exam {
  color: #bae6fd !important; background: rgba(14, 165, 233, .18) !important; border-color: rgba(125, 211, 252, .45) !important;
}
.acx-aurora .acp-type-pill.acp-type-pill--subscription {
  color: #fbcfe8 !important; background: rgba(236, 72, 153, .18) !important; border-color: rgba(244, 114, 182, .45) !important;
}
.acx-aurora .acp-type-pill.acp-type-pill--bundle {
  color: #fde68a !important; background: rgba(245, 158, 11, .18) !important; border-color: rgba(251, 191, 36, .45) !important;
}
.acx-aurora .acp-type-pill.acp-type-pill--course {
  color: #99f6e4 !important; background: rgba(20, 184, 166, .18) !important; border-color: rgba(45, 212, 191, .45) !important;
}
.acx-aurora .acp-free-pill {
  margin-left: 6px;
  color: #a7f3d0 !important; background: rgba(16, 185, 129, .24) !important; border-color: rgba(52, 211, 153, .65) !important;
  letter-spacing: .02em;
}
/* Status: grey by default (Not started / Not enrolled) */
.acx-aurora.acp-layout--fullpage .acp-status-badge,
.acx-aurora.acp-layout--fullpage .acp-status-badge.acp-status-badge--not-started,
.acx-aurora.acp-layout--fullpage .acp-status-badge.acp-status-badge--not-enrolled {
  color: #e2e8f0 !important; background: rgba(255, 255, 255, .08) !important; border-color: rgba(255, 255, 255, .30) !important;
}
.acx-aurora.acp-layout--fullpage .acp-status-badge.acp-status-badge--completed,
.acx-aurora.acp-layout--fullpage .acp-status-badge.acp-status-badge--enrolled {
  color: #bbf7d0 !important; background: rgba(34, 197, 94, .20) !important; border-color: rgba(74, 222, 128, .50) !important;
}
.acx-aurora.acp-layout--fullpage .acp-status-badge.acp-status-badge--in-progress,
.acx-aurora.acp-layout--fullpage .acp-status-badge.acp-status-badge--partial {
  color: #c7d2fe !important; background: rgba(99, 102, 241, .22) !important; border-color: rgba(165, 180, 252, .50) !important;
}
/* N/A (Subscription) = pink, N/A (Bundled Module) = gold, like the Type chip. */
.acx-aurora.acp-layout--fullpage .acp-status-badge.acp-status-badge--na,
.acx-aurora.acp-layout--fullpage .acp-row--container-subscription .acp-status-badge.acp-status-badge--na {
  color: #fbcfe8 !important; background: rgba(236, 72, 153, .18) !important; border: 1px solid rgba(244, 114, 182, .45) !important;
}
.acx-aurora.acp-layout--fullpage .acp-row--container-bundle .acp-status-badge.acp-status-badge--na {
  color: #fde68a !important; background: rgba(245, 158, 11, .18) !important; border: 1px solid rgba(251, 191, 36, .45) !important;
}
/* Lapsed subscription. */
.acx-aurora.acp-layout--fullpage .acp-status-badge.acp-status-badge--expired,
.acx-aurora.acp-layout--fullpage .acp-row--container-subscription .acp-status-badge.acp-status-badge--expired {
  color: #fecaca !important; background: rgba(239, 68, 68, .22) !important; border: 1px solid rgba(248, 113, 113, .55) !important;
}
/* The actions-column copy of the N/A / Expired label stays hidden (the
   Status column already says it), as before. */
.acx-aurora .acp-bundle-na-label { display: none !important; }

/* ── 5. Progress bars: glowing sky → indigo ─────────────────────────────── */
.acx-aurora.acp-layout--fullpage .acp-dt-progress .acp-progress-bar {
  width: 240px !important;
  max-width: 100% !important;
  height: 6px !important;
  margin: 0 0 6px !important;
  border: 0 !important;
  border-radius: 4px !important;
  background: rgba(255, 255, 255, .14) !important;
  overflow: hidden;
}
.acx-aurora.acp-layout--fullpage .acp-dt-progress .acp-progress-bar__fill,
.acx-aurora.acp-layout--fullpage .acp-dt-progress .acp-progress-bar__fill.acp-progress-bar__fill--complete {
  height: 100% !important;
  border-radius: 4px !important;
  background: linear-gradient(90deg, #38bdf8, #a5b4fc) !important;
  box-shadow: 0 0 10px rgba(56, 189, 248, .7);
}
.acx-aurora.acp-layout--fullpage .acp-dt-progress small {
  display: block;
  font-size: 12px !important;
  color: rgba(255, 255, 255, .82) !important;
}

/* ── 6. Buttons: pills ──────────────────────────────────────────────────── */
.acx-aurora.acp-layout--fullpage .acp-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 13px !important;
  border-radius: 999px !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  text-decoration: none !important;
  white-space: nowrap;
  vertical-align: middle;
  transition: background .18s, border-color .18s, box-shadow .18s, filter .18s !important;
}
/* Details / Learn More = translucent outline */
.acx-aurora.acp-layout--fullpage .acp-btn.acp-btn--outline {
  background: rgba(255, 255, 255, .08) !important;
  border: 1px solid rgba(255, 255, 255, .38) !important;
  color: #ffffff !important;
}
.acx-aurora.acp-layout--fullpage .acp-btn.acp-btn--outline:hover {
  background: rgba(255, 255, 255, .18) !important;
  border-color: rgba(255, 255, 255, .6) !important;
  color: #ffffff !important;
}
/* View Results / Enroll / Browse Modules = sky → indigo */
.acx-aurora.acp-layout--fullpage .acp-btn.acp-btn--primary,
.acx-aurora.acp-layout--fullpage .acp-btn.acp-btn--results {
  background: var(--ax-primary) !important;
  border: 0 !important;
  color: #ffffff !important;
  box-shadow: var(--ax-primary-glow) !important;
  padding: 7px 14px !important;
}
.acx-aurora.acp-layout--fullpage .acp-btn.acp-btn--primary:hover,
.acx-aurora.acp-layout--fullpage .acp-btn.acp-btn--results:hover {
  background: var(--ax-primary) !important;
  filter: brightness(1.12);
  color: #ffffff !important;
}
/* My Modules: Take Exam / Continue / Start / Review = gold, dark text. */
.acx-aurora.acp-layout--fullpage .acp-dt-actions .acp-btn.acp-btn--primary:not(.acp-btn--results) {
  background: var(--ax-gold-btn) !important;
  color: #1f1300 !important;
  box-shadow: 0 6px 18px rgba(245, 158, 11, .4) !important;
}
.acx-aurora.acp-layout--fullpage .acp-dt-actions .acp-btn.acp-btn--primary:not(.acp-btn--results):hover {
  background: var(--ax-gold-btn) !important;
  color: #1f1300 !important;
}
.acx-aurora.acp-layout--fullpage .acp-dt-actions .acp-btn + .acp-btn { margin-left: 4px; }
/* Catalog "Open in My Modules →" */
.acx-aurora .acp-catalog-open-link {
  margin-left: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ax-link) !important;
  text-decoration: none;
}
.acx-aurora .acp-catalog-open-link:hover { color: #bae6fd !important; text-decoration: underline; }

/* ── 7. My Modules: reorder bar + drag handles ───────────────────────────── */
.acx-aurora.acp-layout--fullpage .acp-reorder-bar {
  margin: 0 !important;
  padding: 0 40px 10px !important;
  font-size: 13px;
  color: rgba(255, 255, 255, .75) !important;
}
.acx-aurora .acp-reorder-bar__hint { color: rgba(255, 255, 255, .75); }
.acx-aurora .acp-reorder-bar__grip { color: #a5b4fc !important; }
.acx-aurora .acp-reorder-bar__status { color: #bbf7d0 !important; font-weight: 700; }
.acx-aurora .acp-reorder-bar__status.acp-reorder-bar__status--error { color: #fecaca !important; }
.acx-aurora.acp-layout--fullpage .acp-reorder-bar__reset {
  background: rgba(255, 255, 255, .08) !important;
  border: 1px solid rgba(255, 255, 255, .38) !important;
  border-radius: 999px !important;
  color: #ffffff !important;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 13px !important;
}
.acx-aurora.acp-layout--fullpage .acp-reorder-bar__reset:hover:not(:disabled) {
  background: rgba(255, 255, 255, .18) !important;
  border-color: rgba(255, 255, 255, .6) !important;
}
.acx-aurora.acp-layout--fullpage .acp-reorder-bar__reset:disabled { opacity: .55; cursor: default; }
.acx-aurora.acp-layout--fullpage .acp-reorder-bar__reset[hidden] { display: none !important; }

.acx-aurora.acp-layout--fullpage .acp-modern-table--reorderable thead tr th.acp-reorder-col,
.acx-aurora.acp-layout--fullpage .acp-modern-table--reorderable tbody tr td.acp-reorder-cell {
  width: 58px;
  padding-left: 10px !important;
  padding-right: 2px !important;
}
.acx-aurora .acp-reorder-handle,
.acx-aurora .acp-reorder-arrow {
  color: rgba(255, 255, 255, .6) !important;
  background: none !important;
  border-radius: 6px;
}
.acx-aurora .acp-reorder-handle:hover,
.acx-aurora .acp-reorder-handle:focus-visible,
.acx-aurora .acp-reorder-arrow:hover:not(:disabled),
.acx-aurora .acp-reorder-arrow:focus-visible {
  color: #ffffff !important;
  background: rgba(255, 255, 255, .14) !important;
}
.acx-aurora .acp-reorder-arrow:disabled { opacity: .3; }
.acx-aurora.acp-layout--fullpage .acp-modern-table tbody tr.acp-row--dragging td {
  background: rgba(125, 211, 252, .14) !important;
  box-shadow: inset 0 1px 0 var(--ax-gold), inset 0 -1px 0 var(--ax-gold);
}

/* ── 8. My Modules: table / empty-state spacing ──────────────────────────── */
.acx-aurora.acp-layout--fullpage .acp-dashboard .acp-table-scroll-wrap {
  padding: 0 40px 56px !important;
}
.acx-aurora.acp-layout--fullpage .acp-dashboard .acp-dashboard__empty {
  position: relative;
  box-sizing: border-box !important;
  width: auto !important;
  max-width: 640px !important;
  margin: 8px 40px 56px !important;
  padding: 40px 28px !important;
  text-align: center;
  background: var(--ax-glass) !important;
  -webkit-backdrop-filter: var(--ax-blur); backdrop-filter: var(--ax-blur);
  border: 1px solid var(--ax-glass-border) !important;
  border-radius: var(--ax-radius) !important;
  box-shadow: var(--ax-glass-shadow) !important;
  color: var(--ax-text);
}
.acx-aurora .acp-dashboard__empty p {
  margin: 0 0 18px !important;
  font-size: 16px;
  color: rgba(255, 255, 255, .88) !important;
}
.acx-aurora.acp-layout--fullpage .acp-dashboard__empty .acp-btn.acp-btn--primary {
  padding: 10px 22px !important;
  font-size: 14px !important;
}

/* ── 9. Catalog: filter card ─────────────────────────────────────────────── */
.acx-aurora.acp-layout--fullpage .acp-pro-filter-card {
  position: relative;
  background: var(--ax-glass) !important;
  -webkit-backdrop-filter: var(--ax-blur); backdrop-filter: var(--ax-blur);
  border: 1px solid var(--ax-glass-border) !important;
  border-radius: var(--ax-radius) !important;
  box-shadow: var(--ax-glass-shadow) !important;
  padding: 14px 20px !important;
  margin: 0 0 18px !important;
  color: var(--ax-text);
}
.acx-aurora.acp-layout--fullpage .acp-cert-filter label {
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}
.acx-aurora.acp-layout--fullpage .acp-cert-filter select {
  color-scheme: dark;
  min-width: 300px;
  max-width: 100%;
  padding: 8px 12px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(255, 255, 255, .28) !important;
  background-color: rgba(255, 255, 255, .08) !important;
  color: #ffffff !important;
  font-size: 13px !important;
}
.acx-aurora.acp-layout--fullpage .acp-cert-filter select option {
  background: #141c38;
  color: #ffffff;
}
.acx-aurora .acp-cert-filter-clear { color: var(--ax-link) !important; }
.acx-aurora .acp-type-filter__btn {
  padding: 6px 14px !important;
  border-radius: 999px !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  color: #e2e8f0 !important;
  background: rgba(255, 255, 255, .08) !important;
  border: 1px solid rgba(255, 255, 255, .30) !important;
}
.acx-aurora .acp-type-filter__btn:hover {
  background: rgba(255, 255, 255, .16) !important;
  border-color: rgba(255, 255, 255, .5) !important;
  color: #ffffff !important;
}
.acx-aurora .acp-type-filter__btn.is-active {
  background: var(--ax-primary) !important;
  border-color: transparent !important;
  color: #ffffff !important;
  box-shadow: var(--ax-primary-glow);
}
.acx-aurora.acp-layout--fullpage .acp-page-panel {
  padding-bottom: 56px !important;
}
.acx-aurora.acp-layout--fullpage .acp-page-panel > p {   /* "No modules are currently available." */
  color: rgba(255, 255, 255, .85);
}

/* ── 10. Catalog: "My Modules" sidebar as a glass panel ──────────────────── */
.acx-aurora.acp-layout--fullpage > .acp-sidebar {
  flex: 0 0 270px !important;
  width: 270px !important;
  align-self: flex-start !important;
  margin: 24px 0 40px 0 !important;
  max-height: none !important;
  background: var(--ax-glass) !important;
  -webkit-backdrop-filter: var(--ax-blur); backdrop-filter: var(--ax-blur);
  border: 1px solid var(--ax-glass-border) !important;
  border-left: 0 !important;
  border-radius: 0 var(--ax-radius) var(--ax-radius) 0 !important;
  box-shadow: var(--ax-glass-shadow) !important;
  color: var(--ax-text);
  scrollbar-color: rgba(255, 255, 255, .25) transparent;
}
.acx-aurora.acp-layout--fullpage .acp-sb-header {
  min-height: 0 !important;
  background: transparent !important;
  padding: 20px 22px !important;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  border-radius: 0 !important;
  letter-spacing: 0 !important;
}
.acx-aurora.acp-layout--fullpage .acp-sb-header > span {
  font-family: 'Lato', sans-serif !important;
  font-size: 1.4rem !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  margin: 0 !important;
}
.acx-aurora.acp-layout--fullpage .acp-sb-header::after {
  font-size: 12px;
  color: rgba(255, 255, 255, .75);
}
.acx-aurora .acp-sb-nav { background: transparent !important; }
.acx-aurora .acp-sb-item--module {
  padding: 12px 22px !important;
  border-bottom: 1px solid rgba(255, 255, 255, .08) !important;
  background: transparent !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}
.acx-aurora .acp-sb-item--module:last-child { border-bottom: 0 !important; }
.acx-aurora .acp-sb-item--module:hover { background: rgba(255, 255, 255, .07) !important; }
.acx-aurora .acp-sb-item--module.acp-sb-item--active {
  background: linear-gradient(90deg, rgba(99, 102, 241, .40), rgba(14, 165, 233, .20)) !important;
}
.acx-aurora .acp-sb-module-toggle-spacer { display: none; }
.acx-aurora .acp-sb-module-link { color: #ffffff !important; }
.acx-aurora .acp-sb-item__name,
.acx-aurora .acp-sb-item--active .acp-sb-item__name {
  display: block;
  color: #ffffff !important;
  font-weight: 500 !important;
  line-height: 1.3;
}
.acx-aurora .acp-sb-item__type,
.acx-aurora .acp-sb-item__type.acp-sb-item__type--practice-exam {
  display: inline-flex !important;
  width: auto;
  margin-bottom: 5px;
  padding: 1px 8px !important;
  border-radius: 999px !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  letter-spacing: .01em !important;
  text-transform: none !important;
  border: 1px solid rgba(125, 211, 252, .45) !important;
  background: rgba(14, 165, 233, .18) !important;
  color: #bae6fd !important;
}
.acx-aurora .acp-sb-item__type.acp-sb-item__type--subscription {
  color: #fbcfe8 !important; background: rgba(236, 72, 153, .18) !important; border-color: rgba(244, 114, 182, .45) !important;
}
.acx-aurora .acp-sb-item__type.acp-sb-item__type--bundle {
  color: #fde68a !important; background: rgba(245, 158, 11, .18) !important; border-color: rgba(251, 191, 36, .45) !important;
}
.acx-aurora .acp-sb-item__type.acp-sb-item__type--course {
  color: #99f6e4 !important; background: rgba(20, 184, 166, .18) !important; border-color: rgba(45, 212, 191, .45) !important;
}

/* ── 11. Pop-up message toast (appended to <body>, so scoped by :has) ───── */
body:has(.acx-aurora) .acp-toast {
  background: rgba(17, 24, 52, .94);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, .22);
  border-left: 5px solid #4ade80;
  border-radius: 14px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .2);
}
body:has(.acx-aurora) .acp-toast.acp-toast--warning { border-left-color: #fbbf24; }
body:has(.acx-aurora) .acp-toast.acp-toast--error { border-left-color: #f87171; }
body:has(.acx-aurora) .acp-toast .acp-toast__icon { background: #4ade80; color: #052e16; }
body:has(.acx-aurora) .acp-toast.acp-toast--warning .acp-toast__icon { background: #fbbf24; color: #1f1300; }
body:has(.acx-aurora) .acp-toast.acp-toast--error .acp-toast__icon { background: #f87171; color: #2a0505; }
body:has(.acx-aurora) .acp-toast .acp-toast__body,
body:has(.acx-aurora) .acp-toast .acp-toast__body * { color: #ffffff !important; }
body:has(.acx-aurora) .acp-toast .acp-toast__body a { color: #7dd3fc !important; }
body:has(.acx-aurora) .acp-toast .acp-toast__close { color: rgba(255, 255, 255, .75); }
body:has(.acx-aurora) .acp-toast .acp-toast__close:hover,
body:has(.acx-aurora) .acp-toast .acp-toast__close:focus-visible { color: #ffffff; }
body:has(.acx-aurora) .acp-toast .acp-toast__close:focus-visible { outline: 2px solid #7dd3fc; outline-offset: 2px; border-radius: 4px; }

/* ── 12. Tablet (≤ 900px): sidebar collapses to the "My Modules" button ─── */
@media (max-width: 900px) {
  .acx-aurora.acp-layout--fullpage > .acp-sidebar {
    width: auto !important;
    margin: 0 !important;
    padding: 16px 16px 0 !important;
    background: transparent !important;
    -webkit-backdrop-filter: none; backdrop-filter: none;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
  .acx-aurora .acp-sb-mobile-btn {
    background: var(--ax-glass) !important;
    -webkit-backdrop-filter: var(--ax-blur); backdrop-filter: var(--ax-blur);
    border: 1px solid var(--ax-glass-border) !important;
    border-radius: 999px !important;
    box-shadow: var(--ax-glass-shadow) !important;
    color: #ffffff !important;
  }
  .acx-aurora .acp-sb-mobile-btn:hover,
  .acx-aurora .acp-sb-mobile-btn:active { background: rgba(255, 255, 255, .16) !important; }
  .acx-aurora.acp-layout--fullpage .acp-hero-header.acp-pro-hero { align-items: flex-start !important; }
}

/* ── 13. Phone (≤ 768px): 16px gutters ──────────────────────────────────── */
@media (max-width: 768px) {
  .acx-aurora.acp-layout--fullpage .acp-hero-header.acp-pro-hero {
    padding: 28px 16px 20px !important;
    text-align: left !important;
  }
  .acx-aurora.acp-layout--fullpage .acp-page-panel .acp-hero-header.acp-pro-hero { padding: 24px 0 18px !important; }
  .acx-aurora.acp-layout--fullpage .acp-hero-header__title,
  .acx-aurora.acp-layout--fullpage .acp-pro-hero h1 { font-size: 1.75rem !important; }
  .acx-aurora .acp-pro-stats { width: 100%; }
  .acx-aurora .acp-pro-stat { flex: 1 1 0; min-width: 0; padding: 10px 8px; }
  .acx-aurora .acp-pro-stat b { font-size: 1.35rem; }
  .acx-aurora.acp-layout--fullpage .acp-reorder-bar { padding: 0 16px 10px !important; }
  .acx-aurora.acp-layout--fullpage .acp-dashboard .acp-table-scroll-wrap { padding: 0 16px 32px !important; }
  .acx-aurora.acp-layout--fullpage .acp-dashboard .acp-dashboard__empty { margin: 8px 16px 32px !important; }
  .acx-aurora.acp-layout--fullpage .acp-page-panel { padding: 0 16px 32px !important; }
  .acx-aurora.acp-layout--fullpage .acp-pro-filter-card { padding: 14px 16px !important; }
  .acx-aurora.acp-layout--fullpage .acp-cert-filter { flex-wrap: wrap; width: 100%; }
  .acx-aurora.acp-layout--fullpage .acp-cert-filter select { min-width: 0; width: 100%; }
}

/* ── 14. Phone (≤ 700px): table rows become glass cards ─────────────────── */
@media (max-width: 700px) {
  /* The table stops being the panel; each row is its own glass card. */
  .acx-aurora.acp-layout--fullpage .acp-modern-table,
  .acx-aurora.acp-layout--fullpage .acp-catalog-modern-table {
    background: transparent !important;
    -webkit-backdrop-filter: none; backdrop-filter: none;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: visible;
  }
  .acx-aurora.acp-layout--fullpage .acp-modern-table tbody tr,
  .acx-aurora.acp-layout--fullpage .acp-catalog-modern-table tbody tr {
    position: relative;
    box-sizing: border-box;
    background: var(--ax-glass) !important;
    -webkit-backdrop-filter: var(--ax-blur); backdrop-filter: var(--ax-blur);
    border: 1px solid var(--ax-glass-border) !important;
    border-radius: 14px !important;
    box-shadow: 0 8px 26px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .25) !important;
    margin: 0 0 12px !important;
    padding: 12px 14px !important;
  }
  .acx-aurora.acp-layout--fullpage .acp-modern-table tbody tr.acp-row--container-subscription,
  .acx-aurora.acp-layout--fullpage .acp-catalog-modern-table tbody tr[data-acp-type="subscription"] {
    background: linear-gradient(90deg, rgba(236, 72, 153, .24), rgba(236, 72, 153, .04)), var(--ax-glass) !important;
    border-color: rgba(244, 114, 182, .45) !important;
  }
  .acx-aurora.acp-layout--fullpage .acp-modern-table tbody tr.acp-row--container-bundle,
  .acx-aurora.acp-layout--fullpage .acp-catalog-modern-table tbody tr[data-acp-type="bundle"] {
    background: linear-gradient(90deg, rgba(245, 158, 11, .24), rgba(245, 158, 11, .04)), var(--ax-glass) !important;
    border-color: rgba(251, 191, 36, .45) !important;
  }
  .acx-aurora.acp-layout--fullpage .acp-modern-table tbody tr.acp-row--free-new {
    background: linear-gradient(90deg, rgba(34, 197, 94, .24), rgba(34, 197, 94, .04)), var(--ax-glass) !important;
    border-color: rgba(74, 222, 128, .55) !important;
  }
  /* Members of a subscription/bundle: indented cards with a faint rail. */
  .acx-aurora.acp-layout--fullpage .acp-modern-table tbody tr.acp-row--member {
    margin-left: 14px !important;
    width: calc(100% - 14px) !important;
  }
  .acx-aurora.acp-layout--fullpage .acp-modern-table tbody tr.acp-row--member {
    border-left: 3px solid rgba(125, 211, 252, .45) !important;
  }
  .acx-aurora.acp-layout--fullpage .acp-modern-table tbody tr td,
  .acx-aurora.acp-layout--fullpage .acp-catalog-modern-table tbody tr td {
    box-sizing: border-box !important;
    border: 0 !important;
    padding: 5px 0 !important;
    font-size: 14px !important;
    align-items: center !important;
  }
  .acx-aurora.acp-layout--fullpage .acp-modern-table tbody tr:hover td,
  .acx-aurora.acp-layout--fullpage .acp-catalog-modern-table tbody tr:hover td,
  .acx-aurora.acp-layout--fullpage .acp-modern-table tbody tr.acp-row--free-new.acp-row--free-new.acp-row--free-new:hover td {
    background: transparent !important;
  }
  /* Field labels (data-label). */
  .acx-aurora.acp-layout--fullpage .acp-modern-table td::before,
  .acx-aurora.acp-layout--fullpage .acp-catalog-modern-table td::before {
    color: rgba(255, 255, 255, .82) !important;
    font-size: 10.5px !important;
    letter-spacing: .08em !important;
    flex: 0 0 74px !important;
    padding-top: 0 !important;
  }
  /* Card title: the module name, full width, no label. */
  .acx-aurora.acp-layout--fullpage .acp-modern-table tbody tr td.acp-dt-title,
  .acx-aurora.acp-layout--fullpage .acp-catalog-modern-table tbody tr td.acp-catalog-title-cell {
    display: block !important;
    padding: 2px 0 10px !important;
    margin-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, .12) !important;
    font-size: 15.5px !important;
    font-weight: 700 !important;
  }
  .acx-aurora.acp-layout--fullpage .acp-modern-table td.acp-dt-title::before,
  .acx-aurora.acp-layout--fullpage .acp-catalog-modern-table td.acp-catalog-title-cell::before,
  .acx-aurora.acp-layout--fullpage .acp-modern-table--reorderable .acp-row--member .acp-dt-title::before {
    content: none !important;
    display: none !important;
  }
  .acx-aurora.acp-layout--fullpage .acp-modern-table--reorderable .acp-row--member .acp-dt-title {
    padding-left: 0 !important;
  }
  .acx-aurora.acp-layout--fullpage .acp-catalog-title-link { font-weight: 700 !important; }
  /* Reorder handle + arrows: compact, top-right corner of the card. */
  .acx-aurora.acp-layout--fullpage .acp-modern-table--reorderable tbody tr td.acp-reorder-cell {
    position: absolute !important;
    top: 6px; right: 6px;
    width: auto !important;
    padding: 0 !important;
    display: block !important;
  }
  .acx-aurora.acp-layout--fullpage .acp-modern-table--reorderable td.acp-reorder-cell::before { content: none !important; display: none !important; }
  .acx-aurora .acp-reorder-cell__inner { gap: 2px; }
  .acx-aurora .acp-reorder-arrows { flex-direction: row; gap: 2px; }
  .acx-aurora .acp-reorder-handle { font-size: 20px !important; padding: 8px 8px !important; }
  .acx-aurora .acp-reorder-arrow { font-size: 12px !important; padding: 8px 8px !important; }
  .acx-aurora.acp-layout--fullpage .acp-modern-table--reorderable tbody tr td.acp-dt-title { padding-right: 104px !important; min-height: 40px; }
  /* Progress: bar fills the value column. */
  .acx-aurora.acp-layout--fullpage .acp-modern-table td.acp-dt-progress { flex-wrap: wrap; }
  .acx-aurora.acp-layout--fullpage .acp-modern-table td.acp-dt-progress > * { flex: 1 1 calc(100% - 90px); }
  .acx-aurora.acp-layout--fullpage .acp-modern-table td.acp-dt-progress small { margin-left: 82px; }
  .acx-aurora.acp-layout--fullpage .acp-dt-progress .acp-progress-bar { width: auto !important; margin: 0 !important; }
  /* Actions: buttons side by side, filling the row. */
  .acx-aurora.acp-layout--fullpage .acp-modern-table tbody tr td.acp-dt-actions,
  .acx-aurora.acp-layout--fullpage .acp-catalog-modern-table tbody tr td:last-child {
    flex-wrap: wrap !important;
    gap: 8px !important;
    padding-top: 10px !important;
  }
  .acx-aurora.acp-layout--fullpage .acp-modern-table td.acp-dt-actions::before,
  .acx-aurora.acp-layout--fullpage .acp-catalog-modern-table td:last-child::before { content: none !important; display: none !important; }
  .acx-aurora.acp-layout--fullpage .acp-modern-table td .acp-btn,
  .acx-aurora.acp-layout--fullpage .acp-catalog-modern-table td .acp-btn {
    display: inline-flex !important;
    flex: 1 1 0 !important;
    width: auto !important;
    margin: 0 !important;
    padding: 9px 12px !important;
    font-size: 13px !important;
  }
  .acx-aurora.acp-layout--fullpage .acp-dt-actions .acp-btn + .acp-btn { margin-left: 0 !important; }
  .acx-aurora .acp-catalog-modern-table .acp-catalog-open-link { margin-left: 0; align-self: center; }
}

@media (prefers-reduced-motion: reduce) {
  .acx-aurora.acp-layout--fullpage .acp-btn,
  .acx-aurora .acp-type-filter__btn { transition: none !important; }
}

/* ── Count tiles as filters (20261010) ──────────────────────────────────── */
.acx-aurora .acp-pro-stats--filters { flex-wrap: wrap; justify-content: flex-end; }
.acx-aurora button.acp-pro-stat {
  font: inherit; color: #fff; cursor: pointer;
  transition: transform .15s, box-shadow .15s, border-color .15s, background .15s;
}
.acx-aurora button.acp-pro-stat:hover {
  transform: translateY(-2px);
  border-color: rgba(125, 211, 252, .6);
  background: var(--ax-glass-strong);
}
.acx-aurora button.acp-pro-stat:focus-visible { outline: 2px solid #7dd3fc; outline-offset: 3px; }
.acx-aurora button.acp-pro-stat.is-active {
  border-color: rgba(125, 211, 252, .9);
  background: linear-gradient(135deg, rgba(14, 165, 233, .38), rgba(99, 102, 241, .32));
  box-shadow: 0 0 0 1px rgba(125, 211, 252, .55), 0 0 26px rgba(56, 189, 248, .45), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.acx-aurora button.acp-pro-stat.is-active span { color: #fff; }
.acx-aurora .acp-filter-empty { color: var(--ax-muted); padding: 22px; }
.acx-aurora .acp-modern-table tr.acp-row--context { opacity: .55; }
.acx-aurora .acp-reorder-bar__filtered { color: var(--ax-muted); }
@media (max-width: 768px) {
  .acx-aurora .acp-pro-stats--filters { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; }
  .acx-aurora .acp-pro-stats--filters .acp-pro-stat { min-width: 0; }
}
