/* assets/css/aichatbuy.css */

.aicbuy-body {
    background: #070b11;
}

.aicbuy-app {
    background:
            radial-gradient(circle at top right, rgba(0,255,213,.10), transparent 30%),
            radial-gradient(circle at bottom left, rgba(56,189,248,.07), transparent 32%),
            #070b11;
}

.aicbuy-main {
    position: relative;
}

.aicbuy-topbar .aic-top-title {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.aicbuy-topbar .aic-top-title small {
    color: var(--aic-muted);
    font-size: 11px;
    font-weight: 600;
}

.aicbuy-free-pill {
    cursor: default;
}

.aicbuy-user-menu-wrap {
    position: relative;
}

.aicbuy-user-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 260px;
    background: #0f1623;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 16px;
    padding: 10px;
    box-shadow: 0 18px 50px rgba(0,0,0,.35);
    display: none;
    z-index: 90;
}

.aicbuy-user-menu.is-open {
    display: block;
}

.aicbuy-user-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #dbeafe;
    text-decoration: none;
    padding: 11px 12px;
    border-radius: 11px;
    font-size: 13px;
    font-weight: 700;
}

.aicbuy-user-menu a:hover {
    background: rgba(0,255,213,.08);
    color: #00ffd5;
}

.aicbuy-menu-note {
    border: 1px solid rgba(0,255,213,.14);
    background: rgba(0,255,213,.06);
    border-radius: 13px;
    padding: 12px;
    margin-bottom: 8px;
}

.aicbuy-menu-note strong,
.aicbuy-menu-note span {
    display: block;
}

.aicbuy-menu-note strong {
    color: #fff;
    font-size: 13px;
    margin-bottom: 3px;
}

.aicbuy-menu-note span {
    color: #aeb8c7;
    font-size: 12px;
    line-height: 1.45;
}

.aicbuy-stage {
    height: calc(100vh - var(--aic-topbar-h));
    height: calc(100dvh - var(--aic-topbar-h));
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.aicbuy-messages-wrap {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 26px 16px 18px;
}

.aicbuy-messages {
    width: 100%;
    max-width: 830px;
    margin: 0 auto;
}

.aicbuy-composer {
    flex: 0 0 auto;
    width: 100%;
    max-width: 830px;
    margin: 0 auto;
    padding: 0 16px 18px;
}

.aicbuy-composer .aic-composer-inner {
    background: rgba(15,22,35,.95);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 18px;
    padding: 10px;
    display: flex;
    align-items: flex-end;
    gap: 10px;
    box-shadow: 0 14px 45px rgba(0,0,0,.30);
}

.aicbuy-composer textarea {
    width: 100%;
    border: 0;
    outline: 0;
    resize: none;
    background: transparent;
    color: #fff;
    min-height: 42px;
    max-height: 160px;
    padding: 10px 4px 8px 8px;
    font-size: 15px;
    line-height: 1.45;
}

.aicbuy-composer textarea::placeholder {
    color: #7d8aa0;
}

.aicbuy-composer-hint {
    color: #7d8aa0;
    font-size: 12px;
    padding: 8px 4px 0;
    text-align: center;
}

.aicbuy-choice-row {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 12px;
}

.aicbuy-choice-btn {
    border: 1px solid rgba(0,255,213,.26);
    background: rgba(0,255,213,.10);
    color: #00ffd5;
    border-radius: 999px;
    min-height: 38px;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: .15s ease;
}

.aicbuy-choice-btn:hover {
    background: rgba(0,255,213,.17);
    color: #fff;
    transform: translateY(-1px);
}

.aicbuy-choice-btn:active {
    transform: translateY(0);
}

.aicbuy-countdown {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 12px;
    padding: 8px 11px;
    border-radius: 999px;
    border: 1px solid rgba(248,113,113,.25);
    background: rgba(248,113,113,.10);
    color: #fecaca;
    font-size: 12px;
    font-weight: 800;
}

.aicbuy-countdown strong {
    color: #fff;
    letter-spacing: .5px;
}

.aicbuy-countdown.is-expired {
    opacity: .7;
}

.aicbuy-side-cta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.aicbuy-course-link {
    background: rgba(0,255,213,.08);
    border: 1px solid rgba(0,255,213,.14);
    border-radius: 13px;
}

.aicbuy-limit-box {
    max-width: 830px;
    width: calc(100% - 32px);
    margin: 0 auto 12px;
    border: 1px solid rgba(248,113,113,.25);
    background: rgba(248,113,113,.08);
    border-radius: 16px;
    padding: 14px;
    color: #fecaca;
}

.aicbuy-limit-box strong {
    display: block;
    color: #fff;
    margin-bottom: 4px;
}

.aicbuy-limit-box p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
}

.aic-message.is-error .aic-message-bubble {
    border-color: rgba(248,113,113,.30);
    background: rgba(248,113,113,.08);
    color: #fecaca;
}

/* ============================================================
   SESSION COUNTDOWN PILL
   ============================================================ */
.aicbuy-free-pill .aicbuy-session-timer {
    font-variant-numeric: tabular-nums;
    letter-spacing: .3px;
}

/* ============================================================
   FLOATING BUY NOW BUTTON
   ============================================================ */
.aicbuy-float-cta {
    position: fixed;
    bottom: 45%;
    right: 20px;
    z-index: 200;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: linear-gradient(135deg, #00ffd5, #00c9a7);
    color: #030e09;
    font-size: 14px;
    font-weight: 900;
    padding: 13px 22px;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 6px 30px rgba(0,255,213,.40), 0 2px 8px rgba(0,0,0,.30);
    opacity: 0;
    transform: translateY(16px) scale(.94);
    transition: opacity .35s ease, transform .35s ease;
    pointer-events: none;
}

.aicbuy-float-cta.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    animation: aicbuy-float-pulse 2.5s ease-in-out infinite;
}

@keyframes aicbuy-float-pulse {
    0%   { box-shadow: 0 6px 30px rgba(0,255,213,.40), 0 2px 8px rgba(0,0,0,.30); transform: scale(1); }
    40%  { box-shadow: 0 10px 50px rgba(0,255,213,.80), 0 2px 14px rgba(0,0,0,.40); transform: scale(1.06); }
    55%  { box-shadow: 0 6px 30px rgba(0,255,213,.40), 0 2px 8px rgba(0,0,0,.30); transform: scale(0.98); }
    70%  { box-shadow: 0 10px 50px rgba(0,255,213,.75), 0 2px 14px rgba(0,0,0,.40); transform: scale(1.04); }
    100% { box-shadow: 0 6px 30px rgba(0,255,213,.40), 0 2px 8px rgba(0,0,0,.30); transform: scale(1); }
}

.aicbuy-float-cta.is-visible {
    animation: aicbuy-float-pulse 1.8s ease-in-out infinite;
}

.aicbuy-float-cta:hover {
    background: linear-gradient(135deg, #1affdf, #00e0bc);
    color: #030e09;
    animation: none;
    transform: translateY(-2px) scale(1.05);
}

/* ============================================================
   MUX VIDEO EMBED
   ============================================================ */
.aicbuy-mux-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    margin-top: 12px;
    border-radius: 14px;
    overflow: hidden;
    background: #000;
}

.aicbuy-mux-iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 14px;
}

/* ============================================================
   MP4 VIDEO EMBED
   ============================================================ */
.aicbuy-mp4-wrap {
    margin-top: 12px;
    border-radius: 14px;
    overflow: hidden;
}

.aicbuy-mp4 {
    display: block;
    width: 100%;
    max-height: 380px;
    border-radius: 14px;
    background: #000;
    object-fit: contain;
}

/* ============================================================
   SLIDESHOW (photos + videos)
   ============================================================ */
.aicbuy-slideshow {
    margin-top: 12px;
    position: relative;
}

.aicbuy-slides {
    position: relative;
    min-height: 60px;
}

.aicbuy-slide {
    display: none;
}

.aicbuy-slide.is-active {
    display: block;
    animation: aicbuy-fade-in .25s ease;
}

@keyframes aicbuy-fade-in {
    from { opacity: 0; transform: scale(.98); }
    to   { opacity: 1; transform: scale(1); }
}

.aicbuy-slide-img {
    display: block;
    width: 100%;
    max-height: 340px;
    object-fit: cover;
    border-radius: 14px;
    cursor: default;
}

.aicbuy-slide-img.zoomable {
    cursor: zoom-in;
}

.aicbuy-slide {
    position: relative;
}

.aicbuy-zoom-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,.55);
    border: 2px solid rgba(255,255,255,.25);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
}

.aicbuy-zoom-btn:hover {
    background: rgba(0,255,213,.45);
}

.aicbuy-slide-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.aicbuy-slide-prev,
.aicbuy-slide-next {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    color: #fff;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    transition: background .15s;
}

.aicbuy-slide-prev:hover,
.aicbuy-slide-next:hover {
    background: rgba(0,255,213,.15);
    color: #00ffd5;
}

.aicbuy-dots {
    display: flex;
    gap: 6px;
}

.aicbuy-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,.22);
    border: none;
    cursor: pointer;
    transition: background .15s;
}

.aicbuy-dot.is-active {
    background: #00ffd5;
}

/* ============================================================
   ZOOM MODAL
   ============================================================ */
.aicbuy-zoom-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 500;
}

.aicbuy-zoom-modal.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
}

.aicbuy-zoom-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.88);
}

.aicbuy-zoom-inner {
    position: relative;
    z-index: 1;
    max-width: 92vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aicbuy-zoom-img {
    max-width: 100%;
    max-height: 88vh;
    border-radius: 14px;
    box-shadow: 0 20px 80px rgba(0,0,0,.6);
}

.aicbuy-zoom-close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.18);
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
}

.aicbuy-zoom-close:hover {
    background: rgba(248,113,113,.35);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .aicbuy-topbar .aic-top-link span {
        display: none;
    }

    .aicbuy-free-pill span {
        font-size: 12px;
    }

    .aicbuy-user-menu {
        right: -4px;
        width: 245px;
    }

    .aicbuy-messages-wrap {
        padding: 18px 12px 12px;
    }

    .aicbuy-composer {
        padding: 0 10px 12px;
    }

    .aicbuy-choice-row {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .aicbuy-choice-btn {
        width: 100%;
        border-radius: 13px;
        min-height: 42px;
        white-space: normal;
        text-align: center;
    }

    .aicbuy-composer .aic-composer-inner {
        border-radius: 15px;
    }

    .aicbuy-float-cta {
        bottom: 45%;
        right: 12px;
        padding: 11px 18px;
        font-size: 13px;
    }

    .aicbuy-mp4 {
        max-height: 260px;
    }
}

/* ============================================================
   SIDEBAR RESPONSIVE
   ============================================================ */
.aic-sidebar {
    transition: transform .25s ease;
}

@media (max-width: 992px) {
    .aic-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        height: 100vh;
        height: 100dvh;
        z-index: 60;
        transform: translateX(-105%);
        box-shadow: 20px 0 60px rgba(0,0,0,.5);
    }

    .aic-sidebar.is-open {
        transform: translateX(0);
    }

    .aic-overlay.is-active {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.55);
        z-index: 55;
        pointer-events: auto;
    }
}

@media (min-width: 993px) {
    .aic-sidebar {
        position: relative;
        transform: translateX(0);
    }

    .aic-sidebar:not(.is-open) {
        transform: translateX(-105%);
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        height: 100dvh;
        z-index: 60;
        box-shadow: 20px 0 60px rgba(0,0,0,.5);
    }

    .aic-overlay.is-active {
        display: block;
        position: fixed;
        inset: 0;
        background: transparent;
        z-index: 55;
        pointer-events: auto;
    }
}

/* ============================================================
   APPEND TO: assets/css/aichatbuy.css
   (paste at the very bottom of the file)
   ============================================================ */

/* ---------------------------------------------------------------
   CHANGE #1 — Bonus select items
--------------------------------------------------------------- */
.aicbuy-bonus-select {
    margin-top: 12px;
}

.aicbuy-bonus-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 9px 11px;
    margin-bottom: 7px;
    border: 1px solid rgba(0,255,213,.15);
    border-radius: 11px;
    cursor: pointer;
    transition: border-color .15s;
}

.aicbuy-bonus-item:hover {
    border-color: rgba(0,255,213,.35);
    background: rgba(0,255,213,.05);
}

.aicbuy-bonus-item input[type="checkbox"] {
    margin-top: 2px;
    accent-color: #00ffd5;
    transform: scale(1.1);
    flex-shrink: 0;
}

/* ---------------------------------------------------------------
   CHANGE #5 — Spin wheel modal
--------------------------------------------------------------- */
#aicbSpinModal {
    display: none;
}

#aicbSpinSheet {
    bottom: 0;
    left: 0;
    right: 0;
}

/* When the claim button needs to pulse it re-uses the existing keyframe */
#aicbSpinClaimBtn {
    animation: aicbuy-float-pulse 1.6s ease-in-out infinite;
}

#aicbSpinCanvas {
    max-width: 100%;
    height: auto;
}

@media (max-width: 480px) {
    #aicbSpinSheet {
        padding: 22px 14px 28px;
    }

    #aicbSpinCanvas {
        width: 220px !important;
        height: 220px !important;
    }
}