:root {
    /* New Palette */
    --turquoise: #5DBECC;
    --sage: #8FB573;
    --mint: #B8E6D5;
    --charcoal: #2A2A2A;
    --medium-gray: #5A5A5A;
    --light-gray: #F5F5F5;

    /* Mappings to old vars for compatibility */
    --bg-color: #FFFFFF;
    /* Was #121212 - Now Light */
    --text-color: var(--charcoal);
    /* Was #ffffff - Now Dark */
    --accent-color: var(--turquoise);
    /* Was #ff4757 */
}

.hidden {
    display: none !important;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Outfit', sans-serif;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

#night-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    z-index: 4000;
    /* Below widgets (5000) but above everything else */
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease-in-out;
}

/* --- Container & Modes --- */
#display-container {
    width: 100%;
    height: 100%;
    position: relative;
    /* transition: opacity 1s ease-in-out; Removed old single-layer transition */
}

.slide-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 2.5s ease-in-out;
    z-index: 1;
}

.slide-layer.active {
    opacity: 1;
    z-index: 2;
}

/* Mode A: Single Focus */

/* Mode A: Single Focus */
.mode-a {
    display: flex;
    justify-content: center;
    align-items: center;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
}

.mode-a .bg-blur {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(20px) brightness(0.6);
    z-index: 1;
}

.mode-a .main-img {
    z-index: 2;
    max-width: 95%;
    max-height: 95%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    object-fit: contain;
}

/* Mode B: Rustic Wood Collage */
.mode-b {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    /* Cork Texture */
    background-color: #d7c4a1;
    background-image: url('../cork_texture.png');
    background-size: 400px;
    /* Adjust scale of texture */
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.4);
    display: block;
}

/* Push Pin */
.pin {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ff7675, #d63031);
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    z-index: 500;
    /* Above photo content */
}

/* Hero Pin Scale */
.pin.hero-pin {
    width: 60px;
    height: 60px;
    top: -30px;
    /* Adjust for larger size */
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.6);
}

/* Different pin colors? Optional but nice */
.pin.blue {
    background: radial-gradient(circle at 30% 30%, #74b9ff, #0984e3);
}

.pin.green {
    background: radial-gradient(circle at 30% 30%, #55efc4, #00b894);
}

.pin.yellow {
    background: radial-gradient(circle at 30% 30%, #ffeaa7, #fdcb6e);
}

.collage-photo {
    position: absolute;
    border: 5px solid #fff;
    box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.4);
    /* Softer shadow */
    transition: transform 0.5s ease;
    background: #ccc;
    object-fit: cover;
    background-color: white;
    /* Simulate white photo paper behind */

    /* Loading state */
    opacity: 0;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease;
}

.collage-photo.loaded {
    opacity: 1;
}

/* Mode C: Child's Scrapbook */
.mode-c {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    /* Chalkboard Background */
    background-color: #2b2b2b;
    background-image:
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 60%),
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    perspective: 1000px;
}

.polaroid {
    background: #fff;
    padding: 15px 15px 50px 15px;
    /* Bottom padding for caption */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    position: absolute;
    width: 18vw;
    /* transition: transform 0.3s ease; Removed hover transition */
    transform-origin: center;

    /* Loading State */
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.polaroid.loaded {
    opacity: 1;
}

/* Removed hover effect for Kiosk mode */
.polaroid img {
    width: 100%;
    height: auto;
    display: block;
    background: #eee;
    aspect-ratio: 1/1;
    /* Square crop suggestion or fit */
    object-fit: cover;
}

.polaroid-caption {
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    text-align: center;
    font-family: 'Gochi Hand', cursive;
    color: #333;
    font-size: 1.2rem;
    transform: rotate(-1deg);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 5px;
}

/* Washi Tape */
.washi-tape {
    position: absolute;
    width: 80px;
    /* Slightly smaller */
    height: 25px;
    top: -12px;
    left: 50%;
    transform: translateX(-50%) rotate(-2deg);
    background: rgba(255, 234, 167, 0.9);
    opacity: 0.95;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    z-index: 20;
    pointer-events: none;
}

/* Tape Variations */
.tape-pink {
    background: rgba(255, 118, 117, 0.9);
}

.tape-blue {
    background: rgba(116, 185, 255, 0.9);
}

.tape-green {
    background: rgba(85, 239, 196, 0.9);
}

.tape-yellow {
    background: rgba(253, 203, 110, 0.9);
}

/* Doodles */
.doodle {
    position: absolute;
    font-family: 'Gochi Hand', cursive;
    color: rgba(255, 255, 255, 0.15);
    /* Lower opacity */
    pointer-events: none;
    z-index: 0;
    font-size: 5rem;
    /* Much larger */
}

/* --- Badges & Overlays --- */
#on-this-day-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    z-index: 100;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    font-size: 1.1rem;
    animation: slideDown 0.5s ease;
}

#on-this-day-badge.hidden {
    display: none;
}

#interrupt-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--accent-color);
    color: white;
    padding: 20px 40px;
    border-radius: 50px;
    font-size: 2rem;
    font-weight: bold;
    z-index: 200;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#interrupt-badge.hidden {
    display: none;
}

/* --- Time & Weather Widget --- */
#info-widget {
    position: absolute;
    top: 20px;
    right: 20px;
    text-align: right;
    color: white;
    z-index: 5000;
    /* Increased to sit above everything */
    font-weight: 300;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);

    /* Box Styling */
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    padding: 15px 25px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* --- Hero Caption Styles --- */
.hero-wrapper {
    transition: opacity 1s ease-out, transform 1s ease-out;
    opacity: 0;
    /* Ensure it has the same "photo" properties as the image used to have */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    /* Tight shadow */
    border: 15px solid #fff;
    /* Border moves to wrapper */
    background: #fff;
    backface-visibility: hidden;
    /* Fix rendering artifacts */
    /* To fill transparent parts */
    /* Fit content logic */
    /* box-sizing: border-box; REMOVED so border is additive */

    display: inline-flex;
    /* Shrink fit */
    width: auto !important;
    height: auto !important;
    /* Wrapper caps */
    max-width: 90vw;
    max-height: 90vh;

    justify-content: center;
    align-items: center;
    /* overflow: hidden; Removed to show pin */
    position: absolute;
    /* Absolute centering */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero-wrapper.loaded {
    opacity: 1;
    /* Transformation handled by base class, just ensure opacity */
}

/* Ensure image fills wrapper but respects aspect ratio */
.collage-photo.hero {
    /* Reset previous hero styles */
    position: static !important;
    transform: none !important;
    border: none !important;
    box-shadow: none !important;

    /* Image drives the size now */
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: 75vw;
    /* Tighter constraint */
    max-height: 80vh;
    /* Tighter constraint to leave room for border */
    object-fit: contain;
    /* Never crop */
    background-color: #fff;
}

.hero-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    /* Prevent overflow */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 40px 20px 15px 20px;
    font-family: 'Gochi Hand', cursive;
    font-size: 2.5rem;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    pointer-events: none;
    z-index: 10;
}

#clock-time {
    font-size: 3.5rem;
    font-weight: 600;
    line-height: 1;
    margin-bottom: 5px;
}

#clock-date {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 5px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#weather-container {
    font-size: 1.5rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

#qr-code-container {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 10px;
    z-index: 5000;
    text-align: center;
    backdrop-filter: blur(5px);
}

#qr-code-container img {
    width: 80px;
    height: 80px;
    border-radius: 4px;
}

#qr-code-container p {
    margin: 0 0 5px 0;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes popIn {
    from {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0;
    }

    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* --- Upload/Auth/Kiosk Layout --- */
.upload-page,
.auth-page {
    background: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: auto;
}

.upload-container {
    background: #ffffff;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
}

.upload-container h1 {
    margin-top: 0;
    color: var(--accent-color);
}

input[type="file"] {
    display: none;
}

.custom-file-upload {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--turquoise), var(--sage));
    color: white;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    margin: 20px 0;
    transition: transform 0.2s;
    box-shadow: 0 4px 15px rgba(93, 190, 204, 0.3);
}

.custom-file-upload:active {
    transform: scale(0.95);
}

.upload-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 1.1rem;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
    margin-top: 20px;
    box-shadow: 0 5px 15px rgba(93, 190, 204, 0.4);
}

.success-message {
    background: var(--sage);
    color: white;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    animation: slideDown 0.5s ease;
}

/* --- Kiosk Styles --- */
.code-display {
    background: #f5f5f5;
    color: var(--charcoal);
    padding: 1rem;
    margin: 1.5rem 0;
    font-size: 2.5rem;
    font-weight: 800;
    border-radius: 8px;
    letter-spacing: 0.2rem;
    border: 2px dashed #ddd;
}

/* =========================================
   ELOWNA BRANDING & COMPONENT STYLES
   ========================================= */

/* --- General Utilities --- */
.container {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
}

/* --- Network Decoration Pattern --- */
.network-bg {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.network-node {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    opacity: 0.15;
}

.network-node.turquoise {
    background: var(--turquoise);
}

.network-node.sage {
    background: var(--sage);
}

.network-node.mint {
    background: var(--mint);
}

.network-line {
    position: absolute;
    height: 1px;
    background: var(--mint);
    opacity: 0.2;
    transform-origin: left center;
}

/* --- Header & Navigation --- */
header {
    padding: 2rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #E8E8E8;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.logo {
    font-family: 'Nunito', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    color: var(--charcoal);
    text-decoration: none;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 40px;
    width: auto;
}

nav {
    display: flex;
    gap: 3rem;
    align-items: center;
}

nav a {
    color: var(--medium-gray);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: color 0.3s ease;
}

nav a:hover,
nav a.active {
    color: var(--turquoise);
}

/* --- Buttons --- */
.btn {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(90deg, #5DBECC 0%, #8FB573 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(93, 190, 204, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(93, 190, 204, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--charcoal);
    border: 2px solid var(--charcoal);
}

.btn-secondary:hover {
    background: var(--charcoal);
    color: white;
}

/* --- Hero Section --- */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 4rem 3rem;
    min-height: calc(100vh - 100px);
    align-items: center;
}

.hero-visual {
    position: relative;
    order: 1;
}

.hero-content {
    order: 2;
    max-width: 600px;
}

.dino-container {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.dino-container img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.1));
}

.hero h1 {
    font-family: 'Nunito', sans-serif;
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 1.5rem;
    color: var(--charcoal);
    letter-spacing: -0.03em;
}

.hero-tagline {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--charcoal);
    margin-bottom: 2rem;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--medium-gray);
    margin-bottom: 2.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.hero-footer {
    font-size: 1rem;
    color: var(--medium-gray);
    font-weight: 600;
}

/* --- Features Section --- */
.features {
    background: var(--light-gray);
    padding: 6rem 3rem;
    position: relative;
}

.features-header {
    text-align: center;
    margin-bottom: 4rem;
}

.features-header h2 {
    font-size: 3rem;
    font-weight: 900;
    color: var(--charcoal);
    margin-bottom: 1rem;
}

.features-header p {
    font-size: 1.25rem;
    color: var(--medium-gray);
}

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    background: rgba(93, 190, 204, 0.1);
    color: var(--turquoise);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, var(--turquoise), var(--mint));
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    stroke-width: 2.5;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--charcoal);
}

.feature-card p {
    color: var(--medium-gray);
    line-height: 1.6;
}

/* --- Pricing Section --- */
.pricing {
    background: linear-gradient(180deg, #FFFFFF 0%, #F8FCFD 100%);
    padding: 6rem 3rem;
    text-align: center;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 3rem auto 0;
    align-items: center;
}

.pricing-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 2px solid var(--light-gray);
    transition: transform 0.3s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pricing-card.popular {
    border-color: var(--turquoise);
    transform: scale(1.05);
    box-shadow: 0 15px 50px rgba(93, 190, 204, 0.2);
}

.pricing-card:hover {
    transform: translateY(-5px);
    border-color: var(--turquoise);
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-5px);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--turquoise);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
}

.price {
    font-size: 3rem;
    font-weight: 900;
    color: var(--charcoal);
    margin: 1.5rem 0;
    display: flex;
    justify-content: center;
    align-items: baseline;
}

.price span {
    font-size: 1rem;
    color: var(--medium-gray);
    font-weight: 600;
    margin-left: 0.2rem;
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--charcoal);
    margin-bottom: 0.5rem;
}

.features-list {
    list-style: none;
    margin: 2rem 0;
    text-align: left;
    flex-grow: 1;
}

.features-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    color: var(--medium-gray);
    font-size: 0.95rem;
}

.features-list li::before {
    content: '✓';
    color: var(--sage);
    font-weight: 900;
    margin-right: 0.75rem;
    min-width: 15px;
}

/* --- Testimonials --- */
.testimonials {
    padding: 6rem 3rem;
    background: var(--light-gray);
    text-align: center;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 3rem auto 0;
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    text-align: left;
}

.stars {
    color: #FFC107;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: var(--medium-gray);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--mint);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--charcoal);
}

/* --- Footer --- */
footer {
    background: var(--charcoal);
    color: white;
    padding: 4rem 3rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 3rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
    margin-bottom: 1rem;
    display: block;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    color: var(--mint);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    color: #888;
    font-size: 0.9rem;
}

/* --- Authentication Pages (Login/Register) --- */
.auth-container {
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    border: 1px solid #eee;
}

.auth-container h2 {
    text-align: center;
    color: var(--charcoal);
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #666;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: var(--charcoal);
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--turquoise);
}

.auth-btn {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(90deg, var(--turquoise), var(--sage));
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    margin-top: 1rem;
    transition: transform 0.2s;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(93, 190, 204, 0.3);
}

.auth-links {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.auth-links a {
    color: var(--turquoise);
    text-decoration: none;
    font-weight: 600;
}

.alert {
    background: #ff4444;
    color: white;
    padding: 0.5rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    text-align: center;
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 3rem 2rem;
    }

    .hero-visual {
        order: 1;
    }

    .hero-content {
        order: 2;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .features-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    header {
        padding: 1.5rem 1.5rem;
    }

    nav {
        gap: 1px;
    }

    nav a {
        font-size: 0.9rem;
        padding: 0 5px;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

/* =========================================
   ADMIN PANEL STYLES
   ========================================= */

/* Scoped Body for Admin to allow scrolling */
body.admin-page {
    background: var(--light-gray);
    margin: 0;
    padding: 20px;
    color: var(--charcoal);
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
    height: auto !important;
    width: auto !important;
    overflow-y: auto !important;
    font-family: 'Nunito', sans-serif;

    /* Variables */
    --ds-purple: var(--turquoise);
    --ds-yellow: var(--sage);
    --ds-bg-dark: var(--light-gray);
    --ds-card-bg: #FFFFFF;
    --ds-text: var(--charcoal);
}

/* Mascot Watermark */
.ds-mascot-watermark {
    position: fixed;
    bottom: -50px;
    left: -100px;
    width: 600px;
    height: 600px;
    background-image: url('../mascot.png');
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
}

/* Main Container Override */
body.admin-page .container {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--ds-card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    position: relative;
    z-index: 1;
}

/* Admin Headers */
body.admin-page h1 {
    margin-top: 0;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    color: var(--turquoise);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logout-link {
    font-size: 0.9rem;
    color: #666;
    text-decoration: none;
    border: 1px solid #ddd;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.2s;
    text-transform: none;
    letter-spacing: normal;
}

.logout-link:hover {
    color: var(--turquoise);
    border-color: var(--turquoise);
    background: #f0f0f0;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.tab {
    padding: 12px 25px;
    cursor: pointer;
    border-radius: 8px 8px 0 0;
    background: #e0e0e0;
    color: #666;
    font-weight: 600;
    transition: all 0.2s;
}

.tab:hover {
    color: var(--turquoise);
    background: #f0f0f0;
}

.tab.active {
    background: var(--ds-card-bg);
    border: 1px solid #eee;
    border-bottom: 1px solid var(--ds-card-bg);
    margin-bottom: -1px;
    color: var(--turquoise);
    border-top: 3px solid var(--turquoise);
}

.section {
    display: none;
}

.section.active {
    display: block;
    animation: fadeIn 0.3s;
}

/* Admin Inputs */
body.admin-page input,
body.admin-page select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    background: #fff;
    color: var(--charcoal);
    border-radius: 6px;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

body.admin-page input:focus,
body.admin-page select:focus {
    outline: none;
    border-color: var(--sage);
    box-shadow: 0 0 0 3px rgba(143, 181, 115, 0.2);
}

/* Admin specific buttons */
body.admin-page button {
    background: linear-gradient(90deg, #5DBECC 0%, #8FB573 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    transition: transform 0.2s, box-shadow 0.2s;
}

body.admin-page button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(93, 190, 204, 0.4);
}

body.admin-page button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.success-msg {
    color: #4cd137;
    display: none;
    margin-top: 10px;
    font-weight: bold;
    margin-left: 10px;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.photo-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
}

.photo-card:hover {
    transform: translateY(-2px);
    border-color: var(--turquoise);
}

.photo-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.photo-info {
    padding: 10px;
}

.photo-name {
    font-size: 0.9rem;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--charcoal);
}

.actions {
    display: flex;
    gap: 8px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
}

.btn-danger {
    background: #cf192d !important;
    color: white;
}

.btn-danger:hover {
    background: #b01020 !important;
}

/* 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;
    backdrop-filter: blur(5px);
}

.modal.open {
    display: flex;
}

.modal-content {
    background: #FFFFFF;
    padding: 30px;
    border-radius: 12px;
    width: 350px;
    border: 1px solid #333;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.modal h3 {
    margin-top: 0;
    color: var(--sage);
}

.modal-actions {
    margin-top: 25px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

/* Upload Tab */
.upload-area {
    border: 2px dashed #ccc;
    border-radius: 12px;
    padding: 50px;
    text-align: center;
    background: #f9f9f9;
    transition: all 0.3s;
    cursor: pointer;
}

.upload-area:hover {
    border-color: var(--turquoise);
    background: #f0f0f0;
    box-shadow: inset 0 0 20px rgba(93, 190, 204, 0.05);
}

.upload-btn-lg {
    width: 100%;
    font-size: 1.2rem;
    margin-top: 10px;
    display: inline-block;
}

.progress-container {
    margin-top: 25px;
    display: none;
    background: #121212;
    border-radius: 10px;
    padding: 15px;
    border: 1px solid #333;
}

.progress-bar-bg {
    background: #333;
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
}

.progress-bar-fill {
    background: linear-gradient(90deg, var(--sage), var(--turquoise));
    height: 100%;
    width: 0%;
    transition: width 0.2s;
}

/* Settings Inputs */
.night-mode-inputs {
    display: flex;
    gap: 15px;
}

.night-mode-inputs>div {
    flex: 1;
}

.search-box-container {
    display: flex;
    gap: 10px;
}

.search-box-container input {
    flex: 1;
}

/* Search Results Dropdown */
#loc-results {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 0 0 6px 6px;
    overflow: hidden;
}

.loc-result-item {
    padding: 12px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    color: #444;
    background: #fff;
    transition: all 0.2s;
}

.loc-result-item:hover {
    background: #f5f5f5;
    color: var(--turquoise);
    padding-left: 15px;
}

/* Responsive Admin */
@media (max-width: 768px) {
    body.admin-page {
        padding: 10px;
    }

    body.admin-page .container {
        padding: 15px;
        margin: 0;
        width: 100%;
        box-sizing: border-box;
    }

    .tabs {
        flex-wrap: wrap;
        gap: 5px;
    }

    .tab {
        flex: 1 1 auto;
        text-align: center;
        font-size: 0.9rem;
        padding: 10px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }

    .photo-card img {
        height: 120px;
    }

    .night-mode-inputs {
        flex-direction: column;
        gap: 10px;
    }

    .night-mode-inputs>div {
        flex: none;
        width: 100%;
    }

    .search-box-container {
        flex-direction: column;
        gap: 10px;
    }

    .ds-mascot-watermark {
        width: 300px;
        height: 300px;
        bottom: -20px;
        left: -20px;
        opacity: 0.1;
    }
}/* =========================================
   KIOSK / FRAME MODE (Dark Theme Restoration)
   ========================================= */
body.kiosk-mode {
    /* Restore Legacy Variables */
    --bg-color: #121212;
    --text-color: #ffffff;
    --accent-color: #ff4757;
    /* Legacy Red */
    --turquoise: #ff4757;
    /* Remap turquoise to red */
    --sage: #ff6b6b;
    /* Remap sage to lighter red */

    background-color: var(--bg-color);
    color: var(--text-color);
}

/* Darker Card for Kiosk Landing */
body.kiosk-mode .auth-container {
    background: #1e1e1e;
    border-color: #333;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    color: #fff;
}

body.kiosk-mode .auth-container h2 {
    color: #fff;
}

body.kiosk-mode .auth-container p {
    color: #ccc;
}