:root {
    --primary-color: #7b2cbf;
    --secondary-color: #5a189a;
    --accent-color: #e0aaff;
    --dark-color: #10002b;
    --light-color: #c8b6ff;
    --success-color: #42f587;
    --warning-color: #ffaa00;
    --white: #ffffff;
    --black: #000000;
    --gradient-start: #240046;
    --gradient-end: #3c096c;
    --card-bg: rgba(16, 0, 43, 0.7);
    --input-bg: rgba(16, 0, 43, 0.7);
    --header-height: 70px;
    --border-radius: 16px;
    --glow-strength: 10px;
    --button-hover-scale: 1.05;
}

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

body {
    background-color: var(--dark-color);
    color: var(--white);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.sacred-geometry-background {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('sacred-geometry-bg.png');
    background-size: cover;
    opacity: 0.2;
    z-index: -1;
    pointer-events: none;
}

.app-container {
    background: linear-gradient(135deg, rgba(36, 0, 70, 0.9) 0%, rgba(60, 9, 108, 0.9) 100%);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin: 10px auto;
    max-width: 1200px;
    min-height: calc(100vh - 20px);
    overflow: hidden;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(224, 170, 255, 0.3);
    height: var(--header-height);
    padding: 0 20px;
    position: relative;
}

.app-title {
    color: var(--accent-color);
    font-size: clamp(1.3rem, 5vw, 2.5rem);
    font-weight: 600;
    text-align: center;
    flex-grow: 1;
    text-shadow: 0 0 var(--glow-strength) rgba(224, 170, 255, 0.5);
    margin: 0 15px;
}

.power-button-container {
    position: relative;
    z-index: 10;
}

#power-button {
    background: none;
    border: 3px solid var(--accent-color);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    margin-right: 10px;
}

#power-button:hover, #power-button:focus {
    transform: scale(var(--button-hover-scale));
    outline: none;
}

#power-button::before {
    content: '';
    position: absolute;
    width: 70%;
    height: 70%;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-color) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.power-button.power-on {
    background-color: var(--accent-color);
    box-shadow: 0 0 20px var(--accent-color);
}

.power-button.power-on::before {
    opacity: 0.7;
}

.power-button.power-off {
    background-color: transparent;
    box-shadow: none;
}

.power-icon {
    font-size: 24px;
    color: var(--accent-color);
    transition: color 0.3s ease;
}

.power-button.power-on .power-icon {
    color: var(--dark-color);
}

.help-button-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

#help-button {
    background: none;
    border: 3px solid var(--accent-color);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    margin-left: 10px;
}

#help-button:hover, #help-button:focus {
    transform: scale(var(--button-hover-scale));
    outline: none;
    background-color: rgba(224, 170, 255, 0.2);
}

#help-button i {
    font-size: 24px;
    color: var(--accent-color);
    transition: all 0.3s ease;
}

#help-button:hover i {
    transform: scale(1.1);
    filter: drop-shadow(0 0 5px var(--accent-color));
}

.tutorial-button-container {
    position: relative;
    z-index: 10;
}

#tutorial-button {
    background: linear-gradient(135deg, rgba(224, 170, 255, 0.1) 0%, rgba(66, 245, 135, 0.1) 100%);
    border: 3px solid var(--accent-color);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    margin-right: 10px;
    box-shadow: 0 0 10px rgba(224, 170, 255, 0.3);
    animation: tutorial-button-pulse 3s infinite ease-in-out;
}

#tutorial-button:hover, #tutorial-button:focus {
    transform: scale(var(--button-hover-scale));
    outline: none;
    background: linear-gradient(135deg, rgba(224, 170, 255, 0.3) 0%, rgba(66, 245, 135, 0.2) 100%);
    box-shadow: 0 0 20px rgba(224, 170, 255, 0.6);
    animation: none;
}

#tutorial-button i {
    font-size: 24px;
    color: var(--accent-color);
    transition: all 0.3s ease;
    text-shadow: 0 0 10px rgba(224, 170, 255, 0.5);
}

#tutorial-button:hover i {
    transform: scale(1.1) rotate(10deg);
    filter: drop-shadow(0 0 10px var(--accent-color));
    text-shadow: 0 0 15px rgba(224, 170, 255, 0.8);
}

#tutorial-button::before {
    content: '';
    position: absolute;
    width: 70%;
    height: 70%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(224, 170, 255, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
    animation: tutorial-inner-glow 4s infinite ease-in-out;
}

#tutorial-button:hover::before {
    opacity: 1;
    animation: none;
}

@keyframes tutorial-button-pulse {
    0% { 
        box-shadow: 0 0 10px rgba(224, 170, 255, 0.3);
        border-color: var(--accent-color);
    }
    50% { 
        box-shadow: 0 0 20px rgba(224, 170, 255, 0.5);
        border-color: rgba(66, 245, 135, 0.8);
    }
    100% { 
        box-shadow: 0 0 10px rgba(224, 170, 255, 0.3);
        border-color: var(--accent-color);
    }
}

@keyframes tutorial-inner-glow {
    0% { 
        opacity: 0.2;
        transform: scale(0.8);
    }
    50% { 
        opacity: 0.6;
        transform: scale(1.2);
    }
    100% { 
        opacity: 0.2;
        transform: scale(0.8);
    }
}

/* Main Interface */
#main-interface {
    transition: opacity 0.5s ease, filter 0.5s ease;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#main-interface.powered-off {
    opacity: 0.3;
    filter: grayscale(100%);
    pointer-events: none;
}

#main-interface.powered-on {
    opacity: 1;
    filter: none;
    pointer-events: all;
}

/* Tab Navigation */
.tab-navigation {
    display: flex;
    border-bottom: 1px solid rgba(224, 170, 255, 0.3);
    background-color: rgba(16, 0, 43, 0.5);
}

.tab-button {
    background: transparent;
    border: none;
    color: var(--light-color);
    cursor: pointer;
    flex: 1;
    font-size: 1rem;
    font-weight: 500;
    padding: 12px 5px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.tab-button i {
    font-size: 1.25rem;
    margin-bottom: 5px;
}

.tab-button.active {
    color: var(--accent-color);
    border-bottom: 3px solid var(--accent-color);
    box-shadow: 0 0 10px rgba(224, 170, 255, 0.3);
    background: rgba(90, 24, 154, 0.3);
}

.tab-button:hover, .tab-button:focus {
    color: var(--accent-color);
    background: rgba(90, 24, 154, 0.2);
}

/* Tab Content */
.tabs-container {
    flex-grow: 1;
    overflow-y: auto;
    position: relative;
}

.tab-content {
    display: none;
    padding: 20px;
    height: 100%;
}

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

/* Category Filter Styles */
.category-filter-container, .crystal-presets-container {
    margin-bottom: 20px;
}

.filter-title, .presets-title {
    font-size: 1.1rem;
    color: var(--accent-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.category-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.category-button {
    background: rgba(90, 24, 154, 0.3);
    border: 1px solid var(--secondary-color);
    border-radius: 20px;
    color: var(--light-color);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 5px 12px;
    transition: all 0.3s ease;
}

.category-button:hover {
    background: rgba(90, 24, 154, 0.5);
    transform: translateY(-2px);
}

.category-button.active {
    background: var(--accent-color);
    color: var(--dark-color);
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(224, 170, 255, 0.5);
}

.preset-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.preset-button {
    background: rgba(123, 44, 191, 0.6);
    border: 1px solid var(--accent-color);
    border-radius: 20px;
    color: var(--white);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 7px 15px;
    transition: all 0.3s ease;
}

.preset-button:hover {
    background: rgba(123, 44, 191, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(224, 170, 255, 0.3);
}

.preset-button:active {
    transform: translateY(1px);
    box-shadow: 0 0 5px rgba(224, 170, 255, 0.5);
}

.crystal-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 8px;
}

.crystal-category-tag {
    background: rgba(90, 24, 154, 0.5);
    border-radius: 12px;
    color: var(--white);
    font-size: 0.7rem;
    padding: 2px 8px;
}

/* Crystal Section */
.crystal-selector-container {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 20px;
    height: 100%;
}

.crystal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.crystal-item {
    position: relative;
    background: rgba(90, 24, 154, 0.5);
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    transition: all 0.3s ease;
    aspect-ratio: 1/1;
    overflow: hidden;
}

.crystal-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(224, 170, 255, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.crystal-item:hover::before, .crystal-item:focus::before {
    opacity: 1;
}

.crystal-item.selected::before {
    background: radial-gradient(circle at center, rgba(224, 170, 255, 0.5) 0%, rgba(224, 170, 255, 0.2) 70%);
    opacity: 1;
    animation: crystal-selected-glow 2s infinite ease-in-out;
}

@keyframes crystal-selected-glow {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

.crystal-item img {
    max-width: 70%;
    max-height: 60%;
    margin-bottom: 8px;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
    transition: transform 0.3s ease, filter 0.3s ease;
    z-index: 1;
    position: relative;
}

.crystal-item:hover img, .crystal-item:focus img {
    transform: translateY(-5px);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
}

.crystal-item.selected img {
    filter: drop-shadow(0 0 10px rgba(224, 170, 255, 0.9));
    animation: float 3s infinite ease-in-out;
}

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

.crystal-item:hover, .crystal-item:focus {
    background: rgba(123, 44, 191, 0.7);
    transform: translateY(-5px);
    outline: none;
}

.crystal-item.selected {
    background: var(--accent-color);
    box-shadow: 0 0 15px var(--accent-color);
}

.crystal-item img {
    max-width: 70%;
    max-height: 60%;
    margin-bottom: 8px;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

.crystal-item p {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
}

.crystal-item::after {
    content: '+';
    position: absolute;
    top: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.crystal-item:hover::after {
    opacity: 0.7;
}

.crystal-item.selected::after {
    content: '✓';
    background: var(--accent-color);
    color: var(--dark-color);
    opacity: 1;
}

.selected-crystal-info {
    background: rgba(16, 0, 43, 0.5);
    border-radius: var(--border-radius);
    padding: 15px;
    margin-top: 20px;
    border-left: 4px solid var(--accent-color);
}

.selected-crystal-info h4 {
    color: var(--accent-color);
    margin-bottom: 10px;
}

/* Target Panel */
.target-panel {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 20px;
    height: 100%;
}

/* Custom File Upload */
.custom-file-upload {
    position: relative;
    display: block;
    width: 100%;
}

.custom-file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.custom-file-upload label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px;
    background: var(--secondary-color);
    color: var(--white);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-file-upload label:hover {
    background: var(--primary-color);
    transform: scale(var(--button-hover-scale));
}

/* Enhanced File Upload */
.enhanced-file-upload {
    position: relative;
    margin-bottom: 15px;
}

.enhanced-file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.upload-area {
    border: 3px dashed rgba(224, 170, 255, 0.4);
    border-radius: var(--border-radius);
    background: rgba(16, 0, 43, 0.3);
    padding: 40px 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.upload-area:hover::before {
    left: 100%;
}

.upload-area:hover {
    border-color: var(--accent-color);
    background: rgba(90, 24, 154, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(224, 170, 255, 0.3);
}

.upload-area.drag-over {
    border-color: var(--success-color);
    background: rgba(66, 245, 135, 0.1);
    box-shadow: 0 0 30px rgba(66, 245, 135, 0.4);
    animation: drag-pulse 0.6s infinite alternate;
}

@keyframes drag-pulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.02); }
}

.upload-area.uploading {
    border-color: var(--warning-color);
    background: rgba(255, 170, 0, 0.1);
}

.upload-area.success {
    border-color: var(--success-color);
    background: rgba(66, 245, 135, 0.1);
    animation: upload-success 0.8s ease-out;
}

@keyframes upload-success {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); box-shadow: 0 0 30px rgba(66, 245, 135, 0.6); }
    100% { transform: scale(1); }
}

.upload-area.error {
    border-color: #ff4444;
    background: rgba(255, 68, 68, 0.1);
    animation: upload-error 0.5s ease-out;
}

@keyframes upload-error {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
    100% { transform: translateX(0); }
}

.upload-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 15px;
    transition: all 0.3s ease;
    position: relative;
}

.upload-area:hover .upload-icon {
    color: var(--white);
    transform: translateY(-5px);
    filter: drop-shadow(0 5px 15px rgba(224, 170, 255, 0.5));
}

.upload-area.drag-over .upload-icon {
    color: var(--success-color);
    transform: scale(1.2) translateY(-10px);
    animation: icon-bounce 0.6s infinite alternate;
}

@keyframes icon-bounce {
    0% { transform: scale(1.2) translateY(-10px); }
    100% { transform: scale(1.3) translateY(-15px); }
}

.upload-text h4 {
    color: var(--white);
    margin-bottom: 8px;
    font-size: 1.3rem;
    font-weight: 600;
}

.upload-text p {
    color: var(--light-color);
    margin-bottom: 5px;
    font-size: 1rem;
}

.browse-link {
    color: var(--accent-color);
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.3s ease;
}

.browse-link:hover {
    color: var(--white);
}

.upload-text small {
    color: rgba(200, 182, 255, 0.7);
    font-size: 0.8rem;
    display: block;
    margin-top: 10px;
}

.upload-progress {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(16, 0, 43, 0.8);
    border-radius: 20px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(90, 24, 154, 0.5);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), var(--success-color));
    border-radius: 3px;
    transition: width 0.3s ease;
    width: var(--progress, 0%);
    box-shadow: 0 0 10px rgba(224, 170, 255, 0.5);
}

.progress-text {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 40px;
    text-align: right;
}

/* Enhanced Image Preview */
.image-preview-container {
    margin-top: 15px;
    width: 100%;
}

.image-preview {
    background: rgba(16, 0, 43, 0.7);
    border: 2px solid rgba(224, 170, 255, 0.3);
    border-radius: var(--border-radius);
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.image-preview:hover {
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(224, 170, 255, 0.3);
}

.image-preview.has-image {
    background: rgba(16, 0, 43, 0.9);
    border-color: var(--success-color);
}

.image-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.image-preview:hover img {
    transform: scale(1.02);
}

.remove-image-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
    background: rgba(255, 68, 68, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1rem;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(255, 68, 68, 0.4);
}

.remove-image-btn:hover {
    background: rgba(255, 68, 68, 1);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(255, 68, 68, 0.6);
}

.remove-image-btn:active {
    transform: scale(0.95);
}

.preview-text {
    color: var(--light-color);
    font-style: italic;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.image-preview:hover .preview-text {
    color: var(--accent-color);
    transform: translateY(-5px);
}

.image-info {
    background: rgba(16, 0, 43, 0.6);
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
    border: 1px solid rgba(224, 170, 255, 0.2);
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding: 5px 0;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-label {
    color: var(--light-color);
    font-weight: 500;
    font-size: 0.9rem;
}

.info-value {
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
    text-align: right;
    max-width: 60%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Form Controls */
.form-control, .form-range {
    background-color: var(--input-bg);
    border: 1px solid var(--secondary-color);
    color: var(--white);
    border-radius: calc(var(--border-radius) / 2);
}

.form-control:focus {
    background-color: rgba(16, 0, 43, 0.9);
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(224, 170, 255, 0.5);
    color: var(--white);
}

.form-floating > .form-control {
    background-color: var(--input-bg);
    height: calc(3.5rem + 2px);
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
    color: var(--accent-color);
    background-color: transparent;
    height: auto;
    padding: 0 0.5rem;
}

.form-floating > label {
    color: var(--light-color);
    padding: 1rem 0.75rem;
    background: transparent;
}

.crystal-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 5px var(--accent-color);
}

.crystal-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 5px var(--accent-color);
}

.crystal-slider::-webkit-slider-runnable-track {
    height: 10px;
    background: rgba(90, 24, 154, 0.5);
    border-radius: 5px;
}

.crystal-slider::-moz-range-track {
    height: 10px;
    background: rgba(90, 24, 154, 0.5);
    border-radius: 5px;
}

.form-switch-container {
    padding: 10px 0;
}

.form-switch .form-check-input {
    width: 3em;
    height: 1.5em;
    margin-top: 0.2em;
}

.form-check-input:checked {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: 0 0 5px var(--accent-color);
}

.form-check-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

/* Help Modal */
.help-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(16, 0, 43, 0.8);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.help-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.help-modal-content {
    background: linear-gradient(135deg, rgba(36, 0, 70, 0.95) 0%, rgba(60, 9, 108, 0.95) 100%);
    border-radius: var(--border-radius);
    box-shadow: 0 0 30px rgba(224, 170, 255, 0.5);
    width: min(90%, 900px);
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: modal-appear 0.5s ease-out forwards;
    border: 1px solid rgba(224, 170, 255, 0.3);
}

@keyframes modal-appear {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.help-header {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(224, 170, 255, 0.3);
}

.help-header h2 {
    color: var(--accent-color);
    margin: 0;
    font-size: 1.6rem;
    text-shadow: 0 0 10px rgba(224, 170, 255, 0.5);
}

.close-help-btn {
    background: none;
    border: none;
    color: var(--light-color);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.close-help-btn:hover {
    color: var(--white);
    background-color: rgba(224, 170, 255, 0.2);
    transform: rotate(90deg);
}

.help-tabs {
    display: flex;
    flex-wrap: wrap;
    overflow-x: visible;
    background-color: rgba(16, 0, 43, 0.9);
    border-bottom: 1px solid rgba(224, 170, 255, 0.3);
    padding: 5px 10px;
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(10px);
    max-height: none;
}

.help-tab-btn {
    background: transparent;
    border: none;
    color: var(--light-color);
    cursor: pointer;
    flex: 0 1 auto;
    white-space: nowrap;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 8px 12px;
    text-align: center;
    transition: all 0.3s ease;
    min-width: auto;
    margin: 2px;
    border-radius: 6px;
}

.help-tab-btn.active {
    color: var(--accent-color);
    border-bottom: 3px solid var(--accent-color);
    background: rgba(90, 24, 154, 0.3);
}

.help-tab-btn:hover {
    color: var(--accent-color);
    background: rgba(90, 24, 154, 0.2);
}

.help-content {
    padding: 20px;
    overflow-y: auto;
    flex-grow: 1;
    padding-top: 10px;
}

.help-section {
    display: none;
}

.help-section.active {
    display: block;
    animation: fade-in 0.3s ease-out;
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.help-section h3 {
    color: var(--accent-color);
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(224, 170, 255, 0.3);
    padding-bottom: 10px;
}

.help-section h4 {
    color: var(--light-color);
    margin: 20px 0 10px;
    font-size: 1.1rem;
}

.help-section p, .help-section li {
    color: var(--white);
    line-height: 1.6;
    margin-bottom: 10px;
}

.help-section ul, .help-section ol {
    padding-left: 20px;
    margin-bottom: 15px;
}

.help-tip {
    background: rgba(224, 170, 255, 0.1);
    border-left: 4px solid var(--accent-color);
    padding: 15px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
    display: flex;
    align-items: flex-start;
}

.help-tip i {
    color: var(--accent-color);
    margin-right: 10px;
    margin-top: 3px;
    font-size: 1.2rem;
}

.help-tip p {
    margin: 0;
}

.help-footer {
    padding: 15px 20px;
    display: flex;
    justify-content: flex-end;
    border-top: 1px solid rgba(224, 170, 255, 0.3);
    background-color: rgba(16, 0, 43, 0.5);
    gap: 10px;
}

.btn-manual {
    background: var(--accent-color);
    color: var(--dark-color);
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-manual:hover {
    background: var(--light-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(224, 170, 255, 0.5);
}

/* Manual PDF styles */
.manual-pdf-container {
    background: white;
    padding: 20px;
    color: black;
}

.manual-pdf-container h1 {
    color: #7b2cbf;
    text-align: center;
    margin-bottom: 20px;
}

.manual-pdf-header {
    text-align: center;
    margin-bottom: 30px;
}

.manual-pdf-header img {
    max-width: 150px;
    margin-bottom: 15px;
}

/* Enhanced Transmission Overlay */
.transmission-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(16, 0, 43, 0.95) 0%, rgba(0, 0, 0, 0.98) 70%);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    overflow: hidden;
}

.transmission-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* George Lucas Style Cinematic Background */
.transmission-overlay::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 100, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255, 100, 0, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 30%),
        radial-gradient(circle at 30% 80%, rgba(200, 0, 255, 0.08) 0%, transparent 35%);
    animation: cinematic-background 8s infinite ease-in-out;
    z-index: -1;
}

@keyframes cinematic-background {
    0% { 
        transform: rotate(0deg) scale(1);
        opacity: 0.3;
    }
    25% { 
        transform: rotate(90deg) scale(1.1);
        opacity: 0.6;
    }
    50% { 
        transform: rotate(180deg) scale(0.9);
        opacity: 0.4;
    }
    75% { 
        transform: rotate(270deg) scale(1.2);
        opacity: 0.7;
    }
    100% { 
        transform: rotate(360deg) scale(1);
        opacity: 0.3;
    }
}

/* Enhanced Sacred Geometry Mandala */
.sacred-geometry-mandala {
    position: absolute;
    width: 600px;
    height: 600px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-image: url('sacred-mandala.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    animation: mandala-master-rotation 20s infinite linear;
    filter: drop-shadow(0 0 30px rgba(224, 170, 255, 0.8)) drop-shadow(0 0 60px rgba(66, 245, 135, 0.6));
    z-index: 5;
}

/* Multiple Sacred Geometry Layers */
.sacred-geometry-mandala::before {
    content: '';
    position: absolute;
    width: 120%;
    height: 120%;
    top: -10%;
    left: -10%;
    background: 
        conic-gradient(from 0deg, 
            rgba(224, 170, 255, 0.3) 0deg,
            rgba(66, 245, 135, 0.3) 60deg,
            rgba(255, 204, 0, 0.3) 120deg,
            rgba(255, 102, 204, 0.3) 180deg,
            rgba(102, 204, 255, 0.3) 240deg,
            rgba(224, 170, 255, 0.3) 360deg
        );
    border-radius: 50%;
    animation: sacred-ring-rotation 15s infinite linear reverse;
    filter: blur(2px);
}

.sacred-geometry-mandala::after {
    content: '';
    position: absolute;
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    background: radial-gradient(circle,
        transparent 30%,
        rgba(224, 170, 255, 0.2) 40%,
        transparent 50%,
        rgba(66, 245, 135, 0.2) 60%,
        transparent 70%,
        rgba(255, 204, 0, 0.2) 80%,
        transparent 90%
    );
    border-radius: 50%;
    animation: inner-sacred-pulse 6s infinite ease-in-out;
}

@keyframes mandala-master-rotation {
    0% { 
        transform: translate(-50%, -50%) rotate(0deg) scale(1);
        filter: 
            drop-shadow(0 0 30px rgba(224, 170, 255, 0.8)) 
            drop-shadow(0 0 60px rgba(66, 245, 135, 0.6))
            hue-rotate(0deg);
    }
    25% { 
        transform: translate(-50%, -50%) rotate(90deg) scale(1.1);
        filter: 
            drop-shadow(0 0 40px rgba(255, 204, 0, 0.9)) 
            drop-shadow(0 0 80px rgba(255, 102, 204, 0.7))
            hue-rotate(90deg);
    }
    50% { 
        transform: translate(-50%, -50%) rotate(180deg) scale(0.9);
        filter: 
            drop-shadow(0 0 50px rgba(102, 204, 255, 1)) 
            drop-shadow(0 0 100px rgba(255, 153, 51, 0.8))
            hue-rotate(180deg);
    }
    75% { 
        transform: translate(-50%, -50%) rotate(270deg) scale(1.2);
        filter: 
            drop-shadow(0 0 35px rgba(153, 255, 102, 0.85)) 
            drop-shadow(0 0 70px rgba(255, 51, 153, 0.65))
            hue-rotate(270deg);
    }
    100% { 
        transform: translate(-50%, -50%) rotate(360deg) scale(1);
        filter: 
            drop-shadow(0 0 30px rgba(224, 170, 255, 0.8)) 
            drop-shadow(0 0 60px rgba(66, 245, 135, 0.6))
            hue-rotate(360deg);
    }
}

@keyframes sacred-ring-rotation {
    0% { transform: rotate(0deg); opacity: 0.6; }
    50% { transform: rotate(180deg); opacity: 0.9; }
    100% { transform: rotate(360deg); opacity: 0.6; }
}

@keyframes inner-sacred-pulse {
    0% { 
        transform: scale(0.8) rotate(0deg);
        opacity: 0.4;
    }
    50% { 
        transform: scale(1.3) rotate(180deg);
        opacity: 0.8;
    }
    100% { 
        transform: scale(0.8) rotate(360deg);
        opacity: 0.4;
    }
}

/* Enhanced Energy Beam */
.energy-beam {
    position: absolute;
    width: 100%;
    height: 8px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    background: linear-gradient(90deg,
        rgba(224, 170, 255, 0.9) 0%,
        rgba(255, 255, 255, 1) 20%,
        rgba(66, 245, 135, 0.9) 40%,
        rgba(255, 255, 255, 1) 60%,
        rgba(255, 204, 0, 0.9) 80%,
        rgba(224, 170, 255, 0.9) 100%
    );
    box-shadow: 
        0 0 20px rgba(224, 170, 255, 0.8),
        0 0 40px rgba(66, 245, 135, 0.6),
        0 0 60px rgba(255, 204, 0, 0.4);
    animation: energy-beam-flow 2s infinite linear, energy-beam-pulse 4s infinite ease-in-out;
    z-index: 10;
}

.energy-beam::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 300%;
    top: -100%;
    left: 0;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 20%,
        rgba(255, 255, 255, 0.6) 50%,
        rgba(255, 255, 255, 0.3) 80%,
        transparent 100%
    );
    animation: beam-shimmer 1.5s infinite ease-in-out;
    filter: blur(1px);
}

.energy-beam::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 50px;
    top: -21px;
    left: 0;
    background: radial-gradient(ellipse at center,
        rgba(255, 255, 255, 0.4) 0%,
        rgba(224, 170, 255, 0.3) 30%,
        transparent 70%
    );
    animation: beam-aura 3s infinite ease-in-out;
}

@keyframes energy-beam-flow {
    0% { 
        background-position: 0% 50%;
        transform: translateY(-50%) scaleX(0.8);
    }
    50% { 
        background-position: 100% 50%;
        transform: translateY(-50%) scaleX(1.2);
    }
    100% { 
        background-position: 200% 50%;
        transform: translateY(-50%) scaleX(0.8);
    }
}

@keyframes energy-beam-pulse {
    0% { 
        height: 8px;
        box-shadow: 
            0 0 20px rgba(224, 170, 255, 0.8),
            0 0 40px rgba(66, 245, 135, 0.6),
            0 0 60px rgba(255, 204, 0, 0.4);
    }
    50% { 
        height: 16px;
        box-shadow: 
            0 0 40px rgba(224, 170, 255, 1),
            0 0 80px rgba(66, 245, 135, 0.8),
            0 0 120px rgba(255, 204, 0, 0.6);
    }
    100% { 
        height: 8px;
        box-shadow: 
            0 0 20px rgba(224, 170, 255, 0.8),
            0 0 40px rgba(66, 245, 135, 0.6),
            0 0 60px rgba(255, 204, 0, 0.4);
    }
}

@keyframes beam-shimmer {
    0% { 
        transform: translateX(-100%);
        opacity: 0;
    }
    50% { 
        transform: translateX(0%);
        opacity: 1;
    }
    100% { 
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes beam-aura {
    0% { 
        transform: scaleY(0.5);
        opacity: 0.3;
    }
    50% { 
        transform: scaleY(1.5);
        opacity: 0.8;
    }
    100% { 
        transform: scaleY(0.5);
        opacity: 0.3;
    }
}

/* Enhanced Crystal and Target Projections */
.crystal-projection {
    position: absolute;
    left: 15%;
    top: 50%;
    transform: translateY(-50%);
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(224, 170, 255, 0.4) 0%,
        rgba(224, 170, 255, 0.2) 50%,
        transparent 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    animation: crystal-projection-power 4s infinite ease-in-out;
    z-index: 15;
}

.crystal-projection::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    border: 3px solid rgba(224, 170, 255, 0.6);
    border-radius: 50%;
    animation: crystal-energy-ring 3s infinite linear;
    z-index: -1;
}

.crystal-projection::after {
    content: '';
    position: absolute;
    width: 250%;
    height: 250%;
    background: conic-gradient(from 0deg,
        rgba(224, 170, 255, 0.3) 0deg,
        rgba(66, 245, 135, 0.3) 72deg,
        rgba(255, 204, 0, 0.3) 144deg,
        rgba(255, 102, 204, 0.3) 216deg,
        rgba(102, 204, 255, 0.3) 288deg,
        rgba(224, 170, 255, 0.3) 360deg
    );
    border-radius: 50%;
    animation: crystal-aura-rotation 8s infinite linear;
    z-index: -2;
    filter: blur(3px);
}

.target-projection {
    position: absolute;
    right: 15%;
    top: 50%;
    transform: translateY(-50%);
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(66, 245, 135, 0.4) 0%,
        rgba(66, 245, 135, 0.2) 50%,
        transparent 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    animation: target-projection-receive 4s infinite ease-in-out;
    z-index: 15;
}

.target-projection::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    border: 3px solid rgba(66, 245, 135, 0.6);
    border-radius: 50%;
    animation: target-energy-ring 3s infinite linear reverse;
    z-index: -1;
}

.target-projection::after {
    content: '';
    position: absolute;
    width: 300%;
    height: 300%;
    background: radial-gradient(circle,
        transparent 60%,
        rgba(66, 245, 135, 0.2) 70%,
        rgba(255, 255, 255, 0.1) 80%,
        transparent 90%
    );
    border-radius: 50%;
    animation: target-reception-waves 5s infinite ease-in-out;
    z-index: -2;
}

@keyframes crystal-projection-power {
    0% { 
        transform: translateY(-50%) scale(1);
        filter: brightness(1) saturate(1);
        box-shadow: 0 0 30px rgba(224, 170, 255, 0.6);
    }
    50% { 
        transform: translateY(-50%) scale(1.1);
        filter: brightness(1.3) saturate(1.5);
        box-shadow: 0 0 60px rgba(224, 170, 255, 0.9);
    }
    100% { 
        transform: translateY(-50%) scale(1);
        filter: brightness(1) saturate(1);
        box-shadow: 0 0 30px rgba(224, 170, 255, 0.6);
    }
}

@keyframes target-projection-receive {
    0% { 
        transform: translateY(-50%) scale(1);
        filter: brightness(1) contrast(1);
        box-shadow: 0 0 30px rgba(66, 245, 135, 0.6);
    }
    50% { 
        transform: translateY(-50%) scale(1.2);
        filter: brightness(1.4) contrast(1.3);
        box-shadow: 0 0 80px rgba(66, 245, 135, 1);
    }
    100% { 
        transform: translateY(-50%) scale(1);
        filter: brightness(1) contrast(1);
        box-shadow: 0 0 30px rgba(66, 245, 135, 0.6);
    }
}

@keyframes crystal-energy-ring {
    0% { 
        transform: rotate(0deg) scale(0.8);
        border-color: rgba(224, 170, 255, 0.6);
        opacity: 0.7;
    }
    50% { 
        transform: rotate(180deg) scale(1.2);
        border-color: rgba(255, 255, 255, 0.9);
        opacity: 1;
    }
    100% { 
        transform: rotate(360deg) scale(0.8);
        border-color: rgba(224, 170, 255, 0.6);
        opacity: 0.7;
    }
}

@keyframes target-energy-ring {
    0% { 
        transform: rotate(0deg) scale(0.9);
        border-color: rgba(66, 245, 135, 0.6);
        opacity: 0.8;
    }
    50% { 
        transform: rotate(-180deg) scale(1.3);
        border-color: rgba(255, 255, 255, 0.9);
        opacity: 1;
    }
    100% { 
        transform: rotate(-360deg) scale(0.9);
        border-color: rgba(66, 245, 135, 0.6);
        opacity: 0.8;
    }
}

@keyframes crystal-aura-rotation {
    0% { 
        transform: rotate(0deg);
        opacity: 0.4;
    }
    100% { 
        transform: rotate(360deg);
        opacity: 0.4;
    }
}

@keyframes target-reception-waves {
    0% { 
        transform: scale(0.8);
        opacity: 0.3;
    }
    50% { 
        transform: scale(1.5);
        opacity: 0.7;
    }
    100% { 
        transform: scale(0.8);
        opacity: 0.3;
    }
}

/* Cinematic Light Rays */
.transmission-overlay::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(45deg, transparent 45%, rgba(255, 255, 255, 0.1) 50%, transparent 55%),
        linear-gradient(-45deg, transparent 45%, rgba(255, 255, 255, 0.1) 50%, transparent 55%),
        linear-gradient(135deg, transparent 48%, rgba(224, 170, 255, 0.1) 50%, transparent 52%),
        linear-gradient(-135deg, transparent 48%, rgba(66, 245, 135, 0.1) 50%, transparent 52%);
    animation: cinematic-rays 6s infinite ease-in-out;
    pointer-events: none;
    z-index: 1;
}

@keyframes cinematic-rays {
    0% { 
        transform: rotate(0deg);
        opacity: 0.3;
    }
    25% { 
        transform: rotate(5deg);
        opacity: 0.6;
    }
    50% { 
        transform: rotate(-3deg);
        opacity: 0.4;
    }
    75% { 
        transform: rotate(2deg);
        opacity: 0.7;
    }
    100% { 
        transform: rotate(0deg);
        opacity: 0.3;
    }
}

/* Enhanced Progress Bar */
.progress {
    background-color: rgba(16, 0, 43, 0.8);
    border-radius: 25px;
    height: 12px;
    overflow: hidden;
    border: 2px solid rgba(224, 170, 255, 0.4);
    box-shadow: 
        inset 0 2px 10px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(224, 170, 255, 0.3);
}

.progress-bar {
    background: linear-gradient(90deg,
        rgba(224, 170, 255, 0.8) 0%,
        rgba(255, 255, 255, 1) 20%,
        rgba(66, 245, 135, 0.9) 40%,
        rgba(255, 255, 255, 1) 60%,
        rgba(255, 204, 0, 0.8) 80%,
        rgba(224, 170, 255, 0.8) 100%
    );
    height: 100%;
    border-radius: 25px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(224, 170, 255, 0.8);
    animation: progress-energy-flow 2s infinite linear;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.6) 50%,
        transparent 100%
    );
    animation: progress-shimmer 1.5s infinite ease-in-out;
}

@keyframes progress-energy-flow {
    0% { 
        background-position: 0% 50%;
        box-shadow: 0 0 15px rgba(224, 170, 255, 0.8);
    }
    50% { 
        background-position: 100% 50%;
        box-shadow: 0 0 30px rgba(255, 255, 255, 1);
    }
    100% { 
        background-position: 200% 50%;
        box-shadow: 0 0 15px rgba(224, 170, 255, 0.8);
    }
}

@keyframes progress-shimmer {
    0% { 
        left: -100%;
        opacity: 0;
    }
    50% { 
        left: 0%;
        opacity: 1;
    }
    100% { 
        left: 100%;
        opacity: 0;
    }
}

/* Multi-Crystal Grid Enhancement */
.multi-crystal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
    height: 100%;
}

.mini-crystal {
    width: 100%;
    height: 100%;
    border-radius: 15px;
    background: radial-gradient(circle,
        rgba(224, 170, 255, 0.3) 0%,
        rgba(224, 170, 255, 0.1) 70%,
        transparent 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    animation: mini-crystal-pulse 2s infinite ease-in-out;
    border: 1px solid rgba(224, 170, 255, 0.5);
}

.mini-crystal:nth-child(2) { animation-delay: 0.5s; }
.mini-crystal:nth-child(3) { animation-delay: 1s; }
.mini-crystal:nth-child(4) { animation-delay: 1.5s; }

.mini-crystal img {
    max-width: 80%;
    max-height: 80%;
    filter: drop-shadow(0 0 10px rgba(224, 170, 255, 0.8));
}

@keyframes mini-crystal-pulse {
    0% { 
        transform: scale(0.9);
        background: radial-gradient(circle,
            rgba(224, 170, 255, 0.3) 0%,
            rgba(224, 170, 255, 0.1) 70%,
            transparent 100%
        );
    }
    50% { 
        transform: scale(1.1);
        background: radial-gradient(circle,
            rgba(255, 255, 255, 0.4) 0%,
            rgba(224, 170, 255, 0.3) 70%,
            transparent 100%
        );
    }
    100% { 
        transform: scale(0.9);
        background: radial-gradient(circle,
            rgba(224, 170, 255, 0.3) 0%,
            rgba(224, 170, 255, 0.1) 70%,
            transparent 100%
        );
    }
}

/* Default Target Icon Enhancement */
.default-target {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(66, 245, 135, 0.8);
    background: radial-gradient(circle,
        rgba(66, 245, 135, 0.2) 0%,
        rgba(66, 245, 135, 0.1) 50%,
        transparent 100%
    );
    border-radius: 50%;
    animation: default-target-glow 3s infinite ease-in-out;
    text-shadow: 0 0 20px rgba(66, 245, 135, 0.9);
}

@keyframes default-target-glow {
    0% { 
        transform: scale(1);
        text-shadow: 0 0 20px rgba(66, 245, 135, 0.9);
        color: rgba(66, 245, 135, 0.8);
    }
    50% { 
        transform: scale(1.1);
        text-shadow: 0 0 40px rgba(255, 255, 255, 1);
        color: rgba(255, 255, 255, 0.9);
    }
    100% { 
        transform: scale(1);
        text-shadow: 0 0 20px rgba(66, 245, 135, 0.9);
        color: rgba(66, 245, 135, 0.8);
    }
}

/* Exponential Power Level Visual Enhancements */
.transmission-overlay.exponential-level-1 .sacred-geometry-mandala {
    animation-duration: 15s;
    filter: 
        drop-shadow(0 0 40px rgba(255, 102, 0, 0.9)) 
        drop-shadow(0 0 80px rgba(255, 136, 0, 0.7))
        hue-rotate(30deg);
}

.transmission-overlay.exponential-level-2 .sacred-geometry-mandala {
    animation-duration: 12s;
    filter: 
        drop-shadow(0 0 50px rgba(255, 0, 102, 1)) 
        drop-shadow(0 0 100px rgba(255, 51, 136, 0.8))
        hue-rotate(60deg) brightness(1.2);
}

.transmission-overlay.exponential-level-3 .sacred-geometry-mandala {
    animation-duration: 8s;
    filter: 
        drop-shadow(0 0 60px rgba(102, 0, 255, 1.2)) 
        drop-shadow(0 0 120px rgba(136, 51, 255, 0.9))
        hue-rotate(90deg) brightness(1.4) contrast(1.2);
}

.transmission-overlay.exponential-level-4 .sacred-geometry-mandala {
    animation-duration: 5s;
    filter: 
        drop-shadow(0 0 80px rgba(255, 0, 0, 1.5)) 
        drop-shadow(0 0 160px rgba(255, 255, 0, 1))
        drop-shadow(0 0 240px rgba(255, 102, 0, 0.8))
        hue-rotate(120deg) brightness(1.6) contrast(1.4) saturate(1.5);
}

.transmission-overlay.exponential-level-5 .sacred-geometry-mandala {
    animation-duration: 2s;
    filter: 
        drop-shadow(0 0 100px rgba(255, 255, 255, 2)) 
        drop-shadow(0 0 200px rgba(255, 0, 255, 1.2))
        drop-shadow(0 0 300px rgba(0, 255, 255, 1))
        drop-shadow(0 0 400px rgba(255, 255, 0, 0.8))
        hue-rotate(180deg) brightness(2) contrast(2) saturate(2);
}

/* Cancel Transmission Button */
.transmission-cancel-button {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1001;
}

.btn-cancel-transmission {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
    color: white;
    border: 3px solid #ff6666;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 68, 68, 0.4);
    position: relative;
    overflow: hidden;
}

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

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

.btn-cancel-transmission:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 68, 68, 0.6);
    background: linear-gradient(135deg, #ff6666 0%, #ff0000 100%);
    border-color: #ff8888;
}

.btn-cancel-transmission:active {
    transform: scale(0.95);
    box-shadow: 0 3px 10px rgba(255, 68, 68, 0.8);
}

.btn-cancel-transmission i {
    transition: transform 0.3s ease;
}

.btn-cancel-transmission:hover i {
    transform: rotate(90deg);
}

/* Cancel button animation on appear */
.transmission-overlay.active .btn-cancel-transmission {
    animation: cancel-button-appear 0.5s ease-out 0.3s both;
}

@keyframes cancel-button-appear {
    0% {
        opacity: 0;
        transform: scale(0) rotate(180deg);
    }
    100% { 
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

/* Exponential Power Section */
.exponential-power-section {
    margin-top: 25px;
    padding: 20px;
    background: rgba(16, 0, 43, 0.8);
    border-radius: var(--border-radius);
    border: 2px solid rgba(255, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.exponential-power-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: danger-sweep 3s infinite;
}

@keyframes danger-sweep {
    0% { left: -100%; }
    100% { left: 100%; }
}

.exponential-title {
    color: #ff4444;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
    font-size: 1.2rem;
}

.exponential-warning {
    background: rgba(255, 68, 68, 0.2);
    border: 1px solid #ff4444;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    color: #ffaaaa;
    font-size: 0.9rem;
    animation: warning-pulse 2s infinite;
}

@keyframes warning-pulse {
    0% { box-shadow: 0 0 5px rgba(255, 68, 68, 0.3); }
    50% { box-shadow: 0 0 15px rgba(255, 68, 68, 0.6); }
    100% { box-shadow: 0 0 5px rgba(255, 68, 68, 0.3); }
}

.exponential-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 15px;
}

.btn-exponential {
    padding: 12px 8px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

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

.btn-exponential.level-1 {
    background: linear-gradient(135deg, #ff6600 0%, #ff8800 100%);
    color: white;
    box-shadow: 0 5px 15px rgba(255, 102, 0, 0.4);
}

.btn-exponential.level-1:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 102, 0, 0.6);
    background: linear-gradient(135deg, #ff8800 0%, #ffaa00 100%);
}

.btn-exponential.level-2 {
    background: linear-gradient(135deg, #ff0066 0%, #ff3388 100%);
    color: white;
    box-shadow: 0 5px 15px rgba(255, 0, 102, 0.4);
}

.btn-exponential.level-2:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 0, 102, 0.6);
    background: linear-gradient(135deg, #ff3388 0%, #ff66aa 100%);
}

.btn-exponential.level-3 {
    background: linear-gradient(135deg, #6600ff 0%, #8833ff 100%);
    color: white;
    box-shadow: 0 5px 15px rgba(102, 0, 255, 0.4);
}

.btn-exponential.level-3:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 0, 255, 0.6);
    background: linear-gradient(135deg, #8833ff 0%, #aa66ff 100%);
}

.btn-exponential.level-4 {
    background: linear-gradient(135deg, #ff0000 0%, #ff6600 50%, #ffff00 100%);
    color: white;
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.4);
    animation: level-4-pulse 2s infinite;
}

@keyframes level-4-pulse {
    0% { box-shadow: 0 5px 15px rgba(255, 0, 0, 0.4); }
    50% { box-shadow: 0 8px 30px rgba(255, 0, 0, 0.8), 0 0 50px rgba(255, 255, 0, 0.3); }
    100% { box-shadow: 0 5px 15px rgba(255, 0, 0, 0.4); }
}

.btn-exponential.level-4:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(255, 0, 0, 0.8), 0 0 60px rgba(255, 255, 0, 0.5);
    background: linear-gradient(135deg, #ff3333 0%, #ff8800 50%, #ffff33 100%);
}

/* Timer Enhancement Styles */
.timer-section {
    margin-top: 25px;
    padding: 20px;
    background: rgba(16, 0, 43, 0.8);
    border-radius: var(--border-radius);
    border: 1px solid rgba(224, 170, 255, 0.3);
}

.timer-title {
    color: var(--accent-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.timer-info {
    background: rgba(224, 170, 255, 0.1);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 15px;
    color: var(--white);
    font-size: 0.9rem;
}

.timer-display {
    background: rgba(16, 0, 43, 0.8);
    border-radius: var(--border-radius);
    padding: 15px;
    margin-top: 15px;
    border: 1px solid var(--accent-color);
}

.timer-status {
    color: var(--white);
    font-weight: bold;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.timer-countdown {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.timer-session-info {
    margin-top: 10px;
    padding: 10px;
    background: rgba(224, 170, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(224, 170, 255, 0.3);
    color: var(--white);
}

.session-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--white);
}

.session-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--white);
}

.session-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.timer-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin: 15px 0;
}

.btn-timer {
    background: linear-gradient(135deg, rgba(90, 24, 154, 0.6) 0%, rgba(123, 44, 191, 0.8) 100%);
    border: 2px solid rgba(224, 170, 255, 0.4);
    color: var(--white);
    padding: 12px 8px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

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

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

.btn-timer:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(224, 170, 255, 0.5);
    background: linear-gradient(135deg, rgba(123, 44, 191, 0.8) 0%, rgba(224, 170, 255, 0.6) 100%);
    border-color: var(--accent-color);
}

.btn-timer:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(224, 170, 255, 0.7);
}

.btn-timer.active {
    background: var(--accent-color);
    color: var(--dark-color);
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(224, 170, 255, 0.8);
}

.session-log-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.session-log-content {
    background: linear-gradient(135deg, rgba(36, 0, 70, 0.95) 0%, rgba(60, 9, 108, 0.95) 100%);
    border-radius: 12px;
    width: min(90%, 500px);
    max-height: 70vh;
    overflow: hidden;
    border: 1px solid rgba(224, 170, 255, 0.3);
}

.session-log-header {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(224, 170, 255, 0.3);
}

.session-log-header h3 {
    color: var(--accent-color);
    margin: 0;
}

.close-session-log {
    background: none;
    border: none;
    color: var(--light-color);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.close-session-log:hover {
    color: var(--white);
    background-color: rgba(224, 170, 255, 0.2);
}

.session-log-body {
    padding: 20px;
    max-height: 50vh;
    overflow-y: auto;
    color: var(--white);
}

.session-entry {
    background: rgba(16, 0, 43, 0.5);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    border-left: 3px solid var(--accent-color);
    color: var(--white);
}

.session-number {
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.session-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    font-size: 0.9rem;
    color: var(--white);
}

@keyframes pulse-wave {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(20);
        opacity: 0;
    }
}

@keyframes timer-transmission-appear {
    0% {
        opacity: 0;
        transform: translateX(100px);
    }
    20% {
        opacity: 1;
        transform: translateX(0);
    }
    80% {
        opacity: 1;
        transform: translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-100px);
    }
}

/* Advanced Timer Interface */
.advanced-timer-interface {
    background: linear-gradient(135deg, rgba(16, 0, 43, 0.9) 0%, rgba(36, 0, 70, 0.8) 100%);
    border-radius: var(--border-radius);
    padding: 25px;
    margin: 20px 0;
    border: 2px solid rgba(224, 170, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.advanced-timer-interface::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(224, 170, 255, 0.1), transparent);
    animation: timer-interface-sweep 4s infinite;
}

@keyframes timer-interface-sweep {
    0% { left: -100%; }
    100% { left: 100%; }
}

.timer-mode-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

.timer-mode-btn {
    background: rgba(90, 24, 154, 0.3);
    border: 2px solid rgba(224, 170, 255, 0.5);
    color: var(--light-color);
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

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

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

.timer-mode-btn.active {
    background: var(--accent-color);
    color: var(--dark-color);
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(224, 170, 255, 0.6);
}

.timer-mode-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(224, 170, 255, 0.4);
}

.timer-visualization {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.energy-ring-container {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.energy-ring {
    position: absolute;
    border-radius: 50%;
    border: 3px solid;
    animation-duration: 4s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

.primary-ring {
    width: 180px;
    height: 180px;
    border-color: rgba(224, 170, 255, 0.8);
    animation-name: energy-ring-rotate;
    box-shadow: 0 0 20px rgba(224, 170, 255, 0.6);
}

.secondary-ring {
    width: 140px;
    height: 140px;
    border-color: rgba(66, 245, 135, 0.7);
    animation-name: energy-ring-rotate-reverse;
    animation-duration: 6s;
    box-shadow: 0 0 15px rgba(66, 245, 135, 0.5);
}

.tertiary-ring {
    width: 100px;
    height: 100px;
    border-color: rgba(255, 204, 0, 0.6);
    animation-name: energy-ring-rotate;
    animation-duration: 3s;
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.4);
}

@keyframes energy-ring-rotate {
    0% { transform: rotate(0deg); border-color: rgba(224, 170, 255, 0.8); }
    25% { border-color: rgba(66, 245, 135, 0.8); }
    50% { border-color: rgba(255, 204, 0, 0.8); }
    75% { border-color: rgba(255, 102, 204, 0.8); }
    100% { transform: rotate(360deg); border-color: rgba(224, 170, 255, 0.8); }
}

@keyframes energy-ring-rotate-reverse {
    0% { transform: rotate(360deg); border-color: rgba(66, 245, 135, 0.7); }
    25% { border-color: rgba(255, 204, 0, 0.7); }
    50% { border-color: rgba(224, 170, 255, 0.7); }
    75% { border-color: rgba(255, 102, 204, 0.7); }
    100% { transform: rotate(0deg); border-color: rgba(66, 245, 135, 0.7); }
}

.timer-center-display {
    background: radial-gradient(circle, rgba(16, 0, 43, 0.9) 0%, rgba(36, 0, 70, 0.7) 100%);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(224, 170, 255, 0.5);
    position: relative;
    z-index: 10;
}

.timer-digital-clock {
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(224, 170, 255, 0.8);
    margin-bottom: 2px;
}

.timer-session-info {
    font-size: 0.6rem;
    color: var(--light-color);
    text-align: center;
}

.energy-wavelength-display {
    margin: 20px 0;
    display: flex;
    justify-content: center;
}

#energy-wavelength-canvas {
    border: 1px solid rgba(224, 170, 255, 0.3);
    border-radius: 8px;
    background: rgba(16, 0, 43, 0.5);
}

.advanced-timer-display {
    background: rgba(16, 0, 43, 0.8);
    border-radius: var(--border-radius);
    padding: 25px;
    margin-top: 20px;
    border: 2px solid rgba(224, 170, 255, 0.4);
    position: relative;
}

.timer-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: rgba(90, 24, 154, 0.3);
    border-radius: 12px;
    border: 1px solid rgba(224, 170, 255, 0.3);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(224, 170, 255, 0.3);
}

.stat-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(224, 170, 255, 0.5);
    margin-bottom: 5px;
    animation: stat-pulse 2s infinite alternate;
}

@keyframes stat-pulse {
    0% { text-shadow: 0 0 10px rgba(224, 170, 255, 0.5); }
    100% { text-shadow: 0 0 20px rgba(224, 170, 255, 0.8); }
}

.stat-label {
    font-size: 0.8rem;
    color: var(--light-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timer-controls-advanced {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Timer Completion Modal */
.timer-completion-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(16, 0, 43, 0.95) 0%, rgba(0, 0, 0, 0.98) 70%);
    z-index: 1002;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.timer-completion-modal.active {
    opacity: 1;
    pointer-events: all;
}

.timer-completion-content {
    background: linear-gradient(135deg, rgba(36, 0, 70, 0.95) 0%, rgba(60, 9, 108, 0.95) 100%);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 600px;
    width: 90%;
    border: 2px solid rgba(224, 170, 255, 0.5);
    box-shadow: 0 0 50px rgba(224, 170, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.completion-animation {
    position: relative;
    height: 150px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.completion-burst {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(224, 170, 255, 0.8) 0%, transparent 70%);
    border-radius: 50%;
    animation: completion-burst 2s ease-out;
}

@keyframes completion-burst {
    0% { 
        transform: scale(0);
        opacity: 1;
    }
    100% { 
        transform: scale(3);
        opacity: 0;
    }
}

.completion-rings {
    position: absolute;
    width: 100%;
    height: 100%;
}

.completion-ring {
    position: absolute;
    border: 3px solid;
    border-radius: 50%;
    animation: completion-ring-expand 3s infinite ease-out;
}

.ring-1 {
    width: 60px;
    height: 60px;
    border-color: rgba(224, 170, 255, 0.8);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ring-2 {
    width: 90px;
    height: 90px;
    border-color: rgba(66, 245, 135, 0.7);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 0.5s;
}

.ring-3 {
    width: 120px;
    height: 120px;
    border-color: rgba(255, 204, 0, 0.6);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 1s;
}

@keyframes completion-ring-expand {
    0% { 
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 1;
    }
    100% { 
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

.completion-icon {
    position: relative;
    z-index: 10;
    font-size: 4rem;
    color: var(--success-color);
    text-shadow: 0 0 30px rgba(66, 245, 135, 0.8);
    animation: completion-icon-pulse 2s infinite alternate;
}

@keyframes completion-icon-pulse {
    0% { 
        transform: scale(1);
        text-shadow: 0 0 20px rgba(66, 245, 135, 0.6);
    }
    100% { 
        transform: scale(1.1);
        text-shadow: 0 0 40px rgba(66, 245, 135, 1);
    }
}

.completion-info h2 {
    color: var(--success-color);
    margin-bottom: 25px;
    font-size: 2.2rem;
    text-shadow: 0 0 20px rgba(66, 245, 135, 0.6);
}

.completion-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.completion-stat {
    background: rgba(16, 0, 43, 0.7);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(224, 170, 255, 0.3);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--accent-color);
    text-shadow: 0 0 15px rgba(224, 170, 255, 0.6);
    margin-bottom: 8px;
}

.stat-text {
    color: var(--light-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.completion-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(16, 0, 43, 0.95);
    border-radius: var(--border-radius);
    padding: 30px;
    border-left: 6px solid var(--warning-color);
    text-align: center;
    z-index: 1003;
    max-width: 500px;
    width: 90%;
    animation: cancellation-appear 0.5s ease-out;
    box-shadow: 0 0 30px rgba(255, 170, 0, 0.4);
}

@keyframes cancellation-appear {
    from { 
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    to { 
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.completion-message h2 {
    color: var(--warning-color);
    margin-bottom: 20px;
    font-size: 1.8rem;
    text-shadow: 0 0 15px rgba(255, 170, 0, 0.7);
}

.completion-message p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--white);
}

.btn-warning {
    background-color: var(--warning-color);
    border: none;
    color: var(--dark-color);
    padding: 12px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 20px;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 170, 0, 0.3);
}

.btn-warning:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 170, 0, 0.7);
    background-color: #ffcc33;
}

/* Mobile responsive enhancements */
@media (max-width: 768px) {
    .timer-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .action-buttons {
        grid-template-columns: 1fr;
    }
    
    .completion-stats {
        grid-template-columns: 1fr;
    }
    
    .timer-mode-selector {
        flex-direction: column;
    }
    
    .energy-ring-container {
        width: 150px;
        height: 150px;
    }
    
    .primary-ring {
        width: 130px;
        height: 130px;
    }
    
    .secondary-ring {
        width: 100px;
        height: 100px;
    }
    
    .tertiary-ring {
        width: 70px;
        height: 70px;
    }
    
    .timer-center-display {
        width: 60px;
        height: 60px;
    }
    
    .timer-digital-clock {
        font-size: 0.7rem;
    }
    
    .timer-session-info {
        font-size: 0.5rem;
    }
    
    .upload-area {
        padding: 30px 15px;
    }
    
    .upload-icon {
        font-size: 2.5rem;
    }
    
    .upload-text h4 {
        font-size: 1.1rem;
    }
    
    .upload-text p {
        font-size: 0.9rem;
    }
    
    .image-preview {
        height: 200px;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
    }
    
    .info-value {
        max-width: 100%;
        text-align: left;
    }
}

.scalar-wave-container {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.scalar-wave {
    position: absolute;
    border-radius: 50%;
    border: 2px solid;
    pointer-events: none;
    animation: scalar-expand 2s ease-out forwards;
}

.scalar-wave.level-1 {
    border-color: rgba(255, 102, 0, 0.6);
    box-shadow: 0 0 20px rgba(255, 102, 0, 0.4);
}

.scalar-wave.level-2 {
    border-color: rgba(255, 0, 102, 0.7);
    box-shadow: 0 0 30px rgba(255, 0, 102, 0.5);
    animation: scalar-expand 1.5s ease-out forwards, pulse-wave 0.5s infinite;
}

.scalar-wave.level-3 {
    border-color: rgba(102, 0, 255, 0.8);
    box-shadow: 0 0 40px rgba(102, 0, 255, 0.6);
    animation: scalar-expand 1s ease-out forwards, pulse-wave 0.3s infinite, quantum-ripple 2s infinite;
}

.scalar-wave.level-4 {
    border-color: rgba(255, 0, 0, 0.9);
    box-shadow: 0 0 50px rgba(255, 0, 0, 0.7), 0 0 100px rgba(255, 255, 0, 0.3);
    animation: scalar-expand 0.8s ease-out forwards, pulse-wave 0.2s infinite, quantum-ripple 1s infinite, reality-tear 1.5s infinite;
}

.scalar-wave.level-5 {
    border-color: rgba(255, 255, 255, 1);
    box-shadow: 0 0 60px rgba(255, 255, 255, 0.8), 0 0 120px rgba(255, 0, 255, 0.5), 0 0 180px rgba(0, 255, 255, 0.3);
    animation: scalar-expand 0.3s ease-out forwards, pulse-wave 0.1s infinite, quantum-ripple 0.5s infinite, reality-tear 0.8s infinite, dimensional-break 1s infinite;
}

@keyframes scalar-expand {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
        transform: translate(-50%, -50%) scale(0);
    }
    100% {
        width: 300px;
        height: 300px;
        opacity: 0;
        transform: translate(-50%, -50%) scale(3);
    }
}

@keyframes quantum-ripple {
    0% { border-width: 2px; }
    50% { border-width: 6px; }
    100% { border-width: 2px; }
}

@keyframes reality-tear {
    0% { 
        filter: blur(0px);
        border-style: solid;
    }
    50% { 
        filter: blur(3px);
        border-style: dashed;
    }
    100% { 
        filter: blur(0px);
        border-style: solid;
    }
}

@keyframes dimensional-break {
    0% { 
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        border-radius: 50%;
    }
    25% { 
        transform: translate(-50%, -50%) scale(1.2) rotate(90deg);
        border-radius: 20%;
    }
    50% { 
        transform: translate(-50%, -50%) scale(0.8) rotate(180deg);
        border-radius: 0%;
    }
    75% { 
        transform: translate(-50%, -50%) scale(1.1) rotate(270deg);
        border-radius: 30%;
    }
    100% { 
        transform: translate(-50%, -50%) scale(1) rotate(360deg);
        border-radius: 50%;
    }
}

.quantum-distortion {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 0, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 0, 0.05) 0%, transparent 70%);
    animation: distortion-shift 3s infinite ease-in-out;
    pointer-events: none;
}

@keyframes distortion-shift {
    0% { 
        background-position: 0% 0%, 100% 100%, 50% 50%;
        opacity: 0.5;
    }
    50% { 
        background-position: 100% 100%, 0% 0%, 25% 75%;
        opacity: 0.8;
    }
    100% { 
        background-position: 0% 0%, 100% 100%, 50% 50%;
        opacity: 0.5;
    }
}

/* Enhanced target projection with energy halo */
.target-projection::before {
    content: '';
    position: absolute;
    width: 120%;
    height: 120%;
    border-radius: 50%;
    background: radial-gradient(circle, transparent 60%, rgba(224, 170, 255, 0.3) 70%, transparent 100%);
    animation: target-halo-pulse 3s infinite ease-in-out;
    z-index: -1;
    top: -10%;
    left: -10%;
}

@keyframes target-halo-pulse {
    0% { 
        transform: scale(0.8);
        opacity: 0.3;
    }
    50% { 
        transform: scale(1.2);
        opacity: 0.7;
    }
    100% { 
        transform: scale(0.8);
        opacity: 0.3;
    }
}

/* Enhanced crystal projection with energy emanation */
.crystal-projection::before {
    content: '';
    position: absolute;
    width: 140%;
    height: 140%;
    border-radius: 50%;
    background: radial-gradient(circle, transparent 50%, rgba(224, 170, 255, 0.4) 60%, rgba(224, 170, 255, 0.2) 80%, transparent 100%);
    animation: crystal-emanation 2s infinite ease-in-out;
    z-index: -1;
    top: -20%;
    left: -20%;
}

@keyframes crystal-emanation {
    0% { 
        transform: scale(0.6) rotate(0deg);
        opacity: 0.4;
    }
    50% { 
        transform: scale(1.4) rotate(180deg);
        opacity: 0.8;
    }
    100% { 
        transform: scale(0.6) rotate(360deg);
        opacity: 0.4;
    }
}