/* style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gold: #ffd700;
    --secondary-gold: #ff6b00;
    --dark-bg: #0c0c0c;
    --darker-bg: #1a1a2e;
    --card-bg: rgba(255, 255, 255, 0.1);
    --border-glow: rgba(255, 215, 0, 0.3);
    --success: #00b09b;
    --error: #ff416c;
    --info: #4facfe;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--darker-bg) 50%, #16213e 100%);
    color: #fff;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    transition: all 0.3s ease;
}

/* Premium Splash Screen */
.premium-splash-container {
    position: relative;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, var(--darker-bg) 0%, var(--dark-bg) 70%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.divine-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--primary-gold) 0%, transparent 70%);
    opacity: 0.1;
    filter: blur(40px);
    animation: gentlePulse 4s ease-in-out infinite;
}

.sacred-symbols {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
}

.om-symbol {
    position: absolute;
    font-size: 4rem;
    color: var(--primary-gold);
    text-shadow: 0 0 20px var(--secondary-gold);
    animation: symbolRotate 8s linear infinite;
}

.swastika {
    position: absolute;
    font-size: 3rem;
    color: var(--primary-gold);
    opacity: 0.7;
    animation: symbolRotateReverse 6s linear infinite;
}

.golden-lotus {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
}

.lotus-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 30%, var(--primary-gold) 31%, transparent 32%);
    border-radius: 50%;
    animation: lotusBloom 3s ease-in-out infinite;
}

.lotus-layer:nth-child(2) {
    animation-delay: 0.5s;
    transform: scale(1.2);
}

.lotus-layer:nth-child(3) {
    animation-delay: 1s;
    transform: scale(1.4);
}

.app-title {
    text-align: center;
    z-index: 10;
    margin-top: 200px;
}

.app-title h1 {
    font-size: 3rem;
    color: var(--primary-gold);
    text-shadow: 
        0 0 20px var(--secondary-gold),
        0 0 40px var(--secondary-gold);
    margin-bottom: 1rem;
    font-weight: 300;
    letter-spacing: 2px;
}

.app-title p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.loading-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    margin-top: 2rem;
    overflow: hidden;
}

.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-gold), var(--secondary-gold));
    border-radius: 2px;
    animation: loadingProgress 3s ease-in-out forwards;
}

/* Divine Exit Button */
.divine-exit-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid var(--primary-gold);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1001;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.divine-exit-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
}

.exit-icon {
    font-size: 1.5rem;
    color: var(--primary-gold);
    filter: drop-shadow(0 0 5px var(--primary-gold));
}

/* Theme Variables */
body.mahadev-theme {
    --primary-gold: #4a90e2;
    --secondary-gold: #357abd;
    --dark-bg: #0a0a2a;
    --darker-bg: #1a1a4a;
}

body.krishna-theme {
    --primary-gold: #9b59b6;
    --secondary-gold: #8e44ad;
    --dark-bg: #2c3e50;
    --darker-bg: #34495e;
}

body.golden-theme {
    --primary-gold: #ffd700;
    --secondary-gold: #ff6b00;
    --dark-bg: #2c1810;
    --darker-bg: #4a3728;
}

body.vishnu-theme {
    --primary-gold: #00b894;
    --secondary-gold: #00a085;
    --dark-bg: #1e3799;
    --darker-bg: #0c2461;
}

body.durga-theme {
    --primary-gold: #e84393;
    --secondary-gold: #fd79a8;
    --dark-bg: #6c5ce7;
    --darker-bg: #a29bfe;
}

body.ganesha-theme {
    --primary-gold: #fdcb6e;
    --secondary-gold: #e17055;
    --dark-bg: #00b894;
    --darker-bg: #00a085;
}

body.hanuman-theme {
    --primary-gold: #e17055;
    --secondary-gold: #d63031;
    --dark-bg: #2d3436;
    --darker-bg: #636e72;
}

body.saraswati-theme {
    --primary-gold: #74b9ff;
    --secondary-gold: #0984e3;
    --dark-bg: #a29bfe;
    --darker-bg: #6c5ce7;
}

body.lakshmi-theme {
    --primary-gold: #ffeaa7;
    --secondary-gold: #fdcb6e;
    --dark-bg: #e17055;
    --darker-bg: #d63031;
}

body.radha-theme {
    --primary-gold: #fd79a8;
    --secondary-gold: #e84393;
    --dark-bg: #fab1a0;
    --darker-bg: #e17055;
}

body.kubera-theme {
    --primary-gold: #fdcb6e;
    --secondary-gold: #e17055;
    --dark-bg: #2d3436;
    --darker-bg: #636e72;
}

body.brahma-theme {
    --primary-gold: #00cec9;
    --secondary-gold: #00b894;
    --dark-bg: #0984e3;
    --darker-bg: #6c5ce7;
}

body.kartikeya-theme {
    --primary-gold: #dfe6e9;
    --secondary-gold: #b2bec3;
    --dark-bg: #2d3436;
    --darker-bg: #636e72;
}

body.surya-theme {
    --primary-gold: #fdcb6e;
    --secondary-gold: #e17055;
    --dark-bg: #e17055;
    --darker-bg: #d63031;
}

body.indra-theme {
    --primary-gold: #74b9ff;
    --secondary-gold: #0984e3;
    --dark-bg: #00b894;
    --darker-bg: #00a085;
}

body.yama-theme {
    --primary-gold: #636e72;
    --secondary-gold: #2d3436;
    --dark-bg: #000000;
    --darker-bg: #2d3436;
}

body.varuna-theme {
    --primary-gold: #74b9ff;
    --secondary-gold: #0984e3;
    --dark-bg: #006266;
    --darker-bg: #005a5a;
}

body.vayu-theme {
    --primary-gold: #dfe6e9;
    --secondary-gold: #b2bec3;
    --dark-bg: #3498db;
    --darker-bg: #2980b9;
}

body.agni-theme {
    --primary-gold: #e17055;
    --secondary-gold: #d63031;
    --dark-bg: #e17055;
    --darker-bg: #d63031;
}

/* Premium Theme Badge */
.premium-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(45deg, #ffd700, #ff6b00);
    color: #000;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
}

.theme-status.free {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(45deg, #00b09b, #96c93d);
    color: #000;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
}

.theme-option.premium {
    position: relative;
}

.theme-option.premium .theme-preview {
    filter: grayscale(0.7);
    opacity: 0.7;
}

.theme-option.premium.unlocked .theme-preview {
    filter: grayscale(0);
    opacity: 1;
}

/* Theme Lock Overlay */
.theme-lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.theme-option.premium.unlocked .theme-lock-overlay {
    display: none;
}

.lock-icon {
    font-size: 2rem;
    color: var(--primary-gold);
    filter: drop-shadow(0 0 10px var(--primary-gold));
}

/* Payment Modal */
.payment-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.payment-content {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 2px solid var(--primary-gold);
    border-radius: 20px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
}

.success-animation {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: successPulse 2s ease-in-out infinite;
}

@keyframes successPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.payment-theme-preview {
    width: 100px;
    height: 100px;
    border-radius: 15px;
    margin: 1rem auto;
    border: 3px solid var(--primary-gold);
}

.payment-amount {
    font-size: 2rem;
    color: var(--primary-gold);
    margin: 1rem 0;
}

.upi-button {
    background: linear-gradient(45deg, #00b09b, #96c93d);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    margin: 1rem 0;
    width: 100%;
}

.upi-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 176, 155, 0.4);
}

.close-payment {
    background: none;
    border: none;
    color: var(--primary-gold);
    font-size: 1.5rem;
    position: absolute;
    top: 1rem;
    right: 1rem;
    cursor: pointer;
}

/* UPI Payment Screen */
.payment-container {
    padding: 1rem;
    height: calc(100% - 60px);
    overflow-y: auto;
}

.payment-header {
    text-align: center;
    margin-bottom: 2rem;
}

.payment-header h3 {
    color: var(--primary-gold);
    margin: 1rem 0;
    font-size: 1.5rem;
}

.payment-instructions {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-glow);
}

.payment-instructions h4 {
    color: var(--primary-gold);
    margin-bottom: 1rem;
    text-align: center;
}

.payment-instructions ol {
    text-align: left;
    padding-left: 1.5rem;
}

.payment-instructions li {
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.payment-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.upi-pay-btn {
    background: linear-gradient(45deg, #00b09b, #96c93d);
    color: white;
    border: none;
    padding: 18px 30px;
    border-radius: 15px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 176, 155, 0.3);
}

.upi-pay-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 176, 155, 0.4);
}

.upi-pay-btn:active {
    transform: translateY(0);
}

.upi-icon {
    font-size: 1.5rem;
}

.payment-status {
    margin-top: 2rem;
    text-align: center;
    min-height: 60px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid var(--primary-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#payment-message {
    color: var(--primary-gold);
    font-weight: bold;
    margin-top: 1rem;
}

/* Enhanced Jap Screen */
.enhanced-jap-container {
    position: relative;
    width: 100%;
    height: calc(100% - 60px);
    overflow: hidden;
}

.god-name-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 25;
}

.god-name-particle {
    position: absolute;
    font-size: 2rem;
    color: var(--primary-gold);
    text-shadow: 0 0 10px var(--secondary-gold);
    animation: godNameFloat 3s ease-out forwards;
    font-weight: bold;
}

.smooth-counter {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-gold);
    transition: all 0.3s ease;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.jap-touch-area {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 70%;
    cursor: pointer;
    z-index: 20;
}

/* GLB Management */
.glb-management-panel {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    width: 90%;
    height: 60%;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glow);
    border-radius: 20px 20px 0 0;
    z-index: 1002;
    transition: transform 0.3s ease;
}

.glb-management-panel.active {
    transform: translateX(-50%) translateY(0);
}

.glb-list {
    max-height: 300px;
    overflow-y: auto;
    margin: 1rem 0;
}

.glb-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-bottom: 0.5rem;
}

.glb-item.active {
    border: 2px solid var(--primary-gold);
    background: rgba(255, 215, 0, 0.1);
}

/* Upload Section with Icon */
.upload-section-with-icon {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.upload-icon {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.download-safe-btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.download-safe-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* My 3D Models Gallery */
.my-models-section {
    margin-top: 1.5rem;
    border-top: 1px solid var(--border-glow);
    padding-top: 1rem;
}

.my-models-section h4 {
    color: var(--primary-gold);
    margin-bottom: 1rem;
    text-align: center;
}

.models-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    max-height: 300px;
    overflow-y: auto;
    padding: 0.5rem;
}

.model-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glow);
    border-radius: 10px;
    padding: 0.8rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.model-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.2);
}

.model-thumbnail {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin: 0 auto 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-gold);
}

.model-name {
    font-size: 0.8rem;
    color: white;
    margin-bottom: 0.5rem;
    word-break: break-word;
}

.model-actions {
    display: flex;
    gap: 0.3rem;
    justify-content: center;
}

.model-action-btn {
    background: var(--card-bg);
    border: 1px solid var(--border-glow);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

.model-action-btn.apply {
    background: linear-gradient(45deg, var(--primary-gold), var(--secondary-gold));
    color: var(--dark-bg);
}

.model-action-btn.delete {
    background: linear-gradient(45deg, #ff4444, #ff6b6b);
}

.model-action-btn:hover {
    transform: scale(1.05);
}

/* God Selection Styles */
.god-selection-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1rem 0;
}

.god-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border-glow);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.god-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.god-option.custom-god {
    background: linear-gradient(45deg, rgba(255, 215, 0, 0.1), rgba(255, 107, 0, 0.05));
    border: 2px dashed var(--primary-gold);
}

.god-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.custom-god-input {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 10px;
    border: 1px solid var(--primary-gold);
}

/* Theme Store */
.theme-store-container {
    padding: 1rem;
}

.theme-grid-full {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.theme-option {
    position: relative;
    text-align: center;
    cursor: pointer;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 15px;
    border: 1px solid var(--border-glow);
    transition: all 0.3s ease;
}

.theme-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.theme-preview {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    margin: 0 auto 0.5rem;
    border: 2px solid var(--border-glow);
}

/* Rest of existing CSS */
.screen {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--darker-bg) 50%, #16213e 100%);
}

.screen.active {
    display: block;
}

.enhanced-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-glow);
    height: 60px;
    position: relative;
    z-index: 100;
}

.user-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.profile-pic {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid var(--primary-gold);
    object-fit: cover;
}

.profile-name {
    color: var(--primary-gold);
    font-weight: bold;
    font-size: 0.9rem;
}

.mantra-display {
    flex: 2;
    text-align: center;
}

.mantra-display span {
    color: var(--primary-gold);
    font-size: 0.9rem;
    font-weight: 500;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.header-actions {
    display: flex;
    gap: 0.5rem;
    flex: 1;
    justify-content: flex-end;
}

.icon-btn {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-glow);
    color: var(--primary-gold);
    font-size: 1rem;
    cursor: pointer;
    padding: 0.4rem;
    border-radius: 8px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.icon-btn:active {
    transform: scale(0.95);
}

.premium-btn {
    background: linear-gradient(45deg, var(--primary-gold), var(--secondary-gold));
    color: var(--dark-bg);
    font-weight: bold;
    border: none;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

/* Enhanced 3D Background Containers */
.home-3d-bg-container {
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    height: 40%;
    z-index: 1;
}

.home-3d-bg-container model-viewer {
    width: 100%;
    height: 100%;
}

/* Stats Container - Positioned below image */
.stats-container {
    display: flex;
    justify-content: space-around;
    margin: 1rem;
    margin-top: calc(40% + 70px);
    gap: 0.5rem;
    position: relative;
    z-index: 10;
}

.stat-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glow);
    border-radius: 15px;
    padding: 1rem;
    text-align: center;
    flex: 1;
}

.stat-card h3 {
    font-size: 0.9rem;
    color: var(--primary-gold);
    margin-bottom: 0.5rem;
}

.stat-card p {
    font-size: 1.5rem;
    font-weight: bold;
}

.karma-meter {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    margin-top: 0.5rem;
    position: relative;
    overflow: hidden;
}

.karma-needle {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-gold), var(--secondary-gold));
    border-radius: 4px;
    width: 0%;
    transition: width 0.5s ease;
}

/* Action Buttons */
.action-buttons {
    padding: 1rem;
    margin-top: 1rem;
    position: relative;
    z-index: 10;
}

.main-btn {
    width: 100%;
    padding: 1.2rem;
    margin-bottom: 0.8rem;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glow);
    border-radius: 15px;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.main-btn span {
    font-size: 1.3rem;
}

.main-btn:active {
    transform: scale(0.98);
}

/* Jap Screen Clear Effects */
.jap-clear-effects {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.jap-fog {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, rgba(255,255,255,0.1) 0%, transparent 100%);
    animation: fogMove 12s linear infinite;
    opacity: 0.3;
}

.floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255, 215, 0, 0.05) 1px, transparent 2px),
        radial-gradient(circle at 90% 80%, rgba(255, 107, 0, 0.03) 1px, transparent 2px);
    background-size: 80px 80px;
    animation: particleFloat 20s linear infinite;
    opacity: 0.4;
}

.soft-glow-jap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 30%, rgba(255, 215, 0, 0.05) 0%, transparent 60%);
}

.divine-light-jap {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 0;
    background: linear-gradient(to bottom, transparent, #ffffff, transparent);
    box-shadow: 0 0 40px 10px #ffffff;
    animation: divineLightBeam 4s ease-in-out infinite;
    opacity: 0.3;
}

.heaven-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(12, 12, 12, 0.9) 0%, 
        rgba(26, 26, 46, 0.7) 50%, 
        rgba(22, 33, 62, 0.5) 100%);
}

.jap-background-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    z-index: 2;
}

.static-background {
    width: 100%;
    height: 100%;
    filter: brightness(0.9);
}

.jap-god-foreground {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
}

.jap-god-foreground model-viewer {
    width: 100%;
    height: 100%;
}

/* Full Screen Mandir Background */
.static-background-fullscreen {
    width: 100%;
    height: 100%;
    filter: brightness(0.8);
}

.mandir-background-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.mandir-background-container model-viewer {
    width: 100%;
    height: 100%;
}

.god-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 215, 0, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

/* Interactive Decorations */
.interactive-decorations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 20;
}

.interactive-decoration {
    position: absolute;
    pointer-events: auto;
    z-index: 21;
    transition: transform 0.2s ease;
    cursor: move;
    touch-action: none;
}

/* Delete Zone */
.delete-zone {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: rgba(255, 0, 0, 0.3);
    border-top: 2px solid #ff4444;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.delete-zone.active {
    opacity: 1;
}

.delete-text {
    color: white;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
}

/* Background Edit Controls */
.background-edit-controls {
    position: absolute;
    top: 80px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glow);
    border-radius: 10px;
    padding: 0.5rem;
    z-index: 1002;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.background-edit-controls.hidden {
    display: none;
}

.edit-controls-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.edit-controls-header h4 {
    color: var(--primary-gold);
    font-size: 0.9rem;
    margin: 0;
}

.edit-controls-body {
    display: flex;
    gap: 0.5rem;
}

/* Enhanced Mandir Controls */
.mandir-controls {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    position: relative;
}

.sunkh-icon {
    background: linear-gradient(45deg, #ff6b00, #ffd700) !important;
    font-size: 1.2rem !important;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.7) !important;
}

.sunkh-menu {
    position: absolute;
    top: 50px;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glow);
    border-radius: 15px;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 1001;
    animation: menuSlideDown 0.3s ease;
}

.sunkh-menu.hidden {
    display: none;
}

/* Premium Offering Items */
.offerings-grid, .decorations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-height: 300px;
    overflow-y: auto;
}

.offering-item, .decoration-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 107, 0, 0.05));
    border-radius: 15px;
    cursor: pointer;
    text-align: center;
    border: 1px solid rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
    min-height: 100px;
    justify-content: center;
}

.offering-item:hover, .decoration-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.offering-icon, .decoration-icon {
    font-size: 2rem;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
}

.offering-item:active, .decoration-item:active {
    background: rgba(255, 215, 0, 0.2);
    transform: scale(0.95);
}

/* Auth Screens */
.auth-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.mandala-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at center, transparent 30%, rgba(255, 215, 0, 0.1) 100%),
        repeating-conic-gradient(from 0deg, rgba(255, 215, 0, 0.05) 0deg 10deg, transparent 10deg 20deg);
    opacity: 0.3;
}

.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glow);
    border-radius: 20px;
    padding: 2rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(255, 215, 0, 0.2);
}

.glass-card h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-gold);
    font-size: 1.8rem;
}

.auth-input {
    width: 100%;
    padding: 15px;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-glow);
    border-radius: 10px;
    color: white;
    font-size: 1rem;
}

.auth-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.auth-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, var(--primary-gold), var(--secondary-gold));
    border: none;
    border-radius: 10px;
    color: var(--dark-bg);
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
}

.auth-btn:active {
    transform: scale(0.95);
}

.auth-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid var(--border-glow);
}

.auth-links {
    margin-top: 1rem;
    text-align: center;
}

.auth-links a {
    color: var(--primary-gold);
    text-decoration: none;
    display: block;
    margin: 0.5rem 0;
}

/* Screen Header */
.screen-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-glow);
    position: relative;
    z-index: 100;
}

.back-btn {
    background: none;
    border: none;
    color: var(--primary-gold);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.screen-header h2 {
    color: var(--primary-gold);
    font-size: 1.3rem;
}

/* Jap Screen */
.jap-container {
    position: relative;
    width: 100%;
    height: calc(100% - 60px);
}

.mala-container {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 40%;
    z-index: 10;
}

.mala-container model-viewer {
    width: 100%;
    height: 100%;
}

.tap-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 15;
}

.touch-trail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 12;
}

.jap-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-glow);
    z-index: 20;
}

.counter-display {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.bead-counter, .jap-counter {
    font-size: 1.1rem;
    color: var(--primary-gold);
}

.jap-metrics {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
}

.speed-meter, .accuracy-meter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.speed-indicator {
    width: 60px;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.speed-bar {
    height: 100%;
    background: var(--primary-gold);
    border-radius: 4px;
    width: 50%;
    transition: width 0.3s ease, background 0.3s ease;
}

.jap-actions {
    display: flex;
    gap: 1rem;
}

.jap-actions .action-btn {
    flex: 1;
}

/* Chakra Alignment */
.chakra-alignment {
    position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 15;
}

.chakra {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-glow);
    transition: all 0.3s ease;
}

.chakra.active {
    background: var(--primary-gold);
    color: var(--dark-bg);
    box-shadow: 0 0 15px var(--primary-gold);
}

/* Floating Blessings Jap */
.floating-blessings-jap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 8;
}

/* Achievement Animations */
.achievement-animations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 25;
}

.achievement {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    text-align: center;
    animation: achievementPop 2s ease-out forwards;
}

/* Lotus Petals */
.lotus-petals {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.lotus-petal {
    position: absolute;
    font-size: 1.5rem;
    animation: petalFall 5s linear forwards;
}

/* Custom Mantra Screen */
.mantra-container {
    padding: 1rem;
}

.mantra-input {
    width: 100%;
    height: 120px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-glow);
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    resize: none;
    margin-bottom: 1rem;
}

.mantra-hint {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
    text-align: center;
}

.current-mantra {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 10px;
    text-align: center;
}

.current-mantra h4 {
    color: var(--primary-gold);
    margin-bottom: 0.5rem;
}

/* Fullscreen Mandir */
.fullscreen-mandir {
    background: rgba(0, 0, 0, 0.95) !important;
    z-index: 1000;
}

.mandir-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    z-index: 1001;
}

.close-mandir-btn {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-glow);
    color: var(--primary-gold);
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mandir-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Lighting System */
.ambient-light {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: radial-gradient(circle at center,
        rgba(255,255,200,0.4), transparent 70%);
    mix-blend-mode: screen;
    animation: flicker 2s infinite ease-in-out;
    z-index: 5;
}

.spot-light {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: radial-gradient(circle at 50% 0%,
        rgba(255,220,150,0.5), transparent 70%);
    mix-blend-mode: screen;
    z-index: 6;
}

.left-light {
    position: absolute;
    left: 0;
    width: 40%;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(to right,
        rgba(255,220,150,0.3), transparent);
    mix-blend-mode: screen;
    z-index: 7;
}

.right-light {
    position: absolute;
    right: 0;
    width: 40%;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(to left,
        rgba(255,220,150,0.3), transparent);
    mix-blend-mode: screen;
    z-index: 8;
}

.mandir-god-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 70%;
    z-index: 10;
}

.mandir-god-container model-viewer {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 20px var(--primary-gold));
}

/* Mandir Panels */
.mandir-panel {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    width: 90%;
    height: 35%;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glow);
    border-radius: 20px 20px 0 0;
    z-index: 1002;
    transition: transform 0.3s ease;
}

.mandir-panel.active {
    transform: translateX(-50%) translateY(0);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border-glow);
}

.panel-header h3 {
    color: var(--primary-gold);
}

.close-panel-btn {
    background: none;
    border: none;
    color: var(--primary-gold);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
}

.panel-content {
    padding: 1rem;
    height: calc(100% - 60px);
    overflow-y: auto;
}

/* Profile Screen */
.profile-container {
    padding: 1rem;
}

.profile-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glow);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.profile-picture-section {
    text-align: center;
    margin-bottom: 1.5rem;
}

.profile-pic-large-container {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.profile-pic-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid var(--primary-gold);
    object-fit: cover;
}

.change-pic-btn {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: var(--primary-gold);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 0.8rem;
}

.profile-name-input {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-glow);
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    margin-bottom: 1rem;
    text-align: center;
}

.save-profile-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(45deg, var(--primary-gold), var(--secondary-gold));
    border: none;
    border-radius: 10px;
    color: var(--dark-bg);
    font-weight: bold;
    cursor: pointer;
}

.profile-info h3 {
    color: var(--primary-gold);
    margin-bottom: 1rem;
    text-align: center;
}

.profile-stats {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.stat {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.action-btn {
    padding: 1rem;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glow);
    border-radius: 10px;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
}

.action-btn.small {
    padding: 0.8rem;
    font-size: 1rem;
}

.action-btn.logout {
    background: linear-gradient(45deg, #ff4444, #ff6b6b);
    border: 1px solid #ff4444;
}

.action-btn:active {
    transform: scale(0.98);
}

/* Settings Screen */
.settings-container {
    padding: 1rem;
}

.theme-selector {
    margin-bottom: 2rem;
}

.theme-selector h3 {
    color: var(--primary-gold);
    margin-bottom: 1rem;
    text-align: center;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glow);
    border-radius: 10px;
    margin-bottom: 0.8rem;
    cursor: pointer;
}

.setting-item:active {
    background: rgba(255, 255, 255, 0.2);
}

/* Info Screens */
.info-content {
    padding: 1rem;
}

.info-content .glass-card {
    max-width: 100%;
}

.info-content ul {
    padding-left: 1.5rem;
    margin: 1rem 0;
}

.info-content li {
    margin-bottom: 0.5rem;
}

/* Floating Blessings */
.floating-blessings {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.blessing {
    position: absolute;
    color: var(--primary-gold);
    font-size: 1.2rem;
    text-shadow: 0 0 10px var(--secondary-gold);
    animation: floatUp 3s ease-in forwards;
}

/* Mandir Animations */
.mandir-animations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 50;
}

.animation-particle {
    position: absolute;
    pointer-events: none;
    z-index: 51;
}

/* Animations */
@keyframes gentlePulse {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.15; }
}

@keyframes symbolRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes symbolRotateReverse {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

@keyframes lotusBloom {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

@keyframes loadingProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

@keyframes floatUp {
    0% { 
        transform: translateY(100px);
        opacity: 1;
    }
    100% { 
        transform: translateY(-100px);
        opacity: 0;
    }
}

@keyframes achievementPop {
    0% { 
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
    100% { 
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
}

@keyframes petalFall {
    0% { 
        transform: translateY(-100px) rotate(0deg);
        opacity: 1;
    }
    100% { 
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

@keyframes flicker {
    0% { opacity: 0.8; }
    50% { opacity: 1; }
    100% { opacity: 0.8; }
}

@keyframes fogMove {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes divineLightBeam {
    0%, 100% { height: 0; opacity: 0; }
    50% { height: 80%; opacity: 0.5; }
}

@keyframes menuSlideDown {
    from { 
        transform: translateY(-20px);
        opacity: 0;
    }
    to { 
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes godNameFloat {
    0% {
        transform: translateY(100px) scale(0.5);
        opacity: 0;
    }
    20% {
        transform: translateY(50px) scale(1.2);
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) scale(0.8);
        opacity: 0;
    }
}

@keyframes smoothCount {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.smooth-counter.animate {
    animation: smoothCount 0.3s ease;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Model Viewer Customization */
model-viewer {
    --progress-bar-color: var(--primary-gold);
    --progress-bar-height: 3px;
    --poster-color: transparent;
}

/* Responsive Design */
@media (max-width: 480px) {
    .stats-container {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .stat-card {
        margin: 0;
    }
    
    .app-title h1 {
        font-size: 2rem;
    }
    
    .theme-grid-full {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .god-selection-options {
        grid-template-columns: 1fr;
    }
    
    .jap-metrics {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .offerings-grid, .decorations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .mandir-panel {
        width: 95%;
        height: 40%;
    }
    
    .enhanced-header {
        padding: 0.3rem 0.8rem;
        height: 50px;
    }
    
    .profile-pic {
        width: 30px;
        height: 30px;
    }
    
    .profile-name {
        font-size: 0.8rem;
    }
    
    .icon-btn {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    
    .mantra-display span {
        font-size: 0.8rem;
    }
    
    .home-3d-bg-container {
        height: 35%;
    }
    
    .stats-container {
        margin-top: calc(35% + 70px);
    }
    
    .sunkh-menu {
        right: 10px;
    }
    
    .divine-exit-btn {
        width: 40px;
        height: 40px;
        top: 15px;
        left: 15px;
    }
    
    .exit-icon {
        font-size: 1.2rem;
    }
    
    .models-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .model-thumbnail {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .model-name {
        font-size: 0.7rem;
    }
    
    .model-action-btn {
        font-size: 0.6rem;
        padding: 0.2rem 0.4rem;
    }
    
    .glb-management-panel {
        height: 70%;
    }
}
.restore-btn {
    width: 100%;
    padding: 14px;
    margin-top: 10px;
    background: linear-gradient(45deg, #ffd700, #ff9f1c);
    border: none;
    border-radius: 10px;
    color: #000;
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}
.restore-btn:active {
    transform: scale(0.97);
}
.god-aura {
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(22px);
    z-index: 0;
    opacity: 1;
}

/* LEVEL 1 — Beginner of Light */
.aura-level-1 {
    background: radial-gradient(circle, rgba(255,220,157,0.9), rgba(255,200,120,0.3), transparent);
    animation: pulse1 3s infinite ease-in-out;
}
@keyframes pulse1 {
    0% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.15); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

/* LEVEL 2 — Sacred Seeker */
.aura-level-2 {
    background: radial-gradient(circle, rgba(190,255,255,0.9), rgba(120,200,255,0.3), transparent);
    animation: pulse2 3s infinite ease-in-out;
}
@keyframes pulse2 {
    0% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.25); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

/* LEVEL 3 — Divine Practitioner */
.aura-level-3 {
    background: radial-gradient(circle, rgba(255,185,80,0.95), rgba(255,120,50,0.4), transparent);
    animation: pulse3 2.8s infinite ease-in-out;
}
@keyframes pulse3 {
    0% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.3); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

/* LEVEL 4 — Temple Guardian */
.aura-level-4 {
    background: radial-gradient(circle, rgba(170,145,255,0.9), rgba(130,110,255,0.4), transparent);
    animation: pulse4 2.6s infinite ease-in-out;
}
@keyframes pulse4 {
    0% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.35); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

/* LEVEL 5 — Mahadev's Blessed One */
.aura-level-5 {
    background: radial-gradient(circle, rgba(255,80,80,0.95), rgba(220,30,30,0.5), transparent);
    animation: pulse5 2.4s infinite ease-in-out;
}
@keyframes pulse5 {
    0% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.4); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

/* LEVEL 6 — Enlightened Supreme Soul */
.aura-level-6 {
    background: radial-gradient(circle, rgba(255,255,140,1), rgba(255,215,0,0.6), transparent);
    animation: pulse6 2.2s infinite ease-in-out, glowSupreme 5s infinite linear;
}
@keyframes pulse6 {
    0% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.5); }
    100% { transform: translate(-50%, -50%) scale(1); }
}
@keyframes glowSupreme {
    0% { filter: blur(22px) brightness(1); }
    50% { filter: blur(28px) brightness(1.3); }
    100% { filter: blur(22px) brightness(1); }
}

/* Message Styles */
@keyframes messageSlideIn {
    from {
        transform: translateX(-50%) translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

@keyframes messageSlideOut {
    from {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    to {
        transform: translateX(-50%) translateY(-100%);
        opacity: 0;
    }
}

@keyframes sparkAnimation {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(3);
        opacity: 0;
    }
}

@keyframes fallingPetal {
    to {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

@keyframes flameFlicker {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
}

@keyframes smokeRise {
    to {
        transform: translate(-50%, -100vh);
        opacity: 0;
    }
}

@keyframes fruitFall {
    to {
        transform: translateY(100px);
        opacity: 0;
    }
}

@keyframes sweetBounce {
    0% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0); }
}

@keyframes waterDrop {
    to {
        transform: translateY(100px);
        opacity: 0;
    }
}

@keyframes milkPour {
    0% { transform: translate(-50%, -50%) scale(0); }
    50% { transform: translate(-50%, -50%) scale(1.2); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

@keyframes honeyDrip {
    0% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -30%) scale(0.8); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

@keyframes gheeGlow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.5); }
}

@keyframes coconutOffer {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes offeringGlow {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}
/* =========================================================== */
/* BACK BUTTON FIXES - ADD THIS AT THE END OF style.css */
/* =========================================================== */

/* Ensure back buttons are always clickable */
.back-btn {
    position: relative !important;
    z-index: 9999 !important;
    background: none !important;
    border: none !important;
    color: var(--primary-gold) !important;
    font-size: 1.5rem !important;
    cursor: pointer !important;
    padding: 0.5rem !important;
    margin-right: 1rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 40px !important;
    min-height: 40px !important;
}

.back-btn:active {
    transform: scale(0.9) !important;
}

.back-btn:hover {
    background: rgba(255, 215, 0, 0.1) !important;
    border-radius: 50% !important;
}

/* Fix screen header z-index */
.screen-header {
    position: relative !important;
    z-index: 1000 !important;
    display: flex !important;
    align-items: center !important;
    background: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(10px) !important;
    border-bottom: 1px solid var(--border-glow) !important;
}

.screen-header h2 {
    flex: 1 !important;
    text-align: center !important;
    margin: 0 !important;
    padding: 0 1rem !important;
}

/* Fix for specific screens */
#profile .screen-header,
#jap .screen-header,
#custom-mantra .screen-header,
#god-selection .screen-header,
#settings .screen-header,
#theme-store .screen-header,
#upi-payment-screen .screen-header,
#about .screen-header,
#privacy .screen-header,
#terms .screen-header {
    display: flex !important;
    align-items: center !important;
    padding: 1rem !important;
    background: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(10px) !important;
}
/* =====================================
   SAFE DONATION BUTTON UPGRADE
   (NO LAYOUT / NO DAMAGE)
===================================== */

.action-btn.donate {
    background: linear-gradient(45deg, #2ecc71, #90ee90);
    color: #000 !important;
    font-weight: 700;
    letter-spacing: 0.3px;
    border: none;
    box-shadow: 0 4px 14px rgba(46, 204, 113, 0.45);
}

.action-btn.donate:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(46, 204, 113, 0.6);
}

.action-btn.donate::after {
    content: "🐄 Animal Food Seva";
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    color: rgba(0,0,0,0.7);
    margin-top: 4px;
}
