:root {
    --bg-canvas: #eef2f6;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #94a3b8;
    
    --liquid-bg: rgba(255, 255, 255, 0.45);
    --liquid-specular: rgba(255, 255, 255, 0.85);
    --liquid-border: rgba(255, 255, 255, 0.6);
    --liquid-shadow: 0 20px 50px rgba(0, 0, 0, 0.04), 0 10px 20px rgba(0, 0, 0, 0.02);
    
    --accent-glow-cyan: #c2e9fb;
    --accent-glow-pink: #ffd1dc;
    --accent-glow-purple: #dcd6f7;
    
    --state-online: #10b981;
    --state-offline: #f43f5e;
    --spring-easing: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Quicksand', sans-serif;
    -webkit-font-smoothing: antialiased;
}
body {
    background: var(--bg-canvas);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    scrollbar-gutter: stable;
}

.spatial-viewport {
    position: relative;
    width: 100%;
    min-height: 100vh;
    perspective: 1200px;
    perspective-origin: 50% 20%;
    overflow: hidden;
    padding: 24px;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.55;
    z-index: 0;
    pointer-events: none;
    animation: spatialDrift 18s infinite alternate ease-in-out;
}
.orb-1 { width: 550px; height: 550px; background: var(--accent-glow-cyan); top: -8%; left: 5%; }
.orb-2 { width: 650px; height: 650px; background: var(--accent-glow-pink); bottom: -10%; right: 5%; animation-delay: -6s; }
.orb-3 { width: 450px; height: 450px; background: var(--accent-glow-purple); top: 30%; left: 45%; animation-delay: -11s; }

@keyframes spatialDrift {
    0% { transform: translateY(0px) rotate(0deg) scale(1); }
    100% { transform: translateY(40px) rotate(10deg) scale(1.08); }
}

.glass-liquid {
    background: linear-gradient(180deg, #ffffff 0%, #ffffff 67%, #e2e8f0 100%);
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow: var(--liquid-shadow), inset 0 1px 1px var(--liquid-specular);
}

.studio-wrapper {
    position: relative;
    z-index: 10;
    max-width: 1450px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.studio-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 26px;
    border-radius: 28px;
    position: relative;
    z-index: 999999;
    background: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 1);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand-cube {
    width: 44px;
    height: 44px;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    background: linear-gradient(135deg, #0f172a, #334155);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 20px;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.2);
}

.brand-titles h1 { font-size: 19px; font-weight: 800; letter-spacing: -0.5px; }
.brand-titles span { font-size: 12px; color: var(--text-tertiary); font-weight: 600; }

.main-tabs {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.38);
    padding: 5px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02), 0 4px 16px rgba(15, 23, 42, 0.03);
    gap: 4px;
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    flex-shrink: 1;
    min-width: 0;
}

.main-tabs::-webkit-scrollbar {
    display: none;
}

.tab-sliding-indicator {
    position: absolute;
    top: 5px;
    bottom: 5px;
    left: 0;
    width: 0;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    z-index: 1;
}

.tab-btn {
    background: transparent;
    border: none;
    outline: none;
    padding: 8px 18px;
    border-radius: 16px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.25s ease, transform 0.2s ease;
    white-space: nowrap;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.tab-btn:hover {
    color: var(--text-primary);
    transform: translateY(-1px);
}

.tab-btn.active {
    color: var(--text-primary);
    font-weight: 800;
}

.service-dock {
    display: inline-flex;
    align-items: center;
    height: 46px !important;
    background: rgba(255, 255, 255, 0.55);
    padding: 4px !important;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02), 0 6px 18px rgba(15, 23, 42, 0.03);
    gap: 4px;
    position: relative;
    box-sizing: border-box;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}

.service-dock .dock-item {
    height: 38px !important;
    padding: 0 16px !important;
    box-sizing: border-box;
}

.service-dock .dock-sliding-indicator {
    top: 4px !important;
    bottom: 4px !important;
    height: 38px !important;
}

.service-dock::-webkit-scrollbar {
    display: none;
}

.dock-sliding-indicator {
    position: absolute;
    top: 5px;
    bottom: 5px;
    left: 0;
    width: 0;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), width 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.15s ease;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    will-change: transform, width;
}

.dock-item-icon {
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .cluster-head {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 10px !important;
        margin-bottom: 14px;
        flex-wrap: wrap !important;
        max-width: 100% !important;
    }
    .cluster-tag-group {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        flex-wrap: wrap !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }
    .key-badge {
        padding: 5px 10px;
        font-size: 12px;
        border-radius: 10px;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .status-badge {
        padding: 4px 8px;
        font-size: 9.5px;
        flex-shrink: 0 !important;
    }
    .cluster-stats {
        width: auto;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        flex-wrap: wrap !important;
        max-width: 100% !important;
    }
    .cluster-stats .stat-capsule {
        flex: none;
        padding: 5px 8px;
        font-size: 11px;
        border-radius: 10px;
        gap: 3px;
        box-sizing: border-box;
        white-space: nowrap;
    }
    .acc-matrix {
        grid-template-columns: 1fr;
    }
    .key-cluster {
        padding: 18px 14px;
        border-radius: 24px;
    }
    #managerHeader {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 16px !important;
        width: 100% !important;
        box-sizing: border-box;
    }
    #managerFilterDock {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: unset !important;
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        padding: 6px !important;
        gap: 8px !important;
        box-sizing: border-box;
        overflow: visible !important;
    }
    #managerFilterDock > div {
        width: 100% !important;
        flex: 1 1 100% !important;
        box-sizing: border-box;
        margin: 0 !important;
    }
    #managerSearchInput {
        width: 100% !important;
        min-width: 0 !important;
        flex: 1 !important;
    }
    #managerFilterDock .dock-item {
        flex: 1 1 calc(50% - 4px) !important;
        min-width: 0 !important;
        justify-content: center !important;
        text-align: center !important;
        height: 38px !important;
        padding: 0 8px !important;
        font-size: 12.5px !important;
    }
    #managerFilterDock .dock-sliding-indicator {
        display: block !important;
    }
    .overview-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .key-detail-card {
        padding: 18px 16px;
        border-radius: 20px;
    }
    .key-actions-row {
        flex-direction: column;
        gap: 8px;
    }
    .btn-action {
        width: 100%;
        padding: 12px;
    }
}

.workspace-dock-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center !important;
    width: 100%;
    gap: 14px;
    margin-bottom: 24px;
    box-sizing: border-box;
}

.workspace-dock-wrapper .service-dock {
    margin: 0 !important;
    align-self: center !important;
}

.dock-item {
    background: transparent;
    border: none;
    outline: none;
    padding: 8px 16px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.25s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    white-space: nowrap;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    scroll-snap-align: start;
    box-sizing: border-box;
}

.dock-item:hover {
    color: var(--text-primary);
    transform: translateY(-1px);
}

.dock-item.active {
    background: transparent !important;
    color: var(--text-primary) !important;
    font-weight: 800;
    box-shadow: none !important;
    transform: none !important;
}

@media (max-width: 820px) {
    .workspace-dock-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin-bottom: 20px;
        width: 100%;
    }
    .service-dock {
        display: flex !important;
        width: 100% !important;
        height: 48px;
        padding: 5px;
        box-sizing: border-box;
        justify-content: stretch;
    }
    .dock-item {
        flex: 1 1 0px !important;
        width: 100%;
        padding: 6px 8px !important;
        font-size: 12px;
        height: 38px;
        box-sizing: border-box;
        justify-content: center;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .dock-item span:last-child {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

.dock-item:hover {
    color: var(--text-primary);
    transform: translateY(-1px);
}

.dock-item.active {
    background: #ffffff;
    color: var(--text-primary);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    transform: scale(1.02);
}

.header-utilities {
    display: flex;
    align-items: center;
    gap: 16px;
}

#discordAvatarWrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: 10px;
    z-index: 100001;
}

#discordUserAvatar {
    width: 46px !important;
    height: 46px !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 1) !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.15) !important;
    box-sizing: border-box;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.status-indicator-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 40px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.pulsing-core {
    width: 8px;
    height: 8px;
    background: var(--state-online);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--state-online);
    animation: corePulse 2s infinite ease-in-out;
}

@keyframes corePulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.5; }
}

.glass-action-btn {
    background: #0f172a;
    color: #fff;
    border: none;
    padding: 0 16px;
    height: 38px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s var(--spring-easing);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    box-sizing: border-box;
    flex-shrink: 0;
}

.glass-action-btn:hover {
    background: #1e293b;
    transform: translateY(-2px) scale(1.02);
}

.view-section {
    display: none;
    animation: spatialFadeIn 0.4s var(--spring-easing);
}
.view-section.active {
    display: block;
}

@keyframes spatialFadeIn {
    from { opacity: 0; transform: translateY(15px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.workspace-stage {
    display: flex;
    flex-direction: column;
    gap: 32px;
    transform-style: preserve-3d;
}

.key-cluster {
    border-radius: 32px;
    padding: 28px;
    transform-style: preserve-3d;
    transition: transform 0.15s ease-out, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.key-cluster::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 100%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255,255,255,0.4) 0%, transparent 60%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.key-cluster:hover::before { opacity: 1; }

.cluster-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    transform: translateZ(20px);
    flex-wrap: wrap;
    gap: 12px;
    max-width: 100%;
}

.cluster-tag-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    max-width: 100%;
    min-width: 0;
}

.key-badge {
    background: #0f172a;
    color: #fff;
    padding: 6px 14px;
    border-radius: 12px;
    font-family: monospace;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-sizing: border-box;
}

.key-badge-toggle {
    cursor: pointer;
    user-select: none;
    transition: all 0.25s var(--spring-easing);
}

.key-badge-toggle:hover {
    background: #1e293b;
    transform: translateY(-1.5px) scale(1.02);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.22);
}

.stat-capsule {
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 1);
    padding: 8px 18px;
    border-radius: 14px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-secondary);
    box-shadow: 
        0 6px 18px rgba(15, 23, 42, 0.12),
        0 2px 6px rgba(15, 23, 42, 0.08),
        inset 0 1px 1px rgba(255, 255, 255, 1);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}

.stat-capsule:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 10px 24px rgba(15, 23, 42, 0.16),
        0 4px 8px rgba(15, 23, 42, 0.1),
        inset 0 1px 1px rgba(255, 255, 255, 1);
}

.stat-capsule b { 
    color: var(--text-primary);
    font-weight: 800;
}

.acc-matrix {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 20px;
    transform-style: preserve-3d;
}

.acc-card-wrapper, .key-card-wrapper {
    perspective: 1000px;
    cursor: pointer;
}
.acc-card-3d, .key-detail-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(241, 245, 249, 0.65) 50%, rgba(226, 232, 240, 0.5) 100%) !important;
    backdrop-filter: blur(28px) saturate(200%);
    -webkit-backdrop-filter: blur(28px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 1) !important;
    border-radius: 24px;
    padding: 22px;
    transform-style: preserve-3d;
    will-change: transform;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: 
        0 18px 45px rgba(15, 23, 42, 0.08),
        0 6px 18px rgba(15, 23, 42, 0.05),
        0 1px 3px rgba(0, 0, 0, 0.03),
        inset 0 1.5px 2px rgba(255, 255, 255, 1),
        inset 0 -1.5px 2px rgba(203, 213, 225, 0.3) !important;
    pointer-events: none; 
}
.key-detail-card {
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 250px;
    height: 100%;
    box-sizing: border-box;
}

.acc-card-wrapper:hover .acc-card-3d, .key-card-wrapper:hover .key-detail-card {
    transform: translateY(-8px) scale(1.015);
    box-shadow: 0 26px 55px rgba(15, 23, 42, 0.11), 0 8px 20px rgba(16, 185, 129, 0.08), inset 0 1.5px 3px rgba(255, 255, 255, 1);
    border-color: rgba(255, 255, 255, 1);
}

.acc-card-3d:hover, .key-detail-card:hover {
    transform: translateY(-8px) scale(1.015);
    box-shadow: 0 26px 55px rgba(15, 23, 42, 0.11), 0 8px 20px rgba(16, 185, 129, 0.08), inset 0 1.5px 3px rgba(255, 255, 255, 1);
    border-color: rgba(255, 255, 255, 1);
}

.acc-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    transform: translateZ(15px);
}

.acc-title { font-size: 16px; font-weight: 800; color: var(--text-primary); }

.state-orb {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    box-shadow: 0 0 10px currentColor;
}
.state-orb.online { color: var(--state-online); background: var(--state-online); }
.state-orb.offline { color: var(--state-offline); background: var(--state-offline); }

.acc-card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    transform: translateZ(10px);
}

.field-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.field-line span { color: var(--text-tertiary); font-weight: 600; }
.field-line b { color: var(--text-primary); font-weight: 700; }

.acc-click-hint {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    font-size: 11px;
    font-weight: 700;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transform: translateZ(5px);
}

.spatial-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(15, 23, 42, 0.25);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.spatial-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-sheet {
    width: 520px;
    max-width: 92%;
    border-radius: 36px;
    padding: 34px;
    transform: scale(0.9) translateY(40px) rotateX(10deg);
    transition: transform 0.4s var(--spring-easing);
    background: rgba(255, 255, 255, 0.82) !important;
    backdrop-filter: blur(35px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(35px) saturate(200%) !important;
    border: 1px solid rgba(255, 255, 255, 1) !important;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.12), inset 0 1px 2px rgba(255, 255, 255, 1) !important;
}

.sheet-field {
    background: rgba(255, 255, 255, 0.65) !important;
    border: 1px solid rgba(255, 255, 255, 0.9) !important;
    padding: 14px 18px;
    border-radius: 18px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.02);
}

.spatial-overlay.active .modal-sheet {
    transform: scale(1) translateY(0) rotateX(0deg);
}

.sheet-handle {
    width: 44px;
    height: 5px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    margin: -10px auto 20px auto;
}

.sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}
.sheet-tag { font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--text-tertiary); }
.sheet-header h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.5px; }

.sheet-close {
    background: rgba(0, 0, 0, 0.05);
    border: none;
    width: 32px; height: 32px;
    border-radius: 50%;
    font-size: 20px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}
.sheet-close:hover { background: rgba(0, 0, 0, 0.1); color: var(--text-primary); }

.sheet-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sheet-field {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.9);
    padding: 14px 18px;
    border-radius: 18px;
}
.sheet-field label { font-size: 11px; text-transform: uppercase; font-weight: 700; color: var(--text-tertiary); display: block; margin-bottom: 4px; }
.sheet-field p { font-size: 15px; font-weight: 700; color: var(--text-primary); word-break: break-all; }

.sheet-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 28px;
}

.btn-secondary {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 12px 22px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
}
.btn-primary {
    background: #0f172a;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.15);
    transition: all 0.2s ease;
}
.btn-primary:hover { transform: translateY(-2px); }

.overview-welcome-banner {
    margin-bottom: 36px;
    transform: translateZ(10px);
}

.welcome-badge {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #475569;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.9);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}


.welcome-title {
    font-size: 44px;
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 8px;
    background: linear-gradient(180deg, #ffffff 0%, #64748b 45%, #0f172a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.08));
}

.welcome-title .username-gradient {
    background: linear-gradient(180deg, #ffffff 0%, #94a3b8 40%, #000000 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    filter: drop-shadow(0 4px 12px rgba(15, 23, 42, 0.15));
}

.welcome-subtitle {
    font-size: 13.5px;
    font-weight: 600;
    color: #64748b;
    letter-spacing: -0.2px;
}

.bento-metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
    transform-style: preserve-3d;
}

.metric-bento-wrapper {
    perspective: 1000px;
    cursor: default;
}

.metric-bento-card {
    background: linear-gradient(180deg, #ffffff 0%, #ffffff 67%, #e2e8f0 100%);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 26px;
    padding: 24px 26px;
    transform-style: preserve-3d;
    will-change: transform;
    pointer-events: none;
    position: relative;
    overflow: hidden;
    transition: transform 0.15s ease-out, box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.03),
        0 14px 36px rgba(15, 23, 42, 0.04),
        inset 0 1px 2px rgba(255, 255, 255, 1);
}

.metric-bento-wrapper:hover .metric-bento-card {
    border-color: rgba(255, 255, 255, 1);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.05),
        0 22px 50px rgba(15, 23, 42, 0.08),
        inset 0 1px 2px rgba(255, 255, 255, 1);
}

.metric-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
    transform: translateZ(15px);
}

.metric-icon-badge {
    width: 38px;
    height: 38px;
    border-radius: 13px;
    background: linear-gradient(180deg, #334155 0%, #1e293b 60%, #0f172a 100%);
    border: none;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        inset 0 -1px 0 rgba(0, 0, 0, 0.4),
        0 4px 10px rgba(15, 23, 42, 0.15),
        0 10px 22px rgba(15, 23, 42, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.metric-bento-wrapper:hover .metric-icon-badge {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(0, 0, 0, 0.5),
        0 6px 14px rgba(15, 23, 42, 0.22),
        0 14px 28px rgba(15, 23, 42, 0.14);
}
.metric-label {
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    letter-spacing: -0.2px;
}

.metric-val {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1;
    transform: translateZ(25px);
    background: linear-gradient(180deg, #ffffff 0%, #475569 48%, #0f172a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.1));
}

.metric-footer-glow {
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.08), transparent);
}

.overview-summary-container {
    display: grid;
    grid-template-columns: 1.8fr 1.2fr;
    gap: 24px;
}

.summary-panel {
    border-radius: 28px;
    padding: 30px;
    background: linear-gradient(180deg, #ffffff 0%, #ffffff 67%, #e2e8f0 100%);
    border: 1px solid rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(24px) saturate(180%);
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.03),
        0 20px 48px rgba(15, 23, 42, 0.04),
        inset 0 1px 2px rgba(255, 255, 255, 1);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.summary-panel:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 
        0 14px 38px rgba(0, 0, 0, 0.05),
        0 28px 60px rgba(15, 23, 42, 0.06),
        inset 0 1px 2px rgba(255, 255, 255, 1);
}

.panel-title {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #0f172a;
    background: none;
    -webkit-text-fill-color: initial;
    filter: none;
}

.panel-title b {
    color: #64748b;
    font-weight: 700;
    -webkit-text-fill-color: initial;
}

.progress-track {
    width: 100%;
    height: 10px;
    background: rgba(148, 163, 184, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    overflow: hidden;
    margin: 14px 0 20px 0;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04);
    position: relative;
}

.progress-fill {
    height: 100%;
    border-radius: 20px;
    background: linear-gradient(
        90deg, 
        #94a3b8 0%, 
        #cbd5e1 25%, 
        #ffffff 50%, 
        #cbd5e1 75%, 
        #94a3b8 100%
    );
    background-size: 200% 100%;
    animation: silverSweep 8s ease-in-out infinite;
    box-shadow: 0 0 16px rgba(203, 213, 225, 0.8), inset 0 1px 1px #ffffff;
    transition: width 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

@keyframes silverSweep {
    0% { background-position: 200% 0; }
    50% { background-position: 0% 0; }
    100% { background-position: -200% 0; }
}

.summary-panel .state-orb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 14px #10b981, 0 0 24px rgba(16, 185, 129, 0.4);
    animation: corePulseGreen 2.2s infinite ease-in-out;
}

@keyframes corePulseGreen {
    0%, 100% { transform: scale(1); opacity: 1; filter: drop-shadow(0 0 2px #10b981); }
    50% { transform: scale(1.35); opacity: 0.7; filter: drop-shadow(0 0 8px #10b981); }
}

.summary-panel div[style*="font-size: 26px"] {
    background: linear-gradient(180deg, #ffffff 0%, #34d399 45%, #059669 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text;
    -webkit-text-fill-color: transparent !important;
    filter: drop-shadow(0 2px 8px rgba(16, 185, 129, 0.25));
}

@media (max-width: 960px) {
    .overview-summary-container {
        grid-template-columns: 1fr;
    }
    .studio-header {
        padding: 14px 16px;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        row-gap: 12px;
    }
    .brand {
        order: 1;
    }
    .brand-titles span {
        display: none;
    }
    .studio-header {
        position: relative;
        padding: 14px 16px;
    }
    .studio-header {
        position: relative;
        padding: 12px 18px;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        row-gap: 10px;
    }
    .brand {
        order: 1;
        flex-shrink: 0;
    }
    .brand-titles span {
        display: none;
    }
    .header-utilities {
        order: 2;
        width: auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 8px;
        margin: 0 !important;
        padding: 0;
        box-sizing: border-box;
    }
    .status-indicator-pill {
        order: 1;
        padding: 6px 10px;
        font-size: 11px;
        white-space: nowrap;
        gap: 5px;
        height: 34px;
        display: inline-flex;
        align-items: center;
        border-radius: 14px;
        box-sizing: border-box;
        flex-shrink: 0;
    }
    .status-indicator-pill .pulsing-core {
        width: 6px;
        height: 6px;
        flex-shrink: 0;
    }
    .glass-action-btn {
        order: 2;
        padding: 0 12px;
        height: 34px;
        font-size: 11px;
        white-space: nowrap;
        border-radius: 14px;
        box-sizing: border-box;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }
    #discordAvatarWrapper {
        order: 3;
        position: relative !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 0 0 6px !important;
        z-index: 100001;
    }
    #discordUserAvatar {
        width: 44px !important;
        height: 44px !important;
        aspect-ratio: 1 / 1 !important;
        border: 2px solid rgba(255, 255, 255, 1) !important;
        box-shadow: 0 4px 14px rgba(15, 23, 42, 0.15) !important;
        box-sizing: border-box;
        border-radius: 50%;
        cursor: pointer;
        display: block !important;
    }

    @media (max-width: 650px) {
        .studio-header {
            padding: 10px 12px;
            row-gap: 8px;
        }
        .header-utilities {
            width: 100% !important;
            justify-content: flex-start !important;
            gap: 6px;
        }
        .status-indicator-pill {
            padding: 4px 8px;
            font-size: 10px;
            height: 30px;
        }
        .glass-action-btn {
            padding: 0 8px;
            font-size: 10px;
            height: 30px;
        }
        #discordAvatarWrapper {
            position: absolute !important;
            top: 14px !important;
            bottom: calc(100% - 88px) !important;
            right: 12px !important;
            left: calc(6px + 90px + 6px + 95px + 6px) !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            margin: 0 !important;
            pointer-events: none;
        }
        #discordUserAvatar {
            width: 58px !important;
            height: 58px !important;
            border: 2.5px solid rgba(255, 255, 255, 1) !important;
            pointer-events: auto;
        }
    }
    .main-tabs {
        order: 3;
        width: 100% !important;
        max-width: 100% !important;
        padding: 5px !important;
        margin-top: 2px;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        gap: 6px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }
    .main-tabs::-webkit-scrollbar {
        display: none;
    }
    .tab-btn {
        flex: 0 0 calc((100% - 12px) / 3) !important;
        width: calc((100% - 12px) / 3) !important;
        padding: 8px 4px !important;
        font-size: 12px !important;
        font-weight: 700;
        text-align: center;
        justify-content: center;
        white-space: nowrap !important;
        scroll-snap-align: start;
        box-sizing: border-box;
    }
}

.overview-bento-showcase {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 24px;
    margin-top: 24px;
}

.showcase-card {
    border-radius: 28px;
    padding: 30px;
    background: linear-gradient(180deg, #ffffff 0%, #ffffff 67%, #e2e8f0 100%);
    border: 1px solid rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(24px) saturate(180%);
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.03),
        0 20px 48px rgba(15, 23, 42, 0.04),
        inset 0 1px 2px rgba(255, 255, 255, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}
.showcase-card:hover {
    transform: translateY(-4px) scale(1.005);
    box-shadow: 
        0 14px 38px rgba(0, 0, 0, 0.05),
        0 28px 60px rgba(15, 23, 42, 0.06),
        inset 0 1px 2px rgba(255, 255, 255, 1);
}

.showcase-head {
    margin-bottom: 20px;
}

.showcase-tag {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #64748b;
    text-transform: uppercase;
    display: block;
    margin-bottom: 4px;
}

.showcase-title {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #0f172a;
    margin-bottom: 4px;
}

.showcase-desc {
    font-size: 12.5px;
    color: #64748b;
    font-weight: 600;
}

.console-screen-mock {
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 18px;
    padding: 16px;
    font-family: monospace;
    font-size: 12px;
}

.console-screen-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 12px;
}

.console-dots {
    display: flex;
    gap: 7px;
    align-items: center;
}

.console-dots span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #cbd5e1;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
    display: inline-block;
    animation: dotBlinkLoop 1.8s infinite ease-in-out;
}

.console-dots span:nth-child(1) {
    animation-delay: 0s;
}

.console-dots span:nth-child(2) {
    animation-delay: 0.3s;
}

.console-dots span:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes dotBlinkLoop {
    0%, 100% {
        background: #cbd5e1;
        border-color: rgba(0, 0, 0, 0.08);
        box-shadow: none;
        transform: scale(1);
    }
    35% {
        background: #ffffff;
        border-color: rgba(15, 23, 42, 0.25);
        box-shadow: 0 2px 5px rgba(15, 23, 42, 0.08);
        transform: scale(1.1);
    }
}

.console-title {
    font-size: 11px;
    color: #64748b;
    font-weight: 700;
}

.console-screen-body {
    line-height: 1.6;
}

.code-comment { color: #94a3b8; font-style: italic; }
.code-kw { color: #0f172a; font-weight: 700; }
.code-fn { color: #475569; font-weight: 700; }
.code-str { color: #334155; }
.code-prop { color: #475569; }
.code-num { color: #0f172a; font-weight: 700; }

.benchmark-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.benchmark-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 14px 18px;
    border-radius: 18px;
    box-shadow: 
        0 4px 16px rgba(15, 23, 42, 0.07),
        0 1px 4px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}

.benchmark-row:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 22px rgba(15, 23, 42, 0.11),
        0 2px 6px rgba(0, 0, 0, 0.05);
}
.benchmark-meta {
    display: flex;
    align-items: center;
    gap: 14px;
}

.benchmark-icon {
    font-size: 16px;
}

.benchmark-name {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
}

.benchmark-sub {
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
}

.benchmark-pill {
    background: rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
    font-family: monospace;
    color: #0f172a;
}

.carousel-3d-stage {
    position: relative;
    height: 220px;
    perspective: 1000px;
    perspective-origin: 50% 50%;
    transform-style: preserve-3d;
    overflow: hidden;
    padding: 0;
    box-sizing: border-box;
}

.carousel-card {
    position: absolute;
    top: 0;
    left: 8px;
    right: 8px;
    width: auto;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 12px 16px;
    border-radius: 18px;
    transition: 
        transform 0.65s cubic-bezier(0.25, 1.2, 0.5, 1), 
        opacity 0.65s ease,
        filter 0.65s ease,
        box-shadow 0.65s ease,
        border-color 0.65s ease;
    will-change: transform, opacity, filter;
    cursor: default;
}

.carousel-card.pos-top {
    transform: translateY(6px) scale(0.94);
    opacity: 0.45;
    filter: blur(0.8px);
    z-index: 1;
    pointer-events: none;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.carousel-card.pos-center {
    transform: translateY(74px) scale(1);
    opacity: 1;
    filter: blur(0px);
    z-index: 3;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 
        0 8px 24px rgba(15, 23, 42, 0.09),
        0 2px 6px rgba(0, 0, 0, 0.04);
}

.carousel-card.pos-bottom {
    transform: translateY(142px) scale(0.94);
    opacity: 0.45;
    filter: blur(0.8px);
    z-index: 1;
    pointer-events: none;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}
.masked-user-name {
    font-family: monospace;
    letter-spacing: 0.5px;
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
}

.activity-user-badge {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    color: #0f172a;
    font-family: monospace;
}

.activity-text {
    flex: 1;
    margin: 0 14px;
}

.activity-text div {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
}

.activity-text span {
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
}

.activity-time {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 700;
}

.global-mesh-orb-wrap {
    height: 190px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    margin-top: -12px;
    margin-bottom: 24px;
    perspective: 900px;
}

.mesh-radar-sweep {
    position: absolute;
    width: 146px;
    height: 146px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0deg, rgba(15, 23, 42, 0.08) 180deg, transparent 360deg);
    animation: radarRotate 8s linear infinite;
    pointer-events: none;
}

.wireframe-ring {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.ring-outer {
    width: 142px;
    height: 142px;
    border: 1px dashed rgba(15, 23, 42, 0.22);
    box-shadow: 0 0 16px rgba(0, 0, 0, 0.03);
    animation: spinRing 24s linear infinite;
}

.ring-tilt-1 {
    width: 134px;
    height: 64px;
    border: 1px solid rgba(15, 23, 42, 0.35);
    transform: rotateX(65deg) rotateZ(30deg);
    animation: spinRingTilt1 16s linear infinite;
}

.ring-tilt-2 {
    width: 134px;
    height: 64px;
    border: 1px dashed rgba(15, 23, 42, 0.28);
    transform: rotateX(65deg) rotateZ(-30deg);
    animation: spinRingTilt2 18s linear infinite reverse;
}

.ring-core-orbit {
    width: 80px;
    height: 80px;
    border: 1px dotted rgba(15, 23, 42, 0.32);
    animation: spinRing 12s linear infinite;
}

.mesh-center-glow {
    position: absolute;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, rgba(15, 23, 42, 0.12) 60%, transparent 100%);
    filter: blur(4px);
}

.mesh-center-core {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #0f172a;
    box-shadow: 0 0 14px rgba(15, 23, 42, 0.5);
    z-index: 2;
}

.mesh-ping-label {
    position: absolute;
    bottom: -16px;
    font-size: 11.5px;
    font-weight: 800;
    color: #0f172a;
    background: #ffffff;
    padding: 6px 16px;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.07);
    box-shadow: 
        0 6px 18px rgba(15, 23, 42, 0.1),
        0 2px 6px rgba(0, 0, 0, 0.04);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    z-index: 10;
}

@keyframes spinRing {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes spinRingTilt1 {
    from { transform: rotateX(65deg) rotateZ(0deg); }
    to { transform: rotateX(65deg) rotateZ(360deg); }
}

@keyframes spinRingTilt2 {
    from { transform: rotateX(65deg) rotateZ(0deg); }
    to { transform: rotateX(65deg) rotateZ(-360deg); }
}

@keyframes radarRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (max-width: 960px) {
    .overview-bento-showcase {
        grid-template-columns: 1fr;
    }
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    transform-style: preserve-3d;
}

.key-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    transform: translateZ(10px);
}

.key-title {
    font-family: monospace;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    background: var(--liquid-bg);
    backdrop-filter: blur(30px) saturate(190%);
    -webkit-backdrop-filter: blur(30px) saturate(190%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 5px 12px;
    border-radius: 12px;
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.03),
        inset 0 1px 1px var(--liquid-specular);
    display: inline-flex;
    align-items: center;
    letter-spacing: 0.5px;
}
.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.status-badge.active { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.status-badge.blacklisted { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

.key-info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    transform: translateZ(5px);
}
.key-info-row b { color: var(--text-primary); }

.key-title-toggle {
    cursor: pointer;
    user-select: none;
    transition: all 0.2s var(--spring-easing);
}
.key-title-toggle:hover {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(15, 23, 42, 0.2);
    transform: translateY(-1px) scale(1.02);
}

.key-actions-row {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    width: 100%;
    transform: translateZ(10px);
}

.btn-action {
    flex: 1;
    padding: 11px 8px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 12.5px;
    cursor: pointer;
    transition: all 0.25s var(--spring-easing);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    outline: none;
    white-space: nowrap;
    border: 1px solid transparent;
}

.btn-copy-key {
    background: rgba(15, 23, 42, 0.05);
    color: #0f172a;
    border-color: rgba(15, 23, 42, 0.12);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
}
.btn-copy-key:hover {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
    transform: translateY(-2px);
}
.btn-copy-key.copied {
    background: #10b981 !important;
    color: #ffffff !important;
    border-color: #10b981 !important;
    box-shadow: 0 8px 18px rgba(16, 185, 129, 0.3) !important;
}

.btn-reset {
    background: rgba(244, 63, 94, 0.08);
    color: #e11d48;
    border-color: rgba(244, 63, 94, 0.25);
    box-shadow: 0 4px 12px rgba(244, 63, 94, 0.05);
}
.btn-reset:hover {
    background: #e11d48;
    color: #ffffff;
    border-color: #e11d48;
    box-shadow: 0 8px 20px rgba(225, 29, 72, 0.25);
    transform: translateY(-2px);
}

.redeem-container {
    max-width: 550px;
    margin: 60px auto;
    background: var(--liquid-bg);
    backdrop-filter: blur(30px) saturate(190%);
    -webkit-backdrop-filter: blur(30px) saturate(190%);
    border: 1px solid var(--liquid-border);
    padding: 48px;
    border-radius: 36px;
    text-align: center;
    box-shadow: var(--liquid-shadow), inset 0 1px 1px var(--liquid-specular);
    will-change: transform, box-shadow;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.redeem-container:hover {
    transform: translateY(-6px) translateZ(0) !important;
    box-shadow: 
        0 26px 60px rgba(15, 23, 42, 0.1),
        0 8px 24px rgba(15, 23, 42, 0.05),
        inset 0 1px 1px var(--liquid-specular);
}
.redeem-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #0f172a, #334155);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin: 0 auto 24px auto;
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.2);
    transform: translateZ(20px);
}

.brand-cube svg, .redeem-icon svg {
    display: block;
    stroke: #ffffff;
}

.redeem-title {
    font-weight: 800;
    font-size: 26px;
    margin-bottom: 10px;
    color: var(--text-primary);
    transform: translateZ(15px);
}

.redeem-desc {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 32px;
    transform: translateZ(15px);
}

.redeem-input {
    width: 100%;
    padding: 18px 24px;
    border-radius: 20px;
    border: 2px solid rgba(255,255,255,0.8);
    background: rgba(255,255,255,0.5);
    font-size: 18px;
    font-family: monospace;
    font-weight: 700;
    color: var(--text-primary);
    outline: none;
    transition: all 0.3s var(--spring-easing);
    margin-bottom: 24px;
    text-align: center;
    letter-spacing: 2px;
    transform: translateZ(10px);
}
.redeem-input:focus {
    border-color: #0f172a;
    background: #fff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transform: translateY(-2px) translateZ(10px);
}

.btn-redeem {
    width: 100%;
    background: #0f172a;
    color: #fff;
    padding: 18px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 800;
    border: none;
    cursor: pointer;
    transition: all 0.3s var(--spring-easing);
    transform: translateZ(15px);
}
.btn-redeem:hover {
    background: #1e293b;
    transform: translateY(-4px) translateZ(15px);
    box-shadow: 0 15px 30px rgba(15,23,42,0.25);
}


.modal-transition-swap {
    animation: modalContentSwap 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalContentSwap {
    0% {
        opacity: 0;
        transform: translateY(14px) scale(0.97);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.word-flip-container {
    display: inline-flex;
    vertical-align: bottom;
    height: 1.25em;
    overflow: hidden;
    position: relative;
    padding-bottom: 2px;
}

.word-flip-track {
    display: flex;
    flex-direction: column;
    animation: wordFlipLoop 8s cubic-bezier(0.65, 0, 0.35, 1) infinite;
    will-change: transform;
}


.word-flip-item {
    height: 1.25em;
    line-height: 1.25em;
    display: flex;
    align-items: center;
    white-space: nowrap;
    color: #0f172a;
    font-weight: 800;
}


@keyframes wordFlipLoop {
    0%, 20% {
        transform: translateY(0);
    }
    25%, 45% {
        transform: translateY(-1.25em);
    }
    50%, 70% {
        transform: translateY(-2.5em);
    }
    75%, 95% {
        transform: translateY(-3.75em);
    }
    100% {
        transform: translateY(-5em);
    }
}

.key-cluster:has(.empty-matrix) {
    padding: 22px 20px;
}

.key-cluster:has(.empty-matrix) .cluster-head {
    margin-bottom: 16px;
}

.empty-matrix {
    display: flex !important;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box;
}

.empty-key-msg {
    width: fit-content;
    max-width: 90%;
    margin: 0 auto;
    text-align: center;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-tertiary);
    background: rgba(15, 23, 42, 0.03);
    border: 1px dashed rgba(15, 23, 42, 0.12);
    padding: 14px 28px;
    border-radius: 16px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-sizing: border-box;
}

.user-profile-liquid-popup {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    width: 280px;
    background: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 1);
    border-radius: 24px;
    padding: 20px;
    box-shadow: 
        0 24px 60px rgba(15, 23, 42, 0.22),
        0 8px 24px rgba(15, 23, 42, 0.12);
    z-index: 99999999 !important;
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: liquidPopupIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transform-origin: top right;
}

.user-profile-liquid-popup.hidden {
    display: none !important;
}

@keyframes liquidPopupIn {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.user-profile-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-profile-avatar-large {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #ffffff;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
    flex-shrink: 0;
}

.user-profile-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.user-profile-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.user-profile-name {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-profile-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10.5px;
    font-weight: 800;
    color: #065f46;
    width: fit-content;
}

.user-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 6px #10b981;
}

.user-profile-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 16px;
    padding: 12px 14px;
}

.user-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.user-detail-row span {
    color: var(--text-tertiary);
    font-weight: 600;
}

.user-detail-row b {
    color: var(--text-primary);
    font-weight: 700;
}

.user-profile-actions {
    display: flex;
}

.btn-logout-liquid {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(244, 63, 94, 0.08);
    color: #e11d48;
    border: 1px solid rgba(244, 63, 94, 0.25);
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s var(--spring-easing);
}

.btn-logout-liquid:hover {
    background: #e11d48;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(225, 29, 72, 0.25);
    transform: translateY(-2px);
}

.chain-x-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.chain-x-overlay::before,
.chain-x-overlay::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -10%;
    width: 120%;
    height: 38px;
    background: repeating-linear-gradient(
        90deg,
        #1e293b 0px,
        #0f172a 10px,
        #334155 15px,
        #0f172a 20px,
        #1e293b 30px
    );
    border-top: 2px solid #475569;
    border-bottom: 3px solid #000000;
    box-shadow: 
        0 15px 30px rgba(0,0,0,0.6),
        inset 0 4px 8px rgba(255,255,255,0.1);
}

.chain-x-overlay::before {
    transform: translateY(-50%) rotate(25deg);
}

.chain-x-overlay::after {
    transform: translateY(-50%) rotate(-25deg);
}

.detail-dropdown-ui {
    margin-top: 16px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    padding: 16px;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.3s var(--spring-easing);
    max-height: 300px;
    overflow-y: auto;
}

.detail-dropdown-ui.hidden {
    display: none;
}

.json-ui-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.json-ui-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.9);
}

.json-ui-key {
    font-size: 12px;
    font-weight: 800;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.json-ui-val {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    font-family: monospace;
}
.dungeon-liquid-lock {
    max-width: 620px;
    width: 100%;
    margin: 40px auto 60px auto;
    padding: 56px 40px;
    border-radius: 38px;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateZ(0);
    will-change: transform, box-shadow;
    transition: transform 0.3s var(--spring-easing), box-shadow 0.3s ease;
}

.dungeon-liquid-lock:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 
        0 28px 65px rgba(15, 23, 42, 0.08),
        0 10px 25px rgba(15, 23, 42, 0.04),
        inset 0 1px 2px var(--liquid-specular);
}

.dungeon-glass-glow {
    position: absolute;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(203, 213, 225, 0.45) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    filter: blur(35px);
    z-index: 0;
}

.dungeon-lock-orb {
    width: 76px;
    height: 76px;
    border-radius: 24px;
    background: linear-gradient(180deg, #334155 0%, #1e293b 60%, #0f172a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -2px 0 rgba(0, 0, 0, 0.5),
        0 14px 32px rgba(15, 23, 42, 0.22),
        0 4px 10px rgba(15, 23, 42, 0.12);
    margin-bottom: 22px;
    position: relative;
    z-index: 1;
    transition: transform 0.25s var(--spring-easing);
}

.dungeon-liquid-lock:hover .dungeon-lock-orb {
    transform: translateY(-3px) scale(1.05);
}

.dungeon-badge-pill {
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: #475569;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.95);
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    position: relative;
    z-index: 1;
}

.dungeon-glass-title {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 10px;
    background: linear-gradient(180deg, #ffffff 0%, #475569 46%, #0f172a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.08));
    position: relative;
    z-index: 1;
}

.dungeon-glass-desc {
    font-size: 13.5px;
    font-weight: 600;
    color: #64748b;
    max-width: 420px;
    line-height: 1.55;
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
}

.dungeon-status-capsule {
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 1);
    padding: 10px 22px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    box-shadow: 
        0 8px 24px rgba(15, 23, 42, 0.08),
        0 2px 6px rgba(15, 23, 42, 0.04),
        inset 0 1px 1px rgba(255, 255, 255, 1);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.dungeon-pulsing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f59e0b;
    box-shadow: 0 0 10px #f59e0b;
    animation: corePulse 2s infinite ease-in-out;
}

.purchase-stage-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.pricing-control-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 22px;
    padding: 10px 18px;
    backdrop-filter: blur(20px);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.03);
}

.currency-toggle-capsule {
    display: inline-flex;
    background: rgba(15, 23, 42, 0.06);
    padding: 4px;
    border-radius: 14px;
    gap: 4px;
}

.currency-btn {
    border: none;
    background: transparent;
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 800;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.25s var(--spring-easing);
}

.currency-btn.active {
    background: #ffffff;
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.purchase-stage-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 1380px;
    margin: 0 auto;
    padding-bottom: 24px;
}

.pricing-bento-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 22px;
    transform-style: preserve-3d;
}

.bento-plan-card {
    grid-column: span 2;
    background: linear-gradient(175deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.88) 60%, rgba(226, 232, 240, 0.65) 100%);
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 1);
    border-radius: 30px;
    padding: 30px 26px 26px 26px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    min-height: 440px;
    box-shadow: 
        0 18px 45px rgba(15, 23, 42, 0.05),
        0 4px 12px rgba(15, 23, 42, 0.03),
        inset 0 1.5px 2px #ffffff;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease, border-color 0.28s ease;
}

.bento-plan-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 28px 65px rgba(15, 23, 42, 0.1),
        0 8px 20px rgba(15, 23, 42, 0.04),
        inset 0 1.5px 2px #ffffff;
    border-color: rgba(255, 255, 255, 1);
}

.bento-plan-card.plan-featured {
    grid-column: span 3;
    background: linear-gradient(175deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 245, 255, 0.95) 55%, rgba(243, 232, 255, 0.9) 100%);
    border: 1.5px solid rgba(168, 85, 247, 0.65);
    box-shadow: 
        0 24px 60px rgba(168, 85, 247, 0.12),
        0 8px 24px rgba(147, 51, 234, 0.06),
        inset 0 2px 3px #ffffff;
}

.bento-plan-card.plan-featured:hover {
    border-color: #a855f7;
    box-shadow: 
        0 30px 70px rgba(168, 85, 247, 0.22),
        0 10px 28px rgba(147, 51, 234, 0.1),
        inset 0 2px 3px #ffffff;
}

.bento-plan-card.plan-royal {
    grid-column: span 3;
    background: linear-gradient(175deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 251, 235, 0.95) 100%);
    border: 1.5px solid rgba(245, 158, 11, 0.7);
    box-shadow: 
        0 24px 60px rgba(245, 158, 11, 0.14),
        inset 0 2px 3px #ffffff;
}

.plan-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 18px;
}

.plan-badge-pill {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    padding: 5px 12px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.06);
    color: var(--text-primary);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.plan-badge-pill.badge-hot {
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 14px rgba(168, 85, 247, 0.35);
}

.plan-badge-pill.badge-vip {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.plan-duration-name {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.6px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.plan-sub-desc {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-tertiary);
    line-height: 1.4;
}

.plan-price-block {
    margin: 18px 0 22px 0;
    padding: 16px 0;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.plan-price-block::before,
.plan-price-block::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(15, 23, 42, 0.15) 35%, rgba(15, 23, 42, 0.15) 65%, transparent 100%);
}

.plan-price-block::before {
    top: 0;
}

.plan-price-block::after {
    bottom: 0;
}

.bento-plan-card.plan-featured .plan-price-block::before,
.bento-plan-card.plan-featured .plan-price-block::after {
    background: linear-gradient(90deg, transparent 0%, rgba(168, 85, 247, 0.45) 30%, rgba(168, 85, 247, 0.45) 70%, transparent 100%);
}

.bento-plan-card.plan-royal .plan-price-block::before,
.bento-plan-card.plan-royal .plan-price-block::after {
    background: linear-gradient(90deg, transparent 0%, rgba(245, 158, 11, 0.5) 30%, rgba(245, 158, 11, 0.5) 70%, transparent 100%);
}

.plan-primary-price {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -1.2px;
    color: #0f172a;
    line-height: 1;
}

.bento-plan-card.plan-featured .plan-primary-price {
    background: linear-gradient(180deg, #3b0764 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bento-plan-card.plan-royal .plan-primary-price {
    background: linear-gradient(180deg, #78350f 0%, #d97706 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.plan-secondary-price {
    font-size: 12.5px;
    font-weight: 800;
    color: var(--text-secondary);
    background: rgba(15, 23, 42, 0.05);
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 5px 12px;
    border-radius: 12px;
    letter-spacing: 0.3px;
}

.bento-plan-card.plan-featured .plan-secondary-price {
    background: rgba(168, 85, 247, 0.12);
    border-color: rgba(168, 85, 247, 0.3);
    color: #6b21a8;
}

.bento-plan-card.plan-royal .plan-secondary-price {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.35);
    color: #b45309;
}

.plan-specs-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 26px;
}

.plan-spec-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-secondary);
}

.spec-check-mark {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #10b981;
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
}

.plan-purchase-btn {
    width: 100%;
    padding: 15px;
    border-radius: 18px;
    font-size: 14px;
    font-weight: 800;
    border: none;
    cursor: pointer;
    background: #0f172a;
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.14);
    transition: all 0.25s var(--spring-easing);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.plan-purchase-btn:hover {
    background: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.24);
}

.bento-plan-card.plan-featured .spec-check-mark {
    background: rgba(168, 85, 247, 0.16);
    color: #8b5cf6;
}

.bento-plan-card.plan-featured .plan-purchase-btn {
    background: linear-gradient(135deg, #9333ea, #7c3aed);
    box-shadow: 0 10px 24px rgba(147, 51, 234, 0.28);
}

.bento-plan-card.plan-featured .plan-purchase-btn:hover {
    background: linear-gradient(135deg, #a855f7, #6d28d9);
    box-shadow: 0 14px 30px rgba(147, 51, 234, 0.4);
}

.bento-plan-card.plan-royal .plan-purchase-btn {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 10px 24px rgba(245, 158, 11, 0.3);
}

.bento-plan-card.plan-royal .plan-purchase-btn:hover {
    box-shadow: 0 14px 30px rgba(245, 158, 11, 0.42);
}

@media (max-width: 1080px) {
    .pricing-bento-grid {
        grid-template-columns: 1fr 1fr;
    }
    .bento-plan-card, .bento-plan-card.plan-featured, .bento-plan-card.plan-royal {
        grid-column: span 1;
    }
}

@media (max-width: 680px) {
    .pricing-bento-grid {
        grid-template-columns: 1fr;
    }
}

.community-stage-container {
    display: flex;
    flex-direction: column;
    gap: 22px;
    max-width: 1280px;
    margin: 0 auto;
    padding-bottom: 24px;
}

.community-hero-bento {
    background: linear-gradient(135deg, rgba(240, 249, 255, 0.92) 0%, rgba(255, 255, 255, 0.96) 45%, rgba(255, 241, 245, 0.92) 100%);
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    border: 1.5px solid rgba(255, 255, 255, 0.95);
    border-radius: 34px;
    padding: 38px 42px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    position: relative;
    overflow: hidden;
    box-shadow: 
        -30px -20px 70px 0px rgba(194, 233, 251, 0.65),
        30px 20px 70px 0px rgba(255, 209, 220, 0.75),
        0 0 60px 15px rgba(255, 255, 255, 0.9),
        inset 0 2px 4px #ffffff;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease;
}

.community-hero-bento:hover {
    transform: translateY(-6px);
    box-shadow: 
        -35px -25px 85px 0px rgba(194, 233, 251, 0.8),
        35px 25px 85px 0px rgba(255, 209, 220, 0.88),
        0 0 75px 20px rgba(255, 255, 255, 1),
        inset 0 2px 4px #ffffff;
    border-color: #ffffff;
}

.community-hero-content {
    display: flex;
    align-items: center;
    gap: 24px;
}

.discord-avatar-cube {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #5865f2 0%, #4338ca 100%);
    border-radius: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 
        0 14px 28px rgba(0, 0, 0, 0.22),
        0 4px 10px rgba(0, 0, 0, 0.12),
        inset 0 1px 1px rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
}

.community-hero-text h3 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.8px;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.community-hero-text p {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    max-width: 580px;
    line-height: 1.5;
}

.community-join-btn {
    background: #0f172a;
    color: #ffffff;
    padding: 16px 36px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 800;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.25);
    transition: all 0.25s var(--spring-easing);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    flex-shrink: 0;
}

.community-join-btn:hover {
    background: #1e293b;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.35);
}

.community-channels-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.community-feature-card {
    background: linear-gradient(175deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.88) 60%, rgba(226, 232, 240, 0.65) 100%);
    backdrop-filter: blur(28px) saturate(190%);
    -webkit-backdrop-filter: blur(28px) saturate(190%);
    border: 1px solid rgba(255, 255, 255, 1);
    border-radius: 28px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 
        0 14px 34px rgba(15, 23, 42, 0.04),
        inset 0 1.5px 2px #ffffff;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease, border-color 0.28s ease;
}

.community-feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 
        0 24px 50px rgba(15, 23, 42, 0.08),
        inset 0 1.5px 2px #ffffff;
    border-color: rgba(255, 255, 255, 1);
}

.feature-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.feature-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 15px;
    background: rgba(15, 23, 42, 0.05);
    border: 1px solid rgba(15, 23, 42, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text-primary);
}

.feature-card-title {
    font-size: 17.5px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.4px;
}

.feature-card-desc {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 18px;
}

.feature-tag-pill {
    align-self: flex-start;
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.05);
    color: var(--text-tertiary);
}

@media (max-width: 960px) {
    .community-hero-bento {
        flex-direction: column;
        align-items: flex-start;
        padding: 30px 24px;
    }
    .community-channels-grid {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================================
   MEYY HUB ADMIN ANALYTICS & LUA SCRIPT STUDIO UPGRADE (LIQUID GLASS 3D)
   ========================================================================== */

.admin-only-tab {
    position: relative;
}

.admin-only-tab::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    margin-left: 6px;
    vertical-align: middle;
}

.admin-action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 28px;
    padding: 18px 24px;
    border-radius: 26px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 250, 252, 0.85) 100%);
    border: 1px solid rgba(255, 255, 255, 1);
    box-shadow: 
        0 16px 40px rgba(15, 23, 42, 0.05),
        0 4px 12px rgba(15, 23, 42, 0.03),
        inset 0 1.5px 2px #ffffff;
}

.admin-action-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-spatial-admin {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 10px 18px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 
        0 8px 20px rgba(15, 23, 42, 0.16),
        inset 0 1px 1px rgba(255, 255, 255, 0.25);
    transition: all 0.25s var(--spring-easing);
    white-space: nowrap;
}

.btn-spatial-admin:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 12px 26px rgba(15, 23, 42, 0.24),
        inset 0 1px 1px rgba(255, 255, 255, 0.35);
}

.btn-spatial-admin.btn-soft {
    background: rgba(255, 255, 255, 0.85);
    color: var(--text-primary);
    border: 1px solid rgba(15, 23, 42, 0.1);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05), inset 0 1px 1px #ffffff;
}

.btn-spatial-admin.btn-soft:hover {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.22);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.09);
}

.btn-spatial-admin.btn-emerald {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: #34d399;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.35);
}

.btn-spatial-admin.btn-rose {
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
    border-color: #fb7185;
    box-shadow: 0 8px 20px rgba(225, 29, 72, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.35);
}

/* 6-Card Admin Bento Grid */
.admin-6metric-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-bottom: 30px;
    transform-style: preserve-3d;
}

.admin-metric-sub {
    margin-top: 10px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transform: translateZ(15px);
}

.admin-metric-pill {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 800;
    background: rgba(15, 23, 42, 0.05);
    color: var(--text-secondary);
}

.admin-metric-pill.pill-online {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
}

.admin-metric-pill.pill-warn {
    background: rgba(245, 158, 11, 0.14);
    color: #d97706;
}

.admin-metric-pill.pill-danger {
    background: rgba(244, 63, 94, 0.12);
    color: #e11d48;
}

/* Lua Script Cards Grid */
.lua-scripts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(410px, 1fr));
    gap: 26px;
    transform-style: preserve-3d;
    margin-bottom: 32px;
}

.lua-script-card-wrapper {
    perspective: 1100px;
}

.lua-script-card {
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.88) 55%, rgba(226, 232, 240, 0.68) 100%);
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    border: 1.5px solid rgba(255, 255, 255, 1);
    border-radius: 30px;
    padding: 26px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    transform-style: preserve-3d;
    will-change: transform;
    box-shadow: 
        0 20px 50px rgba(15, 23, 42, 0.07),
        0 6px 18px rgba(15, 23, 42, 0.04),
        inset 0 2px 3px rgba(255, 255, 255, 1),
        inset 0 -1.5px 2px rgba(203, 213, 225, 0.35);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.lua-script-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 
        0 28px 65px rgba(15, 23, 42, 0.11),
        0 10px 24px rgba(15, 23, 42, 0.06),
        inset 0 2px 3px rgba(255, 255, 255, 1);
}

.lua-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.lua-script-identity {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.lua-icon-cube {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 
        0 10px 20px rgba(15, 23, 42, 0.18),
        inset 0 1px 1px rgba(255, 255, 255, 0.35);
}

.lua-script-title-wrap {
    min-width: 0;
}

.lua-script-title {
    font-size: 19px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lua-script-file {
    font-family: monospace;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}

/* 5-Metric Telemetry Capsule Grid inside each Lua Script Card */
.lua-telemetry-matrix {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.lua-telemetry-cell {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 11px 14px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03), inset 0 1px 1px #ffffff;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.lua-telemetry-cell.span-2 {
    grid-column: span 2;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.lua-telemetry-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lua-telemetry-val {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.lua-telemetry-val.val-emerald {
    color: #10b981;
}

.levitate-card-surface,
.metric-bento-card,
.lua-script-card,
.acc-card-3d,
.key-detail-card,
.showcase-card,
.chart-glass-panel {
    position: relative;
    overflow: hidden;
    transform-style: flat !important;
    transition:
        transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.34s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.3s ease !important;
}

.levitate-card-surface::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        340px circle at var(--spot-x, 50%) var(--spot-y, 20%),
        rgba(255, 255, 255, 0.72) 0%,
        rgba(56, 189, 248, 0.08) 38%,
        transparent 72%
    );
    opacity: var(--spot-opacity, 0);
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 0;
}

.levitate-card-surface > * {
    position: relative;
    z-index: 1;
}

.metric-bento-wrapper:hover .metric-bento-card,
.lua-script-card-wrapper:hover .lua-script-card,
.chart-glass-panel:hover,
.showcase-card:hover {
    transform: translateY(-8px) scale(1.014) !important;
    box-shadow:
        0 26px 58px rgba(15, 23, 42, 0.11),
        0 8px 22px rgba(16, 185, 129, 0.08),
        inset 0 2px 3px rgba(255, 255, 255, 1) !important;
    border-color: rgba(255, 255, 255, 1) !important;
}

.lang-switch-pill {
    display: inline-flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 14px;
    padding: 3px;
    height: 36px;
    gap: 2px;
    cursor: pointer;
    box-sizing: border-box;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.lang-switch-pill:hover {
    background: rgba(15, 23, 42, 0.1);
}

.lang-opt {
    padding: 4px 9px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 800;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    line-height: 1;
}

.lang-opt.active {
    background: #0f172a;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2);
}

.live-stock-ticker-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    font-size: 11.5px;
    font-weight: 800;
    color: #065f46;
    font-family: monospace;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.08);
}

@keyframes stockTickUpFlash {
    0% { filter: drop-shadow(0 0 0 rgba(16, 185, 129, 0)); transform: translateY(0); }
    35% { filter: drop-shadow(0 0 12px rgba(16, 185, 129, 0.65)); transform: translateY(-2px); }
    100% { filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.1)); transform: translateY(0); }
}

@keyframes stockTickDownFlash {
    0% { filter: drop-shadow(0 0 0 rgba(244, 63, 94, 0)); transform: translateY(0); }
    35% { filter: drop-shadow(0 0 12px rgba(244, 63, 94, 0.65)); transform: translateY(2px); }
    100% { filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.1)); transform: translateY(0); }
}

@keyframes stockTickSyncPulse {
    0% { opacity: 1; }
    50% { opacity: 0.82; }
    100% { opacity: 1; }
}

.stock-tick-up {
    animation: stockTickUpFlash 0.7s ease-out;
}

.stock-tick-down {
    animation: stockTickDownFlash 0.7s ease-out;
}

.stock-tick-pulse {
    animation: stockTickSyncPulse 0.45s ease-in-out;
}

.command-studio-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 24px;
}

.cmd-subtabs-pill {
    display: inline-flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.05);
    padding: 4px;
    border-radius: 16px;
    gap: 4px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    flex-wrap: wrap;
}

.cmd-subtab-btn {
    border: none;
    background: transparent;
    padding: 8px 15px;
    border-radius: 12px;
    font-size: 12.5px;
    font-weight: 800;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
    white-space: nowrap;
}

.cmd-subtab-btn:hover {
    color: var(--text-primary);
}

.cmd-subtab-btn.active {
    background: #ffffff;
    color: var(--text-primary);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.cmd-search-box {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 14px;
    padding: 0 12px;
    height: 36px;
    min-width: 190px;
}

.cmd-search-box input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-primary);
    width: 100%;
}

.cmd-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin: 8px 0 18px 0;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-revenue-4grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.lua-scripts-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 24px !important;
    margin-bottom: 30px;
}

.deploy-filler-card {
    cursor: pointer;
    border: 2px dashed rgba(15, 23, 42, 0.16) !important;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.78) 0%, rgba(241, 245, 249, 0.65) 100%) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 100%;
}

.deploy-filler-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
}

.cmd-logs-orders-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.cmd-top-aligned-card {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    gap: 14px;
}

.cmd-feed-summary-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    background: rgba(15, 23, 42, 0.03);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 16px;
    padding: 10px 12px;
}

.cmd-feed-summary-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.cmd-feed-summary-cell span {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-tertiary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cmd-feed-summary-cell b {
    font-size: 15px;
    font-weight: 800;
    font-family: monospace;
    color: var(--text-primary);
}

.lua-meta-ribbon {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 12px 0;
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.035);
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-secondary);
    gap: 8px;
    flex-wrap: wrap;
}

.lua-lines-pill {
    font-family: monospace;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-primary);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.lua-weekly-chart-box {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.78) 100%);
    border: 1px solid rgba(255, 255, 255, 0.98);
    border-radius: 22px;
    padding: 14px 16px;
    box-shadow: inset 0 2px 6px rgba(15, 23, 42, 0.02), 0 6px 18px rgba(15, 23, 42, 0.04);
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.lua-chart-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 11px;
    font-weight: 800;
    color: var(--text-secondary);
    letter-spacing: 0.3px;
    gap: 8px;
}

.lua-chart-tag {
    font-family: monospace;
    font-size: 10.5px;
    font-weight: 800;
    color: #059669;
    background: rgba(16, 185, 129, 0.12);
    padding: 2px 8px;
    border-radius: 8px;
    white-space: nowrap;
}

.admin-charts-row {
    display: grid;
    grid-template-columns: 1.35fr 1.05fr;
    gap: 24px;
    margin-bottom: 28px;
}

.chart-glass-panel {
    border-radius: 30px;
    padding: 26px;
    background: linear-gradient(180deg, #ffffff 0%, #ffffff 68%, #e2e8f0 100%);
    border: 1px solid rgba(255, 255, 255, 0.98);
    box-shadow:
        0 16px 42px rgba(15, 23, 42, 0.05),
        inset 0 1.5px 2px #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.growth-chart-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.growth-kpi-strip {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
}

.growth-chart-compact .growth-kpi-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px;
}

.growth-kpi-pill {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(15, 23, 42, 0.07);
    border-radius: 12px;
    padding: 7px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.025);
}

.growth-chart-compact .growth-kpi-pill {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    gap: 6px;
}

.growth-kpi-pill span {
    font-size: 9.5px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-tertiary);
    letter-spacing: 0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.growth-kpi-pill b {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-primary);
    font-family: monospace;
    white-space: nowrap;
    flex-shrink: 0;
}

.growth-kpi-pill b.trend-pos {
    color: #10b981;
}

.growth-kpi-pill b.trend-neg {
    color: #f43f5e;
}

.growth-kpi-pill b.trend-neutral {
    color: #64748b;
}

.growth-svg-stage {
    position: relative;
    width: 100%;
    min-height: 215px;
    background: rgba(248, 250, 252, 0.72);
    border: 1px solid rgba(15, 23, 42, 0.07);
    border-radius: 18px;
    padding: 10px 6px 4px 6px;
    overflow: hidden;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.growth-chart-compact .growth-svg-stage {
    min-height: 162px;
}

.growth-chart-zoomed .growth-svg-stage {
    min-height: 330px;
}

.clickable-chart-stage {
    cursor: zoom-in;
}

.clickable-chart-stage:hover {
    border-color: rgba(16, 185, 129, 0.45);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.09);
}

.chart-expand-floating-btn {
    position: absolute;
    top: 8px;
    right: 10px;
    z-index: 4;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 10px;
    padding: 4px 10px;
    font-size: 10.5px;
    font-weight: 800;
    color: var(--text-primary);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    transition: all 0.2s ease;
}

.chart-expand-floating-btn:hover {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}

.growth-line-svg {
    width: 100%;
    height: auto;
    display: block;
    overflow: visible;
}

.chart-grid-line {
    stroke: rgba(15, 23, 42, 0.075);
    stroke-width: 1;
    stroke-dasharray: 4 4;
}

.chart-yaxis-label {
    font-size: 10px;
    font-weight: 800;
    fill: #64748b;
    font-family: monospace;
    text-anchor: end;
}

.chart-avg-line {
    stroke: rgba(245, 158, 11, 0.72);
    stroke-width: 1.5;
    stroke-dasharray: 5 4;
}

.chart-avg-tag-bg {
    fill: rgba(245, 158, 11, 0.16);
}

.chart-avg-tag-txt {
    font-size: 9px;
    font-weight: 800;
    fill: #b45309;
    font-family: monospace;
    text-anchor: middle;
}

.growth-main-curve {
    filter: drop-shadow(0 4px 8px rgba(16, 185, 129, 0.25));
}

.trend-node-group {
    cursor: pointer;
}

.trend-hover-guide {
    stroke: rgba(15, 23, 42, 0.18);
    stroke-width: 1.2;
    stroke-dasharray: 3 3;
    opacity: 0;
    transition: opacity 0.18s ease;
}

.trend-node-group:hover .trend-hover-guide {
    opacity: 1;
}

.trend-dot-halo {
    fill: rgba(16, 185, 129, 0.16);
    transition: r 0.2s ease, fill 0.2s ease;
}

.trend-dot-halo.trend-dot-peak {
    fill: rgba(245, 158, 11, 0.24);
}

.trend-dot-halo.trend-dot-today {
    fill: rgba(16, 185, 129, 0.28);
}

.trend-node-group:hover .trend-dot-halo {
    r: 10px;
    fill: rgba(14, 165, 233, 0.28);
}

.trend-dot-core {
    fill: #ffffff;
    stroke: #0ea5e9;
    stroke-width: 2.4;
    transition: transform 0.2s ease;
}

.trend-dot-core.trend-dot-today {
    fill: #10b981;
    stroke: #ffffff;
    stroke-width: 2;
}

.trend-dot-core.trend-dot-peak {
    fill: #f59e0b;
    stroke: #ffffff;
    stroke-width: 2;
}

.trend-val-label {
    font-size: 10px;
    font-weight: 800;
    fill: #1e293b;
    font-family: monospace;
    text-anchor: middle;
}

.trend-val-label.is-today {
    fill: #059669;
    font-size: 11px;
}

.trend-val-label.is-peak {
    fill: #d97706;
    font-size: 11px;
}

.trend-axis-label {
    font-size: 10.5px;
    font-weight: 800;
    fill: #475569;
    font-family: monospace;
    text-anchor: middle;
}

.trend-axis-label.is-today {
    fill: #059669;
}

.trend-axis-subdate {
    font-size: 9px;
    font-weight: 700;
    fill: #94a3b8;
    font-family: monospace;
    text-anchor: middle;
}

.chart-live-readout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(15, 23, 42, 0.07);
    border-radius: 14px;
    padding: 8px 12px;
    font-size: 11.5px;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.chart-readout-main {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
}

.chart-readout-day {
    font-weight: 800;
    color: var(--text-primary);
}

.chart-readout-day small {
    color: var(--text-tertiary);
    font-family: monospace;
}

.chart-readout-Metric {
    color: var(--text-secondary);
    font-weight: 700;
}

.chart-readout-badge {
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 10.5px;
    font-weight: 800;
    font-family: monospace;
}

.chart-readout-badge.trend-pos {
    background: rgba(16, 185, 129, 0.14);
    color: #059669;
}

.chart-readout-badge.trend-neg {
    background: rgba(244, 63, 94, 0.14);
    color: #e11d48;
}

.chart-readout-badge.trend-neutral {
    background: rgba(15, 23, 42, 0.06);
    color: #475569;
}

.chart-readout-pill {
    padding: 2px 7px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 800;
    font-family: monospace;
    background: rgba(245, 158, 11, 0.13);
    color: #b45309;
}

.chart-readout-sub {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
}

.chart-zoom-sheet {
    width: 1120px !important;
    max-width: 96vw !important;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    padding: 28px 32px !important;
}

.chart-zoom-body {
    display: flex;
    flex-direction: column;
    gap: 18px;
    overflow-y: auto;
    padding-right: 4px;
}

.zoom-breakdown-table-wrap {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    overflow-x: auto;
}

.zoom-breakdown-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
}

.zoom-breakdown-table th {
    text-align: left;
    padding: 11px 14px;
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-tertiary);
    background: rgba(15, 23, 42, 0.035);
    border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}

.zoom-breakdown-table td {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
    color: var(--text-primary);
}

.zoom-breakdown-table tr.zoom-row-today td {
    background: rgba(16, 185, 129, 0.07);
}

@media (max-width: 1120px) {
    .admin-revenue-4grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .lua-scripts-grid,
    .cmd-logs-orders-grid {
        grid-template-columns: 1fr !important;
    }
    .growth-kpi-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .admin-revenue-4grid {
        grid-template-columns: 1fr;
    }
    .growth-kpi-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .cmd-feed-summary-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Luau Code Studio Modal */
.lua-studio-sheet {
    width: 920px !important;
    max-width: 95vw !important;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    padding: 28px 32px !important;
}

.lua-studio-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow-y: auto;
    padding-right: 4px;
}

.lua-studio-meta-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 0.8fr 1fr;
    gap: 12px;
}

.lua-studio-input {
    width: 100%;
    padding: 11px 14px;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: rgba(255, 255, 255, 0.85);
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-primary);
    outline: none;
    transition: all 0.2s ease;
}

.lua-studio-input:focus {
    border-color: #0f172a;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.lua-editor-frame {
    background: #0f172a;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    overflow: hidden;
    box-shadow: 
        0 18px 40px rgba(15, 23, 42, 0.22),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.lua-editor-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    font-size: 12px;
    font-family: monospace;
}

.lua-code-textarea {
    width: 100%;
    min-height: 340px;
    max-height: 46vh;
    background: transparent;
    color: #f8fafc;
    border: none;
    outline: none;
    padding: 16px 18px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
    resize: vertical;
    tab-size: 4;
}

/* Responsive Breakpoints for Mobile, Tablet, Desktop */
@media (max-width: 1120px) {
    .admin-6metric-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .admin-charts-row {
        grid-template-columns: 1fr;
    }
    .lua-studio-meta-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .spatial-viewport {
        padding: 12px;
    }
    .admin-6metric-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .lua-scripts-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .lua-script-card {
        padding: 20px 16px;
        border-radius: 24px;
    }
    .admin-action-bar {
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
    }
    .admin-action-group {
        width: 100%;
        justify-content: stretch;
    }
    .admin-action-group .btn-spatial-admin {
        flex: 1 1 calc(50% - 6px);
        justify-content: center;
        font-size: 12px;
        padding: 10px 10px;
    }
    .timeline-bars-wrap {
        gap: 3px;
        height: 135px;
    }
    .timeline-date-lbl {
        font-size: 8px;
        transform: rotate(-35deg);
    }
    .lua-studio-sheet {
        padding: 20px 16px !important;
        border-radius: 26px;
    }
    .lua-studio-meta-grid {
        grid-template-columns: 1fr;
    }
    .lua-code-textarea {
        min-height: 240px;
        font-size: 12px;
    }
}

.getkey-stage-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    padding-bottom: 32px;
}

.getkey-top-grid {
    display: grid;
    grid-template-columns: 1.08fr 1.22fr;
    gap: 24px;
    align-items: stretch;
}

.getkey-hero-card {
    position: relative;
    border-radius: 32px;
    padding: 28px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.45) 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.92);
    box-shadow: 0 22px 48px -14px rgba(15, 23, 42, 0.08), inset 0 2px 4px rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(26px) saturate(180%);
    -webkit-backdrop-filter: blur(26px) saturate(180%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    overflow: hidden;
}

.getkey-status-ribbon {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 14px 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.getkey-quota-box {
    padding: 16px 18px;
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.035);
    border: 1px solid rgba(15, 23, 42, 0.07);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.getkey-quota-track {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    overflow: hidden;
    position: relative;
}

.getkey-quota-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #10b981 0%, #06b6d4 100%);
    transition: width 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.getkey-quota-fill.quota-full {
    background: linear-gradient(90deg, #f59e0b 0%, #e11d48 100%);
}

.getkey-script-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.getkey-script-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.getkey-script-pill.pill-locked {
    background: rgba(244, 63, 94, 0.1);
    color: #be123c;
    border-color: rgba(244, 63, 94, 0.25);
}

.btn-link4m-bypass {
    width: 100%;
    padding: 16px 22px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    font-family: 'Quicksand', sans-serif;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 14px 28px -6px rgba(15, 23, 42, 0.28), inset 0 1px 1px rgba(255, 255, 255, 0.3);
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-link4m-bypass:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 20px 34px -8px rgba(15, 23, 42, 0.36);
}

.btn-link4m-bypass:disabled {
    opacity: 0.52;
    cursor: not-allowed;
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    box-shadow: none;
}

.getkey-token-badge-big {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.14), rgba(6, 182, 212, 0.14));
    border: 1.5px solid rgba(16, 185, 129, 0.35);
    color: #065f46;
    font-weight: 800;
    font-size: 14px;
}

.getkey-token-actions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 8px;
}

.getkey-action-card {
    padding: 18px 16px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.68);
    border: 1.5px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 24px -8px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.getkey-action-card:hover {
    transform: translateY(-4px);
    border-color: rgba(16, 185, 129, 0.45);
    box-shadow: 0 16px 32px -10px rgba(16, 185, 129, 0.16);
}

.getkey-action-icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.07), rgba(15, 23, 42, 0.03));
    color: var(--text-primary);
}

.celebration-key-box {
    padding: 16px 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(6, 182, 212, 0.1));
    border: 1.5px solid rgba(16, 185, 129, 0.4);
    font-family: monospace;
    font-size: 18px;
    font-weight: 800;
    color: #047857;
    text-align: center;
    letter-spacing: 0.8px;
    user-select: all;
    word-break: break-all;
    box-shadow: 0 10px 24px rgba(16, 185, 129, 0.12);
}

.ft-script-picker-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    max-height: 210px;
    overflow-y: auto;
    padding: 6px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.03);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.ft-script-check-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(15, 23, 42, 0.08);
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    user-select: none;
    transition: all 0.18s ease;
}

.ft-script-check-pill:hover {
    border-color: rgba(16, 185, 129, 0.45);
    background: rgba(255, 255, 255, 0.96);
}

@media (max-width: 960px) {
    .getkey-top-grid {
        grid-template-columns: 1fr;
    }
    .getkey-token-actions-grid {
        grid-template-columns: 1fr;
    }
    .ft-script-picker-grid {
        grid-template-columns: 1fr;
    }
}
