/*
 * Customer dashboard theme (Phase 73 redesign).
 * Loaded only for signed-in customers and guest checkout pages -- never
 * for the admin panel -- and every rule is scoped under body.cx, so the
 * admin side (which shares dashboard.css) is untouched.
 */

/* ---- Tokens ---- */
body.cx {
  --cx-sidebar-w: 290px;           /* 264px + 10% */
  --cx-navy: #0b1a3a;
  --cx-navy-2: #10244d;
  --cx-brand: #2f8ef4;           /* the "Launch" blue in the logo */
  --cx-primary: #1d4ed8;
  --cx-primary-dark: #1a3fb0;
  --cx-bg: #f4f6fb;
  --cx-surface: #ffffff;
  --cx-border: #e5e9f2;
  --cx-text: #0f172a;
  --cx-muted: #64748b;
  --cx-radius: 14px;
  --cx-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 6px 20px rgba(15, 23, 42, 0.05);
  --cx-shadow-hover: 0 2px 4px rgba(15, 23, 42, 0.05), 0 12px 32px rgba(15, 23, 42, 0.09);

  /* Re-point the shared dashboard.css variables so every existing page
     component (cards, badges, the progress bar...) picks up this palette. */
  --color-primary: var(--cx-navy);
  --color-secondary: var(--cx-primary);
  --color-secondary-dark: var(--cx-primary-dark);
  --color-bg: var(--cx-bg);
  --color-surface: var(--cx-surface);
  --color-text: var(--cx-text);
  --color-text-muted: var(--cx-muted);
  --color-border: var(--cx-border);
  --color-success: #12a26a;
  --color-warning: #c2760c;
  --radius-sm: 9px;
  --radius-md: var(--cx-radius);
  --shadow-sm: var(--cx-shadow);

  background: var(--cx-bg);
  color: var(--cx-text);
  -webkit-font-smoothing: antialiased;
}
body.cx a { color: var(--cx-primary); }

/* ---- Shell: fixed sidebar + content ---- */
.cx-nav-toggle { display: none; }
.cx-shell { min-height: 100vh; }

.cx-sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--cx-sidebar-w); z-index: 40;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--cx-navy) 0%, #0d2149 100%);
  color: #c9d5ec; padding: 22px 16px 18px;
}
.cx-sidebar-head { display: flex; align-items: center; justify-content: space-between; padding: 0 8px 26px; }
.cx-logo { display: block; line-height: 0; }
.cx-logo img { height: 30px; width: auto; }
/* Only a dark-text logo exists on the site; render it in white on the navy sidebar. */
.cx-logo-on-dark img { filter: brightness(0) invert(1); }
.cx-logo-text { font-size: 1.15rem; font-weight: 700; color: #fff; letter-spacing: -0.01em; line-height: 1.2; }
.cx-nav-close { display: none; cursor: pointer; color: #c9d5ec; padding: 6px; border-radius: 8px; line-height: 0; }
.cx-nav-close:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }

.cx-nav-label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: #7f93b8; padding: 0 12px; margin: 6px 0 8px; }
.cx-nav { display: flex; flex-direction: column; gap: 3px; }
body.cx .cx-nav a {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 10px;
  color: #c9d5ec; font-size: 0.92rem; font-weight: 500; text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.cx-nav a svg { width: 19px; height: 19px; flex: none; opacity: 0.85; }
body.cx .cx-nav a:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
body.cx .cx-nav a.active { background: rgba(47, 142, 244, 0.16); color: #fff; font-weight: 600; }
.cx-nav a.active svg { opacity: 1; color: var(--cx-brand); }
.cx-nav a.active::before {
  content: ""; position: absolute; left: -16px; top: 9px; bottom: 9px; width: 3px;
  border-radius: 0 3px 3px 0; background: var(--cx-brand);
}

.cx-sidebar-foot { margin-top: auto; border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 16px 8px 0; display: flex; align-items: center; gap: 10px; }
.cx-avatar {
  flex: none; width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--cx-brand), #6366f1); color: #fff; font-weight: 700; font-size: 0.8rem;
}
.cx-user { min-width: 0; flex: 1; }
.cx-user strong { display: block; color: #fff; font-size: 0.86rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx-user span { display: block; color: #8ea2c6; font-size: 0.75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx-sidebar-foot form { margin: 0; }
.cx-logout {
  background: none; border: none; cursor: pointer; color: #8ea2c6; padding: 7px; border-radius: 8px; line-height: 0;
}
.cx-logout svg { width: 18px; height: 18px; }
.cx-logout:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }

.cx-body { margin-left: var(--cx-sidebar-w); min-height: 100vh; display: flex; flex-direction: column; }
.cx-mobilebar { display: none; }
/* Content uses all the width beside the sidebar. */
body.cx .app-main.cx-main { max-width: none; width: 100%; padding: 40px 48px 72px; margin: 0; }
.cx-scrim { display: none; }

/* Guest pages (add-on checkout before sign-up): simple white header. */
.cx-guestbar {
  height: 68px; display: flex; align-items: center; padding: 0 28px;
  background: #fff; border-bottom: 1px solid var(--cx-border);
}
.cx-guestbar img { height: 28px; width: auto; }
body.cx .app-main.cx-guest-main { max-width: 1100px; margin: 0 auto; padding: 40px 24px 72px; }

/* ---- Typography + page header ---- */
body.cx .page-header { margin-bottom: 28px; }
body.cx .page-header h1 { font-family: "Fraunces", Georgia, "Times New Roman", serif; font-size: 2rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; margin: 0 0 8px; color: var(--cx-navy); }
body.cx .page-header p { font-size: 0.95rem; }
body.cx h2, body.cx h3 { letter-spacing: -0.01em; }
body.cx .section-heading { font-size: 1.05rem; font-weight: 650; }
body.cx .section-heading-row h2 { font-size: 1.1rem !important; font-weight: 650; }

/* ---- Cards ---- */
body.cx .card { border-radius: var(--cx-radius); border-color: var(--cx-border); box-shadow: var(--cx-shadow); padding: 26px; }
body.cx a.card { transition: box-shadow 0.18s, transform 0.18s, border-color 0.18s; }
body.cx a.card:hover { box-shadow: var(--cx-shadow-hover); transform: translateY(-1px); border-color: #d6ddea; text-decoration: none; }
body.cx .grid { gap: 20px; }

/* ---- Buttons ---- */
body.cx .btn { border-radius: 10px; font-weight: 600; transition: background 0.15s, box-shadow 0.15s, transform 0.1s; }
body.cx .btn-primary { background: var(--cx-primary); color: #fff; box-shadow: 0 1px 2px rgba(29, 78, 216, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.12); }
body.cx .btn-primary:hover { background: var(--cx-primary-dark); color: #fff; }
body.cx .btn-primary:active { transform: translateY(1px); }
body.cx .btn-secondary { background: #fff; color: var(--cx-text); border: 1px solid var(--cx-border); box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04); }
body.cx .btn-secondary:hover { background: #f7f9fc; color: var(--cx-text); }
body.cx .btn-sm { padding: 8px 16px; font-size: 0.85rem; }

/* ---- Badges ---- */
body.cx .badge { padding: 4px 10px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.01em; background: #eef2f8; color: #475569; }
body.cx .badge-success { background: #e3f6ee; color: #0e8a5a; }
body.cx .badge-warning { background: #fdf2e1; color: #b26a06; }

/* ---- Tables ---- */
body.cx table.data-table { font-size: 0.9rem; }
body.cx table.data-table th { background: #f8fafd; color: var(--cx-muted); font-size: 0.72rem; letter-spacing: 0.06em; padding: 12px 18px; }
body.cx table.data-table td { padding: 15px 18px; border-bottom-color: #eef1f6; }
body.cx table.data-table tbody tr:last-child td { border-bottom: none; }
body.cx table.data-table tbody tr:hover td { background: #fafbfe; }

/* ---- Forms ---- */
body.cx .form-group input, body.cx .form-group select, body.cx .form-group textarea {
  border-radius: 10px; border-color: #d9dfea; padding: 11px 13px; background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
body.cx .form-group input:focus, body.cx .form-group select:focus, body.cx .form-group textarea:focus {
  outline: none; border-color: var(--cx-primary); box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.14);
}
body.cx .picker-option { border-radius: 12px; }

/* ---- Flash banners ---- */
body.cx .flash-banner { border-radius: 12px; padding: 14px 18px; font-weight: 500; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03); }

/* ---- Empty states ---- */
body.cx .empty-state { padding: 52px 28px; }
body.cx .empty-state h3 { font-size: 1.05rem; }

/* ---- Add On Services cards ---- */
body.cx .service-pick-grid { gap: 20px; }
body.cx .service-pick-card { border-radius: var(--cx-radius); box-shadow: var(--cx-shadow); border-color: var(--cx-border); }
body.cx .service-pick-card:hover { box-shadow: var(--cx-shadow-hover); }
body.cx .service-pick-card-price { color: var(--cx-text); font-size: 1.35rem; letter-spacing: -0.02em; }

/* ---- Overview page ---- */
.cx-hero {
  position: relative; overflow: hidden; border-radius: 18px; margin-bottom: 26px;
  padding: 34px 36px; color: #fff;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(47, 142, 244, 0.45) 0%, rgba(47, 142, 244, 0) 55%),
    linear-gradient(135deg, #0b1a3a 0%, #13306b 100%);
  box-shadow: 0 10px 30px rgba(11, 26, 58, 0.18);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cx-hero::after {
  content: ""; position: absolute; right: -60px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%;
  border: 40px solid rgba(255, 255, 255, 0.04); pointer-events: none;
}
.cx-hero-eyebrow { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #9cc6fb; margin: 0 0 8px; }
.cx-hero h1 { font-family: "Fraunces", Georgia, "Times New Roman", serif; font-size: 2.2rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.12; margin: 0 0 10px; color: #fff; }
.cx-hero p { margin: 0; color: #c9d7f0; font-size: 0.97rem; max-width: 520px; }
.cx-hero-actions { position: relative; z-index: 1; display: flex; gap: 10px; flex-wrap: wrap; }
body.cx .cx-hero .btn { width: auto; }
body.cx .cx-hero .btn-light { background: #fff; color: var(--cx-navy); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12); }
body.cx .cx-hero .btn-light:hover { background: #eef4ff; color: var(--cx-navy); text-decoration: none; }
body.cx .cx-hero .btn-ghost { background: rgba(255, 255, 255, 0.1); color: #fff; border: 1px solid rgba(255, 255, 255, 0.22); }
body.cx .cx-hero .btn-ghost:hover { background: rgba(255, 255, 255, 0.16); color: #fff; text-decoration: none; }

.cx-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 34px; }
body.cx a.cx-stat { display: flex; align-items: center; gap: 16px; padding: 22px 24px; color: inherit; }
.cx-stat-icon { flex: none; width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.cx-stat-icon svg { width: 22px; height: 22px; }
.cx-stat-icon.is-blue { background: #e8f1fe; color: #1d64d8; }
.cx-stat-icon.is-green { background: #e3f6ee; color: #0e8a5a; }
.cx-stat-icon.is-violet { background: #efedfd; color: #5b4bd6; }
.cx-stat-label { font-size: 0.8rem; color: var(--cx-muted); font-weight: 500; }
.cx-stat-value { font-size: 1.65rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; color: var(--cx-text); }
.cx-stat-link { margin-left: auto; color: #94a3b8; line-height: 0; }
.cx-stat-link svg { width: 18px; height: 18px; }
body.cx a.cx-stat:hover .cx-stat-link { color: var(--cx-primary); }

.cx-section { margin-bottom: 34px; }
.cx-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.cx-section-head h2 { margin: 0; font-size: 1.1rem; font-weight: 650; }
.cx-section-head a { font-size: 0.87rem; font-weight: 600; }

.cx-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
body.cx .cx-list-card { padding: 6px 0; }
.cx-list-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px 10px; }
.cx-list-head h2 { margin: 0; font-size: 1.02rem; font-weight: 650; }
.cx-list-head a { font-size: 0.85rem; font-weight: 600; }
.cx-row { display: flex; align-items: center; gap: 14px; padding: 13px 22px; border-top: 1px solid #eef1f6; }
.cx-row-icon { flex: none; width: 38px; height: 38px; border-radius: 10px; background: #eef3fb; color: #3a5a92; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 700; }
.cx-row-main { flex: 1; min-width: 0; }
.cx-row-title { font-weight: 600; font-size: 0.92rem; color: var(--cx-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-row-sub { color: var(--cx-muted); font-size: 0.8rem; margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-row-end { flex: none; display: flex; align-items: center; gap: 10px; font-size: 0.88rem; font-weight: 600; }
body.cx a.cx-row { color: inherit; text-decoration: none; }
body.cx a.cx-row:hover { background: #fafbfe; }
.cx-list-empty { padding: 18px 22px 22px; color: var(--cx-muted); font-size: 0.9rem; border-top: 1px solid #eef1f6; }
.cx-list-empty .btn { margin-top: 12px; }

/* ---- Responsive ---- */
@media (max-width: 1100px) {
  .cx-columns { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 960px) {
  .cx-sidebar { transform: translateX(-100%); transition: transform 0.22s ease; box-shadow: 0 0 40px rgba(0, 0, 0, 0.25); }
  .cx-nav-close { display: block; }
  .cx-nav-toggle:checked ~ .cx-shell .cx-sidebar { transform: none; }
  .cx-nav-toggle:checked ~ .cx-shell .cx-scrim { display: block; position: fixed; inset: 0; z-index: 30; background: rgba(11, 26, 58, 0.45); }
  .cx-body { margin-left: 0; }
  .cx-mobilebar {
    display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 20;
    height: 60px; padding: 0 16px; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--cx-border);
  }
  .cx-menu-btn { cursor: pointer; padding: 8px; margin-left: -8px; border-radius: 9px; color: var(--cx-text); line-height: 0; }
  .cx-menu-btn:hover { background: #f1f4f9; }
  .cx-menu-btn svg { width: 22px; height: 22px; }
  .cx-mobilebar img { height: 24px; width: auto; }
  body.cx .app-main.cx-main { padding: 26px 16px 56px; }
  .cx-stats { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  /* Checkout / confirmation pages put the form and the order summary side
     by side with an inline style -- stack them on small screens. */
  body.cx .grid[style*="2fr 1fr"] { grid-template-columns: minmax(0, 1fr) !important; }
}
@media (max-width: 560px) {
  .cx-hero { padding: 26px 22px; }
  .cx-hero h1 { font-size: 1.5rem; }
  body.cx .page-header h1 { font-size: 1.45rem; }
  body.cx .card { padding: 20px; }
  .cx-row { padding: 12px 18px; }
  .cx-list-head { padding: 14px 18px 8px; }
  .cx-guestbar { padding: 0 16px; }
}


/* ===== Refinements (2026-11-12) ===== */

/* Sidebar help card */
.cx-help {
  margin: 22px 4px 16px; padding: 16px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex; flex-direction: column; gap: 6px; font-size: 0.8rem; line-height: 1.45;
}
.cx-help strong { color: #fff; font-size: 0.86rem; }
.cx-help span { color: #9fb1d1; }
body.cx .cx-help a { text-decoration: none; }
body.cx .cx-help-phone { display: inline-flex; align-items: center; gap: 7px; margin-top: 6px; color: #fff; font-weight: 600; font-size: 0.86rem; }
.cx-help-phone svg { width: 15px; height: 15px; color: var(--cx-brand); }
body.cx .cx-help-link { color: #9cc6fb; font-weight: 600; }
body.cx .cx-help-link:hover, body.cx .cx-help-phone:hover { color: #fff; }
.cx-sidebar-foot { margin-top: 0; }
.cx-nav { flex: 1 1 auto; }

/* Read-only "label / value" pairs (order details, account): small muted
   label above a normal-weight value, instead of a bold label. */
body.cx .form-group:has(> p) > label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--cx-muted); margin-bottom: 4px; }
body.cx .form-group:has(> p) > p { margin: 0; font-size: 0.95rem; color: var(--cx-text); font-weight: 500; }
body.cx .section-card .form-grid { margin-bottom: 0; }
body.cx .section-card .form-group { margin-bottom: 4px; }

/* Neutral "in progress" badge */
body.cx .badge-info { background: #e8f0fe; color: #1d4ed8; }

/* Add On Services cards: icon + spacing */
.cx-offer-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; background: #e8f1fe; color: #1d64d8; }
.cx-offer-icon svg { width: 22px; height: 22px; }
.cx-offer-icon.is-green { background: #e3f6ee; color: #0e8a5a; }
.cx-offer-icon.is-violet { background: #efedfd; color: #5b4bd6; }
.cx-offer-icon.is-amber { background: #fdf2e1; color: #b26a06; }
body.cx .service-pick-card { padding: 26px; }
/* Four offers: a balanced 2 x 2 grid rather than 3 + 1. */
body.cx .service-pick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { body.cx .service-pick-grid { grid-template-columns: minmax(0, 1fr); } }
.cx-price-note { font-size: 0.74rem; color: var(--cx-muted); font-weight: 500; display: block; margin-top: 2px; letter-spacing: 0; }

/* Account page */
.cx-account { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 20px; align-items: start; }
.cx-profile { text-align: center; }
.cx-profile .cx-avatar { width: 72px; height: 72px; font-size: 1.4rem; margin: 6px auto 14px; }
.cx-profile h2 { margin: 0; font-size: 1.15rem; }
.cx-profile p { margin: 4px 0 0; color: var(--cx-muted); font-size: 0.9rem; overflow-wrap: anywhere; }
.cx-profile dl { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--cx-border); text-align: left; display: grid; gap: 12px; }
.cx-profile dt { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--cx-muted); }
.cx-profile dd { margin: 2px 0 0; font-weight: 500; font-size: 0.92rem; }
body.cx .cx-password-form { max-width: 440px; }
.cx-card-intro { color: var(--cx-muted); font-size: 0.9rem; margin: -4px 0 20px; }

/* Order detail: progress bar on top */
body.cx .cx-order-progress .milestone-card { margin-bottom: 24px; }

@media (max-width: 1100px) {
  .cx-account { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 960px) {
  .cx-help { display: none; }
}
@media (max-width: 560px) {
  /* Stat tiles: three compact tiles in a row instead of three tall cards. */
  .cx-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 26px; }
  body.cx a.cx-stat { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; }
  .cx-stat-icon { width: 36px; height: 36px; border-radius: 10px; }
  .cx-stat-icon svg { width: 18px; height: 18px; }
  .cx-stat-link { display: none; }
  .cx-stat-value { font-size: 1.35rem; }
  .cx-stat-label { font-size: 0.72rem; }
  /* Business / order rows: let the status drop below the name. */
  .cx-row { flex-wrap: wrap; }
  .cx-row-main { flex-basis: calc(100% - 52px); }
  .cx-row-title, .cx-row-sub { white-space: normal; }
  .cx-row-end { margin-left: 52px; }
  a.cx-row:not(:has(.cx-row-icon)) .cx-row-end { margin-left: 0; }
  .cx-hero-eyebrow { font-size: 0.68rem; }
  .cx-hero h1 { font-size: 1.7rem; }
  body.cx .page-header h1 { font-size: 1.6rem; }
}

/* ===== Compliance & State Alerts (2026-11-12) ===== */
.cx-nav-count {
  margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #e5484d; color: #fff; font-size: 0.7rem; font-weight: 700; font-style: normal;
}

.cx-alert {
  display: flex; gap: 16px; padding: 22px 24px; margin-bottom: 14px;
  background: #fff; border: 1px solid var(--cx-border); border-left: 4px solid #94a3b8;
  border-radius: var(--cx-radius); box-shadow: var(--cx-shadow);
}
.cx-alert.is-open { border-color: #f6d3d4; border-left-color: #e5484d; background: linear-gradient(180deg, #fff7f7 0%, #fff 70%); }
.cx-alert.is-ordered { border-left-color: var(--cx-primary); }
.cx-alert.is-done { border-left-color: #12a26a; }
.cx-alert-icon { flex: none; width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: #eef2f8; color: #475569; }
.cx-alert-icon svg { width: 20px; height: 20px; }
.cx-alert.is-open .cx-alert-icon { background: #fde4e4; color: #d42f35; }
.cx-alert.is-ordered .cx-alert-icon { background: #e8f0fe; color: #1d4ed8; }
.cx-alert.is-done .cx-alert-icon { background: #e3f6ee; color: #0e8a5a; }
.cx-alert-body { flex: 1; min-width: 0; }
.cx-alert-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 0.8rem; color: var(--cx-muted); margin-bottom: 6px; }
.cx-alert-tag { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: #eef2f8; color: #475569; }
.cx-alert.is-open .cx-alert-tag { background: #e5484d; color: #fff; }
.cx-alert.is-ordered .cx-alert-tag { background: #e8f0fe; color: #1d4ed8; }
.cx-alert.is-done .cx-alert-tag { background: #e3f6ee; color: #0e8a5a; }
.cx-alert h3 { margin: 0 0 6px; font-size: 1.05rem; font-weight: 650; color: var(--cx-text); }
.cx-alert-text { margin: 0; color: #475569; font-size: 0.9rem; line-height: 1.55; }
.cx-alert-note { margin: 8px 0 0; font-size: 0.88rem; color: #475569; }
.cx-alert-fees { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 16px 0 0; padding: 14px 16px; border-radius: 12px; background: #f8fafd; border: 1px solid #eef1f6; }
.cx-alert-fees div { display: flex; flex-direction: column; gap: 2px; }
.cx-alert-fees dt { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--cx-muted); }
.cx-alert-fees dd { margin: 0; font-weight: 600; font-size: 0.98rem; color: var(--cx-text); }
.cx-alert-fees .is-total dd { font-size: 1.15rem; font-weight: 700; }
.cx-alert-fees .is-total { margin-left: auto; text-align: right; }
.cx-alert-fees.is-single { display: inline-flex; }
.cx-alert.is-compact { padding: 18px 22px; }
.cx-alert.is-compact h3 { margin-bottom: 0; }
.cx-alert-compact-row { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin-top: 12px; }
.cx-alert-total { font-size: 1.1rem; font-weight: 700; color: var(--cx-text); }
.cx-alert-total small { display: block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--cx-muted); }
.cx-alert-fees.is-single .is-total { margin-left: 0; text-align: left; }
.cx-alert-actions { margin-top: 16px; }
body.cx .cx-alert-actions .btn { width: auto; display: inline-flex; gap: 6px; padding: 11px 20px; }

.cx-compliance-summary { display: flex; flex-direction: column; gap: 2px; padding: 16px 20px; margin-bottom: 26px; border-radius: 12px; background: #e3f6ee; color: #0b6b47; }
.cx-compliance-summary.has-open { background: #fde4e4; color: #a3242a; }
.cx-compliance-summary strong { font-size: 0.98rem; }
.cx-compliance-summary span { font-size: 0.88rem; opacity: 0.9; }
.cx-section-meta { font-size: 0.85rem; color: var(--cx-muted); }
body.cx .cx-alert-empty { display: flex; align-items: center; gap: 14px; padding: 18px 22px; }
.cx-alert-empty-icon { flex: none; width: 38px; height: 38px; border-radius: 11px; display: flex; align-items: center; justify-content: center; background: #e3f6ee; color: #0e8a5a; }
.cx-alert-empty-icon svg { width: 19px; height: 19px; }
.cx-alert-empty strong { display: block; font-size: 0.92rem; }
.cx-alert-empty span { display: block; color: var(--cx-muted); font-size: 0.86rem; }

.cx-checkout-business { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--cx-border); }
.cx-checkout-business div strong { display: block; font-size: 1.02rem; }
.cx-checkout-business div span { display: block; color: var(--cx-muted); font-size: 0.86rem; }
.cx-checkout-lead { margin: 0 0 16px; color: #334155; line-height: 1.6; }
.cx-checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cx-checklist li { position: relative; padding-left: 28px; font-size: 0.92rem; color: #334155; }
.cx-checklist li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: #e3f6ee url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e8a5a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat; }

@media (max-width: 560px) {
  .cx-alert { flex-direction: column; gap: 12px; padding: 18px; }
  .cx-alert-fees .is-total { margin-left: 0; text-align: left; }
  body.cx .cx-alert-actions .btn { width: 100%; justify-content: center; }
}

/* ---- Registered Agent Hub ---- */
body.cx .cx-ra { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 0; padding: 0; overflow: hidden; }
.cx-ra-main { padding: 26px 28px; }
.cx-ra-status { display: inline-flex; align-items: center; gap: 8px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #0e8a5a; background: #e3f6ee; padding: 5px 11px; border-radius: 999px; }
.cx-ra-status i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.cx-ra.is-due-soon .cx-ra-status { color: #9a5b00; background: #fff4e0; }
.cx-ra.is-overdue .cx-ra-status { color: #c42b31; background: #fde4e4; }
.cx-ra h3 { margin: 14px 0 12px; font-size: 1.05rem; font-weight: 650; color: var(--cx-text); }
.cx-ra-address { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 12px; background: #f6f9fe; border: 1px solid #e3ebf8; }
.cx-ra-address address { font-style: normal; font-size: 1rem; font-weight: 600; line-height: 1.55; color: var(--cx-text); }
.cx-ra-address.is-pending { background: #fbfcfe; border-style: dashed; }
.cx-ra-address.is-pending strong { display: block; font-size: 0.95rem; color: var(--cx-text); }
.cx-ra-address.is-pending span { display: block; font-size: 0.88rem; color: var(--cx-muted); margin-top: 2px; line-height: 1.5; }
.cx-ra-pin { flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: #e6effd; color: var(--cx-primary); }
.cx-ra-pin svg { width: 20px; height: 20px; }
.cx-ra-hint { margin: 12px 0 0; font-size: 0.85rem; color: var(--cx-muted); line-height: 1.5; }
.cx-ra-renewal { display: flex; flex-direction: column; gap: 4px; padding: 26px 26px; background: #f8fafd; border-left: 1px solid var(--cx-border); }
.cx-ra-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cx-muted); }
.cx-ra-date { font-size: 1.55rem; font-weight: 700; letter-spacing: -0.02em; color: var(--cx-text); line-height: 1.2; margin-top: 4px; }
.cx-ra-days { font-size: 0.88rem; font-weight: 600; color: #0e8a5a; }
.cx-ra.is-due-soon .cx-ra-days { color: #9a5b00; }
.cx-ra.is-overdue .cx-ra-days { color: #c42b31; }
.cx-ra-since { font-size: 0.82rem; color: var(--cx-muted); margin-top: 6px; }
.cx-ra-note { font-size: 0.8rem; color: var(--cx-muted); margin-top: auto; padding-top: 16px; line-height: 1.45; }
body.cx .cx-ra-renewal .btn { margin-top: 18px; width: 100%; }

.cx-privacy {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 24px 32px; flex-wrap: wrap;
  padding: 30px 32px; border-radius: var(--cx-radius); color: #fff;
  background: radial-gradient(circle at 92% 10%, rgba(47, 142, 244, 0.35) 0%, rgba(47, 142, 244, 0) 45%), linear-gradient(135deg, var(--cx-navy) 0%, #16306a 100%);
  box-shadow: var(--cx-shadow);
}
.cx-privacy-body { display: flex; gap: 18px; align-items: flex-start; flex: 1 1 520px; min-width: 0; }
.cx-privacy-icon { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.1); color: #9cc6fb; border: 1px solid rgba(255, 255, 255, 0.14); }
.cx-privacy-icon svg { width: 24px; height: 24px; }
.cx-privacy h3 { margin: 0 0 8px; font-family: "Fraunces", Georgia, "Times New Roman", serif; font-size: 1.45rem; font-weight: 600; color: #fff; letter-spacing: -0.01em; }
.cx-privacy p { margin: 0; color: #c9d7f0; font-size: 0.93rem; line-height: 1.6; max-width: 680px; }
.cx-privacy ul { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.cx-privacy li { position: relative; padding-left: 22px; font-size: 0.85rem; color: #e4ecfa; }
.cx-privacy li::before { content: ""; position: absolute; left: 0; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: rgba(47, 142, 244, 0.35) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 10px no-repeat; }
.cx-privacy-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
body.cx .cx-privacy .btn-light { width: auto; display: inline-flex; gap: 8px; padding: 13px 22px; background: #fff; color: var(--cx-navy); font-weight: 700; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18); }
body.cx .cx-privacy .btn-light:hover { background: #eef4ff; color: var(--cx-navy); text-decoration: none; }
.cx-privacy-pending { font-size: 0.82rem; color: #ffd591; font-weight: 600; }

@media (max-width: 860px) {
  body.cx .cx-ra { grid-template-columns: minmax(0, 1fr); }
  .cx-ra-renewal { border-left: 0; border-top: 1px solid var(--cx-border); }
  body.cx .cx-ra-checkout { grid-template-columns: minmax(0, 1fr) !important; }
}
@media (max-width: 560px) {
  .cx-ra-main, .cx-ra-renewal { padding: 20px; }
  .cx-privacy { padding: 24px 20px; }
  .cx-privacy-body { flex-direction: column; flex-basis: auto; }
  body.cx .cx-privacy .btn-light { width: 100%; justify-content: center; text-align: center; }
  .cx-privacy-cta { width: 100%; }
}

/* ---- Overview business rows: whole row is a link, plus an optional "Remove" ---- */
.cx-row.is-linked { position: relative; }
body.cx .cx-row.is-linked:hover { background: #fafbfe; }
body.cx a.cx-row-stretch { color: var(--cx-text); text-decoration: none; }
.cx-row-stretch::after { content: ""; position: absolute; inset: 0; }
body.cx a.cx-row-action { position: relative; z-index: 1; font-size: 0.78rem; font-weight: 600; color: var(--cx-muted); padding: 4px 8px; border-radius: 7px; }
body.cx a.cx-row-action:hover { color: #c42b31; background: #fdeced; text-decoration: none; }

/* ---- Remove business confirm ---- */
body.cx .cx-remove-card { max-width: 720px; }
.cx-remove-list { margin: 0 0 22px; padding-left: 20px; color: #475569; font-size: 0.92rem; line-height: 1.7; }
.cx-remove-actions { display: flex; gap: 10px; flex-wrap: wrap; }
body.cx .cx-remove-actions .btn { width: auto; }

/* ---- Business heading (Registered Agent Hub) ---- */
.cx-biz-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.cx-biz-avatar { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 1.05rem; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--cx-navy) 0%, #1f4fa8 100%); box-shadow: 0 4px 12px rgba(11, 26, 58, 0.18); }
.cx-biz-id { flex: 1 1 auto; min-width: 0; }
.cx-biz-label { display: block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--cx-muted); margin-bottom: 2px; }
body.cx .cx-biz-id h2 { margin: 0; font-size: 1.3rem; font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; color: var(--cx-text); overflow-wrap: anywhere; }
.cx-biz-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.cx-biz-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 0.78rem; font-weight: 600; color: #334155; background: #fff; border: 1px solid var(--cx-border); padding: 5px 11px; border-radius: 999px; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04); }
.cx-biz-tag svg { width: 13px; height: 13px; color: var(--cx-primary); }
@media (max-width: 560px) {
  .cx-biz-tags { width: 100%; padding-left: 60px; }
  body.cx .cx-biz-id h2 { font-size: 1.15rem; }
}

/* ---- Founder Bonus (order page + email answer page) ---- */
.cx-bonus {
  position: relative; margin: 0 0 26px; padding: 28px 30px; border-radius: var(--cx-radius);
  background: linear-gradient(135deg, #fffaf0 0%, #ffffff 55%, #f3f7ff 100%);
  border: 1px solid #f1dfb5; box-shadow: var(--cx-shadow);
}
.cx-bonus::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; border-radius: var(--cx-radius) var(--cx-radius) 0 0; background: linear-gradient(90deg, #f5b84a, #f08c2e 45%, var(--cx-brand)); }
.cx-bonus-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 12px; }
.cx-bonus-icon { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, #f5b84a, #f08c2e); color: #fff; box-shadow: 0 6px 16px rgba(240, 140, 46, 0.3); }
.cx-bonus-icon svg { width: 24px; height: 24px; }
.cx-bonus-eyebrow { display: block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: #b4610b; margin-bottom: 4px; }
body.cx .cx-bonus h2 { margin: 0; font-family: "Fraunces", Georgia, "Times New Roman", serif; font-size: 1.35rem; font-weight: 600; line-height: 1.3; color: var(--cx-navy); }
.cx-bonus-text { margin: 0 0 18px; color: #475569; font-size: 0.93rem; line-height: 1.65; max-width: 860px; }
.cx-bonus-form { display: flex; flex-direction: column; gap: 10px; max-width: 860px; }
.cx-bonus-option { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: #fff; border: 1px solid var(--cx-border); cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s, background 0.15s; }
.cx-bonus-option:hover { border-color: #c9d6ee; }
.cx-bonus-option input { position: absolute; opacity: 0; pointer-events: none; }
.cx-bonus-radio { flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; border: 2px solid #b9c4d6; background: #fff; transition: border-color 0.15s, box-shadow 0.15s; }
.cx-bonus-option:has(input:checked) { border-color: var(--cx-primary); box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12); background: #f7faff; }
.cx-bonus-option:has(input:checked) .cx-bonus-radio { border-color: var(--cx-primary); box-shadow: inset 0 0 0 4px #fff; background: var(--cx-primary); }
.cx-bonus-option input:focus-visible + .cx-bonus-radio { outline: 2px solid var(--cx-primary); outline-offset: 2px; }
.cx-bonus-label { font-size: 0.9rem; line-height: 1.5; color: #334155; }
.cx-bonus-label b { color: var(--cx-text); }
body.cx .cx-bonus-submit { width: auto; align-self: flex-start; padding: 12px 34px; margin-top: 4px; }
.cx-bonus-answer { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 12px; margin-bottom: 12px; background: #e3f6ee; color: #0b6b47; max-width: 860px; }
.cx-bonus-answer.is-no { background: #f1f4f9; color: #475569; }
.cx-bonus-answer strong { font-size: 0.95rem; }
.cx-bonus-answer span { font-size: 0.87rem; }
.cx-bonus-change summary { cursor: pointer; font-size: 0.86rem; font-weight: 600; color: var(--cx-primary); margin-bottom: 10px; list-style: none; }
.cx-bonus-change summary::-webkit-details-marker { display: none; }
.cx-bonus-change summary::after { content: " \25BE"; }
.cx-bonus-page { max-width: 920px; }
@media (max-width: 560px) {
  .cx-bonus { padding: 22px 18px; }
  body.cx .cx-bonus h2 { font-size: 1.15rem; }
  body.cx .cx-bonus-submit { width: 100%; }
}

/* ---- Payment (choose gateway / redirect) ---- */
.cx-pay-options { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
body.cx a.cx-pay-option { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 12px; border: 1px solid var(--cx-border); background: #fff; color: var(--cx-text); text-decoration: none; transition: border-color 0.15s, box-shadow 0.15s; }
body.cx a.cx-pay-option:hover { border-color: var(--cx-primary); box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.1); text-decoration: none; }
.cx-pay-icon { flex: none; width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: #e6effd; color: var(--cx-primary); }
.cx-pay-icon svg { width: 22px; height: 22px; }
.cx-pay-text { flex: 1; min-width: 0; }
.cx-pay-text strong { display: block; font-size: 0.98rem; }
.cx-pay-text span { display: block; font-size: 0.82rem; color: var(--cx-muted); margin-top: 2px; }
.cx-pay-go { font-size: 1.2rem; color: var(--cx-primary); }
.cx-pay-secure { display: flex; gap: 8px; align-items: center; font-size: 0.82rem; color: var(--cx-muted); margin: 6px 0 0; }
.cx-pay-secure svg { width: 16px; height: 16px; flex: none; color: #0e8a5a; }
.cx-pay-test { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: #fff4e0; color: #8a5300; font-size: 0.84rem; }
body.cx .cx-pay-redirect { max-width: 620px; }
body.cx .cx-pay-redirect .btn { width: auto; }
.cx-pay-banner { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 16px 20px; margin-bottom: 20px; border-radius: 12px; background: #fff7e8; border: 1px solid #f5dcae; }
.cx-pay-banner strong { display: block; color: #8a5300; }
.cx-pay-banner span { font-size: 0.88rem; color: #6b4a12; }
body.cx .cx-pay-banner .btn { width: auto; }
@media (max-width: 860px) { body.cx .cx-pay { grid-template-columns: minmax(0, 1fr) !important; } }
