/* --- ZTI MASTER STYLESHEET --- */
/* ... (all existing styles remain the same) ... */

/* --- FONT DEFINITION --- */
@font-face {
    font-family: 'VT323';
    src: url('../fonts/VT323.ttf') format('truetype');
}

/* --- SHARED CRT & LAYOUT STYLES --- */
html, body { height: 100%; margin: 0; padding: 0; overflow: hidden; box-sizing: border-box; }
body { background-color: #1a1a1a; display: flex; justify-content: center; align-items: center; font-family: 'VT323', monospace; color: #aaffee; }
*, *::before, *::after { box-sizing: inherit; }
#crt-container { position: relative; width: 98%; max-width: 1100px; height: 95vh; max-height: 95vh; padding: 20px; background-color: #0a0a0a; box-sizing: border-box; margin: 15px; display: flex; flex-direction: column; }
#screen { position: relative; width: 100%; flex-grow: 1; overflow: hidden; padding: 5px; box-sizing: border-box; display: flex; flex-direction: column; }
.scanlines { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(170, 238, 238, 0.08) 50%, rgba(0, 0, 0, 0.25) 50%); background-size: 100% 2px; pointer-events: none; z-index: 1; }
.vignette { position: absolute; top: 0; left: 0; width: 100%; height: 100%; box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.5), inset 0 0 60px rgba(0, 0, 0, 0.3); border-radius: 0; pointer-events: none; z-index: 2; }
#app-container { position: relative; z-index: 3; padding: 0; display: flex; flex-direction: column; flex-grow: 1; overflow: hidden; min-height: 0; }
#data-views { display: flex; flex-direction: column; flex-grow: 1; overflow: hidden; min-height: 0; padding: 10px; }
.hidden { display: none !important; }

/* --- TYPOGRAPHY & NAVIGATION --- */
.title { text-align: center; color: #ccffff; text-shadow: 0 0 5px #00ffff; margin-bottom: 15px; font-size: 2.5em; flex-shrink: 0; }
.subtitle { text-align: center; color: #99ffff; text-shadow: 0 0 4px #00ffff; margin-top: 15px; margin-bottom: 10px; font-size: 1.8em; flex-shrink: 0; }
p { margin-top: 0; margin-bottom: 6px; line-height: 1.4; word-break: break-word; }
a { color: #00ffff; text-decoration: none; text-shadow: 0 0 3px #00ffff; }
a:hover { color: #ccffff; text-decoration: underline; }
.status { color: #ffffaa; text-shadow: 0 0 3px #ffff00; text-align: center; min-height: 1.8em; font-size: 1.1em; flex-shrink: 0; }
#navigation { text-align: center; margin-bottom: 20px; border-bottom: 1px dashed #557777; padding-bottom: 15px; flex-shrink: 0; }
.nav-link { display: inline-block; padding: 5px 15px; margin: 0 10px; border-bottom: 2px solid transparent; background-color: transparent; color: #aaffee; font-family: 'VT323', monospace; font-size: 1.3em; cursor: pointer; text-decoration: none; text-shadow: 0 0 2px #aaffee; transition: color 0.1s ease-in-out, border-color 0.1s ease-in-out, text-shadow 0.1s ease-in-out; }
.nav-link:hover { color: #ccffff; text-shadow: 0 0 5px #00ffff; background-color: rgba(0, 255, 255, 0.1); }
.nav-link.active { color: #00ffff; text-shadow: 0 0 8px #00ffff, 0 0 12px #00ffff; border-bottom: 2px solid #00ffff; background-color: transparent; }
.fixed-footer-disclaimer { font-size: 0.9em; color: #88aaaa; margin-top: auto; text-align: center; border-top: 1px dotted #557777; padding: 10px 15px 8px 15px; flex-shrink: 0; background-color: #0a0a0a;}

/* --- LIST & CONTENT STYLES (FOR INDEX, MEMORIAM) --- */
#friends-view, #blocked-view { display: flex; flex-direction: column; flex-grow: 1; overflow: hidden; min-height: 0; }
.list-container { margin-top: 10px; border-top: 1px dashed #aaffee; padding-top: 15px; flex-grow: 1; overflow-y: auto; padding-right: 10px; min-height: 0; }
.total-counter { font-size: 1.2em; color: #00ff00; text-shadow: 0 0 3px #00ff00; margin-bottom: 10px; text-align: center; flex-shrink: 0; }
.list-item { border-bottom: 1px dotted #557777; padding-bottom: 15px; margin-bottom: 15px; display: flex; align-items: flex-start; flex-wrap: nowrap; transition: background-color 0.2s ease-in-out; }
.list-item:last-child { border-bottom: none; }
.list-item strong { color: #00ffff; }
.item-number { font-size: 1.2em; color: #00ff00; text-shadow: 0 0 3px #00ff00; margin-right: 10px; flex-shrink: 0; padding-top: 4px; min-width: 30px; text-align: right; }
.item-content { display: flex; align-items: flex-start; flex-grow: 1; flex-wrap: nowrap; }
.item-details { display: flex; align-items: flex-start; flex-grow: 1; }
.profile-pic-container { position: relative; width: 100px; height: 100px; margin-right: 15px; border: 2px solid #aaffee; box-shadow: 0 0 4px rgba(0, 255, 255, 0.3); flex-shrink: 0; margin-bottom: 5px; overflow: hidden; background-color: #111; }
.profile-pic { display: block; width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.list-item-text { flex-grow: 1; min-width: 150px; }
.coupon-display { margin-left: auto; padding-left: 20px; text-align: right; align-self: center; }
.coupon-number { font-size: 1.2em; color: #ffffaa; text-shadow: 0 0 3px #ffff00; white-space: nowrap; }
.request-coupon-link { font-size: 1.1em; color: #00ff00; text-decoration: underline; white-space: nowrap; }
.redeem-button { margin-left: auto; padding: 5px 10px; background-color: #c42d33; color: #fff; border: 1px solid #ff5555; text-decoration: none; font-size: 1em; white-space: nowrap; }
.redeem-button:hover { background-color: #ff4444; }
.blocked-reason { color: #ffffaa; font-style: italic; margin-top: 5px; }
.list-item.clickable-row:hover { background-color: rgba(0, 255, 255, 0.1); border-radius: 4px; cursor: pointer; }

/* --- THE FIX IS HERE: STYLES FOR THE SEARCH BAR --- */
.search-input {
    display: block;
    width: 60%;
    margin: 0 auto 15px auto;
    padding: 8px;
    background-color: #051818;
    border: 1px solid #008888;
    color: #aaffee;
    font-family: 'VT323', monospace;
    font-size: 1.2em;
    text-align: center;
}

/* --- GENERIC PAGE CONTENT (FOR LORE, RULES, ETC.) --- */
.page-content { padding: 10px 20px; overflow-y: auto; flex-grow: 1; min-height: 0; padding-right: 15px; text-align: left; }

/* --- COOKIE CONSENT BANNER --- */
#cookie-consent-banner { position: fixed; bottom: 0; left: 0; width: 100%; background-color: #0a0a0a; color: #aaffee; padding: 15px; text-align: center; border-top: 1px dashed #557777; z-index: 1001; font-size: 0.9em; display: none; box-sizing: border-box; }
#cookie-consent-banner p { margin: 0 0 10px; }
#cookie-consent-banner a { color: #00ffff; text-decoration: underline; }
.cookie-btn { background-color: transparent; border: 1px solid #aaffee; color: #aaffee; padding: 5px 15px; cursor: pointer; font-family: 'VT323', monospace; font-size: 1.1em; margin: 0 5px; text-shadow: 0 0 2px #aaffee; }
.cookie-btn.accept { background-color: #00ffff; color: #0a0a0a; text-shadow: none; }

/* --- CUSTOM SCROLLBAR STYLES --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #2a2a2a; }
::-webkit-scrollbar-thumb { background: #557777; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #aaffee; }