/* Panel index: black, diverse light spots that change size and position */

/* ---- Sidebar (desktop) ---- */
.panel-sidebar {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 260px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    flex-direction: column;
    padding: 0;
}

@media (min-width: 1000px) {
    .panel-sidebar {
        display: flex;
    }
}

.panel-sidebar-logo {
    display: none;
    flex-shrink: 0;
    padding: 16px 20px;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    cursor: pointer;
    text-decoration: none;
}

@media (min-width: 1000px) {
    .panel-sidebar-logo {
        display: flex;
    }
}

.panel-sidebar-logo-img {
    display: block;
    width: 72px;
    height: 72px;
    object-fit: contain;
    opacity: 0.9;
    transition: opacity 0.2s ease, transform 0.25s ease;
}

@media (min-width: 1000px) {
    .panel-sidebar-logo:hover .panel-sidebar-logo-img {
        opacity: 1;
        transform: scale(1.08) rotate(4deg);
    }
}

.panel-header-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0;
    text-decoration: none;
}

.panel-header-logo-img {
    display: block;
    width: 32px;
    height: 32px;
    object-fit: contain;
    opacity: 0.9;
}

.panel-sidebar-mini-wrap {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    margin-bottom: 0;
    flex-shrink: 0;
}

.panel-sidebar-mini-block {
    display: block;
    width: 20px;
    height: 20px;
    margin: 0 auto;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.2);
}

.panel-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    flex: 1;
}

.panel-sidebar-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    font-family: pp-neue-machina-plain-regular, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-align: left;
    border: 0;
    border-top: 1px solid transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    cursor: pointer;
    transition: color 0.25s ease, border-color 0.25s ease;
}

.panel-sidebar-nav .panel-sidebar-btn:first-child {
    border-top-color: rgba(255, 255, 255, 0.1); 
}

.panel-sidebar-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: transparent;
    transition: background 0.25s ease;
}

.panel-sidebar-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.panel-sidebar-btn-icon svg {
    display: block;
}

.panel-sidebar-btn:hover:not(.is-active)::before {
    background: rgba(255, 255, 255, 0.12);
}

.panel-sidebar-btn:hover:not(.is-active) {
    border-top-color: rgba(255, 255, 255, 0.2);
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.panel-sidebar-btn.is-active {
    border-top-color: rgba(255, 255, 255, 0.95) !important;
    border-bottom-color: rgba(255, 255, 255, 0.95) !important;
    color: #000;
}

.panel-sidebar-btn.is-active::before {
    background: rgba(255, 255, 255, 0.95);
}

.panel-sidebar-btn.is-active .panel-sidebar-btn-icon svg {
    stroke: currentColor;
}

.panel-sidebar-lang {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.panel-sidebar-lang-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.panel-sidebar-lang-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.3);
}

/* ---- Mobile header (hides on scroll) ---- */
.panel-header {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 20px;
    min-height: 56px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.4s ease, opacity 0.4s ease, pointer-events 0s;
    transform: translateY(0);
    opacity: 1;
}

.panel-header-hidden {
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s ease, opacity 0.4s ease, pointer-events 0s 0.4s;
}

.panel-header-mini-wrap {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.panel-header-mini-block {
    display: block;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.2);
}

.panel-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.panel-header-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 6px;
    margin-right: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #fff;
}

.panel-header-menu-bar {
    display: block;
    width: 100%;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
}

.panel-header-lang-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.panel-header-lang-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.3);
}

@media (min-width: 1000px) {
    .panel-header {
        display: none;
    }
}

/* ---- Mobile full-screen menu (white bg, black text like main index) ---- */
.panel-mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: #fff;
    flex-direction: column;
    padding: 24px;
    overflow-y: auto;
}

.panel-mobile-menu.is-open {
    display: flex;
}

.panel-mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #000;
}

.panel-mobile-menu-mini-wrap {
    margin-top: 60px;
    margin-bottom: 24px;
    flex-shrink: 0;
}

.panel-mobile-menu-mini-block {
    display: block;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.12);
}

.panel-mobile-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.panel-mobile-menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
    font-family: pp-neue-machina-plain-regular, sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #000;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    transition: opacity 0.2s ease;
}

.panel-mobile-menu-link:hover {
    opacity: 0.95;
}

.panel-mobile-menu-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.panel-mobile-menu-link-icon svg {
    display: block;
}

.panel-mobile-menu-link:last-child {
    border-bottom: none;
}

@media (min-width: 1000px) {
    .panel-mobile-menu {
        display: none !important;
    }
}

.panel-index-main {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    width: 100%;
    padding-top: 0;
    box-sizing: border-box;
}

@media (min-width: 1000px) {
    .panel-index-main {
        margin-left: 260px;
        width: calc(100% - 260px);
        padding-top: 48px;
    }
}

.panel-index-sections {
    position: relative;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;  
    -ms-overflow-style: none;
}

.panel-index-sections::-webkit-scrollbar {
    display: none;
}

@media (min-width: 1000px) {
    .panel-index-sections {
        height: calc(100vh - 48px);
    }
}

.panel-index-section {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
}

.panel-index-section.is-active {
    position: relative;
    min-height: 100%;
    padding-top: 72px;
    padding-bottom: 72px;
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

@media (min-width: 1000px) {
    .panel-index-section.is-active {
        padding-top: 0;
        padding-bottom: 0;
    }
}

.panel-index-section:not(.is-active) {
    position: absolute;
    inset: 0;
}

.panel-index-section--referral .panel-referral-inner {
    height: auto;
    min-height: auto;
}

.panel-referral-inner {
    padding: 24px 20px 64px;
    box-sizing: border-box;
}

.panel-referral-stats {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    padding: 20px;
    box-sizing: border-box;
    margin-bottom: 20px;
}

.panel-referral-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px 24px;
}

.panel-referral-stats-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
}

.panel-referral-stats-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    font-family: neue-haas-grot-text-roman, sans-serif;
}

.panel-referral-stats-value {
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    font-family: pp-neue-machina-plain-regular, sans-serif;
}

.panel-referral-box {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    padding: 20px;
    box-sizing: border-box;
}

.panel-referral-title {
    font-family: pp-neue-machina-plain-regular, sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 20px 0;
}

.panel-referral-table-wrap {
    overflow-x: auto;
    overflow-y: visible;
}

.panel-referral-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    overflow: visible;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.panel-referral-table th,
.panel-referral-table td {
    padding: 6px 8px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    vertical-align: middle;
}

.panel-referral-table th:last-child,
.panel-referral-table td:last-child {
    border-right: none;
}

.panel-referral-table th {
    font-family: pp-neue-machina-plain-regular, sans-serif;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.04);
    white-space: normal;
    line-height: 1.3;
    max-width: 100px;
}

.panel-referral-table th.ref-th-contact-fee {
    max-width: 90px;
}

.panel-referral-table td {
    font-family: neue-haas-grot-text-roman, sans-serif;
}

.panel-referral-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.panel-referral-table .ref-req-cell {
    color: rgba(255, 255, 255, 0.7);
}

.panel-referral-table .ref-req-cell.empty {
    color: rgba(255, 255, 255, 0.35);
    font-style: italic;
}

.panel-referral-table .ref-level-num {
    font-family: pp-neue-machina-plain-regular, sans-serif;
    font-weight: 700;
    color: #fff;
}

.panel-referral-table .ref-th-has-tooltip,
.panel-referral-table .ref-th-label-only {
    position: relative;
    cursor: pointer;
    font-size: 11px;
}

.panel-referral-table .ref-tooltip-bubble {
    position: absolute;
    left: 50%;
    top: 100%;
    margin-top: 4px;
    padding: 8px 10px;
    max-width: 340px;
    min-width: 0;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    color: #111;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateX(-50%);
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
}
 
.panel-referral-table .ref-th-tooltip-first .ref-tooltip-bubble {
    left: 0;
    transform: none;
}
 
.panel-referral-table .ref-th-tooltip-last .ref-tooltip-bubble {
    left: auto;
    right: 0;
    transform: none;
}

.panel-referral-table .ref-th-has-tooltip:hover .ref-tooltip-bubble,
.panel-referral-table .ref-th-has-tooltip.is-pinned .ref-tooltip-bubble {
    opacity: 1;
}

.panel-referral-table .ref-empty-icon {
    display: inline-flex;
    width: 14px;
    height: 14px;
    color: rgba(255, 255, 255, 0.35);
    vertical-align: middle;
}

.panel-referral-table .ref-sub-ref-cell {
    padding: 0;
    vertical-align: top;
    height: 1%;
}

.panel-referral-table .ref-see-btn {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 2.5em;
    padding: 6px 8px;
    margin: 0;
    border: none;
    border-radius: 0;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: #111;
    background: #fff;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    box-sizing: border-box;
}

.panel-referral-table .ref-see-btn span {
    color: inherit;
    visibility: visible;
}

.panel-referral-table .ref-see-btn:hover {
    background: #f5f5f5;
    color: #333;
}

.ref-deap-fee-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    backdrop-filter: blur(1.5px);
    -webkit-backdrop-filter: blur(1.5px);
    transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}

.ref-deap-fee-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.35s ease, visibility 0s;
}

.ref-deap-fee-modal {
    position: relative;
    max-width: 560px;
    width: 94%;
    padding: 32px 28px;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.ref-deap-fee-modal-title {
    font-family: pp-neue-machina-plain-regular, sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 20px 0;
}

.ref-deap-fee-table-wrap {
    margin-bottom: 24px;
    overflow: visible;
}

.ref-deap-fee-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.ref-deap-fee-table thead,
.ref-deap-fee-table th {
    overflow: visible;
}

.ref-deap-fee-table th,
.ref-deap-fee-table td {
    padding: 8px 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.ref-deap-fee-table th {
    font-weight: 600;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.ref-deap-fee-th-has-tooltip {
    position: relative;
    cursor: pointer;
}

.ref-deap-fee-tooltip-bubble {
    position: absolute;
    left: 50%;
    top: 100%;
    margin-top: 4px;
    padding: 8px 10px;
    max-width: 280px;
    min-width: 0;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    color: #111;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateX(-50%);
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
}

.ref-deap-fee-th-has-tooltip.ref-deap-fee-th-tooltip-first .ref-deap-fee-tooltip-bubble {
    left: 0;
    transform: none;
}

.ref-deap-fee-th-has-tooltip.ref-deap-fee-th-tooltip-last .ref-deap-fee-tooltip-bubble {
    left: auto;
    right: 0;
    transform: none;
}

.ref-deap-fee-th-has-tooltip:hover .ref-deap-fee-tooltip-bubble,
.ref-deap-fee-th-has-tooltip.is-pinned .ref-deap-fee-tooltip-bubble {
    opacity: 1;
}

.ref-deap-fee-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.ref-deap-fee-ok {
    display: inline-block;
    padding: 12px 32px;
    font-family: pp-neue-machina-plain-regular, sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #000;
    background-color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.ref-deap-fee-ok:hover {
    transform: translateY(-3px);
}

.ref-deap-fee-ok:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.panel-to-main-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    backdrop-filter: blur(1.5px);
    -webkit-backdrop-filter: blur(1.5px);
    transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}

.panel-to-main-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.35s ease, visibility 0s;
}

.panel-to-main-modal {
    position: relative;
    max-width: 480px;
    width: 90%;
    padding: 32px 28px;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.panel-to-main-modal-title {
    font-family: pp-neue-machina-plain-regular, sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 16px 0;
}

.panel-to-main-modal-text {
    font-family: neue-haas-grot-text-roman, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 24px 0;
}

.panel-to-main-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.panel-to-main-modal-go,
.panel-to-main-modal-cancel {
    display: inline-block;
    padding: 12px 32px;
    font-family: pp-neue-machina-plain-regular, sans-serif;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.panel-to-main-modal-go {
    color: #000;
    background-color: #fff;
}

.panel-to-main-modal-go:hover {
    transform: translateY(-3px);
}

.panel-to-main-modal-cancel {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.panel-to-main-modal-cancel:hover {
    background-color: rgba(255, 255, 255, 0.06);
    transform: translateY(-3px);
}

.panel-to-main-modal-cancel:focus-visible {
    background-color: rgba(255, 255, 255, 0.06);
}

.panel-to-main-modal-go:focus-visible,
.panel-to-main-modal-cancel:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* allow internal scroll; no clipping from html/body */
html:has(body.panel-index),
body.panel-index {
    overflow: visible !important;
}

.panel-index {
    margin: 0;
    min-height: 100vh;
    position: relative;
}

.panel-index-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

body.panel-bg-full .panel-index-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(to bottom, rgba(255, 255, 255, 0.1) 0%, transparent 14%),
        linear-gradient(to top, rgba(255, 255, 255, 0.1) 0%, transparent 14%),
        linear-gradient(to right, rgba(255, 255, 255, 0.07) 0%, transparent 12%),
        linear-gradient(to left, rgba(255, 255, 255, 0.07) 0%, transparent 12%);
}

body.panel-bg-spots .panel-index-waves {
    display: none;
}

body.panel-bg-spots .panel-neurons {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.panel-fixed-btns {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 8px;
}

.panel-fixed-btns .panel-lang-fixed {
    position: static;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.panel-bg-btn-fixed {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border-radius: 10px;
    cursor: pointer;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.panel-bg-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.3);
}

body.panel-bg-full .panel-bg-btn {
    background: #fff;
    border: 1px solid #fff;
    color: #000;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
}

body.panel-bg-full .panel-bg-btn:hover {
    background: #fff;
    border: 1px solid #fff;
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.4);
}

body.panel-bg-spots .panel-bg-btn {
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.85);
    color: #fff;
}

body.panel-bg-spots .panel-bg-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    border-color: rgba(255, 255, 255, 0.95);
}

.panel-index-waves {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 200vw;
    height: 200vh;
    margin-left: -100vw;
    margin-top: -100vh;
    background-image: url("../img/waves-light.svg");
    background-repeat: repeat; 
    background-position: 0 0;
    transform-origin: center center;
    animation: panel-waves-rotate 28s ease-in-out infinite, panel-waves-pulse 11s ease-in-out infinite;
}

@keyframes panel-waves-rotate {
    0%, 100% {
        transform: rotate(-5deg);
    }
    50% {
        transform: rotate(5deg);
    }
}

@keyframes panel-waves-pulse {
    0%, 100% {
        opacity: 0.88;
    }
    50% {
        opacity: 1;
    }
}

.panel-index-spot {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(40px);
    will-change: transform;
}
 
.panel-index-spot--tl {
    top: 0;
    left: 0;
    width: min(90vw, 420px);
    height: min(90vw, 420px);
    transform: translate(-35%, -35%) scale(0.95);
    background: radial-gradient(
        circle at 55% 55%,
        rgba(255, 255, 255, 0.35),
        rgba(255, 255, 255, 0.12) 45%,
        transparent 65%
    );
    animation: panel-spot-tl 18s ease-in-out infinite;
}
 
.panel-index-spot--tr {
    top: 0;
    right: 0;
    width: min(70vw, 320px);
    height: min(70vw, 320px);
    transform: translate(35%, -35%) scale(1.05);
    background: radial-gradient(
        circle at 45% 55%,
        rgba(6, 182, 212, 0.32),
        rgba(34, 211, 238, 0.1) 50%,
        transparent 70%
    );
    animation: panel-spot-tr 20s ease-in-out infinite 1s;
}
 
.panel-index-spot--bl {
    bottom: 0;
    left: 0;
    width: min(85vw, 380px);
    height: min(85vw, 380px);
    transform: translate(-35%, 35%) scale(0.9);
    background: radial-gradient(
        circle at 42% 42%,
        rgba(6, 182, 212, 0.32),
        rgba(34, 211, 238, 0.14) 40%,
        transparent 68%
    );
    animation: panel-spot-bl 19s ease-in-out infinite 2s;
}
 
.panel-index-spot--br {
    bottom: 0;
    right: 0;
    width: min(75vw, 360px);
    height: min(75vw, 360px);
    transform: translate(35%, 35%) scale(1.02);
    background: radial-gradient(
        circle at 60% 45%,
        rgba(139, 92, 246, 0.28),
        rgba(147, 51, 234, 0.12) 55%,
        transparent 75%
    );
    animation: panel-spot-br 22s ease-in-out infinite 0.5s;
}
 
@keyframes panel-spot-tl {
    0%, 100% {
        transform: translate(-35%, -35%) scale(0.95);
    }
    50% {
        transform: translate(-42%, -28%) scale(1.1);
    }
}

@keyframes panel-spot-tr {
    0%, 100% {
        transform: translate(35%, -35%) scale(1.05);
    }
    50% {
        transform: translate(42%, -38%) scale(0.9);
    }
}

@keyframes panel-spot-bl {
    0%, 100% {
        transform: translate(-35%, 35%) scale(0.9);
    }
    50% {
        transform: translate(-28%, 42%) scale(1.08);
    }
}

@keyframes panel-spot-br {
    0%, 100% {
        transform: translate(35%, 35%) scale(1.02);
    }
    50% {
        transform: translate(38%, 40%) scale(0.92);
    }
}
