:root {
    --bg-deep: #050608;
    --glass: rgba(18, 22, 31, 0.65);
    --border: rgba(255, 255, 255, 0.08);
    
    /* 颜色定义 */
    --c-cyan: #00f0ff;
    --c-gold: #ffd700;
    --c-red: #ff2a6d;
    --c-green: #05ffa1;
    --c-purple: #a855f7;
    --c-orange: #ff9500;
    
    --font-main: 'Montserrat', sans-serif;
    --font-tech: 'Rajdhani', sans-serif;
    
    --glow: 0 0 15px rgba(0, 240, 255, 0.15);
    --glow-gold: 0 0 20px rgba(255, 215, 0, 0.2);
    --glow-green: 0 0 20px rgba(5, 255, 161, 0.2);
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    outline: none; 
    user-select: none; 
}

/* 滚动条样式 */
::-webkit-scrollbar { width: 6px; background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }

body {
    background-color: var(--bg-deep);
    color: #fff;
    font-family: var(--font-main);
    height: 100vh; 
    width: 100vw;
    overflow: hidden;
    background-image: radial-gradient(circle at 50% 50%, #0d121c 0%, #000 90%);
}

/* ================= 背景效果 ================= */
.grid-bg {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1; opacity: 0.5;
    perspective: 1000px;
    animation: gridPulse 8s ease-in-out infinite;
}

.scan-line {
    position: fixed; top: 0; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--c-cyan), transparent);
    box-shadow: 0 0 10px var(--c-cyan);
    z-index: 100; opacity: 0.3; pointer-events: none;
    animation: scanDown 6s linear infinite;
}

.particles {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0; pointer-events: none; overflow: hidden;
}

.particle {
    position: absolute; width: 2px; height: 2px;
    background: var(--c-cyan); border-radius: 50%;
    opacity: 0; animation: particleFloat 10s ease-in-out infinite;
}

/* ================= 启动层 ================= */
#init-layer {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #050608; z-index: 9999;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    transition: opacity 0.8s ease;
    overflow: hidden;
}

#init-layer::before {
    content: ''; position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    background: 
        repeating-linear-gradient(
            0deg,
            rgba(0, 240, 255, 0.03) 0px,
            transparent 2px,
            transparent 4px,
            rgba(0, 240, 255, 0.03) 6px
        );
    animation: scanDown 10s linear infinite;
    pointer-events: none;
}

/* Glitch Logo */
.glitch-wrapper {
    position: relative;
    margin-bottom: 30px;
}

.init-logo {
    font-family: var(--font-tech);
    font-size: 5rem;
    color: #fff;
    position: relative;
    letter-spacing: 15px;
    font-weight: 700;
}

.init-logo::before,
.init-logo::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #050608;
}

.init-logo::before {
    left: 2px;
    text-shadow: -1px 0 var(--c-red);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

.init-logo::after {
    left: -2px;
    text-shadow: -1px 0 var(--c-cyan);
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(13px, 9999px, 86px, 0); }
    20% { clip: rect(96px, 9999px, 15px, 0); }
    40% { clip: rect(35px, 9999px, 137px, 0); }
    60% { clip: rect(69px, 9999px, 5px, 0); }
    80% { clip: rect(104px, 9999px, 46px, 0); }
    100% { clip: rect(19px, 9999px, 126px, 0); }
}

@keyframes glitch-anim-2 {
    0% { clip: rect(117px, 9999px, 128px, 0); }
    20% { clip: rect(15px, 9999px, 3px, 0); }
    40% { clip: rect(65px, 9999px, 95px, 0); }
    60% { clip: rect(122px, 9999px, 21px, 0); }
    80% { clip: rect(4px, 9999px, 78px, 0); }
    100% { clip: rect(98px, 9999px, 55px, 0); }
}

/* Boot Sequence */
.boot-sequence {
    width: 600px;
    max-width: 90%;
    margin-bottom: 40px;
    font-family: 'Courier New', monospace;
}

#boot-log {
    height: 150px;
    overflow: hidden;
    font-size: 0.8rem;
    color: var(--c-cyan);
    text-align: left;
    margin-bottom: 15px;
    padding: 10px;
    border-left: 2px solid var(--c-cyan);
    background: rgba(0, 240, 255, 0.05);
    text-shadow: 0 0 5px var(--c-cyan);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.log-line {
    margin-bottom: 2px;
    opacity: 0.8;
}

.log-line.error { color: var(--c-red); }
.log-line.success { color: var(--c-green); }
.log-line.warning { color: var(--c-gold); }

.boot-progress-container {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    margin-bottom: 10px;
}

#boot-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--c-cyan);
    box-shadow: 0 0 10px var(--c-cyan);
    transition: width 0.1s linear;
}

.boot-status {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #666;
    font-family: var(--font-tech);
    letter-spacing: 2px;
}

/* Init Button */
.init-btn {
    background: rgba(0, 240, 255, 0.05); 
    border: 1px solid var(--c-cyan);
    color: var(--c-cyan); 
    padding: 15px 40px;
    font-family: var(--font-tech); 
    font-size: 1.2rem; 
    letter-spacing: 5px;
    cursor: pointer; 
    position: relative; 
    overflow: hidden;
    transition: all 0.3s;
    opacity: 1;
    transform: translateY(0);
    z-index: 10;
}

.init-btn.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
}

.init-btn:hover { 
    background: var(--c-cyan); 
    color: #000; 
    box-shadow: 0 0 30px var(--c-cyan), inset 0 0 20px rgba(255,255,255,0.5); 
    text-shadow: none;
}

.btn-content {
    position: relative;
    z-index: 2;
}

.btn-glitch {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--c-red);
    z-index: 1;
    opacity: 0;
    transform: translateX(-100%);
    transition: none;
}

.init-btn:hover .btn-glitch {
    animation: btn-glitch-anim 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
    opacity: 0.5;
}

@keyframes btn-glitch-anim {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

.init-btn::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
    transition: left 0.5s;
    z-index: 3;
}

.init-btn:hover::before { left: 100%; }

.init-sub { 
    margin-top: 20px; font-size: 0.7rem; color: #444; 
    font-family: var(--font-tech); letter-spacing: 2px;
    animation: pulse 3s infinite;
}

/* ================= 主界面布局 ================= */
#interface {
    display: none;
    width: 100%; height: 100%;
    padding: 20px;
    grid-template-columns: 280px 1fr 380px;
    grid-template-rows: 80px 1fr;
    gap: 20px;
    opacity: 0; transform: scale(0.98); transition: all 1s ease;
}

/* ================= Header ================= */
.header {
    grid-column: 1 / -1;
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}

.sys-id { 
    font-family: var(--font-tech); font-size: 1.5rem; 
    letter-spacing: 2px; display: flex; align-items: center; gap: 10px;
}

.sys-id span { 
    color: var(--c-cyan); font-weight: bold; 
    text-shadow: 0 0 10px var(--c-cyan); 
}

.sys-id::before {
    content: '◢'; color: var(--c-cyan); font-size: 0.8rem;
    animation: pulse 2s ease-in-out infinite;
}

.sys-stats { 
    display: flex; gap: 30px; font-size: 0.9rem; color: #888;
    font-family: var(--font-tech);
}

.sys-stats span {
    display: flex; align-items: center; gap: 5px;
    transition: color 0.3s;
}

.sys-stats span:hover { color: var(--c-cyan); }
.sys-stats i { font-size: 1.1rem; }

/* ================= 通用面板 ================= */
.panel {
    background: var(--glass);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    padding: 20px; display: flex; flex-direction: column;
    position: relative; overflow: hidden;
    transition: all 0.3s ease;
}

.panel:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 240, 255, 0.1);
}

.panel::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--c-cyan), transparent);
    opacity: 0.5;
}

.panel::after {
    content: ''; position: absolute; top: 10px; right: 10px;
    width: 30px; height: 30px;
    border-top: 1px solid rgba(0, 240, 255, 0.3);
    border-right: 1px solid rgba(0, 240, 255, 0.3);
    opacity: 0; transition: opacity 0.3s;
}

.panel:hover::after { opacity: 1; }

.panel-head {
    font-family: var(--font-tech); font-size: 0.9rem; letter-spacing: 2px; 
    color: #666; margin-bottom: 20px; display: flex; 
    justify-content: space-between; align-items: center;
    text-transform: uppercase; position: relative; padding-bottom: 10px;
}

.panel-head::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 30px; height: 1px;
    background: var(--c-cyan);
    box-shadow: 0 0 5px var(--c-cyan);
}

.panel-head i {
    color: rgba(255,255,255,0.3);
    transition: all 0.3s;
}

.panel:hover .panel-head i {
    color: var(--c-cyan);
    transform: rotate(360deg);
}

/* ================= 左侧栏 ================= */
.left-col { display: flex; flex-direction: column; gap: 20px; }

.nav-btn {
    padding: 12px 15px; color: #aaa; text-decoration: none; 
    display: flex; align-items: center;
    border-left: 2px solid transparent; transition: all 0.3s;
    background: linear-gradient(90deg, transparent, transparent);
}

.nav-btn i { margin-right: 15px; font-size: 1.2rem; }

.nav-btn:hover, .nav-btn.active {
    color: #fff; border-left-color: var(--c-cyan);
    background: linear-gradient(90deg, rgba(0, 240, 255, 0.1), transparent);
}

/* ================= 右侧栏 ================= */
.right-col { display: flex; flex-direction: column; gap: 20px; }

/* ================= 中间内容区 ================= */
.mid-col { 
    display: flex; flex-direction: column; gap: 20px; 
    overflow-y: auto; height: 100%;
}

/* ================= 通知系统 ================= */
.notification-area {
    position: fixed; top: 100px; right: 20px; z-index: 9999;
    display: flex; flex-direction: column; gap: 10px; width: 300px;
}

.notif {
    background: var(--glass); backdrop-filter: blur(20px);
    border: 1px solid var(--border); border-left: 3px solid var(--c-cyan);
    padding: 15px; display: flex; align-items: start; gap: 10px;
    animation: slideInRight 0.5s ease, fadeOut 0.5s ease 4.5s forwards;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

.notif-icon { font-size: 1.5rem; color: var(--c-cyan); }
.notif-content { flex: 1; }
.notif-title { font-weight: 600; margin-bottom: 3px; }
.notif-text { font-size: 0.8rem; color: #999; }
.notif-close {
    cursor: pointer; color: #666; transition: color 0.2s;
}
.notif-close:hover { color: #fff; }

/* ================= 系统对话框 (RPG HUD Style) ================= */
.system-dialogue {
    position: fixed; bottom: 30px; left: 30px;
    display: flex; align-items: flex-end; gap: 0;
    z-index: 9000; max-width: 600px;
    animation: fadeInUp 0.5s ease;
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.5));
}

.sys-avatar-container {
    position: relative;
    width: 80px; height: 80px;
    flex-shrink: 0; /* 防止被压缩 */
    margin-right: -20px;
    z-index: 2;
}

.sys-avatar {
    width: 100%; height: 100%;
    background: rgba(10, 15, 20, 0.9);
    border: 2px solid var(--c-cyan);
    clip-path: polygon(20% 0, 100% 0, 100% 80%, 80% 100%, 0 100%, 0 20%);
    display: flex; justify-content: center; align-items: center;
    color: var(--c-cyan); font-size: 2.5rem;
    box-shadow: inset 0 0 20px rgba(0, 240, 255, 0.3);
    position: relative;
}

.sys-avatar::after {
    content: ''; position: absolute; inset: 4px;
    border: 1px solid rgba(0, 240, 255, 0.3);
    clip-path: polygon(20% 0, 100% 0, 100% 80%, 80% 100%, 0 100%, 0 20%);
}

.sys-content {
    background: rgba(10, 15, 20, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border); 
    border-left: none;
    padding: 15px 20px 15px 30px; 
    position: relative;
    min-width: 300px;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 95% 100%, 0 100%);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.sys-content::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--c-cyan));
    opacity: 0.5;
}

.sys-name {
    font-family: var(--font-tech); font-size: 0.8rem; color: var(--c-cyan);
    margin-bottom: 5px; letter-spacing: 2px; display: flex; align-items: center; gap: 10px;
}

.sys-name::after {
    content: ''; flex: 1; height: 1px; 
    background: linear-gradient(90deg, var(--c-cyan), transparent);
    opacity: 0.3;
}

.sys-text { 
    font-size: 0.95rem; color: #fff; line-height: 1.6; 
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
    min-height: 1.6em;
}

/* 打字光标 */
.sys-cursor {
    display: inline-block; width: 8px; height: 1.2em;
    background: var(--c-cyan); vertical-align: middle;
    animation: blink 1s infinite; margin-left: 5px;
}

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

/* ================= 进度条 ================= */
.progress-bar {
    width: 100%; height: 4px; background: rgba(255,255,255,0.1);
    border-radius: 2px; overflow: hidden; margin-top: 10px;
}

.progress-fill {
    height: 100%; background: linear-gradient(90deg, var(--c-cyan), var(--c-green));
    transition: width 0.5s ease; box-shadow: 0 0 10px var(--c-cyan);
}

/* ================= 帮助按钮 ================= */
.help-btn {
    position: fixed; bottom: 30px; right: 30px;
    width: 50px; height: 50px; border-radius: 50%;
    background: var(--glass); backdrop-filter: blur(20px);
    border: 2px solid var(--c-cyan);
    color: var(--c-cyan); font-size: 1.5rem;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 9000;
    transition: all 0.3s; box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.help-btn:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 0 40px var(--c-cyan);
}

.kbd {
    display: inline-block; padding: 2px 6px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 3px; font-family: var(--font-tech);
    font-size: 0.75rem; margin: 0 2px;
}

/* Tech Input Styles */
.input-wrapper-tech {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.input-wrapper-tech:focus-within {
    border-color: var(--c-cyan);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.currency-symbol {
    padding: 0 15px;
    font-family: var(--font-tech);
    color: var(--c-gold);
    font-size: 1.2rem;
}

.tech-input {
    border: none !important;
    background: transparent !important;
    color: #fff;
    font-family: var(--font-tech);
    letter-spacing: 1px;
}

.tech-input.large {
    font-size: 1.5rem;
    height: 50px;
}

/* Hide number input arrows */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type="number"] {
    -moz-appearance: textfield;
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 10px;
}

.cat-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.cat-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.cat-btn.selected {
    background: rgba(0, 240, 255, 0.1);
    border-color: var(--c-cyan);
    color: var(--c-cyan);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.cat-btn i {
    font-size: 1.2rem;
}

.cat-btn span {
    font-size: 0.7rem;
    font-family: var(--font-tech);
}

/* Glitch Border Effect */
.glitch-border {
    position: relative;
    border: 1px solid var(--c-cyan);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
}

.glitch-border::before,
.glitch-border::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--c-cyan);
    transition: all 0.3s;
}

.glitch-border::before {
    top: -2px;
    left: -2px;
    border-right: none;
    border-bottom: none;
}

.glitch-border::after {
    bottom: -2px;
    right: -2px;
    border-left: none;
    border-top: none;
}

/* Glitch Button */
.glitch-btn {
    position: relative;
    overflow: hidden;
}

.glitch-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.glitch-btn:hover::before {
    left: 100%;
}

/* Modal Styles Update */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: rgba(10, 15, 20, 0.95);
    padding: 30px;
    max-width: 500px;
    width: 90%;
    animation: slideIn 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 15px;
}

.modal-title {
    font-family: var(--font-tech);
    font-size: 1.2rem;
    color: var(--c-cyan);
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close {
    cursor: pointer;
    color: #666;
    transition: color 0.2s;
}

.modal-close:hover { color: #fff; }

.form-group { margin-bottom: 20px; }

.form-label {
    display: block;
    font-size: 0.7rem;
    color: #888;
    margin-bottom: 8px;
    font-family: var(--font-tech);
    letter-spacing: 1px;
}

/* ================= 动画 ================= */
@keyframes slideIn { 
    from { opacity: 0; transform: translateX(-20px); } 
    to { opacity: 1; transform: translateX(0); } 
}

@keyframes slideInRight { 
    from { opacity: 0; transform: translateX(50px); } 
    to { opacity: 1; transform: translateX(0); } 
}

@keyframes fadeOut { 
    to { opacity: 0; transform: translateX(50px); } 
}

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

@keyframes scanDown { 
    0% { top: 0; } 
    100% { top: 100%; } 
}

@keyframes gridPulse { 
    0%, 100% { opacity: 0.5; } 
    50% { opacity: 0.3; } 
}

@keyframes particleFloat {
    0% { opacity: 0; transform: translateY(100vh) scale(0); }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { opacity: 0; transform: translateY(-100px) scale(1); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

@keyframes rotateGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ================= 响应式设计 ================= */
@media (max-width: 1400px) {
    #interface {
        grid-template-columns: 250px 1fr 320px;
    }
}

@media (max-width: 1200px) {
    #interface {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto 1fr auto;
    }
    .left-col, .right-col {
        grid-column: 1;
    }
    .mid-col {
        grid-column: 1;
        grid-row: 3;
    }
}

@media (max-width: 768px) {
    body { font-size: 14px; }
    #interface { padding: 10px; gap: 10px; }
    .panel { padding: 15px; }
    .header { flex-direction: column; gap: 10px; align-items: flex-start; }
    .sys-stats { gap: 15px; }
    .init-logo { font-size: 2.5rem; }
    .system-dialogue { bottom: 90px; left: 10px; max-width: 300px; }
}

/* ================= Currency Cards ================= */
.currency-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.currency-card {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.currency-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    transition: width 0.3s;
    z-index: 0;
}

.currency-card:hover {
    transform: translateX(5px);
}

.currency-card:hover::before {
    width: 100%;
    opacity: 0.1;
}

.currency-icon {
    font-size: 2rem;
    margin-right: 15px;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
}

.currency-info {
    flex: 1;
    position: relative;
    z-index: 1;
}

.currency-label {
    font-size: 0.7rem;
    color: #888;
    font-family: var(--font-tech);
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.currency-value {
    font-family: var(--font-tech);
    font-size: 1.8rem;
    font-weight: bold;
    line-height: 1.1;
}

.currency-sub, .currency-action {
    font-size: 0.75rem;
    margin-top: 4px;
    font-family: var(--font-tech);
}

/* Gold Theme */
.gold-theme {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.05), transparent);
    border-color: rgba(255, 215, 0, 0.3);
}

.gold-theme::before { background: var(--c-gold); }

.gold-theme .currency-icon {
    color: var(--c-gold);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.1);
}

.gold-theme .currency-value {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.gold-theme .currency-action {
    color: var(--c-gold);
    display: flex;
    align-items: center;
    gap: 5px;
    opacity: 0.8;
}

/* Real Theme */
.real-theme {
    background: linear-gradient(90deg, rgba(0, 240, 255, 0.05), transparent);
    border-color: rgba(0, 240, 255, 0.3);
}

.real-theme::before { background: var(--c-cyan); }

.real-theme .currency-icon {
    color: var(--c-cyan);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.1);
}

.real-theme .currency-value {
    color: #fff;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.real-theme .currency-sub {
    color: var(--c-cyan);
}


/* ================= Buttons (Added for consistency) ================= */
.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--border);
    cursor: pointer;
    font-family: var(--font-tech);
    font-size: 0.9rem;
    letter-spacing: 2px;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--c-cyan);
    color: #000;
    border-color: var(--c-cyan);
}

.btn-primary:hover {
    box-shadow: 0 0 20px var(--c-cyan);
}

.btn-secondary {
    background: transparent;
    color: #999;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.05);
    color: #fff;
}

/* Tab Buttons */
.tab-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: #888;
    padding: 8px 20px;
    cursor: pointer;
    font-family: var(--font-tech);
    transition: all 0.3s;
    flex: 1;
    text-align: center;
}

.tab-btn:hover {
    color: #fff;
    border-color: rgba(255,255,255,0.3);
}

.tab-btn.active {
    background: rgba(0, 240, 255, 0.1);
    border-color: var(--c-cyan);
    color: var(--c-cyan);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.1);
}

/* Empty State */
.empty-state-desc {
    color: #666;
    font-size: 0.8rem;
    text-align: center;
    padding: 20px;
    font-family: var(--font-tech);
}

/* ================= AI Assistant Chat ================= */
.ai-trigger {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 40px;
    background: rgba(10, 15, 20, 0.6);
    backdrop-filter: blur(5px);
    border: 1px solid var(--border);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 9100;
    transition: all 0.3s;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.1);
}

.ai-trigger:hover {
    background: rgba(0, 240, 255, 0.1);
    border-color: var(--c-cyan);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.3);
    width: 100px;
}

.voice-wave {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 20px;
}

.voice-wave span {
    display: block;
    width: 3px;
    height: 100%;
    background: var(--c-cyan);
    border-radius: 2px;
    animation: wave 1.2s ease-in-out infinite;
    box-shadow: 0 0 5px var(--c-cyan);
}

.voice-wave span:nth-child(1) { animation-delay: 0.0s; height: 40%; }
.voice-wave span:nth-child(2) { animation-delay: 0.2s; height: 70%; }
.voice-wave span:nth-child(3) { animation-delay: 0.4s; height: 100%; }
.voice-wave span:nth-child(4) { animation-delay: 0.2s; height: 70%; }
.voice-wave span:nth-child(5) { animation-delay: 0.0s; height: 40%; }

@keyframes wave {
    0%, 100% { transform: scaleY(0.4); opacity: 0.5; }
    50% { transform: scaleY(1); opacity: 1; }
}

/* Chat History */
.chat-msg {
    display: flex;
    gap: 15px;
    animation: fadeIn 0.3s ease;
}

.chat-msg.system {
    align-self: flex-start;
}

.chat-msg.user {
    flex-direction: row-reverse;
    align-self: flex-end;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid var(--c-cyan);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--c-cyan);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.chat-msg.user .chat-avatar {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    color: #fff;
}

.chat-bubble {
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid rgba(0, 240, 255, 0.2);
    padding: 12px 15px;
    font-size: 0.9rem;
    color: #ddd;
    line-height: 1.5;
    max-width: 80%;
    position: relative;
}

.chat-msg.user .chat-bubble {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    text-align: right;
}

.chat-bubble::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--c-cyan);
}

.chat-msg.user .chat-bubble::before {
    left: auto;
    right: 0;
    background: #fff;
}

/* ================= Level Up Modal ================= */
.level-up-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.level-up-overlay.active {
    opacity: 1;
    visibility: visible;
}

.level-up-card {
    background: rgba(10, 20, 30, 0.95);
    border: 2px solid var(--c-cyan);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.3), inset 0 0 20px rgba(0, 240, 255, 0.1);
    padding: 40px;
    text-align: center;
    position: relative;
    max-width: 500px;
    width: 90%;
    transform: scale(0.8) translateY(20px);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.level-up-overlay.active .level-up-card {
    transform: scale(1) translateY(0);
}

.level-up-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--c-cyan), transparent);
}

.level-up-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--c-cyan), transparent);
}

.level-up-icon {
    font-size: 5rem;
    color: var(--c-cyan);
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.6);
    animation: float 3s ease-in-out infinite;
}

.level-up-title {
    font-family: var(--font-tech);
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(to right, #fff, var(--c-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.level-up-info {
    font-family: var(--font-main);
    color: #aaa;
    margin-bottom: 30px;
    font-size: 1.2rem;
}

.level-up-stat {
    font-size: 3rem;
    font-family: var(--font-tech);
    color: var(--c-cyan);
    margin: 10px 0;
    font-weight: bold;
}

.level-up-btn {
    background: rgba(0, 240, 255, 0.2);
    border: 1px solid var(--c-cyan);
    color: var(--c-cyan);
    padding: 10px 30px;
    font-family: var(--font-tech);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.level-up-btn:hover {
    background: var(--c-cyan);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* ================= Side Quest / Tasks System ================= */
.input-group { 
    display: flex; 
    margin-bottom: 15px; 
    border-bottom: 1px solid var(--border); 
    padding-bottom: 10px; 
    position: relative;
    align-items: center;
    gap: 10px;
}

.category-select {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border);
    color: var(--c-cyan);
    padding: 5px 10px;
    font-family: var(--font-tech);
    font-size: 0.8rem;
    border-radius: 4px;
    outline: none;
    cursor: pointer;
}

.category-select:hover {
    border-color: var(--c-cyan);
}

.category-tag {
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 2px;
    margin-right: 8px;
    font-family: var(--font-tech);
    text-transform: uppercase;
    border: 1px solid rgba(255,255,255,0.1);
    white-space: nowrap;
}

.cat-work { color: #00f0ff; border-color: #00f0ff; background: rgba(0, 240, 255, 0.1); }
.cat-life { color: #05ffa1; border-color: #05ffa1; background: rgba(5, 255, 161, 0.1); }
.cat-study { color: #ffd700; border-color: #ffd700; background: rgba(255, 215, 0, 0.1); }
.cat-health { color: #ff2a6d; border-color: #ff2a6d; background: rgba(255, 42, 109, 0.1); }

.input-group::before {
    content: ''; 
    position: absolute; 
    bottom: -1px; 
    left: 0;
    width: 0; 
    height: 2px; 
    background: var(--c-cyan);
    transition: width 0.3s;
}

.input-group:focus-within::before {
    width: 100%;
}

.sq-input {
    flex: 1; 
    background: transparent; 
    border: none; 
    color: #fff;
    font-family: var(--font-main); 
    font-size: 1rem;
    transition: all 0.3s;
}

.sq-input:focus {
    color: var(--c-cyan);
    text-shadow: 0 0 5px rgba(0, 240, 255, 0.3);
}

.sq-input::placeholder { 
    color: #444; 
    font-style: italic; 
}

.add-btn { 
    color: var(--c-cyan); 
    background: transparent; 
    border: none; 
    cursor: pointer; 
    font-size: 1.2rem;
    transition: all 0.3s; 
    padding: 5px;
}

.add-btn:hover {
    transform: scale(1.2) rotate(90deg);
    text-shadow: 0 0 10px var(--c-cyan);
}

.add-btn:active {
    transform: scale(0.9) rotate(90deg);
}

.sq-list { 
    flex: 1; 
    overflow-y: auto; 
    display: flex; 
    flex-direction: column; 
    gap: 10px; 
    min-height: 200px;
}

.sq-item {
    display: flex; 
    align-items: center; 
    padding: 12px;
    background: rgba(255,255,255,0.03); 
    transition: all 0.2s;
    cursor: pointer; 
    border: 1px solid transparent;
}

.sq-item:hover { 
    background: rgba(255,255,255,0.06); 
    border-color: rgba(255,255,255,0.1); 
}

.sq-check {
    width: 18px; 
    height: 18px; 
    border: 1px solid #666; 
    margin-right: 15px;
    display: flex; 
    justify-content: center; 
    align-items: center; 
    color: transparent;
    transition: all 0.3s;
    flex-shrink: 0;
}

.sq-item.done { 
    opacity: 0.4; 
    pointer-events: none; 
}

.sq-item.done .sq-check { 
    border-color: var(--c-cyan); 
    background: var(--c-cyan); 
    color: #000; 
}

.task-actions {
    display: flex; 
    gap: 5px; 
    margin-left: auto; 
    opacity: 0;
    transition: opacity 0.2s;
}

.sq-item:hover .task-actions { opacity: 1; }

.task-btn {
    width: 24px; 
    height: 24px; 
    display: flex; 
    align-items: center;
    justify-content: center; 
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border); 
    cursor: pointer;
    transition: all 0.2s; 
    color: #999;
}

.task-btn:hover { 
    background: rgba(255,255,255,0.1); 
    color: #fff; 
}

.task-btn.delete:hover { 
    background: var(--c-red); 
    border-color: var(--c-red); 
}

