.x-ai-fab {
    position: fixed;
    right: 47px;
    bottom: 24px;
    width: 62px;
    height: 62px;
    border-radius: 22px;
    border: 1px solid rgba(80, 140, 255, .45);
    background: linear-gradient(135deg, #2F6BFF, #00D4FF);
    color: #fff;
    font-size: 24px;
    box-shadow: 0 18px 45px rgba(47, 107, 255, .35);
    z-index: 99999;
    cursor: pointer;
    transition: all .22s ease;
}

.x-ai-fab:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 22px 55px rgba(47, 107, 255, .48);
}

.x-ai-panel {
    position: fixed;
    right: 24px;
    bottom: 98px;
    width: 380px;
    max-width: calc(100vw - 32px);
    height: 520px;
    max-height: calc(100vh - 130px);
    background: rgba(6, 18, 37, .96);
    border: 1px solid rgba(80, 140, 255, .24);
    border-radius: 26px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .45);
    backdrop-filter: blur(18px);
    z-index: 99998;
    overflow: hidden;
    display: none;
    flex-direction: column;
}

.x-ai-panel.is-open {
    display: flex;
    animation: xAiIn .22s ease both;
}

@keyframes xAiIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.x-ai-header {
    padding: 18px;
    background: linear-gradient(135deg, rgba(47, 107, 255, .22), rgba(0, 212, 255, .08));
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.x-ai-header strong {
    display: block;
    color: #F5F7FB;
    font-size: 15px;
}

.x-ai-header small {
    display: block;
    color: #9FB0D0;
    font-size: 12px;
    margin-top: 3px;
}

.x-ai-header button {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .1);
    background: rgba(255, 255, 255, .06);
    color: #DCE7FF;
    cursor: pointer;
}

.x-ai-body {
    flex: 1;
    padding: 18px;
    color: #DCE7FF;
    font-size: 14px;
    line-height: 1.55;
    overflow-y: auto;
}

.x-ai-body b {
    color: #ffffff;
}

.x-ai-footer {
    padding: 14px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    display: flex;
    gap: 10px;
    background: rgba(10, 27, 56, .85);
}

.x-ai-footer input {
    flex: 1;
    border: 1px solid rgba(80, 140, 255, .25);
    background: rgba(255, 255, 255, .06);
    color: #F5F7FB;
    border-radius: 16px;
    padding: 12px 14px;
    outline: none;
}

.x-ai-footer input::placeholder {
    color: #8EA3C7;
}

.x-ai-footer input:focus {
    border-color: rgba(47, 107, 255, .75);
    box-shadow: 0 0 0 3px rgba(47, 107, 255, .15);
}

.x-ai-footer button {
    width: 46px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #2F6BFF, #00D4FF);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(47, 107, 255, .32);
}

@media (max-width: 576px) {
    .x-ai-fab {
        right: 16px;
        bottom: 18px;
    }

    .x-ai-panel {
        right: 12px;
        left: 12px;
        bottom: 90px;
        width: auto;
        height: 68vh;
    }
}

.x-ai-fab {
    z-index: 1000010 !important;
}

.x-ai-panel {
    z-index: 1000009 !important;
}

#xPageTransition {
    pointer-events: none !important;
}

#xPageTransition.is-active {
    pointer-events: auto;
}

#xPageTransition.is-active {
    pointer-events: none !important;
}

.x-ai-panel {
    position: fixed;
    right: 24px;
    bottom: 98px;
    width: 410px;
    max-width: calc(100vw - 28px);
    height: 560px;
    max-height: calc(100vh - 125px);
    background:
        radial-gradient(circle at top right, rgba(47, 107, 255, .18), transparent 35%),
        linear-gradient(180deg, rgba(6, 18, 37, .98), rgba(3, 10, 24, .98));
    border: 1px solid rgba(80, 140, 255, .25);
    border-radius: 28px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .55);
    backdrop-filter: blur(18px);
    z-index: 1000009 !important;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.x-ai-panel.is-open {
    display: flex;
    animation: xAiPanelIn .22s ease both;
}

@keyframes xAiPanelIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.x-ai-header {
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(10, 27, 56, .65);
}

.x-ai-title {
    display: flex;
    gap: 12px;
    align-items: center;
}

.x-ai-avatar {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, #2F6BFF, #00D4FF);
    box-shadow: 0 12px 28px rgba(47, 107, 255, .35);
}

.x-ai-header strong {
    color: #F5F7FB;
    font-size: 15px;
    display: block;
}

.x-ai-header small {
    color: #9FB0D0;
    font-size: 12px;
}

#xAiClose {
    width: 36px;
    height: 36px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .1);
    background: rgba(255, 255, 255, .06);
    color: #DCE7FF;
    cursor: pointer;
}

.x-ai-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scroll-behavior: smooth;
}

.x-ai-msg {
    max-width: 86%;
    padding: 13px 14px;
    border-radius: 18px;
    font-size: 13.5px;
    line-height: 1.45;
    position: relative;
    animation: xAiMsgIn .18s ease both;
}

@keyframes xAiMsgIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.x-ai-msg-user {
    align-self: flex-end;
    background: linear-gradient(135deg, rgba(47, 107, 255, .95), rgba(0, 132, 255, .9));
    color: #fff;
    border-bottom-right-radius: 7px;
    box-shadow: 0 12px 28px rgba(47, 107, 255, .25);
}

.x-ai-msg-bot {
    align-self: flex-start;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .08);
    color: #DCE7FF;
    border-bottom-left-radius: 7px;
}

.x-ai-msg-meta {
    display: block;
    margin-top: 7px;
    font-size: 10.5px;
    color: rgba(220, 231, 255, .58);
}

.x-ai-msg-user .x-ai-msg-meta {
    color: rgba(255, 255, 255, .68);
}

.x-ai-footer {
    padding: 14px;
    display: flex;
    gap: 10px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    background: rgba(10, 27, 56, .9);
}

.x-ai-footer input {
    flex: 1;
    border: 1px solid rgba(80, 140, 255, .28);
    background: rgba(255, 255, 255, .07);
    color: #F5F7FB;
    border-radius: 17px;
    padding: 12px 14px;
    outline: none;
    font-size: 13.5px;
}

.x-ai-footer input:focus {
    border-color: rgba(47, 107, 255, .8);
    box-shadow: 0 0 0 3px rgba(47, 107, 255, .14);
}

.x-ai-footer button {
    width: 48px;
    border: none;
    border-radius: 17px;
    background: linear-gradient(135deg, #2F6BFF, #00D4FF);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(47, 107, 255, .32);
}

.x-ai-typing {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 54px;
}

.x-ai-typing span {
    width: 7px;
    height: 7px;
    background: rgba(220, 231, 255, .75);
    border-radius: 50%;
    display: inline-block;
    animation: xAiTyping 1.2s infinite ease-in-out;
}

.x-ai-typing span:nth-child(2) {
    animation-delay: .18s;
}

.x-ai-typing span:nth-child(3) {
    animation-delay: .36s;
}

@keyframes xAiTyping {

    0%,
    80%,
    100% {
        transform: translateY(0);
        opacity: .35;
    }

    40% {
        transform: translateY(-5px);
        opacity: 1;
    }
}

.x-ai-actions {
    display: flex;
    gap: 8px;
}

.x-ai-actions button {
    width: 36px;
    height: 36px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .1);
    background: rgba(255, 255, 255, .06);
    color: #DCE7FF;
    cursor: pointer;
}

.x-ai-fab {
    position: fixed;
    right: 50px;
    bottom: 24px;
    width: 64px;
    height: 64px;
    border-radius: 24px;
    border: 1px solid rgba(80, 140, 255, .45);
    background: linear-gradient(135deg, #2F6BFF, #00D4FF);
    color: #fff;
    font-size: 24px;
    box-shadow: 0 18px 48px rgba(47, 107, 255, .42);
    z-index: 1000010 !important;
    cursor: pointer;
    transition: all .22s ease;
}

.x-ai-fab:hover {
    transform: translateY(-3px) scale(1.04);
}

.x-ai-fab__pulse {
    position: absolute;
    inset: -5px;
    border-radius: 28px;
    border: 1px solid rgba(0, 212, 255, .45);
    animation: xAiPulse 1.8s infinite;
}

@keyframes xAiPulse {
    0% {
        transform: scale(.92);
        opacity: .8;
    }

    100% {
        transform: scale(1.18);
        opacity: 0;
    }
}

.x-ai-panel {
    position: fixed;
    right: 24px;
    bottom: 100px;
    width: 430px;
    max-width: calc(100vw - 28px);
    height: 610px;
    max-height: calc(100vh - 125px);
    background:
        radial-gradient(circle at top right, rgba(47, 107, 255, .20), transparent 34%),
        linear-gradient(180deg, rgba(6, 18, 37, .98), rgba(3, 10, 24, .98));
    border: 1px solid rgba(80, 140, 255, .25);
    border-radius: 30px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .58);
    backdrop-filter: blur(18px);
    z-index: 1000009 !important;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.x-ai-panel.is-open {
    display: flex;
    animation: xAiPanelIn .22s ease both;
}

@keyframes xAiPanelIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.x-ai-header {
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    background: rgba(10, 27, 56, .78);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.x-ai-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.x-ai-avatar {
    width: 44px;
    height: 44px;
    border-radius: 17px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, #2F6BFF, #00D4FF);
    box-shadow: 0 12px 30px rgba(47, 107, 255, .36);
}

.x-ai-header strong {
    display: block;
    color: #F5F7FB;
    font-size: 15px;
    font-weight: 800;
}

.x-ai-header small {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #9FB0D0;
    font-size: 12px;
    margin-top: 3px;
}

.x-ai-dot {
    width: 7px;
    height: 7px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, .12);
}

.x-ai-actions {
    display: flex;
    gap: 8px;
}

.x-ai-actions button {
    width: 36px;
    height: 36px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .1);
    background: rgba(255, 255, 255, .06);
    color: #DCE7FF;
    cursor: pointer;
}

.x-ai-actions button:hover {
    background: rgba(255, 255, 255, .11);
}

.x-ai-suggestions {
    padding: 12px 14px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    justify-content: space-evenly;
}

.x-ai-suggestions button {
    white-space: nowrap;
    border: 1px solid rgba(80, 140, 255, .22);
    background: rgba(255, 255, 255, .06);
    color: #DCE7FF;
    border-radius: 10px;
    padding: 8px 11px;
    font-size: 12px;
    cursor: pointer;
}

.x-ai-suggestions button:hover {
    border-color: rgba(47, 107, 255, .6);
    background: rgba(47, 107, 255, .18);
}

.x-ai-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scroll-behavior: smooth;
}

.x-ai-msg {
    max-width: 88%;
    padding: 13px 14px;
    border-radius: 18px;
    font-size: 13.5px;
    line-height: 1.45;
    animation: xAiMsgIn .18s ease both;
    word-break: break-word;
}

@keyframes xAiMsgIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.x-ai-msg-user {
    align-self: flex-end;
    background: linear-gradient(135deg, rgba(47, 107, 255, .96), rgba(0, 132, 255, .92));
    color: #fff;
    border-bottom-right-radius: 7px;
    box-shadow: 0 12px 28px rgba(47, 107, 255, .25);
}

.x-ai-msg-bot {
    align-self: flex-start;
    background: rgba(255, 255, 255, .075);
    border: 1px solid rgba(255, 255, 255, .08);
    color: #DCE7FF;
    border-bottom-left-radius: 7px;
}

.x-ai-msg-meta {
    display: block;
    margin-top: 7px;
    font-size: 10.5px;
    color: rgba(220, 231, 255, .58);
}

.x-ai-msg-user .x-ai-msg-meta {
    color: rgba(255, 255, 255, .7);
}

.x-ai-typing {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 54px;
}

.x-ai-typing span {
    width: 7px;
    height: 7px;
    background: rgba(220, 231, 255, .75);
    border-radius: 50%;
    display: inline-block;
    animation: xAiTyping 1.2s infinite ease-in-out;
}

.x-ai-typing span:nth-child(2) {
    animation-delay: .18s;
}

.x-ai-typing span:nth-child(3) {
    animation-delay: .36s;
}

@keyframes xAiTyping {

    0%,
    80%,
    100% {
        transform: translateY(0);
        opacity: .35;
    }

    40% {
        transform: translateY(-5px);
        opacity: 1;
    }
}

.x-ai-footer {
    padding: 14px;
    display: flex;
    gap: 10px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    background: rgba(10, 27, 56, .92);
}

.x-ai-footer input {
    flex: 1;
    border: 1px solid rgba(80, 140, 255, .28);
    background: rgba(255, 255, 255, .075);
    color: #F5F7FB;
    border-radius: 17px;
    padding: 12px 14px;
    outline: none;
    font-size: 13.5px;
}

.x-ai-footer input::placeholder {
    color: #8EA3C7;
}

.x-ai-footer input:focus {
    border-color: rgba(47, 107, 255, .8);
    box-shadow: 0 0 0 3px rgba(47, 107, 255, .14);
}

.x-ai-footer button {
    width: 48px;
    border: none;
    border-radius: 17px;
    background: linear-gradient(135deg, #2F6BFF, #00D4FF);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(47, 107, 255, .32);
}

.x-ai-footer button:hover {
    transform: translateY(-1px);
}

@media (max-width: 576px) {
    .x-ai-fab {
        right: 16px;
        bottom: 18px;
    }

    .x-ai-panel {
        right: 12px;
        left: 12px;
        bottom: 90px;
        width: auto;
        height: 70vh;
    }
}

.x-ai-msg-bot b {
    color: #ffffff;
}

.x-ai-msg-bot .x-ai-line {
    display: block;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.x-ai-msg-bot .x-ai-line:last-child {
    border-bottom: none;
}

.x-ai-action-buttons {
    align-self: flex-start;
    display: flex;
    gap: 10px;
    margin: -4px 0 8px 4px;
    animation: xAiMsgIn .18s ease both;
}

.x-ai-action-buttons button {
    border: 1px solid rgba(255, 255, 255, .12);
    padding: 9px 13px;
    border-radius: 14px;
    font-size: 12.5px;
    font-weight: 800;
    cursor: pointer;
    transition: all .18s ease;
}

.x-ai-action-buttons button:hover {
    transform: translateY(-1px);
}

.x-ai-action-confirm {
    background: linear-gradient(135deg, #2F6BFF, #00D4FF);
    color: #fff;
    box-shadow: 0 10px 24px rgba(47, 107, 255, .25);
}

.x-ai-action-cancel {
    background: rgba(255, 70, 90, .12);
    color: #ffb4bd;
    border-color: rgba(255, 70, 90, .28) !important;
}

.x-ai-pdf-buttons {
    display: flex;
    justify-content: flex-start;
    margin: 8px 0 14px 12px;
}

.x-ai-pdf-btn {
    border: 1px solid rgba(239, 68, 68, .35);
    background: linear-gradient(135deg, rgba(127, 29, 29, .95), rgba(220, 38, 38, .85));
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    padding: 9px 13px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    box-shadow: 0 10px 24px rgba(220, 38, 38, .22);
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.x-ai-pdf-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
    box-shadow: 0 14px 30px rgba(220, 38, 38, .32);
}

.x-ai-pdf-btn i {
    font-size: 13px;
}


.x-ai-credit-mini {
    /* margin-top: 6px; */
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    padding: 10px 9px;
    border-radius: 10px;
    background: rgba(47, 107, 255, .13);
    border: 1px solid rgba(47, 107, 255, .28);
    color: #cfe0ff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}

.x-ai-credit-mini i {
    font-size: 10px;
    color: #6ea8ff;
}

.x-ai-credit-mini.is-extra {
    background: rgba(16, 185, 129, .12);
    border-color: rgba(16, 185, 129, .28);
    color: #c8f7e4;
}

.x-ai-credit-mini.is-extra i {
    color: #34d399;
}

.x-ai-credit-mini.is-low {
    background: rgba(245, 158, 11, .13);
    border-color: rgba(245, 158, 11, .32);
    color: #ffe6b3;
}

.x-ai-credit-mini.is-low i {
    color: #fbbf24;
}

.x-ai-credit-mini.is-empty {
    background: rgba(239, 68, 68, .13);
    border-color: rgba(239, 68, 68, .32);
    color: #ffd0d0;
}

.x-ai-credit-mini.is-empty i {
    color: #fb7185;
}

.x-ai-credit-row {
    margin-top: 7px;
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.x-ai-recharge-btn {
    height: 25px;
    padding: 0 9px;
    border: 1px solid rgba(47, 107, 255, .35);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(47, 107, 255, .22), rgba(26, 88, 255, .12));
    color: #eaf1ff;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: .18s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.x-ai-recharge-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(110, 168, 255, .65);
    background: linear-gradient(135deg, rgba(47, 107, 255, .36), rgba(26, 88, 255, .18));
}

.x-ai-recharge-btn i {
    font-size: 10px;
}

.x-ai-recharge-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.x-ai-recharge-modal.is-open {
    display: flex;
}

.x-ai-recharge-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 8, 23, .68);
    backdrop-filter: blur(10px);
}

.x-ai-recharge-card {
    position: relative;
    width: min(520px, 100%);
    border-radius: 24px;
    background:
        radial-gradient(circle at top left, rgba(47, 107, 255, .22), transparent 34%),
        linear-gradient(180deg, rgba(10, 27, 56, .98), rgba(6, 18, 37, .98));
    border: 1px solid rgba(126, 165, 255, .20);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .45);
    padding: 18px;
    color: #f5f7fb;
    animation: xAiRechargeIn .18s ease-out;
}

@keyframes xAiRechargeIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.x-ai-recharge-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.x-ai-recharge-head h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -.02em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.x-ai-recharge-head h4 i {
    color: #6ea8ff;
}

.x-ai-recharge-head p {
    margin: 5px 0 0;
    font-size: 13px;
    color: #9fb0d0;
}

.x-ai-recharge-head button {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(255, 255, 255, .06);
    color: #dbe8ff;
    cursor: pointer;
}

.x-ai-recharge-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.x-ai-pack {
    width: 100%;
    text-align: left;
    border-radius: 18px;
    padding: 14px;
    border: 1px solid rgba(126, 165, 255, .16);
    background: rgba(255, 255, 255, .045);
    color: #f5f7fb;
    cursor: pointer;
    display: grid;
    gap: 5px;
    transition: .18s ease;
}

.x-ai-pack:hover {
    transform: translateY(-1px);
    border-color: rgba(110, 168, 255, .42);
    background: rgba(47, 107, 255, .10);
}

.x-ai-pack.is-featured {
    border-color: rgba(52, 211, 153, .38);
    background:
        linear-gradient(135deg, rgba(16, 185, 129, .12), rgba(47, 107, 255, .07));
}

.x-ai-pack-badge {
    width: fit-content;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(47, 107, 255, .14);
    border: 1px solid rgba(47, 107, 255, .25);
    color: #cfe0ff;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.x-ai-pack strong {
    font-size: 17px;
    font-weight: 900;
}

.x-ai-pack small {
    color: #9fb0d0;
    font-size: 12px;
}

.x-ai-pack b {
    margin-top: 3px;
    font-size: 18px;
    color: #ffffff;
}

.x-ai-recharge-note {
    margin-top: 13px;
    padding: 10px 12px;
    border-radius: 15px;
    background: rgba(255, 255, 255, .045);
    border: 1px solid rgba(255, 255, 255, .08);
    color: #9fb0d0;
    font-size: 12px;
    line-height: 1.45;
}

.x-ai-recharge-btn {
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 13px;
    border: 1px solid rgba(96, 165, 250, .30);
    background: linear-gradient(135deg, rgba(47, 107, 255, .20), rgba(96, 165, 250, .08));
    color: #dbeafe;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: .18s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.x-ai-recharge-btn:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, rgba(47, 107, 255, .32), rgba(96, 165, 250, .14));
    border-color: rgba(147, 197, 253, .50);
    color: #ffffff;
}

.x-ai-pack.is-loading {
    opacity: .8;
    pointer-events: none;
    position: relative;
}

.x-ai-pack.is-loading strong,
.x-ai-pack.is-loading small,
.x-ai-pack.is-loading b {
    opacity: .9;
}

.x-sub-panel--ai-history {
    grid-column: 1 / -1;
    background:
        radial-gradient(circle at top left, rgba(47, 107, 255, .14), transparent 32%),
        linear-gradient(180deg, rgba(10, 27, 56, .96), rgba(6, 18, 37, .98));
    border: 1px solid rgba(126, 165, 255, .14);
    box-shadow: 0 18px 42px rgba(0, 0, 0, .22);
}

.x-ai-credit-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.x-ai-credit-summary-card {
    padding: 15px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .045);
    border: 1px solid rgba(255, 255, 255, .08);
    color: #f5f7fb;
}

.x-ai-credit-summary-card span {
    display: block;
    color: #9fb0d0;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 7px;
}

.x-ai-credit-summary-card strong {
    display: block;
    font-size: 25px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 7px;
}

.x-ai-credit-summary-card small {
    color: #9fb0d0;
    font-size: 12px;
}

.x-ai-movements-box {
    margin-top: 12px;
    padding: 14px;
    border-radius: 20px;
    background: rgba(2, 8, 23, .28);
    border: 1px solid rgba(126, 165, 255, .12);
}

.x-ai-movements-head {
    margin-bottom: 14px;
}

.x-ai-movements-head h4 {
    margin: 0 0 4px;
    color: #f5f7fb;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 8px;
}

.x-ai-movements-head h4 i {
    color: #60a5fa;
}

.x-ai-movements-head small {
    color: #9fb0d0;
}

/* TABLA DARK */
.x-ai-history-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    color: #eaf1ff;
    background: rgba(6, 18, 37, .92);
    border: 1px solid rgba(126, 165, 255, .14);
    border-radius: 16px;
    overflow: hidden;
}

.x-ai-history-table thead th {
    background: rgba(3, 12, 28, .98);
    color: #9fb0d0;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .05em;
    font-weight: 900;
    padding: 14px 12px;
    border-bottom: 1px solid rgba(126, 165, 255, .14);
    white-space: nowrap;
}

.x-ai-history-table tbody td {
    background: rgba(10, 27, 56, .48);
    color: #dbe8ff;
    padding: 13px 12px;
    border-bottom: 1px solid rgba(126, 165, 255, .08);
    vertical-align: middle;
    font-size: 13px;
}

.x-ai-history-table tbody tr:hover td {
    background: rgba(47, 107, 255, .10);
}

.x-ai-history-table tbody tr:last-child td {
    border-bottom: none;
}

.x-ai-action-name {
    color: #f5f7fb;
    font-weight: 800;
}

.x-ai-mov-detail {
    color: #9fb0d0 !important;
    max-width: 430px;
    white-space: normal;
    line-height: 1.4;
}

.x-ai-mov-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.x-ai-mov-badge--default {
    background: rgba(148, 163, 184, .14);
    color: #cbd5e1;
}

.x-ai-mov-badge--danger {
    background: rgba(239, 68, 68, .13);
    color: #fca5a5;
}

.x-ai-mov-badge--success {
    background: rgba(16, 185, 129, .13);
    color: #6ee7b7;
}

.x-ai-mov-badge--info {
    background: rgba(59, 130, 246, .14);
    color: #93c5fd;
}

.x-ai-mov-badge--warning {
    background: rgba(245, 158, 11, .14);
    color: #fcd34d;
}

.x-ai-credit-negative {
    color: #fb7185;
    font-weight: 900;
}

.x-ai-credit-positive {
    color: #34d399;
    font-weight: 900;
}

/* DATATABLE DARK */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    color: #9fb0d0 !important;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    background: rgba(2, 8, 23, .45);
    border: 1px solid rgba(126, 165, 255, .18);
    color: #f5f7fb;
    border-radius: 10px;
    padding: 6px 9px;
    outline: none;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 10px !important;
    border: 1px solid rgba(126, 165, 255, .14) !important;
    background: rgba(255, 255, 255, .04) !important;
    color: #dbe8ff !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: rgba(47, 107, 255, .28) !important;
    color: #fff !important;
    border-color: rgba(47, 107, 255, .45) !important;
}

@media (max-width: 1100px) {
    .x-ai-credit-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .x-ai-credit-summary-grid {
        grid-template-columns: 1fr;
    }
}

.x-ai-credit-summary-card {
    position: relative;
    overflow: hidden;
    padding: 16px 18px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, .08);
    color: #f5f7fb;
    background: rgba(255, 255, 255, .04);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
    transition: .18s ease;
}

.x-ai-credit-summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, .18);
}

.x-ai-credit-summary-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, .04), transparent 45%);
}

.x-ai-credit-summary-card span {
    display: block;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 8px;
    opacity: .95;
}

.x-ai-credit-summary-card strong {
    display: block;
    font-size: 25px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 7px;
}

.x-ai-credit-summary-card small {
    font-size: 12px;
    color: #9fb0d0;
}

/* DISPONIBLES */
.x-ai-credit-summary-card--blue {
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, .20), transparent 35%),
        linear-gradient(135deg, rgba(37, 99, 235, .18), rgba(37, 99, 235, .06));
    border-color: rgba(96, 165, 250, .22);
}

.x-ai-credit-summary-card--blue strong {
    color: #dbeafe;
}

/* PLAN */
.x-ai-credit-summary-card--green {
    background:
        radial-gradient(circle at top right, rgba(16, 185, 129, .18), transparent 35%),
        linear-gradient(135deg, rgba(5, 150, 105, .16), rgba(5, 150, 105, .05));
    border-color: rgba(52, 211, 153, .22);
}

.x-ai-credit-summary-card--green strong {
    color: #d1fae5;
}

/* EXTRA */
.x-ai-credit-summary-card--purple {
    background:
        radial-gradient(circle at top right, rgba(139, 92, 246, .18), transparent 35%),
        linear-gradient(135deg, rgba(124, 58, 237, .16), rgba(124, 58, 237, .05));
    border-color: rgba(167, 139, 250, .22);
}

.x-ai-credit-summary-card--purple strong {
    color: #ede9fe;
}

/* USO */
.x-ai-credit-summary-card--orange {
    background:
        radial-gradient(circle at top right, rgba(245, 158, 11, .18), transparent 35%),
        linear-gradient(135deg, rgba(217, 119, 6, .16), rgba(217, 119, 6, .05));
    border-color: rgba(251, 191, 36, .22);
}

.x-ai-credit-summary-card--orange strong {
    color: #fef3c7;
}

.x-ai-credit-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.x-ai-credit-summary-card {
    position: relative;
    overflow: hidden;
    padding: 16px 18px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, .08);
    color: #f5f7fb;
    background: rgba(255, 255, 255, .04);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
    transition: .18s ease;
}

.x-ai-credit-summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .20);
}

.x-ai-credit-summary-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, .045), transparent 48%);
}

.x-ai-credit-summary-top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.x-ai-credit-summary-top span {
    display: block;
    color: #b8c7e6;
    font-size: 12px;
    font-weight: 900;
}

.x-ai-credit-summary-top i {
    width: 28px;
    height: 28px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .10);
}

.x-ai-credit-summary-card strong {
    position: relative;
    z-index: 1;
    display: block;
    font-size: 28px;
    font-weight: 950;
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -.03em;
}

.x-ai-credit-summary-card small {
    position: relative;
    z-index: 1;
    color: #9fb0d0;
    font-size: 12px;
    font-weight: 700;
}

/* DISPONIBLES */
.x-ai-credit-summary-card--blue {
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, .24), transparent 38%),
        linear-gradient(135deg, rgba(37, 99, 235, .22), rgba(37, 99, 235, .06));
    border-color: rgba(96, 165, 250, .26);
}

.x-ai-credit-summary-card--blue strong,
.x-ai-credit-summary-card--blue .x-ai-credit-summary-top i {
    color: #93c5fd;
}

/* PLAN */
.x-ai-credit-summary-card--green {
    background:
        radial-gradient(circle at top right, rgba(16, 185, 129, .22), transparent 38%),
        linear-gradient(135deg, rgba(5, 150, 105, .20), rgba(5, 150, 105, .05));
    border-color: rgba(52, 211, 153, .25);
}

.x-ai-credit-summary-card--green strong,
.x-ai-credit-summary-card--green .x-ai-credit-summary-top i {
    color: #6ee7b7;
}

/* EXTRA */
.x-ai-credit-summary-card--purple {
    background:
        radial-gradient(circle at top right, rgba(139, 92, 246, .23), transparent 38%),
        linear-gradient(135deg, rgba(124, 58, 237, .20), rgba(124, 58, 237, .05));
    border-color: rgba(167, 139, 250, .25);
}

.x-ai-credit-summary-card--purple strong,
.x-ai-credit-summary-card--purple .x-ai-credit-summary-top i {
    color: #c4b5fd;
}

/* USO */
.x-ai-credit-summary-card--orange {
    background:
        radial-gradient(circle at top right, rgba(245, 158, 11, .23), transparent 38%),
        linear-gradient(135deg, rgba(217, 119, 6, .20), rgba(217, 119, 6, .05));
    border-color: rgba(251, 191, 36, .25);
}

.x-ai-credit-summary-card--orange strong,
.x-ai-credit-summary-card--orange .x-ai-credit-summary-top i {
    color: #fcd34d;
}

@media (max-width: 1100px) {
    .x-ai-credit-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .x-ai-credit-summary-grid {
        grid-template-columns: 1fr;
    }
}