/**
 * InsidePiano — OS Membership: Signup, Plans, Subscription History,
 * Upgrades, Upsell, Suscripciones, Planes de Suscripción
 */

/* ═══════════════════════════════════════════════════════════════
   COM_OSMEMBERSHIP — Registration / Checkout Page
   #osm-signup-page (view=register)
   ═══════════════════════════════════════════════════════════════ */

/* Wrapper: card-like container */
#osm-signup-page.osm-container {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  margin: 0;
}

/* Tighten breadcrumb-to-card gap on OSM register page */
body.osm-register-page .page-content {
  margin-top: 0.5rem !important;
}

/* Make Conca's content card transparent on OSM register page — applied via JS below */
#osm-signup-page ~ * .demo-card,
body.osm-register-page .demo-card {
  background: transparent !important;
  box-shadow: none !important;
}

/* Page title: matches CB card header style (icon + bold white text) */
#osm-signup-page .osm-page-title {
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  color: #c8c8cd !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  margin: 0 0 1.25rem 0 !important;
  padding: 0 0 1rem 0 !important;
  border: none !important;
  border-bottom: 1px solid #2e2e33 !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
}

#osm-signup-page .osm-page-title .osm-title-icon,
#osm-signup-page .osm-card h3.osm-heading .osm-title-icon {
  font-size: 1.2rem !important;
  color: #7367f0 !important;
  flex-shrink: 0;
}

/* Intro message text */
#osm-signup-page .osm-message,
#osm-signup-page > p {
  color: #939397;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

/* Bold plan name in intro paragraph */
#osm-signup-page > p strong,
#osm-signup-page > p b {
  color: #c8c8cd;
}

/* ── Section heading: "Información de Pago" ─────────────────── */
#osm-signup-page h3.osm-heading {
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  color: #57575a !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  border-top: 1px solid #2e2e33 !important;
  padding-top: 1.5rem !important;
  margin: 2rem 0 1rem 0 !important;
}

/* ── Section cards ─────────────────────────────────────────── */
#osm-signup-page .osm-card {
  background: #1F1F21;
  border: 1px solid #2e2e33;
  border-radius: 0.5rem;
  padding: 0.75rem 1.25rem;
  margin-bottom: 1rem;
}

/* Section heading: matches CB card header style (icon + bold white text) */
#osm-signup-page .osm-card h3.osm-heading {
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  color: #c8c8cd !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  border-top: none !important;
  border-bottom: 1px solid #2e2e33 !important;
  padding: 0 0 1rem 0 !important;
  margin-top: 0 !important;
  margin-bottom: 1.25rem !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
}

/* ── Override OSM hardcoded 240px input width ─────────────── */
/* Personal info inputs: capped width on desktop, full-width on mobile */
#osm-signup-page.osm-container .eb-form-control > input[type="text"],
#osm-signup-page.osm-container .eb-form-control > input[type="email"],
#osm-signup-page.osm-container .eb-form-control > input[type="tel"],
#osm-signup-page.osm-container .eb-form-control > input[type="password"] {
  width: 100% !important;
  max-width: 400px !important;
}
@media (max-width: 767px) {
  #osm-signup-page.osm-container .eb-form-control > input[type="text"],
  #osm-signup-page.osm-container .eb-form-control > input[type="email"],
  #osm-signup-page.osm-container .eb-form-control > input[type="tel"],
  #osm-signup-page.osm-container .eb-form-control > input[type="password"] {
    max-width: 100% !important;
  }
}
/* Coupon field capped */
#osm-signup-page.osm-container .osm-coupon-container .eb-form-control input {
  width: 100% !important;
  max-width: 400px !important;
}
@media (max-width: 767px) {
  #osm-signup-page.osm-container .osm-coupon-container .eb-form-control input {
    max-width: 100% !important;
  }
}

/* ── Form rows ─────────────────────────────────────────────── */
#osm-signup-page .row {
  margin-bottom: 0.75rem;
  align-items: center;
}

/* Labels */
#osm-signup-page label {
  color: #939397 !important;
  font-size: 0.875rem !important;
  font-weight: 400 !important;
  margin-bottom: 0 !important;
}

/* Required star */
#osm-signup-page .star,
#osm-signup-page .required {
  color: #ea5455 !important;
  margin-left: 2px;
}

/* ── Inputs ─────────────────────────────────────────────────── */
#osm-signup-page .form-control {
  background-color: #161618 !important;
  border: 1px solid #2e2e33 !important;
  color: #c8c8cd !important;
  border-radius: 0.375rem !important;
  padding: 0.5rem 0.75rem !important;
  font-size: 0.9rem !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#osm-signup-page .form-control:focus {
  background-color: #161618 !important;
  border-color: rgba(115,103,240,0.7) !important;
  box-shadow: 0 0 0 1px rgba(115,103,240,0.25) !important;
  color: #c8c8cd !important;
  outline: none !important;
}

/* Readonly price inputs: slightly dimmed */
#osm-signup-page .form-control[readonly] {
  color: #939397 !important;
  background-color: #161618 !important;
  cursor: default;
}

/* ── Currency input-group ($ prepend) ───────────────────────── */
#osm-signup-page .input-group {
  flex-wrap: nowrap;
}

#osm-signup-page .input-group-text {
  background-color: #2e2e33 !important;
  border: 1px solid #2e2e33 !important;
  color: #939397 !important;
  border-radius: 0.375rem 0 0 0.375rem !important;
  font-size: 0.875rem !important;
  padding: 0.5rem 0.65rem !important;
}

#osm-signup-page .input-group .input-group-text + .form-control {
  border-radius: 0 0.375rem 0.375rem 0 !important;
}

/* ── Coupon error message ───────────────────────────────────── */
#osm-signup-page .invalid,
#osm-signup-page #coupon_validate_msg {
  color: #ea5455 !important;
  font-size: 0.8rem !important;
  display: block;
  margin-top: 0.25rem;
}

/* ── Select dropdowns (expiry month/year) ───────────────────── */
#osm-signup-page select.form-control,
#osm-signup-page select {
  background-color: #161618 !important;
  border: 1px solid #2e2e33 !important;
  color: #c8c8cd !important;
  border-radius: 0.375rem !important;
  padding: 0.45rem 0.75rem !important;
  font-size: 0.875rem !important;
  cursor: pointer;
  appearance: auto;
}

/* ── Payment method radio list ──────────────────────────────── */
#osm-payment-method-list {
  border: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.osm-payment-method-item {
  display: flex;
  align-items: center;
}

.osm-payment-method-item label {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  cursor: pointer !important;
  padding: 0.4rem 0 !important;
  color: #c8c8cd !important;
  font-size: 0.9rem !important;
}

.osm-payment-method-item input[type="radio"] {
  accent-color: #7367f0;
  width: 1rem;
  height: 1rem;
  cursor: pointer;
  flex-shrink: 0;
}

/* ── Form actions / submit button ───────────────────────────── */
#osm-signup-page .form-actions {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #2e2e33;
  display: flex;
  align-items: center;
  gap: 1rem;
}

#osm-signup-page #btn-submit {
  background: rgba(115,103,240,0.12) !important;
  border: 1px solid rgba(115,103,240,0.6) !important;
  color: #9f92fe !important;
  border-radius: 0.375rem !important;
  padding: 0.55rem 2rem !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  cursor: pointer !important;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease !important;
}

#osm-signup-page #btn-submit:hover {
  background: rgba(115,103,240,0.22) !important;
  border-color: rgba(115,103,240,0.9) !important;
  color: #c4baff !important;
  box-shadow: 0 0 0 1px rgba(115,103,240,0.25) !important;
}

/* ── Loading animation ──────────────────────────────────────── */
#ajax-loading-animation {
  opacity: 0.7;
}

/* ── Breadcrumb tweak for this page ────────────────────────── */
.com_osmembership .breadcrumb {
  background: transparent !important;
  padding: 0.5rem 0 !important;
}

/* ============================================================
   OS MEMBERSHIP — Suscripciones Page Modules
   Targets: Dashboard OS History / Dashboard OS Renew / Dashboard OS Upgrade
   Rendered inside article 1090 via {module} shortcode tags
   Structure confirmed via live DOM:
     History  → h2 + form > table (thead + tbody)
     Upgrade  → h2 + form > ul[radio options] + button[submit]
     Renew    → same as Upgrade, shown only on expired state
   ============================================================ */

/* ---- Hide raw article metadata on this page ---- */
.item-page dl.article-info {
    display: none !important;
}

/* ---- Section headings (Suscripciones page modules — NOT Planes page) ---- */
.demo-card:has(#osm-subscription-history) .item-page .com-content-article__body h2 {
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    color: rgba(255,255,255,0.35) !important;
    margin: 1.75rem 0 0.85rem !important;
    padding: 0 !important;
    border: none !important;
}

.demo-card:has(#osm-subscription-history) .item-page .com-content-article__body h2:first-child {
    margin-top: 0.25rem !important;
}

/* ---- Planes page section header h2 — design system tokens ---- */
.ip-pricing .section-header h2 {
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    color: #939397 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    line-height: 1.2 !important;
}

/* ============================================================
   UPGRADE / RENEW FORM — Dashboard OS Upgrade & OS Renew
   ============================================================ */

/* Form card wrapper */
.item-page .com-content-article__body form:has(ul) {
    background: #1F1F21;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Intro paragraph — OS Membership renders it as a <p> sibling directly before <form> */
/* Using adjacent combinator via the form's own selector since :has(+ form) may not match across wrappers */
.item-page .com-content-article__body form:has(ul) + * {
    /* nothing — form comes AFTER the p, so we target the p another way */
}
/* Target any <p> that directly precedes a form containing a <ul> */
.com-content-article__body > p + form:has(ul),
.com-content-article__body p ~ form:has(ul) {
    /* form itself — no change needed */
}
/* Style the intro paragraph using h2 ~ p proximity — any <p> between the upgrade h2 and the form */
.item-page .com-content-article__body h2 ~ p {
    font-size: 0.82rem !important;
    color: rgba(255,255,255,0.45) !important;
    line-height: 1.5 !important;
    margin-bottom: 0.75rem !important;
}
.item-page .com-content-article__body h2 ~ p strong {
    color: rgba(255,255,255,0.6) !important;
    font-weight: 500 !important;
}

/* Any <p> directly inside the upgrade/renew form card */
.item-page .com-content-article__body form:has(ul) > p {
    font-size: 0.82rem !important;
    color: rgba(255,255,255,0.35) !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.5 !important;
    min-height: 0 !important;
}

/* Kill empty/whitespace p spacers and brs inside the form card */
.item-page .com-content-article__body form:has(ul) > p:empty,
.item-page .com-content-article__body form:has(ul) > br {
    display: none !important;
}

/* Radio list */
.item-page .com-content-article__body form ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 1.5rem 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
}

/* Radio option row */
.item-page .com-content-article__body form ul li {
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
    padding: 0.875rem 1rem !important;
    background: rgba(255,255,255,0.03) !important;
    border: 1px solid rgba(255,255,255,0.07) !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: border-color 0.2s ease, background 0.2s ease !important;
}

.item-page .com-content-article__body form ul li:hover {
    background: rgba(108,92,231,0.06) !important;
    border-color: rgba(108,92,231,0.3) !important;
}

/* Custom radio input */
.item-page .com-content-article__body form ul li input[type="radio"] {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 1rem !important;
    height: 1rem !important;
    min-width: 1rem !important;
    border-radius: 50% !important;
    border: 2px solid rgba(255,255,255,0.25) !important;
    background: transparent !important;
    cursor: pointer !important;
    margin-top: 2px !important;
    flex-shrink: 0 !important;
    transition: border-color 0.15s ease !important;
}

.item-page .com-content-article__body form ul li input[type="radio"]:checked {
    border-color: #6c5ce7 !important;
    background-color: #6c5ce7 !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%23fff'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}

/* Label */
.item-page .com-content-article__body form ul li label {
    font-size: 0.875rem !important;
    color: rgba(255,255,255,0.75) !important;
    line-height: 1.5 !important;
    cursor: pointer !important;
    margin: 0 !important;
}

/* Submit button */
.item-page .com-content-article__body form input[type="submit"],
.item-page .com-content-article__body form button[type="submit"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.65rem 1.75rem !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.03em !important;
    color: #fff !important;
    background: #6c5ce7 !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    text-transform: uppercase !important;
    box-shadow: 0 4px 16px rgba(108,92,231,0.3) !important;
    transition: opacity 0.15s ease, transform 0.15s ease !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    /* Kill Bootstrap btn tokens */
    --bs-btn-color: #fff !important;
    --bs-btn-bg: #6c5ce7 !important;
    --bs-btn-hover-color: #fff !important;
    --bs-btn-hover-bg: #5a4bd1 !important;
    --bs-btn-border-color: transparent !important;
}

.item-page .com-content-article__body form input[type="submit"]:hover,
.item-page .com-content-article__body form button[type="submit"]:hover {
    opacity: 0.88 !important;
    transform: translateY(-1px) !important;
}

.item-page .com-content-article__body form input[type="submit"]:active,
.item-page .com-content-article__body form button[type="submit"]:active {
    opacity: 0.96 !important;
    transform: translateY(0) !important;
}

/* ============================================================
   UPSELL BANNER — Lifetime pitch for monthly users
   Element injected by JS (ip-dashboard-subs.js)
   ============================================================ */

.ip-upsell-banner {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: rgba(245,158,11,0.1);
    border: 1px solid rgba(245,158,11,0.25);
    border-radius: 12px;
    margin-bottom: 2rem;
}

.ip-upsell-banner__icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: rgba(245,158,11,0.12);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f59e0b;
}

.ip-upsell-banner__body {
    flex: 1;
    min-width: 0;
}

.ip-upsell-banner__title {
    font-size: 16px;
    font-weight: 600;
    color: #f59e0b;
    margin: 0 0 0.3rem;
}

.ip-upsell-banner__text {
    font-size: 16px;
    color: rgba(255,255,255,0.9);
    margin: 0 0 0.85rem;
    line-height: 1.5;
}

.ip-upsell-banner__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.45rem 1.1rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #f59e0b !important;
    background: rgba(245,158,11,0.12);
    border: 1px solid rgba(245,158,11,0.35);
    border-radius: 6px;
    text-decoration: none !important;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.ip-upsell-banner__cta:hover {
    background: rgba(245,158,11,0.22) !important;
    border-color: rgba(245,158,11,0.6) !important;
    color: #f59e0b !important;
}

/* ---- Premium variant — purple theme ---- */
.ip-upsell-banner--premium {
    background: rgba(115,103,240,0.08);
    border-color: rgba(115,103,240,0.25);
}
.ip-upsell-banner--premium .ip-upsell-banner__icon {
    background: rgba(115,103,240,0.12);
    color: #7367f0;
}
.ip-upsell-banner--premium .ip-upsell-banner__title {
    color: #7367f0;
}
.ip-upsell-banner--premium .ip-upsell-banner__cta {
    color: #7367f0 !important;
    background: rgba(115,103,240,0.12);
    border-color: rgba(115,103,240,0.35);
}
.ip-upsell-banner--premium .ip-upsell-banner__cta:hover {
    background: rgba(115,103,240,0.22) !important;
    border-color: rgba(115,103,240,0.6) !important;
    color: #9f92fe !important;
}

/* ---- Unlimited variant — amber theme (explicit, keeps default) ---- */
.ip-upsell-banner--unlimited {
    background: rgba(245,158,11,0.1);
    border-color: rgba(245,158,11,0.25);
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
    .item-page .com-content-article__body form table thead th,
    .item-page .com-content-article__body form table tbody td {
        padding: 0.75rem 0.875rem !important;
        font-size: 0.8rem !important;
    }
    .item-page .com-content-article__body form:has(ul) {
        padding: 1.1rem !important;
    }
    .ip-upsell-banner {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* ============================================================
   SUSCRIPCIONES PAGE — Layout & card fixes
   Scoped via :has() on OSM module IDs unique to article 1090
   ============================================================ */

/* 1. Remove outer demo-card wrapper background —
      cards (#osm-subscription-history, #osm-upgrade-options-page)
      sit directly on the page bg (#161618), not inside a mega-card */
.demo-card:has(#osm-subscription-history),
.demo-card:has(#osm-upgrade-options-page) {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

/* Remove demo-card-body padding — prevents ghost spacing */
.demo-card:has(#osm-subscription-history) .demo-card-body,
.demo-card:has(#osm-upgrade-options-page) .demo-card-body {
    padding: 0 !important;
}

/* Remove .moduletable background — actual card bg comes from
   #osm-subscription-history and #osm-upgrade-options-page */
.moduletable:has(#osm-subscription-history),
.moduletable:has(#osm-upgrade-options-page) {
    background: transparent !important;
    border-radius: 0 !important;
}

/* 2. Remove white line — border-top on #adminForm (history table form)
      creates a faint line between the section title and table header */
#osm-subscription-history #adminForm {
    border-top: none !important;
}

/* 3. Upgrade/Renew submit button — overridden by high-specificity rule at end of file */

/* Fix OSM component CSS overrides (media/com_osmembership/assets/css/custom.css loads after ours) */
#osm-subscription-history .table {
    margin-top: 0 !important;
}

/* Kill the uppercase/letter-spacing from OSM component CSS on our button */
#osm-upgrade-options-page .btn,
#osm-renew-options-page .btn,
#osm_form_update_membership .btn,
#osm_form_renew .btn {
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-size: 0.875rem !important;
}

/* ============================================
   OS MEMBERSHIP - ACTIVE STATE STYLING
   Targets: #osm-subscription-history, #osm-upgrade-options-page
   ============================================ */

/* Hide article metadata on subscription pages */
.com-content-article__info,
.article-info { display: none !important; }

.demo-card:has(#osm-subscription-history) nav[aria-label="Navegación de página"],
.com_osmembership nav[aria-label="Navegación de página"] { display: none !important; }

/* OSM container reset */
.osm-container { padding: 0; }

/* Section headings */
.osm-container .osm-page-title {
  font-size: 0.65rem !important;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45) !important;
  margin: 2rem 0 1rem !important;
  padding: 0 !important;
  border: none !important;
}

/* ---- HISTORY TABLE ---- */
#osm-subscription-history {
  background: #1f1f21;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 0;
  padding: 1.4rem 1.5rem 0.75rem !important;
}

/* Override generic article form styles bleeding in */
#osm-subscription-history #adminForm {
  margin-bottom: 0 !important;
  background: transparent !important;
  border: none !important;
}

/* Kill the generic article form:has(ul) rule bleeding into OSM upgrade/renew forms
   Must use .item-page .com-content-article__body prefix to match specificity of the bleeding rule */
.item-page .com-content-article__body #osm_form_update_membership,
.item-page .com-content-article__body #osm_form_renew,
#osm-upgrade-options-page form,
#osm-renew-options-page form,
#osm_form_update_membership,
#osm_form_renew {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin-bottom: 0 !important;
}

#osm-subscription-history .osm-page-title,
#osm-upgrade-options-page .osm-page-title,
#osm-renew-options-page .osm-page-title {
  font-size: 1rem !important;
  font-weight: 600 !important;
  color: #57575a !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.6rem !important;
}

#osm-subscription-history .osm-page-title {
  padding: 0 0 0.75rem !important;
}

#osm-subscription-history .osm-page-title::before {
  content: "\F292"; /* bi-clock-history */
  font-family: "bootstrap-icons";
  font-style: normal;
  font-size: 1.2rem !important;
  color: #7367f0;
  opacity: 1;
}

#osm-upgrade-options-page .osm-page-title,
#osm-renew-options-page .osm-page-title {
  padding: 0 0 0.75rem !important;
  margin-top: 0 !important;
}

#osm-upgrade-options-page .osm-page-title::before,
#osm-renew-options-page .osm-page-title::before {
  content: "\F13A"; /* bi-arrow-up-circle */
  font-family: "bootstrap-icons";
  font-style: normal;
  font-size: 1.2rem !important;
  color: #7367f0;
  opacity: 1;
}

#osm-subscription-history table.table {
  margin: 0 !important;
  border: none !important;
  background: transparent !important;
  width: 100%;
}

#osm-subscription-history table.table {
  --bs-table-border-color: rgba(255,255,255,0.1) !important;
  border-color: rgba(255,255,255,0.1) !important;
}

#osm-subscription-history table.table thead tr {
  border-top: none !important;
  background: transparent !important;
}

#osm-subscription-history table.table thead th {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #b0b0b5 !important;
  border-top: none !important;
  border-bottom: 1px solid rgba(255,255,255,0.12) !important;
  border-left: none !important;
  border-right: none !important;
  padding: 0.5rem 1.5rem 0.5rem 0;
  background: transparent !important;
  white-space: nowrap;
  /* Kill Bootstrap 5.3 per-cell border token */
  --bs-table-bg-state: transparent !important;
  --bs-table-bg: transparent !important;
}

#osm-subscription-history table.table thead th:last-child {
  padding-right: 0;
}

#osm-subscription-history table.table tbody tr {
  background: transparent !important;
  border-bottom: none !important;
}

#osm-subscription-history table.table tbody td {
  border-top: 1px solid rgba(255,255,255,0.12) !important;
  border-bottom: none !important;
  border-left: none !important;
  border-right: none !important;
  padding: 0.75rem 1.5rem 0.75rem 0 !important;
  color: rgba(255,255,255,0.8);
  font-size: 16px !important;
  vertical-align: middle;
  background: transparent !important;
}

#osm-subscription-history table.table tbody td:last-child,
#osm-subscription-history table.table thead th:last-child {
  padding-right: 0 !important;
}

#osm-subscription-history table.table tbody td a {
  color: #7367f0;
  text-decoration: none;
  font-weight: 600;
}

#osm-subscription-history table.table tbody td a:hover {
  color: #9f92fe;
}

#osm-subscription-history table.table tbody td:last-child {
  font-weight: 600;
  color: #28c76f !important;
}

/* ---- UPGRADE OPTIONS PAGE ---- */
#osm-upgrade-options-page,
#osm-renew-options-page {
  background: #1f1f21;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 1.4rem 1.5rem 1.25rem !important;
  margin-top: 0;
}

/* Space between history card and renew/upgrade card — target the .moduletable wrapper */
.moduletable:has(#osm-renew-options-page),
.moduletable:has(#osm-upgrade-options-page) {
  margin-top: 1rem !important;
}

/* Stray <strong> wrapper injected by OSM around the form */
#osm-upgrade-options-page > strong,
#osm-renew-options-page > strong {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}

#osm-upgrade-options-page .osm-page-title,
#osm-renew-options-page .osm-page-title {
  margin-top: 0 !important;
}

#osm-upgrade-options-page .osm-description,
#osm-renew-options-page .osm-description {
  color: rgba(255,255,255,0.55);
  font-size: 1rem !important;
  margin: 0 0 0.75rem !important;
}

/* Radio option rows */
#osm_form_update_membership ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 1.25rem 0 1.25rem !important;
  gap: 0.75rem !important;
}

#osm_form_update_membership ul li {
  background: #1e1e20 !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  border-radius: 8px !important;
  padding: 0.9rem 1.1rem !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
  margin-bottom: 0.5rem !important;
}

#osm_form_update_membership ul li label {
  color: rgba(255,255,255,0.8) !important;
  font-size: 16px !important;
  cursor: pointer !important;
  margin: 0 !important;
}

#osm-upgrade-options-page .form-actions,
#osm-renew-options-page .form-actions { margin-top: 0; }

/* ============================================================
   OSM OVERRIDES — must come LAST to beat generic article form rules
   Generic rules use .item-page .com-content-article__body form ul li
   We win with ID+ID specificity: #osm-upgrade-options-page #osm_form_update_membership
   ============================================================ */

/* Radio li — base layout */
#osm-upgrade-options-page #osm_form_update_membership ul li,
#osm-upgrade-options-page #osm_form_update_membership ul > li {
  border-radius: 10px !important;
  padding: 1rem 1.25rem !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.875rem !important;
  margin-bottom: 0 !important;
  cursor: pointer !important;
  transition: background 0.2s ease, border-color 0.2s ease !important;
}

/* First option — Premium → purple */
#osm-upgrade-options-page #osm_form_update_membership ul li.osm-upgrade-option:nth-child(1) {
  background: rgba(115,103,240,0.08) !important;
  border: 1px solid rgba(115,103,240,0.25) !important;
  border-left: 3px solid #7367f0 !important;
}
#osm-upgrade-options-page #osm_form_update_membership ul li.osm-upgrade-option:nth-child(1):hover {
  background: rgba(115,103,240,0.14) !important;
  border-color: rgba(115,103,240,0.5) !important;
  border-left-color: #7367f0 !important;
}
#osm-upgrade-options-page #osm_form_update_membership ul li.osm-upgrade-option:nth-child(1) label {
  color: #c8c8cd !important;
}
#osm-upgrade-options-page #osm_form_update_membership ul li.osm-upgrade-option:nth-child(1) input[type="radio"] {
  border-color: rgba(115,103,240,0.5) !important;
}
#osm-upgrade-options-page #osm_form_update_membership ul li.osm-upgrade-option:nth-child(1) input[type="radio"]:checked {
  background-color: #7367f0 !important;
  border-color: #7367f0 !important;
}

/* Second option — Unlimited → amber */
#osm-upgrade-options-page #osm_form_update_membership ul li.osm-upgrade-option:nth-child(3) {
  background: rgba(245,158,11,0.08) !important;
  border: 1px solid rgba(245,158,11,0.25) !important;
  border-left: 3px solid #f59e0b !important;
}
#osm-upgrade-options-page #osm_form_update_membership ul li.osm-upgrade-option:nth-child(3):hover {
  background: rgba(245,158,11,0.14) !important;
  border-color: rgba(245,158,11,0.5) !important;
  border-left-color: #f59e0b !important;
}
#osm-upgrade-options-page #osm_form_update_membership ul li.osm-upgrade-option:nth-child(3) label {
  color: #f59e0b !important;
}
#osm-upgrade-options-page #osm_form_update_membership ul li.osm-upgrade-option:nth-child(3) input[type="radio"] {
  border-color: rgba(245,158,11,0.5) !important;
}
#osm-upgrade-options-page #osm_form_update_membership ul li.osm-upgrade-option:nth-child(3) input[type="radio"]:checked {
  background-color: #f59e0b !important;
  border-color: #f59e0b !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%23fff'/%3e%3c/svg%3e") !important;
}

/* Submit button — Conca ghost-purple style */
#osm-upgrade-options-page #osm_form_update_membership input[type="submit"],
#osm-upgrade-options-page #osm_form_update_membership button[type="submit"] {
  background: rgba(115,103,240,0.15) !important;
  color: #7367f0 !important;
  border: 1px solid rgba(115,103,240,0.55) !important;
  border-radius: 8px !important;
  padding: 10px 24px !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  box-shadow: none !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 0 !important;
  white-space: nowrap !important;
  text-indent: 0 !important;
  transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease !important;
  --bs-btn-bg: rgba(115,103,240,0.15) !important;
  --bs-btn-color: #7367f0 !important;
  --bs-btn-border-color: rgba(115,103,240,0.55) !important;
  --bs-btn-hover-color: #9f92fe !important;
  --bs-btn-hover-bg: rgba(115,103,240,0.28) !important;
  --bs-btn-hover-border-color: rgba(115,103,240,0.7) !important;
  opacity: 1 !important;
  transform: none !important;
}

#osm-upgrade-options-page #osm_form_update_membership input[type="submit"]:hover,
#osm-upgrade-options-page #osm_form_update_membership button[type="submit"]:hover {
  background: rgba(115,103,240,0.28) !important;
  color: #9f92fe !important;
  border-color: rgba(115,103,240,0.7) !important;
  box-shadow: 0 0 0 1px rgba(115,103,240,0.25) !important;
  opacity: 1 !important;
  transform: none !important;
}
/* WRITE-TEST-20260221 */

/* ═══════════════════════════════════════════════════════════════
   OS MEMBERSHIP — Subscription Detail Page
   #osm-subscription-detail-page (view=subscription)
   ═══════════════════════════════════════════════════════════════ */

/* Strip Conca .demo-card wrapper */
.demo-card:has(#osm-subscription-detail-page),
.demo-card:has(#osm-subscription-detail-page) .demo-card-body {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* Container card */
#osm-subscription-detail-page.osm-container {
  background: #1F1F21;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 1.5rem 1.75rem 1.25rem !important;
}

/* Page title — card header style with icon */
#osm-subscription-detail-page .osm-page-title {
  font-size: 1.125rem !important;
  font-weight: 600 !important;
  color: #c8c8cd !important;
  letter-spacing: 0.02em !important;
  text-transform: none !important;
  margin: 0 0 1.25rem 0 !important;
  padding: 0 0 1rem 0 !important;
  border: none !important;
  border-bottom: 1px solid #2e2e33 !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.6rem !important;
}

#osm-subscription-detail-page .osm-page-title::before {
  content: "\F2F1"; /* bi-file-text */
  font-family: "bootstrap-icons";
  font-style: normal;
  font-size: 1.2rem;
  color: #7367f0;
}

/* Form reset */
#osm-subscription-detail-page #osm_form {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
}

/* Form — shared background eliminates sub-pixel seams between rows */
#osm-subscription-detail-page #osm_form {
  background: #1F1F21 !important;
}

/* Form rows — label/value pairs */
#osm-subscription-detail-page .row.form-group {
  margin: 0 !important;
  padding: 0.65rem 0 !important;
  border: none !important;
  align-items: baseline !important;
  --bs-gutter-x: 0 !important;
}

/* Labels */
#osm-subscription-detail-page label.col-md-3 {
  color: #939397 !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  margin: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Values */
#osm-subscription-detail-page .eb-form-control {
  color: #c8c8cd !important;
  font-size: 0.9rem !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Status value — green for active (row immediately before .form-actions) */
#osm-subscription-detail-page .row.form-group:has(+ .form-actions) .eb-form-control {
  color: #28c76f !important;
  font-weight: 600 !important;
}

/* Back button — ghost purple */
#osm-subscription-detail-page .form-actions {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid #2e2e33;
}

#osm-subscription-detail-page .form-actions .btn {
  background: rgba(115,103,240,0.15) !important;
  border: 1px solid rgba(115,103,240,0.55) !important;
  color: #7367f0 !important;
  border-radius: 0.375rem !important;
  padding: 0.5rem 1.5rem !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  cursor: pointer !important;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease !important;
  box-shadow: none !important;
  --bs-btn-bg: rgba(115,103,240,0.15) !important;
  --bs-btn-color: #7367f0 !important;
  --bs-btn-border-color: rgba(115,103,240,0.55) !important;
}

#osm-subscription-detail-page .form-actions .btn:hover {
  background: rgba(115,103,240,0.28) !important;
  border-color: rgba(115,103,240,0.7) !important;
  color: #9f92fe !important;
  box-shadow: 0 0 0 1px rgba(115,103,240,0.25) !important;
}

/* Responsive */
@media (max-width: 767px) {
  #osm-subscription-detail-page.osm-container {
    padding: 1.25rem 1.25rem 1rem !important;
  }
  #osm-subscription-detail-page .row.form-group {
    padding: 0.5rem 0 !important;
  }
  #osm-subscription-detail-page label.col-md-3 {
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    color: rgba(255,255,255,0.35) !important;
    margin-bottom: 0.15rem !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   OS MEMBERSHIP — Subscription History Table alignment fixes
   ═══════════════════════════════════════════════════════════════════════ */

/* Normalise th and td padding so headers align with their data cells.
   Both use padding-right only (no padding-left), matching the existing
   #osm-subscription-history rules. The conflict was th getting padding-left
   from a lower-specificity rule that ran later in the cascade. */
#osm-subscription-history #adminForm table.table thead th,
#osm-subscription-history #adminForm table.table tbody td {
  padding-left: 0 !important;
}

/* First column header: left-align to match left-aligned data cell */
#osm-subscription-history #adminForm table.table thead th:first-child {
  text-align: left !important;
}

/* Centre columns 2 & 3 (Fecha / Duración) — match class="center" on td */
#osm-subscription-history #adminForm table.table thead th.center,
#osm-subscription-history #adminForm table.table tbody td.center {
  text-align: center !important;
}

/* Importe (col 4) — right-align header to match right-aligned data */
#osm-subscription-history #adminForm table.table thead th[style*="text-align: right"] {
  text-align: right !important;
}

/* ── Responsive: stacked card layout on mobile ─────────────────────────
   Below 768px: hide thead, make each td a labelled row using data-label.
   Labels are injected via JS in index.php.
   Above 768px: normal table layout, all columns visible. */

@media (max-width: 767px) {
  /* Fix d-sm-block — show hidden cols as flex rows (same as all other tds) */
  #osm-subscription-history #adminForm table.table td.d-none.d-sm-block.d-md-table-cell {
    display: flex !important;
  }
  #osm-subscription-history #adminForm table.table th.d-none.d-sm-block.d-md-table-cell {
    display: none !important;
  }

  /* Hide the thead — labels come from data-label on each td */
  #osm-subscription-history #adminForm table.table thead {
    display: none !important;
  }

  /* Each row becomes a stacked card */
  #osm-subscription-history #adminForm table.table tbody tr {
    display: block !important;
    border-bottom: 1px solid rgba(255,255,255,0.08) !important;
    padding: 0.75rem 0 !important;
  }
  #osm-subscription-history #adminForm table.table tbody tr:last-child {
    border-bottom: none !important;
  }

  /* Each cell becomes a label+value row */
  #osm-subscription-history #adminForm table.table tbody td {
    display: flex !important;
    align-items: baseline !important;
    gap: 0.5rem !important;
    padding: 0.25rem 0 !important;
    border: none !important;
    text-align: left !important;
    font-size: 0.875rem !important;
    white-space: normal !important;
    overflow: visible !important;
    line-height: 1.4 !important;
  }

  /* All cells left-aligned on mobile regardless of desktop center/right classes */
  #osm-subscription-history #adminForm table.table tbody td.center,
  #osm-subscription-history #adminForm table.table tbody td[style*="text-align: right"] {
    text-align: left !important;
    justify-content: flex-start !important;
  }

  /* Label injected as ::before from data-label attribute */
  #osm-subscription-history #adminForm table.table tbody td::before {
    content: attr(data-label);
    flex-shrink: 0 !important;
    width: 100px !important;
    min-width: 100px !important;
    font-size: 0.6rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    color: rgba(255,255,255,0.35) !important;
    line-height: 1.6 !important;
  }

  /* Last td (Estado) keeps its green colour */
  #osm-subscription-history #adminForm table.table tbody td:last-child {
    font-weight: 600 !important;
    color: #28c76f !important;
  }
}

@media (min-width: 768px) {
  /* Restore d-md-table-cell columns (Importe, Estado) */
  #osm-subscription-history #adminForm table.table th.d-none.d-sm-block.d-md-table-cell,
  #osm-subscription-history #adminForm table.table td.d-none.d-sm-block.d-md-table-cell {
    display: table-cell !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   OS MEMBERSHIP — Single Plan Page
   Template override: templates/conca/html/com_osmembership/plan/
   ═══════════════════════════════════════════════════════════════ */

/* Strip the Conca .demo-card wrapper — card provides its own bg/border */
.demo-card:has(#osm-plan-item),
.demo-card:has(#osm-plan-item) .demo-card-body {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* Outer wrapper */
#osm-plan-item.ip-plan-card {
  background: transparent;
  padding: 0;
}

/* Card header */
#osm-plan-item .ip-plan-header {
  background: #1F1F21;
  border: 1px solid #2e2e33;
  border-radius: 0.75rem 0.75rem 0 0;
  padding: 1.25rem 1.75rem;
  margin-bottom: 0;
}

#osm-plan-item .ip-plan-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #c8c8cd;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

#osm-plan-item .ip-plan-title .bi {
  font-size: 1rem;
  color: #7367f0;
}

/* Card body */
#osm-plan-item .ip-plan-body {
  background: #1F1F21;
  border: 1px solid #2e2e33;
  border-top: none;
  border-radius: 0 0 0.75rem 0.75rem;
  padding: 1.5rem 1.75rem 2rem;
}

/* Two-column layout (description + info sidebar) */
#osm-plan-item .ip-plan-layout {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

#osm-plan-item .ip-plan-description {
  flex: 1 1 0;
  color: #939397;
  font-size: 1rem;
  line-height: 1.75;
}

#osm-plan-item .ip-plan-description--full {
  flex: none;
  width: 100%;
}

#osm-plan-item .ip-plan-info-col {
  flex: 0 0 280px;
}

/* Plan info table (Duración / Precio) */
#osm-plan-item .ip-plan-info-col table,
#osm-plan-item .ip-plan-info-col .table {
  background: transparent;
  border: 1px solid #2e2e33;
  border-radius: 0.5rem;
  overflow: hidden;
  width: 100%;
  margin: 0;
}

#osm-plan-item .ip-plan-info-col table th,
#osm-plan-item .ip-plan-info-col table td {
  background: transparent !important;
  color: #c8c8cd;
  border-color: #2e2e33 !important;
  padding: 0.65rem 1rem;
}

#osm-plan-item .ip-plan-info-col table th {
  color: #939397;
  font-weight: 600;
  font-size: 0.875rem;
}

/* Thumbnail */
#osm-plan-item .ip-plan-thumb {
  float: left;
  margin: 0 1.5rem 1rem 0;
  border-radius: 0.5rem;
  max-width: 200px;
}

/* Renew / upgrade section */
#osm-plan-item .ip-plan-renew-upgrade {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #2e2e33;
}

#osm-plan-item .ip-form-heading {
  font-size: 0.9rem;
  font-weight: 600;
  color: #57575a;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

/* Action buttons row */
#osm-plan-item .ip-plan-actions {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #2e2e33;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Ghost purple button — Activar/Signup/Renew */
#osm-plan-item .ip-btn-ghost {
  background: rgba(115,103,240,0.15) !important;
  border: 1px solid rgba(115,103,240,0.55) !important;
  color: #7367f0 !important;
  border-radius: 0.375rem !important;
  padding: 0.5rem 1.5rem !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.4rem !important;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease !important;
  box-shadow: none !important;
}

#osm-plan-item .ip-btn-ghost:hover,
#osm-plan-item .ip-btn-ghost:focus {
  background: rgba(115,103,240,0.28) !important;
  border-color: rgba(115,103,240,0.7) !important;
  color: #9f92fe !important;
  box-shadow: 0 0 0 1px rgba(115,103,240,0.25) !important;
}

/* Amber/gold ghost button — Upgrade */
#osm-plan-item .ip-btn-upgrade {
  background: rgba(255,159,67,0.15) !important;
  border: 1px solid rgba(255,159,67,0.55) !important;
  color: #ff9f43 !important;
  border-radius: 0.375rem !important;
  padding: 0.5rem 1.5rem !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.4rem !important;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease !important;
  box-shadow: none !important;
}

#osm-plan-item .ip-btn-upgrade:hover,
#osm-plan-item .ip-btn-upgrade:focus {
  background: rgba(255,159,67,0.28) !important;
  border-color: rgba(255,159,67,0.7) !important;
  color: #ffb976 !important;
  box-shadow: 0 0 0 1px rgba(255,159,67,0.25) !important;
}

/* Form submit button (renew/upgrade) */
#osm-plan-item .ip-form-actions {
  margin-top: 1rem;
}

/* Responsive — stack columns below 768px */
@media (max-width: 767px) {
  #osm-plan-item .ip-plan-layout {
    flex-direction: column;
    gap: 1.25rem;
  }

  #osm-plan-item .ip-plan-info-col {
    flex: none;
    width: 100%;
  }
}

/* ═══════════════════════════════════════════════════════════════
   OS MEMBERSHIP — Plans List Page  (view=plans, e.g. id=2)
   Root: #osm-plans-list-default
   ═══════════════════════════════════════════════════════════════ */

/* 1. Strip Conca double-card wrapper */
.demo-card.rounded-xl:has(#osm-plans-list-default),
.demo-card:has(#osm-plans-list-default),
.demo-card:has(#osm-plans-list-default) .demo-card-body {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  overflow: visible !important;
}

/* 2. Category heading ("Pay as you go") */
#osm-plans-list-default .osm-page-title {
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  color: #57575a !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  margin: 0 0 1rem 0 !important;
  padding: 0 !important;
  border: none !important;
}

/* 3. Each plan wrapper = card */
#osm-plans-list-default.osm-container .osm-item-wrapper,
#osm-plans-list-default .osm-item-wrapper {
  background: #1F1F21 !important;
  border: none !important;
  border-radius: 0.75rem !important;
  overflow: hidden !important;
  margin-bottom: 1rem !important;
}

/* 4. Plan title heading bar */
#osm-plans-list-default.osm-container .osm-item-heading-box,
#osm-plans-list-default .osm-item-heading-box {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  border-bottom: 1px solid #2e2e33 !important;
  border-radius: 0 !important;
  padding: 1rem 1.5rem !important;
}

#osm-plans-list-default .osm-item-title {
  margin: 0 !important;
  font-size: 1.1rem !important;
  font-weight: 600 !important;
}

#osm-plans-list-default .osm-item-title a {
  color: #7367f0 !important;
  text-decoration: none !important;
  transition: color 0.15s ease !important;
}

#osm-plans-list-default .osm-item-title a:hover {
  color: #9f92fe !important;
}

/* 5. Description area */
#osm-plans-list-default.osm-container .osm-item-description,
#osm-plans-list-default .osm-item-description {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 1.25rem 1.5rem 0 !important;
}

#osm-plans-list-default .osm-description-details {
  color: #939397 !important;
  font-size: 0.9rem !important;
  line-height: 1.6 !important;
}

#osm-plans-list-default .osm-description-details p {
  margin: 0 !important;
  color: #939397 !important;
}

/* 6. Info table (Duración / Precio) */
#osm-plans-list-default .table {
  background: transparent !important;
  border: 1px solid #2e2e33 !important;
  border-radius: 0.5rem !important;
  overflow: hidden !important;
  margin: 0 !important;
  --bs-table-bg: transparent !important;
  --bs-table-striped-bg: rgba(255,255,255,0.02) !important;
  --bs-table-hover-bg: transparent !important;
  --bs-table-border-color: #2e2e33 !important;
}

#osm-plans-list-default .osm-plan-property-label {
  color: #939397 !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  padding: 0.65rem 1rem !important;
  background: transparent !important;
  border-color: #2e2e33 !important;
}

#osm-plans-list-default .osm-plan-property-value {
  color: #c8c8cd !important;
  font-size: 0.875rem !important;
  padding: 0.65rem 1rem !important;
  background: transparent !important;
  border-color: #2e2e33 !important;
}

/* Kill Bootstrap striped/hover white flash on this table */
#osm-plans-list-default .table.table-striped > tbody > tr:nth-of-type(odd) > * {
  background-color: rgba(255,255,255,0.02) !important;
  --bs-table-bg-state: transparent !important;
  --bs-table-accent-bg: transparent !important;
}

/* 7. Taskbar (Activar + Detalles buttons) */
#osm-plans-list-default .osm-taskbar {
  padding: 1rem 1.5rem 0.5rem !important;
  background: transparent !important;
}

@media (max-width: 767px) {
  #osm-plans-list-default .osm-taskbar {
    margin-top: 1rem !important;
    padding: 0 1.25rem 1.5rem !important;
  }
  #osm-plans-list-default .osm-taskbar a.btn-primary,
  #osm-plans-list-default .osm-taskbar a.btn-secondary {
    padding: 0.75rem 1.75rem !important;
    font-size: 0.9rem !important;
  }
}

#osm-plans-list-default .osm-taskbar ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  gap: 0.6rem !important;
  flex-wrap: wrap !important;
}

#osm-plans-list-default .osm-taskbar li {
  margin: 0 !important;
}

/* Activar (btn-primary) — ghost purple */
#osm-plans-list-default .osm-taskbar a.btn-primary {
  background: rgba(115,103,240,0.15) !important;
  border: 1px solid rgba(115,103,240,0.55) !important;
  color: #7367f0 !important;
  border-radius: 0.375rem !important;
  padding: 0.6rem 1.5rem !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease !important;
  box-shadow: none !important;
  /* Kill Bootstrap btn-primary blue */
  --bs-btn-bg: rgba(115,103,240,0.15) !important;
  --bs-btn-color: #7367f0 !important;
  --bs-btn-border-color: rgba(115,103,240,0.55) !important;
  --bs-btn-hover-color: #9f92fe !important;
  --bs-btn-hover-bg: rgba(115,103,240,0.28) !important;
  --bs-btn-hover-border-color: rgba(115,103,240,0.7) !important;
}

#osm-plans-list-default .osm-taskbar a.btn-primary:hover {
  background: rgba(115,103,240,0.28) !important;
  border-color: rgba(115,103,240,0.7) !important;
  color: #9f92fe !important;
  box-shadow: 0 0 0 1px rgba(115,103,240,0.25) !important;
}

/* Detalles (btn-secondary) — muted ghost */
#osm-plans-list-default .osm-taskbar a.btn-secondary {
  background: transparent !important;
  border: 1px solid #2e2e33 !important;
  color: #939397 !important;
  border-radius: 0.375rem !important;
  padding: 0.6rem 1.5rem !important;
  font-size: 0.875rem !important;
  font-weight: 400 !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  transition: color 0.2s ease, border-color 0.2s ease !important;
  box-shadow: none !important;
  --bs-btn-bg: transparent !important;
  --bs-btn-color: #939397 !important;
  --bs-btn-border-color: #2e2e33 !important;
  --bs-btn-hover-color: #c8c8cd !important;
  --bs-btn-hover-bg: transparent !important;
  --bs-btn-hover-border-color: #3d3d45 !important;
}

#osm-plans-list-default .osm-taskbar a.btn-secondary:hover {
  color: #c8c8cd !important;
  border-color: #3d3d45 !important;
  background: transparent !important;
}

/* 8. Pagination */
#osm-plans-list-default .pagination__wrapper {
  margin-top: 1.5rem !important;
}

#osm-plans-list-default .pagination .page-item .page-link {
  background: transparent !important;
  border: 1px solid #2e2e33 !important;
  color: #7367f0 !important;
  border-radius: 0.375rem !important;
  padding: 0.4rem 0.85rem !important;
  font-size: 0.875rem !important;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease !important;
  --bs-pagination-bg: transparent !important;
  --bs-pagination-border-color: #2e2e33 !important;
  --bs-pagination-color: #7367f0 !important;
  --bs-pagination-hover-bg: rgba(115,103,240,0.15) !important;
  --bs-pagination-hover-border-color: rgba(115,103,240,0.55) !important;
  --bs-pagination-hover-color: #9f92fe !important;
  --bs-pagination-active-bg: rgba(115,103,240,0.28) !important;
  --bs-pagination-active-border-color: rgba(115,103,240,0.7) !important;
  --bs-pagination-active-color: #9f92fe !important;
  --bs-pagination-disabled-bg: transparent !important;
  --bs-pagination-disabled-border-color: #2e2e33 !important;
  --bs-pagination-disabled-color: #57575a !important;
}

#osm-plans-list-default .pagination .page-item .page-link:hover {
  background: rgba(115,103,240,0.15) !important;
  border-color: rgba(115,103,240,0.55) !important;
  color: #9f92fe !important;
}

#osm-plans-list-default .pagination .page-item.active .page-link {
  background: rgba(115,103,240,0.28) !important;
  border-color: rgba(115,103,240,0.7) !important;
  color: #9f92fe !important;
}

#osm-plans-list-default .pagination .page-item.disabled .page-link {
  color: #57575a !important;
  background: transparent !important;
  border-color: #2e2e33 !important;
  opacity: 0.5 !important;
}

/* ── OSM page-title section titles (inline fix) ─────────────────── */
#osm-subscription-history .osm-page-title,
#osm-upgrade-options-page .osm-page-title {
  font-size: 1.125rem !important;
  font-weight: 600 !important;
  color: #c8c8cd !important;
  letter-spacing: 0.02em !important;
  text-transform: none !important;
}

/* ============================================================
   HISTORY TABLE — Dashboard OS History (generic article form)
   ============================================================ */

.item-page .com-content-article__body form:has(table) {
    background: #1F1F21;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.item-page .com-content-article__body form table {
    width: 100% !important;
    border-collapse: collapse !important;
    background: transparent !important;
    margin: 0 !important;
    --bs-table-bg: transparent !important;
    --bs-table-striped-bg: transparent !important;
    --bs-table-hover-bg: rgba(255,255,255,0.03) !important;
    --bs-table-border-color: rgba(255,255,255,0.06) !important;
}

.item-page .com-content-article__body form table thead tr {
    border-bottom: 1px solid rgba(255,255,255,0.08) !important;
    background: rgba(255,255,255,0.03) !important;
}

.item-page .com-content-article__body form table thead th {
    font-size: 0.7rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.07em !important;
    text-transform: uppercase !important;
    color: #939397 !important;
    padding: 0.75rem 1.25rem !important;
    white-space: nowrap !important;
    background: transparent !important;
    border: none !important;
}

.item-page .com-content-article__body form table tbody tr {
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
    background: transparent !important;
    transition: background 0.15s ease !important;
}

.item-page .com-content-article__body form table tbody tr:last-child {
    border-bottom: none !important;
}

.item-page .com-content-article__body form table tbody tr:hover {
    background: rgba(255,255,255,0.02) !important;
}

.item-page .com-content-article__body form table tbody td {
    padding: 1rem 1.25rem !important;
    font-size: 0.875rem !important;
    color: rgba(255,255,255,0.8) !important;
    background: transparent !important;
    border: none !important;
    vertical-align: middle !important;
    --bs-table-accent-bg: transparent !important;
    --bs-table-bg-state: transparent !important;
    --bs-table-striped-bg: transparent !important;
}

.item-page .com-content-article__body form table.table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: transparent !important;
    --bs-table-bg-state: transparent !important;
}

.item-page .com-content-article__body form table tbody td a {
    color: #6c5ce7 !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: color 0.15s ease !important;
}

.item-page .com-content-article__body form table tbody td a:hover {
    color: #9f92fe !important;
}

.item-page .com-content-article__body form table tbody td:last-child {
    font-weight: 600 !important;
    font-size: 0.78rem !important;
    letter-spacing: 0.04em !important;
    color: #10b981 !important;
}

.item-page .com-content-article__body form table tbody td strong {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 600 !important;
}


/* ═══════════════════════════════════════════════════════════════
   COM_OSMEMBERSHIP — Subscription Detail Page
   #osm-subscription-detail-page (view=subscription)
   ═══════════════════════════════════════════════════════════════ */

/* Strip Conca wrapper */
.demo-card:has(#osm-subscription-detail-page),
.demo-card:has(#osm-subscription-detail-page) .demo-card-body {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* Page title */
#osm-subscription-detail-page .osm-page-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: #c8c8cd;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px 0;
  padding: 0 0 14px 0;
  border-bottom: 1px solid #2e2e33;
}

/* Hide Conca diamond pseudo-element */
#osm-subscription-detail-page .osm-page-title::before {
  display: none !important;
}

#osm-subscription-detail-page .osm-page-title .bi {
  font-size: 1.2rem;
  color: #7367f0;
}

/* Detail card */
#osm-subscription-detail-page .osm-detail-card {
  background: #1F1F21;
  border: 1px solid #2e2e33;
  border-radius: 10px;
  padding: 24px;
}

/* Header: plan name + status badge */
#osm-subscription-detail-page .osm-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #2e2e33;
}

#osm-subscription-detail-page .osm-detail-plan {
  font-size: 1.1rem;
  font-weight: 600;
  color: #e0e0e5;
}

/* Status badges */
#osm-subscription-detail-page .osm-status-badge {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 50px;
}

#osm-subscription-detail-page .osm-status-active {
  color: #28c76f;
  background: rgba(40, 199, 111, 0.12);
  border: 1px solid rgba(40, 199, 111, 0.3);
}

#osm-subscription-detail-page .osm-status-expired {
  color: #ea5455;
  background: rgba(234, 84, 85, 0.12);
  border: 1px solid rgba(234, 84, 85, 0.3);
}

#osm-subscription-detail-page .osm-status-pending {
  color: #ff9f43;
  background: rgba(255, 159, 67, 0.12);
  border: 1px solid rgba(255, 159, 67, 0.3);
}

#osm-subscription-detail-page .osm-status-cancelled {
  color: #939397;
  background: rgba(147, 147, 151, 0.12);
  border: 1px solid rgba(147, 147, 151, 0.3);
}

/* Section titles */
#osm-subscription-detail-page .osm-detail-section-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #939397;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* Sections */
#osm-subscription-detail-page .osm-detail-section {
  margin-bottom: 24px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(228, 230, 252, 0.06);
}

#osm-subscription-detail-page .osm-detail-section:last-of-type {
  border-bottom: none;
  margin-bottom: 16px;
}

/* Detail rows */
#osm-subscription-detail-page .osm-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid rgba(228, 230, 252, 0.04);
}

#osm-subscription-detail-page .osm-detail-row:last-child {
  border-bottom: none;
}

#osm-subscription-detail-page .osm-detail-label {
  font-size: 0.875rem;
  color: #939397;
  flex-shrink: 0;
  margin-right: 16px;
}

#osm-subscription-detail-page .osm-detail-value {
  font-size: 0.875rem;
  color: #c8c8cd;
  text-align: right;
}

#osm-subscription-detail-page .osm-detail-mono {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.82rem;
  color: #7367f0;
}

/* Messages / headings */
#osm-subscription-detail-page .osm-heading {
  font-size: 1rem;
  font-weight: 600;
  color: #c8c8cd;
  margin: 16px 0 8px;
}

#osm-subscription-detail-page .osm-detail-message {
  color: #939397;
  font-size: 0.875rem;
  margin: 8px 0;
}

/* Back button — ghost purple */
#osm-subscription-detail-page .osm-detail-actions {
  padding-top: 16px;
}

#osm-subscription-detail-page .osm-btn-back {
  background: rgba(115, 103, 240, 0.15) !important;
  color: #7367f0 !important;
  border: 1px solid rgba(115, 103, 240, 0.55) !important;
  border-radius: 6px;
  padding: 8px 24px;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: none !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

#osm-subscription-detail-page .osm-btn-back:hover {
  background: rgba(115, 103, 240, 0.28) !important;
  color: #9f92fe !important;
  border-color: rgba(115, 103, 240, 0.7) !important;
  box-shadow: 0 0 0 1px rgba(115, 103, 240, 0.25);
}

/* Remove bottom border from page title */
#osm-subscription-detail-page .osm-page-title {
  border-bottom: none !important;
  padding-bottom: 6px !important;
  margin-bottom: 8px !important;
}

/* Remove bottom border from last section (before actions button) */
#osm-subscription-detail-page .osm-detail-card > .osm-detail-section:nth-last-child(2) {
  border-bottom: none !important;
  margin-bottom: 0;
}

#osm-subscription-detail-page .osm-btn-back .bi {
  font-size: 0.9rem;
}

/* ── Responsive ── */
@media (max-width: 575px) {
  #osm-subscription-detail-page .osm-detail-card {
    padding: 16px;
  }

  #osm-subscription-detail-page .osm-detail-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  #osm-subscription-detail-page .osm-detail-row {
    flex-direction: column;
    gap: 2px;
  }

  #osm-subscription-detail-page .osm-detail-value {
    text-align: left;
  }
}

/* CBSubs displayplans — hide Registrado (first) card */
#cbregSubscr > .cbregPlan:first-child {
  display: none !important;
}
