/* ==========================================================================
   ixnodes_new — modern 2026 cloud-provider portal
   Brand: Sovereign Cube · Inter + JetBrains Mono · accent #3B82F6
   Architecture: pure custom CSS, no Bootstrap, no resets needed
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */
:root {
    /* Surfaces — deeper than v4 brand kit, more cinematic */
    --bg:           #07090E;
    --bg-2:         #0B0E15;
    --surface:      #11151D;
    --surface-2:    #161B25;
    --surface-3:    #1F2532;
    --surface-glass: rgba(17, 21, 29, 0.72);

    /* Borders */
    --border:       rgba(255,255,255,0.06);
    --border-2:     rgba(255,255,255,0.10);
    --border-3:     rgba(255,255,255,0.16);
    --border-accent: rgba(59,130,246,0.35);

    /* Text */
    --text:         #F2F4F8;
    --text-2:       #C5CAD4;
    --text-3:       #8B92A0;
    --text-4:       #5A616F;

    /* Brand */
    --accent:       #3B82F6;
    --accent-2:     #60A5FA;
    --accent-deep:  #2563EB;
    --accent-soft:  rgba(59,130,246,0.12);
    --accent-soft-2:rgba(59,130,246,0.20);
    --accent-glow:  rgba(59,130,246,0.45);

    /* Status */
    --green:        #10B981;
    --green-soft:   rgba(16,185,129,0.14);
    --amber:        #F59E0B;
    --amber-soft:   rgba(245,158,11,0.14);
    --red:          #EF4444;
    --red-soft:     rgba(239,68,68,0.14);
    --purple:       #A855F7;
    --purple-soft:  rgba(168,85,247,0.14);

    /* Type */
    --font:         'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --mono:         'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

    /* Radius */
    --r-sm:  6px;
    --r:     10px;
    --r-md:  14px;
    --r-lg:  18px;
    --r-xl:  24px;

    /* Shadows */
    --shadow-sm:  0 1px 2px rgba(0,0,0,0.3);
    --shadow:     0 8px 24px rgba(0,0,0,0.32), 0 1px 2px rgba(0,0,0,0.4);
    --shadow-lg:  0 24px 48px rgba(0,0,0,0.44), 0 2px 4px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 0 1px var(--border-accent), 0 12px 32px rgba(59,130,246,0.18);

    /* Layout */
    --nav-h:        64px;
    --side-w:       260px;
    --container:    1200px;
}

/* ==========================================================================
   2. RESET + BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 14.5px;
    line-height: 1.55;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    background-image:
        radial-gradient(ellipse 1100px 600px at 50% -100px, rgba(59,130,246,0.12) 0%, transparent 60%),
        radial-gradient(ellipse 600px 400px at 12% 90%, rgba(168,85,247,0.07) 0%, transparent 60%),
        radial-gradient(ellipse 600px 400px at 88% 70%, rgba(16,185,129,0.05) 0%, transparent 60%);
    background-attachment: fixed;
}

img, svg { max-width: 100%; height: auto; vertical-align: middle; border: 0; display: inline-block; }

a { color: var(--accent); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--accent-2); }

p { margin: 0 0 12px; color: var(--text-2); }
strong, b { font-weight: 600; color: var(--text); }
hr { border: 0; border-top: 1px solid var(--border); margin: 24px 0; }
small { font-size: 12px; color: var(--text-3); }
code, pre, kbd, samp { font-family: var(--mono); font-size: 12.5px; }
::selection { background: var(--accent); color: #fff; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font);
    font-weight: 700;
    color: var(--text);
    margin: 0 0 12px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}
h1 { font-size: 32px; font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: 24px; font-weight: 700; }
h3 { font-size: 18px; font-weight: 700; }
h4 { font-size: 15px; font-weight: 600; }
h5 { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); }

/* Custom scrollbar */
* { scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 5px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--border-3); }

/* Focus rings */
button:focus-visible, a:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ==========================================================================
   3. LAYOUT — wrapper + container
   ========================================================================== */
#wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}
@media (max-width: 760px) { .container { padding: 0 16px; } }

/* Bootstrap-2 grid compatibility (HostBill core uses these) */
.row, .row-fluid { display: flex; flex-wrap: wrap; margin: 0 -10px; }
.row > [class*="span"], .row-fluid > [class*="span"] { padding: 0 10px; box-sizing: border-box; }
[class*="span"] { float: none; min-height: 1px; }
.span1  { flex: 0 0 8.333%;  max-width: 8.333%; }
.span2  { flex: 0 0 16.666%; max-width: 16.666%; }
.span3  { flex: 0 0 25%;     max-width: 25%; }
.span4  { flex: 0 0 33.333%; max-width: 33.333%; }
.span5  { flex: 0 0 41.666%; max-width: 41.666%; }
.span6  { flex: 0 0 50%;     max-width: 50%; }
.span7  { flex: 0 0 58.333%; max-width: 58.333%; }
.span8  { flex: 0 0 66.666%; max-width: 66.666%; }
.span9  { flex: 0 0 75%;     max-width: 75%; }
.span10 { flex: 0 0 83.333%; max-width: 83.333%; }
.span11 { flex: 0 0 91.666%; max-width: 91.666%; }
.span12 { flex: 0 0 100%;    max-width: 100%; }
@media (max-width: 980px) { [class*="span"] { flex-basis: 100%; max-width: 100%; } }

.left, .pull-left { float: left; }
.right, .pull-right { float: right; }
.clear, .clearfix::after { clear: both; content: ''; display: block; }

.flex-container { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.flex-box-1 { flex: 1; min-width: 0; }

/* ==========================================================================
   4. TOP NAV — sticky glass header
   ========================================================================== */
#topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--nav-h);
    background: var(--surface-glass);
    backdrop-filter: saturate(140%) blur(14px);
    -webkit-backdrop-filter: saturate(140%) blur(14px);
    border-bottom: 1px solid var(--border);
}
.topbar-inner {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: -0.01em;
}
.brand .brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
}
.brand:hover { color: var(--text); }
.brand-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; }

.topbar-spacer { flex: 1; }

.topbar-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.topbar-nav > li { position: relative; }
.topbar-nav > li > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    color: var(--text-2);
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--r-sm);
    transition: color .15s ease, background-color .15s ease;
}
.topbar-nav > li > a:hover { color: var(--text); background: var(--surface-2); }
.topbar-nav > li.active > a {
    color: var(--accent-2);
    background: var(--accent-soft);
}
.topbar-nav > li > a .caret {
    display: inline-block;
    width: 0; height: 0;
    border: 4px solid transparent;
    border-top-color: currentColor;
    margin-left: 4px;
    margin-top: 2px;
    opacity: 0.6;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Mobile hamburger */
.menu-toggle {
    display: none;
    width: 40px; height: 40px;
    background: transparent;
    border: 1px solid var(--border-2);
    border-radius: var(--r-sm);
    color: var(--text);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}
.menu-toggle:hover { background: var(--surface-2); }
@media (max-width: 880px) {
    .menu-toggle { display: inline-flex; }
    .topbar-nav {
        display: none;
        position: absolute;
        top: var(--nav-h);
        left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--surface);
        border-bottom: 1px solid var(--border-2);
        padding: 8px;
        max-height: calc(100vh - var(--nav-h));
        overflow-y: auto;
    }
    .topbar-nav.is-open { display: flex; }
    .topbar-nav > li > a { padding: 12px 14px; border-radius: var(--r-sm); }
    .brand-name { max-width: 160px; font-size: 14px; }
}

/* ==========================================================================
   5. BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 16px;
    font-family: var(--font);
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--text);
    background: var(--surface-2);
    border: 1px solid var(--border-2);
    border-radius: var(--r-sm);
    cursor: pointer;
    text-decoration: none;
    transition: all .15s ease;
    white-space: nowrap;
    user-select: none;
}
.btn:hover { background: var(--surface-3); border-color: var(--border-3); color: var(--text); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn.disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

.btn-primary, .btn-info {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.btn-primary:hover, .btn-info:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }

.btn-success, .btn-green {
    background: var(--green); border-color: var(--green); color: #fff;
}
.btn-success:hover { background: #0EA573; border-color: #0EA573; color: #fff; }

.btn-warning {
    background: var(--amber); border-color: var(--amber); color: #111;
}
.btn-warning:hover { background: #D97706; border-color: #D97706; color: #fff; }

.btn-danger {
    background: var(--red); border-color: var(--red); color: #fff;
}
.btn-danger:hover { background: #DC2626; border-color: #DC2626; }

.btn-ghost { background: transparent; border-color: var(--border-2); color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }

.btn-large, .btn-lg { padding: 12px 22px; font-size: 14px; border-radius: var(--r); }
.btn-small, .btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-mini, .btn-xs { padding: 4px 10px; font-size: 11px; }
.btn-block { display: flex; width: 100%; }

.btn-group { display: inline-flex; vertical-align: middle; }
.btn-group > .btn { border-radius: 0; margin-left: -1px; }
.btn-group > .btn:first-child { border-radius: var(--r-sm) 0 0 var(--r-sm); margin-left: 0; }
.btn-group > .btn:last-child { border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.btn-group > .btn:only-child { border-radius: var(--r-sm); }

.caret {
    display: inline-block;
    width: 0; height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    opacity: 0.6;
    margin-left: 4px;
    vertical-align: middle;
}

/* ==========================================================================
   6. DROPDOWNS
   ========================================================================== */
.dropdown { position: relative; display: inline-block; }
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    min-width: 200px;
    margin: 6px 0 0;
    padding: 6px;
    background: var(--surface);
    border: 1px solid var(--border-2);
    border-radius: var(--r);
    box-shadow: var(--shadow);
    display: none;
    list-style: none;
}
.dropdown-menu.pull-right, .dropdown-menu.dropdown-right { left: auto; right: 0; }
.dropdown.open > .dropdown-menu,
.btn-group.open > .dropdown-menu,
li.open > .dropdown-menu,
.dropdown.open .dropdown-menu { display: block; }

.dropdown-menu > li > a,
.dropdown-menu li > a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    color: var(--text-2);
    font-size: 13px;
    font-weight: 500;
    border-radius: var(--r-sm);
    text-decoration: none;
    transition: background-color .12s, color .12s;
    white-space: nowrap;
}
.dropdown-menu > li > a:hover { background: var(--surface-2); color: var(--text); }
.dropdown-menu li.active > a,
.dropdown-menu > li.active > a:hover { background: var(--accent-soft); color: var(--accent-2); }
.dropdown-menu > .divider {
    height: 1px;
    background: var(--border);
    margin: 6px 4px;
}
.dropdown-menu .muted { color: var(--text-3); }

/* ==========================================================================
   7. FORMS
   ========================================================================== */
input[type="text"], input[type="email"], input[type="password"], input[type="number"],
input[type="search"], input[type="tel"], input[type="url"], input[type="date"],
input.styled, textarea, select, .form-control {
    display: block;
    width: 100%;
    min-height: 42px;
    padding: 11px 14px;
    font-family: var(--font);
    font-size: 14px;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border-2);
    border-radius: var(--r-sm);
    transition: border-color .15s, box-shadow .15s;
    -webkit-appearance: none;
    appearance: none;
}
input:hover, textarea:hover, select:hover { border-color: var(--border-3); }
input:focus, textarea:focus, select:focus, .form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft-2);
    outline: 0;
}
input::placeholder, textarea::placeholder { color: var(--text-4); }
textarea { resize: vertical; min-height: 96px; }

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%238B92A0' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    cursor: pointer;
}

input[type="checkbox"], input[type="radio"] {
    width: auto; min-height: auto;
    accent-color: var(--accent);
    margin-right: 6px;
}

label, .styled[for] {
    display: inline-block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-2);
}

.field, .control-group {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.field-row { display: flex; gap: 12px; flex-wrap: wrap; }
.field-row > .field { flex: 1; min-width: 200px; }

.form-actions {
    padding: 18px 0 0;
    margin: 22px 0 0;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.form-actions .left { margin-right: auto; float: none; }
.form-actions .list_item { font-size: 13px; }

/* HostBill-compat form classes */
.control-label { font-weight: 500; color: var(--text-2); font-size: 13px; }
.form-horizontal .control-label { padding-top: 10px; }
.form-horizontal .controls { margin-left: 180px; }
@media (max-width: 760px) { .form-horizontal .controls { margin-left: 0; } }

/* ==========================================================================
   8. CARDS / SURFACES
   ========================================================================== */
.card, .bordered-section, .article {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 22px 24px;
    margin: 0 0 18px;
    position: relative;
}
.card-elevated, .card-glow {
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    border-radius: var(--r-md);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 16px 22px;
    background: linear-gradient(180deg, rgba(59,130,246,0.025), transparent);
    border-bottom: 1px solid var(--border);
    margin: -22px -24px 20px;
    border-radius: var(--r-md) var(--r-md) 0 0;
}
.card-header h2, .card-header h3, .card-header strong {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
}
.card-header .card-title-meta {
    color: var(--text-3);
    font-size: 12px;
    font-family: var(--mono);
}
.card-body { color: var(--text-2); }
.card-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 22px;
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    margin: 20px -24px -22px;
    border-radius: 0 0 var(--r-md) var(--r-md);
    flex-wrap: wrap;
}

/* HostBill-compat .wbox */
.wbox {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    margin-bottom: 18px;
    overflow: hidden;
}
.wbox_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 22px;
    background: linear-gradient(180deg, rgba(59,130,246,0.04), transparent);
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    flex-wrap: wrap;
}
.wbox_header h1, .wbox_header h2, .wbox_header h3, .wbox_header strong {
    margin: 0; font-size: 15px;
}
.wbox_content { padding: 22px; }
.wbox_content > h3:first-child, .wbox_content > h2:first-child { margin-top: 0; }

/* ==========================================================================
   9. ALERTS / BADGES / LABELS
   ========================================================================== */
.alert {
    padding: 12px 16px;
    margin: 0 0 16px;
    border: 1px solid var(--border-2);
    border-left: 3px solid var(--accent);
    border-radius: var(--r-sm);
    background: var(--accent-soft);
    color: var(--text);
    font-size: 13.5px;
    line-height: 1.5;
}
.alert-info    { background: var(--accent-soft); border-left-color: var(--accent); }
.alert-success { background: var(--green-soft);  border-left-color: var(--green); }
.alert-warning,
.alert-block   { background: var(--amber-soft);  border-left-color: var(--amber); }
.alert-error,
.alert-danger  { background: var(--red-soft);    border-left-color: var(--red); }
.alert .close {
    float: right;
    color: var(--text-3);
    background: transparent;
    border: 0;
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
}

.badge, .label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.4;
    border-radius: 20px;
    background: var(--surface-2);
    color: var(--text-2);
}
.badge::before, .label::before { content: none; }

.badge-success, .label-success, .label-Active, .label-Paid, .label-Completed {
    background: var(--green-soft); color: var(--green);
}
.badge-info, .label-info {
    background: var(--accent-soft); color: var(--accent-2);
}
.badge-warning, .label-warning, .label-Pending, .label-Unpaid {
    background: var(--amber-soft); color: var(--amber);
}
.badge-danger, .label-danger, .label-important, .badge-important,
.label-Suspended, .label-Terminated, .label-Cancelled, .label-Overdue {
    background: var(--red-soft); color: var(--red);
}

/* Status dots */
.status-dot {
    display: inline-block;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--text-3);
    margin-right: 8px;
    vertical-align: 1px;
}
.status-dot.active, .status-dot.live, .status-dot.ok, .status-dot.paid {
    background: var(--green); box-shadow: 0 0 8px var(--green);
}
.status-dot.pending, .status-dot.unpaid { background: var(--amber); }
.status-dot.suspended, .status-dot.overdue, .status-dot.terminated, .status-dot.cancelled {
    background: var(--red);
}

/* ==========================================================================
   10. TABLES
   ========================================================================== */
table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; }
.table {
    background: transparent;
    font-size: 13.5px;
    color: var(--text);
}
.table thead th {
    background: var(--surface-2);
    color: var(--text-3);
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}
.table tbody td, .table tbody th {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text-2);
    background: transparent;
    vertical-align: middle;
}
.table tbody tr:hover td,
.table tbody tr:hover th { background: rgba(59,130,246,0.04); }
.table tbody tr:last-child td,
.table tbody tr:last-child th { border-bottom: 0; }

.table-striped tbody tr:nth-child(odd) td { background: rgba(255,255,255,0.018); }
.table-striped tbody tr:nth-child(odd):hover td { background: rgba(59,130,246,0.05); }
.table-bordered { border: 1px solid var(--border); border-radius: var(--r-sm); overflow: hidden; }

.table-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    overflow: hidden;
    margin: 0 0 18px;
}
.table-card .table { margin: 0; }
.table-card .table thead th:first-child { border-top-left-radius: var(--r-md); }
.table-card .table thead th:last-child { border-top-right-radius: var(--r-md); }

/* ==========================================================================
   11. NAVIGATION (sub-nav, pills, tabs)
   ========================================================================== */
.nav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }

.nav-pills > li > a, ul.nav.nav-pills > li > a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: var(--r-sm);
    color: var(--text-2);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color .12s, color .12s;
}
.nav-pills > li > a:hover { background: var(--surface-2); color: var(--text); }
.nav-pills > li.active > a,
.nav-pills > li > a.active { background: var(--accent-soft); color: var(--accent-2); }

#submenu, .submenu-wrap {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 6px;
    margin-bottom: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    overflow-x: auto;
}
#submenu:empty, .submenu-wrap:empty { display: none; }
#errors:empty, #infos:empty { display: none; }
#errors:not(:empty), #infos:not(:empty) { margin: 0 0 14px; }

.breadcrumb {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    margin: 0 0 14px;
    padding: 0;
    background: transparent;
    list-style: none;
    font-size: 12.5px;
    font-family: var(--mono);
    color: var(--text-3);
}
.breadcrumb > li { color: var(--text-3); }
.breadcrumb > li a { color: var(--text-2); }
.breadcrumb > li a:hover { color: var(--text); }
.breadcrumb > li .divider { color: var(--text-4); padding: 0 6px; }
.breadcrumb > li.active { color: var(--text); }

/* ==========================================================================
   12. PAGE LAYOUT — clientarea has sidebar
   ========================================================================== */
.page-layout {
    display: grid;
    grid-template-columns: var(--side-w) 1fr;
    gap: 28px;
    align-items: start;
    margin: 28px 0;
}
@media (max-width: 980px) {
    .page-layout { grid-template-columns: 1fr; gap: 18px; }
}

.page-sidebar {
    position: sticky;
    top: calc(var(--nav-h) + 16px);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 14px;
}
.page-sidebar h4, .page-sidebar .nav-header {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-3);
    padding: 10px 12px 6px;
    margin: 0;
}
.page-sidebar ul { list-style: none; margin: 0 0 6px; padding: 0; }
.page-sidebar li > a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    margin: 2px 0;
    color: var(--text-2);
    font-size: 13px;
    font-weight: 500;
    border-radius: var(--r-sm);
    text-decoration: none;
    transition: background-color .12s, color .12s;
}
.page-sidebar li > a:hover { background: var(--surface-2); color: var(--text); }
.page-sidebar li.active > a,
.page-sidebar li > a.active {
    background: var(--accent-soft);
    color: var(--accent-2);
    box-shadow: inset 2px 0 0 var(--accent);
}
.page-sidebar li > a .ic {
    width: 16px; height: 16px;
    color: currentColor;
    flex-shrink: 0;
}

.page-main { min-width: 0; }

/* HostBill-compat for clientarea/leftnavigation */
.box-feature-small {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 14px;
}
.box-feature-small h4 {
    font-size: 10px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--text-3); padding: 10px 12px 4px; margin: 0;
}
.box-feature-small ul { list-style: none; margin: 0 0 6px; padding: 0; }
.box-feature-small li a {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; margin: 2px 0;
    color: var(--text-2); font-size: 13px; font-weight: 500;
    border-radius: var(--r-sm); text-decoration: none;
    transition: background-color .12s, color .12s;
}
.box-feature-small li a:hover { background: var(--surface-2); color: var(--text); }
.box-feature-small li.active > a, .box-feature-small li a.active {
    background: var(--accent-soft); color: var(--accent-2);
}
.flex-container .span2.box-feature-small,
.flex-container .span12.bordered-section { padding: 0; }

/* ==========================================================================
   13. STAT TILES (dashboard)
   ========================================================================== */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}
.stat-tile {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 18px 20px;
    position: relative;
    overflow: hidden;
}
.stat-tile::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 120px; height: 120px;
    background: radial-gradient(circle at top right, var(--accent-soft) 0%, transparent 60%);
    pointer-events: none;
}
.stat-tile .stat-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-3);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.stat-tile .stat-label .ic {
    width: 14px; height: 14px; color: var(--accent);
}
.stat-tile .stat-value {
    font-family: var(--mono);
    font-size: 28px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.02em;
    line-height: 1.1;
}
.stat-tile .stat-value .stat-currency, .stat-tile .stat-value .currency {
    color: var(--text-3); font-size: 18px; font-weight: 500;
}
.stat-tile .stat-meta {
    font-size: 12px;
    color: var(--text-3);
    margin-top: 4px;
}
.stat-tile .stat-meta.up { color: var(--green); }
.stat-tile .stat-meta.down { color: var(--red); }

/* ==========================================================================
   14. PORTAL HOME (root.tpl) — hero + tile grid
   ========================================================================== */
.portal-hero {
    text-align: center;
    padding: 60px 24px 40px;
    margin-bottom: 32px;
    position: relative;
}
.portal-hero::before {
    content: '';
    position: absolute;
    top: -40px; left: 50%;
    width: 720px; max-width: 95%; height: 460px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse, var(--accent-soft) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}
.portal-hero > * { position: relative; z-index: 1; }
.portal-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    background: var(--accent-soft);
    color: var(--accent-2);
    border-radius: 20px;
    font-family: var(--mono);
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}
.portal-hero h1 {
    font-size: clamp(32px, 4.5vw, 48px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin: 0 0 14px;
}
.portal-hero h1 .accent { color: var(--accent); }
.portal-hero p {
    color: var(--text-3);
    font-size: 16px;
    max-width: 580px;
    margin: 0 auto 26px;
    line-height: 1.6;
}
.portal-hero-actions { display: inline-flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

.portal-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin: 0 0 36px;
}
.portal-tile {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 26px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    color: var(--text);
    text-decoration: none;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
    position: relative;
    overflow: hidden;
}
.portal-tile::after {
    content: '';
    position: absolute;
    top: -80px; right: -40px;
    width: 240px; height: 240px;
    background: radial-gradient(circle, var(--accent-soft) 0%, transparent 60%);
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none;
}
.portal-tile:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
    color: var(--text);
}
.portal-tile:hover::after { opacity: 1; }
.portal-tile > * { position: relative; z-index: 1; }

.portal-tile-icon {
    width: 48px; height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-soft) 0%, var(--green-soft) 100%);
    border: 1px solid var(--border);
    color: var(--accent);
    border-radius: var(--r);
}
.portal-tile h2 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}
.portal-tile p {
    color: var(--text-3);
    font-size: 13.5px;
    margin: 0;
    line-height: 1.55;
    flex: 1;
}
.portal-tile-cta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--accent-2);
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 500;
    margin-top: 4px;
}

/* ==========================================================================
   15. AUTH FORMS (login + signup)
   ========================================================================== */
.auth-page {
    max-width: 460px;
    margin: 60px auto;
    position: relative;
}
.auth-page::before {
    content: '';
    position: absolute;
    top: -80px; left: 50%;
    width: 600px; max-width: 95vw; height: 380px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse, var(--accent-soft) 0%, transparent 65%);
    pointer-events: none;
    z-index: -1;
}
.auth-hero {
    text-align: center;
    margin-bottom: 22px;
}
.auth-hero .auth-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px; height: 64px;
    margin-bottom: 14px;
    background: var(--surface);
    border: 1px solid var(--border-2);
    border-radius: var(--r-md);
}
.auth-hero h1 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 6px;
}
.auth-hero p { color: var(--text-3); font-size: 14px; margin: 0; }

.auth-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 26px;
    box-shadow: var(--shadow);
}
.auth-card .form-actions {
    border-top: 1px solid var(--border);
    margin-top: 18px;
    padding-top: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}
.auth-card .form-actions .btn { width: 100%; justify-content: center; }
.auth-meta {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-3);
}
.auth-meta a { font-weight: 500; }

/* Required asterisk */
.required, .req-star { color: var(--accent); margin-left: 2px; font-weight: 700; }

/* ==========================================================================
   16. CART / ORDER FLOW — modern checkout
   ========================================================================== */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 28px;
    align-items: start;
}
@media (max-width: 980px) { .cart-layout { grid-template-columns: 1fr; } }

.cart-main { min-width: 0; }
.cart-aside {
    position: sticky;
    top: calc(var(--nav-h) + 16px);
}

.cart-summary {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 22px;
}
.cart-summary-title {
    display: flex; align-items: center; justify-content: space-between;
    font-size: 12px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--text-3);
    margin-bottom: 16px; padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.cart-line {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 0; gap: 8px;
    border-bottom: 1px solid var(--border);
    font-size: 13.5px; color: var(--text-2);
}
.cart-line:last-child { border-bottom: 0; }
.cart-line .label { background: transparent; color: var(--text-3); padding: 0; font-family: inherit; font-size: 13.5px; font-weight: 400; }
.cart-line strong { font-family: var(--mono); }
.cart-total {
    display: flex; justify-content: space-between; align-items: baseline;
    padding: 16px 0 4px;
    margin-top: 8px;
    border-top: 2px solid var(--accent-soft);
    font-family: var(--mono);
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}
.cart-total .cart-total-amount { font-size: 22px; }

/* Plan cards (used by ix-enhance.js to transform HostBill tables) */
.ix-plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin: 24px 0 32px;
}
.ix-plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 26px 22px 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    transition: transform .25s, border-color .25s, box-shadow .25s;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.ix-plan-card::before {
    content: '';
    position: absolute;
    top: 0; left: 24px; right: 24px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-accent), transparent);
}
.ix-plan-card::after {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 200px; height: 200px;
    background: radial-gradient(circle, var(--accent-soft) 0%, transparent 60%);
    opacity: 0;
    transition: opacity .3s;
    pointer-events: none;
}
.ix-plan-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}
.ix-plan-card:hover::after { opacity: 1; }
.ix-plan-card > * { position: relative; z-index: 1; }
.ix-plan-card.ix-popular {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent), var(--shadow);
}
.ix-popular-badge {
    position: absolute;
    top: 14px; right: 14px;
    padding: 4px 10px;
    background: var(--accent);
    color: #fff;
    font-family: var(--mono);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 10px;
    z-index: 3;
    box-shadow: 0 4px 14px var(--accent-glow);
}

.ix-plan-header {
    display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px;
}
.ix-plan-illustration {
    flex-shrink: 0;
    width: 56px; height: 56px;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--r);
    overflow: hidden;
}
.ix-plan-heading { flex: 1; min-width: 0; padding-top: 4px; }
.ix-plan-name { font-size: 18px; font-weight: 700; margin: 0; letter-spacing: -0.01em; }
.ix-plan-tagline { font-size: 12px; color: var(--text-3); margin: 4px 0 0; }

.ix-plan-price {
    display: flex; align-items: baseline; gap: 2px;
    font-family: var(--mono); color: var(--text);
    margin-bottom: 4px; line-height: 1;
}
.ix-plan-price .ix-price-currency { font-size: 18px; color: var(--text-3); align-self: flex-start; margin-top: 6px; }
.ix-plan-price .ix-price-amount { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.ix-plan-price .ix-price-period { font-size: 13px; color: var(--text-3); margin: 0 0 4px 4px; align-self: flex-end; font-family: var(--font); text-transform: lowercase; }

.ix-plan-setup { font-family: var(--mono); font-size: 11px; color: var(--text-3); margin-bottom: 14px; }

.ix-plan-specs {
    list-style: none;
    margin: 8px 0 18px;
    padding: 16px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    display: flex; flex-direction: column; gap: 10px;
}
.ix-plan-specs li {
    display: flex; align-items: center; gap: 10px;
    font-size: 13px; color: var(--text-2);
}
.ix-spec-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px;
    background: var(--accent-soft); color: var(--accent-2);
    border-radius: 6px; flex-shrink: 0;
}

.ix-plan-config {
    margin-top: auto;
    display: flex; flex-direction: column; gap: 10px;
}
.ix-plan-cycle-label {
    font-size: 10px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--text-3);
    margin-bottom: 4px;
}
.ix-plan-cycle-select { width: 100%; }
.ix-plan-btn, .ix-plan-cta .btn {
    width: 100%;
    padding: 12px 18px;
    background: var(--accent);
    color: #fff;
    border: 0;
    border-radius: var(--r);
    font-size: 14px; font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: flex; align-items: center; justify-content: center; gap: 6px;
    transition: background-color .15s, transform .15s;
}
.ix-plan-btn:hover, .ix-plan-cta .btn:hover {
    background: var(--accent-deep);
    transform: translateY(-1px);
    color: #fff;
}

.ix-original-hidden { display: none !important; }

/* Payment methods grid */
.payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin: 12px 0;
}
.payment-method {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 16px;
    background: var(--surface);
    border: 1px solid var(--border-2);
    border-radius: var(--r);
    cursor: pointer;
    transition: all .15s;
    margin: 0;
    font-size: 13px; color: var(--text-2);
}
.payment-method:hover { border-color: var(--border-3); color: var(--text); }
.payment-method:has(input:checked) {
    border-color: var(--accent); background: var(--accent-soft); color: var(--text);
}
.payment-method input[type="radio"] { margin: 0; }

/* Customer-method tabs (new vs existing) */
.wbox_menu, .cust-method-tabs {
    display: flex; gap: 4px;
    list-style: none; margin: 10px 0 0; padding: 0; flex-wrap: wrap;
}
.wbox_menu > li, .cust-method-tabs > li {
    flex: 1; min-width: 140px;
    border: 1px solid var(--border-2);
    border-radius: var(--r-sm);
    background: var(--surface);
    transition: all .15s;
}
.wbox_menu > li label, .cust-method-tabs > li label {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 12px; cursor: pointer;
    font-size: 13px; font-weight: 500;
    color: var(--text-2); margin: 0; width: 100%;
}
.wbox_menu > li.bgon2, .cust-method-tabs > li.bgon2 {
    background: var(--accent-soft); border-color: var(--accent);
}
.wbox_menu > li.bgon2 label { color: var(--accent-2); }

/* TOS block in cart */
.cart-tos { margin: 14px 0; }
.cart-tos .control-group {
    padding: 10px 12px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    margin-bottom: 6px;
}
.cart-tos label { cursor: pointer; font-weight: 400; color: var(--text-2); display: flex; align-items: center; gap: 8px; margin: 0; }

/* ==========================================================================
   17. FOOTER
   ========================================================================== */
footer {
    margin-top: auto;
    padding: 28px 0 24px;
    border-top: 1px solid var(--border);
    color: var(--text-3);
    font-size: 12.5px;
    font-family: var(--mono);
}
footer .container {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 16px;
}
footer a { color: var(--text-2); }
footer a:hover { color: var(--text); }
footer .left, footer .right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; float: none; }

/* ==========================================================================
   18. ICONS — bootstrap-2 glyphicon names re-implemented as SVG masks
   So legacy <i class="icon-X"> in HostBill markup just works.
   ========================================================================== */
[class^="icon-"], [class*=" icon-"], .iconfont-bell {
    display: inline-block;
    width: 14px; height: 14px;
    vertical-align: -2px;
    background-color: currentColor;
    -webkit-mask-repeat: no-repeat;
            mask-repeat: no-repeat;
    -webkit-mask-position: center;
            mask-position: center;
    -webkit-mask-size: contain;
            mask-size: contain;
}
.icon-white { color: #fff; }

.icon-user           { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><circle cx='8' cy='5' r='3'/><path d='M2.5 14c0-3 2.5-5 5.5-5s5.5 2 5.5 5'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><circle cx='8' cy='5' r='3'/><path d='M2.5 14c0-3 2.5-5 5.5-5s5.5 2 5.5 5'/></svg>"); }
.icon-lock           { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='7' width='10' height='7' rx='1.5'/><path d='M5 7V5a3 3 0 1 1 6 0v2'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='7' width='10' height='7' rx='1.5'/><path d='M5 7V5a3 3 0 1 1 6 0v2'/></svg>"); }
.icon-ok, .icon-check { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 8.5l3 3 7-7'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 8.5l3 3 7-7'/></svg>"); }
.icon-ok-sign        { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><circle cx='8' cy='8' r='6'/><path d='M5 8l2 2 4-4'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><circle cx='8' cy='8' r='6'/><path d='M5 8l2 2 4-4'/></svg>"); }
.icon-remove, .icon-close { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'><path d='M4 4l8 8M12 4l-8 8'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'><path d='M4 4l8 8M12 4l-8 8'/></svg>"); }
.icon-home           { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linejoin='round'><path d='M2 7l6-5 6 5v7a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V7z'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linejoin='round'><path d='M2 7l6-5 6 5v7a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V7z'/></svg>"); }
.icon-envelope, .icon-mail { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linejoin='round'><rect x='2' y='3' width='12' height='10' rx='1.5'/><path d='M2.5 4l5.5 5 5.5-5'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linejoin='round'><rect x='2' y='3' width='12' height='10' rx='1.5'/><path d='M2.5 4l5.5 5 5.5-5'/></svg>"); }
.icon-chevron-left   { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M10 3L5 8l5 5'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M10 3L5 8l5 5'/></svg>"); }
.icon-chevron-right  { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 3l5 5-5 5'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 3l5 5-5 5'/></svg>"); }
.icon-chevron-up     { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 10l5-5 5 5'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 10l5-5 5 5'/></svg>"); }
.icon-chevron-down   { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 6l5 5 5-5'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 6l5 5 5-5'/></svg>"); }
.icon-time, .icon-clock { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><circle cx='8' cy='8' r='6'/><path d='M8 4.5V8l2.5 2'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><circle cx='8' cy='8' r='6'/><path d='M8 4.5V8l2.5 2'/></svg>"); }
.icon-bell, .iconfont-bell { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M3 12h10l-1.5-2V7a3.5 3.5 0 0 0-7 0v3L3 12z'/><path d='M6.5 13a1.5 1.5 0 0 0 3 0'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M3 12h10l-1.5-2V7a3.5 3.5 0 0 0-7 0v3L3 12z'/><path d='M6.5 13a1.5 1.5 0 0 0 3 0'/></svg>"); }
.icon-shopping-cart, .icon-cart { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M1.5 2h2l1.5 9h8l1.5-6H4'/><circle cx='6' cy='13.5' r='1'/><circle cx='12' cy='13.5' r='1'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M1.5 2h2l1.5 9h8l1.5-6H4'/><circle cx='6' cy='13.5' r='1'/><circle cx='12' cy='13.5' r='1'/></svg>"); }
.icon-search         { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round'><circle cx='7' cy='7' r='5'/><path d='M11 11l3.5 3.5'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round'><circle cx='7' cy='7' r='5'/><path d='M11 11l3.5 3.5'/></svg>"); }
.icon-cog, .icon-settings { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5'><circle cx='8' cy='8' r='2'/><circle cx='8' cy='8' r='5'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5'><circle cx='8' cy='8' r='2'/><circle cx='8' cy='8' r='5'/></svg>"); }
.icon-plus, .icon-plus-sign { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'><path d='M8 3v10M3 8h10'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'><path d='M8 3v10M3 8h10'/></svg>"); }
.icon-minus          { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'><path d='M3 8h10'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'><path d='M3 8h10'/></svg>"); }
.icon-trash          { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M2 4h12M6 4V2.5a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1V4M4 4v9a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V4'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M2 4h12M6 4V2.5a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1V4M4 4v9a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V4'/></svg>"); }
.icon-edit, .icon-pencil { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M12 2l2 2-8 8-3 1 1-3 8-8z'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M12 2l2 2-8 8-3 1 1-3 8-8z'/></svg>"); }
.icon-download       { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M8 2v8M4 7l4 4 4-4M2 13h12'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M8 2v8M4 7l4 4 4-4M2 13h12'/></svg>"); }
.icon-info-sign, .icon-info { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><circle cx='8' cy='8' r='6'/><path d='M8 7v4M8 4.5v.5'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><circle cx='8' cy='8' r='6'/><path d='M8 7v4M8 4.5v.5'/></svg>"); }
.icon-warning-sign   { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M8 2l6.5 11h-13z'/><path d='M8 6v4M8 11.5v.5'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M8 2l6.5 11h-13z'/><path d='M8 6v4M8 11.5v.5'/></svg>"); }
.icon-globe          { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><circle cx='8' cy='8' r='6'/><path d='M2 8h12M8 2a9 9 0 0 1 0 12M8 2a9 9 0 0 0 0 12'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><circle cx='8' cy='8' r='6'/><path d='M2 8h12M8 2a9 9 0 0 1 0 12M8 2a9 9 0 0 0 0 12'/></svg>"); }
.icon-file, .icon-file-alt { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linejoin='round'><path d='M4 2h6l3 3v9H4V2z'/><path d='M10 2v3h3'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linejoin='round'><path d='M4 2h6l3 3v9H4V2z'/><path d='M10 2v3h3'/></svg>"); }
.icon-tags, .icon-tag { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M2 2v5.5l7 6.5 6.5-6.5L9 1H2z'/><circle cx='5' cy='5' r='1'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M2 2v5.5l7 6.5 6.5-6.5L9 1H2z'/><circle cx='5' cy='5' r='1'/></svg>"); }
.icon-book           { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M3 2.5a1.5 1.5 0 0 1 1.5-1.5H13v12H4.5a1.5 1.5 0 0 0-1.5 1.5V2.5z'/><path d='M3 13.5A1.5 1.5 0 0 1 4.5 12H13'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M3 2.5a1.5 1.5 0 0 1 1.5-1.5H13v12H4.5a1.5 1.5 0 0 0-1.5 1.5V2.5z'/><path d='M3 13.5A1.5 1.5 0 0 1 4.5 12H13'/></svg>"); }
.icon-flag           { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M3 14V2M3 3h9l-2 3 2 3H3'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M3 14V2M3 3h9l-2 3 2 3H3'/></svg>"); }
.icon-card, .icon-credit-card { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linejoin='round'><rect x='1.5' y='3' width='13' height='10' rx='1.5'/><path d='M1.5 6.5h13'/><path d='M4 10.5h3'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linejoin='round'><rect x='1.5' y='3' width='13' height='10' rx='1.5'/><path d='M1.5 6.5h13'/><path d='M4 10.5h3'/></svg>"); }
.icon-refresh        { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M14 3v4h-4'/><path d='M2 13v-4h4'/><path d='M13 7a5 5 0 0 0-9-1.5M3 9a5 5 0 0 0 9 1.5'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M14 3v4h-4'/><path d='M2 13v-4h4'/><path d='M13 7a5 5 0 0 0-9-1.5M3 9a5 5 0 0 0 9 1.5'/></svg>"); }
.icon-folder         { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linejoin='round'><path d='M1.5 4h4l1.5 1.5h7.5V13a1 1 0 0 1-1 1H2.5a1 1 0 0 1-1-1V4z'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linejoin='round'><path d='M1.5 4h4l1.5 1.5h7.5V13a1 1 0 0 1-1 1H2.5a1 1 0 0 1-1-1V4z'/></svg>"); }
.icon-add-user       { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><circle cx='6' cy='5' r='3'/><path d='M1 14c0-3 2.5-5 5-5s5 2 5 5'/><path d='M12 4v4M10 6h4'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><circle cx='6' cy='5' r='3'/><path d='M1 14c0-3 2.5-5 5-5s5 2 5 5'/><path d='M12 4v4M10 6h4'/></svg>"); }
.icon-cloud-upload   { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M4 11h-.5A2.5 2.5 0 0 1 3.5 6a4 4 0 0 1 7.9-.5A3 3 0 0 1 13 11h-1'/><path d='M8 8v6M5.5 10.5L8 8l2.5 2.5'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M4 11h-.5A2.5 2.5 0 0 1 3.5 6a4 4 0 0 1 7.9-.5A3 3 0 0 1 13 11h-1'/><path d='M8 8v6M5.5 10.5L8 8l2.5 2.5'/></svg>"); }

/* ==========================================================================
   19. UTILITIES
   ========================================================================== */
.muted, .text-muted { color: var(--text-3) !important; }
.text-success { color: var(--green) !important; }
.text-danger, .text-error { color: var(--red) !important; }
.text-warning { color: var(--amber) !important; }
.text-info, .text-primary { color: var(--accent-2) !important; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-overflow { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-inline-block { display: inline-block; }
.d-none, .hidden, .hide, [hidden] { display: none !important; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }

/* hide HostBill default decorative iconfont classes (we use SVG instead) */
.iconfont-cloud, .iconfont-price-tag, .iconfont-bag, .iconfont-question-round,
.iconfont-gear, .iconfont-card, .iconfont-users, .iconfont-size5,
.iconfont-plus, .iconfont-plus-round { display: none !important; }

/* ==========================================================================
   20. PRINT
   ========================================================================== */
@media print {
    body { background: #fff; color: #000; }
    #topbar, footer, .no-print { display: none; }
    .card, .wbox { border: 1px solid #ddd; box-shadow: none; }
}
