#amagi-terminal-wrapper {
    background-color: #100F1C;
    width: 100%;
    height: 400px;
    max-height: 60vh; 
    border: 1px solid #333;
    padding: 15px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 20px rgba(16, 15, 28, 0.8), inset 0 0 50px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.6rem; 
    color: #e0e0e0;
    box-sizing: border-box;
}

#amagi-header {
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
    margin-bottom: 5px;
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    font-weight: bold; 
    color: #fff;
    text-shadow: 0 0 5px rgba(255,255,255,0.3);
}

#amagi-status-bar { 
    display: flex; 
    gap: 10px; 
    font-weight: normal; 
    color: #555; 
}

.amagi-stat-ready { color: #00ff00; text-shadow: 0 0 5px rgba(0,255,0,0.5); }
.amagi-stat-busy { color: #ffff00; text-shadow: 0 0 5px rgba(255,255,0,0.5); }
.amagi-stat-err { color: #ff3333; text-shadow: 0 0 5px rgba(255,0,0,0.5); }

#amagi-window {
    flex: 1; 
    overflow-y: auto; 
    display: flex; 
    flex-direction: column;
    scroll-behavior: smooth; 
    padding-right: 5px;
}
#amagi-window::-webkit-scrollbar { width: 4px; }
#amagi-window::-webkit-scrollbar-track { background: #100F1C; }
#amagi-window::-webkit-scrollbar-thumb { background: #333; border-radius: 2px; }

.amagi-line { 
    margin-bottom: 4px; 
    line-height: 1.5; 
    display: flex; 
    align-items: flex-start; 
    word-break: break-word; 
    text-shadow: 0 0 2px rgba(224, 224, 224, 0.3);
}

.amagi-prefix { 
    margin-right: 8px; 
    flex-shrink: 0; 
    color: #aaddff; 
    white-space: nowrap; 
}

.amagi-content { 
    color: #d0d0d0; 
    flex: 1; 
    min-width: 0; 
    white-space: pre-wrap; 
}

#amagi-input-line { 
    display: flex; 
    align-items: center; 
    margin-top: 5px; 
}

#amagi-cmd {
    background: transparent; 
    border: none; 
    color: #fff;
    font-family: inherit; 
    font-size: inherit; 
    flex: 1; 
    outline: none;
    caret-color: #00ff00; 
    padding: 0; 
    margin-left: 5px; 
    min-width: 0;
}
#amagi-cmd:disabled { color: #444; }

#welcomer-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.95); 
    display: none; 
    justify-content: center; align-items: center;
    z-index: 9998; 
    opacity: 0; transition: opacity 0.8s ease;
}
#welcomer-modal.active { display: flex; opacity: 1; }
.welcomer-content {
    background-color: #0d0d0d;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 20px;
    width: 75%;
    max-width: 250px;
    text-align: center;
    box-shadow: 0 0 30px rgba(0, 255, 162, 0.1);
    transform: scale(0.95);
    transition: transform 0.5s cubic-bezier(0.17, 0.67, 0.32, 1.3);
}
#welcomer-modal.active .welcomer-content { transform: scale(1); }
.welcomer-title {
    font-size: 0.8rem; color: #00ffa2; margin: 0 0 10px 0;
    font-family: monospace; letter-spacing: 1px;
}
.welcomer-divider {
    border: 0; height: 1px; background: linear-gradient(90deg, transparent, #333, transparent);
    margin: 10px 0;
}
.welcomer-text {
    color: #bbb; font-size: 0.55rem; line-height: 1.6; margin: 0;
    white-space: pre-wrap; font-family: monospace; }
.welcomer-h4 {
    color: #eee; font-size: 0.6rem; margin: 15px 0 5px 0;
    font-weight: normal; letter-spacing: 0.5px; }
.welcomer-btn {
    background-color: #005533; color: #eee;
    border: 1px solid #008855; border-radius: 6px;
    padding: 8px 20px; cursor: pointer;
    font-family: monospace; font-size: 0.55rem;
    transition: all 0.2s; margin-top: 10px; }
.welcomer-btn:hover {
    background-color: #007744; transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 255, 162, 0.3); }
#boot-screen {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: #000; z-index: 9999;
    display: flex; flex-direction: column;
    justify-content: flex-start; align-items: flex-start;
    padding: 20px; box-sizing: border-box;
    font-family: monospace; font-size: 0.7rem; color: #00ffa2;
    overflow: hidden; transition: opacity 0.5s ease;
}
.boot-line { margin: 2px 0; white-space: pre-wrap; opacity: 0; animation: lineFadeIn 0.1s forwards; }
@keyframes lineFadeIn { from { opacity: 0; } to { opacity: 1; } }
body {
    font-family: monospace; background-color: #100F1C; color: #eee;
    margin: 0; padding: 0; box-sizing: border-box; 
    min-height: 100vh; overflow-x: hidden;
    display: flex; flex-direction: column;
}
#main-content {
    opacity: 1; position: relative; 
    flex-grow: 1; max-width: 100%; margin: 0 auto; padding: 20px; box-sizing: border-box;
}
.avatar-container {
    position: relative;
    width: 150px; height: 150px;
    margin: 50px auto 20px auto;
    display: flex; justify-content: center; align-items: center;
}
#avatar-aura {
    position: absolute; width: 130%; height: 130%;
    border-radius: 50%; background-color: transparent; 
    background-size: cover; background-position: center; background-repeat: no-repeat;
    z-index: 1; cursor: default; transition: all 0.3s ease;
    border: 1px solid transparent;
}
#avatar-aura.clickable-image { cursor: pointer !important; }
#avatar-aura.clickable-image:hover { border-color: #00ffa2 !important; transform: scale(1.02); z-index: 3; }
#profile-avatar {
    width: 150px; height: 150px; background-color: #100F1C; border-radius: 50%;
    position: relative; z-index: 2; margin: 0; display: block;
    transition: all 0.3s ease; border: 2px solid transparent;
    background-repeat: no-repeat; background-position: center; background-size: 105%;
    cursor: default;
}
#profile-avatar.clickable { cursor: pointer; }
#profile-avatar.clickable:hover { border-color: #00ffa2; transform: scale(1.02); }
h1 { color: #eee; margin-top: 60px; margin-bottom: 10px; font-size: 1.0rem; text-align: left; display: flex; align-items: center; gap: 5px; width: fit-content; }
#bio { color: #bbb; font-size: 0.50rem; line-height: 1.6; max-width: 600px; margin: 0 0 30px 0; text-align: left; display: block; }
.verified-badge-container { position: relative; display: flex; align-items: center; justify-content: center; cursor: help; }
.verified-icon { width: 18px; height: 18px; object-fit: contain; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.tooltip-text { visibility: hidden; width: max-content; background-color: #222; color: #00ffa2; text-align: center; border-radius: 4px; padding: 6px 10px; border: 1px solid #444; box-shadow: 0 4px 15px rgba(0,0,0,0.5); position: absolute; z-index: 100; bottom: 140%; left: 50%; transform: translateX(-50%) translateY(5px); opacity: 0; transition: opacity 0.3s ease, transform 0.3s ease; font-size: 0.55rem; font-family: monospace; font-weight: normal; pointer-events: none; }
.tooltip-text::after { content: ""; position: absolute; top: 100%; left: 50%; margin-left: -4px; border-width: 4px; border-style: solid; border-color: #444 transparent transparent transparent; }
.verified-badge-container:hover .tooltip-text { visibility: visible; opacity: 1; transform: translateX(-50%) translateY(0); }
.bio-actions { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: -15px; }
.social-container, .action-button { height: 45px; border: 1px solid #444; border-radius: 8px; display: flex; justify-content: center; align-items: center; box-sizing: border-box; }
.action-button { width: 250px; background-color: #2a2a2a; color: #eee; font-family: monospace; font-size: 0.7rem; cursor: pointer; padding: 0 15px; transition: background-color 0.2s, transform 0.1s; }
.action-button:hover { background-color: #3a3a3a; filter: none; }
.action-button:active { transform: scale(0.98); }
.social-container { width: 250px; background-color: #2a2a2a; padding: 0 10px; }
.social-icons { display: flex; align-items: center; gap: 15px; width: 100%; justify-content: center; }
.social-icons a { color: #bbb; display: inline-flex; align-items: center; justify-content: center; transition: color 0.2s, transform 0.2s; }
.social-icons a:hover { color: #eee; transform: scale(1.1); }
.social-icons img { width: 24px; height: 24px; }
#scroll-prompt { text-align: center; color: #eee; opacity: 0.6; font-size: 0.55rem; margin-top: 20px; margin-bottom: 225px; }
.banner-box, .menu-card-wide, .menu-card-square, .menu-card-short, .menu-card-mini, .menu-card-medium {
    background-color: #100F1C; background-size: cover; background-position: center; background-repeat: no-repeat;
    cursor: default; transition: border-color 0.3s, transform 0.3s;
}
.clickable-image { cursor: pointer !important; border: 1px solid transparent; }
.clickable-image:hover { border-color: #00ffa2 !important; transform: scale(1.01); z-index: 5; }
.banner-box { max-width: 100%; max-height: 90px; height: 90px; border: 1px solid transparent; margin-left: auto; margin-right: auto; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; color: #666; overflow: hidden; box-sizing: border-box; }
#terminal-container { width: 100%; background-color: #0d0d0d; border: 1px solid #333; border-radius: 8px; padding: 20px; box-sizing: border-box; color: #00ff41; opacity: 1; transform: scale(1); transition: opacity 0.5s ease-out 0.5s, transform 0.5s ease-out 0.5s, max-height 0.5s ease-out 0.5s, padding 0.5s 0.5s, border 0.5s 0.5s; max-height: 1000px; }
#terminal-container.hiding { opacity: 0; transform: scale(0.95); max-height: 0; padding-top: 0; padding-bottom: 0; border-width: 0; margin-bottom: 0; transition-delay: 0s; }
#terminal-container p { margin: 0 0 10px 0; font-size: 0.65rem; white-space: pre-wrap; }
#terminal-container p.instruction { color: #888; margin-bottom: 15px; line-height: 1.5; }
#terminal-container p.error { color: #ff4141; }
#terminal-container p.success { color: #00ff41; }
#terminal-container p.help-text { color: #b5b5b5; white-space: pre-wrap; line-height: 1.6; }
#terminal-container .system-prefix { color: #888; }
.terminal-prompt { display: flex; align-items: center; margin-bottom: 1px; }
.terminal-prompt span { color: #00ff41; margin-right: 2px; font-size: 0.65rem; }
.terminal-input { background: none; border: none; color: #00ff41; font-family: monospace; font-size: 0.65rem; width: 90%; padding: 2px; }
.terminal-input:focus { outline: none; }
.terminal-input:disabled { color: #00ff41; opacity: 0.9; }
.terminal-input::placeholder { color: #444; opacity: 1; }
.menu-box { width: 100%; background-color: #222; border: 1px solid #555; border-radius: 8px; box-sizing: border-box; color: #eee; display: block; max-height: 0; max-width: 0; padding: 0 10px; border-width: 0; overflow: hidden; }
.menu-box.showing { animation: expand-menu-compromise 2s ease-out forwards; }
.menu-box.collapsing { animation: collapse-menu-compromise 1s ease-out forwards; }
.menu-box-restricted { background-color: #800000; border-color: #FFFF00; }
#menu-container-six .menu-content { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 120px; padding: 20px; }
#menu-container-six h2 { color: #FFFF00; font-size: 1rem; line-height: 1.5; margin: 0; }
.menu-header { display: flex; justify-content: space-between; align-items: center; }
.menu-header h3 { margin: 5px 0; font-size: 0.8rem; opacity: 0.9; }
.menu-close-btn { background-color: #2a2a2a; border: 1px solid #444; color: #eee; font-family: monospace; font-size: 0.5rem; padding: 8px 12px; border-radius: 6px; cursor: pointer; transition: background-color 0.2s, transform 0.2s, scale 0.2s; scale: 1; }
.menu-close-btn:hover { background-color: #3a3a3a; scale: 1.05; }
.menu-close-btn:active { transform: scale(0.95); }
.menu-divider { border: 0; height: 1px; background-color: #333; margin: 5px 0; }
.menu-content { font-size: 0.56rem; color: #bbb; min-height: 150px; display: flex; flex-direction: column; gap: 5px; }
.menu-card-wide { width: 100%; height: 140px; border-radius: 4px; position: relative; display: flex; align-items: flex-end; padding: 15px; box-sizing: border-box; border: 1px solid #444; }
.menu-card-square { width: 31%; aspect-ratio: 1 / 1; border-radius: 4px; border: 1px solid #444; }
.menu-card-short { width: 100%; height: 65px; border-radius: 4px; border: 1px solid #444; }
.menu-card-mini { width: 30%; aspect-ratio: 1 / 1; border-radius: 4px; margin: 10px auto; }
.menu-card-medium { width: 100%; height: 120px; border-radius: 4px; border: 1px solid #444; }
.menu-image-text-container { position: absolute; bottom: 10px; width: 55%; max-height: calc(100% - 20px); overflow: hidden; display: flex; flex-direction: column-reverse; flex-wrap: wrap; pointer-events: none; }
.menu-image-text-container p { margin: 0; padding: 0; line-height: 1.5; font-size: 0.65rem; color: #eee; word-break: break-word; }
.menu-image-text-container.align-right { left: unset; right: 10px; text-align: right; }
.menu-image-text-container.align-left { left: 10px; right: unset; text-align: left; }
.menu-bottom-text-left { font-size: 0.6rem; color: #bbb; text-align: left; line-height: 1.4; margin-top: 10px; white-space: pre-wrap; }
.menu-bottom-text-left.transparent { font-size: 0.55rem; color: #888; opacity: 0.8; margin: 0; text-align: center; }
.menu-text-divider { border: 0; height: 1px; background-color: #444; margin: 5px 0; }
.menu-image-row-wrapper { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
#menu-container-four h4 { text-align: center; font-size: 0.8rem; margin: 10px 0; color: #eee; }
#menu-container-four .menu-bottom-text-left { text-align: center; }
@keyframes expand-menu-compromise { 0% { max-width: 0%; max-height: 0px; padding: 0 10px; border-width: 0; } 50% { max-width: 100%; max-height: 4px; padding: 0 10px; border-width: 1px; } 100% { max-width: 100%; max-height: 800px; padding: 5px 10px 10px; border-width: 1px; } }
@keyframes collapse-menu-compromise { 0% { max-width: 100%; max-height: 800px; padding: 5px 10px 10px; border-width: 1px; } 50% { max-width: 100%; max-height: 4px; padding: 0 10px; border-width: 1px; } 100% { max-width: 0%; max-height: 0px; padding: 0 10px; border-width: 0; } }
.gallery-section { width: 100%; max-width: 100%; margin: 0 auto; padding: 5px 10px 20px 10px; background-color: #0d0d0d; border: 1px solid #333; border-radius: 8px; box-sizing: border-box; }
.gallery-header { display: flex; justify-content: space-between; align-items: center; }
.gallery-header h3 { margin: 10px 0; font-size: 0.8rem; color: #eee; opacity: 0.9; }
.gallery-toggle-btn, #gallery-add-btn { background-color: #2a2a2a; border: 1px solid #444; color: #eee; font-family: monospace; font-size: 0.5rem; padding: 8px 12px; border-radius: 6px; cursor: pointer; transition: all 0.2s, opacity 0.3s; scale: 1; }
.gallery-toggle-btn:hover, #gallery-add-btn:hover { background-color: #3a3a3a; scale: 1.05; }
.gallery-toggle-btn:active, #gallery-add-btn:active { transform: scale(0.95); }
#gallery-add-btn { display: none; margin-right: 10px; background-color: #005533; border-color: #008855; }
.btn-hidden { opacity: 0 !important; pointer-events: none; }
.gallery-divider { border: 0; height: 1px; background-color: #333; margin: 5px 0 10px; }
.sub-container-wrapper { position: relative; overflow: hidden; max-height: 250px; transition: max-height 1.2s ease-in-out; }
.scroll-track { display: flex; gap: 15px; width: calc(148px * 12 + 15px * 11); animation: infiniteScroll 60s linear infinite; }
.gallery-item { width: 148px; aspect-ratio: 3 / 4; background-color: #100F1C; border: 1px solid #444; border-radius: 8px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 0.6rem; background-size: cover; background-position: center; text-decoration: none; color: transparent; transition: transform 0.2s, border 0.2s; }
.gallery-item:hover { transform: scale(1.05); border-color: #00ffa2; }
.gallery-section.expanded .sub-container-wrapper { max-height: 2000px; overflow: auto; overflow-x: hidden; }
.gallery-section.expanded .scroll-track { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 15px; width: 100%; margin: 0 auto; animation: none; transform: none !important; }
.gallery-section.expanded .gallery-item { width: auto; opacity: 1; }
@keyframes infiniteScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes fade-in-item { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes gallery-open-rtl { 0% { max-width: 0%; max-height: 60px; margin-left: auto; margin-right: 0; opacity: 0; border-width: 0; } 1% { opacity: 1; border-width: 1px; } 50% { max-width: 100%; max-height: 60px; margin-left: 0; } 100% { max-width: 100%; max-height: 2500px; margin-left: 0; opacity: 1; } }
@keyframes gallery-close-ltr { 0% { max-width: 100%; max-height: 2500px; margin-left: 0; opacity: 1; border-width: 1px; } 50% { max-width: 100%; max-height: 60px; margin-left: 0; } 99% { max-width: 0%; max-height: 60px; margin-left: auto; margin-right: 0; opacity: 1; border-width: 1px; } 100% { max-width: 0%; max-height: 0px; opacity: 0; border-width: 0; padding: 0; } }
.gallery-section.animating-open { animation: gallery-open-rtl 2.4s cubic-bezier(0.16, 1, 0.3, 1) forwards; overflow: hidden; }
.gallery-section.animating-close { animation: gallery-close-ltr 2.4s cubic-bezier(0.16, 1, 0.3, 1) forwards; overflow: hidden; }
.btns-fade-out { opacity: 0; pointer-events: none; transition: opacity 0.5s ease; }
.divider-container { position: relative; width: 100vw; left: 50%; transform: translateX(-50%); margin: 60px 0; }
.divider { border: 0; height: 1px; background-color: #eee; opacity: 0.3; width: 100%; }
.divider-text-left { position: absolute; top: 50%; left: 20px; transform: translateY(-50%); background-color: #100F1C; color: rgba(255, 255, 0, 0.9); padding: 0 8px; font-size: 0.6rem; z-index: 2; }
.divider-text-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background-color: #100F1C; color: rgba(255, 255, 0, 0.9); padding: 0 8px; font-size: 0.6rem; z-index: 2; }
.spacer { height: 50vh; }
.animation-wrapper { position: relative; width: 100%; margin: 0 auto; max-width: 800px; overflow: hidden; }
#vault-terminal-container { width: 100%; height: 80px; margin: 0px; background: #0a0a0f; border: 1px solid #2a2a2f; border-radius: 8px; padding: 0.4rem; box-sizing: border-box; font-family: monospace; color: #f2f2f2; overflow-y: auto; cursor: default; transition: opacity 0.7s ease-out; animation: vault-flicker 4s linear infinite alternate; scrollbar-width: thin; scrollbar-color: #444 #111; }
#vault-terminal-container .vault-line { display: block; white-space: pre-wrap; word-break: break-all; font-size: 0.6rem; line-height: 1.2; }
#vault-terminal-container .prefix-input { color: #00ffa2; }
#vault-terminal-container .cmd-text { color: #eaeaea; }
#vault-terminal-container .prefix-output { color: #00b7ff; margin-right: 8px; }
#vault-terminal-container .output-text { color: #b5b5b5; }
#vault-terminal-container .cursor { display: inline-block; background: #00ffa2; width: 8px; height: 14px; margin-left: 4px; opacity: 0; }
#vault-terminal-container .blinking { animation: vault-blink 1s step-start infinite; }
@keyframes vault-blink { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }
@keyframes vault-flicker { from { opacity: 0.95; } to { opacity: 1; } }
.offline-intro { text-align: center; color: #bbb; font-size: 0.6rem; line-height: 1.6; margin: 0 auto 20px auto; max-width: 800px; }
.chat-container { width: 100%; max-width: 800px; margin: 0 auto; padding-bottom: 20px; display: flex; flex-direction: column; gap: 15px; }
.chat-bubble { max-width: 70%; padding: 0 14px; border-radius: 12px; font-size: 0.55rem; line-height: 1.6; white-space: pre-wrap; box-sizing: border-box; display: flex; align-items: center; }
.chat-bubble p { margin: 6px 0; }
.chat-bubble.align-left { background-color: #2a2a2a; border-bottom-left-radius: 4px; align-self: flex-start; color: #bbb; }
.chat-bubble.align-right { background-color: #3a3a3a; border-bottom-right-radius: 4px; align-self: flex-end; color: #eee; }
.chat-bubble em { color: #eee; font-style: italic; }
.chat-bubble strong { color: #fff; font-weight: bold; }
#bubble-1, #bubble-3, #bubble-5 { height: 35px; }
#bubble-2 { height: 50px; }
#bubble-4 { height: 60px; width: 233px; }
#bubble-6 { height: 75px; width: 243px; }
.contact-text { text-align: center; color: #bbb; font-size: 0.7rem; margin-top: 30px; margin-bottom: 20px; }
.bottom-social { margin-bottom: 20px; max-width: 800px; margin-left: auto; margin-right: auto; }
.site-footer { width: 100%; padding: 10px 0; background-color: #262626; text-align: center; color: #888; opacity: 0.8; font-size: 0.55rem; font-family: monospace; flex-shrink: 0; }
.site-footer p { margin: 0; }
.hidden-on-load { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.is-visible { opacity: 1; transform: translateY(0); }
#nav-toggle { position: fixed; top: 20px; left: 20px; width: 35px; height: 35px; background: #0d0d0d; border: 1px solid #444; border-radius: 50%; color: #00ffa2; display: flex; justify-content: center; align-items: center; cursor: pointer; z-index: 2000; font-size: 1.2rem; transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55), border-color 0.3s, color 0.3s; user-select: none; }
#nav-toggle:hover { border-color: #00ffa2; box-shadow: 0 0 10px rgba(0, 255, 162, 0.2); }
#nav-toggle.active { transform: rotate(45deg); border-color: #ff4141; color: #ff4141; }
#nav-popup { position: fixed; top: 65px; left: 20px; width: 0; height: auto; max-height: 0; max-width: 40%; min-width: 200px; background: rgba(13, 13, 13, 0.95); border: 0px solid #333; border-radius: 8px; overflow: hidden; z-index: 1999; opacity: 0; backdrop-filter: blur(5px); transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); transform-origin: top left; }
#nav-popup.active { max-height: 500px; width: auto; opacity: 1; border-width: 1px; padding: 15px; }
.nav-header-container { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.nav-divider-mini { flex-grow: 1; height: 1px; background: #444; border: 0; margin-right: 10px; }
.nav-label { background: #0d0d0d; color: #00ffa2; font-size: 0.55rem; padding: 0 5px; border: 1px solid #333; border-radius: 4px; }
.nav-close-btn { background: none; border: none; color: #888; cursor: pointer; font-size: 0.8rem; padding: 0; }
.nav-close-btn:hover { color: #eee; }
.nav-item-clickable { display: block; text-align: center; padding: 8px 0; color: #bbb; font-size: 0.65rem; cursor: pointer; transition: color 0.2s, transform 0.1s; font-family: monospace; }
.nav-item-clickable:hover { color: #fff; transform: scale(1.05); }
.nav-item-clickable:active { transform: scale(0.95); }
.nav-sep { border: 0; height: 1px; background-color: #333; margin: 2px 0; opacity: 0.5; }
.nav-footer { display: flex; align-items: center; margin-top: 10px; }
.nav-footer-text { background: #0d0d0d; color: #888; font-size: 0.5rem; padding: 0 5px; border: 1px solid #333; border-radius: 4px; }
#nav-add-btn { display: none; text-align: center; padding: 8px 0; color: #00ffa2; font-size: 0.65rem; cursor: pointer; font-family: monospace; border: 1px dashed #333; margin-top: 5px; transition: all 0.2s; }
#nav-add-btn:hover { background-color: #003322; border-color: #00ffa2; }
#nav-dynamic-container { display: flex; flex-direction: column; }
.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.8); display: flex; justify-content: center; align-items: center; z-index: 1000; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.modal.active { opacity: 1; pointer-events: auto; }
.modal-content { background-color: #1a1a1a; border: 1px solid #444; border-radius: 8px; width: 90%; max-width: 320px; padding: 20px; box-sizing: border-box; color: #eee; display: flex; flex-direction: column; gap: 10px; }
.modal-header { display: flex; justify-content: space-between; align-items: center; }
.modal-header h3 { margin: 0; font-size: 0.8rem; }
.modal-close { background: none; border: none; color: #ff4141; cursor: pointer; font-size: 1rem; }
.modal-divider { border: 0; height: 1px; background-color: #444; width: 100%; margin: 5px 0; }
.crop-area { width: 100%; height: 250px; background-color: #100F1C; overflow: hidden; display: flex; align-items: center; justify-content: center; border: 1px solid #333; }
.crop-area img { max-width: 100%; max-height: 100%; display: block; }
.modal-btn { width: 100%; background-color: #2a2a2a; color: #eee; border: 1px solid #444; border-radius: 4px; padding: 8px; cursor: pointer; font-family: monospace; font-size: 0.7rem; transition: background 0.2s; }
.modal-btn:hover { background-color: #3a3a3a; }
.modal-btn.primary { background-color: #0066cc; border-color: #0055aa; }
.modal-btn.primary:hover { background-color: #0077ee; }
.modal-btn.danger { background-color: #800000; border-color: #aa0000; color: #eee; }
.modal-btn.danger:hover { background-color: #a00000; }
.modal-input { width: 100%; background-color: #111; border: 1px solid #444; color: #00ffa2; padding: 8px; font-family: monospace; font-size: 0.7rem; box-sizing: border-box; margin-bottom: 10px; }
.modal-input:focus { outline: none; border-color: #00ffa2; }