/* ==================== 1. FONTS & ROOT VARIABLES ==================== */
/* (Fonts omitted for brevity, keep your existing font-face rules here) */

:root {
    --color-cyan: #00ffff;
    --color-purple: #d580ff;
    --color-green: #39ff14;
    --color-red: #ff4d4d;
    --color-yellow: #f1c40f;
    --color-gray: #888888;
    --bg-dark: #0a0a0a;
    --bg-card: #161616;
    --transition: all 0.3s ease;
    --container-width: min(1200px, 95vw);
}

/* ==================== 2. GLOBAL RESET ==================== */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background-color: var(--bg-dark); background-image: linear-gradient(135deg, #111111 0%, #050505 100%); color: #e0e0e0; font-family: 'Roboto', sans-serif; line-height: 1.6; padding-top: 100px; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
h1, h2, h3, h4 { font-family: 'Montserrat', sans-serif; text-transform: uppercase; }

/* ==================== 3. NAVIGATION (UPDATED) ==================== */
.navbar-wrapper { width: 100%; position: fixed; top: 0; left: 0; z-index: 9999; background: rgba(10, 10, 10, 0.95); border-bottom: 1px solid rgba(0, 255, 255, 0.2); backdrop-filter: blur(15px); height: 75px; }
.navbar { max-width: 1200px; margin: 0 auto; height: 100%; display: flex; justify-content: space-between; align-items: center; padding: 0 20px; position: relative; }
.navbar-left { display: flex; align-items: center; gap: 20px; }
.nav-links { display: flex; align-items: center; gap: 25px; }
.navbar-left-item, .nav-item { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 13px; color: #bbb; text-transform: uppercase; cursor: pointer; position: relative; } /* Added relative positioning for dropdown parent */
.navbar-left-item:hover, .nav-item:hover { color: var(--color-cyan); text-shadow: 0 0 8px rgba(0, 255, 255, 0.5); }

/* --- DROPDOWN STYLES (NEW) --- */
.nav-dropdown {
    position: relative; /* Anchor for the absolute content */
    padding: 27px 0;    /* Extends the hover area to bridge the gap to the menu */
}

.dropdown-content {
    position: absolute;
    top: 100%;          /* Align to bottom of nav item */
    left: 50%;          /* Center align logic */
    transform: translateX(-50%);
    min-width: 200px;
    background: #111;
    border: 1px solid #333;
    border-top: 2px solid var(--color-cyan);
    display: none;      /* Hidden by default */
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.9);
    z-index: 100;
    border-radius: 0 0 4px 4px;
}

/* Show on Hover */
.nav-dropdown:hover .dropdown-content {
    display: flex;
}

/* Dropdown Links */
.dropdown-content a {
    padding: 12px 20px;
    font-size: 12px;
    color: #bbb;
    border-bottom: 1px solid #222;
    text-transform: none; /* Keep natural case for market names */
    font-weight: 500;
    white-space: nowrap;
    transition: 0.2s;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background: rgba(0, 255, 255, 0.05); /* Slight tint */
    color: var(--color-cyan);
    padding-left: 25px; /* Slide effect */
}

/* Nav Search */
.nav-search { display: flex; background: #000; border: 1px solid #333; border-radius: 20px; padding: 2px 12px; margin-left: 15px; }
.nav-search input { background: transparent; border: none; color: #fff; padding: 5px; width: 130px; font-size: 12px; outline: none; }
.nav-search button { background: transparent; border: none; cursor: pointer; color: var(--color-cyan); }

/* Mobile Toggle - JS FREE */
.nav-toggle { display: none; }
.nav-toggle-label { display: none; cursor: pointer; padding: 10px; }
.nav-toggle-label span, .nav-toggle-label span::before, .nav-toggle-label span::after { display: block; background: var(--color-cyan); height: 2px; width: 25px; position: relative; transition: 0.3s; }
.nav-toggle-label span::before { content: ''; position: absolute; top: -8px; width: 25px; height: 2px; background: var(--color-cyan); }
.nav-toggle-label span::after { content: ''; position: absolute; top: 8px; width: 25px; height: 2px; background: var(--color-cyan); }

#navbar-right-news { background: var(--color-cyan); color: #000; padding: 7px 15px; border-radius: 4px; font-weight: bold; font-size: 11px; letter-spacing: 0.5px; } /* Refined Size */

/* ==================== 4. GENERAL LAYOUT & TABLES ==================== */
.item { width: var(--container-width); margin: 20px auto; }
.container { background: var(--bg-card); border: 1px solid #222; border-radius: 8px; padding: 25px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.bar { width: var(--container-width); height: 60px; margin: 30px auto; background: #111; border-left: 4px solid var(--color-cyan); display: flex; align-items: center; padding-left: 25px; }

.table-4 { width: 100%; border-collapse: separate; border-spacing: 0; background: #121212; border-radius: 8px; overflow: hidden; border: 1px solid #222; }
.table-4 th { background: rgba(255,255,255,0.02); padding: 15px; color: var(--color-cyan); font-size: 12px; text-align: left; border-bottom: 1px solid #222; }
.table-4 td { padding: 15px; border-bottom: 1px solid #1a1a1a; font-size: 14px; vertical-align: middle; }
.table-4 tr:hover td { background: rgba(0, 255, 255, 0.02); }

.td-container { display: flex !important; align-items: center !important; gap: 15px; text-align: left; }
.td-container img { border-radius: 4px; border: 1px solid #333; flex-shrink: 0; object-fit: cover; }

/* ==================== 5. VIEW.PHP HEADER & STATUS ==================== */
.banner-wrapper { width: 100%; height: 180px; overflow: hidden; border-radius: 8px; border: 1px solid #222; background: #000; display: flex; justify-content: center; align-items: center; }
.service-banner { width: 100%; height: 100%; object-fit: contain; }

.header-flex { display: flex; gap: 30px; align-items: center; background: rgba(22, 22, 22, 0.95) !important; position: relative; z-index: 10; margin-top: -15px; }
.main-service-logo { width: 110px; height: 110px; border-radius: 8px; border: 2px solid var(--color-cyan); }

/* ONLINE / RATING BOXES */
.status-strip { margin-top: 15px; display: flex; gap: 15px; align-items: center; }
.status-indicator.online { color: var(--color-green); font-weight: bold; border: 1px solid var(--color-green); padding: 3px 12px; border-radius: 4px; font-size: 12px; letter-spacing: 1px; }
.rating-box { background: rgba(0, 255, 255, 0.1); color: var(--color-cyan); border: 1px solid rgba(0, 255, 255, 0.3); padding: 3px 12px; border-radius: 4px; font-size: 12px; font-weight: bold; }

/* ==================== 6. MIRRORS & SIDEBAR ==================== */
.mirror-list-v2 { background: #111; border: 1px solid #222; border-radius: 8px; }
.mirror-row { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid #222; }
.mirror-row:last-child { border-bottom: none; }
.mirror-row code { color: var(--color-green); font-family: monospace; font-size: 14px; background: rgba(0,0,0,0.3); padding: 4px 8px; border-radius: 4px; }

.mirror { display: inline-flex; padding: 7px 18px; background: #333; color: #fff; font-size: 12px; font-weight: bold; border-radius: 3px; cursor: pointer; transition: 0.2s; }
.mirror:hover { background: var(--color-cyan); color: #000; box-shadow: 0 0 10px var(--color-cyan); }
.mirror-bw { background: transparent; border: 1px solid #444; color: #888; }

.grid-main { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; margin-top: 40px; }
.section-h2 { color: var(--color-cyan); border-bottom: 1px solid #333; padding-bottom: 10px; margin-bottom: 20px; font-size: 24px; }

.stat-line { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 12px; border-bottom: 1px solid #222; padding-bottom: 8px; }
.pgp-code { background: #000 !important; padding: 20px; color: var(--color-green); font-family: monospace; font-size: 11px; border-radius: 5px; border: 1px solid #222; overflow-x: auto; white-space: pre-wrap; word-break: break-all; line-height: 1.2; }

/* ==================== 7. REVIEWS & COMMENTS ==================== */
.review-item { border-left: 3px solid var(--color-cyan); padding: 20px; background: rgba(255,255,255,0.02); margin-bottom: 20px; border-radius: 0 8px 8px 0; }
.review-item b { color: var(--color-cyan); font-size: 15px; }
.review-item p { margin-top: 10px; color: #ccc; font-size: 14px; }

.btn-showAll { display: flex; width: fit-content; margin: 20px auto; padding: 12px 35px; border: 2px solid var(--color-cyan); color: var(--color-cyan); border-radius: 50px; font-weight: bold; text-transform: uppercase; background: transparent; cursor: pointer; }
.btn-showAll:hover { background: var(--color-cyan); color: #000; box-shadow: 0 0 15px var(--color-cyan); }

/* ==================== 8. FORM ELEMENTS ==================== */
input, select, textarea { width: 100%; padding: 12px; background: #0a0a0a; border: 1px solid #333; color: #fff; border-radius: 4px; font-family: inherit; font-size: 14px; margin-bottom: 5px; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--color-cyan); box-shadow: 0 0 5px rgba(0, 255, 255, 0.2); }

/* ==================== 9. CUSTOM ALERT ==================== */
.custom-alert { width: var(--container-width); margin: 20px auto; padding: 15px 25px; background: rgba(0, 255, 255, 0.05); border: 1px solid rgba(0, 255, 255, 0.2); border-left: 5px solid var(--color-cyan); border-radius: 8px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5); }
.alert-content { display: flex; align-items: center; gap: 12px; }
.alert-badge { background: var(--color-red); color: #fff; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: bold; text-transform: uppercase; }
.alert-btn { padding: 6px 16px; background: transparent; border: 1px solid var(--color-red); color: var(--color-red); border-radius: 4px; font-size: 12px; font-weight: bold; text-transform: uppercase; transition: 0.3s; }
.alert-btn:hover { background: var(--color-red); color: #fff; box-shadow: 0 0 10px rgba(255, 0, 0, 0.4); }

/* ==================== 10. RESPONSIVE ==================== */
@media screen and (max-width: 900px) {
    .nav-toggle-label { display: block; order: 2; }
    .nav-links { position: absolute; top: 75px; left: 0; width: 100%; background: #0f0f0f; display: none; flex-direction: column; padding: 30px; border-bottom: 2px solid var(--color-cyan); box-shadow: 0 20px 40px rgba(0,0,0,0.9); }
    .nav-toggle:checked ~ .nav-links { display: flex; }
    .nav-search { margin: 20px 0; width: 100%; }
    .nav-search input { width: 100%; }
    .grid-main { grid-template-columns: 1fr; }
    .header-flex { flex-direction: column; text-align: center; padding: 30px; }
}

@media screen and (max-width: 600px) {
    body { padding-top: 130px; }
    .navbar { flex-direction: row; flex-wrap: wrap; height: auto; padding: 15px; }
    .table-4 th:nth-child(n+3), .table-4 td:nth-child(n+3) { display: none; }
    .custom-alert { flex-direction: column; gap: 15px; text-align: center; }
    .mirror-row { flex-direction: column; gap: 15px; text-align: center; }
}

/* Utils */
.active-filter { background: var(--color-cyan) !important; color: #000 !important; border-color: var(--color-cyan) !important; }
.txt-cyan { color: var(--color-cyan); }
.txt-green { color: var(--color-green); }
.txt-yellow { color: var(--color-yellow); }
.txt-red { color: var(--color-red); }
.txt-gray { color: #666; }
.txt-white { color: #fff; }
.txt-center { text-align: center; }

/* ==================== 11. BLOG STYLES ==================== */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px; padding-bottom: 40px; }
.blog-card { background: var(--bg-card); border: 1px solid #222; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; transition: var(--transition); }
.blog-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6); border-color: rgba(0, 255, 255, 0.3); }
.blog-img-wrap { width: 100%; height: 200px; overflow: hidden; border-bottom: 1px solid #222; position: relative; }
.blog-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.blog-card:hover .blog-img-wrap img { transform: scale(1.05); }
.blog-info { padding: 25px; display: flex; flex-direction: column; flex-grow: 1; }
.blog-meta { font-size: 11px; color: var(--color-gray); text-transform: uppercase; letter-spacing: 1px; font-weight: 700; margin-bottom: 12px; }
.blog-h2 { font-size: 18px; line-height: 1.4; margin-bottom: 15px; text-transform: none; font-family: 'Montserrat', sans-serif; font-weight: 700; }
.blog-h2 a { color: #e0e0e0; }
.blog-h2 a:hover { color: var(--color-cyan); }
.blog-excerpt { font-size: 14px; color: #aaa; margin-bottom: 20px; line-height: 1.6; flex-grow: 1; }
.blog-link { display: inline-block; font-size: 12px; font-weight: bold; color: var(--color-cyan); text-transform: uppercase; letter-spacing: 0.5px; margin-top: auto; }
.blog-link:hover { text-shadow: 0 0 8px rgba(0, 255, 255, 0.4); text-decoration: underline; }
@media screen and (max-width: 600px) { .blog-grid { grid-template-columns: 1fr; } }

/* ==================== LOGO GLITCH ==================== */
/* (Kept your existing glitch styles) */
.logo-glitch { position: relative; display: inline-block; line-height: 0; margin-bottom: 15px; z-index: 1; }
.logo-glitch img { display: block; height: 80px; width: auto; }
.logo-glitch::before, .logo-glitch::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: url('/img/dc.webp'); background-size: 100% 100%; background-repeat: no-repeat; opacity: 0; pointer-events: none; }
.logo-glitch::before { z-index: -1; animation: glitch-anim-1 3s infinite linear alternate-reverse; }
.logo-glitch::after { z-index: -2; animation: glitch-anim-2 2.5s infinite linear alternate-reverse; }
@keyframes glitch-anim-1 { 0% { opacity: 0; clip-path: inset(50% 0 50% 0); transform: translate(0); } 5% { opacity: 0.8; clip-path: inset(10% 0 60% 0); transform: translate(-2px, 1px); filter: drop-shadow(-2px 0 cyan); } 10% { opacity: 0.8; clip-path: inset(80% 0 5% 0); transform: translate(2px, -1px); } 15% { opacity: 0; clip-path: inset(0 0 0 0); } 100% { opacity: 0; } }
@keyframes glitch-anim-2 { 0% { opacity: 0; clip-path: inset(50% 0 50% 0); transform: translate(0); } 25% { opacity: 0; } 30% { opacity: 0.8; clip-path: inset(0 0 80% 0); transform: translate(2px, 0); filter: drop-shadow(2px 0 red); } 35% { opacity: 0.8; clip-path: inset(60% 0 10% 0); transform: translate(-1px, 2px); } 40% { opacity: 0; } 100% { opacity: 0; } }