/* MDM Solutions Modern Client Area — WHMCS 8.2 / Six */
:root{--mdm-bg:#02060b;--mdm-panel:#07111c;--mdm-panel2:#091725;--mdm-line:#203345;--mdm-text:#f6f8fb;--mdm-muted:#aeb9c6;--mdm-blue:#0c7cff;--mdm-blue2:#1766ff;--mdm-radius:14px}
html{background:var(--mdm-bg)}
body.mdm-client-area{margin:0;background:radial-gradient(circle at 70% 0,rgba(13,93,184,.10),transparent 28rem),linear-gradient(180deg,#010306,#02070d 60%,#030912);color:var(--mdm-text);font-family:Inter,"Open Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:14px;line-height:1.6}
body.mdm-client-area a{color:#8fbcff;transition:.18s ease}
body.mdm-client-area a:hover,body.mdm-client-area a:focus{color:#fff;text-decoration:none}

/* Header */
.mdm-site-header{background:#000;border-bottom:1px solid rgba(255,255,255,.06);position:relative;z-index:1000}
.mdm-nav-wrap{min-height:96px;display:flex;align-items:center}
.mdm-brand{width:238px;flex:0 0 238px;display:flex;align-items:center}
.mdm-brand img{max-width:218px;max-height:66px;width:auto;height:auto}
.mdm-main-nav{flex:1;padding:0;margin:0!important}
.mdm-service-nav{float:none!important;display:flex;justify-content:center;align-items:center}
.mdm-service-nav>li>a,.mdm-account-nav>li>a{color:#dce4ee!important;background:transparent!important;font-weight:700;padding:38px 14px!important;line-height:20px}
.mdm-service-nav>li>a:hover,.mdm-account-nav>li>a:hover{color:#6faaff!important}
.mdm-account-nav{margin:0!important}
.mdm-account-nav>li>a{padding-left:11px!important;padding-right:11px!important}
.mdm-account-nav .dropdown-menu,.mdm-service-nav .dropdown-menu{background:#07111c;border:1px solid #203345;border-radius:10px;padding:8px;box-shadow:0 18px 45px rgba(0,0,0,.35)}
.mdm-account-nav .dropdown-menu>li>a{color:#cbd5df;padding:9px 12px;border-radius:6px}
.mdm-account-nav .dropdown-menu>li>a:hover{background:#0b1c2d;color:#fff}
.mdm-nav-toggle{margin-left:auto;border-color:#274157!important;background:#07111c!important}
.mdm-nav-toggle .icon-bar{background:#9ec2ff!important}

/* Homepage client portal hero */
.mdm-client-hero{padding:66px 0 54px;border-bottom:1px solid rgba(255,255,255,.05);background:radial-gradient(circle at 75% 35%,rgba(12,124,255,.13),transparent 22rem)}
.mdm-client-hero-row{display:flex;align-items:center}
.mdm-kicker{display:block;color:#2d8cff;font-weight:900;letter-spacing:.07em;text-transform:uppercase;margin-bottom:17px}
.mdm-client-hero h1{font-size:56px;line-height:1.02;letter-spacing:-.045em;margin:0 0 22px;font-weight:800;color:#fff}
.mdm-client-hero h1 span{color:#2176ff}
.mdm-client-hero p{font-size:18px;line-height:1.7;color:#bdc8d5;max-width:720px;margin:0}
.mdm-client-hero-card{border:1px solid #1e6ed0;border-radius:14px;background:linear-gradient(145deg,rgba(8,23,38,.96),rgba(4,12,21,.96));padding:28px;box-shadow:0 20px 55px rgba(0,0,0,.28)}
.mdm-client-hero-card span{display:block;color:#7faeff;font-size:12px;text-transform:uppercase;font-weight:900;letter-spacing:.06em}
.mdm-client-hero-card strong{display:block;font-size:23px;margin:8px 0 22px;color:#fff}
.mdm-home-shortcuts{border-bottom:1px solid rgba(255,255,255,.06);background:#030912;padding:18px 0}
.mdm-shortcut{display:flex;align-items:center;gap:12px;border:1px solid #203345;border-radius:10px;padding:14px 16px;background:#06111c;color:#dce4ee!important;font-weight:700;margin:5px 0}
.mdm-shortcut i{font-size:19px;color:#4f9cff;width:24px;text-align:center}
.mdm-shortcut:hover{border-color:#0c7cff;transform:translateY(-1px)}

/* Main content */
.mdm-main-body{padding:46px 0 62px;background:transparent}
.main-content{color:#d3dbe5}
.main-content h1,.main-content h2,.main-content h3,.main-content h4,.main-content h5{color:#fff;font-weight:700}
.header-lined{border-bottom:1px solid #203345;margin-bottom:28px;padding-bottom:20px}
.header-lined h1{color:#fff!important;font-size:34px;letter-spacing:-.03em}
.header-lined small{color:#9eabba!important}
.breadcrumb{background:transparent;border:0;padding:0;margin:10px 0 0}
.breadcrumb>li,.breadcrumb>li>a{color:#8392a4}

/* Panels, wells, tiles, cards */
.panel,.well,.list-group,.logincontainer,.domain-pricing .tld-pricing-header,.client-home-panels .panel{background:linear-gradient(180deg,#081522,#050d16)!important;border:1px solid #274157!important;border-radius:12px!important;box-shadow:0 16px 38px rgba(0,0,0,.14)}
.panel-heading{background:#091725!important;border-bottom:1px solid #274157!important;color:#fff!important;border-radius:11px 11px 0 0!important}
.panel-title{color:#fff!important;font-weight:700}
.panel-body,.panel-footer{background:transparent!important;color:#c4cfda!important;border-color:#203345!important}
.panel-footer{border-radius:0 0 11px 11px!important}
.list-group-item{background:#06111c!important;color:#b9c5d1!important;border-color:#203345!important}
.list-group-item:hover,.list-group-item:focus{background:#0a1928!important;color:#fff!important}
.list-group-item.active,.list-group-item.active:hover{background:#0c69d5!important;border-color:#0c7cff!important;color:#fff!important}
.tiles .tile>a{background:linear-gradient(180deg,#081522,#050d16)!important;border:1px solid #274157;border-radius:12px;box-shadow:none;color:#fff!important;overflow:hidden}
.tiles .tile .icon,.tiles .tile .stat{color:#64a4ff!important}
.tiles .tile .title{color:#c7d1dc!important}
.tiles .tile .highlight{height:3px!important;background:#0c7cff!important}
.home-kb-search .form-control{background:#07111c!important;border-color:#274157!important;color:#fff!important}
.home-kb-search i{color:#4f9cff!important}

/* Forms */
.form-control,input[type=text],input[type=email],input[type=password],input[type=number],input[type=tel],select,textarea{background:#06111c!important;color:#f1f5f9!important;border:1px solid #2a4054!important;border-radius:8px!important;box-shadow:none!important}
.form-control:focus,input:focus,select:focus,textarea:focus{border-color:#0c7cff!important;box-shadow:0 0 0 2px rgba(12,124,255,.12)!important}
.form-control::placeholder{color:#6f7e90}
label{color:#cbd5df;font-weight:600}
.input-group-addon{background:#0a1826!important;border-color:#2a4054!important;color:#aeb9c6!important}
.checkbox label,.radio label{color:#b8c2ce}

/* Buttons */
.btn{border-radius:8px;font-weight:800;transition:.18s ease;box-shadow:none!important}
.btn-primary,.btn-success,.btn-info{background:linear-gradient(135deg,#1183ff,#1761f1)!important;border-color:#167cff!important;color:#fff!important}
.btn-primary:hover,.btn-success:hover,.btn-info:hover{filter:brightness(1.1);border-color:#3f95ff!important}
.btn-default{background:#0a1826!important;border-color:#2a4054!important;color:#d9e2eb!important}
.btn-default:hover{background:#10243a!important;border-color:#3b5872!important;color:#fff!important}
.btn-danger{background:#8e2732!important;border-color:#a23542!important}

/* Tables */
.table{color:#c4cfda;background:#06111c;border-radius:10px;overflow:hidden}
.table>thead>tr>th{background:#0a1928;color:#fff;border-color:#2a4054!important;font-weight:800}
.table>tbody>tr>td,.table>tbody>tr>th,.table>tfoot>tr>td{border-color:#203345!important}
.table-striped>tbody>tr:nth-of-type(odd){background:#07121d}
.table-hover>tbody>tr:hover{background:#0c1b2a!important}
.dataTables_wrapper .dataTables_info,.dataTables_wrapper .dataTables_paginate{color:#8998a8}
.pagination>li>a,.pagination>li>span{background:#07111c;border-color:#274157;color:#9ec2ff}
.pagination>.active>a,.pagination>.active>span{background:#0c7cff!important;border-color:#0c7cff!important}

/* Sidebar */
.sidebar .panel{box-shadow:none}
.sidebar .panel-heading{font-size:15px}
.sidebar .list-group-item{padding:11px 14px}
.sidebar .list-group-item i{color:#4f9cff}

/* Login */
.logincontainer{max-width:620px!important;margin:20px auto!important;padding:32px!important}
.logincontainer .header-lined{margin-top:0}

/* Alerts and badges */
.alert{border-radius:10px;border-width:1px;background:#091725;color:#dce4ee}
.alert-info{border-color:#20598d}.alert-success{border-color:#2d6b58}.alert-warning{border-color:#85652b}.alert-danger{border-color:#7e3540}
.label,.badge{border-radius:99px;padding:5px 9px;font-weight:700}

/* Invoice / ticket / product areas */
.ticket-reply,.ticket-reply.staff{background:#06111c!important;border-color:#274157!important;color:#c5ced8!important}
.ticket-reply .date{color:#8291a3!important}
.product-details .product-status{border-radius:8px}

/* Modal */
.modal-content{background:#07111c!important;border:1px solid #274157!important;border-radius:14px!important;color:#d5dee8}
.modal-header,.modal-footer{border-color:#203345!important}
.modal-header .close{color:#fff;opacity:.8}

/* Footer */
.mdm-footer{background:#010408;border-top:1px solid rgba(255,255,255,.06);margin-top:12px;color:#d9e1ea}
.mdm-footer-benefits{display:grid;grid-template-columns:repeat(5,1fr);border-bottom:1px solid rgba(255,255,255,.06);padding:0}
.mdm-footer-benefit{display:flex;align-items:center;justify-content:center;gap:12px;padding:27px 10px;text-align:left}
.mdm-footer-benefit:not(:last-child){border-right:1px solid #172631}
.mdm-footer-benefit i{width:38px;height:38px;border:1px solid #365474;border-radius:50%;display:grid;place-items:center;color:#6faaff;line-height:36px;text-align:center}
.mdm-footer-benefit strong{display:block;color:#fff;font-size:14px}
.mdm-footer-benefit span{display:block;color:#8f9aaa;font-size:12px;margin-top:2px}
.mdm-footer-main{padding:45px 15px 30px}
.mdm-footer-brand img{width:210px;margin:0 auto 18px;display:block}
.mdm-footer-brand{text-align:center}
.mdm-footer-brand p,.mdm-footer-col li,.mdm-footer-col a{color:#9faaba;font-size:13px;line-height:1.7}
.mdm-footer-col h4{color:#fff;font-size:15px;margin:8px 0 15px}
.mdm-footer-col ul{padding:0;list-style:none;margin:0}
.mdm-footer-col li{margin:7px 0}
.mdm-footer-col a:hover{color:#6faaff}
.mdm-footer-compliance{display:flex;flex-direction:column;align-items:center;gap:16px;padding:28px 0 4px}
.mdm-sal-badge{width:250px;height:50px;display:flex;align-items:center;background:#fff;color:#111!important;border-radius:3px;overflow:hidden}
.mdm-sal-mark{height:100%;min-width:68px;background:#073c8c;color:#fff;display:grid;place-items:center;font-weight:900}
.mdm-sal-badge>span:last-child{display:flex;flex-direction:column;padding:0 9px;line-height:1.05}
.mdm-sal-badge strong{font-size:9px;text-transform:uppercase}.mdm-sal-badge small{font-size:8px;color:#56606b;margin-top:4px}
.mdm-socials{display:flex;gap:10px}.mdm-socials a{width:36px;height:36px;display:grid;place-items:center;border:1px solid #26394c;border-radius:9px;background:#07111c;color:#aeb9c6!important}.mdm-socials a:hover{border-color:#0c7cff;color:#0c7cff!important}
.mdm-footer-bottom{border-top:1px solid rgba(255,255,255,.06);text-align:center;padding:19px;color:#778596;font-size:12px}

/* WHMCS legacy footer hidden if any template fragment renders it */
#footer{display:none!important}

/* Responsive */
@media(max-width:1199px){.mdm-service-nav>li>a{padding-left:8px!important;padding-right:8px!important;font-size:12px}.mdm-brand{width:200px;flex-basis:200px}.mdm-brand img{max-width:185px}}
@media(max-width:991px){.mdm-nav-wrap{display:block;min-height:82px;padding-top:11px;padding-bottom:11px}.mdm-brand{width:auto;display:inline-flex}.mdm-brand img{max-width:190px;max-height:58px}.mdm-main-nav{background:#030912;border-top:1px solid #203345;margin:11px -15px -11px!important;padding:8px 15px!important}.mdm-service-nav{display:block}.mdm-service-nav>li>a,.mdm-account-nav>li>a{padding:11px 12px!important}.mdm-account-nav{float:none!important}.mdm-client-hero-row{display:block}.mdm-client-hero-card{margin-top:28px}.mdm-footer-benefits{grid-template-columns:repeat(2,1fr)}.mdm-footer-benefit{border-bottom:1px solid #172631}.mdm-footer-benefit:nth-child(even){border-right:0}}
@media(max-width:767px){.mdm-client-hero{padding:44px 0}.mdm-client-hero h1{font-size:38px}.mdm-client-hero p{font-size:16px}.mdm-home-shortcuts .col-xs-6{padding-left:6px;padding-right:6px}.mdm-shortcut{min-height:68px;font-size:12px}.mdm-main-body{padding-top:30px}.header-lined h1{font-size:28px}.mdm-footer-benefits{grid-template-columns:1fr}.mdm-footer-benefit{border-right:0!important}.mdm-footer-main{text-align:center}.mdm-footer-col{margin-top:28px}.mdm-footer-brand img{width:190px}}


/* ============================================================
   MDM Solutions — visual parity with the new public website
   Same typography, palette and dark surfaces.
   ============================================================ */

body.mdm-client-area{
    --mdm-bg:#02060b;
    --mdm-panel:#07111c;
    --mdm-panel2:#091725;
    --mdm-line:#203345;
    --mdm-text:#f6f8fb;
    --mdm-muted:#b8c2cf;
    --mdm-blue:#0c7cff;
    --mdm-blue2:#1766ff;

    background:
        radial-gradient(circle at 70% 5%,rgba(13,93,184,.10),transparent 24rem),
        linear-gradient(180deg,#010306,#02070d 55%,#030912) !important;
    color:var(--mdm-text) !important;
    font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif !important;
    font-size:14px;
    line-height:1.65;
}

/* Base typography */
body.mdm-client-area .main-content,
body.mdm-client-area .main-content p,
body.mdm-client-area .main-content li,
body.mdm-client-area .main-content td,
body.mdm-client-area .main-content th,
body.mdm-client-area .main-content small,
body.mdm-client-area .sidebar{
    color:#c5ced8;
}
body.mdm-client-area h1,
body.mdm-client-area h2,
body.mdm-client-area h3,
body.mdm-client-area h4,
body.mdm-client-area h5,
body.mdm-client-area h6,
body.mdm-client-area strong{
    color:#f6f8fb;
}
body.mdm-client-area .text-muted,
body.mdm-client-area .help-block,
body.mdm-client-area small,
body.mdm-client-area .small{
    color:#8f9aaa !important;
}
body.mdm-client-area a{color:#7faeff}
body.mdm-client-area a:hover,
body.mdm-client-area a:focus{color:#fff}

/* Kill legacy Six white surfaces that make grey text unreadable */
body.mdm-client-area .main-content .panel,
body.mdm-client-area .main-content .well,
body.mdm-client-area .main-content .list-group,
body.mdm-client-area .main-content .list-group-item,
body.mdm-client-area .main-content .table,
body.mdm-client-area .main-content .table-responsive,
body.mdm-client-area .main-content .logincontainer,
body.mdm-client-area .main-content .domain-pricing,
body.mdm-client-area .main-content .domain-pricing .tld-pricing-header,
body.mdm-client-area .main-content .domain-pricing .tld-pricing-row,
body.mdm-client-area .main-content .client-home-panels .panel,
body.mdm-client-area .main-content .invoice-container,
body.mdm-client-area .main-content .ticket-reply,
body.mdm-client-area .main-content .ticket-reply.staff,
body.mdm-client-area .main-content .product-details,
body.mdm-client-area .main-content .product-details-tab-container,
body.mdm-client-area .main-content .tab-content,
body.mdm-client-area .main-content .nav-tabs,
body.mdm-client-area .main-content .card,
body.mdm-client-area .main-content .card-body,
body.mdm-client-area .main-content .modal-content,
body.mdm-client-area .sidebar .panel,
body.mdm-client-area .sidebar .list-group,
body.mdm-client-area .sidebar .list-group-item{
    background:#06111c !important;
    color:#c5ced8 !important;
    border-color:#203345 !important;
}

/* Panels */
body.mdm-client-area .panel-heading,
body.mdm-client-area .card-header{
    background:#091725 !important;
    color:#f6f8fb !important;
    border-color:#274157 !important;
}
body.mdm-client-area .panel-body,
body.mdm-client-area .panel-footer,
body.mdm-client-area .card-body,
body.mdm-client-area .card-footer{
    background:#06111c !important;
    color:#c5ced8 !important;
    border-color:#203345 !important;
}

/* Tabs */
body.mdm-client-area .nav-tabs{
    border-bottom:1px solid #274157 !important;
}
body.mdm-client-area .nav-tabs>li>a{
    color:#9fb0c2 !important;
    background:transparent !important;
    border-color:transparent !important;
}
body.mdm-client-area .nav-tabs>li>a:hover{
    color:#fff !important;
    background:#081522 !important;
    border-color:#274157 !important;
}
body.mdm-client-area .nav-tabs>li.active>a,
body.mdm-client-area .nav-tabs>li.active>a:hover,
body.mdm-client-area .nav-tabs>li.active>a:focus{
    color:#fff !important;
    background:#091725 !important;
    border:1px solid #274157 !important;
    border-bottom-color:#091725 !important;
}

/* Tables */
body.mdm-client-area .table{
    background:#06111c !important;
    color:#c5ced8 !important;
}
body.mdm-client-area .table>thead>tr>th{
    background:#091725 !important;
    color:#fff !important;
    border-color:#274157 !important;
}
body.mdm-client-area .table>tbody>tr>td,
body.mdm-client-area .table>tbody>tr>th,
body.mdm-client-area .table>tfoot>tr>td,
body.mdm-client-area .table>tfoot>tr>th{
    background:#06111c !important;
    color:#c5ced8 !important;
    border-color:#203345 !important;
}
body.mdm-client-area .table-striped>tbody>tr:nth-of-type(odd)>td,
body.mdm-client-area .table-striped>tbody>tr:nth-of-type(odd)>th{
    background:#071522 !important;
}
body.mdm-client-area .table-hover>tbody>tr:hover>td,
body.mdm-client-area .table-hover>tbody>tr:hover>th{
    background:#0a1928 !important;
    color:#fff !important;
}

/* Forms */
body.mdm-client-area .form-control,
body.mdm-client-area input[type="text"],
body.mdm-client-area input[type="email"],
body.mdm-client-area input[type="password"],
body.mdm-client-area input[type="number"],
body.mdm-client-area input[type="tel"],
body.mdm-client-area select,
body.mdm-client-area textarea{
    background:#06111c !important;
    color:#f6f8fb !important;
    border-color:#2a4054 !important;
}
body.mdm-client-area select option{
    background:#07111c;
    color:#f6f8fb;
}
body.mdm-client-area .input-group-addon{
    background:#091725 !important;
    color:#b8c2cf !important;
    border-color:#2a4054 !important;
}

/* Legacy Six dashboard widgets */
body.mdm-client-area .client-home-panels .panel,
body.mdm-client-area .tiles .tile>a{
    background:linear-gradient(180deg,#081522,#050d16) !important;
    border:1px solid #274157 !important;
}
body.mdm-client-area .tiles .tile .title{color:#c7d1dc !important}
body.mdm-client-area .tiles .tile .stat{color:#f6f8fb !important}

/* Domain checker / pricing / store fragments that often retain white */
body.mdm-client-area .domain-checker-container,
body.mdm-client-area .domain-checker-bg,
body.mdm-client-area .domain-pricing .tld-row,
body.mdm-client-area .domain-pricing .row,
body.mdm-client-area .domain-renewals,
body.mdm-client-area .domain-renewal,
body.mdm-client-area .spotlight-tld,
body.mdm-client-area .product,
body.mdm-client-area .product-info,
body.mdm-client-area .summary-container{
    background:#06111c !important;
    color:#c5ced8 !important;
    border-color:#203345 !important;
}

/* Alerts: preserve semantic accents but keep dark surfaces */
body.mdm-client-area .alert{
    color:#e3e9f0 !important;
    background:#091725 !important;
}
body.mdm-client-area .alert-info{border-color:#20598d !important}
body.mdm-client-area .alert-success{border-color:#2d6b58 !important}
body.mdm-client-area .alert-warning{border-color:#85652b !important}
body.mdm-client-area .alert-danger{border-color:#7e3540 !important}

/* Pagination */
body.mdm-client-area .pagination>li>a,
body.mdm-client-area .pagination>li>span{
    background:#07111c !important;
    border-color:#274157 !important;
    color:#9ec2ff !important;
}
body.mdm-client-area .pagination>.active>a,
body.mdm-client-area .pagination>.active>span{
    background:#0c7cff !important;
    border-color:#0c7cff !important;
    color:#fff !important;
}

/* Buttons exactly in the public-site blue family */
body.mdm-client-area .btn-primary,
body.mdm-client-area .btn-success,
body.mdm-client-area .btn-info{
    background:linear-gradient(135deg,#1183ff,#1761f1) !important;
    border-color:#167cff !important;
    color:#fff !important;
}
body.mdm-client-area .btn-default{
    background:#0a1826 !important;
    border-color:#2a4054 !important;
    color:#d9e2eb !important;
}

/* Ensure badges/labels remain readable regardless of legacy Six selectors */
body.mdm-client-area .label,
body.mdm-client-area .badge{
    color:#fff !important;
}


/* ============================================================
   MDM Modern v3 — guaranteed full dark client area
   ============================================================ */

body.mdm-modern-theme{
    background:
        radial-gradient(circle at 70% 5%,rgba(13,93,184,.10),transparent 24rem),
        linear-gradient(180deg,#010306,#02070d 55%,#030912) !important;
    color:#f6f8fb !important;
    font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif !important;
}

body.mdm-modern-theme,
body.mdm-modern-theme #main-body,
body.mdm-modern-theme .main-content,
body.mdm-modern-theme .content-area,
body.mdm-modern-theme .container,
body.mdm-modern-theme .container-fluid{
    background:transparent !important;
}

/* Main WHMCS page canvas */
body.mdm-modern-theme .main-content{
    color:#c7d0db !important;
}
body.mdm-modern-theme .main-content p,
body.mdm-modern-theme .main-content span,
body.mdm-modern-theme .main-content div,
body.mdm-modern-theme .main-content td,
body.mdm-modern-theme .main-content th,
body.mdm-modern-theme .main-content li{
    color:inherit;
}

/* Breadcrumbs */
body.mdm-modern-theme .breadcrumb{
    background:transparent !important;
    border-bottom:1px solid #203345 !important;
    color:#8f9aaa !important;
}
body.mdm-modern-theme .breadcrumb>li,
body.mdm-modern-theme .breadcrumb>li>a{
    color:#8f9aaa !important;
}
body.mdm-modern-theme .breadcrumb>.active{
    color:#d7e0e8 !important;
}

/* Dashboard statistic tiles */
body.mdm-modern-theme .tiles,
body.mdm-modern-theme .tiles .tile,
body.mdm-modern-theme .tiles .tile>a,
body.mdm-modern-theme .tile{
    background:#07111c !important;
    color:#f6f8fb !important;
    border-color:#203345 !important;
}
body.mdm-modern-theme .tiles .tile{
    border:1px solid #203345 !important;
}
body.mdm-modern-theme .tiles .tile .icon,
body.mdm-modern-theme .tiles .tile i{
    color:#1680ff !important;
}
body.mdm-modern-theme .tiles .tile .stat{
    color:#f6f8fb !important;
}
body.mdm-modern-theme .tiles .tile .title{
    color:#9eabba !important;
}

/* Panels, cards, wells, widgets */
body.mdm-modern-theme .panel,
body.mdm-modern-theme .well,
body.mdm-modern-theme .card,
body.mdm-modern-theme .widget,
body.mdm-modern-theme .logincontainer,
body.mdm-modern-theme .client-home-panels .panel,
body.mdm-modern-theme .panel-body,
body.mdm-modern-theme .panel-footer,
body.mdm-modern-theme .card-body,
body.mdm-modern-theme .card-footer{
    background:#06111c !important;
    color:#c7d0db !important;
    border-color:#203345 !important;
}
body.mdm-modern-theme .panel-heading,
body.mdm-modern-theme .card-header{
    background:#091725 !important;
    color:#fff !important;
    border-color:#274157 !important;
}

/* Lists/sidebar actions */
body.mdm-modern-theme .list-group,
body.mdm-modern-theme .list-group-item{
    background:#06111c !important;
    color:#c7d0db !important;
    border-color:#203345 !important;
}

/* DataTables wrapper + product/service listing */
body.mdm-modern-theme .dataTables_wrapper,
body.mdm-modern-theme .dataTables_wrapper .row,
body.mdm-modern-theme .dataTables_wrapper .col-sm-12,
body.mdm-modern-theme .dataTables_wrapper .dataTables_length,
body.mdm-modern-theme .dataTables_wrapper .dataTables_filter,
body.mdm-modern-theme .dataTables_wrapper .dataTables_info,
body.mdm-modern-theme .dataTables_wrapper .dataTables_paginate{
    background:transparent !important;
    color:#aeb8c4 !important;
}

body.mdm-modern-theme table,
body.mdm-modern-theme .table,
body.mdm-modern-theme table.dataTable,
body.mdm-modern-theme .dataTables_wrapper table{
    background:#06111c !important;
    color:#c7d0db !important;
    border-color:#203345 !important;
}

body.mdm-modern-theme table.dataTable thead th,
body.mdm-modern-theme .table>thead>tr>th{
    background:#091725 !important;
    color:#fff !important;
    border-color:#274157 !important;
}

body.mdm-modern-theme table.dataTable tbody tr,
body.mdm-modern-theme .table>tbody>tr{
    background:#06111c !important;
}

body.mdm-modern-theme table.dataTable tbody td,
body.mdm-modern-theme .table>tbody>tr>td{
    background:#06111c !important;
    color:#c7d0db !important;
    border-color:#203345 !important;
}

body.mdm-modern-theme table.dataTable.stripe tbody tr.odd,
body.mdm-modern-theme table.dataTable.display tbody tr.odd,
body.mdm-modern-theme .table-striped>tbody>tr:nth-of-type(odd)>td{
    background:#071522 !important;
}

body.mdm-modern-theme table.dataTable.hover tbody tr:hover,
body.mdm-modern-theme table.dataTable.display tbody tr:hover,
body.mdm-modern-theme .table-hover>tbody>tr:hover>td{
    background:#0a1928 !important;
    color:#fff !important;
}

/* DataTables top bar/search */
body.mdm-modern-theme .dataTables_wrapper .dataTables_length select,
body.mdm-modern-theme .dataTables_wrapper .dataTables_filter input{
    background:#07111c !important;
    color:#f6f8fb !important;
    border:1px solid #2a4054 !important;
}

/* Pagination */
body.mdm-modern-theme .pagination>li>a,
body.mdm-modern-theme .pagination>li>span,
body.mdm-modern-theme .dataTables_wrapper .dataTables_paginate .paginate_button{
    background:#07111c !important;
    color:#9ec2ff !important;
    border-color:#274157 !important;
}
body.mdm-modern-theme .pagination>.active>a,
body.mdm-modern-theme .pagination>.active>span,
body.mdm-modern-theme .dataTables_wrapper .dataTables_paginate .paginate_button.current{
    background:#0c7cff !important;
    color:#fff !important;
    border-color:#0c7cff !important;
}

/* Forms */
body.mdm-modern-theme .form-control,
body.mdm-modern-theme input,
body.mdm-modern-theme select,
body.mdm-modern-theme textarea{
    background:#06111c !important;
    color:#f6f8fb !important;
    border-color:#2a4054 !important;
}
body.mdm-modern-theme .input-group-addon{
    background:#091725 !important;
    color:#c7d0db !important;
    border-color:#2a4054 !important;
}

/* Tabs */
body.mdm-modern-theme .nav-tabs{
    border-bottom-color:#274157 !important;
}
body.mdm-modern-theme .nav-tabs>li>a{
    color:#9fb0c2 !important;
    background:transparent !important;
}
body.mdm-modern-theme .nav-tabs>li.active>a,
body.mdm-modern-theme .nav-tabs>li.active>a:hover,
body.mdm-modern-theme .nav-tabs>li.active>a:focus{
    background:#091725 !important;
    color:#fff !important;
    border-color:#274157 !important;
}

/* Buttons */
body.mdm-modern-theme .btn-primary,
body.mdm-modern-theme .btn-success,
body.mdm-modern-theme .btn-info{
    background:linear-gradient(135deg,#1183ff,#1761f1) !important;
    border-color:#167cff !important;
    color:#fff !important;
}
body.mdm-modern-theme .btn-default{
    background:#0a1826 !important;
    color:#dce4ec !important;
    border-color:#2a4054 !important;
}

/* Status labels and service state pills */
body.mdm-modern-theme .label,
body.mdm-modern-theme .badge{
    color:#fff !important;
}
body.mdm-modern-theme .label-success{background:#2e9b60 !important}
body.mdm-modern-theme .label-default{background:#495766 !important}
body.mdm-modern-theme .label-danger{background:#c63e4d !important}

/* Product/service icons and old glyphs */
body.mdm-modern-theme .product-status,
body.mdm-modern-theme .status{
    color:#c7d0db !important;
}

/* Modal */
body.mdm-modern-theme .modal-content{
    background:#07111c !important;
    color:#c7d0db !important;
    border-color:#274157 !important;
}
body.mdm-modern-theme .modal-header,
body.mdm-modern-theme .modal-footer{
    border-color:#203345 !important;
}

/* A few legacy Six components that otherwise stay white */
body.mdm-modern-theme .domain-checker-container,
body.mdm-modern-theme .domain-pricing,
body.mdm-modern-theme .domain-pricing .tld-pricing-header,
body.mdm-modern-theme .domain-pricing .tld-pricing-row,
body.mdm-modern-theme .invoice-container,
body.mdm-modern-theme .ticket-reply,
body.mdm-modern-theme .ticket-reply.staff,
body.mdm-modern-theme .summary-container,
body.mdm-modern-theme .product-details,
body.mdm-modern-theme .product-details-tab-container{
    background:#06111c !important;
    color:#c7d0db !important;
    border-color:#203345 !important;
}

/* Prevent generic legacy rules from repainting content white */
body.mdm-modern-theme .bg-white,
body.mdm-modern-theme .white-bg,
body.mdm-modern-theme [style*="background-color: #fff"],
body.mdm-modern-theme [style*="background: #fff"]{
    background:#06111c !important;
}


/* ============================================================
   MDM Modern v4 — footer parity with mdm-solutions.ro
   Do not use Bootstrap .container/.row for the footer layout.
   ============================================================ */
.mdm-footer{
    background:#010408 !important;
    border-top:1px solid rgba(255,255,255,.06);
    margin-top:0;
    color:#d9e1ea;
}
.mdm-footer-wrap{
    width:min(calc(100% - 64px),1480px);
    margin-left:auto;
    margin-right:auto;
}
.mdm-footer-benefits{
    display:grid !important;
    grid-template-columns:repeat(5,minmax(0,1fr)) !important;
    width:min(calc(100% - 64px),1480px) !important;
    max-width:none !important;
    padding:0 !important;
    margin-left:auto !important;
    margin-right:auto !important;
    border-bottom:1px solid rgba(255,255,255,.06);
}
.mdm-footer-benefit{
    min-width:0;
    min-height:112px;
    display:flex !important;
    align-items:center;
    justify-content:center;
    gap:12px;
    padding:26px 16px !important;
    border-bottom:0 !important;
    text-align:left;
}
.mdm-footer-benefit:not(:last-child){
    border-right:1px solid #172631 !important;
}
.mdm-footer-benefit i{
    width:42px;
    height:42px;
    flex:0 0 42px;
    border:1px solid #365474;
    border-radius:50%;
    display:grid;
    place-items:center;
    color:#6faaff;
    line-height:40px;
    text-align:center;
}
.mdm-footer-benefit strong{
    display:block;
    color:#fff;
    font-size:14px;
    white-space:nowrap;
}
.mdm-footer-benefit span{
    display:block;
    color:#8f9aaa;
    font-size:12px;
    margin-top:3px;
    white-space:nowrap;
}

.mdm-footer-main{
    padding:46px 0 34px !important;
}
.mdm-footer-grid{
    display:grid;
    grid-template-columns:minmax(280px,1.35fr) repeat(3,minmax(170px,1fr));
    column-gap:56px;
    align-items:start;
}
.mdm-footer-brand{
    text-align:center;
}
.mdm-footer-brand img{
    width:210px;
    margin:0 auto 18px;
    display:block;
}
.mdm-footer-brand p{
    max-width:390px;
    margin:0 auto;
    color:#9faaba;
    font-size:13px;
    line-height:1.7;
}
.mdm-footer-col h4{
    color:#fff;
    font-size:15px;
    margin:8px 0 15px;
}
.mdm-footer-col ul{
    padding:0;
    list-style:none;
    margin:0;
}
.mdm-footer-col li{
    color:#9faaba;
    font-size:13px;
    line-height:1.7;
    margin:7px 0;
}
.mdm-footer-col a{
    color:#9faaba;
}
.mdm-footer-col a:hover{
    color:#6faaff;
}
.mdm-footer-compliance{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:16px;
    padding:34px 0 4px;
}
.mdm-footer-bottom{
    border-top:1px solid rgba(255,255,255,.06);
    text-align:center;
    padding:19px;
    color:#778596;
    font-size:12px;
}

@media (max-width:1100px){
    .mdm-footer-wrap{width:min(calc(100% - 40px),1480px)}
    .mdm-footer-benefits{
        width:min(calc(100% - 40px),1480px) !important;
        grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    }
    .mdm-footer-benefit{
        border-bottom:1px solid #172631 !important;
    }
    .mdm-footer-benefit:nth-child(3n){
        border-right:0 !important;
    }
    .mdm-footer-grid{
        grid-template-columns:1.3fr 1fr 1fr;
        row-gap:36px;
    }
    .mdm-footer-brand{
        grid-column:1/-1;
    }
}
@media (max-width:760px){
    .mdm-footer-wrap{width:min(calc(100% - 32px),1480px)}
    .mdm-footer-benefits{
        width:min(calc(100% - 32px),1480px) !important;
        grid-template-columns:1fr !important;
    }
    .mdm-footer-benefit{
        border-right:0 !important;
        justify-content:flex-start;
    }
    .mdm-footer-benefit strong,
    .mdm-footer-benefit span{
        white-space:normal;
    }
    .mdm-footer-grid{
        grid-template-columns:1fr;
        text-align:center;
        row-gap:28px;
    }
    .mdm-footer-brand{grid-column:auto}
}

/* MDM_MODERN_BUILD_5_CACHE_BUST_ACTIVE */


/* ============================================================
   MDM Modern v6 — semantic WHMCS status pills
   Applies globally to services, invoices, tickets, domains etc.
   ============================================================ */

body.mdm-modern-theme .label,
body.mdm-modern-theme .badge,
body.mdm-modern-theme .status{
    font-weight:600;
}

/* WHMCS status pills */
body.mdm-modern-theme .status{
    background:#09131d !important;
    border:1px solid #344556 !important;
    color:#c4ced8 !important;
}

/* Positive / active / paid */
body.mdm-modern-theme .status-active,
body.mdm-modern-theme .status-paid,
body.mdm-modern-theme .status-completed,
body.mdm-modern-theme .status-answered,
body.mdm-modern-theme .status-delivered,
body.mdm-modern-theme .label-success,
body.mdm-modern-theme .badge-success{
    background:rgba(39,174,96,.12) !important;
    border-color:rgba(70,210,126,.55) !important;
    color:#59d98b !important;
}

/* Pending / processing / open */
body.mdm-modern-theme .status-pending,
body.mdm-modern-theme .status-pendingtransfer,
body.mdm-modern-theme .status-inprogress,
body.mdm-modern-theme .status-open,
body.mdm-modern-theme .status-customer-reply,
body.mdm-modern-theme .label-warning,
body.mdm-modern-theme .badge-warning{
    background:rgba(224,155,45,.12) !important;
    border-color:rgba(236,176,75,.55) !important;
    color:#efbd64 !important;
}

/* Problem / overdue / unpaid */
body.mdm-modern-theme .status-suspended,
body.mdm-modern-theme .status-overdue,
body.mdm-modern-theme .status-unpaid,
body.mdm-modern-theme .status-fraud,
body.mdm-modern-theme .status-cancelled,
body.mdm-modern-theme .label-danger,
body.mdm-modern-theme .badge-danger{
    background:rgba(207,61,77,.12) !important;
    border-color:rgba(229,84,100,.55) !important;
    color:#f06d7b !important;
}

/* Closed / terminated / inactive */
body.mdm-modern-theme .status-terminated,
body.mdm-modern-theme .status-closed,
body.mdm-modern-theme .status-expired,
body.mdm-modern-theme .status-inactive,
body.mdm-modern-theme .label-default,
body.mdm-modern-theme .badge-default{
    background:#090d12 !important;
    border-color:#3a4652 !important;
    color:#a7b0ba !important;
}

/* Informational */
body.mdm-modern-theme .label-info,
body.mdm-modern-theme .badge-info,
body.mdm-modern-theme .status-resolved{
    background:rgba(12,124,255,.12) !important;
    border-color:rgba(75,151,255,.55) !important;
    color:#75adff !important;
}

/* Six often renders service/invoice status inside a rounded .status span.
   Preserve the pill but never repaint it white. */
body.mdm-modern-theme span.status,
body.mdm-modern-theme .status{
    box-shadow:none !important;
}

/* MDM_MODERN_BUILD_6_STATUS_FIX */


/* ============================================================
   MDM Modern v7 — style WHMCS standard_cart without touching
   its Smarty/JS logic. Keep Order Form Template = standard_cart.
   ============================================================ */

body.mdm-modern-theme #order-standard_cart{
    --cart-bg:#02060b;
    --cart-panel:#06111c;
    --cart-panel-2:#091725;
    --cart-line:#203345;
    --cart-line-2:#2a4054;
    --cart-text:#f6f8fb;
    --cart-muted:#a7b2bf;
    --cart-blue:#0c7cff;
    color:var(--cart-text)!important;
    font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
}

body.mdm-modern-theme #order-standard_cart h1,
body.mdm-modern-theme #order-standard_cart h2,
body.mdm-modern-theme #order-standard_cart h3,
body.mdm-modern-theme #order-standard_cart h4,
body.mdm-modern-theme #order-standard_cart strong{
    color:var(--cart-text)!important;
}
body.mdm-modern-theme #order-standard_cart p,
body.mdm-modern-theme #order-standard_cart label,
body.mdm-modern-theme #order-standard_cart small,
body.mdm-modern-theme #order-standard_cart .text-muted{
    color:var(--cart-muted)!important;
}

/* Product cards and configuration surfaces */
body.mdm-modern-theme #order-standard_cart .product,
body.mdm-modern-theme #order-standard_cart .product-info,
body.mdm-modern-theme #order-standard_cart .panel,
body.mdm-modern-theme #order-standard_cart .well,
body.mdm-modern-theme #order-standard_cart .domain-selection-options,
body.mdm-modern-theme #order-standard_cart .domain-pricing,
body.mdm-modern-theme #order-standard_cart .spotlight-tld,
body.mdm-modern-theme #order-standard_cart .summary-container,
body.mdm-modern-theme #order-standard_cart .view-cart-items,
body.mdm-modern-theme #order-standard_cart .view-cart-tabs .tab-content{
    background:var(--cart-panel)!important;
    color:var(--cart-text)!important;
    border-color:var(--cart-line)!important;
    box-shadow:none!important;
}

body.mdm-modern-theme #order-standard_cart .panel-heading,
body.mdm-modern-theme #order-standard_cart .product header,
body.mdm-modern-theme #order-standard_cart .view-cart-items-header,
body.mdm-modern-theme #order-standard_cart .order-summary h2{
    background:var(--cart-panel-2)!important;
    color:#fff!important;
    border-color:var(--cart-line)!important;
}

/* Standard Cart product listing */
body.mdm-modern-theme #order-standard_cart .products .product{
    border:1px solid var(--cart-line)!important;
    border-radius:12px!important;
}
body.mdm-modern-theme #order-standard_cart .products .product:hover{
    border-color:#35628e!important;
}
body.mdm-modern-theme #order-standard_cart .products .product .product-pricing span,
body.mdm-modern-theme #order-standard_cart .price,
body.mdm-modern-theme #order-standard_cart .price-cycle{
    color:#78adff!important;
}

/* Cart contents */
body.mdm-modern-theme #order-standard_cart .view-cart-items-header{
    border:1px solid #274157!important;
}
body.mdm-modern-theme #order-standard_cart .view-cart-items{
    border:1px solid var(--cart-line)!important;
    border-top:0!important;
}
body.mdm-modern-theme #order-standard_cart .view-cart-items .item{
    background:var(--cart-panel)!important;
    color:#c7d0db!important;
    border-color:var(--cart-line)!important;
}
body.mdm-modern-theme #order-standard_cart .view-cart-items .item:nth-child(even){
    background:#071522!important;
}
body.mdm-modern-theme #order-standard_cart .view-cart-items .item-title,
body.mdm-modern-theme #order-standard_cart .view-cart-items .item-title span,
body.mdm-modern-theme #order-standard_cart .view-cart-items .item-price,
body.mdm-modern-theme #order-standard_cart .view-cart-items .item-price>span{
    color:#f6f8fb!important;
}
body.mdm-modern-theme #order-standard_cart .view-cart-items .item-group,
body.mdm-modern-theme #order-standard_cart .view-cart-items .item-domain,
body.mdm-modern-theme #order-standard_cart .view-cart-items .cycle{
    color:#9eabba!important;
}
body.mdm-modern-theme #order-standard_cart .btn-remove-from-cart{
    color:#f06d7b!important;
}

/* Order summary — preserve IDs/classes used by WHMCS JS */
body.mdm-modern-theme #order-standard_cart .order-summary{
    background:var(--cart-panel)!important;
    border:1px solid var(--cart-line)!important;
    border-radius:12px!important;
    overflow:hidden;
}
body.mdm-modern-theme #order-standard_cart .order-summary .summary-container{
    background:var(--cart-panel)!important;
    color:#c7d0db!important;
}
body.mdm-modern-theme #order-standard_cart .order-summary .subtotal,
body.mdm-modern-theme #order-standard_cart .order-summary .bordered-totals,
body.mdm-modern-theme #order-standard_cart .order-summary .recurring-totals,
body.mdm-modern-theme #order-standard_cart .order-summary .total-due-today{
    border-color:var(--cart-line)!important;
    color:#c7d0db!important;
}
body.mdm-modern-theme #order-standard_cart .order-summary #subtotal,
body.mdm-modern-theme #order-standard_cart .order-summary #recurring,
body.mdm-modern-theme #order-standard_cart .order-summary #totalDueToday{
    color:#f6f8fb!important;
}
body.mdm-modern-theme #order-standard_cart .order-summary #totalDueToday{
    color:#75adff!important;
}

/* Cart loading spinner */
body.mdm-modern-theme #order-standard_cart #orderSummaryLoader{
    background:rgba(6,17,28,.88)!important;
    color:#75adff!important;
}

/* Forms */
body.mdm-modern-theme #order-standard_cart .form-control,
body.mdm-modern-theme #order-standard_cart input[type=text],
body.mdm-modern-theme #order-standard_cart input[type=email],
body.mdm-modern-theme #order-standard_cart input[type=password],
body.mdm-modern-theme #order-standard_cart input[type=number],
body.mdm-modern-theme #order-standard_cart select,
body.mdm-modern-theme #order-standard_cart textarea{
    background:#07111c!important;
    color:#f6f8fb!important;
    border-color:var(--cart-line-2)!important;
}
body.mdm-modern-theme #order-standard_cart .form-control:focus{
    border-color:var(--cart-blue)!important;
    box-shadow:0 0 0 2px rgba(12,124,255,.12)!important;
}
body.mdm-modern-theme #order-standard_cart .input-group-addon{
    background:var(--cart-panel-2)!important;
    color:#c7d0db!important;
    border-color:var(--cart-line-2)!important;
}

/* Category sidebar */
body.mdm-modern-theme #order-standard_cart .list-group,
body.mdm-modern-theme #order-standard_cart .list-group-item,
body.mdm-modern-theme #order-standard_cart .categories-collapsed,
body.mdm-modern-theme #order-standard_cart .categories-collapsed .dropdown-menu{
    background:var(--cart-panel)!important;
    color:var(--cart-muted)!important;
    border-color:var(--cart-line)!important;
}
body.mdm-modern-theme #order-standard_cart .list-group-item.active,
body.mdm-modern-theme #order-standard_cart .list-group-item.active:hover,
body.mdm-modern-theme #order-standard_cart .list-group-item.active:focus{
    background:#0c3767!important;
    border-color:#1d6fc5!important;
    color:#fff!important;
}

/* Tables */
body.mdm-modern-theme #order-standard_cart .table,
body.mdm-modern-theme #order-standard_cart table{
    background:var(--cart-panel)!important;
    color:#c7d0db!important;
}
body.mdm-modern-theme #order-standard_cart .table>thead>tr>th{
    background:var(--cart-panel-2)!important;
    color:#fff!important;
    border-color:var(--cart-line)!important;
}
body.mdm-modern-theme #order-standard_cart .table>tbody>tr>td{
    background:var(--cart-panel)!important;
    color:#c7d0db!important;
    border-color:var(--cart-line)!important;
}

/* Buttons */
body.mdm-modern-theme #order-standard_cart .btn-primary,
body.mdm-modern-theme #order-standard_cart .btn-success{
    background:linear-gradient(135deg,#1183ff,#1761f1)!important;
    border-color:#167cff!important;
    color:#fff!important;
}
body.mdm-modern-theme #order-standard_cart .btn-default{
    background:#0a1826!important;
    border-color:var(--cart-line-2)!important;
    color:#dce4ec!important;
}

/* Tabs and alerts */
body.mdm-modern-theme #order-standard_cart .nav-tabs{
    border-color:var(--cart-line)!important;
}
body.mdm-modern-theme #order-standard_cart .nav-tabs>li>a{
    color:var(--cart-muted)!important;
}
body.mdm-modern-theme #order-standard_cart .nav-tabs>li.active>a,
body.mdm-modern-theme #order-standard_cart .nav-tabs>li.active>a:hover{
    background:var(--cart-panel-2)!important;
    color:#fff!important;
    border-color:var(--cart-line)!important;
}
body.mdm-modern-theme #order-standard_cart .alert-danger{
    background:rgba(207,61,77,.12)!important;
    color:#f29aa4!important;
    border-color:rgba(229,84,100,.5)!important;
}
body.mdm-modern-theme #order-standard_cart .alert-success{
    background:rgba(39,174,96,.12)!important;
    color:#72dda0!important;
    border-color:rgba(70,210,126,.5)!important;
}

body.mdm-modern-theme #order-standard_cart a{color:#7faeff}
body.mdm-modern-theme #order-standard_cart a:hover{color:#fff}

/* MDM_MODERN_BUILD_7_STANDARD_CART_SKIN */
