/* ==================================================
   myfitegre.com | GLOBAL SYSTEM STYLESHEET
   SYS_VERSION: 3.0.0 (Unified Master)
================================================== */

:root {
    /* Core System Dark Colors */
    --bg-dark: #050505;
    --matrix-green: #00FF41;
    --matrix-dim: #008F11;
    --matrix-dark: #003B00;
    --text-muted: rgba(0, 255, 65, 0.7);
    
    /* 3D & Structural Variables */
    --border-radius: 15px;
    --box-shadow-3d: 6px 6px 0px var(--matrix-dim);
    --tile-border: 2px dashed var(--matrix-green);
    --hero-glow: 0 0 20px rgba(0, 255, 65, 0.4);
}

/* ==================================================
   CYBER-LIGHT OVERRIDES (Google/Cyberpunk Theme)
================================================== */
.light-mode {
    --bg-dark: #F8F9FA; 
    --matrix-green: #EA4335; 
    --matrix-dim: #4285F4; 
    --matrix-dark: #FBBC05; 
    --text-muted: #34A853; 
    --box-shadow-3d: 8px 8px 0px #202124;
    --tile-border: 3px solid #202124;
    --hero-glow: 0 0 20px rgba(66, 133, 244, 0.4);
}

.light-mode body { color: #202124; text-shadow: none; }
.light-mode .tile { background-color: #ffffff; color: #202124; }
.light-mode nav a { color: #202124; font-weight: bold; }
.light-mode nav a:hover, .light-mode nav a.active { color: var(--matrix-dim); text-shadow: none; }

/* ==================================================
   CAMO MODE OVERRIDES (Forest / Olive / Light Camo Theme)
================================================== */
.camo-mode {
    --bg-dark: #EDEADB;
    --matrix-green: #3B5323;
    --matrix-dim: #6B8E23;
    --matrix-dark: #8F9779;
    --text-muted: #55672E;
    --box-shadow-3d: 8px 8px 0px #3B5323;
    --tile-border: 3px solid #3B5323;
    --hero-glow: 0 0 20px rgba(107, 142, 35, 0.4);
}

.camo-mode body { color: #2F3B1F; text-shadow: none; }
.camo-mode .tile { background-color: #F5F1E0; color: #2F3B1F; }
.camo-mode nav a { color: #2F3B1F; font-weight: bold; }
.camo-mode nav a:hover, .camo-mode nav a.active { color: var(--matrix-dim); text-shadow: none; }

/* ==================================================
   BASE ELEMENTS
================================================== */
* { box-sizing: border-box; margin: 0; padding: 0; }

/* Prevent any element from causing horizontal scroll on any device */
html { overflow-x: hidden; }

body {
    background-color: var(--bg-dark);
    color: var(--matrix-green);
    font-family: 'Courier New', Courier, monospace;
    line-height: 1.6;
    padding: 20px 40px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    text-shadow: 0 0 2px var(--matrix-dim);
    transition: background-color 0.4s, color 0.4s;
    overflow-x: hidden;
    max-width: 100vw;
}
@media(max-width: 700px) {
    body { padding: 12px 14px; }
}

main { flex: 1; }
.page-title { font-size: 1.6rem; margin-bottom: 25px; border-left: 6px solid var(--matrix-green); padding-left: 15px; }

/* ==================================================
   HEADER, NAV & THEME TOGGLE
================================================== */
header { border-bottom: 2px solid var(--matrix-green); padding-bottom: 15px; margin-bottom: 30px; }

/* New header structure with hamburger support */
.site-header { border-bottom: 2px solid var(--matrix-green); padding-bottom: 15px; margin-bottom: 30px; }
.site-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: nowrap;
}
.main-nav ul { list-style: none; display: flex; gap: 15px; flex-wrap: wrap; padding-top: 12px; }

/* Hamburger button — hidden on desktop, shown on mobile */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: 1px solid var(--matrix-dim);
    border-radius: 6px;
    padding: 8px 10px;
    cursor: pointer;
    flex-shrink: 0;
}
.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--matrix-green);
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
}
.nav-hamburger-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger-active span:nth-child(2) { opacity: 0; }
.nav-hamburger-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 760px) {
    .nav-hamburger { display: flex; }

    .main-nav {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    .main-nav.nav-open {
        max-height: 600px;
    }
    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding-top: 10px;
    }
    .main-nav ul li a {
        display: block;
        padding: 10px 4px;
        border-bottom: 1px solid var(--matrix-dark);
        font-size: 1rem;
    }
}

.logo { font-size: 2.2rem; font-weight: bold; letter-spacing: 4px; text-shadow: var(--hero-glow); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 440px) { .logo { font-size: 1.4rem; letter-spacing: 2px; } }
nav ul { list-style: none; display: flex; gap: 15px; flex-wrap: wrap; }
nav a { color: var(--matrix-green); text-decoration: none; font-size: 1rem; transition: all 0.2s ease-in-out; }
nav a:hover, nav a.active { text-shadow: 0 0 8px var(--matrix-green); font-weight: bold; transform: scale(1.05); }
nav a::before { content: "[ "; opacity: 0.5; } nav a::after { content: " ]"; opacity: 0.5; }

.theme-btn {
    background: transparent;
    border: 2px solid var(--matrix-green);
    color: var(--matrix-green);
    padding: 8px 15px;
    cursor: pointer;
    font-family: inherit;
    font-weight: bold;
    border-radius: var(--border-radius);
    box-shadow: 3px 3px 0px var(--matrix-dark);
    transition: all 0.2s;
    display: flex;
    align-items: center;
}
.theme-btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0px var(--matrix-green); background: var(--matrix-dark); color: #fff;}
.light-mode .theme-btn { border-color: var(--matrix-dim); color: var(--matrix-dim); box-shadow: 3px 3px 0px #202124; }
.light-mode .theme-btn:hover { background: var(--matrix-dim); color: #fff; box-shadow: 5px 5px 0px #202124;}
.camo-mode .theme-btn { border-color: var(--matrix-dim); color: var(--matrix-dim); box-shadow: 3px 3px 0px #2F3B1F; }
.camo-mode .theme-btn:hover { background: var(--matrix-dim); color: #fff; box-shadow: 5px 5px 0px #2F3B1F;}

/* ==================================================
   STANDARD GRID & TILES (For Subpages)
================================================== */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; }

.tile {
    display: block;
    background-color: rgba(0, 0, 0, 0.4);
    border: var(--tile-border);
    border-radius: var(--border-radius);
    padding: 25px;
    text-decoration: none;
    color: var(--matrix-green);
    transition: all 0.3s ease;
    box-shadow: var(--box-shadow-3d);
}
.tile:hover { border-style: solid; transform: translate(-4px, -4px); box-shadow: 10px 10px 0px var(--matrix-green); }
.light-mode .tile:hover { box-shadow: 10px 10px 0px var(--matrix-dim); }
.camo-mode .tile:hover { box-shadow: 10px 10px 0px var(--matrix-dim); }
.tile h2 { font-size: 1.4rem; margin-bottom: 12px; border-bottom: 1px solid var(--matrix-dark); padding-bottom: 5px; }
.tile p { font-size: 1rem; color: var(--text-muted); }

/* ==================================================
   HERO BANNER (For index.php)
================================================== */
.hero-banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto 30px auto;
    padding: 30px;
    text-align: center;
    border: 4px solid var(--matrix-green);
    border-radius: 20px;
    background: radial-gradient(circle at 25% 30%, rgba(0, 255, 65, 0.1), transparent 65%), rgba(0, 15, 0, 0.5);
    box-shadow: var(--hero-glow), inset 0 0 30px rgba(0, 0, 0, 0.6);
    position: relative;
    overflow: hidden;
}
@media(min-width: 900px) {
    .hero-banner { flex-direction: row; text-align: left; padding: 40px; }
}

.hero-elf-frame {
    position: relative;
    width: 200px;
    height: 200px;
    flex-shrink: 0;
    border-radius: 28px;
    overflow: hidden;
    border: 2px solid var(--matrix-dim);
    background: linear-gradient(145deg, rgba(0, 255, 65, 0.08), rgba(209, 0, 255, 0.14));
    box-shadow:
        0 0 26px rgba(0, 255, 65, 0.35),
        0 0 36px rgba(209, 0, 255, 0.28),
        inset 0 0 16px rgba(0, 0, 0, 0.45),
        inset 0 2px 6px rgba(255, 255, 255, 0.1);
    transition: box-shadow 0.4s ease;
    animation: elfFloat 4s ease-in-out infinite;
}
.hero-elf-frame:hover {
    box-shadow:
        0 0 34px rgba(0, 255, 65, 0.5),
        0 0 48px rgba(209, 0, 255, 0.4),
        inset 0 0 18px rgba(0, 0, 0, 0.5),
        inset 0 2px 6px rgba(255, 255, 255, 0.14);
}
.hero-elf-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 50% 36%, transparent 58%, rgba(0, 0, 0, 0.5) 100%);
}
.hero-elf {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.hero-elf-frame:hover .hero-elf {
    transform: perspective(800px) rotateY(8deg) rotateX(-6deg) scale(1.06);
}
@media(min-width: 900px) {
    .hero-elf-frame { width: 260px; height: 260px; }
}
@keyframes elfFloat {
    0%, 100% { transform: translateY(0px) rotate(-2deg); }
    50% { transform: translateY(-18px) rotate(2deg); }
}

.hero-banner-content { display: flex; flex-direction: column; gap: 15px; align-items: center; }
@media(min-width: 900px) {
    .hero-banner-content { align-items: flex-start; }
}
.hero-banner-content .page-title { margin-bottom: 0; }
.hero-tagline { color: var(--text-muted); font-size: 1.05rem; max-width: 600px; }
.hero-cta-row { display: flex; gap: 15px; flex-wrap: wrap; justify-content: center; }
@media(min-width: 900px) {
    .hero-cta-row { justify-content: flex-start; }
}

.light-mode .hero-banner {
    background: radial-gradient(circle at 25% 30%, rgba(66, 133, 244, 0.1), transparent 65%), #fff;
    border-color: #202124;
    box-shadow: var(--hero-glow), inset 0 0 30px rgba(0, 0, 0, 0.05);
}
.light-mode .hero-elf-frame {
    border-color: #202124;
    background: linear-gradient(145deg, rgba(66, 133, 244, 0.1), rgba(234, 67, 53, 0.12));
}

.camo-mode .hero-banner {
    background: radial-gradient(circle at 25% 30%, rgba(107, 142, 35, 0.18), transparent 65%), #F5F1E0;
    border-color: #3B5323;
    box-shadow: var(--hero-glow), inset 0 0 30px rgba(0, 0, 0, 0.05);
}
.camo-mode .hero-elf-frame {
    border-color: #6B8E23;
    background: linear-gradient(145deg, rgba(107, 142, 35, 0.12), rgba(59, 83, 35, 0.14));
}

/* ==================================================
   THE MASTER RECTANGLE (For index.php)
================================================== */
.master-rectangle {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    border: 4px solid var(--matrix-dark);
    border-radius: 15px;
    background: rgba(0, 20, 0, 0.4);
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.1), inset 0 0 20px rgba(0,0,0,0.8);
}
@media(min-width: 900px) {
    .master-rectangle {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: minmax(350px, auto) minmax(350px, auto);
    }
}

.quadrant {
    border: 2px dashed var(--matrix-dim);
    border-radius: 10px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    box-shadow: inset 0 0 15px rgba(0, 255, 65, 0.05);
    overflow: hidden;
}
.quadrant h2 { color: var(--matrix-green); border-bottom: 2px solid var(--matrix-dark); padding-bottom: 5px; margin-bottom: 15px; }
.flex-center { align-items: center; justify-content: center; }
.flex-bottom { justify-content: flex-end; }
.master-rectangle a { text-decoration: none; color: inherit; }

/* Quadrant 1 */
.intro-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mini-col { border: 1px solid var(--matrix-dim); padding: 10px; text-align: center; background: rgba(0,255,65,0.1); border-radius: 5px; }
.broadcast-metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}
@media(max-width: 700px) {
    .broadcast-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Lets a quadrant span both columns of the master-rectangle grid. */
.quadrant-full { grid-column: 1 / -1; }

/* Quadrant 2: Rotating Elf */
.hero-image-wrapper { perspective: 1000px; }
.elf-cycle-frame {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 24px;
    overflow: hidden;
    border: 3px solid transparent;
    background:
        linear-gradient(var(--bg-dark), var(--bg-dark)) padding-box,
        linear-gradient(130deg, var(--matrix-green), #d100ff) border-box;
    box-shadow: 0 0 28px rgba(0, 255, 65, 0.4), 0 0 38px rgba(209, 0, 255, 0.32), inset 0 0 16px #000;
    animation: elfDrift 5s ease-in-out infinite;
}
@media(min-width: 900px) {
    .elf-cycle-frame { width: 240px; height: 240px; }
}
@keyframes elfDrift {
    0%, 100% { transform: translateY(0px) rotate(1.5deg); }
    50% { transform: translateY(-12px) rotate(-1.5deg); }
}
.elf-cycle-frame:hover {
    box-shadow: 0 0 42px rgba(0, 255, 65, 0.55), 0 0 54px rgba(209, 0, 255, 0.4), inset 0 0 16px #000;
}

/* Stacked hover-cycle images: fixed frame keeps differently-sized art consistently composed */
.rotating-elf {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: top center;
    opacity: 0;
    transition: opacity 0.35s ease, transform 0.4s ease;
}
.cycle-img-1 { opacity: 1; z-index: 3; }
.cycle-img-2 { opacity: 0; z-index: 2; }
.cycle-img-3 { opacity: 0; z-index: 1; }
.cycle-img-missing { display: none !important; }

.elf-cycle-frame:hover .cycle-img {
    animation: elfCycleFade 6s ease-in-out infinite;
    transform: perspective(800px) rotateY(-6deg) rotateX(4deg) scale(1.05);
}
.elf-cycle-frame:hover .cycle-img-1 { animation-delay: 0s; }
.elf-cycle-frame:hover .cycle-img-2 { animation-delay: 2s; }
.elf-cycle-frame:hover .cycle-img-3 { animation-delay: 4s; }

@keyframes elfCycleFade {
    0%   { opacity: 0; }
    8%   { opacity: 1; }
    25%  { opacity: 1; }
    41%  { opacity: 0; }
    100% { opacity: 0; }
}

/* Quadrant 3: Directory */
.directory-rows { display: flex; flex-direction: column; gap: 10px; }
.dir-row { border: 1px solid var(--matrix-dim); padding: 12px; border-left: 4px solid var(--matrix-green); background: rgba(0,0,0,0.5); transition: 0.2s; }
.dir-row:hover { transform: translateX(5px); background: rgba(0,255,65,0.15); border-color: var(--matrix-green); }
.dir-row h3 { color: var(--matrix-green); font-size: 1.1rem; }
.dir-row p { font-size: 0.85rem; color: var(--text-muted); }

.holo-map-wrap {
    border: 1px dashed #a000ff;
    border-radius: 10px;
    background: radial-gradient(circle at 20% 20%, rgba(0, 255, 150, 0.16), transparent 55%), rgba(0, 0, 0, 0.45);
    padding: 10px;
    box-shadow: inset 0 0 18px rgba(160, 0, 255, 0.2);
}
.holo-map-tree { display: flex; flex-direction: column; gap: 16px; }
.map-level {
    display: grid;
    gap: 10px;
    justify-content: center;
}
.map-level-3 { grid-template-columns: repeat(3, minmax(90px, 140px)); }
.map-level-6 { grid-template-columns: repeat(6, minmax(72px, 120px)); }
.map-node {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    border: 1px solid #00f7ae;
    border-radius: 10px;
    padding: 6px 8px;
    font-size: 0.78rem;
    color: #b5ffd8;
    background: linear-gradient(145deg, rgba(0, 50, 30, 0.6), rgba(30, 0, 50, 0.4));
    box-shadow: inset 0 0 10px rgba(209, 0, 255, 0.24), 0 0 8px rgba(0, 255, 140, 0.26);
    white-space: nowrap;
}
@media(max-width: 900px) {
    .map-level-6 { grid-template-columns: repeat(3, minmax(92px, 1fr)); }
}
@media(max-width: 560px) {
    .map-level-3 { grid-template-columns: repeat(2, minmax(100px, 1fr)); }
    .map-level-6 { grid-template-columns: repeat(2, minmax(100px, 1fr)); }
    .map-level { justify-content: stretch; }
    .map-node { white-space: normal; min-height: 42px; }
}

.afford-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
}
@media(max-width: 700px) {
    .afford-row { grid-template-columns: auto 1fr; }
    .dir-cta { justify-self: start; margin-left: 46px; }
}
.dir-glyph {
    width: 34px;
    height: 34px;
    border: 1px solid var(--matrix-dim);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    background: rgba(0, 255, 65, 0.08);
}
.dir-cta {
    font-size: 0.72rem;
    letter-spacing: 1px;
    color: var(--matrix-green);
    border: 1px solid var(--matrix-dim);
    border-radius: 999px;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.35);
}

/* Quadrant 4: Chart */
.stats-columns { display: flex; align-items: flex-end; gap: 15px; height: 180px; border-bottom: 2px solid var(--matrix-green); border-left: 2px solid var(--matrix-green); padding: 10px; }
.stat-col { flex: 1; background: var(--matrix-dim); position: relative; border-radius: 4px 4px 0 0; transition: 0.3s; box-shadow: 0 0 10px var(--matrix-dim); }
.stat-col:hover { background: var(--matrix-green); box-shadow: 0 0 20px var(--matrix-green); }
.stat-col::before { content: attr(data-val); position: absolute; top: -25px; left: 50%; transform: translateX(-50%); font-weight: bold; color: var(--matrix-green); }
.stat-col span { position: absolute; bottom: -25px; left: 50%; transform: translateX(-50%); font-size: 0.75rem; color: var(--text-muted); }

/* Animated Toggle Icon */
.spin-icon { display: inline-block; animation: pulseIcon 2s infinite; margin-right: 8px; font-size: 1.1rem; }
@keyframes pulseIcon { 0% { transform: scale(1); opacity: 0.8; } 50% { transform: scale(1.3); opacity: 1; } 100% { transform: scale(1); opacity: 0.8; } }

/* Quadrant Light Mode Overrides */
.light-mode .master-rectangle { background: #fff; border-color: #202124; box-shadow: 15px 15px 0px #202124; }
.light-mode .quadrant { background: #F8F9FA; border-color: #202124; box-shadow: 5px 5px 0 #4285F4; }
.light-mode .elf-cycle-frame {
    background:
        linear-gradient(#FBBC05, #FBBC05) padding-box,
        linear-gradient(130deg, #EA4335, #4285F4) border-box;
    box-shadow: 0 0 28px rgba(234, 67, 53, 0.45), 0 0 34px rgba(66, 133, 244, 0.25);
}
.light-mode .stat-col { background: #4285F4; box-shadow: none; }
.light-mode .stat-col:hover { background: #34A853; }
.light-mode .dir-row { background: #fff; border-color: #202124; }

/* Quadrant Camo Mode Overrides */
.camo-mode .master-rectangle { background: #F5F1E0; border-color: #3B5323; box-shadow: 15px 15px 0px #3B5323; }
.camo-mode .quadrant { background: #EDEADB; border-color: #8F9779; box-shadow: 5px 5px 0 #6B8E23; }
.camo-mode .elf-cycle-frame {
    background:
        linear-gradient(#C9CBA3, #C9CBA3) padding-box,
        linear-gradient(130deg, #6B8E23, #3B5323) border-box;
    box-shadow: 0 0 28px rgba(107, 142, 35, 0.45), 0 0 34px rgba(59, 83, 35, 0.3);
}
.camo-mode .stat-col { background: #6B8E23; box-shadow: none; }
.camo-mode .stat-col:hover { background: #3B5323; }
.camo-mode .dir-row { background: #F5F1E0; border-color: #8F9779; }
@media(max-width: 700px) {
    .master-rectangle { padding: 12px; }
    .quadrant { padding: 14px; }
    .intro-cols { grid-template-columns: 1fr; }
}

/* ==================================================
   FOOTER
================================================== */
footer { margin-top: 60px; border-top: 3px dashed var(--matrix-dark); padding-top: 25px; text-align: center; }
.social-links { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.social-links a { color: var(--text-muted); text-decoration: none; font-weight: bold; }
.social-links a:hover { color: var(--matrix-green); }

/* ==================================================
   BRAND TYPOGRAPHY (GOTHIC & MATRIX)
================================================== */
.brand-gothic {
    font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, serif; /* Sharp Gothic Vibe */
    font-weight: 900;
    text-transform: uppercase;
    color: var(--matrix-green);
    transition: all 0.3s ease;
}

/* Light Mode Overrides for the Brand Text */
.light-mode .brand-gothic {
    color: #00FF41 !important; /* Force maximum Matrix Green */
    -webkit-text-stroke: 1px #ffffff; /* White text border */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* Hard shadow for depth */
    background: rgba(0, 0, 0, 0.05); /* Slight dark background to create the inset base */
    padding: 2px 10px;
    border-radius: 4px;
    box-shadow: inset 2px 2px 6px rgba(0, 0, 0, 0.4); /* The requested inset effect */
}

/* Camo Mode Overrides for the Brand Text */
.camo-mode .brand-gothic {
    color: #3B5323 !important;
    -webkit-text-stroke: 1px #EDEADB;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    background: rgba(0, 0, 0, 0.05);
    padding: 2px 10px;
    border-radius: 4px;
    box-shadow: inset 2px 2px 6px rgba(0, 0, 0, 0.25);
}

/* ==================================================
   VECTOR ICONS (Theme Toggle & Social Links)
================================================== */
.icon-svg { width: 1.1rem; height: 1.1rem; display: inline-block; vertical-align: -3px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-icon-wrap { display: inline-flex; align-items: center; margin-right: 8px; }
.theme-icon-wrap .icon-svg { color: var(--matrix-green); filter: drop-shadow(0 0 4px currentColor); animation: pulseIcon 2s infinite; }
.light-mode .theme-icon-wrap .icon-svg, .camo-mode .theme-icon-wrap .icon-svg { color: var(--matrix-dim); }

.social-links a { display: inline-flex; align-items: center; gap: 6px; }
.social-links .icon-svg { width: 1.15rem; height: 1.15rem; color: var(--text-muted); transition: color 0.2s, filter 0.2s; }
.social-links a:hover .icon-svg { color: var(--matrix-green); filter: drop-shadow(0 0 5px var(--matrix-green)); }

/* ==================================================
   APP SHOWCASE (For downloadable_apps.php)
================================================== */
/* --- Apps view toolbar --- */
.apps-view-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    justify-content: flex-end;
}
.apps-view-label {
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--text-muted);
}
.apps-view-btn {
    font-size: 0.75rem;
    padding: 6px 16px;
    letter-spacing: 1.5px;
    min-width: 130px;
    justify-content: center;
}

/* --- Base grid (defaults to 1-col, JS adds a view class) --- */
.app-showcase-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

/* 2-COL view */
.app-showcase-grid.view-2col {
    grid-template-columns: 1fr;
    gap: 30px;
}
@media(min-width: 800px) {
    .app-showcase-grid.view-2col { grid-template-columns: repeat(2, 1fr); }
}

/* GRID view — 3 columns min, 4 at wider screens */
.app-showcase-grid.view-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
@media(min-width: 700px) {
    .app-showcase-grid.view-grid { grid-template-columns: repeat(3, 1fr); }
}
@media(min-width: 1100px) {
    .app-showcase-grid.view-grid { grid-template-columns: repeat(4, 1fr); }
}
.app-showcase-grid.view-grid .app-card {
    padding: 18px;
    gap: 10px;
    border-radius: 16px;
}
.app-showcase-grid.view-grid .app-card-thumb { height: 110px; }
.app-showcase-grid.view-grid .app-card-desc { font-size: 0.82rem; -webkit-line-clamp: 3; }

/* MICRO view — dense small tiles */
.app-showcase-grid.view-micro {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
@media(min-width: 500px)  { .app-showcase-grid.view-micro { grid-template-columns: repeat(3, 1fr); } }
@media(min-width: 750px)  { .app-showcase-grid.view-micro { grid-template-columns: repeat(4, 1fr); } }
@media(min-width: 1000px) { .app-showcase-grid.view-micro { grid-template-columns: repeat(5, 1fr); } }
@media(min-width: 1300px) { .app-showcase-grid.view-micro { grid-template-columns: repeat(6, 1fr); } }

.app-showcase-grid.view-micro .app-card {
    padding: 12px 10px;
    gap: 7px;
    border-radius: 12px;
}
.app-showcase-grid.view-micro .app-card-thumb {
    height: 70px;
    border-radius: 8px;
}
.app-showcase-grid.view-micro .app-card-desc,
.app-showcase-grid.view-micro .app-card-open-hint {
    display: none;
}
.app-showcase-grid.view-micro .app-card-tile-stats {
    gap: 4px;
}
.app-showcase-grid.view-micro .app-tile-stat-pill:not(.app-tile-hearts) {
    display: none;
}
.app-showcase-grid.view-micro .star-display {
    display: none;
}
.app-showcase-grid.view-micro .app-card h2 {
    font-size: 0.75rem;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.app-showcase-grid.view-micro .app-card-badge {
    font-size: 0.55rem;
    padding: 2px 6px;
}

.app-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 28px;
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(0, 20, 0, 0.55), rgba(0, 0, 0, 0.75));
    border: var(--tile-border);
    box-shadow:
        var(--box-shadow-3d),
        inset 0 2px 4px rgba(255, 255, 255, 0.06),
        inset 0 -12px 24px rgba(0, 0, 0, 0.5);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
}
.app-card::before {
    content: "";
    position: absolute;
    top: -40%; left: -20%;
    width: 140%; height: 140%;
    background: radial-gradient(circle, rgba(0, 255, 65, 0.10), transparent 60%);
    pointer-events: none;
}
.app-card:hover {
    transform: translate(-5px, -5px);
    box-shadow:
        12px 12px 0px var(--matrix-green),
        inset 0 2px 4px rgba(255, 255, 255, 0.08),
        inset 0 -12px 24px rgba(0, 0, 0, 0.5);
}
.app-card-thumb {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 14px;
    border: 2px solid var(--matrix-dim);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6), 0 0 15px rgba(0, 255, 65, 0.15);
    position: relative;
    z-index: 1;
}
.app-card-header { display: flex; align-items: center; gap: 16px; position: relative; z-index: 1; }
.app-card-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid var(--matrix-dim);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6), 0 0 15px rgba(0, 255, 65, 0.15);
}
.app-card-icon .icon-svg { width: 28px; height: 28px; color: var(--matrix-green); }
.app-card-titles { display: flex; flex-direction: column; gap: 4px; }
.app-card-titles h2 { font-size: 1.2rem; margin: 0; border: none; padding: 0; }
.app-card-badge {
    align-self: flex-start;
    font-size: 0.65rem;
    letter-spacing: 1px;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid var(--matrix-dim);
    color: var(--matrix-dim);
    background: rgba(0, 0, 0, 0.3);
}
.app-card-desc { position: relative; z-index: 1; color: var(--text-muted); font-size: 0.95rem; flex-grow: 1; }
.app-card-meta {
    position: relative; z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    padding: 12px 0;
    border-top: 1px dashed var(--matrix-dark);
    border-bottom: 1px dashed var(--matrix-dark);
    font-size: 0.78rem;
    color: var(--text-muted);
}
.app-card-meta span strong { color: var(--matrix-green); }
.app-card-action { position: relative; z-index: 1; }

/* Clickable app tiles — open detail modal */
.app-card-tile {
    cursor: pointer;
    user-select: none;
    outline: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.app-card-tile:focus-visible {
    outline: 2px solid #fb00ff;
    outline-offset: 3px;
}
.app-card-tile:active {
    transform: translate(-2px, -2px);
}
.app-card-desc-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.app-card-tile-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}
.app-tile-stat-pill {
    font-size: 0.72rem;
    padding: 3px 8px;
    border-radius: 12px;
    border: 1px solid var(--matrix-dark);
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.35);
}
.app-tile-hearts { color: #fb00ff; border-color: rgba(251, 0, 255, 0.35); }
.app-card-open-hint {
    position: relative;
    z-index: 1;
    margin-top: auto;
    text-align: center;
    font-size: 0.72rem;
    letter-spacing: 2px;
    color: var(--text-muted);
    opacity: 0.85;
    transition: color 0.2s, text-shadow 0.2s;
}
.app-card-tile:hover .app-card-open-hint {
    color: var(--matrix-green);
    text-shadow: 0 0 8px var(--matrix-dim);
}
.app-card-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    object-fit: none;
}
.app-card-thumb-placeholder .icon-svg {
    width: 2.5rem;
    height: 2.5rem;
    color: var(--matrix-dim);
    opacity: 0.6;
}

body.app-detail-open { overflow: hidden; }

/* App detail modal — full product sheet */
.app-detail-modal {
    position: fixed;
    inset: 0;
    z-index: 2700;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(4px);
}
.app-detail-modal.visible { display: flex; }

.app-detail-dialog {
    width: min(980px, 98vw);
    max-height: 92vh;
    overflow-y: auto;
    background: linear-gradient(160deg, rgba(8, 12, 8, 0.98), rgba(0, 0, 0, 0.96));
    border: 2px solid var(--matrix-green);
    border-radius: 18px;
    padding: 0;
    box-shadow:
        0 0 0 1px rgba(0, 255, 65, 0.15),
        0 24px 80px rgba(0, 0, 0, 0.65),
        12px 12px 0 var(--matrix-dim);
    animation: appDetailIn 0.28s ease-out;
}
@keyframes appDetailIn {
    from { opacity: 0; transform: translateY(16px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.app-detail-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 22px 16px;
    border-bottom: 1px dashed var(--matrix-dark);
    background: linear-gradient(90deg, rgba(251, 0, 255, 0.06), transparent 55%);
}
.app-detail-head-text h2 {
    margin: 8px 0 4px;
    font-size: 1.45rem;
    border: none;
    padding: 0;
    text-shadow: 0 0 16px rgba(0, 255, 65, 0.35);
}
.app-detail-type-badge { margin-bottom: 4px; }
.app-detail-subtitle {
    margin: 0;
    font-size: 0.82rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}
.app-detail-close { flex-shrink: 0; border-color: #fb00ff; color: #fb00ff; }

.app-detail-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 0;
}
@media (max-width: 780px) {
    .app-detail-layout { grid-template-columns: 1fr; }
}

.app-detail-sidebar {
    padding: 20px;
    border-right: 1px dashed var(--matrix-dark);
    background: rgba(0, 255, 65, 0.03);
    display: flex;
    flex-direction: column;
    gap: 16px;
}
@media (max-width: 780px) {
    .app-detail-sidebar { border-right: none; border-bottom: 1px dashed var(--matrix-dark); }
}

.app-detail-thumb {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid var(--matrix-dim);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.15);
}
.app-detail-meta-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
}
.app-detail-meta-list > div {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 8px;
    align-items: baseline;
    font-size: 0.82rem;
}
.app-detail-meta-list dt {
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.65rem;
}
.app-detail-meta-list dd { margin: 0; color: var(--matrix-green); word-break: break-word; }
.app-detail-filename { font-size: 0.75rem; opacity: 0.9; }
.app-detail-hearts-dd { color: #fb00ff !important; }

.app-detail-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}
.app-detail-download {
    justify-content: center;
    text-align: center;
    border-color: var(--matrix-green);
    font-size: 0.88rem;
    padding: 12px;
}
.app-detail-actions .app-heart-form { width: 100%; }
.app-detail-actions .app-heart-btn {
    width: 100%;
    justify-content: center;
    padding: 10px;
}

.app-detail-main {
    padding: 20px 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    min-width: 0;
}
.app-detail-section-title {
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--matrix-dark);
    color: #fb00ff;
}
.app-detail-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.75;
}
.app-detail-readme-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
    font-size: 0.85rem;
}
.app-detail-readme-link {
    margin-left: auto;
    font-size: 0.72rem;
    padding: 5px 12px;
    border-color: #fb00ff;
    color: #fb00ff;
}
.app-detail-readme-frame {
    width: 100%;
    height: min(280px, 40vh);
    border: 1px solid var(--matrix-dark);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.4);
}
.app-detail-reviews-section .review-form { margin-bottom: 12px; }
.app-detail-review-actions { margin-top: 8px; }

.light-mode .app-detail-dialog {
    background: linear-gradient(160deg, #ffffff, #f4f6f8);
    border-color: #4285F4;
    box-shadow: 12px 12px 0 #202124;
}
.light-mode .app-detail-sidebar { background: #f8f9fa; border-color: #dadce0; }
.light-mode .app-detail-head-text h2 { text-shadow: none; color: #202124; }
.light-mode .app-detail-meta-list dd { color: #202124; }
.light-mode .app-tile-stat-pill { background: #f1f3f4; border-color: #dadce0; color: #555; }

.camo-mode .app-detail-dialog {
    background: linear-gradient(160deg, #F5F1E0, #EDEADB);
    border-color: #6B8E23;
    box-shadow: 12px 12px 0 #3B5323;
}
.camo-mode .app-detail-sidebar { background: rgba(107, 142, 35, 0.08); }
.camo-mode .app-detail-head-text h2 { text-shadow: none; color: #2F3B1F; }
.camo-mode .app-detail-meta-list dd { color: #2F3B1F; }
.camo-mode .app-tile-stat-pill { background: #EDEADB; border-color: #8F9779; }

.readme-preview-wrap {
    position: relative;
    z-index: 2;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}
.readme-preview-btn { font-size: 0.8rem; }
.readme-tooltip {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.97);
    width: min(780px, 94vw);
    min-height: 320px;
    max-height: 86vh;
    background: var(--bg-dark);
    border: 2px solid var(--matrix-dim);
    border-radius: 12px;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.62), 12px 12px 0 var(--matrix-dim);
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.16s ease, transform 0.16s ease;
    z-index: 2500;
}
.readme-tooltip.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}
.readme-tooltip-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.85rem;
}
.readme-tooltip-head a {
    color: #fb00ff;
    text-decoration: none;
    font-weight: bold;
}
.readme-tooltip iframe {
    width: 100%;
    height: min(66vh, 520px);
    border: 1px solid var(--matrix-dark);
    border-radius: 8px;
    background: #fff;
}
.readme-elf-badge {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid #00ff88;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.4), inset 0 0 8px rgba(209, 0, 255, 0.3);
    background: rgba(8, 30, 20, 0.8);
}
.readme-elf-badge svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: #8fffd0;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.light-mode .readme-tooltip {
    background: #fff;
    border-color: #202124;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.46), 10px 10px 0 #4285F4;
}
.camo-mode .readme-tooltip {
    background: #F5F1E0;
    border-color: #3B5323;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.46), 10px 10px 0 #6B8E23;
}

.light-mode .app-card { background: linear-gradient(145deg, #ffffff, #f1f3f4); box-shadow: var(--box-shadow-3d), inset 0 2px 4px rgba(255,255,255,0.6), inset 0 -12px 20px rgba(0,0,0,0.05); }
.light-mode .app-card:hover { box-shadow: 12px 12px 0px var(--matrix-dim), inset 0 2px 4px rgba(255,255,255,0.6), inset 0 -12px 20px rgba(0,0,0,0.05); }
.light-mode .app-card-icon { background: #fff; box-shadow: inset 0 2px 6px rgba(0,0,0,0.1), 0 0 10px rgba(66,133,244,0.15); }
.light-mode .apps-view-label { color: #555; }
.camo-mode .apps-view-label { color: #6B6B4A; }

.camo-mode .app-card { background: linear-gradient(145deg, #F5F1E0, #E4E0CC); box-shadow: var(--box-shadow-3d), inset 0 2px 4px rgba(255,255,255,0.5), inset 0 -12px 20px rgba(0,0,0,0.08); }
.camo-mode .app-card:hover { box-shadow: 12px 12px 0px var(--matrix-dim), inset 0 2px 4px rgba(255,255,255,0.5), inset 0 -12px 20px rgba(0,0,0,0.08); }
.camo-mode .app-card-icon { background: #EDEADB; box-shadow: inset 0 2px 6px rgba(0,0,0,0.15), 0 0 10px rgba(107,142,35,0.2); }

/* ==================================================
   ADMIN DASH + APP MANAGER MODAL
================================================== */
.admin-metric-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.admin-dashboard-grid { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }

.admin-line-chart-wrap { display: flex; flex-direction: column; gap: 8px; }
.admin-line-chart {
    width: 100%;
    height: 180px;
    border: 1px solid var(--matrix-dim);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.45);
}
.admin-line-chart polyline {
    fill: none;
    stroke: #fb00ff;
    stroke-width: 2;
    vector-effect: non-scaling-stroke;
}
.admin-line-labels {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.admin-donut-wrap {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}
.admin-donut {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: 2px solid var(--matrix-dim);
    box-shadow: inset 0 0 0 22px rgba(0, 0, 0, 0.6), 0 0 12px rgba(251, 0, 255, 0.3);
}
.admin-donut-legend p {
    margin: 0 0 6px 0;
    color: var(--text-muted);
    font-size: 0.88rem;
}
.admin-legend-chip {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 7px;
}
.admin-chip-auth { background: #fb00ff; }
.admin-chip-guest { background: var(--matrix-green); }

.admin-bar-list { display: flex; flex-direction: column; gap: 12px; }
.admin-bar-row-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.88rem;
}
.admin-bar-row-head strong { color: var(--matrix-green); }
.admin-bar-track {
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--matrix-dark);
}
.admin-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--matrix-dim), #fb00ff);
}

.admin-hour-chart {
    display: grid;
    grid-template-columns: repeat(24, minmax(10px, 1fr));
    align-items: end;
    gap: 4px;
    height: 170px;
    padding: 10px;
    border-left: 2px solid var(--matrix-dark);
    border-bottom: 2px solid var(--matrix-dark);
}
.admin-hour-col {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
}
.admin-hour-bar {
    width: 100%;
    max-width: 12px;
    border-radius: 4px 4px 0 0;
    background: var(--matrix-dim);
    box-shadow: 0 0 8px rgba(0, 255, 65, 0.3);
}
.admin-hour-col small {
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 0.6rem;
}

.admin-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
}
.admin-modal.hidden { display: none; }
.admin-modal-dialog {
    width: min(760px, 96vw);
    max-height: 92vh;
    overflow-y: auto;
    background: var(--bg-dark);
    border: 2px solid #fb00ff;
    border-radius: 14px;
    padding: 22px;
    box-shadow: 10px 10px 0 var(--matrix-dim);
}

.light-mode .admin-line-chart { background: #fff; border-color: #202124; }
.light-mode .admin-hour-bar { background: #4285F4; box-shadow: none; }
.light-mode .admin-modal-dialog { background: #fff; border-color: #202124; box-shadow: 10px 10px 0 #4285F4; }
.camo-mode .admin-hour-bar { background: #6B8E23; box-shadow: none; }
.camo-mode .admin-modal-dialog { background: #F5F1E0; border-color: #3B5323; box-shadow: 10px 10px 0 #6B8E23; }

/* ==================================================
   APP RATINGS & REVIEWS (apps.php)
================================================== */
.star-display { display: inline-flex; gap: 1px; font-size: 1rem; position: relative; z-index: 1; }
.star-display .star { color: var(--matrix-dark); }
.star-display .star.star-filled { color: #fb00ff; text-shadow: 0 0 6px rgba(251, 0, 255, 0.55); }
.star-display.small { font-size: 0.85rem; }

.app-review-summary {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 0;
    border-top: 1px dashed var(--matrix-dark);
}
.review-count-label { font-size: 0.78rem; color: var(--text-muted); }

.review-modal {
    position: fixed;
    inset: 0;
    z-index: 2600;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
}
.review-modal.visible { display: flex; }
.review-modal-dialog {
    width: min(700px, 96vw);
    max-height: 88vh;
    overflow-y: auto;
    background: var(--bg-dark);
    border: 2px solid #fb00ff;
    border-radius: 14px;
    padding: 22px;
    box-shadow: 10px 10px 0 var(--matrix-dim);
}
.review-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}
.review-modal-head h3 { margin: 0; color: #fb00ff; font-size: 1.05rem; }

.review-form-label { display: block; margin-bottom: 6px; color: var(--text-muted); font-size: 0.85rem; }
.review-form { border-bottom: 1px dashed var(--matrix-dark); padding-bottom: 16px; margin-bottom: 16px; }

.star-rating-input { position: relative; display: inline-flex; flex-direction: row-reverse; gap: 4px; font-size: 1.8rem; margin-bottom: 10px; }
.star-rating-input input { position: absolute; opacity: 0; pointer-events: none; }
.star-rating-input label { color: var(--matrix-dark); cursor: pointer; transition: color 0.15s ease, transform 0.1s ease; }
.star-rating-input label:hover { transform: scale(1.12); }
.star-rating-input label:hover,
.star-rating-input label:hover ~ label,
.star-rating-input input:checked ~ label {
    color: #fb00ff;
    text-shadow: 0 0 8px rgba(251, 0, 255, 0.5);
}

.review-textarea {
    width: 100%;
    padding: 10px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--matrix-dim);
    color: var(--matrix-green);
    border-radius: 6px;
    font-family: inherit;
    resize: vertical;
}

.review-delete-form { margin-bottom: 16px; }
.review-delete-btn {
    background: transparent;
    border: none;
    color: red;
    text-decoration: underline;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.8rem;
    padding: 0;
}

.review-guest-note { border-bottom: 1px dashed var(--matrix-dark); padding-bottom: 16px; margin-bottom: 16px; color: var(--text-muted); }
.review-guest-note a { color: #fb00ff; font-weight: bold; text-decoration: none; }

.review-list { display: flex; flex-direction: column; gap: 14px; }
.review-card {
    border: 1px solid var(--matrix-dim);
    border-left: 3px solid #fb00ff;
    border-radius: 8px;
    padding: 12px 14px;
    background: rgba(0, 0, 0, 0.35);
}
.review-card-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.review-avatar { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; border: 1px solid var(--matrix-dim); }
.review-author { color: var(--matrix-green); font-size: 0.9rem; }
.review-date { margin-left: auto; font-size: 0.72rem; color: var(--text-muted); }
.review-text { font-size: 0.9rem; color: var(--text-muted); white-space: pre-wrap; }

.light-mode .review-modal-dialog { background: #fff; border-color: #202124; box-shadow: 10px 10px 0 #4285F4; }
.light-mode .review-card { background: #f8f9fa; border-color: #4285F4; }
.light-mode .review-textarea { background: #fff; color: #202124; border-color: #4285F4; }
.light-mode .star-display .star.star-filled { color: #EA4335; text-shadow: none; }
.light-mode .star-rating-input label:hover,
.light-mode .star-rating-input label:hover ~ label,
.light-mode .star-rating-input input:checked ~ label { color: #EA4335; text-shadow: none; }

.camo-mode .review-modal-dialog { background: #F5F1E0; border-color: #3B5323; box-shadow: 10px 10px 0 #6B8E23; }
.camo-mode .review-card { background: #EDEADB; border-color: #6B8E23; }
.camo-mode .review-textarea { background: #F5F1E0; color: #2F3B1F; border-color: #6B8E23; }
.camo-mode .star-display .star.star-filled { color: #6B8E23; text-shadow: none; }
.camo-mode .star-rating-input label:hover,
.camo-mode .star-rating-input label:hover ~ label,
.camo-mode .star-rating-input input:checked ~ label { color: #6B8E23; text-shadow: none; }

/* ==================================================
   COMMUNITY BLOG (blog.php)
================================================== */
.blog-input, .blog-textarea {
    width: 100%;
    padding: 10px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--matrix-dim);
    color: var(--matrix-green);
    border-radius: 6px;
    font-family: inherit;
    margin-bottom: 10px;
}
.blog-textarea { resize: vertical; margin-bottom: 0; }
.blog-post-form .blog-input { margin-bottom: 10px; }

.blog-post-list { display: flex; flex-direction: column; gap: 22px; }
.blog-post-card { cursor: default; }
.blog-post-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.blog-post-body { color: var(--text-muted); margin-bottom: 14px; white-space: pre-wrap; }
.blog-post-footer {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 0;
    border-top: 1px dashed var(--matrix-dark);
    border-bottom: 1px dashed var(--matrix-dark);
    margin-bottom: 14px;
}

.heart-form { display: inline-flex; }
.heart-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px solid var(--matrix-dim);
    color: var(--text-muted);
    padding: 5px 12px;
    border-radius: 999px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    transition: all 0.15s ease;
}
.heart-btn:hover { border-color: #fb00ff; color: #fb00ff; transform: scale(1.05); }
.heart-btn.hearted { border-color: #fb00ff; color: #fb00ff; background: rgba(251, 0, 255, 0.12); }
.heart-btn .heart-icon { font-size: 0.95rem; }
.heart-btn.small { font-size: 0.75rem; padding: 3px 10px; }
.heart-btn-static { cursor: default; opacity: 0.7; }
.heart-btn-static:hover { transform: none; }

/* Live heart click feedback */
.heart-btn-pulse {
    animation: heartBtnPulse 0.32s ease;
    border-color: #fb00ff !important;
    color: #fb00ff !important;
    box-shadow: 0 0 16px rgba(251, 0, 255, 0.45);
}
.heart-btn-fail { animation: heartBtnFail 0.4s ease; border-color: #ff4444 !important; }
.heart-count-pop { animation: heartCountPop 0.35s ease; display: inline-block; }

@keyframes heartBtnPulse {
    0% { transform: scale(1); }
    40% { transform: scale(1.18); }
    100% { transform: scale(1.05); }
}
@keyframes heartBtnFail {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}
@keyframes heartCountPop {
    0% { transform: scale(1); color: inherit; }
    35% { transform: scale(1.45); color: #fb00ff; text-shadow: 0 0 10px #fb00ff; }
    100% { transform: scale(1); }
}

/* Elf arrow heart burst FX (spawned on each live heart click) */
.heart-burst-layer {
    position: fixed;
    z-index: 9999;
    pointer-events: none;
    width: 0;
    height: 0;
    transform: translate(-50%, -50%);
}
.heart-burst-scene {
    position: relative;
    width: 120px;
    height: 90px;
    transform: translate(-50%, -70%);
}
.heart-burst-elf {
    position: absolute;
    left: 0;
    bottom: 8px;
    width: 28px;
    height: 28px;
    animation: heartElfRecoil 0.85s ease-out forwards;
}
.heart-burst-elf svg {
    width: 100%;
    height: 100%;
    fill: var(--matrix-green);
    filter: drop-shadow(0 0 6px rgba(0, 255, 65, 0.7));
}
.heart-burst-arrow {
    position: absolute;
    left: 22px;
    bottom: 18px;
    width: 36px;
    height: 10px;
    animation: heartArrowFly 0.85s ease-out forwards;
}
.heart-burst-arrow svg {
    width: 100%;
    height: 100%;
    stroke: #7df9ff;
    fill: none;
    stroke-width: 2;
    filter: drop-shadow(0 0 4px rgba(125, 249, 255, 0.9));
}
.heart-burst-heart {
    position: absolute;
    left: 52px;
    bottom: 10px;
    font-size: 1.35rem;
    color: #fb00ff;
    text-shadow: 0 0 12px rgba(251, 0, 255, 0.85);
    animation: heartFloatAway 0.9s ease-out forwards;
}
.heart-burst-ice {
    position: absolute;
    width: 7px;
    height: 10px;
    background: linear-gradient(160deg, #e8fcff, #7df9ff 45%, #4285F4);
    clip-path: polygon(50% 0%, 85% 35%, 70% 100%, 30% 100%, 15% 35%);
    opacity: 0;
    box-shadow: 0 0 6px rgba(125, 249, 255, 0.8);
}
.heart-burst-ice.ice-a { left: 58px; bottom: 22px; animation: iceShardA 0.9s ease-out forwards; }
.heart-burst-ice.ice-b { left: 68px; bottom: 14px; animation: iceShardB 0.88s ease-out 0.05s forwards; }
.heart-burst-ice.ice-c { left: 48px; bottom: 6px;  animation: iceShardC 0.92s ease-out 0.03s forwards; }
.heart-burst-ice.ice-d { left: 74px; bottom: 28px; animation: iceShardD 0.86s ease-out 0.08s forwards; }

@keyframes heartElfRecoil {
    0% { transform: translateX(0) scale(1); opacity: 1; }
    15% { transform: translateX(-6px) scale(1.08); opacity: 1; }
    100% { transform: translateX(-2px) scale(0.92); opacity: 0; }
}
@keyframes heartArrowFly {
    0% { transform: translateX(0) scaleX(0.4); opacity: 0; }
    12% { opacity: 1; transform: translateX(0) scaleX(1); }
    55% { transform: translateX(28px) scaleX(1.1); opacity: 1; }
    100% { transform: translateX(42px) scaleX(0.6); opacity: 0; }
}
@keyframes heartFloatAway {
    0% { transform: translate(0, 0) scale(0.5) rotate(0deg); opacity: 0; }
    18% { transform: translate(8px, -6px) scale(1.15) rotate(-8deg); opacity: 1; }
    100% { transform: translate(22px, -72px) scale(0.85) rotate(12deg); opacity: 0; }
}
@keyframes iceShardA {
    0% { transform: translate(0, 0) rotate(0deg) scale(0.4); opacity: 0; }
    20% { opacity: 1; transform: translate(4px, -8px) rotate(-25deg) scale(1); }
    100% { transform: translate(18px, -48px) rotate(-60deg) scale(0.3); opacity: 0; }
}
@keyframes iceShardB {
    0% { transform: translate(0, 0) rotate(0deg) scale(0.4); opacity: 0; }
    20% { opacity: 1; transform: translate(10px, -4px) rotate(20deg) scale(1); }
    100% { transform: translate(32px, -40px) rotate(55deg) scale(0.25); opacity: 0; }
}
@keyframes iceShardC {
    0% { transform: translate(0, 0) rotate(0deg) scale(0.4); opacity: 0; }
    20% { opacity: 1; transform: translate(-6px, -6px) rotate(-15deg) scale(1); }
    100% { transform: translate(-14px, -52px) rotate(-45deg) scale(0.2); opacity: 0; }
}
@keyframes iceShardD {
    0% { transform: translate(0, 0) rotate(0deg) scale(0.4); opacity: 0; }
    20% { opacity: 1; transform: translate(14px, -10px) rotate(35deg) scale(1); }
    100% { transform: translate(26px, -56px) rotate(80deg) scale(0.22); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .heart-burst-layer { display: none; }
    .heart-btn-pulse, .heart-count-pop { animation: none; }
}

.blog-comment-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.blog-comment {
    border: 1px solid var(--matrix-dim);
    border-left: 3px solid var(--matrix-green);
    border-radius: 8px;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.3);
}
.blog-comment-body { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 8px; white-space: pre-wrap; }
.blog-reply-form { margin-top: 4px; }

.light-mode .blog-input, .light-mode .blog-textarea { background: #fff; color: #202124; border-color: #4285F4; }
.light-mode .blog-comment { background: #f8f9fa; border-color: #4285F4; }
.light-mode .heart-btn:hover, .light-mode .heart-btn.hearted { border-color: #EA4335; color: #EA4335; background: rgba(234, 67, 53, 0.12); }

.camo-mode .blog-input, .camo-mode .blog-textarea { background: #F5F1E0; color: #2F3B1F; border-color: #6B8E23; }
.camo-mode .blog-comment { background: #EDEADB; border-color: #6B8E23; }
.camo-mode .heart-btn:hover, .camo-mode .heart-btn.hearted { border-color: #3B5323; color: #3B5323; background: rgba(59, 83, 35, 0.15); }

/* ==================================================
   ABOUT PAGE — ARSENAL CHART + SOCIAL SECTION
================================================== */
.arsenal-chart { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.arsenal-bar-row { display: grid; grid-template-columns: 72px 1fr 28px; align-items: center; gap: 8px; }
.arsenal-bar-label { font-size: 0.72rem; letter-spacing: 1px; color: var(--text-muted); text-align: right; }
.arsenal-bar-track { height: 10px; background: rgba(0,255,65,0.12); border-radius: 6px; overflow: hidden; border: 1px solid var(--matrix-dark); }
.arsenal-bar-fill { height: 100%; background: linear-gradient(90deg, var(--matrix-dim), #fb00ff); border-radius: 6px; min-width: 4px; transition: width 0.4s ease; }
.arsenal-bar-val { font-size: 0.75rem; color: #fb00ff; font-weight: bold; }

.about-social-tile { margin-top: 30px; }
.about-social-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
@media (min-width: 600px) {
    .about-social-links { grid-template-columns: repeat(4, 1fr); }
}
.about-social-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 10px;
    border-radius: 14px;
    border: 2px solid var(--matrix-dim);
    background: rgba(0,0,0,0.4);
    color: var(--matrix-green);
    text-decoration: none;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    font-weight: bold;
    letter-spacing: 1px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.about-social-btn small { font-size: 0.65rem; letter-spacing: 0.5px; opacity: 0.7; font-weight: normal; }
.about-social-btn .icon-svg { width: 28px; height: 28px; }
.about-social-btn:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,255,65,0.2); border-color: var(--matrix-green); }
.about-social-yt:hover  { border-color: #ff0000; color: #ff0000; box-shadow: 0 8px 24px rgba(255,0,0,0.2); }
.about-social-ig:hover  { border-color: #e1306c; color: #e1306c; box-shadow: 0 8px 24px rgba(225,48,108,0.2); }
.about-social-tw:hover  { border-color: #1da1f2; color: #1da1f2; box-shadow: 0 8px 24px rgba(29,161,242,0.2); }
.about-social-fb:hover  { border-color: #1877f2; color: #1877f2; box-shadow: 0 8px 24px rgba(24,119,242,0.2); }

.light-mode .about-social-btn { background: #fff; border-color: #4285F4; color: #202124; }
.light-mode .about-social-btn:hover { border-color: #EA4335; }
.camo-mode .about-social-btn { background: #EDEADB; border-color: #6B8E23; color: #2F3B1F; }
.camo-mode .about-social-btn:hover { border-color: #3B5323; }

/* Prevent wide images/iframes/embeds from breaking layout on mobile */
img, iframe, video, embed, object { max-width: 100%; }
pre, code { white-space: pre-wrap; word-break: break-word; max-width: 100%; }
table { max-width: 100%; }

/* ==================================================
   APP CARD HEART BUTTON + BOTTOM ROW
================================================== */
.app-card-bottom-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
    margin-top: auto;
}
.app-heart-form { display: flex; }
.app-heart-btn {
    padding: 8px 14px;
    font-size: 0.9rem;
    white-space: nowrap;
    flex-shrink: 0;
}
/* Micro view — hide heart count text, keep icon */
.app-showcase-grid.view-micro .app-card-bottom-row { gap: 5px; }
.app-showcase-grid.view-micro .app-heart-btn .heart-count { display: none; }

/* ==================================================
   COMMUNITY STATS — TOP CARDS (index.php)
================================================== */
.community-top-card {
    border: 1px dashed var(--matrix-dim);
    border-radius: 10px;
    padding: 14px 16px;
    background: rgba(0, 255, 65, 0.04);
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.community-top-card-app {
    border-color: #fb00ff44;
    background: rgba(251, 0, 255, 0.04);
}
.community-top-label {
    font-size: 0.65rem;
    letter-spacing: 2px;
    color: var(--text-muted);
}
.community-top-title {
    font-size: 1rem;
    font-weight: bold;
    color: var(--matrix-green);
    line-height: 1.3;
}
.community-top-card-app .community-top-title { color: #fb00ff; }
.community-top-count {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--matrix-green);
    text-shadow: 0 0 10px var(--matrix-dim);
}
.community-top-card-app .community-top-count { color: #fb00ff; text-shadow: 0 0 10px #fb00ff88; }

.light-mode .community-top-card { background: #fff; border-color: #4285F4; }
.light-mode .community-top-card-app { background: #fff9ff; border-color: #EA4335; }
.light-mode .community-top-title { color: #202124; }
.light-mode .community-top-card-app .community-top-title { color: #EA4335; }
.light-mode .community-top-count { color: #4285F4; text-shadow: none; }
.light-mode .community-top-card-app .community-top-count { color: #EA4335; text-shadow: none; }

.camo-mode .community-top-card { background: #EDEADB; border-color: #6B8E23; }
.camo-mode .community-top-title { color: #2F3B1F; }
.camo-mode .community-top-count { color: #3B5323; text-shadow: none; }

/* ==================================================
   LINKS PAGE
================================================== */
.links-page { max-width: 960px; margin: 0 auto; }

.links-signoff {
    position: relative;
    overflow: hidden;
    margin-bottom: 36px;
    border-color: #fb00ff;
    box-shadow: inset 0 0 30px rgba(251, 0, 255, 0.08), var(--box-shadow-3d);
}
.links-signoff-glow {
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at 30% 50%, rgba(251, 0, 255, 0.12), transparent 55%),
                radial-gradient(circle at 70% 40%, rgba(0, 255, 65, 0.1), transparent 50%);
    pointer-events: none;
}
.links-signoff-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    padding: 8px 4px;
}
.links-signoff-badge {
    font-size: 0.65rem;
    letter-spacing: 3px;
    padding: 4px 14px;
    border: 1px solid var(--matrix-dim);
    border-radius: 20px;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.35);
}
.links-signoff-lead {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 1px;
    text-shadow: 0 0 18px var(--matrix-green);
    margin: 0;
}
.links-signoff-body {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 640px;
    line-height: 1.75;
    margin: 0;
}
.links-signoff-body a {
    color: var(--matrix-green);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s, text-shadow 0.2s;
}
.links-signoff-body a:hover {
    color: #fb00ff;
    text-shadow: 0 0 8px rgba(251, 0, 255, 0.5);
}
.links-subscribe-cta {
    margin-top: 8px;
    border-color: #ff0000 !important;
    color: #ff4444 !important;
    font-size: 0.95rem;
    padding: 12px 24px;
    gap: 10px;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.15);
}
.links-subscribe-cta:hover {
    background: rgba(255, 0, 0, 0.12);
    box-shadow: 0 0 28px rgba(255, 0, 0, 0.35);
    transform: translate(-3px, -3px);
}
.links-subscribe-cta .icon-svg { width: 1.4rem; height: 1.4rem; }

.links-section { margin-bottom: 36px; }
.links-section-title {
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 16px;
    padding-left: 12px;
    border-left: 4px solid var(--matrix-green);
    color: var(--matrix-green);
}

.links-social-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
@media (min-width: 640px) {
    .links-social-grid { grid-template-columns: repeat(4, 1fr); }
}
.links-social-card { min-height: 130px; justify-content: center; }

.links-extra-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.links-extra-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border: 1px solid var(--matrix-dim);
    border-left: 4px solid var(--matrix-green);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.45);
    color: var(--matrix-green);
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.links-extra-card:hover {
    transform: translateX(6px);
    border-color: var(--matrix-green);
    background: rgba(0, 255, 65, 0.1);
    box-shadow: 4px 4px 0 var(--matrix-dim);
}
.links-extra-glyph {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 1px solid var(--matrix-dim);
    background: rgba(0, 0, 0, 0.5);
}
.links-extra-glyph .icon-svg { width: 1.5rem; height: 1.5rem; color: var(--matrix-green); }
.links-extra-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.links-extra-text strong { font-size: 1rem; letter-spacing: 0.5px; }
.links-extra-text span { font-size: 0.82rem; color: var(--text-muted); }
.links-extra-arrow {
    font-size: 1.2rem;
    opacity: 0.5;
    transition: opacity 0.2s, transform 0.2s;
}
.links-extra-card:hover .links-extra-arrow { opacity: 1; transform: translateX(4px); }
.links-extra-home { border-left-color: #fb00ff; }
.links-extra-home:hover { border-color: #fb00ff; background: rgba(251, 0, 255, 0.08); box-shadow: 4px 4px 0 rgba(251, 0, 255, 0.35); }

.links-footer-note {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-top: 10px;
    opacity: 0.75;
}

.light-mode .links-signoff { background: #fff; box-shadow: inset 0 0 20px rgba(66, 133, 244, 0.06), var(--box-shadow-3d); }
.light-mode .links-signoff-badge { background: #f1f3f4; color: #555; border-color: #4285F4; }
.light-mode .links-signoff-lead { text-shadow: none; color: #202124; }
.light-mode .links-signoff-body a { color: #4285F4; }
.light-mode .links-signoff-body a:hover { color: #EA4335; }
.light-mode .links-extra-card { background: #fff; border-color: #4285F4; color: #202124; }
.light-mode .links-extra-card:hover { background: #f8f9fa; }
.light-mode .links-extra-glyph { background: #f1f3f4; border-color: #4285F4; }
.light-mode .links-extra-glyph .icon-svg { color: #4285F4; }

.camo-mode .links-signoff { background: #F5F1E0; }
.camo-mode .links-signoff-badge { background: #EDEADB; border-color: #6B8E23; color: #2F3B1F; }
.camo-mode .links-signoff-lead { text-shadow: none; color: #2F3B1F; }
.camo-mode .links-signoff-body a { color: #3B5323; }
.camo-mode .links-extra-card { background: #F5F1E0; border-color: #6B8E23; color: #2F3B1F; }
.camo-mode .links-extra-card:hover { background: #EDEADB; }
.camo-mode .links-extra-glyph { background: #EDEADB; border-color: #6B8E23; }
.camo-mode .links-extra-glyph .icon-svg { color: #3B5323; }

/* ==================================================
   HELP PAGE
================================================== */
.help-page { max-width: 960px; margin: 0 auto; }

.help-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 36px;
    border-color: var(--matrix-green);
    box-shadow: inset 0 0 30px rgba(0, 255, 65, 0.08), var(--box-shadow-3d);
}
.help-hero-glow {
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at 25% 50%, rgba(0, 255, 65, 0.14), transparent 55%),
                radial-gradient(circle at 75% 45%, rgba(251, 0, 255, 0.08), transparent 50%);
    pointer-events: none;
}
.help-hero-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    padding: 8px 4px;
}
.help-hero-badge {
    font-size: 0.65rem;
    letter-spacing: 3px;
    padding: 4px 14px;
    border: 1px solid var(--matrix-dim);
    border-radius: 20px;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.35);
}
.help-hero-lead {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 1px;
    text-shadow: 0 0 18px var(--matrix-green);
    margin: 0;
}
.help-hero-body {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 640px;
    line-height: 1.75;
    margin: 0;
}

.help-section { margin-bottom: 36px; }
.help-section-title {
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 16px;
    padding-left: 12px;
    border-left: 4px solid var(--matrix-green);
    color: var(--matrix-green);
}

.help-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}
@media (min-width: 720px) {
    .help-info-grid { grid-template-columns: repeat(3, 1fr); }
}
.help-info-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    border: 1px solid var(--matrix-dim);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.45);
    box-shadow: var(--box-shadow-3d);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.help-info-card:hover {
    transform: translateY(-3px);
    border-color: var(--matrix-green);
    box-shadow: 0 0 22px rgba(0, 255, 65, 0.12), var(--box-shadow-3d);
}
.help-info-glyph {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 1px solid var(--matrix-dim);
    background: rgba(0, 0, 0, 0.5);
    color: var(--matrix-green);
}
.help-info-glyph .icon-svg { width: 1.5rem; height: 1.5rem; }
.help-info-glyph-trust { border-color: rgba(0, 255, 65, 0.45); }
.help-info-glyph-auth { border-color: rgba(251, 0, 255, 0.35); color: #fb00ff; }
.help-info-card h3 {
    font-size: 0.95rem;
    letter-spacing: 1px;
    margin: 0;
    color: var(--matrix-green);
}
.help-info-card p {
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--text-muted);
    margin: 0;
}

.help-routes-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.help-route-contact { border-left-color: #fb00ff; }
.help-route-contact:hover {
    border-color: #fb00ff;
    background: rgba(251, 0, 255, 0.08);
    box-shadow: 4px 4px 0 rgba(251, 0, 255, 0.35);
}

.help-footer-note {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-top: 10px;
    opacity: 0.75;
}
.help-footer-note a {
    color: var(--matrix-green);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s, text-shadow 0.2s;
}
.help-footer-note a:hover {
    color: #fb00ff;
    text-shadow: 0 0 8px rgba(251, 0, 255, 0.5);
}

.light-mode .help-hero { background: #fff; box-shadow: inset 0 0 20px rgba(66, 133, 244, 0.06), var(--box-shadow-3d); }
.light-mode .help-hero-badge { background: #f1f3f4; color: #555; border-color: #4285F4; }
.light-mode .help-hero-lead { text-shadow: none; color: #202124; }
.light-mode .help-info-card { background: #fff; border-color: #4285F4; }
.light-mode .help-info-card:hover { background: #f8f9fa; }
.light-mode .help-info-glyph { background: #f1f3f4; border-color: #4285F4; color: #4285F4; }
.light-mode .help-info-glyph-auth { color: #EA4335; border-color: rgba(234, 67, 53, 0.35); }
.light-mode .help-info-card h3 { color: #202124; }
.light-mode .help-footer-note a { color: #4285F4; }
.light-mode .help-footer-note a:hover { color: #EA4335; }

.camo-mode .help-hero { background: #F5F1E0; }
.camo-mode .help-hero-badge { background: #EDEADB; border-color: #6B8E23; color: #2F3B1F; }
.camo-mode .help-hero-lead { text-shadow: none; color: #2F3B1F; }
.camo-mode .help-info-card { background: #F5F1E0; border-color: #6B8E23; }
.camo-mode .help-info-card:hover { background: #EDEADB; }
.camo-mode .help-info-glyph { background: #EDEADB; border-color: #6B8E23; color: #3B5323; }
.camo-mode .help-info-card h3 { color: #2F3B1F; }
.camo-mode .help-footer-note a { color: #3B5323; }
