/* account.duxels.com — header, footer, colours and type come from duxels.com/mundo/mundo.css (same markup as the
   site, tools/build_account.py); this file only lays out the Clerk area and our two profile pages. */
.account-main { display: flex; justify-content: center; align-items: flex-start; min-height: 60vh; }
#app { width: 100%; display: flex; justify-content: center; align-items: flex-start; }
.status { color: var(--mut); text-align: center; margin-top: 12vh; max-width: 32rem; }
.top .user-button { display: flex; align-items: center; }
.top .user-button:empty { display: none; }
/* our pages inside Clerk's UserProfile */
.dx-form { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; max-width: 28rem; }
.dx-form h2 { margin: 0 0 6px; font-size: 1.1rem; }
.dx-form label { font-weight: 600; font-size: .9rem; }
.dx-form input[type="date"] {
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
  font: inherit;
  color-scheme: dark;
}
.dx-help { margin: 0; color: var(--mut); font-size: .9rem; }
.dx-btn {
  background: var(--fg);
  color: var(--bg);
  border: 0;
  border-radius: 999px;
  padding: 9px 18px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.dx-btn:disabled { opacity: .6; cursor: progress; }
.dx-btn:focus-visible { outline: 2px solid var(--ia); outline-offset: 2px; }
.dx-note { margin: 0; min-height: 1.5em; color: var(--mut); font-size: .9rem; }
/* subscriptions and payments: your plans, choose a plan, team seats, portal */
.dx-billing { display: flex; flex-direction: column; gap: 28px; width: 100%; }
/* payments.duxels.com: the same sections on a page of their own (mountPayments) */
.dx-payments { width: 100%; max-width: 40rem; padding: 8px 16px 32px; box-sizing: border-box; display: flex; flex-direction: column; gap: 12px; }
.dx-payments > h1 { margin: 8px 0 0; font-size: 1.5rem; }
.dx-links { margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .95rem; }
.dx-links a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.dx-links .dx-back::before { content: '← '; }
/* the payment history: one line per payment, the receipt link under it */
.dx-receipt { color: var(--fg); font-size: .9rem; text-decoration: underline; text-underline-offset: 3px; }
.dx-billing .dx-form { max-width: 34rem; }
.dx-plans { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; width: 100%; }
.dx-plan, .dx-team { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; width: 100%; box-sizing: border-box; }
.dx-plan-name { margin: 0; }
.dx-badge { margin-left: 8px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #f0b429; border: 1px solid currentColor; border-radius: 999px; padding: 1px 7px; }
.dx-flash { color: var(--fg); }
.dx-select {
  background: var(--bg); color: var(--fg); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font: inherit;
  color-scheme: dark; max-width: 100%;
}
.dx-seats { width: 7rem; }
.dx-select:focus-visible, .dx-seg input:focus-visible + span, .dx-check input:focus-visible + span { outline: 2px solid var(--ia); outline-offset: 2px; }
.dx-seg { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.dx-seg label { cursor: pointer; }
.dx-seg input { position: absolute; opacity: 0; pointer-events: none; }
.dx-seg span { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .9rem; }
.dx-seg input:checked + span { background: var(--fg); color: var(--bg); border-color: var(--fg); font-weight: 600; }
.dx-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: 6px 14px; width: 100%; }
.dx-check { display: flex; align-items: center; gap: 8px; font-size: .92rem; cursor: pointer; }
.dx-check input { accent-color: var(--ia); width: 16px; height: 16px; }
.dx-check input:disabled + span { opacity: .45; }
.dx-total { margin: 4px 0 0; font-size: 1.05rem; font-weight: 700; }
.dx-btn-ghost { background: transparent; color: var(--fg); border: 1px solid var(--line); }
.dx-swap { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; width: 100%; }
/* phones and tablets: icon-only buttons, as on duxels.com (privacy-page keeps labels for its single button) */
@media (max-width: 900px) {
  .account-page .top .ico { width: 36px; height: 36px; padding: 0; justify-content: center; }
  .account-page .top .ico .lbl { display: none; }
}
/* email preferences: the Notificaciones page and the boxes under the sign-up form */
.dx-pref { display: flex; flex-direction: column; gap: 2px; }
.dx-pref .dx-help { padding-left: 24px; }
#app.dx-signup { flex-direction: column; align-items: center; gap: 16px; }
.dx-signup-prefs { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 0; width: min(100%, 25rem); box-sizing: border-box; }
.dx-signup-prefs legend { font-weight: 600; font-size: .9rem; padding: 0 6px; }

/* pesos (pago único) y plazos prepagados */
.dx-pesos { display: flex; flex-direction: column; gap: 8px; width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; box-sizing: border-box; }
.dx-pesos h3 { margin: 0; font-size: 1rem; }
.dx-opts { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.dx-opt { display: flex; align-items: flex-start; gap: 8px; font-size: .92rem; font-weight: 400; cursor: pointer; }
.dx-opt input { accent-color: var(--ia); margin-top: 3px; }
.dx-opt small { display: block; color: var(--mut); font-size: .82rem; }
.dx-opt.is-off { opacity: .55; cursor: default; }
.dx-tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .04em; color: #f0b429; border: 1px solid currentColor; border-radius: 999px; padding: 1px 8px; margin-left: 6px; }
.dx-warn { margin: 0; font-size: .9rem; color: #f0b429; }
.dx-warn-strong { color: #f0392f; }
.dx-noref { margin: 0; font-size: .9rem; font-weight: 600; }
.dx-actions { display: flex; flex-wrap: wrap; gap: 8px; }
