/* ==========================================================
   D-LUFFY — SPACE-GLASS SKELETON SHIMMER ENGINE (240Hz)
   Dual-Layout Shimmer: Server Overview (Manage) & User Overview (Dashboard)
   ========================================================== */
:root {
    --sk-bg: #0a0620;
    --sk-surface: rgba(24, 15, 68, 0.72);
    --sk-card: linear-gradient(165deg, rgba(34, 21, 96, 0.44) 0%, rgba(14, 8, 44, 0.72) 100%);
    --sk-subbox: rgba(10, 6, 32, 0.48);
    --sk-border: rgba(190, 180, 255, 0.13);
    --sk-shimmer: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(163, 157, 255, 0.12) 45%,
        rgba(255, 255, 255, 0.22) 50%,
        rgba(163, 157, 255, 0.12) 55%,
        rgba(255, 255, 255, 0) 100%
    );
}

#pro-loader[style*="fixed"],
#pro-loader[style*="fixed"]::before {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.sk-box,
.sk-line,
.sk-circle,
.sk-pill {
    position: relative;
    overflow: hidden;
    background-color: rgba(163, 157, 255, 0.08);
    border-radius: 10px;
}

.sk-box::after,
.sk-line::after,
.sk-circle::after,
.sk-pill::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background-image: var(--sk-shimmer);
    animation: skWave 1.35s infinite ease-in-out;
}

@keyframes skWave {
    100% {
        transform: translateX(100%);
    }
}

.sk-circle { border-radius: 50%; }
.sk-pill   { border-radius: 99px; }

#sk-page-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2147483647;
    background:
        radial-gradient(ellipse 60% 50% at 70% 0%, rgba(120, 80, 255, 0.22) 0%, transparent 70%),
        linear-gradient(180deg, #0a0620 0%, #150b42 100%);
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

#sk-page-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.sk-topbar {
    height: 56px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid rgba(190, 180, 255, 0.08);
    background: rgba(10, 6, 32, 0.65);
    flex-shrink: 0;
}

.sk-topbar-left,
.sk-topbar-right {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.sk-layout {
    display: flex;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.sk-dock {
    width: 72px;
    padding: 12px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    background: rgba(10, 6, 32, 0.45);
    flex-shrink: 0;
}

.sk-sidebar {
    width: 260px;
    margin: 12px 0 12px 4px;
    padding: 14px 12px 10px;
    border-radius: 18px;
    background: var(--sk-surface);
    border: 1px solid var(--sk-border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex-shrink: 0;
}

.sk-guild-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(190, 180, 255, 0.09);
    border-radius: 14px;
    padding: 14px 10px;
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.sk-dash-mode-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.sk-nav-scroll {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 4px 2px 0;
}

.sk-menu-hdr {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 12px 8px 6px;
}

.sk-menu-hdr:first-child {
    margin-top: 6px;
}

.sk-nav-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sk-nav-item {
    height: 44px;
    border-radius: 10px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid transparent;
}

.sk-nav-item.is-active {
    background: linear-gradient(90deg, rgba(122, 108, 255, 0.22) 0%, rgba(122, 108, 255, 0.06) 100%);
    border-color: rgba(163, 157, 255, 0.32);
    box-shadow: inset 3px 0 0 rgba(182, 245, 66, 0.65);
}

.sk-nav-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-left: auto;
    background: rgba(163, 157, 255, 0.16);
    flex-shrink: 0;
}

.sk-main-wrap {
    flex: 1;
    min-width: 0;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

.sk-main {
    width: 100%;
    max-width: 1420px;
    margin: 0 auto;
    padding: 26px 34px 48px;
    display: flex;
    flex-direction: column;
}

.sk-sg-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(190, 180, 255, 0.12);
}

.sk-sg-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.sk-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.sk-stat-card {
    background: var(--sk-card);
    border: 1px solid var(--sk-border);
    border-radius: 18px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.sk-card {
    background: var(--sk-card);
    border: 1px solid var(--sk-border);
    border-radius: 22px;
    padding: 22px 24px;
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sk-card-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.sk-modules-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sk-tab-loading {
    position: relative;
    overflow: hidden !important;
}
.sk-tab-loading::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 20;
    background-color: rgba(14, 8, 44, 0.55);
    background-image: var(--sk-shimmer);
    animation: skWave 0.9s ease-in-out forwards;
    pointer-events: none;
    border-radius: inherit;
}

.sk-ov-header-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.sk-ov-range-group {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border-radius: 10px;
    background: rgba(15, 17, 30, 0.72);
    border: 1px solid rgba(163, 157, 255, 0.14);
}

.sk-ov-kpi-card {
    align-items: flex-start;
}

.sk-ov-charts-grid,
.sk-ov-split-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.sk-ov-charts-grid .sk-card,
.sk-ov-split-grid .sk-card {
    margin-bottom: 0;
}

.sk-ov-chart-area {
    height: 235px;
    border-radius: 14px;
    background: rgba(10, 6, 32, 0.42);
    border: 1px solid rgba(190, 180, 255, 0.08);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sk-ov-chart-legend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.sk-ov-chart-lines {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    padding: 8px 0;
}

.sk-ov-chart-gridline {
    height: 1px;
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
}

.sk-ov-chart-axis {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.sk-ov-list-stack {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.sk-ov-list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.sk-ov-chan-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.sk-ov-qa-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    padding-top: 12px;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

.sk-du-wish-banner {
    background: var(--sk-card);
    border: 1px solid var(--sk-border);
    border-radius: 20px;
    padding: 16px 20px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.sk-du-bars-area {
    height: 220px;
    border-radius: 14px;
    background: rgba(10, 6, 32, 0.42);
    border: 1px solid rgba(190, 180, 255, 0.08);
    padding: 16px 18px 12px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.sk-du-bar-col {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.sk-du-quest-row {
    padding: 11px 13px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

@media (max-width: 1080px) {
    .sk-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sk-ov-charts-grid,
    .sk-ov-split-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .sk-sidebar, .sk-dock { display: none; }
}

@media (max-width: 640px) {
    .sk-main { padding: 20px 16px; }
    .sk-stats-grid { grid-template-columns: 1fr; }
    .sk-topbar-right .sk-pill:last-child { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .sk-box::after, .sk-line::after, .sk-circle::after, .sk-pill::after, .sk-tab-loading::after {
        animation: none !important;
    }
}
