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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    background: #0a0a1a;
    color: #fff;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Cosmic Background - Matching login page */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(124, 58, 237, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.2) 0%, transparent 60%),
        linear-gradient(180deg, #0a0a1a 0%, #1a0a2e 50%, #0a0a1a 100%);
    z-index: 0;
    pointer-events: none;
}

/* Animated twinkling stars */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, #fff, transparent),
        radial-gradient(2px 2px at 60% 70%, #fff, transparent),
        radial-gradient(1px 1px at 50% 50%, #fff, transparent),
        radial-gradient(1px 1px at 80% 10%, #fff, transparent),
        radial-gradient(2px 2px at 90% 80%, #fff, transparent),
        radial-gradient(1px 1px at 33% 40%, #fff, transparent),
        radial-gradient(1px 1px at 66% 60%, #fff, transparent),
        radial-gradient(1px 1px at 15% 20%, #fff, transparent),
        radial-gradient(1px 1px at 85% 90%, #fff, transparent),
        radial-gradient(2px 2px at 40% 60%, #fff, transparent);
    background-repeat: repeat;
    background-size: 200% 200%;
    animation: twinkle 8s ease-in-out infinite;
    opacity: 0.6;
    z-index: 0;
    pointer-events: none;
}

@keyframes twinkle {
    0%, 100% { 
        opacity: 0.3;
        transform: scale(1);
    }
    50% { 
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    padding: 20px;
    min-height: calc(100vh - 140px); /* Account for nav and footer */
}

header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
    padding: 30px 20px;
    position: relative;
    z-index: 1;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    animation: fadeInDown 0.8s ease;
}

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

.subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
    font-weight: 300;
}

.controls-card, .info-card, .choghadiya-section, .info-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: fadeInUp 0.6s ease;
    position: relative;
    z-index: 1;
    color: #333;
}

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

/* Current Choghadiya Card */
.current-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    padding: 35px;
    margin-bottom: 30px;
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    animation: fadeInScale 0.8s ease;
    color: #333;
    z-index: 1;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.current-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

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

.current-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

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

.current-title {
    font-size: 2rem;
    color: #333;
    margin-bottom: 20px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.current-content {
    position: relative;
    z-index: 1;
}

.current-name {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.current-time {
    font-size: 1.5rem;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 12px;
}

.current-desc {
    font-size: 1.1rem;
    color: #6b7280;
    margin-bottom: 25px;
    line-height: 1.6;
}

.current-progress {
    margin-bottom: 25px;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    border-radius: 10px;
    transition: width 1s ease;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.progress-text {
    text-align: center;
    margin-top: 8px;
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 600;
}

.current-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.current-actions .btn-action {
    flex: 1;
    padding: 14px 20px;
    font-size: 1rem;
}

.next-info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    padding: 15px 20px;
    border-radius: 12px;
    border-left: 4px solid #3b82f6;
    font-size: 0.95rem;
    color: #1e40af;
    position: relative;
    z-index: 1;
}

.next-info strong {
    font-weight: 700;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
    font-size: 0.95rem;
}

.input-field {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.input-field:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-field.small {
    width: calc(50% - 5px);
    display: inline-block;
    margin-right: 10px;
}

.input-field.small:last-child {
    margin-right: 0;
}

.search-container {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.search-container .input-field {
    flex: 1;
}

.btn-search {
    padding: 14px 24px;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-search:hover {
    background: #059669;
    transform: translateY(-1px);
}

.search-results {
    max-height: 300px;
    overflow-y: auto;
    border-radius: 12px;
    margin-top: 10px;
}

.search-result-item {
    padding: 12px 16px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-result-item:hover {
    background: #e9ecef;
    border-color: #667eea;
    transform: translateX(5px);
}

.search-result-item.selected {
    background: #e0e7ff;
    border-color: #667eea;
    font-weight: 600;
}

.selected-location-info {
    padding: 15px;
    background: #e0e7ff;
    border-radius: 10px;
    margin-top: 15px;
    border-left: 4px solid #667eea;
}

.selected-location-info strong {
    color: #667eea;
}

.coords-inputs {
    display: flex;
    gap: 10px;
}

.btn-primary {
    width: 100%;
    padding: 16px 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.btn-primary:active {
    transform: translateY(0);
}

.info-card h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.info-card p {
    color: #666;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.sun-times {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.sun-time {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.sun-time .icon {
    font-size: 2.5rem;
}

.sun-time .label {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

.sun-time .time {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
}

.choghadiya-section h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.legend-item {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
}

.legend-item.amrit { background: #10b981; }
.legend-item.shubh { background: #3b82f6; }
.legend-item.labh { background: #8b5cf6; }
.legend-item.char { background: #f59e0b; }
.legend-item.udveg { background: #ef4444; }
.legend-item.kaal { background: #dc2626; }
.legend-item.rog { background: #991b1b; }

.choghadiya-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.choghadiya-item {
    padding: 20px;
    border-radius: 15px;
    border-left: 5px solid;
    transition: all 0.3s ease;
    cursor: pointer;
}

.choghadiya-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.choghadiya-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.btn-action {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.btn-calendar {
    background: #4285f4;
    color: white;
}

.btn-calendar:hover {
    background: #2a75f3;
    transform: translateY(-2px);
}

.btn-insights {
    background: #8b5cf6;
    color: white;
}

.btn-insights:hover {
    background: #7c3aed;
    transform: translateY(-2px);
}

.choghadiya-item.amrit { 
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-color: #10b981;
}

.choghadiya-item.shubh { 
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-color: #3b82f6;
}

.choghadiya-item.labh { 
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
    border-color: #8b5cf6;
}

.choghadiya-item.char { 
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #f59e0b;
}

.choghadiya-item.udveg { 
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-color: #ef4444;
}

.choghadiya-item.kaal { 
    background: linear-gradient(135deg, #fecaca 0%, #fca5a5 100%);
    border-color: #dc2626;
}

.choghadiya-item.rog { 
    background: linear-gradient(135deg, #fecaca 0%, #fca5a5 100%);
    border-color: #dc2626;
}

.choghadiya-item.active {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    border-width: 3px;
    animation: highlightPulse 2s ease-in-out infinite;
}

@keyframes highlightPulse {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    }
    50% {
        box-shadow: 0 8px 35px rgba(102, 126, 234, 0.6);
    }
}

.choghadiya-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1f2937;
}

.choghadiya-time {
    font-size: 1.1rem;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 8px;
}

.choghadiya-desc {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
}

.info-section h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.info-content {
    color: #555;
    line-height: 1.8;
}

.info-content p {
    margin-bottom: 15px;
}

.info-content ul {
    list-style: none;
    padding-left: 0;
}

.info-content li {
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
}

.info-content li:last-child {
    border-bottom: none;
}

.info-content strong {
    color: #667eea;
}

/* Contact Form Section */
.contact-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 25px;
    padding: 40px;
    margin-bottom: 25px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
    border: 2px solid rgba(102, 126, 234, 0.2);
}

.contact-header {
    text-align: center;
    margin-bottom: 35px;
}

.contact-header h2 {
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-header p {
    font-size: 1.1rem;
    color: #666;
}

.contact-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 35px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.2);
}

.feature-icon {
    font-size: 2rem;
    line-height: 1;
}

.feature-item strong {
    display: block;
    color: #667eea;
    font-size: 1.05rem;
    margin-bottom: 5px;
}

.feature-item p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.contact-form {
    background: white;
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.contact-form .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.contact-form textarea.input-field {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.captcha-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
}

.btn-submit {
    position: relative;
    overflow: hidden;
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-submit:hover::before {
    width: 300px;
    height: 300px;
}

.btn-text, .btn-loader {
    position: relative;
    z-index: 1;
}

.spinner-small {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}

.form-message {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 12px;
    font-weight: 600;
    text-align: center;
}

.form-message.success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border: 2px solid #10b981;
}

.form-message.error {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border: 2px solid #ef4444;
}

.contact-info {
    margin-top: 25px;
}

.loading-indicator {
    text-align: center;
    padding: 20px;
    margin-top: 15px;
}

.spinner {
    border: 4px solid #f3f4f6;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

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

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

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

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 700px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: slideUp 0.3s ease;
    position: relative;
}

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

.modal-close {
    color: #999;
    float: right;
    font-size: 32px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover,
.modal-close:focus {
    color: #333;
}

#modal-title {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.modal-body {
    line-height: 1.8;
    color: #555;
}

.insights-loading {
    text-align: center;
    padding: 40px 20px;
}

.insight-section {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

.insight-section h3 {
    color: #667eea;
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.insight-section ul {
    list-style: none;
    padding-left: 0;
}

.insight-section li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.insight-section li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

.insight-avoid li:before {
    content: "✗";
    color: #ef4444;
}

footer {
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    padding: 30px 20px;
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
    background: transparent;
    margin-top: 40px;
}

footer a {
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.3s ease;
}

footer a:hover {
    color: #fbbf24;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .sun-times {
        grid-template-columns: 1fr;
    }
    
    .choghadiya-grid {
        grid-template-columns: 1fr;
    }
    
    .legend {
        justify-content: center;
    }
    
    .controls-card, .info-card, .choghadiya-section, .info-section {
        padding: 20px;
    }
    
    .current-card {
        padding: 25px;
    }
    
    .current-name {
        font-size: 2rem;
    }
    
    .current-time {
        font-size: 1.2rem;
    }
    
    .current-title {
        font-size: 1.5rem;
    }
    
    .current-actions {
        flex-direction: column;
    }
    
    .contact-section {
        padding: 25px;
    }
    
    .contact-header h2 {
        font-size: 1.8rem;
    }
    
    .contact-form {
        padding: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    body {
        padding: 0;
    }
    
    .container {
        padding: 10px;
    }
    
    header {
        padding: 20px 10px;
        margin-bottom: 20px;
    }
    
    .input-field.small {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }

    .coords-inputs {
        flex-direction: column;
    }
    
    .search-container {
        flex-direction: column;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 20px;
    }
    
    .choghadiya-actions {
        flex-direction: column;
    }
    
    .current-card {
        padding: 20px;
    }
    
    .current-badge {
        font-size: 0.75rem;
        padding: 6px 14px;
    }
    
    .current-name {
        font-size: 1.6rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* ===============================
   USER MENU (TOP RIGHT ACCOUNT)
   =============================== */

/* User menu in navigation bar */
#user-menu-item {
    display: none;
  align-items: center;
    gap: 8px;
    padding: 8px 12px;
    margin-left: 0;
}

#user-menu-item .nav-text {
    max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
}

#user-menu-item .nav-icon {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9) !important;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

#logout-menu-item {
    display: none;
    padding: 8px 12px;
    margin-left: 0;
}

#logout-menu-item button {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 5px 10px;
    border-radius: 6px;
  cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s;
    font-family: inherit;
    white-space: nowrap;
}

#logout-menu-item button:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
  transform: translateY(-1px);
}

/* Old floating user menu - hidden */
#user-menu {
  display: none !important;
}

/* Mobile safety */
@media (max-width: 600px) {
  #user-menu-item .nav-text {
    max-width: 80px;
    font-size: 0.85rem;
  }
  
  #logout-menu-item button {
    padding: 5px 10px;
    font-size: 0.8rem;
  }

  #user-name {
    max-width: 90px;
    font-size: 13px;
  }
}

/* ===============================
   PREMIUM BANNER
   =============================== */

#premium-banner {
  background: linear-gradient(90deg, #ffcc70, #ff9f1c);
  color: #000;
  padding: 12px 16px;
  border-radius: 14px;
  margin: 16px 0;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 6px 16px rgba(255, 160, 0, 0.4);
}

/* Notification Styles */
.notification-status {
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
}

.notification-status.enabled {
    color: #10b981;
    background: rgba(16, 185, 129, 0.2);
}

.notification-status.disabled {
    color: #6b7280;
    background: rgba(107, 114, 128, 0.2);
}

#notification-toggle {
    appearance: none;
    width: 44px;
    height: 24px;
    background: #6b7280;
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: background 0.3s;
    outline: none;
}

#notification-toggle:checked {
    background: #10b981;
}

#notification-toggle::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    top: 2px;
    left: 2px;
    transition: transform 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

#notification-toggle:checked::before {
    transform: translateX(20px);
}

/* Navigation Bar Styles */
.main-nav {
    background: rgba(26, 26, 46, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    margin-bottom: 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
}

.nav-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    min-width: 140px;
    max-width: 140px;
    z-index: 1001;
}

.nav-logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fbbf24;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
    transition: all 0.3s ease;
}

.nav-logo:hover {
    color: #fcd34d;
    text-shadow: 0 2px 12px rgba(251, 191, 36, 0.5);
    transform: scale(1.02);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 3px;
    list-style: none;
    flex: 1 1 auto;
    justify-content: flex-end;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    min-width: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-left: 10px;
}

.nav-menu::-webkit-scrollbar {
    display: none;
}

.nav-item {
    display: flex !important;
    align-items: center !important;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none !important;
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
    background: transparent !important;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #fbbf24 !important;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.2);
}

.nav-item:hover .nav-icon {
    color: #fbbf24;
    filter: drop-shadow(0 2px 4px rgba(251, 191, 36, 0.4));
}

.nav-item.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.5);
}

.nav-item.active .nav-icon {
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: #667eea;
    border-radius: 2px;
}

.nav-icon {
    font-size: 1.2rem;
    display: inline-block;
    color: rgba(255, 255, 255, 0.9);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.nav-text {
    font-size: 0.95rem;
    display: inline-block;
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    gap: 5px;
    z-index: 10000 !important;
    position: relative;
    /* Better touch target for mobile - minimum 44x44px */
    min-width: 44px;
    min-height: 44px;
    width: 44px;
    height: 44px;
    justify-content: center;
    align-items: center;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    touch-action: manipulation;
    /* Ensure button is always clickable */
    pointer-events: auto !important;
    user-select: none;
    -webkit-user-select: none;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 3px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Page Styles */
.page {
    animation: fadeIn 0.4s ease;
}

/* Responsive Navigation */
@media (max-width: 1024px) {
    .nav-menu {
        gap: 3px;
    }
    
    .nav-item {
        padding: 8px 10px;
        font-size: 0.85rem;
    }
    
    .nav-brand {
        min-width: 120px;
    }
    
    .nav-logo {
        font-size: 1.3rem;
    }
    
    #user-menu-item .nav-text {
        max-width: 80px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-container {
        padding: 0 15px;
        gap: 10px;
    }
    
    .nav-brand {
        min-width: 100px;
    }
    
    .nav-logo {
        font-size: 1.1rem;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(26, 26, 46, 0.98);
        backdrop-filter: blur(30px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        flex-direction: column;
        padding: 20px;
        box-shadow: 
            0 4px 20px rgba(0, 0, 0, 0.5),
            0 0 0 1px rgba(255, 255, 255, 0.1);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 9999;
        width: 100%;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        gap: 0;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        /* Prevent menu from being clickable when hidden */
        pointer-events: none;
    }

    .nav-menu.active {
        transform: translateX(0);
        pointer-events: auto;
    }

    .nav-item {
        width: 100%;
        justify-content: flex-start;
        padding: 15px 20px;
        margin: 2px 0;
        border-radius: 8px;
    }
    
    #language-switcher #language-dropdown {
        position: fixed !important;
        right: 20px;
        left: auto;
        top: auto;
        bottom: auto;
    }
    
    #user-menu-item,
    #logout-menu-item {
        display: flex !important;
        width: 100%;
        margin-left: 0;
    }

    .nav-text {
        font-size: 1rem;
    }
    
    #language-switcher #language-dropdown {
        position: fixed !important;
        right: 20px !important;
        left: auto !important;
    }
}

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
}

@media (max-width: 480px) {
    .nav-logo {
        font-size: 1.2rem;
    }

    .nav-icon {
        font-size: 1rem;
        color: rgba(255, 255, 255, 0.9);
        filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
    }
}

/* Badge Styles */
.badge-auspicious {
    background: rgba(16, 185, 129, 0.2) !important;
    color: #10b981 !important;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-neutral {
    background: rgba(245, 158, 11, 0.2) !important;
    color: #f59e0b !important;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-inauspicious {
    background: rgba(239, 68, 68, 0.2) !important;
    color: #ef4444 !important;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Tooltip Styles */
.tooltip-text {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 5px;
    padding: 8px 12px;
    background: rgba(0,0,0,0.9);
    color: white;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 1000;
}

label span[style*="cursor: help"]:hover .tooltip-text {
    opacity: 1;
}

/* Choghadiya Expanded Info */
.choghadiya-expanded-info {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Rahu Kaal Card */
.rahu-kaal-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.rahu-kaal-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(124, 58, 237, 0.4) !important;
}

/* Language Switcher */
#language-switcher {
    position: relative;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
    pointer-events: auto;
    user-select: none;
}

#language-switcher:hover {
    background: rgba(102, 126, 234, 0.1);
    border-radius: 8px;
}

#language-switcher #language-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    min-width: 130px;
    z-index: 10000;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    pointer-events: auto;
}

#language-switcher #language-dropdown .lang-option {
    padding: 12px 16px;
    cursor: pointer;
    color: #333;
    transition: background 0.2s;
    font-size: 0.95rem;
    background: white;
    border: none;
    width: 100%;
    text-align: left;
    pointer-events: auto;
    user-select: none;
}

#language-switcher #language-dropdown .lang-option:hover {
    background: #f3f4f6;
}

#language-switcher #language-dropdown .lang-option:active {
    background: #e5e7eb;
}

#language-switcher #current-lang-text {
    font-weight: 600;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9) !important;
    pointer-events: none;
}

#language-switcher .nav-icon {
    pointer-events: none;
    color: rgba(255, 255, 255, 0.9);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

/* Language Selection Buttons on Profile Page */
.lang-selection-btn {
    transition: all 0.3s ease !important;
}

.lang-selection-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    border-color: #667eea !important;
}

.lang-selection-btn:active {
    transform: translateY(0);
}

/* Profile Page Styles */
#profile-user-info {
    animation: fadeInUp 0.6s ease;
}

#profile-user-photo img {
    transition: transform 0.3s ease;
}

#profile-user-photo:hover img {
    transform: scale(1.05);
}

/* ===============================
   RAM SHALAKA PRASHNA - 27 CHAUPAI
   =============================== */

/* Prashna Screen Container */
.prashna-screen {
    animation: fadeIn 0.4s ease;
    position: relative;
    z-index: 1;
}

/* Sankalp Screen Animation */
@keyframes prashnaPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

#prashna-screen-2 [style*="font-size: 5rem"] {
    animation: prashnaPulse 2s ease-in-out infinite;
}

#prashna-screen-2 .spinner {
    border: 5px solid rgba(102, 126, 234, 0.2);
    border-top: 5px solid #667eea;
    border-right: 5px solid rgba(102, 126, 234, 0.3);
    border-bottom: 5px solid rgba(102, 126, 234, 0.3);
    border-left: 5px solid rgba(102, 126, 234, 0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: prashnaSpin 1s linear infinite;
}

/* Outcome Badge Styling */
.prashna-outcome-badge {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin-top: 15px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* Prashna Error Message */
#prashna-error {
    display: none;
    color: #ef4444;
    font-size: 0.9rem;
    margin-top: 8px;
    padding: 12px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 8px;
    border-left: 3px solid #ef4444;
    position: relative;
    z-index: 1;
}

/* Prashna Question Input */
#prashna-question {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
}

/* Prashna Result Sections */
#prashna-chaupai {
    font-family: 'Noto Sans Devanagari', 'Arial Unicode MS', 'Devanagari', sans-serif;
    direction: rtl;
    text-align: center;
    unicode-bidi: embed;
}

/* Prashna Action Buttons */
#prashna-ask-another,
#prashna-share-result {
    transition: all 0.3s ease;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

#prashna-ask-another:hover,
#prashna-share-result:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

#prashna-ask-another:active,
#prashna-share-result:active {
    transform: translateY(0);
}

/* Mobile Responsive for Prashna */
@media (max-width: 768px) {
    .prashna-outcome-badge {
        font-size: 0.85rem;
        padding: 8px 20px;
    }
    
    #prashna-chaupai {
        font-size: 1.2rem;
        line-height: 1.7;
    }
    
    #prashna-screen-2 {
        padding: 40px 20px;
    }
    
    #prashna-screen-2 h2 {
        font-size: 1.5rem;
    }
    
    #prashna-ask-another,
    #prashna-share-result {
        width: 100%;
        margin-bottom: 10px;
    }
}