: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;
}

.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 {
    position: relative;
    z-index: 10;
}

#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));
}

/* 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 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;
}

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

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

.oil-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;
}

.oil-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;
}

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

.oil-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: oil-selected-glow 2s infinite ease-in-out;
}

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

.oil-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;
}

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

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

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

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

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

.oil-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;
}

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

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

.selected-oil-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-oil-info h4 {
    color: var(--accent-color);
    margin-bottom: 10px;
}

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

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

.oil-presets-container {
    margin-bottom: 20px;
}

.selected-oils-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

/* Multi Oil Selection Styles */
.multi-oil-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.mini-oil {
    width: 40%;
    height: 40%;
    margin: 5%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mini-oil img {
    max-width: 100%;
    max-height: 100%;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

/* 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));
}

.image-preview-container {
    margin-top: 15px;
    width: 100%;
}

.image-preview {
    background: rgba(16, 0, 43, 0.7);
    border: 2px dashed var(--accent-color);
    border-radius: var(--border-radius);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.image-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

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

/* 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: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.help-modal.active {
    opacity: 1;
    pointer-events: auto;
    display: flex !important;
}

.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;
}

.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 Help Modal Styles */
.oil-category-guide {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.category-item {
    background: rgba(90, 24, 154, 0.3);
    border-radius: 8px;
    padding: 15px;
    border-left: 4px solid var(--accent-color);
}

.category-item h5 {
    color: var(--accent-color);
    margin-bottom: 8px;
    font-size: 1rem;
}

/* @tweakable user manual table styling for power guidelines and calibration tables */
.power-guidelines-table, .calibration-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    background: rgba(16, 0, 43, 0.5);
    border-radius: 8px;
    overflow: hidden;
}

.power-guidelines-table th, .power-guidelines-table td,
.calibration-table th, .calibration-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid rgba(224, 170, 255, 0.2);
    color: var(--white);
}

.power-guidelines-table th, .calibration-table th {
    background: rgba(90, 24, 154, 0.5);
    color: var(--accent-color);
    font-weight: 600;
}

/* @tweakable user manual technique grid layout */
.technique-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.technique-item {
    background: rgba(16, 0, 43, 0.5);
    border-radius: 8px;
    padding: 15px;
    border: 1px solid rgba(224, 170, 255, 0.3);
}

.technique-item h5 {
    color: var(--accent-color);
    margin-bottom: 8px;
}

/* @tweakable user manual warning box styling */
.warning-box {
    background: rgba(255, 68, 68, 0.1);
    border: 2px solid rgba(255, 68, 68, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
}

.warning-box h5 {
    color: #ff6666;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.warning-box ul {
    color: var(--white);
    margin-bottom: 0;
}

/* @tweakable user manual technology explanation sections */
.tech-explanation {
    background: rgba(16, 0, 43, 0.7);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid rgba(224, 170, 255, 0.3);
}

.tech-explanation h5 {
    color: var(--accent-color);
    margin-bottom: 8px;
    margin-top: 15px;
}

.tech-explanation h5:first-child {
    margin-top: 0;
}

/* @tweakable user manual photo guidelines layout */
.photo-guidelines {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.guideline-item {
    background: rgba(16, 0, 43, 0.5);
    border-radius: 8px;
    padding: 15px;
}

.guideline-item h5 {
    margin-bottom: 10px;
    font-size: 1rem;
}

.guideline-item ul {
    margin-bottom: 0;
}

/* @tweakable user manual troubleshooting sections */
.troubleshooting-item {
    background: rgba(16, 0, 43, 0.5);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    border-left: 4px solid var(--accent-color);
}

.troubleshooting-item h5 {
    color: var(--light-color);
    margin-bottom: 10px;
}

.troubleshooting-item ul {
    margin-bottom: 0;
    color: var(--white);
}

/* @tweakable user manual safety protocols layout */
.safety-protocols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.protocol-item {
    background: rgba(16, 0, 43, 0.5);
    border-radius: 8px;
    padding: 15px;
    border: 1px solid rgba(66, 245, 135, 0.3);
}

.protocol-item h5 {
    color: var(--success-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.protocol-item ul {
    margin-bottom: 0;
    color: var(--white);
}

/* External Device Connection Styles */
.external-device-controls {
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(16, 0, 43, 0.8);
    border-radius: var(--border-radius);
    border: 1px solid rgba(224, 170, 255, 0.3);
}

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

/* @tweakable device connection tab styling and layout */
.device-connection-tabs {
    display: flex;
    margin-bottom: 20px;
    background: rgba(90, 24, 154, 0.3);
    border-radius: 8px;
    overflow: hidden;
}

.device-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--light-color);
    padding: 12px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}

.device-tab-btn.active {
    background: var(--accent-color);
    color: var(--dark-color);
}

.device-tab-btn:hover:not(.active) {
    background: rgba(90, 24, 154, 0.5);
    color: var(--white);
}

/* @tweakable device panel display and animation settings */
.device-panel {
    display: none;
    animation: fade-in 0.3s ease-out;
}

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

/* @tweakable device status indicator appearance and colors */
.device-status-indicator {
    display: flex;
    align-items: center;
    padding: 12px;
    background: rgba(16, 0, 43, 0.6);
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid transparent;
}

.device-status-indicator.connected {
    border-left-color: var(--success-color);
}

.device-status-indicator.disconnected {
    border-left-color: #ff6666;
}

.device-status-indicator.scanning {
    border-left-color: var(--warning-color);
    animation: status-pulse 2s infinite;
}

@keyframes status-pulse {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

/* @tweakable status dot indicator size and colors */
.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
}

.status-dot.connected {
    background: var(--success-color);
    box-shadow: 0 0 10px rgba(66, 245, 135, 0.5);
}

.status-dot.disconnected {
    background: #ff6666;
}

.status-dot.scanning {
    background: var(--warning-color);
    animation: dot-pulse 1s infinite;
}

@keyframes dot-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.status-text {
    color: var(--white);
    font-weight: 500;
}

/* @tweakable device control button styling and hover effects */
.device-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.btn-device-action {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    color: var(--white);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    box-shadow: 0 3px 10px rgba(90, 24, 154, 0.4);
    flex: 1;
    justify-content: center;
    min-width: 120px;
}

.btn-device-action:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(123, 44, 191, 0.6);
}

.btn-device-action:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* @tweakable device list appearance and item styling */
.device-list {
    background: rgba(16, 0, 43, 0.5);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    max-height: 200px;
    overflow-y: auto;
}

.device-list-header {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.no-devices-message {
    color: var(--light-color);
    font-style: italic;
    text-align: center;
    padding: 20px;
}

.device-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: rgba(90, 24, 154, 0.3);
    border-radius: 6px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.device-item:hover {
    background: rgba(90, 24, 154, 0.5);
    transform: translateX(5px);
}

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

.device-info {
    flex-grow: 1;
}

.device-info .device-name {
    color: var(--white);
    font-weight: 500;
    display: block;
}

.device-info .device-id {
    color: var(--light-color);
    font-size: 0.8rem;
}

.device-connect-btn {
    background: var(--accent-color);
    border: none;
    color: var(--dark-color);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.device-connect-btn:hover {
    background: var(--light-color);
    transform: scale(1.05);
}

/* @tweakable connected device info panel styling */
.connected-device-info {
    background: rgba(66, 245, 135, 0.1);
    border: 1px solid var(--success-color);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.connected-device-info h5 {
    color: var(--success-color);
    margin-bottom: 10px;
    font-size: 1rem;
}

.device-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 10px;
}

.device-details .device-name {
    color: var(--white);
    font-weight: 600;
}

.device-details .device-type {
    color: var(--light-color);
    font-size: 0.9rem;
}

.signal-strength, .connection-speed {
    display: flex;
    align-items: center;
    color: var(--white);
    font-size: 0.9rem;
}

/* @tweakable device energy boost toggle styling */
.device-energy-boost {
    padding: 15px;
    background: rgba(66, 245, 135, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(66, 245, 135, 0.3);
    margin-top: 15px;
}

.device-energy-boost .form-check-input:checked {
    background-color: var(--success-color) !important;
    border-color: var(--success-color) !important;
    box-shadow: 0 0 10px rgba(66, 245, 135, 0.5) !important;
}

.energy-boost-description {
    color: var(--light-color);
    font-size: 0.8rem;
    margin-top: 5px;
    display: block;
}

/* Mobile responsiveness for help content */
@media (max-width: 768px) {
    /* @tweakable mobile responsiveness settings for user manual */
    .oil-category-guide,
    .technique-grid,
    .safety-protocols {
        grid-template-columns: 1fr;
    }
    
    .photo-guidelines {
        grid-template-columns: 1fr;
    }
    
    .power-guidelines-table, .calibration-table {
        font-size: 0.85rem;
    }
    
    .power-guidelines-table th, .power-guidelines-table td,
    .calibration-table th, .calibration-table td {
        padding: 8px;
    }
    
    .help-tabs {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .help-tab-btn {
        flex: 0 1 auto;
        min-width: 120px;
        margin: 2px;
        font-size: 0.8rem;
        padding: 6px 8px;
    }
}

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

.transmission-overlay.active {
    opacity: 1;
    pointer-events: all;
    animation: overlay-pulse 10s infinite linear, quantum-reality-shift 30s infinite ease-in-out;
}

@keyframes overlay-pulse {
    0% { background: radial-gradient(circle at center, rgba(36, 0, 70, 0.95) 0%, rgba(16, 0, 43, 0.98) 70%); }
    50% { background: radial-gradient(circle at center, rgba(40, 0, 80, 0.95) 0%, rgba(16, 0, 43, 0.98) 70%); }
    100% { background: radial-gradient(circle at center, rgba(36, 0, 70, 0.95) 0%, rgba(16, 0, 43, 0.98) 70%); }
}

@keyframes quantum-reality-shift {
    0% { 
        filter: hue-rotate(0deg) saturate(1);
        backdrop-filter: blur(0px);
    }
    25% { 
        filter: hue-rotate(15deg) saturate(1.2);
        backdrop-filter: blur(2px);
    }
    50% { 
        filter: hue-rotate(30deg) saturate(1.4);
        backdrop-filter: blur(4px);
    }
    75% { 
        filter: hue-rotate(15deg) saturate(1.2);
        backdrop-filter: blur(2px);
    }
    100% { 
        filter: hue-rotate(0deg) saturate(1);
        backdrop-filter: blur(0px);
    }
}

.transmission-animation {
    position: relative;
    width: 100%;
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sacred-geometry-mandala {
    position: absolute;
    width: min(500px, 90vw);
    height: min(500px, 90vw);
    background-image: url('sacred-mandala.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.9;
    animation: rotate 60s linear infinite, pulse-glow 4s infinite ease-in-out;
    filter: drop-shadow(0 0 25px rgba(224, 170, 255, 0.8));
}

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

@keyframes pulse-glow {
    0% { filter: drop-shadow(0 0 15px rgba(224, 170, 255, 0.6)); opacity: 0.8; }
    50% { filter: drop-shadow(0 0 30px rgba(224, 170, 255, 0.9)); opacity: 1; }
    100% { filter: drop-shadow(0 0 15px rgba(224, 170, 255, 0.6)); opacity: 0.8; }
}

.crystal-projection, .target-projection {
    position: absolute;
    width: min(150px, 30vw);
    height: min(150px, 30vw);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.5s ease;
    z-index: 5;
}

.crystal-projection {
    left: max(20%, 10px);
    border: 3px solid var(--accent-color);
    box-shadow: 0 0 30px var(--accent-color);
    animation: crystal-pulse 4s infinite ease-in-out, crystal-radiate 8s infinite linear;
}

.target-projection {
    right: max(20%, 10px);
    border: 3px solid var(--light-color);
    box-shadow: 0 0 30px var(--light-color);
    animation: target-pulse 4s infinite ease-in-out, target-receive 3s infinite ease-in-out;
}

@keyframes crystal-pulse {
    0% { box-shadow: 0 0 20px var(--accent-color); transform: scale(1) rotate(0deg); }
    50% { box-shadow: 0 0 40px var(--accent-color); transform: scale(1.08) rotate(5deg); }
    100% { box-shadow: 0 0 20px var(--accent-color); transform: scale(1) rotate(0deg); }
}

@keyframes target-pulse {
    0% { box-shadow: 0 0 20px var(--light-color); transform: scale(1) rotate(0deg); }
    50% { box-shadow: 0 0 40px var(--light-color); transform: scale(1.08) rotate(-5deg); }
    100% { box-shadow: 0 0 20px var(--light-color); transform: scale(1) rotate(0deg); }
}

@keyframes crystal-radiate {
    0%, 100% { box-shadow: 0 0 30px var(--accent-color); }
    25% { box-shadow: 0 0 30px var(--accent-color), 0 0 60px rgba(224, 170, 255, 0.4); }
    50% { box-shadow: 0 0 30px var(--accent-color), 0 0 80px rgba(224, 170, 255, 0.5), 0 0 120px rgba(224, 170, 255, 0.2); }
    75% { box-shadow: 0 0 30px var(--accent-color), 0 0 60px rgba(224, 170, 255, 0.4); }
}

@keyframes target-receive {
    0%, 100% { box-shadow: 0 0 30px var(--light-color); }
    50% { box-shadow: 0 0 30px var(--light-color), 0 0 60px rgba(200, 182, 255, 0.6), 0 0 100px rgba(200, 182, 255, 0.3); }
}

#energy-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.energy-beam {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 15px;
    background: linear-gradient(to right, 
        rgba(224, 170, 255, 0.1), 
        rgba(224, 170, 255, 0.8) 30%, 
        rgba(224, 170, 255, 0.9) 50%,
        rgba(224, 170, 255, 0.8) 70%,
        rgba(224, 170, 255, 0.1));
    transform: translateY(-50%);
    z-index: -1;
    filter: blur(5px);
    animation: beam-pulse 1.5s infinite ease-in-out;
    pointer-events: none;
}

@keyframes beam-pulse {
    0% { opacity: 0.5; height: 8px; filter: blur(5px); }
    50% { opacity: 0.9; height: 18px; filter: blur(8px); }
    100% { opacity: 0.5; height: 8px; filter: blur(5px); }
}

.transmission-info {
    margin-top: 30px;
    text-align: center;
    width: min(500px, 90%);
    background: rgba(16, 0, 43, 0.7);
    border-radius: var(--border-radius);
    padding: 20px;
}

.transmission-info h3 {
    color: var(--accent-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.transmission-info p {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.transmission-info p i {
    margin-right: 10px;
}

.progress {
    height: 10px;
    background-color: rgba(200, 182, 255, 0.2);
    margin-top: 20px;
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar {
    background-color: var(--accent-color);
    transition: width 0.1s linear;
}

.success-message {
    background: rgba(16, 0, 43, 0.8);
    border-radius: var(--border-radius);
    padding: 25px;
    margin-top: 25px;
    border-left: 6px solid var(--success-color);
    text-align: center;
    animation: success-appear 0.8s ease-out, success-glow 3s infinite alternate;
    box-shadow: 0 0 30px rgba(66, 245, 135, 0.4);
}

@keyframes success-glow {
    from { box-shadow: 0 0 20px rgba(66, 245, 135, 0.3); border-color: var(--success-color); }
    to { box-shadow: 0 0 40px rgba(66, 245, 135, 0.6); border-color: #65ffaa; }
}

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

.success-message h2 {
    color: var(--success-color);
    margin-bottom: 20px;
    font-size: 2rem;
    text-shadow: 0 0 15px rgba(66, 245, 135, 0.7);
    animation: success-text-glow 2s infinite alternate;
}

@keyframes success-text-glow {
    from { text-shadow: 0 0 10px rgba(66, 245, 135, 0.5); }
    to { text-shadow: 0 0 20px rgba(66, 245, 135, 0.9); }
}

.success-message p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #ffffff;
}

.btn-success {
    background-color: var(--success-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(66, 245, 135, 0.3);
}

.btn-success:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(66, 245, 135, 0.7);
    background-color: #65ffaa;
}

/* Multi Crystal Selection Styles */
.multi-crystal-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.mini-crystal {
    width: 40%;
    height: 40%;
    margin: 5%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mini-crystal img {
    max-width: 100%;
    max-height: 100%;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

/* 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, 0, 0, 0.1), 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) scale(1.1);
    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%);
}

.btn-exponential.level-5 {
    background: linear-gradient(135deg, #000000 0%, #ff0000 25%, #ffff00 50%, #00ff00 75%, #0000ff 100%);
    color: white;
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.6);
    animation: level-5-reality-distortion 1s infinite;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

@keyframes level-5-reality-distortion {
    0% { 
        box-shadow: 0 5px 15px rgba(255, 255, 255, 0.6); 
        transform: scale(1) rotate(0deg);
    }
    25% { 
        box-shadow: 0 8px 30px rgba(255, 0, 0, 0.8), 0 0 50px rgba(255, 255, 0, 0.5); 
        transform: scale(1.02) rotate(1deg);
    }
    50% { 
        box-shadow: 0 8px 30px rgba(0, 255, 0, 0.8), 0 0 50px rgba(0, 0, 255, 0.5); 
        transform: scale(1.05) rotate(-1deg);
    }
    75% { 
        box-shadow: 0 8px 30px rgba(255, 0, 255, 0.8), 0 0 50px rgba(255, 255, 255, 0.5); 
        transform: scale(1.02) rotate(1deg);
    }
    100% { 
        box-shadow: 0 5px 15px rgba(255, 255, 255, 0.6); 
        transform: scale(1) rotate(0deg);
    }
}

.btn-exponential.level-5:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 15px 50px rgba(255, 255, 255, 0.9), 0 0 100px rgba(255, 0, 255, 0.7);
    background: linear-gradient(135deg, #333333 0%, #ff3333 25%, #ffff33 50%, #33ff33 75%, #3333ff 100%);
}

.active-multiplier-display {
    background: rgba(255, 68, 68, 0.2);
    border: 1px solid #ff4444;
    border-radius: 8px;
    padding: 10px;
    margin-top: 15px;
    text-align: center;
    animation: multiplier-active 3s infinite;
}

@keyframes multiplier-active {
    0% { box-shadow: 0 0 10px rgba(255, 68, 68, 0.3); }
    50% { box-shadow: 0 0 20px rgba(255, 68, 68, 0.8); }
    100% { box-shadow: 0 0 10px rgba(255, 68, 68, 0.3); }
}

.btn-exponential.active {
    border: 3px solid #ffffff;
    animation-duration: 0.5s;
}

/* 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;
}

.btn-timer-control {
    background: rgba(224, 170, 255, 0.2);
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-timer-control:hover {
    background: rgba(224, 170, 255, 0.4);
    transform: scale(1.05);
}

.btn-timer-control.emergency {
    background: rgba(255, 68, 68, 0.2);
    border-color: #ff4444;
    color: #ff4444;
}

.btn-timer-control.emergency:hover {
    background: rgba(255, 68, 68, 0.4);
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
}

.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 toast-slide-in {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toast-slide-out {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

@keyframes energy-pulse-wave {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.2);
        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);
    }
}

/* Mobile responsive timer controls */
@media (max-width: 768px) {
    .session-stats {
        flex-direction: column;
        gap: 5px;
    }
    
    .session-controls {
        flex-wrap: wrap;
    }
    
    .session-details {
        grid-template-columns: 1fr;
    }
}

.continuous-energy-section {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(16, 0, 43, 0.6);
    border-radius: var(--border-radius);
    border: 1px solid rgba(66, 245, 135, 0.3);
}

.continuous-energy-switch {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.continuous-energy-switch .form-check-label {
    color: var(--white);
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.continuous-switch {
    width: 4em !important;
    height: 2em !important;
    margin-top: 0.3em;
    margin-right: 10px !important;
}

.continuous-switch:checked {
    background-color: var(--success-color) !important;
    border-color: var(--success-color) !important;
    box-shadow: 0 0 10px rgba(66, 245, 135, 0.5) !important;
}

.continuous-energy-display {
    background: rgba(66, 245, 135, 0.1);
    border-radius: 8px;
    padding: 15px;
    border: 1px solid var(--success-color);
    text-align: center;
}

.continuous-status {
    color: var(--success-color);
    font-weight: bold;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.continuous-stats {
    color: var(--white);
    margin-bottom: 15px;
    font-weight: bold;
}

/* Configuration Management Styles */
.configuration-controls {
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(16, 0, 43, 0.8);
    border-radius: var(--border-radius);
    border: 1px solid rgba(224, 170, 255, 0.3);
}

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

.config-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-config {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    color: var(--white);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    box-shadow: 0 3px 10px rgba(90, 24, 154, 0.4);
    flex: 1;
    justify-content: center;
    min-width: 150px;
}

.btn-config:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(123, 44, 191, 0.6);
}

.config-upload-container {
    position: relative;
    flex: 1;
    min-width: 150px;
}

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

.config-upload-container label {
    margin: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Advanced Quantum Broadcast Amplification Animations */
@keyframes scalar-wave-pulse {
    0% { 
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 1;
    }
    100% { 
        transform: translate(-50%, -50%) scale(3);
        opacity: 0;
    }
}

@keyframes quantum-tunnel-flow {
    0% { 
        box-shadow: 0 0 10px rgba(224, 170, 255, 0.5);
        filter: blur(0px);
    }
    50% { 
        box-shadow: 0 0 30px rgba(255, 255, 255, 0.8), 0 0 50px rgba(224, 170, 255, 0.6);
        filter: blur(1px);
    }
    100% { 
        box-shadow: 0 0 10px rgba(224, 170, 255, 0.5);
        filter: blur(0px);
    }
}

@keyframes quantum-field-expand {
    0% { 
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    50% { 
        transform: translate(-50%, -50%) scale(10);
        opacity: 0.8;
    }
    100% { 
        transform: translate(-50%, -50%) scale(20);
        opacity: 0;
    }
}

.scalar-wave-resonance {
    filter: drop-shadow(0 0 15px rgba(224, 170, 255, 0.8));
}

.quantum-tunnel {
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.6));
}

.quantum-field-pulse {
    filter: drop-shadow(0 0 20px rgba(224, 170, 255, 0.9));
}