:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --divine-gold: #ffd700;
    --sacred-blue: #4a90e2;
    --christ-light: #fff8dc;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.1);
    --shadow-strong: 0 20px 60px rgba(0, 0, 0, 0.2);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #667eea 100%);
    min-height: 100vh;
    overflow-x: hidden;
    color: white;
}

/* Background Effects */
.cosmic-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 215, 0, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(120, 219, 226, 0.2) 0%, transparent 50%);
    z-index: -2;
    animation: cosmicPulse 20s ease-in-out infinite;
}

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

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

.sacred-particles::before {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--divine-gold);
    border-radius: 50%;
    box-shadow: 
        25px 30px 0 var(--divine-gold),
        50px 70px 0 var(--christ-light),
        90px 40px 0 var(--sacred-blue),
        130px 80px 0 var(--divine-gold),
        160px 30px 0 var(--christ-light),
        200px 90px 0 var(--sacred-blue),
        240px 50px 0 var(--divine-gold),
        280px 120px 0 var(--christ-light),
        320px 80px 0 var(--sacred-blue),
        360px 140px 0 var(--divine-gold);
    animation: twinkle 3s ease-in-out infinite;
}

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

/* Top Navigation */
.top-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 90%;
    max-width: 1200px;
}

.nav-content {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-soft);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 18px;
}

.cross-icon {
    font-size: 24px;
    filter: drop-shadow(0 0 10px var(--divine-gold));
}

.brand-text {
    background: linear-gradient(45deg, var(--divine-gold), var(--christ-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-item {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 12px;
}

.nav-item:hover,
.nav-item.active {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Main Container */
.main-container {
    max-width: 800px;
    margin: 120px auto 0;
    padding: 0 20px;
}

/* Progress Bar */
.progress-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 50px;
    gap: 20px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.progress-step.active {
    opacity: 1;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 2px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.3s ease;
}

.progress-step.active .step-circle {
    background: var(--primary-gradient);
    border-color: var(--divine-gold);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.progress-line {
    width: 60px;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 1px;
}

/* Step Panels */
.step-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow-strong);
    display: none;
    animation: fadeInUp 0.6s ease;
}

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

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

.panel-header {
    text-align: center;
    margin-bottom: 40px;
}

.panel-header h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(45deg, var(--divine-gold), var(--christ-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.panel-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
}

/* Prayer Input */
.prayer-textarea {
    width: 100%;
    min-height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px;
    color: white;
    font-size: 16px;
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s ease;
}

.prayer-textarea:focus {
    outline: none;
    border-color: var(--divine-gold);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.prayer-textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Voice Intention Section */
.voice-intention-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.record-intention-button {
    background: var(--primary-gradient);
    border: none;
    border-radius: 16px;
    color: white;
    padding: 15px 30px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.record-intention-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.record-intention-button .mic-icon {
    width: 24px;
    height: 24px;
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.5));
}

.recording-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 15px 30px;
    background: rgba(255, 215, 0, 0.1);
    border: 2px solid var(--divine-gold);
    border-radius: 16px;
}

.recording-pulse {
    width: 20px;
    height: 20px;
    background-color: #ff4757;
    border-radius: 50%;
    animation: recordingPulseAnim 1.5s infinite ease-in-out;
}

@keyframes recordingPulseAnim {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(255, 71, 87, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 71, 87, 0);
    }
}

.recording-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--christ-light);
}

.audio-playback {
    margin-top: 20px;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 15px 20px;
}

.playback-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.playback-header h4 {
    color: var(--divine-gold);
    font-weight: 600;
    margin: 0;
}

.delete-recording-button {
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delete-recording-button:hover {
    background: #ff4757;
}

#audioPlayer {
    width: 100%;
}

/* Custom Audio Player Styles */
audio {
    filter: sepia(20%) saturate(70%) grayscale(1) brightness(1000%) contrast(100%);
}

audio::-webkit-media-controls-panel {
    background: transparent;
    border-radius: 12px;
}

audio::-webkit-media-controls-play-button,
audio::-webkit-media-controls-mute-button {
    background-color: var(--divine-gold);
    border-radius: 50%;
}

audio::-webkit-media-controls-play-button:hover,
audio::-webkit-media-controls-mute-button:hover {
    background-color: var(--christ-light);
}

audio::-webkit-media-controls-timeline {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    margin-left: 10px;
    margin-right: 10px;
}

audio::-webkit-media-controls-current-time-display,
audio::-webkit-media-controls-time-remaining-display {
    color: var(--christ-light);
    text-shadow: 0 0 2px rgba(255,248,220,0.5);
}

audio::-webkit-media-controls-volume-slider {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 25px;
}

/* Image Upload */
.upload-zone {
    border: 2px dashed var(--glass-border);
    border-radius: 16px;
    padding: 60px 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
}

.upload-zone:hover {
    border-color: var(--divine-gold);
    background: rgba(255, 215, 0, 0.05);
}

.upload-content .upload-icon {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.7;
}

.upload-content p {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.upload-content span {
    color: rgba(255, 255, 255, 0.6);
}

.image-preview {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
    border: 3px solid var(--divine-gold);
}

.image-preview img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.remove-image {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

/* Multiple Images Support */
.multiple-images-container {
    margin-top: 20px;
}

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

.image-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--divine-gold);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.image-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.image-item .remove-image {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 25px;
    height: 25px;
    background: rgba(0, 0, 0, 0.8);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-more-button {
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed var(--glass-border);
    border-radius: 12px;
    padding: 15px 25px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.add-more-button:hover {
    border-color: var(--divine-gold);
    background: rgba(255, 215, 0, 0.05);
}

/* Broadcast Controls */
.broadcast-controls {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.control-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 16px;
}

.control-icon {
    font-size: 20px;
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.divine-slider {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
}

.divine-slider::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--divine-gold);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.slider-value {
    font-weight: 600;
    color: var(--divine-gold);
    min-width: 40px;
}

/* Enhanced Broadcast Controls */
.timing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 15px;
}

.duration-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.duration-label {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.duration-select {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--glass-border);
    border-radius: 8px;
    padding: 8px 12px;
    color: white;
    font-family: inherit;
    cursor: pointer;
}

.duration-select:focus {
    outline: none;
    border-color: var(--divine-gold);
}

/* Broadcast Timer */
.broadcast-timer-container {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.timer-display {
    position: relative;
    width: 120px;
    height: 120px;
}

.timer-circle {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timer-svg {
    position: absolute;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.timer-text {
    position: relative;
    text-align: center;
    z-index: 1;
}

.time-remaining {
    font-size: 24px;
    font-weight: 700;
    color: var(--divine-gold);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.time-label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
}

/* Broadcast Timing */
.broadcast-timing {
    margin-top: 20px;
}

.timing-label {
    display: block;
    font-weight: 600;
    margin-bottom: 15px;
}

.timing-options {
    display: flex;
    gap: 20px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.radio-option input {
    accent-color: var(--divine-gold);
}

/* Enhanced Stats */
#targetsDisplay {
    color: var(--sacred-blue);
}

/* Buttons */
.next-button,
.back-button,
.broadcast-button,
.stop-broadcast {
    padding: 15px 30px;
    border: none;
    border-radius: 16px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.next-button,
.broadcast-button {
    background: var(--primary-gradient);
    color: white;
    margin: 30px auto 0;
    min-width: 200px;
}

.broadcast-button {
    background: linear-gradient(45deg, var(--divine-gold), #ff6b35);
    font-size: 18px;
    padding: 18px 40px;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.4);
}

.back-button {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid var(--glass-border);
}

.next-button:hover,
.broadcast-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.15);
}

.step-controls {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
}

/* Prayer Layering System */
.layer-system {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(135, 206, 250, 0.1));
    border: 2px solid var(--divine-gold);
    border-radius: 20px;
    padding: 25px;
    margin: 30px 0;
    position: relative;
}

.layer-system::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: conic-gradient(from 0deg, var(--divine-gold), var(--sacred-blue), var(--divine-gold));
    border-radius: 20px;
    z-index: -1;
    animation: rotateHalo 8s linear infinite;
}

@keyframes rotateHalo {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.layer-count {
    background: var(--primary-gradient);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-weight: 700;
    margin-left: 10px;
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 5px var(--divine-gold); }
    50% { box-shadow: 0 0 20px var(--divine-gold), 0 0 30px var(--divine-gold); }
}

.layer-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 300px;
    overflow-y: auto;
    margin: 20px 0;
}

.layer-item {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 15px;
    transition: all 0.3s ease;
    position: relative;
}

.layer-item.active {
    border-color: var(--divine-gold);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.layer-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

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

.layer-name {
    font-weight: 600;
    color: var(--divine-gold);
}

.layer-type {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: white;
    padding: 5px 10px;
    font-size: 12px;
}

.layer-intensity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.layer-slider {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
}

.layer-slider::-webkit-slider-thumb {
    appearance: none;
    width: 16px;
    height: 16px;
    background: var(--divine-gold);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.layer-value {
    font-weight: 600;
    color: var(--divine-gold);
    min-width: 35px;
    font-size: 12px;
}

.layer-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
}

.add-layer-btn, .quantum-multiply-btn, .divine-amplify-btn {
    background: var(--primary-gradient);
    border: none;
    border-radius: 12px;
    color: white;
    padding: 10px 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.quantum-multiply-btn {
    background: linear-gradient(45deg, #9b59b6, #8e44ad);
}

.divine-amplify-btn {
    background: linear-gradient(45deg, #f39c12, #e67e22);
    animation: epicGlow 3s ease-in-out infinite;
}

@keyframes epicGlow {
    0%, 100% { 
        box-shadow: 0 0 10px rgba(243, 156, 18, 0.5);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 25px rgba(243, 156, 18, 0.8), 0 0 35px rgba(243, 156, 18, 0.4);
        transform: scale(1.05);
    }
}

.add-layer-btn:hover, .quantum-multiply-btn:hover, .divine-amplify-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.layer-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-display {
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
}

.stat-label {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.stat-number {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--divine-gold);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Broadcast Panel */
.broadcast-panel {
    text-align: center;
}

/* Enhanced Epic Visualizations */
.epic-visualization-wrapper {
    background: radial-gradient(circle at center, rgba(0, 0, 60, 0.9) 0%, rgba(0, 0, 20, 0.95) 50%, rgba(0, 0, 0, 1) 100%);
    position: relative;
    overflow: hidden;
}

.epic-visualization-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent,
        rgba(255, 215, 0, 0.1),
        transparent,
        rgba(135, 206, 250, 0.1),
        transparent,
        rgba(147, 112, 219, 0.1),
        transparent
    );
    animation: epicRotate 20s linear infinite;
    z-index: 1;
}

@keyframes epicRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

#sacredGeometry {
    position: relative;
    z-index: 2;
    filter: contrast(1.2) saturate(1.3) brightness(1.1);
    box-shadow: 
        0 0 60px rgba(255, 215, 0, 0.6),
        0 0 120px rgba(135, 206, 250, 0.4),
        0 0 180px rgba(147, 112, 219, 0.2),
        inset 0 0 50px rgba(0, 0, 0, 0.8);
}

.transmission-status {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}

.status-indicator {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 40px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 20px;
    border: 1px solid var(--divine-gold);
}

.pulse-ring {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--divine-gold);
    border-radius: 50%;
    animation: pulseTransmission 1.5s ease-in-out infinite;
}

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

.status-text {
    font-size: 10px;
    font-weight: 700;
    color: var(--divine-gold);
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    animation: textGlow 2s ease-in-out infinite alternate;
}

@keyframes textGlow {
    from {
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    }
    to {
        text-shadow: 0 0 20px rgba(255, 215, 0, 0.8), 0 0 30px rgba(255, 215, 0, 0.4);
    }
}

.epic-controls {
    margin-top: 30px;
    text-align: center;
}

.stop-broadcast {
    background: linear-gradient(45deg, #ff4757, #ff3742);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 16px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 
        0 10px 30px rgba(255, 71, 87, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.stop-broadcast:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 15px 40px rgba(255, 71, 87, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.stop-icon {
    font-size: 18px;
}

/* Enhanced visualization container */
.visualization-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin: 40px 0;
    position: relative;
}

.visualization-container::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: conic-gradient(
        from 0deg,
        transparent,
        rgba(255, 215, 0, 0.1),
        transparent,
        rgba(135, 206, 250, 0.1),
        transparent,
        rgba(147, 112, 219, 0.1),
        transparent
    );
    border-radius: 30px;
    animation: rotateBorder 10s linear infinite;
    z-index: -1;
}

@keyframes rotateBorder {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.broadcast-stats {
    display: flex;
    gap: 40px;
    justify-content: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: center;
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--divine-gold);
}

/* Blessing Timeline */
.blessing-timeline {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    padding: 30px;
    margin-top: 80px;
}

.blessing-timeline h3 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 20px;
    color: var(--divine-gold);
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 0;
}

.timeline-dot {
    width: 12px;
    height: 12px;
    background: var(--divine-gold);
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.timeline-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.timeline-time {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline-text {
    color: white;
    font-weight: 500;
}

/* Configuration Modal Styles */
.configuration-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: var(--shadow-strong);
    animation: slideInUp 0.3s ease;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

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

.modal-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--divine-gold);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.config-tabs {
    display: flex;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.2);
}

.config-tab {
    flex: 1;
    padding: 15px 20px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.config-tab:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.config-tab.active {
    color: var(--divine-gold);
    background: rgba(255, 215, 0, 0.1);
    border-bottom-color: var(--divine-gold);
}

.config-tab-content {
    display: none;
    padding: 30px;
    max-height: 60vh;
    overflow-y: auto;
}

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

/* Save Configuration Tab */
.config-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.config-input, .config-textarea, .config-select {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--glass-border);
    border-radius: 12px;
    padding: 12px 16px;
    color: white;
    font-family: inherit;
    font-size: 14px;
    transition: all 0.3s ease;
}

.config-input:focus, .config-textarea:focus, .config-select:focus {
    outline: none;
    border-color: var(--divine-gold);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.config-textarea {
    min-height: 80px;
    resize: vertical;
}

.config-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 5px 0;
    cursor: pointer;
}

.config-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: var(--divine-gold);
}

.config-preview {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 20px;
}

.config-preview h4 {
    color: var(--divine-gold);
    margin-bottom: 15px;
}

.preview-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.preview-item {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.preview-item strong {
    color: white;
}

/* Load Configuration Tab */
.config-search {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.config-search .config-input {
    flex: 1;
}

.config-search .config-select {
    min-width: 150px;
}

.config-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.config-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.config-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 215, 0, 0.5);
    transform: translateY(-2px);
}

.config-info {
    margin-bottom: 15px;
}

.config-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.config-name {
    color: var(--divine-gold);
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.config-date {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

.config-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-bottom: 10px;
}

.config-components {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.component-tag {
    background: rgba(255, 215, 0, 0.2);
    color: var(--divine-gold);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}

.config-details {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.config-actions {
    display: flex;
    gap: 10px;
}

.config-action-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.config-action-btn.load {
    background: var(--primary-gradient);
    color: white;
}

.config-action-btn.download {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid var(--glass-border);
}

.config-action-btn.delete {
    background: linear-gradient(45deg, #ff4757, #ff3742);
    color: white;
}

.config-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.no-configs {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.6);
}

.no-configs-icon {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* Import/Export Tab */
.import-export-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.section {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 20px;
}

.section h4 {
    color: var(--divine-gold);
    margin-bottom: 10px;
}

.section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
    font-size: 14px;
}

.file-input {
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed var(--glass-border);
    border-radius: 8px;
    padding: 10px;
    color: white;
    margin-bottom: 10px;
    cursor: pointer;
}

.file-input::-webkit-file-upload-button {
    background: var(--primary-gradient);
    border: none;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    margin-right: 10px;
}

/* Configuration Buttons */
.config-button {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.config-button.primary {
    background: var(--primary-gradient);
    color: white;
}

.config-button.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid var(--glass-border);
}

.config-button.danger {
    background: linear-gradient(45deg, #ff4757, #ff3742);
    color: white;
}

.config-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Responsive Design for Modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .config-tab-content {
        padding: 20px;
    }
    
    .config-tabs {
        overflow-x: auto;
    }
    
    .config-tab {
        min-width: 120px;
        white-space: nowrap;
    }
    
    .config-search {
        flex-direction: column;
    }
    
    .config-actions {
        flex-direction: column;
    }
    
    .config-action-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-content {
        padding: 12px 20px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .main-container {
        margin-top: 100px;
        padding: 0 15px;
    }
    
    .step-panel {
        padding: 25px;
    }
    
    .panel-header h2 {
        font-size: 24px;
    }
    
    .broadcast-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .timing-grid {
        grid-template-columns: 1fr;
    }
    
    .images-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
    }
    
    .image-item img {
        height: 100px;
    }
    
    .timer-display {
        width: 100px;
        height: 100px;
    }
    
    .time-remaining {
        font-size: 18px;
    }
}