/* *****************************************************

    ** Custom Six — Client Area Theme **

    Domain Lagbe design system.
    Loaded after all.min.css, so everything here wins.

***************************************************** */

:root {
    --navy-dark: #0D2A45;
    --navy: #123B5E;
    --navy-deep: #0A2138;
    --teal: #2FA98C;
    --teal-dark: #23856E;
    --teal-tint: #EAF6F2;
    --teal-tint-2: #D9F0E8;
    --teal-line: #CDEBE2;
    --sky: #2E9FD6;
    --orange: #EE9F3C;
    --orange-dark: #DC8B22;
    --red: #D2503A;
    --ink: #1D2733;
    --ink-dim: #64717D;
    --ink-faint: #94A1AC;
    --bg: #F5F7F9;
    --line: #E4E8EC;
    --white: #FFFFFF;
    --font-head: 'Poppins', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-body: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* -----------------------------------------------------
   1. Base
----------------------------------------------------- */

body.cs-theme,
body.cs-theme input,
body.cs-theme button,
body.cs-theme select,
body.cs-theme textarea {
    font-family: var(--font-body);
    color: var(--ink);
}

body.cs-theme {
    background: var(--bg);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

body.cs-theme h1,
body.cs-theme h2,
body.cs-theme h3,
body.cs-theme h4,
body.cs-theme h5,
body.cs-theme h6,
body.cs-theme .panel-title {
    font-family: var(--font-head);
    font-weight: 600;
    color: var(--ink);
}

body.cs-theme a {
    color: var(--teal-dark);
}

body.cs-theme a:hover,
body.cs-theme a:focus {
    color: var(--teal);
    text-decoration: none;
}

body.cs-theme hr {
    border-top-color: var(--line);
}

body.cs-theme .text-muted {
    color: var(--ink-faint);
}

/* -----------------------------------------------------
   2. Top bar
----------------------------------------------------- */

body.cs-theme section#header {
    display: none;
}

body.cs-theme section#main-menu {
    background-color: var(--white);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: 0 1px 3px rgba(13, 42, 69, 0.04);
}

body.cs-theme .navbar-main {
    background-color: transparent;
    border: 0;
    margin-bottom: 0;
    min-height: 70px;
    font-family: var(--font-body);
    font-size: 14.5px;
}

/* Desktop: brand | primary nav | utilities all on one row */
@media (min-width: 992px) {
    body.cs-theme .navbar-main .container {
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
        min-height: 70px;
    }
    body.cs-theme .navbar-main .container:before,
    body.cs-theme .navbar-main .container:after {
        display: none;
    }
    body.cs-theme .navbar-main .navbar-header {
        float: none;
        flex: 0 0 auto;
    }
    body.cs-theme .navbar-main .navbar-collapse {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        flex: 1 1 auto;
        min-width: 0;
        padding-left: 0;
        padding-right: 0;
        border-top: 0;
        box-shadow: none;
    }
    body.cs-theme .navbar-main .navbar-collapse:before,
    body.cs-theme .navbar-main .navbar-collapse:after {
        display: none;
    }
    body.cs-theme .navbar-main .navbar-nav {
        float: none;
        margin: 0;
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
    }
    body.cs-theme .navbar-main .cs-nav-primary {
        flex: 0 0 auto;
        overflow: visible;
    }
    body.cs-theme .navbar-main .cs-nav-primary > li {
        flex: 0 0 auto;
    }
    body.cs-theme .navbar-main .cs-nav-utility {
        flex: 0 0 auto;
        margin-left: auto;
        padding-left: 10px;
    }
    body.cs-theme .navbar-main .cs-nav-utility > li {
        flex: 0 0 auto;
    }
    body.cs-theme .navbar-main .navbar-nav > li {
        float: none;
    }
}

/* Brand */
body.cs-theme .cs-brand {
    float: left;
    display: block;
    padding: 20px 20px 20px 0;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 21px;
    white-space: nowrap;
    line-height: 1;
    color: var(--teal-dark);
}

body.cs-theme .cs-brand:hover,
body.cs-theme .cs-brand:focus {
    color: var(--teal);
}

body.cs-theme .cs-brand img {
    max-height: 42px;
    width: auto;
}

body.cs-theme .cs-brand-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--orange);
    margin-right: 9px;
    vertical-align: middle;
    position: relative;
    top: -2px;
}

/* Primary nav links */
body.cs-theme .navbar-main .navbar-nav > li > a {
    color: var(--ink-dim);
    font-weight: 500;
    font-size: 14.5px;
    padding: 10px 13px;
    margin: 0 2px;
    border-radius: 6px;
    line-height: 1.4;
    white-space: nowrap;
}

body.cs-theme .navbar-main .navbar-nav > li > a:hover,
body.cs-theme .navbar-main .navbar-nav > li > a:focus,
body.cs-theme .navbar-main .navbar-nav > .active > a,
body.cs-theme .navbar-main .navbar-nav > .active > a:hover,
body.cs-theme .navbar-main .navbar-nav > .active > a:focus,
body.cs-theme .navbar-main .navbar-nav > .open > a,
body.cs-theme .navbar-main .navbar-nav > .open > a:hover,
body.cs-theme .navbar-main .navbar-nav > .open > a:focus {
    background-color: var(--teal-tint);
    color: var(--teal-dark);
}

body.cs-theme .navbar-main li.account,
body.cs-theme .navbar-main li.account > a {
    background-color: transparent;
}

/* Utility icons on the right */
body.cs-theme .cs-nav-utility > li > a {
    color: var(--ink-dim);
}

body.cs-theme .cs-nav-utility > li.cs-util-item > a {
    position: relative;
    background: var(--bg);
    border: 1px solid var(--line);
    width: 38px;
    height: 38px;
    padding: 0;
    margin: 0 0 0 8px;
    border-radius: 8px;
    text-align: center;
    line-height: 36px;
    font-size: 15px;
}

body.cs-theme .cs-nav-utility > li.cs-util-item > a:hover,
body.cs-theme .cs-nav-utility > li.cs-util-item > a:focus {
    background: var(--teal-tint);
    border-color: var(--teal-line);
    color: var(--teal-dark);
}

body.cs-theme .cs-util-label {
    display: none;
}

body.cs-theme .cs-util-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 9px;
    background: var(--red);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    line-height: 17px;
}

/* Account / profile chip (secondary navbar) */
body.cs-theme .cs-nav-utility > li.dropdown > a {
    display: flex;
    align-items: center;
    margin-left: 12px;
    padding: 8px 12px 8px 14px;
    border-left: 1px solid var(--line);
    border-radius: 0;
    font-weight: 600;
    font-size: 14px;
    color: var(--ink);
    white-space: nowrap;
}

/* Avatar circle in front of the account name */
body.cs-theme .cs-nav-utility > li.dropdown > a:before {
    content: "\f007";
    font-family: "Font Awesome 5 Free", "Font Awesome 6 Free", sans-serif;
    font-weight: 900;
    font-size: 13px;
    width: 34px;
    height: 34px;
    min-width: 34px;
    margin-right: 10px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

body.cs-theme .cs-nav-utility > li.dropdown > a:hover,
body.cs-theme .cs-nav-utility > li.dropdown > a:focus {
    background: transparent;
    color: var(--teal-dark);
}

body.cs-theme .cs-util-login > a,
body.cs-theme .cs-util-register > a {
    color: var(--ink-dim);
    font-weight: 500;
}

@media (min-width: 992px) {
    body.cs-theme .cs-util-logout > a {
        width: 38px;
        height: 38px;
        padding: 0;
        margin-left: 8px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: var(--bg);
        color: var(--ink-dim);
        text-align: center;
        line-height: 36px;
        font-size: 15px;
    }
    body.cs-theme .cs-util-logout > a:hover {
        background: #FBEAE7;
        border-color: #F3D3CC;
        color: var(--red);
    }
}

body.cs-theme .navbar-main .dropdown-menu {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(13, 42, 69, 0.10);
    padding: 6px;
    margin-top: 4px;
}

body.cs-theme .navbar-main .dropdown-menu > li > a {
    color: var(--ink-dim);
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 14px;
}

body.cs-theme .navbar-main .dropdown-menu > li > a:hover,
body.cs-theme .navbar-main .dropdown-menu > li > a:focus,
body.cs-theme .navbar-main .navbar-nav .dropdown-menu > .active > a {
    background: var(--teal-tint);
    color: var(--teal-dark);
}

body.cs-theme .navbar-main .navbar-toggle {
    margin: 18px 0;
    border: 1px solid var(--line);
    border-radius: 8px;
}

body.cs-theme .navbar-main .navbar-toggle .icon-bar {
    background-color: var(--ink-dim);
}

@media (max-width: 991px) {
    body.cs-theme .navbar-main .navbar-nav > li > a {
        margin: 2px 0;
        padding: 9px 14px;
    }
    body.cs-theme .cs-nav-utility > li.cs-util-item > a {
        width: auto;
        height: auto;
        text-align: left;
        line-height: 1.4;
        padding: 9px 14px;
        margin: 2px 0;
        border: 0;
        background: transparent;
    }
    body.cs-theme .cs-util-label {
        display: inline;
        margin-left: 8px;
    }
    body.cs-theme .cs-util-badge {
        position: static;
        margin-left: 6px;
    }
    body.cs-theme .cs-nav-utility > li.dropdown > a {
        border-left: 0;
        padding-left: 14px;
        margin-left: 0;
    }
    body.cs-theme .navbar-main .navbar-collapse {
        border-top: 1px solid var(--line);
        padding-bottom: 10px;
    }
}

/* Popovers (language / notifications) */
body.cs-theme .popover {
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(13, 42, 69, 0.12);
}

/* -----------------------------------------------------
   3. Page header
----------------------------------------------------- */

body.cs-theme #cs-pagehead {
    background: linear-gradient(150deg, var(--navy-dark) 0%, var(--navy-deep) 100%);
    padding: 42px 0 46px;
}

body.cs-theme #cs-pagehead h1 {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 30px;
    color: var(--white);
    margin: 0 0 10px;
    line-height: 1.25;
}

body.cs-theme #cs-pagehead h1 small {
    display: block;
    margin-top: 6px;
    font-size: 15px;
    font-weight: 400;
    color: #9FB4C7;
}

body.cs-theme #cs-pagehead .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 13.5px;
    color: #9FB4C7;
    border-radius: 0;
}

body.cs-theme #cs-pagehead .breadcrumb > li + li:before {
    content: "/";
    color: #5D7690;
    padding: 0 6px;
}

body.cs-theme #cs-pagehead .breadcrumb > li > a {
    color: #9FB4C7;
}

body.cs-theme #cs-pagehead .breadcrumb > li > a:hover {
    color: var(--white);
}

body.cs-theme #cs-pagehead .breadcrumb > .active {
    color: var(--white);
    font-weight: 500;
}

/* In-page header (login, cart, etc.) */
body.cs-theme div.header-lined h1 {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 24px;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
    padding-bottom: 12px;
    margin-bottom: 16px;
}

body.cs-theme div.header-lined h1 small {
    color: var(--ink-faint);
    font-size: 14px;
}

body.cs-theme div.header-lined .breadcrumb {
    background: transparent;
    padding-left: 0;
    font-size: 13px;
    color: var(--ink-faint);
}

/* -----------------------------------------------------
   4. Main body / layout
----------------------------------------------------- */

body.cs-theme section#main-body {
    padding: 32px 0 64px;
    background: var(--bg);
}

body.cs-theme .container {
    max-width: 1180px;
}

@media (min-width: 992px) {
    body.cs-theme #main-body .sidebar {
        width: 27%;
    }
    body.cs-theme #main-body .main-content.col-md-9 {
        width: 73%;
        padding-left: 12px;
    }
}

/* -----------------------------------------------------
   5. Cards (Bootstrap panels)
----------------------------------------------------- */

body.cs-theme .panel {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: none;
    margin-bottom: 20px;
}

body.cs-theme .panel > .panel-heading,
body.cs-theme .panel-default > .panel-heading,
body.cs-theme .panel-primary > .panel-heading,
body.cs-theme .panel-sidebar > .panel-heading {
    background: var(--white);
    background-image: none;
    color: var(--ink);
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 10px 10px 0 0;
    padding: 15px 20px;
    text-shadow: none;
}

body.cs-theme .panel .panel-title {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 15.5px;
    color: var(--ink);
}

body.cs-theme .panel .panel-title strong {
    font-weight: 600;
}

body.cs-theme .panel .panel-title a {
    color: var(--ink);
}

body.cs-theme .panel-body {
    padding: 18px 20px;
    color: var(--ink-dim);
    font-size: 14px;
}

body.cs-theme .panel-body p:last-child {
    margin-bottom: 0;
}

body.cs-theme .panel-footer {
    background: var(--white);
    border-top: 1px solid var(--line);
    border-radius: 0 0 10px 10px;
    padding: 14px 20px;
    color: var(--ink-faint);
    font-size: 13px;
}

body.cs-theme .panel-footer:empty {
    display: none;
}

/* Kill the coloured accent bars, keep a subtle tint instead */
body.cs-theme .panel[class*="panel-accent-"] {
    border-top: 1px solid var(--line);
}

body.cs-theme .panel-accent-blue > .panel-heading,
body.cs-theme .panel-accent-green > .panel-heading,
body.cs-theme .panel-accent-red > .panel-heading,
body.cs-theme .panel-accent-gold > .panel-heading,
body.cs-theme .panel-accent-magenta > .panel-heading {
    background: var(--white);
    color: var(--ink);
}

body.cs-theme .panel .panel-title .btn,
body.cs-theme .panel-heading .btn-xs {
    background: var(--teal-tint) !important;
    border-color: transparent !important;
    color: var(--teal-dark) !important;
    font-size: 12.5px;
    font-weight: 600;
    border-radius: 6px;
    padding: 5px 12px;
}

body.cs-theme .panel .panel-title .btn:hover {
    background: var(--teal-tint-2) !important;
}

/* List groups inside cards */
body.cs-theme .list-group {
    border-radius: 0 0 10px 10px;
}

body.cs-theme .list-group-item {
    border-color: var(--line);
    border-left: 0;
    border-right: 0;
    padding: 13px 20px;
    font-size: 14px;
    color: var(--ink-dim);
    background: var(--white);
}

body.cs-theme .list-group-item:first-child {
    border-top: 0;
    border-radius: 0;
}

body.cs-theme .list-group-item:last-child {
    border-bottom: 0;
    border-radius: 0 0 10px 10px;
}

body.cs-theme a.list-group-item:hover,
body.cs-theme a.list-group-item:focus {
    background: var(--teal-tint);
    color: var(--teal-dark);
}

body.cs-theme a.list-group-item.active,
body.cs-theme a.list-group-item.active:hover,
body.cs-theme a.list-group-item.active:focus {
    background: var(--teal-tint);
    border-color: var(--line);
    color: var(--teal-dark);
    font-weight: 600;
}

body.cs-theme .list-group-item .badge {
    background: var(--teal-tint);
    color: var(--teal-dark);
    font-weight: 600;
}

body.cs-theme .sidebar-menu-item-icon,
body.cs-theme .list-group-item > i {
    width: 18px;
    text-align: center;
    margin-right: 6px;
    color: var(--ink-faint);
}

/* -----------------------------------------------------
   6. Sidebar
----------------------------------------------------- */

body.cs-theme .panel-sidebar {
    border-radius: 10px;
}

body.cs-theme .panel-sidebar > .panel-heading .panel-title {
    font-size: 14.5px;
}

body.cs-theme .panel-minimise {
    color: var(--ink-faint);
    font-size: 12px;
    margin-top: 4px;
}

/* Support PIN panel — teal highlight card, like the reference */
body.cs-theme .sidebar [menuItemName="Support PIN"],
body.cs-theme .sidebar #Support_PIN,
body.cs-theme .sidebar .panel-support-pin {
    background: var(--teal-tint);
    border-color: var(--teal-line);
}

body.cs-theme .sidebar [menuItemName="Support PIN"] > .panel-heading,
body.cs-theme .sidebar #Support_PIN > .panel-heading,
body.cs-theme .sidebar .panel-support-pin > .panel-heading {
    background: transparent;
    border-bottom: 0;
    padding-bottom: 0;
}

body.cs-theme .sidebar [menuItemName="Support PIN"] .panel-title,
body.cs-theme .sidebar #Support_PIN .panel-title,
body.cs-theme .sidebar .panel-support-pin .panel-title {
    color: var(--teal-dark);
    font-size: 14px;
}

body.cs-theme .sidebar [menuItemName="Support PIN"] .panel-body,
body.cs-theme .sidebar #Support_PIN .panel-body,
body.cs-theme .sidebar .panel-support-pin .panel-body {
    background: transparent;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 24px;
    color: var(--navy-deep);
    letter-spacing: 0.02em;
    padding-top: 8px;
}

/* -----------------------------------------------------
   7. Buttons
----------------------------------------------------- */

body.cs-theme .btn {
    font-family: var(--font-body);
    font-size: 13.5px;
    font-weight: 600;
    border-radius: 7px;
    padding: 9px 16px;
    border: 1px solid transparent;
    text-shadow: none;
    box-shadow: none;
    background-image: none;
}

body.cs-theme .btn-lg {
    font-size: 15px;
    padding: 12px 22px;
    border-radius: 8px;
}

body.cs-theme .btn-sm,
body.cs-theme .btn-group-sm > .btn {
    font-size: 12.5px;
    padding: 6px 12px;
    border-radius: 6px;
}

body.cs-theme .btn-xs {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 5px;
}

body.cs-theme .btn-default {
    background: var(--white);
    border-color: var(--line);
    color: var(--ink);
}

body.cs-theme .btn-default:hover,
body.cs-theme .btn-default:focus,
body.cs-theme .btn-default:active {
    background: var(--bg);
    border-color: var(--line);
    color: var(--ink);
}

body.cs-theme .btn-primary {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--white);
}

body.cs-theme .btn-primary:hover,
body.cs-theme .btn-primary:focus,
body.cs-theme .btn-primary:active {
    background: var(--navy-deep);
    border-color: var(--navy-deep);
    color: var(--white);
}

body.cs-theme .btn-success {
    background: var(--teal);
    border-color: var(--teal);
    color: var(--white);
}

body.cs-theme .btn-success:hover,
body.cs-theme .btn-success:focus {
    background: var(--teal-dark);
    border-color: var(--teal-dark);
    color: var(--white);
}

body.cs-theme .btn-info {
    background: var(--teal-tint);
    border-color: transparent;
    color: var(--teal-dark);
}

body.cs-theme .btn-info:hover,
body.cs-theme .btn-info:focus {
    background: var(--teal-tint-2);
    color: var(--teal-dark);
}

body.cs-theme .btn-warning {
    background: var(--orange);
    border-color: var(--orange);
    color: var(--white);
}

body.cs-theme .btn-warning:hover,
body.cs-theme .btn-warning:focus {
    background: var(--orange-dark);
    border-color: var(--orange-dark);
    color: var(--white);
}

body.cs-theme .btn-danger {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
}

body.cs-theme .btn-danger:hover,
body.cs-theme .btn-danger:focus {
    background: #B94330;
    border-color: #B94330;
    color: var(--white);
}

/* -----------------------------------------------------
   8. Forms
----------------------------------------------------- */

body.cs-theme .form-control {
    border: 1px solid var(--line);
    border-radius: 7px;
    box-shadow: none;
    height: 40px;
    padding: 8px 14px;
    font-size: 14px;
    color: var(--ink);
}

body.cs-theme textarea.form-control {
    height: auto;
}

body.cs-theme .form-control:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(47, 169, 140, 0.14);
}

body.cs-theme .input-group-lg > .form-control {
    height: 52px;
    font-size: 15px;
    border-radius: 7px;
}

body.cs-theme label,
body.cs-theme .control-label {
    font-weight: 600;
    font-size: 13.5px;
    color: var(--ink);
}

/* -----------------------------------------------------
   9. Labels, badges, alerts, tables
----------------------------------------------------- */

body.cs-theme .label {
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    display: inline-block;
}

body.cs-theme .label-success,
body.cs-theme .label-active {
    background: var(--teal-tint);
    color: var(--teal-dark);
}

body.cs-theme .label-default {
    background: var(--bg);
    color: var(--ink-dim);
}

body.cs-theme .label-info {
    background: #E6F2FA;
    color: #1F7FAE;
}

body.cs-theme .label-warning {
    background: #FDF1E0;
    color: var(--orange-dark);
}

body.cs-theme .label-danger {
    background: #FBEAE7;
    color: var(--red);
}

body.cs-theme .badge {
    background: var(--bg);
    color: var(--ink-dim);
    font-weight: 600;
    border-radius: 20px;
}

body.cs-theme .alert {
    border-radius: 10px;
    border: 1px solid var(--line);
    padding: 14px 18px;
    font-size: 14px;
}

body.cs-theme .alert-success {
    background: var(--teal-tint);
    border-color: var(--teal-line);
    color: var(--teal-dark);
}

body.cs-theme .alert-info {
    background: #E9F4FB;
    border-color: #CDE6F4;
    color: #1F7FAE;
}

body.cs-theme .alert-warning {
    background: #FDF4E7;
    border-color: #F6E1C2;
    color: var(--orange-dark);
}

body.cs-theme .alert-danger {
    background: #FBEEEB;
    border-color: #F3D3CC;
    color: var(--red);
}

body.cs-theme .table > thead > tr > th {
    border-bottom: 1px solid var(--line);
    background: var(--bg);
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 13px;
    color: var(--ink-dim);
    text-transform: none;
}

body.cs-theme .table > tbody > tr > td {
    border-top: 1px solid var(--line);
    padding: 13px 12px;
    font-size: 14px;
    vertical-align: middle;
}

body.cs-theme .table-striped > tbody > tr:nth-of-type(odd) {
    background: #FAFBFC;
}

body.cs-theme .panel > .table:last-child,
body.cs-theme .panel > .table-responsive:last-child > .table:last-child {
    border-radius: 0 0 10px 10px;
    overflow: hidden;
}

body.cs-theme .nav-tabs {
    border-bottom: 1px solid var(--line);
}

body.cs-theme .nav-tabs > li > a {
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    color: var(--ink-dim);
    font-weight: 500;
}

body.cs-theme .nav-tabs > li.active > a,
body.cs-theme .nav-tabs > li.active > a:hover,
body.cs-theme .nav-tabs > li.active > a:focus {
    border: 0;
    border-bottom: 2px solid var(--teal);
    background: transparent;
    color: var(--teal-dark);
    font-weight: 600;
}

/* -----------------------------------------------------
   10. Client area home
----------------------------------------------------- */

body.cs-theme .cs-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

@media (max-width: 767px) {
    body.cs-theme .cs-stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

body.cs-theme .cs-stat {
    position: relative;
    display: block;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 22px 20px;
    color: var(--ink);
}

body.cs-theme .cs-stat:hover {
    border-color: var(--teal-line);
    box-shadow: 0 4px 14px rgba(13, 42, 69, 0.06);
}

body.cs-theme .cs-stat .cs-stat-ic {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--teal-tint);
    color: var(--teal-dark);
    font-size: 14px;
    line-height: 34px;
    text-align: center;
}

body.cs-theme .cs-stat .cs-stat-num {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 34px;
    line-height: 1.1;
    color: var(--navy-deep);
}

body.cs-theme .cs-stat .cs-stat-lbl {
    font-size: 13.5px;
    color: var(--ink-dim);
    margin-top: 4px;
}

body.cs-theme .cs-stat.cs-stat-alert .cs-stat-num {
    color: var(--red);
}

body.cs-theme .cs-stat.cs-stat-alert .cs-stat-ic {
    background: #FBEAE7;
    color: var(--red);
}

body.cs-theme .cs-stat .cs-stat-num {
    padding-right: 44px;
}

/* KB search */
body.cs-theme .home-kb-search {
    position: relative;
    margin-bottom: 20px;
}

body.cs-theme .home-kb-search .form-control {
    height: 48px;
    padding-left: 44px;
    border-radius: 10px;
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: none;
    font-size: 14.5px;
}

body.cs-theme .home-kb-search i {
    position: absolute;
    left: 32px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    color: var(--ink-faint);
    font-size: 15px;
    pointer-events: none;
}

/* Active services rows */
body.cs-theme .div-service-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid var(--line);
}

body.cs-theme .div-service-item:first-child {
    border-top: 0;
}

body.cs-theme .div-service-item:hover {
    background: #FAFBFC;
    cursor: pointer;
}

body.cs-theme .div-service-name .font-weight-bold {
    font-weight: 600;
    font-size: 14.5px;
    color: var(--ink);
    display: block;
}

body.cs-theme .div-service-name .text-domain {
    color: var(--ink-faint);
    font-size: 13px;
}

body.cs-theme .div-service-status .label-placeholder {
    display: none;
}

/* Domain search panel inside home panels */
body.cs-theme .panel .input-group .form-control {
    border-radius: 7px 0 0 7px;
}

body.cs-theme .panel .input-group-btn .btn {
    border-radius: 0 7px 7px 0;
    background: var(--teal);
    border-color: var(--teal);
    color: var(--white);
}

body.cs-theme .panel .input-group-btn .btn:hover {
    background: var(--teal-dark);
    border-color: var(--teal-dark);
}

/* -----------------------------------------------------
   11. Home page banner
----------------------------------------------------- */

body.cs-theme section#home-banner {
    background: linear-gradient(150deg, var(--navy-dark) 0%, var(--navy-deep) 100%);
    padding: 64px 0 70px;
}

body.cs-theme section#home-banner h2 {
    font-family: var(--font-head);
    font-weight: 600;
    color: var(--white);
    font-size: 30px;
    margin-bottom: 26px;
}

body.cs-theme section#home-banner .form-control {
    border-radius: 7px 0 0 7px;
    border: 0;
}

body.cs-theme section#home-banner .input-group-btn .btn,
body.cs-theme section#home-banner .btn.search,
body.cs-theme section#home-banner .btn.transfer {
    background: var(--teal);
    border: 0;
    color: var(--white);
    font-weight: 600;
    height: 52px;
    padding: 0 22px;
    border-radius: 0;
}

body.cs-theme section#home-banner .btn.transfer {
    background: var(--navy);
    border-radius: 0 7px 7px 0;
}

body.cs-theme .home-shortcuts {
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 22px 0;
}

body.cs-theme .home-shortcuts a {
    color: var(--ink-dim);
}

body.cs-theme .home-shortcuts a:hover {
    color: var(--teal-dark);
}

body.cs-theme .home-shortcuts i {
    color: var(--teal);
}

/* -----------------------------------------------------
   12. Footer
----------------------------------------------------- */

body.cs-theme section#footer {
    background: var(--white);
    border-top: 1px solid var(--line);
    padding: 26px 0;
    color: var(--ink-faint);
    font-size: 13px;
    text-align: center;
}

body.cs-theme section#footer a.back-to-top {
    background: var(--bg);
    border: 1px solid var(--line);
    color: var(--ink-dim);
    border-radius: 8px;
}

/* -----------------------------------------------------
   13. Misc
----------------------------------------------------- */

body.cs-theme .modal-content {
    border: 0;
    border-radius: 12px;
    overflow: hidden;
}

body.cs-theme .modal-content.panel-primary > .modal-header {
    background: var(--white);
    color: var(--ink);
    border-bottom: 1px solid var(--line);
}

body.cs-theme .well {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: none;
}

body.cs-theme .pagination > li > a,
body.cs-theme .pagination > li > span {
    color: var(--ink-dim);
    border-color: var(--line);
}

body.cs-theme .pagination > .active > a,
body.cs-theme .pagination > .active > span {
    background: var(--teal);
    border-color: var(--teal);
}

body.cs-theme .logincontainer {
    max-width: 620px;
    margin: 40px auto;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 32px;
}

body.cs-theme :focus-visible {
    outline: 2px solid var(--sky);
    outline-offset: 2px;
}

/* -----------------------------------------------------
   14. Professional polish pass
----------------------------------------------------- */

/* Narrower screens: tighten the nav so nothing collides */
@media (min-width: 992px) and (max-width: 1279px) {
    body.cs-theme .navbar-main .navbar-nav > li > a {
        padding: 10px 9px;
        font-size: 13.5px;
    }
    body.cs-theme .cs-brand {
        font-size: 19px;
        padding-right: 12px;
    }
    body.cs-theme .cs-nav-utility > li.cs-util-item > a {
        width: 34px;
        height: 34px;
        line-height: 32px;
        margin-left: 5px;
    }
    body.cs-theme .cs-nav-utility > li.dropdown > a {
        margin-left: 6px;
        padding-left: 10px;
        font-size: 13.5px;
    }
    body.cs-theme .cs-nav-utility > li.dropdown > a:before {
        width: 30px;
        height: 30px;
        min-width: 30px;
        margin-right: 8px;
    }
}

/* Card heading icons pick up the accent colour */
body.cs-theme .panel > .panel-heading .panel-title > i,
body.cs-theme .panel-sidebar > .panel-heading .panel-title > i {
    color: var(--teal);
    margin-right: 4px;
}

body.cs-theme .panel > .panel-heading .panel-title .panel-minimise {
    color: var(--ink-faint);
}

/* Empty / helper states inside cards */
body.cs-theme .panel-body .text-center,
body.cs-theme .panel-body > p {
    color: var(--ink-dim);
}

body.cs-theme .panel-body a {
    font-weight: 500;
}

/* Sidebar: full-width action buttons like the reference */
body.cs-theme .sidebar .panel-body .btn,
body.cs-theme .sidebar .panel-footer .btn {
    width: 100%;
    display: block;
}

body.cs-theme .sidebar .panel-body .btn + .btn,
body.cs-theme .sidebar .panel-footer .btn + .btn {
    margin-top: 8px;
}

body.cs-theme .sidebar .panel-body .btn-primary,
body.cs-theme .sidebar .panel-body .btn-success {
    background: var(--teal-tint);
    border-color: transparent;
    color: var(--teal-dark);
}

body.cs-theme .sidebar .panel-body .btn-primary:hover,
body.cs-theme .sidebar .panel-body .btn-success:hover {
    background: var(--teal-tint-2);
    color: var(--teal-dark);
}

/* Client address block in the sidebar */
body.cs-theme .sidebar .panel-body {
    font-size: 13.5px;
    line-height: 1.65;
    color: var(--ink-dim);
}

body.cs-theme .sidebar .panel-body strong,
body.cs-theme .sidebar .panel-body b {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 15px;
    color: var(--ink);
    display: block;
    margin-bottom: 6px;
}

/* Domain register / search widget inside a card */
body.cs-theme .panel-body .input-group {
    width: 100%;
}

body.cs-theme .panel-body .input-group .form-control {
    height: 44px;
}

body.cs-theme .panel-body .input-group-btn .btn {
    height: 44px;
    padding: 0 18px;
}

body.cs-theme .panel-body .input-group-btn .btn + .btn {
    border-radius: 0 7px 7px 0;
    background: var(--navy);
    border-color: var(--navy);
}

body.cs-theme .panel-body .input-group-btn .btn + .btn:hover {
    background: var(--navy-deep);
    border-color: var(--navy-deep);
}

/* Equal breathing room between the two home columns */
body.cs-theme .client-home-panels .panel {
    margin-bottom: 20px;
}

/* Footer link row */
body.cs-theme section#footer p {
    margin: 0;
}

/* Slightly stronger card separation on hover for clickable rows */
body.cs-theme .list-group-item[href]:hover {
    background: var(--teal-tint);
}

/* Tidy the mobile collapse */
@media (max-width: 991px) {
    body.cs-theme .cs-nav-utility > li.dropdown > a:before {
        width: 28px;
        height: 28px;
        min-width: 28px;
        margin-right: 8px;
        font-size: 12px;
    }
    body.cs-theme #cs-pagehead {
        padding: 28px 0 30px;
    }
    body.cs-theme #cs-pagehead h1 {
        font-size: 24px;
    }
    body.cs-theme section#main-body {
        padding: 22px 0 44px;
    }
}

/* -----------------------------------------------------
   15. Sidebar cards — reference layout
----------------------------------------------------- */

/* Tinted headings on every sidebar card */
body.cs-theme .sidebar .panel-sidebar > .panel-heading {
    background: var(--teal-tint);
    border-bottom: 1px solid var(--teal-line);
    border-radius: 10px 10px 0 0;
    padding: 14px 20px;
}

body.cs-theme .sidebar .panel-sidebar > .panel-heading .panel-title {
    color: var(--teal-dark);
    font-size: 14.5px;
}

body.cs-theme .sidebar .panel-sidebar > .panel-heading .panel-title > i {
    color: var(--teal-dark);
}

body.cs-theme .sidebar .panel-sidebar > .panel-heading .panel-minimise {
    color: var(--teal-dark);
    opacity: 0.55;
}

/* --- Client Details card: logo, name, address, actions --- */

body.cs-theme .sidebar .cs-item-client-details > .panel-heading {
    display: none;
}

body.cs-theme .sidebar .cs-item-client-details > .panel-body {
    padding: 24px 22px;
}

body.cs-theme .cs-client-logo {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: var(--navy);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    overflow: hidden;
}

body.cs-theme .cs-client-logo i {
    font-size: 24px;
}

body.cs-theme .cs-client-logo img {
    max-width: 40px;
    max-height: 40px;
}

body.cs-theme .sidebar .cs-item-client-details .panel-body {
    font-size: 13.5px;
    line-height: 1.65;
    color: var(--ink-dim);
}

/* Update + Logout side by side */
body.cs-theme .sidebar .cs-item-client-details .panel-body .btn {
    width: 48%;
    display: inline-block;
    margin: 14px 0 0;
    vertical-align: top;
}

body.cs-theme .sidebar .cs-item-client-details .panel-body .btn:first-of-type {
    margin-right: 3%;
}

body.cs-theme .sidebar .cs-item-client-details .panel-body .btn-primary,
body.cs-theme .sidebar .cs-item-client-details .panel-body .btn-success {
    background: var(--teal-tint);
    border-color: transparent;
    color: var(--teal-dark);
}

body.cs-theme .cs-btn-logout {
    background: var(--white);
    border-color: var(--line);
    color: var(--ink);
}

body.cs-theme .cs-btn-logout:hover {
    background: var(--bg);
    color: var(--ink);
}

/* --- Support PIN card --- */

body.cs-theme .sidebar .cs-item-support-pin {
    background: var(--teal-tint);
    border-color: var(--teal-line);
}

body.cs-theme .sidebar .cs-item-support-pin > .panel-heading {
    background: transparent;
    border-bottom: 0;
    padding-bottom: 0;
}

body.cs-theme .sidebar .cs-item-support-pin > .panel-body {
    background: transparent;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 26px;
    color: var(--navy-deep);
    letter-spacing: 0.02em;
    padding: 8px 20px 20px;
}

/* -----------------------------------------------------
   16. Bigger, calmer stat cards
----------------------------------------------------- */

body.cs-theme .cs-stat {
    padding: 30px 20px 26px;
    text-align: center;
}

body.cs-theme .cs-stat .cs-stat-num {
    font-size: 46px;
    padding-right: 0;
    line-height: 1;
}

body.cs-theme .cs-stat .cs-stat-lbl {
    font-size: 14px;
    margin-top: 12px;
    font-weight: 500;
}

body.cs-theme .cs-stat .cs-stat-ic {
    top: 14px;
    right: 14px;
    width: 28px;
    height: 28px;
    line-height: 28px;
    border-radius: 8px;
    font-size: 12px;
}

/* -----------------------------------------------------
   17. Register a New Domain panel — dark accent card
----------------------------------------------------- */

body.cs-theme .client-home-panels [menuItemName="Register a New Domain"] {
    background: linear-gradient(150deg, var(--navy-dark) 0%, var(--navy-deep) 100%);
    border-color: transparent;
}

body.cs-theme .client-home-panels [menuItemName="Register a New Domain"] > .panel-heading {
    background: transparent;
    border-bottom: 0;
    padding: 22px 22px 4px;
}

body.cs-theme .client-home-panels [menuItemName="Register a New Domain"] .panel-title,
body.cs-theme .client-home-panels [menuItemName="Register a New Domain"] .panel-title > i {
    color: var(--white);
    font-size: 18px;
}

body.cs-theme .client-home-panels [menuItemName="Register a New Domain"] > .panel-body {
    background: transparent;
    padding: 14px 22px 24px;
}

body.cs-theme .client-home-panels [menuItemName="Register a New Domain"] .form-control {
    border-color: transparent;
}

body.cs-theme .client-home-panels [menuItemName="Register a New Domain"] > .panel-footer {
    display: none;
}

/* -----------------------------------------------------
   18. Service and ticket rows
----------------------------------------------------- */

body.cs-theme .div-service-item {
    padding: 18px 20px;
}

body.cs-theme .list-group-item .text-domain,
body.cs-theme .list-group-item small {
    display: block;
    color: var(--ink-faint);
    font-size: 12.5px;
    margin-top: 3px;
}

body.cs-theme .client-home-panels .list-group-item {
    padding: 15px 20px;
}

/* -----------------------------------------------------
   19. Wider topbar on large screens (stops nav/icon overlap)
----------------------------------------------------- */

@media (min-width: 1400px) {
    body.cs-theme .navbar-main .container {
        max-width: 1400px;
    }
}

@media (min-width: 992px) {
    body.cs-theme .navbar-main .cs-nav-primary,
    body.cs-theme .navbar-main .cs-nav-utility {
        flex-shrink: 0;
    }
    body.cs-theme .navbar-main .cs-nav-utility {
        margin-left: auto;
        padding-left: 14px;
    }
}

/* logout icon button — topbar থেকে লুকানো (sidebar-এ আছে) */
body.cs-theme .cs-util-logout {
    display: none !important;
}

/* language switcher + avatar circle — লুকানো */
body.cs-theme .cs-nav-utility > li.cs-util-item:has(.choose-language),
body.cs-theme .cs-nav-utility > li.dropdown > a:before {
    display: none !important;
}

/* avatar :before বন্ধ হলে account chip padding ঠিক রাখা */
body.cs-theme .cs-nav-utility > li.dropdown > a {
    padding-left: 10px;
}

/* account chip — avatar সরানোর পর border-left ছাড়া clean look */
@media (min-width: 992px) {
    body.cs-theme .cs-nav-utility > li.dropdown > a {
        border-left: 1px solid var(--line);
        margin-left: 10px;
        padding: 8px 12px 8px 14px;
        font-size: 14px;
        font-weight: 600;
        color: var(--ink);
    }
}


/* primary nav — মাঝখানে, flex trick দিয়ে (overlap হবে না) */
@media (min-width: 992px) {
    body.cs-theme .navbar-main .navbar-collapse {
        display: flex;
        align-items: center;
    }
    /* বাঁ দিকে একটা ghost spacer — লোগোর সমান প্রস্থ */
    body.cs-theme .navbar-main .cs-nav-primary {
        flex: 1 1 0;
        display: flex;
        justify-content: center;
    }
    body.cs-theme .navbar-main .cs-nav-utility {
        flex: 0 0 auto;
        margin-left: 0;
        padding-left: 0;
    }
}

/* =====================================================
   20. Mobile nav — left drawer
   ===================================================== */

@media (max-width: 991px) {

    /* topbar fixed — always on top */
    body.cs-theme section#main-menu {
        position: fixed;
        top: 0; left: 0; right: 0;
        z-index: 1060;
        height: 60px;
    }

    body.cs-theme .navbar-main {
        min-height: 60px;
    }

    body.cs-theme .navbar-main .navbar-header {
        height: 60px;
        display: flex !important;
        align-items: center;
        justify-content: space-between !important;
        width: 100% !important;
        float: none !important;
        padding: 0 16px;
    }

    body.cs-theme .navbar-main .navbar-header .cs-brand {
        order: 1;
        float: none !important;
        display: block;
    }

    body.cs-theme .navbar-main .navbar-header .navbar-toggle {
        order: 2;
        float: none !important;
        margin: 0 !important;
        display: block !important;
    }

    body.cs-theme .cs-brand {
        padding: 0;
        font-size: 19px;
    }

    body.cs-theme .navbar-main .navbar-toggle {
        float: none;
        margin: 0;
        padding: 8px 10px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: var(--bg);
        position: relative;
        z-index: 1060;
    }

    /* page content below fixed bar */
    body.cs-theme {
        padding-top: 60px;
    }

    /* drawer panel — hidden off-screen, slides in */
    body.cs-theme .navbar-main .navbar-collapse {
        position: fixed !important;
        top: 0 !important;
        left: -320px !important;
        width: 300px !important;
        height: 100vh !important;
        background: var(--white) !important;
        border-right: 1px solid var(--line) !important;
        box-shadow: 6px 0 32px rgba(13,42,69,0.15) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        z-index: 1055 !important;
        transition: left 0.26s ease !important;
        padding: 72px 0 32px !important;
        display: block !important;
        margin: 0 !important;
        border-top: none !important;
        visibility: hidden;
        pointer-events: none;
    }

    body.cs-theme .navbar-main .navbar-collapse.cs-open {
        visibility: visible !important;
        pointer-events: auto !important;
    }

    body.cs-theme .navbar-main .navbar-collapse.cs-open {
        left: 0 !important;
    }

    /* backdrop — full screen, behind drawer but above content */
    body.cs-theme .cs-drawer-backdrop {
        display: none;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(10,33,56,0.45);
        z-index: 1050;
        backdrop-filter: blur(1px);
    }

    body.cs-theme .cs-drawer-backdrop.cs-open {
        display: block;
    }

    /* nav items in drawer */
    body.cs-theme .navbar-main .navbar-nav {
        float: none !important;
        margin: 0 !important;
        display: block !important;
        width: 100% !important;
    }

    body.cs-theme .navbar-main .navbar-nav > li {
        float: none !important;
        width: 100%;
    }

    body.cs-theme .navbar-main .navbar-nav > li > a {
        padding: 12px 20px !important;
        margin: 2px 10px !important;
        width: calc(100% - 20px) !important;
        border-radius: 8px !important;
        font-size: 15px !important;
        color: var(--ink) !important;
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        white-space: normal !important;
    }

    body.cs-theme .navbar-main .navbar-nav > li > a:hover,
    body.cs-theme .navbar-main .navbar-nav > li > a:focus {
        background: var(--teal-tint) !important;
        color: var(--teal-dark) !important;
    }

    body.cs-theme .navbar-main .cs-nav-utility {
        margin: 12px 10px 0 !important;
        padding: 12px 0 0 !important;
        border-top: 1px solid var(--line) !important;
        display: block !important;
        float: none !important;
    }

    body.cs-theme .navbar-main .cs-nav-utility > li {
        float: none !important;
        width: 100%;
    }

    body.cs-theme .navbar-main .cs-nav-utility > li > a {
        padding: 11px 20px !important;
        border-radius: 8px !important;
        font-size: 14.5px !important;
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        height: auto !important;
        line-height: 1.4 !important;
        background: transparent !important;
        border: none !important;
        margin: 0 !important;
        color: var(--ink-dim) !important;
    }

    body.cs-theme .navbar-main .cs-nav-utility > li.dropdown > a {
        font-weight: 600 !important;
        color: var(--ink) !important;
        border-left: none !important;
        margin-left: 0 !important;
        padding-left: 20px !important;
    }

    body.cs-theme .cs-util-label {
        display: inline !important;
    }

    /* dropdown inside drawer */
    body.cs-theme .navbar-main .open .dropdown-menu {
        position: static !important;
        float: none !important;
        width: auto !important;
        margin: 0 0 4px 30px !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
        display: block !important;
    }

    body.cs-theme .navbar-main .open .dropdown-menu > li > a {
        padding: 9px 14px !important;
        border-radius: 6px !important;
        font-size: 14px !important;
        color: var(--ink-dim) !important;
        display: block !important;
    }
}

/* লগআউট অবস্থায় navbar overflow ঠিক করা */
@media (min-width: 992px) {
    body.cs-theme .navbar-main .navbar-collapse {
        overflow: visible;
    }

    /* লগআউট nav আইটেমগুলো ছোট করা */
    body.cs-theme .navbar-main .cs-nav-utility > li.cs-util-login > a,
    body.cs-theme .navbar-main .cs-nav-utility > li.cs-util-register > a {
        background: transparent;
        border: 1px solid var(--line);
        border-radius: 7px;
        padding: 8px 14px;
        font-size: 13.5px;
        font-weight: 600;
        color: var(--ink);
        margin-left: 6px;
        white-space: nowrap;
    }

    body.cs-theme .navbar-main .cs-nav-utility > li.cs-util-login > a:hover {
        background: var(--bg);
    }

    body.cs-theme .navbar-main .cs-nav-utility > li.cs-util-register > a {
        background: var(--navy);
        border-color: var(--navy);
        color: var(--white);
    }

    body.cs-theme .navbar-main .cs-nav-utility > li.cs-util-register > a:hover {
        background: var(--navy-deep);
        border-color: var(--navy-deep);
        color: var(--white);
    }

    /* লগআউট অবস্থায় primary nav ফন্ট আরও ছোট রাখা */
    body.cs-theme .navbar-main .navbar-nav > li > a {
        padding: 10px 10px;
        font-size: 13.5px;
    }
}

/* লগআউট অবস্থায় আলাদা Login/Register বাটন লুকানো — Account ড্রপডাউনেই আছে */
@media (min-width: 992px) {
    body.cs-theme .cs-util-login,
    body.cs-theme .cs-util-register {
        display: none !important;
    }
}

/* Cart icon — লগআউট অবস্থায় ছোট clean বাটন */
@media (min-width: 992px) {
    body.cs-theme .cs-nav-utility > li.cs-util-item > a {
        width: 38px;
        height: 38px;
        line-height: 36px;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        padding: 0 !important;
        margin: 0 0 0 8px !important;
        border: 1px solid var(--line) !important;
        border-radius: 8px !important;
        background: var(--bg) !important;
        font-size: 15px;
        vertical-align: middle;
    }

    body.cs-theme .cs-nav-utility > li.cs-util-item > a:hover {
        background: var(--teal-tint) !important;
        border-color: var(--teal-line) !important;
        color: var(--teal-dark) !important;
    }
}

/* =====================================================
   21. Mobile header — refined
   (§20 এর পরে লোড হয়, তাই এখানকার নিয়মগুলো জেতে)
   ===================================================== */

@media (max-width: 991px) {

    /* ---------- টপ বার ---------- */

    body.cs-theme section#main-menu {
        height: 58px;
        background: var(--white);
        border-bottom: 1px solid var(--line);
        box-shadow: none;
        transition: box-shadow .22s ease;
        z-index: 1060;
    }

    body.cs-theme.cs-scrolled section#main-menu {
        box-shadow: 0 4px 18px rgba(13, 42, 69, 0.10);
    }

    body.cs-theme {
        padding-top: 58px;
    }

    body.cs-theme.cs-drawer-lock {
        overflow: hidden;
    }

    /* ড্রয়ার #main-menu এর ভেতরে থাকে, আর #main-menu (position:fixed + z-index)
       নিজেই একটা stacking context বানায় — তাই ড্রয়ারের z-index 1080 দিলেও সেটা
       প্যারেন্টের 1060 হিসেবেই গোনা হয় এবং backdrop (1070) তার উপরে পড়ে যায়।
       সমাধান: ড্রয়ার খোলা অবস্থায় পুরো #main-menu কেই backdrop এর উপরে তোলা,
       আর টপ বারের নিজের চেহারা (ব্যাকগ্রাউন্ড + ব্র্যান্ড + হ্যামবার্গার) লুকিয়ে দেওয়া,
       যাতে শুধু ড্রয়ারটাই দেখা যায়। */
    body.cs-theme.cs-drawer-lock section#main-menu {
        z-index: 1080;
        background: transparent;
        border-bottom-color: transparent;
        box-shadow: none !important;
    }

    body.cs-theme.cs-drawer-lock .navbar-main .navbar-header {
        opacity: 0;
        pointer-events: none;
    }

    body.cs-theme .navbar-main .navbar-header {
        transition: opacity .18s ease;
    }

    body.cs-theme .navbar-main {
        min-height: 58px;
    }

    body.cs-theme .navbar-main > .container {
        width: 100%;
        padding-left: 0;
        padding-right: 0;
    }

    /* Bootstrap এর clearfix pseudo-element গুলো flex item হয়ে গিয়ে
       ব্র্যান্ডকে বাঁদিক থেকে ঠেলে সরিয়ে দিচ্ছিল — বন্ধ করা হলো */
    body.cs-theme .navbar-main .navbar-header:before,
    body.cs-theme .navbar-main .navbar-header:after,
    body.cs-theme .navbar-main > .container:before,
    body.cs-theme .navbar-main > .container:after {
        display: none !important;
        content: none !important;
    }

    /* Bootstrap মোবাইলে `.container > .navbar-header` এ -15px margin দেয়,
       ফলে width:100% বক্সটা বাঁদিকে ১৫px সরে যায় — বাঁয়ে প্যাডিং কমে যায়,
       ডানে ১৫px বেশি হয়ে যায়। তাই margin শূন্য করা হলো। */
    body.cs-theme .navbar-main .navbar-header {
        margin-left: 0 !important;
        margin-right: 0 !important;
        height: 58px;
        padding: 0 14px 0 20px;
        gap: 10px;
    }

    /* ---------- ব্র্যান্ড ---------- */

    body.cs-theme .navbar-main .navbar-header .cs-brand {
        order: 0;
        display: flex !important;
        align-items: center;
        min-width: 0;
        padding: 0;
        font-size: 18px;
        line-height: 1;
        letter-spacing: -0.2px;
    }

    body.cs-theme .cs-brand-name {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body.cs-theme .navbar-main .navbar-header .cs-brand img {
        max-height: 32px;
    }

    body.cs-theme .navbar-main .navbar-header .cs-brand-dot {
        width: 9px;
        height: 9px;
        margin-right: 9px;
        top: 0;
        flex: 0 0 auto;
        box-shadow: 0 0 0 3px rgba(238, 159, 60, 0.16);
    }

    /* ---------- হ্যামবার্গার ---------- */
    /* §20 এর `.navbar-header .navbar-toggle { display:block!important }` কে
       হারাতে ID সিলেক্টর ব্যবহার করা হয়েছে */

    body.cs-theme .navbar-main #csNavToggle {
        order: 1;
        flex: 0 0 auto;
        width: 38px;
        height: 38px;
        padding: 0 !important;
        margin: 0 !important;
        float: none !important;
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        border: 1px solid var(--teal-line);
        border-radius: 10px;
        background: var(--teal-tint);
        box-shadow: none;
        z-index: 1061;
    }

    body.cs-theme .navbar-main #csNavToggle:hover,
    body.cs-theme .navbar-main #csNavToggle:focus {
        background: var(--teal-tint-2);
    }

    body.cs-theme .navbar-main #csNavToggle .icon-bar {
        display: block;
        width: 17px;
        height: 2px;
        margin: 0 !important;
        border-radius: 2px;
        background-color: var(--teal-dark);
        transition: transform .22s ease, opacity .16s ease;
    }

    body.cs-theme .navbar-main #csNavToggle.cs-open .cs-bar-1 {
        transform: translateY(6px) rotate(45deg);
    }

    body.cs-theme .navbar-main #csNavToggle.cs-open .cs-bar-2 {
        opacity: 0;
    }

    body.cs-theme .navbar-main #csNavToggle.cs-open .cs-bar-3 {
        transform: translateY(-6px) rotate(-45deg);
    }

    /* ---------- ড্রয়ার ---------- */

    body.cs-theme .navbar-main .navbar-collapse {
        width: 296px !important;
        max-width: 86vw !important;
        left: -340px !important;
        padding: 0 0 28px !important;
        box-shadow: 10px 0 40px rgba(13, 42, 69, 0.18) !important;
        z-index: 1080 !important;
        transition: left .28s cubic-bezier(.4, 0, .2, 1) !important;
        -webkit-overflow-scrolling: touch;
    }

    body.cs-theme .cs-drawer-backdrop {
        z-index: 1070;
        background: rgba(10, 33, 56, 0.5);
    }

    /* ড্রয়ারের হেড */
    body.cs-theme .cs-drawer-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        height: 58px;
        padding: 0 12px 0 18px;
        border-bottom: 1px solid var(--line);
        background: var(--white);
        position: sticky;
        top: 0;
        z-index: 3;
    }

    body.cs-theme .cs-drawer-title {
        display: flex;
        align-items: center;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-family: var(--font-head);
        font-weight: 700;
        font-size: 17px;
        line-height: 1;
        letter-spacing: -0.2px;
        color: var(--teal-dark);
    }

    body.cs-theme .cs-drawer-title img {
        max-height: 30px;
        width: auto;
    }

    body.cs-theme .cs-drawer-title .cs-brand-dot {
        top: 0;
        width: 9px;
        height: 9px;
        margin-right: 9px;
        flex: 0 0 auto;
        box-shadow: 0 0 0 3px rgba(238, 159, 60, 0.16);
    }

    body.cs-theme .cs-drawer-close {
        flex: 0 0 auto;
        width: 34px;
        height: 34px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        border: 1px solid var(--line);
        border-radius: 9px;
        background: var(--bg);
        color: var(--ink-dim);
        font-size: 15px;
        line-height: 1;
    }

    body.cs-theme .cs-drawer-close:hover,
    body.cs-theme .cs-drawer-close:focus {
        background: var(--teal-tint);
        border-color: var(--teal-line);
        color: var(--teal-dark);
    }

    /* ড্রয়ারে লগইন করা ইউজারের চিপ */
    body.cs-theme .cs-drawer-user {
        display: flex;
        align-items: center;
        gap: 11px;
        margin: 14px 12px 4px;
        padding: 11px 12px;
        border: 1px solid var(--line);
        border-radius: 12px;
        background: var(--bg);
    }

    body.cs-theme .cs-drawer-avatar {
        flex: 0 0 auto;
        width: 38px;
        height: 38px;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: var(--navy);
        color: var(--white);
        font-family: var(--font-head);
        font-weight: 600;
        font-size: 16px;
        text-transform: uppercase;
    }

    body.cs-theme .cs-drawer-user-meta {
        min-width: 0;
        display: flex;
        flex-direction: column;
        line-height: 1.3;
    }

    body.cs-theme .cs-drawer-user-meta strong {
        font-size: 14px;
        font-weight: 600;
        color: var(--ink);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body.cs-theme .cs-drawer-user-meta small {
        font-size: 12px;
        color: var(--ink-faint);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* ড্রয়ারের মেনু আইটেম */
    body.cs-theme .navbar-main .cs-nav-primary {
        margin-top: 10px !important;
    }

    body.cs-theme .navbar-main .navbar-nav > .active > a,
    body.cs-theme .navbar-main .navbar-nav > .active > a:hover,
    body.cs-theme .navbar-main .navbar-nav > .active > a:focus {
        background: var(--teal-tint) !important;
        color: var(--teal-dark) !important;
        font-weight: 600 !important;
    }

    body.cs-theme .navbar-main .cs-nav-utility {
        margin-top: 10px !important;
    }

}

@media (min-width: 992px) {
    body.cs-theme .cs-drawer-head,
    body.cs-theme .cs-drawer-user {
        display: none !important;
    }
}

/* =====================================================
   22. Homepage — hero, shortcuts, news
   ===================================================== */

/* ---------- হিরো ব্যানার ---------- */

body.cs-theme section#home-banner {
    position: relative;
    overflow: hidden;
    padding: 78px 0 86px;
    background: linear-gradient(135deg, #0D2A45 0%, #123B5E 52%, #0A2138 100%);
}

body.cs-theme section#home-banner::before {
    content: "";
    position: absolute;
    top: -220px;
    right: -140px;
    width: 560px;
    height: 560px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(47, 169, 140, 0.26) 0%, rgba(47, 169, 140, 0) 68%);
    pointer-events: none;
}

body.cs-theme section#home-banner::after {
    content: "";
    position: absolute;
    bottom: -300px;
    left: -190px;
    width: 560px;
    height: 560px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(238, 159, 60, 0.14) 0%, rgba(238, 159, 60, 0) 68%);
    pointer-events: none;
}

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

body.cs-theme section#home-banner h2 {
    font-size: 38px;
    line-height: 1.25;
    letter-spacing: -0.6px;
    margin: 0 0 14px;
}

body.cs-theme section#home-banner .hb-sub {
    max-width: 560px;
    margin: 0 auto 30px;
    font-size: 15px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.70);
}

/* সাদা pill এর ভেতরে ইনপুট + বাটন */
body.cs-theme section#home-banner .input-group {
    background: var(--white);
    border-radius: 13px;
    padding: 6px;
    box-shadow: 0 18px 44px rgba(5, 20, 35, 0.30);
}

body.cs-theme section#home-banner .form-control {
    height: 54px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    box-shadow: none;
    font-size: 16px;
    color: var(--ink);
    padding: 10px 18px;
}

body.cs-theme section#home-banner .form-control::placeholder {
    color: var(--ink-faint);
}

body.cs-theme section#home-banner .input-group-btn .btn,
body.cs-theme section#home-banner .btn.search,
body.cs-theme section#home-banner .btn.transfer {
    height: 54px;
    padding: 0 26px;
    border-radius: 9px;
    font-family: var(--font-head);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.1px;
    transition: background .18s ease, color .18s ease;
}

body.cs-theme section#home-banner .btn.search {
    background: var(--teal);
    color: var(--white);
}

body.cs-theme section#home-banner .btn.search:hover,
body.cs-theme section#home-banner .btn.search:focus {
    background: var(--teal-dark);
}

body.cs-theme section#home-banner .btn.transfer {
    background: transparent;
    color: var(--ink-dim);
    margin-left: 4px;
}

body.cs-theme section#home-banner .btn.transfer:hover,
body.cs-theme section#home-banner .btn.transfer:focus {
    background: var(--bg);
    color: var(--ink);
}

body.cs-theme section#home-banner .captcha-container,
body.cs-theme section#home-banner .default-captcha {
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 767px) {
    body.cs-theme section#home-banner {
        padding: 52px 0 58px;
    }
    body.cs-theme section#home-banner h2 {
        font-size: 27px;
    }
    body.cs-theme section#home-banner .hb-sub {
        font-size: 14px;
        margin-bottom: 24px;
    }
    body.cs-theme section#home-banner .input-group,
    body.cs-theme section#home-banner .input-group .form-control,
    body.cs-theme section#home-banner .input-group .input-group-btn {
        display: block;
        width: 100%;
    }
    body.cs-theme section#home-banner .input-group .form-control {
        text-align: center;
        margin-bottom: 8px;
    }
    body.cs-theme section#home-banner .input-group-btn .btn {
        width: 100%;
        margin: 0 0 6px;
    }
    body.cs-theme section#home-banner .btn.transfer {
        margin-left: 0;
        border: 1px solid var(--line);
    }
}

/* ---------- শর্টকাট কার্ড ---------- */

body.cs-theme .home-shortcuts {
    background: transparent;
    border-bottom: 0;
    padding: 0;
    margin-top: -44px;
    position: relative;
    z-index: 2;
}

body.cs-theme .home-shortcuts ul {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}

body.cs-theme .home-shortcuts ul li {
    display: block;
    float: none;
    width: auto;
    border: 0;
    padding: 0;
    margin: 0;
    text-align: left;
}

body.cs-theme .home-shortcuts ul li a {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 100%;
    padding: 18px 18px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(13, 42, 69, 0.06);
    color: var(--ink);
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

body.cs-theme .home-shortcuts ul li a:hover,
body.cs-theme .home-shortcuts ul li a:focus {
    transform: translateY(-3px);
    border-color: var(--teal-line);
    box-shadow: 0 16px 34px rgba(13, 42, 69, 0.11);
    color: var(--ink);
}

body.cs-theme .home-shortcuts ul li a i {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--teal-tint);
    color: var(--teal-dark);
    font-size: 17px;
    margin: 0;
    transition: background .2s ease, color .2s ease;
}

body.cs-theme .home-shortcuts ul li a:hover i {
    background: var(--teal);
    color: var(--white);
}

body.cs-theme .home-shortcuts ul li a p {
    margin: 0;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 14.5px;
    line-height: 1.35;
    color: var(--ink);
    text-transform: none;
}

body.cs-theme .home-shortcuts ul li a p span {
    display: block;
    margin-top: 2px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 12px;
    color: var(--teal-dark);
}

@media (max-width: 991px) {
    body.cs-theme .home-shortcuts ul {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 575px) {
    body.cs-theme .home-shortcuts {
        margin-top: -28px;
    }
    body.cs-theme .home-shortcuts ul {
        grid-template-columns: 1fr;
    }
}

/* ---------- News / announcements ---------- */

body.cs-theme #main-body > .container > h2,
body.cs-theme .announcement-single + h2 {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 26px;
    color: var(--ink);
    margin: 6px 0 22px;
    letter-spacing: -0.3px;
}

body.cs-theme .announcement-single {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 24px 26px;
    margin-bottom: 18px;
    box-shadow: 0 1px 2px rgba(13, 42, 69, 0.04);
    transition: border-color .2s ease, box-shadow .2s ease;
}

body.cs-theme .announcement-single:hover {
    border-color: var(--teal-line);
    box-shadow: 0 10px 26px rgba(13, 42, 69, 0.07);
}

body.cs-theme .announcement-single h3 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 12px;
    font-size: 19px;
    line-height: 1.4;
}

body.cs-theme .announcement-single h3 .label-default {
    background: var(--teal-tint);
    color: var(--teal-dark);
    border-radius: 999px;
    padding: 5px 12px;
    font-family: var(--font-body);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

body.cs-theme .announcement-single h3 a {
    font-family: var(--font-head);
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.2px;
}

body.cs-theme .announcement-single h3 a:hover {
    color: var(--teal-dark);
}

body.cs-theme .announcement-single blockquote {
    margin: 0;
    padding: 0 0 0 16px;
    border-left: 3px solid var(--teal-line);
    background: transparent;
    font-size: 14.5px;
}

body.cs-theme .announcement-single blockquote p {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.75;
    color: var(--ink-dim);
}

body.cs-theme .announcement-single blockquote .label-warning {
    display: inline-block;
    margin-left: 6px;
    background: transparent;
    color: var(--teal-dark);
    border-bottom: 1px solid var(--teal-line);
    border-radius: 0;
    padding: 0 0 1px;
    font-family: var(--font-body);
    font-size: 13.5px;
    font-weight: 600;
    white-space: nowrap;
}

body.cs-theme .announcement-single blockquote .label-warning:hover {
    border-bottom-color: var(--teal);
}

@media (max-width: 767px) {
    body.cs-theme .announcement-single {
        padding: 18px 18px;
    }
    body.cs-theme .announcement-single h3 {
        font-size: 17px;
    }
}

/* =====================================================
   24. Gateway forward page (forwardpage.tpl)
   ===================================================== */

body.cs-theme .cs-forward {
    max-width: 720px;
    margin: 0 auto;
    padding: 8px 0 20px;
}

body.cs-theme .cs-forward-status {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 16px 20px;
    margin-bottom: 18px;
    background: var(--white);
    border: 1px solid var(--line);
    border-left: 3px solid var(--teal);
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(13, 42, 69, 0.04);
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--ink);
}

body.cs-theme .cs-forward-spinner {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--teal-line);
    border-top-color: var(--teal);
    animation: cs-forward-spin .8s linear infinite;
}

@keyframes cs-forward-spin {
    to { transform: rotate(360deg); }
}

body.cs-theme .cs-forward-panel {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 26px 28px;
    box-shadow: 0 1px 2px rgba(13, 42, 69, 0.04);
}

body.cs-theme .cs-forward-code {
    text-align: left;
    font-size: 14.5px;
    line-height: 1.95;
    color: var(--ink-dim);
    word-break: break-word;
}

body.cs-theme .cs-forward-code b,
body.cs-theme .cs-forward-code strong {
    color: var(--ink);
    font-weight: 600;
}

body.cs-theme .cs-forward-code a {
    color: var(--teal-dark);
    font-weight: 500;
}

body.cs-theme .cs-forward-code ol,
body.cs-theme .cs-forward-code ul {
    margin: 10px 0;
    padding-left: 22px;
}

body.cs-theme .cs-forward-code form {
    margin: 0;
}

body.cs-theme .cs-forward-code .btn,
body.cs-theme .cs-forward-code input[type="submit"] {
    margin-top: 16px;
}

body.cs-theme .cs-forward-foot {
    margin: 18px 0 0;
    text-align: center;
    font-size: 13px;
}

body.cs-theme .cs-forward-foot a {
    color: var(--ink-dim);
    border-bottom: 1px solid var(--line);
}

body.cs-theme .cs-forward-foot a:hover {
    color: var(--teal-dark);
    border-bottom-color: var(--teal-line);
}

@media (max-width: 767px) {
    body.cs-theme .cs-forward-panel {
        padding: 20px 18px;
    }
    body.cs-theme .cs-forward-code {
        font-size: 14px;
        line-height: 1.85;
    }
}
