html {
    position: relative;
    min-height: 100%;
}

body {
    padding-top: 84px;
    margin-bottom: 80px;
    background: radial-gradient(circle at top left, #f4f7ff 0%, #eef2ff 40%, #e8ecff 100%);
    color: #1f2937;
}

.bg {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0.5;
    background-color: rgb(205, 205, 205);
    display: block;
    z-index: 1111;
}

.loader {
    display: none;
}

.pre-loader {
    z-index: 9999;
    width: 145px;
    height: 200px;
    position: fixed;
    top: 40%;
    left: 50%;
    margin-left: -100px;
}

.top5 { margin-top: 5px; }
.top7 { margin-top: 7px; }
.top10 { margin-top: 10px; }
.top15 { margin-top: 15px; }
.top17 { margin-top: 17px; }
.top30 { margin-top: 30px; }
.bottom5 { margin-bottom: 5px; }
.bottom7 { margin-bottom: 7px; }
.bottom10 { margin-bottom: 10px; }
.bottom15 { margin-bottom: 15px; }
.bottom17 { margin-bottom: 17px; }
.bottom30 { margin-bottom: 30px; }

.filter {
    color: black;
    width: 100%;
    height: 20px;
    text-align: center;
}

.top-menu {
    margin-bottom: 12px;
}

.header_switch-menu {
    padding: 0 5px;
}

.in .header_switch-menu {
    padding: 5px 15px;
}

.in .header_switch-menu > span {
    display: inline-block;
    margin-right: 10px;
}

.header_switch-menu > span {
    text-align: center;
    display: block;
    color: #9d9d9d;
}

.header_switch-menu img {
    cursor: pointer;
}

.table > tbody > tr > td,
.table > tbody > tr > th,
.table > tfoot > tr > td,
.table > tfoot > tr > th,
.table > thead > tr > td,
.table > thead > tr > th {
    vertical-align: middle;
    border-color: #e8ecff;
}

table.table {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

table.table thead tr:first-child {
    background: linear-gradient(120deg, #2c3e94 0%, #5f7bff 100%);
    color: #fff;
}

.header_switch-menu a > button {
    background-color: transparent;
    padding: 0;
    border: none;
    outline: none;
}

.navbar-fixed-top {
    border: 0;
}

.nav > li.header_switch-menu > a {
    padding-left: 2px;
    padding-right: 2px;
}

.header_switch-menu a > button .caret {
    color: #fff;
}

.header_switch-menu .dropdown-menu {
    width: 46px;
    min-width: 0;
    padding: 5px 10px;
}

th .sorting {
    display: inline-block;
    vertical-align: middle;
    margin-left: 5px;
}

th .sorting a {
    color: #ffd1f8;
}

th .sorting a span {
    margin-right: 0;
}

th div input,
th div select {
    margin-top: 5px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0 5px;
    font-weight: 300;
    color: #fff;
    border-radius: 7px;
    outline: none;
    position: relative;
}

th .filter {
    color: #fff;
}

tr.checked {
    background-color: #f9f9ff;
}

.promocode-inp-inner {
    display: none;
}

.navbar.navbar-inverse {
    background: rgba(14, 21, 48, 0.92);
    border: 0;
    box-shadow: 0 12px 30px rgba(3, 7, 18, 0.28);
    backdrop-filter: blur(10px);
}

.navbar-brand img {
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.25));
}

.navbar-inverse .navbar-nav > li > a,
.navbar-inverse .navbar-brand {
    color: #e7ebff;
    transition: all .2s ease;
}

.navbar-inverse .navbar-nav > li > a:hover,
.navbar-inverse .navbar-nav > .active > a,
.navbar-inverse .navbar-nav > .active > a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.navbar-inverse .dropdown-menu {
    border: 0;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.22);
}

.navbar-inverse .dropdown-menu > li > a {
    border-radius: 8px;
    padding: 8px 12px;
}

.navbar-inverse .dropdown-menu > li > a:hover {
    background: #eef2ff;
}

.panel,
.well,
.list-group,
.modal-content {
    border: 0;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.panel-heading {
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
}

.btn {
    border-radius: 10px;
    transition: all .2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary,
.btn-warning {
    border: 0;
    background: linear-gradient(120deg, #3756f1 0%, #6f7dff 100%);
}

.btn-primary:hover,
.btn-warning:hover {
    background: linear-gradient(120deg, #2f49d1 0%, #5f6ef2 100%);
}

.form-control {
    border-radius: 10px;
    border: 1px solid #d7def9;
    box-shadow: none;
}

.form-control:focus {
    border-color: #7287ff;
    box-shadow: 0 0 0 3px rgba(114, 135, 255, 0.2);
}

.label-danger {
    background-color: #ff4d6d;
}

#noty-holder {
    width: 100%;
    top: 0;
    font-weight: bold;
    z-index: 1031;
    text-align: center;
    position: fixed;
}

.alert-popup {
    border-radius: 0;
}

.alert-popup > span.message {
    position: relative;
    text-align: center;
    font-size: 16px;
    font-family: "Segoe UI", Frutiger, "Frutiger Linotype", "Dejavu Sans", "Helvetica Neue", Arial, sans-serif;
}

.footer {
    border-top: 1px solid #dde3ff;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(6px);
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 46px;
}

.footer .container {
    padding: 12px 18px;
}

footer .container .text-muted {
    margin: 0;
}

.modal-subtitle {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 3px;
    text-align: center;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 10px;
}

nav .navbar-brand {
    padding-right: 0;
}


.hb-navbar {
    padding-top: 8px;
    padding-bottom: 8px;
}

.hb-navbar__inner {
    display: flex;
    align-items: center;
}

.hb-brand {
    display: flex !important;
    align-items: center;
    gap: 10px;
}

.hb-brand__logo {
    max-width: 150px;
}

.hb-brand__meta {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.6px;
    color: #a9b8ff;
    font-weight: 600;
}

.hb-main-shell {
    margin-top: 14px;
    margin-bottom: 24px;
    padding-left: 15px;
    padding-right: 15px;
}

.hb-page-wrap {
    border-radius: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.navbar-inverse .navbar-nav > li > a {
    border-radius: 10px;
    margin: 0 2px;
    padding-top: 13px;
    padding-bottom: 13px;
}

.navbar-inverse .navbar-nav.navbar-right > li > a {
    background: rgba(255,255,255,0.04);
}

.navbar-inverse .navbar-nav > li > a .label {
    margin-left: 4px;
}

@media (max-width: 991px) {
    body {
        padding-top: 70px;
    }

    .hb-brand__meta {
        display: none;
    }

    .hb-page-wrap {
        padding: 0;
        border-radius: 0;
    }
}

.hb-workspace {
    display: flex;
    align-items: flex-start;
}

.hb-sidebar-col {
    padding-right: 10px;
}

.hb-content-col {
    padding-left: 10px;
}

.hb-sidebar {
    background: rgba(14, 23, 54, 0.92);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 18px 36px rgba(16, 24, 54, 0.28);
    position: sticky;
    top: 96px;
}

.hb-sidebar__title {
    color: #a9bbff;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.3px;
    margin-bottom: 10px;
}

.hb-sidebar__link {
    display: block;
    color: #e7ecff;
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 6px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.03);
}

.hb-sidebar__link:hover,
.hb-sidebar__link.active {
    color: #fff;
    text-decoration: none;
    background: rgba(108, 133, 255, 0.3);
}

.hb-sidebar__link .glyphicon {
    margin-right: 8px;
}

.hb-sidebar__link--danger:hover {
    background: rgba(255, 90, 122, 0.28);
}

.hb-content-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 6px 6px 0;
}

.hb-content-header h1 {
    margin: 0;
    font-size: 24px;
    color: #1e2a5f;
    font-weight: 700;
}

.hb-content-header__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #35417a;
    font-size: 14px;
}

.hb-content-header__meta a {
    color: #3a56e6;
    text-decoration: none;
}

.hb-content-header__meta a:hover {
    text-decoration: underline;
}

@media (max-width: 991px) {
    .hb-content-col,
    .hb-sidebar-col {
        padding-left: 15px;
        padding-right: 15px;
    }

    .hb-content-header {
        display: block;
    }

    .hb-content-header__meta {
        margin-top: 8px;
        flex-wrap: wrap;
        gap: 8px 14px;
    }
}

.hb-section-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
    margin-bottom: 18px;
}

.hb-section-card__head {
    margin-bottom: 16px;
}

.hb-section-card__head h2 {
    margin: 0;
    font-size: 24px;
    color: #1e2a5f;
}

.hb-section-card__head--split {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.hb-muted-text {
    color: #475569;
    line-height: 1.65;
}

.hb-form-card .form-control,
.hb-balance-form .form-control {
    max-width: 420px;
}

.hb-form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.hb-table-modern thead tr:first-child {
    background: linear-gradient(120deg, #25367f 0%, #4f68e8 100%);
}

.hb-balance-card {
    text-align: center;
    padding-top: 28px;
    padding-bottom: 30px;
}

.hb-balance-amount {
    margin-top: 8px;
    font-size: 42px;
    font-weight: 700;
    color: #2b3c93;
}

.hb-balance-form-wrap {
    display: flex;
    justify-content: center;
}

.hb-balance-form {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.ref_link-block > span {
    display: block;
    margin-bottom: 7px;
    font-weight: 700;
}

.ref_results > div {
    margin-bottom: 10px;
}

.ref_results div > span {
    min-width: 180px;
    display: inline-block;
}

.ref_results div > b {
    min-width: 100px;
    display: inline-block;
}

.hb-bills-table th div input,
.hb-bills-table th div select {
    width: 100%;
    min-width: 72px;
    background: rgba(255, 255, 255, 0.95);
    color: #1f2937;
    border: 1px solid #cad4ff;
}

.hb-bills-table th .sorting a {
    color: #e6edff;
}

.hb-bills-table tbody tr:hover {
    background: #f4f7ff;
}

.hb-bills-card .btn-group-vertical > .btn {
    border-radius: 8px !important;
    margin-bottom: 4px;
}

.hb-home-hero {
    border-radius: 16px;
    padding: 48px 32px;
    margin-bottom: 18px;
    background: linear-gradient(120deg, #243885 0%, #5b7bff 100%);
    color: #fff;
}

.hb-home-hero h1 {
    margin-top: 0;
    font-size: 38px;
    font-weight: 700;
}

.hb-home-hero p {
    max-width: 760px;
    color: rgba(245, 248, 255, 0.95);
    font-size: 17px;
}

.hb-home-hero__actions .btn {
    margin-right: 8px;
}

.hb-domain-check__row {
    display: flex;
    gap: 10px;
}

.hb-price-card {
    border: 1px solid #e2e8ff;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    background: #fbfcff;
}

.hb-price-card h3 {
    margin-top: 0;
}

.hb-price-card__price {
    font-size: 28px;
    font-weight: 700;
    color: #2d44aa;
    margin-bottom: 12px;
}

.hb-domain-zones .label {
    display: inline-block;
    margin: 0 6px 6px 0;
    padding: 7px 9px;
}

@media (max-width: 767px) {
    .hb-domain-check__row {
        display: block;
    }

    .hb-domain-check__row .btn {
        margin-top: 10px;
        width: 100%;
    }
}


.hb-home-top-actions {
    position: absolute;
    top: 18px;
    right: 18px;
    display: flex;
    gap: 8px;
}

.hb-home-top-actions .btn {
    border-radius: 999px;
    padding: 6px 12px;
}

.hb-home-hero {
    position: relative;
}

.hb-home-hero__benefits {
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hb-home-hero__benefits li {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 13px;
}

.hb-price-card ul {
    margin: 0 0 12px;
    padding-left: 18px;
    color: #4b5679;
}

@media (max-width: 767px) {
    .hb-home-top-actions {
        position: static;
        margin-bottom: 18px;
        justify-content: flex-end;
    }
}

.hb-domain-check__options {
    padding: 12px;
    border-radius: 10px;
    background: #f8faff;
    border: 1px solid #e0e8ff;
}

.hb-zone-list .checkbox-inline {
    margin: 4px 10px 4px 0;
}

.hb-domain-results > div {
    margin-bottom: 6px;
    font-weight: 600;
}

.hb-topline {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1035;
    background: #0c1330;
    border-bottom: 1px solid rgba(255,255,255,0.09);
    font-size: 13px;
}

.hb-topline__inner {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.hb-topline__left,
.hb-topline__center,
.hb-topline__right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.hb-topline__left {
    flex: 1;
    justify-content: flex-start;
}

.hb-topline__center {
    justify-content: center;
}

.hb-topline__right {
    flex: 1;
    justify-content: flex-end;
}

.hb-topline a {
    color: #d8e3ff;
    text-decoration: none;
}

.hb-topline a:hover { color: #fff; }

.hb-topline__panel {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.15);
    padding: 5px 10px;
    border-radius: 999px;
}

body { padding-top: 108px; }
nav.hb-navbar { top: 42px; }

@media (max-width: 991px) {
    .hb-topline__left,
    .hb-topline__center {
        display: none;
    }

    .hb-topline__right {
        justify-content: flex-end;
    }

    .hb-topline__inner {
        justify-content: flex-end;
    }

    body { padding-top: 100px; }
}

.hb-modern-select {
    min-height: 140px;
    border-radius: 12px;
    border: 1px solid #cad6ff;
    background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
    box-shadow: inset 0 1px 2px rgba(17, 35, 82, 0.05);
    padding: 8px;
}

.hb-modern-select option {
    padding: 8px 10px;
    border-radius: 8px;
    margin-bottom: 4px;
}

.hb-modern-select option:checked {
    background: linear-gradient(120deg, #4362ff, #6984ff);
    color: #fff;
}


.hb-guest-main-menu > li > a {
    font-weight: 600;
}

.hb-guest-main-menu .dropdown-menu {
    border-radius: 12px;
    border: 1px solid #e5e9ff;
    box-shadow: 0 12px 35px rgba(28, 44, 92, 0.14);
}

.hb-service-page-card {
    min-height: 220px;
}

.hb-service-page .lead {
    color: #34456f;
}


.hb-mikrotik-hero {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-radius: 14px;
    border: 1px solid #d4e1ff;
    background: linear-gradient(120deg, #eff4ff, #f9fbff);
}

.hb-mikrotik-hero__icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: #3f62ff;
    color: #fff;
    flex-shrink: 0;
}
