/* ==========================================================
   Metano dark theme.
   Activated ONLY by adding the class "dark" to <body>
   (nothing in the site toggles it yet - use the console snippet).
   Palette: bg #171e34 | surface #222c4a | surface-2 #2c3862 | text #d9e0f5 | muted #8e9bbf | accent #5b8def
   ========================================================== */
body.dark { color-scheme: dark; }
body.dark, body.dark.primary-bg-color { background: #171e34 !important; color: #d9e0f5; }
body.dark ::selection { background: #3f7ae8; color: #fff; }
body.dark h1, body.dark h2, body.dark h3, body.dark h4, body.dark h5, body.dark h6,
body.dark .h1, body.dark .h2, body.dark .h3, body.dark .h4, body.dark .h5, body.dark .h6 { color: #eef2ff; }
body.dark a { color: #7aa5ff; }
body.dark a:hover { color: #a9c6ff; }
body.dark .text-muted, body.dark small, body.dark .small { color: #8e9bbf !important; }
body.dark .text-primary { color: #7aa5ff !important; }
body.dark .text-dark, body.dark .text-body { color: #d9e0f5 !important; }
body.dark hr { border-top-color: rgba(148,163,210,.16); }
body.dark .primary-content p, body.dark .primary-content li { color: #c3cce8; }
body.dark .primary-content h1, body.dark .header-lined h1 { color: #eef2ff !important; }
body.dark .page-intro { border-bottom-color: rgba(148,163,210,.16); }
body.dark .page-intro p { color: #8e9bbf; }
body.dark .breadcrumb { background: transparent; }

/* ---------- header / navigation ---------- */
body.dark .header, body.dark header.header { background: #1d2640 !important; box-shadow: 0 1px 0 rgba(148,163,210,.12); }
body.dark .navbar-light, body.dark .navbar.navbar-light, body.dark .navmin { background: transparent !important; }
body.dark .main-navbar-wrapper { background: #1d2640 !important; border-top-color: rgba(148,163,210,.12) !important; box-shadow: 0 10px 25px rgba(0,0,0,.35) !important; }
body.dark .navbar-brand, body.dark .navbar-light .navbar-brand { color: #eef2ff; }
body.dark .main-navbar-wrapper .navbar-nav > li > a, body.dark .navbar-nav > li > a, body.dark .navlog a, body.dark .navmin a { color: #cfd8f3 !important; }
body.dark .main-navbar-wrapper .navbar-nav > li > a:hover { background: rgba(91,141,239,.16) !important; color: #fff !important; }
body.dark .main-navbar-wrapper .navbar-nav > li.dropdown.show > a { background: rgba(91,141,239,.16) !important; color: #fff !important; }
body.dark .main-navbar-wrapper .navbar-nav > li.active > a, body.dark .main-navbar-wrapper .navbar-nav > li > a.active { color: #fff !important; }
body.dark .toolbar .btn.nav-link, body.dark .header .container > .nav-item.d-xl-none .btn { background: rgba(255,255,255,.07) !important; color: #cfd8f3 !important; }
body.dark .toolbar .btn.nav-link:hover { background: rgba(255,255,255,.14) !important; }
body.dark .toolbar .text-primary, body.dark .toolbar .btn.nav-link i { color: #cfd8f3 !important; }
body.dark .header .container > .nav-item.d-xl-none .btn { background: linear-gradient(135deg, #2b41a1, #3f7ae8) !important; }
body.dark .dropdown-menu { background: #28335a; border-top-color: #3f7ae8; box-shadow: 0 12px 30px rgba(0,0,0,.5); }
body.dark .dropdown-item, body.dark .dropdown-menu li.dropdown-item > a.dropdown-item { color: #cfd8f3 !important; }
body.dark .dropdown-menu li.dropdown-item > a.dropdown-item:hover, body.dark .dropdown-menu li.dropdown-item > a.dropdown-item:focus { background: rgba(91,141,239,.2) !important; color: #fff !important; box-shadow: inset -3px 0 0 #5b8def; }
body.dark .dropdown-divider { border-top-color: rgba(148,163,210,.16); }
body.dark .site-switch { background: #1d2640; border-bottom-color: rgba(148,163,210,.12); }

/* ---------- cards / lists / sidebar ---------- */
body.dark .card, body.dark .panel { background: #222c4a !important; color: #d9e0f5; box-shadow: 0 6px 20px rgba(0,0,0,.35) !important; }
body.dark .card-header, body.dark .panel-heading { background: #28335a !important; color: #eef2ff; border-bottom-color: rgba(148,163,210,.14) !important; }
body.dark .card-footer, body.dark .panel-footer { background: #28335a !important; border-top-color: rgba(148,163,210,.14) !important; }
body.dark .card-title { color: #eef2ff; }
body.dark .card-sidebar .card-header { background: linear-gradient(135deg, #17236b, #2b41a1) !important; }
body.dark .list-group-item { background: transparent !important; color: #cfd8f3; border-color: rgba(148,163,210,.14) !important; }
body.dark .sidebar .list-group-item:hover { background: rgba(91,141,239,.16) !important; color: #fff !important; }
body.dark .sidebar .list-group-item.active { color: #fff !important; }
body.dark .ticket-details-children { color: #eef2ff !important; }
body.dark .ticket-details-children .title { color: #8e9bbf; }
body.dark .ticket-details-children .title::before { background: rgba(91,141,239,.18); color: #8fb4ff; }
body.dark .ticket-details-children .ticket-requestor-name { color: #eef2ff; }

/* ---------- forms ---------- */
body.dark .form-control, body.dark select.form-control, body.dark textarea.form-control, body.dark .custom-select,
body.dark .intl-tel-input input, body.dark .input-group-text { background: #2c3862 !important; color: #e6ebff !important; border-color: rgba(148,163,210,.22) !important; }
body.dark .form-control::placeholder { color: #7683a8; }
body.dark .form-control:focus { background: #33406e !important; border-color: #5b8def !important; box-shadow: 0 0 0 3px rgba(91,141,239,.25) !important; }
body.dark .form-control:disabled, body.dark .form-control[readonly] { background: #222c4a !important; color: #8e9bbf !important; }
body.dark label, body.dark .control-label { color: #cfd8f3; }
body.dark option { background: #2c3862; color: #e6ebff; }
body.dark .custom-file-label { background: #2c3862; color: #cfd8f3; border-color: rgba(148,163,210,.22); }
body.dark .btn-default { background: #2c3862 !important; color: #d9e0f5 !important; border-color: rgba(148,163,210,.25) !important; }
body.dark .btn-default:hover { background: #37457a !important; color: #fff !important; }
body.dark .intl-tel-input .country-list { background: #28335a; color: #d9e0f5; box-shadow: 0 12px 30px rgba(0,0,0,.5); }
body.dark .intl-tel-input .country-list .country:hover, body.dark .intl-tel-input .country-list .country.highlight { background: rgba(91,141,239,.2); }
body.dark .intl-tel-input .country-list .dial-code { color: #8e9bbf; }

/* ---------- tables / datatables / pagination ---------- */
body.dark .table-list, body.dark .table, body.dark .bg-white { background: #222c4a !important; color: #d9e0f5; border-color: rgba(148,163,210,.14) !important; box-shadow: 0 6px 20px rgba(0,0,0,.35) !important; }
body.dark .table-list tbody td, body.dark .table tbody td { color: #d9e0f5; border-bottom-color: rgba(148,163,210,.12) !important; }
body.dark .table-list tbody tr:nth-child(even) td, body.dark .client-home-cards .table-list tbody tr:nth-child(even) td { background: #28335a !important; }
body.dark .table-list tbody tr:hover td, body.dark .table tbody tr:hover td, body.dark .client-home-cards .table-list tbody tr:hover td { background: #33416f !important; }
body.dark .table-list td:first-child, body.dark .client-home-cards .table-list td:first-child { color: #8fb4ff !important; }
body.dark .client-home-cards .table-list td:nth-child(2) { color: #e6ebff; }
body.dark .client-home-cards .table-list td .btn.btn-info { background: rgba(91,141,239,.18); color: #9dbdff !important; }
body.dark .table-list td .btn.btn-info:hover { background: #3f7ae8; color: #fff !important; }
body.dark .dataTables_wrapper .dataTables_info, body.dark .dataTables_wrapper .dataTables_filter label, body.dark .dataTables_wrapper .dataTables_length label { color: #8e9bbf; }
body.dark .page-link, body.dark .pagination .page-link { background: #2c3862; color: #9dbdff; border-color: rgba(148,163,210,.18); }
body.dark .pagination .active .page-link, body.dark .dataTables_wrapper .pagination .active .page-link { background: #3f7ae8; color: #fff; }
body.dark .div-service-item:hover, body.dark .domain-suggestion:hover { background: #33416f; }
body.dark .div-service-item .service-item-link { color: #e6ebff; }

/* ---------- alerts / modals / badges ---------- */
body.dark .alert { border-color: transparent; }
body.dark .alert-info, body.dark .alert-primary { background: rgba(63,122,232,.16); color: #bcd2ff; }
body.dark .alert-success { background: rgba(0,168,107,.16); color: #8ee6c3; }
body.dark .alert-warning { background: rgba(240,138,36,.16); color: #ffcf99; }
body.dark .alert-danger, body.dark .alert-error { background: rgba(220,53,69,.18); color: #ffb3bb; }
body.dark .alert a { color: inherit; text-decoration: underline; }
body.dark .modal-content { background: #222c4a; color: #d9e0f5; }
body.dark .modal-header, body.dark .modal-footer { border-color: rgba(148,163,210,.14); }
body.dark .close { color: #cfd8f3; text-shadow: none; }
body.dark .progress { background: #2c3862; }
body.dark .badge-secondary { background: #37457a; color: #cfd8f3; }

/* ---------- dashboard tiles / home ---------- */
body.dark .stat-card { background: #222c4a; border-color: rgba(148,163,210,.14); box-shadow: 0 6px 20px rgba(0,0,0,.35); }
body.dark .stat-card .stat-label { color: #8e9bbf; }
body.dark .widget-box-item { background: linear-gradient(135deg, #222c4a 55%, color-mix(in srgb, var(--tile) 18%, #222c4a)) !important; box-shadow: 0 6px 20px rgba(0,0,0,.4) !important; }
body.dark .widget-box-item:hover { background: linear-gradient(135deg, color-mix(in srgb, var(--tile) 22%, #222c4a), color-mix(in srgb, var(--tile2) 30%, #222c4a)) !important; }
body.dark .widget-box-item-content .tile-stats .tile-stat { border-bottom-color: rgba(148,163,210,.16); }
body.dark .widget-box-item-content .tile-stats .tile-stat-label { color: #8e9bbf; }
body.dark .widget-box-item-content .tile-stats .tile-stat-value { color: #e6ebff; }
body.dark .widget-box-item-content .tile-stats .tile-stat:first-child .tile-stat-value { color: var(--tile2); }
body.dark .home-product { background: linear-gradient(180deg, #222c4a 55%, color-mix(in srgb, var(--tile) 16%, #222c4a)) !important; box-shadow: 0 6px 20px rgba(0,0,0,.4); }
body.dark .home-product p { color: #8e9bbf; }
body.dark .home-product-more { background: color-mix(in srgb, var(--tile) 22%, #222c4a); color: var(--tile2); }
body.dark .home-card-head { border-bottom-color: rgba(148,163,210,.16); }

/* ---------- ticket page ---------- */
body.dark .ticket-meta { background: #28335a; border-color: rgba(148,163,210,.14); }
body.dark .ticket-meta-item .meta-label { color: #8e9bbf; }
body.dark .ticket-meta-item strong { color: #eef2ff; }
body.dark .ticket-meta-item > i { background: rgba(91,141,239,.18); color: #8fb4ff; }
body.dark .ticket-replies .reply { background: #222c4a; border-color: rgba(148,163,210,.14); box-shadow: 0 6px 20px rgba(0,0,0,.35); }
body.dark .ticket-replies .replies-admin { background: #2a3a72; border-color: rgba(91,141,239,.45); }
body.dark .ticket-replies .replies-user-info { background: #28335a; border-color: rgba(148,163,210,.16); }
body.dark .ticket-replies .replies-user-info .replies-user-title, body.dark .ticket-replies .replies-user-info .replies-user-title span { color: #eef2ff; }
body.dark .ticket-replies .replies-user-info .replies-date { color: #8e9bbf; }
body.dark .ticket-replies .replies-user-info .replies-user-image { border-color: #222c4a; }
body.dark .ticket-replies .replies-content { color: #cfd8f3; }

/* ---------- login / register / password reset ---------- */
body.dark .container-login100 { background: linear-gradient(160deg, #131a2e, #171e34 60%, #28335a); }
body.dark .login100-form, body.dark #registration { background: #1d2640; box-shadow: 0 0 60px rgba(0,0,0,.5); }
body.dark .auth-head h1, body.dark .auth-head .login-title { color: #eef2ff; }
body.dark .auth-head p, body.dark .auth-message { color: #8e9bbf; }
body.dark .auth-field .form-control, body.dark #registration .form-control, body.dark #registration select.form-control, body.dark .auth-card .form-control, body.dark #registration input[type="tel"], body.dark #registration .intl-tel-input input { background: #2c3862 !important; border-color: rgba(148,163,210,.22) !important; }
body.dark .auth-field > i:first-child, body.dark #registration .prepend-icon .field-icon i, body.dark .auth-reveal { color: #8e9bbf !important; }
body.dark .auth-reveal:hover { background: rgba(255,255,255,.08) !important; color: #fff !important; }
body.dark .auth-check, body.dark .auth-row { color: #cfd8f3; }
body.dark .auth-link { color: #7aa5ff; }
body.dark .auth-secondary { background: transparent !important; color: #8fb4ff !important; border-color: #5b8def !important; }
body.dark .auth-secondary:hover { background: #3f7ae8 !important; color: #fff !important; }
body.dark .auth-divider { color: #7683a8; }
body.dark .auth-divider::before, body.dark .auth-divider::after { background: rgba(148,163,210,.18); }
body.dark #registration label.form-check { color: #cfd8f3; }

/* ---------- invoice ---------- */
body.dark .card.card-body { background: #1d2640 !important; }
body.dark .invoice-container .personal { background: #222c4a !important; border-color: rgba(148,163,210,.16) !important; box-shadow: 0 6px 20px rgba(0,0,0,.35); }
body.dark .invoice-container .personal-title { background: #28335a !important; color: #9dbdff !important; border-bottom-color: rgba(148,163,210,.14) !important; }
body.dark .invoice-container .personal-title::before { background: rgba(91,141,239,.2); color: #8fb4ff; }
body.dark .invoice-container .personal-details, body.dark .invoice-container .personal-details p, body.dark .invoice-container .personal-details p:first-child { color: #d9e0f5 !important; }
body.dark .invoice-details > .container-fluid { background: #222c4a; border-color: rgba(148,163,210,.16); box-shadow: 0 6px 20px rgba(0,0,0,.35); }
body.dark div.invoice-container table.invoice-items td, body.dark div.invoice-container table.transactions-table td { color: #d9e0f5; border-bottom-color: rgba(148,163,210,.12) !important; background: transparent; }
body.dark div.invoice-container table.invoice-items td.text-center { color: #eef2ff; }
body.dark div.invoice-container table.invoice-items tr:first-child td, body.dark div.invoice-container table.transactions-table tr:first-child td { background: #28335a !important; color: #8e9bbf !important; border-bottom-color: rgba(148,163,210,.18) !important; }
body.dark div.invoice-container table.invoice-items tr:nth-child(even):not(:first-child):not(.total-row) td { background: #28335a; }
body.dark div.invoice-container table.invoice-items tbody tr:not(:first-child):not(.total-row):hover td, body.dark div.invoice-container table.table.transactions-table tbody tr:not(:first-child):not(:last-child):hover td { background: #33416f !important; }
body.dark div.invoice-container table.table.invoice-items tbody tr.total-row td, body.dark div.invoice-container table.invoice-items tr.total-row td, body.dark div.invoice-container .invoice-items .total-row > td { color: #eef2ff !important; border-top-color: rgba(148,163,210,.2) !important; }
body.dark div.invoice-container table.table.transactions-table tbody tr td { background: transparent !important; color: #d9e0f5 !important; }
body.dark div.invoice-container table.table.transactions-table tbody tr:first-child td { background: #28335a !important; color: #8e9bbf !important; }
body.dark div.invoice-container table.table.transactions-table tbody tr:last-child td { color: #eef2ff !important; border-top-color: rgba(148,163,210,.2) !important; }
body.dark .gateway-title { color: #cfd8f3; }
body.dark .gateway-card { background: #28335a; border-color: rgba(148,163,210,.2); box-shadow: none; }
body.dark .gateway-option:hover .gateway-card { border-color: #5b8def; box-shadow: 0 8px 18px rgba(0,0,0,.4); }
body.dark .gateway-option input:checked + .gateway-card { background: #2f4585; border-color: #5b8def; box-shadow: 0 8px 20px rgba(0,0,0,.45); }
body.dark .gateway-name { color: #d9e0f5; }
body.dark .gateway-logo { background: #f4f6fb; border-radius: 8px; padding: 4px; }
body.dark .invoice-pay-col .paymentbutton { background: linear-gradient(180deg, #222c4a 0%, #1d2640 100%) padding-box, linear-gradient(90deg, #2b41a1, #4fc3f7, #00a86b, #4fc3f7, #2b41a1) border-box !important; background-size: 100% 100%, 300% 100% !important; color: #d9e0f5; }
body.dark .invoice-pay-col .paymentbutton .gateway-extra { border-top-color: rgba(148,163,210,.25); }
body.dark .invoice-pay-col .paymentbutton .gateway-extra input[type="text"] { background: #2c3862; color: #e6ebff; border-color: rgba(148,163,210,.25); }
body.dark .gateway-credit .panel-title, body.dark .gateway-credit .panel-body { color: #d9e0f5; }

/* ---------- order forms (licences / domains) ---------- */
body.dark #order-afzonehnevis_cart .header-lined h1 { color: #eef2ff !important; }
body.dark #order-afzonehnevis_cart .header-lined p, body.dark #order-afzonehnevis_cart .cart-body > p { color: #8e9bbf !important; }
body.dark #order-afzonehnevis_cart .products .product, body.dark #order-afzonehnevis_cart .group-features .panel { background: #222c4a !important; box-shadow: 0 6px 20px rgba(0,0,0,.4) !important; }
body.dark #order-afzonehnevis_cart .products .product header, body.dark #order-afzonehnevis_cart .group-features .panel-heading { background: #28335a !important; border-bottom-color: rgba(148,163,210,.14) !important; }
body.dark #order-afzonehnevis_cart .products .product header span, body.dark #order-afzonehnevis_cart .group-features .panel-title { color: #eef2ff !important; }
body.dark #order-afzonehnevis_cart .products .product .product-desc, body.dark #order-afzonehnevis_cart .products .product div.product-desc { color: #a9b4d4; }
body.dark #order-afzonehnevis_cart .products .product .product-desc .description { color: #cfd8f3; }
body.dark #order-afzonehnevis_cart .products .product footer { background: linear-gradient(180deg, #222c4a, #1d2640) !important; border-top-color: rgba(148,163,210,.18) !important; }
body.dark #order-afzonehnevis_cart .product-pricing { color: #8e9bbf; }
body.dark #order-afzonehnevis_cart .product-pricing .price { color: #8fb4ff; }
body.dark #order-afzonehnevis_cart .product-pricing small { background: rgba(240,138,36,.16); color: #ffcf99; }
body.dark #order-afzonehnevis_cart #product-feature { background: #28335a; color: #cfd8f3; }
body.dark #order-afzonehnevis_cart .domain-checker-container { background: linear-gradient(135deg, #26335c, #2c3b78) !important; border-color: rgba(148,163,210,.18) !important; }
body.dark #order-afzonehnevis_cart .domain-checker-container .input-group { background: #2c3862; border-color: rgba(148,163,210,.22); }
body.dark #order-afzonehnevis_cart .domain-checker-bg .form-control { color: #e6ebff !important; }
body.dark #order-afzonehnevis_cart .domain-checker-result-headline, body.dark #order-afzonehnevis_cart .suggested-domains, body.dark #order-afzonehnevis_cart .spotlight-tld, body.dark #order-afzonehnevis_cart .domain-promo-box { background: #222c4a !important; border-color: rgba(148,163,210,.14) !important; box-shadow: 0 6px 20px rgba(0,0,0,.35); color: #d9e0f5; }
body.dark #order-afzonehnevis_cart .spotlight-tld, body.dark #order-afzonehnevis_cart .domain-suggestion .domain { color: #eef2ff; }
body.dark #order-afzonehnevis_cart .domain-promo-box { background: linear-gradient(180deg, #222c4a, #1d2640) !important; }
body.dark #order-afzonehnevis_cart .domain-promo-box h3, body.dark #order-afzonehnevis_cart h2.font-size-30, body.dark #order-afzonehnevis_cart h4.font-size-18 { color: #eef2ff; }
body.dark #order-afzonehnevis_cart .domain-promo-box p { color: #8e9bbf; }
body.dark #order-afzonehnevis_cart .suggested-domains .card-header, body.dark #order-afzonehnevis_cart .suggested-domains .panel-heading, body.dark #order-afzonehnevis_cart #frmDomainTransfer .card-header, body.dark #order-afzonehnevis_cart #frmDomainTransfer .panel-heading { background: #28335a !important; border-bottom-color: rgba(148,163,210,.16) !important; }
body.dark #order-afzonehnevis_cart .suggested-domains .card-header, body.dark #order-afzonehnevis_cart #frmDomainTransfer .card-title, body.dark #order-afzonehnevis_cart #frmDomainTransfer .panel-title { color: #eef2ff !important; }
body.dark #order-afzonehnevis_cart #frmDomainTransfer .card-footer { background: #28335a; border-top-color: rgba(148,163,210,.16); }
body.dark #order-afzonehnevis_cart #frmDomainTransfer .form-control { background: #2c3862 !important; border-color: rgba(148,163,210,.22) !important; }
body.dark #order-afzonehnevis_cart .tld-row { color: #d9e0f5; border-bottom-color: rgba(148,163,210,.1) !important; }
body.dark #order-afzonehnevis_cart .tld-row:nth-child(even) { background: #28335a; }
body.dark #order-afzonehnevis_cart .tld-row:hover { background: #33416f !important; }
body.dark #order-afzonehnevis_cart .tld-row strong { background: rgba(91,141,239,.18); color: #9dbdff; }
body.dark #order-afzonehnevis_cart .tld-row small { color: #7683a8; }
body.dark #order-afzonehnevis_cart .tld-filters { background: #28335a; }
body.dark #order-afzonehnevis_cart .tld-filters .badge, body.dark #order-afzonehnevis_cart .tld-filters a { color: #9dbdff !important; }
body.dark #order-afzonehnevis_cart .tld-filters .badge:hover { background: rgba(255,255,255,.08) !important; }
body.dark #order-afzonehnevis_cart .tld-filters .badge.active, body.dark #order-afzonehnevis_cart .tld-filters a.active { color: #fff !important; }
body.dark #order-afzonehnevis_cart .btn[disabled], body.dark #order-afzonehnevis_cart .btn.disabled, body.dark #order-afzonehnevis_cart .btn.unavailable, body.dark #order-afzonehnevis_cart .btn.invalid { background: #37457a !important; color: #7683a8 !important; }

/* ---------- footer / misc ---------- */
body.dark .footer-block { background: radial-gradient(900px 320px at 85% -10%, rgba(91,141,239,.14), transparent 60%), linear-gradient(180deg, #1d2848 0%, #162038 100%) !important; }
body.dark .footer-bottom { background: rgba(0,0,0,.25); }
body.dark .tooltip-inner { background: #37457a; color: #fff; }
body.dark pre, body.dark code { background: #28335a; color: #cfe0ff; }

/* ---------- second pass ---------- */
body.dark .table-list tbody td, body.dark .table tbody td, body.dark .table-list td, body.dark .table td { background: #222c4a !important; }
body.dark .table-list tbody tr:nth-child(even) td { background: #28335a !important; }
body.dark .table-list tbody tr:hover td, body.dark .table tbody tr:hover td { background: #33416f !important; }
body.dark .widget-box-item-content h5, body.dark .widget-box-item-content h5 a { color: var(--tile2) !important; }
body.dark .header, body.dark header.header, body.dark .header .navbar, body.dark .main-navbar-wrapper, body.dark .navbar-light { border-color: rgba(148,163,210,.12) !important; }
body.dark .header .navbar, body.dark .main-navbar-wrapper { border-bottom: 0 !important; }

/* ---------- domain pages: third pass ---------- */
body.dark #order-afzonehnevis_cart .tld-row, body.dark #order-afzonehnevis_cart .bg-white .row { background-color: #222c4a; }
body.dark #order-afzonehnevis_cart .tld-row:nth-child(even) { background-color: #28335a; }
body.dark #order-afzonehnevis_cart .tld-row [class*="col-"] { color: #d9e0f5; }
body.dark #order-afzonehnevis_cart .spotlight-tld .price, body.dark #order-afzonehnevis_cart .domain-price .price, body.dark #order-afzonehnevis_cart .domain-suggestion .price, body.dark #order-afzonehnevis_cart .domain-suggestion .extension { color: #8fb4ff !important; }
body.dark #order-afzonehnevis_cart .domain-checker-available { color: #3fd39b; }
body.dark #order-afzonehnevis_cart .domain-checker-unavailable, body.dark #order-afzonehnevis_cart .domain-checker-invalid { color: #ff8a93; }
body.dark #order-afzonehnevis_cart .domain-suggestion { background: #222c4a; }
body.dark #order-afzonehnevis_cart .domain-suggestions-warning, body.dark #order-afzonehnevis_cart .suggested-domains .more-suggestions { color: #7683a8; }

/* ---------- round 2: readability and softer contrast ---------- */
/* text inside the coloured site-switch buttons must stay white (the generic "small" rule made it grey) */
body.dark .site-switch-btn, body.dark .site-switch-btn *, body.dark .site-switch-btn small, body.dark .site-switch-btn strong { color: #fff !important; }
body.dark .site-switch-text small { opacity: .92; }
/* the collapse box behind the main menu: no white box */
body.dark header.header .main-navbar-wrapper .navbar-collapse { background-color: transparent !important; padding: 0 !important; }
body.dark .card, body.dark .panel { box-shadow: 0 4px 14px rgba(8,12,28,.35) !important; }
body.dark .footer-block { background: radial-gradient(900px 320px at 85% -10%, rgba(120,160,255,.16), transparent 60%), linear-gradient(180deg, #232f55 0%, #1b2544 100%) !important; }
body.dark .main-navbar-wrapper { box-shadow: 0 8px 20px rgba(8,12,28,.3) !important; }

/* ---------- live-site pass: announcements / knowledgebase ---------- */
body.dark .announcements .announcement article { background: #1f2a4c !important; border: 1px solid rgba(148,163,210,.18) !important; border-right: 4px solid #5b8def !important; color: #cfd8f3; }
body.dark .announcements .announcement article p, body.dark .announcements .announcement article * { color: #cfd8f3; }
body.dark .announcement-title, body.dark .announcements .announcement h1 a { color: #9dbdff !important; }
body.dark .bg-color-asbestos { background: rgba(91,141,239,.18) !important; color: #9dbdff !important; }
body.dark .bg-color-asbestos:hover { background: #3f7ae8 !important; color: #fff !important; }
body.dark .sidebar .list-group-item .badge { background: rgba(91,141,239,.2); color: #9dbdff !important; }
body.dark .card.card-body.mb-2 .badge.float-right { background: rgba(91,141,239,.2); color: #9dbdff; }
body.dark .kb-search .form-control { background: #2c3862 !important; border-color: rgba(148,163,210,.22) !important; color: #e6ebff !important; }
body.dark .card.card-body.mb-2 { background: #222c4a !important; }
body.dark .alert-info, body.dark .alert-primary { background: rgba(63,122,232,.16); color: #bcd2ff; }

/* logged-in audit */
body.dark .depa,body.dark .product-details,body.dark .product-details-tab-container{background:#222c4a;border-color:#2c3862;color:#d9e0f5}
body.dark .nav-tabs>li>a,body.dark .nav-tabs .nav-link{color:#d9e0f5}

/* logged-in pages: leftovers */
body.dark .table-container,body.dark .table-container.clearfix{background:#222c4a!important;color:#d9e0f5}
body.dark .logo-card{background:#e9edf8}
body.dark .label.status,body.dark .status-active,body.dark .status-paid,body.dark .status-unpaid,body.dark .status-cancelled{background-color:rgba(255,255,255,.08)!important}
body.dark .status-active,body.dark .status-paid{color:#6fe3a0!important}
body.dark .status-unpaid,body.dark .status-overdue{color:#ff9a9a!important}
body.dark .status-cancelled,body.dark .status-closed{color:#aab4d4!important}
body.dark .setBulkAction,body.dark .invoice-btns .btn,body.dark #domainForm .btn-group .btn{background:#2c3862!important;color:#cfe0ff!important;border-color:#3a4a7c!important}
body.dark .md-editor,body.dark .md-editor>.md-header,body.dark .md-header.btn-toolbar{background:#222c4a!important;border-color:#2c3862!important}
body.dark .md-editor>.md-footer{background:#1c2540!important;color:#aab4d4;border-color:#2c3862!important}
body.dark .md-editor>textarea{background:#2c3862!important;color:#d9e0f5!important}
body.dark .md-editor .btn-default,body.dark .md-editor .btn{background:#2c3862;color:#d9e0f5;border-color:#3a4a7c}
body.dark input[type=file]{background:#2c3862;color:#d9e0f5}
body.dark input[type=file]::file-selector-button{background:#3a4a7c;color:#fff;border:0}
body.dark .btn-warning{background:#c98a14!important;color:#fff!important}
body.dark .btn-default{background:#2c3862;color:#d9e0f5;border-color:#3a4a7c}

/* service details / ticket text */
body.dark strong,body.dark b{color:#e6ecff}
body.dark .product-details h4{color:#9aa7cc}
body.dark .product-details .col-md-6.text-center,body.dark .product-details{color:#e6ecff}
body.dark .product-status{background:linear-gradient(160deg,#2c3862,#222c4a)!important;border-color:#3a4a7c!important}
body.dark .product-status .product-icon,body.dark .product-icon{background:transparent!important}
body.dark .product-status .product-icon h3{color:#e6ecff}
body.dark .product-status .product-icon h4{color:#aab4d4}
body.dark .product-status .product-icon .fa-stack{color:#7fa4ff}
body.dark .nav-tabs .nav-link,body.dark .nav-tabs>li>a{background:#2c3862!important;color:#d9e0f5!important;border-color:#3a4a7c!important}
body.dark .nav-tabs .nav-link.active,body.dark .nav-tabs>li.active>a{background:#3f7ae8!important;color:#fff!important}
body.dark .list-group-item,body.dark .list-group-item-action{color:#d9e0f5}
body.dark center[style*="background"],body.dark #tabOverview center,body.dark .module-client-area center{background:#2c3862!important;color:#d9e0f5!important}
body.dark .alert-warning,body.dark [style*="background-color: #ffc"],body.dark [style*="background-color:#ffc"]{background:#3a3418!important;color:#f3e3a0!important}
body.dark .ticket-reply .posted-by,body.dark .message strong{color:#e6ecff}

/* VPS / landing pages (pages/*.tpl) */
body.dark .bg-gray,body.dark .why-chose-area,body.dark .home-shortcuts,body.dark .supported-platforms{background:#171e34!important}
body.dark .why-chose-cont,body.dark .why-chose-cont.two,body.dark .why-chose-area .why-chose-cont{background:#222c4a!important;color:#d9e0f5!important;border-color:#2c3862!important}
body.dark .why-chose-area h1,body.dark .why-chose-area h2,body.dark .why-chose-area h3,body.dark .why-chose-area h4,body.dark .why-chose-area h5,body.dark .why-chose-area p,body.dark .why-chose-area li,body.dark .why-chose-area span{color:#d9e0f5!important}
body.dark .why-chose-area .section-title *,body.dark .why-chose-area>.container>.row:first-child *{color:#e6ecff!important}
body.dark .home-shortcuts li,body.dark .supported-platforms li,body.dark .home-shortcuts .img-container,body.dark .img-container,body.dark .bg-white{background:#222c4a!important;color:#d9e0f5!important}
body.dark .afeature,body.dark .afeaturedesc,body.dark .aheader,body.dark [class*="afeature "]{background:#222c4a!important;color:#d9e0f5!important;border-color:#2c3862!important}
body.dark .afeature:nth-child(odd),body.dark .afeature.price:nth-child(odd){background:#2a3558!important}
body.dark .afeature select,body.dark .aheader select{background:#2c3862;color:#d9e0f5;border:1px solid #3a4a7c}
body.dark .faq-item,body.dark .accordion .card,body.dark [class*="faq"] a,body.dark [class*="faq"] .card-header{background:#222c4a!important;color:#d9e0f5!important;border-color:#2c3862!important}
body.dark section h1,body.dark section h2,body.dark section h3{color:#e6ecff}

body.dark .home-shortcuts li *,body.dark .supported-platforms li *,body.dark .img-container *{color:#d9e0f5!important}
body.dark .home-shortcuts li a{color:#d9e0f5!important}
body.dark .home-shortcuts li i,body.dark .home-shortcuts li svg{color:#7fa4ff!important}
body.dark [class*="faq"] *,body.dark .faq *,body.dark .questions *{color:#d9e0f5!important}
body.dark [class*="faq"] a,body.dark .faq a{background:#222c4a!important}
body.dark .afeature *,body.dark .afeature span,body.dark .afeature small{color:#d9e0f5!important}

/* ticket header */
body.dark .ticket-meta{background:#222c4a!important;border-color:#2c3862!important}
body.dark .ticket-meta-item{border-color:#2c3862!important}
body.dark .ticket-meta-item strong{color:#e6ecff!important}
body.dark .ticket-meta-item .meta-label{color:#9aa7cc!important}
body.dark .ticket-meta-item > i{background:rgba(127,164,255,.14)!important;color:#9db8ff!important}
body.dark .ticket-header h1{color:#e6ecff!important}

/* round 3 */
body.dark .card-footer,body.dark .client-home-cards .card-footer,body.dark .panel-footer{background:#222c4a!important;border-color:#2c3862!important;color:#d9e0f5}
body.dark #tableTicketsList .label.status,body.dark .client-home-cards .label.status,body.dark .label.status{filter:brightness(1.55) saturate(1.1)}
body.dark .list-group-item .badge{background:#3a4a7c;color:#e6ecff}
body.dark .carousel-item img{filter:brightness(.88)}
body.dark table td span[style*="color"],body.dark table td .text-warning{filter:brightness(1.7)}
body.dark td .text-danger,body.dark .text-danger{color:#ff8a8a!important}

/* ===== round 4: order pages (vps/dedicated), IP manager, traffic, authorization, login ===== */
body.dark .vpsof-top-row,body.dark .vpsof-cycle-btn,body.dark .vpsof-chip,body.dark .vpsof-card,body.dark .vpsof-plan-card,body.dark .vpsof-description,
body.dark .dsm-filter-btn,body.dark .dsm-section,body.dark .dsm-scard,body.dark .dsm-summary-card,
body.dark .vipm-card,body.dark .vipm-btn-ghost,body.dark .traffic-card,body.dark .traffic-card .inner,body.dark .ua-card{background:#222c4a!important;border-color:#2c3862!important;color:#d9e0f5!important;box-shadow:0 8px 24px rgba(0,0,0,.25)!important}
body.dark .vpsof-plan-card li,body.dark .vpsof-spec-port,body.dark .vpsof-spec-extratb,body.dark .dsm-sort-btn,body.dark .dsm-view-toggle,body.dark .dsm-chip,body.dark .dsm-loc,body.dark .dsm-choice,body.dark .dsm-ip-btn,body.dark .dsm-notes,
body.dark .vipm-stat,body.dark .vipm-ip,body.dark .vipm-card th,body.dark .traffic-note{background:#2c3862!important;border-color:#3a4a7c!important;color:#d9e0f5!important}
body.dark .vipm-ip.sel,body.dark .vipm-badge,body.dark .vipm-card .tag,body.dark .vipm-card .ico{background:rgba(127,164,255,.18)!important;color:#b9ccff!important}
body.dark .vpsof-cycle-btn.active,body.dark .vpsof-cycle-btn.is-active,body.dark .vpsof-chip.active,body.dark .vpsof-chip.is-active,body.dark .dsm-filter-btn.active,body.dark .dsm-filter-btn.is-active{background:linear-gradient(135deg,#2b41a1,#3f7ae8)!important;color:#fff!important}
body.dark .vpsof-wrap input,body.dark .dsm-section input,body.dark .dsm-section select,body.dark .dsm-section textarea,body.dark .vipm-card input,body.dark .vipm-card select,body.dark .traffic-card input,body.dark .traffic-card select{background:#2c3862!important;border-color:#3a4a7c!important;color:#d9e0f5!important}
body.dark .vpsof-wrap h1,body.dark .vpsof-wrap h2,body.dark .vpsof-wrap h3,body.dark .dsm-section h3,body.dark .dsm-section strong,body.dark .dsm-section .lname,body.dark .dsm-section .cname,body.dark .dsm-scard *,body.dark .vipm-card *,body.dark .traffic-card *,body.dark .ua-card *{color:#e6ecff}
body.dark .vpsof-description,body.dark .vpsof-description *{color:#c3cdea!important}
body.dark .vpsof-card .vpsof-price,body.dark .vpsof-card strong{color:#4fe0c3}
body.dark .vipm-card th{color:#9aa7cc!important}
body.dark .vipm-card td{border-color:#2c3862!important}

/* login page: legends, social button, edge shadow */
body.dark .login100-more{box-shadow:none!important}

body.dark .auth-social,body.dark .social-signin-btns,body.dark [class*="social"] .btn{background:transparent!important}

/* utility colour buttons */
body.dark .btn.bg-color-midnight-blue,body.dark .bg-color-midnight-blue{background:linear-gradient(135deg,#3a4a9c,#4a63d6)!important;color:#fff!important}
body.dark .btn.bg-color-teal,body.dark .bg-color-teal{background:linear-gradient(135deg,#0f9d8a,#14b8a6)!important;color:#fff!important}
body.dark .bg-color-asbestos{background:#2c3862!important;color:#cfe0ff!important}
body.dark .bg-color-asbestos:hover{background:#3f7ae8!important;color:#fff!important}
body.dark .sub-heading span{background:#171e34!important;color:#cfd8f5!important}

/* stat cards */
body.dark .stat-card{background:linear-gradient(135deg,#2c3862,#222c4a)!important;box-shadow:0 8px 22px rgba(0,0,0,.35)!important}
body.dark .stat-card.stat-success{background:linear-gradient(135deg,rgba(31,179,107,.28),#222c4a)!important}
body.dark .stat-card.stat-danger{background:linear-gradient(135deg,rgba(229,72,77,.28),#222c4a)!important}
body.dark .stat-card .stat-value{color:#fff}
body.dark .stat-card.stat-success>i{background:rgba(31,179,107,.25);color:#5be39a}
body.dark .stat-card.stat-danger>i{background:rgba(229,72,77,.25);color:#ff8a8f}
/* misc */
body.dark .text-domain,body.dark .client-home-cards a:not(.btn){color:#9db8ff!important}
body.dark .label-success{background:#1f9d57!important}
body.dark .ticket-header .btn-success,body.dark .ticket-header .btn-success span,body.dark .ticket-header .btn-danger span,body.dark .ticket-header .btn i{color:#fff!important}
body.dark .depa i,body.dark .depa .fa-envelope,body.dark .depa i.fas{background:rgba(127,164,255,.18)!important;color:#9db8ff!important}
body.dark .product-icon .fa-stack,body.dark .product-icon .fa-stack i,body.dark .product-status .fa-stack-1x,body.dark .product-status .fa-stack-2x{color:#9db8ff!important}

/* text on module pages */
body.dark .vpsof-card b,body.dark .vpsof-card span.vpsof-spec-disktype,body.dark .vpsof-card li{color:#e6ecff!important}
body.dark .vpsof-group-tab{background:transparent!important;color:#b9c4e6!important}
body.dark .vpsof-group-tab.active{color:#8fb0ff!important;border-color:#8fb0ff!important}
body.dark .dsm-filter-clear-all{color:#b9ccff!important;background:transparent!important}
body.dark .dsm-section .hint,body.dark .dsm-section .lcountry,body.dark .dsm-section .lprice.zero,body.dark .dsm-section .cprice.zero,body.dark .dsm-ip-hint,body.dark .dsm-section .lbl,body.dark .dsm-scard div,body.dark [class*="dsm-"] .hint{color:#9aa7cc!important}
body.dark .dsm-section .cprice,body.dark .dsm-section .lprice{color:#8fb0ff!important}
body.dark .vipm-card p,body.dark .vipm-card span,body.dark .vipm-wrap p,body.dark [class*="vipm-"] p,body.dark [class*="vipm-"] label{color:#d9e0f5!important}
body.dark .vipm-btn-ghost{color:#cfe0ff!important}
body.dark .g_id_signin,body.dark .social-signin-btns iframe{border-radius:12px;overflow:hidden;box-shadow:0 4px 14px rgba(0,0,0,.35)}
body.dark .g_id_signin{display:inline-block;background:#fff!important;padding:0!important}
body.dark .btn.bg-color-gold,body.dark .btn.bg-color-sun-flower,body.dark .btn.bg-color-orange{background:linear-gradient(135deg,#d98a0a,#e8590c)!important;color:#fff!important}
body.dark .client-home-cards .btn,body.dark .client-home-cards .btn *{color:#fff}
body.dark .list-group-item span[style*="color"],body.dark .list-group-item .text-warning{filter:brightness(1.8)}

/* no light glow around table containers in dark */
body.dark .table-container,body.dark .table-container.clearfix{box-shadow:none!important}

/* range slider labels */
body.dark .irs-min,body.dark .irs-max{background:#2c3862!important;color:#d9e0f5!important}
body.dark .irs-grid-text{color:#9aa7cc!important}
body.dark .irs-line{background:#2c3862!important;border-color:#3a4a7c!important}

/* Telegram bot page */
body.dark .afn-card{background:#222c4a!important;border:1px solid #2c3862!important;color:#d9e0f5!important;box-shadow:0 8px 24px rgba(0,0,0,.3)!important}
body.dark .afn-card *{border-color:#2c3862!important}
body.dark .afn-card b,body.dark .afn-card strong{color:#e6ecff!important}
body.dark .afn-card span,body.dark .afn-card div,body.dark .afn-card li{color:#d9e0f5}

/* Telegram bot page: not-connected state */
body.dark .afn{color:#d9e0f5!important}
body.dark .afn-sec{color:#e6ecff}
body.dark .afn-item{background:#222c4a!important;border-color:#2c3862!important}
body.dark .afn-item:hover{box-shadow:0 8px 22px rgba(0,0,0,.35)!important}
body.dark .afn-item b{color:#e6ecff!important}
body.dark .afn-item span{color:#9aa7cc!important}
body.dark .afn-ico{background:rgba(34,158,217,.2)!important}
body.dark .afn-step{background:#2c3862!important;border-color:#3a4a7c!important;color:#d9e0f5!important}
body.dark .afn-foot,body.dark .afn-row span{color:#9aa7cc!important}
body.dark .afn-row{border-color:#2c3862!important}
body.dark .ticket-reply-card{background:#222c4a!important;box-shadow:0 8px 24px rgba(0,0,0,.3)!important}
