/* ClickAH! Portal - Landing skin
   Capa de estilos que alinea el portal del cliente con la landing
   (Montserrat, tinta #141215, acento #FF938F, panel "night", píldoras, 22px).
   Se carga después de style.css y sobreescribe solo lo estructural.
*/

:root {
  --ink: #141215;
  --ink-soft: #221f22;
  --paper: #ffffff;
  --mist: #f5f5f7;
  --mist-2: #ececef;
  --line: #d8d8dd;
  --line-soft: rgba(20, 18, 21, .08);
  --grey: #86868b;
  --grey-2: #6e6e73;
  --accent: #FF938F;
  --accent-deep: #E8706B;
  --accent-soft: rgba(255, 147, 143, .16);
  --accent-tint: #FFF1F0;
  --night: #1c1719;
  --night-grad: radial-gradient(110% 80% at 88% 0%, rgba(255, 147, 143, .30) 0%, rgba(255, 147, 143, 0) 55%), radial-gradient(70% 60% at 0% 100%, rgba(232, 112, 107, .14) 0%, rgba(232, 112, 107, 0) 60%), linear-gradient(160deg, #2a2024 0%, #1c1719 50%, #191a1f 100%);
  --on-night: rgba(255, 255, 255, .92);
  --on-night-soft: rgba(255, 255, 255, .62);
  --hairline-night: rgba(255, 255, 255, .12);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --radius: 22px;
  --radius-sm: 14px;

  /* Re-map the theme tokens */
  --ck-primary: var(--accent);
  --ck-primary-deep: var(--accent-deep);
  --ck-primary-light: #FFD0CE;
  --ck-primary-bg: var(--paper);
  --ck-text: var(--ink);
  --ck-text-secondary: var(--grey-2);
  --ck-surface: var(--mist);
  --ck-tag-bg: var(--mist);
  --ck-border: var(--line);
  --ck-shadow-sm: none;
  --ck-shadow-md: 0 18px 40px -28px rgba(28, 23, 25, .35);
  --ck-shadow-lg: 0 24px 48px -30px rgba(28, 23, 25, .35);
  --ck-radius-lg: var(--radius-sm);
  --ck-radius-xl: var(--radius);
  --ck-radius-2xl: var(--radius);
}

/* ---------- Base ---------- */
body,
body.ck-page {
  background: var(--paper) !important;
  background-image: none !important;
  color: var(--ink-soft);
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

h1, h2, h3, h4 {
  color: var(--ink);
  letter-spacing: -.03em;
}

a { color: var(--ink); }
a:hover { color: var(--accent-deep); }

::selection { background: var(--accent); color: var(--ink); }

/* ---------- Header (píldora flotante como la landing) ---------- */
.ck-header {
  padding: 12px 24px 0;
}

.ck-header__bar {
  max-width: 1200px;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border: 1px solid rgba(20, 18, 21, .07);
  box-shadow: 0 18px 40px -22px rgba(28, 23, 25, .35), 0 1px 0 rgba(255, 255, 255, .6) inset;
  border-radius: 999px;
  padding: 8px 8px 8px 18px;
  min-height: 62px;
}

.ck-logo__text {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink);
  letter-spacing: -.035em;
}

.ck-logo__text span { color: var(--accent); }

.ck-logo img,
.ck-logo .ck-logo__img {
  height: 30px !important;
  max-height: 30px !important;
  max-width: 150px !important;
  width: auto !important;
  display: block;
}

.ck-header__nav { gap: 2px; }

.ck-header__nav a {
  position: relative;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 9px 13px;
  border-radius: 999px;
  transition: background .25s var(--ease), color .25s var(--ease);
}

.ck-header__nav a:hover,
.ck-header__nav a.is-active {
  background: var(--mist);
  color: var(--ink);
}

.ck-header__nav a.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-deep);
  transform: translateX(-50%);
}

.ck-header__logout {
  background: var(--ink);
  color: #fff !important;
  font-size: 13.5px;
  font-weight: 700;
  padding: 11px 20px;
  border-radius: 999px;
  transition: background .25s var(--ease), transform .25s var(--ease);
}

.ck-header__logout:hover {
  background: #2b2427;
  transform: translateY(-1px);
}

/* ---------- Eyebrow / section titles ---------- */
.ck-section-full__head h2,
.ck-section-full > h2,
.ck-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
}

.ck-section-full__head h2::before,
.ck-section-full > h2::before,
.ck-section-title::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--accent);
  flex: none;
}

.ck-section-full__head a:not(.ck-btn) {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
  border-radius: 0;
}

.ck-section-full__head a:not(.ck-btn):hover { color: var(--accent-deep); }

/* ---------- Hero del panel: tarjeta "night" ---------- */
.ck-hero-full {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  background: var(--night-grad);
  color: var(--on-night);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 36px);
  margin-bottom: 20px;
  overflow: hidden;
}

.ck-hero-full__left { margin-bottom: 0; }

.ck-hero-full__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  box-shadow: none;
  font-weight: 800;
}

.ck-hero-full__greeting {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--on-night-soft);
  margin-bottom: 6px;
}

.ck-hero-full__greeting::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--accent);
  flex: none;
}

.ck-hero-full__name {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -.035em;
  color: #fff;
  line-height: 1;
}

.ck-hero-full__right {
  display: flex;
  gap: 10px;
}

.ck-hero-full .ck-kpi {
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--hairline-night);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  min-width: 140px;
}

.ck-hero-full .ck-kpi:hover { transform: none; box-shadow: none; }

.ck-hero-full .ck-kpi__value {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -.04em;
  color: #fff;
}

.ck-hero-full .ck-kpi__label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--on-night-soft);
}

/* KPIs de administrador (MRR) */
.ck-admin-mrr-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.ck-admin-mrr-grid > div {
  border-radius: var(--radius) !important;
  border: 1px solid var(--line) !important;
  background: var(--paper) !important;
  padding: 22px 24px !important;
}

.ck-admin-mrr-grid > div:first-child {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
}

.ck-admin-mrr-grid > div:first-child > div { color: var(--ink) !important; }
.ck-admin-mrr-grid > div:first-child > div:last-child { color: rgba(20, 18, 21, .7) !important; }

.ck-admin-mrr-grid > div:nth-child(2) {
  background: var(--night-grad) !important;
  border-color: transparent !important;
}

.ck-admin-mrr-grid > div > div:first-child {
  font-size: 1.6rem !important;
  font-weight: 800 !important;
  letter-spacing: -.04em !important;
}

.ck-admin-mrr-grid > div > div:last-child {
  font-size: 10.5px !important;
  font-weight: 700 !important;
  letter-spacing: .16em !important;
  text-transform: uppercase !important;
  margin-top: 4px;
}

/* ---------- Tarjetas ---------- */
.ck-card,
.ck-kpi,
.ck-svc,
.ck-bigcard,
.ck-sub-item,
.ck-portal .woocommerce .woocommerce-PaymentMethod,
.ck-portal .woocommerce .payment_method,
.ck-portal .ck-invoice-row,
.ck-leads-kpi {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: none;
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}

.ck-card:hover,
.ck-svc:hover,
.ck-bigcard:hover,
.ck-sub-item:hover,
.ck-portal .ck-invoice-row:hover {
  transform: translateY(-3px);
  border-color: var(--ink);
  box-shadow: 0 24px 48px -30px rgba(28, 23, 25, .35);
}

.ck-svc::before { display: none; }

.ck-svc__dot {
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.ck-svc__name { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.ck-svc__amount { font-size: 1.5rem; font-weight: 800; letter-spacing: -.04em; }
.ck-svc__period,
.ck-svc__meta { color: var(--grey-2); }

.ck-bigcard { padding: 26px; gap: 14px; }

.ck-bigcard__icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--ink) !important;
  box-shadow: none;
}

.ck-bigcard:hover .ck-bigcard__icon {
  background: var(--accent) !important;
  transform: none;
}

.ck-bigcard:hover .ck-bigcard__icon svg { stroke: var(--ink); }

.ck-bigcard h3 { font-size: 1.05rem; font-weight: 700; letter-spacing: -.02em; }
.ck-bigcard p { color: var(--grey-2); font-size: 14px; line-height: 1.55; }

.ck-bigcard__go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 700;
  font-size: 13.5px;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
  align-self: flex-start;
}

.ck-bigcard:hover .ck-bigcard__go { color: var(--accent-deep); }

/* Lista de suscripciones */
.ck-sub-item { border-radius: var(--radius-sm); padding: 18px 22px; }
.ck-sub-item__bar { background: var(--accent) !important; border-radius: 999px; }
.ck-sub-item__name { font-weight: 700; letter-spacing: -.01em; }
.ck-sub-item__amount { font-weight: 800; letter-spacing: -.03em; }
.ck-sub-item__arrow { color: var(--grey); }
.ck-sub-item:hover .ck-sub-item__arrow { color: var(--accent-deep); }

/* ---------- Badges / estados ---------- */
.ck-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  letter-spacing: .02em;
  text-transform: none;
}

.ck-badge--active { background: #E6F4EA; color: #2E7D32; }
.ck-badge--pending { background: #FFF4E0; color: #B26A00; }
.ck-badge--cancelled { background: var(--mist); color: var(--grey-2); }

/* ---------- Botones ---------- */
.ck-btn,
.ck-auth__btn,
.ck-portal .woocommerce form .button,
.ck-portal .subscription_details .button,
.ck-portal .woocommerce a.add-payment-method-link,
.ck-portal .woocommerce a.button.add-payment-method,
.ck-portal .woocommerce .button,
.ck-portal button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  border: none;
  background: var(--accent);
  color: var(--ink) !important;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .01em;
  box-shadow: none;
  text-shadow: none;
  cursor: pointer;
  transition: background .25s var(--ease), transform .25s var(--ease);
}

.ck-btn:hover,
.ck-auth__btn:hover,
.ck-portal .woocommerce form .button:hover,
.ck-portal .subscription_details .button:hover,
.ck-portal .woocommerce a.add-payment-method-link:hover,
.ck-portal .woocommerce a.button.add-payment-method:hover,
.ck-portal .woocommerce .button:hover {
  background: var(--accent-deep);
  color: var(--ink) !important;
  transform: translateY(-1px);
  box-shadow: none;
}

.ck-btn--secondary,
.ck-btn--ghost {
  background: var(--mist);
  color: var(--ink) !important;
}

.ck-btn--secondary:hover,
.ck-btn--ghost:hover { background: var(--mist-2); }

.ck-btn--dark,
.ck-portal .subscription_details .button.cancel {
  background: var(--ink);
  color: #fff !important;
}

.ck-btn--dark:hover,
.ck-portal .subscription_details .button.cancel:hover { background: #2a2a2e; }

/* ---------- Formularios ---------- */
.ck-input,
.ck-auth__field input,
.ck-portal .woocommerce form input[type="text"],
.ck-portal .woocommerce form input[type="email"],
.ck-portal .woocommerce form input[type="password"],
.ck-portal .woocommerce form input[type="tel"],
.ck-portal .woocommerce form select,
.ck-portal .woocommerce form textarea,
.ck-portal input[type="text"],
.ck-portal input[type="email"],
.ck-portal input[type="password"],
.ck-portal input[type="search"],
.ck-portal select {
  border: 1.5px solid var(--line) !important;
  border-radius: var(--radius-sm) !important;
  background: var(--paper) !important;
  color: var(--ink) !important;
  font-family: inherit !important;
  font-weight: 500;
  box-shadow: none;
}

.ck-input:focus,
.ck-auth__field input:focus,
.ck-portal input:focus,
.ck-portal select:focus,
.ck-portal textarea:focus {
  border-color: var(--ink) !important;
  box-shadow: 0 0 0 4px var(--accent-soft) !important;
  outline: none;
}

.ck-portal .woocommerce form label,
.ck-portal label {
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: .14em !important;
  text-transform: uppercase !important;
  color: var(--ink) !important;
}

/* Avisos */
.ck-portal .woocommerce-message,
.ck-portal .woocommerce-info,
.ck-portal .woocommerce-error {
  border-radius: var(--radius-sm);
  border: none;
  background: var(--mist);
  color: var(--ink);
}

.ck-portal .woocommerce-error { background: var(--accent-tint); color: var(--accent-deep); }

/* ---------- Tablas (facturas, métodos de pago, detalles) ---------- */
.ck-portal table.woocommerce-MyAccount-paymentMethods,
.ck-portal table.subscription_details,
.ck-portal table.order_details,
.ck-portal .ck-invoices-table {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.ck-portal table th {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--grey-2);
  background: var(--mist);
}

.ck-portal table td { border-color: var(--line-soft); color: var(--ink); }

/* ---------- Login / auth ---------- */
.ck-auth {
  background: var(--paper);
}

.ck-auth::before,
.ck-auth::after {
  background: var(--accent-soft) !important;
  opacity: .6;
}

.ck-auth__content {
  background: var(--paper);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -40px rgba(28, 23, 25, .35);
}

.ck-auth__logo-text {
  font-weight: 800;
  letter-spacing: -.035em;
  color: var(--ink);
}

.ck-auth__brand img,
.ck-auth__brand .ck-logo__img {
  height: 44px !important;
  max-height: 44px !important;
  width: auto !important;
  margin: 0 auto;
}

.ck-auth__title {
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--ink);
}

.ck-auth__link { color: var(--ink); border-bottom: 2px solid var(--accent); padding-bottom: 1px; font-weight: 700; }
.ck-auth__link:hover { color: var(--accent-deep); }

/* ---------- Footer y nav móvil ---------- */
.ck-footer {
  color: var(--grey);
  font-size: 12.5px;
  border-top: 1px solid var(--line-soft);
  padding: 28px 0;
}

@media (max-width: 768px) {
  .ck-mobile-nav {
    background: rgba(255, 255, 255, .92) !important;
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    border-top: 1px solid var(--line) !important;
  }

  .ck-mobile-nav__item { color: var(--grey-2) !important; font-weight: 600; }
  .ck-mobile-nav__item.is-active { color: var(--ink) !important; }
  .ck-mobile-nav__item.is-active svg { color: var(--accent-deep) !important; stroke: var(--accent-deep); }

  .ck-hero-full { grid-template-columns: 1fr; }
  .ck-hero-full__right { display: grid; grid-template-columns: 1fr 1fr; }
  .ck-hero-full .ck-kpi { min-width: 0; }
  .ck-admin-mrr-grid { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ---------- Limpieza de efectos del tema anterior ---------- */
body::before,
body::after {
  display: none !important;
}

.ck-hero-full__avatar::before,
.ck-hero-full__avatar::after,
.ck-kpi::after,
.ck-svc::after,
.ck-bigcard::after,
.ck-invoice-row::after {
  display: none !important;
}

@supports (-webkit-background-clip: text) {
  .ck-hero-full__name {
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    -webkit-text-fill-color: #fff !important;
    color: #fff !important;
  }
}

.ck-hero-full__name { color: #fff !important; }
.ck-hero-full__avatar { border-radius: 50% !important; }

/* Hero más compacto cuando no hay KPIs a la derecha (vista admin) */
.ck-hero-full { padding: 22px 28px; }
.ck-hero-full__left { gap: 16px; }

/* Cabecera: sin fade que deje la página en blanco al cargar */
.ck-header { animation: none !important; opacity: 1 !important; }

/* Contenedor del portal: plano, sin cristal (las tarjetas ya dan la estructura) */
.ck-portal {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  border-radius: 0 !important;
  max-width: 1200px;
  padding: 28px 24px 56px;
}

/* Estados vacíos */
.ck-empty-state svg,
.ck-portal svg[stroke="#FFD0CE"] { stroke: var(--line) !important; }

/* ---------- Mi perfil ---------- */
.ck-profile { max-width: 1100px; }

.ck-profile__head { margin-bottom: 24px; }

.ck-profile__who {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ck-profile__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--night-grad);
  color: var(--accent);
  font-weight: 800;
  font-size: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.ck-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--grey-2);
  margin: 0 0 4px;
}

.ck-eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--accent);
  flex: none;
}

.ck-profile__title {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 800;
  letter-spacing: -.035em;
  color: var(--ink);
  margin: 0;
  line-height: 1.05;
}

.ck-profile__sub {
  margin: 4px 0 0;
  font-size: 13.5px;
  color: var(--grey-2);
}

.ck-profile__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ck-profile__card {
  padding: 26px;
  display: grid;
  gap: 16px;
  align-content: start;
}

.ck-profile__card:hover { transform: none; border-color: var(--line); box-shadow: none; }

.ck-profile__card--wide { grid-column: 1 / -1; }

.ck-profile__card-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--grey-2);
  margin: 0 0 4px;
}

.ck-profile__card-title::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--accent);
  flex: none;
}

.ck-form-row {
  display: grid;
  gap: 12px;
}

.ck-form-row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ck-form-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.ck-form-field { display: grid; gap: 7px; }

.ck-form-field label {
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: .14em !important;
  text-transform: uppercase !important;
  color: var(--ink) !important;
}

.ck-form-field label span { color: var(--accent-deep); }

.ck-form-field input {
  width: 100%;
  padding: 13px 16px;
  font-size: 14.5px;
  font-weight: 500;
  border: 1.5px solid var(--line) !important;
  border-radius: var(--radius-sm) !important;
  background: var(--paper) !important;
  color: var(--ink) !important;
  font-family: inherit !important;
  outline: none;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}

.ck-form-field input:hover { border-color: var(--grey) !important; }

.ck-form-field input:focus {
  border-color: var(--ink) !important;
  box-shadow: 0 0 0 4px var(--accent-soft) !important;
}

.ck-form-field input::placeholder { color: var(--grey); font-weight: 400; }

.ck-form-field small {
  font-size: 12px;
  color: var(--grey-2);
}

.ck-profile__note {
  margin: 4px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--mist);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--grey-2);
}

.ck-profile__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.ck-profile__hint { font-size: 12.5px; color: var(--grey-2); }

@media (max-width: 860px) {
  .ck-profile__grid { grid-template-columns: 1fr; }
  .ck-form-row--3 { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .ck-form-row--2 { grid-template-columns: 1fr; }
}

/* ---------- Facturas ---------- */
.ck-invoice-filters { gap: 6px; margin-bottom: 16px; }

.ck-invoice-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--paper);
  color: var(--grey-2);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}

.ck-invoice-filter:hover { border-color: var(--ink); color: var(--ink); }

.ck-invoice-filter.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.ck-invoice-filter__count {
  min-width: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--mist);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

.ck-invoice-filter.is-active .ck-invoice-filter__count {
  background: var(--accent);
  color: var(--ink);
}

.ck-portal .ck-invoices-table,
.ck-invoices-table {
  display: grid;
  gap: 10px;
  border: none;
  border-radius: 0;
  overflow: visible;
}

.ck-portal .ck-invoice-row,
.ck-invoice-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px 120px 110px auto;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
  background: var(--paper);
  border: 1px solid var(--line) !important;
  border-radius: var(--radius-sm);
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}

.ck-portal .ck-invoice-row:hover,
.ck-invoice-row:hover {
  background: var(--paper);
  border-color: var(--ink) !important;
  transform: translateY(-2px);
  box-shadow: none;
}

.ck-invoice-row__icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--accent-deep);
}

.ck-invoice-row__desc {
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -.01em;
  max-width: none;
}

.ck-invoice-row__number {
  font-size: 12px;
  color: var(--grey-2);
  margin-top: 2px;
}

.ck-inv-col--date { font-size: 13px; color: var(--grey-2); }

.ck-inv-col--amount {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--ink);
  min-width: 0;
}

.ck-inv-col--status { display: flex; justify-content: center; }

.ck-inv-col--action { justify-content: flex-end; }

.ck-invoice-download--btn {
  width: auto;
  height: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  transition: background .25s var(--ease), transform .25s var(--ease), color .25s var(--ease);
}

.ck-invoice-download--btn:hover {
  background: var(--accent);
  color: var(--ink) !important;
  transform: translateY(-1px);
  box-shadow: none;
}

.ck-invoice-download--btn.is-disabled {
  background: var(--mist);
  color: var(--grey) !important;
  cursor: not-allowed;
  opacity: 1;
}

.ck-invoice-row--draft { opacity: 1; }
.ck-invoice-row--draft .ck-invoice-row__icon { background: var(--mist); color: var(--grey); }

@media (max-width: 900px) {
  .ck-portal .ck-invoice-row,
  .ck-invoice-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "desc amount"
      "meta action";
    gap: 12px 16px;
  }
  .ck-inv-col--desc { grid-area: desc; }
  .ck-inv-col--amount { grid-area: amount; text-align: right; }
  .ck-inv-col--date { grid-area: meta; }
  .ck-inv-col--status { display: none; }
  .ck-inv-col--action { grid-area: action; }
  .ck-invoice-download--btn { padding: 9px 14px; font-size: 12.5px; }
}

/* KPI del héroe: valor y etiqueta en líneas separadas */
.ck-hero-full .ck-kpi__value { display: block; margin-bottom: 4px; }
.ck-hero-full .ck-kpi__label { display: block; }

/* Insignia de verificación (miembro Ancla Viva) */
.ck-hero-full__name {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ck-verified {
  display: inline-flex;
  align-items: center;
  color: var(--accent);
  line-height: 0;
  transition: transform .3s var(--ease);
}

.ck-verified:hover { transform: scale(1.08); color: var(--accent); }

.ck-member-tag {
  display: inline-block;
  margin-top: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 147, 143, .4);
  padding-bottom: 2px;
}

.ck-member-tag:hover { color: #fff; border-color: #fff; }

/* ---------- Tus servicios: lista ---------- */
.ck-section-full__head { align-items: flex-end; }
.ck-section-full__sub { margin: 6px 0 0; font-size: 13px; color: var(--grey-2); }

.ck-services {
  display: grid;
  gap: 10px;
}

.ck-service {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 190px 130px auto 18px;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  text-decoration: none;
  transition: transform .3s var(--ease), border-color .3s var(--ease);
  animation: ck-fade-up .4s var(--ease) both;
}

.ck-service:hover {
  transform: translateY(-2px);
  border-color: var(--ink);
  color: var(--ink);
}

.ck-service__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--mist);
  color: var(--ink);
}

.ck-service--member .ck-service__icon { background: var(--accent); color: var(--ink); }
.ck-service--domain .ck-service__icon { background: #E8F1FF; color: #2456A6; }
.ck-service--hosting .ck-service__icon { background: #EAF7EE; color: #2E7D32; }
.ck-service--web .ck-service__icon { background: #F1ECFF; color: #5B3FB8; }
.ck-service--ads .ck-service__icon { background: #FFF4E0; color: #B26A00; }

.ck-service__main { display: grid; gap: 3px; min-width: 0; }

.ck-service__name {
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.3;
  color: var(--ink);
}

.ck-service__name small {
  font-size: 11px;
  font-weight: 700;
  color: var(--grey-2);
  background: var(--mist);
  border-radius: 999px;
  padding: 2px 8px;
  margin-left: 6px;
  vertical-align: middle;
}

.ck-service__meta { font-size: 12px; color: var(--grey-2); }

.ck-service__next { display: grid; gap: 2px; }

.ck-service__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--grey);
}

.ck-service__value { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.ck-service__value small { font-weight: 500; color: var(--grey-2); }
.ck-service__value.is-soon small { color: var(--accent-deep); font-weight: 700; }

.ck-service__price { text-align: right; white-space: nowrap; }

.ck-service__amount {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--ink);
}

.ck-service__period { font-size: 12px; color: var(--grey-2); margin-left: 2px; }

.ck-service__arrow { color: var(--grey); transition: transform .3s var(--ease), color .3s var(--ease); }
.ck-service:hover .ck-service__arrow { transform: translateX(3px); color: var(--accent-deep); }

@media (max-width: 900px) {
  .ck-service {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    grid-template-areas:
      "icon main price"
      "icon next badge";
    gap: 8px 14px;
    padding: 14px 16px;
  }
  .ck-service__icon { grid-area: icon; width: 40px; height: 40px; }
  .ck-service__main { grid-area: main; }
  .ck-service__next { grid-area: next; }
  .ck-service__price { grid-area: price; }
  .ck-service .ck-badge { grid-area: badge; justify-self: end; }
  .ck-service__arrow { display: none; }
}

/* Cabecera del portal: compacta y sin sombra */
.ck-header__bar {
  box-shadow: none;
  background: rgba(255, 255, 255, .92);
  border-color: rgba(20, 18, 21, .08);
  min-height: 54px;
  padding: 5px 6px 5px 16px;
}
.ck-logo img, .ck-logo .ck-logo__img { height: 26px !important; max-height: 26px !important; }
.ck-header__nav a { padding: 8px 12px; font-size: 13px; }
.ck-header__nav a.is-active::after { bottom: 3px; }
.ck-header__logout { padding: 9px 16px; font-size: 13px; }

/* Acceso rápido: tarjetas más compactas al ir arriba */
.ck-grid-access { gap: 12px; }
.ck-bigcard { padding: 20px 22px; gap: 10px; }
.ck-bigcard__icon { width: 40px; height: 40px; }
.ck-bigcard h3 { font-size: 15px; }
.ck-bigcard p { font-size: 13px; }

/* Filtro de servicios por periodicidad */
.ck-svc-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.ck-svc-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--paper);
  color: var(--grey-2);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}

.ck-svc-filter span {
  min-width: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--mist);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

.ck-svc-filter:hover { border-color: var(--ink); color: var(--ink); }

.ck-svc-filter.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.ck-svc-filter.is-active span { background: var(--accent); color: var(--ink); }

/* ---------- Hero: foto de perfil grande y editable ---------- */
.ck-hero-full__left { align-items: center; gap: 22px; }

.ck-avatar {
  position: relative;
  flex: none;
  width: 96px;
  height: 96px;
}

.ck-avatar__img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--accent);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 3px solid rgba(255, 255, 255, .14);
  transition: transform .3s var(--ease), filter .3s var(--ease);
}

.ck-avatar__img:hover { transform: scale(1.03); }
.is-uploading .ck-avatar__img { filter: brightness(.7); }

.ck-avatar__initials {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--ink);
}

.ck-avatar__img.has-photo .ck-avatar__initials { display: none; }

.ck-avatar__btn {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #1c1719;
  background: #fff;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}

.ck-avatar__btn:hover { background: var(--accent); transform: scale(1.06); }

.ck-avatar__status {
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  opacity: 0;
  transition: opacity .3s var(--ease);
  pointer-events: none;
}

.ck-avatar__status.is-visible { opacity: 1; }
.ck-avatar__status.is-error { color: #ffb4b0; }

.ck-hero-full__text { display: grid; gap: 6px; min-width: 0; }
.ck-hero-full__greeting { margin-bottom: 0; }

.ck-hero-full__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-top: 2px;
}

.ck-member-tag { margin-top: 0; }

.ck-hero-full__meta {
  font-size: 12.5px;
  color: var(--on-night-soft);
}

.ck-hero-full__actions {
  display: flex;
  gap: 16px;
  margin-top: 6px;
}

.ck-hero-full__link {
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
  background: none;
  border: none;
  padding: 0 0 2px;
  border-bottom: 2px solid var(--accent);
  cursor: pointer;
  text-decoration: none;
  transition: color .25s var(--ease);
}

.ck-hero-full__link:hover { color: var(--accent); }

.ck-hero-full__right { gap: 10px; }
.ck-hero-full .ck-kpi { min-width: 128px; }

@media (max-width: 768px) {
  .ck-hero-full__left { flex-direction: row; align-items: flex-start; gap: 16px; }
  .ck-avatar, .ck-avatar__img { width: 76px; height: 76px; }
  .ck-avatar__initials { font-size: 1.3rem; }
  .ck-hero-full__right { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .ck-hero-full .ck-kpi { padding: 12px 12px; }
  .ck-hero-full .ck-kpi__value { font-size: 1.25rem; }
  .ck-hero-full .ck-kpi__label { font-size: 9.5px; }
}
.ck-profile__avatar { background-size: cover; background-position: center; }

/* ---------- Hero claro (sin degradado oscuro) ---------- */
.ck-hero-full {
  background: var(--mist);
  color: var(--ink-soft);
  border: 1px solid var(--line);
}

.ck-hero-full__greeting { color: var(--grey-2); }
.ck-hero-full__name,
.ck-hero-full .ck-hero-full__name { color: var(--ink) !important; -webkit-text-fill-color: var(--ink) !important; }
.ck-hero-full__meta { color: var(--grey-2); }

.ck-member-tag { color: var(--accent-deep); border-color: rgba(232, 112, 107, .35); }
.ck-member-tag:hover { color: var(--ink); border-color: var(--ink); }

.ck-hero-full__link { color: var(--ink); }
.ck-hero-full__link:hover { color: var(--accent-deep); }

.ck-hero-full .ck-kpi {
  background: var(--paper);
  border: 1px solid var(--line);
}

.ck-hero-full .ck-kpi__value { color: var(--ink); }
.ck-hero-full .ck-kpi__label { color: var(--grey-2); }

.ck-avatar__img { border-color: var(--paper); box-shadow: 0 0 0 1px var(--line); }
.ck-avatar__btn { border-color: var(--mist); background: var(--ink); color: #fff; }
.ck-avatar__btn:hover { background: var(--accent); color: var(--ink); }
.ck-avatar__status { color: var(--accent-deep); }
.ck-avatar__status.is-error { color: #C62828; }
.ck-verified { color: var(--accent-deep); }
.ck-verified svg path[stroke] { stroke: #fff; }

/* ---------- Hero centrado en el usuario ---------- */
.ck-hero-full {
  display: block;
  padding: clamp(28px, 4vw, 44px);
  margin-bottom: 14px;
}

.ck-hero-full__left {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3vw, 36px);
}

.ck-avatar, .ck-avatar__img { width: 128px; height: 128px; }
.ck-avatar__initials { font-size: 2.2rem; }
.ck-avatar__btn { width: 38px; height: 38px; right: 0; bottom: 2px; }
.ck-avatar__btn svg { width: 17px; height: 17px; }

.ck-hero-full__text { gap: 8px; }

.ck-hero-full__name,
.ck-hero-full .ck-hero-full__name {
  font-size: clamp(2.2rem, 4.2vw, 3.2rem) !important;
  letter-spacing: -.04em;
  line-height: 1;
}

.ck-verified svg { width: 28px; height: 28px; }

.ck-hero-full__tags { gap: 6px 14px; margin-top: 4px; }
.ck-hero-full__meta { font-size: 13.5px; }
.ck-hero-full__actions { margin-top: 10px; gap: 18px; }
.ck-hero-full__link { font-size: 13px; }

/* Fila de indicadores debajo del hero */
.ck-stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.ck-stat-card {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 22px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}

.ck-stat-card:hover { transform: translateY(-2px); border-color: var(--ink); }

.ck-stat-card__icon {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--mist);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ck-stat-card__value {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.ck-stat-card__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--grey-2);
}

.ck-stat-card--accent { background: var(--accent); border-color: var(--accent); }
.ck-stat-card--accent .ck-stat-card__icon { background: rgba(20, 18, 21, .12); }
.ck-stat-card--accent .ck-stat-card__label { color: rgba(20, 18, 21, .7); }
.ck-stat-card--accent:hover { border-color: var(--ink); }

@media (max-width: 768px) {
  .ck-hero-full__left { flex-direction: column; align-items: center; text-align: center; }
  .ck-hero-full__text { justify-items: center; }
  .ck-hero-full__greeting { justify-content: center; }
  .ck-hero-full__name { justify-content: center; }
  .ck-hero-full__tags, .ck-hero-full__actions { justify-content: center; }
  .ck-avatar, .ck-avatar__img { width: 104px; height: 104px; }
  .ck-stats-row { grid-template-columns: 1fr; }
  .ck-stat-card { padding: 18px 20px; }
}

/* ---------- Métodos de pago ---------- */
.ck-pay { max-width: 1100px; }
.ck-pay__title { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; letter-spacing: -.035em; color: var(--ink); margin: 0 0 6px; line-height: 1.05; }
.ck-pay .ck-section-full__sub { max-width: 60ch; }
.ck-pay__back { display: inline-block; margin-bottom: 14px; font-size: 13px; font-weight: 700; color: var(--grey-2); text-decoration: none; }
.ck-pay__back:hover { color: var(--ink); }

.ck-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}

.ck-cardpm {
  position: relative;
  display: grid;
  gap: 22px;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--night-grad);
  color: #fff;
  border: 1px solid transparent;
  overflow: hidden;
  transition: transform .3s var(--ease);
}

.ck-cardpm:hover { transform: translateY(-3px); }
.ck-cardpm--visa { background: linear-gradient(150deg, #1a2a6c, #0f1b45); }
.ck-cardpm--mastercard { background: linear-gradient(150deg, #2b2024, #141215); }
.ck-cardpm--amex, .ck-cardpm--americanexpress { background: linear-gradient(150deg, #0d5c8c, #063b5c); }
.ck-cardpm.is-default { box-shadow: 0 0 0 2px var(--accent); }

.ck-cardpm__top { display: flex; justify-content: space-between; align-items: center; }
.ck-cardpm__brand { font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.ck-cardpm__default { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--accent); color: var(--ink); }

.ck-cardpm__number { display: flex; gap: 14px; font-size: 1.2rem; font-weight: 700; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.ck-cardpm__last4 { color: var(--accent); }

.ck-cardpm__bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.ck-cardpm__k { display: block; font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.ck-cardpm__v { font-size: 14px; font-weight: 700; }
.ck-cardpm__v.is-soon { color: var(--accent); }

.ck-cardpm__actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.ck-cardpm__action {
  font-size: 12px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  color: #fff !important;
  text-decoration: none;
  transition: background .25s var(--ease);
}
.ck-cardpm__action:hover { background: rgba(255, 255, 255, .24); }
.ck-cardpm__action.delete:hover { background: var(--accent-deep); }
.ck-cardpm__action.default { background: var(--accent); color: var(--ink) !important; }

.ck-pay__hint { margin: 16px 0 0; font-size: 12.5px; color: var(--grey-2); }

/* Añadir tarjeta */
.ck-pay__form {
  max-width: 720px;
  padding: 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.ck-portal .ck-pay__form .woocommerce-PaymentMethods,
.ck-pay__form .woocommerce-PaymentMethods { list-style: none; margin: 0; padding: 0; border: none; }
.ck-portal .ck-pay__form .woocommerce-PaymentMethod,
.ck-pay__form .woocommerce-PaymentMethod { padding: 0; border: none; background: transparent; margin: 0; }
.ck-portal .ck-pay__form .woocommerce-PaymentMethod:hover { transform: none; box-shadow: none; }
.ck-pay__form .input-radio { display: none; }

.ck-pay__gateway {
  display: flex !important;
  align-items: center;
  gap: 10px;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: .2em !important;
  text-transform: uppercase !important;
  color: var(--grey-2) !important;
  margin-bottom: 16px;
}
.ck-pay__gateway img { height: 20px; width: auto; }
.ck-pay__gateway-icon { width: 30px; height: 30px; border-radius: 50%; background: var(--mist); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; }

.ck-portal .ck-pay__form .payment_box,
.ck-pay__form .payment_box { background: transparent !important; border: none !important; padding: 0 !important; margin: 0 !important; }
.ck-pay__form .payment_box::before { display: none !important; }
.ck-pay__form fieldset { border: none; padding: 0; margin: 0; }
.ck-pay__form .wc-stripe-upe-element { margin-bottom: 8px; }

.ck-pay__form #wc-stripe-update-subs-payment-method-card_field { margin: 18px 0 0; padding: 14px 16px; background: var(--mist); border-radius: var(--radius-sm); }
.ck-pay__form #wc-stripe-update-subs-payment-method-card_field label,
.ck-portal .ck-pay__form #wc-stripe-update-subs-payment-method-card_field label {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: var(--ink) !important;
  line-height: 1.45;
}
.ck-pay__form #wc-stripe-update-subs-payment-method-card_field input[type="checkbox"] { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--accent-deep); }

.ck-pay__submit { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line-soft); }
.ck-pay__secure { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--grey-2); }
.ck-pay__secure svg { color: var(--accent-deep); }

@media (max-width: 600px) {
  .ck-pay__form { padding: 18px; }
  .ck-cardpm__number { font-size: 1rem; gap: 10px; }
}

/* ---------- Notificaciones de la cuenta ---------- */
.ck-header__right { display: flex; align-items: center; gap: 8px; }

.ck-notif { position: relative; }

.ck-notif__btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background .25s var(--ease), border-color .25s var(--ease);
}

.ck-notif__btn:hover, .ck-notif.is-open .ck-notif__btn { background: var(--mist); border-color: var(--ink); }

.ck-notif__count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent-deep);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
  border: 2px solid #fff;
}

.ck-notif__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 360px;
  max-width: calc(100vw - 32px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: 0 24px 48px -28px rgba(28, 23, 25, .45);
  z-index: 300;
  overflow: hidden;
}

.ck-notif__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-soft);
}

.ck-notif__total { font-size: 12px; font-weight: 700; color: var(--grey-2); }

.ck-notif__list { list-style: none; margin: 0; padding: 6px; display: grid; gap: 2px; max-height: 360px; overflow-y: auto; }

.ck-notif__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-soft);
}

.ck-notif__item:hover { background: var(--mist); }

.ck-notif__icon {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--mist);
  color: var(--grey-2);
}

.ck-notif__item.is-ok .ck-notif__icon, .ck-notif__item.is-success .ck-notif__icon { background: #E6F4EA; color: #2E7D32; }
.ck-notif__item.is-warning .ck-notif__icon { background: #FFF4E0; color: #B26A00; }
.ck-notif__item.is-error .ck-notif__icon { background: var(--accent-tint); color: var(--accent-deep); }

.ck-notif__text { display: grid; gap: 2px; min-width: 0; }
.ck-notif__text strong { font-weight: 700; color: var(--ink); }
.ck-notif__text small { font-size: 12px; color: var(--grey-2); }

/* Tarjeta en el panel */
.ck-notifs { padding: 20px 22px; margin-bottom: 28px; }
.ck-notifs:hover { transform: none; border-color: var(--line); box-shadow: none; }

.ck-notifs__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.ck-notifs__title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--grey-2);
  margin: 0;
}

.ck-notifs__title::before { content: ""; width: 22px; height: 2px; background: var(--accent); flex: none; }

.ck-notifs__badge {
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  background: #E6F4EA;
  color: #2E7D32;
}

.ck-notifs__badge.has-items { background: var(--accent-tint); color: var(--accent-deep); }

.ck-notif__list--card { padding: 0; max-height: none; }
.ck-notif__list--card .ck-notif__item { padding: 10px 6px; border-radius: 10px; }

/* Stats: dos tarjetas */
.ck-stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-width: 768px) {
  .ck-notif__panel { position: fixed; left: 16px; right: 16px; top: 74px; width: auto; }
  .ck-stats-row { grid-template-columns: 1fr; }
}

/* Aviso de estado de la cuenta (compacto) */
.ck-status {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  line-height: 1.4;
  margin: 0 0 28px;
}

.ck-status.is-ok { background: #E6F4EA; color: #1E5B27; }
.ck-status.is-due { background: var(--accent-tint); color: #8A2E2A; }

.ck-status__icon {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #2E7D32;
  color: #fff;
}

.ck-status.is-due .ck-status__icon { background: var(--accent-deep); }
.ck-status__text strong { font-weight: 700; }
.ck-status__text a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.ck-status__text a:hover { color: var(--ink); }

@media (max-width: 600px) {
  .ck-status { border-radius: 16px; align-items: flex-start; }
}

/* Campana: punto rojo y sección de pagos pendientes */
.ck-notif__dot {
  position: absolute;
  top: 6px;
  right: 7px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #E53935;
  border: 2px solid #fff;
  box-shadow: 0 0 0 3px rgba(229, 57, 53, .18);
}

.ck-notif__total.is-due { color: #E53935; }

.ck-notif__section {
  padding: 10px 16px 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--grey);
}

.ck-notif__list--due .ck-notif__item { background: var(--accent-tint); }
.ck-notif__list--due .ck-notif__item:hover { background: #FFE4E2; }

.ck-notif__links { display: flex; gap: 12px; margin-top: 4px; font-size: 12px; font-weight: 700; }
.ck-notif__links a { color: var(--accent-deep); text-decoration: none; }
.ck-notif__links a:hover { color: var(--ink); }

/* ---------- Profile header: portada + avatar superpuesto ---------- */
.ck-ph { margin-bottom: 22px; }

.ck-ph__cover {
  position: relative;
  height: 150px;
  border-radius: var(--radius);
  background: var(--night-grad);
  overflow: hidden;
  padding: 26px 30px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.ck-ph__cover::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -120px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .08);
  pointer-events: none;
}

.ck-ph__greeting {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .62);
}

.ck-ph__greeting::before { content: ""; width: 22px; height: 2px; background: var(--accent); flex: none; }

.ck-ph__member {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .25s var(--ease);
}

.ck-ph__member svg { color: var(--accent); }
.ck-ph__member:hover { background: rgba(255, 255, 255, .16); color: #fff; }

.ck-ph__body {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  padding: 0 30px;
}

.ck-ph .ck-avatar,
.ck-ph .ck-avatar__img { width: 168px; height: 168px; }
.ck-ph .ck-avatar { margin-top: -84px; }
.ck-ph .ck-avatar__img { border: 5px solid #fff; box-shadow: 0 20px 40px -24px rgba(28, 23, 25, .5); background-color: var(--accent); }
.ck-ph .ck-avatar__initials { font-size: 3rem; }
.ck-ph .ck-avatar__btn { width: 42px; height: 42px; right: 4px; bottom: 6px; border: 3px solid #fff; background: var(--ink); color: #fff; }
.ck-ph .ck-avatar__btn:hover { background: var(--accent); color: var(--ink); }
.ck-ph .ck-avatar__status { top: calc(100% + 6px); }

.ck-ph__info { padding: 18px 0 4px; display: grid; gap: 8px; min-width: 0; }

.ck-ph__name {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1;
  color: var(--ink);
}

.ck-ph__name .ck-verified { color: var(--accent-deep); }

.ck-ph__meta { margin: 0; font-size: 14px; color: var(--grey-2); }
.ck-ph__sep { margin: 0 8px; color: var(--grey); }

.ck-ph__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }

.ck-btn--sm { padding: 10px 16px !important; font-size: 13px !important; gap: 8px; }
.ck-btn--secondary.ck-btn--sm { background: var(--mist); color: var(--ink) !important; }
.ck-btn--secondary.ck-btn--sm:hover { background: var(--mist-2); }

.ck-ph__stats {
  display: flex;
  gap: 10px;
  padding-bottom: 6px;
}

.ck-ph__stat {
  min-width: 150px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: var(--paper);
  border: 1px solid var(--line);
  display: grid;
  gap: 4px;
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}

.ck-ph__stat:hover { transform: translateY(-2px); border-color: var(--ink); }

.ck-ph__stat-value {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.ck-ph__stat-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--grey-2);
}

.ck-status { margin-top: 18px; }

@media (max-width: 960px) {
  .ck-ph__body { grid-template-columns: auto minmax(0, 1fr); }
  .ck-ph__stats { grid-column: 1 / -1; }
  .ck-ph__stat { flex: 1; min-width: 0; }
}

@media (max-width: 640px) {
  .ck-ph__cover { height: 120px; padding: 20px; }
  .ck-ph__member { display: none; }
  .ck-ph__body { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 0 16px; gap: 14px; }
  .ck-ph .ck-avatar, .ck-ph .ck-avatar__img { width: 124px; height: 124px; }
  .ck-ph .ck-avatar { margin-top: -62px; }
  .ck-ph .ck-avatar__initials { font-size: 2.2rem; }
  .ck-ph__info { padding-top: 0; justify-items: center; }
  .ck-ph__name { justify-content: center; }
  .ck-ph__actions { justify-content: center; }
  .ck-ph__stats { width: 100%; }
}

/* Añadir tarjeta: compacto */
.ck-pay__head--compact { margin-bottom: 14px; }
.ck-pay__head--compact .ck-pay__back { margin-bottom: 6px; }
.ck-pay__head-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ck-pay__head-row .ck-pay__title { margin: 0; font-size: 1.5rem; }

.ck-pay--add .ck-pay__form { padding: 18px 20px; }
.ck-pay__gateway { margin-bottom: 10px; }

/* Sin cajas anidadas alrededor del formulario de Stripe */
.ck-portal .ck-pay__form .woocommerce-PaymentMethod,
.ck-portal .ck-pay__form li.woocommerce-PaymentMethod,
.ck-portal .woocommerce .ck-pay__form .woocommerce-PaymentMethod {
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.ck-portal .ck-pay__form .payment_box,
.ck-portal .woocommerce .ck-pay__form .payment_box,
.ck-portal .ck-pay__form fieldset,
.ck-portal .woocommerce .ck-pay__form fieldset,
.ck-pay__form .wc-payment-form {
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.ck-pay__form .wc-stripe-upe-element { margin-bottom: 0; }
.ck-pay__form #wc-stripe-update-subs-payment-method-card_field { margin-top: 12px; padding: 10px 14px; }
.ck-pay__submit { margin-top: 14px; padding-top: 14px; }

/* Tarjetas: botón cambiar + pie con añadir */
.ck-cardpm__action.change { background: #fff; color: var(--ink) !important; }
.ck-cardpm__action.change:hover { background: var(--accent); }
.ck-pay__foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 18px; }
.ck-pay__foot .ck-pay__hint { margin: 0; flex: 1; min-width: 260px; }
.ck-pay .ck-section-full__head { align-items: center; }

/* Logo del menú más grande */
.ck-logo img, .ck-logo .ck-logo__img { height: 36px !important; max-height: 36px !important; max-width: 190px !important; }
.ck-logo__text { font-size: 1.35rem; }
.ck-header__bar { min-height: 60px; padding: 6px 6px 6px 18px; }

/* Botón "Añadir tarjeta" en la cabecera de la página de tarjetas */
.ck-pay .ck-section-full__head .ck-btn,
.ck-pay .ck-btn--primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink) !important;
  font-size: 14px;
  font-weight: 700;
  border: none;
  border-bottom: none;
  text-decoration: none;
  white-space: nowrap;
}

.ck-pay .ck-btn--primary::before { content: "+"; font-weight: 800; font-size: 16px; line-height: 1; }

.ck-pay .ck-btn--primary:hover { background: var(--accent-deep); color: var(--ink) !important; transform: translateY(-1px); }

/* ---------- Portada clara del perfil (saludo se mantiene) ---------- */
.ck-ph__cover {
  height: 128px;
  background: linear-gradient(120deg, #FFF1F0 0%, #f7f7f9 55%, #f5f5f7 100%);
  border: 1px solid var(--line);
}

.ck-ph__cover::before {
  content: "";
  position: absolute;
  right: 12%;
  top: -140px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 147, 143, .28) 0%, rgba(255, 147, 143, 0) 70%);
  pointer-events: none;
}

.ck-ph__cover::after {
  border-color: rgba(20, 18, 21, .06);
}

.ck-ph__greeting { color: var(--grey-2); }

.ck-ph__member {
  background: var(--paper);
  border-color: var(--line);
  color: var(--ink);
}

.ck-ph__member svg { color: var(--accent-deep); }
.ck-ph__member:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.ck-ph__member:hover svg { color: var(--accent); }

.ck-ph .ck-avatar { margin-top: -72px; }
.ck-ph .ck-avatar__btn { border-color: #fff; }

@media (max-width: 640px) {
  .ck-ph__cover { height: 104px; }
  .ck-ph .ck-avatar { margin-top: -56px; }
}

/* Estado vacío de tarjetas: más aire entre icono, texto y botón */
.ck-pay .ck-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 64px 24px;
  text-align: center;
  background: var(--mist);
  border-radius: var(--radius);
}

.ck-pay .ck-empty-state svg {
  width: 56px;
  height: 56px;
  padding: 14px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--grey) !important;
  stroke: var(--grey) !important;
  box-sizing: content-box;
  margin: 0;
}

.ck-pay .ck-empty-state p {
  margin: 0;
  font-size: 15px;
  color: var(--grey-2);
  max-width: 34ch;
}

.ck-pay .ck-empty-state .ck-btn { margin-top: 6px; }

/* ---------- Cabecera de perfil sin banda: tipográfica y con halo ---------- */
.ck-ph { padding: 12px 0 26px; margin-bottom: 22px; border-bottom: 1px solid var(--line-soft); }

.ck-ph__body {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  padding: 0;
  gap: 30px;
}

.ck-ph .ck-avatar { margin-top: 0; position: relative; }
.ck-ph .ck-avatar, .ck-ph .ck-avatar__img { width: 176px; height: 176px; }

/* Halo suave detrás de la foto + anillo fino */
.ck-ph .ck-avatar::before {
  content: "";
  position: absolute;
  inset: -34px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 147, 143, .38) 0%, rgba(255, 147, 143, .12) 45%, rgba(255, 147, 143, 0) 70%);
  z-index: 0;
  pointer-events: none;
}

.ck-ph .ck-avatar::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  opacity: .55;
  z-index: 0;
  pointer-events: none;
}

.ck-ph .ck-avatar__img { position: relative; z-index: 1; border: 4px solid #fff; box-shadow: 0 24px 48px -28px rgba(28, 23, 25, .5); }
.ck-ph .ck-avatar__btn { z-index: 2; }
.ck-ph .ck-avatar__status { z-index: 2; }

.ck-ph__info { padding: 0; gap: 10px; }

.ck-ph__greeting {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--grey-2);
}

.ck-ph__greeting::before { content: ""; width: 22px; height: 2px; background: var(--accent); flex: none; }

.ck-ph__name { font-size: clamp(2.4rem, 4.8vw, 3.8rem); }

.ck-ph__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }

.ck-ph__member {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--accent);
  border: none;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .25s var(--ease), color .25s var(--ease);
}

.ck-ph__member svg { color: var(--ink); }
.ck-ph__member:hover { background: var(--ink); color: #fff; }
.ck-ph__member:hover svg { color: var(--accent); }

.ck-ph__actions { margin-top: 4px; }

@media (max-width: 960px) {
  .ck-ph__body { grid-template-columns: auto minmax(0, 1fr); }
  .ck-ph .ck-avatar, .ck-ph .ck-avatar__img { width: 140px; height: 140px; }
}

@media (max-width: 640px) {
  .ck-ph__body { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 18px; }
  .ck-ph .ck-avatar, .ck-ph .ck-avatar__img { width: 128px; height: 128px; }
  .ck-ph .ck-avatar { margin-top: 20px; }
  .ck-ph__greeting, .ck-ph__row { justify-content: center; }
  .ck-ph__member { display: inline-flex; }
}

/* Insignia de administrador */
.ck-verified--admin { color: var(--ink); cursor: default; }
.ck-verified--admin svg path[stroke] { stroke: var(--accent); }
.ck-ph__member--admin { background: var(--ink); color: #fff; }
.ck-ph__member--admin svg { color: var(--accent); }
.ck-ph__member--admin svg path[stroke] { stroke: var(--ink); }
.ck-ph__name .ck-verified--admin { color: var(--ink); }

/* Insignia de administrador en azul verificado (estilo Instagram) */
.ck-ph__name .ck-verified--admin,
.ck-verified--admin { color: #1D9BF0; }
.ck-verified--admin svg path[stroke] { stroke: #fff; }
.ck-ph__member--admin { background: #1D9BF0; color: #fff; }
.ck-ph__member--admin svg { color: #fff; }
.ck-ph__member--admin svg path[stroke] { stroke: #1D9BF0; }
.ck-ph__member--admin:hover { background: #157ACC; color: #fff; }

/* Píldora de administrador: vuelve a negro con icono coral (la insignia del nombre sigue azul) */
.ck-ph__member--admin { background: var(--ink); color: #fff; }
.ck-ph__member--admin svg { color: var(--accent); }
.ck-ph__member--admin svg path[stroke] { stroke: var(--ink); }
.ck-ph__member--admin:hover { background: #2b2427; color: #fff; }

/* ---------- Móvil: el usuario protagonista ---------- */
@media (max-width: 640px) {
  .ck-ph { padding: 22px 0 22px; margin-bottom: 18px; }
  .ck-ph__body { gap: 14px; }

  .ck-ph .ck-avatar, .ck-ph .ck-avatar__img { width: 156px; height: 156px; }
  .ck-ph .ck-avatar { margin-top: 26px; margin-bottom: 6px; }
  .ck-ph .ck-avatar::before { inset: -40px; }
  .ck-ph .ck-avatar::after { inset: -10px; }
  .ck-ph .ck-avatar__btn { width: 44px; height: 44px; right: 2px; bottom: 4px; }

  .ck-ph__info { gap: 8px; width: 100%; }
  .ck-ph__greeting { font-size: 10.5px; }
  .ck-ph__name { font-size: 2.7rem; letter-spacing: -.05em; gap: 8px; }
  .ck-ph__name .ck-verified svg { width: 26px; height: 26px; }

  .ck-ph__row { flex-direction: column; gap: 8px; }
  .ck-ph__member { font-size: 10.5px; padding: 6px 12px; }
  .ck-ph__meta { font-size: 12.5px; line-height: 1.5; display: grid; gap: 2px; }
  .ck-ph__sep { display: none; }

  .ck-ph__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
    margin-top: 10px;
  }
  .ck-ph__actions .ck-btn { width: 100%; justify-content: center; }

  /* Indicadores compactos en dos columnas */
  .ck-ph__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
  .ck-ph__stat { padding: 12px 14px; min-width: 0; }
  .ck-ph__stat-value { font-size: 1.3rem; }
  .ck-ph__stat-label { font-size: 9.5px; letter-spacing: .1em; }

  .ck-admin-mrr-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .ck-admin-mrr-grid > div { padding: 14px 16px !important; border-radius: 16px !important; }
  .ck-admin-mrr-grid > div > div:first-child { font-size: 1.3rem !important; }
  .ck-admin-mrr-grid > div > div:last-child { font-size: 9.5px !important; letter-spacing: .1em !important; }
}

/* Hover del botón oscuro: texto blanco siempre */
.ck-btn--dark:hover,
.ck-btn--dark.ck-btn--sm:hover,
.ck-portal .subscription_details .button.cancel:hover {
  background: #2b2427 !important;
  color: #fff !important;
  transform: translateY(-1px);
}

/* Nombre completo: permitir dos líneas si es largo */
.ck-ph__name { flex-wrap: wrap; line-height: 1.02; }
@media (max-width: 640px) {
  .ck-ph__name { font-size: clamp(1.9rem, 9vw, 2.5rem); justify-content: center; }
  .ck-ph__meta { display: grid; gap: 2px; justify-items: center; }
  .ck-ph__meta-item { display: block; }
}

/* ---------- Móvil estilo Instagram ---------- */
@media (max-width: 640px) {
  .ck-ph { padding: 14px 0 20px; }

  .ck-ph__body {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    grid-template-areas:
      "avatar stats"
      "head   head"
      "actions actions";
    gap: 14px 18px;
    justify-items: stretch;
    text-align: left;
  }

  /* Sin indicadores (admin): nombre a la derecha de la foto */
  .ck-ph__body:not(:has(.ck-ph__stats)) {
    grid-template-areas:
      "avatar head"
      "actions actions";
    align-items: center;
  }

  .ck-ph .ck-avatar { grid-area: avatar; width: 96px; height: 96px; margin: 0; justify-self: start; }
  .ck-ph .ck-avatar__img { width: 96px; height: 96px; border-width: 3px; }
  .ck-ph .ck-avatar::before { inset: -18px; }
  .ck-ph .ck-avatar::after { inset: -6px; }
  .ck-ph .ck-avatar__btn { width: 32px; height: 32px; right: -2px; bottom: -2px; border-width: 2px; }
  .ck-ph .ck-avatar__btn svg { width: 14px; height: 14px; }

  .ck-ph__stats {
    grid-area: stats;
    display: flex;
    justify-content: space-around;
    align-items: center;
    align-self: center;
    gap: 8px;
    width: auto;
  }

  .ck-ph__stat { background: none; border: none; padding: 0; text-align: center; min-width: 0; gap: 2px; }
  .ck-ph__stat:hover { transform: none; }
  .ck-ph__stat-value { font-size: 1.35rem; }
  .ck-ph__stat-label { font-size: 10px; letter-spacing: .02em; text-transform: none; font-weight: 600; color: var(--grey-2); }

  .ck-ph__info { display: contents; }
  .ck-ph__head { grid-area: head; display: grid; gap: 6px; justify-items: start; text-align: left; min-width: 0; }
  .ck-ph__greeting { justify-content: flex-start; font-size: 10px; letter-spacing: .18em; }
  .ck-ph__name { font-size: 1.55rem; letter-spacing: -.035em; justify-content: flex-start; gap: 8px; }
  .ck-ph__name .ck-verified svg { width: 20px; height: 20px; }
  .ck-ph__row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .ck-ph__member { font-size: 10px; padding: 5px 10px; }
  .ck-ph__meta { display: grid; gap: 1px; justify-items: start; text-align: left; font-size: 13px; }
  .ck-ph__meta-item { display: block; }
  .ck-ph__sep { display: none; }

  .ck-ph__actions { grid-area: actions; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 2px; width: 100%; }
  .ck-ph__actions .ck-btn { width: 100%; justify-content: center; padding: 10px 12px !important; font-size: 13px !important; }
}

/* Menos aire entre el menú y el contenido */
.ck-portal { margin-top: 0; padding-top: 12px; }
.ck-ph { padding-top: 6px; }
@media (max-width: 640px) {
  .ck-portal { padding-top: 6px; }
  .ck-ph { padding-top: 4px; }
}

/* Separación equilibrada entre el menú y el contenido */
.ck-portal { padding-top: 28px; }
.ck-ph { padding-top: 10px; }
@media (max-width: 640px) {
  .ck-portal { padding-top: 18px; }
  .ck-ph { padding-top: 8px; }
}

/* Tarjeta MRR coral: cifra y etiqueta en blanco */
.ck-admin-mrr-grid > div:first-child > div { color: #fff !important; }
.ck-admin-mrr-grid > div:first-child > div:last-child { color: rgba(255, 255, 255, .85) !important; }
.ck-stat-card--accent .ck-stat-card__value { color: #fff; }
.ck-stat-card--accent .ck-stat-card__label { color: rgba(255, 255, 255, .85); }

/* Mis servicios: importe y periodo en una sola línea */
.ck-sub-item__price { display: flex; align-items: baseline; gap: 4px; white-space: nowrap; text-align: right; }
.ck-sub-item__amount { display: inline; }
.ck-sub-item__period { display: inline; font-size: 12px; color: var(--grey-2); }

/* ---------- Detalle de suscripción ---------- */
.ck-subd { max-width: 1100px; }

.ck-subd__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.ck-subd__title { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 800; letter-spacing: -.035em; color: var(--ink); margin: 0 0 4px; line-height: 1.1; }
.ck-subd__title small { font-size: 12px; font-weight: 700; color: var(--grey-2); background: var(--mist); border-radius: 999px; padding: 3px 10px; vertical-align: middle; margin-left: 6px; }
.ck-subd__sub { margin: 0; font-size: 13.5px; color: var(--grey-2); }
.ck-subd__head .ck-badge { margin-top: 30px; }

.ck-subd__grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.ck-subd__main { display: grid; gap: 16px; }
.ck-subd__side { display: grid; gap: 16px; position: sticky; top: 90px; }

.ck-subd__card { padding: 24px; }
.ck-subd__card:hover { transform: none; border-color: var(--line); box-shadow: none; }

.ck-subd__items { list-style: none; margin: 0; padding: 0; display: grid; }
.ck-subd__items li { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); font-size: 14.5px; }
.ck-subd__item-name { font-weight: 700; color: var(--ink); }
.ck-subd__item-name small { font-weight: 600; color: var(--grey-2); margin-left: 6px; }
.ck-subd__item-price { font-weight: 700; color: var(--ink); white-space: nowrap; }

.ck-subd__total { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding-top: 14px; font-size: 13.5px; color: var(--grey-2); }
.ck-subd__total small { color: var(--grey); }
.ck-subd__total-amount { font-size: 1.4rem; font-weight: 800; letter-spacing: -.03em; color: var(--ink); white-space: nowrap; }
.ck-subd__total-amount small { font-size: 12px; font-weight: 600; color: var(--grey-2); }

.ck-subd__orders { list-style: none; margin: 0; padding: 0; display: grid; }
.ck-subd__orders li { display: grid; grid-template-columns: 90px minmax(0, 1fr) auto auto auto; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); font-size: 13.5px; }
.ck-subd__orders li:last-child { border-bottom: none; }
.ck-subd__order-date { color: var(--grey-2); }
.ck-subd__order-id { font-weight: 600; color: var(--ink); }
.ck-subd__order-amount { font-weight: 800; color: var(--ink); white-space: nowrap; }
.ck-subd__pay { font-weight: 700; color: var(--accent-deep); text-decoration: none; }
.ck-subd__empty { margin: 0; font-size: 13.5px; color: var(--grey-2); }

.ck-subd__summary { display: grid; gap: 6px; }
.ck-subd__k { font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--grey-2); }
.ck-subd__amount { font-size: 2rem; font-weight: 800; letter-spacing: -.04em; color: var(--ink); line-height: 1; }
.ck-subd__amount small { font-size: 13px; font-weight: 600; color: var(--grey-2); margin-left: 4px; }

.ck-subd__details { list-style: none; margin: 14px 0 0; padding: 0; display: grid; }
.ck-subd__details li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line-soft); font-size: 13px; color: var(--grey-2); }
.ck-subd__details b { color: var(--ink); font-weight: 700; text-align: right; }

.ck-subd__actions { display: grid; gap: 8px; margin-top: 16px; }
.ck-btn--block { width: 100%; justify-content: center; }

.ck-subd__cancel { padding: 20px 22px; border-radius: var(--radius); background: var(--mist); display: grid; gap: 10px; }
.ck-subd__cancel p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--grey-2); }

/* Tablas de WooCommerce que quedan debajo (totales / pedidos relacionados) */
.ck-portal .woocommerce h2, .ck-portal .woocommerce h3 { font-size: 1rem; font-weight: 800; letter-spacing: -.02em; }

@media (max-width: 900px) {
  .ck-subd__grid { grid-template-columns: 1fr; }
  .ck-subd__side { position: static; }
  .ck-subd__orders li { grid-template-columns: 80px minmax(0, 1fr) auto; }
  .ck-subd__orders li .ck-badge, .ck-subd__orders li .ck-subd__pay { grid-column: 2 / -1; justify-self: start; }
}

/* Baja: nota discreta al pie de la suscripción */
.ck-subd__foot { margin: 28px 0 0; padding-top: 18px; border-top: 1px solid var(--line-soft); font-size: 13px; color: var(--grey-2); }
.ck-subd__foot a { color: var(--ink); font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--accent); padding-bottom: 1px; }
.ck-subd__foot a:hover { color: var(--accent-deep); }

/* Desglose: base imponible, impuestos, total */
.ck-subd__breakdown { list-style: none; margin: 10px 0 0; padding: 0; display: grid; }
.ck-subd__breakdown li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; font-size: 13px; color: var(--grey-2); border-bottom: 1px solid var(--line-soft); }
.ck-subd__breakdown b { color: var(--ink); font-weight: 700; }
.ck-subd__item-price small { font-size: 11px; font-weight: 600; color: var(--grey); margin-left: 4px; }
.ck-subd__total { padding-top: 12px; }

/* Móvil: resumen e importe primero, luego servicios e historial */
@media (max-width: 900px) {
  .ck-subd__grid { display: flex; flex-direction: column; gap: 14px; }
  .ck-subd__side { order: -1; }
  .ck-subd__head { flex-direction: column; gap: 10px; }
  .ck-subd__head .ck-badge { margin-top: 0; align-self: flex-start; }
  .ck-subd__card { padding: 18px; }
  .ck-subd__amount { font-size: 1.7rem; }
  .ck-subd__items li { flex-wrap: wrap; }
  .ck-subd__total { flex-wrap: wrap; }
  .ck-subd__orders li { grid-template-columns: 78px minmax(0, 1fr) auto; row-gap: 6px; }
  .ck-subd__orders li .ck-badge, .ck-subd__orders li .ck-subd__pay { grid-column: 2 / -1; justify-self: start; }
}

/* Móvil: las tarjetas ocupan todo el ancho */
@media (max-width: 900px) {
  .ck-subd__grid { align-items: stretch; }
  .ck-subd__main, .ck-subd__side { width: 100%; }
}

/* Móvil: forzar ancho completo de todas las tarjetas de la suscripción */
@media (max-width: 900px) {
  .ck-subd, .ck-subd__grid, .ck-subd__main, .ck-subd__side { width: 100% !important; max-width: none !important; }
  .ck-subd__main { display: block !important; }
  .ck-subd__main > .ck-subd__card { width: 100% !important; max-width: none !important; box-sizing: border-box; margin: 0 0 14px !important; }
  .ck-subd__side > .ck-subd__card { width: 100% !important; max-width: none !important; box-sizing: border-box; }
}

/* ---------- Panel del plugin embebido para administradores ---------- */
.ck-admin-panel { margin: 0 0 8px; }
.ck-admin-panel .clickah-pl-wrap,
.ck-admin-panel .clickah-pl-wrap-wide { max-width: none; margin: 0; }
.ck-admin-panel .clickah-pl-header { margin-bottom: 18px; padding-bottom: 14px; }
.ck-admin-panel .clickah-pl-header .clickah-pl-logo,
.ck-admin-panel .clickah-pl-header .clickah-pl-logo-img { display: none; }
.ck-admin-panel .clickah-pl-header h1 {
  display: flex; align-items: center; gap: 12px;
  font-size: 15px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); margin: 0;
}
.ck-admin-panel .clickah-pl-header h1::before { content: ""; width: 22px; height: 2px; background: var(--accent); flex: none; }
.ck-admin-panel .clickah-pl-scope a { text-decoration: none; }
.ck-admin-panel .clickah-pl-card { border-radius: var(--radius); }
.ck-admin-panel .clickah-pl-stat-card-dark .clickah-pl-stat-number { color: #fff; }
@media (max-width: 782px) {
  .ck-admin-panel .clickah-pl-wrap, .ck-admin-panel .clickah-pl-wrap-wide { margin: 0; }
}

/* Panel embebido: neutralizar estilos globales del tema */
.ck-admin-panel .clickah-pl-card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 16px; }
.ck-admin-panel .clickah-pl-card-head > div:first-child { flex: 1 1 320px; order: 0; }
.ck-admin-panel .clickah-pl-card-head > .clickah-pl-filters,
.ck-admin-panel .clickah-pl-card-head > a { order: 1; flex: 0 0 auto; }
.ck-admin-panel .clickah-pl-card-title { font-size: 15px !important; font-weight: 800 !important; letter-spacing: -.02em; margin: 0 0 4px !important; line-height: 1.3; }
.ck-admin-panel .clickah-pl-card-sub { margin: 0; }
.ck-admin-panel .clickah-pl-btn-icon svg { width: 15px; height: 15px; display: block; stroke: currentColor; fill: none; }
.ck-admin-panel .clickah-pl-btn-icon-primary svg { stroke: #fff; }
.ck-admin-panel .clickah-pl-btn-icon-primary:hover svg { stroke: var(--ink); }
.ck-admin-panel table { border-collapse: separate; }
.ck-admin-panel .clickah-pl-table thead th { font-size: 10.5px; }
.ck-admin-panel .clickah-pl-header .clickah-pl-scope .clickah-pl-filter-btn { font-size: 12.5px; }

/* ---------- Login: panel desenfocado de fondo ---------- */
.ck-auth--mock { background: var(--paper); }
.ck-auth--mock::before, .ck-auth--mock::after { display: none !important; }

.ck-mock {
  position: absolute;
  inset: 0;
  z-index: 0;
  padding: 24px 40px;
  max-width: 1180px;
  margin: 0 auto;
  filter: blur(7px) saturate(.9);
  opacity: .55;
  transform: scale(1.02);
  pointer-events: none;
  user-select: none;
  display: grid;
  gap: 18px;
  align-content: start;
}

.ck-auth--mock .ck-auth__content { z-index: 2; box-shadow: 0 40px 90px -40px rgba(28, 23, 25, .45); }
.ck-auth--mock .ck-auth__footer { position: relative; z-index: 2; }

/* velo para que el formulario respire */
.ck-auth--mock .ck-mock::after {
  content: "";
  position: absolute;
  inset: -40px;
  background: radial-gradient(60% 60% at 50% 45%, rgba(255, 255, 255, .75) 0%, rgba(255, 255, 255, .15) 100%);
}

.ck-mock i, .ck-mock b, .ck-mock span, .ck-mock em { display: block; border-radius: 999px; background: var(--mist-2); }

.ck-mock__nav { display: flex; align-items: center; justify-content: space-between; height: 54px; padding: 0 8px 0 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.ck-mock__logo { background: none; }
.ck-mock__logo .ck-logo__img { height: 26px !important; width: auto; }
.ck-mock__links { display: flex; gap: 10px; background: none; }
.ck-mock__links i { width: 64px; height: 12px; }
.ck-mock__links i.is-active { background: var(--ink); }
.ck-mock__btn { width: 110px; height: 34px; background: var(--ink); }

.ck-mock__profile { display: flex; align-items: center; gap: 26px; padding: 14px 0 6px; }
.ck-mock__avatar { width: 150px; height: 150px; border-radius: 50%; background: var(--accent); flex: none; box-shadow: 0 0 0 8px rgba(255, 147, 143, .18); }
.ck-mock__profile > div { display: grid; gap: 10px; }
.ck-mock__eyebrow { width: 120px; height: 9px; }
.ck-mock__name { width: 320px; height: 44px; background: var(--ink); border-radius: 12px; }
.ck-mock__line { width: 260px; height: 11px; }
.ck-mock__actions { display: flex; gap: 8px; background: none; }
.ck-mock__actions i { width: 120px; height: 34px; }
.ck-mock__actions i:first-child { background: var(--ink); }

.ck-mock__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ck-mock__stat { padding: 20px 22px; border: 1px solid var(--line); border-radius: 22px; background: #fff; display: grid; gap: 8px; }
.ck-mock__stat b { background: none; font-size: 1.8rem; font-weight: 800; letter-spacing: -.04em; color: var(--ink); line-height: 1; }
.ck-mock__stat span { width: 110px; height: 9px; }

.ck-mock__status { height: 44px; border-radius: 999px; background: #E6F4EA; }

.ck-mock__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ck-mock__card { padding: 20px; border: 1px solid var(--line); border-radius: 22px; background: #fff; display: grid; gap: 10px; }
.ck-mock__card i { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); }
.ck-mock__card b { width: 60%; height: 14px; border-radius: 6px; }
.ck-mock__card span { width: 90%; height: 9px; }
.ck-mock__card span.short { width: 40%; }

.ck-mock__rows { display: grid; gap: 10px; }
.ck-mock__row { display: grid; grid-template-columns: 44px 1fr 160px 90px; align-items: center; gap: 18px; padding: 14px 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.ck-mock__row i { width: 44px; height: 44px; border-radius: 50%; }
.ck-mock__row i.a { background: #E8F1FF; }
.ck-mock__row i.b { background: var(--accent); }
.ck-mock__row i.c { background: #EAF7EE; }
.ck-mock__row b { width: 70%; height: 12px; border-radius: 6px; }
.ck-mock__row span { width: 100%; height: 9px; }
.ck-mock__row em { width: 100%; height: 22px; background: #E6F4EA; }

@media (max-width: 720px) {
  .ck-mock { padding: 16px; gap: 12px; }
  .ck-mock__avatar { width: 90px; height: 90px; }
  .ck-mock__name { width: 180px; height: 30px; }
  .ck-mock__cards { grid-template-columns: 1fr; }
  .ck-mock__row { grid-template-columns: 36px 1fr 60px; }
  .ck-mock__row span { display: none; }
}

/* Panel embebido: icono de editar visible */
.ck-admin-panel .clickah-pl-btn-icon { color: var(--grey-2) !important; }
.ck-admin-panel .clickah-pl-btn-icon:hover { color: #fff !important; }
.ck-admin-panel .clickah-pl-btn-icon-primary { color: #fff !important; }
.ck-admin-panel .clickah-pl-btn-icon-primary:hover { color: var(--ink) !important; }
.ck-admin-panel .clickah-pl-btn-icon svg,
.ck-admin-panel .clickah-pl-btn-icon svg path,
.ck-admin-panel .clickah-pl-btn-icon svg rect,
.ck-admin-panel .clickah-pl-btn-icon svg circle,
.ck-admin-panel .clickah-pl-btn-icon svg line,
.ck-admin-panel .clickah-pl-btn-icon svg polyline { stroke: currentColor !important; fill: none !important; }

/* Panel embebido: ocultar la columna "Alta" para que quepa la tabla */
.ck-admin-panel #clickah-pl-subs-table th:nth-child(6),
.ck-admin-panel #clickah-pl-subs-table td:nth-child(6) { display: none; }

/* Login: logo más grande */
.ck-auth__brand { margin-bottom: 32px; }
.ck-auth__brand img,
.ck-auth__brand .ck-logo__img,
.ck-auth img.ck-logo__img {
  height: 72px !important;
  max-height: 72px !important;
  max-width: 260px !important;
  width: auto !important;
}
.ck-auth__logo-text { font-size: 2.4rem; }
@media (max-width: 480px) {
  .ck-auth__brand img, .ck-auth__brand .ck-logo__img, .ck-auth img.ck-logo__img { height: 56px !important; max-height: 56px !important; }
}
