/* 
   ==========================================================================
   ROYAL RAJASTHANI & MARWARI DESIGN SYSTEM (INDEX.CSS)
   ==========================================================================
*/

/* CSS Variables */
:root {
    --saffron: #FF801A;
    --saffron-dark: #E55B00;
    --crimson: #B6354B;
    --crimson-dark: #861F32;
    --gold: #D4AF37;
    --gold-light: #F4E29B;
    --cream: #FCFAF4;
    --cream-dark: #F5EEDB;
    --charcoal: #4A332B;
    --charcoal-light: #7A5B51;
    --shadow: rgba(122, 91, 81, 0.12);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --font-heading: 'Rozha One', 'Cinzel', 'Mukta', serif;
    --font-body: 'Poppins', 'Mukta', sans-serif;
}

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

.text-center {
    text-align: center;
}

body {
    background-color: var(--cream);
    background-image: 
        radial-gradient(#E2D1A6 1.5px, transparent 0),
        radial-gradient(#E2D1A6 1.5px, transparent 0);
    background-size: 28px 28px;
    background-position: 0 0, 14px 14px;
    color: var(--charcoal);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Sparkles Particle Effect */
#particle-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    background: radial-gradient(circle, var(--gold-light) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0.7;
    animation: floatParticle 8s infinite linear;
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-10vh) translateX(50px) scale(1);
        opacity: 0;
    }
}

/* Container */
.app-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 2;
}

/* Top Samvat Bar */
.top-samvat-bar {
    background: linear-gradient(90deg, var(--cream-dark) 0%, var(--cream) 50%, var(--cream-dark) 100%);
    border-bottom: 2px solid var(--gold);
    color: var(--crimson-dark);
    padding: 8px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px 8px 0 0;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.samvat-item {
    font-weight: 600;
}

.samvat-item .label {
    opacity: 0.8;
    margin-right: 5px;
}

.samvat-item .value {
    color: var(--crimson);
    border-bottom: 1px dashed var(--gold);
}

.samvat-ticker {
    flex: 1;
    margin: 0 30px;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.samvat-ticker span {
    display: inline-block;
    padding-left: 100%;
    animation: ticker 25s infinite linear;
    color: var(--crimson-dark);
    font-weight: 600;
}

@keyframes ticker {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* Royal Arch Header */
.royal-header {
    background: linear-gradient(135deg, var(--cream) 0%, var(--cream-dark) 100%);
    border-left: 4px solid var(--gold);
    border-right: 4px solid var(--gold);
    border-bottom: 4px solid var(--gold);
    padding: 30px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 10px 30px var(--shadow);
    margin-bottom: 25px;
}

.royal-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: repeating-linear-gradient(90deg, var(--gold) 0px, var(--gold) 10px, transparent 10px, transparent 20px);
}

.mandala-bg {
    flex-shrink: 0;
    animation: spinMandala 60s infinite linear;
}

.mandala-bg svg {
    display: block;
    width: 100%;
    height: 100%;
}

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

.header-content {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ganesha-header-img-container {
    margin-bottom: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    filter: drop-shadow(0 4px 8px rgba(212, 175, 55, 0.4));
    animation: floatGanesha 4s infinite ease-in-out;
}

.header-om {
    position: absolute;
    top: 12px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid var(--gold);
    background: radial-gradient(circle, #FFF9E6 0%, #FFF 100%);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.4), inset 0 0 5px rgba(212, 175, 55, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--crimson);
    font-weight: bold;
    user-select: none;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.4s ease, box-shadow 0.4s ease, color 0.4s ease;
    z-index: 10;
}

.left-om {
    left: 20px;
}

.right-om {
    right: 20px;
}

.header-om:hover {
    color: var(--saffron-dark);
    transform: scale(1.2) rotate(360deg);
    border-color: var(--saffron);
    box-shadow: 0 0 15px rgba(255, 128, 26, 0.6), inset 0 0 8px rgba(255, 128, 26, 0.3);
}

.header-swastik {
    font-size: 1.8rem;
    color: var(--gold);
    font-weight: bold;
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
    margin: 0 15px;
    user-select: none;
    transition: transform 0.3s ease, color 0.3s ease;
}

.header-swastik:hover {
    color: var(--saffron);
    transform: scale(1.25);
}

.ganesha-header-img {
    height: 85px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s ease;
    filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.4));
}

.ganesha-header-img:hover {
    transform: scale(1.12);
    filter: drop-shadow(0 0 12px rgba(255, 128, 26, 0.7));
}

@keyframes floatGanesha {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.jharokha-title-container {
    position: relative;
    margin-bottom: 10px;
}

.main-title {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    background: linear-gradient(135deg, var(--crimson) 0%, var(--crimson-dark) 50%, var(--crimson) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    font-weight: 800;
    letter-spacing: 1px;
}

.subtitle {
    font-family: var(--font-body);
    color: var(--saffron-dark);
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: -5px;
}

/* Live Info Widget */
.live-info-widget {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-top: 15px;
    background: #FFF;
    padding: 10px 25px;
    border-radius: 30px;
    border: 1.5px solid var(--gold);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.live-clock-container {
    text-align: left;
    border-right: 1px solid rgba(212, 175, 55, 0.2);
    padding-right: 30px;
}

.time-display {
    color: var(--crimson);
    font-size: 1.8rem;
    font-weight: 700;
    font-family: monospace;
    letter-spacing: 1px;
    text-shadow: 0 0 2px var(--gold-light);
}

.date-display {
    color: var(--charcoal-light);
    font-size: 0.85rem;
    font-weight: 600;
}

.tithi-info-container {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--charcoal);
}

.tithi-display {
    color: var(--crimson);
    font-weight: 700;
    font-size: 1.05rem;
    border-bottom: 1.5px dashed var(--gold);
    padding-bottom: 2px;
}

.royal-select {
    background-color: #FFF;
    color: var(--charcoal);
    border: 1.5px solid var(--gold);
    padding: 6px 12px;
    border-radius: 20px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    cursor: pointer;
    outline: none;
    transition: var(--transition);
}

.royal-select:focus {
    box-shadow: 0 0 8px var(--gold);
    background-color: var(--cream-dark);
}

/* Highlight Banner */
.today-highlight-banner {
    background: linear-gradient(135deg, var(--saffron) 0%, var(--saffron-dark) 100%);
    border: 2px solid var(--gold);
    border-radius: 12px;
    color: #FFF;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    box-shadow: 0 6px 15px rgba(212, 175, 55, 0.15);
    position: relative;
    overflow: hidden;
}

.today-highlight-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(30deg, transparent 40%, rgba(255, 255, 255, 0.1) 50%, transparent 60%);
    animation: shine 4s infinite linear;
}

@keyframes shine {
    0% { transform: translate(-30%, -30%); }
    100% { transform: translate(30%, 30%); }
}

.banner-icon {
    font-size: 2.2rem;
    margin-right: 20px;
    animation: pulseDiya 2s infinite ease-in-out;
}

@keyframes pulseDiya {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 2px var(--gold)); }
    50% { transform: scale(1.15); filter: drop-shadow(0 0 10px var(--gold-light)); }
}

.banner-content {
    flex: 1;
}

.banner-title {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--gold-light);
    letter-spacing: 0.5px;
}

.banner-desc {
    font-size: 0.95rem;
    opacity: 0.95;
}

.banner-date {
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--gold);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Grid Layout */
.main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 25px;
    margin-bottom: 25px;
}

/* Card Styling */
.royal-card {
    background-color: #FFF;
    border: 2px solid var(--gold);
    border-radius: 16px;
    box-shadow: 0 8px 20px var(--shadow);
    overflow: hidden;
    position: relative;
    transition: var(--transition);
}

.royal-card::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    border: 1px dashed rgba(212, 175, 55, 0.7);
    pointer-events: none;
    border-radius: 12px;
}

.card-header {
    background: linear-gradient(135deg, var(--cream) 0%, var(--cream-dark) 100%);
    color: var(--crimson-dark);
    padding: 18px 22px;
    position: relative;
    border-bottom: 2px solid var(--gold);
}

.card-header h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    letter-spacing: 0.5px;
    color: var(--crimson);
}

.card-subtitle {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 2px;
    font-weight: 500;
    color: var(--charcoal-light);
}

.header-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.2rem;
    opacity: 0.15;
    color: var(--crimson);
}

.card-body {
    padding: 22px;
}

/* Panchang Grid */
.panchang-date-selector {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--cream-dark);
    padding: 8px 15px;
    border-radius: 8px;
    margin-bottom: 18px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.panchang-date-selector label {
    font-weight: 600;
    font-size: 0.9rem;
}

.royal-input {
    background-color: #FFF;
    border: 1.5px solid var(--gold);
    padding: 6px 12px;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}

.royal-input:focus {
    box-shadow: 0 0 6px var(--saffron);
}

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

.panchang-item {
    background-color: var(--cream);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.panchang-item:hover {
    border-color: var(--saffron);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.panchang-item.full-width {
    grid-column: span 2;
}

.p-label {
    font-size: 0.8rem;
    color: var(--charcoal-light);
    opacity: 0.7;
    font-weight: 500;
}

.p-val {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-top: 2px;
}

.highlight-val {
    color: var(--crimson);
    font-family: var(--font-heading);
    font-size: 1.25rem;
}

/* Muhurat Section */
.muhurat-section {
    border-top: 1px dashed rgba(212, 175, 55, 0.3);
    padding-top: 15px;
}

.muhurat-section h3 {
    font-size: 1.05rem;
    margin-bottom: 12px;
    color: var(--crimson);
    font-weight: 700;
}

.muhurat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.muhurat-box {
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    border: 1.5px solid transparent;
}

.shubh-muhurat {
    background-color: #EBF7EE;
    border-color: #A9DFBF;
}

.shubh-muhurat .m-title {
    color: #1E8449;
    font-weight: 600;
    font-size: 0.85rem;
}

.shubh-muhurat .m-time {
    font-weight: 700;
    font-size: 1rem;
    color: #145A32;
    margin-top: 3px;
}

.ashubh-muhurat {
    background-color: #FDF2F2;
    border-color: #FADBD8;
}

.ashubh-muhurat .m-title {
    color: #C0392B;
    font-weight: 600;
    font-size: 0.85rem;
}

.ashubh-muhurat .m-time {
    font-weight: 700;
    font-size: 1rem;
    color: #7B241C;
    margin-top: 3px;
}

.muhurat-status-badge {
    font-size: 0.72rem;
    font-weight: 600;
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.muhurat-status-badge.active {
    color: #1E8449;
    border-color: #A9DFBF;
    background-color: #EBF7EE;
}

.muhurat-status-badge.upcoming {
    color: #D35400;
    border-color: #F5CBA7;
    background-color: #FDF5E6;
}

.muhurat-status-badge.passed {
    color: #7F8C8D;
    border-color: #BDC3C7;
    background-color: #F2F4F4;
    opacity: 0.75;
}

.muhurat-status-badge::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: currentColor;
}

.muhurat-status-badge.active::before,
.muhurat-status-badge.upcoming::before {
    animation: statusPulse 1.5s infinite ease-in-out;
}

@keyframes statusPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.6); opacity: 0.3; }
}



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

/* Kahavat Box */
.kahavat-box {
    background: linear-gradient(135deg, var(--cream-dark) 0%, var(--cream) 100%);
    border-left: 4px solid var(--gold);
    padding: 20px;
    border-radius: 0 12px 12px 0;
    margin-bottom: 15px;
    position: relative;
}

.quote-icon {
    position: absolute;
    top: 5px;
    right: 15px;
    font-size: 3.5rem;
    color: rgba(212, 175, 55, 0.25);
    font-family: serif;
}

.kahavat-marwari {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--crimson-dark);
    margin-bottom: 8px;
    line-height: 1.4;
}

.kahavat-hindi {
    font-size: 0.95rem;
    color: var(--charcoal-light);
}

.kahavat-tag {
    display: inline-block;
    background-color: var(--saffron);
    color: #FFF;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 10px;
    margin-top: 12px;
    font-weight: 600;
}

/* Recipe Style */
.recipe-box {
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
}

.recipe-image-placeholder {
    height: 140px;
    background: linear-gradient(45deg, var(--crimson-dark), var(--saffron));
    display: flex;
    align-items: flex-end;
    padding: 15px;
    position: relative;
}

/* Bandhani Pattern overlay */
.recipe-image-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.15) 15%, transparent 16%);
    background-size: 16px 16px;
    opacity: 0.4;
}

.recipe-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--gold);
    color: var(--charcoal);
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 700;
    border: 1px solid #FFF;
}

.recipe-image-placeholder h4 {
    color: #FFF;
    font-family: var(--font-heading);
    font-size: 1.35rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
    z-index: 1;
}

.recipe-details {
    padding: 15px;
    background-color: var(--cream);
}

.recipe-info-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--saffron-dark);
    margin-bottom: 10px;
    border-bottom: 1px dashed rgba(212, 175, 55, 0.2);
    padding-bottom: 5px;
}

.recipe-details h5 {
    font-size: 0.9rem;
    color: var(--crimson);
    margin-top: 8px;
    margin-bottom: 3px;
    font-weight: 700;
}

.ingredients-list {
    font-size: 0.85rem;
    color: var(--charcoal-light);
}

.steps-list {
    font-size: 0.85rem;
    color: var(--charcoal);
}


/* Buttons */
.royal-btn {
    display: block;
    width: 100%;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.primary-btn {
    background: linear-gradient(135deg, var(--saffron) 0%, var(--saffron-dark) 100%);
    color: #FFF;
    border: 1.5px solid var(--gold);
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(212, 175, 55, 0.4);
}

.secondary-btn {
    background-color: #FFF;
    border: 1.5px solid var(--gold);
    color: var(--crimson);
}

.secondary-btn:hover {
    background-color: var(--cream-dark);
}

/* Festivals Countdown & List */
.countdown-hero-box {
    background: linear-gradient(135deg, #FFF9F2 0%, #FFF0E0 100%);
    border: 1.5px solid var(--gold);
    border-radius: 12px;
    padding: 18px;
    color: var(--charcoal);
    text-align: center;
    margin-bottom: 18px;
    box-shadow: 0 4px 12px rgba(229, 91, 0, 0.08);
}

.countdown-title {
    font-size: 0.85rem;
    color: var(--saffron-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.countdown-hero-box h3 {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    color: var(--crimson);
    margin-top: 2px;
    margin-bottom: 12px;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.time-block {
    display: flex;
    flex-direction: column;
    background: #FFF;
    border: 1.5px solid var(--gold);
    padding: 6px 10px;
    border-radius: 8px;
    min-width: 55px;
}

.time-num {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--saffron-dark);
    font-family: monospace;
}

.time-lbl {
    font-size: 0.65rem;
    color: var(--charcoal-light);
    opacity: 0.95;
    margin-top: -2px;
}

.countdown-date-info {
    font-size: 0.85rem;
    color: var(--charcoal);
    font-weight: 600;
}

.festival-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.filter-btn {
    flex: 1;
    background-color: var(--cream-dark);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    padding: 6px 10px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--charcoal-light);
    transition: var(--transition);
}

.filter-btn.active {
    background-color: var(--crimson);
    color: #FFF;
    border-color: var(--gold);
}

.festivals-scroll-list {
    max-height: 280px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 5px;
}

/* Custom Scrollbar */
.festivals-scroll-list::-webkit-scrollbar,
.calendar-days-grid::-webkit-scrollbar {
    width: 6px;
}
.festivals-scroll-list::-webkit-scrollbar-thumb,
.calendar-days-grid::-webkit-scrollbar-thumb {
    background-color: var(--gold);
    border-radius: 3px;
}

.festival-item-card {
    background-color: var(--cream);
    border: 1.5px solid rgba(212, 175, 55, 0.2);
    border-radius: 10px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
}

.festival-item-card:hover {
    border-color: var(--saffron);
    background-color: #FFF;
    transform: translateX(4px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.fest-meta {
    flex: 1;
}

.fest-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fest-item-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--crimson);
}

.fest-badge {
    font-size: 0.65rem;
    padding: 1px 6px;
    border-radius: 10px;
    font-weight: 600;
}

.badge-rajasthani {
    background-color: #FCF3CF;
    color: #B7950B;
    border: 1px solid #F4D03F;
}

.badge-national {
    background-color: #E8F8F5;
    color: #117864;
    border: 1px solid #76D7C4;
}

.fest-item-date {
    font-size: 0.8rem;
    color: var(--charcoal-light);
    opacity: 0.85;
    margin-top: 2px;
}

.fest-detail-btn {
    background-color: #FFF;
    border: 1px solid var(--gold);
    color: var(--charcoal);
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.fest-detail-btn:hover {
    background-color: var(--gold);
    color: var(--charcoal);
}

/* Calendar Styling */
.calendar-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, var(--cream) 0%, var(--cream-dark) 100%);
    border-radius: 8px;
    padding: 8px 15px;
    margin-bottom: 15px;
    color: var(--crimson-dark);
    border: 1.5px solid var(--gold);
}

.cal-control-btn {
    background: none;
    border: none;
    color: var(--crimson);
    font-weight: 700;
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition);
}

.cal-control-btn:hover {
    color: var(--saffron-dark);
    transform: scale(1.08);
}

.cal-month-year {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
}

.calendar-week-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
    text-align: center;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--crimson);
    border-bottom: 1.5px solid var(--cream-dark);
    padding-bottom: 6px;
    margin-bottom: 10px;
}

.calendar-days-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
    min-height: 200px;
}

.calendar-day-cell {
    min-width: 0; /* Prevents text overflow from expanding cells/grid */
    aspect-ratio: 1;
    border-radius: 6px;
    border: 1px solid rgba(212,175,55,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    background-color: var(--cream);
    transition: var(--transition);
}

.calendar-day-cell:hover {
    border-color: var(--saffron);
    background-color: #FFF;
    transform: scale(1.05);
    z-index: 10;
}

.calendar-day-cell.other-month {
    opacity: 0.3;
    pointer-events: none;
}

.calendar-day-cell .gregorian-num {
    align-self: flex-start;
    font-size: 0.8rem;
    font-weight: 600;
}

.calendar-day-cell .tithi-num {
    align-self: flex-end;
    font-size: 0.65rem;
    color: var(--charcoal-light);
    opacity: 0.75;
}

.calendar-day-cell.today {
    background-color: var(--gold-light);
    border: 1.5px solid var(--gold);
    box-shadow: 0 0 5px rgba(212, 175, 55, 0.5);
}

.calendar-day-cell.today .gregorian-num {
    color: var(--crimson-dark);
    font-weight: 700;
}

.calendar-day-cell.has-amavasya {
    border-color: #1B263B;
}

.calendar-day-cell.has-purnima {
    border-color: #F39C12;
}

.calendar-day-cell.has-ekadashi {
    border-color: #3498DB;
}

.calendar-day-cell.has-festival {
    border: 1.5px solid var(--crimson);
    background-color: #FDEDEC;
}

.calendar-day-cell.has-festival .gregorian-num {
    color: var(--crimson);
    font-weight: 700;
}

.calendar-day-cell .cell-top {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
}

.calendar-day-cell .vaar-abbr {
    font-size: 0.62rem;
    color: var(--saffron);
    font-weight: 600;
    opacity: 0.85;
}

.calendar-day-cell .cell-middle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    flex-grow: 1;
    margin: 2px 0;
}

.calendar-day-cell .cell-festival {
    font-size: 0.58rem;
    color: var(--crimson);
    background-color: rgba(192, 57, 43, 0.08);
    border: 0.5px solid rgba(192, 57, 43, 0.2);
    border-radius: 4px;
    padding: 2px 4px;
    text-align: center;
    width: 100%;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.calendar-day-cell .cell-bottom {
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.calendar-legend {
    display: flex;
    justify-content: space-around;
    border-top: 1px dashed rgba(212, 175, 55, 0.3);
    padding-top: 12px;
    margin-top: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.color-amavasya { background-color: #1B263B; }
.color-purnima { background-color: #F1C40F; }
.color-ekadashi { background-color: #3498DB; }
.color-festival { background-color: var(--crimson); }

/* Custom styles to make Calendar Card smaller, compact, and extremely premium */
.calendar-card {
    width: 100%;
    border-top: 4px solid var(--gold) !important; /* Gold arch top border */
}

.calendar-card .card-header {
    padding: 12px 18px;
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
}

.calendar-card .card-header h2 {
    font-size: 1.45rem;
}

.calendar-card .card-body {
    padding: 12px 14px;
    background-color: var(--cream) !important;
    background-image: radial-gradient(circle at center, rgba(255, 253, 246, 0.98) 0%, rgba(252, 248, 242, 0.98) 100%), 
                      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath d='M40 0l3 10 7-7-3 10 10-3-7 7 10 3h-10l7 7-10-3-7 7 3-10-7 7 3-10-10 3 7-7-10-3 7-7-10-3h10l-7-7 10 3 7-7-3 10 7-7-3 10 10-3-7 7z' fill='%23d4af37' fill-opacity='0.027'/%3E%3C/svg%3E") !important; /* Extremely faint, royal gold mandala pattern */
    background-repeat: repeat !important;
}

.calendar-card .calendar-controls {
    padding: 6px 12px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.calendar-card .cal-control-btn {
    background: #FFF;
    border: 1px solid var(--gold);
    color: var(--charcoal);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(212, 175, 55, 0.1);
    transition: var(--transition);
}

.calendar-card .cal-control-btn:hover {
    background: var(--saffron) !important;
    color: #FFF !important;
    border-color: var(--saffron) !important;
    box-shadow: 0 4px 8px rgba(230, 126, 34, 0.2);
    transform: translateY(-1px);
}

.calendar-card .cal-month-year {
    font-family: var(--font-heading); /* Serif Marcellus/Rozha */
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--crimson-dark);
    letter-spacing: 0.5px;
    text-shadow: 0 1px 1px rgba(0,0,0,0.02);
}

.calendar-card .calendar-week-days {
    gap: 5px;
    margin-bottom: 8px;
    padding-bottom: 4px;
    font-size: 0.78rem;
}

.calendar-card .calendar-week-days div {
    background-color: rgba(212, 175, 55, 0.05);
    border: 0.5px solid rgba(212, 175, 55, 0.15);
    border-radius: 4px;
    padding: 3px 0;
    font-weight: 700;
    color: var(--crimson);
}

.calendar-card .calendar-days-grid {
    gap: 5px;
    min-height: 180px;
}

/* Premium Cell Design & Color Coding (Light / Pastel Theme) */
.calendar-card .calendar-day-cell {
    padding: 4px;
    aspect-ratio: 1.35; /* Rectangular cells: wider than they are tall to keep the grid vertically compact */
    border: 1.5px solid rgba(212, 175, 55, 0.12);
    background-color: var(--cream);
    box-shadow: inset 0 0 6px rgba(212, 175, 55, 0.02);
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Today's Cell: Soft Saffron Gold Highlight with light glow */
.calendar-card .calendar-day-cell.today {
    background: linear-gradient(135deg, #FFFDF0 0%, #FFF3C4 100%) !important;
    border: 2px solid #FDBA74 !important;
    box-shadow: 0 0 8px rgba(230, 126, 34, 0.15), inset 0 0 6px rgba(230, 126, 34, 0.05) !important;
}

.calendar-card .calendar-day-cell.today .gregorian-num {
    color: var(--crimson-dark);
    font-weight: 800;
}

/* Purnima (Full Moon) Cell style: Softer Golden yellow background */
.calendar-card .calendar-day-cell.has-purnima {
    background: linear-gradient(135deg, #FFFDF5 0%, #FEF9D9 100%);
    border: 1.5px solid #FDE047;
    box-shadow: inset 0 0 4px rgba(241, 196, 15, 0.05);
}

/* Amavasya (New Moon) Cell style: Light Slate grey background */
.calendar-card .calendar-day-cell.has-amavasya {
    background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
    border: 1.5px solid #CBD5E1;
    box-shadow: inset 0 0 4px rgba(100, 116, 139, 0.05);
}

/* Ekadashi Cell style: Light Holy sky blue background */
.calendar-card .calendar-day-cell.has-ekadashi {
    background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%);
    border: 1.5px solid #BAE6FD;
    box-shadow: inset 0 0 4px rgba(52, 152, 219, 0.05);
}

/* Festival highlight background (if not today/purnima/ekadashi/amavasya) */
.calendar-card .calendar-day-cell.has-festival:not(.today):not(.has-purnima):not(.has-ekadashi):not(.has-amavasya) {
    background: linear-gradient(135deg, #FFF8F8 0%, #FFF0F0 100%);
    border: 1.5px solid #FCA5A5;
}

/* Hover Effect: Gentle scale up and glowing border */
.calendar-card .calendar-day-cell:hover {
    border-color: var(--saffron) !important;
    background-color: #FFF !important;
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 8px 18px rgba(212, 175, 55, 0.15) !important;
    z-index: 10;
}

/* Selected Date Highlight: Golden glow border and background */
.calendar-card .calendar-day-cell.selected {
    border: 2px solid var(--gold) !important;
    background: linear-gradient(135deg, #FFFDF0 0%, #FFF2E0 100%) !important;
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.4), inset 0 0 8px rgba(212, 175, 55, 0.1) !important;
    transform: translateY(-2px);
    z-index: 5;
}

/* Cell typography styles */
.calendar-card .calendar-day-cell .gregorian-num {
    font-family: 'Cinzel', 'Marcellus', serif; /* Royal, classic serif numerals */
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--charcoal);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
    display: inline-block;
    transition: all 0.25s ease;
}

.calendar-card .calendar-day-cell:hover .gregorian-num {
    color: var(--saffron-dark) !important;
    transform: scale(1.1);
}

.calendar-card .calendar-day-cell .vaar-abbr {
    font-size: 0.6rem;
    color: var(--saffron-dark);
    font-weight: 600;
}

/* Soft light-rose festival pill badge inside cell */
.calendar-card .calendar-day-cell .cell-festival {
    font-size: 0.58rem;
    padding: 2px 5px;
    border-radius: 4px;
    background: linear-gradient(135deg, #FFF1F2 0%, #FFE4E6 100%) !important;
    color: #E11D48 !important;
    font-weight: 700;
    border: 1px solid #FECDD3 !important;
    line-height: 1.1;
}

.calendar-card .calendar-day-cell .tithi-num {
    font-size: 0.62rem;
    font-weight: 600;
    color: #78350F;
    opacity: 0.9;
}

.calendar-card .calendar-legend {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 16px;
    padding-top: 12px;
    font-size: 0.68rem;
    border-top: 1px dashed rgba(212, 175, 55, 0.3);
}

.calendar-card .legend-item {
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
    transition: var(--transition);
}

.calendar-card .legend-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.05);
}

.calendar-card .legend-item:has(.color-amavasya) {
    background-color: #F1F5F9;
    border: 1px solid #CBD5E1;
    color: #475569;
}

.calendar-card .legend-item:has(.color-purnima) {
    background-color: #FEF9D9;
    border: 1px solid #FDE047;
    color: #854D0E;
}

.calendar-card .legend-item:has(.color-ekadashi) {
    background-color: #E0F2FE;
    border: 1px solid #BAE6FD;
    color: #0369A1;
}

.calendar-card .legend-item:has(.color-festival) {
    background-color: #FFF1F2;
    border: 1px solid #FECDD3;
    color: #E11D48;
}

/* Custom styles to make Festivals Card smaller and compact to match Calendar Card */
.festivals-card .card-header {
    padding: 12px 18px;
}

.festivals-card .card-header h2 {
    font-size: 1.45rem;
}

.festivals-card .card-body {
    padding: 12px 14px;
}

.festivals-card .countdown-hero-box {
    padding: 10px;
    margin-bottom: 12px;
}

.festivals-card .countdown-title {
    font-size: 0.75rem;
}

.festivals-card #next-fest-title {
    font-size: 1.15rem;
}

.festivals-card .countdown-timer {
    gap: 10px;
    margin-bottom: 8px;
}

.festivals-card .time-block {
    min-width: 46px;
    padding: 4px 6px;
}

.festivals-card .time-num {
    font-size: 1.2rem;
}

.festivals-card .time-lbl {
    font-size: 0.6rem;
}

.festivals-card .countdown-date-info {
    font-size: 0.78rem;
}

.festivals-card .festival-filters {
    margin-bottom: 10px;
    gap: 6px;
}

.festivals-card .filter-btn {
    padding: 5px 8px;
    font-size: 0.75rem;
}

.festivals-card .filter-btn:not(.active):hover {
    background-color: var(--gold-light);
    color: var(--crimson-dark);
    border-color: var(--gold);
    transform: translateY(-1px);
}

.festivals-card .festivals-scroll-list {
    max-height: 240px;
}

/* Greeting Card Generator Layout */
.bottom-full-row {
    grid-column: 1 / span 2;
    margin-bottom: 25px;
}

.greeting-generator-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.generator-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

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

.form-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--charcoal);
}

.royal-textarea {
    background-color: #FFF;
    border: 1.5px solid var(--gold);
    padding: 10px 12px;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    resize: none;
    transition: var(--transition);
}

.royal-textarea:focus {
    box-shadow: 0 0 6px var(--saffron);
}

.suggested-wishes {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.suggested-wishes span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--charcoal-light);
}

.wish-chip {
    background-color: var(--cream-dark);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    padding: 3px 8px;
    font-size: 0.7rem;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 500;
    transition: var(--transition);
}

.wish-chip:hover {
    background-color: var(--gold-light);
}

.theme-picker-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.theme-option {
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 6px;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
    background-color: var(--cream);
}

.theme-option:hover {
    border-color: var(--gold-light);
}

.theme-option.active {
    border-color: var(--saffron);
    background-color: var(--cream-dark);
}

.theme-preview {
    height: 40px;
    border-radius: 4px;
    margin-bottom: 4px;
    border: 1px solid rgba(0,0,0,0.15);
}

.theme-option span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--charcoal);
}

/* Background Gradients/Patterns for Themes */
.bg-kundan {
    background: linear-gradient(135deg, #FFFDF0 0%, #FAF3D1 50%, #D4AF37 100%);
    border: 1px solid #B6354B;
}

.bg-bandhani {
    background: linear-gradient(135deg, #A91B33 0%, #5C1220 100%);
    position: relative;
    overflow: hidden;
}
.bg-bandhani::after {
    content: '⁛ ⁛ ⁛';
    color: #FCBF49;
    font-size: 8px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    letter-spacing: 2px;
}

.bg-desert {
    background: linear-gradient(to top, #FCBF49 0%, #E67E22 50%, #5C1220 100%);
}

.bg-udaipur {
    background: linear-gradient(to top, #D09E5A 0%, #1C3144 50%, #0F1E36 100%);
}

.download-card-btn {
    margin-top: 10px;
    padding: 12px;
}

.btn-icon {
    margin-right: 5px;
}

/* Canvas Preview Wrapper */
.generator-preview-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.canvas-wrapper {
    background-color: #FFF;
    border: 4px double var(--gold);
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    max-width: 100%;
}

#greeting-canvas {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    background-color: var(--crimson);
}

.preview-hint {
    font-size: 0.75rem;
    color: var(--charcoal-light);
    margin-top: 10px;
    text-align: center;
}

/* Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(30, 18, 14, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

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

.modal-content {
    max-width: 550px;
    width: 90%;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    background: none;
    border: none;
    color: var(--crimson);
    font-size: 2.2rem;
    cursor: pointer;
    z-index: 10;
    line-height: 0.8;
}

.modal-content .modal-header {
    background: linear-gradient(135deg, var(--cream) 0%, var(--cream-dark) 100%);
    color: var(--charcoal);
    padding: 30px;
    border-bottom: 2px solid var(--gold);
}

.m-badge {
    background-color: var(--gold);
    color: var(--charcoal);
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 700;
    border: 1px solid #FFF;
}

.modal-content h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--crimson);
    margin-top: 5px;
}

.modal-date {
    font-size: 0.9rem;
    color: var(--charcoal-light);
    opacity: 0.85;
    margin-top: 3px;
    font-weight: 500;
}

.modal-body {
    padding: 30px;
    background-color: var(--cream);
    max-height: 400px;
    overflow-y: auto;
}

.modal-body h3 {
    color: var(--crimson);
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.modal-body p {
    font-size: 0.95rem;
    color: var(--charcoal);
    margin-bottom: 20px;
}

/* Footer Styling */
.royal-footer {
    background: linear-gradient(135deg, var(--cream) 0%, var(--cream-dark) 100%);
    border-top: 4px solid var(--gold);
    padding: 35px 20px;
    text-align: center;
    color: var(--charcoal);
    border-radius: 20px 20px 0 0;
    margin-top: 25px;
    position: relative;
    box-shadow: 0 -5px 20px var(--shadow);
}

.footer-graphic {
    height: 10px;
    width: 100%;
    background: repeating-linear-gradient(90deg, var(--gold) 0px, var(--gold) 15px, transparent 15px, transparent 30px);
    margin-bottom: 20px;
    opacity: 0.7;
}

.footer-credits {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--crimson);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.copyright {
    font-size: 0.8rem;
    color: var(--charcoal-light);
    opacity: 0.8;
    font-weight: 500;
}

.footer-disclaimer {
    font-size: 0.82rem;
    color: var(--charcoal-light);
    margin-bottom: 15px;
    font-style: italic;
    opacity: 0.95;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
}

.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 15px;
    margin-bottom: 18px;
}

/* ==========================================================================
   RESPONSIVE DESIGN (BREAKPOINTS)
   ========================================================================== */

@media (max-width: 992px) {
    .main-grid {
        grid-template-columns: 1fr;
    }
    
    .bottom-full-row {
        grid-column: span 1;
    }
    
    .greeting-generator-body {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .generator-preview-container {
        order: -1; /* Preview moves to the top of the form on tablets/mobiles */
    }
    
    .main-title {
        font-size: 2.6rem;
    }
}

@media (max-width: 600px) {
    .app-container {
        padding: 10px;
    }
    
    .top-samvat-bar {
        flex-direction: column;
        gap: 6px;
        text-align: center;
        padding: 10px;
    }
    
    .samvat-ticker {
        width: 100%;
        margin: 5px 0;
    }
    
    .royal-header {
        flex-direction: column;
        gap: 12px;
        padding: 20px 10px;
    }
    
    .header-om {
        position: absolute;
        top: 8px;
        width: 34px;
        height: 34px;
        font-size: 1.1rem;
    }
    
    .left-om {
        left: 15px;
    }
    
    .right-om {
        right: 15px;
    }
    
    .ganesha-header-img {
        height: 65px;
    }
    
    .header-swastik {
        font-size: 1.3rem;
        margin: 0 8px;
    }
    
    .mandala-bg {
        position: absolute;
        top: -5px;
        width: 60px;
        height: 60px;
        z-index: 1;
        pointer-events: none;
    }
    
    .left-mandala {
        left: 2px;
    }
    
    .right-mandala {
        right: 2px;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 0.9rem;
    }
    
    .live-info-widget {
        flex-direction: column;
        gap: 12px;
        border-radius: 16px;
        width: 100%;
    }
    
    .live-clock-container {
        border-right: none;
        padding-right: 0;
        text-align: center;
        width: 100%;
    }
    
    .live-tithi-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
    }
    
    .today-highlight-banner {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 20px 15px;
    }
    
    .banner-icon {
        margin-right: 0;
    }
    
    .panchang-date-selector {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        text-align: center;
    }
    
    .panchang-grid {
        grid-template-columns: 1fr;
    }
    
    .muhurat-grid {
        grid-template-columns: 1fr;
    }
    
    .theme-picker-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    

    
    .form-group-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .calendar-day-cell .tithi-num,
    .calendar-day-cell .cell-festival,
    .calendar-day-cell .vaar-abbr,
    .calendar-day-cell .cell-middle,
    .calendar-day-cell .cell-bottom {
        display: none;
    }
    
    .calendar-day-cell .cell-top {
        justify-content: center;
    }
    
    .calendar-day-cell {
        min-height: 44px;
        justify-content: center;
        align-items: center;
    }

    
    .countdown-timer {
        gap: 8px;
    }
    
    .time-block {
        min-width: 48px;
        padding: 5px 8px;
    }
    
    .festival-filters {
        flex-wrap: wrap;
    }
    
    .filter-btn {
        flex: unset;
        flex-grow: 1;
        font-size: 0.75rem;
        padding: 5px 8px;
    }
}

/* Decor Stamps Selector */
.decor-options {
    display: flex;
    gap: 8px;
    align-items: center;
}

.decor-option {
    cursor: pointer;
    position: relative;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFF;
    font-size: 1.1rem;
    transition: var(--transition);
}

.decor-option input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 0;
    height: 0;
}

.decor-option:hover {
    transform: scale(1.1);
    border-color: var(--saffron);
    box-shadow: 0 0 5px rgba(255, 128, 26, 0.3);
}

.decor-option:has(input:checked) {
    background-color: var(--gold-light);
    border-color: var(--crimson);
    box-shadow: 0 0 8px rgba(182, 53, 75, 0.4);
    transform: scale(1.15);
}



/* Custom Royal Toast Notification */
.royal-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: linear-gradient(135deg, var(--cream) 0%, var(--cream-dark) 100%);
    border: 2px solid var(--gold);
    border-top: 4px solid var(--crimson);
    color: var(--charcoal);
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(134, 31, 50, 0.2);
    z-index: 9999;
    width: 90%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.5s ease;
    pointer-events: none;
}

.royal-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.royal-toast-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    color: var(--crimson-dark);
    font-size: 1.1rem;
    font-weight: bold;
    border-bottom: 1px dashed var(--gold);
    padding-bottom: 6px;
}

.royal-toast-body {
    font-size: 0.95rem;
    line-height: 1.5;
}

.royal-toast-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--charcoal-light);
    cursor: pointer;
}
