/* WEB PANEL PROXY public CSS */
:root {
            --bg-dark: #08080c;
            --bg-card: #121218;
            --bg-card-hover: #1a1a24;
            --bg-modal: #0d0d14;
            --text-main: #f1f5f9;
            --text-muted: #94a3b8;
            --accent-red: #ff4655;
            --accent-glow: rgba(255, 70, 85, 0.35);
            --accent-cyan: #00f0ff;
            --accent-green: #00ff88;
            --accent-purple: #a855f7;
            --accent-orange: #ff8800;
            --border-color: rgba(255, 255, 255, 0.1);
            --font-stack: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            user-select: none;
        }

        body {
            font-family: var(--font-stack);
            background-color: var(--bg-dark);
            color: var(--text-main);
            line-height: 1.6;
            overflow-x: hidden;
        }

        ::-webkit-scrollbar {
            width: 8px;
        }
        ::-webkit-scrollbar-track {
            background: var(--bg-dark);
        }
        ::-webkit-scrollbar-thumb {
            background: #232332;
            border-radius: 4px;
        }
        ::-webkit-scrollbar-thumb:hover {
            background: var(--accent-red);
        }

        header {
            background: rgba(8, 8, 12, 0.94);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            position: sticky;
            top: 0;
            z-index: 100;
            border-bottom: 1px solid var(--border-color);
        }

        .header-container {
            max-width: 1280px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 16px 20px;
        }

        .logo {
            font-size: 1.4rem;
            font-weight: 900;
            letter-spacing: -0.5px;
            text-transform: uppercase;
            color: #ffffff;
            display: flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
        }

        .logo span {
            color: var(--accent-red);
        }

        .nav-list {
            display: flex;
            gap: 8px;
            list-style: none;
        }

        .nav-btn {
            background: transparent;
            border: 1px solid transparent;
            color: var(--text-muted);
            padding: 9px 18px;
            border-radius: 8px;
            font-size: 0.85rem;
            font-weight: 700;
            text-transform: uppercase;
            cursor: pointer;
            transition: all 0.25s ease;
        }

        .nav-btn:hover {
            color: var(--text-main);
            background: rgba(255, 255, 255, 0.06);
        }

        .nav-btn.active {
            color: #ffffff;
            background: var(--accent-red);
            box-shadow: 0 0 16px var(--accent-glow);
        }

        main {
            max-width: 1280px;
            margin: 0 auto;
            padding: 28px 20px 60px;
            min-height: 85vh;
        }

        .tab-content {
            display: none;
        }

        .tab-content.active {
            display: block;
            animation: fadeIn 0.35s ease-out;
        }

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

        .carousel {
            position: relative;
            width: 100%;
            height: 420px;
            border-radius: 20px;
            overflow: hidden;
            margin-bottom: 36px;
            border: 1px solid var(--border-color);
            box-shadow: 0 20px 40px rgba(0,0,0,0.6);
        }

        .carousel-track {
            display: flex;
            width: 300%;
            height: 100%;
            transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
        }

        .slide {
            width: 33.333%;
            height: 100%;
            position: relative;
            padding: 44px;
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
            overflow: hidden;
        }

        .slide-art {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 1;
        }

        .slide-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(to top, rgba(8,8,12,0.96) 15%, rgba(8,8,12,0.45) 60%, transparent);
            z-index: 2;
        }

        .slide-content {
            position: relative;
            z-index: 3;
            max-width: 800px;
        }

        .slide-badge {
            display: inline-block;
            background: var(--accent-red);
            color: #fff;
            font-size: 0.72rem;
            font-weight: 900;
            padding: 5px 12px;
            border-radius: 6px;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 12px;
        }

        .slide h2 {
            font-size: 2.5rem;
            font-weight: 900;
            line-height: 1.1;
            margin-bottom: 12px;
            text-transform: uppercase;
            text-shadow: 0 4px 14px rgba(0,0,0,0.9);
        }

        .slide p {
            font-size: 1.05rem;
            color: #cbd5e1;
            text-shadow: 0 2px 8px rgba(0,0,0,0.9);
        }

        .carousel-arrow {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 48px;
            height: 48px;
            background: rgba(10, 10, 12, 0.8);
            border: 1px solid rgba(255, 255, 255, 0.2);
            color: #fff;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 1.3rem;
            transition: all 0.2s ease;
            z-index: 10;
        }

        .carousel-arrow:hover {
            background: var(--accent-red);
            border-color: var(--accent-red);
            box-shadow: 0 0 14px var(--accent-glow);
        }

        .arrow-prev { left: 20px; }
        .arrow-next { right: 20px; }

        .carousel-dots {
            position: absolute;
            bottom: 20px;
            right: 28px;
            display: flex;
            gap: 10px;
            z-index: 10;
        }

        .dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.3);
            cursor: pointer;
            transition: all 0.25s ease;
        }

        .dot.active {
            background: var(--accent-red);
            transform: scale(1.3);
        }

        .controls-bar {
            display: flex;
            gap: 14px;
            flex-wrap: wrap;
            align-items: center;
            width: 100%;
            margin-bottom: 28px;
            background: var(--bg-card);
            padding: 14px 18px;
            border-radius: 14px;
            border: 1px solid var(--border-color);
        }

        .search-box {
            flex-grow: 1;
            min-width: 260px;
            position: relative;
        }

        .search-input {
            width: 100%;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            padding: 10px 16px 10px 40px;
            color: #fff;
            font-size: 0.9rem;
            outline: none;
            transition: border-color 0.2s;
        }

        .search-input:focus {
            border-color: var(--accent-red);
        }

        .search-icon {
            position: absolute;
            left: 14px;
            top: 50%;
            transform: translateY(-50%);
            fill: var(--text-muted);
            width: 16px;
            height: 16px;
        }

        .filter-buttons {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
        }

        .filter-btn {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid var(--border-color);
            color: var(--text-muted);
            padding: 8px 14px;
            border-radius: 8px;
            font-size: 0.8rem;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.2s;
        }

        .filter-btn:hover {
            color: #fff;
            background: rgba(255, 255, 255, 0.1);
        }

        .filter-btn.active {
            background: var(--accent-red);
            color: #fff;
            border-color: var(--accent-red);
        }

        .section-header-flex {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 16px;
            margin-bottom: 20px;
        }

        .section-title {
            font-size: 1.5rem;
            font-weight: 800;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .section-title::before {
            content: '';
            display: block;
            width: 5px;
            height: 24px;
            background: var(--accent-red);
            border-radius: 3px;
        }

        .news-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
            gap: 24px;
        }

        .news-card {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 16px;
            overflow: hidden;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
            display: flex;
            flex-direction: column;
            position: relative;
        }

        .news-card:hover {
            background: var(--bg-card-hover);
            transform: translateY(-6px);
            border-color: rgba(255, 255, 255, 0.25);
            box-shadow: 0 16px 32px rgba(0,0,0,0.6), 0 0 18px rgba(255, 70, 85, 0.18);
        }

        .card-thumb {
            height: 180px;
            position: relative;
            overflow: hidden;
            background: #0d0d14;
        }

        .card-thumb svg {
            width: 100%;
            height: 100%;
            transition: transform 0.4s ease;
        }

        .news-card:hover .card-thumb svg {
            transform: scale(1.06);
        }

        .card-body {
            padding: 20px;
            display: flex;
            flex-direction: column;
            flex-grow: 1;
        }

        .card-meta {
            display: flex;
            justify-content: space-between;
            font-size: 0.78rem;
            color: var(--text-muted);
            margin-bottom: 10px;
            font-weight: 700;
        }

        .card-cat {
            color: var(--accent-red);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .card-title {
            font-size: 1.15rem;
            font-weight: 800;
            line-height: 1.35;
            margin-bottom: 10px;
            color: var(--text-main);
        }

        .card-desc {
            font-size: 0.88rem;
            color: var(--text-muted);
            line-height: 1.5;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.88);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease;
            padding: 20px;
        }

        .modal-overlay.active {
            opacity: 1;
            pointer-events: auto;
        }

        .modal-box {
            background: var(--bg-modal);
            border: 1px solid var(--border-color);
            border-radius: 20px;
            max-width: 900px;
            width: 100%;
            max-height: 90vh;
            display: flex;
            flex-direction: column;
            position: relative;
            box-shadow: 0 25px 60px rgba(0,0,0,0.9), 0 0 20px rgba(255, 70, 85, 0.2);
            overflow: hidden;
            animation: modalPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

        @keyframes modalPop {
            from { transform: scale(0.92); opacity: 0; }
            to { transform: scale(1); opacity: 1; }
        }

        .modal-header-bar {
            padding: 20px 28px;
            border-bottom: 1px solid var(--border-color);
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: rgba(255, 255, 255, 0.02);
        }

        .modal-cat-tag {
            background: var(--accent-red);
            color: #fff;
            font-size: 0.72rem;
            font-weight: 900;
            padding: 4px 12px;
            border-radius: 4px;
            text-transform: uppercase;
        }

        .modal-close {
            background: rgba(255, 255, 255, 0.1);
            border: none;
            color: #fff;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 1.1rem;
            font-weight: bold;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
        }

        .modal-close:hover {
            background: var(--accent-red);
            transform: rotate(90deg);
        }

        .modal-body-scroll {
            padding: 32px;
            overflow-y: auto;
            color: #d1d5db;
            font-size: 1rem;
            line-height: 1.7;
        }

        .article-content h3 {
            color: #ffffff;
            font-size: 1.35rem;
            font-weight: 800;
            margin: 26px 0 12px;
            border-left: 4px solid var(--accent-red);
            padding-left: 12px;
        }

        .article-content p {
            margin-bottom: 14px;
        }

        .article-content ul, .article-content ol {
            margin: 12px 0 16px 24px;
        }

        .article-content li {
            margin-bottom: 6px;
        }

        .callout-box {
            background: rgba(255, 70, 85, 0.08);
            border: 1px solid rgba(255, 70, 85, 0.28);
            border-radius: 12px;
            padding: 16px 20px;
            margin: 20px 0;
            color: #f1f5f9;
        }

        .tech-table {
            width: 100%;
            border-collapse: collapse;
            margin: 20px 0;
            font-size: 0.9rem;
            background: rgba(0,0,0,0.3);
            border-radius: 10px;
            overflow: hidden;
            border: 1px solid var(--border-color);
        }

        .tech-table th, .tech-table td {
            padding: 12px 16px;
            text-align: left;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        }

        .tech-table th {
            background: rgba(255, 255, 255, 0.06);
            color: #fff;
            font-weight: 800;
        }

        .tech-table tr:hover {
            background: rgba(255, 255, 255, 0.03);
        }

        .chart-container {
            background: #0a0a10;
            border: 1px solid var(--border-color);
            border-radius: 14px;
            padding: 20px;
            margin: 24px 0;
        }

        .chart-title {
            font-size: 1rem;
            font-weight: 800;
            color: #fff;
            margin-bottom: 16px;
            text-align: center;
        }

        footer {
            border-top: 1px solid var(--border-color);
            padding: 28px 20px;
            text-align: center;
            color: var(--text-muted);
            font-size: 0.85rem;
            background: rgba(8, 8, 12, 0.8);
        }

        @media (max-width: 768px) {
            .header-container { flex-direction: column; gap: 14px; }
            .carousel { height: 360px; }
            .slide h2 { font-size: 1.8rem; }
            .modal-body-scroll { padding: 20px; }
        }