/* *****************************************************
    ** Dark Theme Override Stylesheet **
    Modern dark-mode-by-default theme for WHMCS ispco theme
***************************************************** */

/* ============================================
   Global & Body
   ============================================ */
body.theme-dark {
    background-color: #020617;
    color: #e5e7eb;
    line-height: 1.6;
}

body.theme-dark .container,
body.theme-dark .container-fluid {
    background-color: transparent;
}

/* Container width override - 85% instead of 1170px */
body.theme-dark .container {
    max-width: 85%;
    width: 85%;
}

@media (max-width: 768px) {
    body.theme-dark .container {
        max-width: 100%;
        width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Main content area */
body.theme-dark #main-body {
    background-color: #020617;
    min-height: calc(100vh - 200px);
}

body.theme-dark .main-content {
    background-color: transparent;
}

/* ============================================
   Typography
   ============================================ */
body.theme-dark h1,
body.theme-dark h2,
body.theme-dark h3,
body.theme-dark h4,
body.theme-dark h5,
body.theme-dark h6 {
    color: #f9fafb;
}

body.theme-dark h1 small,
body.theme-dark h2 small,
body.theme-dark h3 small,
body.theme-dark h4 small,
body.theme-dark h5 small,
body.theme-dark h6 small {
    color: #9ca3af;
}

body.theme-dark p,
body.theme-dark span,
body.theme-dark div {
    color: #e5e7eb;
}

body.theme-dark .text-muted {
    color: #9ca3af !important;
}

body.theme-dark a {
    color: #3b82f6;
}

body.theme-dark a:hover,
body.theme-dark a:focus {
    color: #60a5fa;
    text-decoration: none;
}

/* ============================================
   Header & Navigation - Modern Gradient
   ============================================ */
body.theme-dark #header {
    background: linear-gradient(135deg, #0b1120 0%, #1e293b 100%);
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    min-height: 85px;
}

body.theme-dark #header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.5), transparent);
}

body.theme-dark #header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 85px;
    flex-wrap: wrap;
}

body.theme-dark #header .top-nav {
    background-color: transparent;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    height: 85px;
    flex: 1;
    justify-content: flex-end;
}

body.theme-dark #header .top-nav>li {
    display: flex;
    align-items: center;
    height: auto;
}

body.theme-dark #header .top-nav>li>a {
    color: #e5e7eb;
    display: flex;
    align-items: center;
    padding: 10px 15px;
    height: auto;
}

body.theme-dark #header .top-nav>li>a:hover {
    color: #3b82f6;
    background-color: #1f2937;
}

body.theme-dark #header .logo,
body.theme-dark #header .logo-text {
    color: #f9fafb;
}

body.theme-dark #header .logo,
body.theme-dark #header .logo-svg {
    display: flex;
    align-items: center;
    height: 60px;
    margin-right: auto;
}

body.theme-dark #header .logo img,
body.theme-dark #header .logo-image {
    height: 60px;
    max-height: 60px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

/* Main navigation - Modern Gradient */
body.theme-dark #main-menu {
    background: linear-gradient(180deg, #0f172a 0%, #0b1120 100%);
    border-bottom: 1px solid rgba(31, 41, 55, 0.5);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

body.theme-dark .navbar-default {
    background-color: #0f172a;
    border-color: #1f2937;
}

body.theme-dark .navbar-default .navbar-nav>li>a {
    color: #e5e7eb;
}

body.theme-dark .navbar-default .navbar-nav>li>a:hover,
body.theme-dark .navbar-default .navbar-nav>li>a:focus {
    color: #3b82f6;
    background-color: #1f2937;
}

body.theme-dark .navbar-default .navbar-nav>.active>a,
body.theme-dark .navbar-default .navbar-nav>.active>a:hover,
body.theme-dark .navbar-default .navbar-nav>.active>a:focus {
    color: #3b82f6;
    background-color: #1f2937;
}

body.theme-dark .navbar-default .navbar-toggle {
    border-color: #1f2937;
    background-color: #0b1120;
}

body.theme-dark .navbar-default .navbar-toggle .icon-bar {
    background-color: #e5e7eb;
}

body.theme-dark .navbar-default .navbar-toggle:hover,
body.theme-dark .navbar-default .navbar-toggle:focus {
    background-color: #1f2937;
}

/* Dropdown menus */
body.theme-dark .dropdown-menu {
    background-color: #0f172a;
    border-color: #1f2937;
}

body.theme-dark .dropdown-menu>li>a {
    color: #e5e7eb;
}

body.theme-dark .dropdown-menu>li>a:hover,
body.theme-dark .dropdown-menu>li>a:focus {
    color: #f9fafb;
    background-color: #1f2937;
}

body.theme-dark .popover {
    background-color: #0f172a;
    border-color: #1f2937;
    color: #e5e7eb;
}

body.theme-dark .popover-title {
    background-color: #0b1120;
    border-bottom-color: #1f2937;
    color: #f9fafb;
}

/* ============================================
   Panels & Cards
   ============================================ */
body.theme-dark .panel {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(11, 17, 32, 0.95) 100%);
    border-color: rgba(59, 130, 246, 0.2);
    color: #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

body.theme-dark .panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #06b6d4);
    opacity: 0;
    transition: opacity 0.3s;
}

body.theme-dark .panel:hover::before {
    opacity: 1;
}

body.theme-dark .panel:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.4);
}

body.theme-dark .panel-default {
    border-color: #1f2937;
}

body.theme-dark .panel-default>.panel-heading {
    background: linear-gradient(135deg, #0b1120 0%, #1e293b 100%);
    border-color: rgba(59, 130, 246, 0.2);
    color: #f9fafb;
}

body.theme-dark .panel-default>.panel-heading .panel-title {
    color: #f9fafb;
    font-weight: 600;
}

body.theme-dark .panel-heading {
    background: linear-gradient(135deg, #0b1120 0%, #1e293b 100%) !important;
    border-color: rgba(59, 130, 246, 0.2) !important;
    color: #f9fafb !important;
}

body.theme-dark .panel-heading .panel-title,
body.theme-dark .panel-heading h1,
body.theme-dark .panel-heading h2,
body.theme-dark .panel-heading h3,
body.theme-dark .panel-heading h4,
body.theme-dark .panel-heading h5,
body.theme-dark .panel-heading h6 {
    color: #f9fafb !important;
}

/* General Panel Footer Styling */
body.theme-dark .panel-footer {
    background: linear-gradient(135deg, rgba(11, 17, 32, 0.8) 0%, rgba(15, 23, 42, 0.6) 100%);
    border-top-color: rgba(59, 130, 246, 0.2);
    color: #e5e7eb;
}

body.theme-dark .panel-footer * {
    color: #e5e7eb;
}

body.theme-dark .panel-footer a {
    color: #fff;
}

body.theme-dark .panel-footer a:hover {
    color: #fff;
}

body.theme-dark .panel-footer .clearfix {
    background-color: transparent;
    color: inherit;
}

body.theme-dark .panel-default>.panel-footer {
    background: linear-gradient(135deg, rgba(11, 17, 32, 0.8) 0%, rgba(15, 23, 42, 0.6) 100%);
    border-top-color: rgba(59, 130, 246, 0.2);
    color: #e5e7eb;
}

body.theme-dark .panel-default>.panel-footer * {
    color: #e5e7eb;
}

body.theme-dark .panel-default>.panel-footer a {
    color: #fff;
}

body.theme-dark .panel-default>.panel-footer a:hover {
    color: #fff;
}

/* Panel footer with card-footer and more-suggestions classes */
body.theme-dark .panel-footer.card-footer,
body.theme-dark .panel-footer.more-suggestions,
body.theme-dark .panel-footer.card-footer.more-suggestions {
    background: linear-gradient(135deg, rgba(11, 17, 32, 0.8) 0%, rgba(15, 23, 42, 0.6) 100%) !important;
    border-top-color: rgba(59, 130, 246, 0.2) !important;
    color: #e5e7eb !important;
}

body.theme-dark .panel-footer.card-footer *,
body.theme-dark .panel-footer.more-suggestions *,
body.theme-dark .panel-footer.card-footer.more-suggestions * {
    color: #e5e7eb !important;
}

body.theme-dark .panel-footer.card-footer a,
body.theme-dark .panel-footer.more-suggestions a,
body.theme-dark .panel-footer.card-footer.more-suggestions a {
    color: #fff !important;
}

body.theme-dark .panel-footer.card-footer a:hover,
body.theme-dark .panel-footer.more-suggestions a:hover,
body.theme-dark .panel-footer.card-footer.more-suggestions a:hover {
    color: #fff !important;
}

/* TLD Pricing Header - Dark Theme */
body.theme-dark .tld-pricing-header,
body.theme-dark .row.tld-pricing-header {
    background-color: #0f172a !important;
    color: #e5e7eb !important;
}

body.theme-dark .tld-pricing-header .col-xs-2,
body.theme-dark .tld-pricing-header .col-sm-2,
body.theme-dark .tld-pricing-header .col-xs-4,
body.theme-dark .tld-pricing-header .col-sm-4,
body.theme-dark .tld-pricing-header .col-md-2,
body.theme-dark .tld-pricing-header .col-md-4 {
    background-color: #0f172a !important;
    border-bottom-color: rgba(59, 130, 246, 0.3) !important;
    color: #e5e7eb !important;
}

body.theme-dark .tld-pricing-header div:nth-child(odd) {
    background-color: #0b1120 !important;
    border-color: rgba(59, 130, 246, 0.4) !important;
}

body.theme-dark .tld-pricing-header * {
    color: #e5e7eb !important;
}

body.theme-dark .tld-pricing-header a {
    color: #3b82f6 !important;
}

body.theme-dark .tld-pricing-header a:hover {
    color: #60a5fa !important;
}

/* Domain Pricing Container - Dark Theme */
body.theme-dark .domain-pricing {
    color: #e5e7eb;
}

body.theme-dark .domain-pricing .tld-row {
    border-bottom-color: #1f2937 !important;
    color: #e5e7eb !important;
}

body.theme-dark .domain-pricing .tld-row.highlighted {
    background-color: rgba(15, 23, 42, 0.5) !important;
}

body.theme-dark .domain-pricing .tld-row * {
    color: #e5e7eb !important;
}

body.theme-dark .panel-body {
    background-color: #0f172a;
    color: #e5e7eb;
}

body.theme-dark .panel-primary {
    border-color: #1e40af;
}

body.theme-dark .panel-primary>.panel-heading {
    background-color: #1e40af;
    border-color: #1e40af;
    color: #ffffff;
}

body.theme-dark .well {
    background-color: #0b1120;
    border-color: #1f2937;
    color: #e5e7eb;
}

body.theme-dark .client-home-panels .panel {
    background-color: #0f172a;
}

/* Tiles on dashboard */
body.theme-dark .tile {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(11, 17, 32, 0.95) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

body.theme-dark .tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

body.theme-dark .tile:hover::before {
    opacity: 1;
}

body.theme-dark .tile a {
    color: #e5e7eb;
    text-decoration: none;
    display: block;
    padding: 20px;
    position: relative;
    z-index: 1;
}

body.theme-dark .tile:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

body.theme-dark .tile .icon {
    color: #3b82f6;
    font-size: 36px;
    margin-bottom: 15px;
    transition: all 0.3s;
    display: block;
}

body.theme-dark .tile:hover .icon {
    transform: scale(1.1) rotate(5deg);
    color: #60a5fa;
}

body.theme-dark .tile .stat {
    color: #f9fafb;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 5px;
    transition: color 0.3s;
}

body.theme-dark .tile:hover .stat {
    color: #3b82f6;
}

body.theme-dark .tile .title {
    color: #9ca3af;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    transition: color 0.3s;
}

body.theme-dark .tile:hover .title {
    color: #e5e7eb;
}

/* ============================================
   Tables
   ============================================ */
body.theme-dark .table {
    background-color: transparent;
    color: #e5e7eb;
}

body.theme-dark .table>thead>tr>th {
    background-color: #0b1120;
    border-bottom-color: #1f2937;
    color: #f9fafb;
}

body.theme-dark .table>tbody>tr>td,
body.theme-dark .table>tbody>tr>th,
body.theme-dark .table>tfoot>tr>td,
body.theme-dark .table>tfoot>tr>th {
    border-top-color: #1f2937;
}

body.theme-dark .table-striped>tbody>tr:nth-of-type(odd) {
    background: linear-gradient(90deg, rgba(11, 17, 32, 0.5) 0%, rgba(11, 17, 32, 0.3) 100%);
}

body.theme-dark .table-striped>tbody>tr:nth-of-type(even) {
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.5) 0%, rgba(15, 23, 42, 0.3) 100%);
}

/* Table-list even/odd row styling for ticket lists, product lists, invoice lists, domain lists, etc. */
body.theme-dark .table-list>tbody>tr:nth-of-type(odd)>td {
    background-color: rgba(11, 17, 32, 0.4);
}

body.theme-dark .table-list>tbody>tr:nth-of-type(even)>td {
    background-color: rgba(15, 23, 42, 0.4);
}

body.theme-dark .table>tbody>tr {
    transition: all 0.3s ease;
}

body.theme-dark .table>tbody>tr:hover {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

/* Ensure hover effect properly overrides even/odd styling for table-list */
body.theme-dark .table-list>tbody>tr:hover>td {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.15) 0%, rgba(6, 182, 212, 0.15) 100%) !important;
}

body.theme-dark .table-bordered {
    border-color: #1f2937;
}

body.theme-dark .table-bordered>thead>tr>th,
body.theme-dark .table-bordered>tbody>tr>th,
body.theme-dark .table-bordered>tfoot>tr>th,
body.theme-dark .table-bordered>thead>tr>td,
body.theme-dark .table-bordered>tbody>tr>td,
body.theme-dark .table-bordered>tfoot>tr>td {
    border-color: #1f2937;
}

/* ============================================
   DataTables Styling
   ============================================ */
body.theme-dark .dataTables_wrapper .dataTables_length {
    background-color: rgba(11, 17, 32, 0.6);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    color: #e5e7eb;
    font-size: 0.8em;
    padding: 8px 15px;
    margin-bottom: 10px;
}

body.theme-dark .dataTables_wrapper .dataTables_length label {
    color: #e5e7eb;
    padding: 10px 10px 0 30px;
}

body.theme-dark .dataTables_wrapper .dataTables_length label .form-control {
    background-color: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: #e5e7eb;
    display: inline-block;
    padding: 4px 8px;
    height: auto;
    width: auto;
    border-radius: 6px;
    transition: all 0.3s ease;
}

body.theme-dark .dataTables_wrapper .dataTables_length label .form-control:focus {
    background-color: rgba(15, 23, 42, 0.95);
    border-color: #3b82f6;
    color: #f9fafb;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

body.theme-dark .dataTables_wrapper .dataTables_length label .form-control option {
    background-color: #0f172a;
    color: #e5e7eb;
}

body.theme-dark .dataTables_wrapper .dataTables_filter {
    background-color: rgba(11, 17, 32, 0.6);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    padding: 8px 15px;
    margin-bottom: 10px;
}

body.theme-dark .dataTables_wrapper .dataTables_filter label {
    color: #e5e7eb;
    margin: 0;
    padding: 12px;
}

body.theme-dark .dataTables_wrapper .dataTables_filter label .form-control {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: #e5e7eb;
    padding: 7px 10px 7px 40px !important;
    height: auto;
    width: 200px;
    font-size: 13px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

body.theme-dark .dataTables_wrapper .dataTables_filter label .form-control:focus {
    background: rgba(15, 23, 42, 0.95);
    border-color: #3b82f6;
    color: #f9fafb;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

body.theme-dark .dataTables_wrapper .dataTables_info {
    background-color: rgba(11, 17, 32, 0.6);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    color: #e5e7eb;
    padding: 12px 20px;
    margin-bottom: 10px;
}

body.theme-dark .dataTables_wrapper .dataTables_paginate {
    background-color: rgba(11, 17, 32, 0.6);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    padding: 8px 15px;
    margin-bottom: 10px;
}

body.theme-dark .dataTables_wrapper .dataTables_paginate .pagination>li>a,
body.theme-dark .dataTables_wrapper .dataTables_paginate .pagination>li>span {
    background-color: rgba(15, 23, 42, 0.8);
    border-color: rgba(59, 130, 246, 0.2);
    color: #e5e7eb;
    padding: 6px 12px;
    transition: all 0.3s ease;
}

body.theme-dark .dataTables_wrapper .dataTables_paginate .pagination>li>a:hover,
body.theme-dark .dataTables_wrapper .dataTables_paginate .pagination>li>span:hover {
    background-color: rgba(59, 130, 246, 0.2);
    border-color: #3b82f6;
    color: #f9fafb;
}

body.theme-dark .dataTables_wrapper .dataTables_paginate .pagination>.active>a,
body.theme-dark .dataTables_wrapper .dataTables_paginate .pagination>.active>span,
body.theme-dark .dataTables_wrapper .dataTables_paginate .pagination>.active>a:hover,
body.theme-dark .dataTables_wrapper .dataTables_paginate .pagination>.active>span:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-color: #3b82f6;
    color: #ffffff;
}

/* ============================================
   Sub-heading Styling (Checkout/Registration)
   ============================================ */
body.theme-dark .sub-heading {
    height: 0;
    border-top: 1px solid rgba(59, 130, 246, 0.3);
    text-align: center;
    margin-top: 20px;
    margin-bottom: 30px;
}

body.theme-dark .sub-heading span {
    display: inline-block;
    position: relative;
    padding: 0 17px;
    top: -11px;
    font-size: 16px;
    color: #f9fafb;
    background-color: #0f172a;
    font-weight: 500;
}

body.theme-dark .sub-heading-borderless {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

body.theme-dark .sub-heading-borderless span {
    display: inline-block;
    padding: 8px 20px;
    font-size: 16px;
    color: #e5e7eb;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(11, 17, 32, 0.95) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    font-weight: 500;
}

/* Registration page sub-heading */
body.theme-dark #registration .sub-heading {
    height: 0;
    border-top: 1px solid rgba(59, 130, 246, 0.3);
    text-align: center;
    margin-top: 20px;
    margin-bottom: 30px;
}

body.theme-dark #registration .sub-heading span {
    display: inline-block;
    position: relative;
    padding: 0 17px;
    top: -11px;
    font-size: 16px;
    color: #f9fafb;
    background-color: #0f172a;
    font-weight: 500;
}

/* Light theme fallback for sub-heading */
.sub-heading-borderless {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

.sub-heading-borderless span {
    display: inline-block;
    padding: 8px 20px;
    font-size: 16px;
    color: #333;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-weight: 500;
}

/* ============================================
   Forms & Inputs
   ============================================ */
body.theme-dark .form-control {
    background: linear-gradient(135deg, rgba(11, 17, 32, 0.9) 0%, rgba(15, 23, 42, 0.9) 100%);
    border-color: rgba(59, 130, 246, 0.2);
    color: #e5e7eb;
    border-radius: 8px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

body.theme-dark .form-control:focus {
    background: linear-gradient(135deg, rgba(11, 17, 32, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
    border-color: #3b82f6;
    color: #e5e7eb;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15), 0 4px 15px rgba(59, 130, 246, 0.2);
    transform: translateY(-1px);
}

body.theme-dark .form-control::placeholder {
    color: #6b7280;
}

body.theme-dark .form-control[disabled],
body.theme-dark .form-control[readonly] {
    background-color: #0b1120;
    opacity: 0.6;
}

body.theme-dark .input-group-addon {
    background-color: #0b1120;
    border-color: #1f2937;
    color: #e5e7eb;
}

body.theme-dark .form-group label {
    color: #e5e7eb;
}

body.theme-dark .help-block {
    color: #9ca3af;
}

body.theme-dark .checkbox label,
body.theme-dark .radio label {
    color: #e5e7eb;
}

body.theme-dark input[type="checkbox"],
body.theme-dark input[type="radio"] {
    background-color: #0b1120;
    border-color: #1f2937;
}

/* ============================================
   Modern Login Page Styling
   ============================================ */
body.theme-dark .logincontainer {
    position: relative;
    background: linear-gradient(135deg, rgba(2, 6, 23, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 16px;
    padding: 40px 30px;
    margin: 60px auto 100px auto;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(59, 130, 246, 0.1);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

body.theme-dark .logincontainer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: 0 0, 0 0;
    animation: gridMove 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes gridMove {
    0% {
        background-position: 0 0, 0 0;
    }

    100% {
        background-position: 50px 50px, 50px 50px;
    }
}

body.theme-dark .logincontainer>* {
    position: relative;
    z-index: 1;
}

body.theme-dark .logincontainer.with-social {
    max-width: 650px;
}

body.theme-dark .logincontainer .page-header {
    margin-bottom: 30px;
    text-align: center;
}

body.theme-dark .logincontainer .page-header h1 {
    color: #f9fafb;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(59, 130, 246, 0.2);
}

body.theme-dark .logincontainer .page-header p {
    color: #9ca3af;
    font-size: 14px;
    margin: 0;
}

body.theme-dark .logincontainer .login-form {
    position: relative;
    z-index: 1;
}

body.theme-dark .logincontainer .form-group {
    margin-bottom: 24px;
}

body.theme-dark .logincontainer .form-group label {
    color: #e5e7eb;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 8px;
    display: block;
}

body.theme-dark .logincontainer .form-control {
    background: linear-gradient(135deg, rgba(11, 17, 32, 0.8) 0%, rgba(15, 23, 42, 0.8) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 10px;
    color: #e5e7eb;
    padding: 12px 16px;
    font-size: 15px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

body.theme-dark .logincontainer .form-control:focus {
    background: linear-gradient(135deg, rgba(11, 17, 32, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
    border-color: #3b82f6;
    color: #e5e7eb;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15), 0 4px 15px rgba(59, 130, 246, 0.3);
    transform: translateY(-1px);
    outline: none;
}

body.theme-dark .logincontainer .form-control::placeholder {
    color: #6b7280;
}

body.theme-dark .logincontainer .checkbox {
    margin-bottom: 24px;
}

body.theme-dark .logincontainer .checkbox label {
    color: #e5e7eb;
    font-weight: 400;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

body.theme-dark .logincontainer .checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #3b82f6;
}

body.theme-dark .logincontainer [align="center"] {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
}

body.theme-dark .logincontainer .btn-primary {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

body.theme-dark .logincontainer .btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

body.theme-dark .logincontainer .btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

body.theme-dark .logincontainer .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

body.theme-dark .logincontainer .btn-primary:active {
    transform: translateY(0);
}

body.theme-dark .logincontainer .btn-default {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 10px;
    background: rgba(31, 41, 55, 0.6);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: #e5e7eb;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

body.theme-dark .logincontainer .btn-default:hover {
    background: rgba(55, 65, 81, 0.8);
    border-color: rgba(59, 130, 246, 0.4);
    color: #f9fafb;
    transform: translateY(-1px);
}

@media (min-width: 768px) {
    body.theme-dark .logincontainer.with-social .login-form {
        padding-right: 40px;
        border-right: 1px solid rgba(59, 130, 246, 0.2);
    }
}

@media (max-width: 600px) {
    body.theme-dark .logincontainer {
        margin: 20px auto 30px auto;
        padding: 30px 20px;
    }

    body.theme-dark .logincontainer .page-header h1 {
        font-size: 24px;
    }

    body.theme-dark .logincontainer [align="center"] {
        flex-direction: column;
    }
}

body.theme-dark .home-kb-search {
    background-color: #0f172a;
}

body.theme-dark .home-kb-search .form-control {
    background-color: #0b1120;
}

/* ============================================
   Buttons
   ============================================ */
body.theme-dark .btn {
    border-color: transparent;
    transition: all 0.2s ease;
}

body.theme-dark .btn-default {
    background-color: #1f2937;
    border-color: #374151;
    color: #e5e7eb;
}

body.theme-dark .btn-default:hover,
body.theme-dark .btn-default:focus {
    background-color: #374151;
    border-color: #4b5563;
    color: #f9fafb;
}

body.theme-dark .btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-color: #3b82f6;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

body.theme-dark .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

body.theme-dark .btn-primary:hover::before,
body.theme-dark .btn-primary:focus::before {
    left: 100%;
}

body.theme-dark .btn-primary:hover,
body.theme-dark .btn-primary:focus {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-color: #2563eb;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
}

/* Checkout buttons */
body.theme-dark button[name="checkout"],
body.theme-dark input[name="checkout"],
body.theme-dark .btn-checkout,
body.theme-dark .btn-primary[name="checkout"] {
    background-color: #233a5f !important;
    border-color: #233a5f !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(35, 58, 95, 0.3);
}

body.theme-dark button[name="checkout"]:hover,
body.theme-dark button[name="checkout"]:focus,
body.theme-dark input[name="checkout"]:hover,
body.theme-dark input[name="checkout"]:focus,
body.theme-dark .btn-checkout:hover,
body.theme-dark .btn-checkout:focus,
body.theme-dark .btn-primary[name="checkout"]:hover,
body.theme-dark .btn-primary[name="checkout"]:focus {
    background-color: #1e2f4f !important;
    border-color: #1e2f4f !important;
    color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(35, 58, 95, 0.4);
    transform: translateY(-2px);
}

body.theme-dark .btn-success {
    background-color: #1ca44e;
    border-color: #1ca44e;
    color: #ffffff;
}

body.theme-dark .btn-success:hover,
body.theme-dark .btn-success:focus {
    background-color: #178a42;
    border-color: #178a42;
    color: #ffffff;
}

body.theme-dark .btn-warning {
    background-color: #eab308;
    border-color: #eab308;
    color: #000000;
}

body.theme-dark .btn-warning:hover,
body.theme-dark .btn-warning:focus {
    background-color: #ca8a04;
    border-color: #ca8a04;
    color: #000000;
}

body.theme-dark .btn-danger {
    background-color: #ef4444;
    border-color: #ef4444;
    color: #ffffff;
}

body.theme-dark .btn-danger:hover,
body.theme-dark .btn-danger:focus {
    background-color: #dc2626;
    border-color: #dc2626;
    color: #ffffff;
}

body.theme-dark .btn-info {
    background-color: #06b6d4;
    border-color: #06b6d4;
    color: #ffffff;
}

body.theme-dark .btn-info:hover,
body.theme-dark .btn-info:focus {
    background-color: #0891b2;
    border-color: #0891b2;
    color: #ffffff;
}

body.theme-dark .btn-link {
    color: #3b82f6;
}

body.theme-dark .btn-link:hover,
body.theme-dark .btn-link:focus {
    color: #60a5fa;
}

/* ============================================
   Alerts & Notifications
   ============================================ */
body.theme-dark .alert {
    border-color: transparent;
    color: #e5e7eb;
}

body.theme-dark .alert-success {
    background-color: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.3);
    color: #86efac;
}

body.theme-dark .alert-info {
    background-color: rgba(6, 182, 212, 0.15);
    border-color: rgba(6, 182, 212, 0.3);
    color: #67e8f9;
}

body.theme-dark .alert-warning {
    background-color: rgba(234, 179, 8, 0.15);
    border-color: rgba(234, 179, 8, 0.3);
    color: #fde047;
}

body.theme-dark .alert-danger {
    background-color: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

body.theme-dark .label {
    color: #ffffff;
    background-color: #1f2937;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

body.theme-dark .label-default {
    background-color: #1f2937;
}

body.theme-dark .label-primary {
    background-color: #3b82f6;
}

body.theme-dark .label-success {
    background-color: #22c55e;
}

body.theme-dark .label-warning {
    background-color: #eab308;
    color: #000000;
}

body.theme-dark .label-danger {
    background-color: #ef4444;
}

body.theme-dark .label-info {
    background-color: #06b6d4;
}

/* Fix for label.status.status-active - white box with white text issue */
body.theme-dark .label.status.status-active {
    background-color: #22c55e !important;
    color: #ffffff !important;
    border-color: #16a34a !important;
}

body.theme-dark .label.status {
    background-color: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #e5e7eb;
    padding: 4px 10px;
    border-radius: 4px;
}

body.theme-dark .badge {
    background-color: #1f2937;
    color: #e5e7eb;
}

/* ============================================
   Modals & Popovers
   ============================================ */
body.theme-dark .modal-content {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(11, 17, 32, 0.98) 100%);
    border-color: rgba(59, 130, 246, 0.3);
    color: #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    overflow: hidden;
}

body.theme-dark .modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #06b6d4, #3b82f6);
    background-size: 200% 100%;
    animation: shimmer 3s infinite;
}

body.theme-dark .modal-header {
    background-color: #0b1120;
    border-bottom-color: #1f2937;
}

body.theme-dark .modal-title {
    color: #f9fafb;
}

body.theme-dark .modal-body {
    background-color: #0f172a;
    color: #e5e7eb;
}

body.theme-dark .modal-footer {
    background-color: #0b1120;
    border-top-color: #1f2937;
}

body.theme-dark .close {
    color: #e5e7eb;
    opacity: 0.8;
}

body.theme-dark .close:hover,
body.theme-dark .close:focus {
    color: #f9fafb;
    opacity: 1;
}



/* ============================================
   Footer
   ============================================ */
body.theme-dark #footer {
    background: linear-gradient(180deg, #0b1120 0%, #020617 100%);
    border-top: 1px solid rgba(59, 130, 246, 0.2);
    color: #9ca3af;
    padding: 40px 0 20px;
    margin-top: 60px;
    position: relative;
}

body.theme-dark #footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.5), transparent);
}

body.theme-dark #footer a {
    color: #3b82f6;
}

body.theme-dark #footer a:hover {
    color: #60a5fa;
}

body.theme-dark .back-to-top {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    color: #e5e7eb;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

body.theme-dark .back-to-top:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

/* ============================================
   Homepage Banner - Modern Gradient with Network Grid
   ============================================ */
body.theme-dark #home-banner {
    background: linear-gradient(135deg, #0b1120 0%, #1e293b 50%, #0f172a 100%);
    border-bottom: 1px solid #1f2937;
    position: relative;
    overflow: hidden;
    padding: 60px 0;
}

body.theme-dark #home-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

body.theme-dark #home-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: 0 0, 0 0;
    animation: grid-move 20s linear infinite;
    pointer-events: none;
    opacity: 0.6;
}

@keyframes grid-move {
    0% {
        background-position: 0 0, 0 0;
    }

    100% {
        background-position: 50px 50px, 50px 50px;
    }
}

body.theme-dark #home-banner .container {
    position: relative;
    z-index: 1;
}

body.theme-dark .domain-search-section .modern-section-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(59, 130, 246, 0.3);
}

body.theme-dark .domain-search-section .modern-section-header h2 {
    color: #f9fafb;
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

body.theme-dark .domain-search-section .modern-section-header h2 i {
    color: #3b82f6;
    font-size: 24px;
}

body.theme-dark .domain-search-section .modern-section-header .section-subtitle {
    color: #9ca3af;
    font-size: 14px;
    margin: 0;
    font-weight: normal;
}

body.theme-dark .domain-search-section {
    position: relative;
    z-index: 2;
}

/* Domain Features Section - Below Search */
body.theme-dark .domain-features-section {
    margin-top: 5px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.7) 0%, rgba(11, 17, 32, 0.7) 100%);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 2;
}

body.theme-dark .domain-features-section h3 {
    color: #f9fafb;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    margin-top: 0;
}

body.theme-dark .domain-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 0;
}

body.theme-dark .domain-feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e5e7eb;
    font-size: 13px;
    padding: 8px 10px;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 6px;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

body.theme-dark .domain-feature-item i:first-child {
    color: #3b82f6;
    font-size: 18px;
    width: 24px;
    text-align: center;
}

body.theme-dark .domain-feature-item .fa-question-circle {
    color: #9ca3af;
    font-size: 12px;
    margin-left: auto;
    cursor: help;
}

body.theme-dark .domain-feature-item .fa-question-circle:hover {
    color: #3b82f6;
}

body.theme-dark .domain-feature-item span {
    flex: 1;
}

body.theme-dark .domain-feature-item:last-child i:first-child {
    color: #22c55e;
}

@media (max-width: 767px) {
    body.theme-dark .domain-features-grid {
        grid-template-columns: 1fr;
    }
}

/* TLD Registrar Section */
body.theme-dark .tld-registrar-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(59, 130, 246, 0.2);
}

body.theme-dark .tld-intro-text {
    color: #9ca3af;
    font-size: 14px;
    margin-bottom: 15px;
    text-align: center;
}

body.theme-dark .tld-images-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

body.theme-dark .tld-image {
    height: 40px;
    width: auto;
    max-width: 80px;
    object-fit: contain;
    opacity: 0.8;
    transition: all 0.3s;
    filter: brightness(0.9);
}

body.theme-dark .tld-image:hover {
    opacity: 1;
    filter: brightness(1.1);
    transform: scale(1.05);
}

body.theme-dark .tld-more-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 15px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 6px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
}

body.theme-dark .tld-more-link:hover {
    color: #60a5fa;
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(59, 130, 246, 0.1);
}

@media (max-width: 991px) {
    body.theme-dark .domain-features-list {
        margin-top: 30px;
    }

    body.theme-dark .tld-images-container {
        gap: 10px;
    }

    body.theme-dark .tld-image {
        height: 35px;
        max-width: 70px;
    }
}

body.theme-dark .domain-features-list h3 {
    color: #f9fafb;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    margin-top: 0;
}

body.theme-dark .domain-features-list .feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

body.theme-dark .domain-features-list .feature-list li {
    color: #e5e7eb;
    padding: 12px 0;
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
}

body.theme-dark .domain-features-list .feature-list li:last-child {
    border-bottom: none;
    padding-top: 20px;
}

body.theme-dark .domain-features-list .feature-list li i:first-child {
    color: #3b82f6;
    font-size: 18px;
    width: 24px;
    text-align: center;
}

body.theme-dark .domain-features-list .feature-list li .fa-question-circle {
    color: #9ca3af;
    font-size: 14px;
    margin-left: 5px;
}

body.theme-dark .domain-features-list .feature-list li .fa-question-circle:hover {
    color: #3b82f6;
}

body.theme-dark .read-more-features {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

body.theme-dark .read-more-features:hover {
    color: #60a5fa;
    gap: 12px;
}

body.theme-dark .read-more-features i {
    color: inherit;
}

@media (max-width: 991px) {
    body.theme-dark .domain-features-list {
        margin-top: 30px;
    }
}

body.theme-dark #home-banner .form-control {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

body.theme-dark #home-banner .form-control:focus {
    background: rgba(15, 23, 42, 0.95);
    border-color: #3b82f6;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

/* ============================================
   Modern Homepage Layout
   ============================================ */
body.theme-dark .homepage-modern-layout {
    padding: 40px 0;
    background-color: transparent;
    min-height: 500px;
}

body.theme-dark .homepage-modern-layout .container {
    max-width: 1425px;
    width: 1425px;
}

@media (max-width: 991px) {

    body.theme-dark #help-today-section .container,
    body.theme-dark .homepage-modern-layout .container {
        max-width: 100%;
        width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Help Today Section - Combined with Domain Search */
body.theme-dark #help-today-section {
    padding: 40px 0;
    background: #020617;
    border-bottom: 1px solid rgba(31, 41, 55, 0.5);
    position: relative;
    overflow: hidden;
}

body.theme-dark #help-today-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.08) 1px, transparent 1px),
        linear-gradient(rgba(6, 182, 212, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(6, 182, 212, 0.05) 1px, transparent 1px);
    background-size:
        40px 40px,
        40px 40px,
        80px 80px,
        80px 80px;
    background-position:
        0 0,
        0 0,
        20px 20px,
        20px 20px;
    animation: network-grid-move 30s linear infinite;
    opacity: 0.6;
    pointer-events: none;
}

body.theme-dark #help-today-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(6, 182, 212, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

@keyframes network-grid-move {
    0% {
        background-position:
            0 0,
            0 0,
            20px 20px,
            20px 20px;
    }

    100% {
        background-position:
            40px 40px,
            40px 40px,
            60px 60px,
            60px 60px;
    }
}

body.theme-dark #help-today-section .container {
    position: relative;
    z-index: 1;
    max-width: 1425px;
    width: 1425px;
}

body.theme-dark #help-today-section .row {
    align-items: flex-start;
}

body.theme-dark #help-today-section .quick-actions-section,
body.theme-dark #help-today-section .domain-search-section {
    display: flex;
    flex-direction: column;
    height: 100%;
}

body.theme-dark #help-today-section .quick-actions-grid.grid-2x2 {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    align-content: start;
}

body.theme-dark .domain-search-section form {
    margin-bottom: 20px;
}

body.theme-dark .domain-features-section {
    margin-top: 5px;
}

body.theme-dark .modern-section-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(59, 130, 246, 0.3);
}

body.theme-dark .modern-section-header h2 {
    color: #f9fafb;
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

body.theme-dark .modern-section-header h2 i {
    color: #3b82f6;
    font-size: 24px;
}

body.theme-dark .modern-section-header .section-subtitle {
    color: #9ca3af;
    font-size: 14px;
    margin: 0;
    font-weight: normal;
}

/* Modern Card Base */
body.theme-dark .modern-card {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(11, 17, 32, 0.9) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

body.theme-dark .modern-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #06b6d4, #3b82f6);
    background-size: 200% 100%;
    animation: shimmer 3s infinite;
    opacity: 0;
    transition: opacity 0.3s;
}

body.theme-dark .modern-card:hover::before {
    opacity: 1;
}

body.theme-dark .modern-card:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.2);
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* Announcement Cards */
body.theme-dark .announcement-card {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(11, 17, 32, 0.95) 100%);
}

body.theme-dark .announcement-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

body.theme-dark .announcement-date {
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

body.theme-dark .announcement-card h3 {
    margin: 0;
    flex: 1;
}

body.theme-dark .announcement-card h3 a {
    color: #f9fafb;
    font-size: 20px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

body.theme-dark .announcement-card h3 a:hover {
    color: #3b82f6;
}

body.theme-dark .announcement-content {
    color: #e5e7eb;
    line-height: 1.7;
}

body.theme-dark .announcement-content p {
    margin: 0;
    color: #d1d5db;
}

body.theme-dark .read-more-link {
    color: #3b82f6;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: 8px;
    transition: all 0.3s;
}

body.theme-dark .read-more-link:hover {
    color: #60a5fa;
    gap: 8px;
}

body.theme-dark .announcement-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(31, 41, 55, 0.5);
}

/* Quick Actions Grid */
body.theme-dark .quick-actions-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 2x2 Grid for "Looking for this?" section */
body.theme-dark .quick-actions-grid.grid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

body.theme-dark .quick-actions-grid.grid-2x2 .quick-action-card {
    margin: 0;
    min-height: auto;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
}

body.theme-dark .quick-actions-grid.grid-2x2 .quick-action-card .action-content {
    flex: 1;
}

@media (max-width: 991px) {
    body.theme-dark .quick-actions-grid.grid-2x2 {
        grid-template-columns: 1fr;
    }
}

body.theme-dark .horizontal-help-section {
    margin-bottom: 0;
}

body.theme-dark .horizontal-grid .quick-action-card {
    flex: 1;
    min-width: 0;
}

body.theme-dark .quick-action-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(11, 17, 32, 0.9) 100%);
    min-height: 90px;
    margin: 0;
}

body.theme-dark .quick-action-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.5s;
}

body.theme-dark .quick-action-card:hover::after {
    left: 100%;
}

body.theme-dark .quick-action-card .action-icon {
    width: 45px;
    height: 45px;
    min-width: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 20px;
    flex-shrink: 0;
    transition: all 0.3s;
    position: relative;
    z-index: 1;
}

body.theme-dark .action-domain .action-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

body.theme-dark .action-hosting .action-icon {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4);
}

body.theme-dark .action-payment .action-icon {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4);
}

/* Add Funds text color - white for better visibility on green background */
body.theme-dark .action-payment .action-content h3 {
    color: #ffffff !important;
}

body.theme-dark .action-payment:hover .action-content h3 {
    color: #ffffff !important;
}

body.theme-dark .action-support .action-icon {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.4);
}

body.theme-dark .action-knowledgebase .action-icon {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

body.theme-dark .action-dns .action-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

body.theme-dark .action-webhosting .action-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

body.theme-dark .action-vps .action-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

body.theme-dark .action-wireguard .action-icon {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

body.theme-dark .action-network .action-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

body.theme-dark .quick-actions-section {
    margin-bottom: 0;
}

body.theme-dark .quick-action-card:hover .action-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

body.theme-dark .quick-action-card .action-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

body.theme-dark .quick-action-card .action-content h3 {
    color: #f9fafb;
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    transition: color 0.3s;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.theme-dark .quick-action-card .action-content p {
    color: #9ca3af;
    font-size: 12px;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 4px;
}

body.theme-dark .quick-action-card .action-arrow {
    color: #6b7280;
    font-size: 16px;
    transition: all 0.3s;
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: 2px;
}

body.theme-dark .quick-action-card:hover {
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateX(5px);
}

body.theme-dark .quick-action-card:hover .action-content h3 {
    color: #3b82f6;
}

body.theme-dark .quick-action-card:hover .action-arrow {
    color: #3b82f6;
    transform: translateX(5px);
}

/* Responsive adjustments for homepage */
@media (max-width: 991px) {

    body.theme-dark .homepage-modern-layout .col-md-7,
    body.theme-dark .homepage-modern-layout .col-md-5,
    body.theme-dark .homepage-modern-layout .col-md-12 {
        margin-bottom: 30px;
    }

    body.theme-dark .quick-actions-grid.horizontal-grid {
        flex-direction: column;
        gap: 15px;
    }

    body.theme-dark .quick-actions-grid:not(.horizontal-grid) {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 767px) {
    body.theme-dark .quick-actions-grid:not(.horizontal-grid) {
        grid-template-columns: 1fr;
    }

    body.theme-dark #home-banner {
        padding: 40px 0;
    }

    body.theme-dark .modern-section-header h2 {
        font-size: 24px;
    }
}

/* When no announcements, center quick actions */
body.theme-dark .homepage-modern-layout .col-md-12 .quick-actions-grid:not(.horizontal-grid) {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 767px) {
    body.theme-dark .quick-actions-grid {
        grid-template-columns: 1fr;
    }

    body.theme-dark #home-banner {
        padding: 40px 0;
    }

    body.theme-dark .modern-section-header h2 {
        font-size: 24px;
    }
}

/* ============================================
   Page Header
   ============================================ */
body.theme-dark .header-lined {
    border-bottom-color: #1f2937;
}

body.theme-dark .header-lined h1 {
    color: #f9fafb;
}

body.theme-dark .breadcrumb {
    background-color: transparent;
}

body.theme-dark .breadcrumb>li {
    color: #9ca3af;
}

body.theme-dark .breadcrumb>li>a {
    color: #3b82f6;
}

body.theme-dark .breadcrumb>li+li:before {
    color: #6b7280;
}

/* ============================================
   Code & Preformatted
   ============================================ */
body.theme-dark code {
    background-color: #0b1120;
    border: 1px solid #1f2937;
    color: #f472b6;
    padding: 2px 6px;
    border-radius: 3px;
}

body.theme-dark pre {
    background-color: #0b1120;
    border-color: #1f2937;
    color: #e5e7eb;
}

body.theme-dark pre code {
    background-color: transparent;
    border: none;
    color: inherit;
    padding: 0;
}

/* ============================================
   Pagination
   ============================================ */
body.theme-dark .pagination>li>a,
body.theme-dark .pagination>li>span {
    background-color: #0f172a;
    border-color: #1f2937;
    color: #e5e7eb;
}

body.theme-dark .pagination>li>a:hover,
body.theme-dark .pagination>li>span:hover,
body.theme-dark .pagination>li>a:focus,
body.theme-dark .pagination>li>span:focus {
    background-color: #1f2937;
    border-color: #374151;
    color: #3b82f6;
}

body.theme-dark .pagination>.active>a,
body.theme-dark .pagination>.active>span,
body.theme-dark .pagination>.active>a:hover,
body.theme-dark .pagination>.active>span:hover,
body.theme-dark .pagination>.active>a:focus,
body.theme-dark .pagination>.active>span:focus {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-color: #3b82f6;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    font-weight: 600;
}

/* ============================================
   Tabs
   ============================================ */
body.theme-dark .nav-tabs {
    border-bottom-color: #1f2937;
}

body.theme-dark .nav-tabs>li>a {
    color: #e5e7eb;
    background-color: transparent;
}

body.theme-dark .nav-tabs>li>a:hover {
    background-color: #1f2937;
    border-color: #1f2937 #1f2937 transparent;
    color: #3b82f6;
}

body.theme-dark .nav-tabs>li.active>a,
body.theme-dark .nav-tabs>li.active>a:hover,
body.theme-dark .nav-tabs>li.active>a:focus {
    background: linear-gradient(180deg, #0f172a 0%, rgba(15, 23, 42, 0.8) 100%);
    border-color: #1f2937 #1f2937 transparent;
    color: #3b82f6;
    border-bottom-color: #0f172a;
    font-weight: 600;
    position: relative;
}

body.theme-dark .nav-tabs>li.active>a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #06b6d4);
}

body.theme-dark .tab-content {
    background-color: #0f172a;
    border: 1px solid #1f2937;
    border-top: none;
    padding: 15px;
}

/* ============================================
   Progress Bars
   ============================================ */
body.theme-dark .progress {
    background-color: #0b1120;
}

body.theme-dark .progress-bar {
    background: linear-gradient(90deg, #3b82f6 0%, #06b6d4 100%);
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.4);
    position: relative;
    overflow: hidden;
}

body.theme-dark .progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: progress-shine 2s infinite;
}

@keyframes progress-shine {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

body.theme-dark .progress-bar-success {
    background-color: #22c55e;
}

body.theme-dark .progress-bar-warning {
    background-color: #eab308;
}

body.theme-dark .progress-bar-danger {
    background-color: #ef4444;
}

body.theme-dark .progress-bar-info {
    background-color: #06b6d4;
}

/* ============================================
   Tooltips
   ============================================ */
body.theme-dark .tooltip-inner {
    background-color: #0f172a;
    color: #e5e7eb;
    border: 1px solid #1f2937;
}

body.theme-dark .tooltip.top .tooltip-arrow {
    border-top-color: #1f2937;
}

body.theme-dark .tooltip.bottom .tooltip-arrow {
    border-bottom-color: #1f2937;
}

body.theme-dark .tooltip.left .tooltip-arrow {
    border-left-color: #1f2937;
}

body.theme-dark .tooltip.right .tooltip-arrow {
    border-right-color: #1f2937;
}

/* ============================================
   Select/Dropdowns
   ============================================ */
body.theme-dark select.form-control {
    background-color: #0b1120;
    border-color: #1f2937;
    color: #e5e7eb;
}

body.theme-dark select.form-control:focus {
    border-color: #3b82f6;
}

/* ============================================
   Client Alerts/Notifications
   ============================================ */
body.theme-dark .client-alerts {
    background-color: #0f172a;
}

body.theme-dark .client-alerts li {
    border-bottom-color: #1f2937;
}

body.theme-dark .client-alerts li a {
    color: #e5e7eb;
}

body.theme-dark .client-alerts li a:hover {
    background-color: #1f2937;
}

body.theme-dark .client-alerts li.none {
    color: #9ca3af;
}

/* ============================================
   Overlay & Loading
   ============================================ */
body.theme-dark #fullpage-overlay {
    background-color: rgba(2, 6, 23, 0.9);
}

body.theme-dark #fullpage-overlay .outer-wrapper {
    background-color: #0f172a;
    border: 1px solid #1f2937;
}

body.theme-dark #fullpage-overlay .msg {
    color: #e5e7eb;
}

/* ============================================
   Invoice & Quote Specific
   ============================================ */
body.theme-dark .invoice-summary,
body.theme-dark .quote-summary {
    background-color: #0f172a;
    border-color: #1f2937;
}

/* ============================================
   Domain Checker
   ============================================ */
/* ============================================
   Domain Checker Container
   ============================================ */
body.theme-dark .domain-checker-container {
    background: -moz-linear-gradient(top, #0c1221, #1e293b);
    background: -webkit-linear-gradient(top, #0c1221, #1e293b);
    background: linear-gradient(to bottom, #0c1221, #1e293b);
    border-radius: 8px;
    padding: 30px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

body.theme-dark .domain-checker-result {
    background-color: #0f172a;
    border-color: #1f2937;
}

/* ============================================
   Domain Promo Box
   ============================================ */
body.theme-dark .domain-promo-box {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(11, 17, 32, 0.95) 100%) !important;
    border: 1px solid rgba(59, 130, 246, 0.3) !important;
    border-radius: 8px;
    padding: 25px;
    color: #e5e7eb !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

body.theme-dark .domain-promo-box * {
    color: #e5e7eb !important;
}

body.theme-dark .domain-promo-box h1,
body.theme-dark .domain-promo-box h2,
body.theme-dark .domain-promo-box h3,
body.theme-dark .domain-promo-box h4,
body.theme-dark .domain-promo-box h5,
body.theme-dark .domain-promo-box h6 {
    color: #f9fafb !important;
}

body.theme-dark .domain-promo-box p,
body.theme-dark .domain-promo-box span,
body.theme-dark .domain-promo-box div,
body.theme-dark .domain-promo-box label {
    color: #e5e7eb !important;
}

body.theme-dark .domain-promo-box a {
    color: #3b82f6 !important;
}

body.theme-dark .domain-promo-box a:hover {
    color: #60a5fa !important;
}

body.theme-dark .domain-promo-box .btn {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-color: #3b82f6;
    color: #ffffff !important;
}

body.theme-dark .domain-promo-box .btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff !important;
}

/* ============================================
   Shopping Cart
   ============================================ */
body.theme-dark .cart-summary {
    background-color: #0f172a;
    border-color: #1f2937;
}

/* ============================================
   Knowledge Base
   ============================================ */
body.theme-dark .kb-search-results {
    background-color: #0f172a;
}

body.theme-dark .kb-article {
    background-color: #0f172a;
    border-color: #1f2937;
}

/* ============================================
   Support Tickets
   ============================================ */
body.theme-dark .ticket-list {
    background-color: transparent;
}

body.theme-dark .ticket-item {
    background-color: #0f172a;
    border-color: #1f2937;
}

body.theme-dark .ticket-item:hover {
    background-color: #1f2937;
}

/* Fix ticket-reply markdown-content readability */
body.theme-dark .ticket-reply.markdown-content {
    background-color: #0f172a;
    border-color: #1f2937;
    color: #e5e7eb;
}

body.theme-dark .ticket-reply.markdown-content .message {
    color: #e5e7eb;
}

body.theme-dark .ticket-reply.markdown-content .message p,
body.theme-dark .ticket-reply.markdown-content .message div,
body.theme-dark .ticket-reply.markdown-content .message span {
    color: #e5e7eb;
}

body.theme-dark .ticket-reply.markdown-content h1,
body.theme-dark .ticket-reply.markdown-content h2,
body.theme-dark .ticket-reply.markdown-content h3,
body.theme-dark .ticket-reply.markdown-content h4,
body.theme-dark .ticket-reply.markdown-content h5,
body.theme-dark .ticket-reply.markdown-content h6 {
    color: #f9fafb;
}

body.theme-dark .ticket-reply.markdown-content code {
    background-color: rgba(11, 17, 32, 0.8);
    border: 1px solid #1f2937;
    color: #f472b6;
    padding: 2px 6px;
    border-radius: 3px;
}

body.theme-dark .ticket-reply.markdown-content pre {
    background-color: #0b1120;
    border-color: #1f2937;
    color: #e5e7eb;
}

body.theme-dark .ticket-reply.markdown-content pre code {
    background-color: transparent;
    border: none;
    color: #e5e7eb;
}

body.theme-dark .ticket-reply.markdown-content blockquote {
    border-left-color: #3b82f6;
    color: #9ca3af;
}

body.theme-dark .ticket-reply.markdown-content table {
    background-color: #0f172a;
    border-color: #1f2937;
}

body.theme-dark .ticket-reply.markdown-content table>thead>tr>th {
    background-color: rgba(11, 17, 32, 0.8);
    border-color: #1f2937;
    color: #f9fafb;
}

body.theme-dark .ticket-reply.markdown-content table>tbody>tr>td {
    border-color: #1f2937;
    color: #e5e7eb;
}

body.theme-dark .ticket-reply.markdown-content a {
    color: #3b82f6;
}

body.theme-dark .ticket-reply.markdown-content a:hover {
    color: #60a5fa;
}

body.theme-dark .ticket-reply.markdown-content strong,
body.theme-dark .ticket-reply.markdown-content b {
    color: #f9fafb;
}

body.theme-dark .ticket-reply.markdown-content em,
body.theme-dark .ticket-reply.markdown-content i {
    color: #e5e7eb;
}

/* ============================================
   Support Ticket Submit Page - Department Cards
   ============================================ */
body.theme-dark .supportticketsubmit-stepone {
    padding: 20px 0;
}

body.theme-dark .supportticketsubmit-stepone .page-header {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(59, 130, 246, 0.2);
}

body.theme-dark .supportticketsubmit-stepone .page-header h2 {
    color: #f9fafb;
    font-size: 28px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

body.theme-dark .supportticketsubmit-stepone .department-cards-grid {
    margin: 0 -10px;
}

body.theme-dark .supportticketsubmit-stepone .col-md-6.margin-bottom {
    padding: 0 10px;
    margin-bottom: 20px;
}

body.theme-dark .supportticketsubmit-stepone .department-card {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(11, 17, 32, 0.95) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    height: 100%;
    display: flex;
    flex-direction: column;
}

body.theme-dark .supportticketsubmit-stepone .department-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #06b6d4, #3b82f6);
    background-size: 200% 100%;
    animation: shimmer 3s infinite;
    opacity: 0;
    transition: opacity 0.3s;
}

body.theme-dark .supportticketsubmit-stepone .department-card:hover::before {
    opacity: 1;
}

body.theme-dark .supportticketsubmit-stepone .department-card:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.2);
}

body.theme-dark .supportticketsubmit-stepone .department-card-header {
    margin-bottom: 15px;
}

body.theme-dark .supportticketsubmit-stepone .department-card-link {
    color: #f9fafb;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: color 0.3s;
}

body.theme-dark .supportticketsubmit-stepone .department-card-link:hover {
    color: #3b82f6;
    text-decoration: none;
}

body.theme-dark .supportticketsubmit-stepone .department-card-link i {
    color: #3b82f6;
    font-size: 24px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 8px;
    transition: all 0.3s;
}

body.theme-dark .supportticketsubmit-stepone .department-card:hover .department-card-link i {
    transform: scale(1.1) rotate(5deg);
    color: #60a5fa;
    background: rgba(59, 130, 246, 0.2);
}

body.theme-dark .supportticketsubmit-stepone .department-name {
    flex: 1;
}

body.theme-dark .supportticketsubmit-stepone .department-card-description {
    color: #9ca3af;
    font-size: 14px;
    line-height: 1.6;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid rgba(59, 130, 246, 0.1);
}

body.theme-dark .supportticketsubmit-stepone .department-card-description p {
    margin: 0;
    color: #9ca3af;
}

/* Light theme fallback styling */
.supportticketsubmit-stepone .department-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.supportticketsubmit-stepone .department-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    border-color: #3b82f6;
}

.supportticketsubmit-stepone .department-card-link {
    color: #333;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: color 0.3s;
}

.supportticketsubmit-stepone .department-card-link:hover {
    color: #3b82f6;
    text-decoration: none;
}

.supportticketsubmit-stepone .department-card-link i {
    color: #3b82f6;
    font-size: 24px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 8px;
    transition: all 0.3s;
}

.supportticketsubmit-stepone .department-card:hover .department-card-link i {
    transform: scale(1.1);
    background: rgba(59, 130, 246, 0.2);
}

.supportticketsubmit-stepone .department-card-description {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.supportticketsubmit-stepone .department-card-description p {
    margin: 0;
    color: #666;
}

.supportticketsubmit-stepone .page-header {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.supportticketsubmit-stepone .page-header h2 {
    font-size: 28px;
    font-weight: 600;
    margin: 0;
    color: #333;
}

.supportticketsubmit-stepone .department-cards-grid {
    margin: 0 -10px;
}

.supportticketsubmit-stepone .col-md-6.margin-bottom {
    padding: 0 10px;
    margin-bottom: 20px;
}

/* ============================================
   Utility Classes
   ============================================ */
body.theme-dark .bg-color-blue {
    background-color: #3b82f6 !important;
}

body.theme-dark .bg-color-green {
    background-color: #22c55e !important;
}

body.theme-dark .bg-color-red {
    background-color: #ef4444 !important;
}

body.theme-dark .bg-color-gold {
    background-color: #eab308 !important;
}

/* ============================================
   Scrollbar (Webkit browsers)
   ============================================ */
body.theme-dark ::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

body.theme-dark ::-webkit-scrollbar-track {
    background: #0b1120;
}

body.theme-dark ::-webkit-scrollbar-thumb {
    background: #1f2937;
    border-radius: 6px;
}

body.theme-dark ::-webkit-scrollbar-thumb:hover {
    background: #374151;
}

/* ============================================
   Loading Spinners & Icons
   ============================================ */
body.theme-dark .loading,
body.theme-dark .fa-spinner,
body.theme-dark .fa-circle-notch {
    color: #3b82f6;
}

body.theme-dark .loader {
    color: #9ca3af;
}

/* ============================================
   Input Groups
   ============================================ */
body.theme-dark .input-group-btn .btn {
    background-color: #1f2937;
    border-color: #1f2937;
    color: #e5e7eb;
}

body.theme-dark .input-group-btn .btn:hover {
    background-color: #374151;
    border-color: #374151;
}

/* ============================================
   Blockquotes
   ============================================ */
body.theme-dark blockquote {
    border-left-color: #3b82f6;
    color: #9ca3af;
}

body.theme-dark blockquote footer,
body.theme-dark blockquote small {
    color: #6b7280;
}

/* ============================================
   Dividers & HR
   ============================================ */
body.theme-dark hr {
    border-top-color: #1f2937;
}

/* ============================================
   Admin Masquerading Indicator
   ============================================ */
body.theme-dark .btn-logged-in-admin {
    background-color: #eab308;
    border-color: #eab308;
    color: #000000;
}

body.theme-dark .btn-logged-in-admin:hover {
    background-color: #ca8a04;
    border-color: #ca8a04;
}

/* ============================================
   Additional Modern Enhancements
   ============================================ */
body.theme-dark .well {
    background: linear-gradient(135deg, rgba(11, 17, 32, 0.9) 0%, rgba(15, 23, 42, 0.9) 100%);
    border-radius: 8px;
}

body.theme-dark .alert {
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

body.theme-dark .alert-success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(34, 197, 94, 0.1) 100%);
    border-left: 4px solid #22c55e;
}

body.theme-dark .alert-info {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15) 0%, rgba(6, 182, 212, 0.1) 100%);
    border-left: 4px solid #06b6d4;
}

body.theme-dark .alert-warning {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.15) 0%, rgba(234, 179, 8, 0.1) 100%);
    border-left: 4px solid #eab308;
}

body.theme-dark .alert-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(239, 68, 68, 0.1) 100%);
    border-left: 4px solid #ef4444;
}

/* Smooth page transitions */
body.theme-dark * {
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

/* Enhanced focus states */
body.theme-dark a:focus,
body.theme-dark button:focus,
body.theme-dark input:focus,
body.theme-dark select:focus,
body.theme-dark textarea:focus {
    outline: 2px solid rgba(59, 130, 246, 0.5);
    outline-offset: 2px;
}

/* Loading animation enhancement */
body.theme-dark .fa-spinner,
body.theme-dark .fa-circle-notch {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Card hover effects */
body.theme-dark .panel:hover,
body.theme-dark .modern-card:hover {
    z-index: 10;
}

/* ============================================
   Marketing Email Optin
   ============================================ */
body.theme-dark .marketing-email-optin {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(11, 17, 32, 0.95) 100%) !important;
    border: 1px solid rgba(59, 130, 246, 0.2) !important;
    border-radius: 8px;
    padding: 20px;
    color: #e5e7eb !important;
    margin: 20px 0;
}

body.theme-dark .marketing-email-optin label,
body.theme-dark .marketing-email-optin .checkbox label,
body.theme-dark .marketing-email-optin p,
body.theme-dark .marketing-email-optin span,
body.theme-dark .marketing-email-optin div {
    color: #e5e7eb !important;
}

body.theme-dark .marketing-email-optin input[type="checkbox"] {
    background-color: #0b1120;
    border-color: #1f2937;
}

body.theme-dark .marketing-email-optin input[type="checkbox"]:checked {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

body.theme-dark .marketing-email-optin .form-control {
    background: linear-gradient(135deg, rgba(11, 17, 32, 0.9) 0%, rgba(15, 23, 42, 0.9) 100%);
    border-color: rgba(59, 130, 246, 0.2);
    color: #e5e7eb;
}

/* ============================================
   Modern Client Dashboard
   ============================================ */
body.theme-dark .modern-client-dashboard {
    padding: 30px 0;
}

/* Main Layout: Left (Domain/Tickets) + Right (2x2 Stats) */
body.theme-dark .dashboard-main-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 30px;
    align-items: stretch;
}

body.theme-dark .dashboard-left-column {
    display: flex;
    flex-direction: column;
    height: 100%;
    align-items: stretch;
}

body.theme-dark .dashboard-right-column {
    display: flex;
    align-items: stretch;
}

/* 2x2 Stats Grid */
body.theme-dark .dashboard-stats-grid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
    min-height: 100%;
}

/* 2x3 Stats Grid */
body.theme-dark .dashboard-stats-grid-2x3 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 15px;
    width: 100%;
    height: 100%;
    min-height: 450px;
}

/* News Card (Left Side) */
body.theme-dark .dashboard-news-card {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(11, 17, 32, 0.95) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    height: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
}

body.theme-dark .dashboard-news-card:hover {
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
}

body.theme-dark .dashboard-news-content {
    padding: 20px 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
}

body.theme-dark .news-item {
    display: flex;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

body.theme-dark .news-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

body.theme-dark .news-date {
    min-width: 50px;
    text-align: center;
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    color: #ffffff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    height: fit-content;
}

body.theme-dark .news-content {
    flex: 1;
    min-width: 0;
}

body.theme-dark .news-content h4 {
    margin: 0 0 6px 0;
    font-size: 15px;
    font-weight: 600;
}

body.theme-dark .news-content h4 a {
    color: #f9fafb;
    text-decoration: none;
    transition: color 0.3s;
}

body.theme-dark .news-content h4 a:hover {
    color: #3b82f6;
}

body.theme-dark .news-content p {
    color: #9ca3af;
    font-size: 13px;
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body.theme-dark .news-empty {
    text-align: center;
    padding: 40px 20px;
    color: #9ca3af;
}

/* Stats Grid */
body.theme-dark .dashboard-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* ============================================
   Client Dashboard Stats Cards
   ============================================ */
body.theme-dark .client-dashboard-stats {
    margin-bottom: 40px;
}

body.theme-dark .stats-cards-grid {
    margin: 0 -10px;
}

body.theme-dark .stats-cards-grid>[class*="col-"] {
    padding: 0 10px;
    margin-bottom: 20px;
}

body.theme-dark .stat-card {
    position: relative;
    display: block;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    min-height: 140px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(11, 17, 32, 0.95) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

body.theme-dark .stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #06b6d4, #3b82f6);
    background-size: 200% 100%;
    animation: shimmer 3s infinite;
    opacity: 0;
    transition: opacity 0.3s;
}

body.theme-dark .stat-card:hover::before {
    opacity: 1;
}

body.theme-dark .stat-card:hover {
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
    transform: translateY(-3px);
}

body.theme-dark .stat-card-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(11, 17, 32, 0.95) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    transition: all 0.3s;
}

body.theme-dark .stat-card:hover .stat-card-background {
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
    transform: translateY(-3px);
}

body.theme-dark .stat-card-content {
    position: relative;
    z-index: 1;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    height: 100%;
}

body.theme-dark .stat-icon {
    width: 55px;
    height: 55px;
    min-width: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 26px;
    transition: all 0.3s;
}

body.theme-dark .stat-card-services .stat-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

body.theme-dark .stat-card-domains .stat-icon {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4);
}

body.theme-dark .stat-card-tickets .stat-icon {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

body.theme-dark .stat-card-invoices .stat-icon {
    background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
    color: #000000;
    box-shadow: 0 4px 15px rgba(234, 179, 8, 0.4);
}

body.theme-dark .stat-card-order .stat-icon {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

body.theme-dark .stat-card-addfunds .stat-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

body.theme-dark .stat-card-quotes .stat-icon {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.4);
}

body.theme-dark .stat-card-affiliates .stat-icon {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

body.theme-dark .stat-card:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
}

body.theme-dark .stat-info {
    flex: 1;
    min-width: 0;
}

body.theme-dark .stat-number {
    font-size: 28px;
    font-weight: 700;
    color: #f9fafb;
    line-height: 1;
    margin-bottom: 6px;
}

body.theme-dark .stat-label {
    font-size: 13px;
    color: #9ca3af;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

body.theme-dark .stat-arrow {
    color: #6b7280;
    font-size: 20px;
    transition: all 0.3s;
    opacity: 0;
}

body.theme-dark .stat-card:hover .stat-arrow {
    opacity: 1;
    color: #3b82f6;
    transform: translateX(5px);
}

/* Light Theme Stat Cards */
.client-dashboard-stats {
    margin-bottom: 40px;
}

.stats-cards-grid {
    margin: 0 -10px;
}

.stats-cards-grid>[class*="col-"] {
    padding: 0 10px;
    margin-bottom: 20px;
}

.stat-card {
    position: relative;
    display: block;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    border-radius: 12px;
    transition: all 0.3s ease;
    height: 100%;
    min-height: 140px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.stat-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
}

.stat-card-content {
    position: relative;
    z-index: 1;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    height: 100%;
}

.stat-icon {
    width: 55px;
    height: 55px;
    min-width: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 26px;
    transition: all 0.3s;
}

.stat-card-services .stat-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.stat-card-domains .stat-icon {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.stat-card-tickets .stat-icon {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.stat-card-invoices .stat-icon {
    background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
    color: #000000;
    box-shadow: 0 4px 15px rgba(234, 179, 8, 0.3);
}

.stat-card-quotes .stat-icon {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.stat-card-affiliates .stat-icon {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.stat-card:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
}

.stat-info {
    flex: 1;
    min-width: 0;
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 13px;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.stat-arrow {
    color: #999;
    font-size: 20px;
    transition: all 0.3s;
    opacity: 0;
}

.stat-card:hover .stat-arrow {
    opacity: 1;
    color: #3b82f6;
    transform: translateX(5px);
}

/* Knowledge Base Search */
body.theme-dark .dashboard-kb-search {
    margin-bottom: 30px;
}

body.theme-dark .kb-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(11, 17, 32, 0.95) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    padding: 15px 20px;
    backdrop-filter: blur(10px);
}

body.theme-dark .kb-search-wrapper i.fa-search {
    color: #9ca3af;
    font-size: 18px;
}

body.theme-dark .kb-search-wrapper .form-control {
    flex: 1;
    background: transparent;
    border: none;
    color: #e5e7eb;
    font-size: 16px;
    padding: 0;
}

body.theme-dark .kb-search-wrapper .form-control:focus {
    box-shadow: none;
    border: none;
}

body.theme-dark .kb-search-wrapper .form-control::placeholder {
    color: #6b7280;
}

body.theme-dark .kb-search-wrapper .btn {
    padding: 10px 20px;
    font-weight: 600;
}

/* Dashboard Panels */
body.theme-dark .dashboard-panels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

body.theme-dark .dashboard-panel-full {
    grid-column: 1 / -1;
}

body.theme-dark .dashboard-panel {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(11, 17, 32, 0.95) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
}

body.theme-dark .dashboard-panel:hover {
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
}

body.theme-dark .dashboard-panel-header {
    padding: 20px 25px;
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(11, 17, 32, 0.8) 0%, rgba(15, 23, 42, 0.8) 100%);
}

body.theme-dark .panel-header-content {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

body.theme-dark .panel-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(6, 182, 212, 0.2) 100%);
    border-radius: 8px;
    color: #3b82f6;
    font-size: 18px;
}

body.theme-dark .dashboard-panel-header .panel-title {
    color: #f9fafb;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

body.theme-dark .dashboard-panel-body {
    padding: 25px;
    color: #e5e7eb;
}

body.theme-dark .dashboard-panel-list {
    padding: 0;
}

body.theme-dark .dashboard-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 25px;
    color: #e5e7eb;
    text-decoration: none;
    border-bottom: 1px solid rgba(59, 130, 246, 0.05);
    transition: all 0.3s;
    position: relative;
}

body.theme-dark .dashboard-list-item:last-child {
    border-bottom: none;
}

body.theme-dark .dashboard-list-item i:first-child {
    color: #3b82f6;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

body.theme-dark .dashboard-list-item .item-label {
    flex: 1;
}

body.theme-dark .dashboard-list-item .item-arrow {
    color: #6b7280;
    font-size: 12px;
    margin-left: auto;
    opacity: 0;
    transition: all 0.3s;
}

body.theme-dark .dashboard-list-item:hover {
    background: rgba(59, 130, 246, 0.05);
    color: #f9fafb;
    padding-left: 30px;
}

body.theme-dark .dashboard-list-item:hover .item-arrow {
    opacity: 1;
    color: #3b82f6;
    transform: translateX(3px);
}

body.theme-dark .dashboard-list-item.active {
    background: rgba(59, 130, 246, 0.1);
    border-left: 3px solid #3b82f6;
    color: #3b82f6;
}

body.theme-dark .dashboard-list-item.active .item-arrow {
    opacity: 1;
    color: #3b82f6;
}

body.theme-dark .dashboard-panel-footer {
    padding: 15px 25px;
    border-top: 1px solid rgba(59, 130, 246, 0.1);
    background: linear-gradient(135deg, rgba(11, 17, 32, 0.5) 0%, rgba(15, 23, 42, 0.5) 100%);
}

/* Hide Contacts and Shortcuts panels if they still appear */
body.theme-dark .dashboard-panel[menuItemName="Contacts"],
body.theme-dark .dashboard-panel[menuItemName="Shortcuts"],
body.theme-dark .dashboard-panel[menuItemName="Client Shortcuts"] {
    display: none !important;
}

/* Hide panels by title text (fallback) */
/* Note: This will be handled by JavaScript or the template filter */

/* Ensure dashboard-addon styles exist */
body.theme-dark .dashboard-addon {
    margin-bottom: 30px;
}

@media (max-width: 991px) {
    body.theme-dark .dashboard-main-layout {
        grid-template-columns: 1fr;
    }

    body.theme-dark .dashboard-stats-grid-2x3 {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
        min-height: auto;
    }

    body.theme-dark .dashboard-stats-grid-2x2 {
        grid-template-columns: repeat(2, 1fr);
        min-height: auto;
    }

    body.theme-dark .dashboard-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    body.theme-dark .dashboard-panels-grid {
        grid-template-columns: 1fr;
    }

    body.theme-dark .dashboard-news-card {
        height: auto;
        min-height: 400px;
    }
}

@media (max-width: 767px) {
    body.theme-dark .dashboard-stats-grid-2x3 {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    body.theme-dark .dashboard-stats-grid-2x2 {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    body.theme-dark .dashboard-stats-grid {
        grid-template-columns: 1fr;
    }

    body.theme-dark .stat-card-content {
        padding: 18px;
    }

    body.theme-dark .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    body.theme-dark .stat-number {
        font-size: 24px;
    }
}

/* ============================================
   Modern Account Details Page
   ============================================ */
body.theme-dark .modern-account-details {
    padding: 30px 0;
}

body.theme-dark .modern-account-details .modern-section-header {
    margin-bottom: 35px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(59, 130, 246, 0.2);
}

body.theme-dark .modern-account-details .modern-section-header h2 {
    color: #f9fafb;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

body.theme-dark .modern-account-details .modern-section-header h2 i {
    color: #3b82f6;
    font-size: 26px;
}

body.theme-dark .modern-account-details .section-subtitle {
    color: #9ca3af;
    font-size: 14px;
    margin: 0;
}

body.theme-dark .modern-account-form {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.6) 0%, rgba(30, 41, 59, 0.4) 100%);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 12px;
    padding: 35px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

body.theme-dark .modern-form-sections {
    margin-bottom: 30px;
}

body.theme-dark .modern-form-group {
    margin-bottom: 25px;
}

body.theme-dark .modern-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e5e7eb;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 8px;
    text-transform: none;
}

body.theme-dark .modern-label i {
    color: #3b82f6;
    font-size: 14px;
    width: 16px;
}

body.theme-dark .modern-input {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    color: #e5e7eb;
    padding: 12px 16px;
    font-size: 14px;
    transition: all 0.3s ease;
    width: 100%;
}

body.theme-dark .modern-input:focus {
    background: rgba(15, 23, 42, 0.95);
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
    color: #f9fafb;
}

body.theme-dark .modern-input:disabled {
    background: rgba(15, 23, 42, 0.4);
    border-color: rgba(59, 130, 246, 0.1);
    color: #6b7280;
    cursor: not-allowed;
}

body.theme-dark .modern-input::placeholder {
    color: #6b7280;
}

body.theme-dark .modern-input option {
    background: #1e293b;
    color: #e5e7eb;
}

body.theme-dark select.modern-input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%233b82f6' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

body.theme-dark .modern-form-section {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid rgba(59, 130, 246, 0.15);
}

body.theme-dark .modern-section-header-small {
    margin-bottom: 20px;
}

body.theme-dark .modern-section-header-small h3,
body.theme-dark .modern-section-header-small h4 {
    color: #f9fafb;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

body.theme-dark .modern-section-header-small h3 i,
body.theme-dark .modern-section-header-small h4 i {
    color: #3b82f6;
    font-size: 18px;
}

body.theme-dark .modern-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

body.theme-dark .modern-checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 12px 15px;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 8px;
    transition: all 0.3s ease;
}

body.theme-dark .modern-checkbox-label:hover {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(59, 130, 246, 0.3);
}

body.theme-dark .modern-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #3b82f6;
}

body.theme-dark .checkbox-text {
    color: #e5e7eb;
    font-size: 14px;
    user-select: none;
}

body.theme-dark .modern-marketing-optin {
    margin-top: 30px;
    padding: 25px;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 8px;
}

body.theme-dark .modern-marketing-optin p {
    color: #9ca3af;
    margin-bottom: 15px;
    font-size: 14px;
}

body.theme-dark .modern-toggle-label {
    display: inline-block;
}

body.theme-dark .modern-form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 35px;
    padding-top: 30px;
    border-top: 1px solid rgba(59, 130, 246, 0.15);
}

body.theme-dark .modern-btn-primary,
body.theme-dark .modern-btn-secondary {
    padding: 12px 30px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
}

body.theme-dark .modern-btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

body.theme-dark .modern-btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
}

body.theme-dark .modern-btn-secondary {
    background: rgba(30, 41, 59, 0.8);
    color: #e5e7eb;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

body.theme-dark .modern-btn-secondary:hover {
    background: rgba(30, 41, 59, 1);
    border-color: rgba(59, 130, 246, 0.4);
    color: #f9fafb;
}

/* Modern Card Enhancements */
body.theme-dark .modern-card {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.6) 0%, rgba(30, 41, 59, 0.4) 100%);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

body.theme-dark .modern-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 6px 25px rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
}

/* Enhanced Badge Styling */
body.theme-dark .badge {
    padding: 5px 10px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

body.theme-dark .badge-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
}

body.theme-dark .badge-success {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #ffffff;
}

body.theme-dark .badge-warning {
    background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
    color: #000000;
}

body.theme-dark .badge-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
}

body.theme-dark .badge-info {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: #ffffff;
}

/* Enhanced Table Styling */
body.theme-dark .table {
    border-radius: 8px;
    overflow: hidden;
}

body.theme-dark .table>thead>tr>th {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(30, 41, 59, 0.6) 100%);
    border-bottom: 2px solid rgba(59, 130, 246, 0.2);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

body.theme-dark .table>tbody>tr {
    transition: all 0.2s ease;
}

body.theme-dark .table>tbody>tr:hover {
    background: rgba(59, 130, 246, 0.05);
}

/* ============================================
   Configurable Options Fix - White Box with White Text
   ============================================ */
body.theme-dark #configoptions .label,
body.theme-dark .configoptions .label,
body.theme-dark [id*="config"] .label {
    background-color: #1f2937 !important;
    color: #e5e7eb !important;
    border: 1px solid rgba(59, 130, 246, 0.3) !important;
}

/* Fix for any label in order/cart pages that might be white on white */
body.theme-dark .store-order-container .label,
body.theme-dark .cart .label,
body.theme-dark .order-form .label {
    background-color: #1f2937 !important;
    color: #e5e7eb !important;
    border: 1px solid rgba(59, 130, 246, 0.3) !important;
}

/* Fix for configoptions tab content */
body.theme-dark #configoptions {
    color: #e5e7eb;
}

body.theme-dark #configoptions strong {
    color: #f9fafb;
}

/* Additional fix for labels that might appear white on white in various contexts */
body.theme-dark .label:not(.label-primary):not(.label-success):not(.label-warning):not(.label-danger):not(.label-info):not(.label-default) {
    background-color: #1f2937 !important;
    color: #e5e7eb !important;
}

body.theme-dark .table>tbody>tr>td {
    border-color: rgba(59, 130, 246, 0.1);
    padding: 15px;
}

/* Modern List Group Items */
body.theme-dark .list-group-item {
    background: rgba(15, 23, 42, 0.4);
    border-color: rgba(59, 130, 246, 0.15);
    color: #e5e7eb;
    transition: all 0.3s ease;
    padding: 12px 20px;
}

body.theme-dark .list-group-item:hover {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateX(5px);
}

body.theme-dark .list-group-item.active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(37, 99, 235, 0.15) 100%);
    border-color: #3b82f6;
    color: #3b82f6;
    font-weight: 500;
}

/* Enhanced Well/Box Styling */
body.theme-dark .well {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.6) 0%, rgba(30, 41, 59, 0.4) 100%);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Modern Section Headers */
body.theme-dark .modern-section-header {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(59, 130, 246, 0.2);
}

body.theme-dark .modern-section-header h2 {
    color: #f9fafb;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

body.theme-dark .modern-section-header h2 i {
    color: #3b82f6;
}

body.theme-dark .modern-section-header .section-subtitle {
    color: #9ca3af;
    font-size: 14px;
    margin: 0;
}

@media (max-width: 768px) {
    body.theme-dark .modern-account-form {
        padding: 20px;
    }

    body.theme-dark .modern-form-actions {
        flex-direction: column;
    }

    body.theme-dark .modern-btn-primary,
    body.theme-dark .modern-btn-secondary {
        width: 100%;
        justify-content: center;
    }

    body.theme-dark .modern-section-header h2 {
        font-size: 20px;
    }
}

/* ============================================
   Print Styles (keep light for printing)
   ============================================ */
@media print {
    body.theme-dark {
        background-color: #ffffff;
        color: #000000;
    }

    body.theme-dark .panel,
    body.theme-dark .table,
    body.theme-dark .well {
        background-color: #ffffff;
        color: #000000;
        border-color: #cccccc;
    }
}