/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --main: #FFFFFF;
    --secondBG: #0D111D;
    --footBG: #000C28;
    --bodyBG: #000E31;
    --link: #D4DB52;        /* Neon Lime/Yellow */
    --border: #D4DB52;
    --btn: #D4DB52;
    --red: #df3f5c;
    --green: #2ac465;       /* Matrix Green */
    --orange: #4EB37E;      /* Muted Teal/Green */
    --yellow: #ffc65a;
    --headBG: #131313;
    --card-border: #242424;
    --text-muted: #94a3b8;
    --shadow-glow: rgba(212, 219, 82, 0.4);
}

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

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

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

a {
    text-decoration: none;
    transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--link);
}

a:hover { color: #fff; }

b { font-weight: 700; }

.cl { clear: both; }

/* =========================================
   2. LAYOUT & UTILITIES
   ========================================= */
.wrap {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

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

/* Grid System */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
    clear: both;
}

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

@media (min-width: 768px) {
    .col-80 { flex: 0 0 80%; }
    .col-60 { flex: 0 0 60%; }
    .col-50 { flex: 0 0 50%; }
    .col-40 { flex: 0 0 40%; }
    .col-33 { flex: 0 0 33.333%; }
    .col-20 { flex: 0 0 20%; }
}

/* =========================================
   3. TECH HEADERS (New Enhanced Titles)
   ========================================= */
.tech-header {
    margin-bottom: 25px;
    border-bottom: 1px solid #242424;
    display: flex;
    align-items: center;
    position: relative;
    padding-bottom: 10px;
}

.tech-header span {
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--link);
    background: var(--bodyBG); /* Masks the line behind text */
    padding-right: 20px;
    display: flex;
    align-items: center;
    z-index: 2; /* Sits above the line */
}

/* The Glowing Vertical Bar */
.tech-header span::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 24px;
    background: var(--link);
    margin-right: 15px;
    box-shadow: 0 0 10px var(--shadow-glow);
}

/* The Digital Dashed Line Extension */
.tech-header::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    background: repeating-linear-gradient(
        90deg,
        #242424,
        #242424 4px,
        transparent 4px,
        transparent 8px
    );
    opacity: 0.6;
    z-index: 1;
}

/* Inside modal boxes, header background needs to match modal bg */
.modal-box .tech-header span { background: var(--secondBG); }
.media-modal-box .tech-header span { background: var(--secondBG); }

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

/* Dark Gradient Overlay for Banner */
.main #header::before {
    content: '';
    position: absolute;
    top:0; left:0; right:0; bottom: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;
    font-size: 12px;
    font-weight: 700;
    position: relative;
    z-index: 5;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

#announce h2 {
    color: #fff !important;
    font-size: 13px;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

#logo {
    float: left;
    width: 90px;
    height: 70px;
    background-image: url("icon.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.shopname {
    float: left;
    font-size: 20px;
    font-weight: 800;
    margin-left: 20px;
    text-transform: uppercase;
    color: #fff;
    letter-spacing: 1px;
}

.menu { float: right; }

.menu a {
    display: inline-block;
    color: #cbd5e1 !important;
    font-weight: 700;
    margin-left: 25px;
    font-size: 13px;
    text-transform: uppercase;
    position: relative;
    padding: 0 2px;
}

.menu a:hover { color: var(--link) !important; }

/* Sprite Styling */
.icn span:not(.red) {
    display: inline-block;
    background-image: url("css_sprite.png");
    vertical-align: middle;
    width: 22px;
    height: 22px;
    margin-right: 8px;
    line-height: 22px; 
    border-radius: 2px;
}

/* Sprite Positions */
.icn.cart span { background-position: top -188px left -185px; }
.icn.profile span { background-position: top -56px left -231px; }
.icn.balance span { background-position: top -188px left -55px; }
.icn.support span { background-position: top -100px left -231px; }
.icn.logout span { background-position: top -188px left -140px; }
.icn.category span { background-position: top -188px left -100px; }
.icn.feedback span { background-position: top -12px left -231px; }
.icn.order span { background-position: top -187px left -11px; }
.icn.about span { background-image: url("about.png") !important; background-position: center; background-size: contain; background-repeat: no-repeat; }

/* =========================================
   5. MODERN NEWS FEED (New)
   ========================================= */
.news-feed-container {
    display: flex;
    flex-direction: column;
}

.news-card {
    display: flex;
    gap: 25px;
    padding: 30px;
    border-bottom: 1px solid #1a1a1a;
    transition: background 0.3s ease;
}

.news-card:last-child { border-bottom: none; }
.news-card:hover { background: rgba(255,255,255,0.02); }

.news-meta {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.news-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(212, 219, 82, 0.1);
    border: 1px solid var(--link);
    color: var(--link);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 10px;
    box-shadow: 0 0 15px rgba(212, 219, 82, 0.15);
    font-family: monospace;
}

.news-date {
    font-size: 11px;
    color: #64748b;
    font-family: monospace;
    text-transform: uppercase;
}

.news-main { flex-grow: 1; }

.news-main h3 {
    font-size: 18px;
    color: #fff;
    margin-bottom: 12px;
    font-weight: 700;
    line-height: 1.3;
}

.news-excerpt {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more-link {
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--link);
    letter-spacing: 0.5px;
    border-bottom: 1px solid transparent;
}

.read-more-link:hover { border-bottom-color: var(--link); }

/* Single Post View */
.news-single-view { animation: fadeIn 0.4s ease; }
.news-date-lg { color: var(--link); font-family: monospace; font-size: 14px; display: block; margin-bottom: 15px; }
.news-title-lg { font-size: 32px; color: #fff; margin-bottom: 30px; line-height: 1.2; border-bottom: 1px solid #333; padding-bottom: 25px; }
.news-body-lg { font-size: 16px; color: #ccc; line-height: 1.8; font-family: sans-serif; white-space: pre-wrap; }

/* =========================================
   6. MEDIA GALLERY (New)
   ========================================= */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.media-item {
    aspect-ratio: 16 / 9;
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background: #000;
    transition: 0.3s ease;
}

.media-thumb {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.media-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    opacity: 0.8;
}

/* Video Placeholder Style */
.vid-placeholder {
    width: 100%; height: 100%;
    background: radial-gradient(circle, #1e293b, #020204);
    display: flex; align-items: center; justify-content: center;
    color: #4a5568; font-weight: 700; font-size: 12px; letter-spacing: 2px;
}

.play-icon {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 36px;
    z-index: 2;
    text-shadow: 0 4px 15px #000;
    opacity: 0.9;
}

/* Hover Effects */
.media-item:hover { 
    border-color: var(--link); 
    box-shadow: 0 0 20px rgba(212, 219, 82, 0.15); 
}
.media-item:hover img { transform: scale(1.1); opacity: 1; }

.media-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
    padding: 30px 15px 15px 15px;
    z-index: 3;
    transform: translateY(5px);
    transition: 0.3s;
}

.media-item:hover .media-overlay { transform: translateY(0); }

.media-overlay span {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =========================================
   7. PRODUCT & INVENTORY
   ========================================= */
.filter-nav { display: flex; gap: 10px; margin-bottom: 25px; flex-wrap: wrap; }
.filter-btn { 
    background: #020204; 
    border: 1px solid #334155; 
    color: #94a3b8; 
    padding: 10px 18px; 
    border-radius: 6px; 
    font-size: 12px; 
    font-weight: 700; 
    text-transform: uppercase; 
    cursor: pointer; 
    transition: 0.2s;
}
.filter-btn:hover { border-color: var(--link); color: #fff; }
.filter-btn.active { background: var(--link); color: #000; border-color: var(--link); }

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

.product-card {
    background: var(--secondBG);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    overflow: hidden;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

/* Hover Glow & Border Effect */
.product-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.product-card:hover::after {
    content: ""; position: absolute; top: -2px; left: -2px; right: -2px; bottom: -2px;
    z-index: -1;
    border-radius: 12px;
    background: linear-gradient(45deg, var(--red), var(--link), var(--green));
    opacity: 0.3;
    filter: blur(10px);
}

.product-image-box {
    height: 220px;
    background: #000;
    position: relative;
    overflow: hidden;
}

.product-image-box img {
    width: 100%; height: 100%; object-fit: contain;
    position: relative; z-index: 1;
}

/* Border Overlay Image (Crucial for the cyber look) */
.product-border {
    position: absolute; top:0; left:0; width:100%; height:100%;
    background-image: url("border.png"); /* Ensure this file exists */
    background-size: 100% 100%;
    z-index: 2; pointer-events: none;
}

.product-info {
    padding: 20px;
    display: flex; flex-direction: column; flex-grow: 1;
    background: var(--secondBG); z-index: 2;
}

.product-info h3 { margin-bottom: 8px; font-size: 16px; min-height: 44px; }
.product-price { font-size: 18px; color: var(--yellow); font-weight: 700; margin-bottom: 12px; }

.badge-container { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 20px; }
.badge { font-size: 10px; padding: 4px 8px; border-radius: 4px; font-weight: 700; text-transform: uppercase; background: #334155; color: #fff; }
.badge.blue { background: #3498db; }
.badge.orange { background: #e67e22; }
.badge.red { background: var(--red); }

/* =========================================
   8. TABLES & BUTTONS
   ========================================= */
.tableHolder table { width: 100%; border-collapse: collapse; }
.tableHolder th { 
    background: #020204; 
    padding: 15px; 
    color: var(--link); 
    border-bottom: 2px solid var(--border); 
    text-transform: uppercase; 
    font-size: 12px; 
    text-align: left;
    letter-spacing: 1px;
}
.tableHolder td { padding: 15px; border-bottom: 1px solid #222; color: #cbd5e1; font-size: 13px; }
.tableHolder .r { text-align: right; }
.crypto-icon { width: 20px; height: 20px; vertical-align: middle; margin-right: 8px; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    cursor: pointer;
    text-align: center;
    border: 0;
    transition: 0.2s;
}

.btn.green { background: rgba(42, 196, 101, 0.1); color: #3cc470; border: 1px solid #3cc470; }
.btn.green:hover { background: #3cc470; color: #000; box-shadow: 0 0 15px rgba(60, 196, 112, 0.4); }
.btn.block { display: block; width: 100%; }
.btn.small { padding: 5px 12px; font-size: 11px; height: auto; line-height: normal; }
.btn.red { background: transparent; color: var(--red); border: 1px solid var(--red); }
.btn.white { background: transparent; color: #fff; border: 1px solid #fff; }
.btn.white:hover { background: #fff; color: #000; }
.btn.yellow { background: transparent; color: var(--yellow); border: 1px solid var(--yellow); }
.btn.yellow:hover { background: var(--yellow); color: #000; }

.pagination { text-align: center; padding: 20px 0; }
.pagination a.page-link { display: inline-block; padding: 0 12px; min-width: 40px; height: 40px; line-height: 36px; background: #2E3856; border: 2px solid #0D111D; margin: 0 5px; font-weight: 700; color: var(--main) !important; }
.pagination a.page-link.selected { background: #0D111D; border-color: var(--border); }

/* =========================================
   9. REVIEWS & TRANSLATION SYSTEM (Redesigned)
   ========================================= */
/* Trust Dashboard */
.trust-dashboard { border-left: 4px solid var(--link); display: flex; flex-wrap: wrap; align-items: center; }
.trust-col { padding: 0 20px; }
.trust-score { flex: 0 0 180px; display: flex; flex-direction: column; align-items: center; text-align: center; border-right: 1px solid rgba(255,255,255,0.05); }
.trust-medal { width: 99px; height: 99px; background-image: url("css_sprite.png"); background-position: left -9px top -9px; filter: drop-shadow(0 0 15px rgba(212, 219, 82, 0.3)); margin-bottom: 10px; }
.score-big { font-size: 32px; font-weight: 800; color: #fff; line-height: 1; }
.score-big span { font-size: 14px; color: #666; font-weight: 400; }
.score-sub { font-size: 11px; color: #888; margin-top: 5px; text-transform: uppercase; letter-spacing: 1px; }
.trust-bars { flex: 1; min-width: 300px; padding: 20px 40px; }
.bar-row { display: flex; align-items: center; margin-bottom: 12px; font-size: 12px; }
.bar-label { width: 70px; font-weight: 700; color: #94a3b8; }
.bar-track { flex-grow: 1; height: 8px; background: #000; border-radius: 4px; margin: 0 15px; position: relative; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 4px; transition: width 1s ease; }
.bar-count { width: 40px; text-align: right; color: #fff; font-family: monospace; }
.trust-verify { flex: 0 0 250px; padding: 20px; border-left: 1px solid rgba(255,255,255,0.05); display: flex; flex-direction: column; justify-content: center; }
.verify-badge { border: 1px solid var(--green); background: rgba(42, 196, 101, 0.05); color: var(--green); padding: 10px; border-radius: 6px; font-size: 11px; text-transform: uppercase; font-weight: 700; text-align: center; margin-bottom: 10px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.verify-badge::before { content: '✓'; font-size: 14px; }
.verify-text { font-size: 11px; color: #64748b; line-height: 1.4; text-align: center; }
@media (max-width: 768px) {
    .trust-dashboard { flex-direction: column; align-items: stretch; }
    .trust-score, .trust-bars, .trust-verify { flex: 0 0 auto; border: 0; border-bottom: 1px solid rgba(255,255,255,0.05); padding: 20px; }
    .trust-score { flex-direction: row; justify-content: center; gap: 20px; }
}

/* Testimonials Layout */
.testimonial {
    display: flex;
    padding: 30px;
    border-bottom: 1px solid #1a1a1a;
    align-items: flex-start;
}

.t-left { flex: 0 0 60px; margin-right: 25px; }
.t-name {
    width: 60px; height: 60px;
    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); box-shadow: 0 0 10px rgba(42, 196, 101, 0.1); }
.t-name.n { border-color: var(--red); color: var(--red); box-shadow: 0 0 10px rgba(223, 63, 92, 0.1); }
.t-name.o { border-color: var(--yellow); color: var(--yellow); }

.t-right { display: flex; flex-direction: column; width: 100%; }

.t-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 15px; padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.t-meta b { font-size: 16px; color: #fff; }
.t-meta .date { display: block; font-size: 11px; color: #64748b; margin-top: 2px; }

.t-body { font-size: 14px; line-height: 1.6; color: #cbd5e1; margin-bottom: 15px; }

/* CSS-Only Translation Logic */
.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: 15px;
    border-radius: 6px;
    border-left: 3px solid var(--link);
    animation: fadeIn 0.3s;
}

/* Redesigned Translation Button */
.t-actions {
    display: flex; justify-content: flex-end;
    border-top: 1px dashed rgba(255,255,255,0.1);
    padding-top: 12px;
}

.modern-trans-btn {
    cursor: pointer;
    background: #020204;
    border: 1px solid #334155;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #94a3b8;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.modern-trans-btn:hover {
    border-color: var(--link);
    color: var(--link);
    background: rgba(212, 219, 82, 0.05);
    transform: translateY(-1px);
}

/* =========================================
   10. MODALS & POPUPS
   ========================================= */
.modal-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 14, 49, 0.95);
    backdrop-filter: blur(5px);
    z-index: 9999;
    justify-content: center; align-items: center; padding: 20px;
}
.modal-overlay:target { display: flex; animation: fadeIn 0.3s; }

.modal-box {
    max-width: 600px; width: 100%;
    background: var(--secondBG);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 40px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    overflow-y: auto;
    max-height: 90vh;
}

.media-modal-box {
    width: auto;                /* Allow width to grow with content */
    max-width: 95vw;           /* Cap width at 95% of viewport */
    height: auto;               /* Allow height to grow */
    max-height: 95vh;          /* Cap height at 95% of viewport */

    display: flex;              /* Use Flexbox to organize title, img, desc */
    flex-direction: column;     
    padding: 20px;              /* Reduce padding slightly for max screen usage */
}
.media-modal-box .close-x {
    top: 10px;
    right: 10px;
    z-index: 10;
}

.media-modal-box h2 {
    margin-bottom: 15px;
    padding-bottom: 10px;
    flex-shrink: 0;             /* Prevent title from squishing */
}

.media-display-area {
    flex: 1;                    /* Take up available space */
    min-height: 0;              /* Crucial for flexbox scrolling fix */
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;           /* Black background for letterboxing */
    border-radius: 4px;
    border: 1px solid #333;
    margin-bottom: 15px;
    overflow: hidden;
    position: relative;
}
.media-display-area img,
.media-display-area video {
    display: block;
    width: auto;                /* Reset default width */
    height: auto;               /* Reset default height */

    /* The Magic: */
    max-width: 100%;            /* Never wider than container */
    max-height: 80vh;          /* Never taller than 80% of screen height */
                                /* (leaves 20% for title/desc) */

    object-fit: contain;        /* Maintain aspect ratio */
}

.media-desc {
    flex-shrink: 0;             /* Prevent description from squishing */
    font-size: 13px;
    color: #cbd5e1;
    text-align: center;
    margin-top: auto;           /* Push to bottom */
}

.close-x {
    position: absolute; top: 15px; right: 15px;
    width: 30px; height: 30px;
    padding: 0; line-height: 28px;
    border-radius: 50%;
    text-align: center;
}

/* Market Selection Popup Buttons */
.market-list { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }

.market-link-row {
    display: flex; align-items: center; justify-content: space-between;
    background: linear-gradient(90deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
    padding: 15px 20px;
    border: 1px solid #333; border-radius: 8px;
    text-decoration: none;
    transition: 0.3s ease;
}

.market-link-row:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--green);
    transform: translateX(5px);
}

.market-link-row b { color: #e2e8f0; font-size: 15px; text-transform: uppercase; }

/* Guide Modal (Join Session) */
.guide-modal { background: linear-gradient(145deg, #0D111D 0%, #05070a 100%); border: 1px solid #334155; }
.guide-steps { margin: 20px 0; display: flex; flex-direction: column; gap: 20px; position: relative; padding-left: 10px; }
.guide-steps::before { content: ''; position: absolute; top: 20px; bottom: 40px; left: 28px; width: 2px; background: #1e293b; z-index: 0; }
.step { position: relative; z-index: 1; display: flex; gap: 20px; align-items: flex-start; }
.step-num { 
    background: #020204; border: 1px solid #334155; color: var(--link); 
    width: 36px; height: 36px; 
    display: flex; align-items: center; justify-content: center; 
    border-radius: 50%; font-family: monospace; font-weight: 700; flex-shrink: 0; 
}
.step-content { background: rgba(255,255,255,0.02); padding: 15px; border-radius: 8px; width: 100%; }
.step-content h4 { color: #fff; margin-bottom: 5px; }
.step-content p { color: #94a3b8; font-size: 13px; }
.session-id-footer { background: #000; padding: 15px; border-radius: 8px; border: 1px dashed #334155; display: flex; justify-content: space-between; align-items: center; margin-top: 25px; }
.session-id-footer strong { color: var(--green); font-family: monospace; font-size: 18px; }

/* =========================================
   11. FOOTER & COMMUNICATIONS (Legacy + New)
   ========================================= */
/* Comms Cards */
.comms-card { height: 100%; }
.community-border { border-color: var(--orange); }
.enhanced-faq-title { font-size: 18px; color: var(--link); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 25px; display: flex; align-items: center; gap: 15px; }
.enhanced-faq-title::after { content: ''; flex-grow: 1; height: 1px; background: linear-gradient(90deg, #334155, transparent); }
.faq-container { margin-top: 30px; border-top: 1px solid #1e293b; padding-top: 25px; }
.faq-item { background: rgba(255, 255, 255, 0.02); padding: 18px; border-radius: 8px; border-left: 4px solid #334155; margin-bottom: 15px; transition: all 0.3s ease; }
.faq-item:hover { background: rgba(212, 219, 82, 0.05); border-left-color: var(--link); transform: translateX(5px); }
.faq-item h3 { font-size: 16px; margin-bottom: 8px; color: var(--link) !important; }
.faq-item p { font-size: 14px !important; color: #94a3b8 !important; }

.comms-input { 
    background: #000 !important; border: 1px solid #334155 !important; 
    color: var(--link) !important; font-family: monospace; padding: 12px !important; 
    border-radius: 8px !important; width: 100%; margin-bottom: 20px; 
}
.pgp-textarea { 
    background: #000 !important; border: 1px solid #334155 !important; 
    color: #888 !important; font-family: monospace; font-size: 11px; 
    height: 180px; padding: 15px !important; border-radius: 8px !important; 
    resize: none; width: 100%; 
}
.dread-btn { display: flex !important; align-items: center; justify-content: center; gap: 10px; }
.url-inner { background: #000; border: 1px solid #334155; border-left: 3px solid var(--orange); padding: 12px; border-radius: 8px; }
.url-inner p { font-family: monospace; font-size: 11px; color: #94a3b8; word-break: break-all; }

/* Main Footer */
#site-footer {
    background: var(--footBG);
    border-top: 2px solid var(--border);
    padding: 60px 0 30px;
    margin-top: 80px;
    color: #94a3b8;
}
.footer-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px; margin-bottom: 40px;
}
@media (min-width: 992px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; } }
.footer-col h3 { color: var(--link); font-size: 14px; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 25px; position: relative; }
.footer-col h3::after { content: ''; position: absolute; left: 0; bottom: -8px; width: 30px; height: 2px; background: var(--border); }
.footer-tagline { font-size: 14px; line-height: 1.6; margin-bottom: 25px; }
.footer-links li { list-style: none; margin-bottom: 10px; }
.footer-links a { font-size: 13px; color: #64748b; }
.footer-links a:hover { color: var(--link); padding-left: 5px; }
.footer-links a::before { content: '>'; margin-right: 8px; font-size: 10px; color: var(--link); opacity: 0.5; }

.footer-status { display: inline-flex; align-items: center; background: rgba(42, 196, 101, 0.1); color: var(--green); padding: 6px 14px; border-radius: 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.status-indicator { width: 8px; height: 8px; background: var(--green); border-radius: 50%; margin-right: 10px; box-shadow: 0 0 10px var(--green); animation: pulseStatus 2s infinite; }
@keyframes pulseStatus { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.pgp-download { display: inline-block; margin-top: 10px; padding: 8px 15px; background: rgba(212, 219, 82, 0.1); border: 1px solid var(--border); border-radius: 6px; font-size: 12px; color: var(--link) !important; font-weight: 700; }
.pgp-download:hover { background: var(--link); color: #000 !important; }

.footer-bottom { padding-top: 30px; border-top: 1px solid rgba(255, 255, 255, 0.05); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; font-size: 11px; font-family: monospace; }
.mirror-link { font-size: 11px; color: #4a5568; text-decoration: underline; }
.mirror-link:hover { color: var(--main); }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* =========================================
   12. CSS-ONLY SLIDER (No JS)
   ========================================= */
.css-slider {
    position: relative;
    background: #000;
    overflow: hidden;
    /* Determine height based on modal logic defined earlier */
    display: flex; 
    flex-direction: column;
}

/* 1. Hide the actual radio buttons */
.slide-radio {
    display: none;
}

/* 2. Stack images using Grid */
.slides-stack {
    display: grid;
    grid-template-areas: "stack";
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    flex-grow: 1; /* Fill the media area */
}

.slide-visual {
    grid-area: stack; /* Pile them on top of each other */
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;

    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    pointer-events: none; /* Let clicks pass through if needed */
    z-index: 1;
}

/* 3. Logic: Show Image when specific radio is checked */
/* 
   We use nth-of-type because the IDs are dynamic.
   Radio 1 corresponds to Img 1, etc.
*/
.slide-radio:nth-of-type(1):checked ~ .slides-stack .slide-visual:nth-of-type(1),
.slide-radio:nth-of-type(2):checked ~ .slides-stack .slide-visual:nth-of-type(2),
.slide-radio:nth-of-type(3):checked ~ .slides-stack .slide-visual:nth-of-type(3),
.slide-radio:nth-of-type(4):checked ~ .slides-stack .slide-visual:nth-of-type(4),
.slide-radio:nth-of-type(5):checked ~ .slides-stack .slide-visual:nth-of-type(5),
.slide-radio:nth-of-type(6):checked ~ .slides-stack .slide-visual:nth-of-type(6) {
    opacity: 1;
    z-index: 10;
    pointer-events: auto;
}

/* 4. Controls & Navigation container */
.slider-nav-layer {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none; /* Allow seeing the image below */
    z-index: 20;
}

.nav-set {
    display: none; /* Hide all arrows by default */
    width: 100%;
    height: 100%;
}

/* Show the specific set of arrows for the specific radio */
.slide-radio:nth-of-type(1):checked ~ .slider-nav-layer .set-0,
.slide-radio:nth-of-type(2):checked ~ .slider-nav-layer .set-1,
.slide-radio:nth-of-type(3):checked ~ .slider-nav-layer .set-2,
.slide-radio:nth-of-type(4):checked ~ .slider-nav-layer .set-3,
.slide-radio:nth-of-type(5):checked ~ .slider-nav-layer .set-4,
.slide-radio:nth-of-type(6):checked ~ .slider-nav-layer .set-5 {
    display: block;
}

/* Style the Labels to look like Buttons */
.nav-arrow {
    position: absolute;
    top: 50%;
    margin-top: -25px;
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    background: rgba(0,0,0,0.5);
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    pointer-events: auto; /* Re-enable clicking */
    transition: 0.2s;
    user-select: none;
}

.nav-arrow:hover {
    background: var(--link);
    color: #000;
}

.nav-arrow.prev { left: 0; border-radius: 0 4px 4px 0; }
.nav-arrow.next { right: 0; border-radius: 4px 0 0 4px; }

/* The Counter (1/3) */
.nav-counter {
    position: absolute;
    bottom: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 5px 12px;
    font-size: 12px;
    font-family: monospace;
    border-top-left-radius: 6px;
}