:root {
            --purple: var(--purple, #8b5cf6);
            --purple-glow: var(--glow, rgba(139, 92, 246, 0.4));
            --bg-dark: var(--bg, #050409);
            --panel-bg: var(--card, rgba(15, 12, 28, 0.65));
            --text-main: var(--text, #e2e8f0);
            --text-muted: var(--muted, #94a3b8);
            --gold: var(--gold, #f59e0b);
            --green: var(--green, #10b981);
            --red: #ef4444;
            --neon-glow: var(--glow, 0 0 15px rgba(139, 92, 246, 0.2));
        }

        body {
            background: var(--bg-dark);
            color: var(--text-main);
            font-family: 'Outfit', 'Inter', sans-serif;
            margin: 0;
            padding: 16px;
            box-sizing: border-box;
            min-height: 100vh;
        }

        /* Scrollbar styles */
        ::-webkit-scrollbar {
            width: 6px;
            height: 6px;
        }
        ::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.02);
        }
        ::-webkit-scrollbar-thumb {
            background: var(--purple-glow);
            border-radius: 3px;
        }
        ::-webkit-scrollbar-thumb:hover {
            background: var(--purple);
        }

        /* Glassmorphic Panel styling */
        .glass-panel {
            background: var(--panel-bg);
            border: 1px solid rgba(139, 92, 246, 0.15);
            border-radius: 20px;
            box-shadow: var(--neon-glow);
            backdrop-filter: blur(12px);
            padding: 24px;
            margin-bottom: 20px;
            transition: all 0.3s ease;
        }

        .glass-panel:hover {
            border-color: rgba(139, 92, 246, 0.3);
            box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
        }

        /* Tabs bar styling */
        .tabs-header {
            display: flex;
            gap: 8px;
            margin-bottom: 24px;
            overflow-x: auto;
            padding-bottom: 8px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        }

        .tab-btn {
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(139, 92, 246, 0.1);
            color: var(--text-muted);
            padding: 10px 18px;
            border-radius: 12px;
            cursor: pointer;
            font-size: 0.88rem;
            font-weight: 600;
            white-space: nowrap;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: all 0.2s ease;
        }

        .tab-btn:hover {
            background: rgba(139, 92, 246, 0.1);
            color: #fff;
        }

        .tab-btn.active {
            background: linear-gradient(135deg, var(--purple), #6366f1);
            color: #fff;
            border-color: var(--purple);
            box-shadow: 0 0 10px rgba(139, 92, 246, 0.4);
        }

        .tab-content {
            display: none;
            animation: fadeIn 0.3s ease;
        }

        .tab-content.active {
            display: block;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(6px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* Stat Grid Card */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 16px;
            margin-bottom: 24px;
        }

        .stat-card {
            background: rgba(255, 255, 255, 0.02);
            border: 1px solid rgba(255, 255, 255, 0.05);
            border-radius: 16px;
            padding: 20px;
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        .stat-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, transparent, var(--purple), transparent);
        }

        .stat-label {
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: var(--text-muted);
            margin-bottom: 8px;
        }

        .stat-value {
            font-size: 1.8rem;
            font-weight: 800;
            color: #fff;
        }

        .stat-value.gold { color: var(--gold); }
        .stat-value.green { color: var(--green); }
        .stat-value.purple { color: #c084fc; }

        /* Form Controls */
        .form-group {
            margin-bottom: 16px;
        }

        .form-label {
            display: block;
            font-size: 0.8rem;
            color: var(--text-muted);
            margin-bottom: 6px;
            font-weight: 500;
        }

        .form-input {
            width: 100%;
            background: rgba(0, 0, 0, 0.3);
            border: 1px solid rgba(139, 92, 246, 0.2);
            border-radius: 10px;
            color: #fff;
            padding: 10px 14px;
            font-size: 0.92rem;
            box-sizing: border-box;
            transition: all 0.2s ease;
        }

        .form-input:focus {
            outline: none;
            border-color: var(--purple);
            box-shadow: 0 0 8px var(--purple-glow);
        }

        /* Buttons */
        .glow-btn {
            background: linear-gradient(135deg, var(--purple), #6366f1);
            color: #fff;
            border: none;
            border-radius: 10px;
            padding: 11px 20px;
            font-weight: 700;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            box-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
            transition: all 0.2s ease;
        }

        .glow-btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 0 15px rgba(139, 92, 246, 0.5);
        }

        .glow-btn:active {
            transform: translateY(1px);
        }

        .glow-btn.secondary {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(139, 92, 246, 0.3);
            box-shadow: none;
        }

        .glow-btn.secondary:hover {
            background: rgba(139, 92, 246, 0.1);
        }

        /* Table */
        .custom-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 0.88rem;
            margin-top: 12px;
        }

        .custom-table th {
            text-align: left;
            padding: 12px;
            color: var(--text-muted);
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
            font-weight: 600;
        }

        .custom-table td {
            padding: 12px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.04);
        }

        .custom-table tbody tr:hover {
            background: rgba(255, 255, 255, 0.01);
        }

        /* Badges */
        .status-badge {
            display: inline-block;
            padding: 3px 8px;
            border-radius: 6px;
            font-size: 0.72rem;
            font-weight: 700;
            text-transform: uppercase;
        }

        .status-badge.active { background: rgba(16, 185, 129, 0.15); color: var(--green); border: 1px solid rgba(16, 185, 129, 0.3); }
        .status-badge.pending { background: rgba(245, 158, 11, 0.15); color: var(--gold); border: 1px solid rgba(245, 158, 11, 0.3); }
        .status-badge.completed { background: rgba(139, 92, 246, 0.15); color: #c084fc; border: 1px solid rgba(139, 92, 246, 0.3); }
        .status-badge.rejected { background: rgba(239, 68, 68, 0.15); color: var(--red); border: 1px solid rgba(239, 68, 68, 0.3); }

        /* Loader overlay */
        .loader-overlay {
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: var(--bg-dark);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            z-index: 1000;
            gap: 16px;
        }

        .spinner {
            width: 48px;
            height: 48px;
            border: 4px solid rgba(139, 92, 246, 0.1);
            border-top-color: var(--purple);
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        /* Copy link UI */
        .copy-link-box {
            display: flex;
            gap: 10px;
            background: rgba(0, 0, 0, 0.4);
            border: 1px solid rgba(139, 92, 246, 0.2);
            border-radius: 12px;
            padding: 6px 6px 6px 14px;
            align-items: center;
            justify-content: space-between;
            margin-top: 10px;
        }

        .link-text {
            font-family: monospace;
            color: #c084fc;
            word-break: break-all;
            font-size: 0.88rem;
        }

        /* Tickets split-pane layout */
        .tickets-layout {
            display: grid;
            grid-template-columns: 320px 1fr;
            gap: 20px;
            height: 550px;
        }

        @media (max-width: 768px) {
            .tickets-layout {
                grid-template-columns: 1fr;
                height: auto;
            }
            .chat-pane {
                height: 400px;
            }
        }

        .tickets-sidebar {
            border-right: 1px solid rgba(255, 255, 255, 0.05);
            padding-right: 16px;
            display: flex;
            flex-direction: column;
            gap: 12px;
            overflow-y: auto;
        }

        .ticket-item {
            background: rgba(255, 255, 255, 0.02);
            border: 1px solid rgba(255, 255, 255, 0.05);
            border-radius: 12px;
            padding: 12px;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .ticket-item:hover, .ticket-item.active {
            background: rgba(139, 92, 246, 0.08);
            border-color: rgba(139, 92, 246, 0.3);
        }

        .ticket-topic {
            font-size: 0.9rem;
            font-weight: 700;
            margin-bottom: 6px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .ticket-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.72rem;
            color: var(--text-muted);
        }

        /* Chat Pane */
        .chat-pane {
            display: flex;
            flex-direction: column;
            background: rgba(0, 0, 0, 0.3);
            border: 1px solid rgba(255, 255, 255, 0.05);
            border-radius: 16px;
            height: 100%;
            overflow: hidden;
        }

        .chat-header {
            padding: 14px 18px;
            background: rgba(15, 12, 28, 0.8);
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .chat-history {
            flex: 1;
            padding: 16px;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .chat-bubble {
            max-width: 70%;
            padding: 10px 14px;
            border-radius: 14px;
            font-size: 0.88rem;
            line-height: 1.4;
            position: relative;
        }

        .chat-bubble.webmaster {
            background: linear-gradient(135deg, var(--purple), #6366f1);
            color: #fff;
            align-self: flex-end;
            border-bottom-right-radius: 2px;
        }

        .chat-bubble.support, .chat-bubble.admin {
            background: rgba(255, 255, 255, 0.06);
            border: 1px solid rgba(255, 255, 255, 0.08);
            color: var(--text-main);
            align-self: flex-start;
            border-bottom-left-radius: 2px;
        }

        .bubble-time {
            display: block;
            font-size: 0.68rem;
            color: rgba(255, 255, 255, 0.5);
            text-align: right;
            margin-top: 4px;
        }

        .chat-bubble.support .bubble-time {
            color: var(--text-muted);
        }

        .chat-input-area {
            padding: 12px;
            border-top: 1px solid rgba(255, 255, 255, 0.05);
            background: rgba(15, 12, 28, 0.8);
            display: flex;
            gap: 8px;
        }

        /* Registration box styling */
        .registration-box {
            max-width: 420px;
            margin: 60px auto;
            text-align: center;
        }

        .toast-notify {
            position: fixed;
            bottom: 20px;
            right: 20px;
            background: linear-gradient(135deg, var(--green), #059669);
            color: #fff;
            padding: 12px 20px;
            border-radius: 10px;
            font-weight: 600;
            font-size: 0.88rem;
            box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
            z-index: 10001;
            opacity: 0;
            transform: translateY(10px);
            transition: all 0.3s ease;
            pointer-events: none;
        }

        .toast-notify.show {
            opacity: 1;
            transform: translateY(0);
        }

