/* NEOCOUNT Ledger Atelier — shared brand layer for every web surface. */
:root {
    --neo-ink: #211b23;
    --neo-plum: #2f2232;
    --neo-plum-deep: #211923;
    --neo-plum-soft: #69415b;
    --neo-copper: #b85f3f;
    --neo-copper-dark: #8f442f;
    --neo-copper-light: #dfa078;
    --neo-jade: #3f6e60;
    --neo-jade-soft: #e7f0eb;
    --neo-paper: #fffdf9;
    --neo-canvas: #f3efe9;
    --neo-line: #ddd4ce;
    --neo-muted: #756c75;
    --neo-shadow: 0 16px 38px rgba(53, 37, 47, .09);
}

/* Public website */
body:has(> .hero) {
    --night: var(--neo-plum-deep);
    --navy: var(--neo-plum);
    --blue: var(--neo-copper);
    --cyan: var(--neo-copper-light);
    --mint: #e2ad83;
    --ink: var(--neo-ink);
    --muted: var(--neo-muted);
    --line: var(--neo-line);
    --paper: var(--neo-canvas);
    background: var(--neo-canvas);
}
body:has(> .hero) .hero {
    background: linear-gradient(138deg, #211923 0%, #302134 58%, #50332f 100%);
}
body:has(> .hero) .hero::before {
    opacity: .5;
    background-image:
        repeating-linear-gradient(0deg, transparent 0 37px, rgba(236,186,150,.085) 37px 38px),
        repeating-linear-gradient(90deg, transparent 0 75px, rgba(236,186,150,.07) 75px 76px);
    background-size: auto;
    mask-image: linear-gradient(110deg, transparent 2%, #000 48%, transparent 100%);
}
body:has(> .hero) .hero::after {
    width: 620px;
    height: 430px;
    left: auto;
    right: -105px;
    bottom: -245px;
    border: 0;
    border-left: 2px solid rgba(226,160,117,.18);
    border-top: 2px solid rgba(226,160,117,.18);
    border-radius: 0;
    box-shadow: none;
    transform: rotate(-7deg);
}
body:has(> .hero) .promo-bar { color:#f4e8e0; border-color:rgba(255,255,255,.1); background:linear-gradient(90deg,#8f442f,#b85f3f 58%,#69415b); }
body:has(> .hero) .promo-pill { color:#39242e; border-radius:5px; background:#e4af87; }
body:has(> .hero) .brand small,
body:has(> .hero) .hero-lead { color:#d4c5ce; }
body:has(> .hero) .nav-links a,
body:has(> .hero) .nav-menu summary { color:#c6b6c2; }
body:has(> .hero) .hero h1 span { background:linear-gradient(100deg,#fff 8%,#efc09d 58%,#d48a62); background-clip:text; }
body:has(> .hero) .eyebrow { color:#dfad8b; }
body:has(> .hero) .eyebrow::before { border-radius:0; background:#c56c48; }
body:has(> .hero) .button { border-radius:9px; }
body:has(> .hero) .button-glow { color:#2e2029; background:linear-gradient(120deg,#e6b38c,#cf7c55); box-shadow:0 15px 30px rgba(112,50,36,.2); }
body:has(> .hero) .button-light { color:#3c2934; background:#fffaf5; }
body:has(> .hero) .hero-proof i { color:#35242f; border-radius:4px; background:#d99a71; }
body:has(> .hero) .menu-toggle { border-radius:10px; }
body:has(> .hero) .workspace-wrap::before,
body:has(> .hero) .hero-orbit { border-color:rgba(224,160,117,.18); border-radius:0; }
body:has(> .hero) .hero-float { color:#f1e4dc; border-color:rgba(224,160,117,.2); border-radius:9px; background:rgba(38,26,37,.88); }
body:has(> .hero) .hero-float i { color:#34232d; border-radius:6px; background:linear-gradient(145deg,#e6b38c,#c66e49); }
body:has(> .hero) .signal-strip,
body:has(> .hero) .bento-card,
body:has(> .hero) .journey-card,
body:has(> .hero) .plan-card,
body:has(> .hero) .value-card { border-color:var(--neo-line); background:var(--neo-paper); }
body:has(> .hero) .signal strong,
body:has(> .hero) .kicker,
body:has(> .hero) .card-number,
body:has(> .hero) .plan-code { color:#a95135; }
body:has(> .hero) #platform { background:linear-gradient(180deg,#f5f0ea,#fffdf9); }
body:has(> .hero) .story-section { background:linear-gradient(145deg,#fffdf9 18%,#f2ece7 58%,#f7f3ee); }
body:has(> .hero) .story-section::before { border-color:rgba(184,95,63,.12); border-radius:0; box-shadow:42px 42px 0 rgba(184,95,63,.025),84px 84px 0 rgba(105,65,91,.02); }
body:has(> .hero) .story-copy .button { background:linear-gradient(120deg,#302134,#5a3745); box-shadow:0 15px 32px rgba(48,33,52,.16); }
body:has(> .hero) .journey-card::before { color:#91432f; border-color:#e7cfc1; border-radius:9px; background:linear-gradient(145deg,#f8e8df,#f0ded5); box-shadow:0 9px 22px rgba(112,50,36,.09); }
body:has(> .hero) .journey-card:hover::before { background:linear-gradient(145deg,#9f4a32,#c6744f); box-shadow:0 12px 28px rgba(112,50,36,.2); }
body:has(> .hero) .journey-card:not(:last-child)::after { background:linear-gradient(#c97650,rgba(184,95,63,.13)); }
body:has(> .hero) .journey-tag { color:#386657; border-color:#cfe0d7; background:#e8f1ec; }
body:has(> .hero) .journey-tag::before { background:var(--neo-jade); box-shadow:0 0 0 4px rgba(63,110,96,.1); }
body:has(> .hero) .modules-section,
body:has(> .hero) .pos-section { background:#241b27; }
body:has(> .hero) .module-card { border-color:rgba(226,160,117,.13); background:rgba(255,249,244,.055); }
body:has(> .hero) .module-icon { color:#edbd9a; border-color:rgba(226,160,117,.2); background:rgba(184,95,63,.14); }
body:has(> .hero) .platform-character-stage,
body:has(> .hero) .cta { border-color:rgba(226,160,117,.2); border-radius:18px; background:linear-gradient(132deg,#211923,#352238 62%,#53352f); box-shadow:0 28px 70px rgba(50,31,42,.19); }
body:has(> .hero) .platform-character-stage::before,
body:has(> .hero) .cta::before { border-color:rgba(226,160,117,.18); border-radius:0; box-shadow:44px 44px 0 rgba(226,160,117,.025),88px 88px 0 rgba(226,160,117,.018); }
body:has(> .hero) .platform-character-copy > span,
body:has(> .hero) .modules-kicker,
body:has(> .hero) .demo-side-kicker { color:#dfa078; }
body:has(> .hero) .platform-pills i,
body:has(> .hero) .platform-data-orb,
body:has(> .hero) .cta-spark { border-radius:2px; background:#c8754e; box-shadow:0 0 0 7px rgba(200,117,78,.08),0 0 22px #b85f3f; }
body:has(> .hero) .mobile-product,
body:has(> .hero) .pricing-section { background:#f3efe9; }
body:has(> .hero) .pricing-section { color:var(--neo-ink); }
body:has(> .hero) .pricing-head h2 { color:var(--neo-ink); }
body:has(> .hero) .pricing-head p { color:#70656d; }
body:has(> .hero) .billing-switch { border-color:#d9cec7; background:#ebe4dd; }
body:has(> .hero) .billing-switch button { color:#756971; }
body:has(> .hero) .billing-switch button:hover { color:#8f442f; }
body:has(> .hero) .plan-card { color:var(--neo-ink); border-color:#d9cec7; border-radius:16px; background:#fffdf9; box-shadow:0 10px 28px rgba(53,37,47,.045); }
body:has(> .hero) .plan-card.featured { border-color:#c98261; background:linear-gradient(155deg,#fffaf6,#f8ece5); box-shadow:0 14px 34px rgba(112,50,36,.08); }
body:has(> .hero) .plan-badge { color:#31594d; border-radius:6px; background:#d9ebe3; }
body:has(> .hero) .plan-card h3 { color:var(--neo-ink); }
body:has(> .hero) .plan-description { color:#756c75; }
body:has(> .hero) .plan-price { color:#2b232b; }
body:has(> .hero) .plan-price span { color:#847780; }
body:has(> .hero) .plan-consult-note { color:#756c75; }
body:has(> .hero) .plan-users { color:#7b7078; border-bottom-color:#e5ddd7; }
body:has(> .hero) .plan-features li { color:#544b52; }
body:has(> .hero) .plan-features li::before { color:var(--neo-jade); }
body:has(> .hero) .plan-card .button-outline { color:#8f442f; border-color:#d9a58c; background:#fff9f5; }
body:has(> .hero) .plan-card .button-outline:hover { color:#fff; border-color:#9f4a32; background:#9f4a32; }
body:has(> .hero) .pricing-footnote { color:#81757c; }
body:has(> .hero) .industry-section,
body:has(> .hero) .value-section { background:#fffdf9; }
body:has(> .hero) .module-card:hover,
body:has(> .hero) .plan-card:hover { border-color:#ce9d83; box-shadow:var(--neo-shadow); }
body:has(> .hero) .module-icon,
body:has(> .hero) .mobile-action i,
body:has(> .hero) .value-mark { border-radius:7px; }
body:has(> .hero) .featured { border-color:#c98261; }
body:has(> .hero) .billing-switch button.active { color:#fff; background:#a95135; }
body:has(> .hero) .demo-side,
body:has(> .hero) footer { background:#1d171f; }
body:has(> .hero) .demo-chapter.active { border-color:rgba(226,160,117,.18); background:rgba(184,95,63,.1); }
body:has(> .hero) footer .footer-column a:hover { color:#e2ad83; }
body:has(> .hero) .actual-topbar,
body:has(> .hero) .scene-top { background:linear-gradient(115deg,#302134,#69415b); }
body:has(> .hero) .actual-welcome,
body:has(> .hero) .scene-welcome { background:linear-gradient(140deg,#2b202d,#50313d 60%,#704332); }
body:has(> .hero) .actual-welcome::after { border:0; border-left:2px solid rgba(226,160,117,.22); border-bottom:2px solid rgba(226,160,117,.22); border-radius:0; }
body:has(> .hero) .actual-actions span:first-child,
body:has(> .hero) .scene-welcome-actions span:first-child { color:#38252f; background:#dda078; }
body:has(> .hero) .actual-section-title span,
body:has(> .hero) .scene-kicker { color:#a95135; }
body:has(> .hero) .actual-metric-icon { color:#9d4a32; background:#f7e6dc; }
body:has(> .hero) .actual-chart i,
body:has(> .hero) .scene-chart i { background:linear-gradient(#d9956d,#a95135); }
body:has(> .hero) .actual-chart i:nth-child(2n),
body:has(> .hero) .scene-chart i:nth-child(even) { background:linear-gradient(#6f998c,#3f6e60); }

/* Core authentication surfaces */
body:has(.auth-page),
body.auth-shell,
body:has(> main.card) { background:var(--neo-canvas) !important; }
body:has(> main.card) .card { border-color:var(--neo-line) !important; border-radius:14px !important; background:var(--neo-paper) !important; box-shadow:var(--neo-shadow) !important; }
body:has(> main.card) .icon { border-radius:8px !important; color:var(--neo-copper) !important; background:#f7e8df !important; }
body:has(> main.card) .input:focus { border-color:#bd7658 !important; box-shadow:0 0 0 4px rgba(184,95,63,.12) !important; }
body:has(> main.card) .btn { border-radius:9px !important; background:linear-gradient(110deg,#9f4a32,#c6744f) !important; }
body:has(> main.card) .back { color:var(--neo-copper-dark) !important; }

/* Registration, OTP, and product login variants */
body.auth-shell {
    --primary:#b85f3f;
    --primary-gradient:linear-gradient(110deg,#9f4a32,#c6744f);
    --accent-blue:#b85f3f;
    color:var(--neo-ink) !important;
    background:var(--neo-canvas) !important;
}
body.auth-shell .auth-card,
body.auth-shell .register-card,
body.auth-shell .form-card { border-color:var(--neo-line) !important; background:var(--neo-paper) !important; box-shadow:var(--neo-shadow) !important; }
body.auth-shell .btn-primary,
body.auth-shell button[type="submit"] { background:linear-gradient(110deg,#9f4a32,#c6744f) !important; }
body:has(> .auth-shell) > .auth-shell .brand-panel { background:linear-gradient(137deg,#211923,#332238 58%,#50332f) !important; }
body:has(> .auth-shell) > .auth-shell .form-panel { background:repeating-linear-gradient(0deg,transparent 0 39px,rgba(91,70,65,.03) 39px 40px),var(--neo-paper) !important; }
body:has(> .auth-shell) > .auth-shell .step-label,
body:has(> .auth-shell) > .auth-shell .back-link,
body:has(> .auth-shell) > .auth-shell .resend-button { color:var(--neo-copper-dark) !important; }
body:has(> .auth-shell) > .auth-shell .local-otp { border-color:#c98a6a !important; background:#fbefe8 !important; }
body:has(> .auth-shell) > .auth-shell .verify-button { border-radius:9px !important; background:linear-gradient(110deg,#9f4a32,#c6744f) !important; box-shadow:0 12px 26px rgba(112,50,36,.22) !important; }

body:has(> .page) { color:var(--neo-ink) !important; background:var(--neo-canvas) !important; }
body:has(> .page) > .page { background:var(--neo-canvas); }
body:has(> .page) .story { background:linear-gradient(145deg,#211923,#352238 58%,#53352f) !important; }
body:has(> .page) .story::after { border-color:rgba(226,160,117,.18) !important; border-radius:0 !important; }
body:has(> .page) .login-panel { background:repeating-linear-gradient(0deg,transparent 0 39px,rgba(91,70,65,.03) 39px 40px),var(--neo-paper) !important; }
body:has(> .page) .eyebrow,
body:has(> .page) .kicker { color:var(--neo-copper) !important; }
body:has(> .page) .field:focus { border-color:#bd7658 !important; box-shadow:0 0 0 4px rgba(184,95,63,.12) !important; }
body:has(> .page) .submit,
body:has(> .page) .button,
body:has(> .page) button[type="submit"] { border-radius:9px !important; background:linear-gradient(110deg,#9f4a32,#c6744f) !important; box-shadow:0 12px 26px rgba(112,50,36,.22) !important; }
body:has(> .page) > .page > .shell { border-color:var(--neo-line) !important; background:var(--neo-paper) !important; box-shadow:var(--neo-shadow) !important; }
body:has(> .page) .pitch { background:linear-gradient(145deg,#211923,#352238 58%,#53352f) !important; }
body:has(> .page) .pitch::after { border-color:rgba(226,160,117,.2) !important; border-radius:0 !important; }
body:has(> .page) .pill { color:#edbd9a !important; border-color:rgba(226,160,117,.28) !important; border-radius:7px !important; background:rgba(184,95,63,.1) !important; }
body:has(> .page) .benefits i { color:#35242f !important; border-radius:6px !important; background:#dda078 !important; }

body:has(> .shell) { color:var(--neo-ink) !important; background:var(--neo-canvas) !important; }
body:has(> .shell) > .shell { border-color:var(--neo-line) !important; border-radius:16px !important; background:var(--neo-paper) !important; box-shadow:var(--neo-shadow) !important; }
body:has(> .shell) > .shell > .hero { background:linear-gradient(135deg,#281d2b,#5a3745) !important; }
body:has(> .shell) > .shell > .hero::after { border-color:rgba(226,160,117,.22) !important; border-radius:0 !important; }
body:has(> .shell) .eyebrow { color:var(--neo-copper-dark) !important; }
body:has(> .shell) .field:focus { border-color:#bd7658 !important; box-shadow:0 0 0 3px rgba(184,95,63,.12) !important; }
body:has(> .shell) .button { border-radius:9px !important; background:linear-gradient(110deg,#9f4a32,#c6744f) !important; box-shadow:0 12px 25px rgba(112,50,36,.2) !important; }
body:has(> .shell) .native-install { color:#386657 !important; border-color:#bfd5ca !important; border-radius:9px !important; background:#edf5f0 !important; }
body:has(> .shell) .native-install__icon { border-radius:7px !important; background:linear-gradient(135deg,#3f6e60,#6b9588) !important; }

/* Neo POS owns its original blue identity and is intentionally not themed here. */

/* Warehouse mobile shell */
body:has(.wh-shell) {
    --wh-ink:#17231f;
    --wh-muted:#66756f;
    --wh-line:#d7e3dd;
    --wh-canvas:#f6faf8;
    --wh-card:#ffffff;
    --wh-primary:#397a63;
    --wh-primary-dark:#285845;
    --wh-accent:#e5f4ed;
}
body:has(.wh-shell) .wh-topbar { background:linear-gradient(115deg,#183b30,#397a63); box-shadow:0 8px 24px rgba(24,59,48,.2); }
body:has(.wh-shell) .wh-dashboard-hero { background:linear-gradient(125deg,#173c31 0%,#28664f 58%,#4b9878 100%); box-shadow:0 14px 30px rgba(40,102,79,.2); }
body:has(.wh-shell) .wh-dashboard-hero .wh-eyebrow { color:#c9f0df; }
body:has(.wh-shell) .wh-account-avatar { background:linear-gradient(135deg,#397a63,#5aa081); }
body:has(.wh-shell) .wh-card,
body:has(.wh-shell) .wh-panel { background:var(--neo-paper); }

/* Trading mobile shell */
body:has(> .top) {
    --ink:var(--neo-ink);
    --muted:var(--neo-muted);
    --line:var(--neo-line);
    --canvas:var(--neo-canvas);
    --primary:var(--neo-jade);
    --soft:var(--neo-jade-soft);
}
body:has(> .top) > .top { background:linear-gradient(115deg,#241b27,#4c3546); box-shadow:0 8px 22px rgba(48,33,52,.2); }
body:has(> .top) .stat,
body:has(> .top) .panel,
body:has(> .top) .action { background:var(--neo-paper); }
body:has(> .top) .bottom { background:rgba(255,253,249,.97); }

/* Embedded collaboration panels */
body:has(.support-page),
body.app-admin-shell:has(.wa-shell) { background:var(--neo-canvas) !important; color:var(--neo-ink) !important; }
body:has(.support-page) .card,
body:has(.support-page) .support-card,
body.app-admin-shell:has(.wa-shell) .wa-shell { border-color:var(--neo-line) !important; background:var(--neo-paper) !important; }

/* Guest self-order and electronic receipt */
body:has(.table-badge) {
    --navy:var(--neo-plum);
    --blue:var(--neo-copper);
    --sky:#f7e8df;
    --ink:var(--neo-ink);
    --muted:var(--neo-muted);
    --line:var(--neo-line);
    --bg:var(--neo-canvas);
}
body:has(.table-badge) > .shell { border-radius:0 !important; background:var(--neo-paper) !important; box-shadow:0 0 45px rgba(53,37,47,.1) !important; }
body:has(.table-badge) .top { background:linear-gradient(120deg,#241b27,#5a3745) !important; box-shadow:0 6px 20px rgba(48,33,52,.2) !important; }
body:has(.table-badge) .welcome { background:repeating-linear-gradient(0deg,transparent 0 39px,rgba(91,70,65,.025) 39px 40px),linear-gradient(#fffdf9,#f6f1eb) !important; }
body:has(.table-badge) .control:focus { border-color:#bd7658 !important; box-shadow:0 0 0 4px rgba(184,95,63,.1) !important; }
body:has(.table-badge) .primary,
body:has(.table-badge) .review,
body:has(.table-badge) .quick-nav a.active,
body:has(.table-badge) .cat.active { border-color:var(--neo-copper) !important; background:var(--neo-copper) !important; }
body:has(.table-badge) .payment-intro { background:linear-gradient(120deg,#352438,#8f442f) !important; }
body:has(.paper .divider) { color:var(--neo-ink) !important; background:var(--neo-canvas) !important; }
body:has(.paper .divider) .paper { border-color:var(--neo-line) !important; border-radius:14px !important; background:var(--neo-paper) !important; box-shadow:var(--neo-shadow) !important; }
body:has(.paper .divider) .button.primary { border-color:var(--neo-copper) !important; background:var(--neo-copper) !important; }
@media(min-width:591px){body:has(.table-badge) > .shell{border-radius:20px !important}}

@media(max-width:680px){
    body:has(> .hero) .nav-links { background:#241b27; }
    body:has(> .hero) .mega-column > small,
    body:has(> .hero) .mobile-only { color:#dfa078 !important; }
    body:has(> .hero) .mega-link { color:#eadfe6 !important; }
}

/*
 * White Ledger refinement
 * White is the dominant surface; plum and jade are quiet functional accents.
 */
:root {
    --neo-copper:#584b59;
    --neo-copper-dark:#332b35;
    --neo-copper-light:#a4b2ab;
    --neo-paper:#ffffff;
    --neo-canvas:#f7f7f4;
    --neo-line:#dfdfda;
    --neo-muted:#716b72;
}

body:has(> .hero) .hero {
    color:var(--neo-ink);
    background:#fff;
}
body:has(> .hero) .hero::before {
    opacity:1;
    background-image:
        repeating-linear-gradient(0deg,transparent 0 37px,rgba(72,62,72,.045) 37px 38px),
        repeating-linear-gradient(90deg,transparent 0 75px,rgba(72,62,72,.035) 75px 76px);
    mask-image:linear-gradient(110deg,transparent 2%,#000 48%,transparent 100%);
}
body:has(> .hero) .hero::after { border-color:rgba(63,110,96,.13); }
body:has(> .hero) .promo-bar { color:#fff; background:linear-gradient(90deg,#344b43,#49665c 58%,#574858); }
body:has(> .hero) .promo-pill { color:#fff; background:rgba(255,255,255,.16); }
body:has(> .hero) .nav { border-bottom-color:#e7e5e2; }
body:has(> .hero) .brand,
body:has(> .hero) .nav-links a,
body:has(> .hero) .nav-menu summary { color:#3b333c; }
body:has(> .hero) .brand small { color:#817a81; }
body:has(> .hero) .nav-links a:hover,
body:has(> .hero) .nav-menu[open] summary { color:#42685a; }
body:has(> .hero) .hero h1 span { background:linear-gradient(100deg,#332b35 12%,#5f5260 55%,#42685a); background-clip:text; }
body:has(> .hero) .eyebrow { color:#5c4e5d; }
body:has(> .hero) .eyebrow::before { background:#6b8277; }
body:has(> .hero) .hero-lead { color:#6f6870; }
body:has(> .hero) .button-glow { color:#fff; background:linear-gradient(120deg,#443847,#655668); box-shadow:0 14px 28px rgba(51,43,53,.17); }
body:has(> .hero) .button-light { color:#332b35; border-color:#dedbdc; background:#fff; box-shadow:0 10px 26px rgba(42,35,43,.09); }
body:has(> .hero) .button-outline { color:#4e4350; border-color:#d8d5d8; background:#fff; }
body:has(> .hero) .button-outline:hover { color:#fff; border-color:#4f4350; background:#4f4350; }
body:has(> .hero) .hero-actions .video-button { color:#59635f; }
body:has(> .hero) .hero-actions .video-button:hover { color:#332b35; }
body:has(> .hero) .hero-actions .video-button .play-mark { color:#fff; border-color:#6d8379; background:#6d8379; }
body:has(> .hero) .hero-proof { color:#777178; }
body:has(> .hero) .hero-proof i { color:#fff; background:#557568; }
body:has(> .hero) .menu-toggle { color:#403743; border-color:#d9d6d9; background:#fff; }
body:has(> .hero) .workspace-wrap::before,
body:has(> .hero) .hero-orbit { border-color:rgba(63,110,96,.12); }
body:has(> .hero) .hero-float { color:#39313a; border-color:#dedbdd; background:rgba(255,255,255,.94); box-shadow:0 16px 38px rgba(43,35,44,.1); }
body:has(> .hero) .hero-float i { color:#fff; background:linear-gradient(145deg,#526e63,#739085); }
body:has(> .hero) .hero-float small { color:#827b82; }

body:has(> .hero) .signal-strip,
body:has(> .hero) #platform,
body:has(> .hero) .story-section,
body:has(> .hero) .mobile-product,
body:has(> .hero) .pricing-section,
body:has(> .hero) .industry-section,
body:has(> .hero) .value-section { background:#fff; }
body:has(> .hero) .signal strong,
body:has(> .hero) .kicker,
body:has(> .hero) .card-number,
body:has(> .hero) .plan-code { color:#584b59; }
body:has(> .hero) .journey-card:hover::before { background:linear-gradient(145deg,#4a3e4b,#67596a); box-shadow:0 12px 28px rgba(54,45,56,.18); }
body:has(> .hero) .journey-card:not(:last-child)::after { background:linear-gradient(#6d8379,rgba(63,110,96,.12)); }
body:has(> .hero) .platform-character-copy > span,
body:has(> .hero) .modules-kicker,
body:has(> .hero) .demo-side-kicker { color:#b8c8c0; }
body:has(> .hero) .plan-card,
body:has(> .hero) .plan-card.featured { border-color:#deded9; background:#fff; box-shadow:0 10px 28px rgba(44,38,45,.045); }
body:has(> .hero) .plan-card.featured { border-color:#9badA5; }
body:has(> .hero) .plan-badge { color:#345448; background:#e8efeb; }
body:has(> .hero) .billing-switch { border-color:#deded9; background:#f2f2ef; }
body:has(> .hero) .billing-switch button.active { color:#fff; background:#504451; }
body:has(> .hero) .billing-switch button:hover { color:#42685a; }
body:has(> .hero) .plan-card .button-outline { color:#4e4350; border-color:#cec9ce; background:#fff; }
body:has(> .hero) .plan-card .button-outline:hover { color:#fff; border-color:#504451; background:#504451; }
body:has(> .hero) .featured { border-color:#9bada5; }
body:has(> .hero) footer .footer-column a:hover { color:#b9c9c1; }

/* Landing bento: preserve the connected-flow feature card and NEOCOUNT contrast. */
body:has(> .hero) .bento-card{
    border-color:#d8dfdb!important;
    border-radius:9px!important;
    background:#fff!important;
    box-shadow:0 9px 24px rgba(42,55,49,.055);
}
body:has(> .hero) .bento-card h3{color:#29232c}
body:has(> .hero) .bento-card p{color:#625d64}
body:has(> .hero) .bento-card .card-number{color:#654b6d}
body:has(> .hero) .bento-card.large{
    color:#fff!important;
    border-color:#654b6d!important;
    background:
        linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),
        linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px),
        linear-gradient(145deg,#2b2130,#513a58 68%,#405f55)!important;
    background-size:32px 32px,32px 32px,auto!important;
    box-shadow:0 18px 42px rgba(52,40,57,.16)!important;
}
body:has(> .hero) .bento-card.large .card-number{color:#b9dacb!important}
body:has(> .hero) .bento-card.large h3{color:#fff!important}
body:has(> .hero) .bento-card.large p{color:#ded5df!important}
body:has(> .hero) .bento-card.large .flow-row{
    color:#fff!important;
    border-color:rgba(197,222,211,.2)!important;
    border-radius:6px!important;
    background:rgba(255,255,255,.075)!important;
}
body:has(> .hero) .bento-card.large .flow-check{
    color:#fff!important;
    border-radius:4px!important;
    background:#4b9576!important;
    box-shadow:0 0 0 4px rgba(75,149,118,.12);
}
body:has(> .hero) .bento-card .orbit{
    border-color:#e2eee8!important;
    border-radius:5px!important;
    transform:rotate(12deg);
}
body:has(> .hero) .bento-card .mini-visual i:nth-child(1){background:#d8e9e1!important}
body:has(> .hero) .bento-card .mini-visual i:nth-child(2){background:#b7d5c8!important}
body:has(> .hero) .bento-card .mini-visual i:nth-child(3){background:#62a78a!important}
body:has(> .hero) .bento-card .mini-visual i:nth-child(4){background:#654b6d!important}
body:has(> .hero) .actual-actions span:first-child,
body:has(> .hero) .scene-welcome-actions span:first-child { color:#fff; background:#526f63; }
body:has(> .hero) .actual-section-title span,
body:has(> .hero) .scene-kicker { color:#584b59; }
body:has(> .hero) .actual-chart i,
body:has(> .hero) .scene-chart i { background:linear-gradient(#766878,#504451); }

/* Neo POS section uses a dark editorial surface; keep every heading readable. */
body:has(> .hero) .pos-section {
    background:
        radial-gradient(circle at 88% 12%,rgba(109,131,121,.13),transparent 28%),
        linear-gradient(180deg,#241b27 0%,#2c202f 100%);
}
body:has(> .hero) .pos-heading h2 { color:#fff!important; }
body:has(> .hero) .pos-heading p { color:#c8bdc8!important; }
body:has(> .hero) .pos-heading .kicker { color:#b9d5c8!important; }

/* Trial form: the shared plum button must always retain accessible contrast. */
body.trial-page .submit {
    color:#fff!important;
    border-color:#493d4a!important;
    background:linear-gradient(110deg,#423643,#635466)!important;
}
body.trial-page .submit:hover { background:linear-gradient(110deg,#352b37,#564659)!important; }
body.trial-page .top .nc-platform-owner { color:#effaf5; }
body.trial-page .top .nc-platform-owner small { color:#a8cabe; }

/* Shared controls: remove warm/orange actions everywhere. */
body:has(> main.card) .btn,
body.auth-shell .btn-primary,
body.auth-shell button[type="submit"],
body:has(> .auth-shell) > .auth-shell .verify-button,
body:has(> .page) .submit,
body:has(> .page) .button,
body:has(> .page) button[type="submit"],
body:has(> .shell) .button {
    border-color:#493d4a !important;
    background:linear-gradient(110deg,#423643,#635466) !important;
    box-shadow:0 11px 24px rgba(49,40,51,.18) !important;
}

/* Main user login: bright white form with quiet plum and sage controls. */
body:has(> .auth-page) .form-panel { background:#fff !important; }
body:has(> .auth-page) .form-panel::after { background:rgba(88,75,89,.07) !important; }
body:has(> .auth-page) .form-kicker,
body:has(> .auth-page) .help-link { color:#584b59 !important; }
body:has(> .auth-page) .form-kicker::before { background:#6d8379 !important; box-shadow:0 0 0 5px rgba(109,131,121,.11) !important; }
body:has(> .auth-page) .input-wrap { border-color:#dfdfda !important; background:#fff !important; box-shadow:0 4px 14px rgba(49,40,51,.035) !important; }
body:has(> .auth-page) .input-wrap:focus-within { border-color:#879b91 !important; background:#fff !important; box-shadow:0 0 0 4px rgba(109,131,121,.12),0 9px 24px rgba(49,40,51,.06) !important; }
body:has(> .auth-page) .field-icon,
body:has(> .auth-page) .password-toggle { color:#584b59 !important; border-color:#e3e4df !important; background:#f3f5f3 !important; }
body:has(> .auth-page) .password-toggle:hover { color:#fff !important; background:#5f796e !important; }
body:has(> .auth-page) .checkbox-label input { accent-color:#584b59; }
body:has(> .auth-page) .primary-button {
    border-color:#493d4a !important;
    background:linear-gradient(110deg,#423643,#635466) !important;
    box-shadow:0 11px 24px rgba(49,40,51,.18) !important;
}
body:has(> .auth-page) .primary-button:hover { box-shadow:0 15px 30px rgba(49,40,51,.24) !important; }
body:has(> .auth-page) .secondary-button { border-color:#dfdfda !important; background:#fff !important; }
body:has(> .auth-page) .secondary-button:hover { color:#fff !important; border-color:#584b59 !important; background:#584b59 !important; }
body:has(> .auth-page) .secondary-button.pos { color:#526b61 !important; border-color:#d7ded9 !important; }
body:has(> .auth-page) .secondary-button.warehouse { color:#42685a !important; border-color:#d7ded9 !important; }
body:has(> .auth-page) .primary-button:focus-visible,
body:has(> .auth-page) .secondary-button:focus-visible,
body:has(> .auth-page) .help-link:focus-visible { outline-color:rgba(95,121,110,.32) !important; }

/* Desktop login showcase: white-first, with the original character artwork intact. */
body:has(> .auth-page) .brand-panel {
    color:#2f2831 !important;
    border-right:1px solid #e2e3df;
    background:
        radial-gradient(circle at 82% 34%,rgba(109,131,121,.13),transparent 29%),
        linear-gradient(142deg,#ffffff 0%,#fafbf9 62%,#f0f4f1 100%) !important;
}
body:has(> .auth-page) .brand-grid {
    opacity:1 !important;
    background-image:
        repeating-linear-gradient(0deg,transparent 0 37px,rgba(75,64,76,.04) 37px 38px),
        repeating-linear-gradient(90deg,transparent 0 75px,rgba(75,64,76,.035) 75px 76px) !important;
    mask-image:linear-gradient(115deg,#000 0%,#000 58%,transparent 100%) !important;
}
body:has(> .auth-page) .brand-panel::before {
    border-left-color:rgba(88,75,89,.11) !important;
    border-bottom-color:rgba(88,75,89,.11) !important;
    background:linear-gradient(90deg,transparent 0 31%,rgba(109,131,121,.07) 31% 32%,transparent 32% 65%,rgba(88,75,89,.07) 65% 66%,transparent 66%) !important;
}
body:has(> .auth-page) .brand-panel::after {
    border-top-color:rgba(88,75,89,.1) !important;
    border-right-color:rgba(88,75,89,.1) !important;
    background:repeating-linear-gradient(0deg,rgba(109,131,121,.07) 0 1px,transparent 1px 34px) !important;
}
body:has(> .auth-page) .logo-wrap { color:#2f2831 !important; }
body:has(> .auth-page) .logo-wrap::before { background:rgba(109,131,121,.11) !important; }
body:has(> .auth-page) .logo-wrap small { color:#66736d !important; }
body:has(> .auth-page) .secure-badge {
    color:#514653 !important;
    border-color:#d9dcd8 !important;
    background:rgba(255,255,255,.88) !important;
    box-shadow:0 8px 24px rgba(46,39,48,.06);
}
body:has(> .auth-page) .secure-badge i { color:#5f796e !important; }
body:has(> .auth-page) .eyebrow { color:#5f796e !important; }
body:has(> .auth-page) .eyebrow::before { background:#5f796e !important; }
body:has(> .auth-page) .brand-title { color:#2d2630 !important; }
body:has(> .auth-page) .brand-title span {
    color:#4f685e !important;
    background:linear-gradient(100deg,#554758,#4f685e);
    background-clip:text;
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
}
body:has(> .auth-page) .brand-description { color:#69636a !important; }
body:has(> .auth-page) .team-visual { filter:drop-shadow(0 24px 34px rgba(39,34,40,.16)) !important; }
body:has(> .auth-page) .benefit-item {
    border-color:#dedfdb !important;
    background:rgba(255,255,255,.9) !important;
    box-shadow:0 10px 28px rgba(42,36,44,.05);
}
body:has(> .auth-page) .benefit-item:hover { border-color:#aab9b1 !important; background:#fff !important; }
body:has(> .auth-page) .benefit-icon { color:#fff !important; background:#5f796e !important; }
body:has(> .auth-page) .benefit-icon {
    border:1px solid transparent;
    box-shadow:0 9px 20px rgba(53,46,55,.1);
    transition:transform .22s ease,box-shadow .22s ease;
}
body:has(> .auth-page) .benefit-item:hover .benefit-icon {
    transform:translateY(-2px) scale(1.03);
    box-shadow:0 12px 25px rgba(53,46,55,.14);
}
body:has(> .auth-page) .benefit-item--visibility .benefit-icon {
    border-color:#c7eaf2;
    background:linear-gradient(145deg,#e6f8fc,#f4fdff) !important;
}
body:has(> .auth-page) .benefit-item--visibility .icon-axis { stroke:#75949f; }
body:has(> .auth-page) .benefit-item--visibility .icon-bar--one { fill:#72d5d3; }
body:has(> .auth-page) .benefit-item--visibility .icon-bar--two { fill:#46bfc8; }
body:has(> .auth-page) .benefit-item--visibility .icon-bar--three { fill:#2299bc; }
body:has(> .auth-page) .benefit-item--visibility .icon-line { stroke:#16799c; }
body:has(> .auth-page) .benefit-item--visibility .icon-point { fill:#f2a65a; stroke:#fff; stroke-width:1.2; }
body:has(> .auth-page) .benefit-item--operations .benefit-icon {
    border-color:#e6d9f3;
    background:linear-gradient(145deg,#f4edff,#fff8f0) !important;
}
body:has(> .auth-page) .benefit-item--operations .icon-hub { fill:#7a62cf; }
body:has(> .auth-page) .benefit-item--operations .icon-flow--top,
body:has(> .auth-page) .benefit-item--operations .icon-arrow--top { stroke:#7656c8; }
body:has(> .auth-page) .benefit-item--operations .icon-flow--bottom,
body:has(> .auth-page) .benefit-item--operations .icon-arrow--bottom { stroke:#e9814f; }
body:has(> .auth-page) .benefit-item--operations .icon-spark { fill:#f0b84f; }
body:has(> .auth-page) .benefit-item--operations .icon-spark--alt { fill:#df6f62; }
body:has(> .auth-page) .benefit-item--security .benefit-icon {
    border-color:#cce8dc;
    background:linear-gradient(145deg,#e8f8f1,#effafa) !important;
}
body:has(> .auth-page) .benefit-item--security .icon-shield { fill:#43a982; }
body:has(> .auth-page) .benefit-item--security .icon-shield-glow { fill:#61cfae; }
body:has(> .auth-page) .benefit-item--security .icon-check { stroke:#fff; }
body:has(> .auth-page) .benefit-label { color:#66736d !important; }
body:has(> .auth-page) .benefit-value { color:#352e37 !important; }
body:has(> .auth-page) .form-panel::before {
    border-left-color:rgba(109,131,121,.12) !important;
    border-bottom-color:rgba(109,131,121,.12) !important;
    background:
        linear-gradient(90deg,transparent 0 32%,rgba(109,131,121,.06) 32% 33%,transparent 33% 66%,rgba(88,75,89,.06) 66% 67%,transparent 67%),
        linear-gradient(0deg,transparent 0 42%,rgba(109,131,121,.06) 42% 43%,transparent 43%) !important;
}
body:has(> .page) .benefits i { color:#fff !important; background:#5f796e !important; }
body:has(.wh-shell) .wh-account-avatar { background:linear-gradient(135deg,#4b3f4d,#6a5a6c); }
body:has(.table-badge) .payment-intro { background:linear-gradient(120deg,#37303a,#566e63) !important; }

/* Admin: mostly white work area, neutral-plum actions. */
.app-admin-shell {
    --nc-primary:#584b59;
    --nc-primary-dark:#332b35;
    --nc-primary-soft:#efedef;
    --nc-canvas:#f7f7f4;
    --nc-line:#dfdfda;
}
.app-admin-shell .sidebar .nav-link.active { background:linear-gradient(112deg,#443847,#655668); box-shadow:0 8px 20px rgba(48,39,50,.24); }
.app-admin-shell .sidebar-brand::after { background:linear-gradient(90deg,#6c5d6d 0 62%,#80978c 62% 78%,transparent 78%); }
.app-admin-shell .btn-primary { border-color:#493d4a; background:linear-gradient(110deg,#443847,#655668); box-shadow:0 7px 17px rgba(48,39,50,.16); }
.app-admin-shell .btn-primary:hover { border-color:#302735; background:#3d323f; }
.app-admin-shell .btn-outline-primary { border-color:#cbc7cb; color:#4a3e4b; background:#fff; }
.app-admin-shell .btn-outline-primary:hover { border-color:#584b59; color:#fff; background:#584b59; }
.app-admin-shell .text-primary { color:#584b59 !important; }
.app-admin-shell .bg-primary { background-color:#584b59 !important; }
.app-admin-shell .bg-primary-subtle { background-color:#efedef !important; }
.app-admin-shell .app-page-header__eyebrow { color:#584b59; }
.app-admin-shell .app-page-header { background:#fff; }

/* Product navigation follows the landing page's plum and sage palette. */
body:has(> .hero) .mega-menu {
    border-color:#e2dee2;
    background:rgba(255,255,255,.98);
    box-shadow:0 22px 55px rgba(48,39,50,.14);
}
body:has(> .hero) .mega-feature {
    background:linear-gradient(135deg,#344b43,#49665c 58%,#574858);
}
body:has(> .hero) .mega-feature small { color:#d9e8df; }
body:has(> .hero) .mega-feature strong { color:#fff; }
body:has(> .hero) .mega-feature span { color:#e0e5e1; }
body:has(> .hero) .mega-column > small { color:#716b72; }
body:has(> .hero) .mega-link { color:#3b333c !important; }
body:has(> .hero) .mega-link > span { color:inherit; }
body:has(> .hero) .mega-link span span { color:#716b72; }
body:has(> .hero) .mega-link i { color:#42685a; background:#e7f0eb; }
body:has(> .hero) .mega-link:hover,
body:has(> .hero) .mega-link:focus-visible {
    color:#344f44 !important;
    background:#f0f4f1;
}
body:has(> .hero) .mega-link:focus-visible { outline-color:#6d8379; }

@media(max-width:680px){
    body:has(> .hero) .mega-menu { background:transparent; box-shadow:none; }
    body:has(> .hero) .nav-links { background:#fff; border-bottom-color:#dedbdd; }
    body:has(> .hero) .nav-links a,
    body:has(> .hero) .nav-menu summary { color:#3d343e; border-bottom-color:#ece9eb; }
    body:has(> .hero) .mega-link { color:#4a404b !important; }
    body:has(> .hero) .mega-column > small,
    body:has(> .hero) .mobile-only { color:#42685a !important; }
}
/* Keep the brand fixed while only the menu list scrolls. */
.app-admin-shell .sidebar { height:100vh;height:100dvh;overflow:hidden; }
.app-admin-shell .sidebar-brand { flex-shrink:0; }
.app-admin-shell .sidebar-nav { min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin; }
.app-admin-shell .sidebar-nav > * { flex-shrink:0; }
.app-admin-shell .sidebar-top-toggle { flex:0 0 40px;display:inline-flex;align-items:center;justify-content:center; }
.sidebar-backdrop { position:fixed;inset:0;z-index:950;border:0;background:rgba(22,31,29,.4); }
.sidebar-backdrop[hidden] { display:none; }
@media(max-width:992px) { .app-admin-shell .sidebar.mobile-show .sidebar-brand-copy { display:flex!important; } }
@media(min-width:993px) { .sidebar-backdrop { display:none; } }
@media(min-width:993px) {
    .app-admin-shell .sidebar.collapsed .nav-link { flex:0 0 40px;min-height:40px;height:40px;padding:0;gap:0;margin:2px 0;justify-content:center; }
    .app-admin-shell .sidebar.collapsed .nav-link > span,
    .app-admin-shell .sidebar.collapsed .sidebar-brand-copy,
    .app-admin-shell .sidebar.collapsed .section-title,
    .app-admin-shell .sidebar.collapsed .section-title-hr { display:none!important; }
    .app-admin-shell .sidebar.collapsed .nav-link > i { width:22px;min-width:22px;flex:0 0 22px;justify-content:center; }
    .app-admin-shell .sidebar.collapsed .sidebar-nav { gap:2px; }
    .app-admin-shell .sidebar.is-peeking { box-shadow:10px 0 28px rgba(35,25,37,.16)!important; }
}
@media print { .sidebar-backdrop,.sidebar-top-toggle { display:none!important; } }
