/* ═══════════════════════════════════════
   Área de clientes — Laooz Studios
═══════════════════════════════════════ */

.user-area {
  background: var(--laooz-surface);
  color: #151c27;
}

/* ── Header: acciones guest vs user (site-shell) ── */

.header-actions-user {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.65rem 0.25rem 0.35rem;
  border: 1px solid var(--laooz-border);
  border-radius: 999px;
  background: #fff;
}

.page-user .header-actions-guest {
  display: none !important;
}

.page-user .header-actions-user {
  display: flex;
  border-color: rgba(var(--brand-rgb), 0.35);
  background: var(--brand-soft);
}

.header-user-menu .user-sidebar-toggle--in-menu {
  margin-right: 0;
}

/* ── Barra del panel (debajo del header del sitio) ── */

.user-panel-bar {
  border-top: 1px solid var(--laooz-border);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
}

.user-panel-bar-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 80rem;
  margin-inline: auto;
  padding: 0.65rem 1.25rem;
}

.user-panel-bar-label {
  flex-shrink: 0;
  margin: 0;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--link);
}

.user-panel-nav {
  display: flex;
  flex: 1;
  gap: 0.35rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.user-panel-nav::-webkit-scrollbar {
  display: none;
}

.user-panel-nav-btn {
  flex-shrink: 0;
  padding: 0.45rem 0.85rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: #6b7280;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.user-panel-nav-btn:hover {
  background: #f9fafb;
  color: #151c27;
}

.user-panel-nav-btn.is-active {
  border-color: rgba(var(--brand-rgb), 0.35);
  background: var(--brand-soft);
  color: #151c27;
}

.user-panel-nav-btn--cta {
  background: #151c27;
  color: #fff;
}

.user-panel-nav-btn--cta:hover {
  background: #1f2937;
  color: #fff;
}

.user-panel-nav-btn--cta.is-active {
  border-color: #151c27;
  background: #151c27;
  color: #fff;
}

@media (min-width: 1024px) {
  .user-panel-bar {
    display: none;
  }
}

/* ── Topbar legacy (eliminado del markup; estilos del menú usuario) ── */

.user-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--laooz-border);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
}

.user-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 80rem;
  margin-inline: auto;
  padding: 0.85rem 1.25rem;
}

.user-topbar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.user-sidebar-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--laooz-border);
  border-radius: 10px;
  background: #fff;
  color: #6b7280;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.user-sidebar-toggle:hover {
  background: #f9fafb;
  color: #151c27;
}

.user-sidebar-toggle--in-menu {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  margin-right: 0.15rem;
  border: none;
  border-radius: 8px;
  background: transparent;
}

.user-sidebar-toggle--in-menu:hover {
  background: #f3f4f6;
}

.user-topbar-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.user-topbar-logo .logo-wordmark {
  font-size: 1.75rem;
  line-height: 1;
  letter-spacing: -1.25px;
}

@media (min-width: 640px) {
  .user-topbar-logo .logo-wordmark {
    font-size: 2rem;
    letter-spacing: -1.5px;
  }
}

.user-topbar-sep {
  display: none;
  width: 1px;
  height: 1.25rem;
  background: var(--laooz-border);
}

.user-topbar-label {
  display: none;
  font-size: 0.82rem;
  color: #6b7280;
  white-space: nowrap;
}

.user-topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.user-topbar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--laooz-border);
  border-radius: 10px;
  background: #fff;
  color: #6b7280;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.user-topbar-btn:hover {
  border-color: rgba(21, 28, 39, 0.12);
  color: #151c27;
}

.user-topbar-btn--support {
  width: auto;
  gap: 0.4rem;
  padding: 0 0.85rem;
  font-size: 0.8rem;
  font-weight: 500;
}

.user-user-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.65rem 0.25rem 0.35rem;
  border: 1px solid var(--laooz-border);
  border-radius: 999px;
  background: #fff;
}

.user-user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #151c27;
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-heading);
}

.user-user-info {
  display: none;
  flex-direction: column;
  line-height: 1.2;
}

.user-user-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: #151c27;
}

.user-person-name {
  font-family: var(--font-logo);
  font-weight: 700;
  letter-spacing: -0.5px;
}

.user-topbar .user-person-name {
  font-size: 0.95rem;
  line-height: 1;
}

.user-page-title .user-person-name {
  letter-spacing: -1px;
}

.user-user-company {
  font-size: 0.68rem;
  color: #9ca3af;
}

/* ── Shell layout ── */

.user-body {
  width: 100%;
  max-width: 80rem;
  margin-inline: auto;
  padding: 1.25rem 1.25rem 2.5rem;
}

.user-shell {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}

.user-sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(21, 28, 39, 0.45);
}

.user-sidebar {
  position: fixed;
  top: var(--site-sticky-height, 7.5rem);
  left: 1rem;
  z-index: 50;
  width: min(16.5rem, calc(100vw - 2rem));
  height: calc(100vh - var(--site-sticky-height, 7.5rem) - 1rem);
  padding: 1.25rem 0.85rem;
  border: 1px solid var(--laooz-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 40px rgba(21, 28, 39, 0.12);
  transform: translateX(calc(-100% - 1.5rem));
  transition: transform 0.25s ease;
  overflow-y: auto;
}

.user-sidebar.is-open {
  transform: translateX(0);
}

.user-sidebar-backdrop.is-visible {
  display: block;
}

.user-nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.user-nav-label {
  margin: 1rem 0.65rem 0.4rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9ca3af;
}

.user-nav-label:first-child {
  margin-top: 0;
}

.user-nav-btn {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #6b7280;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.user-nav-btn svg {
  flex-shrink: 0;
  opacity: 0.65;
}

.user-nav-btn:hover {
  background: #f9fafb;
  color: #151c27;
}

.user-nav-btn.is-active {
  background: var(--brand-soft);
  color: #151c27;
}

.user-nav-btn.is-active svg {
  opacity: 1;
  color: var(--link);
}

.user-nav-btn--cta {
  margin-top: 0.5rem;
  background: #151c27;
  color: #fff;
}

.user-nav-btn--cta:hover {
  background: #1f2937;
  color: #fff;
}

.user-nav-btn--cta.is-active {
  background: #151c27;
  color: #fff;
}

.user-nav-btn--link,
.user-panel-nav-btn--link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  cursor: pointer;
}

.user-panel-nav-btn--link {
  flex-shrink: 0;
}

.user-alert {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 500;
}

.user-alert--success {
  background: rgba(var(--brand-rgb), 0.12);
  border: 1px solid rgba(var(--brand-rgb), 0.35);
  color: #151c27;
}

.user-alert--error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.user-sidebar-foot {
  margin-top: 1.5rem;
  padding: 1rem 0.75rem 0;
  border-top: 1px solid var(--laooz-border);
}

.user-sidebar-foot a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--link);
  text-decoration: none;
}

.user-sidebar-foot a:hover {
  color: var(--link-hover);
}

/* ── Main content ── */

.user-main {
  padding: 0;
  min-width: 0;
}

.user-panel {
  display: none;
  animation: userFadeIn 0.25s ease;
}

.user-panel.is-active {
  display: block;
}

@keyframes userFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.user-page-header {
  margin-bottom: 1.5rem;
}

.user-page-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--link);
}

.user-page-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  line-height: 1.2;
  color: #151c27;
}

.user-page-title:focus {
  outline: none;
}

.user-page-title:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 4px;
  border-radius: 4px;
}

.user-page-title span {
  position: relative;
}

.user-page-title span::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.05em;
  width: 100%;
  height: 0.35em;
  background: var(--brand);
  opacity: 0.55;
  z-index: -1;
}

.user-page-desc {
  margin: 0.5rem 0 0;
  max-width: 38rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #6b7280;
}

/* ── Overview meta strip ── */

.user-overview-meta {
  display: grid;
  gap: 0;
  margin-bottom: 1rem;
  border: 1px solid var(--laooz-border);
  border-radius: 12px;
  background: #fafafa;
  overflow: hidden;
}

.user-overview-meta-item {
  padding: 0.85rem 1rem;
}

.user-overview-meta-item + .user-overview-meta-item {
  border-top: 1px solid var(--laooz-border);
}

.user-overview-meta-label {
  margin: 0 0 0.2rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #9ca3af;
}

.user-overview-meta-main {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: #151c27;
}

.user-overview-meta-sub {
  margin: 0.2rem 0 0;
  font-size: 0.76rem;
  color: #6b7280;
}

.user-overview-meta-sub--email {
  color: var(--link);
  word-break: break-word;
}

/* ── Home products list ── */

.user-home-products {
  margin-bottom: 1rem;
}

.user-home-products-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.user-home-products-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: #151c27;
}

.user-home-products-link {
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--link);
  cursor: pointer;
  text-decoration: none;
}

.user-home-products-link:hover {
  text-decoration: underline;
}

.user-product-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--laooz-border);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.user-product-row {
  display: grid;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid #f3f4f6;
}

.user-product-row:last-child {
  border-bottom: none;
}

.user-product-row-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
}

.user-product-row-top .user-badge {
  flex-shrink: 0;
}

.user-product-name {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: #151c27;
  line-height: 1.35;
}

.user-product-meta,
.user-product-renewal {
  margin: 0.25rem 0 0;
  font-size: 0.76rem;
  color: #9ca3af;
  line-height: 1.45;
  word-break: break-word;
}

.user-product-row-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
}

.user-product-row-actions .user-badge {
  flex-shrink: 0;
  min-height: 1.875rem;
  padding-inline: 0.72rem;
}

.user-product-empty {
  padding: 1rem;
  border: 1px dashed var(--laooz-border);
  border-radius: 12px;
  background: #fafafa;
}

.user-product-empty-title {
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #151c27;
}

.user-product-empty-desc {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  color: #6b7280;
  line-height: 1.5;
}

.user-product-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ── Cards & grids ── */

.user-grid-2 {
  display: grid;
  gap: 1rem;
}

.user-card {
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--laooz-border);
  border-radius: 14px;
  background: #fff;
}

.user-card-title {
  margin: 0 0 0.85rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: #151c27;
}

.user-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.user-action-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--laooz-border);
  border-radius: 999px;
  background: #fff;
  color: #151c27;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.user-action-chip:hover {
  border-color: rgba(var(--brand-rgb), 0.45);
  background: var(--brand-soft);
}

.user-action-chip--brand {
  border-color: transparent;
  background: var(--brand);
  color: #151c27;
}

.user-action-chip--brand:hover {
  background: var(--brand-hover);
}

/* ── Activity list ── */

.user-activity {
  margin: 0;
  padding: 0;
  list-style: none;
}

.user-activity li {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.85rem;
}

.user-activity li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.user-activity-dot {
  flex-shrink: 0;
  width: 0.5rem;
  height: 0.5rem;
  margin-top: 0.35rem;
  border-radius: 50%;
  background: var(--brand);
}

.user-activity-body strong {
  display: block;
  font-weight: 600;
  color: #151c27;
}

.user-activity-body span {
  color: #9ca3af;
  font-size: 0.78rem;
}

/* ── Service cards ── */

.user-services-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.user-service-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--laooz-border);
  border-radius: 14px;
  background: #fff;
}

.user-service-card-main {
  min-width: 0;
}

.user-service-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.user-service-top .user-badge {
  flex-shrink: 0;
}

.user-service-name {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: #151c27;
}

.user-service-plan {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  color: #9ca3af;
}

.user-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 1.875rem;
  padding: 0 0.72rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  vertical-align: middle;
  box-sizing: border-box;
}

.user-badge-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
  transform: translateY(0);
}

.user-badge--active {
  background: rgba(74, 100, 18, 0.1);
  color: var(--link);
}

.user-badge--pending {
  background: rgba(180, 83, 9, 0.1);
  color: #b45309;
}

.user-badge--warn {
  background: rgba(185, 28, 28, 0.1);
  color: #b91c1c;
}

.user-badge--resolved {
  background: #f3f4f6;
  color: #6b7280;
}

.user-badge--progress {
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
}

.user-service-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: #6b7280;
}

.user-service-meta strong {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.user-service-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
}

.user-service-actions .user-badge {
  flex-shrink: 0;
}

.user-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem 0.95rem;
  border: 1px solid var(--laooz-border);
  border-radius: 10px;
  background: #fff;
  color: #151c27;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

a.user-btn {
  text-decoration: none;
}

.user-btn:hover {
  border-color: rgba(21, 28, 39, 0.15);
  background: #f9fafb;
}

.user-btn--brand {
  border-color: transparent;
  background: var(--brand);
  color: #151c27;
}

.user-btn--brand:hover {
  background: var(--brand-hover);
}

.user-btn--dark {
  border-color: transparent;
  background: #151c27;
  color: #fff;
}

.user-btn--dark:hover {
  background: #1f2937;
  color: #fff;
}

.user-btn--disabled,
span.user-btn--disabled {
  cursor: default;
  opacity: 0.65;
  pointer-events: none;
  background: #f3f4f6;
  color: #6b7280;
}

.user-btn--sm {
  min-height: 1.875rem;
  padding: 0.42rem 0.75rem;
  font-size: 0.76rem;
  line-height: 1;
}

/* ── Discover grid ── */

.user-discover-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}

.user-discover-card {
  padding: 1.15rem;
  border: 1px solid var(--laooz-border);
  border-radius: 14px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.user-discover-card:hover {
  border-color: rgba(var(--brand-rgb), 0.35);
  box-shadow: 0 8px 24px rgba(21, 28, 39, 0.06);
}

.user-discover-tag {
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  background: var(--brand-soft);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--link);
}

.user-discover-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
}

.user-discover-desc {
  margin: 0.4rem 0 0.85rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #6b7280;
}

.user-discover-price {
  font-size: 0.8rem;
  font-weight: 600;
  color: #151c27;
}

/* ── Billing ── */

.user-billing-summary {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.user-billing-highlight {
  padding: 1.25rem;
  border-radius: 14px;
  background: #151c27;
  color: rgba(255, 255, 255, 0.7);
}

.user-billing-highlight-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
}

.user-billing-highlight-amount {
  margin: 0.35rem 0;
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--brand);
}

.user-billing-highlight-date {
  font-size: 0.82rem;
}

.user-billing-card + .user-card {
  margin-top: 1rem;
}

.user-badge--table {
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
}

.user-billing-table td strong {
  font-weight: 600;
  color: #151c27;
}

.user-billing-empty-title {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: #151c27;
}

.user-billing-empty-desc {
  margin: 0;
  max-width: 36rem;
  font-size: 0.85rem;
  line-height: 1.55;
  color: #6b7280;
}

.user-billing-contact {
  margin: 0.85rem 0 0;
  font-size: 0.72rem;
  line-height: 1.4;
  color: #9ca3af;
}

.user-billing-contact a {
  color: #9ca3af;
  text-decoration: none;
}

.user-billing-contact a:hover {
  color: #6b7280;
  text-decoration: underline;
}

.user-billing-home-alert {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1rem;
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(185, 28, 28, 0.2);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(185, 28, 28, 0.06) 0%, #fff 100%);
}

.user-billing-home-alert-title {
  margin: 0 0 0.2rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: #991b1b;
}

.user-billing-home-alert-desc {
  margin: 0;
  font-size: 0.8rem;
  color: #6b7280;
}

.user-billing-alert {
  margin-bottom: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  background: #151c27;
  color: rgba(255, 255, 255, 0.85);
}

.user-billing-alert-eyebrow {
  margin: 0 0 0.25rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.user-billing-alert-title {
  margin: 0 0 0.35rem;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.user-billing-alert-desc {
  margin: 0;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.65);
}

.user-billing-status-ok {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--laooz-border);
  border-radius: 10px;
  background: #f9fafb;
  font-size: 0.85rem;
  color: #6b7280;
}

.user-billing-status-ok p {
  margin: 0;
}

.user-billing-section {
  margin-bottom: 1rem;
}

.user-billing-section-title {
  margin: 0 0 0.65rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: #151c27;
}

.user-billing-due-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.user-billing-due-card {
  padding: 0;
  border: 1px solid rgba(185, 28, 28, 0.18);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  overflow: hidden;
}

.user-billing-due-card-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 0.95rem 1rem;
}

.user-billing-due-card-main {
  min-width: 0;
}

.user-billing-due-card-aside {
  max-width: min(100%, 18rem);
}

.user-billing-row-aside {
  justify-content: flex-end;
}

.user-billing-row-status {
  vertical-align: middle;
}

.user-billing-table td {
  vertical-align: middle;
}

.user-billing-table .user-billing-row-aside {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.user-billing-due-name {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #151c27;
}

.user-billing-due-meta {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  color: #6b7280;
}

.user-billing-due-details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  margin: 0;
}

.user-billing-due-details div {
  margin: 0;
}

.user-billing-due-details dt {
  margin: 0 0 0.15rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9ca3af;
}

.user-billing-due-details dd {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 600;
  color: #151c27;
}

.user-billing-bank {
  margin-bottom: 1rem;
}

.user-billing-bank-lead {
  margin: -0.25rem 0 0.85rem;
  font-size: 0.84rem;
  color: #6b7280;
}

.user-billing-bank-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1rem;
  margin: 0 0 0.85rem;
}

.user-billing-bank-grid div {
  margin: 0;
}

.user-billing-bank-grid dt {
  margin: 0 0 0.15rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9ca3af;
}

.user-billing-bank-grid dd {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: #151c27;
}

.user-billing-bank-grid--wide {
  grid-column: 1 / -1;
}

.user-billing-bank-account {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 1rem !important;
  letter-spacing: 0.04em;
}

.user-billing-bank-note {
  margin: 0 0 0.75rem;
  padding: 0.75rem 0.85rem;
  border-radius: 8px;
  background: #f9fafb;
  font-size: 0.82rem;
  line-height: 1.55;
  color: #4b5563;
}

.user-billing-row-sub {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.76rem;
  font-weight: 400;
  color: #9ca3af;
}

.user-billing-row--due {
  background: rgba(185, 28, 28, 0.03);
}

.user-billing-muted {
  color: #9ca3af;
  font-size: 0.85rem;
}

@media (min-width: 720px) {
  .user-billing-bank-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .user-billing-pay-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.user-billing-demo-note {
  margin: -0.25rem 0 0.75rem;
  font-size: 0.72rem;
  color: #b45309;
}

.user-billing-status-review {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(180, 83, 9, 0.25);
  border-radius: 10px;
  background: #fffbeb;
  font-size: 0.85rem;
  color: #92400e;
}

.user-billing-status-review p {
  margin: 0;
}

.user-billing-home-alert--review {
  border-color: rgba(180, 83, 9, 0.25);
  background: linear-gradient(135deg, rgba(180, 83, 9, 0.06) 0%, #fff 100%);
}

.user-billing-home-alert--review .user-billing-home-alert-title {
  color: #92400e;
}

.user-billing-pay-form {
  margin: 0;
  padding: 0;
  border: none;
}

.user-billing-pay-fields {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.user-billing-pay-status {
  margin: 0.65rem 0 0;
  font-size: 0.82rem;
  font-weight: 600;
}

.user-billing-pay-status--review {
  color: #b45309;
}

.user-billing-pay-status--rejected {
  color: #b91c1c;
}

.user-billing-due-card--review {
  border-color: rgba(180, 83, 9, 0.25);
}

@media (max-width: 639px) {
  .user-service-card {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .user-service-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .user-billing-due-card-inner {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .user-billing-due-card-aside {
    width: 100%;
    max-width: none;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .user-billing-table .user-billing-row-aside {
    justify-content: flex-start;
  }
}

.user-billing-bank-block {
  margin: 0;
}

.user-billing-bank-block--modal .user-billing-demo-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.55rem;
  margin: 0 0 0.75rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(180, 83, 9, 0.22);
  border-radius: 10px;
  background: #fffbeb;
  font-size: 0.74rem;
  line-height: 1.45;
  color: #92400e;
}

.user-billing-demo-badge {
  display: inline-flex;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: rgba(180, 83, 9, 0.14);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.user-billing-bank-account-card {
  margin-bottom: 0.85rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(var(--brand-rgb), 0.35);
  border-radius: 14px;
  background: linear-gradient(145deg, var(--brand-soft) 0%, #fff 55%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.user-billing-bank-account-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}

.user-billing-bank-account-label {
  margin: 0 0 0.25rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b7280;
}

.user-billing-bank-block--modal .user-billing-bank-account {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 1.15rem !important;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #151c27;
  word-break: break-all;
}

.user-billing-bank-account-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: #6b7280;
}

.user-billing-copy-btn {
  flex-shrink: 0;
  padding: 0.38rem 0.7rem;
  border: 1px solid rgba(21, 28, 39, 0.12);
  border-radius: 999px;
  background: #fff;
  color: #151c27;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.user-billing-copy-btn:hover {
  border-color: rgba(21, 28, 39, 0.2);
  background: #f9fafb;
}

.user-billing-copy-btn.is-copied {
  border-color: rgba(22, 163, 74, 0.35);
  background: #ecfdf5;
  color: #15803d;
}

.user-billing-bank-grid--compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 0.85rem;
  margin-bottom: 0.65rem;
}

.user-billing-bank-block--modal .user-billing-bank-note {
  margin: 0;
  padding: 0.65rem 0.75rem;
  border: 1px dashed #e5e7eb;
  border-radius: 10px;
  background: #fafafa;
  font-size: 0.78rem;
}

.user-billing-pay-step-card {
  margin-bottom: 0.85rem;
  padding: 1rem;
  border: 1px solid var(--laooz-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.user-billing-pay-step-card:last-child {
  margin-bottom: 0;
}

.user-billing-pay-step-card--upload {
  background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
}

.user-billing-pay-step-head {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.user-billing-pay-step-title {
  margin: 0 0 0.2rem;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 600;
  color: #151c27;
}

.user-billing-pay-step-desc {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: #6b7280;
}

.user-billing-pay-step-num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 999px;
  background: #151c27;
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  box-shadow: 0 0 0 4px rgba(21, 28, 39, 0.06);
}

.user-billing-pay-rejected {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(185, 28, 28, 0.22);
  border-radius: 12px;
  background: linear-gradient(135deg, #fef2f2 0%, #fff 100%);
}

.user-billing-pay-rejected-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  background: #fecaca;
  color: #b91c1c;
  font-size: 0.78rem;
  font-weight: 800;
}

.user-billing-pay-rejected-title {
  margin: 0 0 0.15rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #991b1b;
}

.user-billing-pay-rejected-text {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #b91c1c;
}

.user-billing-file-drop {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
  padding: 1.35rem 1rem;
  border: 1.5px dashed #d1d5db;
  border-radius: 14px;
  background: #fff;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.user-billing-file-drop:hover,
.user-billing-file-drop:focus-within,
.user-billing-file-drop.is-dragover {
  border-color: rgba(var(--brand-rgb), 0.55);
  background: var(--brand-soft);
  box-shadow: 0 0 0 4px rgba(var(--brand-rgb), 0.08);
}

.user-billing-file-drop.is-selected {
  border-style: solid;
  border-color: rgba(var(--brand-rgb), 0.45);
  background: var(--brand-soft);
}

.user-billing-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.user-billing-file-drop-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  background: #f3f4f6;
  color: #374151;
}

.user-billing-file-drop.is-selected .user-billing-file-drop-icon,
.user-billing-file-drop:focus-within .user-billing-file-drop-icon {
  background: rgba(var(--brand-rgb), 0.18);
  color: #151c27;
}

.user-billing-file-drop-label {
  font-size: 0.84rem;
  font-weight: 600;
  color: #151c27;
}

.user-billing-file-drop-hint {
  font-size: 0.72rem;
  color: #9ca3af;
}

.user-billing-file-drop-name {
  margin-top: 0.15rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: #151c27;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 500;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-billing-ref-field {
  margin: 0;
}

.user-billing-optional {
  font-weight: 400;
  color: #9ca3af;
}

.user-billing-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  visibility: hidden;
  pointer-events: none;
}

.user-billing-modal[hidden] {
  display: none;
}

.user-billing-modal.is-open {
  visibility: visible;
  pointer-events: auto;
}

.user-billing-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.62);
  opacity: 0;
  backdrop-filter: blur(6px);
  transition: opacity 0.32s ease;
}

.user-billing-modal.is-open .user-billing-modal-backdrop {
  opacity: 1;
}

.user-billing-modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 36rem);
  max-height: min(94vh, 54rem);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px 20px 0 0;
  background: #fff;
  box-shadow: 0 -12px 48px rgba(15, 23, 42, 0.22);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  transform: translateY(24px);
  opacity: 0;
  transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.32s ease;
}

.user-billing-modal.is-open .user-billing-modal-panel {
  transform: translateY(0);
  opacity: 1;
}

.user-billing-modal-scroll {
  min-height: 0;
}

.user-billing-modal-hero {
  position: relative;
  padding: 0.75rem 0.85rem 0.7rem;
  background: linear-gradient(145deg, #151c27 0%, #1f2937 100%);
  color: #fff;
}

.user-billing-modal-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand) 0%, rgba(var(--brand-rgb), 0.35) 100%);
}

.user-billing-modal-hero-inner {
  padding-right: 1.85rem;
}

.user-billing-modal-eyebrow {
  margin: 0 0 0.15rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.user-billing-modal-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}

.user-billing-modal-subtitle {
  margin: 0.2rem 0 0;
  font-size: 0.74rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.58);
}

.user-billing-modal-subtitle[hidden] {
  display: none;
}

.user-billing-modal-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.45rem 0 0;
  padding: 0;
}

.user-billing-modal-chips[hidden] {
  display: none;
}

.user-billing-modal-chips div {
  margin: 0;
}

.user-billing-modal-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.user-billing-modal-chip dt {
  margin: 0;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.user-billing-modal-chip dd {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 600;
  color: #fff;
}

.user-billing-modal-close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.user-billing-modal-close:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.user-billing-modal-body {
  padding: 0.85rem;
  background: #f3f4f6;
}

.user-billing-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 0.75rem 0.85rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--laooz-border);
  background: #fff;
}

.user-billing-modal-footer[hidden] {
  display: none;
}

.user-billing-modal-footer .user-btn--brand {
  min-width: 9.5rem;
}

body.user-billing-modal-open,
html.user-billing-modal-open {
  overflow: hidden;
}

@media (min-width: 640px) {
  .user-billing-modal {
    align-items: center;
    padding: 1.25rem;
  }

  .user-billing-modal-panel {
    border-radius: 20px;
    max-height: min(88vh, 54rem);
  }

  .user-billing-modal-hero {
    padding: 0.8rem 1rem 0.75rem;
  }

  .user-billing-modal-body {
    padding: 0.95rem 1rem;
  }

  .user-billing-modal-footer {
    padding-inline: 1rem;
  }
}

.user-billing-help-line {
  margin: 0.65rem 0 0;
  font-size: 0.8rem;
  color: #9ca3af;
}

.user-billing-help-line a {
  color: var(--link);
  text-decoration: none;
}

.user-billing-help-line a:hover {
  text-decoration: underline;
}

.user-billing-pay-page {
  padding-top: 1.25rem;
  padding-bottom: 2.5rem;
}

.user-billing-pay-page-inner {
  width: 100%;
  max-width: 40rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.user-billing-pay-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.45rem;
  margin: 0 0 1rem;
  font-size: 0.78rem;
  color: #9ca3af;
}

.user-billing-pay-breadcrumb a {
  color: var(--link);
  text-decoration: none;
}

.user-billing-pay-breadcrumb a:hover {
  text-decoration: underline;
}

.user-billing-pay-page-header {
  margin-bottom: 1rem;
}

.user-billing-pay-page-subtitle {
  margin: 0.25rem 0 0;
  font-size: 0.84rem;
  color: #6b7280;
}

.user-billing-pay-page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  margin: 0.75rem 0 0;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--laooz-border);
  border-radius: 12px;
  background: #f9fafb;
}

.user-billing-pay-page-meta div {
  margin: 0;
}

.user-billing-pay-page-meta dt {
  margin: 0 0 0.15rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9ca3af;
}

.user-billing-pay-page-meta dd {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: #151c27;
}

.user-billing-pay-page-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.user-billing-pay-page .user-billing-help-line {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #f3f4f6;
}

.user-payment-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--laooz-border);
  border-radius: 14px;
  background: #fff;
}

.user-payment-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  background: #f3f4f6;
  font-size: 0.7rem;
  font-weight: 700;
  color: #151c27;
}

.user-payment-info strong {
  display: block;
  font-size: 0.88rem;
}

.user-payment-info span {
  font-size: 0.78rem;
  color: #9ca3af;
}

/* ── Table ── */

.user-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--laooz-border);
  border-radius: 14px;
  background: #fff;
}

.user-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.user-table th {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--laooz-border);
  background: #f9fafb;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: left;
  text-transform: uppercase;
  color: #9ca3af;
}

.user-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #f3f4f6;
  color: #374151;
}

.user-table tr:last-child td {
  border-bottom: none;
}

.user-table-link {
  color: var(--link);
  font-weight: 500;
  text-decoration: none;
}

.user-table-link:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

/* ── Forms ── */

.user-form-grid {
  display: grid;
  gap: 1rem;
}

.user-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.user-field label {
  font-size: 0.78rem;
  font-weight: 500;
  color: #374151;
}

.user-field input,
.user-field select,
.user-field textarea {
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--laooz-border);
  border-radius: 10px;
  background: #fff;
  font-size: 0.875rem;
  color: #151c27;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.user-field input:focus,
.user-field select:focus,
.user-field textarea:focus {
  outline: none;
  border-color: rgba(var(--brand-rgb), 0.55);
  box-shadow: 0 0 0 3px rgba(var(--brand-rgb), 0.12);
}

.user-field textarea {
  min-height: 7rem;
  resize: vertical;
}

.user-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

/* ── Support ── */

.user-support-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.user-ticket-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.user-home-tickets {
  margin-bottom: 1rem;
}

.user-home-billing {
  margin-bottom: 1rem;
}

.user-billing-home-kind {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9ca3af;
}

.user-billing-home-kind--due {
  color: #b45309;
}

.user-billing-home-subtitle {
  margin: 0.1rem 0 0;
  font-size: 0.78rem;
  color: #6b7280;
}

.user-billing-home-pay {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  min-height: 1.875rem;
  padding: 0 0.72rem;
  border-radius: 999px;
  background: var(--brand);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #151c27;
  white-space: nowrap;
}

.user-billing-home-row--due {
  background: linear-gradient(90deg, rgba(185, 28, 28, 0.03) 0%, #fff 100%);
}

.user-billing-home-more {
  margin: 0.55rem 0 0;
  font-size: 0.78rem;
  color: #6b7280;
}

.user-billing-home-more a {
  margin-left: 0.25rem;
  color: var(--link);
  text-decoration: none;
}

.user-billing-home-more a:hover {
  text-decoration: underline;
}

.user-ticket-list--compact {
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
  border: 1px solid var(--laooz-border);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.user-ticket-list--compact > li {
  border-bottom: 1px solid #f3f4f6;
}

.user-ticket-list--compact > li:last-child {
  border-bottom: none;
}

.user-ticket-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  color: inherit;
  text-decoration: none;
  transition: background 0.15s ease;
}

.user-ticket-row:hover {
  background: #fafafa;
}

.user-ticket-row-main {
  min-width: 0;
}

.user-ticket-row-main .user-ticket-id {
  display: block;
  margin-bottom: 0.2rem;
}

.user-ticket-row-aside {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.55rem;
  align-self: center;
}

.user-ticket-row-aside .user-badge,
.user-billing-due-card-aside .user-badge,
.user-billing-row-aside .user-badge,
.user-service-actions .user-badge {
  flex-shrink: 0;
  min-height: 1.875rem;
  padding: 0 0.72rem;
  font-size: 0.68rem;
}

.user-ticket-row-aside .user-btn--sm,
.user-billing-due-card-aside .user-btn--sm,
.user-billing-row-aside .user-btn--sm,
.user-service-actions .user-btn {
  flex-shrink: 0;
  white-space: nowrap;
}

.user-ticket-row-chevron {
  flex-shrink: 0;
  line-height: 1;
  font-size: 0.85rem;
  color: #c4c9d1;
  transition: color 0.15s ease, transform 0.15s ease;
}

.user-ticket-row:hover .user-ticket-row-chevron {
  color: var(--link);
  transform: translateX(2px);
}

.user-ticket-empty {
  padding: 1.25rem 1rem;
  border: 1px solid var(--laooz-border);
  border-radius: 12px;
  background: #fff;
  text-align: center;
}

.user-ticket-empty-title {
  margin: 0 0 0.25rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: #151c27;
}

.user-ticket-empty-desc {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  color: #6b7280;
}

.user-ticket-item {
  display: grid;
  gap: 0.5rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--laooz-border);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.user-ticket-item:hover {
  border-color: rgba(var(--brand-rgb), 0.35);
  background: #fafafa;
}

.user-ticket-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.user-ticket-id {
  font-size: 0.75rem;
  font-weight: 600;
  color: #9ca3af;
}

.user-ticket-subject {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #151c27;
}

.user-ticket-meta {
  font-size: 0.78rem;
  color: #9ca3af;
}

.user-help-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(var(--brand-rgb), 0.25);
  border-radius: 14px;
  background: var(--brand-soft);
}

.user-help-banner p {
  margin: 0;
  font-size: 0.85rem;
  color: #384d0e;
}

/* ── Responsive ── */

@media (min-width: 640px) {
  .user-topbar-sep,
  .user-topbar-label {
    display: block;
  }

  .user-user-info {
    display: flex;
  }

  .user-overview-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .user-overview-meta-item + .user-overview-meta-item {
    border-top: none;
    border-left: 1px solid var(--laooz-border);
  }

  .user-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .user-discover-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .user-billing-summary {
    grid-template-columns: 1.2fr 1fr;
  }

  .user-form-grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .user-product-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .user-product-row-actions {
    justify-content: flex-end;
  }
}

@media (min-width: 1024px) {
  .user-body {
    padding: 1.5rem 1.5rem 2.75rem;
  }

  .user-sidebar-toggle,
  .user-sidebar-toggle--in-menu {
    display: none;
  }

  .user-user-menu {
    padding: 0.25rem 0.65rem 0.25rem 0.25rem;
  }

  .user-shell {
    grid-template-columns: 16.5rem 1fr;
    gap: 1.5rem;
  }

  .user-sidebar {
    position: sticky;
    top: calc(var(--site-sticky-height, 7rem) + 1.5rem);
    left: auto;
    z-index: 20;
    width: auto;
    height: auto;
    max-height: calc(100vh - var(--site-sticky-height, 7rem) - 2.5rem);
    transform: none;
    box-shadow: none;
  }

  .user-sidebar-backdrop {
    display: none !important;
  }

  .user-main {
    padding: 0.25rem 0 0;
  }

  .user-discover-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .user-panel {
    animation: none;
  }

  .user-sidebar {
    transition: none;
  }
}

/* ── Footer resumido (área de clientes) ── */

.site-footer--user {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.site-footer-inner--user {
  padding: 2rem 1.25rem 1.5rem;
}

.user-footer-main {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.user-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.user-footer-logo {
  display: inline-flex;
  text-decoration: none;
}

.user-footer-logo .logo-wordmark--light {
  font-size: 1.5rem;
  letter-spacing: -1.25px;
  color: #fff;
}

.user-footer-logo:hover .logo-wordmark--light {
  opacity: 0.85;
}

.user-footer-tagline {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

.user-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
}

.user-footer-nav a {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.58);
  text-decoration: none;
  transition: color 0.2s ease;
}

.user-footer-nav a:hover {
  color: var(--brand);
}

.site-footer-bottom--user {
  margin-top: 0;
  padding-top: 1.25rem;
}

@media (min-width: 768px) {
  .site-footer-inner--user {
    padding: 2.25rem 1.5rem 1.75rem;
  }

  .user-footer-main {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
  }

  .user-footer-nav {
    justify-content: flex-end;
  }
}
