/* Neutral charcoal mode. Shared tokens plus explicit overrides for legacy Metano/WHMCS surfaces. */
html[data-theme=dark]{color-scheme:dark;background:#111315}
html[data-theme=light]{color-scheme:light}
html[data-theme=dark] body.hyrca-theme{
 --hy-bg:#111315;--hy-deep:#161a1e;--hy-surface:#1a1e22;--hy-raised:#22272c;--hy-text:#e6ebe6;--hy-muted:#afb8b2;--hy-border:#353d42;--hy-line:#353d42;--hy-mute-bg:#272e32;
 --hy-accent:#afd49e;--hy-accent-soft:#29372c;--hy-accent-softer:#252e28;--hy-gold:#c9a96d;--hy-gold-ink:#d6bb8b;--hy-gold-soft:#302b24;--hy-gold-line:#5a4c36;
 --hy-ok:#b1d7ab;--hy-ok-bg:#26392c;--hy-bad:#f1b3a7;--hy-bad-bg:#422b29;--hy-shadow:0 15px 38px -22px #0007;
 --svc-forest:#bedcaf;--svc-soft:#272c30;--svc-soft-2:#302b24;--svc-warn:#e5c68e;--svc-warn-bg:#3c3322;
 --hy-select-arrow:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23bcc7bf' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
 background:var(--hy-bg);color:var(--hy-text)
}
html[data-theme=dark] body.hyrca-theme :is(h1,h2,h3,h4,h5,h6,label,legend,.card-title,.panel-title,.hyrca-brand strong,.hyrca-service-name,.hyrca-dropdown-label,.hyrca-plan-name,.hyrca-stat__value){color:var(--hy-text)}
html[data-theme=dark] body.hyrca-theme :is(.text-muted,.help-block,.text-domain,.hyrca-row-sub,.dataTables_info,.hyrca-service-count,.hyrca-auth-intro,.hyrca-auth-register,.hyrca-service-domain,.hyrca-service-tools label,.hyrca-service-specs dt,.hyrca-service-empty p){color:var(--hy-muted)!important}
html[data-theme=dark] body.hyrca-theme a{color:var(--hy-accent)}
html[data-theme=dark] body.hyrca-theme :is(.card,.panel,.well,.modal-content,.popover,.dropdown-menu,.list-group-item,.hyrca-auth-card,.hyrca-service-tools,.hyrca-service-card,.hyrca-service-empty,.table-container){background:var(--hy-surface);color:var(--hy-text);border-color:var(--hy-border)!important;box-shadow:var(--hy-shadow)}
html[data-theme=dark] body.hyrca-theme :is(.card-header,.panel-heading,.card-footer,.panel-footer,.modal-header,.modal-footer){background:transparent;color:var(--hy-text);border-color:var(--hy-border)}
html[data-theme=dark] body.hyrca-theme :is(.list-group-item,.dropdown-item){box-shadow:none}
html[data-theme=dark] body.hyrca-theme :is(.list-group-item:hover,.dropdown-item:hover,.dropdown-item:focus,.list-group-item.active){background:var(--hy-raised)!important;color:var(--hy-text)!important}
html[data-theme=dark] body.hyrca-theme .hyrca-account-nav .dropdown-menu{background:var(--hy-surface);border-color:var(--hy-border);box-shadow:0 22px 60px #0006}
html[data-theme=dark] body.hyrca-theme .hyrca-account-nav .dropdown-menu>li[menuitemname="Logout"]{background:var(--hy-surface);border-color:var(--hy-border)}
html[data-theme=dark] body.hyrca-theme :is(.hyrca-account-item-icon,.hyrca-rail-icon,.hyrca-stat__icon,.hyrca-service-empty-icon){background:var(--hy-gold-soft);color:var(--hy-accent);border-color:var(--hy-border)}
html[data-theme=dark] body.hyrca-theme .dropdown-menu .dropdown-item{color:var(--hy-text)!important}
html[data-theme=dark] body.hyrca-theme .dropdown-menu .dropdown-item:hover,html[data-theme=dark] body.hyrca-theme .dropdown-menu .dropdown-item.active{background:var(--hy-raised)!important;color:var(--hy-text)!important}
html[data-theme=dark] body.hyrca-theme :is(.hyrca-header,.hyrca-notification-list){background:var(--hy-bg);border-color:var(--hy-border)}
html[data-theme=dark] body.hyrca-theme .hyrca-header--app{background:transparent}
html[data-theme=dark] body.hyrca-theme :is(.hyrca-icon-link,.hyrca-notifications summary,.hyrca-account-nav>li>a,.hyrca-menu-toggle,.hyrca-rail-close){background:var(--hy-surface);color:var(--hy-text);border-color:var(--hy-border)}
html[data-theme=dark] body.hyrca-theme .hyrca-rail{background:var(--hy-surface);border-color:var(--hy-border);box-shadow:0 18px 48px #0003}
html[data-theme=dark] body.hyrca-theme .hyrca-rail-link{color:var(--hy-muted)}
html[data-theme=dark] body.hyrca-theme .hyrca-rail-link:hover,html[data-theme=dark] body.hyrca-theme .hyrca-rail-link[aria-current=page],html[data-theme=dark] body.hyrca-theme .hyrca-rail-link[aria-expanded=true]{color:var(--hy-text);background:var(--hy-raised);border-color:var(--hy-border)}
html[data-theme=dark] body.hyrca-theme :is(.hyrca-rail-label,.hyrca-wallet-link strong,.hyrca-rail-profile strong){color:var(--hy-text)}
html[data-theme=dark] body.hyrca-theme :is(.hyrca-rail-submenu,.hyrca-rail-bottom,.hyrca-rail-wallet){border-color:var(--hy-border)}
html[data-theme=dark] body.hyrca-theme :is(.hyrca-rail-wallet,.hyrca-profile-avatar,.hyrca-wallet-add){background:var(--hy-gold-soft);color:var(--hy-accent)}
html[data-theme=dark] body.hyrca-theme :is(.hyrca-rail-submenu a,.hyrca-wallet-link small,.hyrca-rail-profile small){color:var(--hy-muted)}
html[data-theme=dark] body.hyrca-theme .hyrca-rail-submenu a:hover{background:var(--hy-raised);color:var(--hy-text)}
html[data-theme=dark] body.hyrca-theme .hyrca-rail-divider{background:var(--hy-border)}
html[data-theme=dark] body.hyrca-theme .hyrca-brand small{color:var(--hy-gold-ink)}
html[data-theme=dark] body.hyrca-theme :is(.hyrca-home-hero,.hyrca-welcome){background-image:url('../img/hyrca/premium-contours.svg');background-color:var(--hy-surface);border-color:var(--hy-border);box-shadow:var(--hy-shadow)}
html[data-theme=dark] body.hyrca-theme :is(.hyrca-home-hero p,.hyrca-welcome p,.hyrca-auth-story>p){color:var(--hy-muted)}
html[data-theme=dark] body.hyrca-theme .hyrca-stats .hyrca-stat{--stat-ink:#c5dcbc;--stat-soft:#29342c;background:var(--hy-surface);border-color:var(--hy-border)!important;color:var(--hy-text);box-shadow:var(--hy-shadow)}
html[data-theme=dark] body.hyrca-theme .hyrca-stats .hyrca-stat--domains,html[data-theme=dark] body.hyrca-theme .hyrca-stats .hyrca-stat--invoices{--stat-ink:#d6bb8b;--stat-soft:#302b24}
html[data-theme=dark] body.hyrca-theme .hyrca-stats .hyrca-stat.is-warning{background:linear-gradient(140deg,var(--hy-surface) 65%,#312b22);border-color:var(--hy-gold-line)!important}
html[data-theme=dark] body.hyrca-theme .hyrca-stats :is(.hyrca-stat__value,.hyrca-stat__label){color:var(--hy-text)}
html[data-theme=dark] body.hyrca-theme .hyrca-stats .hyrca-stat__meta{color:var(--hy-muted)}
html[data-theme=dark] body.hyrca-theme .hyrca-stats .hyrca-stat__icon{color:var(--stat-ink);background:var(--stat-soft);border-color:var(--hy-border)}
html[data-theme=dark] body.hyrca-theme .hyrca-stats .hyrca-stat__footer{border-color:var(--hy-border);color:var(--stat-ink)}
html[data-theme=dark] body.hyrca-theme :is(.hyrca-home-panel>.card-header,.hyrca-home-side .hyrca-home-panel>.card-header,.hyrca-ticket-panel>.card-header){background:var(--hy-surface);border-color:var(--hy-border)}
html[data-theme=dark] body.hyrca-theme :is(.hyrca-ticket-icon,.hyrca-ticket-panel .card-title>.hyrca-icon){background:var(--hy-raised);color:var(--hy-accent)}
html[data-theme=dark] body.hyrca-theme .hyrca-ticket-panel .hyrca-ticket-state{--ticket-state-ink:#bec8c0;--ticket-state-soft:#293037}
html[data-theme=dark] body.hyrca-theme .hyrca-ticket-panel .hyrca-ticket-state.is-waiting{--ticket-state-ink:#edcd94;--ticket-state-soft:#3d3322}
html[data-theme=dark] body.hyrca-theme .hyrca-ticket-panel .hyrca-ticket-state.is-answered{--ticket-state-ink:#b5d9aa;--ticket-state-soft:#293a2b}
html[data-theme=dark] body.hyrca-theme :is(.badge,.hyrca-dot-count,.card-sidebar .badge,.sidebar-menu-item-badge .badge){background:var(--hy-raised);color:var(--hy-text)!important;border-color:var(--hy-border)}
html[data-theme=dark] body.hyrca-theme :is(.hyrca-page-head,.hyrca-footer,.hyrca-footer-bottom,.hyrca-auth-register){border-color:var(--hy-border);color:var(--hy-muted)}
html[data-theme=dark] body.hyrca-theme :is(.hyrca-service-specs>div,.hyrca-service-price){background:var(--hy-raised);border-color:var(--hy-border)}
html[data-theme=dark] body.hyrca-theme :is(.hyrca-service-price strong,.hyrca-service-specs dd){color:var(--hy-text)}
html[data-theme=dark] body.hyrca-theme :is(.hyrca-service-kicker,.hyrca-service-price span,.hyrca-eyebrow){color:var(--hy-gold-ink)}
html[data-theme=dark] body.hyrca-theme .btn-primary,html[data-theme=dark] body.hyrca-theme .btn-success{background:#345b40!important;border-color:#4d7756!important;color:#f0f5eb!important;box-shadow:0 8px 24px -12px #0007}
html[data-theme=dark] body.hyrca-theme .btn-primary:hover,html[data-theme=dark] body.hyrca-theme .btn-success:hover{background:#406e4d!important}
html[data-theme=dark] body.hyrca-theme :is(.btn-default,.btn-secondary,.btn-outline-primary){background:var(--hy-raised);border-color:#46524b;color:var(--hy-text)}
html[data-theme=dark] body.hyrca-theme :is(.btn-default,.btn-secondary,.btn-outline-primary):hover{background:#303831;color:var(--hy-text)}
html[data-theme=dark] body.hyrca-theme :is(.btn-danger,.btn-outline-danger){background:#6d3730!important;border-color:#8e4c40!important;color:#ffe9e1!important}
html[data-theme=dark] body.hyrca-theme :is(.form-control,input.field,textarea.field,select.field,.custom-select,.input-group-text,.select2-selection){background-color:#15191d!important;color:var(--hy-text)!important;border-color:#53615a!important;box-shadow:none}
html[data-theme=dark] body.hyrca-theme :is(input,textarea)::placeholder{color:#9aa89e;opacity:1}
html[data-theme=dark] body.hyrca-theme :is(.form-control,input.field,textarea.field,select.field):focus{border-color:#a7c792!important;box-shadow:0 0 0 3px #afd49e22!important}
html[data-theme=dark] body.hyrca-theme :is(input,textarea):autofill{box-shadow:0 0 0 1000px #222b28 inset!important;-webkit-text-fill-color:#e6ebe6!important;caret-color:#e6ebe6}
html[data-theme=dark] body.hyrca-theme :is(input,textarea):-webkit-autofill{box-shadow:0 0 0 1000px #222b28 inset!important;-webkit-text-fill-color:#e6ebe6!important;caret-color:#e6ebe6}
html[data-theme=dark] body.hyrca-theme :is(select option,.select2-dropdown,.selectize-dropdown){background:#1a1e22;color:var(--hy-text)}
html[data-theme=dark] body.hyrca-theme :is(.table,.table tbody tr,.table tbody td,.table tbody th){background:var(--hy-surface)!important;color:var(--hy-text)!important;border-color:var(--hy-border)}
html[data-theme=dark] body.hyrca-theme table.table-list thead th,html[data-theme=dark] body.hyrca-theme .table thead th{background:var(--hy-raised)!important;color:var(--hy-text)!important;border-color:var(--hy-border)!important}
html[data-theme=dark] body.hyrca-theme :is(.pagination .page-link,.dataTables_wrapper .dataTables_paginate .paginate_button){background:var(--hy-surface)!important;color:var(--hy-text)!important;border-color:var(--hy-border)!important}
html[data-theme=dark] body.hyrca-theme :is(.alert-warning,.hyrca-fact.is-warning){background:#3c3322;border-color:#75623c;color:#edd099}
html[data-theme=dark] body.hyrca-theme :is(.alert-danger,.alert-error){background:#422b29;border-color:#764b40;color:#f1b3a7}
html[data-theme=dark] body.hyrca-theme .alert-success{background:#26392c;border-color:#476b45;color:#bcdfb3}
html[data-theme=dark] body.hyrca-theme :is(.alert-info,.hyrca-support-note){background:#243139;border-color:#426371;color:#c4dfeb}
html[data-theme=dark] body.hyrca-theme :is(.badge-warning,.status-pending,.status-unpaid,.invoice-status-top .pending){background:#3c3322;color:#edd099!important;border-color:#75623c}
html[data-theme=dark] body.hyrca-theme :is(.badge-success,.status-active,.invoice-status-top .paid){background:#26392c;color:#bcdfb3!important;border-color:#476b45}
html[data-theme=dark] body.hyrca-theme :is(.badge-danger,.status-suspended,.status-terminated,.status-cancelled,.invoice-status-top .unpaid){background:#422b29;color:#f1b3a7!important;border-color:#764b40}
html[data-theme=dark] body.hyrca-theme :is(.ticket-reply .user,.ticket-reply.staff .user){background:var(--hy-raised);color:var(--hy-text);border-color:var(--hy-border)}
html[data-theme=dark] body.hyrca-theme :is(.ticket-reply .message,.ticket-reply .attachments,.ticket-reply .footer){background:var(--hy-surface);color:var(--hy-text);border-color:var(--hy-border)}
html[data-theme=dark] body.hyrca-theme :is(.nav-tabs,.nav-pills,.hyrca-svc-hero__host,.invoice-container.top){background:var(--hy-raised);border-color:var(--hy-border)}
html[data-theme=dark] body.hyrca-theme :is(.nav-tabs .nav-link,.nav-pills .nav-link){color:var(--hy-muted)}
html[data-theme=dark] body.hyrca-theme :is(.nav-tabs .nav-link.active,.nav-pills .nav-link.active){background:var(--hy-surface);color:var(--hy-text)}
html[data-theme=dark] body.hyrca-theme .hyrca-svc-hero{background:var(--hy-surface);color:var(--hy-text)}
html[data-theme=dark] body.hyrca-theme .hyrca-svc-hero__mark{background:linear-gradient(145deg,#283c2d,#1d2a21);border:1px solid #455340}
html[data-theme=dark] body.hyrca-theme :is(.hyrca-fact,.product-details-tab-container){background:var(--hy-surface)!important;color:var(--hy-text)}
html[data-theme=dark] body.hyrca-theme #tabOverview .nav-tabs{background:var(--hy-raised)}
html[data-theme=dark] body.hyrca-theme #tabOverview .nav-tabs .nav-link.active{background:var(--hy-surface);color:var(--hy-text)}
html[data-theme=dark] body.hyrca-theme .hyrca-control-panel>.card-header{background:var(--hy-raised);border-color:var(--hy-border)}
html[data-theme=dark] body.hyrca-theme .hyrca-control-panel .list-group>.hyrca-control{--control-ink:#bfdcb2;--control-soft:#2b3a2d;background:var(--hy-surface);border-color:var(--hy-border)!important;box-shadow:none}
html[data-theme=dark] body.hyrca-theme .hyrca-control-panel .list-group>.hyrca-control--reboot{--control-ink:#e1c08a;--control-soft:#3b3326}
html[data-theme=dark] body.hyrca-theme .hyrca-control-panel .list-group>.hyrca-control--stop{--control-ink:#c5c4b3;--control-soft:#30342e}
html[data-theme=dark] body.hyrca-theme .hyrca-control-panel .list-group>.hyrca-control--poweroff{--control-ink:#f0b3a4;--control-soft:#412b28}
html[data-theme=dark] body.hyrca-theme .hyrca-control-panel .list-group>.hyrca-control:hover{background:var(--hy-raised)}
html[data-theme=dark] body.hyrca-theme :is(.hyrca-control-caption,.hyrca-panel-toggle){color:var(--hy-muted)}
html[data-theme=dark] body.hyrca-theme .hyrca-copy-feedback{background:var(--hy-raised);border-color:var(--hy-border);color:var(--hy-text)}
html[data-theme=dark] body.hyrca-theme .hyrca-growth-chip{background:#20262af2;border-color:#435047;color:var(--hy-text)}
html[data-theme=dark] body.hyrca-theme :is(.hyrca-growth-chip small,.hyrca-growth-caption,.hyrca-growth-caption>span){color:var(--hy-gold-ink)}
html[data-theme=dark] body.hyrca-theme .hyrca-growth-chip>.hyrca-icon{color:var(--hy-accent)}
html[data-theme=dark] body.hyrca-theme .hyrca-growth-traces{stroke:#8c9d8e}
html[data-theme=dark] body.hyrca-theme .hyrca-growth-flow{stroke:#d4b679}
html[data-theme=dark] body.hyrca-theme .hyrca-growth-nodes{fill:#1a1e22;stroke:#b69a62}
html[data-theme=dark] body.hyrca-theme :is(.hyrca-motion-toggle,.hyrca-appearance-orbit){background:var(--hy-gold-soft);border-color:var(--hy-border);color:#d7bc83}
html[data-theme=dark] .hyrca-appearance-sun{opacity:0;transform:translateY(24px) rotate(60deg) scale(.6)}
html[data-theme=dark] .hyrca-appearance-moon{opacity:1;transform:none}
html[data-theme=dark] body.hyrca-theme #order-standard_cart :is(.product,.order-summary,.summary-container,.product-info,.cart-sidebar .card,.view-cart-tabs,.view-cart-tabs .tab-content,.view-cart-items .item,.sub-heading span){background:var(--hy-surface);border-color:var(--hy-border);color:var(--hy-text)}
html[data-theme=dark] body.hyrca-theme #order-standard_cart :is(.order-summary h2,.view-cart-tabs .nav-tabs,.hyrca-plan-specs>div,.products .hyrca-plan-card footer){background:var(--hy-raised);border-color:var(--hy-border);color:var(--hy-text)}
html[data-theme=dark] body.hyrca-theme #order-standard_cart :is(.hyrca-plan-name,.hyrca-plan-specs dd,.hyrca-price-number,.total-due-today,.product-info,.product-title,.view-cart-tabs .nav-link.active){color:var(--hy-text)}
html[data-theme=dark] body.hyrca-theme #order-standard_cart :is(.hyrca-plan-specs dt,.hyrca-plan-card .product-desc li,.hyrca-plan-card .product-pricing,.view-cart-tabs .nav-link){color:var(--hy-muted);border-color:var(--hy-border)}
html[data-theme=dark] body.hyrca-theme #order-standard_cart :is(.hyrca-plan-kicker,.hyrca-price-currency){color:var(--hy-gold-ink)}
html[data-theme=dark] body.hyrca-theme #order-standard_cart .hyrca-plan-card .product-desc li::before{background:var(--hy-gold-soft);color:var(--hy-gold-ink)}
html[data-theme=dark] body.hyrca-theme #order-standard_cart #btnEmptyCart{background:#422b29;color:#f1b3a7;border-color:#764b40}
html[data-theme=dark] body.hyrca-theme :is(.bg-white,.bg-light,.primary-bg-color,.bg-color-light){background-color:var(--hy-surface)!important;color:var(--hy-text)}
html[data-theme=dark] body.hyrca-theme .close{color:var(--hy-text);text-shadow:none}
html[data-theme=dark] body.hyrca-theme :is(.tooltip-inner,pre,code){background:var(--hy-raised);color:var(--hy-text)}
html[data-theme=dark] body.hyrca-theme :is(.hyrca-control,.hyrca-panel-toggle,.hyrca-rail-link,.hyrca-wallet-add,.hyrca-motion-toggle,.hyrca-theme-select,.hyrca-stat):focus-visible{outline-color:#b3d99b!important}
@media(max-width:991px){html[data-theme=dark] body.hyrca-shell .hyrca-header{background:#111315ed}}
@media print{
 html[data-theme] body.hyrca-theme{--hy-bg:#fff;--hy-surface:#fff;--hy-text:#111;--hy-muted:#333;--hy-border:#bbb;background:#fff!important;color:#111!important;color-scheme:light}
 html[data-theme] body.hyrca-theme :is(.card,.panel,.invoice-container,.table,.table td,.table th){background:#fff!important;color:#111!important;box-shadow:none}
 .hyrca-appearance{display:none!important}
}
/* Legacy button rules use !important; keep secondary controls within the dark surface palette. */
html[data-theme=dark] body.hyrca-theme :is(.btn-default,.btn-secondary,.btn-outline-primary){background:var(--hy-raised)!important;border-color:#46524b!important;color:var(--hy-text)!important}
html[data-theme=dark] body.hyrca-theme :is(.btn-default,.btn-secondary,.btn-outline-primary):hover{background:#303831!important;color:var(--hy-text)!important}
@media print{html[data-theme]{background:#fff!important;color-scheme:light}html[data-theme=dark] body.hyrca-theme .table thead th,html[data-theme=dark] body.hyrca-theme table.table-list thead th{background:#fff!important;color:#111!important;border-color:#bbb!important}}
