:root {
    --main: #FFFFFF;
    --secondBG: #0D111D;
    --footBG: #000C28;
    --bodyBG: #000E31;
    --link: #D4DB52;
    --border: #D4DB52;
    --btn: #D4DB52;
    --red: #df3f5c;
    --green: #2ac465;
    --orange: #4EB37E;
    --yellow: #ffc65a;
    --headBG: #131313;
    --card-border: #242424;
    --text-muted: #94a3b8;
    --shadow-glow: rgba(212, 219, 82, 0.4);
    --accent: #D4DB52; /* Alias for link */
    --grad-card: linear-gradient(90deg, #0e121f 0%, #05070a 100%);
}

/* =========================================
   1. RESET & BASE
   ========================================= */
* { box-sizing: border-box; margin: 0; padding: 0; }

body, html {
    background-color: var(--bodyBG);
    scroll-behavior: smooth;
    height: 100%;
}

body {
    font-family: monospace, system-ui, -apple-system, sans-serif;
    color: var(--main);
    line-height: 1.6;
    font-size: 14px;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--link);
}
a:hover { color: #fff; text-shadow: 0 0 5px var(--shadow-glow); }

b, strong { font-weight: 700; }
.cl { clear: both; }

/* =========================================
   2. LAYOUT & GRID
   ========================================= */
.wrap {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.box {
    background-color: var(--secondBG);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--card-border);
    margin-bottom: 25px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.box.full-width { grid-column: 1 / -1; }

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

[class^='col-'] {
    padding: 10px;
    flex: 0 0 100%;
    max-width: 100%;
}

@media (min-width: 768px) {
    .box { padding: 25px; }
    .col-60 { flex: 0 0 60%; max-width: 60%; }
    .col-40 { flex: 0 0 40%; max-width: 40%; }
    .col-50 { flex: 0 0 50%; max-width: 50%; }
    .col-80 { flex: 0 0 80%; max-width: 80%; }
    .col-20 { flex: 0 0 20%; max-width: 20%; }
}

/* =========================================
   3. SPA ARCHITECTURE
   ========================================= */
.router-radio { display: none; }
.spa-view { display: none; animation: fadeIn 0.3s ease; }

/* Fallback override applied by PHP router */
body .spa-view[style*="display:block"] { animation: fadeIn 0.3s ease; }
body .spa-view[style*="display: block"] { animation: fadeIn 0.3s ease; }

#route-dir:checked ~ #page #view-dir,
#route-news:checked ~ #page #view-news,
#route-shop:checked ~ #page #view-shop,
#route-lib:checked ~ #page #view-lib,
#route-rev:checked ~ #page #view-rev,
#route-contact:checked ~ #page #view-contact {
    display: block;
}

body:has(.link-detail-view) .menu,
body:has(.link-detail-view) .nav-toggle,
body:has(.link-detail-view) .nav-icon {
    display: none !important;
}

#route-dir:checked ~ #page .menu label[for="route-dir"],
#route-news:checked ~ #page .menu label[for="route-news"],
#route-shop:checked ~ #page .menu label[for="route-shop"],
#route-lib:checked ~ #page .menu label[for="route-lib"],
#route-rev:checked ~ #page .menu label[for="route-rev"],
#route-contact:checked ~ #page .menu label[for="route-contact"] {
    color: var(--link);
    background: rgba(255,255,255,0.05);
    border-bottom: 2px solid var(--link);
}

/* =========================================
   4. HEADER & NAVIGATION
   ========================================= */
#header {
    background-image: url("/img/banner.png");
    background-size: cover;
    background-position: center;
    min-height: 480px;
    display: flex;
    flex-direction: column;
    border-bottom: 2px solid var(--border);
    position: relative;
}

#header::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(0,14,49,0.3), var(--bodyBG));
    pointer-events: none;
}

#announce {
    background: rgba(0, 0, 0, 0.85);
    padding: 12px 0;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: relative;
    z-index: 5;
}
#announce h2 {
    color: #fff;
    font-size: 12px;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#head {
    background: rgba(13, 17, 29, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255,255,255,0.05);
    position: relative;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

#logo {
    width: 60px;
    height: 50px;
    background-image: url("/img/icon.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 15px;
    display: inline-block;
    vertical-align: middle;
}

.shopname {
    color: var(--link);
    font-weight: 800;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Mobile Nav Toggle */
.nav-toggle { display: none; }
.nav-icon { display: block; cursor: pointer; padding: 10px; }
.nav-icon span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--link);
    margin: 5px 0;
    transition: 0.3s;
}

.menu {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--secondBG);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 10px 0;
    z-index: 99;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.nav-link {
    display: block;
    padding: 15px 30px;
    border-bottom: 1px solid #242424;
    color: #cbd5e1;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    cursor: pointer;
}
.nav-link:hover { color: var(--link); }
.nav-link.active { color: #fff; }
.nav-link.active span { background-color: var(--link); }

.icn span {
    display: inline-block;
    background-image: url("/img/css_sprite.png");
    width: 22px;
    height: 22px;
    margin-right: 8px;
    vertical-align: middle;
    filter: grayscale(100%);
    transition: 0.3s;
}
.nav-link:hover span, .nav-link.active span { filter: none; }
.icn.cart span { background-position: top -188px left -185px; }
.icn.about span { background-image: url("/img/about.png") !important; background-size: contain; }
.icn.category span { background-position: top -188px left -100px; }
.icn.order span { background-position: top -187px left -11px; }
.icn.support span { background-position: top -100px left -231px; }
.icn.feedback span { background-position: top -12px left -231px; }

#nav-toggle:checked ~ .menu { display: flex; animation: slideDown 0.3s ease; }

@media (min-width: 900px) {
    .nav-icon { display: none; }
    .menu {
        display: flex;
        position: static;
        flex-direction: row;
        background: transparent;
        border: none;
        padding: 0;
        box-shadow: none;
        height: 70px;
    }
    .nav-link {
        display: flex;
        align-items: center;
        border: none;
        padding: 0 15px;
        margin-left: 10px;
        height: 100%;
        border-bottom: 2px solid transparent;
    }
}

/* =========================================
   5. MARKET PROFILES
   ========================================= */
.market-profiles-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mp-card {
    display: flex;
    flex-direction: column;
    background: var(--grad-card);
    border: 1px solid #334155;
    border-radius: 6px;
    padding: 20px;
    transition: 0.3s ease;
    min-height: 90px;
}

@media (min-width: 768px) {
    .mp-card {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.mp-card:hover {
    border-color: var(--link);
    background: rgba(21, 27, 46, 0.9);
    box-shadow: 0 0 15px rgba(212, 219, 82, 0.1);
}

.mp-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.mp-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #222;
    object-fit: contain;
}

.mp-info h3 {
    margin: 0;
    font-size: 16px;
    color: #fff;
    text-transform: uppercase;
    font-weight: 800;
    line-height: 1.2;
}

.mp-user {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 2px;
}
.mp-user b { color: var(--link); }

.mp-mid {
    padding: 15px 0;
    display: flex;
    justify-content: center;
}
@media (min-width: 768px) {
    .mp-mid { padding: 0 30px; }
}

.mp-crypto-list {
    display: flex;
    gap: 10px;
    background: rgba(0,0,0,0.3);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid #222;
}

.crypto-ico {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.5));
}

.mp-right { text-align: right; }

/* =========================================
   6. DIRECTORY LIST
   ========================================= */
.directory-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 30px;
    isolation: isolate;
}

.dir-row {
    padding: 0;
    overflow: visible;
    transition: all 0.2s ease;
    border: 1px solid #334155;
    border-radius: 0;
    background: var(--grad-card);
    min-height: 80px;
    display: flex;
    flex-direction: column;
    margin-top: -1px;
    position: relative;
    z-index: 1;
}

.dir-row:first-child {
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    margin-top: 0;
}
.dir-row:last-child {
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
}

.dir-row:hover {
    z-index: 10;
    border-color: #64748b;
    background: rgba(21, 27, 46, 1);
}

.dir-row[open] {
    z-index: 20;
    border-color: var(--link);
    background: rgba(13, 17, 29, 0.95);
    box-shadow: 0 0 0 1px var(--link), 0 0 15px rgba(212, 219, 82, 0.1);
}

.dir-summary {
    display: flex;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    list-style: none;
    gap: 12px;
}
.dir-summary::-webkit-details-marker { display: none; }

.dir-branding {
    display: flex;
    align-items: center;
    flex-grow: 1;
}

.dir-logo {
    width: 48px; height: 48px;
    border-radius: 50%;
    margin-right: 15px;
    background: #000;
    border: 2px solid #222;
    object-fit: contain;
    padding: 2px;
}

.dir-text h3 {
    margin: 0;
    font-size: 16px;
    color: #fff;
    text-transform: uppercase;
    font-weight: 800;
}

.dir-desc {
    font-size: 12px;
    color: #94a3b8;
    display: block;
    margin-top: 2px;
}

.dir-toggle-icon {
    font-size: 24px;
    font-weight: bold;
    color: var(--link);
    padding-left: 15px;
}

.dir-links {
    padding: 15px 20px;
    background: rgba(0,0,0,0.3);
    border-top: 1px solid #334155;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.link-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #0D111D;
    padding: 12px 15px;
    border-radius: 4px;
    border: 1px solid #333;
    transition: 0.2s;
}

.link-row.rotated {
    border-color: var(--yellow);
    background: rgba(255, 198, 90, 0.05);
}

.badge-col {
    flex: 0 0 28px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.url-col {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    background: #020204;
    border: 1px solid #333;
    border-radius: 4px;
    padding-right: 8px;
}

.url-col input {
    flex: 1;
    background: transparent;
    border: none;
    color: #aaa;
    padding: 8px 10px;
    font-family: monospace;
    font-size: 12px;
    min-width: 0;
}

.url-col input:focus { outline: none; }

.url-extras {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.status-pill {
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 3px;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.status-pill.online {
    color: #000;
    background: var(--green);
    box-shadow: 0 0 8px rgba(42, 196, 101, 0.4);
}
.status-pill.offline {
    color: #fff;
    background: var(--red);
}
.status-pill.unk {
    color: #000;
    background: #555;
}

.btn-col {
    flex: 0 0 auto;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

.type-icon-lg {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

/* FIXED TOR ICON: Forces Green, removes Red */
.type-icon-green {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: sepia(1) saturate(5) hue-rotate(90deg) brightness(1.2) drop-shadow(0 0 4px #2ac465) !important;
    animation: pulseGreen 3s infinite;
}

@keyframes pulseGreen {
    0%, 100% { filter: sepia(1) saturate(5) hue-rotate(90deg) brightness(1.2) drop-shadow(0 0 4px rgba(42, 196, 101, 0.6)) !important; }
    50% { filter: sepia(1) saturate(5) hue-rotate(90deg) brightness(1.4) drop-shadow(0 0 8px #2ac465) !important; }
}

.stats-btn-new {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    background: rgba(212, 219, 82, 0.1);
    border: 1px solid var(--link);
    color: var(--link);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    transition: 0.2s;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
}
.stats-btn-new:hover {
    background: var(--link);
    color: #000;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(212, 219, 82, 0.3);
}

.view-more-btn {
    margin-top: 10px;
    display: inline-block;
    padding: 8px 16px;
    background: rgba(78, 179, 126, 0.1);
    border: 1px solid #4EB37E;
    color: #4EB37E;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    transition: 0.2s;
    text-decoration: none;
}
.view-more-btn:hover { background: #4EB37E; color: #000; }

.link-detail-view { animation: fadeIn 0.3s ease; }

/* =========================================
   7. NEWS SECTION
   ========================================= */
.news-container { display: flex; flex-direction: column; gap: 20px; }
.news-card { background: var(--secondBG); border: 1px solid var(--card-border); border-left: 4px solid var(--link); padding: 25px; border-radius: 6px; }
.news-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; border-bottom: 1px solid #222; padding-bottom: 10px; }
.news-title { font-size: 18px; color: #fff; margin: 0; font-weight: 800; }
.news-date { font-family: monospace; color: var(--link); font-size: 12px; }
.news-content { font-size: 14px; color: #ccc; line-height: 1.6; }

/* =========================================
   8. SHOP INVENTORY (LIST VIEW)
   ========================================= */
.dir-tabs { display: flex; gap: 10px; margin-bottom: 20px; overflow-x: auto; padding-bottom: 10px; border-bottom: 1px solid #333; }
.dir-tab-link {
    padding: 8px 16px; background: #020204; border: 1px solid #334155; color: #94a3b8;
    font-size: 12px; font-weight: 700; text-transform: uppercase; border-radius: 4px;
    white-space: nowrap; transition: 0.2s; text-decoration: none;
}
.dir-tab-link:hover, .dir-tab-link.active { border-color: var(--link); color: #fff; background: rgba(212, 219, 82, 0.1); }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 25px; margin-bottom: 50px; }

.product-card {
    background: var(--secondBG); border: 1px solid var(--card-border); border-radius: 8px;
    overflow: hidden; display: flex; flex-direction: column; height: 100%; position: relative; transition: 0.3s;
}
.product-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.3); border-color: var(--link); }

.product-image-box {
    display: block; width: 100%; aspect-ratio: 1 / 1; background: #000;
    position: relative; overflow: hidden; border-bottom: 1px solid #242424;
}
.product-image-box img { width: 100%; height: 100%; object-fit: cover; z-index: 1; transition: 0.3s ease; }
.product-image-box:hover img { transform: scale(1.05); }

.product-border {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background-image: url("/img/border.png"); background-size: 100% 100%; z-index: 10; pointer-events: none;
}

.product-info { padding: 20px; display: flex; flex-direction: column; flex-grow: 1; }
.product-info h3 { font-size: 15px; margin: 0 0 10px 0; color: #fff; line-height: 1.4; }
.product-price { font-size: 18px; color: var(--yellow); font-weight: 700; margin-bottom: 10px; }
.shipping-info { margin-bottom: 10px; display: flex; flex-wrap: wrap; gap: 5px; }

/* =========================================
   9. BADGES & BUTTONS
   ========================================= */
.badge {
    display: inline-block; padding: 4px 8px; font-size: 10px; font-weight: 800;
    text-transform: uppercase; border-radius: 4px; color: #fff; text-align: center;
    line-height: 1; letter-spacing: 0.5px;
}
.badge.yellow { background: var(--yellow); color: #000; }
.badge.purple { background: #7D4CDB; color: #fff; }
.badge.blue { background: #3B82F6; color: #fff; }
.badge.orange { background: #e67e22; color: #fff; }
.badge.green { background: var(--green); color: #000; }
.badge.red { background: var(--red); color: #fff; }
.badge.white { background: #cbd5e1; color: #000; }

.badge-container { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 15px; margin-top: auto; }
.badge-container .badge { font-size: 9px; background: #2E3856; border: 1px solid #4a5568; color: #e2e8f0; }

.btn {
    display: inline-block; padding: 10px 15px; border-radius: 4px; font-weight: 700;
    text-transform: uppercase; font-size: 11px; text-align: center; border: 1px solid transparent;
    cursor: pointer; transition: 0.2s; color: #fff; text-decoration: none; white-space: nowrap;
}
.btn.block { display: block; width: 100%; }
.btn.small { padding: 6px 10px; font-size: 10px; }

.btn.green { background: rgba(42, 196, 101, 0.15); color: #3cc470 !important; border: 1px solid #3cc470; }
.btn.green:hover { background: #3cc470; color: #000 !important; }

.btn.white { background: transparent; color: #fff !important; border-color: #fff; }
.btn.white:hover { background: #fff; color: #000 !important; }

.btn.red { background: transparent; color: var(--red) !important; border-color: var(--red); }
.btn.red:hover { background: var(--red); color: #fff !important; }

.btn.outline {
    background: #020204; color: #94a3b8 !important; border: 1px solid #334155; transition: 0.2s;
}
.btn.outline:hover { color: #fff !important; border-color: var(--link); background: rgba(212, 219, 82, 0.05); }

/* Download Button specific to Media & Modals */
.btn.download {
    background: rgba(212, 219, 82, 0.1);
    color: var(--link) !important;
    border: 1px solid var(--link);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.5px;
}
.btn.download:hover {
    background: var(--link);
    color: #000 !important;
    box-shadow: 0 4px 15px rgba(212, 219, 82, 0.3);
    transform: translateY(-2px);
}

.btn.dir-go-yellow { background: var(--yellow); color: #000 !important; border: 1px solid var(--yellow); }
.btn.dir-go-yellow:hover { background: #ffe08a; }

.btn.dir-go-purple { background: #7D4CDB; color: #fff !important; border: 1px solid #7D4CDB; }
.btn.dir-go-purple:hover { background: #956ce4; }

.btn.dir-go-blue { background: #3B82F6; color: #fff !important; border: 1px solid #3B82F6; }
.btn.dir-go-blue:hover { background: #60a5fa; }

/* =========================================
   10. REVIEWS
   ========================================= */
.trust-dashboard {
    border-left: 4px solid var(--link); display: flex; flex-wrap: wrap; align-items: center;
    margin-bottom: 30px; background: rgba(255,255,255,0.02); padding: 20px; border-radius: 0 4px 4px 0;
}
.trust-col { padding: 0 20px; }
.trust-score {
    flex: 0 0 150px; display: flex; flex-direction: column; align-items: center;
    border-right: 1px solid rgba(255,255,255,0.05);
}
.score-big { font-size: 36px; font-weight: 800; color: #fff; line-height: 1; }
.score-big span { font-size: 16px; color: #666; }
.score-sub { font-size: 11px; color: #888; text-transform: uppercase; margin-top: 5px; }

.trust-bars { flex: 1; min-width: 250px; }
.bar-row { display: flex; align-items: center; margin-bottom: 8px; font-size: 12px; }
.bar-label { width: 60px; font-weight: 700; color: #94a3b8; }
.bar-track { flex-grow: 1; height: 8px; background: #000; border-radius: 4px; margin: 0 15px; }
.bar-fill { height: 100%; border-radius: 4px; }
.bar-count { width: 30px; text-align: right; color: #fff; font-family: monospace; }

.testimonial { display: flex; padding: 25px 0; border-bottom: 1px solid #222; align-items: flex-start; }
.testimonial:last-child { border-bottom: none; }

.t-left { margin-right: 20px; flex: 0 0 50px; }
.t-name {
    width: 50px; height: 50px; border-radius: 8px; background: #000; border: 2px solid #333;
    display: flex; align-items: center; justify-content: center; font-size: 20px;
    font-weight: 700; color: #fff; text-transform: uppercase;
}
.t-name.p { border-color: var(--green); color: var(--green); }
.t-name.n { border-color: var(--red); color: var(--red); }
.t-name.o { border-color: var(--yellow); color: var(--yellow); }

.t-right { flex: 1; }
.t-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.t-meta b { font-size: 15px; color: #fff; margin-right: 10px; }
.t-meta .date { font-size: 11px; color: #666; }
.t-body { font-size: 14px; color: #ccc; line-height: 1.6; }

.hidden { display: none; }
.trans-toggle:not(:checked) ~ .t-right .text-content.original { display: block; }
.trans-toggle:not(:checked) ~ .t-right .text-content.translated { display: none; }
.trans-toggle:not(:checked) ~ .t-right .state-trans { display: none; }
.trans-toggle:checked ~ .t-right .text-content.original { display: none; }
.trans-toggle:checked ~ .t-right .text-content.translated { display: block; }
.trans-toggle:checked ~ .t-right .state-orig { display: none; }

.text-content.translated {
    color: #f1f5f9; font-style: italic; background: rgba(255,255,255,0.03);
    padding: 10px; border-radius: 4px; border-left: 3px solid var(--link); margin-bottom: 10px;
}

.t-actions { display: flex; justify-content: flex-end; margin-top: 10px; border-top: 1px dashed #333; padding-top: 10px; }
.modern-trans-btn {
    cursor: pointer; background: #020204; border: 1px solid #334155; padding: 6px 12px;
    border-radius: 4px; font-size: 10px; font-weight: 700; text-transform: uppercase;
    color: #94a3b8; transition: 0.2s; display: inline-block;
}
.modern-trans-btn:hover { border-color: var(--link); color: var(--link); }

/* =========================================
   11. CONTACT & COMMUNITY
   ========================================= */
.contact-terminal { background: #000; border: 1px solid #334155; border-radius: 6px; padding: 20px; margin-bottom: 20px; font-family: 'Courier New', monospace; }
.contact-row { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px dashed #333; padding: 15px 0; gap: 15px; }
.contact-row:last-child { border-bottom: none; }
.c-label { color: #64748b; font-size: 11px; font-weight: 700; width: 120px; display: flex; align-items: center; gap: 8px; }
.c-val { color: var(--link); font-size: 14px; font-weight: 700; flex-grow: 1; letter-spacing: 1px; text-align: right; }

.platform-group { margin-bottom: 25px; border-bottom: 1px solid #333; padding-bottom: 20px; }
.platform-group:last-child { margin-bottom: 0; border-bottom: none; padding-bottom: 0; }
.plat-label { display: block; font-size: 12px; font-weight: 700; color: #94a3b8; text-transform: uppercase; margin-bottom: 10px; }

.forum-card {
    display: flex; align-items: center; background: rgba(255,255,255,0.03);
    border: 1px solid #333; padding: 15px; border-radius: 8px; transition: 0.2s; text-decoration: none;
}
.forum-card:hover { border-color: var(--yellow); background: rgba(255,255,255,0.05); }
.forum-info span { color: #fff; font-weight: 700; font-size: 14px; }

.captcha-row { display: flex; gap: 10px; align-items: center; margin-bottom: 15px; }
.captcha-img { border: 1px solid #334155; border-radius: 4px; height: 40px; cursor: pointer; transition: 0.2s; }
.captcha-img:hover { border-color: var(--link); }
.captcha-input { background: #000; border: 1px solid #334155; color: #fff; padding: 8px 10px; font-family: monospace; flex: 1; text-transform: uppercase; font-size: 14px; border-radius: 4px; }
.captcha-input:focus { border-color: var(--link); outline: none; }

/* =========================================
   12. MODALS & LIGHTBOX (Pure CSS)
   ========================================= */
.lightbox-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 14, 49, 0.95); z-index: 9999;
    display: none; align-items: center; justify-content: center; backdrop-filter: blur(8px);
}
.lightbox-overlay:target { display: flex; animation: zoomIn 0.2s; }
.lightbox-content { 
    position: relative; max-width: 90%; max-height: 90%; 
    background: #000; border: 1px solid var(--border); padding: 5px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8); border-radius: 8px;
}
.lightbox-content img { max-width: 100%; max-height: 85vh; display: block; border-radius: 4px; }
.lightbox-close {
    position: fixed; top: 20px; right: 20px; width: 45px; height: 45px;
    background: rgba(0,0,0,0.8); border: 2px solid var(--red); color: var(--red);
    border-radius: 50%; font-size: 28px; font-weight: bold; display: flex; align-items: center; justify-content: center;
    cursor: pointer; text-decoration: none; transition: 0.3s; z-index: 10000; line-height: 0;
}
.lightbox-close:hover { background: var(--red); color: #fff; transform: rotate(90deg); }
.lightbox-bg-click { position: absolute; inset:0; cursor: pointer; z-index: -1; }

.modal-overlay {
    display: none; position: fixed; inset: 0; background: rgba(0, 14, 49, 0.95);
    z-index: 9999; justify-content: center; align-items: center; padding: 20px;
}
.modal-overlay:target { display: flex; animation: fadeIn 0.3s; }
.modal-box {
    background: var(--secondBG); border: 1px solid var(--border); border-radius: 12px;
    padding: 30px; width: 100%; max-width: 600px; max-height: 90vh; overflow-y: auto;
    position: relative; box-shadow: 0 50px 100px rgba(0,0,0,0.8);
}
.media-modal-box {
    max-width: 1200px; max-height: 95vh; display: flex; flex-direction: column;
}
.close-x {
    position: absolute; top: 15px; right: 15px; width: 32px; height: 32px; display: flex;
    align-items: center; justify-content: center; border: 2px solid var(--red); color: var(--red);
    background: transparent; border-radius: 50%; font-size: 16px; font-weight: 700;
    cursor: pointer; z-index: 1000; transition: 0.2s; line-height: 1; text-decoration: none;
}
.close-x:hover { background: var(--red); color: #fff; transform: rotate(90deg); }

/* =========================================
   13. LIBRARY & MEDIA
   ========================================= */
.lib-radio { display: none; }
.library-panel { display: flex; flex-direction: column; gap: 15px; }
.library-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.lib-tabs { display: flex; gap: 8px; flex-wrap: wrap; border-bottom: 1px solid #333; padding-bottom: 10px; margin: 0; }
.lib-tab {
    padding: 8px 16px; background: #020204; border: 1px solid #334155; border-radius: 4px;
    color: #94a3b8; font-size: 12px; font-weight: 700; text-transform: uppercase;
    cursor: pointer; transition: 0.2s; text-decoration: none; display: inline-block;
}
.lib-tab:hover { color: #fff; border-color: var(--link); background: rgba(212, 219, 82, 0.1); }
.lib-meta { display: flex; align-items: center; gap: 10px; }
.lib-count {
    padding: 6px 10px; background: #020204; border: 1px solid #334155; border-radius: 4px;
    color: #94a3b8; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
}

.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.media-item {
    aspect-ratio: 16 / 9; background: #000; border: 1px solid #333; border-radius: 6px;
    overflow: hidden; position: relative; transition: 0.3s ease; display: block;
}
.media-item:hover { border-color: var(--link); box-shadow: 0 0 15px rgba(212, 219, 82, 0.2); transform: translateY(-2px); }
.media-thumb { display: block; width: 100%; height: 100%; position: relative; text-decoration: none; }
.media-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; transition: 0.3s; }
.media-item:hover .media-thumb img { opacity: 1; }

.file-icon-box {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #1a1f2e 0%, #000 100%);
}
.file-icon-box .type-label {
    font-size: 24px; font-weight: 900; letter-spacing: 2px; font-family: monospace;
    padding: 10px 20px; border: 3px solid #333; border-radius: 8px; color: #555; transition: 0.3s;
}
.file-icon-box.pdf .type-label { color: var(--red); border-color: var(--red); background: rgba(223, 63, 92, 0.1); }
.file-icon-box.vid .type-label { color: var(--link); border-color: var(--link); background: rgba(212, 219, 82, 0.1); }
.media-item:hover .file-icon-box .type-label { transform: scale(1.1); box-shadow: 0 0 20px rgba(0,0,0,0.5); }

.media-overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, #000 10%, transparent 100%); padding: 40px 15px 15px;
    transform: translateY(100%); transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1); display: flex; flex-direction: column; gap: 5px;
}
.media-item:hover .media-overlay { transform: translateY(0); }
.mo-type {
    align-self: flex-start; font-size: 9px; font-weight: 800; color: #000;
    background: var(--link); padding: 2px 6px; border-radius: 2px; text-transform: uppercase;
}
.mo-title { color: #fff; font-size: 13px; font-weight: 700; line-height: 1.3; text-shadow: 0 2px 4px rgba(0,0,0,0.8); }

.media-display-area {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    overflow: hidden; background: #000; border-radius: 4px; min-height: 300px; padding: 15px;
}
.media-display-area img { max-width: 100%; max-height: 70vh; width: auto; height: auto; object-fit: contain; display: block; margin: 0 auto; }

/* Media Actions & PDF Fallback UI */
.media-actions {
    margin-top: 15px; flex-shrink: 0; display: flex; gap: 15px; justify-content: center;
    align-items: center; padding-top: 15px; border-top: 1px dashed #333; width: 100%;
}
.media-actions.no-border { border-top: none; padding-top: 0; margin-top: 0; }

.pdf-fallback-display {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    width: 100%; min-height: 400px; padding: 40px 20px; background: #020204;
    border: 1px dashed #334155; border-radius: 8px;
}
.pdf-fallback-display .fallback-icon { width: auto; height: auto; background: transparent; margin-bottom: 30px; }
.pdf-fallback-display .fallback-icon .type-label { font-size: 28px; padding: 15px 40px; }

.media-desc-enhanced {
    position: relative; margin-top: 20px; padding: 0;
    background: linear-gradient(135deg, rgba(13, 17, 29, 0.95) 0%, rgba(5, 7, 10, 0.8) 100%);
    border: 1px solid #1e293b; border-left: 4px solid var(--link); border-radius: 8px;
    overflow: hidden; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(212, 219, 82, 0.1);
}
.media-desc-enhanced::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--link) 30%, var(--link) 70%, transparent 100%); opacity: 0.4;
}
.desc-header {
    display: flex; align-items: center; gap: 10px; padding: 12px 20px;
    background: rgba(0, 0, 0, 0.4); border-bottom: 1px solid #1e293b;
}
.desc-icon { font-size: 16px; filter: drop-shadow(0 0 8px rgba(212, 219, 82, 0.5)); }
.desc-title { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; color: var(--link); }
.desc-content { padding: 20px; font-size: 14px; color: #cbd5e1; line-height: 1.7; }

/* Custom Video Player */
.nmt-video-container {
    position: relative; background: #000; border-radius: 8px; overflow: hidden;
    width: 100%; max-width: 100%; border: 1px solid #333;
}
.nmt-video { width: 100%; height: auto; max-height: 70vh; display: block; object-fit: contain; }
.nmt-video-controls {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 70%, transparent 100%);
    padding: 15px; display: flex; align-items: center; gap: 10px; opacity: 0; transition: opacity 0.3s;
}
.nmt-video-container:hover .nmt-video-controls { opacity: 1; }
.nmt-play-btn {
    width: 40px; height: 40px; background: var(--link); border: none; border-radius: 50%;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    color: #000; font-size: 16px; font-weight: 700; transition: 0.2s; flex-shrink: 0;
}
.nmt-play-btn:hover { transform: scale(1.1); background: #fff; }
.nmt-progress-bar { flex: 1; height: 6px; background: rgba(255,255,255,0.2); border-radius: 3px; cursor: pointer; position: relative; transition: height 0.2s; }
.nmt-progress-bar:hover { height: 8px; }
.nmt-progress-fill { height: 100%; background: var(--link); border-radius: 3px; width: 0%; transition: width 0.1s linear; box-shadow: 0 0 8px var(--link); }
.nmt-time { color: #fff; font-size: 11px; font-family: monospace; min-width: 90px; text-align: right; flex-shrink: 0; }
.nmt-vol-group { display: flex; align-items: center; gap: 8px; }
.nmt-vol-btn { background: none; border: none; color: var(--link); cursor: pointer; font-size: 18px; padding: 5px; transition: 0.2s; flex-shrink: 0; }
.nmt-vol-btn:hover { color: #fff; }
.nmt-vol-range { width: 90px; accent-color: var(--link); cursor: pointer; }

/* =========================================
   14. TECH HEADERS & FOOTER
   ========================================= */
.tech-header { border-bottom: 1px solid #242424; position: relative; padding-bottom: 10px; margin-bottom: 25px; }
.tech-header span {
    font-size: 20px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px;
    color: var(--link); background: var(--bodyBG); padding-right: 20px; z-index: 2; position: relative;
}
.box .tech-header span { background: var(--secondBG); }
.tech-header::after {
    content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px;
    background: repeating-linear-gradient(90deg, #242424, #242424 4px, transparent 4px, transparent 8px); z-index: 1;
}
#site-footer { background: var(--footBG); border-top: 2px solid var(--border); padding: 60px 0 30px; margin-top: 80px; color: #94a3b8; text-align: center; }

/* =========================================
   15. INVENTORY: PRODUCT DETAIL TABS & UI
   ========================================= */
.product-detail-container { max-width: 100%; margin: 0 auto; }
.prod-detail-grid { display: grid; grid-template-columns: 1fr; gap: 40px; margin-top: 20px; }
@media(min-width: 900px) { .prod-detail-grid { grid-template-columns: 40% 60%; } }

.detail-top-bar { margin-bottom: 25px; display: flex; justify-content: flex-start; }
.detail-top-bar .back-btn { margin-bottom: 0; background: #0a0e17; }

.prod-gallery-css { position: relative; }
.gal-stages { width: 100%; margin-bottom: 15px; }
.gal-stage-item { display: none; width: 100%; border-radius: 8px; overflow: hidden; border: 1px solid var(--card-border); box-shadow: 0 10px 30px rgba(0,0,0,0.5); background: #000; }
.gal-stage-item img { width: 100%; display: block; object-fit: cover; }
.thumb-row-css { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 5px; }
.thumb-row-css label { cursor: pointer; display: block; }
.thumb-row-css img { width: 70px; height: 70px; object-fit: cover; border: 2px solid #334155; border-radius: 4px; opacity: 0.5; transition: 0.2s; }
.thumb-row-css label:hover img { opacity: 0.8; border-color: #64748b; }

.pdf-thumb-label {
    display: flex; align-items: center; justify-content: center; width: 70px; height: 70px;
    background: #020204; border: 2px solid #334155; border-radius: 4px; color: var(--link);
    font-weight: 900; font-size: 16px; font-family: monospace; cursor: pointer; opacity: 0.5; transition: 0.2s; flex-shrink: 0;
}
.pdf-thumb-label:hover { opacity: 0.8; border-color: #64748b; }

.prod-bio h1 { margin-top: 0; color: #fff; font-size: 32px; line-height: 1.3; }

.prod-highlight-box {
    background: var(--grad-card); border: 1px solid var(--card-border); border-left: 4px solid var(--link);
    border-radius: 6px; padding: 20px; margin-bottom: 30px; display: flex; flex-wrap: wrap;
    align-items: stretch; justify-content: space-between; gap: 20px; box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}
.ph-left { display: flex; flex-direction: column; justify-content: center; }
.ph-detail-row { display: flex; align-items: center; gap: 20px; margin-bottom: 12px; }
.ph-detail-row:last-child { margin-bottom: 0; }
.ph-label { font-size: 13px; font-weight: 800; color: #64748b; text-transform: uppercase; width: 100px; letter-spacing: 2px; }
.ph-val { font-size: 16px; color: #cbd5e1; font-weight: bold; letter-spacing: 0.5px; }
.ph-val.highlight { color: #fff; }
.ph-right { text-align: right; padding-left: 20px; border-left: 1px dashed #334155; display: flex; flex-direction: column; justify-content: center; min-width: 150px; }
.ph-price-val { font-size: 32px; color: var(--yellow); font-family: monospace; font-weight: 900; line-height: 1; }
.ph-price-lbl { font-size: 12px; color: #64748b; text-transform: uppercase; letter-spacing: 2px; margin-top: 8px; }
@media(max-width: 600px) {
    .prod-highlight-box { flex-direction: column; align-items: stretch; }
    .ph-right { text-align: left; padding-left: 0; border-left: none; border-top: 1px dashed #334155; padding-top: 15px; width: 100%; }
}

.pct-radio { display: none; }
.prod-tabs-nav { display: flex; border-bottom: 2px solid #1e293b; margin-bottom: 20px; gap: 5px; flex-wrap: wrap; }
.prod-tab-lbl {
    padding: 12px 25px; cursor: pointer; font-size: 13px; text-transform: uppercase; font-weight: 800;
    color: #64748b; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: 0.2s; letter-spacing: 1px;
}
.prod-tab-lbl:hover { color: #cbd5e1; }
.prod-tab-lbl.buy-tab { color: #3cc470; }

#tab-desc-btn:checked ~ .prod-tabs-nav label[for="tab-desc-btn"],
#tab-pricing-btn:checked ~ .prod-tabs-nav label[for="tab-pricing-btn"],
#tab-markets-btn:checked ~ .prod-tabs-nav label[for="tab-markets-btn"] { color: var(--link); border-bottom-color: var(--link); background: rgba(212, 219, 82, 0.05); }
#tab-markets-btn:checked ~ .prod-tabs-nav label[for="tab-markets-btn"] { color: var(--green); border-bottom-color: var(--green); background: rgba(42, 196, 101, 0.05); }

.pct-content { display: none; animation: fadeIn 0.3s ease; }
#tab-desc-btn:checked ~ #content-desc,
#tab-pricing-btn:checked ~ #content-pricing,
#tab-markets-btn:checked ~ #content-markets { display: block; }

.desc-box-wrap { background: #020204; border: 1px solid #334155; border-radius: 8px; padding: 25px; }

.pricing-table-wrap { border-radius: 8px; overflow: hidden; border: 1px solid #334155; background: var(--bodyBG); }
.pricing-table { width: 100%; border-collapse: collapse; }
.pricing-table th { text-align: left; padding: 15px; background: #020204; color: var(--link); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; border-bottom: 2px solid #334155; }
.pricing-table td { padding: 15px; border-bottom: 1px solid #1e293b; color: #e2e8f0; font-family: monospace; font-size: 14px; background: var(--grad-card); transition: 0.2s; }
.pricing-table tr:hover td { background: rgba(212, 219, 82, 0.05); }
.pricing-table tr:last-child td { border-bottom: none; }

.market-list { display: flex; flex-direction: column; gap: 10px; }
.mkt-buy-row { display: flex; justify-content: space-between; align-items: center; background: #0a0e17; padding: 15px; border: 1px solid #333; border-radius: 4px; text-decoration: none; transition: 0.2s; }
.mkt-buy-row:hover { border-color: var(--link); transform: translateX(5px); box-shadow: 0 5px 15px rgba(212, 219, 82, 0.1); }
.mkt-left { display: flex; align-items: center; gap: 15px; color: #fff; font-weight: bold; font-size: 16px; }
.mkt-left img { width: 32px; height: 32px; border-radius: 50%; border: 1px solid #222; }

.alert-box { background: rgba(59, 130, 246, 0.1); border-left: 4px solid #3b82f6; padding: 20px; color: #93c5fd; border-radius: 4px; font-size: 13px; line-height: 1.6; }

/* =========================================
   16. ADMIN PANEL STYLING
   ========================================= */
.admin-nav { display: flex; gap: 5px; margin-bottom: 25px; border-bottom: 2px solid #1e293b; flex-wrap: wrap; padding-bottom: 10px; }
.admin-tab { padding: 12px 20px; font-size: 13px; font-weight: 800; text-transform: uppercase; color: #64748b; border-bottom: 2px solid transparent; margin-bottom: -12px; transition: 0.2s; border-radius: 4px 4px 0 0; text-decoration: none; }
.admin-tab:hover { color: #cbd5e1; background: rgba(255,255,255,0.02); }
.admin-tab.active { color: var(--link); border-bottom-color: var(--link); background: rgba(212, 219, 82, 0.05); }

.admin-form { background: var(--grad-card); border: 1px solid var(--card-border); padding: 25px; border-radius: 8px; margin-bottom: 30px; }
.admin-form label { display: block; font-size: 11px; font-weight: 800; color: #94a3b8; text-transform: uppercase; letter-spacing: 1px; margin: 15px 0 5px; }
.admin-form input, .admin-form textarea, .admin-form select { width: 100%; background: #020204; border: 1px solid #334155; color: #e2e8f0; padding: 12px; border-radius: 4px; font-family: monospace; font-size: 14px; transition: 0.2s; }
.admin-form input:focus, .admin-form textarea:focus, .admin-form select:focus { border-color: var(--link); outline: none; box-shadow: 0 0 10px rgba(212, 219, 82, 0.1); }
.file-input { width: 100%; padding: 10px; background: #0a0e17; border: 1px dashed #334155; color: #94a3b8; font-size: 12px; border-radius: 4px; }

.admin-section { border: 1px solid #334155; padding: 15px; border-radius: 4px; background: #0a0e17; margin-top: 15px; }
.admin-section-title { font-size: 12px; font-weight: bold; color: var(--link); text-transform: uppercase; margin-bottom: 10px; border-bottom: 1px solid #1e293b; padding-bottom: 5px; }
.checkbox-group { display: flex; flex-wrap: wrap; gap: 15px; margin-top: 5px; }
.checkbox-item { display: flex; align-items: center; gap: 5px; font-size: 13px; color: #cbd5e1; cursor: pointer; }
.checkbox-item input { width: auto !important; margin: 0 !important; cursor: pointer; accent-color: var(--link); }

.tableHolder { overflow-x: auto; background: var(--grad-card); border-radius: 8px; border: 1px solid var(--card-border); padding: 0; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; }
.data-table th { padding: 15px; font-size: 11px; text-transform: uppercase; color: var(--link); background: #020204; border-bottom: 2px solid #334155; }
.data-table td { padding: 15px; font-size: 13px; color: #e2e8f0; border-bottom: 1px solid #1e293b; vertical-align: middle; }
.data-table tr:hover td { background: rgba(212, 219, 82, 0.02); }
.data-table td.monospace { font-family: monospace; color: #94a3b8; }
.thumb-preview { width: 40px; height: 40px; object-fit: contain; border-radius: 4px; background: #000; border: 1px solid #333; }
.data-table td.r { text-align: right; white-space: nowrap; }

.market-link-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.market-link-head { flex: 0 0 120px; display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: bold; color: #fff; }
.market-mini-logo { width: 20px; height: 20px; border-radius: 50%; }

.css-modal { opacity: 0; visibility: hidden; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); z-index: 10000; transition: all 0.3s; display: flex; align-items: center; justify-content: center; }
.css-modal:target { opacity: 1; visibility: visible; }
.css-modal-content { background: #0D111D; border: 2px solid var(--border); padding: 30px; border-radius: 8px; width: 320px; text-align: center; box-shadow: 0 0 50px rgba(0,0,0,0.8); }
.css-modal h3 { color: #fff; margin-top: 0; font-size: 18px; }
.css-modal-actions { display: flex; gap: 10px; justify-content: center; margin-top: 20px; }

/* =========================================
   17. ANIMATIONS
   ========================================= */
@keyframes zoomIn { from{opacity:0; transform:scale(0.9);} to{opacity:1; transform:scale(1);} }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
