/*
 * HostAccent Premium v2
 * High-polish layer loaded by the companion hook with an explicit cache key.
 * Keep structural selectors grounded in the Twenty-One parent theme.
 */

:root {
    --ha2-navy-950: #07111f;
    --ha2-navy-900: #0b1729;
    --ha2-navy-800: #14233b;
    --ha2-red: #f04452;
    --ha2-red-deep: #d92c3b;
    --ha2-cyan: #26b9eb;
    --ha2-blue: #3387f5;
    --ha2-violet: #7857f6;
    --ha2-emerald: #16b784;
    --ha2-amber: #f4a72c;
    --ha2-ink: #111c30;
    --ha2-muted: #68758c;
    --ha2-canvas: #f3f6fb;
    --ha2-card: rgba(255, 255, 255, .94);
    --ha2-line: rgba(116, 135, 165, .16);
    --ha2-shadow: 0 24px 70px rgba(24, 39, 75, .10);
    --ha2-shadow-soft: 0 12px 35px rgba(24, 39, 75, .075);
    --ha2-radius: 18px;
    --ha2-radius-lg: 26px;
}

body.ha-premium-ready {
    color: var(--ha2-ink);
    background:
        radial-gradient(circle at 8% 18%, rgba(38, 185, 235, .065), transparent 24rem),
        radial-gradient(circle at 92% 30%, rgba(240, 68, 82, .06), transparent 25rem),
        linear-gradient(180deg, #f8fafe 0, var(--ha2-canvas) 420px, #f5f7fb 100%);
}

body.ha-premium-ready::before {
    position: fixed;
    z-index: -1;
    top: 210px;
    left: 0;
    width: 100%;
    height: 1px;
    content: "";
    background: linear-gradient(90deg, transparent, rgba(38, 185, 235, .14), rgba(240, 68, 82, .14), transparent);
}

body.ha-premium-ready .container {
    width: calc(100% - 44px);
    max-width: 1510px;
}

/* Premium application chrome */

body.ha-premium-ready .header {
    position: sticky;
    z-index: 1035;
    top: 0;
    border: 0;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 1px 0 rgba(116, 135, 165, .13), 0 14px 36px rgba(13, 27, 49, .045);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
}

body.ha-premium-ready .header .topbar {
    min-height: 42px;
    color: rgba(255, 255, 255, .72);
    background:
        radial-gradient(circle at 12% 0, rgba(38, 185, 235, .16), transparent 26%),
        radial-gradient(circle at 88% 0, rgba(240, 68, 82, .13), transparent 24%),
        linear-gradient(110deg, var(--ha2-navy-950), var(--ha2-navy-800));
    border: 0;
}

body.ha-premium-ready .header .topbar .container {
    min-height: 42px;
}

body.ha-premium-ready .header .topbar .btn {
    min-height: 34px;
    padding: 5px 11px;
    color: rgba(255, 255, 255, .72);
    background: transparent;
    border: 0;
    font-size: 12px;
}

body.ha-premium-ready .header .topbar .btn:hover,
body.ha-premium-ready .header .topbar .btn:focus {
    color: #fff;
    background: rgba(255, 255, 255, .09);
}

body.ha-premium-ready .header .topbar .btn-active-client {
    color: #fff;
    font-weight: 750;
}

body.ha-premium-ready .header .topbar .input-group-text {
    min-height: 34px;
    color: rgba(255, 255, 255, .5);
    background: rgba(255, 255, 255, .055);
    border-color: rgba(255, 255, 255, .06);
    font-size: 11px;
}

body.ha-premium-ready .header .navbar-light {
    min-height: 82px;
}

body.ha-premium-ready .header .navbar-brand .logo-img {
    max-width: 235px;
    max-height: 52px;
    filter: drop-shadow(0 5px 12px rgba(17, 28, 48, .08));
}

body.ha-premium-ready .header .navbar-light .search {
    overflow: hidden;
    border: 1px solid rgba(116, 135, 165, .13);
    border-radius: 14px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
}

body.ha-premium-ready .header .navbar-light .search .btn,
body.ha-premium-ready .header .navbar-light .search .form-control {
    height: 46px;
    background: rgba(244, 247, 252, .82);
}

body.ha-premium-ready .header .navbar-light .search .form-control {
    min-width: 310px;
    border: 0;
}

body.ha-premium-ready .header .toolbar .nav-link {
    width: 46px;
    height: 46px;
    color: var(--ha2-ink);
    background: rgba(244, 247, 252, .85);
    border-color: rgba(116, 135, 165, .12);
    border-radius: 14px;
}

body.ha-premium-ready .main-navbar-wrapper {
    min-height: 58px;
    background: rgba(255, 255, 255, .68);
    border-color: rgba(116, 135, 165, .11);
}

body.ha-premium-ready .main-navbar-wrapper .navbar-nav > .nav-item > .nav-link {
    min-height: 57px;
    padding: 0 17px;
    color: #596780;
    font-size: 13px;
    font-weight: 720;
    letter-spacing: -.01em;
}

body.ha-premium-ready .main-navbar-wrapper .navbar-nav > .nav-item > .nav-link:hover,
body.ha-premium-ready .main-navbar-wrapper .navbar-nav > .nav-item.active > .nav-link,
body.ha-premium-ready .main-navbar-wrapper .navbar-nav > .nav-item.show > .nav-link {
    color: var(--ha2-ink);
}

body.ha-premium-ready .main-navbar-wrapper .navbar-nav > .nav-item.active > .nav-link::before {
    right: 17px;
    bottom: 0;
    left: 17px;
    height: 3px;
    background: linear-gradient(90deg, var(--ha2-red), var(--ha2-cyan));
    box-shadow: 0 -3px 12px rgba(240, 68, 82, .2);
}

body.ha-premium-ready .dropdown-menu {
    padding: 9px;
    border: 1px solid rgba(116, 135, 165, .15);
    border-radius: 16px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 24px 70px rgba(15, 30, 54, .16);
}

body.ha-premium-ready .dropdown-item {
    padding: 10px 13px;
    border-radius: 10px;
}

body.ha-premium-ready .master-breadcrumb .breadcrumb {
    padding-top: 18px;
    font-size: 12px;
    font-weight: 620;
}

/* Dashboard command center */

body.ha-dashboard #main-body {
    padding-top: 20px;
}

.ha-dashboard-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(260px, .72fr);
    min-height: 286px;
    margin-bottom: 24px;
    padding: 42px 46px;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 82% 18%, rgba(38, 185, 235, .24), transparent 28%),
        radial-gradient(circle at 22% 118%, rgba(240, 68, 82, .25), transparent 34%),
        linear-gradient(125deg, #07111f 0, #10213b 52%, #102a45 100%);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 28px;
    box-shadow: 0 28px 80px rgba(7, 17, 31, .22);
    isolation: isolate;
}

.ha-dashboard-hero::before {
    position: absolute;
    z-index: -1;
    top: -58%;
    right: 17%;
    width: 360px;
    height: 360px;
    content: "";
    border: 1px solid rgba(255, 255, 255, .085);
    border-radius: 50%;
    box-shadow:
        0 0 0 44px rgba(255, 255, 255, .018),
        0 0 0 94px rgba(255, 255, 255, .012);
}

.ha-dashboard-hero::after {
    position: absolute;
    z-index: -1;
    right: 0;
    bottom: 0;
    width: 52%;
    height: 70%;
    content: "";
    opacity: .42;
    background-image: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1px);
    background-size: 18px 18px;
    mask-image: linear-gradient(130deg, transparent, #000);
}

.ha-hero-content {
    position: relative;
    z-index: 2;
    align-self: center;
}

.ha-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 17px;
    color: rgba(255, 255, 255, .7);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.ha-live-dot {
    position: relative;
    width: 8px;
    height: 8px;
    background: #32d59b;
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(50, 213, 155, .12), 0 0 16px rgba(50, 213, 155, .5);
}

.ha-dashboard-hero h1 {
    margin: 0 0 15px;
    color: #fff;
    font-size: clamp(34px, 3vw, 49px);
    font-weight: 820;
    line-height: 1.04;
    letter-spacing: -.045em;
}

.ha-dashboard-hero h1 span {
    color: transparent;
    background: linear-gradient(95deg, #fff 5%, #8bdcfa 48%, #ff9da5 95%);
    -webkit-background-clip: text;
    background-clip: text;
}

.ha-dashboard-hero p {
    max-width: 620px;
    margin: 0 0 25px;
    color: rgba(226, 235, 248, .7);
    font-size: 14px;
    line-height: 1.65;
}

.ha-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
}

.ha-hero-actions .btn {
    display: inline-flex;
    min-height: 45px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 10px 17px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 770;
}

.ha-hero-primary {
    color: #fff !important;
    background: linear-gradient(135deg, var(--ha2-red), #ff6874);
    border-color: transparent !important;
    box-shadow: 0 12px 28px rgba(240, 68, 82, .3);
}

.ha-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 34px rgba(240, 68, 82, .4);
}

.ha-hero-secondary {
    color: rgba(255, 255, 255, .86) !important;
    background: rgba(255, 255, 255, .075);
    border-color: rgba(255, 255, 255, .14) !important;
    backdrop-filter: blur(8px);
}

.ha-hero-secondary:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, .13);
    border-color: rgba(255, 255, 255, .24) !important;
}

.ha-hero-trust {
    position: relative;
    z-index: 2;
    align-self: center;
    justify-self: end;
    width: 235px;
    padding: 23px;
    background: rgba(255, 255, 255, .065);
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 22px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
    backdrop-filter: blur(13px);
}

.ha-trust-orbit {
    position: relative;
    width: 74px;
    height: 74px;
    margin: 0 auto 17px;
}

.ha-orbit-ring,
.ha-orbit-core {
    position: absolute;
    border-radius: 50%;
}

.ha-orbit-ring {
    border: 1px solid rgba(139, 220, 250, .28);
}

.ha-orbit-one {
    inset: 0;
    animation: haOrbit 9s linear infinite;
}

.ha-orbit-one::before {
    position: absolute;
    top: 3px;
    left: 13px;
    width: 6px;
    height: 6px;
    content: "";
    background: var(--ha2-cyan);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--ha2-cyan);
}

.ha-orbit-two {
    inset: 9px;
    border-color: rgba(255, 157, 165, .25);
    animation: haOrbit 7s linear reverse infinite;
}

.ha-orbit-core {
    inset: 18px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, rgba(38, 185, 235, .78), rgba(120, 87, 246, .72));
    box-shadow: 0 8px 22px rgba(38, 185, 235, .22);
}

@keyframes haOrbit {
    to { transform: rotate(360deg); }
}

.ha-trust-copy {
    text-align: center;
}

.ha-trust-copy span {
    display: block;
    margin-bottom: 2px;
    color: rgba(255, 255, 255, .5);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ha-trust-copy strong {
    color: #fff;
    font-size: 13px;
    font-weight: 750;
}

.ha-trust-features {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
    padding-top: 14px;
    color: rgba(255, 255, 255, .58);
    border-top: 1px solid rgba(255, 255, 255, .09);
    font-size: 9px;
    font-weight: 650;
}

.ha-trust-features i {
    margin-right: 3px;
    color: #7ad8f8;
}

/* Dashboard metrics */

body.ha-dashboard .tiles {
    margin-bottom: 24px !important;
}

body.ha-dashboard .tiles > .row {
    margin-right: -7px;
    margin-left: -7px;
}

body.ha-dashboard .tiles > .row > [class*="col-"] {
    padding: 7px;
}

body.ha-dashboard .tiles .tile {
    grid-template-columns: 1fr 52px;
    grid-template-rows: 1fr auto;
    min-height: 142px;
    padding: 23px 24px;
    overflow: hidden;
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(116, 135, 165, .14);
    border-radius: 20px;
    box-shadow: var(--ha2-shadow-soft);
    backdrop-filter: blur(12px);
}

body.ha-dashboard .tiles .tile::before {
    position: absolute;
    top: -54px;
    right: -42px;
    width: 130px;
    height: 130px;
    content: "";
    background: var(--tile-glow, rgba(51, 135, 245, .11));
    border-radius: 50%;
    filter: blur(2px);
}

body.ha-dashboard .tiles .tile::after {
    position: absolute;
    top: auto;
    right: 23px;
    bottom: 18px;
    left: 23px;
    width: auto;
    height: 1px;
    background: linear-gradient(90deg, var(--tile-color, var(--ha2-blue)), transparent);
    opacity: .23;
}

body.ha-dashboard .tiles > .row > div:nth-child(1) .tile {
    --tile-color: var(--ha2-blue);
    --tile-soft: rgba(51, 135, 245, .10);
    --tile-glow: rgba(51, 135, 245, .13);
}

body.ha-dashboard .tiles > .row > div:nth-child(2) .tile {
    --tile-color: var(--ha2-violet);
    --tile-soft: rgba(120, 87, 246, .10);
    --tile-glow: rgba(120, 87, 246, .13);
}

body.ha-dashboard .tiles > .row > div:nth-child(3) .tile {
    --tile-color: var(--ha2-cyan);
    --tile-soft: rgba(38, 185, 235, .11);
    --tile-glow: rgba(38, 185, 235, .14);
}

body.ha-dashboard .tiles > .row > div:nth-child(4) .tile {
    --tile-color: var(--ha2-red);
    --tile-soft: rgba(240, 68, 82, .09);
    --tile-glow: rgba(240, 68, 82, .13);
}

body.ha-dashboard .tiles .tile > i {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: start;
    width: 48px;
    height: 48px;
    color: var(--tile-color) !important;
    background: var(--tile-soft) !important;
    border: 1px solid color-mix(in srgb, var(--tile-color) 12%, transparent);
    border-radius: 15px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}

body.ha-dashboard .tiles .tile .stat {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    margin-top: 2px;
    font-size: 34px;
    font-weight: 820;
}

body.ha-dashboard .tiles .tile .title {
    grid-column: 1;
    grid-row: 2;
    align-self: end;
    padding-bottom: 14px;
    color: var(--ha2-muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

body.ha-dashboard .tiles .tile .highlight {
    right: 23px;
    bottom: 0;
    left: 23px;
    height: 3px;
    background: linear-gradient(90deg, var(--tile-color), transparent) !important;
    border-radius: 8px 8px 0 0;
}

body.ha-dashboard .tiles .tile:hover {
    transform: translateY(-5px);
    border-color: color-mix(in srgb, var(--tile-color) 28%, transparent);
    box-shadow: 0 20px 46px rgba(24, 39, 75, .12);
}

/* Sidebar and content panels */

body.ha-premium-ready .sidebar {
    position: sticky;
    top: 205px;
}

body.ha-premium-ready .sidebar .card,
body.ha-premium-ready .sidebar .panel {
    margin-bottom: 15px;
    overflow: hidden;
    background: rgba(255, 255, 255, .86);
    border: 1px solid rgba(116, 135, 165, .14);
    border-radius: 18px;
    box-shadow: 0 12px 34px rgba(24, 39, 75, .065);
    backdrop-filter: blur(12px);
}

body.ha-premium-ready .sidebar .card-header,
body.ha-premium-ready .sidebar .panel-heading {
    min-height: 54px;
    padding: 16px 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(248, 250, 254, .92));
    border-color: rgba(116, 135, 165, .12);
    font-size: 13px;
    font-weight: 780;
}

body.ha-premium-ready .sidebar .card-header i,
body.ha-premium-ready .sidebar .panel-heading i {
    color: var(--ha2-cyan);
}

body.ha-premium-ready .sidebar .list-group-item {
    padding: 11px 17px;
    color: #65738b;
    border-color: rgba(116, 135, 165, .09);
    font-size: 12px;
}

body.ha-premium-ready .sidebar .list-group-item:hover {
    color: var(--ha2-ink);
    background: rgba(38, 185, 235, .065);
    padding-left: 20px;
}

body.ha-premium-ready .sidebar .list-group-item.active {
    color: var(--ha2-red);
    background: linear-gradient(90deg, rgba(240, 68, 82, .09), transparent);
    border-left: 3px solid var(--ha2-red);
}

body.ha-premium-ready .card {
    background: var(--ha2-card);
    border-color: rgba(116, 135, 165, .14);
    border-radius: 20px;
    box-shadow: var(--ha2-shadow-soft);
    backdrop-filter: blur(10px);
}

body.ha-premium-ready .card-header {
    min-height: 58px;
    padding: 18px 21px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(250, 251, 254, .93));
    border-color: rgba(116, 135, 165, .12);
    border-radius: 20px 20px 0 0 !important;
}

body.ha-premium-ready .card-header .card-title,
body.ha-premium-ready .card-header h3 {
    font-size: 14px;
    font-weight: 780;
}

body.ha-premium-ready .card-header .card-title > i,
body.ha-premium-ready .card-header h3 > i {
    display: inline-grid;
    width: 28px;
    height: 28px;
    margin-right: 7px;
    place-items: center;
    color: var(--ha2-blue);
    background: rgba(51, 135, 245, .08);
    border-radius: 9px;
}

body.ha-premium-ready .card-body {
    padding: 22px;
}

body.ha-premium-ready .card-footer {
    padding: 14px 21px;
    background: rgba(248, 250, 254, .72);
    border-color: rgba(116, 135, 165, .1);
}

body.ha-premium-ready .client-home-cards .card {
    overflow: hidden;
}

body.ha-premium-ready .client-home-cards .card::before {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 22px;
    width: 46px;
    height: 2px;
    content: "";
    background: linear-gradient(90deg, var(--ha2-red), var(--ha2-cyan));
    border-radius: 0 0 3px 3px;
}

body.ha-premium-ready .client-home-cards .card:hover {
    transform: translateY(-3px);
    border-color: rgba(38, 185, 235, .2);
    box-shadow: 0 22px 55px rgba(24, 39, 75, .105);
}

body.ha-premium-ready .client-home-cards .list-group-item {
    padding: 14px 21px;
    color: #58677f;
    border-color: rgba(116, 135, 165, .095);
}

body.ha-premium-ready .client-home-cards .list-group-item:hover {
    color: var(--ha2-ink);
    background: linear-gradient(90deg, rgba(38, 185, 235, .055), rgba(255, 255, 255, .2));
}

body.ha-premium-ready .client-home-cards .badge,
body.ha-premium-ready .status-active,
body.ha-premium-ready .status-paid {
    padding: 5px 9px;
    border: 1px solid rgba(22, 183, 132, .14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75);
}

/* Buttons, form fields and tables */

body.ha-premium-ready .btn {
    border-radius: 11px;
}

body.ha-premium-ready .btn-primary {
    background: linear-gradient(135deg, var(--ha2-red-deep), #ff5c68);
    border-color: transparent;
    box-shadow: 0 10px 24px rgba(240, 68, 82, .2);
}

body.ha-premium-ready .btn-primary:hover {
    background: linear-gradient(135deg, #ca2433, var(--ha2-red));
    box-shadow: 0 13px 30px rgba(240, 68, 82, .3);
}

body.ha-premium-ready .btn-default,
body.ha-premium-ready .btn-secondary,
body.ha-premium-ready .btn-light {
    background: rgba(255, 255, 255, .92);
    border-color: rgba(116, 135, 165, .2);
    box-shadow: 0 4px 12px rgba(24, 39, 75, .04);
}

body.ha-premium-ready .form-control,
body.ha-premium-ready .custom-select,
body.ha-premium-ready .input-group-text {
    min-height: 46px;
    border-color: rgba(116, 135, 165, .22);
    border-radius: 12px;
    box-shadow: inset 0 1px 2px rgba(24, 39, 75, .025);
}

body.ha-premium-ready .form-control:focus,
body.ha-premium-ready .custom-select:focus {
    border-color: rgba(38, 185, 235, .68);
    box-shadow: 0 0 0 4px rgba(38, 185, 235, .12), 0 8px 24px rgba(24, 39, 75, .05);
}

body.ha-premium-ready .table {
    border-radius: 14px;
}

body.ha-premium-ready .table thead th {
    padding: 14px 15px;
    color: #738097;
    background: rgba(246, 248, 252, .9);
    border-color: rgba(116, 135, 165, .13);
    font-size: 10px;
    letter-spacing: .085em;
}

body.ha-premium-ready .table td {
    padding: 16px 15px;
    border-color: rgba(116, 135, 165, .1);
}

body.ha-premium-ready .table-hover tbody tr:hover {
    background: rgba(38, 185, 235, .045);
}

body.ha-premium-ready .alert {
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(24, 39, 75, .055);
}

/* Authentication and checkout receive the same premium surface language. */

body.ha-premium-ready .logincontainer .card,
body.ha-premium-ready .login-container .card,
body.ha-premium-ready .pwreset-container .card,
body.ha-premium-ready .password-reset-container .card,
body.ha-premium-ready #registration .card {
    overflow: hidden;
    border-color: rgba(116, 135, 165, .14);
    box-shadow: 0 28px 80px rgba(24, 39, 75, .14);
}

body.ha-premium-ready .logincontainer::before,
body.ha-premium-ready .login-container::before,
body.ha-premium-ready .pwreset-container::before,
body.ha-premium-ready .password-reset-container::before {
    width: 74px;
    height: 4px;
    background: linear-gradient(90deg, var(--ha2-red), var(--ha2-cyan));
    box-shadow: 0 4px 14px rgba(38, 185, 235, .18);
}

body.ha-premium-ready #order-standard_cart .products .product,
body.ha-premium-ready #order-standard_cart .order-summary,
body.ha-premium-ready #order-standard_cart .view-cart-items,
body.ha-premium-ready #order-standard_cart .domain-selection-options .option {
    border-color: rgba(116, 135, 165, .14) !important;
    border-radius: 20px !important;
    box-shadow: var(--ha2-shadow-soft);
}

body.ha-premium-ready #order-standard_cart .products .product:hover {
    border-color: rgba(38, 185, 235, .3) !important;
    box-shadow: 0 23px 58px rgba(24, 39, 75, .12);
}

body.ha-premium-ready .invoice-container {
    border-color: rgba(116, 135, 165, .14);
    border-radius: 24px;
    box-shadow: var(--ha2-shadow);
}

/* Refined footer */

body.ha-premium-ready .footer {
    position: relative;
    padding: 50px 0;
    overflow: hidden;
    color: #8190a9;
    background:
        radial-gradient(circle at 12% 0, rgba(38, 185, 235, .09), transparent 25%),
        radial-gradient(circle at 88% 100%, rgba(240, 68, 82, .08), transparent 24%),
        var(--ha2-navy-950);
}

body.ha-premium-ready .footer::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 1px;
    content: "";
    background: linear-gradient(90deg, transparent, var(--ha2-cyan), var(--ha2-red), transparent);
    opacity: .55;
}

body.ha-premium-ready .footer .nav-link,
body.ha-premium-ready .footer .btn {
    color: #b7c0d0;
    font-size: 12px;
}

/* Responsive premium layout */

@media (max-width: 1199.98px) {
    body.ha-premium-ready .header {
        position: relative;
    }

    body.ha-premium-ready .sidebar {
        position: static;
    }

    body.ha-premium-ready .main-navbar-wrapper .navbar-collapse {
        background: rgba(255, 255, 255, .98);
    }

    .ha-dashboard-hero {
        grid-template-columns: minmax(0, 1fr) 210px;
        padding: 36px;
    }

    .ha-hero-trust {
        width: 205px;
        padding: 20px;
    }
}

@media (max-width: 991.98px) {
    .ha-dashboard-hero {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .ha-hero-trust {
        display: none;
    }

    body.ha-premium-ready .sidebar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    body.ha-premium-ready .sidebar .card,
    body.ha-premium-ready .sidebar .panel {
        margin-bottom: 0;
    }
}

@media (max-width: 767.98px) {
    body.ha-premium-ready .container {
        width: calc(100% - 28px);
    }

    body.ha-premium-ready .header .topbar {
        display: none;
    }

    body.ha-premium-ready .header .navbar-light {
        min-height: 68px;
    }

    body.ha-premium-ready .header .navbar-brand .logo-img {
        max-width: 175px;
    }

    .ha-dashboard-hero {
        padding: 30px 27px;
        border-radius: 22px;
    }

    .ha-dashboard-hero h1 {
        font-size: 34px;
    }

    .ha-dashboard-hero p {
        font-size: 13px;
    }

    body.ha-premium-ready .sidebar {
        grid-template-columns: 1fr;
    }
}

/* Live shell polish — 0.3.1 */

body.ha-client-shell .header .navbar-light {
    padding: 0 16px;
}

body.ha-client-shell .header .navbar-light > .container {
    position: static;
}

@media (min-width: 1200px) {
    .ha-side-rail:not(:hover):not(:focus-within) .ha-rail-brand,
    .ha-side-rail:not(:hover):not(:focus-within) .ha-rail-label,
    .ha-side-rail:not(:hover):not(:focus-within) .ha-rail-chevron,
    .ha-side-rail:not(:hover):not(:focus-within) .ha-rail-account > span:last-child {
        visibility: hidden;
        opacity: 0;
    }
}

@media (max-width: 767.98px) {
    body.ha-client-shell .header .navbar-light,
    body.ha-client-shell .header .navbar-light > .container {
        min-height: 66px;
        height: 66px;
    }
}

/* Credit balance metric — 0.5.0 */

body.ha-dashboard .tiles > .ha-metric-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

body.ha-dashboard .tiles > .ha-metric-grid > .ha-metric-cell {
    width: auto;
    max-width: none;
    flex: none;
}

body.ha-dashboard .tiles .ha-credit-tile {
    --tile-color: var(--ha2-emerald);
    --tile-soft: rgba(22, 183, 132, .10);
    --tile-glow: rgba(22, 183, 132, .14);
}

body.ha-dashboard .tiles .ha-credit-tile .stat {
    min-width: 0;
    padding-right: 4px;
    line-height: 1.15;
}

body.ha-dashboard .tiles .ha-credit-value {
    display: block;
    overflow: hidden;
    color: var(--ha2-ink);
    font-size: clamp(16px, 1.15vw, 22px);
    font-weight: 830;
    letter-spacing: -.035em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.ha-dashboard .tiles .ha-credit-action {
    position: absolute;
    z-index: 2;
    right: 22px;
    bottom: 23px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--ha2-emerald);
    font-size: 8px;
    font-weight: 820;
    letter-spacing: .03em;
    text-transform: uppercase;
}

body.ha-dashboard .tiles .ha-credit-action i {
    font-size: 7px;
    transition: transform .18s ease;
}

body.ha-dashboard .tiles .ha-credit-tile:hover .ha-credit-action i {
    transform: translateX(2px);
}

@media (max-width: 1439.98px) {
    body.ha-dashboard .tiles > .ha-metric-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    body.ha-dashboard .tiles > .ha-metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.ha-dashboard .tiles > .ha-metric-grid > .ha-credit-cell {
        grid-column: 1 / -1;
    }
}

@media (max-width: 575.98px) {
    body.ha-dashboard .tiles .ha-credit-value {
        font-size: 18px;
    }
}

/* Recent email center — 0.4.1 */

body.ha-premium-ready .ha-top-quick-menu {
    max-height: min(570px, calc(100vh - 90px));
    overflow-y: auto;
}

.ha-top-email-list {
    display: grid;
    gap: 2px;
}

.ha-top-email-item {
    min-height: 55px;
    display: grid;
    grid-template-columns: 31px minmax(0, 1fr) 10px;
    align-items: center;
    padding: 7px 9px;
    gap: 9px;
    color: #91a0b5;
    border-radius: 11px;
    text-decoration: none !important;
}

.ha-top-email-item:hover,
.ha-top-email-item:focus {
    color: var(--ha2-blue);
    background: rgba(51, 135, 245, .06);
}

.ha-top-email-icon {
    width: 31px;
    height: 31px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ha2-blue);
    background: rgba(51, 135, 245, .075);
    border-radius: 10px;
    font-size: 11px;
}

.ha-top-email-copy {
    min-width: 0;
}

.ha-top-email-copy strong,
.ha-top-email-copy small {
    display: block;
}

.ha-top-email-copy strong {
    overflow: hidden;
    color: #445168;
    font-size: 10px;
    font-weight: 730;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ha-top-email-copy small {
    margin-top: 3px;
    color: #a0aabb;
    font-size: 8px;
    font-weight: 650;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.ha-top-email-empty {
    min-height: 82px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    color: #99a5b7;
    font-size: 10px;
}

.ha-top-email-empty i {
    color: #b1bac8;
    font-size: 18px;
}

.ha-top-quick-footer {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
    padding: 8px 10px;
    color: var(--ha2-blue);
    background: rgba(51, 135, 245, .055);
    border-radius: 10px;
    font-size: 9px;
    font-weight: 780;
    text-decoration: none !important;
}

/* Hexa-equivalent premium top panel — 0.4.0 */

body.ha-client-shell .ha-top-panel {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
}

body.ha-client-shell .ha-top-panel > * {
    flex: 0 0 auto;
}

body.ha-client-shell .ha-top-icon {
    position: relative;
    width: 42px;
    min-width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    color: #647188;
    background: #f5f7fb;
    border: 1px solid rgba(116, 135, 165, .13);
    border-radius: 13px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .92);
    font-size: 14px;
    line-height: 1;
    text-decoration: none !important;
    transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

body.ha-client-shell .ha-top-icon:hover,
body.ha-client-shell .ha-top-icon:focus,
body.ha-client-shell .ha-top-action.show > .ha-top-icon {
    color: var(--ha2-navy-950);
    background: #fff;
    border-color: rgba(51, 135, 245, .22);
    box-shadow: 0 9px 24px rgba(24, 39, 75, .1);
    transform: translateY(-1px);
}

body.ha-client-shell .ha-top-icon.dropdown-toggle::after,
body.ha-client-shell .ha-top-account-trigger.dropdown-toggle::after {
    display: none;
}

.ha-top-account {
    position: relative;
    display: block;
    list-style: none;
}

.ha-top-account-trigger {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 3px 11px 3px 4px;
    gap: 9px;
    color: var(--ha2-ink) !important;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 15px;
    text-decoration: none !important;
    transition: background .18s ease, border-color .18s ease;
}

.ha-top-account.show > .ha-top-account-trigger,
.ha-top-account-trigger:hover,
.ha-top-account-trigger:focus {
    background: #f5f7fb;
    border-color: rgba(116, 135, 165, .12);
}

.ha-top-avatar {
    width: 38px;
    height: 38px;
    display: inline-flex;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    color: #fff;
    background:
        radial-gradient(circle at 28% 15%, rgba(255, 255, 255, .24), transparent 30%),
        linear-gradient(145deg, var(--ha2-navy-800), var(--ha2-navy-950));
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 7px 18px rgba(7, 17, 31, .18);
    font-size: 10px;
    font-weight: 840;
    letter-spacing: .02em;
}

.ha-top-account-copy {
    min-width: 0;
    display: grid;
    line-height: 1.15;
}

.ha-top-account-copy small {
    margin-bottom: 3px;
    color: #98a3b5;
    font-size: 8px;
    font-weight: 740;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.ha-top-account-copy strong {
    max-width: 142px;
    overflow: hidden;
    color: #36445a;
    font-size: 11px;
    font-weight: 780;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ha-top-account-chevron {
    margin-left: 3px;
    color: #a2adbe;
    font-size: 8px;
    transition: transform .18s ease;
}

.ha-top-account.show .ha-top-account-chevron {
    transform: rotate(180deg);
}

body.ha-premium-ready .ha-top-account-menu {
    width: 290px;
    max-height: min(620px, calc(100vh - 100px));
    margin-top: 10px;
    padding: 8px;
    overflow-y: auto;
    border-radius: 18px;
}

.ha-top-menu-heading {
    display: grid;
    margin: -2px -2px 7px;
    padding: 14px 15px;
    background: linear-gradient(135deg, rgba(51, 135, 245, .09), rgba(120, 87, 246, .055));
    border-radius: 13px;
}

.ha-top-menu-heading span {
    color: var(--ha2-ink);
    font-size: 12px;
    font-weight: 820;
}

.ha-top-menu-heading small {
    margin-top: 3px;
    color: #8995a8;
    font-size: 9px;
}

body.ha-premium-ready .ha-top-account-menu > .dropdown-item {
    padding: 0;
    background: transparent;
}

body.ha-premium-ready .ha-top-account-menu > .dropdown-item > a {
    min-height: 35px;
    display: flex;
    align-items: center;
    padding: 8px 10px !important;
    gap: 10px;
    color: #66748b;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 650;
}

body.ha-premium-ready .ha-top-account-menu > .dropdown-item > a:hover,
body.ha-premium-ready .ha-top-account-menu > .dropdown-item > a:focus {
    color: var(--ha2-ink);
    background: rgba(51, 135, 245, .07);
}

body.ha-premium-ready .ha-top-account-menu > .dropdown-item > a i {
    width: 17px;
    color: var(--ha2-blue);
    text-align: center;
}

body.ha-premium-ready .ha-top-account-menu .dropdown-divider {
    margin: 6px 7px;
    border-color: rgba(116, 135, 165, .12);
}

.ha-top-action {
    position: relative;
}

body.ha-premium-ready .ha-top-quick-menu {
    width: 310px;
    margin-top: 10px;
    padding: 8px;
    border-radius: 18px;
}

.ha-top-quick-heading {
    display: flex;
    align-items: center;
    margin: -2px -2px 7px;
    padding: 12px;
    gap: 10px;
    background: linear-gradient(135deg, rgba(38, 185, 235, .1), rgba(51, 135, 245, .055));
    border-radius: 13px;
}

.ha-top-quick-symbol {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ha2-blue);
    background: #fff;
    border-radius: 11px;
    box-shadow: 0 7px 18px rgba(24, 39, 75, .08);
}

.ha-top-quick-heading strong,
.ha-top-quick-heading small,
.ha-top-quick-link strong,
.ha-top-quick-link small {
    display: block;
}

.ha-top-quick-heading strong,
.ha-top-quick-link strong {
    color: var(--ha2-ink);
    font-size: 11px;
    font-weight: 790;
}

.ha-top-quick-heading small,
.ha-top-quick-link small {
    margin-top: 2px;
    color: #929daf;
    font-size: 9px;
}

.ha-top-quick-link {
    min-height: 54px;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 12px;
    align-items: center;
    padding: 8px 10px;
    gap: 8px;
    color: #8290a5;
    border-radius: 11px;
    text-decoration: none !important;
}

.ha-top-quick-link:hover,
.ha-top-quick-link:focus {
    color: var(--ha2-blue);
    background: rgba(51, 135, 245, .06);
}

.ha-top-badge,
.ha-top-cart .badge {
    position: absolute;
    top: -4px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    color: #fff;
    background: linear-gradient(135deg, var(--ha2-red), var(--ha2-red-deep));
    border: 2px solid #fff;
    border-radius: 999px;
    box-shadow: 0 5px 12px rgba(240, 68, 82, .24);
    font-size: 8px;
    font-weight: 840;
}

.ha-top-status-dot {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 7px;
    height: 7px;
    background: var(--ha2-emerald);
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(22, 183, 132, .1);
}

body.ha-client-shell .ha-top-admin {
    color: var(--ha2-violet);
}

body.ha-client-shell .ha-top-language {
    color: #56657d;
}

body.ha-client-shell .header .toolbar[hidden] {
    display: none !important;
}

@media (max-width: 1199.98px) {
    .ha-top-account-copy,
    .ha-top-account-chevron {
        display: none;
    }

    .ha-top-account-trigger {
        width: 42px;
        height: 42px;
        min-height: 42px;
        justify-content: center;
        padding: 2px;
        border-color: rgba(116, 135, 165, .13);
    }

    .ha-top-avatar {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }
}

@media (max-width: 991.98px) {
    body.ha-client-shell .ha-top-email,
    body.ha-client-shell .ha-top-network,
    body.ha-client-shell .ha-top-admin {
        display: none;
    }
}

@media (max-width: 575.98px) {
    body.ha-client-shell .ha-top-language {
        display: none;
    }

    body.ha-client-shell .ha-top-panel {
        gap: 5px;
    }

    body.ha-client-shell .ha-top-icon,
    body.ha-client-shell .ha-rail-toggle,
    .ha-top-account-trigger {
        width: 38px;
        min-width: 38px;
        height: 38px;
        min-height: 38px;
        border-radius: 12px;
    }

    .ha-top-avatar {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }

    body.ha-premium-ready .ha-top-account-menu {
        position: fixed !important;
        top: 62px !important;
        right: 10px !important;
        left: 10px !important;
        width: auto;
        max-height: calc(100vh - 78px);
        transform: none !important;
    }
}

/* Premium client shell — 0.3.0 */

body.ha-client-shell {
    --ha-rail-width: 78px;
    --ha-rail-expanded: 262px;
}

body.ha-client-shell .header {
    position: relative;
    z-index: 1040;
    top: auto;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 1px 0 rgba(116, 135, 165, .12), 0 10px 28px rgba(13, 27, 49, .045);
}

body.ha-client-shell .header .topbar,
body.ha-client-shell .main-navbar-wrapper {
    display: none !important;
}

body.ha-client-shell .header .navbar-light,
body.ha-client-shell .header .navbar-light > .container {
    min-height: 76px;
    height: 76px;
}

body.ha-client-shell .header .navbar-light > .container {
    flex-wrap: nowrap;
}

body.ha-client-shell .header .navbar-brand {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    padding: 0;
}

body.ha-client-shell .header .navbar-brand .logo-img {
    width: auto;
    max-width: 188px;
    max-height: 36px;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(17, 28, 48, .07));
}

body.ha-client-shell .header .navbar-light > .container > form {
    display: none !important;
}

body.ha-client-shell .ha-header-actions {
    display: flex;
    min-width: 0;
    margin-left: auto;
    align-items: center;
    gap: 8px;
}

body.ha-client-shell .ha-header-actions > .btn,
body.ha-client-shell .ha-header-actions .active-client .btn,
body.ha-client-shell .header .toolbar .nav-link {
    min-width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    color: #526078;
    background: #f5f7fb;
    border: 1px solid rgba(116, 135, 165, .13);
    border-radius: 13px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
}

body.ha-client-shell .ha-header-actions > .btn:hover,
body.ha-client-shell .ha-header-actions .active-client .btn:hover,
body.ha-client-shell .header .toolbar .nav-link:hover {
    color: var(--ha2-navy-950);
    background: #fff;
    border-color: rgba(51, 135, 245, .22);
    box-shadow: 0 8px 22px rgba(24, 39, 75, .08);
}

body.ha-client-shell .ha-header-actions #accountNotifications {
    gap: 5px;
    font-size: 12px;
    font-weight: 800;
}

body.ha-client-shell .ha-header-actions #accountNotifications > span {
    display: none !important;
}

body.ha-client-shell .ha-header-actions .active-client {
    display: flex;
    flex-wrap: nowrap;
}

body.ha-client-shell .ha-header-actions .active-client .input-group-prepend,
body.ha-client-shell .ha-header-actions .btn-return-to-admin span {
    display: none !important;
}

body.ha-client-shell .ha-header-actions .btn-active-client {
    max-width: 180px;
    overflow: hidden;
    color: var(--ha2-ink);
    font-size: 12px;
    font-weight: 780;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.ha-client-shell .header .toolbar {
    margin-left: 0;
    flex-direction: row;
    flex-wrap: nowrap;
}

body.ha-client-shell .header .toolbar .nav-item {
    margin-left: 8px !important;
}

body.ha-client-shell .header .toolbar .nav-item.d-xl-none {
    display: none !important;
}

.ha-rail-toggle {
    display: none !important;
}

.ha-side-rail {
    position: fixed;
    z-index: 1032;
    top: 92px;
    bottom: 18px;
    left: max(18px, calc((100vw - 1510px) / 2 + 15px));
    width: var(--ha-rail-width);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 18% 0, rgba(38, 185, 235, .2), transparent 28%),
        radial-gradient(circle at 110% 82%, rgba(240, 68, 82, .18), transparent 34%),
        linear-gradient(165deg, #07111f 0, #10213a 62%, #101a2d 100%);
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 22px;
    box-shadow: 0 26px 75px rgba(7, 17, 31, .24);
    transition: width .24s ease, top .24s ease, box-shadow .24s ease;
    isolation: isolate;
}

.ha-side-rail::before {
    position: absolute;
    z-index: -1;
    top: -90px;
    left: -75px;
    width: 190px;
    height: 190px;
    content: "";
    background: radial-gradient(circle, rgba(38, 185, 235, .2), transparent 68%);
    pointer-events: none;
}

body.ha-page-scrolled .ha-side-rail {
    top: 16px;
    box-shadow: 0 30px 85px rgba(7, 17, 31, .3);
}

.ha-side-rail:hover,
.ha-side-rail:focus-within {
    width: var(--ha-rail-expanded);
}

.ha-rail-head {
    height: 70px;
    display: flex;
    min-width: var(--ha-rail-expanded);
    align-items: center;
    padding: 12px 16px;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .085);
}

.ha-rail-mark,
.ha-rail-icon,
.ha-rail-avatar {
    width: 44px;
    height: 44px;
    display: inline-flex;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
}

.ha-rail-mark {
    color: #fff;
    background: linear-gradient(145deg, var(--ha2-blue), var(--ha2-violet));
    box-shadow: 0 10px 24px rgba(51, 135, 245, .27);
}

.ha-rail-brand {
    overflow: hidden;
    font-size: 13px;
    font-weight: 830;
    letter-spacing: .02em;
    text-transform: uppercase;
    white-space: nowrap;
}

.ha-rail-close {
    display: none;
    width: 36px;
    height: 36px;
    margin-left: auto;
    color: rgba(255, 255, 255, .7);
    background: rgba(255, 255, 255, .07);
    border: 0;
    border-radius: 11px;
}

.ha-rail-scroll {
    min-height: 0;
    padding: 12px 10px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-color: rgba(255, 255, 255, .18) transparent;
    scrollbar-width: thin;
}

.ha-rail-nav {
    min-width: 240px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ha-rail-item {
    position: relative;
    margin: 3px 0;
}

.ha-rail-link {
    min-height: 50px;
    display: flex;
    align-items: center;
    padding: 3px 8px;
    gap: 12px;
    color: rgba(218, 226, 239, .72);
    border-radius: 15px;
    font-size: 13px;
    font-weight: 690;
    text-decoration: none !important;
    white-space: nowrap;
    transition: color .18s ease, background .18s ease, transform .18s ease;
}

.ha-rail-link:hover,
.ha-rail-link:focus,
.ha-rail-item.is-open > .ha-rail-link {
    color: #fff;
    background: rgba(255, 255, 255, .075);
}

.ha-rail-item.is-active > .ha-rail-link {
    color: #fff;
    background: linear-gradient(105deg, rgba(51, 135, 245, .34), rgba(120, 87, 246, .22));
    box-shadow: inset 3px 0 0 var(--ha2-cyan), 0 10px 28px rgba(4, 12, 24, .16);
}

.ha-rail-icon {
    color: #91a1ba;
    background: rgba(255, 255, 255, .045);
    font-size: 15px;
    transition: color .18s ease, background .18s ease;
}

.ha-rail-link:hover .ha-rail-icon,
.ha-rail-item.is-active .ha-rail-icon,
.ha-rail-item.is-open .ha-rail-icon {
    color: #fff;
    background: rgba(38, 185, 235, .14);
}

.ha-rail-label {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ha-rail-chevron {
    margin-right: 6px;
    color: rgba(255, 255, 255, .34);
    font-size: 9px;
    transition: transform .18s ease;
}

.ha-rail-item.is-open > .ha-rail-link .ha-rail-chevron {
    transform: rotate(90deg);
}

.ha-rail-submenu {
    display: none;
    margin: 4px 7px 7px 29px;
    padding: 4px 0 4px 22px;
    border-left: 1px solid rgba(38, 185, 235, .23);
}

.ha-rail-item.is-open > .ha-rail-submenu {
    display: grid;
}

.ha-rail-submenu a {
    padding: 8px 10px;
    overflow: hidden;
    color: rgba(218, 226, 239, .66);
    border-radius: 9px;
    font-size: 11px;
    line-height: 1.35;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ha-rail-submenu a:hover,
.ha-rail-submenu a:focus {
    color: #fff;
    background: rgba(255, 255, 255, .065);
}

.ha-rail-foot {
    min-width: var(--ha-rail-expanded);
    padding: 11px 10px;
    border-top: 1px solid rgba(255, 255, 255, .085);
}

.ha-rail-account {
    min-height: 54px;
    display: flex;
    align-items: center;
    padding: 5px 8px;
    gap: 12px;
    color: rgba(255, 255, 255, .83) !important;
    border-radius: 15px;
    text-decoration: none !important;
}

.ha-rail-account:hover {
    background: rgba(255, 255, 255, .07);
}

.ha-rail-avatar {
    color: var(--ha2-cyan);
    background: rgba(38, 185, 235, .12);
}

.ha-rail-account strong,
.ha-rail-account small {
    display: block;
    white-space: nowrap;
}

.ha-rail-account strong {
    font-size: 12px;
}

.ha-rail-account small {
    margin-top: 2px;
    color: rgba(218, 226, 239, .48);
    font-size: 9px;
}

.ha-rail-backdrop {
    display: none;
}

body.ha-client-shell .ha-legacy-sidebar-column {
    display: none !important;
}

body.ha-client-shell #main-body > .container,
body.ha-client-shell .master-breadcrumb > .container,
body.ha-client-shell .footer > .container {
    padding-left: 108px;
}

body.ha-client-shell #main-body > .container > .row > .ha-shell-primary {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
}

@media (max-width: 1199.98px) {
    body.ha-client-shell .header .navbar-light,
    body.ha-client-shell .header .navbar-light > .container {
        min-height: 72px;
        height: 72px;
    }

    body.ha-client-shell .header .navbar-brand .logo-img {
        max-width: 170px;
        max-height: 34px;
    }

    body.ha-client-shell .ha-header-actions .active-client {
        margin: 0;
    }

    .ha-rail-toggle {
        display: inline-flex !important;
    }

    .ha-side-rail,
    body.ha-page-scrolled .ha-side-rail,
    .ha-side-rail:hover,
    .ha-side-rail:focus-within {
        z-index: 1062;
        top: 0;
        bottom: 0;
        left: 0;
        width: min(320px, calc(100vw - 42px));
        border-radius: 0 24px 24px 0;
        box-shadow: 32px 0 90px rgba(7, 17, 31, .34);
        transform: translateX(-105%);
        transition: transform .26s ease;
    }

    body.ha-rail-open .ha-side-rail {
        transform: translateX(0);
    }

    .ha-rail-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .ha-rail-backdrop {
        position: fixed;
        z-index: 1060;
        inset: 0;
        display: block;
        visibility: hidden;
        padding: 0;
        background: rgba(6, 14, 26, .52);
        border: 0;
        opacity: 0;
        transition: opacity .2s ease, visibility .2s ease;
        backdrop-filter: blur(4px);
    }

    body.ha-rail-open {
        overflow: hidden;
    }

    body.ha-rail-open .ha-rail-backdrop {
        visibility: visible;
        opacity: 1;
    }

    body.ha-client-shell #main-body > .container,
    body.ha-client-shell .master-breadcrumb > .container,
    body.ha-client-shell .footer > .container {
        padding-left: 15px;
    }
}

@media (max-width: 767.98px) {
    body.ha-client-shell .header .navbar-light,
    body.ha-client-shell .header .navbar-light > .container {
        min-height: 66px;
        height: 66px;
    }

    body.ha-client-shell .header .navbar-brand .logo-img {
        max-width: 145px;
        max-height: 31px;
    }

    body.ha-client-shell .ha-header-actions {
        gap: 6px;
    }

    body.ha-client-shell .ha-header-actions .active-client {
        display: none;
    }

    body.ha-client-shell .ha-header-actions > .btn,
    body.ha-client-shell .header .toolbar .nav-link {
        min-width: 39px;
        width: 39px;
        height: 39px;
        padding: 0;
        border-radius: 12px;
    }

    body.ha-client-shell .header .toolbar .nav-item {
        margin-left: 6px !important;
    }
}

@media (max-width: 420px) {
    body.ha-client-shell .header .navbar-brand .logo-img {
        max-width: 125px;
    }
}

@media print {
    .ha-side-rail,
    .ha-rail-backdrop,
    .ha-header-actions {
        display: none !important;
    }

    body.ha-client-shell #main-body > .container,
    body.ha-client-shell .master-breadcrumb > .container,
    body.ha-client-shell .footer > .container {
        padding-left: 15px;
    }
}

@media (max-width: 575.98px) {
    body.ha-premium-ready .container {
        width: calc(100% - 20px);
    }

    .ha-dashboard-hero {
        margin-bottom: 18px;
        padding: 26px 22px;
    }

    .ha-hero-eyebrow {
        font-size: 9px;
    }

    .ha-dashboard-hero h1 {
        font-size: 29px;
        line-height: 1.08;
    }

    .ha-hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .ha-hero-actions .btn {
        width: 100%;
    }

    body.ha-dashboard .tiles .tile {
        display: grid;
        grid-template-columns: 1fr 42px;
        grid-template-rows: 1fr auto;
        min-height: 132px;
        padding: 18px 16px;
    }

    body.ha-dashboard .tiles .tile > i {
        grid-column: 2;
        grid-row: 1 / 3;
        width: 40px;
        height: 40px;
        margin: 0;
        font-size: 15px;
    }

    body.ha-dashboard .tiles .tile .stat {
        grid-column: 1;
        grid-row: 1;
        font-size: 28px;
    }

    body.ha-dashboard .tiles .tile .title {
        grid-column: 1;
        grid-row: 2;
        max-width: 100%;
        padding-bottom: 11px;
        font-size: 9px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ha-orbit-ring {
        animation: none !important;
    }
}

@media print {
    .ha-dashboard-hero {
        display: none !important;
    }
}

/* Live QA corrections — 0.2.1 */

@media (min-width: 1200px) {
    body.ha-premium-ready .header .navbar-light > .container > form {
        height: 46px;
        align-items: center;
    }

    body.ha-premium-ready .header .navbar-light .search {
        width: 344px;
        height: 46px;
        flex-wrap: nowrap;
    }

    body.ha-premium-ready .header .navbar-light .search .input-group-prepend {
        width: 48px;
        height: 46px;
        flex: 0 0 48px;
    }

    body.ha-premium-ready .header .navbar-light .search .input-group-prepend .btn {
        width: 48px;
        height: 46px;
        padding: 0;
        border: 0;
    }

    body.ha-premium-ready .header .navbar-light .search .form-control {
        width: 1%;
        min-width: 0;
        height: 46px;
        flex: 1 1 auto;
        border: 0;
    }
}

body.ha-premium-ready .table-container,
body.ha-premium-ready .dataTables_wrapper,
body.ha-premium-ready .listtable {
    width: 100%;
    max-width: 100%;
}

body.ha-premium-ready .table-container .listtable {
    overflow-x: auto;
    overflow-y: hidden;
    border-radius: 14px;
    -webkit-overflow-scrolling: touch;
    scrollbar-color: rgba(51, 135, 245, .28) transparent;
    scrollbar-width: thin;
}

body.ha-premium-ready .table-container .listtable::-webkit-scrollbar,
body.ha-premium-ready #order-standard_cart #flow-menu::-webkit-scrollbar {
    height: 6px;
}

body.ha-premium-ready .table-container .listtable::-webkit-scrollbar-thumb,
body.ha-premium-ready #order-standard_cart #flow-menu::-webkit-scrollbar-thumb {
    background: rgba(51, 135, 245, .28);
    border-radius: 999px;
}

@media (max-width: 1199.98px) {
    body.ha-premium-ready .header .navbar-light > .container {
        min-height: 68px;
        flex-wrap: nowrap;
    }

    body.ha-premium-ready .header .navbar-light > .container > form {
        display: none !important;
    }

    body.ha-premium-ready .header .navbar-light .toolbar {
        margin-left: auto;
        flex-direction: row;
        flex-wrap: nowrap;
    }

    body.ha-premium-ready .main-navbar-wrapper {
        min-height: 0;
        padding: 0;
        border-top: 0;
    }

    body.ha-premium-ready .main-navbar-wrapper .navbar-collapse {
        margin: 10px 0;
    }

    body.ha-premium-ready .main-navbar-wrapper .navbar-collapse:not(.show) {
        display: none !important;
    }
}

@media (max-width: 991.98px) {
    body.ha-premium-ready #main-body > .container > .row > .primary-content {
        order: 1;
    }

    body.ha-premium-ready #main-body > .container > .row > .col-lg-4.col-xl-3 {
        order: 2;
        margin-top: 22px;
    }

    body.ha-premium-ready #main-body > .container > .row > .sidebar-secondary {
        width: 100%;
        order: 3;
    }

    body.ha-premium-ready #order-standard_cart #flow-menu {
        display: flex;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        flex-wrap: nowrap;
        white-space: nowrap;
        overscroll-behavior-inline: contain;
        -webkit-overflow-scrolling: touch;
    }

    body.ha-premium-ready #order-standard_cart #flow-menu > li {
        width: auto !important;
        min-width: max-content;
        flex: 0 0 auto;
    }

    body.ha-premium-ready #order-standard_cart #flow-menu > li > a {
        display: inline-flex;
        width: auto;
        min-width: 0;
        align-items: center;
        white-space: nowrap;
    }
}

@media (max-width: 767.98px) {
    body.ha-premium-ready .header .navbar-light {
        min-height: 68px;
        height: 68px;
    }

    body.ha-premium-ready .header .navbar-light > .container {
        height: 68px;
    }

    body.ha-premium-ready .table-container .listtable::after {
        display: block;
        padding: 7px 4px 2px;
        color: #8a96a8;
        content: "Swipe to view all columns →";
        font-size: 10px;
        font-weight: 650;
        letter-spacing: .02em;
        text-align: right;
    }

    body.ha-client-shell .header .navbar-light,
    body.ha-client-shell .header .navbar-light > .container {
        min-height: 66px;
        height: 66px;
    }
}
