/* ============================================================
   OVERRIDE.CSS — Aivora theme bridge for HYIP engine content
   Loaded AFTER aivora.css. Styles engine content wrappers
   that the original main.css used to handle.
   ============================================================ */

/* ---- FONT FIX: SportingGrotesque has NO Cyrillic glyphs.
   Override --font-heading to use DM Sans (which supports Cyrillic)
   as primary, SportingGrotesque as secondary fallback for Latin. ---- */
:root {
    --font-heading: 'DM Sans', 'SportingGrotesque', sans-serif;
}

/* ---- Header area: fill gaps in header-style--one (theme only defines
   menu/header-btn, NOT .header-area/.xb-header/.header__wrap for style-one) ---- */
.header-style--one .xb-header {
    padding: 10px 0;
}
.header-style--one .header__wrap {
    align-items: center;
    min-height: 70px;
}
.header-style--one .xb-header-logo img {
    max-height: 40px;
}
/* When JS clones the sticky header and adds .xb-header-fixed, it should be opaque */
.header-style--one .xb-header-area-sticky.xb-header-fixed {
    background: rgba(0, 2, 15, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    padding: 10px 0;
}

/* ---- MOBILE BURGER MENU FIX ----
   Theme hides .header-btn on <=1199px, but our burger button lives
   INSIDE .header-btn, so it gets hidden too. Override to keep burger visible. ---- */
@media (max-width: 1199px) {
    .header-style--one .header-btn {
        display: flex !important;
    }
    /* Hide the desktop action buttons (Register/Login) on mobile,
       but keep the burger toggle visible */
    .header-style--one .header-btn .d-none.d-lg-flex {
        display: none !important;
    }
    .header-style--one .header-bar-mobile {
        display: flex !important;
    }
}
/* Burger button itself: make it look good */
.header-style--one .xb-nav-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    width: 44px;
    border-radius: 8px;
    font-size: 20px;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
}
.header-style--one .xb-nav-mobile:hover {
    background: rgba(0, 255, 151, 0.15);
    border-color: #00ff97;
    color: #00ff97;
}
/* The header__wrap needs to show burger on the right edge on mobile */
@media (max-width: 991px) {
    .header-style--one .main-menu__wrap {
        display: none !important;
    }
}

/* ---- Content area: the engine renders into ._content ---- */
._content {
    padding: 0px 0 20px;
    margin: 2px;
    color: #d4d4d8;
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    line-height: 1.75;
}

._content > *:first-child { margin-top: 0; }
._content > *:last-child  { margin-bottom: 0; }

/* ---- Headings ---- */
._content h1 {
    font-family: 'SportingGrotesque', 'DM Sans', sans-serif;
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
    margin: 0 0 24px;
    letter-spacing: -0.02em;
}
._content h2 {
    font-family: 'SportingGrotesque', 'DM Sans', sans-serif;
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 700;
    line-height: 1.3;
    color: #ffffff;
    margin: 32px 0 16px;
}
._content h3 {
    font-family: 'DM Sans', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin: 24px 0 12px;
}
._content h4, ._content h5, ._content h6 {
    color: #ffffff;
    font-weight: 600;
    margin: 20px 0 10px;
}

/* ---- Paragraphs and text ---- */
._content p {
    margin: 0 0 16px;
    color: #b2b3b7;
    line-height: 1.8;
}

/* ---- Links ---- */
._content a {
    color: #00ff97;
    text-decoration: none;
    transition: color 0.2s;
}
._content a:hover {
    color: #00cc7a;
    text-decoration: underline;
}

/* ---- Lists ---- */
._content ul, ._content ol {
    margin: 0 0 20px;
    padding-left: 24px;
    color: #b2b3b7;
}
._content li { margin-bottom: 8px; line-height: 1.7; }

/* ---- Tables ---- */
._content table,
table.table-dark,
table.table-bordered,
table.table-hover,
table.formatTable,
table.FormatTable {
    width: 100%;
    margin: 20px 0;
    border-collapse: collapse;
    color: #d4d4d8;
    font-size: 14px;
}
._content table th,
._content table td,
table.table-dark th,
table.table-dark td,
table.formatTable th,
table.formatTable td,
table.FormatTable th,
table.FormatTable td {
    padding: 12px 16px;
    border: 1px solid rgba(255,255,255,0.1);
    text-align: left;
}
._content table th,
table.table-dark th,
table.formatTable th,
table.FormatTable th {
    background: rgba(0, 255, 151, 0.08);
    color: #ffffff;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
._content table tr:hover td,
table.table-hover tbody tr:hover td,
table.formatTable tr:hover td,
table.FormatTable tr:hover td {
    background: rgba(0, 255, 151, 0.04);
}
/* formatTable sometimes used for layout (captcha row etc) - no hover there */
table.formatTable td img.captcha {
    border-radius: 6px;
}

/* ---- Forms ---- */
._content label,
.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 6px;
}
._content input[type="text"],
._content input[type="password"],
._content input[type="email"],
._content input[type="tel"],
._content input[type="number"],
._content input[type="search"],
._content input[type="url"],
._content input[type="date"],
._content textarea,
._content select,
.form-control {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #ffffff;
    font-size: 15px;
    font-family: 'DM Sans', sans-serif;
    transition: border-color 0.2s, background 0.2s;
}
._content input::placeholder,
._content textarea::placeholder {
    color: #6b6b73;
}
._content input:focus,
._content textarea:focus,
._content select:focus,
.form-control:focus {
    outline: none;
    border-color: #00ff97;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(0, 255, 151, 0.1);
}
._content input[type="checkbox"],
._content input[type="radio"] {
    width: auto;
    margin-right: 6px;
    accent-color: #00ff97;
}
._content select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2300ff97' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}
._content select option {
    background: #00020f;
    color: #ffffff;
}
textarea {
    resize: vertical;
    min-height: 100px;
}
.form-text, .text-muted, small.text-muted {
    color: #80808a !important;
    font-size: 13px;
}

/* ---- Checkboxes/Radios as Bootstrap form-check ---- */
.form-check-input {
    width: 1.1em;
    height: 1.1em;
    margin-top: 0.25em;
    vertical-align: top;
    accent-color: #00ff97;
}
.form-check-label {
    color: #d4d4d8;
    font-size: 15px;
    margin-left: 4px;
}

/* ---- Error fields ---- */
.error, .input-error {
    border-color: #ff4757 !important;
    background: rgba(255, 71, 87, 0.05) !important;
}

/* ---- Description text (engine field hints) ---- */
.descr_req {
    color: #ff4757;
}
.form-label .descr_req {
    color: #ff4757;
}

/* ---- Inline form hints [bracketed text] ---- */
._content small {
    color: #80808a;
}

/* ---- "odd/even" row classes from engine ---- */
._content tr.odd td { background: rgba(255,255,255,0.02); }
._content tr.even td { background: transparent; }

/* ---- Paginator ---- */
.paginator, .pagination-block {
    margin: 24px 0;
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    align-items: center;
}
.paginator a, .paginator span,
.pagination-block a, .pagination-block span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.12);
    color: #b2b3b7;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
}
.paginator a:hover {
    border-color: #00ff97;
    color: #00ff97;
}
.paginator span,
.paginator a.active,
.paginator .current {
    background: #00ff97;
    border-color: #00ff97;
    color: #00020f;
    font-weight: 600;
}

/* ---- Section title wrapper (used in page templates) ---- */
.xb-section {
    position: relative;
}
.xb-section .container > h1:first-child,
.xb-section .container > h2:first-child {
    margin-bottom: 30px;
}

/* ---- Info/warning messages (Bootstrap alerts already work, just harden) ---- */
.alert {
    border-radius: 10px;
    border: 1px solid transparent;
    padding: 16px 20px;
    margin: 16px 0;
    font-size: 14px;
}
.alert-info {
    background: rgba(0, 255, 151, 0.08);
    border-color: rgba(0, 255, 151, 0.3);
    color: #00ff97;
}
.alert-warning {
    background: rgba(255, 193, 7, 0.1);
    border-color: rgba(255, 193, 7, 0.3);
    color: #ffc107;
}
.alert-danger {
    background: rgba(255, 71, 87, 0.1);
    border-color: rgba(255, 71, 87, 0.3);
    color: #ff6b7a;
}
.alert-success {
    background: rgba(40, 200, 100, 0.1);
    border-color: rgba(40, 200, 100, 0.3);
    color: #34d058;
}

/* ---- Field comment hints (engine shows [comment] after inputs) ---- */
.form-text, .form-control + small {
    display: block;
    margin-top: 4px;
    color: #6b6b73;
}

/* ---- Currency / amount display ---- */
.amount, .money {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    color: #00ff97;
}

/* ---- Ensure dark background for full page ---- */
body.ai-agency {
    background-color: #00020f;
    color: #fff;
}

/* ---- Preloader fix: make sure it doesn't get stuck ---- */
.preloader {
    position: fixed;
    inset: 0;
    background: #00020f;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s, visibility 0.5s;
}
.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}
@keyframes xbSpin {
    to { transform: rotate(360deg); }
}

/* ---- Panel left sidebar fix ---- */
.panel.left, .panel-left {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
}
.panel.left a, .panel-left a {
    display: block;
    padding: 8px 12px;
    color: #b2b3b7;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s;
}
.panel.left a:hover, .panel-left a:hover,
.panel.left a.active, .panel-left a.active {
    background: rgba(0, 255, 151, 0.1);
    color: #00ff97;
}

/* ---- Misc: images inside content ---- */
._content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 12px 0;
}

/* ---- Block elements spacing ---- */
._content div + div,
._content p + div,
._content div + p {
    margin-top: 12px;
}

/* ---- Hide old engine classes that have no modern equivalent ---- */
.lines, .line {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* ---- Text alignment helpers (engine uses align="right" etc.) ---- */
._content [align="right"], .text-end { text-align: right; }
._content [align="center"], .text-center { text-align: center; }
._content [align="left"], .text-start { text-align: left; }

/* ---- hr / dividers ---- */
._content hr, hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 24px 0;
}

/* ---- Code blocks ---- */
._content code, ._content pre {
    background: rgba(255, 255, 255, 0.05);
    color: #00ff97;
    border-radius: 6px;
    padding: 2px 6px;
    font-size: 14px;
}
._content pre {
    padding: 16px;
    overflow-x: auto;
}

/* ---- Responsive: tighten on mobile ---- */
@media (max-width: 767px) {
    ._content {
        padding: 10px 0;
        font-size: 15px;
    }
    ._content h1 { font-size: 26px; }
    ._content h2 { font-size: 22px; }
}

/* ============================================================
   AUTH PAGES (login / register / resetpass) — uses theme's
   xb-contact-form / xb-input-field pattern from contact.html
   ============================================================ */

/* ---- Compact breadcrumb-style page header for auth pages ---- */
.xb-auth-hero {
    padding: 40px 0 40px;
    text-align: center;
    position: relative;
}
.xb-auth-hero .sub-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #00ff97;
    margin-bottom: 14px;
    padding: 6px 20px;
    border: 1px solid rgba(0, 255, 151, 0.3);
    border-radius: 30px;
}
.xb-auth-hero .sub-title i { font-size: 12px; }
.xb-auth-hero .title {
    font-family: 'SportingGrotesque', 'DM Sans', sans-serif;
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #ffffff;
    margin: 0;
}
.xb-auth-hero .description {
    font-size: 16px;
    color: #80808a;
    margin-top: 16px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* ---- Form wrapper: reuse theme's xb-contact-form styling ---- */

.xb-auth-card {
    position: relative;
    z-index: 1;
    max-width: 520px;
    margin: 0 auto;
    padding: 50px 45px;
    border-radius: 16px;
    background: linear-gradient(209deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.xb-auth-section {
    padding-bottom: 120px;
}
/* ============================================================
   AUTH FORM — styles for the engine-generated .xb-form-card
   (login/box.tpl includes edit.tpl which renders .xb-form-card)
   ============================================================ */

/* ---- Auth page form-card: use the same look as the rest of the site ---- */
.xb-auth-section .xb-form-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.4);
    padding: 40px;
}

/* ---- Force ALL fields to full width (vertical stack) ---- */
.xb-auth-section .xb-form-card .row.g-4,
.xb-auth-section .xb-form-card .row {
    --bs-gutter-x: 0;
    --bs-gutter-y: 0;
    display: block;
}
.xb-auth-section .xb-form-card .row > .col-md-6,
.xb-auth-section .xb-form-card .row > .col-12,
.xb-auth-section .xb-form-card .row > div {
    flex: none;
    max-width: 100%;
    width: 100%;
    padding: 0;
}

/* ---- Field group spacing ---- */
.xb-auth-section .xb-field-group { margin-bottom: 20px; }

/* ---- Inputs: uniform dark glassmorphism style ---- */
.xb-auth-section .xb-input,
.xb-auth-section input[type="text"],
.xb-auth-section input[type="password"],
.xb-auth-section input[type="email"] {
    height: 52px;
    padding: 0 18px;
    font-size: 15px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    width: 100%;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.xb-auth-section input::placeholder { color: rgba(255, 255, 255, 0.35); }
.xb-auth-section input:focus {
    border-color: #00ff97;
    background: rgba(0, 255, 151, 0.04);
    box-shadow: 0 0 0 3px rgba(0, 255, 151, 0.1);
}

/* ---- Labels ---- */
.xb-auth-section .xb-input-label,
.xb-auth-section .xb-field-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #80808a;
    margin-bottom: 10px;
}

/* ---- Submit button: green background + dark text, full width ---- */
.xb-auth-section .xb-form-actions {
    margin-top: 28px;
}
.xb-auth-section .xb-form-submit,
.xb-auth-section button[type="submit"].thm-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px 28px;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #00020f !important;
    background: #00ff97 !important;
    border: 1px solid #00ff97 !important;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}
.xb-auth-section .xb-form-submit:hover,
.xb-auth-section button[type="submit"].thm-btn:hover {
    background: #00d97a !important;
    border-color: #00d97a !important;
    transform: translateY(-2px);
}

/* ---- Remember checkbox row ---- */
.xb-auth-section .xb-check-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.xb-auth-section .xb-check-input {
    width: 18px;
    height: 18px;
    accent-color: #00ff97;
    cursor: pointer;
}
.xb-auth-section .xb-check-label {
    font-size: 14px;
    color: #c8c9d1;
    cursor: pointer;
}

/* ---- Captcha wrapper ---- */
.xb-auth-section .xb-captcha-wrap { margin-top: 8px; margin-bottom: 8px; }

/* ---- Heading above form (title from edit.begin.tpl, if shown) ---- */
.xb-auth-card h2 {
    font-family: 'SportingGrotesque', 'DM Sans', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin-bottom: 34px;
}

/* ---- Checkbox row ---- */
.xb-auth-card .form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 0;
    margin: 6px 10px 8px;
}
.xb-auth-card .form-check-input {
    width: 20px;
    height: 20px;
    margin: 0;
    flex-shrink: 0;
    border-radius: 5px;
    accent-color: #00ff97;
    cursor: pointer;
}
.xb-auth-card .form-check-label {
    color: #b2b3b7;
    font-size: 14px;
    margin: 0;
    cursor: pointer;
}

/* ---- Captcha block: align with field style ---- */
.xb-auth-card table.formatTable {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 8px 10px 20px;
    border: none !important;
}
.xb-auth-card table.formatTable td img.captcha {
    border-radius: 10px;
    height: 58px;
    width: auto;
    cursor: pointer;
    display: block;
    border: 1px solid rgba(255,255,255,0.12);
}
.xb-auth-card table.formatTable td input.captcha {
    height: 58px;
    width: 140px;
    padding: 10px 16px;
    border-radius: 12px;
    background: rgba(43, 61, 102, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 16px;
    letter-spacing: 3px;
    text-align: center;
}
.xb-auth-card table.formatTable td label {
    display: block;
    margin-bottom: 6px;
    color: #6b7a99;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* ---- Submit button: pill shape, icon-ready like thm-btn ---- */
.xb-auth-card .btn,
.xb-auth-card button[type="submit"] {
    width: calc(100% - 20px);
    margin: 10px 10px 0;
    height: 58px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: none;
    border-radius: 999px;
    color: #00020f;
    background: #00ff97;
    cursor: pointer;
    transition: all 0.3s ease;
}
.xb-auth-card .btn:hover,
.xb-auth-card button[type="submit"]:hover {
    background: #00cc7a;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 255, 151, 0.35);
}

/* ---- Tighten spacing so it reads as one cohesive card ---- */
.xb-auth-card .mb-3 { margin-bottom: 20px !important; }
.xb-auth-card form > .mt-4 { margin-top: 4px !important; }

/* ---- Alert/status boxes ---- */
.xb-auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 22px;
    border-radius: 12px;
    margin-bottom: 24px;
}
.xb-auth-alert-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.xb-auth-alert-body h5 {
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 6px;
}
.xb-auth-alert-body p {
    font-size: 14px;
    line-height: 1.6;
    color: #b2b3b7;
    margin: 0;
}
.xb-auth-alert-body a { color: #00ff97; text-decoration: underline; }
.xb-auth-alert--warning {
    background: rgba(255, 193, 7, 0.08);
    border: 1px solid rgba(255, 193, 7, 0.25);
}
.xb-auth-alert--warning .xb-auth-alert-icon {
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107;
}
.xb-auth-alert--info {
    background: rgba(0, 255, 151, 0.06);
    border: 1px solid rgba(0, 255, 151, 0.2);
}
.xb-auth-alert--info .xb-auth-alert-icon {
    background: rgba(0, 255, 151, 0.15);
    color: #00ff97;
}
.xb-auth-alert--success {
    background: rgba(40, 200, 100, 0.08);
    border: 1px solid rgba(40, 200, 100, 0.25);
}
.xb-auth-alert--success .xb-auth-alert-icon {
    background: rgba(40, 200, 100, 0.15);
    color: #34d058;
}
.xb-auth-alert--danger {
    background: rgba(255, 71, 87, 0.08);
    border: 1px solid rgba(255, 71, 87, 0.25);
}
.xb-auth-alert--danger .xb-auth-alert-icon {
    background: rgba(255, 71, 87, 0.15);
    color: #ff6b7a;
}

/* ---- Secondary links below form ---- */
.xb-auth-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 24px;
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.xb-auth-footer a {
    font-size: 14px;
    color: #80808a;
    text-decoration: none;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.xb-auth-footer a:hover { color: #00ff97; }
.xb-auth-footer a i { font-size: 12px; opacity: 0.7; }

/* ---- Remove redundant nested rows ---- */
.xb-auth-card .row > .row { --bs-gutter-x: 1.5rem; }
.xb-auth-card .mb-3 { margin-bottom: 18px !important; }

/* ---- Loginza divider ---- */
.xb-auth-card .text-center span {
    color: #80808a;
    font-size: 13px;
}

@media (max-width: 767px) {
    .xb-auth-hero { padding: 40px 0 40px; }
    .xb-auth-card { padding: 35px 25px; }
    .xb-auth-card table.formatTable {
        flex-direction: column;
        align-items: stretch;
    }
}

 /* ============================================================
  *  BREADCRUMB / PAGE HEADER — exact Aivora original styles
  *  from contact.html <section class="breadcrumb bg_img"> + main.css.
  *  ============================================================ */

/* BG image support (reproduced from aivora.css) */
.breadcrumb.bg_img {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.breadcrumb {
    min-height: 500px;
    padding: 150px 0 100px;
    margin: 0;
    display: flex;
    align-items: center;
}
@media (max-width: 991px) {
    .breadcrumb { min-height: 380px; padding: 140px 0 100px; }
}
@media (max-width: 767px) {
    .breadcrumb { min-height: 360px; }
}

.breadcrumb__content { text-align: center; }

.breadcrumb__list {
    display: inline-flex;
    align-items: center;
    position: relative;
}

/* Green accent dots (left/right) — reproduced from aivora.css */
.breadcrumb__list::before,
.breadcrumb__list::after {
    position: absolute;
    content: '';
    left: -16px;
    top: 0;
    height: 8px;
    width: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-primary, #00ff97);
    border-radius: 100px;
}
.breadcrumb__list::after { left: auto; right: -16px; }

.breadcrumb .breadcrumb-item {
    color: var(--color-white, #ffffff);
    text-transform: capitalize;
}
.breadcrumb .breadcrumb-item a { color: currentColor; }

.breadcrumb__title {
    font-weight: 400;
    font-size: 65px;
    margin-top: 24px;
    letter-spacing: -0.07em;
    color: var(--color-white, #ffffff);
    font-family: var(--font-heading, 'DM Sans', 'SportingGrotesque', sans-serif);
}
@media (max-width: 1199px) {
    .breadcrumb__title { font-size: 52px; }
}
@media (max-width: 991px) {
    .breadcrumb__title { font-size: 45px; margin-top: 15px; }
}
@media (max-width: 767px) {
    .breadcrumb__title { font-size: 34px; margin-top: 10px; }
}
@media only screen and (min-width: 576px) and (max-width: 767px) {
    .breadcrumb__title { font-size: 36px; }
}

/* FA5 chevron divider between breadcrumb items */
.breadcrumb-item + .breadcrumb-item::before {
    float: left;
    padding-right: 0;
    color: rgba(255, 255, 255, 0.75);
    content: "\\f105";
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";
    font-weight: 900;
}

._content .breadcrumb__title {
    font-family: var(--font-heading, 'DM Sans', 'SportingGrotesque', sans-serif);
}

/* ============================================================
   DYNAMIC TPL PAGES — Cabinet, Deposits, Operations, Tickets, FAQ
   Styles for Aivora-themed Smarty template pages
   ============================================================ */

/* ---- XB-TABLE-WRAP: glassmorphism wrapper for data tables
   (deposits, operations, tickets) ---- */
.xb-table-wrap {
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(209deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    box-shadow: 0 4px 24px -1px rgba(28, 9, 61, 0.2);
}
.xb-table-wrap > h2,
.xb-table-wrap .table-responsive > .table > caption {
    padding: 30px 30px 0;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
}
.xb-table-wrap .table-responsive {
    padding: 20px 10px 10px;
}
.xb-table-wrap table {
    margin-bottom: 0;
}
.xb-table-wrap .table thead th {
    background: var(--color-secondary, #00020f);
    color: var(--color-primary, #00ff97);
    border-color: rgba(255,255,255,0.1);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 18px 16px;
    white-space: nowrap;
}
.xb-table-wrap .table tbody td {
    color: #e0e0e8;
    border-color: rgba(255,255,255,0.06);
    padding: 16px;
    vertical-align: middle;
}
.xb-table-wrap .table tbody tr:hover td {
    background: rgba(0, 255, 151, 0.04);
    color: #fff;
}
.xb-table-wrap .table tbody tr.table-secondary td,
.xb-table-wrap .table tbody tr.odd td {
    background: rgba(255,255,255,0.015);
}
.xb-table-wrap .table tbody tr.table-info td {
    background: rgba(0, 255, 151, 0.08);
}
.xb-table-wrap .alert-secondary {
    margin: 20px 30px 30px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    color: #b2b3b7;
    border-radius: 8px;
}
.xb-table-wrap .pagination {
    margin: 20px 30px 30px;
}

/* ---- XB-EMPTY-STATE: no deposits / no data state ---- */
.xb-empty-state {
    text-align: center;
    padding: 60px 40px;
    border-radius: 10px;
    background: linear-gradient(209deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    box-shadow: 0 4px 24px -1px rgba(28, 9, 61, 0.2);
}
.xb-empty-state .xb-empty-icon {
    font-size: 64px;
    color: var(--color-primary, #00ff97);
    margin-bottom: 24px;
    opacity: 0.6;
}
.xb-empty-state h3 {
    color: #fff;
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}
.xb-empty-state p {
    color: #b2b3b7;
    font-size: 16px;
    max-width: 400px;
    margin: 0 auto 8px;
}

/* ---- XB-CABINET: dashboard page ---- */
.xb-cabinet-greeting {
    text-align: left;
}
.xb-cabinet-greeting h2 {
    color: #fff;
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 600;
    margin: 0;
}
.xb-cabinet-greeting .xb-cabinet-user {
    color: var(--color-primary, #00ff97);
}

/* ---- XB-CARD: glass card with header/body/footer ---- */
.xb-card {
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.xb-card.h-100 {
    height: 100%;
}
.xb-card-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 26px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.xb-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(0, 255, 151, 0.1);
    color: var(--color-primary, #00ff97);
    font-size: 18px;
    flex-shrink: 0;
}
.xb-card-title {
    color: #fff;
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}
.xb-card-body {
    padding: 20px 26px;
    flex: 1 1 auto;
}
/* Make tables inside cards compact */
.xb-card-body .xb-data-table {
    border: none;
    background: none;
    box-shadow: none;
    border-radius: 0;
}
.xb-card-body .xb-table thead th {
    padding: 10px 12px;
    font-size: 12px;
}
.xb-card-body .xb-table tbody td {
    padding: 10px 12px;
    font-size: 13px;
}
.xb-card-foot {
    display: flex;
    gap: 10px;
    padding: 18px 26px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

/* ---- XB-BTN: compact button for cards ---- */
.xb-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}
.xb-btn--primary {
    background: var(--color-primary, #00ff97);
    color: var(--color-secondary, #00020f);
}
.xb-btn--primary:hover {
    background: #00d97a;
    transform: translateY(-1px);
}
.xb-btn--ghost {
    background: transparent;
    color: var(--color-primary, #00ff97);
    border: 1px solid rgba(0, 255, 151, 0.3);
}
.xb-btn--ghost:hover {
    background: rgba(0, 255, 151, 0.1);
    border-color: var(--color-primary, #00ff97);
}

/* ---- XB-ACTION-CARD: dashboard shortcut (4 cards row) ---- */
.xb-action-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    text-decoration: none;
    transition: all 0.3s ease;
    height: 100%;
}
.xb-action-card:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 255, 151, 0.3);
    box-shadow: 0 8px 24px -4px rgba(0, 255, 151, 0.15);
}
.xb-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(0, 255, 151, 0.1);
    color: var(--color-primary, #00ff97);
    font-size: 20px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}
.xb-action-card:hover .xb-action-icon {
    background: var(--color-primary, #00ff97);
    color: var(--color-secondary, #00020f);
}
.xb-action-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.xb-action-text strong {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
}
.xb-action-text small {
    color: #86878d;
    font-size: 13px;
}

/* ---- XB-ACTION-BUTTONS: row of operation buttons ---- */
.xb-action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* ---- XB-WALLETS-CARD: payment wallets form wrapper ---- */
.xb-wallets-card {
    border-radius: 10px;
    padding: 10px;
    background: linear-gradient(209deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    box-shadow: 0 4px 24px -1px rgba(28, 9, 61, 0.2);
}
.xb-wallets-card .card {
    background: transparent;
    border: none;
}
.xb-wallets-card .card-body {
    padding: 30px;
}

/* ---- Service item override for cabinet (remove default padding for forms) ---- */
.xb-ser-item .xb-item--inner {
    padding: 40px;
}
.xb-ser-item .xb-item--icon {
    text-decoration: none;
}
.xb-ser-item .xb-item--icon i {
    font-size: 20px;
}
.xb-ser-item .xb-item--title {
    font-size: 28px;
    margin-bottom: 16px;
}

/* ---- Auth card: add xb-border glassmorphism when present ---- */
.xb-auth-card.xb-border {
    background: linear-gradient(209deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    box-shadow: 0 4px 24px -1px rgba(28, 9, 61, 0.2);
}

/* ---- THM-BTN: ensure buttons render properly in dynamic pages ---- */
.xb-action-buttons .thm-btn,
.xb-cabinet-actions .thm-btn,
.xb-empty-state .thm-btn,
.xb-section .thm-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 14px 28px;
    border-radius: 30px;
    transition: all 0.3s ease;
}
.xb-section .thm-btn .text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.xb-section .thm-btn:not(.thm-btn--border) {
    background: var(--color-primary, #00ff97);
    color: var(--color-secondary, #00020f);
}
.xb-section .thm-btn:not(.thm-btn--border):hover {
    background: #00d97a;
    transform: translateY(-2px);
}
.xb-section .thm-btn--border {
    background: transparent;
    color: var(--color-primary, #00ff97);
    border: 1px solid var(--color-primary, #00ff97);
}
.xb-section .thm-btn--border:hover {
    background: var(--color-primary, #00ff97);
    color: var(--color-secondary, #00020f);
}

/* ---- FAQ accordion (Aivora .accordion_box style) ---- */
.xb-faq .accordion_box {
    border: 1px solid #40414b;
    border-radius: 10px;
    overflow: hidden;
}
.xb-faq .accordion .block {
    border-bottom: 1px solid #40414b;
}
.xb-faq .accordion .block:last-child {
    border-bottom: none;
}
.xb-faq .acc-btn {
    padding: 24px 70px 24px 40px;
    font-size: 18px;
    font-weight: 500;
    color: #fff;
    background: var(--color-secondary, #00020f);
    cursor: pointer;
    position: relative;
    transition: background 0.3s ease;
}
.xb-faq .acc-btn:hover {
    background: #0a0d2e;
}
.xb-faq .acc-btn .number {
    color: var(--color-primary, #00ff97);
    margin-right: 8px;
    font-weight: 600;
}
.xb-faq .acc-btn .arrow {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #060e50;
    display: flex;
    align-items: center;
    justify-content: center;
}
.xb-faq .acc-btn .arrow::before {
    content: "\f067"; /* fa-plus */
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";
    font-weight: 900;
    color: #fff;
    font-size: 14px;
}
.xb-faq .active-block .acc-btn .arrow::before {
    content: "\f068"; /* fa-minus */
}
.xb-faq .acc_body {
    display: none;
}
.xb-faq .acc_body.current {
    display: block;
}
.xb-faq .acc_body .content {
    background: #15192f;
    padding: 30px 40px;
    color: #b2b3b7;
    line-height: 1.7;
}
.xb-faq .acc_body .content a {
    color: var(--color-primary, #00ff97);
}

/* ---- Responsive adjustments ---- */
@media (max-width: 767px) {
    .xb-cabinet-welcome .xb-cabinet-name { font-size: 32px; }
    .xb-ser-item .xb-item--inner { padding: 25px; }
    .xb-table-wrap .table-responsive { padding: 10px 0; }
    .xb-table-wrap .table thead th,
    .xb-table-wrap .table tbody td { padding: 12px 8px; font-size: 13px; }
    .xb-faq .acc-btn { padding: 18px 60px 18px 20px; font-size: 15px; }
    .xb-faq .acc-btn .arrow { right: 15px; width: 30px; height: 30px; }
    .xb-faq .acc_body .content { padding: 20px; }
    .xb-empty-state { padding: 40px 20px; }
    .xb-action-buttons,
    .xb-cabinet-actions { gap: 10px; }
}

/* ============================================================
   ENGINE FORMS & TABLES — edit.tpl / list.tpl system
   These styles apply to ALL forms and tables on the site
   (login, register, wallets, tickets, deposits, operations, etc.)
   ============================================================ */

/* ---- XB-FORM-CARD: glassmorphism wrapper for all edit.tpl forms ---- */
.xb-form-card {
    border-radius: 10px;
    padding: 40px;
    background: linear-gradient(209deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    box-shadow: 0 4px 24px -1px rgba(28, 9, 61, 0.2);
}
@media (max-width: 767px) {
    .xb-form-card { padding: 25px 20px; }
}

/* ---- XB-FORM-TITLE ---- */
.xb-form-title {
    color: #fff;
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 24px;
}

/* ---- XB-FORM-SECTION (divider between field groups) ---- */
.xb-form-divider {
    border-color: rgba(255,255,255,0.1);
    margin: 20px 0 10px;
}
.xb-form-section-title {
    color: var(--color-primary, #00ff97);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 10px 0;
}

/* ---- XB-FIELD-GROUP: wrapper for each form field ---- */
.xb-field-group {
    margin-bottom: 20px;
}

/* ---- XB-INPUT-LABEL: field labels ---- */
.xb-input-label,
.xb-field-label {
    display: block;
    color: #e0e0e8;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}
.xb-field-required {
    color: var(--color-primary, #00ff97);
    margin-left: 2px;
}
.xb-field-remark {
    color: #86878d;
    font-size: 13px;
}
.xb-field-hint {
    color: #86878d;
    font-size: 12px;
    display: block;
    margin-top: 6px;
}

/* ---- XB-INPUT: text/password/email/number inputs ---- */
.xb-input,
.xb-textarea,
.xb-select {
    width: 100%;
    height: 52px;
    background: rgba(0, 2, 15, 0.5);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    color: #fff;
    font-size: 15px;
    font-family: var(--font-body);
    padding: 0 18px;
    transition: all 0.3s ease;
    outline: none;
}
.xb-input::placeholder,
.xb-textarea::placeholder {
    color: #6c6d75;
}
.xb-input:hover,
.xb-textarea:hover,
.xb-select:hover {
    border-color: rgba(0, 255, 151, 0.3);
}
.xb-input:focus,
.xb-textarea:focus,
.xb-select:focus {
    border-color: var(--color-primary, #00ff97);
    background: rgba(0, 2, 15, 0.8);
    box-shadow: 0 0 0 3px rgba(0, 255, 151, 0.1);
}
.xb-input-sm {
    max-width: 120px;
}
.xb-input-file {
    height: auto;
    padding: 12px 18px;
}

/* ---- XB-TEXTAREA ---- */
.xb-textarea {
    height: auto;
    min-height: 100px;
    padding: 14px 18px;
    line-height: 1.6;
    resize: vertical;
}

/* ---- XB-SELECT (dropdowns) ---- */
.xb-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300ff97' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 18px;
    padding-right: 44px;
    cursor: pointer;
}
.xb-select option {
    background: #00020f;
    color: #fff;
}
.xb-select optgroup {
    background: #0a0d2e;
    color: var(--color-primary, #00ff97);
}

/* ---- XB-PLAINTEXT (read-only display) ---- */
.xb-plaintext {
    display: block;
    color: #e0e0e8;
    font-size: 15px;
    padding: 14px 18px;
    background: rgba(0, 2, 15, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.06);
}

/* ---- XB-CHECK-ROW (checkboxes & radios) ---- */
.xb-check-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
}
.xb-check-input {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    accent-color: var(--color-primary, #00ff97);
    cursor: pointer;
}
.xb-check-label {
    color: #e0e0e8;
    font-size: 15px;
    cursor: pointer;
}

/* ---- INVALID STATE (validation errors) ---- */
.xb-input.is-invalid,
.xb-textarea.is-invalid,
.xb-select.is-invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}
.invalid-feedback {
    color: #ef4444;
    font-size: 13px;
    margin-top: 6px;
}
.invalid-feedback.d-block {
    display: block;
}

/* ---- XB-FORM-ACTIONS: submit/danger buttons ---- */
.xb-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}
.xb-form-submit {
    min-width: 180px;
    justify-content: center;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #00020f !important;
    background: #00ff97 !important;
    border: 1px solid #00ff97 !important;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}
.xb-form-submit:hover {
    background: #00d97a !important;
    border-color: #00d97a !important;
    transform: translateY(-2px);
}
.xb-form-delete {
    min-width: auto;
}

/* ---- XB-CAPTCHA-WRAP ---- */
.xb-captcha-wrap {
    margin: 20px 0;
    padding: 20px;
    background: rgba(0, 2, 15, 0.3);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
}
.xb-captcha-wrap img.captcha {
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.1);
}
.xb-captcha-wrap input.captcha {
    background: rgba(0, 2, 15, 0.5) !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    border-radius: 6px !important;
    color: #fff !important;
    padding: 8px 12px !important;
    height: 40px !important;
}

/* ============================================================
   TABLES — list.tpl system
   ============================================================ */

/* ---- XB-TABLE-TITLE ---- */
.xb-table-title {
    color: #fff;
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

/* ---- XB-DATA-TABLE: wrapper around table ---- */
.xb-data-table {
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(209deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    box-shadow: 0 4px 24px -1px rgba(28, 9, 61, 0.2);
    border: 1px solid rgba(255,255,255,0.06);
}
.xb-data-table .table-responsive {
    overflow-x: auto;
}

/* ---- XB-TABLE: the actual table ---- */
.xb-table {
    margin: 0;
    color: #e0e0e8;
    border-collapse: collapse;
}
.xb-table thead th {
    background: rgba(0, 2, 15, 0.8);
    color: var(--color-primary, #00ff97);
    border: none;
    border-bottom: 2px solid rgba(0, 255, 151, 0.2);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 18px 16px;
    white-space: nowrap;
}
.xb-table thead th:first-child {
    padding-left: 24px;
}
.xb-table thead th:last-child {
    padding-right: 24px;
}
.xb-table tbody td {
    color: #c8c9d1;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    padding: 16px;
    vertical-align: middle;
    font-size: 14px;
}
.xb-table tbody td:first-child {
    padding-left: 24px;
}
.xb-table tbody td:last-child {
    padding-right: 24px;
}
.xb-table tbody tr {
    transition: background 0.2s ease;
}
.xb-table tbody tr.xb-row-alt td {
    background: rgba(255,255,255,0.015);
}
.xb-table tbody tr:hover td {
    background: rgba(0, 255, 151, 0.05) !important;
    color: #fff;
}
.xb-table tbody tr.xb-row-active td {
    background: rgba(0, 255, 151, 0.1);
    color: #fff;
    font-weight: 600;
}
.xb-table-sort {
    color: var(--color-primary, #00ff97);
    text-decoration: none;
}
.xb-table-sort:hover {
    text-decoration: underline;
}
.xb-table-check {
    width: 50px;
}

/* ---- XB-LIST-ACTIONS: bulk action bar under tables ---- */
.xb-list-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(0, 2, 15, 0.4);
    border-radius: 8px;
}
.xb-list-actions-label {
    color: #86878d;
    font-size: 14px;
    margin-right: 8px;
}
.xb-list-action-btn {
    font-size: 13px;
    padding: 10px 20px;
}

/* ============================================================
   PAGINATION — pl.tpl
   ============================================================ */
.xb-pagination-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.xb-pagination-info {
    color: #86878d;
    font-size: 13px;
}
.xb-pagination-list {
    gap: 6px;
}
.xb-pagination-list .page-item .page-link {
    min-width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    color: #e0e0e8;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}
.xb-pagination-list .page-item .page-link:hover {
    background: rgba(0, 255, 151, 0.1);
    border-color: var(--color-primary, #00ff97);
    color: #fff;
}
.xb-pagination-list .page-item.active .page-link {
    background: var(--color-primary, #00ff97);
    border-color: var(--color-primary, #00ff97);
    color: var(--color-secondary, #00020f);
}

/* ============================================================
   SHARED ALERT STYLES (used by edit.end.tpl lost errors)
   ============================================================ */
.xb-auth-alert {
    display: flex;
    gap: 16px;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    align-items: flex-start;
}
.xb-auth-alert--warning {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.3);
}
.xb-auth-alert--info {
    background: rgba(0, 255, 151, 0.05);
    border: 1px solid rgba(0, 255, 151, 0.2);
}
.xb-auth-alert-icon {
    font-size: 24px;
    flex-shrink: 0;
}
.xb-auth-alert--warning .xb-auth-alert-icon {
    color: #ef4444;
}
.xb-auth-alert--info .xb-auth-alert-icon {
    color: var(--color-primary, #00ff97);
}
.xb-auth-alert-body h5 {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}
.xb-auth-alert-body p {
    color: #c8c9d1;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}
.xb-auth-alert-body a {
    color: var(--color-primary, #00ff97);
    text-decoration: underline;
}

/* ============================================================
   TABLE CELL HELPERS — for .row.tpl files (deposits, operations, tickets)
   ============================================================ */
.xb-cell-date {
    color: #86878d;
    font-size: 13px;
}
.xb-cell-amount {
    color: var(--color-primary, #00ff97);
    font-weight: 600;
}
.xb-currency {
    color: #86878d;
    font-size: 12px;
    margin-left: 4px;
}

/* ---- XB-BADGE: status badges in tables ---- */
.xb-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: rgba(255,255,255,0.08);
    color: #c8c9d1;
}
.xb-badge--active {
    background: rgba(0, 255, 151, 0.15);
    color: var(--color-primary, #00ff97);
    border: 1px solid rgba(0, 255, 151, 0.3);
}
.xb-badge--closed {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}
.xb-data-table td a,
.xb-table td a {
    color: var(--color-primary, #00ff97);
    text-decoration: none;
}
.xb-data-table td a:hover {
    text-decoration: underline;
}

/* ============================================================
   HEADER BUTTONS — line.top.tpl (guest + logged-in)
   Fix: Aivora .header-btn a::before uses position:absolute without
   position:relative on links, so hover fill bleeds across the header.
   ============================================================ */

/* Disable Aivora pseudo-element hover on all header action links */
.header-style--one .header-btn a::before {
    display: none !important;
    content: none !important;
}

.header-style--one .header-btn {
    background: transparent !important;
    gap: 0;
}

/* Primary pill — Sign In, Register (solid), Dashboard */
.header-style--one .header-btn a.thm-btn:not(.thm-btn--border) {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 14px 26px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-transform: none;
    letter-spacing: normal;
    color: var(--color-secondary, #00020f) !important;
    background: var(--color-primary, #00ff97) !important;
    border: 1px solid var(--color-primary, #00ff97) !important;
    border-radius: 50px;
    text-decoration: none;
    z-index: 1;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.header-style--one .header-btn a.thm-btn:not(.thm-btn--border):hover {
    color: var(--color-secondary, #00020f) !important;
    background: #00d97a !important;
    border-color: #00d97a !important;
}

/* Secondary pill — Register, Account, Balance, Logout */
.header-style--one .header-btn a.thm-btn--border {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 13px 24px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-transform: none;
    letter-spacing: normal;
    color: #ffffff !important;
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    border-radius: 50px;
    text-decoration: none;
    z-index: 1;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.header-style--one .header-btn a.thm-btn--border:hover {
    color: var(--color-secondary, #00020f) !important;
    background: var(--color-primary, #00ff97) !important;
    border-color: var(--color-primary, #00ff97) !important;
}

.header-style--one .header-btn a.thm-btn i {
    font-size: 13px;
    opacity: 0.9;
}

.header-style--one .header-btn .ms-2 {
    margin-left: 8px !important;
}


/* ============================================================
   SUB-NAVIGATION — XB-SUBNAV
   Subordinated to the Aivora main menu styles (.main-menu > ul).
   No background links, with green accent on hover/active.
   ============================================================ */

.xb-subnav {
    margin: 0 0 24px;
}

/* ---- Container / list (flex row) ---- */
.xb-subnav-list {
    display: flex;
    flex-wrap: nowrap;
    gap: 32px;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ---- Single item (plain nav-link style) ---- */
.xb-subnav-item {
    float: left;
    position: relative;
}
.xb-subnav-item a {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -0.01em;
    position: relative;
    padding: 16px 0;
    text-decoration: none;
    display: inline-block;
    transition: color .3s;
    text-transform: capitalize;
    color: var(--color-heading, #b2b3b7);
}
/* ---- Underline indicator at left (reproduces the green dot pattern of main-menu) ---- */
.xb-subnav-item a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 10px;
    height: 2px;
    border-radius: 999px;
    background: transparent;
    transition: .3s ease;
}

/* ---- Hover state (green from --color-primary) — matches main-menu <li>:hover style ---- */
.xb-subnav-item a:hover {
    color: #ffffff;
}
.xb-subnav-item a:hover::before {
    background: var(--color-primary, #00ff97);
}

/* ---- Active item — green underlined link (same colour change as .main-menu > ul > li.active style) ---- */
.xb-subnav-item.active a {
    color: #ffffff;
}
.xb-subnav-item.active a::before {
    background: var(--color-primary, #00ff97);
}

/* ---- Icon styling (inline with Aivora main-menu link) ---- */
.xb-subnav-item a i {
    font-size: 13px;
    margin-right: 6px;
}

/* ---- Badge (notification count beside link) ---- */
.xb-subnav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: var(--color-primary, #00ff97);
    color: var(--color-secondary, #00020f);
    font-size: 11px;
    font-weight: 600;
    border-radius: 10px;
    margin-left: 8px;
}
/* Active badge — darker on green (matches active pill colour) */
.xb-subnav-item.active .xb-subnav-badge {
    background: #ffffff;
    color: var(--color-primary, #00ff97);
}
/* ---- Responsive ---- */
@media (max-width: 1199px) {
    .xb-subnav-list { gap: 24px; }
    .xb-subnav-item a { padding: 16px 0; font-size: 15px; }
}


/* ============================================================
   TABLE FIXES — force dark text color, remove horizontal scroll
   ============================================================ */
.xb-table {
    color: #e0e0e8 !important;
}
.xb-table tbody td {
    color: #c8c9d1 !important;
}
.xb-table tbody tr td * {
    color: inherit;
}
.xb-table tbody tr td a {
    color: var(--color-primary, #00ff97) !important;
}
.xb-table tbody tr td .text-white,
.xb-table tbody tr td .text-white-50 {
    color: inherit !important;
}
.xb-table tbody tr td .text-danger {
    color: #ef4444 !important;
}
/* Remove table-responsive wrapper scroll when table fits */
.xb-data-table .table-responsive {
    overflow-x: visible;
    border: none;
}
@media (max-width: 767px) {
    .xb-data-table .table-responsive {
        overflow-x: auto;
    }
}

/* ---- TABLE COLOR FIX: override Bootstrap's white default ---- */
.xb-table,
.xb-data-table .table {
    --bs-table-color: #e0e0e8;
    --bs-table-bg: transparent;
    --bs-table-border-color: rgba(255,255,255,0.06);
    --bs-table-striped-bg: rgba(255,255,255,0.02);
    --bs-table-striped-color: #e0e0e8;
    --bs-table-hover-bg: rgba(0, 255, 151, 0.05);
    --bs-table-hover-color: #fff;
    --bs-table-active-bg: rgba(0, 255, 151, 0.1);
    --bs-table-active-color: #fff;
    color: #e0e0e8;
}
/* The real fix: override the >* cell selector */
.xb-data-table .table > :not(caption) > * > * {
    color: #c8c9d1 !important;
    background-color: transparent !important;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 14px 16px;
}
.xb-data-table .table > :not(caption) > * > *:first-child {
    padding-left: 24px;
}
.xb-data-table .table > :not(caption) > * > *:last-child {
    padding-right: 24px;
}
.xb-data-table .table thead th {
    color: var(--color-primary, #00ff97) !important;
    background-color: rgba(0, 2, 15, 0.5) !important;
    border-bottom: 2px solid rgba(0, 255, 151, 0.2);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.xb-data-table .table tbody tr:hover > * {
    color: #fff !important;
    background-color: rgba(0, 255, 151, 0.05) !important;
}
.xb-data-table .table tbody tr.xb-row-active > * {
    color: #fff !important;
    background-color: rgba(0, 255, 151, 0.1) !important;
}
.xb-data-table .table tbody tr.xb-row-alt > * {
    background-color: rgba(255,255,255,0.015) !important;
}

/* ============================================================
   CABINET DASHBOARD — new design (xb-dash)
   ============================================================ */
.xb-dash {
    padding: 80px 0 100px;
}

/* ---- Greeting ---- */
.xb-dash-greeting {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}
.xb-dash-greeting-text {
    display: flex;
    flex-direction: column;
}
.xb-dash-hello {
    color: var(--color-primary, #00ff97);
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}
.xb-dash-name {
    color: #fff;
    font-family: var(--font-heading);
    font-size: 38px;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.02em;
}
.xb-dash-greeting-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 30px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: #b2b3b7;
    font-size: 14px;
}

/* ---- Balance hero ---- */
.xb-balance-hero {
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 24px;
}
.xb-balance-hero-inner {
    padding: 36px 40px;
    background: linear-gradient(135deg, rgba(0,255,151,0.06) 0%, rgba(0,255,151,0.02) 100%);
    border: 1px solid rgba(0,255,151,0.12);
    border-radius: 14px;
}
.xb-balance-hero-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #b2b3b7;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}
.xb-balance-hero-label i {
    color: var(--color-primary, #00ff97);
}
.xb-balance-hero .xb-data-table {
    background: none;
    border: none;
    box-shadow: none;
    border-radius: 0;
}
.xb-balance-hero .xb-data-table .table > :not(caption) > * > * {
    background: transparent !important;
}

/* ---- Action buttons ---- */
.xb-dash-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 50px;
}
.xb-dash-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 20px;
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: #e0e0e8;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}
.xb-dash-action:hover {
    transform: translateY(-2px);
    color: #fff;
    border-color: rgba(0,255,151,0.3);
    box-shadow: 0 8px 20px -4px rgba(0,255,151,0.15);
}
.xb-dash-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255,255,255,0.06);
    color: var(--color-primary, #00ff97);
    font-size: 15px;
}
.xb-dash-action:hover .xb-dash-action-icon {
    background: var(--color-primary, #00ff97);
    color: var(--color-secondary, #00020f);
}
.xb-dash-action--in {
    background: rgba(0,255,151,0.08);
    border-color: rgba(0,255,151,0.2);
}
.xb-dash-action--out {
    background: rgba(239,68,68,0.06);
    border-color: rgba(239,68,68,0.15);
}
.xb-dash-action--out .xb-dash-action-icon {
    color: #ef4444;
}
.xb-dash-action--out:hover {
    border-color: rgba(239,68,68,0.3);
    box-shadow: 0 8px 20px -4px rgba(239,68,68,0.15);
}
.xb-dash-action--out:hover .xb-dash-action-icon {
    background: #ef4444;
    color: #fff;
}
.xb-dash-action--primary {
    background: var(--color-primary, #00ff97);
    color: var(--color-secondary, #00020f) !important;
    border-color: var(--color-primary, #00ff97);
}
.xb-dash-action--primary .xb-dash-action-text,
.xb-dash-action--primary span {
    color: var(--color-secondary, #00020f) !important;
}
.xb-dash-action--primary .xb-dash-action-icon {
    background: rgba(0,2,15,0.15);
    color: var(--color-secondary, #00020f);
}
.xb-dash-action--primary:hover {
    background: #00d97a;
    color: var(--color-secondary, #00020f) !important;
}
.xb-dash-action--primary:hover .xb-dash-action-icon {
    background: rgba(0,2,15,0.2);
}

/* ---- Section title ---- */
.xb-dash-section-title {
    margin-bottom: 20px;
}
.xb-dash-section-title h3 {
    color: #fff;
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 600;
    margin: 0;
    position: relative;
    padding-left: 16px;
}
.xb-dash-section-title h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 22px;
    background: var(--color-primary, #00ff97);
    border-radius: 2px;
}

/* ---- Statistics table wrapper ---- */
.xb-dash .xb-data-table {
    margin-bottom: 40px;
}

/* ---- Quick links ---- */
.xb-dash-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.xb-dash-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 24px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.25s ease;
    background: rgba(255,255,255,0.03);
}
.xb-dash-link:hover {
    transform: translateY(-2px);
    background: rgba(0,255,151,0.04);
}
.xb-dash-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(0,255,151,0.1);
    color: var(--color-primary, #00ff97);
    font-size: 20px;
    flex-shrink: 0;
}
.xb-dash-link-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.xb-dash-link-body strong {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}
.xb-dash-link-body small {
    color: #86878d;
    font-size: 13px;
}
.xb-dash-link-arrow {
    color: #86878d;
    font-size: 14px;
    transition: all 0.25s ease;
}
.xb-dash-link:hover .xb-dash-link-arrow {
    color: var(--color-primary, #00ff97);
    transform: translateX(4px);
}

/* ---- Responsive ---- */
@media (max-width: 767px) {
    .xb-dash { padding: 50px 0 60px; }
    .xb-dash-name { font-size: 28px; }
    .xb-dash-greeting-date { display: none; }
    .xb-balance-hero-inner { padding: 24px 20px; }
    .xb-dash-actions {
        grid-template-columns: repeat(2, 1fr);
    }
    .xb-dash-action { padding: 14px 12px; font-size: 14px; }
    .xb-dash-action-text { font-size: 13px; }
    .xb-dash-section-title h3 { font-size: 18px; }
    .xb-dash-links { grid-template-columns: 1fr; }
}

/* ============================================================
   ADMIN PANEL — admin/header.tpl + admin/footer.tpl
   ============================================================ */
body.admin-page {
    background: var(--color-body, #00020f);
    color: #e0e0e8;
}

/* Admin content wrapper */
.xb-admin-content {
    min-height: 60vh;
}
.xb-admin-content > h1 {
    color: #fff;
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 700;
    margin: 30px 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(0, 255, 151, 0.2);
}
.xb-admin-content > h1:first-child {
    margin-top: 0;
}
.xb-admin-content > br {
    display: none;
}

/* The module-icon tables: formatTable with icon links */
.xb-admin-content table.formatTable {
    border-collapse: separate;
    border-spacing: 12px;
    margin-bottom: 20px;
}
.xb-admin-content table.formatTable td {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 20px 12px !important;
    text-align: center;
    vertical-align: middle;
    transition: all 0.25s ease;
    width: auto !important;
}
.xb-admin-content table.formatTable td:hover {
    background: rgba(0, 255, 151, 0.06);
    border-color: rgba(0, 255, 151, 0.3);
    transform: translateY(-2px);
}
.xb-admin-content table.formatTable td a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #e0e0e8;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}
.xb-admin-content table.formatTable td a:hover {
    color: var(--color-primary, #00ff97);
}
.xb-admin-content table.formatTable td img {
    width: 40px;
    height: 40px;
    opacity: 0.85;
    transition: all 0.25s ease;
}
.xb-admin-content table.formatTable td:hover img {
    opacity: 1;
    transform: scale(1.08);
}

/* Nested data tables inside admin (e.g. settings forms) */
.xb-admin-content .formatTable:not(:first-of-type) {
    /* keep default style */
}

/* Admin info/note blocks */
.xb-admin-content .note,
.xb-admin-content .flash_info,
.xb-admin-content .flash_error {
    background: rgba(0, 255, 151, 0.06);
    border: 1px solid rgba(0, 255, 151, 0.2);
    color: #e0e0e8;
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}
.xb-admin-content .flash_error {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.3);
}

/* Admin form elements */
.xb-admin-content input[type="text"],
.xb-admin-content input[type="password"],
.xb-admin-content input[type="email"],
.xb-admin-content select,
.xb-admin-content textarea,
.xb-admin-content input.string_small,
.xb-admin-content input.password,
.xb-admin-content input.checkbox {
    background: rgba(0, 2, 15, 0.5);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 6px;
    color: #fff;
    padding: 8px 12px;
    height: auto;
    width: auto;
    max-width: 100%;
}
.xb-admin-content input[type="text"]:focus,
.xb-admin-content input[type="password"]:focus,
.xb-admin-content select:focus,
.xb-admin-content textarea:focus {
    border-color: var(--color-primary, #00ff97);
    outline: none;
}

/* Admin buttons */
.xb-admin-content .button-blue,
.xb-admin-content .button-red,
.xb-admin-content .button-green,
.xb-admin-content .button-gray,
.xb-admin-content input[type="submit"],
.xb-admin-content button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.xb-admin-content .button-blue,
.xb-admin-content input[type="submit"] {
    background: var(--color-primary, #00ff97);
    color: var(--color-secondary, #00020f);
}
.xb-admin-content .button-blue:hover,
.xb-admin-content input[type="submit"]:hover {
    background: #00d97a;
}
.xb-admin-content .button-red {
    background: #ef4444;
    color: #fff;
}
.xb-admin-content .button-green {
    background: #10b981;
    color: #fff;
}
.xb-admin-content .button-gray {
    background: rgba(255,255,255,0.1);
    color: #e0e0e8;
}

/* Admin fieldset/legend */
.xb-admin-content fieldset {
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}
.xb-admin-content legend {
    color: var(--color-primary, #00ff97);
    font-weight: 600;
    padding: 0 10px;
    font-size: 15px;
}

/* Admin label text */
.xb-admin-content label {
    color: #c8c9d1;
    font-size: 14px;
}

/* Admin settings rows: label on left, input on right */
.xb-admin-content table.formatTable tr td:first-child {
    color: #c8c9d1;
}

/* ============================================================
   AUTH PAGES (login / register) — Aivora-style upgrade
   ============================================================ */

/* ---- Auth hero (new compact, replaced old xb-auth-hero) ---- */
.xb-auth-hero {
    padding: 40px 0 40px;
    text-align: center;
    position: relative;
    background: transparent;
}
.xb-auth-hero .xb-auth-hero-inner { max-width: 720px; margin: 0 auto; }
.xb-auth-hero .sub-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #00ff97;
    margin-bottom: 20px;
    padding: 8px 22px;
    border: 1px solid rgba(0, 255, 151, 0.3);
    border-radius: 30px;
    background: rgba(0, 255, 151, 0.05);
}
.xb-auth-hero .sub-title i { font-size: 12px; }
.xb-auth-hero .title {
    font-family: 'SportingGrotesque', 'DM Sans', sans-serif;
    font-size: clamp(34px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: #ffffff;
    margin: 0;
}
.xb-auth-hero .description {
    font-size: 17px;
    color: #80808a;
    margin-top: 20px;
    line-height: 1.6;
}

/* ---- Form heading inside card ---- */
.xb-auth-form-heading { margin-bottom: 30px; }
.xb-auth-form-heading h3 {
    font-family: 'SportingGrotesque', 'DM Sans', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px;
    letter-spacing: -0.02em;
}
.xb-auth-form-heading p {
    font-size: 14px;
    color: #6b7a99;
    margin: 0;
}

/* ---- Divider with "or" ---- */
.xb-auth-divider {
    position: relative;
    margin: 28px 0;
}
.xb-auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}
.xb-auth-divider span {
    position: relative;
    background: linear-gradient(209deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
    padding: 0 18px;
    color: #6b7a99;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ---- Secondary links grid ---- */
.xb-auth-footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
@media (max-width: 575px) {
    .xb-auth-footer-links { grid-template-columns: 1fr; }
}
.xb-auth-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 16px 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    color: #c8c9d1 !important;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    transition: all 0.25s ease;
}
.xb-auth-link i {
    font-size: 18px;
    color: #00ff97;
    margin-bottom: 4px;
}
.xb-auth-link:hover {
    color: #ffffff !important;
    border-color: rgba(0, 255, 151, 0.3);
    background: rgba(0, 255, 151, 0.05);
    transform: translateY(-2px);
}
.xb-auth-link--primary {
    background: rgba(0, 255, 151, 0.08);
    border-color: rgba(0, 255, 151, 0.25);
}
.xb-auth-link--primary:hover {
    background: rgba(0, 255, 151, 0.15);
}

/* ---- Trust badges ---- */
.xb-auth-trust {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 28px;
    padding-top: 10px;
}
.xb-auth-trust span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #6b7a99;
}
.xb-auth-trust i { color: #00ff97; font-size: 14px; }

/* ============================================================
   DEPOSIT CREATE PAGE (/deposit?add) — Aivora style
   Renders via rw3.php inline PHP, so we style the elements
   ============================================================ */
.xb-deposit-create {
    max-width: 880px;
    margin: 40px auto;
    padding: 40px;
    border-radius: 16px;
    background: linear-gradient(209deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: #ffffff;
    font-family: 'DM Sans', sans-serif;
}
.xb-deposit-create h1 {
    font-family: 'SportingGrotesque', 'DM Sans', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px;
    letter-spacing: -0.02em;
}
.xb-deposit-create > p {
    color: #80808a;
    margin: 0 0 30px;
    font-size: 15px;
}

/* ============================================================
   ADMIN FORM FIELDS — prevent overflow on mobile
   ============================================================ */
.xb-admin-content .xb-input,
.xb-admin-content input[type="text"],
.xb-admin-content input[type="password"],
.xb-admin-content input[type="email"],
.xb-admin-content textarea,
.xb-admin-content .xb-plaintext {
    max-width: 100% !important;
    word-break: break-word;
    overflow-wrap: break-word;
    word-wrap: break-word;
}
.xb-admin-content .xb-plaintext {
    display: block;
    white-space: pre-wrap;
    overflow-x: auto;
    max-width: 100%;
}
.xb-admin-content .xb-field-group {
    max-width: 100%;
    overflow: visible;
}

/* ============================================================
   DEPOSITS TABLE — cell ID style
   ============================================================ */
.xb-cell-id {
    font-family: 'DM Sans', monospace;
    font-size: 13px;
    color: #00ff97;
    font-weight: 600;
}

/* ============================================================
   MOBILE ADAPTIVITY — tables and forms
   ============================================================ */

/* Make all data tables horizontally scrollable on small screens */
@media (max-width: 767px) {
    .xb-table-wrap,
    .xb-data-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .xb-data-table .table {
        min-width: 600px;
    }
    /* Smaller cells on mobile */
    .xb-data-table .table th,
    .xb-data-table .table td {
        padding: 8px 10px;
        font-size: 13px;
        white-space: nowrap;
    }
    /* Cabinet dashboard: stack action buttons */
    .xb-dash-actions {
        flex-wrap: wrap;
    }
    .xb-dash-action {
        flex: 1 1 calc(50% - 6px);
        min-width: 140px;
    }
    /* Dashboard links grid: single column */
    .xb-dash-links {
        grid-template-columns: 1fr !important;
    }
    /* Auth footer links: single column */
    .xb-auth-footer-links {
        grid-template-columns: 1fr !important;
    }
    /* Form cards less padding on mobile */
    .xb-auth-section .xb-form-card {
        padding: 25px 20px;
    }
    .xb-deposit-create {
        padding: 25px 20px;
    }
    /* Balance hero */
    .xb-balance-hero-inner {
        padding: 20px 16px;
    }
    /* Subnav scroll horizontally */
    .xb-subnav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .xb-subnav-list {
        flex-wrap: nowrap;
        white-space: nowrap;
    }
    .xb-subnav-item span {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .xb-dash-action {
        flex: 1 1 100%;
    }
    .xb-auth-trust {
        flex-direction: column;
        gap: 12px;
    }
}

/* ============================================================
   ADMIN NAVIGATION — subnav for admin pages
   ============================================================ */
.xb-admin-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
    padding: 16px;
    background: linear-gradient(209deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
}
.xb-admin-nav-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #c8c9d1;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.xb-admin-nav-item i {
    font-size: 14px;
    color: #00ff97;
}
.xb-admin-nav-item:hover {
    color: #ffffff;
    background: rgba(0, 255, 151, 0.08);
    border-color: rgba(0, 255, 151, 0.25);
    transform: translateY(-1px);
}
.xb-admin-nav-item.active {
    color: #00020f;
    background: #00ff97;
    border-color: #00ff97;
}
.xb-admin-nav-item.active i {
    color: #00020f;
}
.xb-admin-nav-logout {
    margin-left: auto;
}
.xb-admin-nav-logout:hover {
    color: #ff4757;
    background: rgba(255, 71, 87, 0.1);
    border-color: rgba(255, 71, 87, 0.3);
}
.xb-admin-nav-logout:hover i {
    color: #ff4757;
}

@media (max-width: 767px) {
    .xb-admin-nav {
        gap: 6px;
        padding: 12px;
    }
    .xb-admin-nav-item {
        flex: 1 1 calc(50% - 3px);
        justify-content: center;
        padding: 10px 8px;
        font-size: 12px;
    }
    .xb-admin-nav-item span {
        display: none;
    }
    .xb-admin-nav-item i {
        font-size: 16px;
    }
    .xb-admin-nav-item::after {
        content: attr(data-label);
    }
}

/* ============================================================
   ACCOUNT PAGE — quick action cards
   ============================================================ */
.xb-account-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
@media (max-width: 767px) {
    .xb-account-actions { grid-template-columns: 1fr; }
}
.xb-account-action {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border-radius: 14px;
    background: linear-gradient(209deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
    color: #ffffff;
    transition: all 0.25s ease;
}
.xb-account-action:hover {
    color: #ffffff;
    border-color: rgba(0, 255, 151, 0.3);
    background: rgba(0, 255, 151, 0.04);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px -8px rgba(0, 255, 151, 0.2);
}
.xb-account-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 12px;
    background: rgba(0, 255, 151, 0.1);
    color: #00ff97;
    font-size: 18px;
}
.xb-account-action-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 0;
}
.xb-account-action-body strong {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
}
.xb-account-action-body small {
    font-size: 13px;
    color: #6b7a99;
}
.xb-account-action-arrow {
    color: #6b7a99;
    font-size: 14px;
    transition: transform 0.2s ease;
}
.xb-account-action:hover .xb-account-action-arrow {
    color: #00ff97;
    transform: translateX(4px);
}

/* ============================================================
   FORM-CARD layout improvements (account & all edit forms)
   ============================================================ */
/* Read-only fields (Login, Email display) */
.xb-form-card .xb-plaintext {
    display: block;
    padding: 14px 18px;
    background: rgba(0, 255, 151, 0.05);
    border: 1px solid rgba(0, 255, 151, 0.15);
    border-radius: 10px;
    color: #00ff97;
    font-size: 15px;
    font-weight: 500;
    word-break: break-all;
}

/* Section divider with title */
.xb-form-card .xb-form-divider {
    margin: 30px 0 20px;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.xb-form-card .xb-form-section-title {
    color: #00ff97;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 16px 0 20px;
}

/* Field hint text */
.xb-form-card .xb-field-hint {
    display: block;
    color: #6b7a99;
    font-size: 12px;
    margin-top: 6px;
}
.xb-form-card .xb-field-remark {
    color: #6b7a99;
    font-size: 13px;
    font-weight: 400;
}

/* Form title h1/h2 inside form-card */
.xb-admin-content > h1,
.xb-section h1 {
    font-family: 'SportingGrotesque', 'DM Sans', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 24px;
    letter-spacing: -0.02em;
}
.xb-form-card .xb-form-title {
    font-family: 'SportingGrotesque', 'DM Sans', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

/* GA QR code styling */
.xb-form-card img[src*="qr-server"],
.xb-form-card img[src*="qr"] {
    display: block;
    margin: 16px auto;
    padding: 12px;
    background: #ffffff;
    border-radius: 10px;
    max-width: 200px;
    height: auto;
}
.xb-form-card big {
    display: inline-block;
    padding: 8px 14px;
    background: rgba(0, 255, 151, 0.08);
    border: 1px dashed rgba(0, 255, 151, 0.3);
    border-radius: 8px;
    color: #00ff97;
    font-family: monospace;
    font-size: 16px;
    letter-spacing: 1px;
    margin: 8px 0;
    word-break: break-all;
}

/* Buttons at bottom of account page */
.xb-section .button-green,
.xb-section .button-gray {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-right: 8px;
    margin-bottom: 8px;
}
.xb-section .button-green {
    background: rgba(0, 255, 151, 0.1);
    border: 1px solid rgba(0, 255, 151, 0.3);
    color: #00ff97;
}
.xb-section .button-green:hover {
    background: #00ff97;
    color: #00020f;
    transform: translateY(-2px);
}
.xb-section .button-gray {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #c8c9d1;
}
.xb-section .button-gray:hover {
    border-color: rgba(0, 255, 151, 0.3);
    color: #00ff97;
}

/* ============================================================
   RESPONSIVE FORM FIELDS — single column (vertical stack) on all screens
   ============================================================ */
.xb-section .xb-form-card .row,
.xb-section .xb-form-card .row.g-4 {
    --bs-gutter-x: 0;
    --bs-gutter-y: 0;
    display: block;
}
.xb-section .xb-form-card .row > .col-md-6,
.xb-section .xb-form-card .row > .col-12,
.xb-section .xb-form-card .row > div {
    flex: none;
    max-width: 100%;
    width: 100%;
    padding: 0;
}
@media (max-width: 767px) {
    /* Smaller form-card padding */
    .xb-section .xb-form-card {
        padding: 25px 20px;
    }
    /* Page hero smaller on mobile */
    .xb-auth-hero .title {
        font-size: 28px;
    }
    .xb-auth-hero .description {
        font-size: 15px;
    }
}

/* ============================================================
   ADMIN FILTER GRID — responsive filter form layout
   ============================================================ */
.xb-admin-filter-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 8px;
}
@media (max-width: 991px) {
    .xb-admin-filter-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
    .xb-admin-filter-grid { grid-template-columns: 1fr; }
}
/* Filter fields: override the row/col behavior */
.xb-admin-filter-grid .col-md-6,
.xb-admin-filter-grid .col-12,
.xb-admin-filter-grid > div {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
}
.xb-admin-filter-grid .xb-field-group { margin-bottom: 0; }

/* Filter buttons row */
.xb-admin-content .xb-form-card .xb-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}
.xb-admin-content .xb-form-card .xb-form-actions .thm-btn,
.xb-admin-content .xb-form-card .xb-form-actions button {
    width: auto;
    min-width: 120px;
    padding: 12px 24px;
    font-size: 14px;
}

/* ============================================================
   ADMIN TABLE — override formatTable for remaining cases
   ============================================================ */
.xb-admin-content table.formatTable {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}
.xb-admin-content table.formatTable td {
    padding: 8px 10px;
    vertical-align: top;
}

/* Admin list table improvements */
.xb-admin-content .xb-data-table {
    overflow-x: auto;
}
.xb-admin-content .xb-data-table .table {
    min-width: 800px;
}
.xb-admin-content .xb-data-table .table th {
    background: rgba(0, 255, 151, 0.06);
    color: #00ff97;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid rgba(0, 255, 151, 0.2);
    white-space: nowrap;
    padding: 12px 10px;
}
.xb-admin-content .xb-data-table .table td {
    padding: 10px;
    font-size: 14px;
    color: #c8c9d1;
    vertical-align: middle;
}
.xb-admin-content .xb-data-table .table td a {
    color: #00ff97;
    text-decoration: none;
}
.xb-admin-content .xb-data-table .table td a:hover {
    text-decoration: underline;
}
.xb-admin-content .xb-data-table .xb-list-actions {
    background: rgba(255, 255, 255, 0.02);
    padding: 16px;
    border-radius: 10px;
    margin-top: 16px;
}
.xb-admin-content .xb-data-table .xb-list-action-btn {
    padding: 10px 18px;
    font-size: 13px;
}

/* Admin action buttons (Create deposit/operation/user) */
.xb-admin-content .button-green {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    background: rgba(0, 255, 151, 0.1);
    border: 1px solid rgba(0, 255, 151, 0.3);
    color: #00ff97;
    transition: all 0.2s ease;
}
.xb-admin-content .button-green:hover {
    background: #00ff97;
    color: #00020f;
    transform: translateY(-2px);
}
.xb-admin-content .button-green i { font-size: 12px; }

/* ============================================================
   CAPTCHA — Aivora-styled graphic captcha
   ============================================================ */
.xb-captcha-wrap {
    margin: 20px 0;
}
.xb-captcha-wrap table.formatTable {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}
.xb-captcha-wrap table.formatTable td {
    padding: 0;
    vertical-align: middle;
}
.xb-captcha-wrap table.formatTable td:first-child {
    width: 160px;
    padding-right: 14px;
}
.xb-captcha-wrap img.captcha {
    width: 160px !important;
    height: 50px !important;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    cursor: pointer;
    background: rgba(0, 2, 15, 0.6);
    transition: border-color 0.2s ease;
}
.xb-captcha-wrap img.captcha:hover {
    border-color: rgba(0, 255, 151, 0.4);
}
.xb-captcha-wrap .descr_req {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6b7a99;
    margin-bottom: 8px;
}
.xb-captcha-wrap input.captcha,
.xb-captcha-wrap input[name="__Capt"] {
    width: 100% !important;
    height: 50px !important;
    padding: 0 18px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 10px;
    color: #ffffff;
    font-size: 16px;
    letter-spacing: 2px;
    box-sizing: border-box;
    outline: none;
}
.xb-captcha-wrap input.captcha:focus {
    border-color: #00ff97 !important;
    background: rgba(0, 255, 151, 0.04) !important;
    box-shadow: 0 0 0 3px rgba(0, 255, 151, 0.12);
}

/* ============================================================
   ADMIN SUBMIT BUTTONS — green background everywhere
   ============================================================ */
.xb-admin-content .xb-form-submit,
.xb-admin-content button[type="submit"].thm-btn,
.xb-admin-content .xb-form-actions .thm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #00020f !important;
    background: #00ff97 !important;
    border: 1px solid #00ff97 !important;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    min-width: 140px;
}
.xb-admin-content .xb-form-submit:hover,
.xb-admin-content button[type="submit"].thm-btn:hover,
.xb-admin-content .xb-form-actions .thm-btn:hover {
    background: #00d97a !important;
    border-color: #00d97a !important;
    transform: translateY(-2px);
}

/* Admin select dropdowns — dark themed */
.xb-admin-content .xb-select {
    width: 100%;
    height: 48px;
    padding: 0 40px 0 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: #ffffff;
    font-size: 14px;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="%2300ff97" stroke-width="2"><polyline points="6 9 12 15 18 9"/></svg>');
    background-repeat: no-repeat;
    background-position: right 14px center;
}
.xb-admin-content .xb-select option {
    background: #00020f;
    color: #ffffff;
}
.xb-admin-content .xb-select:focus {
    border-color: #00ff97;
    box-shadow: 0 0 0 3px rgba(0, 255, 151, 0.12);
}

/* ============================================================
   FIX: footer heading "SmartEarnNow" causes horizontal scroll
   ============================================================ */
body {
    overflow-x: hidden;
}
.xb-footer-heading {
    overflow: hidden;
}
.xb-footer-heading .title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
    max-width: 100vw;
}

/* ============================================================
   GLOBAL SECONDARY BUTTONS (Cancel, Delete, Reset)
   ============================================================ */
.xb-form-delete,
.thm-btn--border {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #ff4757 !important;
    background: transparent !important;
    border: 1px solid rgba(255, 71, 87, 0.4) !important;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
}
.xb-form-delete:hover,
.thm-btn--border:hover {
    color: #ffffff !important;
    background: rgba(255, 71, 87, 0.15) !important;
    border-color: #ff4757 !important;
    transform: translateY(-2px);
}
/* When it's a "Cancel" (not delete) - use neutral gray */
.xb-form-actions .thm-btn--border:not(.xb-form-delete) {
    color: #c8c9d1 !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}
.xb-form-actions .thm-btn--border:not(.xb-form-delete):hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

/* ---- Click-to-copy elements (wallet, amount, referral link) ---- */
.xb-copy {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: all;
    color: #00ff97;
    border-bottom: 1px dashed rgba(0, 255, 151, 0.4);
    transition: color 0.15s, border-color 0.15s, background 0.15s;
    padding: 1px 2px;
    word-break: break-all;
}
.xb-copy:hover {
    color: #00ff97;
    border-bottom-color: #00ff97;
    background: rgba(0, 255, 151, 0.08);
}
.xb-copy.xb-copy--done {
    color: #00ff97 !important;
    border-bottom-color: transparent;
    background: rgba(0, 255, 151, 0.12);
}
.xb-copy i {
    font-size: 0.85em;
    opacity: 0.7;
}
/* formatTable rows (manual payment details) */
.formatTable .xb-copy {
    color: #00ff97;
    font-weight: 600;
}
/* Referral link card variant */
.xb-copy-link {
    font-weight: 500;
    font-size: 0.95rem;
}
/* Small hint above the payment details table */
.xb-copy-hint {
    color: #6b7a99;
    font-size: 0.85rem;
    margin: 0 0 8px;
}
.xb-copy-hint i {
    color: #00ff97;
    margin-right: 4px;
}

/* ---- Deposit detail page (depo/view.tpl) ---- */
.xb-depo-hero {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 32px 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(209deg, rgba(0, 255, 151, 0.06), rgba(255, 255, 255, 0.02));
}
.xb-depo-hero-icon {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 255, 151, 0.1);
    border: 1px solid rgba(0, 255, 151, 0.25);
    font-size: 32px;
    color: #00ff97;
}
.xb-depo-hero-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.xb-depo-hero-label {
    color: #6b7a99;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.xb-depo-hero-plan {
    margin: 0;
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
}
.xb-depo-table {
    margin: 0;
}
.xb-depo-table tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.xb-depo-table tr:last-child {
    border-bottom: none;
}
.xb-depo-table td {
    padding: 16px 40px;
    border: none;
    vertical-align: middle;
}
.xb-depo-label {
    color: #80808a;
    font-size: 0.9rem;
    width: 45%;
}
.xb-depo-label i {
    color: #00ff97;
    margin-right: 8px;
    width: 16px;
}
.xb-depo-value {
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
}
.xb-depo-value small {
    color: #6b7a99;
    font-weight: 400;
}
.xb-depo-earned {
    color: #00ff97 !important;
}
@media (max-width: 768px) {
    .xb-depo-hero {
        flex-direction: column;
        text-align: center;
        padding: 24px 20px;
    }
    .xb-depo-table td {
        padding: 14px 20px;
    }
    .xb-depo-label {
        width: 40%;
    }
}

/* ---- Captcha (new layout: image + input side by side) ---- */
.xb-captcha-row {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    margin-top: 8px;
}
.xb-captcha-row .xb-captcha-img {
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    line-height: 0;
}
.xb-captcha-row .xb-captcha-img img {
    display: block;
    height: 52px;
    cursor: pointer;
    border-radius: 7px;
}
.xb-captcha-row .xb-field-group {
    flex: 1;
    min-width: 0;
}
.xb-captcha-row .xb-input {
    letter-spacing: 2px;
}
@media (max-width: 480px) {
    .xb-captcha-row {
        flex-direction: column;
        align-items: stretch;
    }
    .xb-captcha-row .xb-captcha-img {
        align-self: flex-start;
    }
}

/* ---- Contact page: hero ---- */
.xb-page-hero {
    padding: 180px 0 120px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}
.xb-page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,2,15,0.6) 0%, rgba(0,2,15,0.85) 100%);
}
.xb-page-hero-content {
    max-width: 720px;
    margin: 0 auto;
}
.xb-page-hero-subtitle {
    display: inline-block;
    color: #00ff97;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
    padding: 6px 18px;
    border: 1px solid rgba(0, 255, 151, 0.3);
    border-radius: 30px;
    background: rgba(0, 255, 151, 0.06);
}
.xb-page-hero-title {
    color: #ffffff;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}
.xb-page-hero-text {
    color: #c8c9d1;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

/* ---- Contact page: method cards ---- */
.xb-method-card {
    height: 100%;
    padding: 45px 35px;
    text-align: center;
    background: linear-gradient(209deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
    border-radius: 20px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.xb-method-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 255, 151, 0.35);
}
.xb-method-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 255, 151, 0.15), rgba(0, 255, 151, 0.05));
    border: 1px solid rgba(0, 255, 151, 0.25);
    font-size: 32px;
    color: #00ff97;
}
.xb-method-title {
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.xb-method-text {
    color: #c8c9d1;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 28px;
    min-height: 50px;
}
.xb-method-btn {
    display: inline-flex;
}

/* ---- Contact page: form ---- */
.xb-contact-form-section {
    background: rgba(0, 2, 15, 0.4);
}
.xb-contact-form-card {
    max-width: 820px;
    margin: 0 auto;
    padding: 50px 50px 55px;
    border-radius: 20px;
    background: linear-gradient(209deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
}
.xb-form-heading {
    margin-bottom: 40px;
}
.xb-form-eyebrow {
    display: inline-block;
    color: #00ff97;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}
.xb-form-title {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.xb-form-subtitle {
    color: #6b7a99;
    font-size: 1rem;
    margin: 0;
}
.xb-contact-form-wrap .xb-textarea {
    min-height: 140px;
    padding: 14px 18px;
    line-height: 1.6;
}
.xb-contact-submit {
    min-width: 220px;
    justify-content: center;
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .xb-page-hero-title { font-size: 2.5rem; }
    .xb-page-hero { padding: 140px 0 80px; }
}
@media (max-width: 768px) {
    .xb-contact-form-card { padding: 35px 25px 40px; }
    .xb-method-card { padding: 35px 25px; }
    .xb-form-title { font-size: 1.6rem; }
}
@media (max-width: 480px) {
    .xb-page-hero-title { font-size: 2rem; }
    .xb-page-hero-text { font-size: 1rem; }
    .xb-contact-submit { width: 100%; }
}

/* ---- Global thm-btn fix for landing pages (outside .xb-section) ---- */
.thm-btn:not(.thm-btn--border) {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #00ff97 !important;
    color: #00020f !important;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 30px;
    border: none;
    transition: all 0.3s ease;
    cursor: pointer;
}
.thm-btn:not(.thm-btn--border):hover {
    background: #00d97a !important;
    color: #00020f !important;
    transform: translateY(-2px);
}
.thm-btn:not(.thm-btn--border) .text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.thm-btn--border {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent !important;
    color: #00ff97 !important;
    border: 1px solid rgba(0, 255, 151, 0.5) !important;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 30px;
    transition: all 0.3s ease;
    cursor: pointer;
}
.thm-btn--border:hover {
    background: rgba(0, 255, 151, 0.1) !important;
    border-color: #00ff97 !important;
    transform: translateY(-2px);
}
.thm-btn--border .text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
/* ---- Force dark theme on xb-input/xb-textarea inside landing pages ---- */
.xb-contact-form-wrap .xb-input,
.xb-contact-form-wrap .xb-textarea {
    background: rgba(0, 2, 15, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    width: 100% !important;
}
.xb-contact-form-wrap .xb-input::placeholder,
.xb-contact-form-wrap .xb-textarea::placeholder {
    color: #6c6d75 !important;
}
.xb-contact-form-wrap .xb-input:focus,
.xb-contact-form-wrap .xb-textarea:focus {
    border-color: rgba(0, 255, 151, 0.5) !important;
}
.xb-contact-form-wrap .xb-textarea {
    min-height: 140px;
    padding: 14px 18px;
    line-height: 1.6;
}

/* ==================== */
/* CABINET SIDEBAR LAYOUT */
/* ==================== */
.xb-dash-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    align-items: start;
}
.xb-dash-sidebar {
    position: sticky;
    top: 20px;
}
.xb-dash-sidebar-card {
    padding: 28px 22px;
    border-radius: 16px;
    background: linear-gradient(209deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
}
.xb-dash-user {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 22px;
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.xb-dash-user-avatar {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 255, 151, 0.1);
    border: 1px solid rgba(0, 255, 151, 0.25);
    color: #00ff97;
    font-size: 24px;
}
.xb-dash-user-label {
    color: #6b7a99;
    font-size: 0.8rem;
}
.xb-dash-user-name {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 2px 0 0;
    word-break: break-word;
}
.xb-dash-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.xb-dash-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    color: #c8c9d1;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    transition: all 0.2s ease;
}
.xb-dash-nav-item i {
    width: 20px;
    text-align: center;
    color: #6b7a99;
    font-size: 1rem;
    transition: color 0.2s;
}
.xb-dash-nav-item:hover {
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
}
.xb-dash-nav-item:hover i {
    color: #00ff97;
}
.xb-dash-nav-item.active {
    background: rgba(0, 255, 151, 0.1);
    color: #00ff97;
    font-weight: 600;
}
.xb-dash-nav-item.active i {
    color: #00ff97;
}
.xb-dash-nav-logout {
    margin-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 16px;
    color: #ff4757;
}
.xb-dash-nav-logout i {
    color: #ff4757;
}
.xb-dash-nav-logout:hover {
    background: rgba(255, 71, 87, 0.08);
    color: #ff4757;
}
.xb-dash-nav-logout:hover i {
    color: #ff4757;
}
.xb-dash-main {
    min-width: 0;
}

/* ==================== */
/* TICKET CHAT */
/* ==================== */
.xb-ticket-chat {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 24px 0;
}
.xb-ticket-msg {
    max-width: 75%;
    border-radius: 14px;
    overflow: hidden;
}
.xb-ticket-msg:not(.xb-ticket-msg--admin):not(.xb-ticket-msg--support) {
    align-self: flex-end;
}
.xb-ticket-msg--admin,
.xb-ticket-msg--support {
    align-self: flex-start;
}
.xb-ticket-msg-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    font-size: 0.82rem;
    background: rgba(255, 255, 255, 0.06);
}
.xb-ticket-msg-author {
    font-weight: 600;
    color: #00ff97;
}
.xb-ticket-msg--admin .xb-ticket-msg-author,
.xb-ticket-msg--support .xb-ticket-msg-author {
    color: #6b7a99;
}
.xb-ticket-msg-time {
    color: #6b7a99;
    font-size: 0.78rem;
}
.xb-ticket-msg-body {
    padding: 14px 16px;
    color: #e0e0e8;
    font-size: 0.92rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* ==================== */
/* MARKETING PAGE */
/* ==================== */
.xb-marketing-header {
    max-width: 680px;
    margin: 0 auto 50px;
}
.xb-marketing-eyebrow {
    display: inline-block;
    color: #00ff97;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 14px;
    padding: 6px 18px;
    border: 1px solid rgba(0, 255, 151, 0.3);
    border-radius: 30px;
    background: rgba(0, 255, 151, 0.06);
}
.xb-marketing-title {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
}
.xb-marketing-subtitle {
    color: #c8c9d1;
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0;
}
.xb-marketing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.xb-plan-card {
    padding: 36px 30px;
    border-radius: 20px;
    background: linear-gradient(209deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
    text-align: center;
    position: relative;
    transition: transform 0.3s, border-color 0.3s;
}
.xb-plan-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 255, 151, 0.35);
}
.xb-plan-card--featured {
    border-color: rgba(0, 255, 151, 0.3);
    background: linear-gradient(209deg, rgba(0,255,151,0.08), rgba(255,255,255,0.02));
}
.xb-plan-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    background: #00ff97;
    color: #00020f;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
}
.xb-plan-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 255, 151, 0.1);
    border: 1px solid rgba(0, 255, 151, 0.25);
    color: #00ff97;
    font-size: 28px;
}
.xb-plan-name {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
}
.xb-plan-profit {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.xb-plan-profit-val {
    display: block;
    color: #00ff97;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}
.xb-plan-profit-label {
    color: #6b7a99;
    font-size: 0.85rem;
}
.xb-plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    text-align: left;
}
.xb-plan-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    color: #c8c9d1;
    font-size: 0.92rem;
}
.xb-plan-features i {
    color: #00ff97;
    font-size: 0.8rem;
}
.xb-plan-btn {
    width: 100%;
    justify-content: center;
}
.xb-steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.xb-step {
    padding: 30px 24px;
    border-radius: 16px;
    background: linear-gradient(209deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
    text-align: center;
    position: relative;
}
.xb-step-num {
    position: absolute;
    top: 16px;
    right: 18px;
    color: rgba(0, 255, 151, 0.2);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}
.xb-step-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 255, 151, 0.1);
    color: #00ff97;
    font-size: 22px;
}
.xb-step h4 {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}
.xb-step p {
    color: #6b7a99;
    font-size: 0.88rem;
    line-height: 1.5;
    margin: 0;
}
.xb-marketing-cta .thm-btn {
    min-width: 240px;
    justify-content: center;
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .xb-dash-layout { grid-template-columns: 1fr; }
    .xb-dash-sidebar { position: static; }
    .xb-marketing-grid { grid-template-columns: 1fr; }
    .xb-steps-grid { grid-template-columns: repeat(2, 1fr); }
    .xb-marketing-title { font-size: 2rem; }
}
@media (max-width: 576px) {
    .xb-steps-grid { grid-template-columns: 1fr; }
    .xb-ticket-msg { max-width: 100%; }
    .xb-plan-card { padding: 28px 20px; }
}

/* ==================== */
/* MATRIX MLM PAGE */
/* ==================== */
.xb-matrix-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.xb-matrix-stat {
    padding: 24px;
    border-radius: 16px;
    background: linear-gradient(209deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
    text-align: center;
}
.xb-matrix-stat-icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 255, 151, 0.1);
    color: #00ff97;
    font-size: 20px;
}
.xb-matrix-stat-val {
    color: #fff;
    font-size: 1.6rem;
    font-weight: 800;
}
.xb-matrix-stat-label {
    color: #6b7a99;
    font-size: 0.85rem;
    margin-top: 4px;
}

/* Matrix progress cards */
.xb-matrix-cards {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}
.xb-mcard {
    padding: 24px 16px;
    border-radius: 14px;
    background: linear-gradient(209deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
    text-align: center;
    position: relative;
    opacity: 0.6;
    transition: opacity 0.3s;
}
.xb-mcard--active { opacity: 1; border-color: rgba(0,255,151,0.4); }
.xb-mcard--done { opacity: 0.8; }
.xb-mcard-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 255, 151, 0.1);
    color: #00ff97;
    font-size: 22px;
}
.xb-mcard-name { color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.xb-mcard-cost { color: #6b7a99; font-size: 0.85rem; margin-bottom: 14px; }
.xb-mcard-progress { margin-top: 10px; }
.xb-mcard-filled { display: block; color: #00ff97; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
.xb-mcard-bar { display: block; height: 4px; background: rgba(255,255,255,0.1); border-radius: 2px; overflow: hidden; }
.xb-mcard-bar-fill { display: block; height: 100%; background: #00ff97; border-radius: 2px; transition: width 0.5s; }
.xb-mcard-locked { color: #6b7a99; font-size: 0.85rem; }
.xb-mcard-locked i { font-size: 0.8rem; }

/* Join button */
.xb-matrix-join-btn { min-width: 280px; justify-content: center; font-size: 1.1rem; padding: 16px 36px; }

/* Matrix tree */
.xb-matrix-tree-wrap {
    padding: 40px 30px;
    border-radius: 16px;
    background: linear-gradient(209deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
    overflow-x: auto;
}
.xb-matrix-tree { display: flex; flex-direction: column; align-items: center; gap: 0; }
.xb-matrix-level { display: flex; gap: 24px; justify-content: center; position: relative; z-index: 1; }
.xb-matrix-connector { width: 2px; height: 32px; background: rgba(0,255,151,0.2); }
.xb-matrix-node {
    width: 110px;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    padding: 10px;
    background: rgba(255,255,255,0.04);
    border: 2px dashed rgba(255,255,255,0.15);
    transition: all 0.3s;
}
.xb-matrix-node--sm { width: 90px; min-height: 70px; }
.xb-matrix-node--you {
    background: rgba(0, 255, 151, 0.12);
    border: 2px solid #00ff97;
}
.xb-matrix-node--filled {
    background: rgba(0, 255, 151, 0.08);
    border: 2px solid rgba(0, 255, 151, 0.4);
}
.xb-matrix-node--empty {
    opacity: 0.5;
}
.xb-matrix-node-letter {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: #00ff97;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 6px;
}
.xb-matrix-node--you .xb-matrix-node-letter { background: #00ff97; color: #00020f; }
.xb-matrix-node-name { color: #c8c9d1; font-size: 0.78rem; text-align: center; word-break: break-all; line-height: 1.3; }
.xb-matrix-node--you .xb-matrix-node-name { color: #00ff97; font-weight: 600; }
.xb-matrix-node--filled .xb-matrix-node-name { color: #fff; }

/* Referral tree */
.xb-matrix-refs {
    padding: 28px;
    border-radius: 16px;
    background: linear-gradient(209deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
}
.xb-ref-level {
    position: relative;
    margin-bottom: 26px;
    padding-bottom: 22px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}
.xb-ref-level:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }

/* level header: glowing badge + title + count */
.xb-ref-level-label {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #e8eaf0;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 14px;
}
.xb-ref-level-label small { color: #6b7a99; font-weight: 400; }
.xb-ref-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: linear-gradient(135deg, #00ff97, #00c973);
    color: #00020f;
    font-size: 0.85rem;
    font-weight: 800;
    box-shadow: 0 0 16px rgba(0, 255, 151, 0.35);
    flex: 0 0 auto;
}

/* people chips */
.xb-ref-people { display: flex; flex-wrap: wrap; gap: 10px; padding-left: 42px; position: relative; }
/* connector line from the level badge down to the chips */
.xb-ref-people::before {
    content: '';
    position: absolute;
    left: 14px;
    top: -20px;
    bottom: 10px;
    width: 1px;
    background: linear-gradient(180deg, rgba(0,255,151,0.5), rgba(0,255,151,0.05));
}
.xb-ref-person {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 16px 7px 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #dfe3ec;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.25s ease;
}
.xb-ref-person:hover {
    border-color: rgba(0, 255, 151, 0.5);
    background: rgba(0, 255, 151, 0.08);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 255, 151, 0.12);
}
/* icon becomes a round avatar */
.xb-ref-person i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0,255,151,0.25), rgba(0,255,151,0.08));
    color: #00ff97;
    font-size: 0.8rem;
    flex: 0 0 auto;
}

@media (max-width: 768px) {
    .xb-ref-people { padding-left: 24px; }
    .xb-ref-people::before { left: 8px; }
    .xb-matrix-refs { padding: 20px 16px; }
}

/* ---- Responsive ---- */
@media (max-width: 1199px) {
    .xb-subnav-list { gap: 24px; }
    .xb-subnav-item a { padding: 16px 0; font-size: 15px; }
}


/* ============================================================
   TABLE FIXES — force dark text color, remove horizontal scroll
   ============================================================ */
.xb-table {
    color: #e0e0e8 !important;
}
.xb-table tbody td {
    color: #c8c9d1 !important;
}
.xb-table tbody tr td * {
    color: inherit;
}
.xb-table tbody tr td a {
    color: var(--color-primary, #00ff97) !important;
}
.xb-table tbody tr td .text-white,
.xb-table tbody tr td .text-white-50 {
    color: inherit !important;
}
.xb-table tbody tr td .text-danger {
    color: #ef4444 !important;
}
/* Remove table-responsive wrapper scroll when table fits */
.xb-data-table .table-responsive {
    overflow-x: visible;
    border: none;
}
@media (max-width: 767px) {
    .xb-data-table .table-responsive {
        overflow-x: auto;
    }
}

/* ---- TABLE COLOR FIX: override Bootstrap's white default ---- */
.xb-table,
.xb-data-table .table {
    --bs-table-color: #e0e0e8;
    --bs-table-bg: transparent;
    --bs-table-border-color: rgba(255,255,255,0.06);
    --bs-table-striped-bg: rgba(255,255,255,0.02);
    --bs-table-striped-color: #e0e0e8;
    --bs-table-hover-bg: rgba(0, 255, 151, 0.05);
    --bs-table-hover-color: #fff;
    --bs-table-active-bg: rgba(0, 255, 151, 0.1);
    --bs-table-active-color: #fff;
    color: #e0e0e8;
}
/* The real fix: override the >* cell selector */
.xb-data-table .table > :not(caption) > * > * {
    color: #c8c9d1 !important;
    background-color: transparent !important;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 14px 16px;
}
.xb-data-table .table > :not(caption) > * > *:first-child {
    padding-left: 24px;
}
.xb-data-table .table > :not(caption) > * > *:last-child {
    padding-right: 24px;
}
.xb-data-table .table thead th {
    color: var(--color-primary, #00ff97) !important;
    background-color: rgba(0, 2, 15, 0.5) !important;
    border-bottom: 2px solid rgba(0, 255, 151, 0.2);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.xb-data-table .table tbody tr:hover > * {
    color: #fff !important;
    background-color: rgba(0, 255, 151, 0.05) !important;
}
.xb-data-table .table tbody tr.xb-row-active > * {
    color: #fff !important;
    background-color: rgba(0, 255, 151, 0.1) !important;
}
.xb-data-table .table tbody tr.xb-row-alt > * {
    background-color: rgba(255,255,255,0.015) !important;
}

/* ============================================================
   CABINET DASHBOARD — new design (xb-dash)
   ============================================================ */
.xb-dash {
    padding: 80px 0 100px;
}

/* ---- Greeting ---- */
.xb-dash-greeting {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}
.xb-dash-greeting-text {
    display: flex;
    flex-direction: column;
}
.xb-dash-hello {
    color: var(--color-primary, #00ff97);
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}
.xb-dash-name {
    color: #fff;
    font-family: var(--font-heading);
    font-size: 38px;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.02em;
}
.xb-dash-greeting-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 30px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: #b2b3b7;
    font-size: 14px;
}

/* ---- Balance hero ---- */
.xb-balance-hero {
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 24px;
}
.xb-balance-hero-inner {
    padding: 36px 40px;
    background: linear-gradient(135deg, rgba(0,255,151,0.06) 0%, rgba(0,255,151,0.02) 100%);
    border: 1px solid rgba(0,255,151,0.12);
    border-radius: 14px;
}
.xb-balance-hero-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #b2b3b7;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}
.xb-balance-hero-label i {
    color: var(--color-primary, #00ff97);
}
.xb-balance-hero .xb-data-table {
    background: none;
    border: none;
    box-shadow: none;
    border-radius: 0;
}
.xb-balance-hero .xb-data-table .table > :not(caption) > * > * {
    background: transparent !important;
}

/* ---- Action buttons ---- */
.xb-dash-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 50px;
}
.xb-dash-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 20px;
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: #e0e0e8;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}
.xb-dash-action:hover {
    transform: translateY(-2px);
    color: #fff;
    border-color: rgba(0,255,151,0.3);
    box-shadow: 0 8px 20px -4px rgba(0,255,151,0.15);
}
.xb-dash-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255,255,255,0.06);
    color: var(--color-primary, #00ff97);
    font-size: 15px;
}
.xb-dash-action:hover .xb-dash-action-icon {
    background: var(--color-primary, #00ff97);
    color: var(--color-secondary, #00020f);
}
.xb-dash-action--in {
    background: rgba(0,255,151,0.08);
    border-color: rgba(0,255,151,0.2);
}
.xb-dash-action--out {
    background: rgba(239,68,68,0.06);
    border-color: rgba(239,68,68,0.15);
}
.xb-dash-action--out .xb-dash-action-icon {
    color: #ef4444;
}
.xb-dash-action--out:hover {
    border-color: rgba(239,68,68,0.3);
    box-shadow: 0 8px 20px -4px rgba(239,68,68,0.15);
}
.xb-dash-action--out:hover .xb-dash-action-icon {
    background: #ef4444;
    color: #fff;
}
.xb-dash-action--primary {
    background: var(--color-primary, #00ff97);
    color: var(--color-secondary, #00020f) !important;
    border-color: var(--color-primary, #00ff97);
}
.xb-dash-action--primary .xb-dash-action-text,
.xb-dash-action--primary span {
    color: var(--color-secondary, #00020f) !important;
}
.xb-dash-action--primary .xb-dash-action-icon {
    background: rgba(0,2,15,0.15);
    color: var(--color-secondary, #00020f);
}
.xb-dash-action--primary:hover {
    background: #00d97a;
    color: var(--color-secondary, #00020f) !important;
}
.xb-dash-action--primary:hover .xb-dash-action-icon {
    background: rgba(0,2,15,0.2);
}

/* ---- Section title ---- */
.xb-dash-section-title {
    margin-bottom: 20px;
}
.xb-dash-section-title h3 {
    color: #fff;
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 600;
    margin: 0;
    position: relative;
    padding-left: 16px;
}
.xb-dash-section-title h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 22px;
    background: var(--color-primary, #00ff97);
    border-radius: 2px;
}

/* ---- Statistics table wrapper ---- */
.xb-dash .xb-data-table {
    margin-bottom: 40px;
}

/* ---- Quick links ---- */
.xb-dash-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.xb-dash-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 24px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.25s ease;
    background: rgba(255,255,255,0.03);
}
.xb-dash-link:hover {
    transform: translateY(-2px);
    background: rgba(0,255,151,0.04);
}
.xb-dash-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(0,255,151,0.1);
    color: var(--color-primary, #00ff97);
    font-size: 20px;
    flex-shrink: 0;
}
.xb-dash-link-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.xb-dash-link-body strong {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}
.xb-dash-link-body small {
    color: #86878d;
    font-size: 13px;
}
.xb-dash-link-arrow {
    color: #86878d;
    font-size: 14px;
    transition: all 0.25s ease;
}
.xb-dash-link:hover .xb-dash-link-arrow {
    color: var(--color-primary, #00ff97);
    transform: translateX(4px);
}

/* ---- Responsive ---- */
@media (max-width: 767px) {
    .xb-dash { padding: 50px 0 60px; }
    .xb-dash-name { font-size: 28px; }
    .xb-dash-greeting-date { display: none; }
    .xb-balance-hero-inner { padding: 24px 20px; }
    .xb-dash-actions {
        grid-template-columns: repeat(2, 1fr);
    }
    .xb-dash-action { padding: 14px 12px; font-size: 14px; }
    .xb-dash-action-text { font-size: 13px; }
    .xb-dash-section-title h3 { font-size: 18px; }
    .xb-dash-links { grid-template-columns: 1fr; }
}

/* ============================================================
   ADMIN PANEL — admin/header.tpl + admin/footer.tpl
   ============================================================ */
body.admin-page {
    background: var(--color-body, #00020f);
    color: #e0e0e8;
}

/* Admin content wrapper */
.xb-admin-content {
    min-height: 60vh;
}
.xb-admin-content > h1 {
    color: #fff;
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 700;
    margin: 30px 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(0, 255, 151, 0.2);
}
.xb-admin-content > h1:first-child {
    margin-top: 0;
}
.xb-admin-content > br {
    display: none;
}

/* The module-icon tables: formatTable with icon links */
.xb-admin-content table.formatTable {
    border-collapse: separate;
    border-spacing: 12px;
    margin-bottom: 20px;
}
.xb-admin-content table.formatTable td {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 20px 12px !important;
    text-align: center;
    vertical-align: middle;
    transition: all 0.25s ease;
    width: auto !important;
}
.xb-admin-content table.formatTable td:hover {
    background: rgba(0, 255, 151, 0.06);
    border-color: rgba(0, 255, 151, 0.3);
    transform: translateY(-2px);
}
.xb-admin-content table.formatTable td a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #e0e0e8;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}
.xb-admin-content table.formatTable td a:hover {
    color: var(--color-primary, #00ff97);
}
.xb-admin-content table.formatTable td img {
    width: 40px;
    height: 40px;
    opacity: 0.85;
    transition: all 0.25s ease;
}
.xb-admin-content table.formatTable td:hover img {
    opacity: 1;
    transform: scale(1.08);
}

/* Nested data tables inside admin (e.g. settings forms) */
.xb-admin-content .formatTable:not(:first-of-type) {
    /* keep default style */
}

/* Admin info/note blocks */
.xb-admin-content .note,
.xb-admin-content .flash_info,
.xb-admin-content .flash_error {
    background: rgba(0, 255, 151, 0.06);
    border: 1px solid rgba(0, 255, 151, 0.2);
    color: #e0e0e8;
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}
.xb-admin-content .flash_error {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.3);
}

/* Admin form elements */
.xb-admin-content input[type="text"],
.xb-admin-content input[type="password"],
.xb-admin-content input[type="email"],
.xb-admin-content select,
.xb-admin-content textarea,
.xb-admin-content input.string_small,
.xb-admin-content input.password,
.xb-admin-content input.checkbox {
    background: rgba(0, 2, 15, 0.5);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 6px;
    color: #fff;
    padding: 8px 12px;
    height: auto;
    width: auto;
    max-width: 100%;
}
.xb-admin-content input[type="text"]:focus,
.xb-admin-content input[type="password"]:focus,
.xb-admin-content select:focus,
.xb-admin-content textarea:focus {
    border-color: var(--color-primary, #00ff97);
    outline: none;
}

/* Admin buttons */
.xb-admin-content .button-blue,
.xb-admin-content .button-red,
.xb-admin-content .button-green,
.xb-admin-content .button-gray,
.xb-admin-content input[type="submit"],
.xb-admin-content button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.xb-admin-content .button-blue,
.xb-admin-content input[type="submit"] {
    background: var(--color-primary, #00ff97);
    color: var(--color-secondary, #00020f);
}
.xb-admin-content .button-blue:hover,
.xb-admin-content input[type="submit"]:hover {
    background: #00d97a;
}
.xb-admin-content .button-red {
    background: #ef4444;
    color: #fff;
}
.xb-admin-content .button-green {
    background: #10b981;
    color: #fff;
}
.xb-admin-content .button-gray {
    background: rgba(255,255,255,0.1);
    color: #e0e0e8;
}

/* Admin fieldset/legend */
.xb-admin-content fieldset {
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}
.xb-admin-content legend {
    color: var(--color-primary, #00ff97);
    font-weight: 600;
    padding: 0 10px;
    font-size: 15px;
}

/* Admin label text */
.xb-admin-content label {
    color: #c8c9d1;
    font-size: 14px;
}

/* Admin settings rows: label on left, input on right */
.xb-admin-content table.formatTable tr td:first-child {
    color: #c8c9d1;
}

/* ============================================================
   AUTH PAGES (login / register) — Aivora-style upgrade
   ============================================================ */

/* ---- Auth hero (new compact, replaced old xb-auth-hero) ---- */
.xb-auth-hero {
    padding: 40px 0 40px;
    text-align: center;
    position: relative;
    background: transparent;
}
.xb-auth-hero .xb-auth-hero-inner { max-width: 720px; margin: 0 auto; }
.xb-auth-hero .sub-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #00ff97;
    margin-bottom: 20px;
    padding: 8px 22px;
    border: 1px solid rgba(0, 255, 151, 0.3);
    border-radius: 30px;
    background: rgba(0, 255, 151, 0.05);
}
.xb-auth-hero .sub-title i { font-size: 12px; }
.xb-auth-hero .title {
    font-family: 'SportingGrotesque', 'DM Sans', sans-serif;
    font-size: clamp(34px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: #ffffff;
    margin: 0;
}
.xb-auth-hero .description {
    font-size: 17px;
    color: #80808a;
    margin-top: 20px;
    line-height: 1.6;
}

/* ---- Form heading inside card ---- */
.xb-auth-form-heading { margin-bottom: 30px; }
.xb-auth-form-heading h3 {
    font-family: 'SportingGrotesque', 'DM Sans', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px;
    letter-spacing: -0.02em;
}
.xb-auth-form-heading p {
    font-size: 14px;
    color: #6b7a99;
    margin: 0;
}

/* ---- Divider with "or" ---- */
.xb-auth-divider {
    position: relative;
    margin: 28px 0;
}
.xb-auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}
.xb-auth-divider span {
    position: relative;
    background: linear-gradient(209deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
    padding: 0 18px;
    color: #6b7a99;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ---- Secondary links grid ---- */
.xb-auth-footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
@media (max-width: 575px) {
    .xb-auth-footer-links { grid-template-columns: 1fr; }
}
.xb-auth-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 16px 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    color: #c8c9d1 !important;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    transition: all 0.25s ease;
}
.xb-auth-link i {
    font-size: 18px;
    color: #00ff97;
    margin-bottom: 4px;
}
.xb-auth-link:hover {
    color: #ffffff !important;
    border-color: rgba(0, 255, 151, 0.3);
    background: rgba(0, 255, 151, 0.05);
    transform: translateY(-2px);
}
.xb-auth-link--primary {
    background: rgba(0, 255, 151, 0.08);
    border-color: rgba(0, 255, 151, 0.25);
}
.xb-auth-link--primary:hover {
    background: rgba(0, 255, 151, 0.15);
}

/* ---- Trust badges ---- */
.xb-auth-trust {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 28px;
    padding-top: 10px;
}
.xb-auth-trust span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #6b7a99;
}
.xb-auth-trust i { color: #00ff97; font-size: 14px; }

/* ============================================================
   DEPOSIT CREATE PAGE (/deposit?add) — Aivora style
   Renders via rw3.php inline PHP, so we style the elements
   ============================================================ */
.xb-deposit-create {
    max-width: 880px;
    margin: 40px auto;
    padding: 40px;
    border-radius: 16px;
    background: linear-gradient(209deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: #ffffff;
    font-family: 'DM Sans', sans-serif;
}
.xb-deposit-create h1 {
    font-family: 'SportingGrotesque', 'DM Sans', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px;
    letter-spacing: -0.02em;
}
.xb-deposit-create > p {
    color: #80808a;
    margin: 0 0 30px;
    font-size: 15px;
}

/* ============================================================
   ADMIN FORM FIELDS — prevent overflow on mobile
   ============================================================ */
.xb-admin-content .xb-input,
.xb-admin-content input[type="text"],
.xb-admin-content input[type="password"],
.xb-admin-content input[type="email"],
.xb-admin-content textarea,
.xb-admin-content .xb-plaintext {
    max-width: 100% !important;
    word-break: break-word;
    overflow-wrap: break-word;
    word-wrap: break-word;
}
.xb-admin-content .xb-plaintext {
    display: block;
    white-space: pre-wrap;
    overflow-x: auto;
    max-width: 100%;
}
.xb-admin-content .xb-field-group {
    max-width: 100%;
    overflow: visible;
}

/* ============================================================
   DEPOSITS TABLE — cell ID style
   ============================================================ */
.xb-cell-id {
    font-family: 'DM Sans', monospace;
    font-size: 13px;
    color: #00ff97;
    font-weight: 600;
}

/* ============================================================
   MOBILE ADAPTIVITY — tables and forms
   ============================================================ */

/* Make all data tables horizontally scrollable on small screens */
@media (max-width: 767px) {
    .xb-table-wrap,
    .xb-data-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .xb-data-table .table {
        min-width: 600px;
    }
    /* Smaller cells on mobile */
    .xb-data-table .table th,
    .xb-data-table .table td {
        padding: 8px 10px;
        font-size: 13px;
        white-space: nowrap;
    }
    /* Cabinet dashboard: stack action buttons */
    .xb-dash-actions {
        flex-wrap: wrap;
    }
    .xb-dash-action {
        flex: 1 1 calc(50% - 6px);
        min-width: 140px;
    }
    /* Dashboard links grid: single column */
    .xb-dash-links {
        grid-template-columns: 1fr !important;
    }
    /* Auth footer links: single column */
    .xb-auth-footer-links {
        grid-template-columns: 1fr !important;
    }
    /* Form cards less padding on mobile */
    .xb-auth-section .xb-form-card {
        padding: 25px 20px;
    }
    .xb-deposit-create {
        padding: 25px 20px;
    }
    /* Balance hero */
    .xb-balance-hero-inner {
        padding: 20px 16px;
    }
    /* Subnav scroll horizontally */
    .xb-subnav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .xb-subnav-list {
        flex-wrap: nowrap;
        white-space: nowrap;
    }
    .xb-subnav-item span {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .xb-dash-action {
        flex: 1 1 100%;
    }
    .xb-auth-trust {
        flex-direction: column;
        gap: 12px;
    }
}

/* ============================================================
   ADMIN NAVIGATION — subnav for admin pages
   ============================================================ */
.xb-admin-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
    padding: 16px;
    background: linear-gradient(209deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
}
.xb-admin-nav-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #c8c9d1;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.xb-admin-nav-item i {
    font-size: 14px;
    color: #00ff97;
}
.xb-admin-nav-item:hover {
    color: #ffffff;
    background: rgba(0, 255, 151, 0.08);
    border-color: rgba(0, 255, 151, 0.25);
    transform: translateY(-1px);
}
.xb-admin-nav-item.active {
    color: #00020f;
    background: #00ff97;
    border-color: #00ff97;
}
.xb-admin-nav-item.active i {
    color: #00020f;
}
.xb-admin-nav-logout {
    margin-left: auto;
}
.xb-admin-nav-logout:hover {
    color: #ff4757;
    background: rgba(255, 71, 87, 0.1);
    border-color: rgba(255, 71, 87, 0.3);
}
.xb-admin-nav-logout:hover i {
    color: #ff4757;
}

@media (max-width: 767px) {
    .xb-admin-nav {
        gap: 6px;
        padding: 12px;
    }
    .xb-admin-nav-item {
        flex: 1 1 calc(50% - 3px);
        justify-content: center;
        padding: 10px 8px;
        font-size: 12px;
    }
    .xb-admin-nav-item span {
        display: none;
    }
    .xb-admin-nav-item i {
        font-size: 16px;
    }
    .xb-admin-nav-item::after {
        content: attr(data-label);
    }
}

/* ============================================================
   ACCOUNT PAGE — quick action cards
   ============================================================ */
.xb-account-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
@media (max-width: 767px) {
    .xb-account-actions { grid-template-columns: 1fr; }
}
.xb-account-action {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border-radius: 14px;
    background: linear-gradient(209deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
    color: #ffffff;
    transition: all 0.25s ease;
}
.xb-account-action:hover {
    color: #ffffff;
    border-color: rgba(0, 255, 151, 0.3);
    background: rgba(0, 255, 151, 0.04);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px -8px rgba(0, 255, 151, 0.2);
}
.xb-account-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 12px;
    background: rgba(0, 255, 151, 0.1);
    color: #00ff97;
    font-size: 18px;
}
.xb-account-action-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 0;
}
.xb-account-action-body strong {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
}
.xb-account-action-body small {
    font-size: 13px;
    color: #6b7a99;
}
.xb-account-action-arrow {
    color: #6b7a99;
    font-size: 14px;
    transition: transform 0.2s ease;
}
.xb-account-action:hover .xb-account-action-arrow {
    color: #00ff97;
    transform: translateX(4px);
}

/* ============================================================
   FORM-CARD layout improvements (account & all edit forms)
   ============================================================ */
/* Read-only fields (Login, Email display) */
.xb-form-card .xb-plaintext {
    display: block;
    padding: 14px 18px;
    background: rgba(0, 255, 151, 0.05);
    border: 1px solid rgba(0, 255, 151, 0.15);
    border-radius: 10px;
    color: #00ff97;
    font-size: 15px;
    font-weight: 500;
    word-break: break-all;
}

/* Section divider with title */
.xb-form-card .xb-form-divider {
    margin: 30px 0 20px;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.xb-form-card .xb-form-section-title {
    color: #00ff97;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 16px 0 20px;
}

/* Field hint text */
.xb-form-card .xb-field-hint {
    display: block;
    color: #6b7a99;
    font-size: 12px;
    margin-top: 6px;
}
.xb-form-card .xb-field-remark {
    color: #6b7a99;
    font-size: 13px;
    font-weight: 400;
}

/* Form title h1/h2 inside form-card */
.xb-admin-content > h1,
.xb-section h1 {
    font-family: 'SportingGrotesque', 'DM Sans', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 24px;
    letter-spacing: -0.02em;
}
.xb-form-card .xb-form-title {
    font-family: 'SportingGrotesque', 'DM Sans', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

/* GA QR code styling */
.xb-form-card img[src*="qr-server"],
.xb-form-card img[src*="qr"] {
    display: block;
    margin: 16px auto;
    padding: 12px;
    background: #ffffff;
    border-radius: 10px;
    max-width: 200px;
    height: auto;
}
.xb-form-card big {
    display: inline-block;
    padding: 8px 14px;
    background: rgba(0, 255, 151, 0.08);
    border: 1px dashed rgba(0, 255, 151, 0.3);
    border-radius: 8px;
    color: #00ff97;
    font-family: monospace;
    font-size: 16px;
    letter-spacing: 1px;
    margin: 8px 0;
    word-break: break-all;
}

/* Buttons at bottom of account page */
.xb-section .button-green,
.xb-section .button-gray {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-right: 8px;
    margin-bottom: 8px;
}
.xb-section .button-green {
    background: rgba(0, 255, 151, 0.1);
    border: 1px solid rgba(0, 255, 151, 0.3);
    color: #00ff97;
}
.xb-section .button-green:hover {
    background: #00ff97;
    color: #00020f;
    transform: translateY(-2px);
}
.xb-section .button-gray {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #c8c9d1;
}
.xb-section .button-gray:hover {
    border-color: rgba(0, 255, 151, 0.3);
    color: #00ff97;
}

/* ============================================================
   RESPONSIVE FORM FIELDS — single column (vertical stack) on all screens
   ============================================================ */
.xb-section .xb-form-card .row,
.xb-section .xb-form-card .row.g-4 {
    --bs-gutter-x: 0;
    --bs-gutter-y: 0;
    display: block;
}
.xb-section .xb-form-card .row > .col-md-6,
.xb-section .xb-form-card .row > .col-12,
.xb-section .xb-form-card .row > div {
    flex: none;
    max-width: 100%;
    width: 100%;
    padding: 0;
}
@media (max-width: 767px) {
    /* Smaller form-card padding */
    .xb-section .xb-form-card {
        padding: 25px 20px;
    }
    /* Page hero smaller on mobile */
    .xb-auth-hero .title {
        font-size: 28px;
    }
    .xb-auth-hero .description {
        font-size: 15px;
    }
}

/* ============================================================
   ADMIN FILTER GRID — responsive filter form layout
   ============================================================ */
.xb-admin-filter-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 8px;
}
@media (max-width: 991px) {
    .xb-admin-filter-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
    .xb-admin-filter-grid { grid-template-columns: 1fr; }
}
/* Filter fields: override the row/col behavior */
.xb-admin-filter-grid .col-md-6,
.xb-admin-filter-grid .col-12,
.xb-admin-filter-grid > div {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
}
.xb-admin-filter-grid .xb-field-group { margin-bottom: 0; }

/* Filter buttons row */
.xb-admin-content .xb-form-card .xb-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}
.xb-admin-content .xb-form-card .xb-form-actions .thm-btn,
.xb-admin-content .xb-form-card .xb-form-actions button {
    width: auto;
    min-width: 120px;
    padding: 12px 24px;
    font-size: 14px;
}

/* ============================================================
   ADMIN TABLE — override formatTable for remaining cases
   ============================================================ */
.xb-admin-content table.formatTable {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}
.xb-admin-content table.formatTable td {
    padding: 8px 10px;
    vertical-align: top;
}

/* Admin list table improvements */
.xb-admin-content .xb-data-table {
    overflow-x: auto;
}
.xb-admin-content .xb-data-table .table {
    min-width: 800px;
}
.xb-admin-content .xb-data-table .table th {
    background: rgba(0, 255, 151, 0.06);
    color: #00ff97;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid rgba(0, 255, 151, 0.2);
    white-space: nowrap;
    padding: 12px 10px;
}
.xb-admin-content .xb-data-table .table td {
    padding: 10px;
    font-size: 14px;
    color: #c8c9d1;
    vertical-align: middle;
}
.xb-admin-content .xb-data-table .table td a {
    color: #00ff97;
    text-decoration: none;
}
.xb-admin-content .xb-data-table .table td a:hover {
    text-decoration: underline;
}
.xb-admin-content .xb-data-table .xb-list-actions {
    background: rgba(255, 255, 255, 0.02);
    padding: 16px;
    border-radius: 10px;
    margin-top: 16px;
}
.xb-admin-content .xb-data-table .xb-list-action-btn {
    padding: 10px 18px;
    font-size: 13px;
}

/* Admin action buttons (Create deposit/operation/user) */
.xb-admin-content .button-green {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    background: rgba(0, 255, 151, 0.1);
    border: 1px solid rgba(0, 255, 151, 0.3);
    color: #00ff97;
    transition: all 0.2s ease;
}
.xb-admin-content .button-green:hover {
    background: #00ff97;
    color: #00020f;
    transform: translateY(-2px);
}
.xb-admin-content .button-green i { font-size: 12px; }

/* ============================================================
   CAPTCHA — Aivora-styled graphic captcha
   ============================================================ */
.xb-captcha-wrap {
    margin: 20px 0;
}
.xb-captcha-wrap table.formatTable {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}
.xb-captcha-wrap table.formatTable td {
    padding: 0;
    vertical-align: middle;
}
.xb-captcha-wrap table.formatTable td:first-child {
    width: 160px;
    padding-right: 14px;
}
.xb-captcha-wrap img.captcha {
    width: 160px !important;
    height: 50px !important;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    cursor: pointer;
    background: rgba(0, 2, 15, 0.6);
    transition: border-color 0.2s ease;
}
.xb-captcha-wrap img.captcha:hover {
    border-color: rgba(0, 255, 151, 0.4);
}
.xb-captcha-wrap .descr_req {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6b7a99;
    margin-bottom: 8px;
}
.xb-captcha-wrap input.captcha,
.xb-captcha-wrap input[name="__Capt"] {
    width: 100% !important;
    height: 50px !important;
    padding: 0 18px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 10px;
    color: #ffffff;
    font-size: 16px;
    letter-spacing: 2px;
    box-sizing: border-box;
    outline: none;
}
.xb-captcha-wrap input.captcha:focus {
    border-color: #00ff97 !important;
    background: rgba(0, 255, 151, 0.04) !important;
    box-shadow: 0 0 0 3px rgba(0, 255, 151, 0.12);
}

/* ============================================================
   ADMIN SUBMIT BUTTONS — green background everywhere
   ============================================================ */
.xb-admin-content .xb-form-submit,
.xb-admin-content button[type="submit"].thm-btn,
.xb-admin-content .xb-form-actions .thm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #00020f !important;
    background: #00ff97 !important;
    border: 1px solid #00ff97 !important;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    min-width: 140px;
}
.xb-admin-content .xb-form-submit:hover,
.xb-admin-content button[type="submit"].thm-btn:hover,
.xb-admin-content .xb-form-actions .thm-btn:hover {
    background: #00d97a !important;
    border-color: #00d97a !important;
    transform: translateY(-2px);
}

/* Admin select dropdowns — dark themed */
.xb-admin-content .xb-select {
    width: 100%;
    height: 48px;
    padding: 0 40px 0 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: #ffffff;
    font-size: 14px;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="%2300ff97" stroke-width="2"><polyline points="6 9 12 15 18 9"/></svg>');
    background-repeat: no-repeat;
    background-position: right 14px center;
}
.xb-admin-content .xb-select option {
    background: #00020f;
    color: #ffffff;
}
.xb-admin-content .xb-select:focus {
    border-color: #00ff97;
    box-shadow: 0 0 0 3px rgba(0, 255, 151, 0.12);
}

/* ============================================================
   FIX: footer heading "SmartEarnNow" causes horizontal scroll
   ============================================================ */
body {
    overflow-x: hidden;
}
.xb-footer-heading {
    overflow: hidden;
}
.xb-footer-heading .title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
    max-width: 100vw;
}

/* ============================================================
   GLOBAL SECONDARY BUTTONS (Cancel, Delete, Reset)
   ============================================================ */
.xb-form-delete,
.thm-btn--border {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #ff4757 !important;
    background: transparent !important;
    border: 1px solid rgba(255, 71, 87, 0.4) !important;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
}
.xb-form-delete:hover,
.thm-btn--border:hover {
    color: #ffffff !important;
    background: rgba(255, 71, 87, 0.15) !important;
    border-color: #ff4757 !important;
    transform: translateY(-2px);
}
/* When it's a "Cancel" (not delete) - use neutral gray */
.xb-form-actions .thm-btn--border:not(.xb-form-delete) {
    color: #c8c9d1 !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}
.xb-form-actions .thm-btn--border:not(.xb-form-delete):hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

/* ---- Click-to-copy elements (wallet, amount, referral link) ---- */
.xb-copy {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: all;
    color: #00ff97;
    border-bottom: 1px dashed rgba(0, 255, 151, 0.4);
    transition: color 0.15s, border-color 0.15s, background 0.15s;
    padding: 1px 2px;
    word-break: break-all;
}
.xb-copy:hover {
    color: #00ff97;
    border-bottom-color: #00ff97;
    background: rgba(0, 255, 151, 0.08);
}
.xb-copy.xb-copy--done {
    color: #00ff97 !important;
    border-bottom-color: transparent;
    background: rgba(0, 255, 151, 0.12);
}
.xb-copy i {
    font-size: 0.85em;
    opacity: 0.7;
}
/* formatTable rows (manual payment details) */
.formatTable .xb-copy {
    color: #00ff97;
    font-weight: 600;
}
/* Referral link card variant */
.xb-copy-link {
    font-weight: 500;
    font-size: 0.95rem;
}
/* Small hint above the payment details table */
.xb-copy-hint {
    color: #6b7a99;
    font-size: 0.85rem;
    margin: 0 0 8px;
}
.xb-copy-hint i {
    color: #00ff97;
    margin-right: 4px;
}

/* ---- Deposit detail page (depo/view.tpl) ---- */
.xb-depo-hero {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 32px 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(209deg, rgba(0, 255, 151, 0.06), rgba(255, 255, 255, 0.02));
}
.xb-depo-hero-icon {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 255, 151, 0.1);
    border: 1px solid rgba(0, 255, 151, 0.25);
    font-size: 32px;
    color: #00ff97;
}
.xb-depo-hero-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.xb-depo-hero-label {
    color: #6b7a99;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.xb-depo-hero-plan {
    margin: 0;
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
}
.xb-depo-table {
    margin: 0;
}
.xb-depo-table tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.xb-depo-table tr:last-child {
    border-bottom: none;
}
.xb-depo-table td {
    padding: 16px 40px;
    border: none;
    vertical-align: middle;
}
.xb-depo-label {
    color: #80808a;
    font-size: 0.9rem;
    width: 45%;
}
.xb-depo-label i {
    color: #00ff97;
    margin-right: 8px;
    width: 16px;
}
.xb-depo-value {
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
}
.xb-depo-value small {
    color: #6b7a99;
    font-weight: 400;
}
.xb-depo-earned {
    color: #00ff97 !important;
}
@media (max-width: 768px) {
    .xb-depo-hero {
        flex-direction: column;
        text-align: center;
        padding: 24px 20px;
    }
    .xb-depo-table td {
        padding: 14px 20px;
    }
    .xb-depo-label {
        width: 40%;
    }
}

/* ---- Captcha (new layout: image + input side by side) ---- */
.xb-captcha-row {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    margin-top: 8px;
}
.xb-captcha-row .xb-captcha-img {
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    line-height: 0;
}
.xb-captcha-row .xb-captcha-img img {
    display: block;
    height: 52px;
    cursor: pointer;
    border-radius: 7px;
}
.xb-captcha-row .xb-field-group {
    flex: 1;
    min-width: 0;
}
.xb-captcha-row .xb-input {
    letter-spacing: 2px;
}
@media (max-width: 480px) {
    .xb-captcha-row {
        flex-direction: column;
        align-items: stretch;
    }
    .xb-captcha-row .xb-captcha-img {
        align-self: flex-start;
    }
}

/* ---- Contact page: hero ---- */
.xb-page-hero {
    padding: 180px 0 120px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}
.xb-page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,2,15,0.6) 0%, rgba(0,2,15,0.85) 100%);
}
.xb-page-hero-content {
    max-width: 720px;
    margin: 0 auto;
}
.xb-page-hero-subtitle {
    display: inline-block;
    color: #00ff97;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
    padding: 6px 18px;
    border: 1px solid rgba(0, 255, 151, 0.3);
    border-radius: 30px;
    background: rgba(0, 255, 151, 0.06);
}
.xb-page-hero-title {
    color: #ffffff;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}
.xb-page-hero-text {
    color: #c8c9d1;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

/* ---- Contact page: method cards ---- */
.xb-method-card {
    height: 100%;
    padding: 45px 35px;
    text-align: center;
    background: linear-gradient(209deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
    border-radius: 20px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.xb-method-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 255, 151, 0.35);
}
.xb-method-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 255, 151, 0.15), rgba(0, 255, 151, 0.05));
    border: 1px solid rgba(0, 255, 151, 0.25);
    font-size: 32px;
    color: #00ff97;
}
.xb-method-title {
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.xb-method-text {
    color: #c8c9d1;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 28px;
    min-height: 50px;
}
.xb-method-btn {
    display: inline-flex;
}

/* ---- Contact page: form ---- */
.xb-contact-form-section {
    background: rgba(0, 2, 15, 0.4);
}
.xb-contact-form-card {
    max-width: 820px;
    margin: 0 auto;
    padding: 50px 50px 55px;
    border-radius: 20px;
    background: linear-gradient(209deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
}
.xb-form-heading {
    margin-bottom: 40px;
}
.xb-form-eyebrow {
    display: inline-block;
    color: #00ff97;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}
.xb-form-title {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.xb-form-subtitle {
    color: #6b7a99;
    font-size: 1rem;
    margin: 0;
}
.xb-contact-form-wrap .xb-textarea {
    min-height: 140px;
    padding: 14px 18px;
    line-height: 1.6;
}
.xb-contact-submit {
    min-width: 220px;
    justify-content: center;
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .xb-page-hero-title { font-size: 2.5rem; }
    .xb-page-hero { padding: 140px 0 80px; }
}
@media (max-width: 768px) {
    .xb-contact-form-card { padding: 35px 25px 40px; }
    .xb-method-card { padding: 35px 25px; }
    .xb-form-title { font-size: 1.6rem; }
}
@media (max-width: 480px) {
    .xb-page-hero-title { font-size: 2rem; }
    .xb-page-hero-text { font-size: 1rem; }
    .xb-contact-submit { width: 100%; }
}

/* ---- Global thm-btn fix for landing pages (outside .xb-section) ---- */
.thm-btn:not(.thm-btn--border) {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #00ff97 !important;
    color: #00020f !important;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 30px;
    border: none;
    transition: all 0.3s ease;
    cursor: pointer;
}
.thm-btn:not(.thm-btn--border):hover {
    background: #00d97a !important;
    color: #00020f !important;
    transform: translateY(-2px);
}
.thm-btn:not(.thm-btn--border) .text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.thm-btn--border {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent !important;
    color: #00ff97 !important;
    border: 1px solid rgba(0, 255, 151, 0.5) !important;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 30px;
    transition: all 0.3s ease;
    cursor: pointer;
}
.thm-btn--border:hover {
    background: rgba(0, 255, 151, 0.1) !important;
    border-color: #00ff97 !important;
    transform: translateY(-2px);
}
.thm-btn--border .text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
/* ---- Force dark theme on xb-input/xb-textarea inside landing pages ---- */
.xb-contact-form-wrap .xb-input,
.xb-contact-form-wrap .xb-textarea {
    background: rgba(0, 2, 15, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    width: 100% !important;
}
.xb-contact-form-wrap .xb-input::placeholder,
.xb-contact-form-wrap .xb-textarea::placeholder {
    color: #6c6d75 !important;
}
.xb-contact-form-wrap .xb-input:focus,
.xb-contact-form-wrap .xb-textarea:focus {
    border-color: rgba(0, 255, 151, 0.5) !important;
}
.xb-contact-form-wrap .xb-textarea {
    min-height: 140px;
    padding: 14px 18px;
    line-height: 1.6;
}

/* ==================== */
/* CABINET SIDEBAR LAYOUT */
/* ==================== */
.xb-dash-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    align-items: start;
}
.xb-dash-sidebar {
    position: sticky;
    top: 20px;
}
.xb-dash-sidebar-card {
    padding: 28px 22px;
    border-radius: 16px;
    background: linear-gradient(209deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
}
.xb-dash-user {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 22px;
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.xb-dash-user-avatar {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 255, 151, 0.1);
    border: 1px solid rgba(0, 255, 151, 0.25);
    color: #00ff97;
    font-size: 24px;
}
.xb-dash-user-label {
    color: #6b7a99;
    font-size: 0.8rem;
}
.xb-dash-user-name {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 2px 0 0;
    word-break: break-word;
}
.xb-dash-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.xb-dash-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    color: #c8c9d1;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    transition: all 0.2s ease;
}
.xb-dash-nav-item i {
    width: 20px;
    text-align: center;
    color: #6b7a99;
    font-size: 1rem;
    transition: color 0.2s;
}
.xb-dash-nav-item:hover {
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
}
.xb-dash-nav-item:hover i {
    color: #00ff97;
}
.xb-dash-nav-item.active {
    background: rgba(0, 255, 151, 0.1);
    color: #00ff97;
    font-weight: 600;
}
.xb-dash-nav-item.active i {
    color: #00ff97;
}
.xb-dash-nav-logout {
    margin-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 16px;
    color: #ff4757;
}
.xb-dash-nav-logout i {
    color: #ff4757;
}
.xb-dash-nav-logout:hover {
    background: rgba(255, 71, 87, 0.08);
    color: #ff4757;
}
.xb-dash-nav-logout:hover i {
    color: #ff4757;
}
.xb-dash-main {
    min-width: 0;
}

/* ==================== */
/* TICKET CHAT */
/* ==================== */
.xb-ticket-chat {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 24px 0;
}
.xb-ticket-msg {
    max-width: 75%;
    border-radius: 14px;
    overflow: hidden;
}
.xb-ticket-msg:not(.xb-ticket-msg--admin):not(.xb-ticket-msg--support) {
    align-self: flex-end;
}
.xb-ticket-msg--admin,
.xb-ticket-msg--support {
    align-self: flex-start;
}
.xb-ticket-msg-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    font-size: 0.82rem;
    background: rgba(255, 255, 255, 0.06);
}
.xb-ticket-msg-author {
    font-weight: 600;
    color: #00ff97;
}
.xb-ticket-msg--admin .xb-ticket-msg-author,
.xb-ticket-msg--support .xb-ticket-msg-author {
    color: #6b7a99;
}
.xb-ticket-msg-time {
    color: #6b7a99;
    font-size: 0.78rem;
}
.xb-ticket-msg-body {
    padding: 14px 16px;
    color: #e0e0e8;
    font-size: 0.92rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* ==================== */
/* MARKETING PAGE */
/* ==================== */
.xb-marketing-header {
    max-width: 680px;
    margin: 0 auto 50px;
}
.xb-marketing-eyebrow {
    display: inline-block;
    color: #00ff97;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 14px;
    padding: 6px 18px;
    border: 1px solid rgba(0, 255, 151, 0.3);
    border-radius: 30px;
    background: rgba(0, 255, 151, 0.06);
}
.xb-marketing-title {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
}
.xb-marketing-subtitle {
    color: #c8c9d1;
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0;
}
.xb-marketing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.xb-plan-card {
    padding: 36px 30px;
    border-radius: 20px;
    background: linear-gradient(209deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
    text-align: center;
    position: relative;
    transition: transform 0.3s, border-color 0.3s;
}
.xb-plan-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 255, 151, 0.35);
}
.xb-plan-card--featured {
    border-color: rgba(0, 255, 151, 0.3);
    background: linear-gradient(209deg, rgba(0,255,151,0.08), rgba(255,255,255,0.02));
}
.xb-plan-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    background: #00ff97;
    color: #00020f;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
}
.xb-plan-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 255, 151, 0.1);
    border: 1px solid rgba(0, 255, 151, 0.25);
    color: #00ff97;
    font-size: 28px;
}
.xb-plan-name {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
}
.xb-plan-profit {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.xb-plan-profit-val {
    display: block;
    color: #00ff97;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}
.xb-plan-profit-label {
    color: #6b7a99;
    font-size: 0.85rem;
}
.xb-plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    text-align: left;
}
.xb-plan-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    color: #c8c9d1;
    font-size: 0.92rem;
}
.xb-plan-features i {
    color: #00ff97;
    font-size: 0.8rem;
}
.xb-plan-btn {
    width: 100%;
    justify-content: center;
}
.xb-steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.xb-step {
    padding: 30px 24px;
    border-radius: 16px;
    background: linear-gradient(209deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
    text-align: center;
    position: relative;
}
.xb-step-num {
    position: absolute;
    top: 16px;
    right: 18px;
    color: rgba(0, 255, 151, 0.2);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}
.xb-step-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 255, 151, 0.1);
    color: #00ff97;
    font-size: 22px;
}
.xb-step h4 {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}
.xb-step p {
    color: #6b7a99;
    font-size: 0.88rem;
    line-height: 1.5;
    margin: 0;
}
.xb-marketing-cta .thm-btn {
    min-width: 240px;
    justify-content: center;
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .xb-dash-layout { grid-template-columns: 1fr; }
    .xb-dash-sidebar { position: static; }
    .xb-marketing-grid { grid-template-columns: 1fr; }
    .xb-steps-grid { grid-template-columns: repeat(2, 1fr); }
    .xb-marketing-title { font-size: 2rem; }
}
@media (max-width: 576px) {
    .xb-steps-grid { grid-template-columns: 1fr; }
    .xb-ticket-msg { max-width: 100%; }
    .xb-plan-card { padding: 28px 20px; }
}

/* ==================== */
/* MATRIX MLM PAGE */
/* ==================== */
.xb-matrix-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.xb-matrix-stat {
    padding: 24px;
    border-radius: 16px;
    background: linear-gradient(209deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
    text-align: center;
}
.xb-matrix-stat-icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 255, 151, 0.1);
    color: #00ff97;
    font-size: 20px;
}
.xb-matrix-stat-val {
    color: #fff;
    font-size: 1.6rem;
    font-weight: 800;
}
.xb-matrix-stat-label {
    color: #6b7a99;
    font-size: 0.85rem;
    margin-top: 4px;
}

/* Matrix progress cards */
.xb-matrix-cards {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}
.xb-mcard {
    padding: 24px 16px;
    border-radius: 14px;
    background: linear-gradient(209deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
    text-align: center;
    position: relative;
    opacity: 0.6;
    transition: opacity 0.3s;
}
.xb-mcard--active { opacity: 1; border-color: rgba(0,255,151,0.4); }
.xb-mcard--done { opacity: 0.8; }
.xb-mcard-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 255, 151, 0.1);
    color: #00ff97;
    font-size: 22px;
}
.xb-mcard-name { color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.xb-mcard-cost { color: #6b7a99; font-size: 0.85rem; margin-bottom: 14px; }
.xb-mcard-progress { margin-top: 10px; }
.xb-mcard-filled { display: block; color: #00ff97; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
.xb-mcard-bar { display: block; height: 4px; background: rgba(255,255,255,0.1); border-radius: 2px; overflow: hidden; }
.xb-mcard-bar-fill { display: block; height: 100%; background: #00ff97; border-radius: 2px; transition: width 0.5s; }
.xb-mcard-locked { color: #6b7a99; font-size: 0.85rem; }
.xb-mcard-locked i { font-size: 0.8rem; }

/* Join button */
.xb-matrix-join-btn { min-width: 280px; justify-content: center; font-size: 1.1rem; padding: 16px 36px; }

/* Matrix tree */
.xb-matrix-tree-wrap {
    padding: 40px 30px;
    border-radius: 16px;
    background: linear-gradient(209deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
    overflow-x: auto;
}
.xb-matrix-tree { display: flex; flex-direction: column; align-items: center; gap: 0; }
.xb-matrix-level { display: flex; gap: 24px; justify-content: center; position: relative; z-index: 1; }
.xb-matrix-connector { width: 2px; height: 32px; background: rgba(0,255,151,0.2); }
.xb-matrix-node {
    width: 110px;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    padding: 10px;
    background: rgba(255,255,255,0.04);
    border: 2px dashed rgba(255,255,255,0.15);
    transition: all 0.3s;
}
.xb-matrix-node--sm { width: 90px; min-height: 70px; }
.xb-matrix-node--you {
    background: rgba(0, 255, 151, 0.12);
    border: 2px solid #00ff97;
}
.xb-matrix-node--filled {
    background: rgba(0, 255, 151, 0.08);
    border: 2px solid rgba(0, 255, 151, 0.4);
}
.xb-matrix-node--empty {
    opacity: 0.5;
}
.xb-matrix-node-letter {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: #00ff97;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 6px;
}
.xb-matrix-node--you .xb-matrix-node-letter { background: #00ff97; color: #00020f; }
.xb-matrix-node-name { color: #c8c9d1; font-size: 0.78rem; text-align: center; word-break: break-all; line-height: 1.3; }
.xb-matrix-node--you .xb-matrix-node-name { color: #00ff97; font-weight: 600; }
.xb-matrix-node--filled .xb-matrix-node-name { color: #fff; }

/* Referral tree */
.xb-matrix-refs { padding: 24px; border-radius: 16px; }
.xb-ref-level { margin-bottom: 20px; }
.xb-ref-level:last-child { margin-bottom: 0; }
.xb-ref-level-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #c8c9d1;
    font-size: 0.95rem;
    margin-bottom: 10px;
}
.xb-ref-level-label small { color: #6b7a99; }
.xb-ref-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0,255,151,0.15);
    color: #00ff97;
    font-size: 0.75rem;
    font-weight: 700;
}
.xb-ref-people { display: flex; flex-wrap: wrap; gap: 10px; padding-left: 32px; }
.xb-ref-person {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 8px;
    background: rgba(255,255,255,0.04);
    color: #c8c9d1;
    font-size: 0.88rem;
}
.xb-ref-person i { color: #6b7a99; font-size: 0.85rem; }

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .xb-matrix-cards { grid-template-columns: repeat(3, 1fr); }
    .xb-matrix-stats { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .xb-matrix-cards { grid-template-columns: repeat(2, 1fr); }
    .xb-matrix-node { width: 90px; }
    .xb-matrix-node--sm { width: 70px; }
}
@media (max-width: 480px) {
    .xb-matrix-cards { grid-template-columns: 1fr; }
}

/* ---- Matrix switcher (tabs/pills) ---- */
.xb-matrix-switcher {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.xb-matrix-switch {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 18px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    transition: all 0.2s;
    min-width: 90px;
}
.xb-matrix-switch:hover {
    border-color: rgba(0, 255, 151, 0.3);
    background: rgba(0, 255, 151, 0.05);
}
.xb-matrix-switch.active {
    background: rgba(0, 255, 151, 0.12);
    border-color: #00ff97;
}
.xb-matrix-switch-name {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
}
.xb-matrix-switch.active .xb-matrix-switch-name {
    color: #00ff97;
}
.xb-matrix-switch-meta {
    color: #6b7a99;
    font-size: 0.72rem;
    margin-top: 2px;
}



.xb-dash-navtoggle{display:none;margin-left:auto;background:transparent;border:1px solid rgba(255,255,255,.2);color:inherit;border-radius:8px;padding:8px 12px;cursor:pointer}
.xb-dash-user{display:flex;align-items:center;gap:12px}

@media (max-width:991px){
  .xb-dash-navtoggle{display:inline-flex}
  .xb-dash-sidebar-card .xb-dash-nav{display:none}
  .xb-dash-sidebar-card.nav-open .xb-dash-nav{display:block}
}


/* ---- Cabinet: sidebar + content layout ---- */
.xb-dash {
  padding-top: 20px;
  padding-bottom: 40px;
}

.xb-dash-layout {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

/* Sidebar */
.xb-dash-sidebar {
  width: 280px;
  flex-shrink: 0;
  position: relative;   /* не fixed, не sticky — обычный поток */
  top: auto;
  left: auto;
  height: auto;
  z-index: 1;
}

.xb-dash-sidebar-card {
  background: #111827;   /* подстройте под вашу тему */
  border-radius: 16px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,0.06);
}

/* Main content */
.xb-dash-main {
  flex: 1;
  min-width: 0; /* важно, чтобы flex-элемент не выталкивал боковую панель */
}

/* User block */
.xb-dash-user {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.xb-dash-user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #10b981;
}

.xb-dash-user-info {
  display: flex;
  flex-direction: column;
}

.xb-dash-user-label {
  font-size: 12px;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.xb-dash-user-name {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}

/* Navigation */
.xb-dash-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.xb-dash-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  color: #d1d5db;
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 15px;
}

.xb-dash-nav-item:hover,
.xb-dash-nav-item.active {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
}

.xb-dash-nav-item i {
  width: 22px;
  text-align: center;
  font-size: 16px;
}

.xb-dash-nav-logout {
  margin-top: 16px;
  color: #ef4444;
}

.xb-dash-nav-logout:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
}

/* ---- Mobile ---- */
@media (max-width: 991px) {
  .xb-dash-layout {
    flex-direction: column;
  }

  .xb-dash-sidebar {
    width: 100%;
  }

  .xb-dash-sidebar-card {
    padding: 16px;
  }

  .xb-dash-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .xb-dash-nav-item {
    flex: 1 1 auto;
    min-width: 140px;
    justify-content: center;
  }
/* ===== Matrix tree — legacy BEM markup (used by older templates) ===== */
.xb-matrix-switcher__item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 14px;
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    color: #c8c9d1;
    text-decoration: none;
    font-size: 13px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all .15s ease;
}
.xb-matrix-switcher__item:hover { border-color: rgba(0,255,151,0.3); color: #fff; }
.xb-matrix-switcher__item--active { background: rgba(0,255,151,0.12); border-color: #00ff97; color: #00ff97; }
.xb-matrix-switcher__item small { opacity: .7; font-size: 11px; }

.xb-matrix-tree__level {
    display: flex;
    justify-content: center;
    gap: 24px;
    width: 100%;
    position: relative;
}

.xb-matrix-tree__node {
    display: flex;
    justify-content: center;
    flex: 1;
    max-width: 220px;
}

.xb-matrix-tree__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    border-radius: 14px;
    background: #0c1016;
    border: 1px solid #232b38;
    min-width: 120px;
    text-align: center;
    text-decoration: none;
    transition: all .15s ease;
}

.xb-matrix-tree__card--self {
    border-color: #3b82f6;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.15);
}

.xb-matrix-tree__card--link:hover {
    border-color: #3b82f6;
    transform: translateY(-2px);
}

.xb-matrix-tree__card--empty {
    opacity: .5;
    border-style: dashed;
}

.xb-matrix-tree__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #3b82f6;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
}

.xb-matrix-tree__avatar--user {
    background: #10b981;
}

.xb-matrix-tree__name {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    word-break: break-word;
}

.xb-matrix-tree__badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    background: #3b82f6;
    color: #fff;
    font-size: 10px;
    text-transform: uppercase;
}

.xb-matrix-tree__info {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #232b38;
    color: #94a3b8;
    font-size: 14px;
}

/* Mobile */
@media (max-width: 768px) {
    .xb-matrix-tree-wrap { padding: 16px; }
    .xb-matrix-tree { gap: 24px; }
    .xb-matrix-tree__level { gap: 10px; }
    .xb-matrix-tree__node { max-width: none; }
    .xb-matrix-tree__card { min-width: 0; width: 100%; padding: 12px 8px; }
    .xb-matrix-tree__avatar { width: 36px; height: 36px; font-size: 14px; }
    .xb-matrix-tree__name { font-size: 12px; }
}



/* ============================================================
   MATRIX FIX — missing helpers used by module/matrix/index.tpl
   ============================================================ */

/* generic bordered surface (used as xb-border on cards/wraps) */
.xb-border {
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* "my" matrix / my node — highlighted ring */
.xb-matrix-node--self {
    border: 2px solid #00ff97 !important;
    box-shadow: 0 0 0 4px rgba(0, 255, 151, 0.12), 0 0 24px rgba(0, 255, 151, 0.25);
    background: rgba(0, 255, 151, 0.14);
    opacity: 1;
}
.xb-matrix-node--self .xb-matrix-node-name { color: #00ff97; font-weight: 700; }

/* clickable node */
a.xb-matrix-node,
.xb-matrix-node--link { text-decoration: none; cursor: pointer; }
.xb-matrix-node--link:hover {
    transform: translateY(-2px);
    border-color: #00ff97;
    background: rgba(0, 255, 151, 0.12);
}

/* tree width variants (3-wide / 7-wide rows) */
.xb-matrix-tree--7 .xb-matrix-level { gap: 12px; flex-wrap: nowrap; }
.xb-matrix-tree--7 .xb-matrix-node { width: 90px; min-height: 70px; padding: 8px; }
.xb-matrix-tree--7 .xb-matrix-node-name { font-size: 0.7rem; }

/* matrix hero */
.xb-matrix-hero .xb-marketing-title { margin-bottom: 10px; }
.xb-matrix-hero .xb-marketing-subtitle { max-width: 720px; margin: 0 auto; color: #c8c9d1; }

/* empty state icon used in the matrix page */
.xb-empty-icon { font-size: 40px; color: #00ff97; margin-bottom: 12px; }

@media (max-width: 768px) {
    .xb-matrix-tree--7 .xb-matrix-level { gap: 6px; }
    .xb-matrix-tree--7 .xb-matrix-node { width: 62px; min-height: 58px; padding: 6px; }
}
/* ===== AI module (добавьте этот блок в конец вашего override.css) ===== */

.xb-ai-tabs { border-bottom: 1px solid rgba(0,255,151,.25); }
.xb-ai-tabs .nav-link {
    color: #cfd8e3;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px 8px 0 0;
    padding: 10px 18px;
    font-weight: 600;
}
.xb-ai-tabs .nav-link:hover { color: #00ff97; }
.xb-ai-tabs .nav-link.active {
    color: #00ff97;
    background: rgba(0,255,151,.08);
    border-color: rgba(0,255,151,.35);
    border-bottom-color: transparent;
}

.xb-ai-ref {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 14px 18px;
    border-radius: 10px;
    background: rgba(255,255,255,.03);
}
.xb-ai-ref-label { color: #00ff97; font-weight: 600; white-space: nowrap; }
.xb-ai-ref .xb-input { flex: 1 1 260px; min-width: 200px; }

.xb-ai-hint { color: #9fb0c0; font-size: 14px; }

.xb-ai-result {
    padding: 18px;
    border-radius: 10px;
    background: rgba(255,255,255,.03);
}
.xb-ai-result-title { color: #00ff97; margin-bottom: 14px; }
.xb-ai-banner { margin-bottom: 14px; }
.xb-ai-banner img { max-width: 100%; border-radius: 8px; }
.xb-ai-pre { white-space: pre-wrap; word-break: break-word; line-height: 1.6; }

.xb-ai-chat { max-height: 520px; overflow-y: auto; padding-right: 6px; }

.xb-ai-popular { list-style: none; padding: 0; margin: 0; }
.xb-ai-popular li { margin-bottom: 8px; }
.xb-ai-popular a { color: #cfd8e3; text-decoration: none; border-bottom: 1px dashed rgba(0,255,151,.4); }
.xb-ai-popular a:hover { color: #00ff97; }

@media (max-width: 575px) {
    .xb-ai-ref { flex-direction: column; align-items: stretch; }
    .xb-ai-tabs .nav-link { padding: 8px 12px; font-size: 14px; }
}
