/* =========================================
   1. GLOBAL STYLES & VARIABLES
========================================= */
:root { --main-color: #33ff00; --bg-color: #0a0a0a; --dim-color: #004400; --highlight: #112211; --alert-color: #ff3333; --alert-dim: #440000; }
html { background-color: #000; overscroll-behavior-y: none; }
body { margin: 0; padding: 0; min-height: 100dvh; background-color: var(--bg-color); overscroll-behavior-y: none; overflow-x: hidden; }
body.is-booting #boot-screen { display: flex !important; }
body.is-booting .index-main-container, body.is-booting .fab-container { display: none !important; }
* { scrollbar-width: thin; scrollbar-color: var(--dim-color) var(--bg-color); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--bg-color); border-left: 1px dashed var(--dim-color); }
::-webkit-scrollbar-thumb { background: var(--dim-color); border: 1px solid var(--main-color); }
::-webkit-scrollbar-thumb:hover { background: var(--main-color); }
.scanline { width: 100%; height: 100%; z-index: 9997; pointer-events: none; background: linear-gradient(0deg, rgba(0,0,0,0) 50%, rgba(0, 255, 0, 0.02) 50%), linear-gradient(90deg, rgba(255,0,0,0.06), rgba(0,255,0,0.02), rgba(0,0,255,0.06)); background-size: 100% 2px, 3px 100%; position: fixed; top: 0; left: 0; }
@keyframes blink { 50% { opacity: 0; } }
@keyframes pulse { 0% { box-shadow: inset 0 0 5px var(--dim-color); } 50% { box-shadow: inset 0 0 15px var(--dim-color); } 100% { box-shadow: inset 0 0 5px var(--dim-color); } }
.site-footer { text-align: center; color: #444; font-size: 0.8rem; margin-top: 30px; padding: 15px 0; border-top: 1px dashed #222; letter-spacing: 1px; }

.btn-cyan { border-color: #00ffff !important; color: #00ffff !important; text-shadow: 0 0 5px #00ffff; }
.btn-red { border-color: #ff5555 !important; color: #ff5555 !important; text-shadow: 0 0 5px #ff5555; background: transparent !important; }
.btn-blue { border-color: #0088ff !important; color: #0088ff !important; text-shadow: 0 0 5px #0088ff; background: transparent !important; }
.btn-yellow { border-color: #ffaa00 !important; color: #ffaa00 !important; text-shadow: 0 0 5px #ffaa00; background: transparent !important; }
.btn-sm { font-size: 0.8rem !important; height: 24px !important; padding: 0 8px !important; }
.show-on-mobile { display: none !important; }
@media (hover: hover) and (pointer: fine) { .btn-cyan:hover { background: #00ffff !important; color: #000 !important; } .btn-red:hover { background: #ff5555 !important; color: #000 !important; } .btn-blue:hover { background: #0088ff !important; color: #000 !important; } .btn-yellow:hover { background: #ffaa00 !important; color: #000 !important; } }

/* =========================================
   2. CONFIG PAGE (SETUP)
========================================= */
#config-page { background-color: #000088; color: #ffffff; font-family: 'Consolas', 'Monaco', 'Nanum Gothic Coding', monospace; padding: 20px 10px; font-size: 16px; margin: 0; display: flex; flex-direction: column; min-height: 100dvh; box-sizing: border-box; }
#config-page .container { max-width: 900px; width: 100%; margin: 0 auto; border: 4px double #ffffff; padding: 15px; box-shadow: 5px 5px 0px #000000; box-sizing: border-box; margin-bottom: 20px; flex: 0 0 auto; }
#config-page .site-footer { margin-top: auto; }
#config-page h1 { text-align: center; background: #aaaaaa; color: #000088; padding: 5px; margin-top: 0; font-size: 1.5rem; }
#config-page table { width: 100%; border-collapse: collapse; margin-top: 10px; }
#config-page th { text-align: left; border-bottom: 2px solid white; padding: 8px; color: #ffff00; }
#config-page td { padding: 8px; border-bottom: 1px dashed #aaaaaa; vertical-align: middle; }
#config-page input { background: #000088; color: #00ff00; border: none; font-family: inherit; font-size: 1.1rem; width: 100%; padding: 5px; box-sizing: border-box; }
#config-page input:focus { background: #0000aa; outline: 2px solid yellow; }
#config-page textarea.guide-textarea { background: #000088; color: #ddd; border: none; border-bottom: 1px dashed #888; font-family: inherit; font-size: 1rem; width: 100%; padding: 5px 0; box-sizing: border-box; resize: vertical; min-height: 35px; overflow: hidden; }
#config-page textarea.guide-textarea:focus { background: #0000aa; outline: none; border-bottom: 2px solid yellow; }
.cell-ctrl { white-space: nowrap; text-align: right; }
#config-page button.del-btn, #config-page button.ctrl-btn { border: 1px solid white; padding: 5px 8px; font-size: 0.9rem; box-shadow: 2px 2px 0px #000; cursor: pointer; color: white; margin: 0 2px; font-family: 'Consolas', monospace; transition: transform 0.1s, box-shadow 0.1s; }
#config-page button.del-btn { background: #ff3333; }
#config-page button.ctrl-btn { background: #0066cc; }
#config-page button.ctrl-btn.add-btn { background: #ffaa00; color: #000; font-weight: bold; }
#config-page button.del-btn:active, #config-page button.ctrl-btn:active { transform: translate(2px, 2px); box-shadow: 0px 0px 0px #000; }
#config-page .btn-group { margin-top: 20px; text-align: center; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
#config-page button.main-action { background: #aaaaaa; color: #000088; border: 2px solid white; padding: 10px 20px; font-family: inherit; font-size: 1.1rem; cursor: pointer; font-weight: bold; box-shadow: 3px 3px 0px #000000; transition: 0.2s; }
@media (hover: hover) and (pointer: fine) { #config-page button.main-action:hover { background: #ffffff; transform: translateY(-2px); } }
#config-page button.main-action:active { transform: translateY(0) scale(0.98); box-shadow: 1px 1px 0px #000000; }
@media (min-width: 769px) { #config-page th:nth-child(1), .cell-start { width: 10%; } #config-page th:nth-child(2), .cell-end { width: 10%; } #config-page th:nth-child(3), .cell-mode { width: 20%; } #config-page th:nth-child(4), .cell-guide { width: 50%; } #config-page th:nth-child(5), .cell-ctrl { width: 10%; text-align: right; } }

/* =========================================
   3. SYSTEM SCREENS (Login, Standby, etc)
========================================= */
#login-page { background-color: #000; color: var(--main-color); font-family: 'Consolas', 'Monaco', 'Nanum Gothic Coding', monospace; margin: 0; overflow: hidden; min-height: 100dvh; display: flex; flex-direction: column; text-shadow: 0 0 5px var(--main-color); position:relative;}
#login-page .container { flex-grow:1; position:relative; z-index: 10; display: flex; justify-content: center; align-items: center; gap: 30px; }
#matrix-bg { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; opacity: 0.2; transition: opacity 1s; pointer-events: none; }
#login-page .auth-box { text-align: center; background: rgba(0, 10, 0, 0.9); padding: 40px 30px; border: 2px solid var(--main-color); box-shadow: 0 0 30px rgba(51, 255, 0, 0.3), inset 0 0 30px rgba(51, 255, 0, 0.3); position:relative;}
#login-page .auth-box::before { content:''; position:absolute; top:-10px; left:-10px; width:20px; height:20px; border-left:4px solid var(--main-color); border-top:4px solid var(--main-color); }
#login-page .auth-box::after { content:''; position:absolute; bottom:-10px; right:-10px; width:20px; height:20px; border-right:4px solid var(--main-color); border-bottom:4px solid var(--main-color); }
#login-page .ascii-logo { font-size: 14px; white-space: pre; font-weight: bold; line-height: 1.1; margin-bottom: 25px; cursor: pointer; user-select: none; animation: rapid-flicker 0.1s infinite alternate; filter: drop-shadow(0 0 10px var(--main-color)); color:#fff !important; }
@keyframes rapid-flicker { 0% { opacity: 0.9; } 100% { opacity: 1; } }
.hacker-prompt { font-size: 0.95rem; color: #88ff88; margin-bottom: 5px; text-align:left; letter-spacing:1px;}
#login-page input { background: transparent; border: 2px solid var(--main-color); border-radius: 4px; color: #fff; font-family: 'Consolas', monospace; font-size: 20px; text-align: center; outline: none; width: 100%; box-sizing:border-box; padding: 8px; letter-spacing: 8px; font-weight:bold; box-shadow: inset 0 0 15px rgba(51,255,0,0.2); transition: 0.2s;}
#login-page input:focus { border-color: #ffffff; color: yellow; box-shadow: 0 0 20px var(--main-color), inset 0 0 20px var(--main-color); }
#login-page input::placeholder { color: var(--dim-color); opacity: 0.5; letter-spacing:5px;}
.fingerprint-scan-container { margin-top:20px; border-top: 1px dashed var(--dim-color); padding-top:15px; cursor: pointer; }
.fingerprint-box { width: 80px; height: 100px; border: 2px solid var(--main-color); margin: 10px auto; position:relative; overflow:hidden; background: rgba(0, 50, 0, 0.3); box-shadow: inset 0 0 15px var(--main-color); }
.fingerprint-box::before { content:''; position:absolute; top:0; left:0; width:100%; height:100%; background: linear-gradient(180deg, transparent 0%, rgba(51,255,0,0.1) 50%, transparent 100%); animation: scan-bar 2s linear infinite;}
.fingerprint-svg { width: 80%; height: 80%; margin: 10%; fill:none; stroke: var(--main-color); stroke-width: 2; filter: drop-shadow(0 0 3px var(--main-color)); }
.fp-path { stroke-dasharray: 200; stroke-dashoffset: 200; animation: fp-trace 2s linear infinite; }
@keyframes fp-trace { 0% { stroke-dashoffset: 200; opacity:0; } 50% { stroke-dashoffset: 100; opacity:1; } 100% { stroke-dashoffset: 0; opacity:0; } }
@keyframes scan-bar { 0% { top: -100%; } 100% { top: 100%; } }
.hacker-decor { width: 220px; color: var(--main-color); text-shadow: 0 0 3px var(--main-color); opacity: 0.8; font-size: 0.85rem;}
.hacker-decor pre { margin: 0; white-space: pre-wrap; word-break: break-all; font-family: inherit;}
.hacker-decor div { margin-top: 10px; border-top: 1px dashed var(--dim-color); padding-top:5px; font-weight:bold;}
#login-page button { background: #0a0a0a; color: #fff; border: 2px solid #fff; border-radius:4px; font-family: inherit; font-size: 16px; padding: 12px 20px; cursor: pointer; margin-top: 15px; font-weight: bold; width:100%; text-transform: uppercase; letter-spacing:2px; position:relative; box-shadow: 0 0 10px rgba(255,255,255,0.2); transition: all 0.2s ease; outline:none; }
#login-page button:hover { background: #fff; color: #000; box-shadow: 0 0 25px #fff, 0 0 10px #fff; transform: translateY(-2px); }
#login-page button:active { transform: translateY(1px); box-shadow: 0 0 10px #fff; }
#login-page button.btn-red { border-color: red; color: red; text-shadow: 0 0 5px red; }
#login-page button.btn-red:hover { background: red; color: #fff; box-shadow: 0 0 25px red, 0 0 10px red; }
.glitch { animation: shake 0.5s infinite; color: red; text-shadow: 2px 0 blue; }
.glitch-text { animation: glitch 0.2s linear infinite; color: white !important; text-shadow: 2px 0 red, -2px 0 blue; }
@keyframes shake { 0% { transform: translate(1px, 1px) } 50% { transform: translate(-1px, -1px) } 100% { transform: translate(1px, -1px) } }
@keyframes blink-half { 50% { opacity: 0.5; } }

#standby-screen { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); z-index: 20000; display: none; flex-direction: column; justify-content: center; align-items: center; text-align: center; cursor: pointer; }
.standby-overlay { position: absolute; top:0; left:0; width:100%; height:100%; background: radial-gradient(circle, transparent 20%, #000 120%); pointer-events: none; }
.standby-content { display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 2; width: 100%; max-width: 800px; padding: 20px; }
.standby-radar { width: 120px; height: 120px; border: 2px solid #33ff00; border-radius: 50%; position: relative; margin-bottom: 20px; box-shadow: 0 0 20px rgba(51,255,0,0.4), inset 0 0 20px rgba(51,255,0,0.4); background: rgba(0,20,0,0.8); overflow: hidden; }
.radar-sweep { position: absolute; top: 0; left: 50%; width: 50%; height: 50%; background: linear-gradient(90deg, rgba(51,255,0,0.8) 0%, transparent 100%); transform-origin: 0% 100%; animation: radar-spin 2s linear infinite; }
.radar-dot { position: absolute; width: 6px; height: 6px; background: #ffaa00; border-radius: 50%; top: 30%; left: 60%; box-shadow: 0 0 8px #ffaa00; animation: blink 1.5s infinite; }
@keyframes radar-spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.standby-glitch { font-size: 4rem; font-weight: bold; color: #33ff00; text-shadow: 0 0 15px #33ff00; margin-bottom: 10px; position: relative; }
.standby-glitch::before, .standby-glitch::after { content: attr(data-text); position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0.8; }
.standby-glitch::before { left: 2px; text-shadow: -2px 0 red; clip: rect(24px, 550px, 90px, 0); animation: glitch-anim-2 3s infinite linear alternate-reverse; }
.standby-glitch::after { left: -2px; text-shadow: -2px 0 blue; clip: rect(85px, 550px, 140px, 0); animation: glitch-anim 2.5s infinite linear alternate-reverse; }
@keyframes glitch-anim { 0% { clip: rect(10px, 9999px, 80px, 0); } 20% { clip: rect(80px, 9999px, 1px, 0); } 40% { clip: rect(43px, 9999px, 1px, 0); } 60% { clip: rect(25px, 9999px, 58px, 0); } 80% { clip: rect(5px, 9999px, 1px, 0); } 100% { clip: rect(30px, 9999px, 40px, 0); } }
@keyframes glitch-anim-2 { 0% { clip: rect(65px, 9999px, 100px, 0); } 20% { clip: rect(3px, 9999px, 5px, 0); } 40% { clip: rect(10px, 9999px, 80px, 0); } 60% { clip: rect(80px, 9999px, 100px, 0); } 80% { clip: rect(40px, 9999px, 70px, 0); } 100% { clip: rect(15px, 9999px, 30px, 0); } }
.standby-sub { font-size: 1.2rem; letter-spacing: 5px; color: #88ff88; margin-bottom: 20px; text-align: center; }
.standby-hex { font-size: 0.9rem; color: #004400; font-family: monospace; white-space: pre-wrap; word-break: break-all; max-height: 120px; overflow: hidden; width: 90%; text-align: left; opacity: 0.7; margin-bottom: 20px; border-top: 1px dashed #004400; border-bottom: 1px dashed #004400; padding: 10px 0; }
.standby-footer { color: #555; font-size: 1rem; animation: blink 1.5s infinite; letter-spacing: 2px; }

#boot-screen, #shutdown-screen, #defrag-screen { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); z-index: 20000; display: none; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
#boot-screen { background: black; align-items: flex-start; justify-content: flex-start; padding: 20px; font-size: 16px; cursor: pointer; text-align: left; }
#boot-text { text-align: left; width: 100%; }
.boot-line { margin-bottom: 5px; opacity: 0; text-align: left; }
.boot-cursor { display: inline-block; width: 10px; height: 18px; background: var(--main-color); animation: blink 0.5s infinite; margin-top: 2px; }
#skip-msg { position: absolute; bottom: 20px; right: 20px; color: #444; font-size: 0.8rem; animation: blink 1s infinite; }
.shutdown-warning { color: red; font-size: 3rem; font-weight: bold; animation: blink 0.5s infinite; text-shadow: 0 0 10px red; margin-bottom: 20px; }
.shutdown-logs { color: #aaa; font-size: 1.2rem; white-space: pre-wrap; text-align: left; width: 90%; max-width: 450px; margin: 0 auto; }
.defrag-title { font-size: 1.5rem; color: #ffff00; margin-bottom: 10px; animation: blink 0.3s infinite; }
.defrag-box { border: 2px solid var(--dim-color); background: #001100; padding: 10px; box-shadow: 0 0 15px #000; }
#defrag-grid { display: grid; grid-template-columns: repeat(20, 12px); gap: 2px; }
.sector { width: 12px; height: 12px; background: #000; } .sector.read { background: #33ff00; } .sector.frag { background: #ff3333; } .sector.opt { background: #0088ff; } .sector.empty { background: #222; }   

/* =========================================
   4. INDEX MAIN PAGE
========================================= */
#index-page { background-color: var(--bg-color); color: var(--main-color); font-family: 'Consolas', 'Monaco', 'Nanum Gothic Coding', monospace; margin: 0; padding: 10px; font-size: 16px; line-height: 1.4; overflow-x: hidden; transition: all 0.5s ease; display: flex; flex-direction: column; min-height: 100dvh; transform-origin: center center; }
.index-main-container { max-width: 1680px; margin: 0 auto; width: 100%; flex-grow: 1; display: flex; flex-direction: column; position: relative; z-index: 10; }
#index-page.crt-off { animation: turn-off 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards; }
@keyframes turn-off { 0% { transform: scale(1, 1); filter: brightness(1); } 60% { transform: scale(1, 0.001); filter: brightness(5); } 100% { transform: scale(0, 0); filter: brightness(0); } }

.top-bar { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 1px solid var(--main-color); padding-bottom: 5px; margin-bottom: 15px; flex-wrap: wrap;}
.title-area { display: flex; flex-direction: column; }
.title { font-size: 1.5rem; text-shadow: 0 0 5px var(--main-color); font-weight: bold; cursor: pointer; user-select: none;} .title:hover { color: #fff; }
.exp-container { font-size: 1.1rem; color: #aaa; margin-top: 5px; display: flex; align-items: center; gap: 5px; } 
.usage-label { font-weight: bold; color: #88ff88; }
.exp-bar { letter-spacing: 2px; color: var(--main-color); font-size: 1.3rem; margin-top: -2px; }
#usage-percent { font-size: 1.2rem; font-weight: bold; color: #fff; text-shadow: 0 0 5px #fff; }
.clock-container { text-align: right; } .clock { font-size: 1.3rem; font-weight: bold; } #overclock-timer { display: none; color: var(--alert-color); font-size: 1.5rem; font-weight: bold; animation: blink 1s infinite; }

.controls { display: flex; gap: 5px; align-items: center; margin-bottom: 15px; flex-wrap: wrap; }
.controls input[type="date"], .controls .btn { height: 32px; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; font-family: inherit; font-size: 1rem; border: 1px solid var(--main-color); background: transparent; color: var(--main-color); cursor: pointer; font-weight: bold; transition: 0.2s; }
.controls input[type="date"] { background: black; padding: 0 10px; border-color: var(--dim-color); position: relative; }
.controls input[type="date"]::-webkit-calendar-picker-indicator { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2333ff00' viewBox='0 0 16 16'%3E%3Cpath d='M14 0H2a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2zM1 3.857C1 3.384 1.448 3 2 3h12c.552 0 1 .384 1 .857v10.286c0 .473-.448.857-1 .857H2c-.552 0-1-.384-1-.857V3.857z'/%3E%3Cpath d='M6.5 7a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm-9 3a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm-9 3a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: center; opacity: 1; cursor: pointer; filter: drop-shadow(0 0 2px var(--main-color)); }
.controls .btn { padding: 0 10px; min-width: 60px; text-decoration: none; }
.btn.muted { color: #555; border-color: #555; text-decoration: line-through; }
#btn-overclock { border-color: var(--alert-color); color: var(--alert-color); box-shadow: 0 0 5px var(--alert-dim); }
.date-nav-group { display: flex; gap: 5px; flex-wrap: wrap; align-items: center; }

.content-wrapper { flex: 1; } 
.log-table { width: 100%; border-collapse: collapse; } .log-table th { text-align: left; border-bottom: 2px solid var(--main-color); padding: 10px; } .log-table td { padding: 10px; border-bottom: 1px solid var(--dim-color); vertical-align: top; }
.log-row { transition: background-color 0.5s ease, box-shadow 0.5s ease; } .active-row { background-color: var(--highlight); animation: pulse 3s infinite; box-shadow: inset 0 0 10px var(--dim-color); } .active-dot { color: red; animation: blink 1s infinite; font-weight: bold; }
textarea { width: 95%; background: transparent; color: #fff; border: 1px dashed var(--dim-color); font-family: inherit; font-size: 1rem; padding: 5px; min-height: 40px; resize: none; overflow: hidden; box-sizing: border-box;} textarea:focus { border-color: var(--main-color); outline: none; background: rgba(0,255,0,0.05); }
.guide-text { font-size: 0.9rem; color: #aaa; font-style: italic; white-space: pre-wrap; word-break: break-word; }

#memo-container { background: rgba(0, 20, 0, 0.3); border-top: 2px solid var(--dim-color); padding: 15px 10px; }
#daily-memo { width: 100%; min-height: 80px; font-size: 1.1rem; border-color: #55aa55; }
.memo-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; flex-wrap: wrap; gap: 10px; }
.memo-title { display: block; color: #ffff00; font-weight: bold; font-size: 1.1rem; text-shadow: 0 0 3px #ffff00; margin-bottom: 0; }

.fab-container { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 10000; }
.fab-btn { background: rgba(0, 10, 0, 0.8); color: var(--main-color); border: 1px solid var(--main-color); width: 50px; height: 50px; font-family: inherit; font-weight: bold; font-size: 0.9rem; cursor: pointer; box-shadow: 0 0 10px rgba(51, 255, 0, 0.2); transition: all 0.2s ease; display: flex; justify-content: center; align-items: center; }
.fab-btn.syncing { animation: pulse-sync 0.5s infinite; color: yellow; border-color: yellow; }
@keyframes pulse-sync { 0% { box-shadow: 0 0 5px yellow; } 50% { box-shadow: 0 0 20px yellow; } 100% { box-shadow: 0 0 5px yellow; } }

/* =========================================
   5. MODALS (Bookmarks & Alerts)
========================================= */
.modal-screen { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); z-index: 30000; display: none; flex-direction: column; justify-content: center; align-items: center; backdrop-filter: blur(2px); }
.modal-box { background: #000000; border: 4px double var(--alert-color); padding: 30px 20px 25px 20px; text-align: center; box-shadow: 10px 10px 0px rgba(0, 0, 0, 0.9); transform: scale(0.8); opacity: 0; transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275); width: 90%; max-width: 450px; box-sizing: border-box; }
.modal-screen.show .modal-box { transform: scale(1); opacity: 1; }
.modal-warning { background: var(--alert-color); color: #000 !important; font-size: 1.3rem; font-weight: bold; margin-bottom: 20px; letter-spacing: 2px; display: inline-block; padding: 4px 20px; text-shadow: none; }
.modal-msg { color: #fff; font-size: 1.1rem; line-height: 1.6; margin-bottom: 20px; font-family: 'Consolas', monospace; }
.modal-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 15px; border-top: 1px dashed #555; padding-top: 20px; width: 100%; }
.modal-actions .btn { flex: 1; min-width: 100px; height: 40px; font-weight: bold; letter-spacing: 1px; }

.bmk-modal-box { border-color: #0088ff; max-width: 500px; }
.bmk-modal-box .modal-warning { background: #0088ff; }
.bmk-list { max-height: 40vh; overflow-y: auto; margin-bottom: 20px; border: 1px dashed #0088ff; padding: 10px; background: rgba(0, 136, 255, 0.05); }
.bmk-item { display: flex !important; flex-direction: row !important; justify-content: space-between !important; align-items: center !important; padding: 8px 0; border-bottom: 1px solid #113355; }
.bmk-link { display: flex !important; flex-direction: row !important; align-items: center !important; gap: 10px; cursor: pointer; overflow: hidden; color: #fff; font-weight: bold; transition: color 0.2s; text-align: left; flex: 1;}
.bmk-link:hover { color: #00ffff; }
.bmk-link img { width: 16px; height: 16px; flex-shrink: 0; display: block !important; }
.bmk-item > div:last-child { display: flex !important; flex-direction: row !important; gap: 5px; flex-shrink: 0; }
.bmk-form { display: flex; gap: 5px; flex-wrap: wrap; align-items: center; justify-content: center; width: 100%; }
.bmk-input { flex: 1; min-width: 100px; background: #000; border: 1px solid #0088ff; color: #0f0; padding: 8px; font-family: inherit; box-sizing: border-box; }

/* =========================================
   6. BINDER FULLSCREEN & SPLIT DRAWER
========================================= */
#binder-page { background-color: var(--bg-color); color: var(--main-color); font-family: 'Consolas', 'Monaco', 'Nanum Gothic Coding', monospace; margin: 0; padding: 10px; display: flex; flex-direction: column; height: 100dvh; overflow: hidden; box-sizing: border-box; }
#binder-page .container { display: flex; flex-direction: column; flex-grow: 1; min-height: 0; }
.binder-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--main-color); padding-bottom: 10px; margin-bottom: 15px; flex-wrap: wrap; gap: 10px; flex-shrink: 0; }
.binder-header h1 { color: #00ffff; text-shadow: 0 0 10px #00ffff; margin: 0; font-size: 1.5rem; letter-spacing: 2px; }
.binder-container { display: flex; flex-grow: 1; min-height: 0; gap: 20px; padding-bottom: 10px; }
.binder-sidebar { width: 320px; height: 100%; border: 1px solid #00ffff; background: rgba(0, 255, 255, 0.05); display: flex; flex-direction: column; flex-shrink: 0; }

.binder-search-box { padding: 10px; border-bottom: 1px solid #00ffff; }
.binder-search-box::before { content: "root@binder:~# "; color: #ff00ff; font-weight: bold; margin-bottom: 8px; display: block; font-size: 0.95rem; }
.binder-search-box input { width: 100%; padding: 8px; background: #000; color: #00ffff; border: 1px dashed #00ffff; font-family: inherit; outline: none; box-sizing: border-box; }
.binder-search-box input:focus { background: rgba(0, 255, 255, 0.1); }

.binder-doc-list { overflow-y: auto; flex-grow: 1; padding: 10px; }
.binder-section-title { color: #ff00ff; font-weight: bold; margin-top: 15px; margin-bottom: 5px; border-bottom: 1px dashed #ff00ff; padding-bottom: 3px; font-size: 1.1rem; cursor: pointer; user-select: none; display: flex; justify-content: space-between; align-items: center; transition: 0.2s; }
.binder-section-title:hover { color: #ffff00; border-bottom-color: #ffff00; }
.binder-section-title::after { content: '▼'; font-size: 0.7em; color: #ffff00; transition: transform 0.3s ease; }
.binder-section-title.collapsed::after { transform: rotate(-90deg); }
.binder-doc-group { overflow: hidden; max-height: 2000px; transition: max-height 0.3s ease; }
.binder-doc-group.collapsed { display: none; }
.binder-doc-item { cursor: pointer; padding: 8px; color: #33ff00; padding-left: 15px; transition: 0.2s; word-break: break-all; }
.binder-doc-item:hover, .binder-doc-item.active { color: #000; background: #33ff00; border-left: 3px solid #ff00ff; font-weight: bold; }
.binder-doc-item::before { content: ">_ "; font-size: 0.9em; color: #ffff00; font-weight: bold; }

.binder-editor { flex-grow: 1; height: 100%; border: 1px solid #00ffff; background: rgba(0, 0, 0, 0.8); display: flex; flex-direction: column; padding: 15px; width: 100%; box-sizing: border-box; }

/* [FIXED] 섹션과 제목이 무조건 1줄에 나란히 배치되도록 CSS 강제 고정 */
.binder-editor-header { display: flex; flex-direction: row !important; flex-wrap: nowrap; gap: 10px; margin-bottom: 10px; }
select.section-input, input.section-input { background: #000; color: #ffaa00; border: 1px solid #ffaa00; padding: 10px; font-family: inherit; font-size: 1.1rem; outline: none; box-sizing: border-box; width: 100%; }
select.section-input { appearance: none; cursor: pointer; }
select.section-input option { background: #000; color: #ffaa00; }

.binder-editor-header input#binderDocTitle { flex-grow: 1; background: #000; color: #00ffff; border: 1px solid #00ffff; padding: 10px; font-family: inherit; font-size: 1.1rem; outline: none; box-sizing: border-box; min-width: 0; width: 100%; }
.binder-editor-content { flex-grow: 1; background: transparent; color: #00ffff; border: 1px solid #333; padding: 15px; font-family: inherit; font-size: 1rem; resize: none; margin-bottom: 10px; outline: none; box-sizing: border-box; width: 100%; overflow-y: auto !important; touch-action: pan-y; min-height: 0; }
.binder-editor-content:focus { border-color: #00ffff; background: rgba(0, 255, 255, 0.02); }

.ref-links { display: none; gap: 8px; flex-wrap: wrap; margin-top: 5px; padding: 8px 10px; background: rgba(0, 255, 255, 0.05); border-left: 2px solid #00ffff; box-sizing: border-box; width: 95%; }
.ref-tag { background: #001a1a; color: #00ffff; border: 1px solid #00ffff; padding: 3px 10px; font-size: 0.85rem; cursor: pointer; border-radius: 4px; font-family: inherit; transition: all 0.2s ease; box-shadow: 0 0 5px rgba(0, 255, 255, 0.2); }
.ref-tag:hover { background: #00ffff; color: #000; box-shadow: 0 0 10px #00ffff; }

.binder-drawer { position: fixed; top: 0; left: 0; transform: translateX(calc(-100% - 60px)); width: 45%; min-width: 500px; max-width: 90vw; height: 100dvh; background: rgba(0, 5, 5, 0.98); border-right: 2px solid #00ffff; z-index: 25000; transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); box-shadow: 15px 0 30px rgba(0, 255, 255, 0.15); display: flex; flex-direction: column; }
.binder-drawer.open { transform: translateX(0); }
.binder-drawer-header { display: flex; justify-content: space-between; align-items: center; padding: 15px; border-bottom: 1px solid var(--main-color); margin-bottom: 15px; }
.binder-drawer-header .drawer-title { color: #00ffff; font-weight: bold; text-shadow: 0 0 10px #00ffff; font-size: 1.5rem; letter-spacing: 2px; margin: 0; }
.binder-drawer-body { display: flex; flex-grow: 1; overflow: hidden; }

#binder-drawer .binder-drawer-body { position: relative; }
#binder-drawer .binder-sidebar { position: absolute; top: 0; left: -400px; z-index: 100; height: 100%; background: rgba(0, 10, 10, 0.98); box-shadow: 10px 0 20px rgba(0,255,255,0.2); transition: left 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
#binder-drawer .binder-sidebar.open { left: 0; }

/* =========================================
   7. MARKDOWN RENDER ENGINE (READ MODE)
========================================= */
.md-viewer { width: 100%; min-height: 80px; padding: 15px; box-sizing: border-box; background: rgba(0, 20, 0, 0.2); border: 1px dashed #55aa55; color: #ddd; font-family: inherit; line-height: 1.6; overflow-y: auto; word-break: break-word; white-space: pre-wrap; }
.binder-editor .md-viewer { border: 1px solid #333; background: rgba(0, 255, 255, 0.02); color: #00ffff; }
.md-h1 { font-size: 1.6rem; color: #fff; border-bottom: 2px solid var(--dim-color); margin: 15px 0 10px 0; padding-bottom: 5px; }
.md-h2 { font-size: 1.3rem; color: #ffff00; margin: 15px 0 5px 0; }
.md-h3 { font-size: 1.1rem; color: #88ff88; margin: 10px 0 5px 0; }
.md-bold { font-weight: bold; color: #ffaa00; text-shadow: 0 0 3px rgba(255,170,0,0.5); }
.md-italic { font-style: italic; color: #aaa; }
.md-underline { text-decoration: underline; text-underline-offset: 4px; color: #fff; }
.md-strike { text-decoration: line-through; opacity: 0.5; }
.md-cb { color: var(--alert-color); font-weight: bold; }
.md-cb-done { color: var(--main-color); font-weight: bold; }
.md-cb-mig { color: #0088ff; font-weight: bold; }

/* =========================================
   8. OVERCLOCK (HINOKAMI KAGURA)
========================================= */
#index-page.overclock-mode { --main-color: #ff3300 !important; --dim-color: #661100 !important; --highlight: #220000 !important; animation: hinokami-bg 1s infinite alternate; }
@keyframes hinokami-bg { 0% { box-shadow: inset 0 0 10px #440000; } 50% { box-shadow: inset 0 0 30px #ff3300; } 100% { box-shadow: inset 0 0 15px #ffaa00; } }
@keyframes hinokami-burn { 0% { color: #ff1111; border-color: #ff1111; text-shadow: 0 0 5px #ff1111; } 50% { color: #ff6600; border-color: #ff6600; text-shadow: 0 0 15px #ff6600, 0 0 5px #ffff00; } 100% { color: #ffcc00; border-color: #ffcc00; text-shadow: 0 0 8px #ffcc00; } }
@keyframes hinokami-border { 0% { border-color: #ff1111; border-top-color: #ff1111; box-shadow: inset 0 0 5px rgba(255, 17, 17, 0.2); } 50% { border-color: #ff6600; border-top-color: #ff6600; box-shadow: inset 0 0 15px rgba(255, 102, 0, 0.5); } 100% { border-color: #ffcc00; border-top-color: #ffcc00; box-shadow: inset 0 0 5px rgba(255, 204, 0, 0.2); } }
@keyframes hinokami-svg { 0% { filter: drop-shadow(0 0 3px #ff1111) hue-rotate(0deg); } 50% { filter: drop-shadow(0 0 8px #ff6600) hue-rotate(40deg); } 100% { filter: drop-shadow(0 0 4px #ffcc00) hue-rotate(70deg); } }
#index-page.overclock-mode .btn:not(#btn-overclock), #index-page.overclock-mode .fab-btn, #index-page.overclock-mode .memo-title, #index-page.overclock-mode #usage-percent, #index-page.overclock-mode #realtime-clock, #index-page.overclock-mode .ref-tag, #index-page.overclock-mode .usage-label, #index-page.overclock-mode #usage-bar-display { color: #ff3300 !important; border-color: #ff3300 !important; background: transparent !important; animation: hinokami-burn 0.8s infinite alternate !important; }
#index-page.overclock-mode .fab-btn { background: rgba(30, 0, 0, 0.8) !important; }
#index-page.overclock-mode #memo-container, #index-page.overclock-mode #daily-memo { border-color: #ff3300 !important; border-top-color: #ff3300 !important; animation: hinokami-border 0.8s infinite alternate !important; }
#index-page.overclock-mode input[type="date"]::-webkit-calendar-picker-indicator { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23ff3333' viewBox='0 0 16 16'%3E%3Cpath d='M14 0H2a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2zM1 3.857C1 3.384 1.448 3 2 3h12c.552 0 1 .384 1 .857v10.286c0 .473-.448.857-1 .857H2c-.552 0-1-.384-1-.857V3.857z'/%3E%3Cpath d='M6.5 7a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm-9 3a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm-9 3a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2z'/%3E%3C/svg%3E") !important; animation: hinokami-svg 0.8s infinite alternate !important; }
#index-page.overclock-mode .binder-drawer { background: rgba(10, 0, 0, 0.98) !important; border-right-color: var(--alert-color) !important; box-shadow: 15px 0 30px rgba(255, 51, 51, 0.2) !important; }
#index-page.overclock-mode .binder-drawer-header { border-bottom-color: var(--alert-color) !important; }
#index-page.overclock-mode .binder-drawer-header .drawer-title { color: var(--alert-color) !important; text-shadow: 0 0 5px var(--alert-color) !important; animation: hinokami-burn 0.8s infinite alternate !important; }
#index-page.overclock-mode .binder-sidebar { border-right-color: var(--alert-color) !important; }
#index-page.overclock-mode .binder-search-box { border-bottom-color: var(--alert-color) !important; }
#index-page.overclock-mode .binder-search-box::before { color: var(--alert-color) !important; }
#index-page.overclock-mode .binder-search-box input { border-color: var(--alert-color) !important; color: var(--alert-color) !important; }
#index-page.overclock-mode .binder-section-title { border-bottom-color: var(--alert-color) !important; color: var(--alert-color) !important; }
#index-page.overclock-mode .binder-doc-item { color: var(--alert-color) !important; }
#index-page.overclock-mode .binder-doc-item::before { color: var(--alert-color) !important; }
#index-page.overclock-mode .binder-doc-item:hover, #index-page.overclock-mode .binder-doc-item.active { background: rgba(255, 51, 51, 0.15) !important; border-left-color: var(--alert-color) !important; color: #fff !important; }
#index-page.overclock-mode .binder-editor { border-color: var(--alert-color) !important; }
#index-page.overclock-mode .binder-editor-header input { border-color: var(--alert-color) !important; color: var(--alert-color) !important; }
#index-page.overclock-mode .binder-editor-content { border-color: var(--alert-dim) !important; color: var(--alert-color) !important; }
#index-page.overclock-mode .binder-empty-state { border-color: var(--alert-color) !important; color: var(--alert-color) !important; }
#index-page.overclock-mode .md-viewer { border-color: var(--alert-color) !important; background: rgba(20, 0, 0, 0.3); color: var(--alert-color) !important; }
#index-page.overclock-mode .md-h1, #index-page.overclock-mode .md-h2, #index-page.overclock-mode .md-h3, #index-page.overclock-mode .md-bold, #index-page.overclock-mode .md-underline { color: var(--alert-color) !important; border-color: var(--alert-color) !important; text-shadow: 0 0 5px var(--alert-color) !important; }

/* =========================================
   9. MOBILE RESPONSIVE
========================================= */
.binder-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 39999; backdrop-filter: blur(2px); }
.binder-overlay.show { display: block; }
@media (max-width: 768px) {
    #boot-screen { font-size: 13px; } .boot-cursor { height: 14px; }
    .hide-on-mobile { display: none !important; } .show-on-mobile { display: inline-flex !important; }
    .exp-container { font-size: 0.95rem; } .exp-bar { font-size: 1.1rem; letter-spacing: 1px; } #usage-percent { font-size: 1.0rem; }
    .date-nav-group { flex-basis: 100%; display: flex; justify-content: space-between; margin-top: 10px; border-top: 1px dashed var(--dim-color); padding-top: 10px; }
    .date-nav-group .btn { flex: 1; margin: 0 2px; } .date-nav-group input[type="date"] { flex: 2; }
    #config-page table, #config-page thead, #config-page tbody, #config-page th, #config-page td, #config-page tr { display: block; }
    #config-page thead { display: none; }
    #config-page tr { display: flex; flex-wrap: wrap; border: 2px solid #ffffff; margin-bottom: 15px; background: #000066; padding: 10px; box-shadow: 3px 3px 0px rgba(0,0,0,0.5); }
    #config-page td { border: none; padding: 2px 4px; box-sizing: border-box; }
    .cell-start { width: 48%; order: 1; } .cell-end { width: 48%; order: 2; margin-left: 4%; } 
    .cell-mode { width: 100%; order: 3; margin-top: 5px; } .cell-guide { width: 100%; order: 4; margin-bottom: 5px; }
    .cell-ctrl { width: 100%; order: 5; display: flex; justify-content: space-between; gap: 5px; margin-top: 10px; border-top: 1px dashed #555; padding-top: 10px;}
    #config-page input { font-size: 1.2rem; height: 40px; } #config-page input[name="start[]"], #config-page input[name="end[]"] { text-align: center; background: #000044; border: 1px solid #666; }
    #config-page input[name="mode[]"] { font-weight: bold; color: #ffff00; border-bottom: 1px dashed #888; padding-left: 0; }
    #config-page button.del-btn, #config-page button.ctrl-btn { width: auto; flex: 1; height: 40px; margin: 0; font-size: 1.1rem; }
    #config-page button.main-action { width: 100%; margin-bottom: 5px; }
    .shutdown-warning { font-size: 1.5rem; } .shutdown-logs { font-size: 0.9rem; max-width: 300px; } 
    #defrag-grid { grid-template-columns: repeat(15, 12px); }
    .log-table, .log-table tbody, .log-table tr, .log-table td, .log-table th { display: block; width: 100%; box-sizing: border-box; }
    .log-table thead { display: none; }
    .log-table tr { margin-bottom: 20px; border: 1px solid var(--dim-color); padding: 10px; }
    .log-table td { border: none; padding: 5px 0; }
    .time-slot { font-weight: bold; font-size: 1.2rem; border-bottom: 1px solid var(--dim-color); display: block; margin-bottom: 5px; }
    .mode-label { color: #88ff88; display: block; margin-top: 5px; } .guide-text { display: block; margin-bottom: 10px; }
    textarea { width: 100%; border: 1px solid var(--dim-color); background: #050505; }
    .fab-container { bottom: 15px; right: 15px; } .fab-btn { width: 45px; height: 45px; font-size: 0.8rem; }
    .modal-box { padding: 20px; width: 95%; } .modal-warning { font-size: 1.5rem; } .modal-msg { font-size: 1rem; }
    #binder-page { height: 100dvh; min-height: 100dvh; overflow: hidden; padding-bottom: env(safe-area-inset-bottom, 10px); }
    .binder-container { flex-direction: column; flex-grow: 1; display: flex; min-height: 0; padding-bottom: 0; position: relative; }
    .binder-sidebar { position: fixed; top: 0; left: -100%; width: 80%; max-width: 320px; height: 100dvh; z-index: 40000; background: rgba(0, 10, 10, 0.98); border-right: 2px solid #00ffff; transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 10px 0 20px rgba(0,255,255,0.1); }
    .binder-sidebar.open { left: 0; }
    .binder-editor { height: auto; flex-grow: 1; display: flex; flex-direction: column; padding: 10px 0 0 0; border: none; border-top: 1px solid #00ffff; margin-top: 10px; min-height: 0; }
    
    /* [FIXED] 모바일에서도 섹션 박스와 제목이 무조건 가로로 정렬되도록 CSS 픽스 */
    .binder-editor-header { display: flex; flex-direction: row !important; flex-wrap: nowrap; gap: 5px; }
    .binder-editor-header > div { width: 35% !important; flex-shrink: 0; }
    .binder-editor-header input#binderDocTitle { width: 65% !important; flex-grow: 1; min-width: 0; }
    
    #binderEditorArea .controls { flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 10px; padding-bottom: 5px; flex-shrink: 0; }
    #binderEditorArea .controls > div { display: flex; gap: 5px; justify-content: space-between; width: 100%; }
    #btn-binder-read { width: 100%; white-space: nowrap; flex-shrink: 0; }
    .modal-actions { flex-direction: column; gap: 8px; }
    .modal-actions .btn { width: 100%; margin: 0; height: 45px; flex: none; }
    .bmk-form { flex-direction: row; flex-wrap: nowrap; }
    .bmk-form .btn-blue { height: 35px; padding: 0 15px; }
    .ref-links { width: 100%; }
    #index-page .binder-drawer { display: none !important; }
}

/* =========================================
   10. DATA-LINK TRANSITION (Cinematic)
========================================= */
.transit-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 15, 15, 1); z-index: 99999; display: flex; justify-content: center; align-items: center; transform: scaleY(0); transition: transform 0.25s cubic-bezier(0.8, 0, 0.2, 1); transform-origin: center; border-top: 5px solid #00ffff; border-bottom: 5px solid #00ffff; box-sizing: border-box; }
.transit-overlay.active { transform: scaleY(1); }
.transit-text { color: #00ffff; font-size: 2rem; font-weight: bold; font-family: 'Consolas', monospace; animation: blink 0.2s infinite; text-shadow: 0 0 15px #00ffff; letter-spacing: 5px; text-align: center; padding: 20px; }
.transit-overlay.exit { background: rgba(20, 0, 0, 1); border-color: #ff3333; }
.transit-overlay.exit .transit-text { color: #ff3333; text-shadow: 0 0 15px #ff3333; }
@media (max-width: 768px) { .transit-text { font-size: 1.2rem; } }

/* =========================================
   11. DRAG & DROP SECTIONS
========================================= */
.binder-section-wrapper { transition: opacity 0.2s; cursor: grab; padding: 2px 0; margin-bottom: 5px; }
.binder-section-wrapper:active { cursor: grabbing; }
.binder-section-wrapper.dragging { opacity: 0.3; }
.binder-section-wrapper.drag-over { border-top: 2px solid #00ffff; padding-top: 8px; }
.binder-section-wrapper.drag-over-bottom { border-bottom: 2px solid #00ffff; padding-bottom: 8px; }

/* =========================================
   12. SYSTEM OVERLAYS (Matrix & Overclock)
========================================= */
#matrix-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 9998; pointer-events: none; opacity: 0; transition: opacity 0.5s; }
#overclock-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 15000; pointer-events: none; opacity: 0; transition: opacity 1s ease; mix-blend-mode: color-dodge; }
#index-page.overclock-mode #overclock-overlay { display: block; opacity: 1; }
#overclock-ascii-fire { position: absolute; bottom: 0; left: 0; width: 100%; height: 100%; font-family: 'Consolas', monospace; font-size: 14px; line-height: 14px; white-space: pre; overflow: hidden; text-align: center; background: linear-gradient(0deg, rgba(255,17,17,1) 0%, rgba(255,102,0,0.8) 40%, rgba(255,204,0,0.5) 70%, rgba(0,0,0,0) 100%); -webkit-background-clip: text; color: transparent; filter: blur(1px); animation: fire-shimmer 1s infinite alternate; }

/* =========================================
   13. GLOBAL SEARCH TERMINAL
========================================= */
#global-search-screen input::placeholder { color: #0088ff; opacity: 0.5; font-style: italic; letter-spacing: 2px; }
.gs-item { border-left: 3px solid #00ffff; padding: 12px; background: rgba(0, 20, 20, 0.8); cursor: pointer; transition: all 0.2s ease; border-bottom: 1px solid rgba(0,255,255,0.1); }
.gs-item:hover { background: rgba(0, 255, 255, 0.15); transform: translateX(5px); box-shadow: -2px 0 10px rgba(0,255,255,0.3); }
.gs-type { font-size: 0.8rem; font-weight: bold; padding: 3px 8px; border-radius: 2px; margin-right: 12px; letter-spacing: 1px; }
.gs-type.binder { background: #00ffff; color: #000; }
.gs-type.log { background: #33ff00; color: #000; }
.gs-type.bookmark { background: #0088ff; color: #fff; }
.gs-title { color: #fff; font-weight: bold; font-size: 1.1rem; text-shadow: 0 0 3px rgba(255,255,255,0.5); }
.gs-preview { color: #aaa; font-size: 0.9rem; margin-top: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hash-tag { background: #1a001a !important; color: #ff00ff !important; border-color: #ff00ff !important; }
.hash-tag:hover { background: #ff00ff !important; color: #000 !important; box-shadow: 0 0 10px #ff00ff !important; }