@charset "UTF-8";

/* =========================================
   1. Global & Utility Styles (from static/css/style.css)
   ========================================= */

/* Global Font Settings */
a {
    text-decoration: none;
}

/* Prevent image dragging globally */
img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Animation Utilities */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

.slide-up {
    animation: slideUp 0.5s ease-out;
}

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

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

/* Glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-dark {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* =========================================
   2. Main Site Styles (from static/style.css)
   ========================================= */

:root {
    --primary-color: #ff3333;
    --secondary-color: #cc0000;
    --accent-color: #ffffff;
    --bg-color: #0a0a0a;
    --bg-alt-color: #141414;
    --text-color: #ffffff;
    --text-muted: #aaaaaa;
    --card-bg: rgba(30, 30, 30, 0.6);
    --border-color: rgba(255, 51, 51, 0.2);
    --gradient-hero: radial-gradient(circle at center, #1a0505 0%, #000000 100%);
    
    /* Admin specific variables */
    --sidebar-bg: #141414;
    --header-bg: #1a1a1a;
    --sidebar-width: 250px;
    --header-height: 60px;
}

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

body {
    font-family: 'Noto Sans SC', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Decoration */
.bg-flower {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.15;
    background-image: url('../flower.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    filter: grayscale(0.5) contrast(1.2);
}

.bg-schedule {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.5;
    background-image: url('../beitu.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    filter: grayscale(0.2) contrast(1.1) brightness(1.2);
}

/* Eye Logo */
.eye-container {
    width: 30px;
    height: 30px;
    background: #fff;
    border-radius: 50%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 10px rgba(255, 51, 51, 0.5);
    overflow: hidden;
}

.eye-pupil {
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    position: absolute;
    transition: transform 0.1s;
}

/* Header & Navbar */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    position: relative;
}

.nav-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    width: 0;
    box-shadow: 0 0 10px var(--primary-color);
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    padding: 5px 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(255, 51, 51, 0.5);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    text-align: left;
    padding: 80px 5% 0;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
    gap: 5%;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(204, 0, 0, 0.1), transparent 70%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    flex: 1;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 51, 51, 0.6);
    letter-spacing: 5px;
    font-weight: 800;
}

.hero-content .subtitle {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 8px;
    font-weight: 300;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
}

/* Floating Flower Elements */
.floating-flower {
    position: absolute;
    width: 150px;
    height: 150px;
    background-image: url('../flower.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.6;
    filter: drop-shadow(0 0 10px rgba(255, 0, 0, 0.3));
    z-index: 0;
    pointer-events: none;
}

.flower-1 { top: 15%; right: 10%; transform: rotate(15deg); animation: float 6s ease-in-out infinite; }
.flower-2 { bottom: 15%; left: 10%; transform: rotate(-20deg) scale(0.8); animation: float 7s ease-in-out infinite reverse; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(15deg); }
    50% { transform: translateY(-20px) rotate(20deg); }
}

/* Character Display */
.character-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 0;
    position: relative;
    z-index: 2;
    flex: 1;
    height: 100vh;
    justify-content: flex-end;
    cursor: pointer;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.character-image-container {
    width: 100%;
    height: 120%;
    max-width: 800px;
    position: relative;
    margin-bottom: -10%;
    filter: drop-shadow(0 0 20px rgba(255, 51, 51, 0.3));
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.character-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    opacity: 0;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    transform: scale(0.95);
    pointer-events: none;
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

.character-img.active {
    opacity: 1;
    transform: scale(1);
}

.form-switcher {
    display: none;
}

.switch-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 8px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
    font-weight: 600;
}

.switch-btn:hover {
    color: #fff;
}

.switch-btn.active {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 0 10px rgba(255, 51, 51, 0.5);
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    animation: bounce 2s infinite;
    color: var(--primary-color);
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s;
}

.scroll-down:hover {
    transform: scale(1.2);
    text-shadow: 0 0 10px var(--primary-color);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Sections General */
.section {
    padding: 6rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.section.alt-bg {
    background: var(--bg-alt-color);
    max-width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-header h2 span {
    color: var(--primary-color);
}

.section-header h2::after {
    content: '';
    display: block;
    width: 60%;
    height: 4px;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
    margin: 15px auto 0;
}

.section-header p {
    color: var(--text-muted);
    font-style: italic;
    margin-top: 10px;
}

/* Gallery New Layout */
.gallery-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    align-items: center;
    background: var(--bg-alt-color);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    max-width: 1200px;
    margin: 0 auto;
    border: 1px solid var(--border-color);
}

.gallery-carousel-wrapper {
    flex: 1.5;
    min-width: 300px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.gallery-info-wrapper {
    flex: 1;
    min-width: 250px;
    padding: 1rem;
}

/* Swiper Styles */
.gallerySwiper {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 12px;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.placeholder-slide {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
    font-size: 1.5rem;
}

/* Info Styles */
.gallery-title-new {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: #fff;
    letter-spacing: 2px;
}

.gallery-divider-new {
    width: 50px;
    height: 6px;
    background: var(--primary-color);
    margin-bottom: 2rem;
    border-radius: 3px;
    box-shadow: 0 0 10px var(--primary-color);
}

.gallery-desc-new {
    color: #aaa;
    line-height: 1.8;
    margin-bottom: 3rem;
    font-size: 1rem;
}

.gallery-stats-new {
    display: flex;
    gap: 3rem;
    margin-bottom: 3rem;
}

.stat-item-new {
    display: flex;
    flex-direction: column;
}

.stat-num-new {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(255, 51, 51, 0.3);
}

.stat-label-new {
    font-size: 0.9rem;
    color: #888;
}

.btn-gallery-entry {
    display: inline-flex;
    align-items: center;
    background: var(--primary-color);
    color: #fff;
    padding: 12px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(255, 51, 51, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-gallery-entry:hover {
    background: #ff0000;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 51, 51, 0.6);
}

/* Swiper Pagination Custom */
.swiper-pagination-bullet {
    width: 30px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255,255,255,0.2);
    opacity: 1;
    transition: all 0.3s;
}

.swiper-pagination-bullet-active {
    background: var(--primary-color);
    width: 40px;
    box-shadow: 0 0 5px var(--primary-color);
}

@media (max-width: 768px) {
    .gallery-layout {
        flex-direction: column;
        padding: 1.5rem;
        gap: 2rem;
    }
    .gallery-carousel-wrapper, .gallery-info-wrapper {
        width: 100%;
    }
    .gallery-info-wrapper {
        text-align: center;
        margin-top: 1rem;
        padding: 0;
    }
    .gallery-divider-new {
        margin: 0 auto 2rem;
    }
    .gallery-stats-new {
        justify-content: center;
    }
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: rgba(255, 255, 255, 0.1);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 10px 50px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item.left { left: 0; text-align: right; }
.timeline-item.right { left: 50%; text-align: left; }

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--bg-color);
    border: 3px solid var(--primary-color);
    top: 20px;
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 15px var(--primary-color);
    transition: all 0.3s;
}

.timeline-item.right::after {
    left: -10px;
}

.timeline-item:hover::after {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

.timeline-content {
    padding: 25px;
    background: rgba(20, 20, 20, 0.8);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.timeline-content:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(255, 51, 51, 0.1);
}

.timeline-content .date {
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-weight: 700;
    letter-spacing: 1px;
}

.timeline-content h3 {
    font-size: 1.2rem;
    margin: 0;
    color: #fff;
}

.more-timeline {
    text-align: center;
    margin-top: 3rem;
}

/* Cafe (Oracle's Lounge) */
.cafe-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.cafe-card {
    text-align: center;
    padding: 2.5rem;
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.cafe-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s;
    transform-origin: left;
}

.cafe-card:hover::before {
    transform: scaleX(1);
}

.cafe-card:hover {
    background: rgba(30, 30, 30, 0.9);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.cafe-card i {
    font-size: 3.5rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    transition: color 0.3s;
}

.cafe-card:hover i {
    color: var(--primary-color);
    text-shadow: 0 0 15px rgba(255, 51, 51, 0.5);
}

.cafe-card h3 {
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
}

.cafe-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* MMD */
.mmd-content {
    text-align: center;
    background: rgba(20, 20, 20, 0.8);
    padding: 3rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 0 30px rgba(255, 51, 51, 0.1);
}

.mmd-info ul {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
    display: inline-block;
    padding: 1rem 2rem;
    border-left: 2px solid var(--primary-color);
    background: rgba(0,0,0,0.3);
}

.mmd-info li {
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.mmd-info strong {
    color: var(--primary-color);
    margin-right: 10px;
}

/* Buttons */
.btn-primary {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 12px 35px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 15px rgba(255, 51, 51, 0.4);
}

.btn-primary:hover {
    background: #ff0000;
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(255, 51, 51, 0.6);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 30px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 51, 51, 0.4);
}

/* Footer */
footer {
    background: #050505;
    padding-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    box-shadow: 0 0 10px var(--primary-color);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.footer-logo-eye {
    width: 30px;
    height: 30px;
    background: #fff;
    border-radius: 50%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 10px rgba(255, 51, 51, 0.5);
}

.eye-pupil-small {
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
}

.brand-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-desc {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 0.95rem;
}

.footer-heading {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
    box-shadow: 0 0 5px var(--primary-color);
}

.footer-nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-nav a {
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.95rem;
    display: inline-block;
}

.footer-nav a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
    text-shadow: 0 0 8px rgba(255, 51, 51, 0.4);
}

.footer-contact {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact li {
    display: flex;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-contact i {
    width: 25px;
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-right: 10px;
}

.contact-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
}

.contact-link:hover {
    color: #fff;
}

.contact-link:hover i {
    text-shadow: 0 0 8px var(--primary-color);
}

.footer-bottom-bar {
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem 0;
}

.footer-bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #666;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom-links a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-bottom-links a:hover {
    color: var(--primary-color);
}

.separator {
    color: #444;
}

@media (max-width: 768px) {
    /* Footer Responsive */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .footer-brand {
        justify-content: center;
    }

    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-nav a:hover {
        transform: none;
        color: var(--primary-color);
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    /* Other Responsive Styles */
    .nav-links {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 80px 20px 0;
        height: auto;
    }

    .hero-content {
        max-width: 100%;
        margin-bottom: 1rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .character-display {
        height: 50vh;
        width: 100%;
    }

    .character-image-container {
        height: 120%;
        margin-bottom: 0;
        align-items: flex-start;
    }
    
    .character-img {
        object-fit: cover;
        object-position: top center;
    }

    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item::after {
        left: 21px;
    }
    
    .timeline-item.left, .timeline-item.right {
        left: 0;
        text-align: left;
    }
    
    .floating-flower {
        display: none;
    }
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

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

/* Scroll Animation Classes */
.fade-in-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* =========================================
   3. Admin Styles (from templates/admin.html)
   ========================================= */

.admin-body {
    font-family: 'Noto Sans SC', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    top: 0;
    left: 0;
    z-index: 100;
}

.sidebar-logo {
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--primary-color);
    font-weight: 900;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.sidebar-logo i {
    margin-right: 10px;
}

.sidebar-menu {
    list-style: none;
    padding: 1rem 0;
    flex: 1;
}

.sidebar-menu li {
    padding: 0 1rem;
    margin-bottom: 0.5rem;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
    font-weight: 500;
    cursor: pointer;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: rgba(255, 51, 51, 0.1);
    color: var(--primary-color);
}

.sidebar-menu a i {
    width: 24px;
    margin-right: 10px;
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    height: var(--header-height);
    background: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 90;
}

.header-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.avatar {
    width: 35px;
    height: 35px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: white;
}

/* Page Content */
.page-content {
    padding: 2rem;
    flex: 1;
    overflow-y: auto;
}

/* Dashboard Widgets */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-info h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.stat-icon {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.1);
}

/* Tabs Content */
.tab-content {
    display: none;
    animation: fadeIn 0.3s;
}

.tab-content.active {
    display: block;
}

/* Gallery Manager Styles */
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.btn {
    padding: 8px 16px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 0.9rem;
}

.btn-danger {
    background: rgba(255, 51, 51, 0.1);
    color: #ff4444;
    border: 1px solid rgba(255, 51, 51, 0.2);
}

.btn-danger:hover {
    background: rgba(255, 51, 51, 0.2);
}

/* Album Grid */
.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.album-card {
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.album-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.album-cover {
    height: 160px;
    background-color: #2a2a2a;
    background-size: cover;
    background-position: center;
    position: relative;
}

.album-cover.empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 2rem;
}

.album-info {
    padding: 1rem;
}

.album-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.album-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
}

.album-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
    opacity: 0;
    transition: opacity 0.2s;
}

.album-card:hover .album-actions {
    opacity: 1;
}

.action-icon-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(0,0,0,0.7);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.action-icon-btn:hover {
    background: var(--primary-color);
}

/* Photo Grid (Inside Album) */
.admin-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.admin-photo-item {
    position: relative;
    aspect-ratio: 1;
    background: var(--card-bg);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.2s;
}

.admin-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none; /* Prevent image dragging */
    user-select: none;
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.2s;
}

.admin-photo-item:hover .photo-overlay {
    opacity: 1;
}

/* Selection Box & Selected State */
.selection-box {
    position: fixed;
    background: rgba(255, 51, 51, 0.2);
    border: 1px solid rgba(255, 51, 51, 0.6);
    pointer-events: none;
    z-index: 9999;
    display: none;
}

.admin-photo-item.selected {
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 10px rgba(255, 51, 51, 0.5);
    transform: scale(0.95);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--card-bg);
    width: 500px;
    max-width: 90%;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 2rem;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-title {
    font-size: 1.2rem;
    font-weight: 600;
}

.close-modal {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    padding: 10px;
    background: #141414;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: white;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Upload Area */
.upload-area {
    background: #141414;
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.upload-area:hover {
    border-color: var(--primary-color);
    background: rgba(255, 51, 51, 0.05);
}

/* Toast Message */
#toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--card-bg);
    color: white;
    padding: 1rem 2rem;
    border-radius: 4px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s;
    z-index: 2000;
}

#toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }
}

/* =========================================
   4. Album Detail Styles (from templates/album_detail.html)
   ========================================= */

/* Header Styles */
.album-detail-header {
    padding: 120px 20px 40px;
    text-align: center;
    position: relative;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent);
}

.album-detail-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-shadow: 0 0 15px rgba(255, 51, 51, 0.3);
}

.album-detail-meta {
    color: var(--text-gray);
    font-size: 0.9rem;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.album-detail-desc {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    color: #ccc;
    font-size: 1.1rem;
}

/* Navigation */
.nav-back {
    position: fixed;
    top: 30px;
    left: 30px;
    z-index: 100;
    color: white;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    border: 1px solid rgba(255,255,255,0.1);
}

.nav-back:hover {
    background: var(--primary-color);
    transform: translateX(-5px);
}

/* Gallery Grid */
.detail-gallery-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    flex: 1;
}

.detail-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.detail-photo-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1; /* Square grid */
    background: #1f1f1f;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: zoom-in;
    border: 1px solid #333;
}

.detail-photo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
    border-color: var(--primary-color);
}

.detail-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.detail-photo-item:hover img {
    transform: scale(1.05);
}

.detail-photo-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.detail-photo-item:hover .detail-photo-info {
    opacity: 1;
}

.detail-photo-title {
    font-weight: 600;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s;
}

.detail-photo-size {
    font-size: 0.85rem;
    color: #aaa;
}

.detail-photo-item:hover .detail-photo-title {
    color: var(--primary-color);
}

.detail-photo-desc-preview {
    font-size: 0.8rem;
    color: #ccc;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Fancybox Custom Styles */
.fancybox__caption {
    background: rgba(0, 0, 0, 0.85);
    padding: 20px;
    border-top: 1px solid var(--primary-color);
}

.fb-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.fb-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    font-size: 0.9rem;
    color: #ddd;
}

.fb-meta p {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fb-meta i {
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 100px 20px;
    color: var(--text-gray);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.3;
}

@media (max-width: 768px) {
    .album-detail-title { font-size: 1.8rem; }
    .detail-photo-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
    .nav-back { padding: 8px 15px; font-size: 0.9rem; }
}

/* =========================================
   5. About Section Styles
   ========================================= */

.about-container {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1000px;
    margin: 0 auto;
}

.about-window {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem;
    flex: 1;
    min-width: 300px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

.about-window:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 51, 51, 0.1);
    border-color: var(--primary-color);
}

.about-window h3 {
    color: #fff;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    border-left: 4px solid var(--primary-color);
    padding-left: 15px;
    letter-spacing: 1px;
}

.contact-cards {
    display: flex;
    gap: 2rem;
    justify-content: space-around;
    flex-wrap: wrap;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.contact-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--text-muted);
    transition: all 0.3s;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.contact-card:hover .contact-avatar {
    border-color: var(--primary-color);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 51, 51, 0.4);
}

.contact-card p {
    color: var(--text-color);
    font-weight: 500;
    font-size: 1.1rem;
}

.copyright-content {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1rem;
}

.copyright-content p {
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
    }
    
    .contact-cards {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* =========================================
   6. Pistachio (Message Board) Styles
   ========================================= */

.pistachio-container {
    max-width: 800px;
    margin: 0 auto;
}

.pistachio-form-wrapper {
    background: rgba(30, 30, 30, 0.6);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.pistachio-form .form-group {
    margin-bottom: 1.5rem;
}

.pistachio-input,
.pistachio-textarea {
    width: 100%;
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 15px;
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
}

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

.pistachio-input:focus,
.pistachio-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(255, 51, 51, 0.2);
    background: rgba(20, 20, 20, 0.9);
}

.btn-submit-pistachio {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.btn-submit-pistachio:hover {
    background: #ff0000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 51, 51, 0.4);
}

.pistachio-action {
    text-align: center;
    margin-bottom: 3rem;
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
    border-width: 2px;
}

.pistachio-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.pistachio-item {
    background: linear-gradient(145deg, rgba(40, 40, 40, 0.6), rgba(20, 20, 20, 0.8));
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1.8rem;
    border: 1px solid rgba(255, 51, 51, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.pistachio-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0.5;
    transition: all 0.3s;
}

.pistachio-item::before {
    content: '\f10d'; /* FontAwesome Quote Left Icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 60px;
    color: rgba(255, 255, 255, 0.03);
    pointer-events: none;
    transition: all 0.3s;
}

.pistachio-item:hover {
    background: linear-gradient(145deg, rgba(50, 50, 50, 0.7), rgba(30, 30, 30, 0.9));
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 51, 51, 0.15);
    border-color: rgba(255, 51, 51, 0.5);
}

.pistachio-item:hover::after {
    opacity: 1;
    height: 3px;
    box-shadow: 0 0 10px var(--primary-color);
}

.pistachio-item:hover::before {
    color: rgba(255, 51, 51, 0.08);
    transform: rotate(-10deg) scale(1.1);
}

.pistachio-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pistachio-name {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.5px;
}

.pistachio-name::before {
    content: '\f007';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 51, 51, 0.15);
    border-radius: 50%;
    border: 1px solid rgba(255, 51, 51, 0.4);
    color: var(--primary-color);
    font-size: 0.9rem;
    box-shadow: 0 0 10px rgba(255, 51, 51, 0.2);
}

.pistachio-date {
    color: var(--text-muted);
    font-size: 0.85rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
}

.pistachio-date::before {
    content: '\f017';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 6px;
    font-size: 0.8rem;
    color: var(--primary-color);
}

.pistachio-content {
    color: #f0f0f0;
    line-height: 1.7;
    font-size: 1.05rem;
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.read-more {
    color: var(--primary-color);
    cursor: pointer;
    font-size: 0.9rem;
    margin-left: 5px;
    font-weight: bold;
}

.read-more:hover {
    text-decoration: underline;
}

/* Pistachio Admin Grid */
.pistachio-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.pistachio-admin-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    position: relative;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
}

.pistachio-admin-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    border-color: var(--primary-color);
}

.pistachio-admin-card.selected {
    border: 2px solid var(--primary-color);
    background: rgba(255, 51, 51, 0.1);
}

.pistachio-select-checkbox {
    position: absolute;
    top: 15px;
    right: 15px;
    transform: scale(1.5);
    cursor: pointer;
    z-index: 10;
}

.pistachio-admin-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.pistachio-admin-name {
    font-weight: bold;
    color: var(--primary-color);
}

.pistachio-admin-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.pistachio-admin-content {
    flex: 1;
    color: #ddd;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    white-space: pre-wrap;
    max-height: 150px;
    overflow-y: auto;
}

.pistachio-admin-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

#lounge .section-header h2::after {
    display: none;
}

/* Pistachio Wall (Grid Layout) */
.nav-back-container {
    max-width: 1200px;
    margin: 0 auto 2rem;
    padding: 0 20px;
}

.pistachio-wall-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.pistachio-card {
    background: rgba(30, 30, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.pistachio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    border-color: var(--primary-color);
}

.pistachio-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.pistachio-card-content {
    flex: 1;
}

.content-text {
    color: #eee;
    line-height: 1.6;
    white-space: pre-wrap;
    font-size: 0.95rem;
}

.btn-expand {
    background: transparent;
    border: none;
    color: var(--primary-color);
    margin-top: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0;
    font-weight: 600;
}

.btn-expand:hover {
    text-decoration: underline;
}
/* Top-right meta info on hover */
.detail-photo-meta-top {
    position: absolute;
    top: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8rem;
    text-align: right;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.detail-photo-item:hover .detail-photo-meta-top {
    opacity: 1;
}

.meta-line {
    display: flex;
    align-items: center;
    gap: 6px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

.meta-line i {
    color: var(--primary-color);
    font-size: 0.85rem;
}

/* Ensure bottom info is visible on hover */
.detail-photo-info {
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}


/* =========================================
   7. Little Crow Feature
   ========================================= */
.crow-container {
    position: absolute; /* Changed from fixed to absolute to scroll with page */
    width: 80px;
    height: 80px;
    z-index: 9999;
    cursor: pointer;
    transition: opacity 0.5s ease-out, transform 0.3s;
    opacity: 0; /* Initially hidden for fade in */
    user-select: none; /* Prevent selection */
    -webkit-user-select: none;
}

.crow-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.5));
    transition: transform 0.2s;
    pointer-events: none; /* Prevent dragging the image */
}

/* Shake Animation while calling */
.crow-container.calling .crow-img {
    animation: crow-jump 0.4s infinite alternate;
}

.crow-container.calling .crow-bubble {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.crow-bubble {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) scale(0) translateY(10px);
    background: white;
    padding: 5px 10px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    white-space: nowrap;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 10000;
}

.crow-bubble::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: white transparent transparent transparent;
}

@keyframes crow-jump {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-10px) scale(1.1); }
}

.crow-container:hover .crow-img {
    transform: scale(1.1) rotate(-5deg);
}

.crow-container.fade-out {
    opacity: 0;
    transform: scale(0.5) translateY(-50px);
}

.crow-container.fade-in {
    opacity: 1;
    transform: scale(1) translateY(0);
}
