:root {
    --bg-main: #0a0a0b;
    --acc-red: #ff3e3e;
    --acc-yellow: #ffde00;
    --acc-cyan: #00f3ff;
    --acc-purple: #9d00ff;
    --ig-color: #E1306C;
    --tw-color: #9146FF;
    --yt-color: #FF0000;
    --tt-color: #000000;
    --fb-color: #1877F2;
    --card-bg: #151517;
    --text-pure: #ffffff;
    --text-dim: #a1a1aa;
    --br-heavy: 4px solid #000;
    --sh-rigid: 8px 8px 0 #000;
    --nav-bg: #000;
    --font-impact: 'Bangers', cursive;
    --font-heading: 'Bungee', cursive;
    --font-body: 'Outfit', sans-serif;
}

body.light-mode {
    --bg-main: #f8f9fa;
    --card-bg: #ffffff;
    --text-pure: #1a1a1b;
    --text-dim: #555556;
    --br-heavy: 4px solid #000;
    --nav-bg: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

img { max-width: 100%; height: auto; }

body {
    background-color: var(--bg-main);
    color: var(--text-pure);
    font-family: var(--font-body);
    line-height: 1.4;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

/* --- Settings & Input Improvements --- */
.comic-form label, label.field-label, .form-group label { 
    display: block; font-family: var(--font-heading); font-size: 0.8rem; 
    margin-bottom: 8px; color: var(--acc-cyan); text-shadow: 2px 2px 0 #000; 
}
.comic-form input, .comic-form select, .comic-form textarea { 
    width: 100%; padding: 12px; border: 3px solid #000; font-family: var(--font-body); font-size: 1rem;
    background: #fff; outline: none; box-shadow: 4px 4px 0 #ddd; color: #000;
}

/* Dark mode specific for inputs (making them dark only in dark mode if desired, or leaving them white for comic punch) */
body:not(.light-mode) .comic-form input, 
body:not(.light-mode) .comic-form textarea { 
    background: #111; color: #fff; border-color: #333; box-shadow: 4px 4px 0 #000;
}

/* Header/Heading visibility in Dark Mode */
body:not(.light-mode) .font-heading, 
body:not(.light-mode) h1, 
body:not(.light-mode) h2, 
body:not(.light-mode) h3 { 
    color: var(--text-pure); 
}
body:not(.light-mode) .font-heading { color: var(--acc-yellow); text-shadow: 3px 3px 0 #000; }

/* -------------------------------------------------------------------------- */
/* NAVBAR & BRANDING                                                          */
/* -------------------------------------------------------------------------- */
.navbar {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    background: var(--nav-bg);
    border-bottom: 4px solid var(--acc-red);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.brand {
    font-family: var(--font-heading);
    font-size: 2rem;
    position: relative;
    white-space: nowrap;
}

.burst {
    background: var(--acc-red);
    padding: 0 12px;
    color: white;
    display: inline-block;
    transform: rotate(-3deg);
    box-shadow: 4px 4px 0 #fff;
    margin-right: 5px;
}

.stroke {
    color: #fff;
    -webkit-text-stroke: 1.5px var(--acc-red);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.desktop-nav { display: flex; align-items: center; gap: 12px; }

.gold-btn {
    background: var(--acc-yellow);
    color: #000;
    padding: 10px 18px;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    border: 3px solid #000;
    box-shadow: 4px 4px 0 #000;
    transition: 0.1s;
    height: 42px;
    display: inline-flex;
    align-items: center;
}

.gold-btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 #000; }
.nav-logout-top { color: var(--acc-red); font-size: 1.5rem; margin: 0 10px; cursor: pointer; display: inline-flex; align-items: center; }
.nav-logout-top:hover { filter: drop-shadow(0 0 5px var(--acc-red)); }

.user-pill img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid var(--acc-yellow);
    object-fit: cover;
}

/* -------------------------------------------------------------------------- */
/* MAIN CONTENT & HERO                                                         */
/* -------------------------------------------------------------------------- */
.content {
    padding: 20px 5%;
    padding-bottom: 100px;
}

.hero-section {
    margin-bottom: 40px;
}

.hero-card {
    background: linear-gradient(45deg, #000, #1a1a1c);
    border: 6px solid #fff;
    box-shadow: 15px 15px 0 var(--acc-red);
    padding: 30px;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    height: 280px;
    overflow: hidden;
}

.hero-text-box { flex: 1.5; z-index: 10; position: relative; }
.hero-image-box { flex: 0.5; height: 100%; display: flex; justify-content: flex-end; align-items: center; position: relative; overflow: hidden; }
.hero-image-box img { height: 180px; width: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(0 0 10px rgba(0,0,0,0.5)); transition: 0.3s; }
.hero-image-box:hover img { transform: scale(1.05); }

.badger {
    background: var(--acc-cyan);
    color: #000;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    padding: 4px 12px;
    position: absolute;
    top: 20px;
    right: 20px;
}

.hero-card h1 {
    font-family: var(--font-impact);
    font-size: 2.2rem;
    color: var(--acc-yellow);
    line-height: 1;
    margin-bottom: 8px;
}

.hero-text-box p { font-size: 0.9rem; color: #ccc; max-width: 400px; }

.btn-main {
    display: inline-block;
    margin-top: 25px;
    background: var(--acc-red);
    color: white;
    border: var(--br-heavy);
    padding: 15px 30px;
    font-family: var(--font-heading);
    cursor: pointer;
    box-shadow: 6px 6px 0 #fff;
    text-transform: uppercase;
    font-size: 1rem;
    position: relative;
    z-index: 5;
}

/* -------------------------------------------------------------------------- */
/* CARD GRID                                                                   */
/* -------------------------------------------------------------------------- */
.row-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.row-header h2 { font-family: var(--font-heading); font-size: 1.1rem; color: var(--acc-cyan); }

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.post-card {
    background: var(--card-bg);
    border: 3px solid #000;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 4px 4px 0 #000;
}

.post-card:hover { 
    transform: translateY(-8px); 
    border-color: var(--acc-red); 
    box-shadow: 12px 12px 0 #000;
}

.card-image { position: relative; height: 180px; flex-shrink: 0; border-bottom: 3px solid #000; }
.card-image img { width: 100%; height: 100%; object-fit: cover; }

.post-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #000;
    color: var(--acc-cyan);
    padding: 2px 10px;
    font-family: var(--font-impact);
    font-size: 0.9rem;
}

.post-tag.gaming { background: var(--acc-purple); color: #fff; box-shadow: 3px 3px 0 #000; }

.date-nica {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    color: var(--acc-yellow);
    background: #000;
    padding: 5px 15px;
    border: 2px solid var(--acc-red);
    clip-path: polygon(5% 0, 100% 0, 95% 100%, 0% 100%);
}

.card-body { padding: 20px; }
.card-body h3 { font-family: var(--font-impact); font-size: 1.5rem; margin-bottom: 15px; }

.card-author { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 0.8rem; }
.card-author img { width: 25px; height: 25px; border-radius: 50%; border: 2px solid var(--acc-red); }

.card-footer {
    padding: 15px 20px;
    border-top: 2px solid #222;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stats { display: flex; gap: 15px; color: var(--text-dim); font-size: 0.85rem; }

.btn-view {
    background: var(--acc-cyan);
    color: #000;
    border: 2px solid #000;
    padding: 5px 15px;
    font-family: var(--font-heading);
    font-size: 0.7rem;
}

/* -------------------------------------------------------------------------- */
/* BOTTOM NAV                                                                  */
/* -------------------------------------------------------------------------- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 75px;
    background: #000;
    border-top: 3px solid var(--acc-red);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 2000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #666;
    font-size: 0.6rem;
    font-family: var(--font-heading);
}

.nav-item.active { color: var(--acc-cyan); }
.nav-item i { font-size: 1.4rem; margin-bottom: 4px; }

.nav-center-action {
    width: 60px;
    height: 60px;
    background: var(--acc-yellow);
    border: 4px solid #fff;
    border-radius: 50%;
    margin-top: -40px;
    font-size: 1.8rem;
    box-shadow: 0 0 20px var(--acc-red);
}

/* -------------------------------------------------------------------------- */
/* AUTH PAGES                                                                  */
/* -------------------------------------------------------------------------- */
.auth-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 160px);
}

.auth-card {
    background: var(--card-bg);
    color: var(--text-pure);
    padding: 40px;
    width: 100%;
    max-width: 450px;
    border: 6px solid #000;
    box-shadow: 15px 15px 0 var(--acc-cyan);
}
body.light-mode .auth-card { box-shadow: 15px 15px 0 var(--acc-red); }

.auth-header h1 { font-family: var(--font-heading); font-size: 1.5rem; margin-bottom: 5px; }
.auth-header p { color: #666; font-size: 0.9rem; margin-bottom: 30px; }

.comic-form .form-group { margin-bottom: 20px; }
.comic-form label { display: block; font-family: var(--font-heading); font-size: 0.8rem; margin-bottom: 8px; }
.comic-form input {
    width: 100%;
    padding: 12px;
    border: 3px solid #000;
    font-family: var(--font-body);
    outline: none;
}

.role-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 30px 0;
}

.role-card input { display: none; }
.role-box {
    border: 3px solid #eee;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: 0.2s;
}

.role-box i { font-size: 1.3rem; display: block; margin-bottom: 10px; }
.role-box span { display: block; font-family: var(--font-heading); font-size: 0.7rem; }
.role-box small { font-size: 0.6rem; color: #888; }

.role-card input:checked + .role-box {
    border-color: #000;
    background: var(--acc-yellow);
    box-shadow: 4px 4px 0 #000;
}

.btn-full {
    width: 100%;
    background: #000;
    color: #fff;
    padding: 15px;
    font-family: var(--font-heading);
    border: none;
    cursor: pointer;
}

/* -------------------------------------------------------------------------- */
/* RESPONSIVE                                                                  */
/* -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .hero-card { flex-direction: column; text-align: center; }
    .hero-image-box { justify-content: center; width: 100%; margin-top: 20px; }
    .hero-image-box img { max-width: 250px; }
    .hero-card h1 { font-size: 2.2rem; }
    .brand { font-size: 1.5rem; }
    .dashboard-grid { grid-template-columns: 1fr; }
}

/* -------------------------------------------------------------------------- */
/* SOCIALS & PROFILE EXTRA                                                    */
/* -------------------------------------------------------------------------- */
.social-links-profile { display: flex; gap: 12px; margin-top: 15px; }
.social-links-profile a { 
    width: 38px; height: 38px; border: 3px solid #000; display: flex; align-items: center; justify-content: center; 
    background: #fff; color: #000; font-size: 1.1rem; transition: 0.2s; box-shadow: 4px 4px 0 #000;
}
.social-links-profile a:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 #000; }
.social-links-profile a i.fa-instagram { color: var(--ig-color); }
.social-links-profile a i.fa-twitch { color: var(--twitch-color); }
.social-links-profile a i.fa-youtube { color: var(--yt-color); }
.social-links-profile a i.fa-tiktok { color: var(--tt-color); }
.social-links-profile a i.fa-facebook { color: var(--fb-color); }

.profile-avatar-heavy { 
    position: relative; 
    width: 100px; 
    height: 100px; 
    border: 5px solid #fff; 
    box-shadow: 8px 8px 0 #000; 
    flex-shrink: 0;
}
.profile-avatar-heavy img { width: 100%; height: 100%; object-fit: cover; }

/* -------------------------------------------------------------------------- */
/* MANGA MODALS & LOADERS                                                     */
/* -------------------------------------------------------------------------- */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85); backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999; opacity: 0; transition: 0.3s; pointer-events: none;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }

.comic-modal {
    background: #fff; color: #000; border: 8px solid #000;
    padding: 40px; width: 90%; max-width: 500px; position: relative;
    box-shadow: 20px 20px 0 var(--acc-cyan); transform: scale(0.9); transition: 0.3s;
}
.modal-overlay.active .comic-modal { transform: scale(1); }

.loader-container { text-align: center; }
.manga-pulse {
    width: 80px; height: 80px; background: var(--acc-red);
    border-radius: 50%; margin: 0 auto 20px;
    animation: mangaBlast 1s infinite alternate;
    border: 4px solid #000; display: flex; align-items: center; justify-content: center; 
    font-family: var(--font-heading); font-size: 2rem; color: #fff;
}

@keyframes mangaBlast {
    0% { transform: scale(0.8); box-shadow: 0 0 0 var(--acc-red); }
    100% { transform: scale(1.1); box-shadow: 0 0 30px var(--acc-red); }
}

.subiendo-text { font-family: var(--font-heading); letter-spacing: 2px; text-transform: uppercase; }

/* -------------------------------------------------------------------------- */
/* HOME: EVENTS & CATEGORIES                                                 */
/* -------------------------------------------------------------------------- */
.events-section { margin-bottom: 50px; background: #000; border: 4px solid #fff; padding: 25px; box-shadow: 10px 10px 0 var(--acc-red); }
.events-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-top: 20px; }
.event-mini-card { display: flex; align-items: center; gap: 20px; background: #111; border: 2px solid #333; padding: 15px; border-left: 6px solid var(--acc-yellow); }
.ev-date { text-align: center; border-right: 1px solid #222; padding-right: 15px; min-width: 60px; }
.ev-date .day { display: block; font-family: var(--font-impact); font-size: 1.8rem; line-height: 1; color: var(--acc-cyan); }
.ev-date .month { display: block; font-size: 0.7rem; font-family: var(--font-heading); color: #888; text-transform: uppercase; }
.ev-info h3 { font-family: var(--font-heading); font-size: 0.9rem; margin-bottom: 5px; color: #fff; }
.ev-info p { font-size: 0.75rem; color: #666; }
.no-events { grid-column: 1 / -1; text-align: center; padding: 30px; border: 2px dashed #444; color: #666; font-family: var(--font-heading); font-size: 0.8rem; }

.category-manga-bar { display: flex; flex-wrap: wrap; gap: 15px; margin-bottom: 40px; }
.cat-btn { 
    background: #000; color: #fff; border: 3px solid #fff; padding: 12px 25px; 
    font-family: var(--font-heading); font-size: 0.9rem; cursor: pointer; 
    transition: 0.2s; box-shadow: 6px 6px 0 #000;
}
.cat-btn:hover { background: var(--acc-red); transform: translate(-2px, -2px); box-shadow: 8px 8px 0 #000; }
.cat-btn.active { background: var(--acc-yellow); color: #000; border-color: #000; box-shadow: 6px 6px 0 var(--acc-red); }

/* --- Navbar Logout & Search --- */
.nav-logout-top {
    color: var(--acc-red); font-size: 1.2rem; margin: 0 15px; transition: 0.2s;
    text-shadow: 2px 2px 0 #000; 
}
.nav-logout-top:hover { transform: scale(1.2) rotate(-5deg); filter: drop-shadow(0 0 8px var(--acc-red)); }

.search-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.95); backdrop-filter: blur(10px);
    display: none; align-items: flex-start; justify-content: center; z-index: 11000; padding-top: 100px;
}
.search-modal-overlay.active { display: flex; }

.search-comic-box {
    width: 90%; max-width: 600px; background: var(--card-bg); border: 6px solid #000;
    padding: 30px; box-shadow: 15px 15px 0 var(--acc-cyan); transform: skew(-2deg);
    color: var(--text-pure);
}
.search-comic-input {
    width: 100%; border: 4px solid #000; padding: 15px; font-family: var(--font-impact);
    font-size: 1.5rem; text-transform: uppercase; outline: none; margin-bottom: 20px;
    background: var(--bg-main); color: var(--text-pure);
}
.search-results-list { max-height: 400px; overflow-y: auto; text-align: left; }
.search-item {
    display: flex; align-items: center; gap: 15px; padding: 10px; border-bottom: 2px solid #eee;
    text-decoration: none; color: #000; transition: 0.2s;
}
.search-item:hover { background: #f0f0f0; transform: scale(1.02); }
.search-item img { width: 40px; height: 40px; border: 2px solid #000; object-fit: cover; }
.search-item .type-tag { font-size: 0.6rem; background: #000; color: #fff; padding: 2px 5px; font-weight: 700; border-radius: 4px; }


/* -------------------------------------------------------------------------- */
/* WELCOME BANNER MODAL (NARUTO)                                              */
/* -------------------------------------------------------------------------- */
.welcome-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9); backdrop-filter: blur(15px);
    display: none; align-items: center; justify-content: center; z-index: 10000;
}
.welcome-modal-overlay.active { display: flex; animation: fadeInModal 0.5s forwards; }

.welcome-content {
    background: #000; border: 8px solid #fff; max-width: 800px; width: 95%;
    position: relative; box-shadow: 20px 20px 0 var(--acc-red);
    overflow: hidden; text-align: center;
}
.welcome-banner-img { width: 100%; height: auto; border-bottom: 5px solid #fff; }
.welcome-body { padding: 30px; }
.welcome-body h2 { font-family: var(--font-impact); font-size: 2.5rem; color: var(--acc-yellow); margin-bottom: 10px; }
.welcome-body p { color: #ccc; margin-bottom: 25px; }
.btn-close-welcome { background: var(--acc-cyan); color: #000; border: none; padding: 15px 40px; font-family: var(--font-heading); cursor: pointer; box-shadow: 5px 5px 0 #fff; }

@keyframes fadeInModal { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }

/* --- NicaVerse Radio Player --- */
.nica-radio-player {
    position: fixed; bottom: 85px; left: 20px; z-index: 10000;
    width: 280px; background: #000; border: 4px solid #fff;
    box-shadow: 10px 10px 0 var(--acc-cyan); display: flex; align-items: center;
    padding: 15px; gap: 15px; transform: rotate(-1deg); transition: 0.3s;
}
body.light-mode .nica-radio-player { background: #fff; border-color: #000; box-shadow: 10px 10px 0 var(--acc-red); }
.nica-radio-player:hover { transform: rotate(0deg); box-shadow: 12px 12px 0 var(--acc-yellow); }

.radio-disk {
    width: 60px; height: 60px; border-radius: 50%; border: 3px double #fff;
    background: radial-gradient(circle, #222 20%, #000 70%);
    position: relative; animation: spin 4s linear infinite paused;
}
.radio-disk.playing { animation-play-state: running; }
.radio-disk::after {
    content: ''; position: absolute; top: 50%; left: 50%; 
    width: 15px; height: 15px; background: var(--acc-red);
    border-radius: 50%; transform: translate(-50%, -50%);
}

@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.radio-info { flex: 1; overflow: hidden; }
.radio-info h4 { font-family: var(--font-heading); font-size: 0.7rem; color: var(--acc-yellow); margin: 0; white-space: nowrap; }
.radio-info p { font-size: 0.6rem; color: #888; margin: 2px 0; }

.radio-btns { display: flex; gap: 10px; }
.radio-btns button { 
    background: var(--acc-cyan); border: 2px solid #000;
    width: 30px; height: 30px; border-radius: 4px; cursor: pointer;
    font-size: 0.8rem; display: flex; align-items: center; justify-content: center;
}
.radio-btns button:hover { background: #fff; }

/* Sidebar Menu */
.mobile-side-menu {
    position: fixed; top: 0; right: -320px; width: 300px; height: 100%;
    background: #000; border-left: 5px solid var(--acc-red); z-index: 15000;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); box-shadow: -20px 0 50px rgba(0,0,0,0.8);
}
.mobile-side-menu.active { right: 0; }
.side-menu-content { padding: 40px; display: flex; flex-direction: column; height: 100%; }
.close-side { background: none; border: none; color: #fff; font-size: 2rem; margin-bottom: 40px; align-self: flex-end; cursor: pointer; }
.side-links a { display: block; font-family: var(--font-heading); font-size: 1.5rem; margin-bottom: 25px; color: #fff; text-shadow: 2px 2px 0 var(--acc-cyan); }
.side-links a:hover { color: var(--acc-yellow); transform: translateX(10px); transition: 0.2s; }

.burger-btn { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }
.icon-btn.theme-toggle { color: #000; cursor: pointer; }

@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* --- Icons: Theme, Search, Burger (Comic Style) --- */
.icon-btn, .burger-btn {
    background: #fff; border: 3px solid #000; width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; position: relative; transition: 0.1s;
    box-shadow: 4px 4px 0 #000; border-radius: 4px; color: #000;
}
.icon-btn:active, .burger-btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 #000; }
.search-trigger { background: var(--acc-cyan); }
.theme-toggle { background: var(--acc-yellow); }

.mobile-side-menu {
    position: fixed; top: 0; right: -320px; width: 300px; height: 100%;
    background: var(--bg-main); border-left: 5px solid var(--acc-red); z-index: 15000;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); box-shadow: -20px 0 50px rgba(0,0,0,0.8);
}
.mobile-side-menu.active { right: 0; }
.side-menu-content { padding: 40px; display: flex; flex-direction: column; height: 100%; }
.close-side { background: none; border: none; color: var(--text-pure); font-size: 2rem; margin-bottom: 40px; align-self: flex-end; cursor: pointer; }
.side-links a { display: block; font-family: var(--font-heading); font-size: 1.5rem; margin-bottom: 25px; color: var(--text-pure); text-shadow: 2px 2px 0 var(--acc-cyan); }
.side-links a:hover { color: var(--acc-yellow); transform: translateX(10px); transition: 0.2s; }

.burger-btn { display: none; margin-left: 15px; }

/* Welcome Modal Improvements */
.welcome-content {
    background: var(--card-bg); border: 6px solid #000; max-width: 600px; width: 90%;
    margin: 20px auto; position: relative; box-shadow: 15px 15px 0 var(--acc-red);
    overflow: hidden; text-align: center; color: var(--text-pure);
    max-height: 90vh; overflow-y: auto;
}
.welcome-banner-img { width: 100%; height: 250px; object-fit: cover; border-bottom: 5px solid #000; }
.welcome-body h2 { font-size: 1.8rem; }
.welcome-body p { font-size: 0.85rem; padding: 0 10px; }

.btn-comic-small {
    background: #fff; border: 4px solid #000; padding: 12px 24px;
    font-family: var(--font-heading); font-size: 0.85rem; cursor: pointer;
    box-shadow: 5px 5px 0 #000; transition: 0.1s; color: #000;
    display: inline-flex; align-items: center; justify-content: center;
    text-transform: uppercase; letter-spacing: 1px; gap: 8px;
    position: relative; overflow: hidden;
}
.btn-comic-small:active { transform: translate(4px, 4px); box-shadow: 1px 1px 0 #000; }
.btn-comic-small:hover { background: var(--acc-cyan); transform: translate(-2px, -2px); box-shadow: 7px 7px 0 #000; }
.btn-comic-small.btn-warn { background: var(--acc-yellow); }
.btn-comic-small.btn-warn:hover { background: var(--acc-red); color: #fff; }
.btn-comic-small.btn-dark { background: #000; color: #fff; border-color: #000; }
.btn-comic-small.btn-dark:hover { background: #222; }

.comic-form-mini { background: #fff; padding: 25px; border: 4px solid #000; margin-top: 25px; position: relative; box-shadow: 10px 10px 0 var(--acc-red); }
.comic-form-mini::before { content: "NUEVA RÉPLICA"; position: absolute; top: -15px; left: 15px; background: #000; color: #fff; padding: 2px 10px; font-family: var(--font-heading); font-size: 0.7rem; }

.comic-form-mini textarea {
    width: 100%; background: #fdfdfd; border: 3px solid #000; padding: 20px;
    font-family: var(--font-body); font-size: 1.1rem; margin-top: 0;
    outline: none; box-shadow: inset 4px 4px 0 #eee; min-height: 140px;
    resize: vertical; color: #000;
}
[data-theme="dark"] .comic-form-mini { background: #0a0a0b; border-color: var(--acc-cyan); box-shadow: 10px 10px 0 var(--acc-red); }
[data-theme="dark"] .comic-form-mini textarea { background: #111; color: #fff; border-color: #333; box-shadow: inset 4px 4px 0 #000; }
.reply-btns { display: flex; gap: 12px; margin-top: 12px; }

.c-actions { display: flex; gap: 12px; margin-top: 20px; border-top: 1px dashed #ddd; padding-top: 15px; }

/* Blurred (Censored) Comments */
.comment-pill.is-censored .c-body {
    filter: blur(12px); cursor: pointer; transition: 0.4s; pointer-events: auto;
    background: rgba(255,0,0,0.05); user-select: none;
}
.comment-pill.is-censored:hover .c-body { filter: blur(6px); }
.comment-pill.is-censored.revealed .c-body { filter: none; background: none; user-select: text; }

/* --- Dark Mode Label & Input Refinement --- */
[data-theme="dark"] .comic-form label, 
[data-theme="dark"] .comic-comment-form label,
[data-theme="dark"] .comic-form-mini label { color: var(--acc-cyan) !important; font-weight: bold; }

[data-theme="dark"] .comic-form input,
[data-theme="dark"] .comic-form select,
[data-theme="dark"] .comic-form textarea,
[data-theme="dark"] .comic-comment-form textarea,
[data-theme="dark"] .comic-form-mini textarea { 
    background: #111 !important; color: #fff !important; border-color: #444 !important; 
}

/* --- Mobile Responsiveness V4 --- */
@media (max-width: 1024px) {
    .dashboard-grid, .post-layout-main, .home-grid { grid-template-columns: 1fr !important; gap: 20px; }
    .dash-sidebar, .post-sidebar-author { width: 100% !important; position: static !important; margin-bottom: 20px; }
    .hero-card { flex-direction: column; height: auto !important; padding: 25px !important; }
}

@media (max-width: 768px) {
    .nica-radio-player { left: 10px; bottom: 100px; scale: 0.85; }
    .desktop-nav { display: none; }
    .burger-btn { display: flex; }
    .navbar { padding: 0 15px; }
    .hero-content h1 { font-size: 2.2rem; }
    .post-detail, .forum-section { padding: 20px; border-width: 2px; }
    .post-header-detail h1 { font-size: 1.8rem; }
    .post-image-main { height: 250px; margin-bottom: 20px; }
    .post-layout-main { display: block; }

    /* Fix Dashboard & Profile Mobile */
    .dashboard-grid { grid-template-columns: 1fr; }
    .dash-sidebar { margin-bottom: 30px; width: 100%; position: static; box-sizing: border-box; }
    .dash-main { width: 100%; }
    .stats-row { flex-direction: column; }
    
    .profile-header { height: auto; padding: 30px 15px; border-width: 4px; box-shadow: 8px 8px 0 var(--acc-red); }
    .profile-info-main { flex-direction: column; text-align: center; gap: 20px; }
    .profile-avatar-heavy { width: 120px; height: 120px; }
    .profile-text h1 { font-size: 2.2rem; }
    .profile-actions { margin: 10px auto 0; justify-content: center; width: 100%; }
    .profile-stats-bar { flex-wrap: wrap; gap: 10px; }
    .p-stat { flex: 1 1 45%; border: 1px solid #222; padding: 10px; }
    .p-stat strong { font-size: 1.5rem; }

    .search-comic-box { margin-top: 50px; width: 95%; padding: 15px; }
}

/* --- Giga-Post & Forum Styles --- */
.post-detail { max-width: 1000px; margin: 0 auto; background: var(--card-bg); border: 4px solid var(--acc-red); box-shadow: 10px 10px 0 var(--acc-cyan); padding: 40px; color: var(--text-pure); }
.post-header-detail h1 { font-size: 3.5rem; line-height: 1; color: var(--acc-yellow); text-shadow: 5px 5px 0 #000; }
.post-image-main { border: 4px solid var(--text-pure); margin-bottom: 40px; overflow: hidden; height: 450px; box-shadow: 10px 10px 0 #000; }
.post-image-main img { width: 100%; height: 100%; object-fit: cover; }

.post-layout-main { display: grid; grid-template-columns: 1fr 300px; gap: 40px; }
.post-sidebar-author { width: 300px; }

.author-card { background: var(--bg-main); border: 4px solid #000; padding: 25px; text-align: center; box-shadow: 8px 8px 0 var(--acc-yellow); color: var(--text-pure); }
.author-card img { width: 100px; height: 100px; border-radius: 50%; border: 4px solid var(--acc-red); margin-bottom: 15px; background: #222; }
.btn-view-profile { display: block; background: var(--acc-cyan); color: #000; padding: 10px; font-family: var(--font-heading); font-size: 0.8rem; border: 2px solid #000; margin-top: 15px; }

.forum-section { max-width: 1000px; margin: 40px auto; background: var(--card-bg); border: 4px solid var(--acc-cyan); padding: 40px; box-shadow: -10px 10px 0 var(--acc-red); color: var(--text-pure); }
.comic-comment-form textarea { width: 100%; background: var(--bg-main); border: 2px solid #333; color: var(--text-pure); padding: 15px; margin-bottom: 15px; height: 100px; font-family: var(--font-body); outline: none; }

.comment-pill { background: var(--bg-main); border: 2px solid #222; padding: 20px; margin-bottom: 20px; position: relative; border-left: 5px solid var(--acc-yellow); color: var(--text-pure); transition: 0.2s; }
.comment-pill.is-censored { border-left-color: var(--acc-red); opacity: 0.8; }
.c-head { display: flex; align-items: center; gap: 15px; margin-bottom: 10px; }
.c-head img { width: 45px; height: 45px; border-radius: 50%; border: 2px solid #333; flex-shrink: 0; }
.c-user { font-family: var(--font-heading); font-size: 0.8rem; color: var(--acc-cyan); }
.c-body { font-size: 1rem; line-height: 1.6; color: var(--text-pure); }

/* --- MANGA MODAL FORM --- */
.comic-form .form-group { margin-bottom: 20px; text-align: left; }
.comic-form input:focus { border-color: var(--acc-cyan); }

/* Admin Modal Buttons */
.modal-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 30px; }
.btn-edit { background: var(--acc-yellow); color: #000; border: 3px solid #000; padding: 12px; font-family: var(--font-heading); cursor: pointer; box-shadow: 4px 4px 0 #000; font-size: 0.8rem; }
.btn-delete { background: #000; color: var(--acc-red); border: 3px solid var(--acc-red); padding: 12px; font-family: var(--font-heading); cursor: pointer; font-size: 0.8rem; }
.btn-delete:hover { background: var(--acc-red); color: #fff; }

.modal-overlay.loader-active { z-index: 20000; }
.modal-overlay.loader-active .comic-modal { border-color: var(--acc-red); box-shadow: 0 0 50px var(--acc-red); }

/* ========================================================================== */
/* UNIVERSAL DARK MODE VISIBILITY PATCH (GÜEGÜENSE)                           */
/* ========================================================================== */
body:not(.light-mode) {
    color: var(--text-pure) !important;
}
body:not(.light-mode) label, 
body:not(.light-mode) .font-heading, 
body:not(.light-mode) h1, body:not(.light-mode) h2, 
body:not(.light-mode) h3, body:not(.light-mode) h4 {
    color: var(--text-pure) !important;
}

/* Specific Manga Style for Labels in Dark Mode */
body:not(.light-mode) .comic-form label,
body:not(.light-mode) .form-group label {
    color: var(--acc-cyan) !important;
    text-shadow: 2px 2px 0 #000;
    opacity: 1;
}

body:not(.light-mode) .font-heading {
    color: var(--acc-yellow) !important;
}

/* Ensure inputs in Settings use vars correctly */
.settings-card textarea, .settings-card input {
    background: #fff; color: #000; border: 3px solid #000;
}
body:not(.light-mode) .settings-card textarea, 
body:not(.light-mode) .settings-card input {
    background: #111; color: #fff; border-color: #333;
}

/* Fix mobile overflows on author cards */
@media (max-width: 768px) {
    .author-card { width: 100% !important; box-sizing: border-box; }
    .post-detail { width: 95%; margin: 0 auto; padding: 20px; }
}
