/* ==========================================================================
   ÉXODO EL ÚLTIMO REFUGO - OFFICIAL DOSSIER STYLESHEET
   Authentic 1993 Knox County Government & Classified Document Aesthetic
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@600;700&family=Courier+Prime:ital,wght@0,400;0,700;1,400&family=Creepster&family=Inter:wght@400;600;700;900&family=Special+Elite&display=swap');

:root {
    /* Paper & Parchment Colors from Images */
    --paper-bg: #d7c4a3;
    --paper-card: #e4d7be;
    --paper-dark: #b8a37e;
    --paper-shadow: rgba(45, 34, 22, 0.4);
    
    --desk-dark: #120e0b;
    --desk-wood: #1e1813;
    
    --ink-black: #1a1614;
    --ink-muted: #4a4036;
    
    /* Stamp & Blood Accents */
    --stamp-red: #8b0000;
    --stamp-red-bright: #b91c1c;
    --stamp-glow: rgba(139, 0, 0, 0.35);
    
    --police-yellow: #f59e0b;
    --police-black: #111827;
    
    --radio-green: #15803d;

    /* Fonts */
    --font-title: 'Creepster', cursive, sans-serif;
    --font-typewriter: 'Special Elite', 'Courier Prime', monospace;
    --font-handwriting: 'Caveat', cursive;
    --font-sans: 'Inter', sans-serif;
}

/* CUSTOM APOCALYPTIC DARK SCROLLBAR */
html {
    scrollbar-width: thin;
    scrollbar-color: var(--stamp-red) #0a0806;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0806;
    border-left: 1px solid #2a2017;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #7f1d1d 0%, #8b0000 50%, #450a0a 100%);
    border-radius: 4px;
    border: 1px solid #2a2017;
    box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.6);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #dc2626 0%, #b91c1c 50%, #7f1d1d 100%);
    box-shadow: 0 0 10px var(--stamp-glow);
}

::-webkit-scrollbar-corner {
    background: #0a0806;
}

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

body {
    background-color: var(--desk-dark);
    background-image: 
        radial-gradient(circle at 50% 30%, rgba(30, 24, 19, 0.9) 0%, rgba(10, 8, 6, 0.98) 100%),
        url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23221a14' fill-opacity='0.15'%3E%3Cpath fill-rule='evenodd' d='M11 0l3 3-3 3-3-3 3-3zm28 0l3 3-3 3-3-3 3-3zM11 50l3 3-3 3-3-3 3-3z'/%3E%3C/g%3E%3C/svg%3E");
    color: var(--ink-black);
    font-family: var(--font-typewriter);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.4;
}

/* CRT Scanline Overlay */
.crt-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none;
    z-index: 9999;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.22) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.02), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.02));
    background-size: 100% 3px, 6px 100%;
    opacity: 0.6;
}

.crt-overlay.disabled {
    display: none;
}

/* Police Line Tape Banner Ultra Slim */
.police-tape-banner {
    background: var(--police-yellow);
    color: var(--police-black);
    font-family: var(--font-typewriter);
    font-weight: 900;
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
    padding: 0.15rem 0;
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
    box-shadow: 0 2px 6px rgba(0,0,0,0.5);
    user-select: none;
}

/* App Header - Fully Integrated Unified Navigation Bar */
.app-header {
    background: linear-gradient(180deg, #1c1611 0%, #120e0b 100%);
    border-bottom: 2px solid var(--stamp-red);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

.header-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0.3rem 0.8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.brand-main-logo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--stamp-red-bright);
    box-shadow: 0 0 6px var(--stamp-glow);
    display: block;
}

.brand-text-title {
    font-family: 'Courier Prime', var(--font-typewriter);
    font-weight: 900;
    font-size: 1.15rem;
    letter-spacing: 2px;
    color: #e5e5e5;
    line-height: 1;
    text-transform: uppercase;
}

.brand-text-sub {
    font-family: var(--font-typewriter);
    font-size: 0.58rem;
    color: var(--police-yellow);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 700;
}

/* Navigation Tabs & Right Utility Group - Unified Vintage Aesthetics */
.nav-tabs {
    display: flex;
    gap: 0.2rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.2rem;
    border-radius: 4px;
    border: 1px solid rgba(139, 0, 0, 0.3);
    flex-wrap: wrap;
}

.nav-btn {
    background: rgba(45, 34, 22, 0.6);
    border: 1px solid #3d3023;
    color: #d7c4a3;
    font-family: var(--font-typewriter);
    font-size: 0.74rem;
    padding: 0.28rem 0.55rem;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
}

.nav-btn:hover {
    background: rgba(139, 0, 0, 0.35);
    color: #ffffff;
    border-color: var(--stamp-red);
}

.nav-btn.active {
    background: var(--stamp-red);
    color: #ffffff;
    border-color: #ef4444;
    box-shadow: 0 0 8px var(--stamp-glow);
}

/* Discord & CRT Utility Controls - Exact Same Aesthetic as Nav Buttons */
.header-utility-group {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
}

.discord-user-badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(45, 34, 22, 0.6);
    border: 1px solid #3d3023;
    padding: 0.22rem 0.5rem;
    border-radius: 3px;
    color: #d7c4a3;
    font-family: var(--font-typewriter);
    font-size: 0.74rem;
    font-weight: 700;
}

.discord-user-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid var(--stamp-red);
    object-fit: cover;
}

.btn-discord-oauth {
    background: #5865F2;
    border: 1px solid #4752C4;
    color: white;
    font-family: var(--font-typewriter);
    font-size: 0.72rem;
    padding: 0.25rem 0.55rem;
    border-radius: 3px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
    transition: background 0.2s;
}

.btn-discord-oauth:hover {
    background: #4752C4;
    box-shadow: 0 0 8px rgba(88, 101, 242, 0.4);
}

.crt-toggle-btn {
    background: rgba(45, 34, 22, 0.6);
    border: 1px solid #3d3023;
    color: var(--police-yellow);
    padding: 0.28rem 0.55rem;
    border-radius: 3px;
    font-family: var(--font-typewriter);
    font-size: 0.74rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.crt-toggle-btn:hover {
    background: rgba(139, 0, 0, 0.35);
    border-color: var(--police-yellow);
}

/* Main Content Wrapper */
.main-wrapper {
    max-width: 1200px;
    margin: 1.5rem auto;
    padding: 0 1.2rem;
}

.tab-content {
    display: none;
    animation: dossierFadeIn 0.35s ease-out;
}

.tab-content.active {
    display: block;
}

@keyframes dossierFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Authentic Paper Document Card */
.dossier-paper {
    background: var(--paper-card);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(139, 0, 0, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(0, 0, 0, 0.06) 0%, transparent 30%);
    border: 1px solid #ab9776;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.8),
        inset 0 0 40px rgba(100, 80, 50, 0.25);
    border-radius: 4px;
    padding: 1.8rem;
    position: relative;
    color: var(--ink-black);
}

.paperclip-ornament {
    position: absolute;
    top: -10px;
    right: 25px;
    width: 20px;
    height: 50px;
    border: 3px solid #71717a;
    border-radius: 10px;
    z-index: 10;
    box-shadow: 2px 3px 5px rgba(0,0,0,0.4);
    pointer-events: none;
}

.thumbtack-pin {
    position: absolute;
    top: -6px;
    left: 18px;
    width: 16px;
    height: 16px;
    background: radial-gradient(circle at 30% 30%, #ef4444, #991b1b);
    border-radius: 50%;
    box-shadow: 2px 3px 5px rgba(0,0,0,0.5);
    z-index: 10;
}

/* Rubber Stamp Effect */
.stamp-seal {
    display: inline-block;
    padding: 0.25rem 0.7rem;
    border: 3px double var(--stamp-red);
    color: var(--stamp-red);
    font-family: var(--font-typewriter);
    font-weight: 900;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transform: rotate(-3deg);
    user-select: none;
    box-shadow: inset 0 0 5px rgba(139, 0, 0, 0.2);
}

.stamp-seal.classified {
    border-color: #8b0000;
    color: #8b0000;
    background: rgba(139, 0, 0, 0.08);
}

.stamp-seal.quarantine {
    border-color: #991b1b;
    color: #991b1b;
    transform: rotate(2deg);
    font-size: 1rem;
    border-width: 3px;
}

/* Document Header Table */
.dossier-header-table {
    width: 100%;
    border-collapse: collapse;
    border: 2px solid var(--ink-black);
    margin-bottom: 1.2rem;
    background: rgba(255, 255, 255, 0.2);
}

.dossier-header-table td {
    border: 1px solid var(--ink-black);
    padding: 0.5rem 0.8rem;
    font-size: 0.88rem;
}

.dossier-header-table td strong {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--ink-muted);
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.2rem;
}

@media (max-width: 992px) {
    .dashboard-grid { grid-template-columns: 1fr; }
}

.dossier-title {
    font-family: 'Courier Prime', var(--font-typewriter);
    font-weight: 700;
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--ink-black);
    border-bottom: 2px solid var(--ink-black);
    padding-bottom: 0.3rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.server-status-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(30, 24, 18, 0.9);
    color: #f5f5f5;
    padding: 0.8rem 1rem;
    border-radius: 4px;
    border-left: 4px solid var(--stamp-red);
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-typewriter);
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 3px;
    font-size: 0.8rem;
}

.status-badge.online {
    background: rgba(21, 128, 61, 0.2);
    color: #4ade80;
    border: 1px solid #22c55e;
}

.pulse-dot {
    width: 7px;
    height: 7px;
    background-color: currentColor;
    border-radius: 50%;
    animation: blink 1.2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.ip-box {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: #0f0c0a;
    padding: 0.35rem 0.7rem;
    border-radius: 3px;
    border: 1px solid #4a3b2c;
    font-family: var(--font-typewriter);
    font-size: 0.82rem;
    color: var(--police-yellow);
}

.btn-copy {
    background: var(--stamp-red);
    border: none;
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 3px;
    cursor: pointer;
    font-family: var(--font-typewriter);
    font-size: 0.75rem;
    font-weight: 700;
}

.btn-copy:hover {
    background: #b91c1c;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0.8rem;
    margin: 1rem 0;
}

.stat-box {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid var(--ink-black);
    padding: 0.8rem;
    border-radius: 3px;
    text-align: center;
}

.stat-number {
    font-family: var(--font-typewriter);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--stamp-red);
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--ink-muted);
    text-transform: uppercase;
}

.gallery-doc-card {
    background: #fff;
    padding: 0.5rem;
    border: 1px solid #aaa;
    box-shadow: 3px 5px 12px rgba(0,0,0,0.3);
    transform: rotate(-1deg);
    transition: transform 0.3s;
    cursor: pointer;
}

.gallery-doc-card:hover {
    transform: rotate(0deg) scale(1.02);
}

.gallery-doc-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.roster-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.filter-group {
    display: flex;
    gap: 0.3rem;
    flex-wrap: wrap;
}

.btn-filter {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--ink-black);
    color: var(--ink-black);
    padding: 0.35rem 0.7rem;
    border-radius: 3px;
    cursor: pointer;
    font-family: var(--font-typewriter);
    font-size: 0.8rem;
    font-weight: 700;
}

.btn-filter:hover, .btn-filter.active {
    background: var(--stamp-red);
    color: #fff;
    border-color: var(--stamp-red);
}

.btn-add-survivor {
    background: var(--stamp-red);
    border: 1px solid #500;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-family: var(--font-typewriter);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 2px 4px 8px rgba(0,0,0,0.3);
}

.btn-add-survivor:hover {
    background: #b91c1c;
}

.survivors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.4rem;
    align-items: start;
    grid-auto-rows: 590px;
}

#official-docs-grid {
    grid-auto-rows: auto !important;
}

.survivor-card {
    background: #eae0cf;
    border: 2px solid #99876e;
    border-radius: 4px;
    box-shadow: 3px 6px 15px rgba(0,0,0,0.4);
    padding: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
    height: 590px;
}

.survivor-card:hover {
    transform: translateY(-3px) rotate(0.5deg);
    box-shadow: 4px 10px 20px rgba(0,0,0,0.5);
}

.survivor-header {
    height: 300px;
    min-height: 300px;
    max-height: 300px;
    background-size: cover;
    background-position: center top;
    position: relative;
    border-bottom: 2px solid var(--ink-black);
    box-shadow: inset 0 0 12px rgba(0,0,0,0.5);
    flex-shrink: 0;
}

.survivor-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(20, 15, 10, 0.85) 100%);
}

.badge-status {
    position: absolute;
    top: 8px; right: 8px;
    font-family: var(--font-typewriter);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    text-transform: uppercase;
}

.status-VIVO { background: #166534; color: #dcfce7; border: 1px solid #22c55e; }
.status-INFECTADO { background: #854d0e; color: #fef08a; border: 1px solid #eab308; }
.status-FALLECIDO { background: #7f1d1d; color: #fecaca; border: 1px solid #ef4444; }
.status-DESAPARECIDO { background: #4c1d95; color: #f3e8ff; border: 1px solid #a855f7; }

.survivor-body {
    padding: 0.85rem 0.9rem 0.9rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.survivor-name {
    font-family: var(--font-typewriter);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--ink-black);
}

.survivor-alias {
    color: var(--stamp-red);
    font-family: var(--font-typewriter);
    font-weight: 700;
    font-size: 0.82rem;
    margin-bottom: 0.5rem;
}

.survivor-meta {
    font-size: 0.82rem;
    color: var(--ink-muted);
    margin-bottom: 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    flex: 1;
    overflow: hidden;
}

.survivor-actions {
    margin-top: auto;
    display: flex;
    gap: 0.4rem;
}

.btn-card {
    flex: 1;
    background: #1c1611;
    border: 1px solid #4a3b2c;
    color: #e5e5e5;
    padding: 0.45rem;
    border-radius: 3px;
    cursor: pointer;
    font-family: var(--font-typewriter);
    font-size: 0.78rem;
    font-weight: 700;
    text-align: center;
}

.btn-card:hover {
    background: var(--stamp-red);
    color: white;
}

/* Individual Survivor Detail Page */
.detail-view {
    background: var(--paper-card);
    border: 1px solid #ab9776;
    padding: 1.8rem;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.detail-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .detail-grid { grid-template-columns: 1fr; }
}

.detail-avatar {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 3px;
    border: 2px solid var(--ink-black);
    box-shadow: 4px 6px 15px rgba(0,0,0,0.4);
}

.youtube-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 4px;
    border: 2px solid var(--ink-black);
    margin-top: 1rem;
}

.youtube-wrapper iframe {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
}

/* Rules Section */
.rule-category {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid var(--ink-black);
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.rule-category-header {
    font-family: var(--font-typewriter);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--stamp-red);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.rule-card {
    background: rgba(255, 255, 255, 0.6);
    border-left: 4px solid var(--stamp-red);
    padding: 0.8rem;
    margin-bottom: 0.6rem;
}

.rule-card h4 {
    font-size: 1rem;
    color: var(--ink-black);
    margin-bottom: 0.2rem;
}

.rule-card p {
    color: var(--ink-muted);
    font-size: 0.88rem;
    margin-bottom: 0.3rem;
}

.rule-penalty {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--stamp-red);
}

/* Whitelist Form Wizard Container */
.whitelist-card {
    max-width: 960px;
    margin: 0 auto;
    background: var(--paper-card);
    border: 2px solid var(--ink-black);
    border-radius: 4px;
    padding: 1.8rem;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
}

.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    position: relative;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 50%; left: 0; right: 0; height: 2px;
    background: var(--ink-black);
    z-index: 1;
}

.step-item {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--paper-bg);
    border: 2px solid var(--ink-black);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-typewriter);
    font-size: 0.85rem;
    font-weight: 700;
    z-index: 2;
}

.step-item.active {
    background: var(--stamp-red);
    color: white;
}

.quiz-option {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--ink-black);
    padding: 0.7rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.88rem;
}

.quiz-option:hover {
    background: rgba(139, 0, 0, 0.1);
    border-color: var(--stamp-red);
}

/* ==========================================================================
   AUTHENTIC 1993 DOSSIER FORM - STYLED EXACTLY LIKE THE OFFICIAL SHEETS WITH CROPPED ICONS
   ========================================================================== */
.dossier-sheet-card {
    background: #e4d7be;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(139, 0, 0, 0.04) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(0, 0, 0, 0.05) 0%, transparent 30%);
    border: 3px double #1a1614;
    border-radius: 4px;
    padding: 1.8rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    position: relative;
    color: #1a1614;
}

.sheet-section-banner {
    background: #1a1614;
    color: #ffffff;
    font-family: var(--font-typewriter);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 0.35rem 0.7rem;
    margin-bottom: 1rem;
    margin-top: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sheet-icon-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-typewriter);
    font-weight: 700;
    font-size: 0.88rem;
    color: #1a1614;
    margin-bottom: 0.3rem;
}

.sheet-icon-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: inline-block;
}

.sheet-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.8rem;
}

.sheet-input-label {
    font-family: var(--font-typewriter);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.sheet-typewriter-input {
    width: 100%;
    background: rgba(255, 255, 250, 0.5);
    border: 1px solid var(--ink-black);
    border-bottom: 2px solid var(--stamp-red);
    color: #111;
    padding: 0.5rem 0.7rem;
    border-radius: 3px;
    font-family: var(--font-typewriter);
    font-size: 0.88rem;
    font-weight: 700;
    outline: none;
}

.sheet-typewriter-input:focus {
    background: #ffffff;
    border-color: var(--stamp-red-bright);
    box-shadow: 0 0 8px rgba(139, 0, 0, 0.2);
}

.sheet-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.8rem;
}

.sheet-grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.8rem;
}

.sheet-checkbox-card {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid var(--ink-black);
    padding: 0.5rem 0.7rem;
    border-radius: 3px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-family: var(--font-typewriter);
    font-size: 0.8rem;
    font-weight: 700;
    transition: background 0.2s;
}

.sheet-checkbox-card:hover {
    background: rgba(139, 0, 0, 0.1);
    border-color: var(--stamp-red);
}

.sheet-checkbox-card input[type="checkbox"],
.sheet-checkbox-card input[type="radio"] {
    accent-color: var(--stamp-red);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Modals */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 8, 6, 0.85);
    backdrop-filter: blur(5px);
    display: flex; align-items: center; justify-content: center;
    z-index: 1000;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s;
}

.modal-overlay.active {
    opacity: 1; pointer-events: auto;
}

.modal-container {
    background: var(--paper-card);
    border: 3px solid var(--ink-black);
    border-radius: 4px;
    width: 90%; max-width: 650px;
    padding: 1.8rem;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 0 40px rgba(0,0,0,0.8);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-family: var(--font-typewriter);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--ink-black);
    margin-bottom: 0.3rem;
}

.form-control {
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--ink-black);
    color: var(--ink-black);
    padding: 0.6rem;
    border-radius: 3px;
    font-family: var(--font-typewriter);
    font-size: 0.85rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--stamp-red);
    background: #fff;
}

/* Signature & Document Footer */
.doc-signature {
    font-family: var(--font-handwriting);
    font-size: 2rem;
    color: #111;
    margin-top: 0.4rem;
    line-height: 1;
}

/* LIGHTBOX & MAGNIFIER LENS SYSTEM */
.lightbox-modal {
    position: fixed;
    inset: 0;
    background: rgba(6, 4, 3, 0.96);
    backdrop-filter: blur(10px);
    display: flex; 
    flex-direction: column;
    align-items: center; 
    justify-content: center;
    z-index: 2000;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 1.5rem;
    overflow: hidden;
}

.lightbox-modal.active {
    opacity: 1; pointer-events: auto;
}

.lightbox-header {
    margin-bottom: 0.8rem;
    text-align: center;
    color: #f5f5f5;
    z-index: 2010;
}

.lightbox-header-title {
    font-family: var(--font-typewriter);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--police-yellow);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.lightbox-header-sub {
    font-size: 0.8rem;
    color: #aaa;
    margin-top: 0.2rem;
    font-family: var(--font-typewriter);
}

.lightbox-img-wrapper {
    position: relative;
    max-width: 90vw;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--paper-dark);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95);
    background: #0d0b09;
    cursor: none;
}

.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    user-select: none;
}

.magnifier-lens {
    position: absolute;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    border: 7px solid #b91c1c;
    box-shadow: 
        0 0 0 3px #1a0a03,
        0 0 0 7px #d97706,
        0 20px 45px rgba(0, 0, 0, 0.95),
        inset 0 0 30px rgba(0, 0, 0, 0.75),
        inset 0 0 15px rgba(255, 255, 255, 0.25);
    pointer-events: none;
    display: none;
    z-index: 2020;
    background-repeat: no-repeat;
    background-color: #000;
    overflow: visible;
}

.magnifier-lens::before {
    content: '';
    position: absolute;
    top: 10%; left: 15%; width: 40%; height: 35%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.05) 70%, transparent 100%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 2025;
}

.magnifier-lens::after {
    content: '';
    position: absolute;
    bottom: -60px;
    right: -60px;
    width: 26px;
    height: 120px;
    background: linear-gradient(135deg, #a16207 0%, #451a03 40%, #1e0902 100%);
    border: 3px solid #000;
    border-radius: 10px;
    transform: rotate(-45deg);
    box-shadow: 6px 12px 25px rgba(0, 0, 0, 0.9);
    z-index: 2019;
}

.lightbox-close-btn {
    position: absolute;
    top: 15px; right: 20px;
    background: var(--stamp-red);
    color: white;
    border: 2px solid #ffffff;
    width: 38px; height: 38px;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    z-index: 2030;
    box-shadow: 0 0 15px rgba(220, 38, 38, 0.5);
    transition: transform 0.2s, background 0.2s;
}

.lightbox-close-btn:hover {
    background: #b91c1c;
    transform: scale(1.1);
}

/* Footer */
.app-footer {
    text-align: center;
    padding: 2rem 1rem;
    color: #888;
    font-family: var(--font-typewriter);
    font-size: 0.8rem;
    border-top: 2px solid #33271d;
    margin-top: 3rem;
}

/* ==========================================================================
   ADMIN PANEL STYLES
   ========================================================================== */

.admin-panel-wrapper {
    max-width: 1100px;
    margin: 0 auto;
}

.admin-header-bar {
    background: linear-gradient(135deg, #1a0a0a 0%, #2d0f0f 100%);
    border: 2px solid #dc2626;
    border-radius: 6px;
    padding: 1.2rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 20px rgba(220,38,38,0.3);
    flex-wrap: wrap;
    gap: 1rem;
}

.admin-stamp {
    font-family: var(--font-typewriter);
    font-size: 1.1rem;
    font-weight: 900;
    color: #dc2626;
    border: 3px solid #dc2626;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    opacity: 0.85;
    letter-spacing: 0.15em;
    transform: rotate(-8deg);
    text-shadow: 0 0 6px rgba(220,38,38,0.5);
}

/* Admin Stats Grid */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.admin-stat-card {
    background: #1c1611;
    border: 1px solid #4a3b2c;
    border-radius: 5px;
    padding: 1rem 0.8rem;
    text-align: center;
    transition: border-color 0.2s, transform 0.2s;
}

.admin-stat-card:hover {
    border-color: #dc2626;
    transform: translateY(-2px);
}

.admin-stat-number {
    font-family: var(--font-typewriter);
    font-size: 2rem;
    font-weight: 900;
    color: #dc2626;
    line-height: 1;
}

.admin-stat-label {
    font-family: var(--font-typewriter);
    font-size: 0.65rem;
    color: #9ca3af;
    margin-top: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Admin Sub-Tabs */
.admin-subtabs {
    display: flex;
    gap: 0.4rem;
    border-bottom: 2px solid #4a3b2c;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
}

.admin-subtab {
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 0.6rem 1.2rem;
    font-family: var(--font-typewriter);
    font-size: 0.85rem;
    font-weight: 700;
    color: #9ca3af;
    cursor: pointer;
    margin-bottom: -2px;
    transition: color 0.2s, border-color 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.admin-subtab.active,
.admin-subtab:hover {
    color: #dc2626;
    border-bottom-color: #dc2626;
}

.admin-subtab-content {
    display: none;
}

.admin-subtab-content.active {
    display: block;
}

/* Admin Filter Buttons */
.admin-filter-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid #4a3b2c;
    color: #9ca3af;
    padding: 0.3rem 0.8rem;
    border-radius: 3px;
    cursor: pointer;
    font-family: var(--font-typewriter);
    font-size: 0.72rem;
    font-weight: 700;
    transition: all 0.2s;
}

.admin-filter-btn.active,
.admin-filter-btn:hover {
    background: #dc2626;
    border-color: #dc2626;
    color: white;
}

.btn-admin-refresh {
    background: none;
    border: 1px solid #4a3b2c;
    color: #9ca3af;
    padding: 0.3rem 0.8rem;
    border-radius: 3px;
    cursor: pointer;
    font-family: var(--font-typewriter);
    font-size: 0.72rem;
    transition: all 0.2s;
}

.btn-admin-refresh:hover {
    background: rgba(255,255,255,0.08);
    border-color: #c9b99a;
    color: #c9b99a;
}

/* Application Cards */
.application-card {
    background: #1c1611;
    border: 1px solid #4a3b2c;
    border-radius: 6px;
    padding: 1.2rem;
    margin-bottom: 0.8rem;
    transition: border-color 0.2s;
}

.application-card:hover {
    border-color: #7a6340;
}

.application-card.status-PENDIENTE { border-left: 4px solid #eab308; }
.application-card.status-APROBADO  { border-left: 4px solid #16a34a; }
.application-card.status-RECHAZADO { border-left: 4px solid #dc2626; }

.app-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.app-card-name {
    font-family: var(--font-typewriter);
    font-size: 1.1rem;
    font-weight: 700;
    color: #e5e0d8;
}

.app-card-tag {
    font-family: var(--font-typewriter);
    font-size: 0.72rem;
    color: #9ca3af;
    margin-top: 0.2rem;
}

.app-status-badge {
    font-family: var(--font-typewriter);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-PENDIENTE { background: #78350f; color: #fef08a; border: 1px solid #eab308; }
.badge-APROBADO  { background: #14532d; color: #bbf7d0; border: 1px solid #16a34a; }
.badge-RECHAZADO { background: #7f1d1d; color: #fecaca; border: 1px solid #dc2626; }

.app-card-body {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.app-card-field {
    font-family: var(--font-typewriter);
    font-size: 0.78rem;
    color: #9ca3af;
}

.app-card-field strong {
    color: #c9b99a;
}

.app-card-bio {
    font-family: var(--font-typewriter);
    font-size: 0.78rem;
    color: #9ca3af;
    background: rgba(0,0,0,0.3);
    border: 1px solid #33271d;
    border-radius: 3px;
    padding: 0.5rem 0.7rem;
    margin-bottom: 1rem;
    max-height: 80px;
    overflow-y: auto;
    line-height: 1.5;
}

.app-card-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.btn-approve {
    background: #14532d;
    border: 1px solid #16a34a;
    color: #bbf7d0;
    padding: 0.4rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-typewriter);
    font-size: 0.8rem;
    font-weight: 700;
    transition: all 0.2s;
}

.btn-approve:hover {
    background: #16a34a;
    color: white;
}

.btn-reject {
    background: #7f1d1d;
    border: 1px solid #dc2626;
    color: #fecaca;
    padding: 0.4rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-typewriter);
    font-size: 0.8rem;
    font-weight: 700;
    transition: all 0.2s;
}

.btn-reject:hover {
    background: #dc2626;
    color: white;
}

.reject-reason-inline {
    display: none;
    flex: 1;
    min-width: 200px;
}

.reject-reason-inline input {
    background: rgba(0,0,0,0.4);
    border: 1px solid #4a3b2c;
    border-radius: 3px;
    color: #e5e0d8;
    font-family: var(--font-typewriter);
    font-size: 0.78rem;
    padding: 0.35rem 0.6rem;
    width: 100%;
}

/* Admin Survivors Table */
.admin-survivor-row {
    background: #1c1611;
    border: 1px solid #4a3b2c;
    border-radius: 5px;
    padding: 0.9rem 1.1rem;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    transition: border-color 0.2s;
}

.admin-survivor-row:hover {
    border-color: #7a6340;
}

.admin-surv-avatar {
    width: 48px;
    height: 48px;
    border-radius: 4px;
    object-fit: cover;
    border: 2px solid #4a3b2c;
    flex-shrink: 0;
}

.admin-surv-info {
    flex: 1;
    min-width: 160px;
}

.admin-surv-name {
    font-family: var(--font-typewriter);
    font-size: 1rem;
    font-weight: 700;
    color: #e5e0d8;
}

.admin-surv-meta {
    font-family: var(--font-typewriter);
    font-size: 0.72rem;
    color: #9ca3af;
    margin-top: 0.15rem;
}

.admin-surv-actions {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.btn-admin-edit {
    background: #1e3a5f;
    border: 1px solid #2563eb;
    color: #93c5fd;
    padding: 0.3rem 0.7rem;
    border-radius: 3px;
    cursor: pointer;
    font-family: var(--font-typewriter);
    font-size: 0.75rem;
    font-weight: 700;
    transition: all 0.2s;
}

.btn-admin-edit:hover {
    background: #2563eb;
    color: white;
}

/* Admin inline edit form for survivor */
.admin-edit-form {
    background: rgba(0,0,0,0.35);
    border: 1px solid #4a3b2c;
    border-radius: 4px;
    padding: 1rem;
    margin-top: 0.6rem;
    display: none;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.6rem;
    width: 100%;
}

.admin-edit-form.open {
    display: grid;
}

.admin-edit-form label {
    font-family: var(--font-typewriter);
    font-size: 0.7rem;
    color: #9ca3af;
    display: block;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.admin-edit-form input,
.admin-edit-form select,
.admin-edit-form textarea {
    background: rgba(0,0,0,0.4);
    border: 1px solid #4a3b2c;
    border-radius: 3px;
    color: #e5e0d8;
    font-family: var(--font-typewriter);
    font-size: 0.8rem;
    padding: 0.35rem 0.6rem;
    width: 100%;
}

.admin-edit-form .form-full {
    grid-column: 1 / -1;
}

.admin-edit-save {
    background: #14532d;
    border: 1px solid #16a34a;
    color: #bbf7d0;
    padding: 0.4rem 1rem;
    border-radius: 3px;
    cursor: pointer;
    font-family: var(--font-typewriter);
    font-size: 0.78rem;
    font-weight: 700;
    transition: all 0.2s;
}

.admin-edit-save:hover {
    background: #16a34a;
    color: white;
}

/* ==========================================================================
   GROUPS / FACTIONS STYLES
   ========================================================================== */

.group-card {
    background: #1c1611;
    border: 2px solid #4a3b2c;
    border-radius: 8px;
    margin-bottom: 2rem;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
    position: relative;
    transition: border-color 0.3s;
}

.group-card:hover {
    border-color: #7a6340;
}

.group-banner-wrapper {
    position: relative;
    height: 220px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    border-bottom: 2px solid #4a3b2c;
}

.group-banner-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(0deg, rgba(18,12,6,0.95) 0%, rgba(18,12,6,0.4) 60%, rgba(0,0,0,0.7) 100%);
    z-index: 1;
}

.group-header-content {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 1rem;
}

.group-name {
    font-family: var(--font-typewriter);
    font-size: 2.2rem;
    font-weight: 900;
    color: #e5e0d8;
    letter-spacing: 0.05em;
    text-shadow: 0 3px 10px rgba(0,0,0,0.9);
    line-height: 1.1;
}

.group-tagline {
    font-family: var(--font-typewriter);
    font-size: 0.95rem;
    color: #c9b99a;
    font-style: italic;
    margin-top: 0.2rem;
}

.group-alive-badge {
    background: rgba(20,83,45,0.85);
    border: 1px solid #16a34a;
    color: #bbf7d0;
    font-family: var(--font-typewriter);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.4rem 0.9rem;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.group-body {
    padding: 1.5rem;
}

.group-description {
    font-family: var(--font-typewriter);
    font-size: 0.9rem;
    color: #c9b99a;
    line-height: 1.6;
    background: rgba(0,0,0,0.3);
    border: 1px solid #33271d;
    border-radius: 5px;
    padding: 1rem 1.2rem;
    margin-bottom: 1.5rem;
}

/* Members section */
.group-members-section {
    margin-bottom: 1.8rem;
}

.group-section-title {
    font-family: var(--font-typewriter);
    font-size: 1rem;
    font-weight: 700;
    color: #e5e0d8;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px dashed #4a3b2c;
    padding-bottom: 0.4rem;
}

.group-members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.8rem;
}

.group-member-card {
    background: #140f0c;
    border: 1px solid #33271d;
    border-radius: 5px;
    padding: 0.6rem 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    cursor: pointer;
    transition: all 0.2s;
}

.group-member-card:hover {
    border-color: #dc2626;
    background: #1f1813;
    transform: translateY(-2px);
}

.group-member-avatar {
    width: 42px;
    height: 42px;
    border-radius: 4px;
    object-fit: cover;
    border: 1px solid #4a3b2c;
    flex-shrink: 0;
}

.group-member-info {
    flex: 1;
    min-width: 0;
}

.group-member-name {
    font-family: var(--font-typewriter);
    font-size: 0.85rem;
    font-weight: 700;
    color: #e5e0d8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.group-member-alias {
    font-family: var(--font-typewriter);
    font-size: 0.72rem;
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Groups Header Banner */
.groups-header-banner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 1.5rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 1.2rem 1.4rem;
    border-radius: 6px;
    border: 1px solid #f59e0b;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

.groups-header-title {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
    margin: 0 0 0.3rem 0 !important;
    font-size: 1.6rem !important;
    color: #f59e0b !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9) !important;
    font-weight: 900 !important;
    letter-spacing: 0.05em !important;
    text-align: center !important;
    width: auto !important;
}

.groups-header-subtitle {
    font-family: var(--font-typewriter);
    font-size: 0.85rem;
    color: #e5e0d8;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.btn-create-group-right {
    position: absolute;
    right: 1.4rem;
    top: 50%;
    transform: translateY(-50%);
    width: auto !important;
    padding: 0.6rem 1.2rem !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    margin: 0 !important;
    z-index: 10;
}

@media (max-width: 900px) {
    .faction-dossier-card {
        grid-template-columns: 1fr !important;
    }
}

/* Reputation Gauge Component */
.group-reputations-section {
    background: rgba(0,0,0,0.4);
    border: 1px solid #33271d;
    border-radius: 6px;
    padding: 1.2rem;
}

.rep-bars-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.rep-bar-card-npc {
    background: #140f0c;
    border: 1px solid #33271d;
    border-radius: 6px;
    padding: 0.8rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

@media (max-width: 768px) {
    .rep-bar-card-npc {
        flex-direction: column;
        align-items: stretch;
    }
}

.rep-npc-badge {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    width: 250px;
    flex-shrink: 0;
}

.rep-npc-emblem-wrapper {
    width: 72px;
    height: 72px;
    border-radius: 6px;
    border: 2px solid #4a3b2c;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(0,0,0,0.85);
    position: relative;
    background: #0a0705;
}

.rep-npc-emblem {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.rep-npc-emblem-wrapper:hover .rep-npc-emblem {
    transform: scale(1.2);
}

.rep-npc-name {
    font-family: var(--font-typewriter);
    font-size: 1.05rem;
    font-weight: 900;
    color: #e5e0d8;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1.2;
}

.rep-meter-wrapper-col {
    flex: 1;
}

.rep-level-tag {
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    text-transform: uppercase;
}

.rep-level-ENEMIGO  { background: #7f1d1d; color: #fecaca; border: 1px solid #dc2626; }
.rep-level-NEUTRAL  { background: #374151; color: #d1d5db; border: 1px solid #6b7280; }
.rep-level-AMISTOSO { background: #78350f; color: #fef08a; border: 1px solid #eab308; }
.rep-level-ALIADO   { background: #14532d; color: #bbf7d0; border: 1px solid #16a34a; }

/* Range Slider for Admin reputation modal */
.rep-range-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 12px;
    background: linear-gradient(90deg, #dc2626 0%, #6b7280 37%, #eab308 65%, #16a34a 100%);
    border-radius: 6px;
    outline: none;
    cursor: pointer;
}

.rep-range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f59e0b;
    border: 2px solid #ffffff;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.9);
    cursor: pointer;
    transition: transform 0.15s;
}

.rep-range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.3);
}

/* Group Link Badge on Survivor Cards & Detail View */
.survivor-group-link-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(220, 38, 38, 0.12);
    border: 1px solid #dc2626;
    color: #dc2626;
    font-family: var(--font-typewriter);
    font-size: 0.76rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.survivor-group-link-badge:hover {
    background: #dc2626;
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(220, 38, 38, 0.5);
    transform: translateY(-1px);
}

.group-card-highlighted {
    border-color: #f59e0b !important;
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.8) !important;
    transform: scale(1.01);
    transition: all 0.3s ease;
}

/* Interactive Meter Track (Inspired by Image 5) */
.rep-meter-container {
    position: relative;
    height: 40px;
    background: #0a0705;
    border: 2px solid #4a3b2c;
    border-radius: 5px;
    display: flex;
    overflow: hidden;
}

.rep-seg {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-typewriter);
    font-size: 0.75rem;
    font-weight: 700;
    opacity: 0.6;
    transition: opacity 0.2s;
    border-right: 1px solid rgba(0,0,0,0.5);
    user-select: none;
}

.rep-seg:last-child { border-right: none; }

.rep-seg-ENEMIGO  { background: linear-gradient(180deg, #991b1b 0%, #450a0a 100%); color: #fecaca; }
.rep-seg-NEUTRAL  { background: linear-gradient(180deg, #4b5563 0%, #1f2937 100%); color: #e5e7eb; }
.rep-seg-AMISTOSO { background: linear-gradient(180deg, #b45309 0%, #451a03 100%); color: #fef08a; }
.rep-seg-ALIADO   { background: linear-gradient(180deg, #15803d 0%, #052e16 100%); color: #bbf7d0; }

.rep-seg.active-seg {
    opacity: 1;
    box-shadow: inset 0 0 10px rgba(255,255,255,0.3);
    font-weight: 900;
}

/* Pointer Arrow */
.rep-pointer {
    position: absolute;
    top: -5px;
    bottom: -5px;
    width: 8px;
    background: #f59e0b;
    box-shadow: 0 0 12px #f59e0b, 0 0 5px #fff;
    border-radius: 4px;
    z-index: 5;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

