/* ==========================================================================
   WCX Cloud Exchange theme (v3, Nov 2026)
   The new look from the redesign, applied over the production markup.
   Loaded LAST on every page so it wins over styles.css and page <style> blocks.
   Every selector starts with body.wcx, so a page without that class stays on
   the old look (handy for rollback testing).
   Font: Hanken Grotesk (SIL Open Font License), self-hosted under /fonts.
   ========================================================================== */

@font-face {
    font-family: "Hanken Grotesk";
    src: url("/fonts/HankenGrotesk-var.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --wcx-purple: #6025E1;        /* lead: actions, selection, focus */
    --wcx-purple-deep: #4a1bb0;   /* hover on purple */
    --wcx-ink: #110039;           /* text, top bar, quote panel */
    --wcx-ink-soft: #221257;      /* raised rows on the ink panel */
    --wcx-orange: #FE5E00;        /* money totals + export only */
    --wcx-orange-deep: #e05300;
    --wcx-lavender: #9973EC;      /* secondary data */
    --wcx-wash: #F2EEFD;          /* tinted panels */
    --wcx-bg: #F8F7FB;            /* page */
    --wcx-card: #FFFFFF;
    --wcx-line: rgba(17, 0, 57, 0.09);
    --wcx-line-strong: rgba(17, 0, 57, 0.16);
    --wcx-muted: #5d5680;
    --wcx-ok: #1f7a4d;
    --wcx-ok-wash: #e6f5ec;
    --wcx-bad: #b4232c;
    --wcx-bad-wash: #fdecee;
    --wcx-warn-wash: #fff4e8;
    --wcx-r: 10px;
    --wcx-r-card: 14px;
    --wcx-ring: 0 0 0 1px var(--wcx-line), 0 1px 2px rgba(17, 0, 57, 0.04);
    --wcx-ease: cubic-bezier(0.32, 0.72, 0, 1);
    --wcx-max: 1232px;
    --wcx-gutter: max(24px, calc((100vw - var(--wcx-max)) / 2));
}

/* ---------- base ---------------------------------------------------------- */
body.wcx {
    font-family: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--wcx-ink);
    background: var(--wcx-bg);
    padding: 0;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    font-feature-settings: "tnum" 0;
}
body.wcx *, body.wcx *::before, body.wcx *::after { box-sizing: border-box; }
body.wcx button, body.wcx input, body.wcx select, body.wcx textarea { font-family: inherit; }
body.wcx h1, body.wcx h2, body.wcx h3, body.wcx h4 { color: var(--wcx-ink); letter-spacing: -0.01em; }
body.wcx a { color: var(--wcx-purple); }
body.wcx ::selection { background: rgba(96, 37, 225, 0.2); }
body.wcx :focus-visible { outline: 3px solid rgba(96, 37, 225, 0.35); outline-offset: 2px; }

/* ---------- top bar (calculator) ------------------------------------------ */
body.wcx .wcx-bar {
    position: sticky; top: 0; z-index: 50;
    display: flex; align-items: center; gap: 20px;
    min-height: 60px;
    padding: 10px var(--wcx-gutter);
    background: var(--wcx-ink);
    color: #fff;
}
body.wcx .wcx-brand { display: flex; align-items: center; flex: none; }
body.wcx .wcx-brand img { height: 22px; width: auto; display: block; }
body.wcx .wcx-bar-title {
    padding-left: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 15px; color: rgba(255, 255, 255, 0.82); white-space: nowrap;
}
body.wcx .wcx-nav { margin-left: auto; display: flex; align-items: center; }

/* user + nav buttons (IDs are driven by app-auth.js) */
body.wcx #userInfo { display: flex !important; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
body.wcx #userInfo[style*="none"] { display: none !important; }
body.wcx #userName {
    padding: 6px 12px; border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.82); font-size: 14px; font-weight: 500;
}
body.wcx .wcx-navbtn,
body.wcx #viewQuotesBtn, body.wcx #userActivityBtn, body.wcx #dealRegBtn, body.wcx #logoutBtn,
body.wcx #authLinks a {
    padding: 7px 14px !important;
    border-radius: 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    background: transparent !important;
    color: #fff !important;
    font-size: 14px !important; font-weight: 600 !important;
    text-decoration: none; cursor: pointer;
    box-shadow: none !important; transform: none !important;
    transition: background 180ms var(--wcx-ease), border-color 180ms var(--wcx-ease);
}
body.wcx .wcx-navbtn:hover,
body.wcx #viewQuotesBtn:hover, body.wcx #userActivityBtn:hover, body.wcx #dealRegBtn:hover,
body.wcx #authLinks a:hover {
    background: rgba(255, 255, 255, 0.1) !important; border-color: rgba(255, 255, 255, 0.3) !important;
}
body.wcx #logoutBtn { border-color: transparent !important; color: rgba(255, 255, 255, 0.7) !important; }
body.wcx #logoutBtn:hover { color: #fff !important; background: rgba(255, 255, 255, 0.08) !important; }

/* ---------- page header (inner pages use .header) ------------------------- */
body.wcx .container {
    max-width: none; margin: 0; background: transparent;
    border-radius: 0; box-shadow: none; overflow: visible;
}
body.wcx .header {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
    padding: 22px var(--wcx-gutter) 28px;
    background: var(--wcx-ink);
    color: #fff;
}
body.wcx .header-content::before {
    content: ""; display: block;
    width: 132px; height: 20px; margin-bottom: 22px;
    background: url("/Logos/SVG/Wingu%20Primary%20Logo%20Light.svg") no-repeat left center / contain;
}
body.wcx .header h1 { color: #fff; font-size: 34px; line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 6px; }
body.wcx .header p { color: rgba(255, 255, 255, 0.7); font-size: 16px; opacity: 1; margin: 0; }
body.wcx .header button, body.wcx .header .btn, body.wcx .header a.btn {
    padding: 8px 16px !important; border-radius: 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    background: transparent !important; color: #fff !important;
    font-size: 14px !important; font-weight: 600 !important;
    box-shadow: none !important; transform: none !important; text-decoration: none;
}
body.wcx .header button:hover, body.wcx .header .btn:hover { background: rgba(255, 255, 255, 0.1) !important; }
body.wcx .header .bp, body.wcx .header .wcx-primary { background: var(--wcx-purple) !important; border-color: var(--wcx-purple) !important; }
body.wcx .header .bp:hover, body.wcx .header .wcx-primary:hover { background: var(--wcx-purple-deep) !important; }

body.wcx .content {
    max-width: calc(var(--wcx-max) + 48px);
    margin: 0 auto;
    padding: 32px 24px 64px;
    background: transparent;
}

/* ---------- cards --------------------------------------------------------- */
body.wcx .section,
body.wcx .qwrap, body.wcx .wrap,
body.wcx .deal-form, body.wcx .deals-list,
body.wcx .summary:not(#priceSummary),
body.wcx .auth-container {
    background: var(--wcx-card);
    border: 0;
    border-radius: var(--wcx-r-card);
    box-shadow: var(--wcx-ring);
    color: var(--wcx-ink);
}
body.wcx .section { padding: 24px 28px 28px; margin: 0 0 24px; }
body.wcx .qwrap, body.wcx .wrap { width: auto; max-width: none; margin: 0; padding: 24px; }
body.wcx .deal-form, body.wcx .deals-list { padding: 28px; margin-bottom: 24px; }
body.wcx .deal-form h2, body.wcx .deals-list h2 { font-size: 22px; font-weight: 700; margin: 0 0 20px; }

/* numbered steps on the calculator */
body.wcx h2.section-title {
    display: flex; align-items: center; gap: 12px;
    font-size: 21px; font-weight: 700; color: var(--wcx-ink);
    margin: 0 0 22px; padding: 0; border: 0;
}
body.wcx .step-n {
    flex: none; width: 32px; height: 32px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--wcx-purple); color: #fff; font-size: 15px; font-weight: 700;
}
body.wcx h3.section-title {
    font-size: 14px; font-weight: 600; color: var(--wcx-muted);
    margin: 22px 0 10px; padding: 0; border: 0; letter-spacing: 0;
}
body.wcx .section h3:not(.section-title) { font-size: 16px !important; font-weight: 700; color: var(--wcx-ink) !important; }

/* ---------- controls ------------------------------------------------------ */
body.wcx input[type="text"], body.wcx input[type="email"], body.wcx input[type="password"],
body.wcx input[type="number"], body.wcx input[type="date"], body.wcx input[type="search"],
body.wcx input:not([type]), body.wcx select, body.wcx textarea {
    font-size: 15px; color: var(--wcx-ink);
    padding: 10px 12px;
    background: #fff;
    border: 1px solid var(--wcx-line-strong);
    border-radius: 8px;
    transition: border-color 160ms var(--wcx-ease), box-shadow 160ms var(--wcx-ease);
}
body.wcx input:focus, body.wcx select:focus, body.wcx textarea:focus {
    outline: none; border-color: var(--wcx-purple);
    box-shadow: 0 0 0 3px rgba(96, 37, 225, 0.16);
}
body.wcx input::placeholder, body.wcx textarea::placeholder { color: #8f89a8; }
body.wcx input[type="range"] { accent-color: var(--wcx-purple); }
body.wcx label { color: var(--wcx-ink); }

body.wcx .category-dropdown { width: 100%; font-size: 16px; padding: 12px 14px; cursor: pointer; }
body.wcx .category-selector { margin-bottom: 16px; }

/* method toggle: Custom / Packages / Tenant */
body.wcx .method-btn {
    flex: 0 1 auto;
    padding: 10px 18px;
    background: #fff; color: var(--wcx-ink);
    border: 1px solid var(--wcx-line-strong); border-radius: 8px;
    font-size: 15px; font-weight: 600;
    transition: background 180ms var(--wcx-ease), color 180ms var(--wcx-ease), border-color 180ms var(--wcx-ease);
}
body.wcx .method-btn:hover { background: var(--wcx-wash); }
body.wcx .method-btn.active { background: var(--wcx-purple); border-color: var(--wcx-purple); color: #fff; }

/* buttons */
body.wcx .btn, body.wcx .btn-primary, body.wcx .btn-register, body.wcx .add-package-btn,
body.wcx .add-button, body.wcx .back-btn, body.wcx .btn-back {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 42px; padding: 10px 18px;
    border: 1px solid transparent; border-radius: 8px;
    font-size: 15px; font-weight: 600; line-height: 1.2; text-decoration: none;
    cursor: pointer; transform: none; box-shadow: none;
    transition: background 180ms var(--wcx-ease), border-color 180ms var(--wcx-ease);
}
body.wcx .btn:hover { transform: none; box-shadow: none; }
body.wcx .btn-primary, body.wcx .btn-register, body.wcx .add-package-btn, body.wcx .add-button, body.wcx .bp {
    background: var(--wcx-purple); color: #fff;
}
body.wcx .btn-primary:hover, body.wcx .btn-register:hover, body.wcx .add-package-btn:hover,
body.wcx .add-button:hover, body.wcx .bp:hover { background: var(--wcx-purple-deep); }
body.wcx .bs, body.wcx .btn-sec { background: var(--wcx-wash); color: var(--wcx-purple); }
body.wcx .bs:hover, body.wcx .btn-sec:hover { background: #e6defc; }
body.wcx .btn-grey, body.wcx .back-btn, body.wcx .btn-back { background: #fff; color: var(--wcx-ink); border-color: var(--wcx-line-strong); }
body.wcx .btn-grey:hover, body.wcx .back-btn:hover, body.wcx .btn-back:hover { background: var(--wcx-wash); }
body.wcx .bsm { min-height: 32px; padding: 5px 12px; font-size: 14px; }
body.wcx button:disabled, body.wcx .add-button:disabled { background: #d9d6e3; color: #7a7591; cursor: not-allowed; }

body.wcx .add-button { display: flex; width: auto; margin: 24px 0 0 auto; padding: 11px 22px; }
body.wcx .add-button::before { content: "+"; font-size: 20px; font-weight: 500; line-height: 1; margin-top: -2px; }
body.wcx .add-package-btn { width: 100%; }

/* ---------- packages ------------------------------------------------------ */
body.wcx .packages-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-top: 16px; }
body.wcx .package-card {
    background: #fff; border: 0; border-radius: 12px; padding: 18px;
    box-shadow: 0 0 0 1px var(--wcx-line-strong);
    transition: box-shadow 200ms var(--wcx-ease), transform 200ms var(--wcx-ease);
}
body.wcx .package-card:hover { box-shadow: 0 0 0 2px var(--wcx-purple), 0 10px 24px -14px rgba(96, 37, 225, 0.5); transform: translateY(-1px); }
body.wcx .package-header { border-bottom: 1px solid var(--wcx-line); padding-bottom: 12px; margin-bottom: 12px; }
body.wcx .package-header h4 { font-size: 22px; font-weight: 700; color: var(--wcx-ink); margin: 0 0 4px; letter-spacing: -0.01em; }
body.wcx .package-price { font-size: 20px; font-weight: 700; color: var(--wcx-ink); font-variant-numeric: tabular-nums; }
body.wcx .spec-item { color: var(--wcx-muted); font-size: 14px; padding: 3px 0; }
body.wcx .spec-item strong { color: var(--wcx-ink); font-weight: 600; min-width: 72px; }
body.wcx .pkg-addon-cost { color: var(--wcx-purple); font-size: 14px; }

/* ---------- resources ----------------------------------------------------- */
body.wcx .resource-inputs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
body.wcx .resource-input-group label { font-size: 14px; font-weight: 600; color: var(--wcx-ink); }
body.wcx .resource-input-group label small { display: block; font-size: 13px; color: var(--wcx-muted); opacity: 1 !important; }
body.wcx .resource-input {
    font-size: 20px; font-weight: 700; text-align: left; padding: 10px 14px;
    background: #fff; color: var(--wcx-ink); font-variant-numeric: tabular-nums;
    border: 1px solid var(--wcx-line-strong); border-radius: 8px;
}
body.wcx .resource-input:focus { border-color: var(--wcx-purple); background: #fff; }
body.wcx .resource-live-price { color: var(--wcx-purple); font-size: 14px; font-weight: 600; }
body.wcx .resource-live-subtotal {
    padding: 18px 20px; margin: 0 0 20px;
    background: var(--wcx-wash); border: 0; border-radius: 12px;
    color: var(--wcx-muted); font-size: 15px;
}
body.wcx .resource-live-subtotal strong { font-size: 26px; font-weight: 800; color: var(--wcx-ink); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
body.wcx #instancesValue { font-size: 18px; font-weight: 700 !important; font-variant-numeric: tabular-nums; }

body.wcx #tenantEstimate {
    background: var(--wcx-wash) !important; color: var(--wcx-ink) !important;
    border-radius: 12px !important; padding: 18px 20px !important;
    text-align: left !important; font-size: 20px !important; font-weight: 800 !important;
}

/* ---------- add-ons ------------------------------------------------------- */
body.wcx .addon-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
body.wcx .addon-category-header {
    color: var(--wcx-purple); font-size: 13px; font-weight: 700; letter-spacing: 0.08em;
    border-bottom: 1px solid var(--wcx-line); padding: 18px 2px 8px; margin-top: 0;
}
body.wcx .addon-item {
    background: #fff; border: 0; border-radius: 10px; padding: 12px 14px;
    box-shadow: 0 0 0 1px var(--wcx-line-strong);
}
body.wcx .addon-item:focus-within { box-shadow: 0 0 0 2px var(--wcx-purple); }
body.wcx .addon-name { color: var(--wcx-ink); font-size: 15px; font-weight: 600; }
body.wcx .addon-price { color: var(--wcx-muted); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
body.wcx .addon-input { width: 72px; text-align: center; font-weight: 700; padding: 8px; font-variant-numeric: tabular-nums; }
body.wcx .addon-service-btn { background: var(--wcx-purple); border-radius: 8px; font-size: 14px; padding: 7px 12px; }
body.wcx .addon-service-btn:hover { background: var(--wcx-purple-deep); }
body.wcx .addon-tooltip { background: var(--wcx-ink); font-size: 14px; border-radius: 8px; }
body.wcx .addon-tooltip::after { border-top-color: var(--wcx-ink); }

body.wcx .alert { background: var(--wcx-warn-wash); border: 0; border-left: 3px solid var(--wcx-orange); border-radius: 8px; padding: 14px 16px; color: var(--wcx-ink); }
body.wcx .loading { padding: 64px 0; color: var(--wcx-muted); }
body.wcx .spinner { border-color: var(--wcx-wash); border-top-color: var(--wcx-purple); }

/* ---------- calculator layout + live quote panel ------------------------- */
body.wcx .wcx-page { max-width: calc(var(--wcx-max) + 48px); margin: 0 auto; padding: 44px 24px 0; }
body.wcx .wcx-hero {
    font-size: clamp(34px, 4.4vw, 48px); line-height: 1.05; font-weight: 800; letter-spacing: -0.03em;
    color: var(--wcx-ink); margin: 0 0 8px;
}
body.wcx .wcx-hero em { font-style: normal; color: var(--wcx-purple); }
body.wcx .wcx-page > .content { padding: 24px 0 64px; max-width: none; }
body.wcx #currencyBar {
    background: transparent !important; border: 0 !important; padding: 0 !important; margin: 4px 0 0;
    font-size: 14px !important; color: var(--wcx-muted);
}
body.wcx #currencyBar > div { border-radius: 8px !important; border-color: var(--wcx-line-strong) !important; }
body.wcx #currencyBar button { font-size: 14px !important; padding: 6px 14px !important; }
body.wcx #curRateNote { color: var(--wcx-muted) !important; font-size: 14px !important; }

body.wcx .wcx-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
body.wcx .wcx-side { position: sticky; top: 84px; }

body.wcx .wcx-quote {
    background: var(--wcx-ink); color: #fff;
    border-radius: 18px; padding: 26px 24px 24px;
    box-shadow: 0 24px 48px -28px rgba(17, 0, 57, 0.7);
}
body.wcx .wcx-q-head { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }
body.wcx .wcx-q-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--wcx-orange); box-shadow: 0 0 0 0 rgba(254, 94, 0, 0.6); animation: wcx-pulse 2.4s var(--wcx-ease) infinite; }
body.wcx .wcx-quote.is-empty .wcx-q-dot { background: rgba(255, 255, 255, 0.35); animation: none; }
@keyframes wcx-pulse { 0% { box-shadow: 0 0 0 0 rgba(254, 94, 0, 0.55); } 70%, 100% { box-shadow: 0 0 0 8px rgba(254, 94, 0, 0); } }
body.wcx .wcx-q-total {
    display: block; margin: 18px 0 2px;
    font-size: 46px; line-height: 1; font-weight: 800; letter-spacing: -0.035em;
    color: #ff7a26; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
body.wcx .wcx-quote.is-empty .wcx-q-total { color: rgba(255, 255, 255, 0.35); }
body.wcx .wcx-q-sub { font-size: 15px; color: rgba(255, 255, 255, 0.7); }
body.wcx .wcx-q-bar { display: flex; height: 10px; gap: 2px; margin: 22px 0 14px; border-radius: 999px; overflow: hidden; background: rgba(255, 255, 255, 0.08); }
body.wcx .wcx-q-bar span { display: block; height: 100%; transition: flex-grow 600ms var(--wcx-ease); min-width: 4px; }
body.wcx .wcx-q-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
body.wcx .wcx-q-lines li { display: flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, 0.86); }
body.wcx .wcx-q-lines i { flex: none; width: 8px; height: 8px; border-radius: 50%; }
body.wcx .wcx-q-lines b { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; color: #fff; }
body.wcx .wcx-q-lines span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.wcx .wcx-q-more { color: rgba(255, 255, 255, 0.55) !important; }
body.wcx .wcx-q-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0; padding: 14px 16px; background: var(--wcx-ink-soft); border-radius: 12px; }
body.wcx .wcx-q-facts small { display: block; font-size: 14px; color: rgba(255, 255, 255, 0.65); }
body.wcx .wcx-q-facts strong { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
body.wcx .wcx-q-empty { font-size: 15px; color: rgba(255, 255, 255, 0.6); margin: 18px 0; }

body.wcx .wcx-quote #customerNameInput {
    width: 100%; padding: 11px 12px; font-size: 15px;
    background: var(--wcx-ink-soft) !important; color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 8px;
}
body.wcx .wcx-quote #customerNameInput::placeholder { color: rgba(255, 255, 255, 0.5); }
body.wcx .wcx-quote #customerNameInput:focus { border-color: var(--wcx-lavender) !important; box-shadow: 0 0 0 3px rgba(153, 115, 236, 0.25); }
body.wcx .wcx-quote #customerNameError { color: #ff9aa2 !important; font-size: 14px; margin-top: 6px; }
body.wcx .wcx-quote label { display: block; color: rgba(255, 255, 255, 0.7); font-size: 14px; margin-bottom: 6px; }
body.wcx .wcx-quote #exportPdfBtn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; min-height: 46px; margin-top: 14px; padding: 12px 18px;
    background: var(--wcx-orange); color: var(--wcx-ink);
    border: 0; border-radius: 10px; font-size: 16px; font-weight: 700; cursor: pointer;
    transition: background 180ms var(--wcx-ease);
}
body.wcx .wcx-quote #exportPdfBtn:hover:not(:disabled) { background: #ff7a26; }
body.wcx .wcx-quote #exportPdfBtn:disabled { background: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.45); }
body.wcx .wcx-quote #exportPdfBtn svg { width: 18px; height: 18px; }

/* price summary: step 3, light card with ink table head */
body.wcx #priceSummary {
    position: static; margin: 0; padding: 24px 28px 22px;
    background: var(--wcx-card); color: var(--wcx-ink);
    border-radius: var(--wcx-r-card); box-shadow: var(--wcx-ring);
}
body.wcx #priceSummary h2 { display: flex; align-items: center; justify-content: flex-start; gap: 12px; font-size: 21px; font-weight: 700; margin: 0 0 18px; }
body.wcx #priceSummary .wcx-vat { margin-top: 12px; font-size: 14px !important; color: var(--wcx-muted) !important; font-style: normal !important; }
body.wcx .wcx-table-scroll { overflow-x: auto; border-radius: 10px; box-shadow: 0 0 0 1px var(--wcx-line); }

/* ---------- tables (all pages) ------------------------------------------- */
body.wcx thead tr { background: var(--wcx-ink); }
body.wcx thead th { box-shadow: 1px 0 0 var(--wcx-ink), -1px 0 0 var(--wcx-ink); border-left: 0 !important; border-right: 0 !important; }
body.wcx .summary-table, body.wcx .qt, body.wcx .deals-table, body.wcx .activity-table { border-spacing: 0; }
body.wcx .summary-table th, body.wcx .summary-table td { border-left: 0 !important; border-right: 0 !important; }
body.wcx .summary-table tr.grand-total-row td { background: var(--wcx-ink); }
body.wcx .summary-table tr.total-row td { background: var(--wcx-wash); }
body.wcx .summary-table, body.wcx .qt, body.wcx .deals-table, body.wcx .activity-table {
    width: 100%; border-collapse: collapse; margin: 0;
    background: #fff; border-radius: 10px; overflow: hidden;
    font-size: 14px; color: var(--wcx-ink); font-variant-numeric: tabular-nums;
}
body.wcx .summary-table th, body.wcx .qt th, body.wcx .deals-table th, body.wcx .activity-table th {
    background: var(--wcx-ink); color: #fff;
    padding: 11px 14px; font-size: 14px; font-weight: 600; text-align: left;
    border: 0; white-space: nowrap;
}
body.wcx .summary-table td, body.wcx .qt td, body.wcx .deals-table td, body.wcx .activity-table td {
    padding: 11px 14px; font-size: 14px; color: var(--wcx-ink);
    border-bottom: 1px solid var(--wcx-line);
}
body.wcx .qt tr:hover td, body.wcx .deals-table tr:hover td, body.wcx .activity-table tr:hover td { background: #faf8ff; }
body.wcx .deals-table tr:hover { background: transparent; }
body.wcx .qt th, body.wcx .qt td { padding: 10px 12px; font-size: 14px; }

body.wcx .summary-table tr.config-row { background: #fff; }
body.wcx .summary-table tr.config-row td:first-child { font-weight: 600; }
body.wcx .summary-table tr.config-row td[rowspan] { font-weight: 700; vertical-align: top; white-space: nowrap; }
body.wcx .summary-table tr.addon-row { background: #fcfbff; font-size: 14px; }
body.wcx .summary-table tr.addon-row td { color: var(--wcx-muted); }
body.wcx .summary-table tr.total-row { background: var(--wcx-wash); font-weight: 600; font-size: 14px; }
body.wcx .summary-table tr.total-row td { border-top: 0; padding: 11px 14px; }
body.wcx .summary-table tr.grand-total-row { background: var(--wcx-ink); color: #fff; font-size: 16px; }
body.wcx .summary-table tr.grand-total-row td { color: #fff; border: 0; padding: 14px; font-weight: 700; }
body.wcx .summary-table tr.grand-total-row td:last-child { color: #ff7a26; font-size: 18px; font-weight: 800; }
body.wcx .summary-table .remove-btn { color: var(--wcx-muted); opacity: 1; font-size: 14px; margin-left: 6px; border-radius: 6px; padding: 2px 6px; }
body.wcx .summary-table .remove-btn:hover { color: var(--wcx-bad); background: var(--wcx-bad-wash); }
body.wcx #discountInput { padding: 5px 8px !important; border-radius: 6px !important; border: 1px solid var(--wcx-line-strong) !important; }

/* ---------- list pages ---------------------------------------------------- */
body.wcx .stats { gap: 14px; margin-bottom: 20px; }
body.wcx .sbox { background: var(--wcx-wash); border-radius: 12px; padding: 16px 18px; text-align: left; }
body.wcx .sval { font-size: 28px; font-weight: 800; color: var(--wcx-ink); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
body.wcx .slbl { font-size: 14px; color: var(--wcx-muted); margin-top: 2px; }
body.wcx .sbar { gap: 10px; }
body.wcx .sbar input, body.wcx .sbar select { border-width: 1px; padding: 10px 12px; font-size: 15px; }
body.wcx .qid { color: var(--wcx-purple); font-weight: 700; }
body.wcx .uname { color: var(--wcx-ink); }
body.wcx .uemail, body.wcx .dtime, body.wcx .partner-info { color: var(--wcx-muted); font-size: 14px; }
body.wcx .amt { color: var(--wcx-ink); font-weight: 700; }
body.wcx .badge, body.wcx .status-badge { border-radius: 999px; padding: 3px 10px; font-size: 13px; font-weight: 700; letter-spacing: 0; }
body.wcx .ba { background: #ffe8d9; color: #9a3a00; }
body.wcx .bu { background: var(--wcx-wash); color: var(--wcx-purple); }
body.wcx .b-sub, body.wcx .status-approved, body.wcx .status-won { background: var(--wcx-ok-wash); color: var(--wcx-ok); }
body.wcx .b-draft, body.wcx .status-registered { background: var(--wcx-warn-wash); color: #8a4b00; }
body.wcx .status-lost { background: var(--wcx-bad-wash); color: var(--wcx-bad); }
body.wcx .status-active { color: var(--wcx-ok); }
body.wcx .status-inactive { color: var(--wcx-bad); }
body.wcx .amenu-btn { background: var(--wcx-purple); border-radius: 8px; font-size: 14px; padding: 7px 12px; }
body.wcx .amenu-list { border: 0; border-radius: 10px; box-shadow: 0 0 0 1px var(--wcx-line), 0 16px 32px -12px rgba(17, 0, 57, 0.35); }
body.wcx .amenu-list button { font-size: 14px; color: var(--wcx-ink); }
body.wcx .amenu-list button:hover { background: var(--wcx-wash); }
body.wcx .nodata { color: var(--wcx-muted); }
body.wcx .admin-actions select { padding: 5px 8px; font-size: 14px; }
body.wcx .admin-actions button { background: var(--wcx-purple); border-radius: 6px; font-size: 13px; padding: 5px 10px; }

/* messages */
body.wcx .errbox, body.wcx .error-message, body.wcx .msg-err, body.wcx .msg-error {
    background: var(--wcx-bad-wash); color: var(--wcx-bad); border: 0; border-left: 3px solid var(--wcx-bad); border-radius: 8px;
}
body.wcx .success-message, body.wcx .msg-ok, body.wcx .msg-success {
    background: var(--wcx-ok-wash); color: var(--wcx-ok); border: 0; border-left: 3px solid var(--wcx-ok); border-radius: 8px;
}

/* user activity page: old dark .summary panel becomes a light card */
body.wcx .summary:not(#priceSummary) { position: static; padding: 24px; margin: 0; background: var(--wcx-card); }
body.wcx .summary:not(#priceSummary) h2 { color: var(--wcx-ink); font-size: 22px; margin: 0 0 16px; display: block; }

/* deals page */
body.wcx .deals-container { max-width: calc(var(--wcx-max) + 48px); margin: 0 auto; padding: 32px 24px 64px; }
body.wcx .form-grid { gap: 16px 20px; }
body.wcx .form-group label, body.wcx .fld label { font-size: 14px; font-weight: 600; color: var(--wcx-ink); margin-bottom: 6px; }
body.wcx #dealDetail { background: var(--wcx-wash) !important; border: 0 !important; border-radius: 12px !important; }
body.wcx #dealDetail h3 { color: var(--wcx-purple) !important; }

/* modal (quote history) */
body.wcx #histModal { background: rgba(17, 0, 57, 0.55) !important; }
body.wcx #histModal > div { border-radius: 16px !important; box-shadow: 0 30px 60px -20px rgba(17, 0, 57, 0.6) !important; }

/* ---------- login --------------------------------------------------------- */
body.wcx.wcx-login { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(380px, 1fr); min-height: 100vh; }
body.wcx .wcx-login-art {
    display: flex; flex-direction: column; justify-content: space-between;
    padding: 40px 56px; background: var(--wcx-ink); color: #fff; position: relative; overflow: hidden;
}
body.wcx .wcx-login-art img { height: 24px; width: auto; align-self: flex-start; }
body.wcx .wcx-login-art h1 { color: #fff; font-size: clamp(40px, 5vw, 64px); line-height: 1.02; font-weight: 800; letter-spacing: -0.035em; margin: 0; }
body.wcx .wcx-login-art h1 em { font-style: normal; color: var(--wcx-lavender); }
body.wcx .wcx-login-art p { color: rgba(255, 255, 255, 0.65); font-size: 16px; margin: 0; }
body.wcx .wcx-login-bars { display: flex; gap: 3px; height: 10px; border-radius: 999px; overflow: hidden; max-width: 420px; margin: 28px 0 0; }
body.wcx .wcx-login-bars span { display: block; height: 100%; flex: var(--a) 1 0; animation: wcx-breathe 6s var(--wcx-ease) infinite alternate; }
@keyframes wcx-breathe { from { flex-grow: var(--a); } to { flex-grow: var(--b); } }
body.wcx .wcx-login-form { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
body.wcx .auth-container { width: 100%; max-width: 400px; margin: 0; padding: 36px 32px; }
body.wcx .auth-container h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 4px; }
body.wcx .auth-container .wcx-login-sub { color: var(--wcx-muted); font-size: 15px; margin: 0 0 24px; }
body.wcx .auth-form { gap: 16px; }
body.wcx .form-group input { padding: 12px 14px; font-size: 16px; }
body.wcx .auth-form .btn-primary { min-height: 46px; font-size: 16px; margin-top: 6px; }
body.wcx .error-message, body.wcx .success-message { padding: 12px 14px; font-size: 15px; margin-bottom: 12px; }

/* ---------- service order form (customer facing) -------------------------- */
body.wcx.wcx-sof { background: var(--wcx-bg); }
body.wcx .sof { max-width: 920px; margin: 40px auto; padding: 36px 40px; background: #fff; border-radius: 18px; box-shadow: var(--wcx-ring); }
body.wcx .sof > div:first-child { border-bottom: 0 !important; padding-bottom: 6px !important; }
body.wcx .sof > div:first-child img { height: 30px !important; margin-bottom: 28px !important; }
body.wcx .sof h1 { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; color: var(--wcx-ink); }
body.wcx .sof .sub { color: var(--wcx-muted); font-size: 15px; }
body.wcx .sec {
    margin: 32px 0 14px; padding: 18px 0 0; background: none; color: var(--wcx-ink);
    border-top: 1px solid var(--wcx-line); border-radius: 0; font-size: 18px; font-weight: 700;
}
body.wcx .grid { gap: 12px 24px; }
body.wcx .fld input, body.wcx .fld select, body.wcx .fld textarea { border-width: 1px; padding: 10px 12px; font-size: 15px; }
body.wcx .actions { gap: 10px; }


/* ==========================================================================
   v2 (9 Nov): new-site layout on the live calculator (see wcx-ui.js)
   ========================================================================== */
body.wcx .wcx-step-head { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; margin-bottom: 22px; }
body.wcx .wcx-step-head h2.section-title { margin: 0; }

/* how-to-build: segmented control, top right of step 1 */
body.wcx .wcx-methods { display: inline-flex; gap: 2px; padding: 4px; background: var(--wcx-wash); border-radius: 10px; }
body.wcx .wcx-methods .method-btn {
    flex: none; padding: 7px 14px; border: 0; border-radius: 7px;
    background: transparent; color: var(--wcx-muted); font-size: 14px; font-weight: 600;
}
body.wcx .wcx-methods .method-btn:hover { background: rgba(255, 255, 255, 0.6); color: var(--wcx-ink); }
body.wcx .wcx-methods .method-btn.active { background: #fff; color: var(--wcx-ink); box-shadow: 0 1px 2px rgba(17, 0, 57, 0.12), 0 0 0 1px var(--wcx-line); }

/* VM family tabs (replace the dropdowns, which stay hidden and keep working) */
body.wcx .wcx-hidden-select { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0; pointer-events: none; }
body.wcx #packagesSection > h3.section-title, body.wcx #customSection > h3.section-title { display: none; }
body.wcx .category-selector { position: relative; margin-bottom: 0; }
body.wcx .wcx-tabs { display: inline-flex; flex-wrap: wrap; border-radius: 10px; box-shadow: 0 0 0 1px var(--wcx-line-strong); background: #fff; overflow: hidden; }
body.wcx .wcx-tab {
    padding: 9px 16px; border: 0; border-right: 1px solid var(--wcx-line-strong);
    background: transparent; color: var(--wcx-ink); font-size: 15px; font-weight: 500; cursor: pointer;
    transition: background 160ms var(--wcx-ease);
}
body.wcx .wcx-tab:last-child { border-right: 0; }
body.wcx .wcx-tab:hover { background: var(--wcx-wash); }
body.wcx .wcx-tab.is-on { background: var(--wcx-wash); color: var(--wcx-purple); font-weight: 700; box-shadow: inset 0 -2px 0 var(--wcx-purple); }
body.wcx .wcx-tab-hint { margin: 10px 0 0; font-size: 14px; color: var(--wcx-muted); min-height: 21px; }

/* compact package cards: name, specs, price; the card is the picker */
body.wcx .packages-grid { grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 12px; margin-top: 18px; }
body.wcx .package-card { display: flex; flex-direction: column; padding: 16px; cursor: pointer; outline: none; }
body.wcx .package-card .package-header { display: contents; }
body.wcx .package-card h4 { order: 1; font-size: 20px; margin: 0 0 8px; }
body.wcx .package-card .package-specs { order: 2; margin: 0 0 14px; display: block; }
body.wcx .package-card .spec-item { display: inline; padding: 0; font-size: 14px; line-height: 1.6; color: var(--wcx-muted); }
body.wcx .package-card .spec-item strong { display: none; }
body.wcx .package-card .spec-item:nth-child(1)::after, body.wcx .package-card .spec-item:nth-child(3)::after { content: " \00B7 "; white-space: pre; }
body.wcx .package-card .spec-item:nth-child(2)::after { content: ""; display: block; }
body.wcx .package-card .spec-item:nth-child(5) { display: none; }
body.wcx .package-card .package-price { order: 3; margin-top: auto; font-size: 17px; }
body.wcx .package-card .package-price.wcx-usd::before { content: "$"; }
body.wcx .package-card:focus-visible { box-shadow: 0 0 0 3px rgba(96, 37, 225, 0.35); }
body.wcx .package-card.is-selected {
    background: var(--wcx-purple); transform: translateY(-2px);
    box-shadow: 0 0 0 1px var(--wcx-purple), 0 14px 28px -14px rgba(96, 37, 225, 0.75);
}
body.wcx .package-card.is-selected h4, body.wcx .package-card.is-selected .package-price { color: #fff; }
body.wcx .package-card.is-selected .spec-item { color: rgba(255, 255, 255, 0.82); }

/* step 2 for a package: the selected card's own sliders */
body.wcx .wcx-pkg-block { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 32px; }
body.wcx .wcx-pkg-block[hidden] { display: none; }
body.wcx .wcx-pkg-block > div { margin: 0 !important; }
body.wcx .wcx-pkg-block label { font-size: 14px !important; font-weight: 600; color: var(--wcx-ink) !important; margin-bottom: 8px !important; }
body.wcx .wcx-pkg-block span[id] { font-size: 15px !important; font-weight: 700; color: var(--wcx-ink) !important; font-variant-numeric: tabular-nums; text-align: right; }
body.wcx .wcx-pkg-block .pkg-addon-cost { text-align: left; color: var(--wcx-muted); margin-top: 4px; }
body.wcx .wcx-pkg-block div[style*="0.72em"] { font-size: 13px !important; color: var(--wcx-muted) !important; }
body.wcx .wcx-pkg-block input[type="range"] { height: 6px; }
body.wcx .wcx-addbar {
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
    margin-top: 24px; padding: 16px 16px 16px 20px; background: var(--wcx-wash); border-radius: 12px;
}
body.wcx .wcx-addbar-unit { font-size: 14px; color: var(--wcx-muted); }
body.wcx .wcx-addbar-price { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
body.wcx .wcx-addbar-slot { margin-left: auto; }
body.wcx .wcx-addbar .add-package-btn { width: auto; padding: 10px 20px; }
body.wcx .wcx-addbar .add-package-btn::before { content: "+"; font-size: 20px; font-weight: 500; line-height: 1; margin: -2px 6px 0 0; }

/* data source pill next to the family tabs */
body.wcx .wcx-src { display: inline-flex; align-items: center; gap: 6px; margin-left: 12px; vertical-align: middle; padding: 4px 10px; border-radius: 999px; background: var(--wcx-warn-wash); color: #8a4b00; font-size: 13px; font-weight: 600; }
body.wcx .wcx-src::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
body.wcx .wcx-src.is-live { background: var(--wcx-ok-wash); color: var(--wcx-ok); }
body.wcx .wcx-src[hidden] { display: none; }

/* live quote: Compute / Memory / Storage / Network legend */
body.wcx .wcx-q-legend { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; font-size: 14px; }
body.wcx .wcx-q-legend li { display: flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, 0.86); min-width: 0; }
body.wcx .wcx-q-legend i { flex: none; width: 8px; height: 8px; border-radius: 50%; }
body.wcx .wcx-q-legend b { margin-left: auto; font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; }

@media (max-width: 860px) {
    body.wcx .wcx-pkg-block { grid-template-columns: 1fr; }
    body.wcx .wcx-addbar-slot { margin-left: 0; width: 100%; }
    body.wcx .wcx-addbar .add-package-btn { width: 100%; }
}
@media (max-width: 1100px) { body.wcx .wcx-q-legend { display: grid; } }

/* ---------- responsive ---------------------------------------------------- */
@media (max-width: 1100px) {
    body.wcx .wcx-grid { grid-template-columns: minmax(0, 1fr); }
    body.wcx .wcx-side { position: static; }
    body.wcx .wcx-q-lines, body.wcx .wcx-q-bar { display: none; }
}
@media (max-width: 860px) {
    body.wcx .resource-inputs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body.wcx .wcx-bar-title, body.wcx #userName { display: none; }
    body.wcx .wcx-bar { position: static; }
    body.wcx .wcx-page { padding-top: 28px; }
    body.wcx.wcx-login { grid-template-columns: 1fr; }
    body.wcx .wcx-login-art { padding: 28px 24px 32px; gap: 40px; }
    body.wcx .stats { flex-wrap: wrap; }
    body.wcx .form-grid, body.wcx .grid { grid-template-columns: 1fr; }
    body.wcx .sof { margin: 0; border-radius: 0; padding: 24px 20px; }
}
@media (max-width: 560px) {
    body.wcx .resource-inputs { grid-template-columns: 1fr; }
    body.wcx .section, body.wcx #priceSummary { padding: 20px 18px; }
    body.wcx .wcx-bar { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
    body.wcx *, body.wcx *::before, body.wcx *::after { animation: none !important; transition: none !important; }
}
