
:root {
    --primary: #7c3aed;
    --primary-light: #a78bfa;
    --primary-dark: #5b21b6;
    --accent: #ec4899;
    --success: #10b981;
    --success-dark: #059669;
    --danger: #ef4444;
    --danger-dark: #dc2626;
    --warning: #f59e0b;
    --bg-dark: #09090b;
    --bg-surface: #111114;
    --bg-card: #1c1c21;
    --bg-card-hover: #27272a;
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    --text-main: #f4f4f5;
    --text-muted: #a1a1aa;
    --text-dim: #71717a;
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --online: #55ff55;
    --online-bg: rgba(85, 255, 85, 0.08);
    --online-border: rgba(85, 255, 85, 0.2);
    --online-bg-hover: rgba(85, 255, 85, 0.15);
    --online-border-hover: rgba(85, 255, 85, 0.4);
    --focus-ring: 0 0 0 2px rgba(124, 58, 237, 0.45);
    --activity-created-bg: rgba(0, 230, 118, 0.15);
    --activity-created-border: rgba(0, 230, 118, 0.25);
    --activity-updated-bg: rgba(255, 215, 0, 0.15);
    --activity-updated-border: rgba(255, 215, 0, 0.25);
    --activity-deleted-bg: rgba(255, 107, 107, 0.15);
    --activity-deleted-border: rgba(255, 107, 107, 0.25);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Utility Classes */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 0.5rem; }
.gap-12 { gap: 0.75rem; }
.gap-16 { gap: 1rem; }
.gap-20 { gap: 1.25rem; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.m-0 { margin: 0; }
.mb-20 { margin-bottom: 1.25rem; }
.mb-24 { margin-bottom: 1.5rem; }
.mb-30 { margin-bottom: 1.875rem; }
.p-20 { padding: 1.25rem; }
.text-center { text-align: center; }
.sticky { position: sticky; }
.relative { position: relative; }
.z-10 { z-index: 10; }
.cursor-pointer { cursor: pointer; }

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(
        90deg, 
        var(--bg-card) 25%, 
        rgba(255, 255, 255, 0.05) 50%, 
        var(--bg-card) 75%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite linear;
    border-radius: var(--radius-md);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-item {
    height: 120px;
    width: 100%;
    border: 1px solid var(--border);
}

.skeleton-button {
    height: 40px;
    width: 100%;
    max-width: 250px;
}

.skeleton-text {
    height: 20px;
    width: 100%;
    margin-bottom: 10px;
}

.skeleton-text.short {
    width: 60%;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 0% 0%, rgba(124, 58, 237, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(236, 72, 153, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}


        /* Header Components */
.user-badge {
    color: var(--online);
    font-size: 0.9em;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--online-bg);
    border: 1px solid var(--online-border);
    border-radius: 12px;
    transition: var(--transition);
    user-select: none;
}

.user-badge:hover {
    background: var(--online-bg-hover);
    border-color: var(--online-border-hover);
    transform: translateY(-1px);
}

.user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    image-rendering: pixelated;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--online);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--online);
    animation: pulse 2s ease-in-out infinite;
}

.btn-activity {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 165, 0, 0.3)) !important;
    border: 1px solid rgba(255, 215, 0, 0.4) !important;
}

.btn-publish {
    background: linear-gradient(135deg, var(--success) 0%, var(--success-dark) 100%) !important;
    color: white !important;
    border: 1px solid rgba(0, 230, 118, 0.4) !important;
}

/* Animations */
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(-50px);
    }
    50% {
        transform: scale(1.05) translateY(0);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.9);
    }
}

@keyframes enchantmentGlint {
    0% { background-position: 200% center; }
    100% { background-position: -200% center; }
}

/* Performance optimizations */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scrollbar-width: thin;
    scrollbar-color: rgba(120, 119, 198, 0.3) transparent;
}

::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(120, 119, 198, 0.2);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(120, 119, 198, 0.4);
}

/* Minimal GPU acceleration only where needed */
.tab, .item-card, .gui-slot {
    transform: translateZ(0);
}

/* Keep background animation subtle and slow */
@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(10px, -10px); }
}

/* Slide in from bottom */
        @keyframes slideInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Pulse animation for slots */
        @keyframes pulse {
            0%, 100% {
                transform: scale(1);
                box-shadow: 0 2px 8px rgba(0,0,0,0.3);
            }
            50% {
                transform: scale(1.05);
                box-shadow: 0 4px 16px rgba(120, 119, 198, 0.4);
            }
        }

        /* Glow animation */
        @keyframes glow {
            0%, 100% {
                box-shadow: 0 0 5px rgba(120, 119, 198, 0.3);
            }
            50% {
                box-shadow: 0 0 20px rgba(120, 119, 198, 0.6), 0 0 30px rgba(120, 119, 198, 0.4);
            }
        }

        /* Animations disabled class */
        body.no-animations * {
            animation: none !important;
            transition: none !important;
        }

        body.no-animations .container {
            animation: none !important;
        }

        body.no-animations body::before {
            animation: none !important;
        }

        body.no-animations header::before {
            animation: none !important;
        }

        body.no-animations header h1 {
            animation: none !important;
            background-position: 0% 50% !important;
        }

        .info-card {
            background: rgba(15, 15, 25, 0.6) !important;
            border: 1px solid rgba(120, 119, 198, 0.2) !important;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
        }

        .info-card h3 {
            color: #55ff55 !important;
            font-size: 0.9em !important;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .info-card p {
            color: #aaa !important;
        }

        .info-card .info-content {
            border-top: 1px solid rgba(255, 255, 255, 0.05);
            padding-top: 15px;
            margin-top: 10px;
        }

        .info-card .toggle-icon {
            color: #55ff55 !important;
        }

        body.no-animations .gui-slot:hover {
            transform: none !important;
        }

        body.no-animations .gui-slot:active {
            transform: none !important;
        }

        body.no-animations .gui-slot::before,
        body.no-animations .gui-slot::after {
            transition: none !important;
            opacity: 0 !important;
            width: 0 !important;
            height: 0 !important;
        }

        /* Disable all button animations */
        body.no-animations .btn,
        body.no-animations .action-btn,
        body.no-animations .header-btn,
        body.no-animations .icon-btn {
            transform: none !important;
        }

        body.no-animations .btn:hover,
        body.no-animations .action-btn:hover,
        body.no-animations .header-btn:hover,
        body.no-animations .icon-btn:hover {
            transform: none !important;
        }

        body.no-animations .action-btn::after,
        body.no-animations .header-btn::before {
            transition: none !important;
            width: 0 !important;
            height: 0 !important;
        }

        /* Disable item card animations */
        body.no-animations .item-card {
            transform: none !important;
        }

        body.no-animations .item-card:hover {
            transform: none !important;
        }

        /* Disable tab animations */
        body.no-animations .tab:hover {
            transform: none !important;
        }

        /* Disable premium select animations */
        body.no-animations .premium-select:hover {
            transform: none !important;
        }

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            background: #000000;
            min-height: 100vh;
            padding: 20px;
            background-attachment: fixed;
            position: relative;
            overflow-x: hidden;
        }

        body::before {
            content: '';
            position: fixed;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background:
                radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.3), transparent 25%),
                radial-gradient(circle at 80% 80%, rgba(255, 0, 128, 0.3), transparent 25%),
                radial-gradient(circle at 40% 20%, rgba(0, 184, 217, 0.3), transparent 25%),
                radial-gradient(circle at 60% 70%, rgba(var(--accent-rgb), 0.2), transparent 25%);
            animation: float 60s ease-in-out infinite;
            z-index: 0;
            filter: blur(60px);
        }

        body::after {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background:
                linear-gradient(135deg, rgba(15, 15, 35, 0.9) 0%, rgba(10, 10, 25, 0.95) 100%);
            z-index: -1;
            pointer-events: none;
        }

        .container {
            max-width: 1800px;
            margin: 0 auto;
            background: rgba(10, 10, 20, 0.7);
            border-radius: 32px;
            box-shadow:
                0 40px 100px rgba(0,0,0,0.8),
                0 0 0 1px rgba(255,255,255,0.03),
                inset 0 1px 1px rgba(255,255,255,0.03),
                0 0 80px rgba(120, 119, 198, 0.1);
            overflow: visible;
            backdrop-filter: blur(40px) saturate(180%);
            border: 1px solid rgba(255,255,255,0.05);
            position: relative;
            z-index: 1;
            padding: 0 1.5rem 4rem 1.5rem;
            animation: fadeIn 0.3s ease;
        }

        header {
            background: rgba(15, 15, 25, 0.4);
            color: white;
            padding: 20px 0;
            text-align: center;
            border-bottom: 1px solid rgba(255,255,255,0.05);
            position: relative;
            backdrop-filter: blur(20px);
            z-index: 100;
            border-radius: 32px 32px 0 0;
        }

        .header-top {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 1.5rem;
        }

        header h1 {
            font-size: 1.5rem;
            font-weight: 900;
            color: #fff;
            letter-spacing: -0.025em;
            background: linear-gradient(135deg, #fff 0%, var(--text-muted) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        header p {
            font-size: 0.7rem;
            color: var(--text-dim);
            font-weight: 600;
            letter-spacing: 0.05em;
            text-transform: uppercase;
        }

        .header-hero {
            max-width: 1400px;
            margin: 1.5rem auto 0 auto;
            padding: 3rem 1.5rem;
            background: linear-gradient(135deg, rgba(120, 119, 198, 0.05) 0%, rgba(255, 0, 128, 0.02) 100%);
            border-radius: var(--radius-xl);
            border: 1px solid var(--border);
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 200px;
        }

        .header-hero-content {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 1rem;
        }

        .header-hero h1 {
            font-size: 2.5rem;
            margin: 0;
        }

        .header-hero p {
            font-size: 1.1rem;
            margin: 0;
            color: var(--text-muted);
            text-transform: none;
            letter-spacing: normal;
        }

        .beta-badge {
            color: var(--warning);
            font-size: 0.7rem;
            font-weight: 800;
            padding: 0.3rem 0.8rem;
            background: rgba(245, 158, 11, 0.1);
            border: 1px solid rgba(245, 158, 11, 0.2);
            border-radius: 20px;
            display: inline-block;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            margin-top: 0.5rem;
        }

        /* Nav Dropdown */
        .nav-dropdown-wrapper {
            position: relative;
        }

        .nav-dropdown {
            position: absolute;
            top: calc(100% + 10px);
            right: 0;
            width: 240px;
            background: var(--bg-card);
            border: 1px solid var(--border-hover);
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow-xl);
            z-index: 1001;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: var(--transition);
        }

        .nav-dropdown.active {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .nav-dropdown-content {
            padding: 0.5rem;
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .dropdown-item {
            padding: 0.75rem 1rem;
            border-radius: var(--radius-md);
            display: flex;
            align-items: center;
            gap: 12px;
            cursor: pointer;
            transition: var(--transition);
            background: transparent !important;
            border: none !important;
            color: var(--text-main);
            width: 100%;
            text-align: left;
            font-size: 0.9rem;
            font-weight: 500;
            justify-content: flex-start;
        }

        .dropdown-item:hover {
            background: rgba(255, 255, 255, 0.05);
        }

        .dropdown-divider {
            height: 1px;
            background: var(--border);
            margin: 0.5rem;
        }

        .btn-danger-text {
            color: var(--danger);
        }

        .btn-danger-text:hover {
            background: rgba(239, 68, 68, 0.1);
        }

        /* Sticky Footer Actions */
        .sticky-footer-actions {
            position: sticky;
            bottom: 2rem;
            z-index: 1000;
            width: 100%;
            display: flex;
            justify-content: center;
            pointer-events: none;
            margin-top: 3rem;
            transition: var(--transition);
        }

        .footer-actions-container {
            background: rgba(15, 15, 25, 0.8);
            backdrop-filter: blur(20px);
            padding: 12px 24px;
            border-radius: 24px;
            border: 1px solid var(--border-hover);
            box-shadow: 0 20px 50px rgba(0,0,0,0.5);
            pointer-events: auto;
            display: flex;
            gap: 12px;
        }

        .footer-action-btn {
            padding: 10px 20px;
            border: none;
            border-radius: 14px;
            font-weight: 700;
            cursor: pointer;
            font-family: inherit;
            font-size: 0.8rem;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        .footer-action-btn:hover {
            transform: translateY(-3px) scale(1.02);
            box-shadow: 0 10px 20px rgba(0,0,0,0.3);
        }

        .footer-action-btn:active {
            transform: translateY(-1px) scale(0.98);
        }

        .btn-publish {
            background: linear-gradient(135deg, var(--success) 0%, var(--success-dark) 100%);
            color: #fff;
            box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
        }

        .btn-publish:hover {
            box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
        }

        .editable-header-key {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 4px 12px;
            background: rgba(0, 0, 0, 0.2);
            border: 1px solid var(--border);
            border-radius: 8px;
            font-family: 'Consolas', monospace;
            font-size: 0.9em;
            color: var(--primary-light);
            cursor: pointer;
            transition: var(--transition);
            position: relative;
        }

        .editable-header-key:hover {
            background: rgba(120, 119, 198, 0.1);
            border-color: var(--primary);
        }

        .header-key-input {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0;
            cursor: pointer;
            z-index: 2;
        }

        .header-key-input:focus {
            opacity: 1;
            z-index: 3;
            background: var(--bg-surface);
            color: #fff;
            padding: 4px 12px;
            border-radius: 8px;
            border: 1px solid var(--primary);
            outline: none;
        }

        .header-key-label {
            position: relative;
            z-index: 1;
        }

        .edit-icon {
            font-size: 0.8em;
            opacity: 0.5;
        }

        .editable-header-key:hover .edit-icon {
            opacity: 1;
            color: var(--primary-light);
        }

        .bug-report-link {
            color: var(--text-muted);
            font-size: 0.75rem;
            font-weight: 500;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            margin-top: 1rem;
            transition: var(--transition);
        }

        .bug-report-link:hover {
            color: #fff;
        }

.bug-report-link:hover {
    background: linear-gradient(135deg, rgba(120, 119, 198, 0.6), rgba(120, 119, 198, 0.8));
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.main-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 20px;
}

@media (max-width: 1200px) {
    .main-content {
        grid-template-columns: 1fr;
    }
}

.editor-panel {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    height: fit-content;
}

.preview-panel {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    height: fit-content;
}

        .editor-panel::before {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            width: 1px;
            height: 100%;
            background: linear-gradient(180deg,
                transparent,
                rgba(120, 119, 198, 0.3) 20%,
                rgba(255, 0, 128, 0.3) 50%,
                rgba(120, 119, 198, 0.3) 80%,
                transparent
            );
        }

        .editor-panel::-webkit-scrollbar {
            width: 12px;
        }

        .editor-panel::-webkit-scrollbar-track {
            background: rgba(0,0,0,0.2);
            border-radius: 6px;
            margin: 4px 0;
        }

        .editor-panel::-webkit-scrollbar-thumb {
            background: linear-gradient(180deg, rgba(120, 119, 198, 0.6), rgba(255, 0, 128, 0.6));
            border-radius: 6px;
            border: 2px solid rgba(15, 17, 25, 0.4);
        }

        .editor-panel::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(180deg, rgba(120, 119, 198, 0.8), rgba(255, 0, 128, 0.8));
        }

        .preview-panel {
            padding: 40px 30px;
            background:
                radial-gradient(circle at top left, rgba(0, 184, 217, 0.05), transparent 50%),
                radial-gradient(circle at bottom right, rgba(120, 119, 198, 0.05), transparent 50%),
                rgba(10, 12, 20, 0.6);
            position: relative;
        }

        .preview-panel::-webkit-scrollbar {
            width: 10px;
        }

        .preview-panel::-webkit-scrollbar-track {
            background: rgba(0,0,0,0.2);
            border-radius: 10px;
        }

        .preview-panel::-webkit-scrollbar-thumb {
            background: rgba(118, 75, 162, 0.5);
            border-radius: 10px;
        }

        .preview-panel::-webkit-scrollbar-thumb:hover {
            background: rgba(118, 75, 162, 0.7);
        }

        /* Global scrollbar styling for all elements */
        *::-webkit-scrollbar {
            width: 10px;
            height: 10px;
        }

        *::-webkit-scrollbar-track {
            background: rgba(0,0,0,0.2);
            border-radius: 10px;
        }

        *::-webkit-scrollbar-thumb {
            background: rgba(102, 126, 234, 0.5);
            border-radius: 10px;
        }

        *::-webkit-scrollbar-thumb:hover {
            background: rgba(102, 126, 234, 0.7);
        }

        *::-webkit-scrollbar-corner {
            background: rgba(0,0,0,0.2);
        }

        .panel-title {
            font-family: 'Inter', sans-serif;
            font-size: 1.1em;
            font-weight: 700;
            color: #fff;
            margin-bottom: 30px;
            padding: 20px 24px;
            background:
                linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%),
                rgba(30, 33, 48, 0.8);
            border-radius: 12px;
            border: 1px solid rgba(102, 126, 234, 0.3);
            box-shadow: 0 8px 32px rgba(0,0,0,0.3);
            display: flex;
            align-items: center;
            gap: 12px;
            position: sticky;
            top: 0;
            z-index: 99;
            backdrop-filter: blur(10px);
            letter-spacing: 0.5px;
        }

        .form-group {
            margin-bottom: 20px;
        }

        .form-row {
            display: flex;
            gap: 20px;
            margin-bottom: 20px;
        }

        .form-row .form-group {
            flex: 1;
            margin-bottom: 0;
        }

        .checkbox-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
            gap: 15px;
            background: rgba(120, 119, 198, 0.05);
            padding: 20px;
            border-radius: 12px;
            border: 1px solid rgba(120, 119, 198, 0.1);
            margin-top: 20px;
        }

        .checkbox-group-card {
            background: rgba(0, 0, 0, 0.22);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 10px;
            padding: 12px;
        }

        .checkbox-group-card .form-group {
            margin-bottom: 10px;
        }

        .checkbox-group-card .form-group:last-child {
            margin-bottom: 0;
        }

        .checkbox-group-title {
            font-size: 0.72rem;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: rgba(180, 190, 210, 0.88);
            font-weight: 800;
            margin-bottom: 10px;
            padding-bottom: 6px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .section-header {
            font-size: 0.85em;
            font-weight: 700;
            color: rgba(120, 119, 198, 1);
            text-transform: uppercase;
            letter-spacing: 1.5px;
            margin: 30px 0 16px 0;
            padding-bottom: 10px;
            border-bottom: 2px solid rgba(120, 119, 198, 0.2);
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .section-header:first-child {
            margin-top: 0;
        }

        .form-section {
            background: rgba(20, 20, 30, 0.3);
            border: 1px solid rgba(120, 119, 198, 0.1);
            border-radius: 16px;
            padding: 20px;
            margin-bottom: 20px;
        }

        label {
            display: block;
            font-weight: 700;
            color: rgba(220, 230, 245, 0.95);
            margin-bottom: 10px;
            font-size: 0.85em;
            letter-spacing: 0.5px;
            text-transform: uppercase;
        }

        input[type="text"],
        input[type="number"],
        textarea,
        select {
            width: 100%;
            padding: 14px 18px;
            border: 1px solid rgba(120, 119, 198, 0.2);
            background: rgba(15, 15, 25, 0.6);
            color: #f0f0f5;
            font-size: 0.95em;
            border-radius: 12px;
            font-family: 'Consolas', 'Monaco', monospace;
            transition: border-color 0.3s, background-color 0.3s, transform 0.3s, box-shadow 0.3s;
            box-shadow: 
                0 4px 12px rgba(0,0,0,0.2),
                inset 0 1px 0 rgba(255,255,255,0.03);
            appearance: none;
            -webkit-appearance: none;
            -moz-appearance: none;
        }

        select {
            background-image: url('data:image/svg+xml;utf8,<svg fill="%237877C6" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
            background-repeat: no-repeat;
            background-position: right 12px center;
            background-size: 18px;
            padding-right: 40px;
            cursor: pointer;
        }

        input:hover,
        textarea:hover,
        select:hover {
            border-color: rgba(120, 119, 198, 0.5);
            background: rgba(20, 20, 30, 0.8);
        }

        input:focus,
        textarea:focus,
        select:focus {
            outline: none;
            border-color: #7877C6;
            background-color: rgba(25, 25, 40, 0.9);
            box-shadow: 
                0 0 0 4px rgba(120, 119, 198, 0.15),
                0 10px 25px rgba(0,0,0,0.4);
            transform: translateY(-2px);
        }

        select:focus {
            background-image: url('data:image/svg+xml;utf8,<svg fill="%237877C6" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 14l5-5 5 5z"/></svg>');
        }

        input::placeholder,
        textarea::placeholder {
            color: rgba(184, 198, 219, 0.4);
        }

        textarea {
            min-height: 100px;
            resize: vertical;
            line-height: 1.5;
        }

        /* Custom Checkbox Styling */
        input[type="checkbox"] {
            width: 22px;
            height: 22px;
            cursor: pointer;
            appearance: none;
            -webkit-appearance: none;
            -moz-appearance: none;
            background: rgba(20, 23, 35, 0.6);
            border: 2px solid rgba(102, 126, 234, 0.3);
            border-radius: 6px;
            position: relative;
            transition: all 0.2s ease;
            box-shadow: 0 2px 8px rgba(0,0,0,0.15);
            vertical-align: middle;
        }

        input[type="checkbox"]:hover {
            border-color: rgba(102, 126, 234, 0.5);
            background: rgba(25, 28, 40, 0.8);
        }

        input[type="checkbox"]:checked {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-color: #667eea;
            box-shadow:
                0 0 0 4px rgba(102,126,234,0.15),
                0 4px 12px rgba(102,126,234,0.3);
        }

        input[type="checkbox"]:checked::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: white;
            font-size: 14px;
            font-weight: bold;
        }

        input[type="checkbox"]:focus {
            outline: none;
            box-shadow:
                0 0 0 4px rgba(102, 126, 234, 0.2),
                0 4px 12px rgba(102, 126, 234, 0.25);
        }

.btn {
    padding: 14px 28px;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.9em;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-success {
    background: linear-gradient(135deg, var(--success) 0%, var(--success-dark) 100%);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger) 0%, var(--danger-dark) 100%);
    color: white;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
}

        /* Premium header buttons */
        .header-btn {
            padding: 8px 16px;
            border: none;
            border-radius: 8px;
            font-weight: 700;
            cursor: pointer;
            font-family: 'Inter', sans-serif;
            font-size: 0.75rem;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            position: relative;
    overflow: hidden;
        }

        .header-btn::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.2);
            transform: translate(-50%, -50%);
            transition: width 0.6s, height 0.6s;
        }

        .header-btn:hover::before {
            width: 300px;
            height: 300px;
        }

        .header-btn .btn-icon {
            font-size: 1.1em;
            transition: transform 0.3s ease;
        }

        .header-btn:hover .btn-icon {
            transform: scale(1.2) rotate(5deg);
        }

        .header-btn:hover {
            transform: translateY(-1px);
            box-shadow:
                0 4px 12px rgba(120, 119, 198, 0.3),
                0 0 20px rgba(120, 119, 198, 0.1);
        }

        .header-btn:active {
            transform: translateY(0);
        }

        /* Toggle switch styles */
        .toggle-switch {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
            padding: 6px 12px;
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            transition: all 0.3s ease;
            position: relative;
        }

        .toggle-switch:hover {
            background: rgba(255, 255, 255, 0.06);
            border-color: rgba(120, 119, 198, 0.3);
        }

        .toggle-switch input[type="checkbox"] {
            width: 36px;
            height: 20px;
            appearance: none;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            position: relative;
            cursor: pointer;
            transition: all 0.3s ease;
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .toggle-switch input[type="checkbox"]::before {
            content: '';
            position: absolute;
            width: 14px;
            height: 14px;
            border-radius: 50%;
            top: 50%;
            left: 2px;
            transform: translateY(-50%);
            background: rgba(200, 200, 220, 0.8);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        }

        .toggle-switch input[type="checkbox"]:checked {
            background: linear-gradient(135deg, #7877C6 0%, #FF0080 100%);
            border-color: rgba(120, 119, 198, 0.5);
        }

        .toggle-switch input[type="checkbox"]:checked::before {
            left: calc(100% - 16px);
            background: white;
            box-shadow: 0 2px 8px rgba(120, 119, 198, 0.5);
        }

        .toggle-label {
            font-size: 0.85em;
            color: rgba(200, 210, 225, 0.9);
            font-weight: 600;
            letter-spacing: 0.5px;
            text-transform: uppercase;
        }

        /* Custom Select Styling */
        .custom-select {
            position: relative;
            user-select: none;
            min-width: 160px;
        }

        .custom-select-trigger {
            background: rgba(124, 58, 237, 0.08);
            border: 1px solid rgba(124, 58, 237, 0.2);
            padding: 8px 16px;
            border-radius: 32px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            color: var(--text-main);
            font-size: 0.85em;
            font-weight: 600;
            white-space: nowrap;
        }

        .custom-select-trigger:hover {
            background-color: rgba(124, 58, 237, 0.15);
            border-color: rgba(124, 58, 237, 0.4);
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(124, 58, 237, 0.1);
        }

        .custom-select.open .custom-select-trigger {
            background-color: rgba(124, 58, 237, 0.2);
            border-color: var(--primary);
            box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
        }

        .custom-select-trigger::after {
            content: '';
            width: 16px;
            height: 16px;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23a5b4fc' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'%3E%3C/path%3E%3C/svg%3E");
            background-size: contain;
            background-repeat: no-repeat;
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            opacity: 0.7;
        }

        .custom-select.open .custom-select-trigger::after {
            transform: rotate(180deg);
            opacity: 1;
        }

        .custom-select-options {
            position: absolute;
            top: calc(100% + 8px);
            left: 0;
            right: 0;
            background: rgba(22, 25, 45, 0.98);
            border: 1px solid var(--border-hover);
            border-radius: 16px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(20px);
            z-index: 1000;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-12px) scale(0.95);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            overflow-y: auto;
            max-height: 300px;
            padding: 6px;
            min-width: 180px;
        }

        .custom-select.open .custom-select-options {
            opacity: 1;
            visibility: visible;
            transform: translateY(0) scale(1);
        }

        .custom-select-option {
            padding: 10px 14px;
            cursor: pointer;
            transition: all 0.2s ease;
            border-radius: 10px;
            font-size: 0.85em;
            color: var(--text-muted);
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-weight: 500;
        }

        .custom-select-option:hover {
            background: rgba(124, 58, 237, 0.1);
            color: var(--text-main);
            padding-left: 18px;
        }

        .custom-select-option.selected {
            background: rgba(124, 58, 237, 0.15);
            color: var(--primary-light);
            font-weight: 700;
        }

        .custom-select-option.selected::after {
            content: '\2713';
            font-size: 1em;
        }

        .premium-select {
            display: none !important;
        }

        /* Action buttons with icon */
        .action-btn {
            position: relative;
    overflow: hidden;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .action-btn::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.15);
            transform: translate(-50%, -50%);
            transition: width 0.6s ease, height 0.6s ease;
            pointer-events: none;
        }

        .action-btn:hover::after {
            width: 150%;
            height: 1500px;
        }

        .action-btn:hover {
            transform: translateY(-3px) scale(1.02);
        }

        .action-btn:active {
            transform: translateY(-1px) scale(0.98);
        }

        /* Icon button styles */
        .icon-btn {
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .icon-btn:hover {
            transform: rotate(5deg) scale(1.1);
        }

        .icon-btn:active {
            transform: rotate(-5deg) scale(0.95);
        }

        .item-list {
            margin-top: 20px;
        }

.remove-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--danger) 0%, var(--danger-dark) 100%);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(234,84,85,0.3);
    transition: var(--transition);
}

.remove-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(234,84,85,0.4);
}

/* Toast System */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 20000;
}

.toast {
    background: rgba(20, 23, 35, 0.95);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px 24px;
    color: #fff;
    min-width: 300px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 15px;
    animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transition: var(--transition);
}

.toast.hiding {
    opacity: 0;
    transform: translateX(50px);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast-icon {
    font-size: 1.4em;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 700;
    font-size: 0.95em;
    margin-bottom: 2px;
}

.toast-message {
    font-size: 0.85em;
    color: var(--text-muted);
}

.toast-success { border-left: 4px solid var(--success); }
.toast-error { border-left: 4px solid var(--danger); }
.toast-warning { border-left: 4px solid var(--warning); }
.toast-info { border-left: 4px solid var(--primary); }

.minecraft-gui {
    background: linear-gradient(135deg, rgba(120, 119, 198, 0.05) 0%, rgba(255, 0, 128, 0.05) 100%), var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(30px) saturate(160%);
    position: sticky;
    top: 40px;
    max-width: 864px;
    margin: 0 auto;
    width: 100%;
}

.gui-title-container {
    position: relative;
    width: 100%;
    margin-bottom: 25px;
    cursor: pointer;
    transition: var(--transition);
}

.gui-title-container:hover {
    transform: translateY(-2px);
}

.gui-title-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 1.6em;
    font-weight: 800;
    padding: 20px;
    border-radius: var(--radius-md);
    border: none;
    outline: none;
}

.gui-title-input:focus {
    opacity: 1;
    z-index: 3;
    background: var(--bg-surface);
    border: 1px solid var(--primary);
    color: #fff;
    box-shadow: 0 0 20px rgba(120, 119, 198, 0.3);
}

.gui-title {
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 1.6em;
    font-weight: 800;
    color: #fff;
    padding: 20px;
    background: linear-gradient(135deg, rgba(120, 119, 198, 0.1) 0%, rgba(255, 0, 128, 0.05) 100%);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

.gui-title-container:hover .gui-title {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(120, 119, 198, 0.2) 0%, rgba(255, 0, 128, 0.1) 100%);
}

.gui-title-container .edit-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    opacity: 0;
    transition: var(--transition);
}

.gui-title-container:hover .edit-icon {
    opacity: 1;
}

        .preview-settings-bar {
            margin-bottom: 25px;
            background: rgba(0, 0, 0, 0.25);
            border-radius: var(--radius-lg);
            padding: 12px 20px;
            border: 1px solid var(--border);
            min-height: 70px;
            display: flex;
            align-items: center;
            backdrop-filter: blur(10px);
            flex-wrap: wrap;
            gap: 15px;
        }

        .preview-tab-settings {
            display: none;
            width: 100%;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 12px;
        }

        .preview-tab-settings.active {
            display: flex;
        }

        /* Stealth Click-to-Edit Styles */
        .stealth-edit-container {
            position: relative;
            display: flex;
            align-items: center;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 6px 12px;
            cursor: pointer;
            transition: var(--transition);
            min-width: 100px;
            max-width: 275px;
        }

        .stealth-edit-container:hover {
            background: rgba(255, 255, 255, 0.1);
            border-color: var(--primary);
            transform: translateY(-1px);
        }

        .stealth-input {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0;
            cursor: pointer;
            z-index: 2;
            outline: none;
            border: none;
            resize: none;
            overflow: hidden;
            font-family: inherit;
        }

        .stealth-input:focus {
            opacity: 1;
            z-index: 3;
            background: var(--bg-surface);
            border: 1px solid var(--primary);
            border-radius: 12px;
            color: #fff;
            padding: 6px 12px;
            text-align: center;
            width: 100%;
            height: 100%;
            max-width: 275px;
        }

        textarea.stealth-input:focus {
            text-align: left;
            overflow-y: auto;
            min-height: 80px;
            height: auto;
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
        }

        .stealth-display-wrapper {
            display: flex;
            align-items: center;
            gap: 6px;
            width: 100%;
            justify-content: center;
        }

        .stealth-label {
            font-size: 0.85em;
            opacity: 0.7;
            font-weight: 500;
        }

        .stealth-value {
            font-size: 0.95em;
            font-weight: 700;
            color: var(--primary-light);
        }

        .edit-icon-small {
            font-size: 0.8em;
            opacity: 0;
            transition: var(--transition);
            margin-left: 4px;
        }

        .stealth-edit-container:hover .edit-icon-small {
            opacity: 0.7;
        }

        /* Preview Bar Input Groups */
        .preview-input-group {
            display: flex;
            align-items: center;
            gap: 8px;
            background: rgba(255, 255, 255, 0.03);
            padding: 4px 10px;
            border-radius: 8px;
            border: 1px solid rgba(255, 255, 255, 0.05);
        }

        .preview-input-label {
            font-size: 0.75em;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            opacity: 0.6;
            font-weight: 600;
            white-space: nowrap;
        }

        .preview-text-input {
            background: transparent;
            border: none;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            color: #fff;
            font-size: 0.85em;
            padding: 2px 0;
            outline: none;
            width: 100px;
            transition: var(--transition);
        }

        .preview-text-input:focus {
            border-bottom-color: var(--primary);
            width: 140px;
        }

        .preview-number-input {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 6px;
            color: #fff;
            width: 45px;
            height: 28px;
            padding: 0 5px;
            font-size: 0.85em;
            font-weight: 600;
            text-align: center;
            transition: var(--transition);
        }

        .preview-number-input:focus {
            outline: none;
            background: rgba(255, 255, 255, 0.1);
            border-color: var(--primary);
        }

        .preview-btn {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid var(--border);
            color: white;
            width: 42px;
            height: 42px;
            border-radius: 12px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: var(--transition);
            font-size: 1.2em;
        }

        .preview-btn:hover {
            background: var(--primary);
            border-color: var(--primary-light);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(120, 119, 198, 0.4);
        }

        .preview-number-input::-webkit-outer-spin-button,
        .preview-number-input::-webkit-inner-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }

        .preview-number-input[type=number] {
            -moz-appearance: textfield;
        }

        .header-title-small {
            font-weight: 800;
            font-size: 0.8em;
            letter-spacing: 1.5px;
            color: var(--text-muted);
            text-transform: uppercase;
        }

        .preview-select {
            height: 42px;
            padding: 0 35px 0 15px;
            font-size: 0.9em;
            min-width: 180px;
            background-position: right 12px top 50%;
        }

        .preview-search {
            width: 220px;
            height: 42px;
        }

        .preview-search input {
            height: 100%;
            font-size: 0.9em;
        }

        .gui-grid {
            display: grid;
            grid-template-columns: repeat(9, 1fr);
            gap: 12px;
            background: rgba(0, 0, 0, 0.3);
            padding: 20px;
            border-radius: 18px;
            border: 1px solid rgba(120, 119, 198, 0.2);
        }

.gui-slot {
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    image-rendering: pixelated;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible;
}

.gui-slot:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 
        0 10px 25px rgba(0,0,0,0.4),
        0 0 20px rgba(120, 119, 198, 0.2);
    z-index: 10;
}

.gui-slot:active {
    transform: translateY(-2px) scale(1.02);
}

.gui-slot.filled {
    background: rgba(120, 119, 198, 0.1);
    border-color: rgba(120, 119, 198, 0.3);
}

.gui-slot.filled:hover {
    border-color: var(--primary-light);
    background: rgba(120, 119, 198, 0.2);
}

/* Drag and Drop Styles */
.gui-slot.dragging {
    opacity: 0.5;
    border: 2px dashed #55ff55 !important;
    background: rgba(85, 255, 85, 0.1) !important;
    transform: scale(0.95);
    z-index: 100;
}

.gui-slot.drag-over {
    background: rgba(255, 255, 255, 0.1) !important;
    box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.3) !important;
    border-color: #fff !important;
    transform: translateY(-4px) scale(1.08) !important;
    z-index: 101;
}

.gui-slot.enchanted::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(45deg, transparent 30%, rgba(147, 112, 219, 0.3) 50%, transparent 70%);
            background-size: 200% 200%;
            animation: enchantmentGlint 2s linear infinite;
            pointer-events: none;
            border-radius: 12px;
            z-index: 2;
        }

        .slot-amount {
            position: absolute;
            bottom: -2px;
            right: -2px;
            color: #fff;
            font-size: 18px;
            font-weight: 900;
            text-shadow: 2px 2px 0 #000;
            z-index: 10;
            pointer-events: none;
            font-family: 'Inter', sans-serif;
            padding: 2px 4px;
        }

        .gui-slot.filled {
            background: rgba(120, 119, 198, 0.15) !important;
            border-color: rgba(120, 119, 198, 0.4) !important;
        }

        .gui-slot.filled:hover {
            border-color: rgba(120, 119, 198, 0.8) !important;
            background: rgba(120, 119, 198, 0.25) !important;
        }

        .item-icon {
            width: 48px;
            height: 48px;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
            image-rendering: pixelated;
            flex-shrink: 0;
        }

        .gui-slot .item-icon {
            width: 90%;
            height: 90%;
        }

        .item-icon img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            image-rendering: pixelated;
            position: relative;
            z-index: 1;
        }

        .item-count {
            position: absolute;
            z-index:1;
            color: white;
            font-size: 0.8em;
            font-weight: 600;
            text-shadow: 0 2px 4px rgba(0,0,0,0.5);
            bottom: 2px;
            right: 2px;
            font-size: 0.7em;
            font-weight: bold;
            color: white;
            text-shadow:
                1px 1px 0 #000,
                -1px -1px 0 #000,
                1px -1px 0 #000,
                -1px 1px 0 #000;
        }

        .spawner-badge {
            position: absolute;
            bottom: 4px;
            right: 4px;
            background: linear-gradient(135deg, rgba(20, 20, 30, 0.95), rgba(10, 10, 20, 0.95));
            padding: 3px 6px;
            border-radius: 4px;
            border: 1.5px solid #55ff55;
            box-shadow:
                0 3px 8px rgba(0,0,0,0.8),
                0 0 12px rgba(85,255,85,0.5),
                inset 0 1px 0 rgba(255,255,255,0.1);
            font-size: 9px;
            font-weight: bold;
            color: #55ff55;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            white-space: nowrap;
            z-index: 5;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
            text-shadow: 0 1px 2px rgba(0,0,0,0.8);
        }

        .gui-slot:hover .spawner-badge {
            transform: scale(1.1);
            box-shadow:
                0 4px 12px rgba(0,0,0,0.9),
                0 0 16px rgba(85,255,85,0.7),
                inset 0 1px 0 rgba(255,255,255,0.15);
        }

/* Minecraft-style tooltip */
.minecraft-tooltip {
    position: fixed;
    background: rgba(16, 0, 16, 0.95);
    border: 2px solid #2d005d;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    padding: 12px;
    pointer-events: none;
    z-index: 10000;
    display: none;
    font-family: 'Inter', sans-serif;
    border-radius: 4px;
}

.minecraft-tooltip.show {
    display: block;
    animation: fadeIn 0.15s ease-out;
}

.tooltip-title {
    color: #fff;
    font-weight: 700;
    font-size: 1.1em;
    margin-bottom: 6px;
    text-shadow: 2px 2px 0 #000;
}

.tooltip-line {
    color: #aaa;
    margin: 3px 0;
    font-size: 0.95em;
    text-shadow: 1px 1px 0 #000;
    line-height: 1.4;
}

        .tooltip-price {
            color: #55ff55;
            text-shadow: 1px 1px 0 #000;
        }

        .tooltip-sell {
            color: #ffaa00;
            text-shadow: 1px 1px 0 #000;
        }

        .item-card.highlight {
            border-color: rgba(120, 119, 198, 0.6);
        }

        /* Enchantment glint effect */
        .item-card.enchanted {
            position: relative;
            overflow: hidden;
        }

        .item-card.enchanted::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: linear-gradient(
                45deg,
                transparent 30%,
                rgba(147, 112, 219, 0.15) 40%,
                rgba(138, 43, 226, 0.25) 50%,
                rgba(147, 112, 219, 0.15) 60%,
                transparent 70%
            );
            animation: enchantmentGlint 3s linear infinite;
            pointer-events: none;
        }

        /* Enchantment glint for gui-slots - only on the item image */
        .gui-slot.enchanted .item-icon::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background:
                linear-gradient(110deg,
                    transparent 10%,
                    rgba(255, 215, 0, 0.3) 25%,
                    rgba(255, 255, 255, 0.5) 35%,
                    rgba(138, 43, 226, 0.4) 45%,
                    transparent 60%,
                    transparent 100%
                );
            background-size: 200% 100%;
            animation: enchantmentGlint 3s ease-in-out infinite;
            pointer-events: none;
            z-index: 3;
            mix-blend-mode: screen;
            filter: brightness(1.2);
        }

        @keyframes enchantmentGlint {
            0% {
                background-position: 200% center;
            }
            100% {
                background-position: -200% center;
            }
        }

        /* Keep glint visible even with animations disabled, just don't animate it */
        body.no-animations .item-card.enchanted::before {
            animation: none;
        }

        body.no-animations .gui-slot.enchanted .item-icon::before {
            animation: none;
            background-position: 0% center;
            opacity: 0.4;
        }

        .export-section {
            margin-top: 20px;
            padding: 15px;
            background: #8b8b8b;
            border: 3px solid #373737;
            box-shadow: inset 1px 1px 0 #a0a0a0;
        }

        .code-output {
            background: #1e1e1e;
            color: #d4d4d4;
            padding: 15px;
            border: 2px solid #000;
            font-family: 'Courier New', monospace;
            font-size: 0.85em;
            overflow-x: auto;
            max-height: 300px;
            box-shadow: inset 2px 2px 0 #000;
        }

.tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.015) 100%);
    padding: 8px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(140, 150, 180, 0.35) transparent;
}

.tabs-container {
    max-width: 980px;
    margin: 0 auto auto;
    margin-top: 20px;
    padding: 0 20px;
}

.unified-panel {
    padding: 25px !important;
}

.minecraft-preview-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    border: 1px solid var(--border);
    margin-bottom: 25px;
}

.content-header {
    border-bottom: 1px solid var(--border);
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.header-title {
    font-size: 1.2em;
    font-weight: 800;
    letter-spacing: 1px;
    color: #fff;
}

.icon-badge {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    box-shadow: var(--shadow-sm);
}

.icon-badge.primary { background: linear-gradient(135deg, var(--primary), var(--accent)); }
.icon-badge.warning { background: linear-gradient(135deg, #FFD700, #FFA500); }
.icon-badge.success { background: linear-gradient(135deg, #00E676, #00C853); }

.count-badge {
    background: rgba(120, 119, 198, 0.15);
    color: var(--primary-light);
    font-size: 0.85em;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid rgba(120, 119, 198, 0.3);
}

.search-wrapper {
    position: relative;
    width: 300px;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.6;
}

.search-wrapper input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: #fff;
    transition: var(--transition);
}

.grid-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 340px));
    gap: 20px;
    justify-content: center;
}

.flex-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mb-40 { margin-bottom: 40px; }
.mb-50 { margin-bottom: 50px; }
.mb-30 { margin-bottom: 30px; }
.p-24 { padding: 24px; }
.mt-60 { margin-top: 60px; }
.mt-40 { margin-top: 40px; }

.tab {
    flex: 0 0 auto;
    min-width: max-content;
    padding: 11px 14px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 800;
    color: var(--text-muted);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    font-size: 0.77em;
    letter-spacing: 0.95px;
    text-transform: uppercase;
    white-space: nowrap;
    line-height: 1.1;
    position: relative;
}

.tab:hover:not(.active) {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.tab.active {
    background: linear-gradient(140deg, #6f46ff 0%, #8d4dff 50%, #5f36ef 100%);
    border-color: rgba(177, 145, 255, 0.62);
    color: #fff;
    box-shadow: 
        0 8px 20px rgba(111, 70, 255, 0.42),
        inset 0 1px 0 rgba(255,255,255,0.2);
    transform: translateY(-1px) scale(1.01);
}

.tab.active::after {
    content: '';
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 5px;
    height: 2px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.35);
}

.section-label {
    color: var(--text-muted);
    font-size: 0.85em;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.flex-1 { flex: 1; }
.flex-1 { min-width: 0; }

#shop-permission-display {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


.section-header-premium {
    background: linear-gradient(135deg, rgba(120, 119, 198, 0.15), rgba(255, 0, 128, 0.15));
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px 20px;
}

.divider-v {
    width: 1px;
    height: 20px;
    background: var(--border);
    margin: 0 4px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    margin: 28px 0;
}

.premium-select {
    cursor: pointer;
}

.tab-content {
            display: none;
        }

        .tab-content.active {
            display: block;
        }

        .activity-entry {
            position: relative;
        }

        body.no-animations .activity-entry > div {
            transition: none !important;
        }

        body.no-animations .activity-entry > div:hover {
            transform: none !important;
        }

.pagination {
    display: none;
    margin: 25px auto 0 auto;
    text-align: center;
    padding: 8px 20px;
    background: rgba(15, 15, 25, 0.45);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    border: 1px solid var(--border);
    width: fit-content;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.pagination:hover {
    border-color: var(--primary-light);
    background: rgba(20, 20, 35, 0.95);
    transform: translateY(-2px);
}

.page-btn {
    padding: 10px 20px;
    font-size: 0.9em;
    width: auto;
    margin: 0 5px;
    background: linear-gradient(135deg, rgba(120, 119, 198, 0.2), rgba(120, 119, 198, 0.4));
    border: 1px solid rgba(120, 119, 198, 0.3);
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.page-btn:hover {
    background: linear-gradient(135deg, rgba(120, 119, 198, 0.4), rgba(120, 119, 198, 0.6));
    transform: translateY(-1px);
}

.page-btn.drag-over {
    background: var(--primary) !important;
    border-color: var(--primary-light) !important;
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.5);
}

.page-indicator {
    font-weight: 700;
    font-size: 1em;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    margin: 0 16px;
    padding: 8px 16px;
    background: rgba(120, 119, 198, 0.2);
    border-radius: var(--radius-sm);
    display: inline-block;
}

.scroll-y {
    overflow-y: auto;
    padding-right: 8px;
}

.info-box {
    margin-top: 24px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(120, 119, 198, 0.08), rgba(0, 184, 217, 0.08));
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.info-box:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

.info-box h3 {
    font-size: 0.9em;
    color: var(--text-main);
    margin-bottom: 15px;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.info-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-box li {
    padding: 6px 0;
    color: var(--text-muted);
    font-size: 0.85em;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.info-box li:hover {
    color: var(--text-main);
    transform: translateX(5px);
}

        .info-box li::before {
            content: '';
        }

        .toggle-icon {
            transition: transform 0.3s ease;
        }

        .desktop-navigation {
            display: flex;
            gap: 12px;
            align-items: center;
            flex-wrap: wrap;
            justify-content: flex-end;
            max-width: 100%;
        }

@media (max-width: 1400px) {
    .desktop-navigation {
        gap: 8px;
    }
    .header-btn {
        padding: 8px 12px;
        font-size: 0.8em;
    }
    .toggle-switch {
        padding: 6px 10px;
    }
}


/* Shop Item / Button Card Styling */
.shop-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow: hidden;
}

.shop-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.shop-item:active {
    transform: translateY(-1px) scale(1);
}

.settings-group {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}

.settings-group h3 {
    color: var(--primary);
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

        .settings-group h3::before {
            content: '';
            width: 4px;
            height: 16px;
            background: #7877C6;
            border-radius: 2px;
        }

        @media (max-width: 1024px) {
            header h1 {
                font-size: 1em;
            }
            .search-wrapper {
                width: 100%;
            }
            .content-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 20px;
            }
            .shop-file-bar {
                flex-direction: column;
                align-items: stretch;
            }
        }

        @media (max-width: 768px) {
            header h1 {
                font-size: 0.9em;
            }

            .container {
                padding: 15px;
            }

            .header-top {
                margin-bottom: 15px !important;
            }

            .unified-panel {
                padding: 20px !important;
            }
            
            .minecraft-preview-section {
                padding: 20px;
            }
            
            .tabs {
                justify-content: flex-start;
            }

            .tab {
                min-width: max-content;
                padding: 9px 11px;
                font-size: 0.75em;
                letter-spacing: 0.65px;
            }
        }

        @media (max-width: 480px) {
            header h1 {
                font-size: 0.8em;
            }

            #user-info {
                font-size: 0.8em !important;
                padding: 6px 12px !important;
            }
        }

        /* Pro Component Library */
        .card-base {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: var(--radius-lg);
            padding: 1.5rem;
            transition: var(--transition);
        }

        .card-base:hover {
            border-color: var(--border-hover);
            background: var(--bg-card-hover);
            box-shadow: var(--shadow-md);
        }

        .input-base, .select-base, .textarea-base {
            width: 100%;
            padding: 0.75rem 1rem;
            background: rgba(0, 0, 0, 0.2);
            border: 1px solid var(--border);
            border-radius: var(--radius-md);
            color: var(--text-main);
            font-family: inherit;
            font-size: 0.875rem;
            transition: var(--transition);
            outline: none;
        }

        .input-base:focus, .select-base:focus, .textarea-base:focus {
            border-color: var(--primary);
            background: rgba(0, 0, 0, 0.3);
            box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.1);
        }

        .textarea-base {
            min-height: 120px;
            resize: vertical;
            line-height: 1.6;
        }

        .modal-box {
            background: var(--bg-surface);
            border: 1px solid var(--border);
            border-radius: var(--radius-xl);
            max-width: 650px;
            width: 90%;
            max-height: 90vh;
            display: flex;
            flex-direction: column;
            box-shadow: var(--shadow-xl);
            backdrop-filter: blur(20px);
            animation: bounceIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
            overflow: hidden;
        }

        .modal-box-with-preview {
            max-width: 980px;
            width: 95%;
        }

        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 2rem 2rem 1rem 2rem;
            border-bottom: 1px solid var(--border);
        }

        .modal-title {
            font-size: 1.25rem;
            font-weight: 700;
            color: #fff;
        }

        .modal-body {
            padding: 1.5rem 2rem;
            overflow-y: auto;
            flex: 1;
        }

        #modal-content {
            padding: 1rem 2rem;
            overflow-y: auto;
            flex: 1;
        }

        .modal-editor-layout {
            display: grid;
            grid-template-columns: minmax(0, 1fr) 280px;
            gap: 18px;
            align-items: start;
        }

        .modal-editor-layout.preview-collapsed {
            grid-template-columns: minmax(0, 1fr);
        }

        .modal-editor-form {
            min-width: 0;
        }

        .modal-form-top-actions {
            display: flex;
            justify-content: flex-end;
            margin-bottom: 10px;
        }

        .modal-side-preview {
            position: sticky;
            top: 6px;
            background: rgba(0, 0, 0, 0.2);
            border: 1px solid var(--border);
            border-radius: var(--radius-lg);
            padding: 14px;
            backdrop-filter: blur(8px);
        }

        .modal-side-preview.collapsed {
            display: none;
        }

        .modal-side-preview-title-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            margin-bottom: 10px;
        }

        .modal-side-preview-title {
            font-size: 0.8rem;
            text-transform: uppercase;
            letter-spacing: 0.07em;
            color: var(--text-muted);
            font-weight: 700;
        }

        .modal-preview-toggle {
            padding: 0.3rem 0.5rem;
            font-size: 0.64rem;
            letter-spacing: 0.04em;
            line-height: 1;
        }

        .modal-preview-item {
            background: rgba(0, 0, 0, 0.25);
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 12px;
        }

        .modal-preview-top {
            display: flex;
            gap: 10px;
            align-items: center;
            margin-bottom: 10px;
        }

        .modal-preview-icon {
            width: 38px;
            height: 38px;
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.06);
            border: 1px solid rgba(255, 255, 255, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .modal-preview-icon img {
            width: 24px;
            height: 24px;
            image-rendering: pixelated;
        }

        .modal-preview-name {
            font-size: 0.86rem;
            font-weight: 700;
            color: var(--text-main);
            word-break: break-word;
        }

        .modal-preview-sub {
            font-size: 0.72rem;
            color: var(--text-muted);
            margin-top: 2px;
        }

        .modal-preview-price-row {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-bottom: 10px;
        }

        .modal-preview-pill {
            display: inline-flex;
            align-items: center;
            padding: 3px 8px;
            border-radius: 999px;
            font-size: 0.72rem;
            font-weight: 700;
            border: 1px solid transparent;
        }

        .modal-preview-pill.buy {
            color: #5ff2a5;
            background: rgba(16, 185, 129, 0.15);
            border-color: rgba(16, 185, 129, 0.35);
        }

        .modal-preview-pill.sell {
            color: #ff8585;
            background: rgba(239, 68, 68, 0.15);
            border-color: rgba(239, 68, 68, 0.35);
        }

        .modal-preview-lore {
            background: rgba(0, 0, 0, 0.28);
            border: 1px solid rgba(255, 255, 255, 0.06);
            border-radius: 10px;
            padding: 8px;
            max-height: 220px;
            overflow: auto;
        }

        .modal-preview-chip-row {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-bottom: 10px;
        }

        .modal-preview-chip {
            display: inline-flex;
            align-items: center;
            padding: 2px 7px;
            border-radius: 999px;
            font-size: 0.68rem;
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.16);
            color: var(--text-muted);
            font-weight: 600;
        }

        .modal-preview-subsection {
            margin-bottom: 10px;
            background: rgba(0, 0, 0, 0.22);
            border: 1px solid rgba(255, 255, 255, 0.07);
            border-radius: 10px;
            padding: 8px;
        }

        .modal-preview-subtitle {
            font-size: 0.68rem;
            text-transform: uppercase;
            letter-spacing: 0.06em;
            color: var(--text-muted);
            margin-bottom: 6px;
            font-weight: 700;
        }

        .modal-preview-code {
            white-space: pre-wrap;
            word-break: break-word;
            font-family: Consolas, Monaco, monospace;
            font-size: 0.68rem;
            line-height: 1.35;
            color: var(--text-main);
        }

        .modal-preview-detail-list {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .modal-preview-detail-line {
            font-size: 0.72rem;
            color: var(--text-muted);
            line-height: 1.35;
            word-break: break-word;
        }

        .modal-preview-lore-line {
            font-size: 0.75rem;
            line-height: 1.4;
            margin: 2px 0;
            color: var(--text-muted);
            word-break: break-word;
        }

        .modal-preview-empty {
            font-size: 0.74rem;
            color: var(--text-muted);
            opacity: 0.75;
            padding: 4px 0;
        }

        .shop-target-picker-overlay {
            position: fixed;
            inset: 0;
            z-index: 12000;
            background: rgba(5, 8, 16, 0.62);
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

        .shop-target-picker-panel {
            width: min(560px, 96vw);
            max-height: min(80vh, 760px);
            display: flex;
            flex-direction: column;
            background: rgba(20, 24, 38, 0.98);
            border: 1px solid rgba(255, 255, 255, 0.12);
            border-radius: 14px;
            box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
            overflow: hidden;
        }

        .shop-target-picker-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            padding: 14px 16px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        }

        .shop-target-picker-title {
            margin: 0;
            font-size: 0.95rem;
            font-weight: 700;
            color: var(--text-main);
        }

        .shop-target-picker-close {
            border: none;
            background: transparent;
            color: rgba(255, 255, 255, 0.7);
            cursor: pointer;
            font-size: 1.35rem;
            line-height: 1;
            padding: 0 6px;
        }

        .shop-target-picker-search-wrap {
            padding: 12px 16px 8px 16px;
        }

        .shop-target-picker-list {
            margin: 0 16px;
            padding: 8px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            background: rgba(0, 0, 0, 0.2);
            max-height: min(46vh, 420px);
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .shop-target-picker-row {
            width: 100%;
            text-align: left;
            border: 1px solid rgba(255, 255, 255, 0.08);
            background: rgba(255, 255, 255, 0.03);
            color: var(--text-main);
            border-radius: 8px;
            padding: 9px 11px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            font-size: 0.86rem;
        }

        .shop-target-picker-row:hover {
            border-color: rgba(120, 119, 198, 0.5);
            background: rgba(120, 119, 198, 0.16);
        }

        .shop-target-picker-row.selected {
            border-color: rgba(95, 242, 165, 0.55);
            background: rgba(16, 185, 129, 0.16);
        }

        .shop-target-picker-row-label {
            width: 100%;
            display: flex;
            align-items: center;
            gap: 9px;
            margin: 0;
            text-transform: none;
            letter-spacing: 0;
            font-weight: 600;
        }

        .shop-target-picker-row-label input[type="checkbox"] {
            width: 16px;
            height: 16px;
            margin: 0;
        }

        .shop-target-picker-row-label input[type="checkbox"][disabled] {
            opacity: 1;
            pointer-events: none;
        }

        .shop-target-picker-check {
            color: #5ff2a5;
            font-weight: 800;
        }

        .shop-target-picker-empty {
            color: var(--text-muted);
            font-size: 0.84rem;
            padding: 12px 6px;
            text-align: center;
        }

        .shop-target-picker-actions {
            display: flex;
            justify-content: flex-end;
            gap: 10px;
            padding: 12px 16px 16px 16px;
            border-top: 1px solid rgba(255, 255, 255, 0.08);
            margin-top: 10px;
        }

        @media (max-width: 980px) {
            .modal-editor-layout {
                grid-template-columns: 1fr;
            }

            .modal-side-preview {
                position: static;
                margin-top: 8px;
            }
        }

        .modal-footer {
            display: flex;
            gap: 1rem;
            padding: 1.5rem 2rem 2rem 2rem;
            justify-content: flex-end;
            border-top: 1px solid var(--border);
            background: rgba(0, 0, 0, 0.1);
        }

        .btn-base {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 0.625rem 1.25rem;
            font-size: 0.875rem;
            font-weight: 600;
            border-radius: var(--radius-md);
            cursor: pointer;
            transition: var(--transition);
            border: 1px solid transparent;
            gap: 0.5rem;
            text-transform: uppercase;
            letter-spacing: 0.025em;
        }

        /* Button Variants */
        .btn-primary { background: var(--primary); color: #fff; }
        .btn-primary:hover { background: var(--primary-light); }
        
        .btn-secondary { background: rgba(255, 255, 255, 0.05); color: var(--text-main); border-color: var(--border); }
        .btn-secondary:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--border-hover); }
        
        .btn-success { background: rgba(16, 185, 129, 0.15); color: #10b981; border-color: rgba(16, 185, 129, 0.3); }
        .btn-success:hover { background: rgba(16, 185, 129, 0.25); border-color: rgba(16, 185, 129, 0.5); }
        
        .btn-danger { background: rgba(239, 68, 68, 0.15); color: #ef4444; border-color: rgba(239, 68, 68, 0.3); }
        .btn-danger:hover { background: rgba(239, 68, 68, 0.25); border-color: rgba(239, 68, 68, 0.5); }
        
        .btn-warning { background: rgba(245, 158, 11, 0.15); color: #f59e0b; border-color: rgba(245, 158, 11, 0.3); }
        .btn-warning:hover { background: rgba(245, 158, 11, 0.25); border-color: rgba(245, 158, 11, 0.5); }

        .modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(4px);
            z-index: 10000;
            justify-content: center;
            align-items: center;
        }

        /* Keep scrolling inside activity/history modals and avoid page scroll chaining */
        #activity-log-modal,
        #activity-detail-modal {
            align-items: flex-start;
            overflow-y: auto;
            overscroll-behavior: contain;
            padding: 24px 0;
        }

        #activity-log-modal .modal-box,
        #activity-detail-modal .modal-box {
            margin: auto;
            max-height: calc(100vh - 48px);
        }

        #activity-log-modal .modal-body {
            display: flex;
            flex-direction: column;
            min-height: 0;
            overflow: hidden;
        }

#activity-log-container {
            flex: 1;
            min-height: 220px;
            max-height: none !important;
            overflow-y: auto;
            overscroll-behavior: contain;
            padding-right: 6px;
        }

#activity-log-container .shop-item {
            flex-shrink: 0;
            min-height: 72px;
        }

        .modal-close {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid var(--border);
            color: var(--text-muted);
            width: 32px;
            height: 32px;
            border-radius: var(--radius-md);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: var(--transition);
        }

        .modal-close:hover {
            background: rgba(239, 68, 68, 0.1);
            color: var(--danger);
            border-color: rgba(239, 68, 68, 0.2);
        }

        .input-hint {
            display: block;
            margin-top: 0.5rem;
            font-size: 0.75rem;
            color: var(--text-dim);
        }

        /* Item Cards Overhaul */
        .shop-item {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: var(--radius-lg);
            padding: 1.25rem;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            flex-direction: column;
            gap: 1rem;
            overflow: hidden;
        }

        .shop-item:hover {
            background: var(--bg-card-hover);
            border-color: var(--primary);
            transform: translateY(-2px);
            box-shadow: var(--shadow-lg);
        }

        .shop-item .item-header {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .shop-item .item-header > .flex-1 {
            min-width: 0;
        }

        .shop-item .item-title {
            font-weight: 700;
            color: #fff;
            font-size: 1rem;
        }

        .shop-item .item-subtitle {
            font-size: 0.75rem;
            color: var(--text-muted);
            font-family: monospace;
            max-width: 100%;
            overflow-wrap: anywhere;
            word-break: break-word;
        }

        .shop-item .item-price-tag {
            font-size: 0.875rem;
            font-weight: 600;
            padding: 0.25rem 0.5rem;
            border-radius: var(--radius-sm);
            background: rgba(0, 0, 0, 0.2);
        }

        .item-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-top: 4px;
        }

        .item-tag {
            font-size: 0.7em;
            font-weight: 700;
            padding: 2px 6px;
            border-radius: 4px;
            background: rgba(255, 255, 255, 0.05);
            color: var(--text-muted);
            text-transform: uppercase;
            border: 1px solid var(--border);
            letter-spacing: 0.5px;
        }

        .item-tag.active {
            background: rgba(124, 58, 237, 0.1);
            color: var(--primary-light);
            border-color: rgba(124, 58, 237, 0.3);
        }

        .item-tag.spawner {
            color: #55ff55;
            background: rgba(85, 255, 85, 0.1);
            border-color: rgba(85, 255, 85, 0.3);
        }

        .item-tag.potion {
            color: #ff55ff;
            background: rgba(255, 85, 255, 0.1);
            border-color: rgba(255, 85, 255, 0.3);
        }

        .item-tag.dynamic {
            color: #ffff55;
            background: rgba(255, 255, 85, 0.1);
            border-color: rgba(255, 255, 85, 0.3);
        }

        .item-tag.command {
            color: #55ffff;
            background: rgba(85, 255, 255, 0.1);
            border-color: rgba(85, 255, 255, 0.3);
        }

        .item-lore-preview {
            display: flex;
            flex-direction: column;
            gap: 2px;
            margin-top: 8px;
            padding-top: 8px;
            border-top: 1px solid rgba(255, 255, 255, 0.05);
            max-width: 100%;
        }

        .lore-line {
            font-size: 0.8rem;
            color: var(--text-muted);
            line-height: 1.4;
            max-width: 100%;
            overflow-wrap: anywhere;
            word-break: break-word;
        }

.group-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.setting-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.setting-item label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.setting-item input[type="text"],
.setting-item input[type="number"] {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px 14px;
    color: #fff;
    transition: var(--transition);
}

.setting-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
    cursor: pointer;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: 24px;
}

.settings-group.card-base {
    padding: 2rem;
}

/* ==========================================================================
   LOGIN PAGE STYLES
   ========================================================================== */

@keyframes login-float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(10deg); }
}

@keyframes login-gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes login-slideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes login-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

body.login-page {
    background: #000000;
    display: flex;
    padding: 40px 20px;
    position: relative;
    min-height: 100vh;
}

body.login-page::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 30% 40%, rgba(120, 119, 198, 0.15), transparent 40%),
        radial-gradient(circle at 70% 60%, rgba(255, 0, 128, 0.12), transparent 40%),
        radial-gradient(circle at 50% 80%, rgba(0, 184, 217, 0.1), transparent 40%);
    animation: login-float 40s ease-in-out infinite;
    z-index: 0;
    filter: blur(100px);
    pointer-events: none;
}

body.login-page::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(10, 10, 20, 0.85) 0%, rgba(15, 15, 25, 0.9) 100%);
    z-index: 0;
    pointer-events: none;
}

.login-container {
    background: rgba(10, 10, 20, 0.6);
    backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(120, 119, 198, 0.3);
    border-radius: 32px;
    box-shadow:
        0 40px 100px rgba(0,0,0,0.8),
        0 0 0 1px rgba(255,255,255,0.03),
        inset 0 1px 1px rgba(255,255,255,0.03),
        0 0 100px rgba(120, 119, 198, 0.2);
    padding: 60px 50px;
    max-width: 520px;
    width: 100%;
    margin: auto;
    position: relative;
    z-index: 1;
    animation: login-slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        transparent,
        rgba(120, 119, 198, 0.8),
        rgba(255, 0, 128, 0.8),
        rgba(0, 184, 217, 0.8),
        rgba(120, 119, 198, 0.8),
        transparent
    );
    background-size: 200% 100%;
    animation: login-gradientShift 8s ease infinite;
    border-radius: 32px 32px 0 0;
}

.login-page .logo-section {
    text-align: center;
    margin-bottom: 50px;
}

.login-page h1 {
    font-family: 'Inter', sans-serif;
    font-size: 3em;
    font-weight: 900;
    margin-bottom: 18px;
    background: linear-gradient(135deg,
        #7877C6 0%,
        #FF0080 25%,
        #00B8D9 50%,
        #FF0080 75%,
        #7877C6 100%
    );
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: login-gradientShift 8s ease infinite;
    letter-spacing: -2px;
}

.login-page .subtitle {
    text-align: center;
    color: rgba(200, 200, 220, 0.7);
    margin-bottom: 0;
    font-size: 0.8em;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.login-page .form-group {
    margin-bottom: 28px;
}

.login-page .form-group label {
    display: block;
    font-weight: 600;
    color: rgba(220, 220, 240, 0.9);
    margin-bottom: 12px;
    font-size: 0.9em;
    letter-spacing: 0.5px;
}

.login-page .form-group input {
    width: 100%;
    padding: 18px 22px;
    font-size: 0.95em;
    border: 1px solid rgba(120, 119, 198, 0.3);
    background: rgba(15, 15, 25, 0.8);
    color: #f0f0f5;
    border-radius: 14px;
    font-family: 'Inter', sans-serif;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 4px 16px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.03);
}

.login-page .form-group input::placeholder {
    color: rgba(200, 200, 220, 0.4);
}

.login-page .form-group input:focus {
    outline: none;
    border-color: rgba(120, 119, 198, 0.8);
    background: rgba(20, 20, 30, 0.95);
    box-shadow:
        0 0 0 4px rgba(120, 119, 198, 0.2),
        0 8px 30px rgba(120, 119, 198, 0.4),
        inset 0 1px 0 rgba(255,255,255,0.05);
    transform: translateY(-2px) scale(1.01);
}

.login-page .input-hint {
    color: rgba(180, 180, 200, 0.6);
    font-size: 0.85em;
    margin-top: 10px;
    line-height: 1.5;
}

.login-page .btn {
    width: 100%;
    padding: 18px;
    font-family: 'Inter', sans-serif;
    font-size: 1em;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #7877C6 0%, #FF0080 100%);
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: opacity 0.1s ease;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow:
        0 8px 30px rgba(120, 119, 198, 0.4),
        0 0 40px rgba(120, 119, 198, 0.2);
    margin-top: 15px;
    position: relative;
}

.login-page .btn:hover {
    opacity: 0.85;
}

.login-page .btn:active {
    opacity: 0.7;
}

.login-page .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.login-page .error {
    background: linear-gradient(135deg, rgba(255, 0, 128, 0.2) 0%, rgba(255, 107, 107, 0.2) 100%);
    border: 1px solid rgba(255, 0, 128, 0.4);
    color: #FF6B9D;
    padding: 16px 20px;
    border-radius: 14px;
    margin-bottom: 28px;
    font-size: 0.9em;
    font-weight: 500;
    text-align: center;
    display: none;
    animation: login-shake 0.5s ease;
    box-shadow: 0 8px 24px rgba(255, 0, 128, 0.2);
}

.login-page .info-box {
    background:
        linear-gradient(135deg, rgba(120, 119, 198, 0.08) 0%, rgba(255, 0, 128, 0.08) 100%),
        rgba(20, 20, 30, 0.6);
    border: 1px solid rgba(120, 119, 198, 0.3);
    border-radius: 18px;
    padding: 24px 28px;
    margin-bottom: 35px;
    font-size: 0.9em;
    line-height: 1.8;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.login-page .info-box h3 {
    font-family: 'Inter', sans-serif;
    font-size: 0.85em;
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #7877C6, #FF0080);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.login-page .info-box ul {
    list-style: none;
    padding-left: 0;
}

.login-page .info-box li {
    margin-bottom: 12px;
    color: rgba(220, 220, 240, 0.85);
    padding-left: 28px;
    position: relative;
}

.login-page .info-box li::before {
    content: "\2192";
    position: absolute;
    left: 0;
    color: #7877C6;
    font-size: 1.2em;
    font-weight: bold;
}

@media (max-width: 768px) {
    .login-page .login-container {
        padding: 40px 30px;
        border-radius: 24px;
        max-width: 100%;
        margin: 10px;
    }

    .login-page h1 {
        font-size: 28px !important;
    }

    .login-page .subtitle {
        font-size: 14px !important;
    }

    .login-page .form-group label {
        font-size: 13px;
    }

    .login-page .form-group input {
        font-size: 15px;
        padding: 14px 16px;
    }

    .login-page .btn {
        padding: 14px;
        font-size: 15px;
    }

    .login-page .info-box {
        padding: 20px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    body.login-page {
        padding: 10px;
    }

    .login-page .login-container {
        padding: 30px 20px;
        border-radius: 20px;
    }

    .login-page h1 {
        font-size: 24px !important;
    }

    .login-page .subtitle {
        font-size: 13px !important;
    }

    .login-page .form-group input {
        font-size: 14px;
        padding: 12px 14px;
    }

    .login-page .btn {
        font-size: 14px;
        padding: 12px;
    }

    .login-page .info-box {
        font-size: 11px;
        padding: 16px;
    }

    .login-page .info-box h3 {
        font-size: 13px;
    }
}

@media (max-height: 600px) and (orientation: landscape) {
    .login-page .login-container {
        padding: 20px 30px;
    }

    .login-page h1 {
        font-size: 24px !important;
    }

    .login-page .form-group {
        margin-bottom: 12px;
    }

    .login-page .btn {
        padding: 12px;
    }

    .login-page .info-box {
        margin-top: 15px;
        padding: 15px;
    }
}
.login-page .info-box li:last-child {
    margin-bottom: 0;
}

.login-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    padding: 4px;
    margin-bottom: 25px;
    border: 1px solid var(--border);
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: calc(var(--radius-md) - 2px);
    transition: var(--transition);
}

.tab-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.tab-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

.campaign-hub-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.campaign-hub-panel {
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.campaign-hub-title {
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: rgba(220, 230, 245, 0.95);
    margin-bottom: 10px;
}

.campaign-hub-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 8px;
    margin-bottom: 10px;
}

.campaign-hub-select-wrap {
    min-width: 100%;
}

.campaign-hub-search {
    margin-bottom: 10px;
}

.campaign-assignment-list {
    max-height: 260px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.12);
}

.campaign-assignment-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 9px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.campaign-assignment-row:last-child {
    border-bottom: none;
}

.campaign-assignment-main {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

.campaign-assignment-name {
    font-size: 0.8rem;
    color: rgba(220, 230, 245, 0.96);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.campaign-assignment-sub {
    font-size: 0.75rem;
    color: rgba(185, 195, 215, 0.72);
}

.campaign-hub-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.campaign-hub-actions .btn {
    padding: 6px 10px;
    font-size: 0.74rem;
    font-weight: 700;
}

.campaign-card-grid {
    margin-top: 8px;
}

@media (max-width: 1200px) {
    .campaign-hub-grid {
        grid-template-columns: 1fr;
    }

    .campaign-assignment-list {
        max-height: 220px;
    }
}

.stock-analytics-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.stock-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px;
}

.stock-card-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: rgba(190, 200, 220, 0.85);
    margin-bottom: 6px;
}

.stock-card-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: rgba(230, 238, 250, 0.98);
}

.stock-analytics-table {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
}

.stock-table-header,
.stock-table-row {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr 0.8fr 0.7fr 0.7fr 0.7fr 0.9fr;
    gap: 8px;
    align-items: center;
    padding: 10px 12px;
}

.stock-table-header {
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: rgba(190, 200, 220, 0.88);
}

.stock-table-row {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.78rem;
}

.stock-table-row:nth-child(even) {
    background: rgba(255, 255, 255, 0.015);
}

.stock-cell-main {
    min-width: 0;
}

.stock-item-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: rgba(224, 233, 248, 0.98);
}

.stock-item-sub {
    color: rgba(180, 190, 210, 0.75);
    font-size: 0.72rem;
}

.stock-pill {
    display: inline-flex;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.4px;
}

.stock-pill.ok {
    background: rgba(46, 204, 113, 0.16);
    color: #80f2b3;
}

.stock-pill.warn {
    background: rgba(241, 196, 15, 0.16);
    color: #ffe080;
}

.stock-pill.danger {
    background: rgba(231, 76, 60, 0.18);
    color: #ff9d93;
}

.data-editor-table {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.data-editor-row {
    display: grid;
    gap: 8px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.02);
}

.data-editor-player {
    grid-template-columns: 1.3fr 1.1fr 0.7fr auto;
}

.data-editor-global {
    grid-template-columns: 1.5fr 0.8fr auto;
}

.data-editor-stock {
    grid-template-columns: 1.4fr 0.8fr 1fr auto;
}

.data-editor-input {
    min-width: 0;
    height: 38px;
}

.data-editor-actions {
    display: inline-flex;
    gap: 8px;
}

@media (max-width: 1200px) {
    .stock-analytics-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .stock-table-header,
    .stock-table-row {
        grid-template-columns: 1.3fr 0.8fr 0.7fr 0.7fr 0.8fr;
    }
    .stock-col-material,
    .stock-col-slot {
        display: none;
    }

    .data-editor-player,
    .data-editor-global,
    .data-editor-stock {
        grid-template-columns: 1fr;
    }
}
