/*!
 * HBCloud Client Theme — design system
 * RTL-first, light/dark, built on Bootstrap 4 (flipped) + WHMCS Twenty-One logic.
 */

/* =========================================================================
   1. Font
   ========================================================================= */
@font-face {
    font-family: "Vazirmatn";
    src: url("../fonts/Vazirmatn-wght.woff2") format("woff2-variations"),
         url("../fonts/Vazirmatn-wght.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "JetBrains Mono";
    src: url("../fonts/JetBrainsMono-400.woff2") format("woff2");
    font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
    font-family: "JetBrains Mono";
    src: url("../fonts/JetBrainsMono-600.woff2") format("woff2");
    font-weight: 600; font-style: normal; font-display: swap;
}

/* =========================================================================
   2. Tokens
   ========================================================================= */
:root {
    --hbc-font: "Vazirmatn", Tahoma, "Segoe UI", system-ui, sans-serif;
    --hbc-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

    --hbc-primary: #FF5722;
    --hbc-primary-hover: #FF6A3D;
    --hbc-primary-active: #F4511E;
    --hbc-primary-text: #C2410C;      /* AA on white for links/text */
    --hbc-primary-soft: #FFEDE6;
    --hbc-primary-soft-2: #FFDCCD;
    --hbc-on-primary: #1A0B05;

    --hbc-success: #12B76A; --hbc-success-text: #067647; --hbc-success-soft: #ECFDF3;
    --hbc-warning: #F79009; --hbc-warning-text: #B54708; --hbc-warning-soft: #FFFAEB;
    --hbc-danger:  #F04438; --hbc-danger-text:  #B42318; --hbc-danger-soft:  #FEF3F2;
    --hbc-info:    #2E90FA; --hbc-info-text:    #175CD3; --hbc-info-soft:    #EFF8FF;

    --hbc-bg: #EEF0F2;
    --hbc-surface: #FFFFFF;
    --hbc-surface-2: #F6F7F8;
    --hbc-surface-3: #ECEEF1;
    --hbc-border: #DFE2E6;
    --hbc-border-strong: #C9CED5;
    --hbc-text: #2A3038;
    --hbc-heading: #14181D;
    --hbc-muted: #5A636E;            /* 5.6:1 on white */
    --hbc-placeholder: #8A929C;

    --hbc-sidebar-bg: #15181D;
    --hbc-sidebar-text: #AEB6C0;
    --hbc-sidebar-hover: #1F242B;

    --hbc-radius-sm: 8px;
    --hbc-radius: 12px;
    --hbc-radius-lg: 14px;
    --hbc-shadow-xs: 0 1px 2px rgba(16, 24, 40, .05);
    --hbc-shadow-sm: 0 1px 3px rgba(16, 24, 40, .08), 0 1px 2px rgba(16, 24, 40, .04);
    --hbc-shadow-md: 0 8px 16px -4px rgba(16, 24, 40, .08), 0 2px 6px -2px rgba(16, 24, 40, .04);
    --hbc-shadow-lg: 0 20px 32px -8px rgba(16, 24, 40, .14), 0 4px 8px -4px rgba(16, 24, 40, .06);
    --hbc-ring: 0 0 0 3px rgba(255, 87, 34, .28);

    --hbc-sidebar-w: 260px;
    --hbc-topbar-h: 64px;
    --hbc-ease: cubic-bezier(.2, .8, .2, 1);
    --hbc-dur: 180ms;

    /* Compatibility aliases for modules written for Lagom 2 */
    --primary: var(--hbc-primary);
    --primary-hover: var(--hbc-primary-hover);
    --primary-faded: var(--hbc-primary-soft);
    --primary-opacity: rgba(255, 87, 34, .12);
    --brand-primary: var(--hbc-primary);
    --success: var(--hbc-success); --success-faded: var(--hbc-success-soft);
    --warning: var(--hbc-warning); --warning-faded: var(--hbc-warning-soft);
    --danger: var(--hbc-danger);   --danger-faded: var(--hbc-danger-soft);
    --content-bg: var(--hbc-surface);
    --card-bg: var(--hbc-surface);
    --input-bg: var(--hbc-surface-2);
    --border-color: var(--hbc-border);
    --text-color: var(--hbc-text);
    --text-muted: var(--hbc-muted);
    --heading-color: var(--hbc-heading);
    --gray-faded: var(--hbc-surface-2);
    --border-radius: var(--hbc-radius-sm);
    --border-radius-lg: var(--hbc-radius);
    --badge-border-radius: 999px;
    --box-shadow-sm: var(--hbc-shadow-sm);
    --box-shadow-md: var(--hbc-shadow-md);
    color-scheme: light;
}

html[data-theme="dark"] {
    --hbc-primary: #FF6E40;
    --hbc-primary-hover: #FF8A65;
    --hbc-primary-active: #FF5722;
    --hbc-primary-text: #FF8F66;
    --hbc-primary-soft: rgba(255, 110, 64, .14);
    --hbc-primary-soft-2: rgba(255, 110, 64, .24);
    --hbc-on-primary: #1A0B05;

    --hbc-success-text: #6CE9A6; --hbc-success-soft: rgba(18, 183, 106, .14);
    --hbc-warning-text: #FEC84B; --hbc-warning-soft: rgba(247, 144, 9, .14);
    --hbc-danger-text:  #FDA29B; --hbc-danger-soft:  rgba(240, 68, 56, .15);
    --hbc-info-text:    #84CAFF; --hbc-info-soft:    rgba(46, 144, 250, .15);

    --hbc-bg: #0C0F13;
    --hbc-surface: #141920;
    --hbc-surface-2: #1A2029;
    --hbc-surface-3: #202733;
    --hbc-border: #242C36;
    --hbc-border-strong: #33404D;
    --hbc-text: #C9D1DA;
    --hbc-heading: #E9EDF1;
    --hbc-muted: #9BA5B1;            /* 6.6:1 on surface */
    --hbc-placeholder: #6F7A86;

    --hbc-sidebar-bg: #0F1317;
    --hbc-sidebar-text: #AEB6C0;
    --hbc-sidebar-hover: #1A2028;

    --hbc-shadow-xs: 0 1px 2px rgba(0, 0, 0, .4);
    --hbc-shadow-sm: 0 1px 3px rgba(0, 0, 0, .5);
    --hbc-shadow-md: 0 8px 20px -6px rgba(0, 0, 0, .6);
    --hbc-shadow-lg: 0 24px 40px -12px rgba(0, 0, 0, .7);
    --hbc-ring: 0 0 0 3px rgba(255, 110, 64, .4);
    color-scheme: dark;
}

/* WHMCS JS toggles visibility with .w-hidden; theme-rtl.css (built from the unminified theme.css) does not define it. */
.w-hidden { display: none; }

/* =========================================================================
   3. Base
   ========================================================================= */
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
html, body { height: auto; min-height: 100%; }
body.hbc {
    font-family: var(--hbc-font);
    font-size: 0.9375rem;
    line-height: 1.75;
    color: var(--hbc-text);
    background: var(--hbc-bg);
    text-align: right;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "ss01";
    touch-action: manipulation;
}
body.hbc, .hbc input, .hbc button, .hbc select, .hbc textarea, .hbc .tooltip, .hbc .popover {
    font-family: var(--hbc-font);
}
.hbc h1, .hbc h2, .hbc h3, .hbc h4, .hbc h5, .hbc h6,
.hbc .h1, .hbc .h2, .hbc .h3, .hbc .h4, .hbc .h5, .hbc .h6 {
    color: var(--hbc-heading);
    font-weight: 750;
    line-height: 1.5;
    letter-spacing: 0;
}
.hbc h1, .hbc .h1 { font-size: 1.6rem; }
.hbc h2, .hbc .h2 { font-size: 1.35rem; }
.hbc h3, .hbc .h3 { font-size: 1.15rem; }
.hbc h4, .hbc .h4 { font-size: 1.05rem; }
.hbc h5, .hbc .h5, .hbc h6, .hbc .h6 { font-size: 1rem; }
.hbc a { color: var(--hbc-primary-text); transition: color var(--hbc-dur) var(--hbc-ease); }
.hbc a:hover { color: var(--hbc-primary-active); text-decoration: none; }
.hbc hr { border-color: var(--hbc-border); }
.hbc small, .hbc .small { font-size: 0.8125rem; }
.hbc .text-muted { color: var(--hbc-muted) !important; }
.hbc .text-primary { color: var(--hbc-primary-text) !important; }
.hbc .text-success { color: var(--hbc-success-text) !important; }
.hbc .text-danger { color: var(--hbc-danger-text) !important; }
.hbc .text-warning { color: var(--hbc-warning-text) !important; }
.hbc .text-info { color: var(--hbc-info-text) !important; }
.hbc .bg-white, .hbc .bg-light { background-color: var(--hbc-surface) !important; }
.hbc ::selection { background: var(--hbc-primary-soft-2); color: var(--hbc-heading); }
.hbc code, .hbc kbd, .hbc pre { font-family: var(--hbc-mono); direction: ltr; unicode-bidi: embed; }
.hbc code { color: var(--hbc-primary-text); background: var(--hbc-primary-soft); padding: 1px 6px; border-radius: 6px; }
.hbc pre { background: var(--hbc-surface-3); color: var(--hbc-text); border-radius: var(--hbc-radius-sm); padding: 12px 14px; text-align: left; }
.hbc .ltr, .hbc [dir="ltr"] { direction: ltr; unicode-bidi: embed; }
.hbc .tabular, .hbc table td { font-variant-numeric: tabular-nums; }

/* Focus — always visible for keyboard users */
.hbc :focus { outline: none; }
.hbc :focus-visible { outline: 2px solid var(--hbc-primary); outline-offset: 2px; border-radius: 4px; }
.hbc .btn:focus, .hbc .btn.focus, .hbc .form-control:focus, .hbc .custom-select:focus,
.hbc .page-link:focus, .hbc .custom-control-input:focus ~ .custom-control-label::before { box-shadow: var(--hbc-ring) !important; }

.hbc-skip-link {
    position: fixed; top: 10px; right: 10px; z-index: 2000;
    transform: translateY(-160%);
    background: var(--hbc-heading); color: var(--hbc-surface) !important;
    padding: 10px 16px; border-radius: var(--hbc-radius-sm); font-weight: 700;
    transition: transform var(--hbc-dur) var(--hbc-ease);
}
.hbc-skip-link:focus { transform: translateY(0); }

/* Scrollbars */
.hbc * { scrollbar-width: thin; scrollbar-color: var(--hbc-border-strong) transparent; }
.hbc *::-webkit-scrollbar { width: 10px; height: 10px; }
.hbc *::-webkit-scrollbar-thumb { background: var(--hbc-border-strong); border-radius: 10px; border: 3px solid transparent; background-clip: content-box; }

@media (prefers-reduced-motion: reduce) {
    .hbc *, .hbc *::before, .hbc *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Light/dark logo + icon swapping */
.hbc-logo-dark, .hbc-ico-light { display: none !important; }
html[data-theme="dark"] .hbc-logo-light, html[data-theme="dark"] .hbc-ico-dark { display: none !important; }
html[data-theme="dark"] .hbc-logo-dark { display: inline-block !important; }
html[data-theme="dark"] .hbc-ico-light { display: inline-block !important; }

/* =========================================================================
   4. Bootstrap components
   ========================================================================= */

/* Buttons */
.hbc .btn {
    font-weight: 650;
    font-size: 0.9375rem;
    line-height: 1.5;
    border-radius: 10px;
    padding: 0.55rem 1.1rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    transition: background-color var(--hbc-dur) var(--hbc-ease), border-color var(--hbc-dur) var(--hbc-ease), color var(--hbc-dur) var(--hbc-ease), box-shadow var(--hbc-dur) var(--hbc-ease), transform 90ms ease;
    cursor: pointer;
}
.hbc .btn:active:not(:disabled) { transform: scale(.98); }
.hbc .btn-block { display: flex; width: 100%; }
.hbc .btn-sm, .hbc .btn-group-sm > .btn { min-height: 36px; padding: .35rem .8rem; font-size: .85rem; border-radius: 8px; }
.hbc .btn-xs { min-height: 30px; padding: .2rem .6rem; font-size: .8rem; border-radius: 7px; }
.hbc .btn-lg, .hbc .btn-group-lg > .btn { min-height: 50px; padding: .7rem 1.4rem; font-size: 1rem; border-radius: 12px; }
.hbc .btn.disabled, .hbc .btn:disabled { opacity: .5; cursor: not-allowed; }

.hbc .btn-primary, .hbc .btn-success.btn-checkout {
    background: var(--hbc-primary); border-color: var(--hbc-primary); color: var(--hbc-on-primary);
    box-shadow: 0 1px 2px rgba(16, 24, 40, .08), inset 0 -1px 0 rgba(0, 0, 0, .08);
}
.hbc .btn-primary:hover, .hbc .btn-primary:focus { background: var(--hbc-primary-hover); border-color: var(--hbc-primary-hover); color: var(--hbc-on-primary); }
.hbc .btn-primary:not(:disabled):not(.disabled):active, .hbc .btn-primary:not(:disabled):not(.disabled).active { background: var(--hbc-primary-active); border-color: var(--hbc-primary-active); color: var(--hbc-on-primary); }
.hbc .btn-primary.disabled, .hbc .btn-primary:disabled { background: var(--hbc-primary); border-color: var(--hbc-primary); color: var(--hbc-on-primary); }

.hbc .btn-default, .hbc .btn-secondary, .hbc .btn-light, .hbc .btn-outline-secondary, .hbc .btn-outline-primary.btn-default {
    background: var(--hbc-surface); border: 1px solid var(--hbc-border-strong); color: var(--hbc-heading); box-shadow: var(--hbc-shadow-xs);
}
.hbc .btn-default:hover, .hbc .btn-secondary:hover, .hbc .btn-light:hover, .hbc .btn-outline-secondary:hover,
.hbc .btn-default:focus, .hbc .btn-secondary:focus, .hbc .btn-light:focus, .hbc .btn-outline-secondary:focus {
    background: var(--hbc-surface-2); border-color: var(--hbc-border-strong); color: var(--hbc-heading);
}
.hbc .btn-default:not(:disabled):not(.disabled):active, .hbc .btn-secondary:not(:disabled):not(.disabled):active,
.hbc .btn-default.active, .hbc .btn-secondary.active { background: var(--hbc-surface-3); color: var(--hbc-heading); border-color: var(--hbc-border-strong); }
.hbc .btn-outline-primary { color: var(--hbc-primary-text); border-color: var(--hbc-primary); background: transparent; }
.hbc .btn-outline-primary:hover { background: var(--hbc-primary-soft); color: var(--hbc-primary-text); border-color: var(--hbc-primary); }
.hbc .btn-success { background: var(--hbc-success); border-color: var(--hbc-success); color: #fff; }
.hbc .btn-success:hover { background: #0E9F5B; border-color: #0E9F5B; color: #fff; }
.hbc .btn-danger { background: var(--hbc-danger); border-color: var(--hbc-danger); color: #fff; }
.hbc .btn-danger:hover { background: #D92D20; border-color: #D92D20; color: #fff; }
.hbc .btn-warning { background: var(--hbc-warning); border-color: var(--hbc-warning); color: #1F1300; }
.hbc .btn-info { background: var(--hbc-info); border-color: var(--hbc-info); color: #fff; }
.hbc .btn-link { color: var(--hbc-primary-text); box-shadow: none; min-height: auto; }
.hbc .btn-group > .btn { border-radius: 0; }
.hbc .btn-group > .btn:first-child { border-top-right-radius: 10px; border-bottom-right-radius: 10px; }
.hbc .btn-group > .btn:last-child { border-top-left-radius: 10px; border-bottom-left-radius: 10px; }

/* Forms */
.hbc label, .hbc .control-label, .hbc .form-label, .hbc .col-form-label { font-weight: 600; color: var(--hbc-heading); font-size: .875rem; margin-bottom: .4rem; }
.hbc .form-control, .hbc .custom-select, .hbc select.form-control {
    min-height: 44px;
    border-radius: 10px;
    border: 1px solid var(--hbc-border-strong);
    background-color: var(--hbc-surface);
    color: var(--hbc-heading);
    font-size: 1rem;           /* prevents iOS zoom */
    padding: .55rem .9rem;
    box-shadow: var(--hbc-shadow-xs);
    transition: border-color var(--hbc-dur) var(--hbc-ease), box-shadow var(--hbc-dur) var(--hbc-ease);
}
.hbc textarea.form-control { min-height: 110px; }
.hbc .form-control-sm { min-height: 36px; font-size: .875rem; }
.hbc .form-control-lg, .hbc .input-lg { min-height: 50px; font-size: 1rem; border-radius: 12px; }
.hbc .form-control::placeholder { color: var(--hbc-placeholder); opacity: 1; }
.hbc .form-control:focus, .hbc .custom-select:focus { border-color: var(--hbc-primary); background-color: var(--hbc-surface); color: var(--hbc-heading); }
.hbc .form-control:disabled, .hbc .form-control[readonly] { background-color: var(--hbc-surface-3); color: var(--hbc-muted); }
.hbc .custom-select { background-position: left .75rem center; padding-left: 2rem; }
.hbc select.form-control { -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23667085' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: left .8rem center; background-size: 14px 10px; padding-left: 2.2rem; }
.hbc select[multiple].form-control { background-image: none; padding-left: .9rem; }
.hbc .is-invalid, .hbc .has-error .form-control { border-color: var(--hbc-danger) !important; }
.hbc .invalid-feedback, .hbc .help-block.error, .hbc .field-error-msg { color: var(--hbc-danger-text); font-size: .8125rem; }
.hbc .form-text, .hbc .help-block { color: var(--hbc-muted); font-size: .8125rem; }
.hbc .input-group > .form-control:not(:first-child), .hbc .input-group > .custom-select:not(:first-child) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.hbc .input-group > .form-control:not(:last-child), .hbc .input-group > .custom-select:not(:last-child) { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.hbc .input-group-text, .hbc .input-group-addon {
    background: var(--hbc-surface-3); border: 1px solid var(--hbc-border-strong); color: var(--hbc-muted);
    border-radius: 10px; min-height: 44px; display: flex; align-items: center; padding: .375rem .85rem; font-size: .9rem;
}
.hbc .input-group-prepend .input-group-text, .hbc .input-group > .input-group-addon:first-child { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.hbc .input-group-append .input-group-text, .hbc .input-group > .input-group-addon:last-child { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.hbc .input-group-btn { display: flex; }
.hbc .input-group-btn > .btn { border-radius: 0; }
.hbc .input-group-btn:last-child > .btn:last-child { border-top-left-radius: 10px; border-bottom-left-radius: 10px; }
.hbc .input-group > .input-group-append > .btn, .hbc .input-group > .input-group-prepend > .btn { min-height: 44px; }
.hbc .input-group-lg > .form-control, .hbc .input-group-lg > .input-group-append > .btn, .hbc .input-group-lg > .input-group-prepend > .input-group-text { min-height: 50px; }

.hbc .custom-control-label::before { border-color: var(--hbc-border-strong); background-color: var(--hbc-surface); }
.hbc .custom-control-input:checked ~ .custom-control-label::before { background-color: var(--hbc-primary); border-color: var(--hbc-primary); }
.hbc .custom-control { padding-right: 1.75rem; padding-left: 0; min-height: 1.75rem; }
.hbc .custom-control-label::before, .hbc .custom-control-label::after { right: -1.75rem; left: auto; top: .3rem; }
.hbc input[type="checkbox"], .hbc input[type="radio"] { accent-color: var(--hbc-primary); }
.hbc .form-check { padding-right: 1.5rem; padding-left: 0; }
.hbc .form-check-input { margin-right: -1.5rem; margin-left: 0; }

/* Password toggle (added by hbcloud.js) */
.hbc-pw-wrap { position: relative; flex: 1 1 auto; width: 100%; }
.hbc-pw-wrap > .form-control { padding-left: 2.8rem; }
.input-group > .hbc-pw-wrap { width: 1%; }
.input-group > .hbc-pw-wrap:not(:last-child) > .form-control { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.hbc-pw-toggle {
    position: absolute; left: 4px; top: 50%; transform: translateY(-50%);
    width: 38px; height: 38px; border: 0; background: transparent; color: var(--hbc-muted);
    border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; z-index: 4;
}
.hbc-pw-toggle:hover { color: var(--hbc-heading); background: var(--hbc-surface-3); }

/* Cards */
.hbc .card, .hbc .panel {
    background: var(--hbc-surface);
    border: 1px solid var(--hbc-border);
    border-radius: var(--hbc-radius);
    box-shadow: var(--hbc-shadow-xs);
    color: var(--hbc-text);
}
.hbc .card-header, .hbc .panel-heading {
    background: transparent;
    border-bottom: 1px solid var(--hbc-border);
    padding: .9rem 1.25rem;
    font-weight: 700;
    color: var(--hbc-heading);
}
.hbc .card-header:first-child { border-radius: calc(var(--hbc-radius) - 1px) calc(var(--hbc-radius) - 1px) 0 0; }
.hbc .card-title, .hbc .panel-title { font-size: 1rem; font-weight: 750; color: var(--hbc-heading); margin: 0; }
.hbc .card-body, .hbc .panel-body { padding: 1.25rem; }
.hbc .card-footer, .hbc .panel-footer { background: var(--hbc-surface-2); border-top: 1px solid var(--hbc-border); padding: .85rem 1.25rem; border-radius: 0 0 var(--hbc-radius) var(--hbc-radius); }
.hbc .panel { margin-bottom: 1.25rem; }

/* Tables */
.hbc .table { color: var(--hbc-text); margin-bottom: 0; }
.hbc .table th, .hbc .table td { border-top: 1px solid var(--hbc-border); padding: .85rem 1rem; vertical-align: middle; text-align: right; }
.hbc .table thead th {
    border-bottom: 1px solid var(--hbc-border); border-top: 0;
    background: var(--hbc-surface-2); color: var(--hbc-muted);
    font-size: .8125rem; font-weight: 650; white-space: nowrap;
}
.hbc .table-striped tbody tr:nth-of-type(odd) { background: var(--hbc-surface-2); }
.hbc .table-hover tbody tr:hover, .hbc .table-list tbody tr:hover { background: var(--hbc-primary-soft); color: var(--hbc-heading); }
.hbc .table-bordered, .hbc .table-bordered th, .hbc .table-bordered td { border-color: var(--hbc-border); }
.hbc .table-container, .hbc .table-responsive { border-radius: var(--hbc-radius); }

/* Twenty-One list tables (DataTables) */
.hbc .table-container {
    background: var(--hbc-surface); border: 1px solid var(--hbc-border); border-radius: var(--hbc-radius);
    box-shadow: var(--hbc-shadow-xs); overflow: hidden;
}
.hbc table.table-list { border-collapse: separate; border-spacing: 0; width: 100% !important; }
.hbc table.table-list thead th { padding: .8rem 1rem; }
.hbc table.table-list tbody td { padding: .9rem 1rem; border-top: 1px solid var(--hbc-border); cursor: pointer; }
.hbc table.table-list thead th.sorting::after, .hbc table.table-list thead th.sorting_asc::after, .hbc table.table-list thead th.sorting_desc::after { margin-right: 6px; }
.hbc .dataTables_wrapper .dataTables_info { color: var(--hbc-muted); font-size: .8125rem; padding: .9rem 1rem; }
.hbc .dataTables_wrapper .dataTables_filter, .hbc .dataTables_wrapper .dataTables_length { padding: .9rem 1rem; }
.hbc .dataTables_wrapper .dataTables_filter input, .hbc .dataTables_wrapper .dataTables_length select {
    min-height: 40px; border: 1px solid var(--hbc-border-strong); border-radius: 10px; background: var(--hbc-surface); color: var(--hbc-heading); padding: .35rem .8rem;
}
.hbc .dataTables_wrapper .dataTables_paginate { padding: .6rem 1rem; }
.hbc .listtable .dataTables_filter label, .hbc .dataTables_length label { color: var(--hbc-muted); font-weight: 500; }
.hbc .table-list .text-domain, .hbc .table-list .text-ip { direction: ltr; unicode-bidi: embed; color: var(--hbc-muted); }

/* Status pills */
.hbc .label, .hbc .status, .hbc .badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: .28em .75em; border-radius: 999px;
    font-size: .75rem; font-weight: 700; line-height: 1.5; white-space: nowrap;
}
.hbc .label.status::before, .hbc .status.status-active::before, .hbc .status-paid::before, .hbc .status-unpaid::before, .hbc .status-open::before, .hbc .status-suspended::before {
    content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none;
}
.hbc .status-active, .hbc .status-open, .hbc .status-completed, .hbc .status-paid, .hbc .status-accepted, .hbc .status-delivered, .hbc .label-success, .hbc .badge-success { background: var(--hbc-success-soft) !important; color: var(--hbc-success-text) !important; }
.hbc .status-pending, .hbc .status-pending-transfer, .hbc .status-pending-registration, .hbc .status-onhold, .hbc .status-inprogress, .hbc .status-payment-pending, .hbc .status-customer-reply, .hbc .status-grace, .hbc .label-warning, .hbc .badge-warning { background: var(--hbc-warning-soft) !important; color: var(--hbc-warning-text) !important; }
.hbc .status-suspended, .hbc .status-unpaid, .hbc .status-overdue, .hbc .status-fraud, .hbc .status-expired, .hbc .status-redemption, .hbc .status-collections, .hbc .label-danger, .hbc .badge-danger { background: var(--hbc-danger-soft) !important; color: var(--hbc-danger-text) !important; }
.hbc .status-answered, .hbc .status-refunded, .hbc .label-info, .hbc .badge-info { background: var(--hbc-info-soft) !important; color: var(--hbc-info-text) !important; }
.hbc .status-terminated, .hbc .status-cancelled, .hbc .status-closed, .hbc .status-transferred-away, .hbc .status-lost, .hbc .status-dead, .hbc .status-draft, .hbc .label-default, .hbc .badge-secondary, .hbc .badge-light, .hbc .badge-default { background: var(--hbc-surface-3) !important; color: var(--hbc-muted) !important; }
.hbc .badge-primary { background: var(--hbc-primary-soft) !important; color: var(--hbc-primary-text) !important; }

/* Alerts */
.hbc .alert {
    border-radius: var(--hbc-radius); border: 1px solid transparent; border-right-width: 4px;
    padding: .9rem 1.1rem; font-size: .9rem; line-height: 1.8;
}
.hbc .alert-success { background: var(--hbc-success-soft); color: var(--hbc-success-text); border-color: rgba(18, 183, 106, .25); border-right-color: var(--hbc-success); }
.hbc .alert-warning { background: var(--hbc-warning-soft); color: var(--hbc-warning-text); border-color: rgba(247, 144, 9, .25); border-right-color: var(--hbc-warning); }
.hbc .alert-danger, .hbc .alert-error { background: var(--hbc-danger-soft); color: var(--hbc-danger-text); border-color: rgba(240, 68, 56, .25); border-right-color: var(--hbc-danger); }
.hbc .alert-info { background: var(--hbc-info-soft); color: var(--hbc-info-text); border-color: rgba(46, 144, 250, .25); border-right-color: var(--hbc-info); }
.hbc .alert a, .hbc .alert .alert-link { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.hbc .alert h2, .hbc .alert h4 { color: inherit; font-size: 1rem; }

/* Navs & tabs */
.hbc .nav-tabs { border-bottom: 1px solid var(--hbc-border); gap: 4px; }
.hbc .nav-tabs .nav-link, .hbc .nav-tabs > li > a {
    border: 0; border-bottom: 2px solid transparent; border-radius: 0; color: var(--hbc-muted);
    font-weight: 650; padding: .75rem 1rem; min-height: 44px; display: inline-flex; align-items: center; gap: .4rem; margin-bottom: -1px;
}
.hbc .nav-tabs .nav-link:hover, .hbc .nav-tabs > li > a:hover { color: var(--hbc-heading); border-bottom-color: var(--hbc-border-strong); }
.hbc .nav-tabs .nav-link.active, .hbc .nav-tabs .nav-item.show .nav-link, .hbc .nav-tabs > li.active > a {
    color: var(--hbc-primary-text); border-bottom-color: var(--hbc-primary); background: transparent;
}
.hbc .nav-pills .nav-link { border-radius: 10px; color: var(--hbc-muted); font-weight: 650; }
.hbc .nav-pills .nav-link.active, .hbc .nav-pills .show > .nav-link { background: var(--hbc-primary-soft); color: var(--hbc-primary-text); }

/* Segmented tabs (auth switches etc.) */
.hbc-segmented { display: flex; gap: 4px; padding: 4px; background: var(--hbc-surface-3); border-radius: 12px; border: 0; margin-bottom: 1.25rem; }
.hbc-segmented .nav-item { flex: 1 1 0; }
.hbc-segmented .nav-link {
    width: 100%; justify-content: center; border: 0 !important; border-radius: 9px !important; margin: 0 !important;
    color: var(--hbc-muted); font-weight: 650; min-height: 42px;
}
.hbc-segmented .nav-link.active { background: var(--hbc-surface) !important; color: var(--hbc-heading) !important; box-shadow: var(--hbc-shadow-sm); }

/* Dropdowns */
.hbc .dropdown-menu {
    background: var(--hbc-surface); border: 1px solid var(--hbc-border); border-radius: var(--hbc-radius);
    box-shadow: var(--hbc-shadow-lg); padding: 6px; text-align: right; min-width: 13rem; font-size: .9rem;
}
.hbc .dropdown-item { border-radius: 8px; padding: .55rem .8rem; color: var(--hbc-text); display: flex; align-items: center; gap: .55rem; min-height: 40px; }
.hbc .dropdown-item:hover, .hbc .dropdown-item:focus { background: var(--hbc-surface-3); color: var(--hbc-heading); }
.hbc .dropdown-item.active, .hbc .dropdown-item:active { background: var(--hbc-primary-soft); color: var(--hbc-primary-text); }
.hbc .dropdown-divider { border-color: var(--hbc-border); margin: 6px 0; }
.hbc .dropdown-toggle::after { margin-right: .4em; margin-left: 0; }

/* Modals */
.hbc .modal-content { background: var(--hbc-surface); border: 1px solid var(--hbc-border); border-radius: var(--hbc-radius-lg); box-shadow: var(--hbc-shadow-lg); color: var(--hbc-text); }
.hbc .modal-header { border-bottom: 1px solid var(--hbc-border); padding: 1rem 1.25rem; }
.hbc .modal-header .close { margin: -1rem auto -1rem -1rem; }
.hbc .modal-footer { border-top: 1px solid var(--hbc-border); padding: .85rem 1.25rem; gap: .5rem; }
.hbc .modal-footer > * { margin: 0; }
.hbc .modal-backdrop.show { opacity: .55; background: #0B0F15; }
.hbc .close { color: var(--hbc-muted); text-shadow: none; opacity: 1; min-width: 36px; min-height: 36px; }
.hbc .close:hover { color: var(--hbc-heading); }

/* Pagination */
.hbc .pagination { gap: 4px; }
.hbc .page-link { border: 1px solid var(--hbc-border); border-radius: 8px !important; color: var(--hbc-text); background: var(--hbc-surface); min-width: 38px; min-height: 38px; display: inline-flex; align-items: center; justify-content: center; margin: 0 !important; }
.hbc .page-link:hover { background: var(--hbc-surface-3); color: var(--hbc-heading); border-color: var(--hbc-border); }
.hbc .page-item.active .page-link { background: var(--hbc-primary); border-color: var(--hbc-primary); color: var(--hbc-on-primary); }
.hbc .page-item.disabled .page-link { background: var(--hbc-surface); color: var(--hbc-placeholder); border-color: var(--hbc-border); }

/* List groups */
.hbc .list-group-item { background: var(--hbc-surface); border-color: var(--hbc-border); color: var(--hbc-text); }
.hbc .list-group-item-action:hover, .hbc .list-group-item-action:focus { background: var(--hbc-surface-2); color: var(--hbc-heading); }
.hbc .list-group-item.active { background: var(--hbc-primary-soft); border-color: var(--hbc-border); color: var(--hbc-primary-text); font-weight: 700; }

/* Progress */
.hbc .progress { background: var(--hbc-surface-3); border-radius: 999px; height: 10px; overflow: hidden; }
.hbc .progress-bar { background: var(--hbc-primary); border-radius: 999px; }
.hbc .progress-bar.bg-success { background: var(--hbc-success) !important; }
.hbc .progress-bar.bg-warning { background: var(--hbc-warning) !important; }
.hbc .progress-bar.bg-danger { background: var(--hbc-danger) !important; }

/* Breadcrumb */
.hbc .breadcrumb { background: transparent; padding: 0; margin: 0; font-size: .8125rem; }
.hbc .breadcrumb-item, .hbc .breadcrumb-item a { color: var(--hbc-muted); }
.hbc .breadcrumb-item a:hover { color: var(--hbc-primary-text); }
.hbc .breadcrumb-item.active { color: var(--hbc-text); }
.hbc .breadcrumb-item + .breadcrumb-item { padding-right: .5rem; padding-left: 0; }
.hbc .breadcrumb-item + .breadcrumb-item::before { content: "\f104"; font-family: "Font Awesome 5 Pro"; font-weight: 400; float: right; padding-left: .5rem; padding-right: 0; color: var(--hbc-placeholder); }

/* Popovers & tooltips */
.hbc .popover { background: var(--hbc-surface); border-color: var(--hbc-border); border-radius: var(--hbc-radius); box-shadow: var(--hbc-shadow-lg); }
.hbc .popover-body { color: var(--hbc-text); }
.hbc .tooltip-inner { font-size: .8rem; border-radius: 8px; padding: 6px 10px; }

/* =========================================================================
   5. Compatibility shims (Bootstrap 3 / 5 classes used by addon modules)
   ========================================================================= */
.hbc .panel-default > .panel-heading { background: var(--hbc-surface-2); }
.hbc .panel-primary > .panel-heading { background: var(--hbc-primary-soft); color: var(--hbc-primary-text); }
.hbc .fw-bold { font-weight: 700 !important; }
.hbc .fw-semibold { font-weight: 600 !important; }
.hbc .text-end { text-align: left !important; }
.hbc .text-start { text-align: right !important; }
.hbc .float-end { float: left !important; }
.hbc .float-start { float: right !important; }
.hbc .ms-1 { margin-right: .25rem !important; } .hbc .ms-2 { margin-right: .5rem !important; } .hbc .ms-3 { margin-right: 1rem !important; } .hbc .ms-auto { margin-right: auto !important; }
.hbc .me-1 { margin-left: .25rem !important; } .hbc .me-2 { margin-left: .5rem !important; } .hbc .me-3 { margin-left: 1rem !important; } .hbc .me-auto { margin-left: auto !important; }
.hbc .ps-2 { padding-right: .5rem !important; } .hbc .pe-2 { padding-left: .5rem !important; }
.hbc .g-2 { margin: -.25rem; } .hbc .g-2 > * { padding: .25rem; }
.hbc .g-3 { margin: -.5rem; } .hbc .g-3 > * { padding: .5rem; }
.hbc .g-4 { margin: -.75rem; } .hbc .g-4 > * { padding: .75rem; }
.hbc .border-start-0 { border-right: 0 !important; } .hbc .border-end-0 { border-left: 0 !important; }
.hbc .rounded-end { border-top-left-radius: 10px !important; border-bottom-left-radius: 10px !important; }
.hbc .btn-xs, .hbc .btn-group-xs > .btn { line-height: 1.4; }
.hbc .pull-right { float: left !important; }
.hbc .pull-left { float: right !important; }
.hbc .hidden { display: none !important; }
.hbc .img-responsive { max-width: 100%; height: auto; }
.hbc .well { background: var(--hbc-surface-2); border: 1px solid var(--hbc-border); border-radius: var(--hbc-radius); padding: 1rem; }

/* =========================================================================
   6. Layout — app shell (logged in) · "Control Room"
   Charcoal brand sidebar in both themes, sticky topbar, mobile tab bar.
   ========================================================================= */
.hbc-shell { display: flex; min-height: 100vh; min-height: 100dvh; overflow-x: clip; }
body.hbc-app { overflow-x: clip; }

.hbc-sidebar {
    position: fixed; top: 0; bottom: 0; right: 0; z-index: 1040;
    width: var(--hbc-sidebar-w);
    background: var(--hbc-sidebar-bg);
    color: var(--hbc-sidebar-text);
    display: flex; flex-direction: column;
    overflow-y: auto; overscroll-behavior: contain;
    scrollbar-color: #2A313A transparent;
}
.hbc-sb-brand {
    position: relative; flex: none; padding: 22px 20px 20px; overflow: hidden;
    background:
        radial-gradient(120% 90% at 100% 0%, rgba(255, 87, 34, .26) 0%, rgba(255, 87, 34, 0) 60%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='48' viewBox='0 0 56 48'%3E%3Cpath d='M14 1h28l14 23-14 23H14L0 24z' fill='none' stroke='%23FF5722' stroke-opacity='.13' stroke-width='1.2'/%3E%3C/svg%3E") 0 0 / 56px 48px,
        #111418;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.hbc-sb-brand::after { content: ""; position: absolute; inset: auto 0 0 0; height: 2px; background: linear-gradient(90deg, rgba(255, 87, 34, 0), #FF5722 70%); }
.hbc-sb-brand .hbc-brand { display: block; position: relative; }
.hbc-sb-brand .hbc-brand img { width: 184px; height: auto; display: block; }
.hbc-sb-tag { position: relative; display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: .78rem; color: #C9CFD6; font-weight: 600; }
.hbc-sb-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3DDC84; box-shadow: 0 0 0 3px rgba(61, 220, 132, .16); }
.hbc-sb-close { position: absolute !important; top: 14px; left: 12px; background: rgba(255, 255, 255, .06) !important; border-color: rgba(255, 255, 255, .1) !important; color: #E9EDF1 !important; }

.hbc-sb-body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 14px; padding: 16px 14px 14px; }
.hbc-sb-cta { min-height: 46px; font-weight: 750; }
.hbc-sidebar-nav { flex: 1 1 auto; }
.hbc-sb-label { font-size: .7rem; font-weight: 700; color: #6F7A86; padding: 0 12px 6px; letter-spacing: .04em; }

.hbc-nav, .hbc-subnav { list-style: none; margin: 0; padding: 0; }
.hbc-nav-item { margin-bottom: 2px; }
.hbc-nav-link {
    display: flex; align-items: center; gap: 12px; width: 100%;
    min-height: 44px; padding: 8px 12px; border-radius: 10px;
    color: var(--hbc-sidebar-text) !important; font-weight: 600; font-size: .92rem;
    background: transparent; border: 0; text-align: right; cursor: pointer; text-decoration: none !important;
    transition: background-color var(--hbc-dur) var(--hbc-ease), color var(--hbc-dur) var(--hbc-ease);
}
.hbc-nav-link:hover { background: var(--hbc-sidebar-hover); color: #F1F3F5 !important; }
.hbc-nav-item.is-open > .hbc-nav-toggle { color: #F1F3F5 !important; }
.hbc-nav-link.active { background: rgba(255, 87, 34, .16); color: #FF9470 !important; }
.hbc-nav-icon { font-size: 1.05rem; width: 22px; text-align: center; color: #7D8792; flex: none; }
.hbc-nav-link:hover .hbc-nav-icon { color: #C9CFD6; }
.hbc-nav-link.active .hbc-nav-icon, .hbc-nav-item.is-open .hbc-nav-icon { color: #FF7A4D; }
.hbc-nav-label { flex: 1 1 auto; }
.hbc-nav-caret { font-size: .7rem; color: #6F7A86; transition: transform var(--hbc-dur) var(--hbc-ease); }
.hbc-nav-item.is-open .hbc-nav-caret { transform: rotate(180deg); }
.hbc-nav-badge { background: rgba(255, 90, 78, .16); color: #FF8A80; font-size: .72rem; font-weight: 800; border-radius: 999px; padding: 0 8px; line-height: 1.7; }
.hbc-subnav { padding: 2px 0 6px; margin-right: 22px; border-right: 1px solid #2A313A; }
.hbc-subnav-link {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    min-height: 38px; padding: 6px 14px; margin-right: 10px; border-radius: 8px;
    color: #9AA3AE !important; font-size: .86rem; font-weight: 500; text-decoration: none !important;
}
.hbc-subnav-link:hover { background: var(--hbc-sidebar-hover); color: #F1F3F5 !important; }
.hbc-subnav-link.active { color: #FF9470 !important; font-weight: 700; background: rgba(255, 87, 34, .12); }
.hbc-subnav-divider { height: 1px; background: #2A313A; margin: 6px 10px; }

.hbc-sb-wallet { border-radius: 12px; background: #1A1F25; border: 1px solid #262D36; padding: 12px 14px; display: grid; gap: 8px; }
.hbc-sb-wallet-row { display: grid; gap: 0; font-size: .76rem; color: #8D97A2; }
.hbc-sb-wallet-row + .hbc-sb-wallet-row { padding-top: 8px; border-top: 1px dashed #262D36; }
.hbc-sb-wallet-row b { color: #F1F3F5; font-size: 1rem; font-weight: 800; white-space: nowrap; }
.hbc-sb-wallet-row.is-due b { color: #FF8A65; }
.hbc-sb-wallet a { font-size: .78rem; font-weight: 700; color: #FF9470 !important; }
.hbc-sb-help { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; color: #AEB6C0 !important; font-size: .8rem; text-decoration: none !important; border: 1px dashed #2A313A; }
.hbc-sb-help:hover { border-color: #FF5722; color: #F1F3F5 !important; }
.hbc-sb-help i { color: #FF7A4D; font-size: 1.15rem; }
.hbc-sb-help strong { display: block; color: #E9EDF1; font-size: .84rem; }

.hbc-main { flex: 1 1 auto; min-width: 0; margin-right: var(--hbc-sidebar-w); display: flex; flex-direction: column; }

.hbc-topbar {
    position: sticky; top: 0; z-index: 1020;
    height: var(--hbc-topbar-h);
    display: flex; align-items: center; gap: 12px;
    padding: 0 28px;
    background: color-mix(in srgb, var(--hbc-bg) 85%, transparent);
    -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--hbc-border);
}
.hbc-top-brand { display: none; align-items: center; gap: 8px; color: var(--hbc-heading) !important; font-weight: 850; font-size: 1.02rem; text-decoration: none !important; }
.hbc-top-brand img { width: 30px; height: 30px; }
.hbc-top-brand span { letter-spacing: .01em; }
.hbc-search { position: relative; align-items: center; flex: 0 1 400px; }
.hbc-search i { position: absolute; right: 14px; color: var(--hbc-placeholder); pointer-events: none; }
.hbc-search input {
    width: 100%; height: 42px; border-radius: 10px; border: 1px solid var(--hbc-border);
    background: var(--hbc-surface); color: var(--hbc-heading); padding: 0 40px 0 44px; font-size: .9rem;
}
.hbc-search kbd { position: absolute; left: 10px; font-size: .72rem; padding: 0 6px; border-radius: 6px; border: 1px solid var(--hbc-border); background: var(--hbc-surface-2); color: var(--hbc-muted); }
.hbc-search input:focus { border-color: var(--hbc-primary); box-shadow: var(--hbc-ring); outline: 0; }
.hbc-topbar-actions { display: flex; align-items: center; gap: 8px; margin-right: auto; }
.hbc-top-item { display: inline-flex; align-items: center; }
.hbc-top-item > span { box-shadow: none !important; }

.hbc-icon-btn {
    position: relative; width: 44px; height: 44px; flex: none;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px; border: 1px solid var(--hbc-border); background: var(--hbc-surface);
    color: var(--hbc-text) !important; font-size: 1.05rem; cursor: pointer;
    transition: background-color var(--hbc-dur) var(--hbc-ease), border-color var(--hbc-dur) var(--hbc-ease);
}
.hbc-icon-btn:hover { background: var(--hbc-surface-2); border-color: var(--hbc-border-strong); color: var(--hbc-heading) !important; }
.hbc-dot-badge {
    position: absolute; top: -6px; left: -6px; min-width: 20px; height: 20px; padding: 0 5px;
    border-radius: 999px; background: var(--hbc-primary); color: var(--hbc-on-primary);
    font-size: .7rem; font-weight: 800; line-height: 16px; text-align: center; border: 2px solid var(--hbc-bg);
}
.hbc-user-btn {
    display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 8px 0 12px;
    border-radius: 12px; border: 1px solid var(--hbc-border); background: var(--hbc-surface); color: var(--hbc-heading); cursor: pointer;
}
.hbc-user-btn:hover { background: var(--hbc-surface-2); }
.hbc-user-btn > .fa-chevron-down { font-size: .7rem; color: var(--hbc-muted); }
.hbc-avatar {
    width: 32px; height: 32px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center;
    background: #FF5722; color: #1A0B05; font-weight: 850; font-size: .95rem;
}
.hbc-user-name { font-weight: 650; font-size: .875rem; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbc-menu-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--hbc-border); margin-bottom: 6px; }
.hbc-menu-head strong { display: block; color: var(--hbc-heading); }
.hbc-menu-head span { display: block; color: var(--hbc-muted); font-size: .8rem; text-align: right; }
.hbc-menu-title { font-weight: 750; color: var(--hbc-heading); padding: 8px 10px; }
.hbc-alerts-menu { width: 340px; max-width: calc(100vw - 24px); }
.hbc .client-alerts { list-style: none; margin: 0; padding: 0; max-height: 360px; overflow-y: auto; }
.hbc .client-alerts li a { display: flex; gap: 10px; padding: 10px; border-radius: 8px; color: var(--hbc-text); align-items: flex-start; }
.hbc .client-alerts li a:hover { background: var(--hbc-surface-3); }
.hbc .client-alerts li a i { margin-top: 5px; }
.hbc .client-alerts .hbc-alert-danger i { color: var(--hbc-danger); }
.hbc .client-alerts .hbc-alert-warning i { color: var(--hbc-warning); }
.hbc .client-alerts .hbc-alert-info i { color: var(--hbc-info); }
.hbc .client-alerts .hbc-alert-success i { color: var(--hbc-success); }
.hbc .client-alerts li.none { padding: 18px 10px; text-align: center; color: var(--hbc-muted); }

.hbc-content { flex: 1 1 auto; padding: 24px 28px 40px; width: 100%; max-width: 1480px; margin: 0 auto; }
.hbc-page-head { margin-bottom: 20px; }
.hbc-page-title { font-size: 1.45rem; margin: 6px 0 0; font-weight: 800; }
.hbc-footer {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
    padding: 18px 28px; border-top: 1px solid var(--hbc-border); color: var(--hbc-muted); font-size: .8125rem;
}
.hbc-footer-brand { display: inline-flex; align-items: center; gap: 10px; }
.hbc-footer-brand img { width: 26px; height: 26px; }
.hbc-footer-brand strong { color: var(--hbc-heading); font-weight: 800; }
.hbc-footer-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.hbc-footer-links a { color: var(--hbc-muted); }
.hbc-footer-links a:hover { color: var(--hbc-primary-text); }

.hbc-backdrop { display: none; }
.hbc-tabbar { display: none; }

@media (max-width: 1199.98px) {
    .hbc-sidebar { transform: translateX(100%); transition: transform 240ms var(--hbc-ease); box-shadow: none; }
    .hbc-sidebar-open .hbc-sidebar { transform: translateX(0); box-shadow: var(--hbc-shadow-lg); }
    .hbc-main { margin-right: 0; }
    .hbc-top-brand { display: inline-flex; }
    .hbc-backdrop { display: block; position: fixed; inset: 0; z-index: 1035; background: rgba(11, 15, 21, .55); opacity: 0; pointer-events: none; transition: opacity 240ms var(--hbc-ease); }
    .hbc-sidebar-open .hbc-backdrop { opacity: 1; pointer-events: auto; }
    .hbc-sidebar-open { overflow: hidden; }
}
@media (max-width: 767.98px) {
    .hbc-topbar { padding: 0 14px; gap: 8px; }
    .hbc-content { padding: 16px 14px 28px; }
    .hbc-footer { padding: 16px 16px calc(84px + env(safe-area-inset-bottom)); justify-content: center; text-align: center; }
    .hbc-page-title { font-size: 1.25rem; }
    .hbc-topbar-actions { gap: 6px; }
    .hbc-top-item, .hbc-topbar .hbc-cart-btn:not(.has-items), .hbc-user-btn .hbc-user-name, .hbc-user-btn > .fa-chevron-down { display: none !important; }
    .hbc-user-btn { padding: 0 5px; }
    .hbc-tabbar {
        position: fixed; inset: auto 0 0 0; z-index: 1030; display: grid; grid-template-columns: repeat(5, 1fr);
        background: var(--hbc-surface); border-top: 1px solid var(--hbc-border);
        padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
        box-shadow: 0 -10px 24px -16px rgba(16, 24, 40, .35);
    }
    .hbc-tabbar a, .hbc-tabbar button {
        position: relative; display: grid; justify-items: center; align-content: center; gap: 2px; min-height: 52px;
        border: 0; background: transparent; border-radius: 12px; font-size: .7rem; font-weight: 700;
        color: var(--hbc-muted) !important; text-decoration: none !important;
    }
    .hbc-tabbar i { font-size: 1.2rem; }
    .hbc-tabbar .is-active { color: var(--hbc-primary-text) !important; background: var(--hbc-primary-soft); }
    .hbc-tabbar .hbc-dot-badge { top: 2px; left: calc(50% - 22px); }
}

/* Contextual WHMCS sidebars */
.hbc .sidebar .card-sidebar { margin-bottom: 1rem !important; overflow: hidden; }
.hbc .card-sidebar .card-header { padding: .8rem 1rem; }
.hbc .card-sidebar .card-title { font-size: .9rem; display: flex; align-items: center; gap: .4rem; }
.hbc .card-sidebar .card-title .card-minimise { margin-right: auto; color: var(--hbc-placeholder); cursor: pointer; font-size: .75rem; }
.hbc .card-sidebar .card-title .badge { margin-right: auto; }
.hbc .card-sidebar .list-group-item { border: 0; border-top: 1px solid var(--hbc-border); padding: .65rem 1rem; font-size: .875rem; color: var(--hbc-text); }
.hbc .card-sidebar .list-group-item:first-child { border-top: 0; }
.hbc .card-sidebar .list-group-item.active { background: var(--hbc-primary-soft); color: var(--hbc-primary-text); box-shadow: inset -3px 0 0 var(--hbc-primary); }
.hbc .sidebar-menu-item-wrapper { display: flex; align-items: center; gap: .6rem; }
.hbc .sidebar-menu-item-icon { color: var(--hbc-muted); width: 18px; text-align: center; }
.hbc .list-group-item.active .sidebar-menu-item-icon { color: var(--hbc-primary); }
.hbc .sidebar-menu-item-label { flex: 1 1 auto; }
.hbc .sidebar-menu-item-badge .badge { background: var(--hbc-surface-3); color: var(--hbc-muted); }

/* =========================================================================
   7. Layout — guest pages
   ========================================================================= */
.hbc-guestbar {
    position: sticky; top: 0; z-index: 1020;
    background: color-mix(in srgb, var(--hbc-surface) 88%, transparent);
    -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--hbc-border);
}
.hbc-guestbar-inner { display: flex; align-items: center; gap: 20px; min-height: 72px; flex-wrap: wrap; }
.hbc-guestnav { flex: 1 1 auto; }
.hbc-guestnav-list { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; align-items: center; }
.hbc-guestnav-list > li > a {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 10px;
    color: var(--hbc-text); font-weight: 600; font-size: .9375rem;
}
.hbc-guestnav-list > li > a:hover, .hbc-guestnav-list > li > a.active { background: var(--hbc-surface-3); color: var(--hbc-heading); }
.hbc-guest-main { padding: 28px 0 56px; min-height: 60vh; }
@media (max-width: 991.98px) {
    .hbc-guestnav { order: 3; flex-basis: 100%; }
    .hbc-guestnav-list { flex-direction: column; align-items: stretch; padding-bottom: 12px; }
    .hbc-guestnav-list .dropdown-menu { position: static !important; transform: none !important; box-shadow: none; border: 0; }
}

.hbc-site-footer { background: #11151C; color: #A9B1BE; padding: 48px 0 20px; }
.hbc-site-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.hbc-site-footer p { margin-top: 14px; font-size: .875rem; max-width: 34ch; }
.hbc-site-footer h3 { color: #fff; font-size: .95rem; margin-bottom: 12px; }
.hbc-site-footer nav a { display: block; color: #A9B1BE; font-size: .875rem; padding: 4px 0; }
.hbc-site-footer nav a:hover { color: #fff; }
.hbc-site-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 32px; padding-top: 18px; font-size: .8125rem; }
.hbc-site-footer-bottom .btn-link { color: #A9B1BE; }
@media (max-width: 767.98px) { .hbc-site-footer-grid { grid-template-columns: 1fr 1fr; } .hbc-site-footer-grid > div:first-child { grid-column: 1 / -1; } }

/* =========================================================================
   8. Layout — authentication (split screen)
   ========================================================================= */
.hbc-auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, 40%); min-height: 100vh; min-height: 100dvh; }
.hbc-auth-brand {
    grid-column: 2; grid-row: 1; position: relative; overflow: hidden; color: #fff; display: flex; align-items: center; padding: 56px 52px;
    background:
        radial-gradient(90% 60% at 100% 0%, rgba(255, 87, 34, .32) 0%, rgba(255, 87, 34, 0) 62%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='48' viewBox='0 0 56 48'%3E%3Cpath d='M14 1h28l14 23-14 23H14L0 24z' fill='none' stroke='%23FF5722' stroke-opacity='.12' stroke-width='1.2'/%3E%3C/svg%3E") 0 0 / 56px 48px,
        #111418;
}
.hbc-auth-brand::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, rgba(255, 87, 34, 0), #FF5722); }
.hbc-auth-brand-inner { position: relative; z-index: 2; max-width: 440px; min-width: 0; }
.hbc-auth-logo img { width: 232px; height: auto; display: block; }
.hbc-auth-kicker { margin: 18px 0 0; display: inline-flex; align-items: center; gap: 8px; color: #C9CFD6; font-weight: 650; font-size: .88rem; }
.hbc-auth-kicker .hbc-led { background: #3DDC84; box-shadow: 0 0 0 3px rgba(61, 220, 132, .18); }
.hbc .hbc-auth-headline { color: #F4F6F8; font-size: 1.85rem; font-weight: 850; line-height: 1.55; margin: 28px 0 26px; text-wrap: balance; }
.hbc-auth-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.hbc-auth-points li { display: flex; gap: 14px; align-items: flex-start; color: #AEB6C0; font-size: .9rem; line-height: 1.7; }
.hbc-auth-points b { display: block; color: #F1F3F5; font-size: .95rem; }
.hbc-auth-points i { width: 40px; height: 40px; flex: none; border-radius: 11px; display: grid; place-items: center; background: rgba(255, 87, 34, .14); color: #FF8A65; font-size: 1.05rem; }
.hbc-auth-hex {
    position: absolute; inset: auto auto -110px -110px; width: 420px; height: 420px; z-index: 1; opacity: .07;
    background: url("../../../assets/img/hbcloud/logo-mark.svg") center / contain no-repeat;
}
.hbc-auth-main { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; align-items: center; padding: 24px; background: var(--hbc-bg); min-width: 0; }
.hbc-auth-top { width: 100%; max-width: 480px; display: flex; align-items: center; justify-content: space-between; }
.hbc-auth-logo-sm img { height: 36px; width: auto; }
.hbc-auth-card { width: 100%; max-width: 480px; margin: auto 0; padding: 28px 0; }
.hbc .hbc-auth-title { font-size: 1.55rem; font-weight: 850; margin-bottom: 6px; }
.hbc-auth-sub { color: var(--hbc-muted); margin-bottom: 22px; }
.hbc-auth-panel { background: var(--hbc-surface); border: 1px solid var(--hbc-border); border-radius: var(--hbc-radius-lg); padding: 26px; box-shadow: var(--hbc-shadow-md); }
.hbc-auth-foot { width: 100%; max-width: 480px; display: flex; justify-content: space-between; gap: 12px; color: var(--hbc-muted); font-size: .8rem; flex-wrap: wrap; }
.hbc-auth-foot a { color: var(--hbc-muted); }
.hbc-auth-alt { text-align: center; margin-top: 18px; color: var(--hbc-muted); }
.hbc-divider-text { display: flex; align-items: center; gap: 12px; color: var(--hbc-placeholder); font-size: .8rem; margin: 20px 0; }
.hbc-divider-text::before, .hbc-divider-text::after { content: ""; flex: 1; height: 1px; background: var(--hbc-border); }
body.tpl-clientregister .hbc-auth-card { max-width: 560px; }
body.tpl-clientregister .hbc-auth-top, body.tpl-clientregister .hbc-auth-foot { max-width: 560px; }
@media (max-width: 991.98px) {
    .hbc-auth { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
    .hbc-auth-brand { grid-column: 1; grid-row: 1; padding: 22px 20px; }
    .hbc-auth-main { grid-row: 2; padding: 0 16px 20px; }
    .hbc-auth-logo img { width: 168px; }
    .hbc .hbc-auth-headline, .hbc-auth-points, .hbc-auth-hex { display: none; }
    .hbc-auth-kicker { margin-top: 10px; }
    .hbc-auth-top { position: absolute; top: 18px; inset-inline-end: 16px; width: auto; }
    .hbc-auth-top .hbc-icon-btn { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .14); color: #F1F3F5 !important; }
    .hbc-auth-logo-sm { display: none; }
    .hbc-auth-card { padding-top: 22px; margin-top: 0; }
    .hbc-auth-panel { padding: 20px; }
}

/* OTP module (mobile_otp_login) inside the theme */
.hbc #moduleSettingsData + form, .hbc #otpLoginForm, .hbc #resetForm, .hbc #otpRegisterForm { margin: 0; }
.hbc .otp-input-group { gap: 8px !important; justify-content: center !important; }
.hbc .otp-input-group input {
    width: 52px !important; height: 56px; flex: 0 0 52px; padding: 0 !important;
    font-size: 1.4rem !important; font-weight: 800; text-align: center; border-radius: 12px !important;
    font-variant-numeric: tabular-nums;
}
.hbc .otp-input-group input:focus { border-color: var(--hbc-primary); }
@media (max-width: 400px) { .hbc .otp-input-group input { width: 42px !important; flex-basis: 42px; height: 50px; } }
.hbc .button-loading .otp-spinner { width: 1.25rem; height: 1.25rem; border-width: 2px; }
.hbc .otp-spinner::after { border-color: var(--hbc-on-primary) !important; width: .6rem !important; height: .6rem !important; }
.hbc #message:empty { display: none; }
.hbc #otpLoginForm .input-group .form-control, .hbc #resetForm .input-group .form-control, .hbc #otpRegisterForm .input-group .form-control { font-size: 1.05rem; letter-spacing: .5px; }
.hbc .tpl-clientregister .col-md-6, .hbc.tpl-clientregister .col-md-6 { padding-right: 8px; padding-left: 8px; }

/* =========================================================================
   9. Page components
   ========================================================================= */

/* Section headings inside pages */
.hbc-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 28px 0 14px; }
.hbc-section-head h2 { font-size: 1.1rem; margin: 0; }
.hbc-section-head a { font-size: .875rem; font-weight: 650; }

/* Dashboard hero */
.hbc-hero {
    position: relative; overflow: hidden;
    border-radius: var(--hbc-radius-lg); padding: 26px 28px; margin-bottom: 22px;
    background: linear-gradient(120deg, #2D2D2D 0%, #3A2A24 55%, #E64A19 140%);
    color: #fff; display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between;
}
.hbc-hero::after {
    content: ""; position: absolute; left: -60px; top: -70px; width: 260px; height: 260px; opacity: .14;
    background: url("../../../assets/img/hbcloud/logo-mark.svg") center / contain no-repeat; filter: brightness(0) invert(1);
}
.hbc-hero h1 { color: #fff !important; font-size: 1.45rem; margin: 0 0 4px; }
.hbc-hero p { margin: 0; color: rgba(255, 255, 255, .78); }
.hbc-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; position: relative; z-index: 1; }
.hbc-hero .btn-light { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .22); color: #fff; box-shadow: none; }
.hbc-hero .btn-light:hover { background: rgba(255, 255, 255, .2); color: #fff; border-color: rgba(255, 255, 255, .3); }

/* KPI tiles */
.hbc-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.hbc-kpi {
    position: relative; display: flex; flex-direction: column; gap: 10px;
    background: var(--hbc-surface); border: 1px solid var(--hbc-border); border-radius: var(--hbc-radius);
    padding: 18px; box-shadow: var(--hbc-shadow-xs); color: var(--hbc-text) !important;
    transition: border-color var(--hbc-dur) var(--hbc-ease), box-shadow var(--hbc-dur) var(--hbc-ease), transform var(--hbc-dur) var(--hbc-ease);
}
.hbc-kpi:hover { border-color: var(--hbc-border-strong); box-shadow: var(--hbc-shadow-md); transform: translateY(-1px); }
.hbc-kpi-top { display: flex; align-items: center; justify-content: space-between; }
.hbc-kpi-label { color: var(--hbc-muted); font-size: .875rem; font-weight: 600; }
.hbc-kpi-icon { width: 40px; height: 40px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.hbc-kpi-value { font-size: 1.85rem; font-weight: 800; color: var(--hbc-heading); line-height: 1.2; font-variant-numeric: tabular-nums; }
.hbc-kpi-foot { font-size: .8rem; color: var(--hbc-muted); }
.hbc-kpi-foot.is-alert { color: var(--hbc-danger-text); font-weight: 650; }
.hbc-tone-brand { background: var(--hbc-primary-soft); color: var(--hbc-primary-text); }
.hbc-tone-success { background: var(--hbc-success-soft); color: var(--hbc-success-text); }
.hbc-tone-warning { background: var(--hbc-warning-soft); color: var(--hbc-warning-text); }
.hbc-tone-danger { background: var(--hbc-danger-soft); color: var(--hbc-danger-text); }
.hbc-tone-info { background: var(--hbc-info-soft); color: var(--hbc-info-text); }
@media (max-width: 1199.98px) { .hbc-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .hbc-kpis { gap: 10px; } .hbc-kpi { padding: 14px; } .hbc-kpi-value { font-size: 1.5rem; } }

/* Quick actions */
.hbc-actions { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 8px; }
.hbc-action {
    display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px;
    border-radius: var(--hbc-radius); background: var(--hbc-surface); border: 1px solid var(--hbc-border);
    color: var(--hbc-heading) !important; font-weight: 650; font-size: .9rem; min-height: 96px;
    transition: border-color var(--hbc-dur) var(--hbc-ease), background-color var(--hbc-dur) var(--hbc-ease);
}
.hbc-action i { font-size: 1.25rem; color: var(--hbc-primary); }
.hbc-action:hover { border-color: var(--hbc-primary); background: var(--hbc-primary-soft); }

/* Notice banner (shahkar etc.) */
.hbc-notice {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    padding: 14px 18px; border-radius: var(--hbc-radius); margin-bottom: 20px;
    background: var(--hbc-warning-soft); border: 1px solid rgba(247, 144, 9, .3); color: var(--hbc-warning-text);
}
.hbc-notice.is-danger { background: var(--hbc-danger-soft); border-color: rgba(240, 68, 56, .3); color: var(--hbc-danger-text); }
.hbc-notice > i { font-size: 1.4rem; }
.hbc-notice-body { flex: 1 1 260px; }
.hbc-notice-body strong { display: block; color: inherit; }
.hbc-notice-body span { font-size: .875rem; }

/* Home panels (WHMCS dashboard cards) */
.hbc .client-home-cards .card { margin-bottom: 18px; border-top: 0; }
.hbc .client-home-cards .card-header { display: flex; align-items: center; justify-content: space-between; }
.hbc .client-home-cards .card-title { display: flex; align-items: center; gap: .5rem; width: 100%; }
.hbc .client-home-cards .card-title > i { color: var(--hbc-primary); }
.hbc .client-home-cards .card-title .float-right, .hbc .client-home-cards .card-title .float-left { order: 3; margin-right: auto; float: none !important; }
.hbc .client-home-cards .card-title .btn { min-height: 32px; padding: .2rem .7rem; font-size: .8rem; background: var(--hbc-surface-3) !important; color: var(--hbc-heading) !important; border: 1px solid var(--hbc-border) !important; }
.hbc .client-home-cards .list-group-item { border-left: 0; border-right: 0; padding: .8rem 1.25rem; font-size: .9rem; }
.hbc .client-home-cards .list-group-item:first-child { border-top: 0; }
.hbc .client-home-cards .card-body { font-size: .9rem; }
.hbc .client-home-cards .card-footer { font-size: .85rem; }
.hbc .client-home-cards .list-group-item .label, .hbc .client-home-cards .list-group-item .status { float: left; margin-right: .5rem; }
.hbc .client-home-cards .div-service-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hbc-masonry { column-count: 2; column-gap: 18px; }
.hbc-masonry > * { break-inside: avoid; }
@media (max-width: 991.98px) { .hbc-masonry { column-count: 1; } }

/* Empty state */
.hbc-empty { text-align: center; padding: 40px 20px; color: var(--hbc-muted); }
.hbc-empty i { font-size: 2.4rem; color: var(--hbc-border-strong); margin-bottom: 12px; display: block; }
.hbc-empty strong { display: block; color: var(--hbc-heading); font-size: 1rem; margin-bottom: 4px; }

/* Service cards (products list) */
.hbc-svc-name { font-weight: 700; color: var(--hbc-heading); display: block; }
.hbc-svc-meta { color: var(--hbc-muted); font-size: .8125rem; direction: ltr; unicode-bidi: plaintext; display: block; text-align: right; }
.hbc-lock-badge { background: var(--hbc-danger-soft); color: var(--hbc-danger-text); border-radius: 999px; padding: .25em .7em; font-size: .75rem; font-weight: 700; display: inline-flex; gap: 5px; align-items: center; white-space: nowrap; }

/* Product details */
.hbc-svc-hero {
    display: flex; flex-wrap: wrap; align-items: center; gap: 18px; justify-content: space-between;
    background: var(--hbc-surface); border: 1px solid var(--hbc-border); border-radius: var(--hbc-radius-lg);
    padding: 22px 24px; margin-bottom: 18px; box-shadow: var(--hbc-shadow-xs);
}
.hbc-svc-hero-main { display: flex; align-items: center; gap: 16px; min-width: 0; }
.hbc-svc-hero-icon { width: 56px; height: 56px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.5rem; background: var(--hbc-primary-soft); color: var(--hbc-primary); flex: none; }
.hbc-svc-hero h2 { font-size: 1.2rem; margin: 0 0 2px; }
.hbc-svc-hero .hbc-svc-meta { font-size: .875rem; }
.hbc-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.hbc-fact { background: var(--hbc-surface); border: 1px solid var(--hbc-border); border-radius: var(--hbc-radius); padding: 14px 16px; }
.hbc-fact span { display: block; color: var(--hbc-muted); font-size: .8rem; margin-bottom: 2px; }
.hbc-fact strong { color: var(--hbc-heading); font-weight: 750; font-size: .98rem; word-break: break-word; }
.hbc-tabs-card { background: var(--hbc-surface); border: 1px solid var(--hbc-border); border-radius: var(--hbc-radius-lg); box-shadow: var(--hbc-shadow-xs); margin-bottom: 18px; }
.hbc-tabs-card > .nav-tabs { padding: 0 12px; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
.hbc-tabs-card > .nav-tabs::-webkit-scrollbar { display: none; }
.hbc-tabs-card > .nav-tabs .nav-link { white-space: nowrap; }
.hbc-tabs-card > .tab-content { padding: 22px; }
.hbc-tabs-card > .tab-content > .tab-pane > .card { box-shadow: none; }
.hbc .module-client-area, .hbc .product-details-tab-container { color: var(--hbc-text); }

/* Shahkar lock on service pages */
.hbc-lock-banner { position: relative; z-index: 5; }
body.hbc-service-locked .hbc-locked-zone { position: relative; pointer-events: none; user-select: none; opacity: .45; filter: blur(1.5px); }
body.hbc-service-locked .hbc-locked-zone::after { content: ""; position: absolute; inset: 0; cursor: not-allowed; }

/* Extra bandwidth (extra_bandwidth addon) */
.hbc .eb-container { padding: 0 !important; }

/* Invoices */
.hbc-amount { font-weight: 800; color: var(--hbc-heading); font-variant-numeric: tabular-nums; }

/* Tickets */
.hbc .ticket-reply, .hbc .view-ticket .card { border-radius: var(--hbc-radius); }
.hbc .ticket-reply .posted-by, .hbc .ticket-reply .card-header { background: var(--hbc-surface-2); }
.hbc .ticket-reply.staff, .hbc .ticket-reply.staff .card-header { border-right: 3px solid var(--hbc-primary); }

/* Verification + network banners */
.hbc .verification-banner { background: var(--hbc-info-soft); color: var(--hbc-info-text); padding: 10px 0; border-bottom: 1px solid var(--hbc-border); }
.hbc .verification-banner .text { font-weight: 600; }
.hbc .network-issue-alert { border-radius: 0; border-right: 0; margin: 0; }
.hbc-content .verification-banner .container, .hbc-main > .network-issue-alert .container { max-width: none; padding: 0 28px; }

/* Twenty-one legacy tiles (fallback) */
.hbc .tiles .tile { background: var(--hbc-surface); border: 1px solid var(--hbc-border); color: var(--hbc-text); }

/* Domain search (homepage) */
.hbc .home-domain-search, .hbc .domain-search-bg { background: linear-gradient(135deg, #2D2D2D, #E64A19) !important; }

/* Store/cart pages need a little breathing room in the app shell */
.hbc-in-cart .hbc-content { max-width: 1560px; }

/* Shahkar addon page (designed for a dark background) */
html:not([data-theme="dark"]) .hbc .sk-verify-wrap { color: var(--hbc-text) !important; }
html:not([data-theme="dark"]) .hbc .sk-card { background: var(--hbc-surface) !important; border-color: var(--hbc-border) !important; box-shadow: var(--hbc-shadow-sm) !important; }
html:not([data-theme="dark"]) .hbc .sk-label, html:not([data-theme="dark"]) .hbc .sk-status-desc { color: var(--hbc-muted) !important; opacity: 1 !important; }
html:not([data-theme="dark"]) .hbc .sk-input { background: var(--hbc-surface) !important; border-color: var(--hbc-border-strong) !important; color: var(--hbc-heading) !important; }
html:not([data-theme="dark"]) .hbc .sk-status-title, html:not([data-theme="dark"]) .hbc .sk-verify-wrap h1, html:not([data-theme="dark"]) .hbc .sk-verify-wrap h2, html:not([data-theme="dark"]) .hbc .sk-verify-wrap h3 { color: var(--hbc-heading) !important; }

/* Utility */
.hbc-card { background: var(--hbc-surface); border: 1px solid var(--hbc-border); border-radius: var(--hbc-radius); box-shadow: var(--hbc-shadow-xs); }
.hbc-card-pad { padding: 20px; }
.hbc-gap-2 { gap: .5rem; } .hbc-gap-3 { gap: 1rem; }
.hbc .stretched-link::after { z-index: 1; }

/* Print */
@media print {
    .hbc-sidebar, .hbc-topbar, .hbc-footer, .hbc-backdrop, .hbc-context-col { display: none !important; }
    .hbc-main { margin: 0 !important; }
}

/* Review fixes */
.hbc table.table-list thead th { border-bottom: 1px solid var(--hbc-border) !important; }
.hbc table.table-list tbody tr:first-child td { border-top: 0; }
.hbc .card-minimise { transition: transform var(--hbc-dur) var(--hbc-ease); }
.hbc .card-minimise.minimised { transform: rotate(180deg); }
.hbc .product-details-tab-container > .tab-pane.text-center { text-align: right !important; }
.hbc .product-details-tab-container .module-client-area { text-align: right; }
@media (max-width: 991.98px) {
    .hbc .row > .primary-content { order: 1; }
    .hbc .row > .hbc-context-col { order: 2; margin-top: 8px; }
    .hbc .row > .sidebar-secondary { order: 3; }
}
@media (max-width: 575.98px) {
    .hbc-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .hbc-fact { padding: 12px; }
    .hbc-svc-hero { padding: 18px; }
    .hbc-hero { padding: 20px; }
    .hbc-hero h1 { font-size: 1.2rem; }
}

/* Mobile: list tables become cards */
@media (max-width: 575.98px) {
    .hbc table.table-list thead { display: none; }
    .hbc table.table-list, .hbc table.table-list tbody { display: block; width: 100% !important; }
    .hbc table.table-list tbody tr {
        display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px;
        padding: 14px 16px; border-top: 1px solid var(--hbc-border);
    }
    .hbc table.table-list tbody tr:first-child { border-top: 0; }
    .hbc table.table-list tbody td { display: block; border: 0 !important; padding: 0 !important; text-align: right !important; }
    .hbc table.table-list tbody td:empty, .hbc table.table-list tbody td.dataTables_empty { width: 100%; }
    .hbc #tableServicesList tbody td:nth-child(1) { order: 0; }
    .hbc #tableServicesList tbody td:nth-child(2) { order: 1; flex: 1 1 60%; }
    .hbc #tableServicesList tbody td:nth-child(5) { order: 2; }
    .hbc #tableServicesList tbody td:nth-child(3) { order: 3; flex: 1 1 45%; }
    .hbc #tableServicesList tbody td:nth-child(4) { order: 4; color: var(--hbc-muted); font-size: .85rem; }
    .hbc #tableServicesList tbody td:nth-child(3) small { display: inline !important; }
    .hbc #tableInvoicesList tbody td:nth-child(1) { flex: 1 1 40%; }
    .hbc #tableInvoicesList tbody td:nth-child(2) { display: none; }
    .hbc #tableInvoicesList tbody td:nth-child(3) { order: 5; flex: 1 1 100%; color: var(--hbc-muted); font-size: .85rem; }
    .hbc #tableInvoicesList tbody td:nth-child(3)::before { content: "سررسید: "; }
    .hbc .dataTables_wrapper .dataTables_paginate, .hbc .dataTables_wrapper .dataTables_length { text-align: center; float: none !important; }
}
html:not([data-theme="dark"]) .hbc .sk-info-item { background: var(--hbc-surface-2) !important; border: 1px solid var(--hbc-border); }
html:not([data-theme="dark"]) .hbc .sk-info-label { color: var(--hbc-muted) !important; }
html:not([data-theme="dark"]) .hbc .sk-info-value { color: var(--hbc-heading) !important; }

/* =========================================================================
   10. Control Room — dashboard components
   ========================================================================= */
.hbc-mono { font-family: var(--hbc-mono); font-size: .86em; direction: ltr; unicode-bidi: isolate; font-feature-settings: normal; letter-spacing: 0; }
.hbc-mono.is-dim, .hbc .is-dim { color: var(--hbc-placeholder); }
.hbc-led { width: 8px; height: 8px; border-radius: 50%; flex: none; display: inline-block; background: var(--hbc-success); box-shadow: 0 0 0 3px var(--hbc-success-soft); }
.hbc-led.is-warn { background: var(--hbc-warning); box-shadow: 0 0 0 3px var(--hbc-warning-soft); }
.hbc-led.is-bad { background: var(--hbc-danger); box-shadow: 0 0 0 3px var(--hbc-danger-soft); }
.hbc-led.is-off { background: var(--hbc-placeholder); box-shadow: 0 0 0 3px var(--hbc-surface-3); }
.hbc-tag { font-size: .7rem; font-weight: 700; padding: 1px 8px; border-radius: 6px; background: var(--hbc-surface-2); color: var(--hbc-muted); border: 1px solid var(--hbc-border); white-space: nowrap; line-height: 1.7; }
.hbc-tag.is-bad { background: var(--hbc-danger-soft); color: var(--hbc-danger-text); border-color: transparent; }
.hbc-tag.is-warn { background: var(--hbc-warning-soft); color: var(--hbc-warning-text); border-color: transparent; }

.hbc-dash { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.hbc-dash-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.hbc .hbc-dash-title { margin: 0; font-size: 1.45rem; font-weight: 850; }
.hbc-dash-sub { margin: 2px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--hbc-muted); font-size: .9rem; }
.hbc-dash-date { padding-inline-start: 10px; border-inline-start: 1px solid var(--hbc-border); }
.hbc-dash-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.hbc-notice.is-brand { background: var(--hbc-primary-soft); border-color: var(--hbc-primary-soft-2); color: var(--hbc-primary-text); }

.hbc-strip { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--hbc-surface); border: 1px solid var(--hbc-border); border-radius: var(--hbc-radius-lg); overflow: hidden; }
.hbc-strip > div { position: relative; padding: 14px 18px; border-inline-start: 1px solid var(--hbc-border); min-width: 0; }
.hbc-strip > div:first-child { border-inline-start: 0; }
.hbc-strip dt { font-size: .76rem; color: var(--hbc-muted); font-weight: 650; }
.hbc-strip dd { margin: 2px 0 0; font-size: 1.15rem; font-weight: 850; color: var(--hbc-heading); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbc-strip dd small, .hbc-strip > div > small { font-size: .76rem; color: var(--hbc-muted); font-weight: 500; }
.hbc-strip > div > small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbc-strip .is-due dd { color: var(--hbc-primary-text); }
.hbc-strip .is-warn dd { color: var(--hbc-warning-text); }
.hbc-strip .is-ok { color: var(--hbc-success-text); font-size: 1rem; }
.hbc-strip > div:has(.stretched-link):hover { background: var(--hbc-surface-2); }

.hbc-dash-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 18px; align-items: start; }
.hbc-sec-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; margin-bottom: 10px; }
.hbc .hbc-sec-head h2 { margin: 0; font-size: 1rem; font-weight: 800; }
.hbc-sec-head a { font-size: .82rem; font-weight: 650; color: var(--hbc-muted); }
.hbc-sec-head a:hover { color: var(--hbc-primary-text); }
.hbc-sec-head.is-tight { margin-bottom: 6px; }

.hbc-srv-list { display: grid; gap: 10px; }
.hbc-srv {
    background: var(--hbc-surface); border: 1px solid var(--hbc-border); border-radius: var(--hbc-radius-lg); padding: 16px 18px;
    display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) auto; gap: 14px 24px; align-items: center;
    transition: border-color var(--hbc-dur) var(--hbc-ease);
}
.hbc-srv:hover { border-color: var(--hbc-border-strong); }
.hbc-srv.is-bad { border-color: color-mix(in srgb, var(--hbc-danger) 40%, var(--hbc-border)); background: linear-gradient(var(--hbc-danger-soft), var(--hbc-danger-soft)), var(--hbc-surface); }
.hbc-srv-id { display: grid; gap: 5px; min-width: 0; }
.hbc .hbc-srv-name { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: .98rem; font-weight: 800; }
.hbc-srv-name a { color: var(--hbc-heading); }
.hbc-srv-name a:hover { color: var(--hbc-primary-text); }
.hbc-srv-addr { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; color: var(--hbc-muted); font-size: .86rem; min-width: 0; }
.hbc-srv-addr .hbc-mono { overflow-wrap: anywhere; }
.hbc-copy { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 2px 0; color: var(--hbc-heading); cursor: pointer; border-radius: 6px; }
.hbc-copy i { font-size: .8rem; color: var(--hbc-placeholder); }
.hbc-copy:hover i { color: var(--hbc-primary-text); }
.hbc-srv-meta { font-size: .78rem; color: var(--hbc-placeholder); }
.hbc-srv-note { margin: 0; font-size: .84rem; color: var(--hbc-danger-text); }
.hbc-meter-label { display: flex; justify-content: space-between; gap: 8px; font-size: .78rem; color: var(--hbc-muted); margin-bottom: 6px; }
.hbc-meter-label b { color: var(--hbc-heading); font-weight: 750; white-space: nowrap; }
.hbc-meter { height: 8px; border-radius: 99px; background: var(--hbc-surface-3); overflow: hidden; display: flex; }
.hbc-meter i { display: block; height: 100%; border-radius: 99px; background: var(--hbc-success); transition: width .6s var(--hbc-ease); }
.hbc-meter i.is-warn { background: var(--hbc-warning); }
.hbc-meter i.is-bad { background: var(--hbc-danger); }
.hbc-srv-renew { margin-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .8rem; color: var(--hbc-muted); }
.hbc-srv-renew b { color: var(--hbc-heading); }
.hbc-srv-renew.is-soon b { color: var(--hbc-warning-text); }
.hbc-srv-act { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.hbc-srv-act .hbc-icon-btn { width: 40px; height: 40px; background: var(--hbc-surface-2); }
.hbc-srv-act .is-busy { opacity: .6; pointer-events: none; }
.hbc-srv-empty { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 34px 20px; background: var(--hbc-surface); border: 1px dashed var(--hbc-border-strong); border-radius: var(--hbc-radius-lg); color: var(--hbc-muted); }
.hbc-srv-empty i { font-size: 2rem; color: var(--hbc-primary); }
.hbc-srv-empty strong { color: var(--hbc-heading); font-size: 1rem; }
.hbc-srv-empty .btn { margin-top: 8px; }

.hbc-dash-side { display: grid; gap: 14px; }
.hbc-panel { background: var(--hbc-surface); border: 1px solid var(--hbc-border); border-radius: var(--hbc-radius-lg); padding: 16px 18px; }
.hbc .hbc-panel-label { margin: 0 0 4px; font-size: .8rem; font-weight: 700; color: var(--hbc-muted); }
.hbc-due-amount { font-size: 1.55rem; font-weight: 900; color: var(--hbc-heading); line-height: 1.35; }
.hbc-due-amount.is-ok { font-size: 1.1rem; color: var(--hbc-success-text); display: flex; align-items: center; gap: 8px; margin: 4px 0 6px; }
.hbc-ledger { list-style: none; margin: 10px 0 14px; padding: 0; }
.hbc-ledger li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 9px 0; border-top: 1px dashed var(--hbc-border); font-size: .84rem; align-items: center; }
.hbc-ledger a { color: var(--hbc-heading); font-weight: 650; }
.hbc-ledger-amt { font-weight: 750; color: var(--hbc-heading); white-space: nowrap; }
.hbc-ledger em { grid-column: 1 / -1; font-style: normal; font-size: .72rem; font-weight: 700; color: var(--hbc-muted); }
.hbc-ledger em.is-bad { color: var(--hbc-danger-text); }
.hbc-ledger em.is-warn { color: var(--hbc-warning-text); }
.hbc-panel-more { display: block; text-align: center; font-size: .8rem; font-weight: 650; margin-top: 10px; color: var(--hbc-muted); }
.hbc-panel-text { font-size: .85rem; color: var(--hbc-muted); margin: 4px 0 12px; }
.hbc-ticket { display: flex; gap: 10px; align-items: flex-start; color: var(--hbc-text) !important; padding: 6px 0 2px; }
.hbc-ticket .hbc-led { margin-top: 9px; }
.hbc-ticket b { display: block; color: var(--hbc-heading); font-size: .9rem; }
.hbc-ticket small { color: var(--hbc-muted); font-size: .78rem; }
.hbc-ticket:hover b { color: var(--hbc-primary-text); }
.hbc-events { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 12px; }
.hbc-events li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 8px; font-size: .84rem; color: var(--hbc-muted); }
.hbc-events li > i { margin-top: 5px; color: var(--hbc-placeholder); }
.hbc-events b { color: var(--hbc-heading); font-weight: 650; }
.hbc-events small { display: block; font-size: .74rem; color: var(--hbc-placeholder); }
.hbc-home-panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; align-items: start; }
.hbc-home-panels .card { margin: 0; }

.hbc-confirm { border: 1px solid var(--hbc-border); border-radius: var(--hbc-radius-lg); padding: 22px; max-width: min(420px, calc(100vw - 32px)); background: var(--hbc-surface); color: var(--hbc-text); box-shadow: var(--hbc-shadow-lg); }
.hbc-confirm::backdrop { background: rgba(11, 15, 21, .55); }
.hbc-confirm p { margin: 0 0 18px; color: var(--hbc-heading); font-weight: 650; line-height: 1.9; }
.hbc-confirm-actions { display: flex; justify-content: flex-end; gap: 8px; }
.hbc-toast { position: fixed; z-index: 2000; inset-inline: 0; bottom: calc(24px + env(safe-area-inset-bottom)); margin: 0 auto; width: max-content; max-width: calc(100% - 32px); background: var(--hbc-heading); color: var(--hbc-surface); padding: 10px 18px; border-radius: 12px; font-size: .88rem; font-weight: 650; box-shadow: var(--hbc-shadow-lg); opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .18s, transform .18s; }
.hbc-toast.is-visible { opacity: 1; transform: none; }

@media (max-width: 1279.98px) { .hbc-dash-grid { grid-template-columns: 1fr; } .hbc-dash-side { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); } }
@media (max-width: 991.98px) { .hbc-srv { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .hbc-srv-act { grid-column: 1 / -1; justify-content: flex-start; } }
@media (max-width: 767.98px) {
    .hbc-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hbc-strip > div:nth-child(3) { border-inline-start: 0; }
    .hbc-strip > div:nth-child(n+3) { border-top: 1px solid var(--hbc-border); }
    .hbc-strip > div { padding: 12px 14px; }
    .hbc-dash-actions .btn-default { display: none; }
    .hbc-dash-actions { width: 100%; }
    .hbc-dash-actions .btn { flex: 1; }
    .hbc-srv { grid-template-columns: 1fr; padding: 14px; }
    .hbc-srv-act .btn { flex: 1; }
    .hbc-toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { .hbc-meter i, .hbc-toast { transition: none; } }

/* Toolbars, filter chips and search (list pages) */
.hbc-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.hbc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.hbc-chip {
    display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 14px; border-radius: 999px;
    border: 1px solid var(--hbc-border); background: var(--hbc-surface); color: var(--hbc-text); font-size: .85rem; font-weight: 650; cursor: pointer;
    transition: background-color var(--hbc-dur) var(--hbc-ease), border-color var(--hbc-dur) var(--hbc-ease);
}
.hbc-chip span { font-size: .75rem; color: var(--hbc-muted); background: var(--hbc-surface-3); border-radius: 999px; padding: 0 7px; }
.hbc-chip:hover { border-color: var(--hbc-border-strong); }
.hbc-chip.is-active { background: var(--hbc-heading); border-color: var(--hbc-heading); color: var(--hbc-surface); }
.hbc-chip.is-active span { background: rgba(255, 255, 255, .16); color: inherit; }
html[data-theme="dark"] .hbc-chip.is-active span { background: rgba(0, 0, 0, .14); }
.hbc-toolbar-end { display: flex; gap: 8px; align-items: center; }
.hbc-find { position: relative; margin: 0; display: flex; align-items: center; }
.hbc-find i { position: absolute; right: 12px; color: var(--hbc-placeholder); pointer-events: none; }
.hbc-find input { height: 42px; width: 240px; max-width: 100%; border-radius: 10px; border: 1px solid var(--hbc-border); background: var(--hbc-surface); color: var(--hbc-heading); padding: 0 36px 0 12px; font-size: .88rem; }
.hbc-find input:focus { border-color: var(--hbc-primary); box-shadow: var(--hbc-ring); outline: 0; }
.hbc-srv.is-closed { opacity: .72; }
.hbc-srv .label.status { font-size: .7rem; padding: .15em .6em; }
.hbc-srv-nomatch { text-align: center; color: var(--hbc-muted); padding: 24px; margin: 0; }
@media (max-width: 767.98px) {
    .hbc-toolbar { flex-direction: column; align-items: stretch; }
    .hbc-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; }
    .hbc-chip { flex: none; }
    .hbc-find { flex: 1; }
    .hbc-find input { width: 100%; }
}

/* =========================================================================
   11. Service management (clientareaproductdetails)
   ========================================================================= */
.hbc-svcd { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.hbc-svcd > .alert, .hbc-svcd > .hbc-notice { margin: 0; }
.hbc-notice.is-warning { background: var(--hbc-warning-soft); border-color: transparent; color: var(--hbc-warning-text); }
.hbc-svcd-head {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
    background: var(--hbc-surface); border: 1px solid var(--hbc-border); border-radius: var(--hbc-radius-lg); padding: 18px 20px; position: relative;
}
.hbc-svcd-head::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; border-radius: var(--hbc-radius-lg) var(--hbc-radius-lg) 0 0; background: linear-gradient(90deg, rgba(255, 87, 34, 0), var(--hbc-primary)); }
.hbc-svcd-head.is-bad::before { background: var(--hbc-danger); }
.hbc-svcd-id { display: flex; align-items: center; gap: 14px; min-width: 0; flex: 1 1 420px; }
.hbc-svcd-icon { width: 52px; height: 52px; flex: none; border-radius: 14px; display: grid; place-items: center; font-size: 1.35rem; background: #15181D; color: #FF7A4D; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.hbc-svcd-title { display: grid; gap: 6px; min-width: 0; }
.hbc-svcd-name { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.hbc .hbc-svcd-name h2 { margin: 0; font-size: 1.25rem; font-weight: 850; }
.hbc-svcd-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hbc-svcd-menu { min-width: 240px; }
.hbc-svcd-menu .dropdown-item { display: flex; align-items: center; gap: 8px; }
.hbc-svcd-tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--hbc-border); }
.hbc-svcd-tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; min-height: 44px; font-weight: 650; font-size: .9rem; color: var(--hbc-muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.hbc-svcd-tabs a:hover { color: var(--hbc-heading); }
.hbc-svcd-tabs a.active { color: var(--hbc-primary-text); border-bottom-color: var(--hbc-primary); }
.hbc-svcd .tab-content > .tab-pane > * + * { margin-top: 16px; }
.hbc-module { min-width: 0; }
.hbc-svcd-meters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.hbc-kv-grid { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0; border-top: 1px solid var(--hbc-border); }
.hbc-kv-grid > div { padding: 12px 0; border-bottom: 1px dashed var(--hbc-border); padding-inline-end: 16px; min-width: 0; }
.hbc-kv-grid dt { font-size: .76rem; color: var(--hbc-muted); font-weight: 650; }
.hbc-kv-grid dd { margin: 2px 0 0; color: var(--hbc-heading); font-weight: 650; overflow-wrap: anywhere; }
.hbc-kv-grid dd.hbc-mono { font-size: .86rem; text-align: right; }
.hbc-file-list { list-style: none; margin: 0; padding: 0; }
.hbc-file-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px dashed var(--hbc-border); }
.hbc-file-list b { display: block; color: var(--hbc-heading); }
.hbc-file-list span { color: var(--hbc-muted); font-size: .85rem; }
.hbc-narrow-form { max-width: 620px; }
.hbc-input-row { display: flex; gap: 8px; }
.hbc-input-row .form-control { flex: 1; }
.hbc-form-actions { display: flex; gap: 8px; margin-top: 8px; }
@media (max-width: 767.98px) {
    .hbc-svcd-head { padding: 16px; }
    .hbc-svcd-actions { width: 100%; }
    .hbc-svcd-actions > .btn, .hbc-svcd-actions > .dropdown { flex: 1; }
    .hbc-svcd-actions .dropdown > .btn { width: 100%; }
    .hbc-svcd-meters { grid-template-columns: 1fr; }
    .hbc-svcd-icon { width: 44px; height: 44px; font-size: 1.1rem; }
}

/* cPanel overview (theme override of the cPanel module template) */
.hbc-cp-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.hbc-cp-limit { margin-top: 14px; }
.hbc-cp-domain { display: inline-flex; align-items: center; gap: 8px; font-size: 1.1rem; font-weight: 700; color: var(--hbc-heading) !important; }
.hbc-cp-domain i { font-size: .8rem; color: var(--hbc-muted); }
.hbc-cp-site-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.hbc-cp-addon { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--hbc-border); }
.hbc-cp-apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.hbc-cp-app {
    display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 12px; border-radius: 12px;
    border: 1px solid var(--hbc-border); background: var(--hbc-surface-2); color: var(--hbc-heading) !important; font-weight: 650; font-size: .86rem;
    transition: border-color var(--hbc-dur) var(--hbc-ease), background-color var(--hbc-dur) var(--hbc-ease);
}
.hbc-cp-app span { width: 32px; height: 32px; flex: none; border-radius: 9px; display: grid; place-items: center; background: var(--hbc-primary-soft); color: var(--hbc-primary-text); }
.hbc-cp-app:hover { border-color: var(--hbc-primary); background: var(--hbc-surface); }
.hbc-cp-email { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 8px; }
.hbc-cp-email-addr { display: flex; align-items: stretch; direction: ltr; border: 1px solid var(--hbc-border); border-radius: 10px; overflow: hidden; background: var(--hbc-surface); }
.hbc-cp-email-addr .form-control { border: 0; box-shadow: none !important; text-align: left; font-family: var(--hbc-mono); font-feature-settings: normal; }
.hbc-cp-email-addr span { display: flex; align-items: center; padding: 0 12px; background: var(--hbc-surface-3); color: var(--hbc-muted); white-space: nowrap; }
.hbc-cp-email-addr:focus-within { border-color: var(--hbc-primary); box-shadow: var(--hbc-ring); }
.hbc-cp-wp-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.hbc-cp-wp-row > * { flex: 1 1 160px; }
@media (max-width: 991.98px) { .hbc-cp-grid { grid-template-columns: 1fr; } .hbc-cp-email { grid-template-columns: 1fr; } }
.tpl-clientareaproductdetails .hbc-page-title { display: none; }

.hbc-stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; }
.hbc-stack > script { display: none; }

/* Addon: extra_bandwidth (rendered inside .hbc-eb) */
.hbc-eb .eb-container { padding: 0; }
.hbc-eb .eb-progress-wrapper { background: var(--hbc-surface-2); border-color: var(--hbc-border); border-radius: var(--hbc-radius); }
.hbc-eb .eb-progress-container { background: var(--hbc-surface-3); height: 8px; }
.hbc-eb .eb-progress-bar { background: var(--hbc-primary); }
.hbc-eb .eb-package-card { background: var(--hbc-surface); border-color: var(--hbc-border); border-radius: var(--hbc-radius); }
.hbc-eb .eb-package-card:hover { transform: none; box-shadow: none; border-color: var(--hbc-primary); }
.hbc-eb .eb-radio-input:checked + .eb-package-card { background: var(--hbc-primary-soft) !important; box-shadow: none !important; transform: none; }
.hbc-eb .eb-radio-input:focus-visible + .eb-package-card { box-shadow: var(--hbc-ring) !important; }
.hbc-eb .eb-package-card .gb-amount, .hbc-eb .eb-radio-input:checked + .eb-package-card h5 { color: var(--hbc-primary-text); }
.hbc-eb .eb-package-card .gb-amount span { font-family: var(--hbc-mono); }
.hbc-eb .eb-invoice-box { background: var(--hbc-surface-2); border-color: var(--hbc-border-strong); }
.hbc-eb .eb-invoice-row { border-color: var(--hbc-border); }
.hbc-eb #final_price { color: var(--hbc-primary-text) !important; }
.hbc-eb #confirm_purchase { background: var(--hbc-primary) !important; border-color: var(--hbc-primary) !important; color: var(--hbc-on-primary) !important; min-height: 48px; border-radius: 12px !important; }
.hbc-eb #apply_promo { min-height: 44px; }
.hbc-eb h2 i { color: var(--hbc-primary-text); margin-inline-end: 6px; }

/* Hook output: Virtualizor root password box (includes/hooks/virtualizor_password.php) */
.hbc-hook-output .panel { background: var(--hbc-surface); border: 1px solid var(--hbc-border); border-radius: var(--hbc-radius-lg); overflow: hidden; margin: 0; }
.hbc-hook-output .panel-heading { padding: 14px 18px 0; background: transparent !important; border: 0; color: var(--hbc-heading); font-size: 1rem; }
.hbc-hook-output .panel-heading strong::before { content: "\f084"; font-family: "Font Awesome 5 Pro", "Font Awesome 5 Free"; font-weight: 400; color: var(--hbc-primary-text); margin-inline-end: 8px; }
.hbc-hook-output .panel-body { padding: 12px 18px 16px; }
.hbc-hook-output .input-group { display: flex; gap: 8px; flex-wrap: nowrap; }
.hbc-hook-output .input-group .form-control { border-radius: 10px !important; font-family: var(--hbc-mono); direction: ltr; text-align: left; font-feature-settings: normal; min-height: 44px; }
.hbc-hook-output .input-group-btn { display: flex; gap: 8px; width: auto; }
.hbc-hook-output .input-group-btn .btn { border-radius: 10px !important; min-height: 44px; margin: 0 !important; }
.hbc-hook-output #vz-status:empty { display: none; }

@media (max-width: 575.98px) { .hbc-eb .eb-packages-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }

/* Module: hetznercloud — map its --hc-* layer onto the theme tokens (both colour modes) */
.hbc .hc-dash {
    --hc-primary: var(--hbc-primary); --hc-primary-soft: var(--hbc-primary-soft);
    --hc-success: var(--hbc-success); --hc-success-soft: var(--hbc-success-soft);
    --hc-warning: var(--hbc-warning); --hc-warning-soft: var(--hbc-warning-soft);
    --hc-danger: var(--hbc-danger); --hc-danger-soft: var(--hbc-danger-soft);
    --hc-heading: var(--hbc-heading); --hc-text: var(--hbc-text); --hc-muted: var(--hbc-muted);
    --hc-border: var(--hbc-border); --hc-divider: var(--hbc-border); --hc-faded: var(--hbc-surface-2);
    --hc-card-bg: var(--hbc-surface); --hc-radius: var(--hbc-radius-lg); --hc-radius-sm: var(--hbc-radius-sm);
    --hc-shadow: none; --hc-shadow-lg: var(--hbc-shadow-lg); --hc-font: var(--hbc-font);
    margin: 0;
}
.hbc .hc-dash code, .hbc .hc-dash .hc-mono, .hbc .hc-dash [dir="ltr"] { font-family: var(--hbc-mono); font-feature-settings: normal; }

/* =========================================================================
   12. Billing — invoices ledger, add funds, mass pay
   ========================================================================= */
.hbc-svc-page { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.hbc-svc-page > .hbc-toolbar { margin-bottom: 0; }
.hbc-ledger-list { display: grid; gap: 8px; }
.hbc-inv-row {
    display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, .9fr) auto auto; gap: 10px 18px; align-items: center;
    background: var(--hbc-surface); border: 1px solid var(--hbc-border); border-radius: var(--hbc-radius); padding: 12px 16px;
    transition: border-color var(--hbc-dur) var(--hbc-ease);
}
.hbc-inv-row:hover { border-color: var(--hbc-border-strong); }
.hbc-inv-row.is-late { border-color: color-mix(in srgb, var(--hbc-danger) 35%, var(--hbc-border)); }
.hbc-inv-row-main { display: flex; align-items: center; gap: 12px; min-width: 0; color: var(--hbc-heading) !important; }
.hbc-inv-row-icon { width: 38px; height: 38px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--hbc-surface-3); color: var(--hbc-muted); }
.hbc-inv-row.is-late .hbc-inv-row-icon { background: var(--hbc-danger-soft); color: var(--hbc-danger-text); }
.hbc-inv-row-id { display: grid; min-width: 0; }
.hbc-inv-row-id b { font-weight: 750; }
.hbc-inv-row-id small, .hbc-inv-row-due .hbc-srv-meta { font-size: .76rem; color: var(--hbc-muted); }
.hbc-inv-row-due { display: grid; font-size: .86rem; color: var(--hbc-heading); }
.hbc-inv-row-due em { font-style: normal; font-size: .72rem; font-weight: 700; color: var(--hbc-muted); }
.hbc-inv-row-due em.is-bad { color: var(--hbc-danger-text); }
.hbc-inv-row-due em.is-warn { color: var(--hbc-warning-text); }
.hbc-inv-row-amt { font-weight: 800; color: var(--hbc-heading); white-space: nowrap; }
.hbc-inv-row-act { display: flex; gap: 6px; align-items: center; justify-content: flex-end; }
.hbc-inv-row-act .hbc-icon-btn { width: 38px; height: 38px; }
@media (max-width: 991.98px) {
    .hbc-inv-row { grid-template-columns: minmax(0, 1fr) auto; }
    .hbc-inv-row-due { grid-column: 1; }
    .hbc-inv-row-amt { grid-column: 2; grid-row: 1; text-align: left; }
    .hbc-inv-row-st { grid-column: 2; grid-row: 2; justify-self: end; }
    .hbc-inv-row-act { grid-column: 1 / -1; }
    .hbc-inv-row-act .btn { flex: 1; }
}

.hbc-pay-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
@media (max-width: 991.98px) { .hbc-pay-layout { grid-template-columns: 1fr; } }
.hbc-pay-form { max-width: 720px; }
.hbc-field-label { display: block; font-size: .85rem; font-weight: 700; color: var(--hbc-heading); margin-bottom: 8px; }
.hbc-field-help { font-size: .78rem; color: var(--hbc-muted); margin: 6px 0 0; }
.hbc-amount-field { display: flex; align-items: stretch; border: 1.5px solid var(--hbc-border-strong); border-radius: 12px; overflow: hidden; background: var(--hbc-surface); }
.hbc-amount-field:focus-within { border-color: var(--hbc-primary); box-shadow: var(--hbc-ring); }
.hbc .hbc-amount-field .form-control { border: 0; box-shadow: none !important; min-height: 54px; font-size: 1.3rem; font-weight: 800; text-align: left; }
.hbc-amount-field span { display: flex; align-items: center; padding: 0 16px; background: var(--hbc-surface-3); color: var(--hbc-muted); font-weight: 700; }
.hbc-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.hbc-gateways { border: 0; padding: 0; margin: 18px 0; display: grid; gap: 8px; }
.hbc-gateways legend { font-size: .85rem; }
.hbc-gateway { margin: 0; cursor: pointer; }
.hbc-gateway input { position: absolute; opacity: 0; pointer-events: none; }
.hbc-gateway span { display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 14px; border: 1.5px solid var(--hbc-border); border-radius: 12px; font-weight: 700; color: var(--hbc-heading); background: var(--hbc-surface); }
.hbc-gateway span i { color: var(--hbc-muted); }
.hbc-gateway span::after { content: ""; margin-inline-start: auto; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--hbc-border-strong); }
.hbc-gateway input:checked + span { border-color: var(--hbc-primary); background: var(--hbc-primary-soft); }
.hbc-gateway input:checked + span::after { border-color: var(--hbc-primary); background: radial-gradient(circle, var(--hbc-primary) 45%, transparent 50%); }
.hbc-gateway input:focus-visible + span { box-shadow: var(--hbc-ring); }
.hbc-pay-aside { display: grid; gap: 12px; position: sticky; top: calc(var(--hbc-topbar-h) + 16px); }
.hbc-kv-list { margin: 0; display: grid; }
.hbc-kv-list > div { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px dashed var(--hbc-border); font-size: .86rem; }
.hbc-kv-list dt { color: var(--hbc-muted); font-weight: 500; }
.hbc-kv-list dd { margin: 0; color: var(--hbc-heading); font-weight: 700; }
.hbc-pay-hint { text-decoration: none !important; margin: 0; }
.hbc-pay-aside .hbc-inv-totals { margin: 0; display: grid; }
.hbc-pay-aside .hbc-inv-totals > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 2px; font-size: .9rem; }
.hbc-pay-aside .hbc-inv-totals dt { color: var(--hbc-muted); font-weight: 500; }
.hbc-pay-aside .hbc-inv-totals dd { margin: 0; color: var(--hbc-heading); font-weight: 700; }
.hbc-pay-aside .hbc-inv-totals .is-balance { margin-top: 6px; padding: 12px 14px; border-radius: var(--hbc-radius); background: var(--hbc-primary-soft); }
.hbc-pay-aside .hbc-inv-totals .is-balance dt, .hbc-pay-aside .hbc-inv-totals .is-balance dd { color: var(--hbc-primary-text); font-weight: 850; }
.hbc-mass-list { display: grid; gap: 10px; }
.hbc-mass-inv { border: 1px solid var(--hbc-border); border-radius: var(--hbc-radius); overflow: hidden; }
.hbc-mass-head { padding: 10px 14px; background: var(--hbc-surface-2); font-weight: 750; color: var(--hbc-heading); }
.hbc-mass-head i { color: var(--hbc-muted); margin-inline-end: 6px; }
.hbc-mass-inv ul { list-style: none; margin: 0; padding: 0 14px; }
.hbc-mass-inv li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-top: 1px dashed var(--hbc-border); font-size: .86rem; }
.hbc-mass-inv li:first-child { border-top: 0; }
.hbc-mass-inv li b { white-space: nowrap; color: var(--hbc-heading); }

/* =========================================================================
   13. Support — ticket list, conversation, new ticket
   ========================================================================= */
.hbc-ticket-list { display: grid; gap: 8px; }
.hbc-ticket-row {
    display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: center;
    background: var(--hbc-surface); border: 1px solid var(--hbc-border); border-radius: var(--hbc-radius); padding: 12px 16px;
    color: var(--hbc-text) !important; transition: border-color var(--hbc-dur) var(--hbc-ease);
}
.hbc-ticket-row:hover { border-color: var(--hbc-border-strong); }
.hbc-ticket-row.is-closed { opacity: .75; }
.hbc-ticket-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--hbc-surface-3); color: var(--hbc-muted); }
.hbc-ticket-icon.is-answered { background: var(--hbc-warning-soft); color: var(--hbc-warning-text); }
.hbc-ticket-icon.is-open { background: var(--hbc-primary-soft); color: var(--hbc-primary-text); }
.hbc-ticket-main { display: grid; min-width: 0; }
.hbc-ticket-main b { color: var(--hbc-heading); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 8px; }
.hbc-ticket-row.is-unread .hbc-ticket-main b { font-weight: 850; }
.hbc-unread-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hbc-primary); flex: none; }
.hbc-ticket-main small, .hbc-ticket-side small { color: var(--hbc-muted); font-size: .78rem; }
.hbc-ticket-side { display: grid; justify-items: end; gap: 4px; text-align: left; }
@media (max-width: 575.98px) {
    .hbc-ticket-row { grid-template-columns: 36px minmax(0, 1fr); }
    .hbc-ticket-side { grid-column: 2; justify-items: start; grid-auto-flow: column; align-items: center; justify-content: space-between; }
    .hbc-ticket-icon { width: 36px; height: 36px; }
}

.hbc-thread-page { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; max-width: 980px; }
.hbc-thread-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px; background: var(--hbc-surface); border: 1px solid var(--hbc-border); border-radius: var(--hbc-radius-lg); padding: 18px 20px; }
.hbc-thread-title { display: grid; gap: 4px; min-width: 0; flex: 1 1 320px; }
.hbc-thread-title .label { justify-self: start; }
.hbc .hbc-thread-title h2 { margin: 0; font-size: 1.2rem; font-weight: 850; }
.hbc-thread-title p { margin: 0; color: var(--hbc-muted); font-size: .84rem; }
.hbc-thread-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.hbc-thread { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.hbc-msg { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: start; }
.hbc-msg-avatar { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 850; background: var(--hbc-surface-3); color: var(--hbc-heading); }
.hbc-msg.is-staff .hbc-msg-avatar { background: #15181D; }
.hbc-msg-body { background: var(--hbc-surface); border: 1px solid var(--hbc-border); border-radius: 4px var(--hbc-radius-lg) var(--hbc-radius-lg) var(--hbc-radius-lg); padding: 14px 18px; min-width: 0; }
.hbc-msg.is-staff .hbc-msg-body { border-color: var(--hbc-primary-soft-2); background: linear-gradient(var(--hbc-primary-soft), var(--hbc-primary-soft)), var(--hbc-surface); }
.hbc-msg-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 8px; font-size: .84rem; }
.hbc-msg-meta b { color: var(--hbc-heading); }
.hbc-msg-meta time { color: var(--hbc-muted); font-size: .78rem; margin-inline-start: auto; }
.hbc-tag.is-brand { background: #15181D; color: #FF9470; border-color: transparent; }
.hbc-msg-text { color: var(--hbc-text); line-height: 1.95; overflow-wrap: anywhere; }
.hbc-msg-text p:last-child { margin-bottom: 0; }
.hbc-msg-text pre, .hbc-msg-text code { direction: ltr; text-align: left; }
.hbc-msg-files { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--hbc-border); }
.hbc-msg-files ul { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.hbc-file { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; background: var(--hbc-surface-2); border: 1px solid var(--hbc-border); font-size: .82rem; color: var(--hbc-heading) !important; }
.hbc-file.is-removed { opacity: .6; }
.hbc-msg-rate { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.hbc-msg-rate .rating, .hbc-msg-rate .rating-done { direction: ltr; display: inline-flex; gap: 2px; }
.hbc-msg-rate .star { width: 20px; height: 20px; cursor: pointer; color: var(--hbc-border-strong); font-size: 1.1rem; line-height: 1; }
.hbc-msg-rate .star::before { content: "\2605"; }
.hbc-msg-rate .rating .star:hover, .hbc-msg-rate .rating .star:hover ~ .star, .hbc-msg-rate .star.active { color: #F5A524; }
.hbc-msg-rate .rated { font-size: .78rem; color: var(--hbc-muted); margin-inline-start: 6px; }
@media (max-width: 575.98px) { .hbc-msg { grid-template-columns: 1fr; } .hbc-msg-avatar { display: none; } .hbc-thread-actions { width: 100%; } .hbc-thread-actions .btn { flex: 1; } }
.hbc-reply { scroll-margin-top: calc(var(--hbc-topbar-h) + 16px); }

.hbc-form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.hbc-form-row.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 767.98px) { .hbc-form-row, .hbc-form-row.is-3 { grid-template-columns: 1fr; } }
.hbc-segment { display: flex; border: 1px solid var(--hbc-border); border-radius: 10px; padding: 3px; background: var(--hbc-surface-2); }
.hbc-segment label { flex: 1; margin: 0; cursor: pointer; }
.hbc-segment input { position: absolute; opacity: 0; pointer-events: none; }
.hbc-segment span { display: grid; place-items: center; min-height: 38px; border-radius: 8px; font-size: .86rem; font-weight: 650; color: var(--hbc-muted); }
.hbc-segment input:checked + span { background: var(--hbc-surface); color: var(--hbc-heading); box-shadow: var(--hbc-shadow-xs); }
.hbc-segment input:focus-visible + span { box-shadow: var(--hbc-ring); }
.hbc-attach .custom-file-label { display: flex; align-items: center; gap: 6px; }
.hbc-attach .attachment-group { margin-bottom: 6px; }
.hbc-captcha:empty { display: none; }
.hbc-dept-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.hbc-dept { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1.5px solid var(--hbc-border); border-radius: var(--hbc-radius); background: var(--hbc-surface); color: var(--hbc-text) !important; transition: border-color var(--hbc-dur) var(--hbc-ease); }
.hbc-dept:hover { border-color: var(--hbc-primary); }
.hbc-dept-icon { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--hbc-primary-soft); color: var(--hbc-primary-text); font-size: 1.1rem; }
.hbc-dept b { display: block; color: var(--hbc-heading); }
.hbc-dept small { color: var(--hbc-muted); font-size: .8rem; }
.hbc-dept-go { margin-inline-start: auto; color: var(--hbc-placeholder); }
.hbc-done { text-align: center; display: grid; justify-items: center; gap: 6px; padding: 40px 20px; }
.hbc-done-icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; background: var(--hbc-success-soft); color: var(--hbc-success-text); margin-bottom: 6px; }
.hbc .hbc-done h2 { margin: 0; font-size: 1.3rem; }
.hbc-done .hbc-form-actions { justify-content: center; margin-top: 10px; }
.hbc button, .hbc .btn { font-feature-settings: "ss01"; }
.hbc-pay-hint { flex-wrap: nowrap; align-items: flex-start; }
.hbc-pay-hint .hbc-notice-body { flex: 1 1 auto; }
.hbc-pay-hint .hbc-notice-body strong, .hbc-pay-hint .hbc-notice-body span { display: block; }
.hbc .custom-file-label { background: var(--hbc-surface); color: var(--hbc-heading); border-color: var(--hbc-border); border-radius: 10px; }
.hbc .custom-file-label::after { content: "انتخاب"; background: var(--hbc-surface-3); color: var(--hbc-heading); border-color: var(--hbc-border); }
.hbc .custom-file-input:focus ~ .custom-file-label { border-color: var(--hbc-primary); box-shadow: var(--hbc-ring); }
.hbc-thread-actions .btn { white-space: nowrap; }

/* =========================================================================
   14. Auth forms — mobile OTP (theme markup for mobile_otp_login)
   ========================================================================= */
.hbc-otp { display: grid; gap: 16px; }
.hbc-otp form, .hbc-otp fieldset { margin: 0; border: 0; padding: 0; min-width: 0; display: grid; gap: 14px; }
.hbc-otp [hidden] { display: none !important; }
.hbc-field { display: grid; gap: 6px; min-width: 0; }
.hbc-field > label { font-size: .86rem; font-weight: 700; color: var(--hbc-heading); margin: 0; }
.hbc-field .form-control { min-height: 48px; border-radius: 12px; }
.hbc-field-error { display: none; margin: 0; font-size: .8rem; font-weight: 650; color: var(--hbc-danger-text); }
.hbc-field.is-invalid .hbc-field-error { display: block; }
.hbc-field.is-invalid .form-control, .hbc-field.is-invalid .hbc-phone { border-color: var(--hbc-danger) !important; box-shadow: 0 0 0 3px var(--hbc-danger-soft) !important; }
.hbc-field .hbc-field-help { margin: 0; }
.hbc-phone { display: flex; direction: ltr; border: 1px solid var(--hbc-border-strong); border-radius: 12px; overflow: hidden; background: var(--hbc-surface); }
.hbc-phone:focus-within { border-color: var(--hbc-primary); box-shadow: var(--hbc-ring); }
.hbc .hbc-phone .form-control { border: 0; box-shadow: none !important; font-size: 1.15rem; font-weight: 700; letter-spacing: .04em; font-family: var(--hbc-mono); font-feature-settings: normal; text-align: left; order: 2; }
.hbc-phone-cc { order: 1; display: flex; align-items: center; padding: 0 14px; background: var(--hbc-surface-3); color: var(--hbc-muted); font-weight: 700; font-family: var(--hbc-mono); font-feature-settings: normal; border-inline-end: 1px solid var(--hbc-border); }
.hbc-otp-msg { border-radius: 12px; padding: 12px 14px; font-size: .88rem; line-height: 1.8; }
.hbc-otp-msg.is-error { background: var(--hbc-danger-soft); color: var(--hbc-danger-text); }
.hbc-otp-msg.is-success { background: var(--hbc-success-soft); color: var(--hbc-success-text); }
.hbc-otp-msg.is-info { background: var(--hbc-info-soft); color: var(--hbc-info-text); }
.hbc-otp-msg-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.hbc-otp-sent { margin: 0; color: var(--hbc-text); font-size: .9rem; line-height: 1.9; }
.hbc-otp-sent bdi { font-family: var(--hbc-mono); font-feature-settings: normal; font-weight: 700; color: var(--hbc-heading); }
.hbc-link-btn { border: 0; background: none; padding: 0; color: var(--hbc-primary-text); font-weight: 700; font-size: inherit; cursor: pointer; }
.hbc-link-btn:disabled { color: var(--hbc-placeholder); cursor: default; }
.hbc-link-btn:not(:disabled):hover { text-decoration: underline; }
.hbc-otp-boxes { display: flex; justify-content: center; gap: 8px; }
.hbc .hbc-otp-boxes .form-control {
    width: 52px; height: 58px; padding: 0; text-align: center; font-size: 1.5rem; font-weight: 800; border-radius: 12px;
    font-family: var(--hbc-mono); font-feature-settings: normal; caret-color: var(--hbc-primary);
}
.hbc-otp-boxes.is-invalid .form-control { border-color: var(--hbc-danger); animation: hbc-shake .3s; }
@keyframes hbc-shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@media (max-width: 400px) { .hbc .hbc-otp-boxes .form-control { width: 44px; height: 52px; font-size: 1.3rem; } .hbc-otp-boxes { gap: 6px; } }
.hbc-otp-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .82rem; color: var(--hbc-muted); }
.hbc-otp-meta [data-clock].is-expired { color: var(--hbc-danger-text); font-weight: 700; }
.hbc-otp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.hbc-otp-steps li { display: flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 650; color: var(--hbc-muted); padding-bottom: 8px; border-bottom: 3px solid var(--hbc-border); }
.hbc-otp-steps li span { width: 24px; height: 24px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--hbc-surface-3); font-size: .75rem; font-weight: 800; }
.hbc-otp-steps li.is-current { color: var(--hbc-heading); border-color: var(--hbc-primary); }
.hbc-otp-steps li.is-current span { background: var(--hbc-primary); color: var(--hbc-on-primary); }
.hbc-otp-steps li.is-done { color: var(--hbc-success-text); border-color: var(--hbc-success); }
.hbc-otp-steps li.is-done span { background: var(--hbc-success-soft); color: var(--hbc-success-text); }
@media (max-width: 420px) { .hbc-otp-steps li { font-size: 0; gap: 0; justify-content: center; } .hbc-otp-steps li.is-current { font-size: .76rem; gap: 6px; } }
.hbc-otp-nav { display: grid; grid-template-columns: auto 1fr; gap: 8px; }
.hbc-otp-note { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--hbc-surface-2); }
.hbc-otp-tos { text-align: center; }
.hbc-pw { position: relative; }
.hbc-pw .form-control { padding-inline-end: 48px; }
.hbc-pw-btn { position: absolute; top: 0; bottom: 0; inset-inline-end: 4px; width: 42px; border: 0; background: none; color: var(--hbc-muted); cursor: pointer; }
.hbc .btn.is-busy { position: relative; color: transparent !important; pointer-events: none; }
.hbc .btn.is-busy::after { content: ""; position: absolute; inset: 0; margin: auto; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--hbc-on-primary); border-top-color: transparent; animation: hbc-spin .7s linear infinite; }
.hbc .btn-default.is-busy::after, .hbc .hbc-link-btn.is-busy::after { border-color: var(--hbc-heading); border-top-color: transparent; }
@keyframes hbc-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hbc-otp-boxes.is-invalid .form-control, .hbc .btn.is-busy::after { animation: none; } }
@media (min-width: 992px) { .hbc-auth-logo-sm { visibility: hidden; } }

/* Auth brand panel follows the colour mode: warm light panel in light mode, charcoal in dark mode. */
html:not([data-theme="dark"]) .hbc-auth-brand {
    color: var(--hbc-heading);
    background:
        radial-gradient(90% 60% at 100% 0%, rgba(255, 87, 34, .18) 0%, rgba(255, 87, 34, 0) 62%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='48' viewBox='0 0 56 48'%3E%3Cpath d='M14 1h28l14 23-14 23H14L0 24z' fill='none' stroke='%23FF5722' stroke-opacity='.14' stroke-width='1.2'/%3E%3C/svg%3E") 0 0 / 56px 48px,
        #FFF6F2;
    border-inline-start: 1px solid var(--hbc-border);
}
html:not([data-theme="dark"]) .hbc-auth-kicker { color: var(--hbc-muted); }
html:not([data-theme="dark"]) .hbc .hbc-auth-headline { color: var(--hbc-heading); }
html:not([data-theme="dark"]) .hbc-auth-points li { color: var(--hbc-muted); }
html:not([data-theme="dark"]) .hbc-auth-points b { color: var(--hbc-heading); }
html:not([data-theme="dark"]) .hbc-auth-points i { background: var(--hbc-primary-soft-2); color: var(--hbc-primary-text); }
html:not([data-theme="dark"]) .hbc-auth-hex { opacity: .09; }
@media (max-width: 991.98px) {
    html:not([data-theme="dark"]) .hbc-auth-brand { border-inline-start: 0; border-bottom: 1px solid var(--hbc-border); }
    html:not([data-theme="dark"]) .hbc-auth-top .hbc-icon-btn { background: var(--hbc-surface); border-color: var(--hbc-border); color: var(--hbc-heading) !important; }
}
.hbc-theme-ico { flex: none; }
.hbc-otp-steps { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.hbc-auth-logo { display: block; width: fit-content; }
.hbc-auth-kicker { display: flex; width: fit-content; }
.hbc-pw .form-control { padding-left: 48px; padding-right: 14px; }
.hbc-pw-btn { inset-inline-end: auto; left: 4px; }

/* =========================================================================
   15. Account area — tabs, details, security
   ========================================================================= */
.hbc-acc-tabs { display: flex; gap: 4px; margin-top: 14px; overflow-x: auto; border-bottom: 1px solid var(--hbc-border); scrollbar-width: none; }
.hbc-acc-tabs::-webkit-scrollbar { display: none; }
.hbc-acc-tabs a { display: inline-flex; align-items: center; gap: 7px; padding: 10px 14px; min-height: 44px; white-space: nowrap; font-weight: 650; font-size: .9rem; color: var(--hbc-muted) !important; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.hbc-acc-tabs a i { font-size: .9rem; }
.hbc-acc-tabs a:hover { color: var(--hbc-heading) !important; }
.hbc-acc-tabs a.active { color: var(--hbc-primary-text) !important; border-bottom-color: var(--hbc-primary); }
.hbc-acc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
@media (max-width: 1099.98px) { .hbc-acc-layout { grid-template-columns: 1fr; } .hbc-acc-side { order: -1; } }
.hbc-acc-main, .hbc-acc-stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.hbc-acc-stack { max-width: 860px; }
.hbc-acc-main .hbc-field + .hbc-field, .hbc-acc-main .hbc-form-row + .hbc-field, .hbc-acc-main .hbc-field + .hbc-form-row, .hbc-acc-main .hbc-form-row + .hbc-form-row,
.hbc-acc-stack .hbc-field + .hbc-field, .hbc-acc-stack .hbc-form-row + .hbc-field, .hbc-acc-stack .hbc-field + .hbc-form-row, .hbc-narrow-form .hbc-field + .hbc-field { margin-top: 12px; }
.hbc-acc-main .hbc-form-row, .hbc-acc-stack .hbc-form-row { gap: 12px 14px; }
.hbc-field .form-control:disabled { background: var(--hbc-surface-2); color: var(--hbc-muted); cursor: not-allowed; }
.hbc-form-actions { margin-top: 14px; }
.hbc-acc-collapse { padding: 0; }
.hbc-acc-collapse summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; cursor: pointer; }
.hbc-acc-collapse summary::-webkit-details-marker { display: none; }
.hbc-acc-collapse summary b { display: block; color: var(--hbc-heading); font-size: 1rem; }
.hbc-acc-collapse summary small { color: var(--hbc-muted); font-size: .8rem; }
.hbc-acc-collapse summary > i { color: var(--hbc-muted); transition: transform var(--hbc-dur) var(--hbc-ease); }
.hbc-acc-collapse[open] summary > i { transform: rotate(180deg); }
.hbc-acc-collapse summary:focus-visible { outline: 2px solid var(--hbc-primary); outline-offset: -2px; border-radius: var(--hbc-radius-lg); }
.hbc-acc-collapse-body { padding: 0 18px 18px; border-top: 1px dashed var(--hbc-border); padding-top: 16px; }
.hbc-acc-collapse-body select, .hbc-field select.form-control { min-height: 48px; }
.hbc-switch-list { display: grid; gap: 4px; }
.hbc-switch { display: flex; align-items: center; gap: 12px; padding: 10px 0; margin: 0; cursor: pointer; border-top: 1px dashed var(--hbc-border); font-weight: 600; color: var(--hbc-heading); }
.hbc-switch:first-child { border-top: 0; }
.hbc-switch input[type="checkbox"] { position: absolute; opacity: 0; pointer-events: none; }
.hbc-switch small { display: block; color: var(--hbc-muted); font-weight: 400; font-size: .8rem; }
.hbc-switch-ui { width: 40px; height: 24px; flex: none; border-radius: 999px; background: var(--hbc-border-strong); position: relative; transition: background var(--hbc-dur) var(--hbc-ease); }
.hbc-switch-ui::after { content: ""; position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform var(--hbc-dur) var(--hbc-ease); }
.hbc-switch input:checked + .hbc-switch-ui { background: var(--hbc-primary); }
.hbc-switch input:checked + .hbc-switch-ui::after { transform: translateX(-16px); }
.hbc-switch input:focus-visible + .hbc-switch-ui { box-shadow: var(--hbc-ring); }
.hbc-savebar {
    position: sticky; bottom: 12px; z-index: 5; display: flex; align-items: center; justify-content: flex-end; gap: 8px;
    padding: 12px 14px; border-radius: var(--hbc-radius-lg); background: color-mix(in srgb, var(--hbc-surface) 92%, transparent);
    border: 1px solid var(--hbc-border); box-shadow: var(--hbc-shadow-md); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.hbc-savebar [data-hbc-dirty-note] { margin-inline-end: auto; color: var(--hbc-warning-text); font-weight: 650; }
@media (max-width: 767.98px) { .hbc-savebar { bottom: calc(80px + env(safe-area-inset-bottom)); } }
.hbc-acc-side { display: grid; gap: 12px; position: sticky; top: calc(var(--hbc-topbar-h) + 16px); }
.hbc-acc-card { display: grid; justify-items: center; text-align: center; gap: 4px; }
.hbc-acc-card .hbc-kv-list { width: 100%; margin-top: 8px; text-align: right; }
.hbc-acc-avatar { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: #15181D; color: #FF7A4D; font-size: 1.6rem; font-weight: 850; margin-bottom: 6px; }
.hbc-acc-card b { color: var(--hbc-heading); font-size: 1.05rem; }
.hbc-acc-verify { display: flex; gap: 12px; align-items: flex-start; background: var(--hbc-warning-soft); border-color: transparent; }
.hbc-acc-verify.is-ok { background: var(--hbc-success-soft); }
.hbc-acc-verify > i { font-size: 1.3rem; color: var(--hbc-warning-text); margin-top: 3px; }
.hbc-acc-verify.is-ok > i { color: var(--hbc-success-text); }
.hbc-acc-verify b { display: block; color: var(--hbc-heading); }
.hbc-acc-verify span { display: block; font-size: .84rem; color: var(--hbc-text); margin-bottom: 8px; }
.hbc-acc-link { display: flex; align-items: center; gap: 12px; color: var(--hbc-text) !important; }
.hbc-acc-link > i:first-child { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--hbc-primary-soft); color: var(--hbc-primary-text); }
.hbc-acc-link b { display: block; color: var(--hbc-heading); }
.hbc-acc-link small { color: var(--hbc-muted); }
.hbc-acc-link > i:last-child { margin-inline-start: auto; color: var(--hbc-placeholder); }
.hbc-acc-link:hover { border-color: var(--hbc-primary); }
.hbc-pill-sm { display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; font-weight: 750; padding: 2px 10px; border-radius: 999px; }
.hbc-pill-sm.is-ok { background: var(--hbc-success-soft); color: var(--hbc-success-text); }
.hbc-pill-sm.is-warn { background: var(--hbc-warning-soft); color: var(--hbc-warning-text); }
.hbc-2fa { display: flex; gap: 16px; align-items: flex-start; }
.hbc-2fa-icon { width: 52px; height: 52px; flex: none; border-radius: 14px; display: grid; place-items: center; font-size: 1.4rem; background: var(--hbc-warning-soft); color: var(--hbc-warning-text); }
.hbc-2fa.is-on .hbc-2fa-icon { background: var(--hbc-success-soft); color: var(--hbc-success-text); }
.hbc-2fa-body { flex: 1; min-width: 0; }
.hbc-2fa .hbc-sec-head { justify-content: flex-start; }
.hbc-acc-tips ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .88rem; color: var(--hbc-text); }
.hbc-acc-tips i { color: var(--hbc-success-text); margin-inline-end: 6px; }
.hbc-form-row > .hbc-field { margin-top: 0 !important; }
/* WHMCS toggles these by class, so the hidden state must beat component display rules. */
.hbc .twofa-config-link.w-hidden { display: none !important; }
.hbc .generate-password { white-space: nowrap; }

/* Virtualizor panel mount (iframe is styled from inside by css/hbc-virt.css) */
.hbc-virt { background: var(--hbc-surface); border: 1px solid var(--hbc-border); border-radius: var(--hbc-radius-lg); overflow: hidden; margin-bottom: 16px; }
.hbc-virt:empty { display: none; }
.hbc-virt #virtualizor_manager { display: block; background: transparent !important; }
.hbc-virt #virtualizor_load_div .progress-bar-value { background-color: var(--hbc-primary) !important; }

/* Service actions menu: never clipped, scrolls if long */
.hbc-svcd-menu { z-index: 1060; max-height: min(70vh, 460px); overflow-y: auto; }

/* =========================================================================
   Virtualizor VPS dashboard (includes/hbc-vps.tpl, js/hbc-vps.js)
   ========================================================================= */
.hbc-vps { display: grid; gap: 16px; }
.hbc-vps-head { margin-bottom: 0; justify-content: flex-start; }
.hbc-vps-head h2 { margin-inline-end: auto; }
.hbc-vps-state { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 99px; background: var(--hbc-surface-2); border: 1px solid var(--hbc-border); font-size: .82rem; font-weight: 700; color: var(--hbc-heading); }
.hbc-vps[aria-busy="true"] .hbc-vps-refresh i { animation: fa-spin 1s linear infinite; }
.hbc-vps-id { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hbc-vps-os { width: 40px; height: 40px; border-radius: 10px; background: var(--hbc-surface-2); padding: 6px; border: 1px solid var(--hbc-border); }
.hbc-vps-id-main { display: grid; min-width: 0; flex: 1 1 240px; }
.hbc-vps-host { font-weight: 750; color: var(--hbc-heading); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: ltr; text-align: right; }
.hbc-vps-ips { display: flex; gap: 6px; flex-wrap: wrap; }
.hbc-vps-power { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px; border-radius: 12px; background: var(--hbc-surface-2); border: 1px solid var(--hbc-border); }
.hbc-vps-power .btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; border-radius: 10px; font-weight: 700; font-size: .86rem; }
.hbc-vps-power .btn[hidden] { display: none; }
.hbc-vps-power [data-vps-power="Start"] i { color: var(--hbc-success); }
.hbc-vps-power [data-vps-power="Reboot"] i { color: var(--hbc-info, #2E90FA); }
.hbc-vps-power [data-vps-power="Stop"] i { color: var(--hbc-warning); }
.hbc-vps-power .hbc-vps-danger { color: var(--hbc-danger-text); }
.hbc-vps-power-sep { flex: 1 1 auto; }
@media (max-width: 575.98px) {
    .hbc-vps-power .btn { flex: 1 1 calc(50% - 8px); justify-content: center; }
    .hbc-vps-power-sep { display: none; }
}
.hbc-vps-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 991.98px) { .hbc-vps-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hbc-vps-kpi { display: grid; gap: 4px; padding: 14px; border-radius: 12px; border: 1px solid var(--hbc-border); background: var(--hbc-surface); min-width: 0; }
.hbc-vps-kpi-label { font-size: .78rem; font-weight: 650; color: var(--hbc-muted); display: flex; align-items: center; gap: 6px; }
.hbc-vps-kpi strong { font-size: 1.05rem; font-weight: 800; color: var(--hbc-heading); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbc-vps-kpi-sub { font-size: .75rem; color: var(--hbc-muted); min-height: 1.2em; }
.hbc-vps-kpi .hbc-meter { margin-top: 4px; height: 6px; }
.hbc-vps-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 767.98px) { .hbc-vps-charts { grid-template-columns: 1fr; } }
.hbc-vps-chart { margin: 0; padding: 14px; border-radius: 12px; border: 1px solid var(--hbc-border); background: var(--hbc-surface); min-width: 0; position: relative; }
.hbc-vps-chart figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.hbc-vps-chart figcaption span { font-weight: 750; font-size: .88rem; color: var(--hbc-heading); }
.hbc-vps-chart figcaption small { font-size: .74rem; color: var(--hbc-muted); }
.hbc-vps-legend { display: flex; gap: 12px; font-size: .74rem; color: var(--hbc-muted); margin-bottom: 4px; }
.hbc-vps-legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-inline-end: 6px; vertical-align: -1px; }
.hbc-vps-legend .is-in::before { background: #E4572E; }
.hbc-vps-legend .is-out::before { background: #3B6FD8; }
html[data-theme="dark"] .hbc-vps-legend .is-in::before { background: #E25A2C; }
html[data-theme="dark"] .hbc-vps-legend .is-out::before { background: #4F7FE0; }
.hbc-vps-plot { position: relative; direction: ltr; min-height: 168px; }
.hbc-vps-plot svg { display: block; overflow: visible; }
.hbc-vps-grid { stroke: var(--hbc-border); stroke-dasharray: 3 4; }
.hbc-vps-axis { stroke: var(--hbc-border-strong); }
.hbc-vps-cross { stroke: var(--hbc-muted); stroke-dasharray: 3 3; }
.hbc-vps-dot { stroke: var(--hbc-surface); stroke-width: 2; }
.hbc-vps-tick { font-size: 10px; fill: var(--hbc-muted); font-family: var(--hbc-font); }
.hbc-vps-tip {
    position: absolute; top: 0; z-index: 2; pointer-events: none; direction: rtl; display: grid; gap: 2px;
    padding: 8px 10px; border-radius: 10px; background: var(--hbc-heading); color: var(--hbc-surface); font-size: .74rem; white-space: nowrap; box-shadow: var(--hbc-shadow-md);
}
.hbc-vps-tip[hidden] { display: none; }
.hbc-vps-tip i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-inline-end: 6px; }
.hbc-vps-empty { margin: 0; display: grid; place-items: center; min-height: 160px; color: var(--hbc-muted); font-size: .84rem; }
.hbc-vps-full { display: grid; gap: 12px; }
.hbc-vps-full-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.hbc-vps-full-head h2 { font-size: 1rem; margin: 0 0 2px; }
.hbc-vps-full-head p { margin: 0; }
.hbc-vps-full-head .btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 10px; font-weight: 700; }
.hbc-vps-full .hbc-virt { border-radius: 12px; margin: 0; }
.hbc-vps-full .hbc-virt[hidden] { display: none; }

/* =========================================================================
   Addon pages: Shahkar (modules/addons/shahkar/verify.tpl), extra bandwidth (…/extra_bandwidth/clienthome.tpl)
   ========================================================================= */
.hbc-sk { display: grid; gap: 16px; max-width: 640px; }
.hbc-sk-status h2 { font-size: 1.15rem; margin: 4px 0 0; }
.hbc-sk-status p { max-width: 440px; margin: 0; }
.hbc-sk-status .hbc-tag { margin-top: 6px; display: inline-flex; gap: 6px; align-items: center; }
.hbc-sk-status.is-bad .hbc-done-icon { background: var(--hbc-danger-soft); color: var(--hbc-danger-text); }
.hbc-sk-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hbc-sk-facts > div { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; background: var(--hbc-surface-2); border: 1px solid var(--hbc-border); }
.hbc-sk-facts span { font-size: .78rem; color: var(--hbc-muted); }
.hbc-sk-facts bdi { font-weight: 750; color: var(--hbc-heading); direction: ltr; text-align: right; }
.hbc-sk-form { display: grid; gap: 16px; }
.hbc-sk-intro { display: flex; gap: 14px; align-items: flex-start; }
.hbc-sk-intro h2 { font-size: 1.1rem; margin: 2px 0 4px; }
.hbc-sk-intro p { margin: 0; line-height: 1.9; }
.hbc-sk-fields { display: grid; gap: 14px; }
.hbc-sk-fields .form-control { text-align: left; letter-spacing: .08em; }
.hbc-sk-fields .form-control::placeholder { letter-spacing: normal; }
.hbc-sk-submit { min-height: 48px; border-radius: 12px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.hbc-sk-privacy { margin: 0; font-size: .78rem; color: var(--hbc-muted); display: flex; gap: 8px; align-items: center; }
@media (max-width: 575.98px) { .hbc-sk-facts { grid-template-columns: 1fr; } .hbc-sk-intro .hbc-svc-hero-icon { display: none; } }

.hbc-ebp { display: grid; gap: 16px; }
.hbc-ebp-intro { margin: 0; line-height: 1.9; }
.hbc-ebp-servers { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.hbc-ebp-server { display: grid; gap: 8px; padding: 14px; border-radius: 12px; border: 1px solid var(--hbc-border); background: var(--hbc-surface); color: inherit; }
.hbc-ebp-server:hover { border-color: var(--hbc-border-strong); text-decoration: none; color: inherit; }
.hbc-ebp-server-head { display: flex; align-items: center; gap: 8px; justify-content: space-between; min-width: 0; }
.hbc-ebp-server-head bdi { font-weight: 750; color: var(--hbc-heading); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: ltr; }
.hbc-ebp-packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.hbc-ebp-pack { display: grid; gap: 8px; padding: 16px; border-radius: 14px; border: 1px solid var(--hbc-border); background: var(--hbc-surface); margin: 0; }
.hbc-ebp-pack:focus-within { border-color: var(--hbc-primary); box-shadow: var(--hbc-ring); }
.hbc-ebp-pack-name { font-size: .82rem; font-weight: 700; color: var(--hbc-muted); }
.hbc-ebp-pack-gb { color: var(--hbc-muted); font-size: .85rem; }
.hbc-ebp-pack-gb strong { font-size: 1.6rem; font-weight: 850; color: var(--hbc-heading); margin-inline-end: 4px; }
.hbc-ebp-pack-price { font-weight: 800; color: var(--hbc-primary-text); font-size: 1.05rem; padding-bottom: 6px; border-bottom: 1px dashed var(--hbc-border); }
.hbc-ebp-pack-price small { font-weight: 600; color: var(--hbc-muted); }
.hbc-ebp-pack .btn { min-height: 44px; border-radius: 10px; font-weight: 750; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.hbc-tag.is-ok { background: var(--hbc-success-soft); color: var(--hbc-success-text); border-color: transparent; }
.hbc-sk-form .hbc-notice, .hbc-ebp .hbc-notice { margin: 0; }

/* VPS SSH access card */
.hbc-vps-ssh { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 1199.98px) { .hbc-vps-ssh { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .hbc-vps-ssh { grid-template-columns: 1fr; } }
.hbc-vps-ssh-item { display: grid; gap: 6px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--hbc-border); background: var(--hbc-surface-2); min-width: 0; }
.hbc-vps-ssh-label { font-size: .76rem; font-weight: 650; color: var(--hbc-muted); }
.hbc-vps-ssh-value { display: flex; align-items: center; gap: 4px; min-width: 0; }
.hbc-vps-ssh-value bdi, .hbc-vps-ssh-value code { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; color: var(--hbc-heading); direction: ltr; text-align: right; }
.hbc-vps-ssh-value code { background: none; padding: 0; font-family: var(--hbc-mono); font-size: .86rem; }
.hbc-vps-ssh-value .hbc-icon-btn { width: 32px; height: 32px; flex: none; }
.hbc-vps-ssh-item.is-pw { border-color: var(--hbc-primary-soft-2); background: var(--hbc-primary-soft); }
.hbc-vps-ssh-msg { grid-column: 1 / -1; margin: -2px 0 0; font-size: .8rem; color: var(--hbc-muted); min-height: 0; }
.hbc-vps-ssh-msg:empty { display: none; }

/* VPS extra traffic purchase (includes/hbc-vps-traffic.tpl) */
.hbc-vps-kpi-link { font-size: .78rem; font-weight: 750; color: var(--hbc-primary-text); margin-top: 4px; display: inline-flex; align-items: center; gap: 6px; }
.hbc-xt { display: grid; gap: 16px; scroll-margin-top: calc(var(--hbc-topbar-h, 68px) + 16px); }
.hbc-xt-head { display: flex; gap: 14px; align-items: flex-start; }
.hbc-xt-head h2 { font-size: 1.05rem; margin: 2px 0 4px; }
.hbc-xt-head p { margin: 0; line-height: 1.9; }
.hbc-xt .hbc-notice { margin: 0; }
.hbc-xt-usage { display: grid; gap: 6px; padding: 12px 14px; border-radius: 12px; background: var(--hbc-surface-2); border: 1px solid var(--hbc-border); }
.hbc-xt-form { display: grid; gap: 16px; }
.hbc-xt-packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; border: 0; margin: 0; padding: 0; min-width: 0; }
.hbc-xt-pack { position: relative; margin: 0; cursor: pointer; font-weight: 400; }
.hbc-xt-pack input { position: absolute; opacity: 0; pointer-events: none; }
.hbc-xt-pack-box { display: grid; gap: 4px; height: 100%; padding: 16px; border-radius: 14px; border: 1.5px solid var(--hbc-border); background: var(--hbc-surface); transition: border-color var(--hbc-dur) var(--hbc-ease), background var(--hbc-dur) var(--hbc-ease), box-shadow var(--hbc-dur) var(--hbc-ease); }
.hbc-xt-pack:hover .hbc-xt-pack-box { border-color: var(--hbc-border-strong); }
.hbc-xt-pack input:checked + .hbc-xt-pack-box { border-color: var(--hbc-primary); background: var(--hbc-primary-soft); box-shadow: 0 0 0 3px var(--hbc-primary-soft); }
.hbc-xt-pack input:focus-visible + .hbc-xt-pack-box { box-shadow: var(--hbc-ring); }
.hbc-xt-pack-gb { color: var(--hbc-muted); font-size: .85rem; }
.hbc-xt-pack-gb b { font-size: 1.5rem; font-weight: 850; color: var(--hbc-heading); margin-inline-end: 4px; }
.hbc-xt-pack-price { font-weight: 800; color: var(--hbc-heading); font-size: 1rem; }
.hbc-xt-pack input:checked + .hbc-xt-pack-box .hbc-xt-pack-price { color: var(--hbc-primary-text); }
.hbc-xt-pack-price small, .hbc-xt-pack-unit { font-size: .76rem; font-weight: 600; color: var(--hbc-muted); }
.hbc-xt-bottom { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 16px; align-items: start; }
@media (max-width: 767.98px) { .hbc-xt-bottom { grid-template-columns: 1fr; } }
.hbc-xt-promo .form-control { min-height: 44px; border-radius: 10px; text-align: left; }
.hbc-xt-promo .btn { min-height: 44px; border-radius: 10px; font-weight: 700; padding: 0 18px; }
.hbc-xt-msg { margin: 6px 0 0; font-size: .8rem; color: var(--hbc-muted); }
.hbc-xt-msg:empty { display: none; }
.hbc-xt-msg.is-bad { color: var(--hbc-danger-text); }
.hbc-xt-msg.is-good { color: var(--hbc-success-text); }
.hbc-xt-summary { display: grid; gap: 8px; padding: 14px; border-radius: 14px; border: 1px solid var(--hbc-border); background: var(--hbc-surface-2); }
.hbc-xt-summary > div { display: flex; justify-content: space-between; gap: 10px; font-size: .86rem; color: var(--hbc-muted); }
.hbc-xt-summary > div[hidden] { display: none; }
.hbc-xt-summary b { color: var(--hbc-heading); font-weight: 700; }
.hbc-xt-summary b.is-good { color: var(--hbc-success-text); }
.hbc-xt-summary .is-total { padding-top: 8px; border-top: 1px dashed var(--hbc-border); }
.hbc-xt-summary .is-total b { font-size: 1.15rem; font-weight: 850; color: var(--hbc-primary-text); }
.hbc-xt-summary .btn { min-height: 46px; border-radius: 12px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }

/* Identity (shahkar) status — topbar chip and sidebar card */
.hbc-kyc { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 12px; font-size: .84rem; font-weight: 750; white-space: nowrap; position: relative; border: 1px solid transparent; }
.hbc-kyc i { font-size: 1rem; }
a.hbc-kyc.is-ok { background: var(--hbc-success-soft); color: var(--hbc-success-text); }
a.hbc-kyc.is-todo { background: var(--hbc-warning-soft); color: var(--hbc-warning-text); border-color: rgba(247, 144, 9, .35); }
a.hbc-kyc:hover { text-decoration: none; filter: brightness(.97); }
.hbc-kyc-dot { position: absolute; top: -3px; inset-inline-end: -3px; width: 10px; height: 10px; border-radius: 50%; background: var(--hbc-danger); box-shadow: 0 0 0 2px var(--hbc-surface); }
@media (prefers-reduced-motion: no-preference) { .hbc-kyc-dot { animation: hbc-kyc-pulse 1.8s ease-in-out infinite; } }
@keyframes hbc-kyc-pulse { 50% { box-shadow: 0 0 0 2px var(--hbc-surface), 0 0 0 6px rgba(240, 68, 56, .25); } }
@media (max-width: 991.98px) { a.hbc-kyc.is-ok { width: 40px; padding: 0; justify-content: center; } }
@media (max-width: 575.98px) { a.hbc-kyc.is-todo { padding: 0 10px; gap: 6px; font-size: .78rem; } }
.hbc-sb-kyc { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 12px; border-radius: 12px; background: rgba(247, 144, 9, .12); border: 1px solid rgba(247, 144, 9, .35); color: #FEC84B; }
.hbc-sb-kyc:hover { text-decoration: none; color: #FDB022; background: rgba(247, 144, 9, .18); }
.hbc-sb-kyc > i:first-child { font-size: 1.2rem; }
.hbc-sb-kyc span { flex: 1 1 auto; font-size: .76rem; line-height: 1.7; color: rgba(255, 255, 255, .7); }
.hbc-sb-kyc strong { display: block; font-size: .85rem; color: #FEC84B; }
@media (max-width: 575.98px) {
    .hbc-vps-kpi strong { white-space: normal; font-size: .95rem; }
    .hbc-xt-packs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hbc-xt-pack-box { padding: 12px; }
    .hbc-xt-pack-gb b { font-size: 1.25rem; }
}
