/* ============================================================
   วัดปรกฟ้า — Premium Buddhist Temple Website
   Design System: Dark + Golden Divine Theme
   ============================================================ */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@300;400;500;600;700&family=Noto+Serif+Thai:wght@400;500;600;700;900&display=swap');

/* --- Design Tokens --- */
:root {
    /* Colors - Dark Foundation */
    --bg-primary: #0a0a0a;
    --bg-secondary: #0f0f1a;
    --bg-tertiary: #1a1a2e;
    --bg-card: rgba(20, 20, 40, 0.6);
    --bg-glass: rgba(20, 20, 40, 0.4);
    --bg-glass-hover: rgba(30, 30, 55, 0.6);
    
    /* Colors - Gold System */
    --gold-primary: #d4af37;
    --gold-light: #f5c518;
    --gold-bright: #ffd700;
    --gold-dark: #b8860b;
    --gold-deep: #8b6914;
    --gold-muted: rgba(212, 175, 55, 0.15);
    --gold-glow: rgba(212, 175, 55, 0.3);
    --gold-gradient: linear-gradient(135deg, #b8860b, #d4af37, #f5c518, #d4af37, #b8860b);
    --gold-gradient-text: linear-gradient(135deg, #f5c518, #d4af37, #b8860b, #d4af37, #f5c518);
    --gold-shimmer: linear-gradient(90deg, #b8860b, #d4af37, #ffd700, #d4af37, #b8860b);
    
    /* Colors - Text */
    --text-primary: #f0e6d3;
    --text-secondary: rgba(240, 230, 211, 0.7);
    --text-muted: rgba(240, 230, 211, 0.4);
    --text-gold: #d4af37;
    
    /* Typography */
    --font-serif: 'Noto Serif Thai', serif;
    --font-sans: 'Noto Sans Thai', sans-serif;
    
    /* Spacing */
    --section-padding: 100px 0;
    --container-max: 1200px;
    --container-padding: 0 24px;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    
    /* Shadows */
    --shadow-gold: 0 0 20px rgba(212, 175, 55, 0.15);
    --shadow-gold-strong: 0 0 40px rgba(212, 175, 55, 0.25);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-elevated: 0 16px 48px rgba(0, 0, 0, 0.5);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Z-Index */
    --z-nav: 1000;
    --z-player: 1100;
    --z-modal: 1200;
    --z-overlay: 1150;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scrollbar-width: thin;
    scrollbar-color: var(--gold-dark) var(--bg-secondary);
}

html::-webkit-scrollbar {
    width: 8px;
}

html::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-bottom: calc(85px + env(safe-area-inset-bottom, 0px));
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--container-padding);
}

/* --- Section Title --- */
.section-title {
    text-align: center;
    margin-bottom: 64px;
}

.section-title h2 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    background: var(--gold-gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    letter-spacing: 0.02em;
}

.section-title .divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
}

.section-title .divider::before,
.section-title .divider::after {
    content: '';
    width: 60px;
    height: 1px;
    background: var(--gold-gradient);
}

.section-title .divider-icon {
    color: var(--gold-primary);
    font-size: 1.2rem;
}

.section-title p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-nav);
    padding: calc(18px + env(safe-area-inset-top, 0px)) 0 18px 0;
    transition: all var(--transition-smooth);
}

.navbar.scrolled {
    padding: calc(10px + env(safe-area-inset-top, 0px)) 0 10px 0;
    background: rgba(10, 10, 10, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.navbar .container {
    max-width: 1440px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-brand-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0d0d18;
    border: 1.5px solid var(--gold-light);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.35);
    transition: all var(--transition-normal);
}

.nav-brand:hover .nav-brand-icon {
    transform: scale(1.08);
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.6);
    border-color: var(--gold-bright);
}

.nav-brand-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nav-brand-text {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 700;
    white-space: nowrap;
    background: var(--gold-gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

.nav-links a {
    white-space: nowrap;
    padding: 7px 11px;
    border-radius: var(--radius-xl);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    position: relative;
    letter-spacing: 0.01em;
    display: inline-flex;
    align-items: center;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--gold-light);
    background: var(--gold-muted);
}

.nav-links a.nav-cta {
    background: var(--gold-gradient);
    color: #0a0a0a;
    font-weight: 600;
    padding: 7px 15px;
    margin-left: 6px;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.25);
}

.nav-links a.nav-cta:hover {
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.45);
    transform: translateY(-1px);
}

/* Nav Install PWA Button */
.nav-install-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: var(--radius-xl);
    color: var(--gold-bright) !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: all var(--transition-normal);
    white-space: nowrap;
    text-decoration: none;
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.15);
}

.nav-install-btn:hover {
    background: rgba(212, 175, 55, 0.25);
    border-color: var(--gold-bright);
    transform: translateY(-1px);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

/* Hero Install Pill Button */
.btn-gold-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(212, 175, 55, 0.15);
    border: 1.5px solid var(--gold-light);
    border-radius: var(--radius-xl);
    color: var(--gold-bright);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
    backdrop-filter: blur(10px);
}

.btn-gold-pill:hover {
    background: var(--gold-gradient);
    color: #0a0a0a;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.45);
}

/* Intermediate desktop screen scaling */
@media (min-width: 1121px) and (max-width: 1320px) {
    .nav-links {
        gap: 2px;
    }
    .nav-links a {
        padding: 6px 9px;
        font-size: 0.84rem;
    }
    .nav-links a.nav-cta {
        padding: 6px 12px;
        margin-left: 4px;
    }
}

/* Mobile Menu Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    z-index: 10;
}

.nav-toggle span {
    width: 28px;
    height: 2px;
    background: var(--gold-primary);
    border-radius: 2px;
    transition: all var(--transition-normal);
}

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

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

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

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.35) saturate(0.8);
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10, 10, 10, 0.3) 0%,
        rgba(10, 10, 10, 0.1) 40%,
        rgba(10, 10, 10, 0.5) 70%,
        rgba(10, 10, 10, 1) 100%
    );
}

#particle-canvas {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 24px;
}

.hero-logo-emblem {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    animation: fadeInDown 1s ease 0.2s both;
}

.hero-logo-3d {
    width: 124px;
    height: 124px;
    border-radius: 50%;
    object-fit: cover;
    border: 2.5px solid var(--gold-primary);
    box-shadow: 0 0 35px rgba(212, 175, 55, 0.45), 0 0 70px rgba(212, 175, 55, 0.2);
    animation: floatLogo 6s ease-in-out infinite alternate;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    cursor: pointer;
}

.hero-logo-3d:hover {
    transform: scale(1.08) rotate(3deg);
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.7);
    border-color: var(--gold-bright);
}

@keyframes floatLogo {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-10px); }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 24px;
    background: var(--gold-muted);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--radius-xl);
    font-size: 0.85rem;
    color: var(--gold-light);
    margin-bottom: 32px;
    backdrop-filter: blur(10px);
    animation: fadeInDown 1s ease 0.3s both;
}

.hero-badge .live-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 7vw, 5.5rem);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 24px;
    animation: fadeInUp 1s ease 0.5s both;
}

.hero-title .gold-text {
    background: var(--gold-gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(0 0 30px rgba(212, 175, 55, 0.3));
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.8;
    animation: fadeInUp 1s ease 0.7s both;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.9s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    border-radius: var(--radius-xl);
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--transition-normal);
}

.btn-gold {
    background: var(--gold-gradient);
    color: #0a0a0a;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
}

.btn-gold:hover {
    box-shadow: 0 8px 40px rgba(212, 175, 55, 0.5);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--gold-primary);
    border: 1.5px solid rgba(212, 175, 55, 0.4);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: var(--gold-muted);
    border-color: var(--gold-primary);
    transform: translateY(-2px);
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.8rem;
    animation: float 3s ease-in-out infinite;
}

.hero-scroll .scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--gold-primary), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

/* --- About Section --- */
.about {
    padding: var(--section-padding);
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-gold);
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-image::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--radius-lg);
    z-index: 1;
    pointer-events: none;
}

.about-content h3 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    color: var(--gold-light);
    margin-bottom: 20px;
}

.about-content p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.9;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: var(--bg-glass);
    border-radius: var(--radius-md);
    border: 1px solid rgba(212, 175, 55, 0.1);
    backdrop-filter: blur(10px);
    transition: all var(--transition-normal);
}

.stat-item:hover {
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: var(--shadow-gold);
    transform: translateY(-4px);
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    background: var(--gold-gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* --- Schedule Section --- */
.schedule {
    padding: var(--section-padding);
    background: var(--bg-secondary);
    position: relative;
}

.schedule::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.schedule-card {
    background: var(--bg-glass);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid rgba(212, 175, 55, 0.08);
    backdrop-filter: blur(10px);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.schedule-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gold-gradient);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.schedule-card:hover {
    border-color: rgba(212, 175, 55, 0.2);
    transform: translateY(-4px);
    box-shadow: var(--shadow-gold);
}

.schedule-card:hover::before {
    opacity: 1;
}

.schedule-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.schedule-card-icon {
    width: 50px;
    height: 50px;
    background: var(--gold-muted);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.schedule-card-title {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--gold-light);
}

.schedule-card-time {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.schedule-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

.schedule-card .live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: var(--radius-xl);
    font-size: 0.75rem;
    color: #22c55e;
    margin-top: 12px;
}

.schedule-card .live-badge .dot {
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

/* --- News Section --- */
.news {
    padding: var(--section-padding);
    position: relative;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
}

.news-card {
    background: var(--bg-glass);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.08);
    transition: all var(--transition-normal);
    cursor: pointer;
}

.news-card:hover {
    border-color: rgba(212, 175, 55, 0.2);
    transform: translateY(-6px);
    box-shadow: var(--shadow-gold-strong);
}

.news-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.news-card:hover .news-card-image img {
    transform: scale(1.08);
}

.news-card-image .category-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 16px;
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: var(--radius-xl);
    font-size: 0.75rem;
    color: var(--gold-light);
    font-weight: 500;
}

.news-card-body {
    padding: 24px;
}

.news-card-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.news-card-title {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.5;
    transition: color var(--transition-fast);
}

.news-card:hover .news-card-title {
    color: var(--gold-light);
}

.news-card-excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.news-read-more {
    font-size: 0.85rem;
    color: var(--gold-primary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: gap var(--transition-fast);
}

.news-card:hover .news-read-more {
    gap: 10px;
}

/* --- Contact Section --- */
.contact {
    padding: var(--section-padding);
    background: var(--bg-secondary);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-info h3 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    color: var(--gold-light);
    margin-bottom: 8px;
}

.contact-info > p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: var(--bg-glass);
    border-radius: var(--radius-md);
    border: 1px solid rgba(212, 175, 55, 0.08);
    transition: all var(--transition-normal);
}

.contact-item:hover {
    border-color: rgba(212, 175, 55, 0.2);
    box-shadow: var(--shadow-gold);
}

.contact-item-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: var(--gold-muted);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--gold-primary);
}

.contact-item-text h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.contact-item-text p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.contact-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.15);
    height: 100%;
    min-height: 380px;
    background: var(--bg-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(0.5) contrast(1.1);
}

.map-placeholder {
    text-align: center;
    color: var(--text-muted);
    padding: 40px;
}

.map-placeholder .map-icon {
    font-size: 4rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* --- Audio Player Bar --- */
.audio-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: var(--z-player);
    background: rgba(10, 10, 20, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    padding: 0 0 env(safe-area-inset-bottom, 0px) 0;
    transition: all var(--transition-normal);
}

.player-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 250px;
}

.player-live-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-xl);
    font-size: 0.7rem;
    font-weight: 700;
    color: #ef4444;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.player-live-indicator .live-pulse {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    animation: pulse-dot 1.5s ease-in-out infinite;
}

.player-track {
    flex: 1;
}

.player-track-name {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-track-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.player-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    font-size: 1.2rem;
}

.player-btn-main {
    background: var(--gold-gradient);
    color: #0a0a0a;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.player-btn-main:hover {
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
    transform: scale(1.08);
}

.player-btn-secondary {
    background: var(--bg-glass);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.player-btn-secondary:hover {
    color: var(--gold-primary);
    border-color: rgba(212, 175, 55, 0.3);
}

.player-visualizer {
    flex: 1;
    max-width: 300px;
    height: 40px;
}

#visualizer-canvas {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-sm);
}

.player-volume {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 140px;
}

.player-volume-icon {
    color: var(--text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.player-volume-icon:hover {
    color: var(--gold-primary);
}

.volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: var(--gold-primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
    transition: transform var(--transition-fast);
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: var(--gold-primary);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

/* --- News Modal --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: var(--z-overlay);
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

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

.modal {
    z-index: var(--z-modal);
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    max-width: 700px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    border: 1px solid rgba(212, 175, 55, 0.15);
    box-shadow: var(--shadow-elevated), 0 0 60px rgba(212, 175, 55, 0.1);
    transform: translateY(20px);
    transition: transform var(--transition-normal);
    scrollbar-width: thin;
    scrollbar-color: var(--gold-dark) var(--bg-tertiary);
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

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

.modal-body {
    padding: 32px;
}

.modal-category {
    display: inline-block;
    padding: 4px 14px;
    background: var(--gold-muted);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--radius-xl);
    font-size: 0.75rem;
    color: var(--gold-light);
    margin-bottom: 12px;
}

.modal-title {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.4;
}

.modal-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.modal-content {
    color: var(--text-secondary);
    line-height: 2;
    font-size: 1rem;
}

.modal-content p {
    margin-bottom: 16px;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    z-index: 10;
}

.modal-close:hover {
    background: rgba(212, 175, 55, 0.2);
    color: var(--gold-primary);
    border-color: rgba(212, 175, 55, 0.3);
}

/* --- Footer --- */
.footer {
    padding: 60px 0 100px; /* Extra bottom padding for audio player */
    background: var(--bg-primary);
    border-top: 1px solid rgba(212, 175, 55, 0.08);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-brand-name {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--gold-gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--gold-light);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
    flex-shrink: 0;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: var(--bg-glass);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    transition: all var(--transition-normal);
}

.footer-social a:hover {
    background: var(--gold-muted);
    border-color: var(--gold-primary);
    color: var(--gold-primary);
    transform: translateY(-2px);
}

.footer-column h4 {
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--gold-light);
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-column ul a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-column ul a:hover {
    color: var(--gold-primary);
    padding-left: 4px;
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* --- Scroll Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* --- Keyframe Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.4;
        transform: scale(0.8);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

@keyframes scrollLine {
    0% {
        opacity: 0;
        transform: scaleY(0);
        transform-origin: top;
    }
    50% {
        opacity: 1;
        transform: scaleY(1);
        transform-origin: top;
    }
    100% {
        opacity: 0;
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.15);
    }
    50% {
        box-shadow: 0 0 40px rgba(212, 175, 55, 0.3);
    }
}

/* --- Responsive Navigation & Layout --- */
@media (max-width: 1120px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 82%;
        max-width: 320px;
        height: 100vh;
        background: rgba(12, 12, 22, 0.98);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        flex-direction: column;
        padding: 85px 24px 36px;
        gap: 6px;
        transition: right var(--transition-smooth);
        border-left: 1px solid rgba(212, 175, 55, 0.2);
        box-shadow: -12px 0 36px rgba(0, 0, 0, 0.7);
        overflow-y: auto;
        z-index: 1050;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        padding: 12px 18px;
        font-size: 1rem;
        width: 100%;
        border-radius: var(--radius-md);
        display: block;
        text-align: left;
    }

    .nav-links a.nav-cta {
        margin-left: 0;
        margin-top: 8px;
        text-align: center;
        padding: 12px 20px;
        display: block;
    }
}

@media (max-width: 1024px) {
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .player-visualizer {
        display: none;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px 0;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .schedule-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .player-container {
        flex-wrap: wrap;
        gap: 12px;
        padding: 10px 16px;
    }

    .player-info {
        min-width: unset;
        flex: 1;
    }

    .player-volume {
        min-width: unset;
    }

    .player-volume .volume-slider {
        width: 70px;
    }

    .modal {
        max-height: 90vh;
    }

    .modal-image {
        height: 200px;
    }

    .modal-body {
        padding: 24px;
    }

    .modal-title {
        font-size: 1.3rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .player-container {
        padding: 8px 12px;
    }

    .player-info {
        width: 100%;
    }

    .player-controls {
        width: 100%;
        justify-content: center;
    }

    .player-btn-main {
        width: 44px;
        height: 44px;
    }
}

/* --- Utility --- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Body bottom padding to account for fixed player */
body {
    padding-bottom: 90px;
}

/* ============================================================
   NEW PRODUCTION PLATFORM STYLES: วัดปรกฟ้า เรดิโอ & ศูนย์รวมพระธรรม
   ============================================================ */

/* --- Toast Notification --- */
.wat-toast {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%) translateY(30px);
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95), rgba(15, 15, 26, 0.98));
    color: var(--text-primary);
    border: 1px solid var(--gold-light);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), var(--shadow-gold);
    padding: 12px 26px;
    border-radius: var(--radius-xl);
    font-size: 0.95rem;
    font-weight: 500;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-normal);
    text-align: center;
    max-width: 90vw;
}

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

/* --- Brand Subtitle --- */
.nav-brand-text-group {
    display: flex;
    flex-direction: column;
}

.nav-brand-sub {
    font-size: 0.68rem;
    color: var(--gold-light);
    letter-spacing: 1px;
    margin-top: -3px;
    font-weight: 400;
}

/* --- Stations Section --- */
.stations-section {
    padding: var(--section-padding);
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
    position: relative;
}

.stations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.station-card {
    background: var(--bg-card);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}

.station-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    transition: background var(--transition-normal);
}

.station-card:hover {
    border-color: var(--gold-light);
    transform: translateY(-4px);
    box-shadow: var(--shadow-gold);
}

.station-card.playing {
    border-color: var(--gold-bright);
    box-shadow: var(--shadow-gold-strong);
    background: rgba(30, 25, 45, 0.7);
}

.station-card.playing::before {
    background: var(--gold-gradient);
}

.station-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.station-badge {
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold-bright);
    padding: 4px 12px;
    border-radius: var(--radius-xl);
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.station-num {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.station-name {
    font-size: 1.15rem;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-family: var(--font-serif);
}

.station-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

.station-card-bottom {
    margin-top: auto;
}

.station-play-btn {
    width: 100%;
    padding: 10px 16px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--gold-dark);
    color: var(--gold-light);
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.station-card:hover .station-play-btn,
.station-card.playing .station-play-btn {
    background: var(--gold-gradient);
    color: #000;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.3);
}

.stream-admin-bar {
    margin-top: 36px;
    padding: 14px 20px;
    background: rgba(26, 26, 46, 0.5);
    border: 1px dashed rgba(212, 175, 55, 0.3);
    border-radius: var(--radius-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* --- Schedule Active Highlighting --- */
.schedule-card.current-show {
    border-color: var(--gold-bright);
    box-shadow: var(--shadow-gold-strong);
    background: rgba(40, 25, 20, 0.4);
    transform: scale(1.02);
}

.schedule-card.current-show .schedule-card-title {
    color: var(--gold-light);
}

.schedule-card {
    cursor: pointer;
}

.schedule-card:hover {
    border-color: var(--gold-light);
}

/* --- Chants Section --- */
.chants-section {
    padding: var(--section-padding);
    background: var(--bg-secondary);
}

.chants-container {
    background: var(--bg-card);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--radius-xl);
    padding: 30px;
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(16px);
}

.chants-toolbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.font-resizer {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.font-size-btn {
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.font-size-btn.active,
.font-size-btn:hover {
    background: var(--gold-primary);
    color: #000;
    border-color: var(--gold-primary);
}

.chants-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 30px;
}

.chant-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 620px;
    overflow-y: auto;
    padding-right: 8px;
}

.chant-tab-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(20, 20, 40, 0.4);
    border: 1px solid rgba(212, 175, 55, 0.12);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    text-align: left;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.chant-tab-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold-light);
    font-size: 0.85rem;
    font-weight: bold;
    flex-shrink: 0;
}

.chant-tab-name {
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.4;
}

.chant-tab-btn:hover {
    background: rgba(30, 30, 60, 0.6);
    color: var(--text-primary);
    border-color: rgba(212, 175, 55, 0.4);
}

.chant-tab-btn.active {
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.05));
    border-color: var(--gold-light);
    color: var(--gold-bright);
    box-shadow: inset 3px 0 0 var(--gold-bright);
}

.chant-tab-btn.active .chant-tab-num {
    background: var(--gold-primary);
    color: #000;
}

.chant-content-card {
    background: rgba(10, 10, 20, 0.5);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: var(--radius-lg);
    padding: 30px;
    max-height: 620px;
    overflow-y: auto;
}

.chant-header {
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding-bottom: 20px;
    margin-bottom: 24px;
}

.chant-header-badge {
    color: var(--gold-light);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.chant-display-title {
    font-size: 1.6rem;
    font-family: var(--font-serif);
    color: var(--gold-gradient-text);
    margin-bottom: 8px;
}

.chant-display-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.chant-actions-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.chant-body {
    transition: font-size var(--transition-fast);
}

.chant-body.font-small { font-size: 0.95rem; }
.chant-body.font-medium { font-size: 1.1rem; }
.chant-body.font-large { font-size: 1.3rem; }
.chant-body.font-xlarge { font-size: 1.55rem; }

.chant-section-block {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px dashed rgba(212, 175, 55, 0.1);
}

.chant-section-heading {
    font-size: 1.05em;
    color: var(--gold-light);
    margin-bottom: 12px;
    font-family: var(--font-serif);
}

.chant-pali-text {
    font-family: var(--font-serif);
    line-height: 1.9;
    color: #ffffff;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}

.chant-thai-text {
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid var(--gold-dark);
    padding: 12px 18px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text-secondary);
    font-size: 0.88em;
    line-height: 1.7;
}

.chant-thai-text .thai-label {
    font-weight: 600;
    color: var(--gold-light);
    margin-bottom: 4px;
    display: inline-block;
}

/* --- Donation Section --- */
.donation-section {
    padding: var(--section-padding);
    background: var(--bg-primary);
}

.donation-card-wrapper {
    background: var(--bg-card);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--radius-xl);
    padding: 36px;
    box-shadow: var(--shadow-card);
}

.donation-step {
    margin-bottom: 34px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.step-title {
    font-size: 1.25rem;
    color: var(--gold-light);
    margin-bottom: 18px;
    font-family: var(--font-serif);
}

.fund-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.fund-card {
    background: rgba(20, 20, 40, 0.5);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: var(--radius-md);
    padding: 18px;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: flex-start;
    gap: 14px;
    position: relative;
}

.fund-card:hover {
    border-color: var(--gold-primary);
    background: rgba(30, 30, 60, 0.6);
}

.fund-card.selected {
    border-color: var(--gold-bright);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(20, 20, 40, 0.8));
    box-shadow: var(--shadow-gold);
}

.fund-card-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.fund-card-title {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.4;
}

.fund-card-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.fund-check-indicator {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: transparent;
    position: absolute;
    top: 14px;
    right: 14px;
}

.fund-card.selected .fund-check-indicator {
    background: var(--gold-primary);
    color: #000;
    border-color: var(--gold-primary);
}

.amount-presets {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.amount-btn {
    padding: 12px 24px;
    background: rgba(20, 20, 40, 0.5);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.amount-btn:hover {
    border-color: var(--gold-light);
}

.amount-btn.active {
    background: var(--gold-gradient);
    color: #000;
    border-color: transparent;
    box-shadow: var(--shadow-gold);
}

.custom-amount-box {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.custom-amount-box label {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.custom-amount-box input,
.donor-form-grid input {
    background: rgba(10, 10, 20, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    transition: border-color var(--transition-fast);
}

.custom-amount-box input:focus,
.donor-form-grid input:focus {
    border-color: var(--gold-bright);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.donor-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

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

.donor-form-grid label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.donation-action-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* --- QR Result Box --- */
.qr-result-section {
    margin-top: 30px;
    animation: fadeIn 0.4s ease forwards;
}

.qr-box {
    background: rgba(15, 15, 30, 0.8);
    border: 2px solid var(--gold-primary);
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    max-width: 520px;
    margin: 0 auto;
    box-shadow: var(--shadow-gold-strong);
}

.qr-header-title {
    font-size: 1.25rem;
    color: var(--gold-bright);
    margin-bottom: 6px;
    font-family: var(--font-serif);
}

.qr-header-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.qr-canvas-wrapper {
    display: inline-block;
    padding: 12px;
    background: #ffffff;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    margin-bottom: 20px;
}

.qr-canvas-wrapper canvas {
    display: block;
    border-radius: 4px;
}

.bank-details-box {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--radius-sm);
    padding: 16px;
    text-align: left;
    margin-bottom: 16px;
}

.bank-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.92rem;
}

.bank-label { color: var(--text-muted); }
.bank-val { color: var(--text-primary); font-weight: 500; }

.qr-blessing-note {
    font-size: 0.88rem;
    color: var(--gold-light);
    font-style: italic;
    line-height: 1.6;
}

/* --- Digital Certificate Modal --- */
.cert-modal {
    max-width: 900px;
    width: 95vw;
}

.cert-modal-header {
    text-align: center;
    margin-bottom: 20px;
}

.cert-modal-header h3 {
    font-size: 1.4rem;
    color: var(--gold-bright);
    font-family: var(--font-serif);
}

.cert-modal-header p {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.cert-canvas-container {
    overflow-x: auto;
    text-align: center;
    background: #000;
    border-radius: var(--radius-md);
    padding: 10px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.cert-canvas-container canvas {
    max-width: 100%;
    height: auto;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8);
}

.cert-modal-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
    flex-wrap: wrap;
}

/* --- E-Siimsi & Wisdom Section --- */
.esiimsi-section {
    padding: var(--section-padding);
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.esiimsi-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: flex-start;
}

.esiimsi-box {
    background: var(--bg-card);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--radius-xl);
    padding: 34px;
    text-align: center;
    box-shadow: var(--shadow-card);
}

.esiimsi-box h3 {
    font-size: 1.4rem;
    color: var(--gold-light);
    font-family: var(--font-serif);
    margin-bottom: 8px;
}

.esiimsi-guide {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.cylinder-wrapper {
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.siimsi-cylinder {
    width: 110px;
    height: 200px;
    cursor: pointer;
    position: relative;
    transition: transform var(--transition-fast);
}

.cylinder-body {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #b8860b, #d4af37, #8b6914);
    border-radius: 12px 12px 20px 20px;
    border: 2px solid #ffd700;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), inset 0 0 15px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 25px;
    position: relative;
}

.cylinder-decor {
    font-size: 0.85rem;
    font-weight: bold;
    color: #1a1a2e;
    background: rgba(255, 255, 255, 0.8);
    padding: 3px 10px;
    border-radius: 4px;
    writing-mode: vertical-rl;
    text-orientation: upright;
    letter-spacing: 2px;
}

.stick-tops {
    position: absolute;
    top: -30px;
    display: flex;
    gap: 5px;
}

.stick {
    width: 8px;
    height: 45px;
    background: #d4a373;
    border-radius: 4px 4px 0 0;
    border: 1px solid #bc6c25;
}

.stick-1 { height: 50px; transform: rotate(-8deg); }
.stick-2 { height: 60px; background: #e76f51; }
.stick-3 { height: 55px; transform: rotate(5deg); }
.stick-4 { height: 48px; transform: rotate(-3deg); }
.stick-5 { height: 58px; transform: rotate(10deg); }

/* Shaking animation */
.siimsi-cylinder.shaking {
    animation: shakeBamboo 0.15s infinite alternate;
}

@keyframes shakeBamboo {
    0% { transform: rotate(-8deg) translateY(-5px); }
    100% { transform: rotate(8deg) translateY(5px); }
}

.cylinder-actions {
    display: flex;
    justify-content: center;
}

/* --- Wisdom Column --- */
.wisdom-column {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.dhamma-card {
    background: var(--bg-card);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--radius-lg);
    padding: 26px;
    box-shadow: var(--shadow-card);
}

.dhamma-card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
}

.dhamma-tag {
    font-size: 0.8rem;
    color: var(--gold-light);
    background: rgba(212, 175, 55, 0.15);
    padding: 3px 10px;
    border-radius: var(--radius-xl);
}

.dhamma-temple {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.dhamma-quote {
    font-size: 1.25rem;
    font-family: var(--font-serif);
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 12px;
}

.dhamma-source {
    font-size: 0.9rem;
    color: var(--gold-light);
    font-style: italic;
    margin-bottom: 18px;
}

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

/* --- Prayer Board --- */
.prayer-board-box {
    background: var(--bg-card);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--radius-lg);
    padding: 26px;
}

.prayer-board-box h4 {
    color: var(--gold-bright);
    font-size: 1.15rem;
    font-family: var(--font-serif);
    margin-bottom: 4px;
}

.prayer-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 16px;
}

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

.prayer-form input,
.prayer-form select {
    background: rgba(10, 10, 20, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    color: var(--text-primary);
    font-size: 0.9rem;
    width: 100%;
}

.prayer-board-ticker {
    margin-top: 18px;
    max-height: 200px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 4px;
}

.prayer-item-card {
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid var(--gold-dark);
    padding: 8px 12px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.prayer-item-top {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    margin-bottom: 2px;
}

.prayer-type-tag { color: var(--gold-light); font-weight: 600; }
.prayer-time { color: var(--text-muted); }
.prayer-donor-name { font-size: 0.88rem; font-weight: 500; color: var(--text-primary); }
.prayer-dedicate { font-size: 0.8rem; color: var(--text-secondary); font-style: italic; }

/* --- E-Siimsi Fortune Modal --- */
.siimsi-modal {
    max-width: 620px;
    width: 92vw;
}

.fortune-card {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.8), rgba(15, 15, 26, 0.95));
    border: 2px solid var(--gold-primary);
    border-radius: var(--radius-lg);
    padding: 28px;
}

.fortune-header {
    text-align: center;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.fortune-badge {
    color: var(--gold-light);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.fortune-title {
    font-size: 1.45rem;
    color: var(--gold-bright);
    font-family: var(--font-serif);
    margin-bottom: 6px;
}

.fortune-grade {
    display: inline-block;
    padding: 3px 14px;
    background: rgba(212, 175, 55, 0.2);
    border: 1px solid var(--gold-light);
    border-radius: var(--radius-xl);
    color: #ffd700;
    font-weight: 600;
    font-size: 0.85rem;
}

.fortune-verse-box {
    background: rgba(0, 0, 0, 0.4);
    border-left: 3px solid var(--gold-bright);
    padding: 14px 20px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin-bottom: 20px;
}

.fortune-verse {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    color: var(--text-primary);
    line-height: 1.8;
}

.fortune-meaning-box {
    margin-bottom: 20px;
}

.fortune-meaning-box h4 {
    color: var(--gold-light);
    font-size: 1rem;
    margin-bottom: 6px;
}

.fortune-meaning-box p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

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

.fortune-aspect-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.aspect-icon { font-size: 1.2rem; }
.aspect-info strong { display: block; font-size: 0.85rem; color: var(--gold-light); margin-bottom: 2px; }
.aspect-info p { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.4; }

.fortune-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    padding-top: 14px;
    font-size: 0.85rem;
}

.fortune-lucky-num .lucky-label { color: var(--text-muted); }
.fortune-lucky-num .lucky-val { color: var(--gold-bright); font-weight: bold; font-size: 1rem; margin-left: 6px; }
.fortune-temple-tag { color: var(--text-muted); font-size: 0.78rem; }

/* --- News Toolbar & Admin CMS --- */
.news-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.news-categories {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.news-filter-btn {
    padding: 8px 18px;
    background: rgba(20, 20, 40, 0.5);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--radius-xl);
    color: var(--text-secondary);
    font-size: 0.88rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.news-filter-btn.active,
.news-filter-btn:hover {
    background: var(--gold-primary);
    color: #000;
    border-color: var(--gold-primary);
    font-weight: 600;
}

.news-search-box input {
    background: rgba(10, 10, 20, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: var(--radius-xl);
    padding: 8px 18px;
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
    width: 220px;
}

.admin-panel {
    margin-bottom: 30px;
    animation: fadeIn 0.3s ease;
}

.admin-panel-card {
    background: rgba(30, 25, 45, 0.9);
    border: 2px dashed var(--gold-primary);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.admin-panel-card h3 {
    color: var(--gold-bright);
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.admin-panel-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-form .form-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 12px;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
    background: rgba(10, 10, 20, 0.7);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    color: #fff;
    font-size: 0.9rem;
}

.admin-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.admin-card-actions {
    margin-top: 10px;
}

.btn-delete-news {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid #dc3545;
    color: #ff6b6b;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    cursor: pointer;
}

/* --- Map & Contact --- */
.map-container {
    border-radius: var(--radius-md);
    overflow: hidden;
}

.map-caption {
    background: rgba(15, 15, 26, 0.9);
    padding: 12px 16px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.map-link {
    color: var(--gold-light);
    font-weight: 600;
}

/* --- Audio Player Customization --- */
.player-station-dropdown-box {
    margin-left: 14px;
}

.station-dropdown {
    background: rgba(10, 10, 20, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: var(--gold-light);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    cursor: pointer;
    outline: none;
    max-width: 220px;
}

.player-utilities {
    display: flex;
    align-items: center;
    gap: 16px;
}

.player-tool-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--text-primary);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all var(--transition-fast);
}

.player-tool-btn:hover {
    background: rgba(212, 175, 55, 0.2);
    color: var(--gold-light);
}

.sleep-badge {
    color: var(--gold-bright);
    font-size: 0.78rem;
    font-weight: bold;
}

.player-collapse-btn {
    display: none;
}

/* Collapsed state for player bar */
.audio-player.collapsed .player-track,
.audio-player.collapsed .player-station-dropdown-box,
.audio-player.collapsed .player-visualizer,
.audio-player.collapsed .player-volume {
    display: none;
}

.audio-player.collapsed {
    padding: 6px 0 calc(6px + env(safe-area-inset-bottom, 0px)) 0;
}

/* ============================================================
   TABLET, IPAD & MOBILE RESPONSIVE ENHANCEMENTS
   ============================================================ */

/* --- Tablet / iPad (Landscape & Medium Screens: 993px - 1180px) --- */
@media (min-width: 993px) and (max-width: 1180px) {
    .container {
        padding: 0 20px;
    }

    .stations-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .schedule-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .chants-layout {
        grid-template-columns: 280px 1fr;
        gap: 20px;
    }
}

/* --- Tablet / iPad (Portrait: 769px - 992px) --- */
@media (min-width: 769px) and (max-width: 992px) {
    .hero-title {
        font-size: clamp(2.4rem, 5vw, 3.4rem);
    }

    .stations-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .schedule-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .fund-options-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .chants-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .chant-nav {
        max-height: 280px;
    }

    .esiimsi-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .player-visualizer {
        display: none;
    }
}

/* --- Mobile Devices & Small Tablets (<= 768px) --- */
@media (max-width: 768px) {
    .station-dropdown {
        max-width: 140px;
        font-size: 0.78rem;
    }

    .player-volume {
        display: none;
    }

    .player-collapse-btn {
        display: block;
    }

    .fortune-aspects-grid {
        grid-template-columns: 1fr;
    }

    .donation-card-wrapper {
        padding: 20px 16px;
    }

    .prayer-form .form-row {
        grid-template-columns: 1fr;
    }

    .chants-layout {
        grid-template-columns: 1fr;
    }

    .esiimsi-grid {
        grid-template-columns: 1fr;
    }

    .player-visualizer {
        display: none;
    }

    /* PWA Floating Pill reposition on mobile */
    .pwa-floating-pill {
        left: 12px;
        right: 12px;
        bottom: calc(85px + env(safe-area-inset-bottom, 0px));
        max-width: none;
        padding: 8px 12px;
    }

    .pwa-pill-text {
        flex: 1;
        min-width: 0;
    }

    .pwa-pill-sub {
        max-width: 160px;
    }
}

/* --- Compact Mobile Devices (<= 480px) --- */
@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .btn, .btn-gold-pill {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .pwa-modal {
        padding: 24px 16px;
        width: 95%;
    }

    .pwa-features-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        text-align: left;
    }

    .pwa-feature-item {
        flex-direction: row;
        text-align: left;
        gap: 12px;
    }

    .pwa-3d-icon-badge {
        width: 90px;
        height: 90px;
    }
}

/* ============================================================
   3D LOGO & APP ICON SHOWCASE
   ============================================================ */
.logo-showcase-card {
    margin-top: 36px;
    background: rgba(20, 20, 38, 0.7);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-card);
}

.logo-showcase-header {
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    padding-bottom: 12px;
}

.logo-showcase-title h4 {
    color: var(--gold-bright);
    font-size: 1.15rem;
    font-family: var(--font-serif);
    margin-bottom: 4px;
}

.logo-showcase-title p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.logo-showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

@media (max-width: 992px) {
    .logo-showcase-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .logo-showcase-grid {
        grid-template-columns: 1fr;
    }
}

.logo-showcase-item {
    background: rgba(10, 10, 20, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--radius-md);
    padding: 18px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    transition: all var(--transition-normal);
}

.logo-showcase-item:hover {
    border-color: var(--gold-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.25);
}

.logo-showcase-item.highlight-item {
    border-color: var(--gold-bright);
    background: linear-gradient(180deg, rgba(25, 25, 45, 0.8), rgba(12, 12, 24, 0.8));
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.2);
}

.logo-preview-box {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--gold-light);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.logo-preview-box.logo-app-box {
    border-radius: 22px;
    border: 2px solid var(--gold-bright);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 25px rgba(212, 175, 55, 0.45);
}

.logo-preview-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-item-caption {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
}

.logo-item-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-xs {
    padding: 6px 14px;
    font-size: 0.8rem;
}

/* ============================================================
   FLOATING PWA INSTALL PILL
   ============================================================ */
.pwa-floating-pill {
    position: fixed;
    bottom: calc(85px + env(safe-area-inset-bottom, 0px));
    left: 24px;
    z-index: 1080;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(14, 14, 26, 0.95);
    border: 1.5px solid rgba(212, 175, 55, 0.45);
    border-radius: var(--radius-xl);
    padding: 10px 16px;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.65), 0 0 24px rgba(212, 175, 55, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    animation: pwaPillSlideIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    max-width: calc(100vw - 48px);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.pwa-floating-pill.hidden {
    transform: translateY(30px);
    opacity: 0;
    pointer-events: none;
}

@keyframes pwaPillSlideIn {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.pwa-pill-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    overflow: hidden;
    border: 1.5px solid var(--gold-light);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.35);
}

.pwa-pill-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pwa-pill-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pwa-pill-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gold-bright);
    white-space: nowrap;
}

.pwa-pill-sub {
    font-size: 0.74rem;
    color: var(--text-secondary);
    white-space: nowrap;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pwa-pill-btn {
    padding: 6px 14px;
    background: var(--gold-gradient);
    color: #0a0a0a;
    font-size: 0.82rem;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-xl);
    cursor: pointer;
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.3);
    white-space: nowrap;
    transition: all var(--transition-fast);
}

.pwa-pill-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.pwa-pill-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition-fast);
}

.pwa-pill-close:hover {
    color: #fff;
}

/* ============================================================
   PWA INSTALLATION MODAL
   ============================================================ */
.pwa-modal {
    max-width: 520px;
    width: 92%;
    background: rgba(14, 14, 28, 0.97);
    border: 1.5px solid rgba(212, 175, 55, 0.4);
    border-radius: var(--radius-xl);
    padding: 32px 28px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(212, 175, 55, 0.25);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    max-height: 90vh;
    overflow-y: auto;
}

.pwa-modal-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 22px;
}

.pwa-3d-icon-badge {
    position: relative;
    width: 105px;
    height: 105px;
    margin-bottom: 16px;
}

.pwa-3d-img {
    width: 100%;
    height: 100%;
    border-radius: 24px;
    object-fit: cover;
    position: relative;
    z-index: 2;
    border: 2px solid var(--gold-light);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 25px rgba(212, 175, 55, 0.4);
    transition: transform var(--transition-normal);
}

.pwa-3d-icon-badge:hover .pwa-3d-img {
    transform: translateY(-3px) scale(1.03);
}

.pwa-icon-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 130px;
    height: 130px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.35) 0%, rgba(212, 175, 55, 0) 70%);
    z-index: 1;
    pointer-events: none;
    animation: iconGlowPulse 3s ease-in-out infinite alternate;
}

@keyframes iconGlowPulse {
    0% { opacity: 0.5; transform: translate(-50%, -50%) scale(0.9); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
}

.pwa-app-title {
    font-family: var(--font-serif);
    font-size: 1.45rem;
    color: var(--gold-bright);
    margin-bottom: 4px;
}

.pwa-app-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    max-width: 380px;
    margin-bottom: 12px;
}

.pwa-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.pwa-tag {
    font-size: 0.74rem;
    padding: 3px 10px;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: var(--radius-xl);
    color: var(--gold-light);
}

/* Features Grid */
.pwa-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 22px;
    background: rgba(10, 10, 20, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: var(--radius-md);
    padding: 14px 10px;
}

.pwa-feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
}

.pwa-feature-item .feat-icon {
    font-size: 1.35rem;
}

.pwa-feature-item strong {
    font-size: 0.8rem;
    color: var(--gold-bright);
}

.pwa-feature-item span {
    font-size: 0.7rem;
    color: var(--text-muted);
    line-height: 1.3;
}

/* Native Install Section */
.pwa-install-action {
    text-align: center;
    margin-bottom: 16px;
}

.pwa-install-trigger {
    width: 100%;
    padding: 14px 20px;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 25px rgba(212, 175, 55, 0.35);
}

.pwa-install-hint {
    margin-top: 8px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* iOS Guide */
.pwa-ios-guide {
    background: rgba(20, 20, 36, 0.7);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: var(--radius-lg);
    padding: 18px;
    margin-bottom: 16px;
}

.ios-guide-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--gold-light);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ios-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.ios-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(10, 10, 22, 0.65);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: var(--radius-md);
    padding: 10px 12px;
}

.ios-step-num {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border-radius: 50%;
    background: var(--gold-gradient);
    color: #0a0a0a;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.ios-step-desc {
    font-size: 0.84rem;
    color: var(--text-primary);
    line-height: 1.5;
}

.ios-icon-box {
    display: inline-block;
    padding: 1px 6px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    margin: 0 2px;
    font-size: 0.95rem;
}

.pwa-ios-done-btn {
    width: 100%;
    padding: 12px;
    font-size: 0.95rem;
    font-weight: 600;
}

.pwa-modal-footer {
    text-align: center;
    margin-top: 8px;
}

.pwa-download-icon-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--gold-light);
    text-decoration: underline;
    opacity: 0.85;
    transition: opacity var(--transition-fast);
}

.pwa-download-icon-link:hover {
    opacity: 1;
    color: var(--gold-bright);
}


