﻿/* Premium Layout Grid & Filterbar */
        .premium-filter-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: rgba(16, 18, 27, 0.4);
            backdrop-filter: blur(24px);
            -webkit-backdrop-filter: blur(24px);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 20px;
            padding: 12px 24px;
            margin-top: 24px;
            gap: 16px;
            flex-wrap: wrap;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
            position: relative;
            z-index: 10;
        }

        .premium-filter-tabs {
            display: flex;
            gap: 8px;
            position: relative;
        }

        .premium-filter-tab {
            padding: 10px 20px;
            border-radius: 14px;
            background: transparent;
            border: 1px solid transparent;
            color: rgba(255, 255, 255, 0.5);
            font-size: 14px;
            font-weight: 700;
            font-family: 'Outfit', sans-serif;
            cursor: pointer;
            transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
            display: flex;
            align-items: center;
            gap: 8px;
            position: relative;
            z-index: 2;
        }

        .premium-filter-tab:hover {
            color: #fff;
            background: rgba(255, 255, 255, 0.05);
        }

        .premium-filter-tab.active {
            color: #fff;
            background: rgba(255, 255, 255, 0.1);
            border-color: rgba(255, 255, 255, 0.15);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        }

        .premium-filter-tab.active i {
            color: #a78bfa;
            text-shadow: 0 0 10px rgba(167, 139, 250, 0.5);
        }

        .premium-search-wrapper {
            position: relative;
            min-width: 280px;
        }

        .premium-search-wrapper i {
            position: absolute;
            left: 16px;
            top: 50%;
            transform: translateY(-50%);
            color: rgba(255, 255, 255, 0.4);
            font-size: 14px;
            transition: all 0.3s;
        }

        .premium-search-input {
            width: 100%;
            height: 44px;
            background: rgba(0, 0, 0, 0.3);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 14px;
            padding-left: 44px;
            padding-right: 16px;
            color: #fff;
            font-family: 'Plus Jakarta Sans', sans-serif;
            font-size: 14px;
            outline: none;
            transition: all 0.3s;
            box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.2);
        }

        .premium-search-input:focus {
            border-color: rgba(139, 92, 246, 0.6);
            background: rgba(0, 0, 0, 0.5);
            box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.2), 0 0 20px rgba(139, 92, 246, 0.2);
        }

        .premium-search-input:focus+i,
        .premium-search-input:not(:placeholder-shown)~i {
            color: #a78bfa;
        }

        /* Redesigned Premium Cards */
        .premium-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
            gap: 24px;
            margin-top: 30px;
            perspective: 1000px;
        }

        .premium-card {
            background: rgba(16, 18, 27, 0.8);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.04);
            border-radius: 24px;
            padding: 28px;
            display: flex;
            flex-direction: column;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            position: relative;
            overflow: hidden;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
            cursor: pointer;
            transform-style: preserve-3d;
        }

        .premium-card::before {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 100%);
            opacity: 0;
            transition: opacity 0.4s;
            pointer-events: none;
        }

        .premium-card:hover {
            transform: translateY(-8px) scale(1.02);
            border-color: rgba(255, 255, 255, 0.15);
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(var(--theme-color-rgb), 0.1);
        }

        .premium-card:hover::before {
            opacity: 1;
        }

        /* Distinct Active State styling */
        .premium-card.active {
            background: rgba(20, 22, 33, 0.9);
            border-color: rgba(var(--theme-color-rgb), 0.8);
            box-shadow: 0 15px 45px rgba(0, 0, 0, 0.5), 0 0 40px rgba(var(--theme-color-rgb), 0.2);
        }

        /* Glowing energetic border on active */
        .premium-card.active::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 2px;
            background: linear-gradient(90deg, transparent, var(--theme-color), transparent);
            opacity: 0.8;
            box-shadow: 0 0 15px var(--theme-color);
        }

        .premium-card-top {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 20px;
            position: relative;
            z-index: 2;
        }

        /* Glassmorphism Icon Box */
        .premium-capsule {
            width: 48px;
            height: 48px;
            border-radius: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
            background: rgba(255, 255, 255, 0.03);
            color: rgba(255, 255, 255, 0.5);
            border: 1px solid rgba(255, 255, 255, 0.08);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
            position: relative;
            overflow: hidden;
        }

        .premium-card.active .premium-capsule {
            background: linear-gradient(135deg, var(--theme-color), rgba(var(--theme-color-rgb), 0.4));
            color: #fff;
            border-color: rgba(255, 255, 255, 0.2);
            box-shadow: 0 10px 25px rgba(var(--theme-color-rgb), 0.4), inset 0 2px 10px rgba(255, 255, 255, 0.3);
            transform: scale(1.05) rotate(5deg);
        }

        .premium-card:hover .premium-capsule {
            transform: scale(1.1) rotate(-5deg);
        }

        .premium-card-title-area {
            flex: 1;
            margin-left: 18px;
        }

        .premium-card-category {
            font-size: 11px;
            font-weight: 800;
            letter-spacing: 1px;
            text-transform: uppercase;
            color: rgba(255, 255, 255, 0.4);
            margin-bottom: 6px;
            font-family: 'Outfit', sans-serif;
        }

        .premium-card.active .premium-card-category {
            color: var(--theme-color);
            text-shadow: 0 0 10px rgba(var(--theme-color-rgb), 0.4);
        }

        .premium-card-title-area h3 {
            font-size: 18px;
            font-weight: 800;
            color: #fff;
            margin: 0;
            font-family: 'Outfit', sans-serif;
            letter-spacing: -0.2px;
        }

        .premium-card-middle {
            margin-bottom: 20px;
            position: relative;
            z-index: 2;
        }

        .premium-card-middle p {
            font-size: 14px;
            color: rgba(255, 255, 255, 0.6);
            line-height: 1.5;
            margin: 0 0 12px 0;
            height: 42px;
            overflow: hidden;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            line-clamp: 2;
            -webkit-box-orient: vertical;
            font-family: 'Plus Jakarta Sans', sans-serif;
        }

        /* Metrics Badge */
        .premium-metrics-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-size: 12px;
            font-weight: 700;
            padding: 6px 12px;
            border-radius: 20px;
            background: rgba(255, 255, 255, 0.05);
            color: rgba(255, 255, 255, 0.7);
            border: 1px solid rgba(255, 255, 255, 0.08);
            font-family: 'Outfit', sans-serif;
            transition: all 0.3s;
        }

        .premium-card.active .premium-metrics-badge {
            background: rgba(var(--theme-color-rgb), 0.1);
            color: var(--theme-color);
            border-color: rgba(var(--theme-color-rgb), 0.25);
        }

        .premium-card-bottom {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: auto;
            padding-top: 20px;
            border-top: 1px solid rgba(255, 255, 255, 0.06);
            position: relative;
            z-index: 2;
        }

        .premium-card-status {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 14px;
            font-weight: 800;
            font-family: 'Outfit', sans-serif;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            transition: color 0.3s;
        }

        .status-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: currentColor;
            box-shadow: 0 0 10px currentColor;
        }

        /* Ultra Premium Toggle Switch */
        .premium-switch-wrapper {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .ultra-switch {
            position: relative;
            display: inline-block;
            width: 50px;
            height: 28px;
            flex-shrink: 0;
            transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        .ultra-switch:active {
            transform: scale(0.9);
        }

        .ultra-switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }

        .ultra-slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(255, 255, 255, 0.1);
            transition: background-color 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.5s;
            border-radius: 30px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.3);
        }

        .ultra-slider:before {
            position: absolute;
            content: "";
            height: 22px;
            width: 22px;
            left: 3px;
            bottom: 3px;
            background-color: #94a3b8;
            transition: transform 0.6s cubic-bezier(0.68, -0.2, 0.265, 1.55), width 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s;
            border-radius: 50%;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
        }

        .ultra-switch input:checked+.ultra-slider {
            background-color: #10b981;
            /* Glowing Green for Active */
            border-color: #059669;
            box-shadow: 0 0 15px rgba(16, 185, 129, 0.4), inset 0 2px 5px rgba(0, 0, 0, 0.2);
        }

        .ultra-switch input:checked+.ultra-slider:before {
            transform: translateX(22px);
            background-color: #fff;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3), -2px 0 10px rgba(16, 185, 129, 0.5);
        }

        .ultra-switch:active .ultra-slider:before {
            width: 28px;
            border-radius: 10px;
        }

        .ultra-switch:active input:checked+.ultra-slider:before {
            transform: translateX(16px);
        }

        .premium-config-btn {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: #fff;
            padding: 8px 16px;
            border-radius: 12px;
            font-size: 13px;
            font-weight: 700;
            font-family: 'Outfit', sans-serif;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 6px;
            transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        .premium-config-btn:hover {
            background: rgba(255, 255, 255, 0.15);
            border-color: rgba(255, 255, 255, 0.3);
            transform: translateY(-2px) scale(1.05);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        }

        /* Ambient glowing background blobs for cards */
        .card-bg-glow {
            position: absolute;
            width: 150px;
            height: 150px;
            background: var(--theme-color);
            filter: blur(80px);
            opacity: 0;
            top: -50px;
            right: -50px;
            transition: opacity 0.5s;
            pointer-events: none;
            z-index: 0;
            border-radius: 50%;
        }

        .premium-card.active .card-bg-glow {
            opacity: 0.15;
        }

        .premium-card.active:hover .card-bg-glow {
            opacity: 0.25;
            transform: scale(1.2);
        }

        /* --- Modal Design Overrides --- */
        .premium-modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(10px);
            z-index: 9999;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.4s ease;
        }

        .premium-modal-overlay.active {
            opacity: 1;
            pointer-events: auto;
        }

        .premium-modal-card {
            background: #0f111a;
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 24px;
            width: 90%;
            max-width: 600px;
            max-height: 90vh;
            overflow-y: auto;
            transform: scale(0.9) translateY(20px);
            transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
            box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6), 0 0 40px rgba(var(--theme-color-rgb), 0.1);
            position: relative;
        }

        .premium-modal-overlay.active .premium-modal-card {
            transform: scale(1) translateY(0);
        }

        .premium-modal-header {
            padding: 30px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            display: flex;
            align-items: center;
            gap: 20px;
            background: linear-gradient(180deg, rgba(var(--theme-color-rgb), 0.05), transparent);
        }

        .premium-modal-icon {
            width: 64px;
            height: 64px;
            border-radius: 18px;
            background: linear-gradient(135deg, var(--theme-color), rgba(var(--theme-color-rgb), 0.5));
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 28px;
            box-shadow: 0 10px 25px rgba(var(--theme-color-rgb), 0.4);
        }

        .premium-modal-title h2 {
            font-size: 24px;
            font-weight: 800;
            color: #fff;
            font-family: 'Outfit', sans-serif;
            margin-bottom: 4px;
        }

        .premium-close-btn {
            position: absolute;
            top: 20px;
            right: 20px;
            background: rgba(255, 255, 255, 0.05);
            border: none;
            color: rgba(255, 255, 255, 0.5);
            width: 40px;
            height: 40px;
            border-radius: 50%;
            font-size: 16px;
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .premium-close-btn:hover {
            background: rgba(244, 63, 94, 0.2);
            color: #f43f5e;
            transform: rotate(90deg);
        }

        .premium-modal-body {
            padding: 30px;
        }

        /* --- Logs styling --- */
        .premium-log-terminal {
            background: #050508;
            border: 1px solid rgba(255, 255, 255, 0.05);
            border-radius: 16px;
            font-family: 'Space Mono', monospace;
            padding: 20px;
            height: 300px;
            overflow-y: auto;
            font-size: 13px;
            box-shadow: inset 0 5px 20px rgba(0, 0, 0, 0.8);
        }

        .premium-log-row {
            display: flex;
            gap: 12px;
            margin-bottom: 8px;
            line-height: 1.5;
        }

        .premium-log-time {
            color: rgba(255, 255, 255, 0.3);
            flex-shrink: 0;
        }

        .premium-log-text.success {
            color: #10b981;
        }

        .premium-log-text.warning {
            color: #fbbf24;
        }

        .premium-log-text.danger {
            color: #f43f5e;
        }

        .premium-log-text.info {
            color: #3b82f6;
        }

        .premium-modal-footer {
            padding: 20px 30px;
            border-top: 1px solid rgba(255, 255, 255, 0.05);
            display: flex;
            justify-content: flex-end;
            gap: 12px;
            background: rgba(0, 0, 0, 0.2);
        }

        .premium-btn {
            padding: 12px 24px;
            border-radius: 14px;
            font-weight: 700;
            font-size: 14px;
            font-family: 'Outfit', sans-serif;
            cursor: pointer;
            transition: all 0.3s;
            border: none;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .premium-btn-ghost {
            background: transparent;
            color: rgba(255, 255, 255, 0.6);
        }

        .premium-btn-ghost:hover {
            background: rgba(255, 255, 255, 0.05);
            color: #fff;
        }

        .premium-btn-save {
            padding: 14px 28px;
            border-radius: 16px;
            font-weight: 800;
            font-size: 14.5px;
            font-family: 'Outfit', sans-serif;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
            border: none;
            display: flex;
            align-items: center;
            gap: 8px;
            background: linear-gradient(135deg, var(--theme-color), rgba(var(--theme-color-rgb), 0.75));
            color: #fff;
            box-shadow: 0 6px 20px rgba(var(--theme-color-rgb), 0.35), 0 0 15px rgba(var(--theme-color-rgb), 0.15);
        }

        .premium-btn-save:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 25px rgba(var(--theme-color-rgb), 0.5), 0 0 25px rgba(var(--theme-color-rgb), 0.3);
        }

        /* ══════════════════════════════════════════
           V2.x FULL PAGE INLINE CONFIG DESIGN
           ══════════════════════════════════════════ */
        .premium-settings-page {
            width: 100%;
            max-width: 100% !important;
            /* Full width page layout */
            margin: 0 auto;
            padding: 0 10px 60px 10px;
            animation: pageFadeIn 0.4s ease-out forwards;
        }

        @keyframes pageFadeIn {
            from {
                opacity: 0;
                transform: translateY(15px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .premium-settings-header {
            display: flex;
            align-items: center;
            margin-bottom: 30px;
            background: linear-gradient(180deg, rgba(var(--theme-color-rgb), 0.08), rgba(16, 18, 27, 0.6));
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid rgba(var(--theme-color-rgb), 0.15);
            border-radius: 24px;
            padding: 26px 36px;
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(var(--theme-color-rgb), 0.05);
            position: relative;
            overflow: hidden;
        }

        .premium-settings-header::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, var(--theme-color), rgba(var(--theme-color-rgb), 0.5));
            box-shadow: 0 0 15px rgba(var(--theme-color-rgb), 0.5);
            z-index: 10;
        }

        .premium-btn-back {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: #fff;
            width: 52px;
            height: 52px;
            border-radius: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            cursor: pointer;
            margin-right: 24px;
            transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        }

        .premium-btn-back:hover {
            background: rgba(255, 255, 255, 0.15);
            border-color: rgba(255, 255, 255, 0.2);
            transform: translateX(-4px);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
        }

        .premium-settings-title-group {
            flex-grow: 1;
        }

        .premium-settings-title-group h2 {
            font-size: 38px;
            font-weight: 850;
            color: #fff;
            margin: 0 0 6px 0;
            font-family: 'Outfit', sans-serif;
            letter-spacing: -0.8px;
            text-shadow: 0 0 25px rgba(255, 255, 255, 0.25);
        }

        .premium-settings-title-group p {
            font-size: 15.5px;
            color: rgba(255, 255, 255, 0.65);
            margin: 0;
            font-family: 'Plus Jakarta Sans', sans-serif;
        }

        .premium-settings-status {
            font-size: 13px;
            font-weight: 700;
            color: rgba(255, 255, 255, 0.5);
            background: rgba(0, 0, 0, 0.3);
            padding: 10px 18px;
            border-radius: 14px;
            border: 1px solid rgba(255, 255, 255, 0.06);
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .premium-settings-status span.status-active {
            color: #10b981;
            font-weight: 800;
            margin-left: 6px;
            text-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
        }

        /* Premium Configuration Rows */
        .premium-settings-list {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        .premium-settings-page .config-row,
        .premium-setting-row,
        .premium-config-row {
            background: rgba(16, 18, 27, 0.6);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.05);
            border-radius: 20px;
            padding: 24px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
            position: relative;
            overflow: visible;
            margin-bottom: 16px;
        }

        .premium-settings-page .config-row::before,
        .premium-setting-row::before,
        .premium-config-row::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 3px;
            background: rgba(255, 255, 255, 0.05);
            transition: all 0.3s;
        }

        .premium-settings-page .config-row:hover::before,
        .premium-setting-row:hover::before,
        .premium-config-row:hover::before {
            background: #9b6dff;
            box-shadow: 0 0 10px #9b6dff;
        }

        .premium-settings-page .config-row:hover,
        .premium-setting-row:hover,
        .premium-config-row:hover {
            border-color: rgba(155, 109, 255, 0.4);
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 30px rgba(155, 109, 255, 0.15), inset 0 0 20px rgba(155, 109, 255, 0.05);
            transform: translateY(-3px);
        }

        .premium-settings-page .config-info,
        .premium-setting-info,
        .premium-config-info {
            flex: 1;
            padding-right: 40px;
        }

        .premium-settings-page .config-info h4,
        .premium-setting-info h4,
        .premium-config-info h4 {
            font-size: 16px;
            font-weight: 700;
            color: #fff;
            margin: 0 0 8px 0;
            font-family: 'Outfit', sans-serif;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .premium-settings-page .config-info p,
        .premium-setting-info p,
        .premium-config-info p {
            font-size: 13.5px;
            color: rgba(255, 255, 255, 0.5);
            margin: 0;
            line-height: 1.5;
        }

        .premium-settings-page .config-control,
        .premium-setting-control,
        .premium-config-control {
            min-width: 280px;
            display: flex;
            justify-content: flex-end;
            align-items: center;
        }

        /* ---------------------------------------------------- */
        /* V2.X ULTRA-PREMIUM SPLIT VIEW & DISCORD MOCKUP CSS */
        /* ---------------------------------------------------- */

        .premium-split-layout {
            display: grid;
            grid-template-columns: 1.3fr 1fr;
            gap: 40px;
            margin-top: 25px;
            align-items: start;
            width: 100%;
            max-width: 100%;
        }

        /* Responsive */
        @media (max-width: 1200px) {
            .premium-split-layout {
                grid-template-columns: 1fr;
            }
        }

        .premium-settings-column {
            display: flex;
            flex-direction: column;
            gap: 18px;
        }

        .premium-preview-column {
            position: sticky;
            top: 20px;
            background: rgba(16, 18, 27, 0.4);
            border: 1px solid rgba(255, 255, 255, 0.05);
            border-radius: 24px;
            padding: 28px;
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
        }

        .preview-header {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 20px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            padding-bottom: 15px;
        }

        .preview-header i {
            color: #9b6dff;
            font-size: 18px;
        }

        .preview-header h3 {
            margin: 0;
            font-size: 16px;
            font-family: 'Outfit', sans-serif;
            color: #fff;
        }

        /* Discord Message Mockup Container */
        .discord-mockup {
            display: flex;
            gap: 16px;
            font-family: 'gg sans', 'Noto Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
            background: #313338;
            /* Discord dark theme color */
            padding: 20px;
            border-radius: 12px;
            box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 15px 40px rgba(0, 0, 0, 0.4);
        }

        .discord-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: #5865F2;
            /* Discord Blurple */
            flex-shrink: 0;
            background-image: url('https://ui-avatars.com/api/?name=Bot&background=5865F2&color=fff');
            background-size: cover;
        }

        .discord-msg-content {
            display: flex;
            flex-direction: column;
            width: 100%;
        }

        .discord-header {
            display: flex;
            align-items: baseline;
            gap: 8px;
            margin-bottom: 4px;
        }

        .discord-username {
            color: #fff;
            font-size: 15px;
            font-weight: 600;
        }

        .discord-bot-tag {
            background: #5865F2;
            color: #fff;
            font-size: 9px;
            padding: 2px 5px;
            border-radius: 4px;
            font-weight: 700;
            display: inline-flex;
            align-items: center;
            line-height: 1.1;
        }

        .discord-bot-tag i {
            font-size: 7px;
            margin-right: 3px;
        }

        .discord-timestamp {
            color: #949ba4;
            font-size: 11.5px;
        }

        .discord-text {
            color: #dbdee1;
            font-size: 14.5px;
            line-height: 1.4;
            white-space: pre-wrap;
            margin-bottom: 8px;
        }

        .discord-embed {
            display: flex;
            background: #2b2d31;
            border-radius: 5px;
            border-left: 4px solid #9b6dff;
            margin-top: 4px;
            max-width: 520px;
            flex-direction: column;
            padding: 16px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
        }

        .discord-embed-inner {
            display: flex;
            flex-direction: row;
            justify-content: space-between;
            gap: 16px;
        }

        .discord-embed-content {
            display: flex;
            flex-direction: column;
            gap: 8px;
            flex: 1;
        }

        .discord-embed-title {
            color: #ffffff;
            font-size: 16px;
            font-weight: 700;
            margin: 0;
        }

        .discord-embed-desc {
            color: #dbdee1;
            font-size: 14px;
            line-height: 1.4;
            white-space: pre-wrap;
        }

        .discord-embed-thumb {
            max-width: 80px;
            max-height: 80px;
            border-radius: 5px;
            object-fit: contain;
        }

        .discord-embed-footer {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-top: 12px;
            border-top: 1px solid rgba(255, 255, 255, 0.04);
            padding-top: 8px;
        }

        .discord-embed-footer-text {
            color: #949ba4;
            font-size: 11px;
        }

        /* Native Discord Buttons Support */
        .discord-btn-row {
            display: flex;
            gap: 8px;
            margin-top: 12px;
            flex-wrap: wrap;
        }

        .discord-btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 8px 16px;
            border-radius: 4px;
            font-size: 13.5px;
            font-weight: 600;
            cursor: pointer;
            border: none;
            color: #ffffff;
            font-family: inherit;
            transition: background-color 0.2s, transform 0.1s;
        }

        .discord-btn:active {
            transform: scale(0.97);
        }

        .discord-btn-primary {
            background-color: #5865F2;
            /* Blurple */
        }

        .discord-btn-primary:hover {
            background-color: #4752C4;
        }

        .discord-btn-secondary {
            background-color: #4e5058;
            /* Gray */
        }

        .discord-btn-secondary:hover {
            background-color: #6d6f78;
        }

        .discord-btn-success {
            background-color: #248046;
            /* Green */
        }

        .discord-btn-success:hover {
            background-color: #1a6535;
        }

        .discord-btn-danger {
            background-color: #da373c;
            /* Red */
        }

        .discord-btn-danger:hover {
            background-color: #a92b2f;
        }

        /* Improved Form Inputs for Split View */
        .premium-input-v2 {
            background: rgba(0, 0, 0, 0.25);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: #fff;
            padding: 12px 16px;
            border-radius: 12px;
            font-family: inherit;
            font-size: 14px;
            width: 100%;
            transition: all 0.2s ease;
        }

        .premium-input-v2:focus {
            outline: none;
            border-color: #9b6dff;
            box-shadow: 0 0 0 3px rgba(155, 109, 255, 0.15);
            background: rgba(0, 0, 0, 0.35);
        }

        textarea.premium-input-v2 {
            resize: vertical;
            min-height: 90px;
        }

        .premium-settings-footer {
            display: flex;
            justify-content: flex-end;
            gap: 16px;
            margin-top: 32px;
            padding-top: 24px;
            border-top: 1px solid rgba(255, 255, 255, 0.05);
        }

        /* Embed Builder inside the List */
        .premium-embed-builder {
            background: rgba(0, 0, 0, 0.25);
            border: 1px dashed rgba(255, 255, 255, 0.1);
            border-radius: 20px;
            padding: 24px;
            margin-top: -8px;
            margin-bottom: 8px;
            display: flex;
            flex-direction: column;
            gap: 16px;
            transition: all 0.3s;
        }

        .premium-embed-builder:hover {
            border-color: rgba(155, 109, 255, 0.3);
            background: rgba(0, 0, 0, 0.35);
        }

        /* Toggle switches color inside config list */
        .premium-settings-page .toggle-pill.active {
            background: #10b981;
            border-color: #059669;
            box-shadow: 0 0 12px rgba(16, 185, 129, 0.3);
        }

        /* Custom Dropdowns (V2.x Premium Select & Multiselect) */
        .v2-custom-select,
        .v2-custom-multiselect {
            position: relative;
            width: 100%;
            min-width: 240px;
            max-width: 320px;
            font-family: 'Outfit', sans-serif;
            user-select: none;
            z-index: 99;
        }

        .v2-custom-select-trigger,
        .v2-custom-multiselect-trigger {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 12px 18px;
            background: rgba(0, 0, 0, 0.45);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 14px;
            color: #ffffff;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
            font-size: 14px;
            font-weight: 600;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        }

        .v2-custom-select-trigger:hover,
        .v2-custom-multiselect-trigger:hover {
            border-color: rgba(155, 109, 255, 0.5);
            box-shadow: 0 0 15px rgba(155, 109, 255, 0.25);
            background: rgba(16, 18, 27, 0.6);
        }

        .v2-custom-select.open .v2-custom-select-trigger,
        .v2-custom-multiselect.open .v2-custom-multiselect-trigger {
            border-color: #9b6dff;
            background: rgba(16, 18, 27, 0.85);
            box-shadow: 0 0 20px rgba(155, 109, 255, 0.3);
        }

        .v2-custom-select-trigger i,
        .v2-custom-multiselect-trigger i {
            transition: transform 0.3s ease, color 0.3s ease;
            color: rgba(255, 255, 255, 0.4);
            font-size: 12px;
        }

        .v2-custom-select.open .v2-custom-select-trigger i,
        .v2-custom-multiselect.open .v2-custom-multiselect-trigger i {
            transform: rotate(180deg);
            color: #9b6dff;
        }

        .v2-custom-select-options,
        .v2-custom-multiselect-options {
            position: absolute;
            top: calc(100% + 8px);
            left: 0;
            right: 0;
            background: rgba(15, 17, 26, 0.95);
            backdrop-filter: blur(24px);
            -webkit-backdrop-filter: blur(24px);
            border: 1px solid rgba(155, 109, 255, 0.35);
            border-radius: 16px;
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(155, 109, 255, 0.08);
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
            z-index: 1000;
            max-height: 140px;
            overflow-y: auto;
            padding: 6px;
        }

        .v2-custom-select.open .v2-custom-select-options,
        .v2-custom-multiselect.open .v2-custom-multiselect-options {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        /* Elevate z-index of parent rows/containers when a custom select inside them is open */
        .config-row.open-select,
        .premium-setting-row.open-select,
        .premium-config-row.open-select,
        .premium-accordion-item.open-select {
            z-index: 1100 !important;
            position: relative !important;
        }

        .v2-custom-select-options::-webkit-scrollbar,
        .v2-custom-multiselect-options::-webkit-scrollbar {
            width: 6px;
        }

        .v2-custom-select-options::-webkit-scrollbar-thumb,
        .v2-custom-multiselect-options::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.15);
            border-radius: 10px;
        }

        .v2-custom-select-option,
        .v2-custom-multiselect-option {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 10px 14px;
            border-radius: 12px;
            color: rgba(255, 255, 255, 0.7);
            cursor: pointer;
            transition: all 0.2s ease;
            font-size: 13.5px;
            font-weight: 500;
        }

        .v2-custom-select-option:hover,
        .v2-custom-multiselect-option:hover {
            background: rgba(155, 109, 255, 0.1);
            color: #ffffff;
        }

        .v2-custom-select-option.selected,
        .v2-custom-multiselect-option.selected {
            background: rgba(155, 109, 255, 0.15);
            color: #ffffff;
            font-weight: 700;
        }

        /* Checkbox Styles for Multi-Select Options */
        .v2-custom-multiselect-option .checkbox-wrapper {
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .v2-custom-multiselect-option .custom-checkbox {
            width: 18px;
            height: 18px;
            border-radius: 5px;
            border: 1px solid rgba(255, 255, 255, 0.25);
            background: rgba(0, 0, 0, 0.3);
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
        }

        .v2-custom-multiselect-option.selected .custom-checkbox {
            background: #9b6dff;
            border-color: #9b6dff;
            box-shadow: 0 0 8px rgba(155, 109, 255, 0.5);
        }

        /* Multi-select Pills Styling inside trigger */
        .v2-multiselect-pills {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            align-items: center;
            flex: 1;
            overflow: hidden;
        }

        .v2-multiselect-placeholder {
            color: rgba(255, 255, 255, 0.45);
            font-weight: 500;
        }

        .v2-multiselect-pill {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: rgba(155, 109, 255, 0.2);
            border: 1px solid rgba(155, 109, 255, 0.3);
            color: #dfd5ff;
            padding: 4px 10px;
            border-radius: 8px;
            font-size: 12px;
            font-weight: 700;
            transition: all 0.2s ease;
        }

        .v2-multiselect-pill:hover {
            background: rgba(155, 109, 255, 0.3);
            border-color: rgba(155, 109, 255, 0.5);
            color: #ffffff;
        }

        .v2-multiselect-pill i {
            cursor: pointer;
            font-size: 10px;
            opacity: 0.7;
            transition: opacity 0.2s;
        }

        .v2-multiselect-pill i:hover {
            opacity: 1;
            color: #f43f5e;
        }

        /* Responsive Settings Grid Rows */
        @media (max-width: 768px) {

            .premium-settings-page .config-row,
            .premium-setting-row,
            .premium-config-row {
                flex-direction: column;
                align-items: flex-start;
                gap: 16px;
            }

            .premium-settings-page .config-info,
            .v2-custom-select-trigger,
            .v2-custom-multiselect-trigger {
                display: flex;
                align-items: center;
                justify-content: space-between;
                padding: 12px 18px;
                background: rgba(0, 0, 0, 0.45);
                border: 1px solid rgba(255, 255, 255, 0.08);
                border-radius: 14px;
                color: #ffffff;
                cursor: pointer;
                transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
                font-size: 14px;
                font-weight: 600;
                box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
            }

            .v2-custom-select-trigger:hover,
            .v2-custom-multiselect-trigger:hover {
                border-color: rgba(155, 109, 255, 0.5);
                box-shadow: 0 0 15px rgba(155, 109, 255, 0.25);
                background: rgba(16, 18, 27, 0.6);
            }

            .v2-custom-select.open .v2-custom-select-trigger,
            .v2-custom-multiselect.open .v2-custom-multiselect-trigger {
                border-color: #9b6dff;
                background: rgba(16, 18, 27, 0.85);
                box-shadow: 0 0 20px rgba(155, 109, 255, 0.3);
            }

            .v2-custom-select-trigger i,
            .v2-custom-multiselect-trigger i {
                transition: transform 0.3s ease, color 0.3s ease;
                color: rgba(255, 255, 255, 0.4);
                font-size: 12px;
            }

            .v2-custom-select.open .v2-custom-select-trigger i,
            .v2-custom-multiselect.open .v2-custom-multiselect-trigger i {
                transform: rotate(180deg);
                color: #9b6dff;
            }

            .v2-custom-select-options,
            .v2-custom-multiselect-options {
                position: absolute;
                top: calc(100% + 8px);
                left: 0;
                right: 0;
                background: rgba(15, 17, 26, 0.95);
                backdrop-filter: blur(24px);
                -webkit-backdrop-filter: blur(24px);
                border: 1px solid rgba(155, 109, 255, 0.35);
                border-radius: 16px;
                box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(155, 109, 255, 0.08);
                opacity: 0;
                visibility: hidden;
                transform: translateY(-10px);
                transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
                z-index: 1000;
                max-height: 140px;
                overflow-y: auto;
                padding: 6px;
            }

            .v2-custom-select.open .v2-custom-select-options,
            .v2-custom-multiselect.open .v2-custom-multiselect-options {
                opacity: 1;
                visibility: visible;
                transform: translateY(0);
            }

            /* Elevate z-index of parent rows/containers when a custom select inside them is open */
            .config-row.open-select,
            .premium-setting-row.open-select,
            .premium-config-row.open-select,
            .premium-category-card.open-select {
                z-index: 1100 !important;
                position: relative !important;
            }

            .v2-custom-select-options::-webkit-scrollbar,
            .v2-custom-multiselect-options::-webkit-scrollbar {
                width: 6px;
            }

            .v2-custom-select-options::-webkit-scrollbar-thumb,
            .v2-custom-multiselect-options::-webkit-scrollbar-thumb {
                background: rgba(255, 255, 255, 0.15);
                border-radius: 10px;
            }

            .v2-custom-select-option,
            .v2-custom-multiselect-option {
                display: flex;
                align-items: center;
                gap: 12px;
                padding: 10px 14px;
                border-radius: 12px;
                color: rgba(255, 255, 255, 0.7);
                cursor: pointer;
                transition: all 0.2s ease;
                font-size: 13.5px;
                font-weight: 500;
            }

            .v2-custom-select-option:hover,
            .v2-custom-multiselect-option:hover {
                background: rgba(155, 109, 255, 0.1);
                color: #ffffff;
            }

            .v2-custom-select-option.selected,
            .v2-custom-multiselect-option.selected {
                background: rgba(155, 109, 255, 0.15);
                color: #ffffff;
                font-weight: 700;
            }

            /* Checkbox Styles for Multi-Select Options */
            .v2-custom-multiselect-option .checkbox-wrapper {
                display: flex;
                align-items: center;
                justify-content: center;
            }

            .v2-custom-multiselect-option .custom-checkbox {
                width: 18px;
                height: 18px;
                border-radius: 5px;
                border: 1px solid rgba(255, 255, 255, 0.25);
                background: rgba(0, 0, 0, 0.3);
                display: flex;
                align-items: center;
                justify-content: center;
                transition: all 0.2s ease;
            }

            .v2-custom-multiselect-option.selected .custom-checkbox {
                background: #9b6dff;
                border-color: #9b6dff;
                box-shadow: 0 0 8px rgba(155, 109, 255, 0.5);
            }

            /* Multi-select Pills Styling inside trigger */
            .v2-multiselect-pills {
                display: flex;
                flex-wrap: wrap;
                gap: 6px;
                align-items: center;
                flex: 1;
                overflow: hidden;
            }

            .v2-multiselect-placeholder {
                color: rgba(255, 255, 255, 0.45);
                font-weight: 500;
            }

            .v2-multiselect-pill {
                display: inline-flex;
                align-items: center;
                gap: 6px;
                background: rgba(155, 109, 255, 0.2);
                border: 1px solid rgba(155, 109, 255, 0.3);
                color: #dfd5ff;
                padding: 4px 10px;
                border-radius: 8px;
                font-size: 12px;
                font-weight: 700;
                transition: all 0.2s ease;
            }

            .v2-multiselect-pill:hover {
                background: rgba(155, 109, 255, 0.3);
                border-color: rgba(155, 109, 255, 0.5);
                color: #ffffff;
            }

            .v2-multiselect-pill i {
                cursor: pointer;
                font-size: 10px;
                opacity: 0.7;
                transition: opacity 0.2s;
            }

            .v2-multiselect-pill i:hover {
                opacity: 1;
                color: #f43f5e;
            }

            /* Responsive Settings Grid Rows */
            @media (max-width: 768px) {

                .premium-settings-page .config-row,
                .premium-setting-row,
                .premium-config-row {
                    flex-direction: column;
                    align-items: flex-start;
                    gap: 16px;
                }

                .premium-settings-page .config-info,
                .premium-setting-info,
                .premium-config-info {
                    padding-right: 0;
                }

                .premium-settings-page .config-control,
                .premium-setting-control,
                .premium-config-control {
                    width: 100%;
                    justify-content: flex-start;
                }
            }

            /* --- Category Config Card Styles (Replaces Accordions) --- */
            .premium-category-card {
                background: rgba(16, 18, 27, 0.45);
                backdrop-filter: blur(24px);
                -webkit-backdrop-filter: blur(24px);
                border: 1px solid rgba(255, 255, 255, 0.08);
                border-radius: 20px;
                padding: 24px;
                box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
                display: flex;
                flex-direction: column;
                gap: 8px;
                width: 100%;
                box-sizing: border-box;
                position: relative;
                z-index: 10;
            }

            .premium-category-card-header {
                display: flex;
                justify-content: space-between;
                align-items: center;
                padding-bottom: 16px;
                border-bottom: 1px solid rgba(255, 255, 255, 0.06);
                margin-bottom: 12px;
            }

            .premium-category-card-title {
                font-family: 'Outfit', sans-serif;
                font-weight: 700;
                font-size: 16px;
                color: #fff;
                display: flex;
                align-items: center;
                gap: 8px;
            }

            /* Smooth slide-down animation for card entry */
            @keyframes slideDown {
                from {
                    opacity: 0;
                    transform: translateY(-8px);
                }

                to {
                    opacity: 1;
                    transform: translateY(0);
                }
            }

            .delete-card-btn {
                background: transparent;
                border: none;
                color: rgba(255, 255, 255, 0.3);
                cursor: pointer;
                font-size: 13.5px;
                transition: color 0.2s, transform 0.2s;
                padding: 6px;
                display: flex;
                align-items: center;
                justify-content: center;
                border-radius: 8px;
            }

            .delete-card-btn:hover {
                color: #f43f5e;
                background-color: rgba(244, 63, 94, 0.1);
                transform: scale(1.05);
            }
        }
