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

body {
    font-family: 'Orbitron', 'Courier New', monospace;
    background: radial-gradient(ellipse at center, #0a0a2a 0%, #000015 70%);
    color: #e0e0ff;
    overflow-x: hidden;
    min-height: 100vh;
}

#app {
    min-height: 100vh;
    position: relative;
    margin-top: 3cm;
}

/* Header Styles */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #1a1a3e 0%, #16213e 100%);
    border-bottom: 3px solid #00ffff;
    box-shadow: 0 6px 30px rgba(0, 255, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.logo-section {
    display: flex;
    flex-direction: column;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #00ffff;
    text-shadow: 0 0 15px #00ffff, 0 0 30px rgba(0, 255, 255, 0.5);
}

.subtitle {
    font-size: 0.9rem;
    color: #888;
    margin-top: 0.2rem;
}

.status-indicators {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.status-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.status-label {
    font-size: 0.8rem;
    color: #aaa;
}

.coherence-bar {
    width: 100px;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.coherence-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff4444, #ffaa00, #00ff88);
    width: 92%;
    transition: width 0.3s ease;
}

.status-value {
    font-size: 0.9rem;
    color: #00ff88;
    font-weight: bold;
}

.ai-status {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    background: #00ff88;
    color: #000;
}

/* Dashboard Layout */
.dashboard {
    display: grid;
    grid-template-columns: 320px 1fr 320px;
    height: calc(100vh - 80px);
    gap: 1rem;
    padding: 1rem;
}

/* Panel Styles */
.left-panel, .center-panel, .right-panel {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    border: 2px solid rgba(0, 255, 255, 0.4);
    border-radius: 15px;
    padding: 1.5rem;
    backdrop-filter: blur(20px);
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0, 255, 255, 0.3);
}

.panel-header h2 {
    color: #00ffff;
    font-size: 1.3rem;
}

.panel-status {
    background: #00ff88;
    color: #000;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Arsenal Operations in Left Panel */
.arsenal-operations {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 255, 255, 0.3);
}

.arsenal-operations h3 {
    color: #00ffff;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.arsenal-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.arsenal-buttons .btn-primary,
.arsenal-buttons .btn-secondary,
.arsenal-buttons .omni-attack-btn,
.arsenal-buttons .omni-shield-btn,
.arsenal-buttons .feng-shui-btn {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

/* Power Control */
.power-control {
    margin-bottom: 2rem;
}

.power-dial {
    position: relative;
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

#powerDial {
    filter: drop-shadow(0 0 20px rgba(0, 255, 255, 0.5));
}

.power-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    font-weight: bold;
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff;
}

.amplification-controls {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.amplification-controls label {
    color: #aaa;
    font-size: 0.9rem;
}

#amplification {
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, rgba(0, 255, 136, 0.2), rgba(0, 255, 255, 0.2));
    border-radius: 4px;
    outline: none;
    -webkit-appearance: none;
    position: relative;
}

#amplification::-webkit-slider-thumb {
    appearance: none;
    width: 24px;
    height: 24px;
    background: linear-gradient(45deg, #00ffff, #00ff88);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.8), 0 0 30px rgba(0, 255, 255, 0.4);
    transition: all 0.3s ease;
}

#amplification::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(0, 255, 255, 1), 0 0 40px rgba(0, 255, 255, 0.6);
}

#intensity {
    background: linear-gradient(90deg, rgba(255, 68, 68, 0.2), rgba(255, 170, 0, 0.2));
}

#intensity::-webkit-slider-thumb {
    background: linear-gradient(45deg, #ff4444, #ffaa00);
    box-shadow: 0 0 15px rgba(255, 68, 68, 0.8), 0 0 30px rgba(255, 68, 68, 0.4);
}

#intensity::-webkit-slider-thumb:hover {
    box-shadow: 0 0 20px rgba(255, 68, 68, 1), 0 0 40px rgba(255, 68, 68, 0.6);
}

.intensity-value {
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: #ff6644;
    text-shadow: 0 0 10px rgba(255, 102, 68, 0.8);
    margin-top: 0.5rem;
}

.max-benefit-btn {
    background: linear-gradient(45deg, #ff6b00, #ffaa00, #ff6b00);
    background-size: 200% 200%;
    border: none;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    color: #000;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: gradientShift 3s ease-in-out infinite;
    box-shadow: 0 4px 15px rgba(255, 170, 0, 0.3);
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.max-benefit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(255, 170, 0, 0.6);
}

/* Field Analytics */
.field-analytics h3 {
    color: #00ffff;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

#fieldGraph {
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.3);
}

/* Emergency Protocols */
.emergency-protocols h3 {
    color: #ff4444;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.protocol-btn {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 0.5rem;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.protocol-btn.crisis {
    background: linear-gradient(45deg, #4444ff, #6666ff);
    color: white;
}

.protocol-btn.panic {
    background: linear-gradient(45deg, #ff4444, #ff6666);
    color: white;
}

.protocol-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
}

/* Arsenal Controls */
.arsenal-controls {
    display: flex;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(45deg, #00ff88, #00ffff, #00ff88);
    background-size: 200% 200%;
    color: #000;
    animation: gradientShift 2s ease-in-out infinite;
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
}

.btn-secondary {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.btn-primary:hover, .btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 255, 255, 0.4);
}

/* Active Constructs */
.active-constructs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
    min-height: 180px;
    padding: 1rem;
    background: linear-gradient(145deg, rgba(0, 255, 255, 0.03), rgba(0, 255, 136, 0.02));
    border-radius: 15px;
    border: 1px solid rgba(0, 255, 255, 0.2);
}

.construct-slot {
    flex: 1;
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2));
    border: 3px solid rgba(0, 255, 255, 0.3);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1.5rem;
    min-height: 140px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.construct-slot::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(0, 255, 255, 0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.construct-slot:hover::before {
    transform: translateX(100%);
}

.construct-slot.empty {
    color: #666;
    border-style: dashed;
    background: linear-gradient(145deg, rgba(0, 255, 255, 0.02), rgba(0, 255, 136, 0.01));
}

.construct-slot.empty:hover {
    border-color: rgba(0, 255, 255, 0.5);
    background: linear-gradient(145deg, rgba(0, 255, 255, 0.05), rgba(0, 255, 136, 0.03));
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 255, 255, 0.2);
}

.construct-slot.filled {
    border: 3px solid #00ffff;
    background: linear-gradient(145deg, rgba(0, 255, 255, 0.15), rgba(0, 255, 136, 0.08));
    box-shadow: 
        0 0 30px rgba(0, 255, 255, 0.4),
        inset 0 0 30px rgba(0, 255, 255, 0.1),
        0 8px 25px rgba(0, 0, 0, 0.3);
    animation: constructActivate 0.5s ease-out;
}

.construct-slot.filled:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 
        0 0 40px rgba(0, 255, 255, 0.6),
        inset 0 0 40px rgba(0, 255, 255, 0.15),
        0 12px 35px rgba(0, 0, 0, 0.4);
    border-color: #00ff88;
}

.construct-slot.drag-over {
    border-color: #00ff88;
    background: linear-gradient(145deg, rgba(0, 255, 136, 0.2), rgba(0, 255, 255, 0.15));
    transform: scale(1.05);
    box-shadow: 
        0 0 40px rgba(0, 255, 136, 0.5),
        inset 0 0 30px rgba(0, 255, 136, 0.2);
}

.slot-number {
    position: absolute;
    top: 0.8rem;
    left: 0.8rem;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.9), rgba(0, 255, 136, 0.9));
    color: #000;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.5);
    z-index: 10;
}

.slot-text {
    font-size: 0.9rem;
    color: #888;
    text-align: center;
    letter-spacing: 0.5px;
}

.construct-slot.filled .construct-icon {
    font-size: 3rem;
    margin-bottom: 0.8rem;
    filter: drop-shadow(0 0 15px rgba(0, 255, 255, 0.8));
    animation: iconFloat 3s ease-in-out infinite;
}

.construct-slot.filled .construct-name {
    font-size: 1rem;
    font-weight: bold;
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
    margin-bottom: 0.5rem;
    text-align: center;
}

.construct-power-level {
    position: absolute;
    bottom: 0.8rem;
    right: 0.8rem;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.9), rgba(0, 255, 136, 0.9));
    color: #000;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: bold;
    text-shadow: none;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.7);
    z-index: 10;
}

@keyframes constructActivate {
    0% {
        opacity: 0;
        transform: scale(0.8) rotateY(180deg);
    }
    50% {
        transform: scale(1.05) rotateY(90deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotateY(0deg);
    }
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* Construct Library */
.construct-library h3 {
    color: #00ffff;
    margin-bottom: 1rem;
}

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

.construct-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 12px;
    padding: 1.2rem;
    cursor: grab;
    transition: all 0.4s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 200px;
}

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

.construct-card:hover::before {
    left: 100%;
}

.construct-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: #00ffff;
    box-shadow: 0 12px 35px rgba(0, 255, 255, 0.4), 0 0 20px rgba(0, 255, 255, 0.2);
}

.construct-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.construct-name {
    font-weight: bold;
    margin-bottom: 0.3rem;
    color: #00ffff;
}

.construct-type {
    font-size: 0.8rem;
    color: #aaa;
}

.construct-power-control {
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.power-label {
    font-size: 0.7rem;
    color: #aaa;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.construct-power-slider {
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, rgba(0, 255, 255, 0.2), rgba(0, 255, 136, 0.3));
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.construct-power-slider::-webkit-slider-thumb {
    appearance: none;
    width: 14px;
    height: 14px;
    background: linear-gradient(45deg, #00ffff, #00ff88);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.construct-power-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 12px rgba(0, 255, 255, 0.9);
}

.construct-card:hover .construct-power-slider {
    background: linear-gradient(90deg, rgba(0, 255, 255, 0.3), rgba(0, 255, 136, 0.4));
}

.power-display {
    font-size: 0.8rem;
    color: #00ffff;
    font-weight: bold;
    text-align: center;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.6);
    letter-spacing: 0.3px;
}

/* Intent Analysis */
.intent-analysis {
    margin-bottom: 2rem;
}

.intent-analysis h3 {
    color: #00ffff;
    margin-bottom: 1rem;
}

#intentInput {
    width: 100%;
    height: 80px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 6px;
    padding: 0.8rem;
    color: #fff;
    resize: vertical;
    margin-bottom: 1rem;
}

#intentInput::placeholder {
    color: #666;
}

.ai-suggestions {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 6px;
    padding: 1rem;
    margin-top: 1rem;
    display: none;
}

.ai-suggestions.active {
    display: block;
}

.intent-controls {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.voice-selection {
    display: flex;
    gap: 0.5rem;
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 6px;
    padding: 0.4rem 0.6rem;
}

.voice-option {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.voice-option input[type="radio"] {
    appearance: none;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(0, 255, 255, 0.5);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    position: relative;
}

.voice-option input[type="radio"]:checked {
    border-color: #00ffff;
    background: rgba(0, 255, 255, 0.2);
}

.voice-option input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: #00ffff;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.8);
}

.voice-label {
    color: #00ffff;
    font-size: 0.8rem;
    font-weight: bold;
    user-select: none;
    transition: all 0.3s ease;
}

.voice-option:hover .voice-label {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.6);
}

.voice-btn {
    background: linear-gradient(45deg, #9644ff, #bb66ff);
    border: 2px solid #9644ff;
    color: white;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(150, 68, 255, 0.3);
}

.voice-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(150, 68, 255, 0.5);
}

.voice-btn.recording {
    background: linear-gradient(45deg, #ff4444, #ff6666);
    border-color: #ff4444;
    animation: recordingPulse 1s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.6);
}

@keyframes recordingPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(255, 68, 68, 0.6);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 30px rgba(255, 68, 68, 0.9);
    }
}

/* Target Management */
.target-management h3 {
    color: #00ffff;
    margin-bottom: 1rem;
}

.target-tabs {
    display: flex;
    margin-bottom: 1rem;
}

.tab-btn {
    flex: 1;
    padding: 0.6rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #aaa;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:first-child {
    border-radius: 6px 0 0 6px;
}

.tab-btn:last-child {
    border-radius: 0 6px 6px 0;
}

.tab-btn.active {
    background: rgba(0, 255, 255, 0.2);
    color: #00ffff;
    border-color: #00ffff;
}

.tab-panel {
    display: none;
}

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

.target-list {
    margin-bottom: 1rem;
    max-height: 200px;
    overflow-y: auto;
}

.target-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.target-item.protected {
    border-left: 4px solid #00ff88;
}

.target-item.hostile {
    border-left: 4px solid #ff4444;
}

.target-avatar {
    width: 40px;
    height: 40px;
    background: rgba(0, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.target-name {
    font-weight: bold;
}

.target-status {
    font-size: 0.8rem;
    color: #aaa;
}

.add-target-btn {
    width: 100%;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(0, 255, 255, 0.3);
    border-radius: 6px;
    color: #00ffff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-target-btn:hover {
    background: rgba(0, 255, 255, 0.1);
}

/* Protection Grid */
.protection-grid h3 {
    color: #00ffff;
    margin-bottom: 1rem;
}

.grid-status {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.grid-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.grid-label {
    color: #aaa;
    font-size: 0.9rem;
}

.grid-strength {
    width: 80px;
    height: 8px;
    border-radius: 4px;
}

.grid-strength.strong {
    background: linear-gradient(90deg, #00ff88, #00ffff);
}

.grid-strength.medium {
    background: linear-gradient(90deg, #ffaa00, #ff6600);
}

.grid-strength.weak {
    background: linear-gradient(90deg, #ff4444, #aa2222);
}

/* Field Visualization */
.field-visualization {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -1;
}

#fieldCanvas {
    width: 100%;
    height: 100%;
}

/* Notifications */
.notifications {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 1000;
}

.notification {
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid #00ffff;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 0.5rem;
    color: #fff;
    min-width: 300px;
    animation: slideIn 0.3s ease;
}

.notification.success {
    border-color: #00ff88;
}

.notification.warning {
    border-color: #ffaa00;
}

.notification.error {
    border-color: #ff4444;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 2px solid #00ffff;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 255, 255, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0, 255, 255, 0.3);
}

.modal-header h3 {
    color: #00ffff;
}

.modal-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-content {
    padding: 1.5rem;
}

.modal-content input, .modal-content textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 6px;
    padding: 0.8rem;
    color: #fff;
    margin-bottom: 1rem;
}

.modal-content textarea {
    height: 80px;
    resize: vertical;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* AI Indicator Animation */
.ai-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #00ff88;
}

.ai-indicator.pulsing {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }
}

/* Quick Presets */
.quick-presets {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.quick-presets h4 {
    color: #ff6644;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

.preset-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.4rem;
    max-height: 300px;
    overflow-y: auto;
}

.preset-btn {
    background: linear-gradient(145deg, rgba(255, 68, 68, 0.1), rgba(255, 68, 68, 0.05));
    border: 1px solid rgba(255, 68, 68, 0.3);
    border-radius: 4px;
    padding: 0.5rem 0.3rem;
    color: #ff6644;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.preset-btn:hover {
    background: linear-gradient(145deg, rgba(255, 68, 68, 0.2), rgba(255, 68, 68, 0.1));
    border-color: #ff6644;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 68, 68, 0.3);
}

.preset-btn.protected {
    background: linear-gradient(145deg, rgba(0, 255, 136, 0.1), rgba(0, 255, 136, 0.05));
    border: 1px solid rgba(0, 255, 136, 0.3);
    color: #00ff88;
}

.preset-btn.protected:hover {
    background: linear-gradient(145deg, rgba(0, 255, 136, 0.2), rgba(0, 255, 136, 0.1));
    border-color: #00ff88;
    box-shadow: 0 2px 8px rgba(0, 255, 136, 0.3);
}

/* Preset Intentions */
.preset-intentions {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

.preset-intentions h4 {
    color: #00ffff;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.intention-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.intention-btn {
    background: linear-gradient(145deg, rgba(0, 255, 255, 0.08), rgba(0, 255, 255, 0.02));
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 6px;
    padding: 0.6rem 0.4rem;
    color: #00ffff;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    line-height: 1.2;
    position: relative;
    overflow: hidden;
}

.intention-btn:hover {
    background: linear-gradient(145deg, rgba(0, 255, 255, 0.15), rgba(0, 255, 255, 0.08));
    border-color: #00ffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.3);
}

.intention-btn.selected {
    background: linear-gradient(145deg, rgba(0, 255, 255, 0.2), rgba(0, 255, 255, 0.1));
    border-color: #00ffff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5), inset 0 0 10px rgba(0, 255, 255, 0.1);
}

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

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

.exponential-amplifier {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 2px solid rgba(255, 170, 0, 0.3);
    background: linear-gradient(145deg, rgba(255, 170, 0, 0.05), rgba(255, 68, 68, 0.02));
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 0 15px rgba(255, 170, 0, 0.2);
}

.exponential-amplifier label {
    color: #ffaa00;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 170, 0, 0.5);
}

#exponentialAmplifier {
    background: linear-gradient(90deg, rgba(255, 170, 0, 0.3), rgba(255, 68, 68, 0.3));
    height: 12px;
    border-radius: 6px;
}

#exponentialAmplifier::-webkit-slider-thumb {
    appearance: none;
    width: 28px;
    height: 28px;
    background: radial-gradient(circle, #ffaa00, #ff6600, #ff4444);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(255, 170, 0, 1), 0 0 40px rgba(255, 102, 0, 0.6);
    transition: all 0.3s ease;
}

#exponentialAmplifier::-webkit-slider-thumb:hover {
    transform: scale(1.3);
    box-shadow: 0 0 30px rgba(255, 170, 0, 1), 0 0 60px rgba(255, 102, 0, 0.8);
}

.exponential-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem 0;
}

.exponential-value {
    font-size: 1.4rem;
    font-weight: bold;
    color: #ffaa00;
    text-shadow: 0 0 15px rgba(255, 170, 0, 0.8);
}

.exponential-output {
    font-size: 1.6rem;
    font-weight: bold;
    color: #ff4444;
    text-shadow: 0 0 20px rgba(255, 68, 68, 1);
    animation: powerPulse 2s ease-in-out infinite;
}

.nexus-overload-btn {
    width: 100%;
    background: linear-gradient(45deg, #ff4444, #ffaa00, #ff6600, #ff4444);
    background-size: 300% 300%;
    border: 2px solid #ffaa00;
    padding: 1rem 1.2rem;
    border-radius: 10px;
    color: #fff;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.4s ease;
    animation: nexusGlow 3s ease-in-out infinite;
    box-shadow: 0 0 25px rgba(255, 170, 0, 0.6), 0 0 50px rgba(255, 68, 68, 0.4);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

.nexus-overload-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: rotateOverload 2s linear infinite;
}

.nexus-overload-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 40px rgba(255, 170, 0, 1), 0 0 80px rgba(255, 68, 68, 0.8);
}

.nexus-overload-btn.active {
    animation: nexusOverloadActive 1s ease-in-out infinite;
    box-shadow: 0 0 60px rgba(255, 170, 0, 1), 0 0 120px rgba(255, 68, 68, 1), 0 0 180px rgba(255, 255, 255, 0.5);
}

@keyframes powerPulse {
    0%, 100% {
        transform: scale(1);
        color: #ff4444;
    }
    50% {
        transform: scale(1.1);
        color: #ffaa00;
    }
}

@keyframes nexusGlow {
    0%, 100% {
        background-position: 0% 50%;
        box-shadow: 0 0 25px rgba(255, 170, 0, 0.6), 0 0 50px rgba(255, 68, 68, 0.4);
    }
    33% {
        background-position: 50% 25%;
        box-shadow: 0 0 35px rgba(255, 170, 0, 0.8), 0 0 70px rgba(255, 68, 68, 0.6);
    }
    66% {
        background-position: 100% 75%;
        box-shadow: 0 0 45px rgba(255, 170, 0, 1), 0 0 90px rgba(255, 68, 68, 0.8);
    }
}

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

@keyframes nexusOverloadActive {
    0%, 100% {
        transform: scale(1) translateY(-3px);
        box-shadow: 0 0 60px rgba(255, 170, 0, 1), 0 0 120px rgba(255, 68, 68, 1), 0 0 180px rgba(255, 255, 255, 0.5);
    }
    50% {
        transform: scale(1.1) translateY(-3px);
        box-shadow: 0 0 80px rgba(255, 170, 0, 1), 0 0 160px rgba(255, 68, 68, 1), 0 0 240px rgba(255, 255, 255, 0.8);
    }
}

/* Manual Button */
.manual-btn {
    background: linear-gradient(45deg, #4169E1, #6495ED);
    border: 2px solid #4169E1;
    color: white;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(65, 105, 225, 0.3);
}

.manual-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(65, 105, 225, 0.5);
}

.manual-icon {
    font-size: 1.2rem;
}

/* Manual Modal */
.manual-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    backdrop-filter: blur(10px);
}

.manual-modal-overlay.active {
    display: flex;
}

.manual-modal {
    background: linear-gradient(135deg, #0a0a2a 0%, #16213e 50%, #1a1a3e 100%);
    border: 3px solid #4169E1;
    border-radius: 15px;
    width: 95%;
    max-width: 1200px;
    height: 90vh;
    box-shadow: 0 20px 60px rgba(65, 105, 225, 0.4), 0 0 100px rgba(65, 105, 225, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.manual-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 2px solid rgba(65, 105, 225, 0.5);
    background: linear-gradient(90deg, rgba(65, 105, 225, 0.1), rgba(100, 149, 237, 0.05));
}

.manual-header h2 {
    color: #4169E1;
    font-size: 1.8rem;
    text-shadow: 0 0 15px rgba(65, 105, 225, 0.8);
    margin: 0;
}

.manual-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.download-pdf-btn {
    background: linear-gradient(45deg, #228B22, #32CD32);
    border: 2px solid #228B22;
    color: white;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(34, 139, 34, 0.3);
}

.download-pdf-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(34, 139, 34, 0.5);
}

.manual-close {
    background: linear-gradient(45deg, #DC143C, #FF6347);
    border: 2px solid #DC143C;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.manual-close:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(220, 20, 60, 0.6);
}

.manual-content {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
    color: #e0e0ff;
    line-height: 1.6;
}

.manual-content h3 {
    color: #4169E1;
    font-size: 1.5rem;
    margin: 2rem 0 1rem 0;
    text-shadow: 0 0 10px rgba(65, 105, 225, 0.6);
    border-bottom: 2px solid rgba(65, 105, 225, 0.3);
    padding-bottom: 0.5rem;
}

.manual-content h4 {
    color: #6495ED;
    font-size: 1.2rem;
    margin: 1.5rem 0 0.8rem 0;
    text-shadow: 0 0 8px rgba(100, 149, 237, 0.5);
}

.manual-content h5 {
    color: #87CEEB;
    font-size: 1.1rem;
    margin: 1rem 0 0.5rem 0;
}

.manual-content p {
    margin-bottom: 1rem;
    color: #d0d0e0;
}

.manual-content ul, .manual-content ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.manual-content li {
    margin-bottom: 0.5rem;
    color: #d0d0e0;
}

/* Table of Contents */
.toc {
    background: linear-gradient(145deg, rgba(65, 105, 225, 0.1), rgba(65, 105, 225, 0.05));
    border: 2px solid rgba(65, 105, 225, 0.3);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.toc h3 {
    margin-top: 0;
    text-align: center;
}

.toc ul {
    list-style: none;
    padding: 0;
}

.toc li {
    margin: 0.8rem 0;
}

.toc a {
    color: #87CEEB;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    display: block;
    padding: 0.5rem;
    border-radius: 5px;
}

.toc a:hover {
    color: #4169E1;
    background: rgba(65, 105, 225, 0.1);
    text-shadow: 0 0 8px rgba(65, 105, 225, 0.8);
    transform: translateX(10px);
}

/* Content Sections */
.construct-detail {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(100, 149, 237, 0.3);
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    box-shadow: 0 4px 15px rgba(65, 105, 225, 0.1);
}

.example-scenario {
    background: linear-gradient(145deg, rgba(50, 205, 50, 0.1), rgba(50, 205, 50, 0.05));
    border-left: 4px solid #32CD32;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 0 8px 8px 0;
}

.warning-box {
    background: linear-gradient(145deg, rgba(255, 165, 0, 0.1), rgba(255, 165, 0, 0.05));
    border: 2px solid #FFA500;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

.danger-box {
    background: linear-gradient(145deg, rgba(220, 20, 60, 0.1), rgba(220, 20, 60, 0.05));
    border: 2px solid #DC143C;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

.critical-warning {
    background: linear-gradient(145deg, rgba(255, 0, 0, 0.15), rgba(255, 0, 0, 0.08));
    border: 3px solid #FF0000;
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
    animation: warningPulse 2s ease-in-out infinite;
}

@keyframes warningPulse {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(255, 0, 0, 0.3); 
        border-color: #FF0000;
    }
    50% { 
        box-shadow: 0 0 40px rgba(255, 0, 0, 0.6); 
        border-color: #FF4444;
    }
}

.manual-footer {
    background: linear-gradient(90deg, rgba(65, 105, 225, 0.1), rgba(100, 149, 237, 0.05));
    border-top: 2px solid rgba(65, 105, 225, 0.3);
    padding: 1.5rem;
    text-align: center;
    margin-top: 3rem;
    color: #87CEEB;
}

.manual-footer p {
    margin: 0.5rem 0;
}

/* Manual Scrollbar */
.manual-content::-webkit-scrollbar {
    width: 12px;
}

.manual-content::-webkit-scrollbar-track {
    background: rgba(65, 105, 225, 0.1);
    border-radius: 6px;
}

.manual-content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #4169E1, #6495ED);
    border-radius: 6px;
    border: 2px solid rgba(65, 105, 225, 0.3);
}

.manual-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #5A7EF0, #7BA9F5);
}

/* Section anchors for smooth scrolling */
.manual-content section {
    scroll-margin-top: 2rem;
}

/* Responsive Design for Manual */
@media (max-width: 768px) {
    .manual-modal {
        width: 98%;
        height: 95vh;
    }
    
    .manual-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .manual-header h2 {
        font-size: 1.4rem;
    }
    
    .manual-content {
        padding: 1rem;
    }
    
    .toc {
        padding: 1rem;
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .dashboard {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }
    
    .construct-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .status-indicators {
        flex-direction: column;
        gap: 1rem;
    }
    
    .active-constructs {
        flex-direction: column;
    }
    
    .construct-grid {
        grid-template-columns: 1fr;
    }
}

@keyframes fengShuiPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    }
    25% {
        transform: scale(1.05);
        box-shadow: 0 0 40px rgba(255, 215, 0, 0.8), 0 0 80px rgba(0, 255, 255, 0.4);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 60px rgba(255, 215, 0, 1), 0 0 120px rgba(0, 255, 255, 0.6), 0 0 180px rgba(255, 255, 255, 0.3);
    }
    75% {
        transform: scale(1.05);
        box-shadow: 0 0 40px rgba(255, 215, 0, 0.8), 0 0 80px rgba(0, 255, 255, 0.4);
    }
}

@keyframes gridPulse {
    0%, 100% {
        opacity: 1;
        transform: scaleY(1);
    }
    50% {
        opacity: 0.7;
        transform: scaleY(1.2);
    }
}

.omni-attack-btn {
    background: linear-gradient(45deg, #ff0066, #ff6600, #ff0066);
    background-size: 200% 200%;
    color: white;
    border: none;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    animation: omniAttackPulse 2s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(255, 0, 102, 0.6), 0 0 40px rgba(255, 102, 0, 0.3);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.omni-shield-btn {
    background: linear-gradient(45deg, #0066ff, #00ffff, #0066ff);
    background-size: 200% 200%;
    color: white;
    border: none;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    animation: omniShieldPulse 2s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(0, 102, 255, 0.6), 0 0 40px rgba(0, 255, 255, 0.3);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.feng-shui-btn {
    background: linear-gradient(45deg, #ffd700, #ff6b00, #ffd700, #00ff88, #ffd700);
    background-size: 300% 300%;
    color: #000;
    animation: fengShuiGlow 3s ease-in-out infinite;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.8), 0 0 60px rgba(255, 215, 0, 0.4), 0 0 90px rgba(255, 255, 255, 0.2);
    text-shadow: 0 0 15px rgba(255, 255, 255, 1);
    position: relative;
    overflow: hidden;
}

.feng-shui-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: rotateGlow 4s linear infinite;
}

.omni-attack-btn:hover, .omni-shield-btn:hover, .feng-shui-btn:hover {
    transform: translateY(-3px) scale(1.05);
}

/* 3D Feng Shui Visualization Overlay */
.feng-shui-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1500;
    pointer-events: none;
    background: radial-gradient(circle at center, rgba(255, 215, 0, 0.1) 0%, rgba(0, 255, 255, 0.05) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 1s ease;
}

.feng-shui-overlay.active {
    opacity: 1;
}

#fengShuiCanvas {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8));
}

/* Omni Attack Visualization Overlay */
.omni-attack-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1500;
    pointer-events: none;
    background: radial-gradient(circle at center, rgba(255, 0, 0, 0.15) 0%, rgba(255, 102, 0, 0.08) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 1s ease;
}

.omni-attack-overlay.active {
    opacity: 1;
}

#omniAttackCanvas {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 30px rgba(255, 0, 0, 1)) drop-shadow(0 0 60px rgba(255, 102, 0, 0.8);
}

/* Omni Shield Visualization Overlay */
.omni-shield-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1500;
    pointer-events: none;
    background: radial-gradient(circle at center, rgba(0, 102, 255, 0.12) 0%, rgba(0, 255, 255, 0.06) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 1s ease;
}

.omni-shield-overlay.active {
    opacity: 1;
}

#omniShieldCanvas {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 25px rgba(0, 102, 255, 0.9)) drop-shadow(0 0 50px rgba(0, 255, 255, 0.7));
}

/* Execute Sequence Visualization Overlay */
.execute-sequence-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1500;
    pointer-events: none;
    background: radial-gradient(circle at center, rgba(0, 255, 255, 0.08) 0%, rgba(0, 255, 136, 0.04) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 1s ease;
}

.execute-sequence-overlay.active {
    opacity: 1;
}

#executeSequenceCanvas {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 20px rgba(0, 255, 255, 0.6)) drop-shadow(0 0 40px rgba(0, 255, 136, 0.4);
}

/* Print Styles */
@media print {
    .modal-overlay {
        position: static !important;
        background: white !important;
        padding: 0 !important;
        overflow: visible !important;
        display: block !important;
    }
    
    .modal {
        background: white !important;
        border: none !important;
        box-shadow: none !important;
        max-width: none !important;
        max-height: none !important;
        overflow: visible !important;
    }
    
    .modal-header {
        background: white !important;
        border-bottom: 2px solid #000 !important;
        page-break-after: avoid;
    }
    
    .modal-header h3 {
        color: #000 !important;
        text-shadow: none !important;
    }
    
    .modal-content {
        overflow: visible !important;
        color: #000 !important;
    }
    
    .construct-detail, .intention-detail, .example-scenario {
        background: #f9f9f9 !important;
        border: 1px solid #ccc !important;
        box-shadow: none !important;
        page-break-inside: avoid;
    }
    
    .warning-box, .danger-box, .critical-warning {
        background: #f0f0f0 !important;
        border: 2px solid #000 !important;
        page-break-inside: avoid;
    }
    
    .toc {
        background: #f5f5f5 !important;
        border: 1px solid #ccc !important;
    }
    
    .toc a {
        color: #000 !important;
        text-decoration: underline !important;
    }
    
    strong {
        color: #000 !important;
        text-shadow: none !important;
    }
    
    .danger {
        color: #000 !important;
        text-shadow: none !important;
        font-weight: bold !important;
    }
}

/* Responsive Manual */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .status-indicators {
        flex-direction: column;
        gap: 1rem;
    }
    
    .active-constructs {
        flex-direction: column;
    }
    
    .construct-grid {
        grid-template-columns: 1fr;
    }
}

/* Talisman Upload Section */
.talisman-upload {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.talisman-upload h4 {
    color: #ffd700;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

.upload-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.upload-btn {
    background: linear-gradient(45deg, #ffd700, #ffaa00, #ffd700);
    background-size: 200% 200%;
    border: 2px solid #ffd700;
    color: #000;
    padding: 0.8rem 1rem;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: goldGlow 3s ease-in-out infinite;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    font-family: 'Orbitron', 'Courier New', monospace;
    width: 100%;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 215, 0, 0.6), 0 0 30px rgba(255, 215, 0, 0.4);
}

.upload-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.talisman-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(45px, 45px));
    gap: 0.3rem;
    max-height: 160px;
    overflow-y: auto;
    padding: 0.5rem;
    background: linear-gradient(145deg, rgba(255, 215, 0, 0.08), rgba(255, 215, 0, 0.02));
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    justify-content: start;
}

.talisman-item {
    position: relative;
    width: 45px;
    height: 45px;
    border: 2px solid rgba(255, 215, 0, 0.4);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(145deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.05));
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.talisman-item:hover {
    border-color: #ffd700;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.5), 0 0 20px rgba(255, 215, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: scale(1.15) translateY(-2px);
    z-index: 10;
}

.talisman-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: all 0.3s ease;
    border-radius: 6px;
    filter: brightness(1.1) contrast(1.05);
}

.talisman-remove {
    position: absolute;
    top: -3px;
    right: -3px;
    background: linear-gradient(45deg, rgba(255, 68, 68, 0.9), rgba(220, 20, 60, 0.9));
    color: white;
    border: none;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: 0.6rem;
    font-weight: bold;
    cursor: pointer;
    display: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    z-index: 20;
    line-height: 1;
}

.talisman-item:hover .talisman-remove {
    display: flex;
    align-items: center;
    justify-content: center;
}

.talisman-remove:hover {
    background: linear-gradient(45deg, rgba(255, 68, 68, 1), rgba(220, 20, 60, 1));
    transform: scale(1.15);
    box-shadow: 0 0 15px rgba(255, 68, 68, 0.8);
}

.talisman-grid:empty::before {
    content: "No talismans uploaded yet. Click the upload button above to add your talismans.";
    display: block;
    color: #666;
    font-style: italic;
    text-align: center;
    padding: 2rem;
    border: 2px dashed rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    background: rgba(255, 215, 0, 0.05);
    grid-column: 1 / -1;
}

@keyframes goldGlow {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.read-analysis-btn {
    background: linear-gradient(45deg, #00aa88, #00ccaa);
    border: 2px solid #00aa88;
    color: white;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 170, 136, 0.3);
    opacity: 0.5;
    pointer-events: none;
}

.read-analysis-btn.active {
    opacity: 1;
    pointer-events: all;
}

.read-analysis-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 170, 136, 0.5);
    background: linear-gradient(45deg, #00bb99, #00ddbb);
}

.read-analysis-btn.speaking {
    background: linear-gradient(45deg, #ff6600, #ff8833);
    border-color: #ff6600;
    animation: speakingPulse 1s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(255, 102, 0, 0.6);
}

@keyframes speakingPulse {
    0%, 100% {
        transform: scale(1) translateY(-2px);
        box-shadow: 0 0 20px rgba(255, 102, 0, 0.6);
    }
    50% {
        transform: scale(1.05) translateY(-2px);
        box-shadow: 0 0 30px rgba(255, 102, 0, 0.9);
    }
}

.quantum-resonance-control {
    margin-top: 1.5rem;
    padding: 1rem;
    background: linear-gradient(145deg, rgba(138, 43, 226, 0.1), rgba(75, 0, 130, 0.05));
    border: 2px solid rgba(138, 43, 226, 0.4);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.3);
}

.quantum-resonance-control label {
    color: #8A2BE2;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(138, 43, 226, 0.8);
}

#quantumResonance {
    background: linear-gradient(90deg, rgba(138, 43, 226, 0.3), rgba(147, 0, 211, 0.5));
    height: 14px;
    border-radius: 7px;
}

#quantumResonance::-webkit-slider-thumb {
    appearance: none;
    width: 32px;
    height: 32px;
    background: radial-gradient(circle, #8A2BE2, #9932CC, #BA55D3);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 25px rgba(138, 43, 226, 1), 0 0 50px rgba(138, 43, 226, 0.7);
    transition: all 0.3s ease;
}

.quantum-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem 0;
}

.quantum-value {
    font-size: 1.6rem;
    font-weight: bold;
    color: #8A2BE2;
    text-shadow: 0 0 20px rgba(138, 43, 226, 1);
    animation: quantumPulse 2s ease-in-out infinite;
}

.quantum-status {
    font-size: 1rem;
    font-weight: bold;
    color: #9932CC;
    padding: 0.3rem 0.8rem;
    border: 1px solid #8A2BE2;
    border-radius: 15px;
    background: rgba(138, 43, 226, 0.1);
}

.free-energy-tapping {
    margin-top: 1.5rem;
    padding: 1rem;
    background: linear-gradient(145deg, rgba(0, 255, 127, 0.1), rgba(50, 205, 50, 0.05));
    border: 2px solid rgba(0, 255, 127, 0.4);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 255, 127, 0.3);
}

.free-energy-tapping label {
    color: #00FF7F;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(0, 255, 127, 0.8);
}

#freeEnergyTap {
    background: linear-gradient(90deg, rgba(0, 255, 127, 0.3), rgba(50, 205, 50, 0.5));
    height: 12px;
    border-radius: 6px;
}

#freeEnergyTap::-webkit-slider-thumb {
    appearance: none;
    width: 28px;
    height: 28px;
    background: radial-gradient(circle, #00FF7F, #32CD32, #90EE90);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(0, 255, 127, 1), 0 0 40px rgba(0, 255, 127, 0.6);
    transition: all 0.3s ease;
}

.energy-tap-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem 0;
}

.energy-tap-value {
    font-size: 1.4rem;
    font-weight: bold;
    color: #00FF7F;
    text-shadow: 0 0 15px rgba(0, 255, 127, 1);
    animation: energyFlow 1.5s ease-in-out infinite;
}

.energy-tap-flow {
    font-size: 0.9rem;
    font-weight: bold;
    color: #32CD32;
    padding: 0.3rem 0.6rem;
    border: 1px solid #00FF7F;
    border-radius: 12px;
    background: rgba(0, 255, 127, 0.1);
}

.power-bandwidth-control {
    margin-top: 1.5rem;
    padding: 1rem;
    background: linear-gradient(145deg, rgba(255, 20, 147, 0.1), rgba(199, 21, 133, 0.05));
    border: 2px solid rgba(255, 20, 147, 0.4);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 20, 147, 0.3);
}

.power-bandwidth-control label {
    color: #FF1493;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 20, 147, 0.8);
}

#powerBandwidth {
    background: linear-gradient(90deg, rgba(255, 20, 147, 0.3), rgba(199, 21, 133, 0.5));
    height: 10px;
    border-radius: 5px;
}

#powerBandwidth::-webkit-slider-thumb {
    appearance: none;
    width: 24px;
    height: 24px;
    background: radial-gradient(circle, #FF1493, #C71585, #DB7093);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(255, 20, 147, 1), 0 0 30px rgba(255, 20, 147, 0.6);
    transition: all 0.3s ease;
}

.bandwidth-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem 0;
}

.bandwidth-value {
    font-size: 1.3rem;
    font-weight: bold;
    color: #FF1493;
    text-shadow: 0 0 15px rgba(255, 20, 147, 1);
}

.bandwidth-efficiency {
    font-size: 0.85rem;
    font-weight: bold;
    color: #C71585;
    padding: 0.2rem 0.5rem;
    border: 1px solid #FF1493;
    border-radius: 10px;
    background: rgba(255, 20, 147, 0.1);
}

.quantum-singularity-btn {
    width: 100%;
    background: linear-gradient(45deg, #000080, #4B0082, #9932CC, #4B0082, #000080);
    background-size: 400% 400%;
    border: 3px solid #8A2BE2;
    padding: 1.8rem 2rem;
    border-radius: 15px;
    color: #fff;
    font-weight: bold;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.5s ease;
    animation: singularityGlow 4s ease-in-out infinite;
    box-shadow: 0 0 40px rgba(138, 43, 226, 0.8), 0 0 80px rgba(75, 0, 130, 0.6);
    text-shadow: 0 0 15px rgba(255, 255, 255, 1);
    position: relative;
    overflow: hidden;
    margin-top: 1rem;
    min-height: 80px;
}

.quantum-singularity-btn:hover {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 0 60px rgba(138, 43, 226, 1), 0 0 120px rgba(75, 0, 130, 0.9);
    font-size: 1.5rem;
    padding: 2rem 2.2rem;
}

.quantum-singularity-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(138, 43, 226, 0.8), transparent);
    animation: rotateSingularity 3s linear infinite;
}

@keyframes quantumPulse {
    0%, 100% {
        transform: scale(1);
        color: #8A2BE2;
    }
    50% {
        transform: scale(1.15);
        color: #9932CC;
    }
}

@keyframes energyFlow {
    0%, 100% {
        transform: scale(1);
        color: #00FF7F;
    }
    50% {
        transform: scale(1.1);
        color: #32CD32;
    }
}

@keyframes singularityGlow {
    0%, 100% {
        background-position: 0% 50%;
        box-shadow: 0 0 40px rgba(138, 43, 226, 0.8), 0 0 80px rgba(75, 0, 130, 0.6);
    }
    25% {
        background-position: 25% 25%;
        box-shadow: 0 0 60px rgba(138, 43, 226, 1), 0 0 120px rgba(75, 0, 130, 0.8);
    }
    50% {
        background-position: 100% 50%;
        box-shadow: 0 0 80px rgba(138, 43, 226, 1), 0 0 160px rgba(75, 0, 130, 1), 0 0 240px rgba(255, 255, 255, 0.3);
    }
    75% {
        background-position: 75% 75%;
        box-shadow: 0 0 60px rgba(138, 43, 226, 1), 0 0 120px rgba(75, 0, 130, 0.8);
    }
}

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

/* Quantum Music Player */
.quantum-music-player {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    border: 2px solid rgba(0, 255, 255, 0.4);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.quantum-music-player h3 {
    color: #00ffff;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.6);
    font-size: 1.1rem;
}

.music-upload-section {
    margin-bottom: 1.5rem;
}

.upload-music-btn {
    width: 100%;
    background: linear-gradient(45deg, #9644ff, #bb66ff, #9644ff);
    background-size: 200% 200%;
    border: 2px solid #9644ff;
    color: white;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: musicGlow 3s ease-in-out infinite;
    box-shadow: 0 4px 15px rgba(150, 68, 255, 0.3);
    margin-bottom: 0.5rem;
}

.upload-music-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(150, 68, 255, 0.5);
}

.upload-status {
    color: #aaa;
    font-size: 0.8rem;
    text-align: center;
    padding: 0.3rem;
}

.music-controls {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.music-btn {
    background: linear-gradient(145deg, rgba(0, 255, 255, 0.2), rgba(0, 255, 255, 0.1));
    border: 2px solid rgba(0, 255, 255, 0.4);
    color: #00ffff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.2);
}

.music-btn:hover {
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 255, 255, 0.4);
    border-color: #00ffff;
}

.music-btn.play-pause {
    width: 55px;
    height: 55px;
    font-size: 1.4rem;
    background: linear-gradient(145deg, rgba(0, 255, 136, 0.3), rgba(0, 255, 136, 0.1));
    border-color: rgba(0, 255, 136, 0.5);
    color: #00ff88;
}

.music-btn.active {
    background: linear-gradient(145deg, rgba(0, 255, 255, 0.4), rgba(0, 255, 255, 0.2));
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.6), inset 0 0 10px rgba(0, 255, 255, 0.2);
}

.track-info {
    margin-bottom: 1.2rem;
}

.track-name {
    color: #00ffff;
    font-weight: bold;
    text-align: center;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 0.5rem;
}

.track-progress {
    margin-bottom: 0.5rem;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.3rem;
    cursor: pointer;
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ff88, #00ffff);
    width: 0%;
    transition: width 0.1s ease;
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.time-display {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #aaa;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
    padding: 0.8rem;
    background: rgba(0, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 255, 0.2);
}

.volume-icon {
    font-size: 1.1rem;
    color: #00ffff;
}

.volume-slider {
    flex: 1;
    height: 6px;
    background: linear-gradient(90deg, rgba(0, 255, 255, 0.2), rgba(0, 255, 136, 0.2));
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
}

.volume-slider::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    background: linear-gradient(45deg, #00ffff, #00ff88);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
}

.volume-value {
    font-size: 0.8rem;
    color: #00ffff;
    min-width: 35px;
    text-align: right;
}

.playlist-section {
    border-top: 1px solid rgba(0, 255, 255, 0.2);
    padding-top: 1rem;
}

.playlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    color: #00ffff;
    font-size: 0.9rem;
    font-weight: bold;
}

.playlist-count {
    color: #aaa;
    font-size: 0.8rem;
    font-weight: normal;
}

.playlist {
    max-height: 120px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    border: 1px solid rgba(0, 255, 255, 0.2);
}

.playlist-empty {
    color: #666;
    font-style: italic;
    text-align: center;
    padding: 1.5rem 1rem;
    font-size: 0.8rem;
}

.playlist-item {
    padding: 0.6rem 0.8rem;
    color: #ccc;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.playlist-item:hover {
    background: rgba(0, 255, 255, 0.1);
    color: #00ffff;
}

.playlist-item.active {
    background: linear-gradient(90deg, rgba(0, 255, 136, 0.2), rgba(0, 255, 255, 0.1));
    color: #00ff88;
    border-left: 3px solid #00ff88;
}

.playlist-item.active::before {
    content: '♪';
    position: absolute;
    right: 0.8rem;
    color: #00ff88;
    animation: musicNote 2s ease-in-out infinite;
}

@keyframes musicGlow {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes musicNote {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
}

/* Playlist Scrollbar */
.playlist::-webkit-scrollbar {
    width: 6px;
}

/* Select All Button */
.select-all-btn {
    width: 100%;
    background: linear-gradient(45deg, #4169E1, #6495ED, #4169E1);
    background-size: 200% 200%;
    border: 2px solid #4169E1;
    color: white;
    padding: 0.8rem 1rem;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: selectAllGlow 3s ease-in-out infinite;
    box-shadow: 0 4px 15px rgba(65, 105, 225, 0.3);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    margin-top: 0.8rem;
    text-align: center;
}

.select-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(65, 105, 225, 0.5);
    background: linear-gradient(45deg, #5A7EF0, #7BA9F5, #5A7EF0);
}

.select-all-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(65, 105, 225, 0.3);
}

@keyframes selectAllGlow {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.analysis-download-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 8px;
}

.download-text-btn {
    background: linear-gradient(45deg, #4169E1, #6495ED);
    border: 2px solid #4169E1;
    color: white;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(65, 105, 225, 0.3);
}

.download-text-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(65, 105, 225, 0.5);
}

.download-audio-btn {
    background: linear-gradient(45deg, #9644ff, #bb66ff);
    border: 2px solid #9644ff;
    color: white;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(150, 68, 255, 0.3);
}

.download-audio-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(150, 68, 255, 0.5);
}

.download-audio-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.download-audio-btn.generating {
    background: linear-gradient(45deg, #ff6600, #ff8833);
    animation: audioGenerating 1s ease-in-out infinite;
}

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