/* =============================================
   สรงน้ำพระออนไลน์ - Songkran Water Pouring
   Premium Thai Festival Design
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Sarabun:wght@300;400;500;600;700;800&family=Outfit:wght@300;400;500;600;700&display=swap');

/* ---- CSS Variables ---- */
:root {
    --gold: #D4AF37;
    --gold-light: #F5E6A3;
    --gold-dark: #B8960C;
    --purple-deep: #051b3b;
    --purple-dark: #092e5e;
    --purple-mid: #0d468a;
    --purple-light: #186edb;
    --water-blue: #4FC3F7;
    --water-light: #B3E5FC;
    --water-dark: #0288D1;
    --white: #ffffff;
    --white-alpha-10: rgba(255, 255, 255, 0.1);
    --white-alpha-15: rgba(255, 255, 255, 0.15);
    --white-alpha-20: rgba(255, 255, 255, 0.2);
    --white-alpha-50: rgba(255, 255, 255, 0.5);
    --white-alpha-70: rgba(255, 255, 255, 0.7);
    --white-alpha-90: rgba(255, 255, 255, 0.9);
    --shadow-gold: 0 0 40px rgba(212, 175, 55, 0.3);
    --shadow-glow: 0 0 60px rgba(212, 175, 55, 0.5);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --font-thai: 'Sarabun', sans-serif;
    --font-en: 'Outfit', sans-serif;
}

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-thai);
    background: var(--purple-deep);
    color: var(--white);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
}

/* ---- Temple Silhouette Background ---- */
body::before {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        /* Stars layer */
        radial-gradient(1px 1px at 10% 15%, rgba(255, 255, 255, 0.4) 50%, transparent 100%),
        radial-gradient(1px 1px at 25% 8%, rgba(255, 255, 255, 0.3) 50%, transparent 100%),
        radial-gradient(1.5px 1.5px at 40% 22%, rgba(255, 255, 255, 0.5) 50%, transparent 100%),
        radial-gradient(1px 1px at 55% 5%, rgba(255, 255, 255, 0.35) 50%, transparent 100%),
        radial-gradient(1px 1px at 70% 18%, rgba(255, 255, 255, 0.4) 50%, transparent 100%),
        radial-gradient(1.5px 1.5px at 85% 12%, rgba(255, 255, 255, 0.3) 50%, transparent 100%),
        radial-gradient(1px 1px at 15% 35%, rgba(255, 255, 255, 0.25) 50%, transparent 100%),
        radial-gradient(1px 1px at 50% 30%, rgba(255, 255, 255, 0.3) 50%, transparent 100%),
        radial-gradient(1px 1px at 80% 28%, rgba(255, 255, 255, 0.2) 50%, transparent 100%),
        radial-gradient(1.5px 1.5px at 95% 6%, rgba(255, 255, 255, 0.4) 50%, transparent 100%),
        /* Golden glow at horizon */
        radial-gradient(ellipse at 50% 95%, rgba(212, 175, 55, 0.12) 0%, transparent 50%),
        /* Temple silhouette */
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 400' preserveAspectRatio='xMidYMax slice'%3E%3Cdefs%3E%3ClinearGradient id='tg' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0%25' stop-color='%23031630'/%3E%3Cstop offset='100%25' stop-color='%23010b1a'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg fill='url(%23tg)' opacity='0.85'%3E%3C!-- ground --%3E%3Crect x='0' y='340' width='1600' height='60'/%3E%3C!-- Main Prang (Wat Arun style center) --%3E%3Cpolygon points='800,60 770,180 760,185 755,200 750,205 745,250 740,255 735,290 730,295 725,340 875,340 870,295 865,290 860,255 855,250 850,205 845,200 840,185 830,180'/%3E%3Crect x='785' y='40' width='30' height='25' rx='2'/%3E%3Cpolygon points='800,10 790,40 810,40'/%3E%3C!-- Prang decorative tiers --%3E%3Crect x='760' y='178' width='80' height='8' rx='2'/%3E%3Crect x='748' y='248' width='104' height='8' rx='2'/%3E%3Crect x='733' y='288' width='134' height='8' rx='2'/%3E%3C!-- Left small Prang 1 --%3E%3Cpolygon points='680,180 665,280 660,285 655,340 705,340 700,285 695,280'/%3E%3Cpolygon points='680,160 672,180 688,180'/%3E%3Crect x='670' y='178' width='20' height='5' rx='1'/%3E%3Crect x='660' y='278' width='40' height='5' rx='1'/%3E%3C!-- Right small Prang 1 --%3E%3Cpolygon points='920,180 905,280 900,285 895,340 945,340 940,285 935,280'/%3E%3Cpolygon points='920,160 912,180 928,180'/%3E%3Crect x='910' y='178' width='20' height='5' rx='1'/%3E%3Crect x='900' y='278' width='40' height='5' rx='1'/%3E%3C!-- Left small Prang 2 --%3E%3Cpolygon points='620,220 610,300 605,305 600,340 640,340 635,305 630,300'/%3E%3Cpolygon points='620,200 614,220 626,220'/%3E%3C!-- Right small Prang 2 --%3E%3Cpolygon points='980,220 970,300 965,305 960,340 1000,340 995,305 990,300'/%3E%3Cpolygon points='980,200 974,220 986,220'/%3E%3C!-- Far left temple --%3E%3Crect x='100' y='280' width='120' height='60'/%3E%3Cpolygon points='160,200 130,280 190,280'/%3E%3Cpolygon points='160,180 152,200 168,200'/%3E%3Crect x='105' y='278' width='110' height='4' rx='1'/%3E%3C!-- tiered roof detail --%3E%3Cpolygon points='160,230 140,265 180,265'/%3E%3Crect x='138' y='263' width='44' height='3' rx='1'/%3E%3C!-- Far right temple --%3E%3Crect x='1380' y='280' width='120' height='60'/%3E%3Cpolygon points='1440,200 1410,280 1470,280'/%3E%3Cpolygon points='1440,180 1432,200 1448,200'/%3E%3Crect x='1385' y='278' width='110' height='4' rx='1'/%3E%3Cpolygon points='1440,230 1420,265 1460,265'/%3E%3Crect x='1418' y='263' width='44' height='3' rx='1'/%3E%3C!-- Chedi left --%3E%3Cellipse cx='350' cy='320' rx='40' ry='20'/%3E%3Crect x='330' y='260' width='40' height='60' rx='4'/%3E%3Cpolygon points='350,200 335,260 365,260'/%3E%3Cpolygon points='350,185 344,200 356,200'/%3E%3Ccircle cx='350' cy='180' r='6'/%3E%3C!-- Chedi right --%3E%3Cellipse cx='1250' cy='320' rx='40' ry='20'/%3E%3Crect x='1230' y='260' width='40' height='60' rx='4'/%3E%3Cpolygon points='1250,200 1235,260 1265,260'/%3E%3Cpolygon points='1250,185 1244,200 1256,200'/%3E%3Ccircle cx='1250' cy='180' r='6'/%3E%3C!-- Trees --%3E%3Cellipse cx='500' cy='310' rx='35' ry='40'/%3E%3Crect x='496' y='310' width='8' height='30'/%3E%3Cellipse cx='1100' cy='310' rx='30' ry='35'/%3E%3Crect x='1096' y='310' width='8' height='30'/%3E%3Cellipse cx='50' cy='315' rx='45' ry='30'/%3E%3Cellipse cx='1560' cy='315' rx='45' ry='30'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 45%;
    background-repeat: no-repeat;
    background-position: center, center, center, center, center, center, center, center, center, center, center bottom, center bottom;
    z-index: 0;
    pointer-events: none;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--purple-deep);
}

::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-light);
}

/* ---- Background Particles ---- */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ---- Section Base ---- */
section {
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 40px 20px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* =============================================
   MUSIC TOGGLE
   ============================================= */
.music-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(5, 27, 59, 0.6);
    color: var(--gold);
    border: 2px solid var(--gold);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1500;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.music-toggle:hover {
    transform: scale(1.1);
    background: rgba(5, 27, 59, 0.9);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
}

.music-toggle.muted {
    color: rgba(255, 255, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.3);
}

.policy-btn {
    right: 80px;
}

/* =============================================
   SHARE BUTTONS
   ============================================= */
.floating-share {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
}

.success-share {
    margin: 30px 0;
    text-align: center;
}

.share-buttons-row {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.share-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
    font-weight: bold;
    font-family: Arial, sans-serif;
    text-decoration: none;
}

.floating-share .share-btn:hover {
    transform: scale(1.1) translateX(5px);
}

.success-share .share-btn:hover {
    transform: scale(1.1) translateY(-5px);
}

.share-btn.fb {
    background: #1877F2;
}

.share-btn.tw {
    background: #000000;
    border: 1px solid #333;
}

.share-btn.line {
    background: #00C300;
    font-size: 0.8rem;
    font-weight: 800;
}

.share-btn.copy {
    background: #6c757d;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .floating-share {
        position: static;
        flex-direction: row;
        justify-content: center;
        transform: none;
        margin-top: 10px;
        margin-bottom: 25px;
    }

    .floating-share .share-btn:hover {
        transform: scale(1.1) translateY(-3px);
    }
}

.hero-ornament {
    width: 120px;
    height: auto;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.5));
}

.hero-logo {
    width: 180px;
    height: auto;
    display: block;
    margin: 0 auto 16px;
    animation: float 4s ease-in-out infinite;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.3));
}

.hero h1 {
    font-size: clamp(2.2rem, 6vw, 4.5rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    line-height: 1.8;
    letter-spacing: 2px;
    text-shadow: none;
}

.hero .subtitle {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    color: var(--white-alpha-70);
    max-width: 600px;
    margin: 0 auto 16px;
    font-weight: 300;
}

.hero .year-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--purple-deep);
    padding: 6px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 32px;
    letter-spacing: 1px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--purple-deep);
    border: none;
    padding: 18px 48px;
    font-size: 1.3rem;
    font-weight: 700;
    border-radius: 60px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-family: var(--font-thai);
    box-shadow: 0 8px 32px rgba(212, 175, 55, 0.4);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.hero-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.hero-btn:hover::before {
    left: 100%;
}

.hero-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 48px rgba(212, 175, 55, 0.6);
}

.hero-btn .btn-icon {
    font-size: 1.5rem;
}

/* Water drops animation in hero */
.water-drops {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.water-drop {
    position: absolute;
    width: 8px;
    height: 12px;
    background: radial-gradient(ellipse, var(--water-light), var(--water-blue));
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    opacity: 0;
    animation: dropFall linear infinite;
}

@keyframes dropFall {
    0% {
        opacity: 0;
        transform: translateY(-20px) scale(0.5);
    }

    10% {
        opacity: 0.7;
    }

    90% {
        opacity: 0.3;
    }

    100% {
        opacity: 0;
        transform: translateY(100vh) scale(1);
    }
}

/* =============================================
   SECTION TITLE
   ============================================= */
.section-title {
    text-align: center;
    margin-bottom: 48px;
}

.section-title h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.section-title p {
    color: var(--white-alpha-50);
    font-size: 1.1rem;
}

.section-divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 16px auto 0;
    border-radius: 2px;
}

/* =============================================
   DAY SELECTION
   ============================================= */
.day-selection {
    padding: 80px 20px;
    display: none;
}

.day-selection.visible {
    display: block;
    animation: fadeInUp 0.8s ease;
}

.days-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
}

.day-card {
    background: var(--white-alpha-10);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--white-alpha-15);
    border-radius: var(--radius-md);
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.day-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--day-color, var(--gold));
    transform: scaleX(0);
    transition: transform 0.3s;
}

.day-card:hover::before,
.day-card.active::before {
    transform: scaleX(1);
}

.day-card:hover {
    transform: translateY(-8px);
    border-color: var(--day-color, var(--gold));
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.day-card.active {
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--gold);
    box-shadow: var(--shadow-gold);
    transform: translateY(-4px);
}

.day-card .day-buddha-icon {
    width: 120px;
    height: auto;
    display: block;
    margin: 0 auto 12px;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.4));
    transition: transform 0.3s;
}

.day-card:hover .day-buddha-icon {
    transform: scale(1.1);
}

.day-card .day-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 4px;
}

.day-card .day-color-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--day-color, var(--gold));
    margin: 8px auto 0;
    box-shadow: 0 0 10px var(--day-color, var(--gold));
}

/* =============================================
   BUDDHA DISPLAY
   ============================================= */
.buddha-display {
    padding: 60px 20px 80px;
    display: none;
}

.buddha-display.visible {
    display: block;
    animation: fadeInUp 0.8s ease;
}

.buddha-card {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    background: var(--white-alpha-10);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--white-alpha-15);
    border-radius: var(--radius-xl);
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.buddha-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 50%);
    animation: rotateGlow 20s linear infinite;
}

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

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

.buddha-image-wrapper {
    position: relative;
    z-index: 1;
}

.buddha-image-wrapper img {
    width: 100%;
    max-width: 320px;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-glow);
    animation: gentlePulse 3s ease-in-out infinite;
}

.buddha-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {

    0%,
    100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

@keyframes gentlePulse {

    0%,
    100% {
        box-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
    }

    50% {
        box-shadow: 0 0 60px rgba(212, 175, 55, 0.6);
    }
}

.buddha-info {
    position: relative;
    z-index: 1;
}

.buddha-info .buddha-day-label {
    display: inline-block;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--purple-deep);
    padding: 4px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.buddha-info h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold-light);
    margin-bottom: 16px;
}

.buddha-info p {
    font-size: 1rem;
    color: var(--white-alpha-70);
    line-height: 1.8;
    word-break: break-word;
    overflow-wrap: break-word;
}

.pray-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--purple-deep);
    border: none;
    padding: 14px 36px;
    font-size: 1.15rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--font-thai);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 6px 24px rgba(212, 175, 55, 0.4);
    position: relative;
    overflow: hidden;
}

.pray-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.pray-btn:hover::before {
    left: 100%;
}

.pray-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.6);
}

.pray-btn .btn-icon {
    font-size: 1.3rem;
}

/* =============================================
   BIRTHDAY CHANT CONTAINER
   ============================================= */
.buddha-chant-container {
    background: rgba(212, 175, 55, 0.08);
    border: 1px dashed var(--gold);
    border-radius: var(--radius-md);
    padding: 18px 24px;
    margin-bottom: 28px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-left: 4px solid var(--gold);
    border-right: 4px solid var(--gold);
}

.buddha-chant-container {
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.buddha-chant-container.active {
    opacity: 1;
    transform: translateY(0);
}

.chant-label {
    font-size: 0.75rem;
    color: var(--gold-light);
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.chant-label::before,
.chant-label::after {
    content: '';
    height: 1px;
    width: 20px;
    background: var(--gold-dark);
}

.buddha-chant {
    font-size: 1.3rem;
    color: var(--white);
    font-weight: 700;
    line-height: 1.6;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    word-break: break-word;
    overflow-wrap: break-word;
}

@media (max-width: 480px) {
    .buddha-chant {
        font-size: 0.8rem;
    }
}

/* =============================================
   PRAYER FORM
   ============================================= */
.prayer-form-section {
    padding: 60px 20px 80px;
    display: none;
}

.prayer-form-section.visible {
    display: block;
    animation: fadeInUp 0.8s ease;
}

.prayer-form-card {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white-alpha-10);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--white-alpha-15);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
}

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

.form-group label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gold-light);
    margin-bottom: 8px;
}

.form-group label .required {
    color: #ff6b6b;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 20px;
    background: var(--white-alpha-10);
    border: 1px solid var(--white-alpha-20);
    border-radius: var(--radius-sm);
    color: var(--white);
    font-size: 1rem;
    font-family: var(--font-thai);
    transition: all 0.3s;
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--white-alpha-50);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
    background: rgba(212, 175, 55, 0.05);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--water-blue), var(--water-dark));
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.2rem;
    font-weight: 700;
    font-family: var(--font-thai);
    cursor: pointer;
    transition: all 0.4s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(79, 195, 247, 0.4);
}

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

.submit-btn .btn-icon {
    font-size: 1.4rem;
}

/* =============================================
   WATER POURING ANIMATION
   ============================================= */
.pouring-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 27, 59, 0.95);
    z-index: 1000;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s;
}

.pouring-overlay.active {
    display: flex;
    opacity: 1;
}

.pouring-container {
    text-align: center;
    position: relative;
}

.pouring-buddha {
    width: 250px;
    height: auto;
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    animation: gentlePulse 2s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

.water-stream {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 200px;
    z-index: 3;
    pointer-events: none;
    overflow: visible;
}

.water-particle {
    position: absolute;
    background: radial-gradient(circle, var(--water-light), var(--water-blue));
    border-radius: 50%;
    opacity: 0;
}

.pouring-text {
    font-size: 1.5rem;
    color: var(--gold-light);
    margin-top: 24px;
    animation: fadeInOut 2s ease-in-out infinite;
}

.pouring-prayer-text {
    max-width: min(600px, 90vw);
    margin: 16px auto 0;
    font-size: 1.1rem;
    color: var(--white-alpha-70);
    font-style: italic;
    line-height: 1.8;
    word-break: break-word;
    overflow-wrap: break-word;
    max-height: 200px;
    overflow-y: auto;
    padding: 0 15px;
}

.pouring-prayer-text::-webkit-scrollbar {
    width: 4px;
}

.pouring-prayer-text::-webkit-scrollbar-thumb {
    background: var(--gold-dark);
    border-radius: 2px;
}

.pouring-name {
    color: var(--gold);
    font-weight: 600;
    font-size: 1.2rem;
    margin-top: 8px;
    word-break: break-word;
    overflow-wrap: break-word;
}

@keyframes fadeInOut {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* =============================================
   SUCCESS MESSAGE
   ============================================= */
.success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 27, 59, 0.95);
    z-index: 1100;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.success-overlay.active {
    display: flex;
    animation: fadeIn 0.5s ease;
}

.success-icon {
    font-size: 80px;
    margin-bottom: 24px;
    animation: bounceIn 0.6s ease;
}

.success-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold-light);
    margin-bottom: 12px;
}

.success-message {
    font-size: 1.1rem;
    color: var(--white-alpha-70);
    max-width: 600px;
    line-height: 1.8;
    margin-bottom: 32px;
    word-break: break-word;
    overflow-wrap: break-word;
    max-height: 300px;
    overflow-y: auto;
    padding: 0 20px;
}

.success-message::-webkit-scrollbar {
    width: 4px;
}

.success-message::-webkit-scrollbar-thumb {
    background: var(--gold-dark);
    border-radius: 2px;
}

.success-close-btn {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--purple-deep);
    border: none;
    padding: 14px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--font-thai);
    transition: all 0.3s;
}

.success-close-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(212, 175, 55, 0.4);
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

/* =============================================
   PRAYER WALL
   ============================================= */
.prayer-wall {
    padding: 80px 20px;
    display: none;
}

.prayer-wall.visible {
    display: block;
    animation: fadeInUp 0.8s ease;
}

.prayers-container {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.prayer-item {
    background: var(--white-alpha-10);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--white-alpha-15);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: all 0.3s;
    animation: fadeInUp 0.5s ease;
    position: relative;
    overflow: hidden;
}

.prayer-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--prayer-color, var(--gold));
}

.prayer-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.prayer-item .prayer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.prayer-item .prayer-user {
    font-weight: 600;
    color: var(--gold-light);
    font-size: 1rem;
}

.prayer-item .prayer-day-badge {
    font-size: 0.75rem;
    padding: 2px 10px;
    border-radius: 50px;
    background: var(--white-alpha-10);
    color: var(--white-alpha-70);
}

.prayer-item .prayer-content {
    color: var(--white-alpha-70);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 12px;
    word-break: break-word;
    overflow-wrap: break-word;
    max-height: 150px;
    overflow-y: auto;
    padding-right: 5px;
}

.prayer-item .prayer-content::-webkit-scrollbar {
    width: 4px;
}

.prayer-item .prayer-content::-webkit-scrollbar-thumb {
    background: var(--gold-dark);
    border-radius: 2px;
}

.prayer-item .prayer-time {
    font-size: 0.8rem;
    color: var(--white-alpha-50);
}

.prayer-item .prayer-buddha-name {
    font-size: 0.8rem;
    color: var(--gold);
    margin-top: 4px;
}

.load-more-btn {
    display: block;
    margin: 32px auto 0;
    background: var(--white-alpha-10);
    border: 1px solid var(--white-alpha-20);
    color: var(--white-alpha-70);
    padding: 12px 32px;
    border-radius: 50px;
    font-size: 1rem;
    font-family: var(--font-thai);
    cursor: pointer;
    transition: all 0.3s;
}

.load-more-btn:hover {
    background: var(--white-alpha-20);
    color: var(--white);
}

.no-prayers {
    text-align: center;
    color: var(--white-alpha-50);
    font-size: 1.1rem;
    grid-column: 1 / -1;
    padding: 40px;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
    text-align: center;
    padding: 40px 20px;
    border-top: 1px solid var(--white-alpha-10);
    position: relative;
    z-index: 1;
}

.footer p {
    color: var(--white-alpha-50);
    font-size: 0.9rem;
}

.footer .footer-emoji {
    font-size: 1.4rem;
    margin: 0 4px;
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Flower petals floating */
.floating-flowers {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.flower-petal {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0;
    animation: petalFall linear infinite;
}

@keyframes petalFall {
    0% {
        opacity: 0;
        transform: translateY(-20px) rotate(0deg) translateX(0);
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.3;
    }

    100% {
        opacity: 0;
        transform: translateY(100vh) rotate(720deg) translateX(100px);
    }
}

/* =============================================
   LOADING SPINNER
   ============================================= */
.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--white-alpha-20);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}

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

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
    .buddha-card {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 32px 24px;
        gap: 24px;
    }

    .buddha-image-wrapper img {
        max-width: 250px;
        margin: 0 auto;
    }

    .days-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 10px;
    }

    .day-card {
        padding: 16px 10px;
    }

    .day-card .day-buddha-icon {
        width: 45px;
        margin-bottom: 8px;
    }

    .day-card .day-name {
        font-size: 0.9rem;
    }

    .prayer-form-card {
        padding: 32px 24px;
    }

    .prayers-container {
        grid-template-columns: 1fr;
    }

    .hero-btn {
        padding: 16px 36px;
        font-size: 1.1rem;
    }

    .pouring-buddha {
        width: 180px;
    }

    .pouring-text {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .days-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero h1 {
        font-size: 2rem;
    }

    .section-title h2 {
        font-size: 1.5rem;
    }
}

/* =============================================
   ARTICLES SECTION
   ============================================= */
.articles-section {
    padding: 60px 20px;
    position: relative;
    z-index: 5;
    background: linear-gradient(to bottom, rgba(5, 27, 59, 0), rgba(5, 27, 59, 0.8));
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.article-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(212, 175, 55, 0.3);
}

.article-cover {
    height: 180px;
    background-size: cover;
    background-position: center;
    border-bottom: 2px solid var(--gold);
}

.article-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.article-cat {
    color: var(--gold);
    font-weight: 600;
}

.article-date {
    color: rgba(255, 255, 255, 0.4);
}

.article-title {
    font-size: 1.25rem;
    color: var(--white);
    margin-bottom: 10px;
    line-height: 1.4;
}

.article-excerpt {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-footer {
    display: flex;
    justify-content: flex-end;
}

.read-more-btn {
    background: none;
    border: none;
    color: var(--water-blue);
    font-family: var(--font-thai);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s;
}

.read-more-btn:hover {
    color: #81D4FA;
}

.read-more-btn span {
    transition: transform 0.3s;
}

.read-more-btn:hover span {
    transform: translateX(4px);
}

.articles-more-wrap {
    text-align: center;
    margin-top: 40px;
}

.load-more-articles-btn {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 10px 30px;
    border-radius: 30px;
    font-family: var(--font-thai);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.load-more-articles-btn:hover {
    background: rgba(212, 175, 55, 0.1);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

/* Article Modal */
.article-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.article-modal-content {
    background: var(--purple-deep);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 40px 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.article-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.article-modal-close:hover {
    color: #fff;
}

.article-modal-category {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(212, 175, 55, 0.2);
    color: var(--gold);
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 16px;
    font-weight: 600;
}

.article-modal-title {
    font-size: 1.8rem;
    color: var(--gold-light);
    margin-bottom: 10px;
    line-height: 1.3;
}

.article-modal-meta {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
}

.article-modal-cover {
    width: 100%;
    aspect-ratio: 2 / 1;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .article-modal-cover {
        aspect-ratio: 16 / 9;
    }
}

.article-modal-body p {
    margin-bottom: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
}

.article-modal-footer {
    display: flex;
    justify-content: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-close-btn {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 10px 40px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-thai);
    transition: all 0.3s;
}

.modal-close-btn:hover {
    background: rgba(212, 175, 55, 0.1);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
    transform: translateY(-2px);
}

/* =============================================
   TOAST NOTIFICATION
   ============================================= */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(0, 0, 0, 0.85);
    color: var(--white);
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    z-index: 2000;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    border: 1px solid var(--white-alpha-20);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

.toast.error {
    border-color: #ff6b6b;
}

.toast.success {
    border-color: #51cf66;
}

/* =============================================
   BACK TO TOP (scroll-down indicator)
   ============================================= */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounceDown 2s ease-in-out infinite;
    color: var(--white-alpha-50);
    font-size: 1.5rem;
}

@keyframes bounceDown {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(10px);
    }
}