
.bottom-panel__ajax {
    width: 100%;
}

.panel-online-stack > * {
    width: 100% !important;
    min-width: 0 !important;
}

.panel-online-stack .row,
.panel-online-stack .flex {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 14px;
}

.panel-online-stack .grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px;
}

.bottom-panel {
    position: fixed;
    inset: 0;
    z-index: 99999;
}

.bottom-panel.hidden {
    display: none;
}

.bottom-panel__overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.42);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity .35s ease;
}

.bottom-panel__sheet {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: min(78vh, 760px);
    background:
        radial-gradient(circle at top right, rgba(99,102,241,.10), transparent 24%),
        radial-gradient(circle at top left, rgba(236,72,153,.06), transparent 22%),
        linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(248,250,252,.98) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top-left-radius: 28px;
    border-top-right-radius: 28px;
    border: 1px solid rgba(255,255,255,.65);
    box-shadow:
        0 -20px 60px rgba(15,23,42,.20),
        0 -6px 18px rgba(15,23,42,.08),
        inset 0 1px 0 rgba(255,255,255,.7);
    transform: translateY(100%);
    transition: transform .35s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.bottom-panel.active .bottom-panel__overlay {
    opacity: 1;
}

.bottom-panel.active .bottom-panel__sheet {
    transform: translateY(0);
}

.bottom-panel__grab-wrap {
    padding: 10px 0 2px;
    display: flex;
    justify-content: center;
    cursor: pointer;
}

.bottom-panel__grab {
    width: 52px;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, #cbd5e1, #94a3b8);
    opacity: .9;
}

.bottom-panel__topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 18px 12px;
}

.bottom-panel__title-wrap {
    min-width: 0;
}

.bottom-panel__eyebrow {
    display: inline-block;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 4px;
}

.bottom-panel__title {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.bottom-panel__close {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 14px;
    background: rgba(248,250,252,.95);
    border: 1px solid #e2e8f0;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all .22s ease;
    flex-shrink: 0;
}

.bottom-panel__close:hover {
    background: #eef2ff;
    border-color: #c7d2fe;
    color: #1d4ed8;
}

.bottom-panel__tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0 18px 14px;
}

.bottom-panel__tab {
    min-height: 46px;
    border: 1px solid #e2e8f0;
    background: rgba(255,255,255,.72);
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: .88rem;
    font-weight: 800;
    color: #475569;
    transition: all .22s ease;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.65);
}

.bottom-panel__tab i {
    font-size: .9rem;
}

.bottom-panel__tab[data-panel-tab="online"] i {
    color: #22c55e;
}

.bottom-panel__tab.active {
    background: linear-gradient(180deg, #eef2ff 0%, #e0e7ff 100%);
    color: #1e1b4b;
    border-color: #c7d2fe;
    box-shadow: 0 8px 20px rgba(99,102,241,.14);
}

.bottom-panel__content {
    flex: 1;
    overflow-y: auto;
    padding: 0 18px 18px;
}

.panel-section {
    animation: panelFade .22s ease;
}

.bottom-panel__state {
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #94a3b8;
    font-weight: 700;
    background: rgba(255,255,255,.55);
    border: 1px dashed #dbe3ef;
    border-radius: 18px;
    padding: 20px;
}

@keyframes panelFade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 1024px) {
    .bottom-panel {
        display: none !important;
    }
}

@media (max-width: 560px) {
    .bottom-panel__sheet {
        height: min(82vh, 760px);
        border-top-left-radius: 24px;
        border-top-right-radius: 24px;
    }

    .bottom-panel__topbar {
        padding: 10px 14px 12px;
    }

    .bottom-panel__tabs {
        padding: 0 14px 12px;
        gap: 8px;
    }

    .bottom-panel__content {
        padding: 0 14px 14px;
    }

    .bottom-panel__close {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

    .bottom-panel__tab {
        min-height: 44px;
        font-size: .84rem;
        border-radius: 14px;
    }
}
