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

:root {
    /* Brand Colors */
    --teal: #4DB6AC;
    --orange: #FFB74D;
    --blue: #64B5F6;
    --pink: #F06292;
    --light-gray: #F5F5F5;
    --dark-gray: #333333;
    --white: #FFFFFF;
    
    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', 'Roboto', sans-serif;
    
    /* Spacing */
    --container-max-width: 1200px;
    --container-padding: 32px;
    --section-spacing: 48px;
    --section-padding: var(--section-spacing) 0;
    --border-radius: 16px;
    --box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

body {
    font-family: var(--font-body);
    color: var(--dark-gray);
    line-height: 1.6;
    background-color: var(--white);
}

/* Update Banner */
.update-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #4DB6AC, #26A69A);
    color: white;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    z-index: 9999;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.update-text {
    font-weight: 500;
}

.update-refresh-btn {
    background: white;
    color: #26A69A;
    border: none;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.update-refresh-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.update-dismiss-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 0 4px;
    opacity: 0.8;
    line-height: 1;
}

.update-dismiss-btn:hover {
    opacity: 1;
}

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

/* Header */
.header {
    background: var(--white);
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Fix #4: header-content needs position:relative for mobile menu positioning */
.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    position: relative;
}

.logo h1 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--teal);
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--teal);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--dark-gray);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    padding: var(--section-padding);
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-teal {
    background: var(--teal);
    color: var(--white);
}

.btn-teal:hover {
    background: #45a299;
    transform: translateY(-2px);
}

.btn-orange {
    background: var(--orange);
    color: var(--white);
}

.btn-orange:hover {
    background: #ffa726;
    transform: translateY(-2px);
}

.btn-orange.voted {
    background: #e6c99a;
    cursor: not-allowed;
}

.btn-orange.voted::after {
    content: ' ✓';
}

/* Pet Cards */
.pet-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.pet-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.featured-pet {
    max-width: 350px;
    cursor: pointer;
    transition: transform 0.3s ease;
    overflow: visible;
}

.featured-pet .pet-image img {
    max-height: 280px;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.featured-pet:hover {
    transform: translateY(-8px);
}

/* Pet of the Day card */
.potd-image {
    width: 100%;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    position: relative;
}

.potd-image img {
    width: 100%;
    max-height: 280px;
    object-fit: cover;
    background: #f5f5f5;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.potd-info {
    padding: 1rem;
    text-align: center;
}

.potd-info h3 {
    margin: 0 0 0.5rem 0;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--dark-gray);
}

.potd-category {
    color: #666;
    font-size: 0.9rem;
    margin: 0 0 0.3rem 0;
    text-transform: capitalize;
}

.potd-votes {
    color: var(--teal);
    font-weight: 600;
    margin: 0 0 1rem 0;
}

.pet-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--pink);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 10;
}

/* Pet of the Day badge - hero image */
.hero-card {
    position: relative;
}

/* Fix #3: Pet of the Day badge - lower z-index so it doesn't overlap sticky header */
/* The header has z-index: 100, so badge must be lower to scroll behind it */
.potd-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--orange);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
}

.potd-helper {
    position: absolute;
    top: 42px;
    right: 12px;
    font-size: 0.7rem;
    color: #888;
    font-style: italic;
    z-index: 100;
}

.pet-image {
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    background: #f0f0f0;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.pet-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    transition: opacity 0.4s ease;
    max-height: 500px;
}

.pet-image img.loaded {
    opacity: 1;
}

.pet-image img.img-error {
    display: none;
}

/* Image Loading Shimmer / Placeholder */
.image-shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-shimmer::after {
    content: '🐾';
    font-size: 2rem;
    opacity: 0.3;
}

.image-shimmer.hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.image-shimmer.placeholder {
    animation: none;
    background: #f5f5f5;
}

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

/* Winner Crown Badge */
.winner-crown-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.95), rgba(255, 165, 0, 0.95));
    color: #333;
    padding: 5px 10px;
    border-radius: 16px;
    font-size: 0.65rem;
    font-weight: 600;
    z-index: 6;
    box-shadow: 0 2px 8px rgba(255, 165, 0, 0.4);
    backdrop-filter: blur(4px);
    letter-spacing: 0.02em;
    pointer-events: none;
}

/* Hall of Fame Winner Badge on Pet Cards */
.hof-winner-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, rgba(184, 134, 11, 0.9), rgba(218, 165, 32, 0.9));
    color: white;
    padding: 5px 10px;
    border-radius: 16px;
    font-size: 0.65rem;
    font-weight: 600;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(184, 134, 11, 0.25);
    backdrop-filter: blur(4px);
    letter-spacing: 0.02em;
    pointer-events: none;
}

.winner-crown-badge + .hof-winner-badge {
    top: 50px;
}

/* Hall of Fame Badge (new subtle style) */
.hof-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(120, 110, 100, 0.85);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.6rem;
    font-weight: 500;
    z-index: 5;
    cursor: help;
    letter-spacing: 0.02em;
}

.hof-badge:hover {
    background: rgba(100, 90, 80, 0.95);
}

.winner-crown-badge + .hof-badge {
    top: 50px;
}

.pet-of-day-badge + .hof-badge {
    right: 10px;
    top: 50px;
}

/* Pet of the Day Badge */
.pet-of-day-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.95), rgba(255, 152, 0, 0.95));
    color: #333;
    padding: 5px 10px;
    border-radius: 16px;
    font-size: 0.65rem;
    font-weight: 600;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
    backdrop-filter: blur(4px);
    letter-spacing: 0.02em;
    pointer-events: none;
}

/* Position badges when multiple are present */
.winner-crown-badge + .pet-of-day-badge {
    left: auto;
    right: 10px;
    top: 50px;
}

.pet-of-day-badge + .hof-winner-badge {
    right: 10px;
    top: 50px;
}

/* Weekly Winner card style */
.pet-card-weekly-winner {
    border: 2px solid rgba(255, 215, 0, 0.5);
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.15);
}

/* Pet of Day card style */
.pet-card-pet-of-day {
    border: 2px solid rgba(255, 152, 0, 0.4);
    box-shadow: 0 4px 16px rgba(255, 152, 0, 0.12);
}

/* Hall of Fame Winner Card Styling */
.pet-card-hof-winner {
    border: 1px solid rgba(218, 165, 32, 0.35);
    box-shadow: 0 4px 16px rgba(218, 165, 32, 0.12);
}

.pet-card-hof-winner:hover {
    box-shadow: 0 6px 20px rgba(218, 165, 32, 0.18);
}

.hof-credit-line {
    display: block;
    font-size: 0.7rem;
    color: #b8860b;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

/* Full-screen Image Viewer */
.image-viewer-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 60px 16px 20px;
}

.image-viewer-overlay.show {
    display: flex;
}

.image-viewer-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-height: 100%;
}

.image-viewer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.image-viewer-content img {
    max-width: 92vw;
    max-height: 70vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
}

.image-viewer-info {
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    min-width: 200px;
    max-width: 90vw;
}

.image-viewer-name {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-gray);
    text-align: center;
}

.image-viewer-category {
    font-size: 0.85rem;
    color: #666;
    text-transform: capitalize;
}

.image-viewer-votes {
    font-size: 0.95rem;
    color: var(--teal);
    font-weight: 600;
}

.image-viewer-close {
    position: fixed;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    transition: background 0.2s, transform 0.2s;
}

.image-viewer-close:hover {
    background: #fff;
    transform: scale(1.1);
}

.gallery-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    transition: background 0.2s, transform 0.2s;
}

.gallery-nav:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav-prev {
    left: 12px;
}

.gallery-nav-next {
    right: 12px;
}

.gallery-viewer-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 0.5rem;
}

.gallery-viewer-dots .gallery-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.2s ease;
}

.gallery-viewer-dots .gallery-dot.active {
    background: white;
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .gallery-nav {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .gallery-nav-prev {
        left: 8px;
    }
    
    .gallery-nav-next {
        right: 8px;
    }
}

body.no-scroll {
    overflow: hidden;
}

/* Winner Poster Section */
.pet-card-winner {
    border: 2px solid var(--orange);
    box-shadow: 0 4px 20px rgba(255, 183, 77, 0.3);
}

.winner-poster-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    text-align: center;
}

.btn-winner-poster {
    background: linear-gradient(135deg, var(--orange), #FF9800);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
    width: 100%;
}

.btn-winner-poster:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 152, 0, 0.4);
}

.winner-poster-note {
    margin: 0.5rem 0 0 0;
    font-size: 0.8rem;
    color: #888;
}

.pet-info {
    padding: 1.5rem;
}

.pet-name {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 0.25rem;
}

.personality-line {
    display: block;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.personality-line.mood-funny {
    color: #8A6A00;
}

.personality-line.mood-cool {
    color: #1F5FA8;
}

.personality-line.mood-sweet {
    color: #A83A63;
}

.personality-line.mood-sad {
    color: #555555;
}

.personality-line.mood-thug {
    color: #5B2DAA;
}

.pet-bio {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.pet-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.vote-btn {
    background: var(--teal);
    color: var(--white);
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.15s ease;
    flex: 1;
}

.vote-btn:hover {
    background: #37968f;
}

.vote-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.vote-btn.voted,
.btn-vote.voted {
    background: #a8d4d0;
    color: #fff;
}

.vote-btn.voted::after,
.btn-vote.voted::after {
    content: ' ✓';
}

.vote-btn:active:not(:disabled),
.btn-vote:active:not(:disabled) {
    transform: scale(0.95);
}

/* btn-vote base styles (same as vote-btn) */
.btn-vote {
    background: var(--teal);
    color: var(--white);
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.15s ease;
}

.btn-vote:hover {
    background: #37968f;
}

.btn-vote:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.vote-btn.vote-pressed,
.btn-vote.vote-pressed {
    animation: votePress 0.2s ease;
}

@keyframes votePress {
    0% { transform: scale(1); }
    50% { transform: scale(0.92); }
    100% { transform: scale(1); }
}

.vote-count.vote-bump {
    animation: voteBump 0.25s ease;
}

.heart-pulse {
    animation: heartPulse 0.6s ease;
}

@keyframes heartPulse {
    0% { transform: scale(1); }
    25% { transform: scale(1.15); }
    50% { transform: scale(1); }
    75% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes voteBump {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.share-btn {
    background: var(--blue);
    color: var(--white);
    border: none;
    padding: 0;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.share-btn:hover {
    background: #428bca;
}

/* Gallery Section */
.gallery-section {
    padding: var(--section-padding);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    color: var(--dark-gray);
    margin-bottom: 3rem;
}

/* Filter Chips */
.filter-chips {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-chip {
    background: #F5F5F5;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--teal);
    transition: all 0.3s ease;
}

.filter-chip:hover {
    background: var(--teal);
    color: var(--white);
    transform: translateY(-2px);
}

.filter-chip.active {
    background: var(--teal);
    color: var(--white);
}

/* Pet Gallery Grid */
.pet-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
    transition: all 0.3s ease;
}

.pet-card {
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.pet-card.anchor-highlight {
    outline: 3px solid var(--teal);
    outline-offset: 2px;
    animation: pulse-highlight 2s ease-in-out;
}

@keyframes pulse-highlight {
    0%, 100% { outline-color: var(--teal); }
    50% { outline-color: #37968f; }
}

.gallery-pet-card .pet-image img {
    aspect-ratio: 4 / 3;
}

.gallery-pet-card .pet-info {
    padding: 1rem;
}

.gallery-pet-card .pet-name {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.gallery-pet-card .pet-bio {
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
}

/* Load More */
.load-more-container {
    text-align: center;
}

#load-more-btn {
    min-width: 200px;
}

/* Leaderboard Section */
.leaderboard-section {
    padding: var(--section-padding);
    background: var(--light-gray);
}

.leaderboard-section .section-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.leaderboard-content {
    max-width: 800px;
    margin: 0 auto;
}

.leaderboard-list {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.leaderboard-item {
    display: grid;
    grid-template-columns: 60px 80px 1fr 120px 80px 100px 80px;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--light-gray);
    gap: 1rem;
    transition: background-color 0.3s ease;
}

.leaderboard-item:last-child {
    border-bottom: none;
}

.leaderboard-item:hover {
    background: #fafafa;
}

.leaderboard-rank {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--teal);
    text-align: center;
}

.leaderboard-rank.rank-1 {
    color: #FFD700;
}

.leaderboard-rank.rank-2 {
    color: #C0C0C0;
}

.leaderboard-rank.rank-3 {
    color: #CD7F32;
}

.leaderboard-thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.leaderboard-img {
    width: 60px;
    height: 60px;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    object-fit: cover;
    object-position: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    flex-shrink: 0;
    max-width: 60px;
    max-height: 60px;
}

.leaderboard-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.leaderboard-name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin: 0;
}

.leaderboard-category {
    background: var(--light-gray);
    color: var(--dark-gray);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
    width: fit-content;
}

.leaderboard-votes {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--teal);
    text-align: center;
}

.leaderboard-vote-btn {
    background: var(--teal);
    color: var(--white);
    border: none;
    padding: 6px 12px;
    border-radius: 15px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    min-width: 70px;
}

.leaderboard-vote-btn:hover {
    background: #37968f;
}

.leaderboard-vote-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.leaderboard-share-btn {
    background: var(--blue);
    color: var(--white);
    border: none;
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.leaderboard-share-btn:hover {
    background: #428bca;
}

/* Contest Banner */
.contest-banner {
    background: linear-gradient(135deg, var(--teal), var(--blue));
    color: white;
    padding: 1rem 0;
    text-align: center;
}

.contest-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

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

.contest-countdown {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.streak-pill {
    display: none;
    background: rgba(255, 255, 255, 0.9);
    color: var(--dark-gray);
    padding: 0.4rem 0.8rem;
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 500;
    align-items: center;
    gap: 4px;
}

.pet-badges {
    display: flex;
    gap: 6px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.badge-chip {
    font-size: 14px;
    background: #F5F5F5;
    border: 1px solid rgba(77, 182, 172, 0.35);
    padding: 2px 8px;
    border-radius: 999px;
    line-height: 1.4;
}

/* Current Winners Preview */
.current-winners {
    background: var(--light-gray);
    padding: var(--section-padding);
}

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

.winners-header h3 {
    color: var(--dark-gray);
    margin: 0;
    font-size: 1.5rem;
}

.btn-link {
    background: none;
    border: none;
    color: var(--teal);
    text-decoration: underline;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
}

.btn-link:hover {
    color: var(--dark-gray);
}

.current-top3 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.current-top3 .mini-winner-card {
    flex: 1 1 200px;
    max-width: 260px;
}

.mini-winner-card {
    background: white;
    border-radius: 10px;
    padding: 0.6rem 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease;
    min-width: 0;
}

.mini-winner-card:hover {
    transform: translateY(-2px);
}

.mini-badge {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.mini-winner-img {
    width: 44px;
    height: 44px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: #f0f0f0;
    max-width: 44px;
    max-height: 44px;
}

.mini-winner-info {
    min-width: 0;
    flex: 1;
}

.mini-winner-info h4 {
    margin: 0 0 0.15rem 0;
    font-size: 0.9rem;
    color: var(--dark-gray);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
}

.mini-winner-info p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--teal);
    font-weight: 500;
}

.no-votes {
    text-align: center;
    color: #666;
    font-style: italic;
    grid-column: 1 / -1;
}

/* Hall of Fame */
.hall-of-fame-section {
    padding: var(--section-padding);
    min-height: 60vh;
}

.hall-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.hall-content {
    max-width: 1000px;
    margin: 0 auto;
}

.week-section {
    margin-bottom: 2.5rem;
    background: linear-gradient(135deg, #fffef5 0%, #fff 100%);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 24px rgba(184, 134, 11, 0.08);
    border: 1px solid rgba(184, 134, 11, 0.1);
}

.week-title {
    color: #b8860b;
    margin: 0 0 1.5rem 0;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.week-title::before {
    content: '📅';
    font-size: 1rem;
}

.winners-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .winners-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .week-section {
        padding: 1.5rem;
    }
}

.winner-card {
    background: white;
    border-radius: 16px;
    padding: 1.25rem;
    text-align: center;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.winner-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.winner-card:first-child {
    border: 2px solid rgba(255, 215, 0, 0.4);
    background: linear-gradient(135deg, #fffef8 0%, #fff 100%);
}

.winner-badge {
    position: absolute;
    top: -12px;
    right: -8px;
    font-size: 1.75rem;
    background: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.winner-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 3px solid var(--teal);
}

.winner-info h4 {
    margin: 0 0 0.5rem 0;
    color: var(--dark-gray);
    font-size: 1.2rem;
}

.winner-category {
    color: #666;
    margin: 0 0 0.3rem 0;
    text-transform: capitalize;
    font-size: 0.9rem;
}

.winner-rank {
    color: var(--orange);
    font-weight: 600;
    margin: 0 0 0.3rem 0;
    font-size: 1rem;
}

.winner-votes {
    color: var(--teal);
    font-weight: 500;
    margin: 0 0 1rem 0;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.no-winners {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    font-style: italic;
    padding: 3rem;
}

/* Button Colors */
.btn-blue {
    background: var(--blue);
    color: white;
}

.btn-blue:hover {
    background: #428bca;
}

/* Footer */
.footer {
    background: var(--dark-gray);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-logo h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--teal);
    margin-bottom: 0.5rem;
}

.footer-logo p {
    color: #ccc;
    font-size: 0.9rem;
}

.footer-nav {
    display: flex;
    gap: 2rem;
}

.footer-nav a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--teal);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #555;
    color: #999;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .pet-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
}

/* Submit Section */
.submit-section {
    padding: var(--section-padding);
    background: var(--light-gray);
}

.submit-section .section-title {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
}

.submit-content {
    max-width: 600px;
    margin: 0 auto;
}

.submit-form-container {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.submit-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--dark-gray);
    font-size: 1rem;
}

.form-group input[type="text"],
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: var(--font-body);
    transition: border-color 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--teal);
}

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

.form-group select {
    cursor: pointer;
}

.form-group input[type="file"] {
    padding: 0.5rem;
    border: 2px dashed #e0e0e0;
    border-radius: var(--border-radius);
    background: #fafafa;
    cursor: pointer;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.form-group input[type="file"]:hover {
    border-color: var(--teal);
    background: #f0f9f9;
}

.char-counter {
    text-align: right;
    font-size: 0.85rem;
    color: #666;
}

.file-info {
    font-size: 0.85rem;
    color: #666;
}

.video-status {
    margin-top: 0.5rem;
    padding: 0.5rem;
    border-radius: 6px;
    font-size: 0.85rem;
}

.video-status.error {
    background: #ffe6e6;
    color: #cc0000;
}

.photo-preview {
    margin-top: 1rem;
    position: relative;
    display: inline-block;
}

.photo-preview img {
    max-width: 200px;
    max-height: 200px;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.remove-photo {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--pink);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s ease;
}

.remove-photo:hover {
    background: #e91e63;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.btn-gray {
    background: #f5f5f5;
    color: var(--dark-gray);
    border: 2px solid #e0e0e0;
}

.btn-gray:hover {
    background: #e0e0e0;
}

/* Success Message */
.success-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--white);
    padding: 2rem 3rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    text-align: center;
}

.success-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-gray);
}

.success-icon {
    font-size: 2rem;
}

/* Admin Section */
.admin-section {
    padding: var(--section-padding);
    background: var(--light-gray);
    border-top: 3px solid var(--teal);
}

.admin-content {
    max-width: 800px;
    margin: 0 auto;
}

.admin-panel {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
}

.admin-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.admin-buttons .btn {
    min-width: 150px;
}

.btn-pink {
    background: var(--pink);
    color: var(--white);
}

.btn-pink:hover {
    background: #e91e63;
    transform: translateY(-2px);
}

/* Admin Toast */
.admin-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--teal);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    z-index: 1001;
    font-weight: 600;
}

.vote-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--teal);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    font-weight: 600;
    font-size: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    text-align: center;
    max-width: 90%;
}

.vote-toast.show {
    opacity: 1;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

.vote-btn.shake {
    animation: shake 0.4s ease;
}

@media (max-width: 768px) {
    /* Fix #4: Mobile menu - hidden by default, shown when .active class added */
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        z-index: 99;
    }
    
    /* Fix #4: Show nav when active (hamburger toggled) */
    .nav.active {
        display: flex;
    }
    
    .nav-link {
        padding: 0.75rem 0;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Fix #4: Animate hamburger to X when menu is open */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .pet-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .filter-chips {
        gap: 0.5rem;
    }
    
    .filter-chip {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .leaderboard-item {
        grid-template-columns: 40px 60px 1fr 60px;
        gap: 0.5rem;
        padding: 0.75rem;
    }
    
    .leaderboard-rank {
        font-size: 1.2rem;
    }
    
    .leaderboard-thumbnail {
        width: 50px;
        height: 50px;
    }
    
    .leaderboard-img {
        width: 50px;
        height: 50px;
        aspect-ratio: 1 / 1;
        object-fit: cover;
        object-position: center;
    }
    
    .leaderboard-info {
        gap: 0.1rem;
    }
    
    .leaderboard-name {
        font-size: 1rem;
    }
    
    .leaderboard-category {
        display: none;
    }
    
    .leaderboard-votes {
        font-size: 1rem;
    }
    
    .leaderboard-vote-btn,
    .leaderboard-share-btn {
        display: none;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-nav {
        justify-content: center;
    }
    
    /* Mobile Gallery card image fix */
    .pet-image {
        max-height: 240px;
    }
    
    /* Mobile Featured/POTD fixes */
    .featured-pet {
        max-width: 100%;
    }
    
    .featured-pet .pet-image {
        max-height: 320px;
        aspect-ratio: 4 / 5;
    }
    
    .potd-image {
        max-height: 320px;
        overflow: hidden;
        border-radius: var(--border-radius) var(--border-radius) 0 0;
    }
    
    .potd-image img {
        width: 100%;
        height: 100%;
        max-height: 320px;
        object-fit: cover;
    }
    
    /* Mobile Leaders row - horizontal scroll */
    .current-top3 {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 0.75rem;
        padding: 0.5rem 0;
        margin: 0 -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .current-top3::-webkit-scrollbar {
        display: none;
    }
    
    .current-top3 .mini-winner-card {
        flex: 0 0 auto;
        width: 160px;
        max-width: none;
        scroll-snap-align: start;
    }
    
    .mini-winner-card {
        padding: 0.5rem 0.6rem;
        gap: 0.4rem;
    }
    
    .mini-badge {
        font-size: 1rem;
    }
    
    .mini-winner-img {
        width: 40px;
        height: 40px;
    }
    
    .mini-winner-info h4 {
        font-size: 0.8rem;
    }
    
    .mini-winner-info p {
        font-size: 0.7rem;
    }
}

/* Merch Modal */
.merch-overlay {
    display: none;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
}

.merch-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    width: 90%;
    max-width: 400px;
    max-height: 85vh;
    overflow-y: auto;
}

.merch-title {
    font-family: var(--font-heading);
    color: var(--teal);
    margin-bottom: 1.5rem;
    text-align: center;
}

.merch-modal .form-group {
    margin-bottom: 1rem;
}

.merch-modal label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 500;
    color: var(--dark-gray);
}

.merch-modal input,
.merch-modal select,
.merch-modal textarea {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

.merch-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.merch-actions .btn {
    flex: 1;
}

.merch-btn {
    background: var(--orange);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s;
}

.merch-btn:hover {
    background: #e6a33e;
}

@media (max-width: 480px) {
    .pet-gallery {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
    }
    
    .filter-chips {
        justify-content: center;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .submit-form-container {
        padding: 2rem 1rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
    
    .photo-preview img {
        max-width: 150px;
        max-height: 150px;
    }
}

/* Stray Spotlight Section */
.stray-spotlight {
    padding: var(--section-padding);
    background: linear-gradient(135deg, #FFF5EE 0%, #FFEEE5 100%);
}

.spotlight-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.spotlight-header h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--dark-gray);
    margin-bottom: 0.3rem;
}

.spotlight-subtitle {
    color: #666;
    font-size: 0.95rem;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.5;
}

.spotlight-content {
    max-width: 500px;
    margin: 0 auto;
}

.spotlight-empty {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.spotlight-empty p {
    color: #666;
    margin-bottom: 1rem;
}

.spotlight-card {
    display: flex;
    gap: 1rem;
    background: white;
    border-radius: var(--border-radius);
    padding: 1rem;
    box-shadow: 0 4px 16px rgba(255, 165, 0, 0.15);
    border: 2px solid var(--orange);
}

.spotlight-image {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.spotlight-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.spotlight-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.spotlight-info h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.spotlight-location {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.3rem;
}

.spotlight-votes {
    font-size: 0.9rem;
    color: var(--teal);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.spotlight-actions {
    display: flex;
    gap: 0.5rem;
}

/* Stray Badge on Pet Cards */
.stray-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--orange);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 4px;
}

.stray-badge::before {
    content: '❤';
    font-size: 0.7rem;
}

.pet-location {
    display: block;
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.2rem;
}

.btn-help-stray {
    background: var(--orange);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-help-stray:hover {
    background: #e6a33e;
}

/* Stray Form Toggle */
.stray-toggle-group {
    margin-top: 1rem;
}

.stray-toggle-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.stray-toggle-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.stray-toggle-text {
    font-weight: 500;
    color: var(--orange);
}

.stray-fields {
    margin-top: 1rem;
    padding: 1rem;
    background: #FFF5EE;
    border-radius: 12px;
    border: 1px solid rgba(255, 183, 77, 0.3);
}

.stray-fields .form-group {
    margin-bottom: 1rem;
}

.stray-fields .form-group:last-child {
    margin-bottom: 0;
}

/* Help Stray Modal */
.help-stray-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
}

.help-stray-overlay.active {
    display: block;
}

.help-stray-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    width: 90%;
    max-width: 400px;
    z-index: 9999;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.help-stray-modal.active {
    display: block;
}

.help-stray-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #f0f0f0;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.help-stray-close:hover {
    background: #e0e0e0;
}

.help-stray-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    padding-right: 2rem;
}

.help-stray-pet-info {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.help-stray-pet-info img {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
}

.help-stray-details h4 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.help-stray-location {
    font-size: 0.9rem;
    color: #666;
}

.help-stray-note {
    background: #FFF5EE;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.help-stray-note strong {
    color: var(--orange);
}

.help-stray-note p {
    margin-top: 0.3rem;
    color: var(--dark-gray);
}

.help-stray-actions {
    margin-bottom: 1rem;
}

.help-stray-actions .btn {
    width: 100%;
}

.help-stray-guidance {
    font-size: 0.85rem;
    color: #666;
    text-align: center;
}

@media (max-width: 480px) {
    .spotlight-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .spotlight-image {
        width: 100px;
        height: 100px;
    }
    
    .spotlight-actions {
        justify-content: center;
    }
}

/* Submission Success Modal */
.submission-success-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.submission-success-modal.show {
    display: flex;
}

.submission-success-content {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    max-width: 360px;
    width: 100%;
    text-align: center;
    position: relative;
    animation: modalSlideIn 0.2s ease;
}

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

.submission-success-content .close-modal-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    line-height: 1;
}

.success-thumbnail {
    width: 120px;
    height: 150px;
    margin: 0 auto 1rem;
    border-radius: 12px;
    overflow: hidden;
}

.success-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.success-message-text .success-emoji {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.success-message-text h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 0.3rem;
    color: var(--dark-gray);
}

.success-message-text p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.success-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.success-actions .btn {
    flex: 1;
    padding: 10px 16px;
    font-size: 0.9rem;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #888;
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.6;
}

.empty-state h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.empty-state p {
    font-size: 0.95rem;
    max-width: 300px;
    margin: 0 auto;
}

/* Photo Tip */
.photo-tip {
    display: block;
    margin-top: 0.3rem;
    color: var(--teal);
    font-style: italic;
}

/* Footer Trust Line */
.footer-trust {
    text-align: center;
    padding: 1rem 0;
    border-top: 1px solid #eee;
    margin-top: 1rem;
}

.footer-trust p {
    color: #888;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Vote Tooltip */
.vote-tooltip {
    position: relative;
    display: inline-block;
}

.vote-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark-gray);
    color: var(--white);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
    margin-bottom: 6px;
}

.vote-tooltip:hover::after {
    opacity: 1;
}

/* Performance: Ensure smooth transitions (applied selectively) */
.btn, .nav-link, .filter-chip, .pet-card, .vote-btn, .btn-vote {
    transition-duration: 0.2s;
}

/* Pet images: prevent layout shift */
.pet-card .pet-image {
    aspect-ratio: 4 / 5;
    background: #f0f0f0;
}

.pet-card .pet-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Lazy load placeholder */
img[loading="lazy"] {
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
}

/* Highlight animation for newly submitted pet */
.pet-card.highlight {
    animation: highlightPulse 0.5s ease;
    box-shadow: 0 0 0 4px var(--teal);
}

@keyframes highlightPulse {
    0%, 100% { box-shadow: 0 0 0 4px var(--teal); }
    50% { box-shadow: 0 0 0 8px rgba(77, 182, 172, 0.3); }
}

/* Step 10: Onboarding Strip */
.onboarding-strip {
    background: linear-gradient(135deg, #f0faf9 0%, #fff9f0 100%);
    border-bottom: 1px solid #e8e8e8;
    padding: 0.75rem 0;
}

.onboarding-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    position: relative;
}

.onboarding-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.onboarding-icon {
    font-size: 1.1rem;
}

.onboarding-text {
    font-size: 0.9rem;
    color: #555;
    font-weight: 500;
}

.onboarding-dismiss {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #999;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    transition: color 0.2s ease;
}

.onboarding-dismiss:hover {
    color: #666;
}

@media (max-width: 768px) {
    .onboarding-content {
        gap: 1rem;
        padding-right: 2rem;
    }
    
    .onboarding-text {
        font-size: 0.8rem;
    }
}

/* Step 11: Stray Spotlight Enhanced Background */
.stray-spotlight {
    background: linear-gradient(135deg, #fff9f0 0%, #fff5e6 100%);
    border-top: 1px solid rgba(255, 183, 77, 0.2);
    border-bottom: 1px solid rgba(255, 183, 77, 0.2);
}

/* Button alignment - Vote + Share in single row */
.buttons-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.buttons-row .btn-share,
.buttons-row .btn-share-card {
    height: 36px;
    min-width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
}

.btn-share-card {
    background: linear-gradient(135deg, #9C27B0, #7B1FA2);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-share-card:hover {
    background: linear-gradient(135deg, #7B1FA2, #6A1B9A);
    transform: scale(1.05);
}

/* Share button tooltips */
.btn-share,
.btn-share-card {
    position: relative;
}

.btn-share::after,
.btn-share-card::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 0.65rem;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    margin-bottom: 4px;
    z-index: 10;
}

.btn-share:hover::after,
.btn-share-card:hover::after,
.btn-share:focus::after,
.btn-share-card:focus::after {
    opacity: 1;
    visibility: visible;
}

@media (hover: none) {
    .btn-share::after,
    .btn-share-card::after {
        display: none;
    }
}

.share-card-status {
    display: none;
    font-size: 0.75rem;
    color: #666;
    text-align: center;
    margin-top: 0.3rem;
}

.share-card-status a.open-card-link,
.share-card-status .open-card-btn {
    color: var(--teal);
    text-decoration: underline;
    margin-left: 0.3rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: inherit;
    padding: 0;
}

.buttons-row .btn-vote {
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.buttons-row .btn-help-stray {
    height: 36px;
}


/* Step 13: Hall of Fame Gold Accent */
.hall-crown {
    font-size: 1.5rem;
    margin-right: 0.25rem;
}

.hall-subtitle {
    color: #b8860b;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.hall-of-fame-section .section-title {
    color: #b8860b;
}

.hall-of-fame-section .week-card {
    border: 1px solid rgba(184, 134, 11, 0.2);
}

/* Step 14: Share Toast */
.share-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--dark-gray);
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 1000;
}

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

/* Step 15: Stray Info Icon & Tooltip */
.stray-info-icon {
    font-size: 0.9rem;
    color: #999;
    cursor: pointer;
    margin-left: 0.25rem;
    transition: color 0.2s ease;
}

.stray-info-icon:hover,
.stray-info-icon:focus {
    color: var(--orange);
}

.spotlight-header {
    position: relative;
}

.stray-info-tooltip {
    position: absolute;
    top: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark-gray);
    color: var(--white);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    max-width: 280px;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.stray-info-tooltip.show {
    opacity: 1;
    pointer-events: auto;
}

/* Step 16: Contest Explainer */
.contest-explainer {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    margin-top: 0.5rem;
}

.contest-reset {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    margin-top: 0.25rem;
}

.hof-entry-link {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.hof-entry-link:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

/* Pet freshness text */
.pet-freshness {
    display: block;
    font-size: 0.7rem;
    color: #999;
    text-align: center;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Hall transparency text */
.hall-transparency {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 1rem;
    font-style: italic;
}

/* Stray spotlight note */
.spotlight-note {
    font-size: 0.75rem;
    color: #888;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Trust boundaries */
.trust-boundaries {
    max-width: 600px;
    margin: 2rem auto 0 auto;
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.boundaries-text {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 0.75rem;
}

.promise-text {
    font-size: 0.85rem;
    color: #666;
}

.promise-text strong {
    color: var(--teal);
}

/* Pet footer with freshness and report */
.pet-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
}

.pet-footer .pet-freshness {
    margin: 0;
    text-align: left;
}

.report-link {
    font-size: 0.65rem;
    color: #bbb;
    text-decoration: none;
    transition: color 0.2s ease;
}

.report-link:hover {
    color: #888;
    text-decoration: underline;
}

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

.report-modal {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    max-width: 360px;
    width: 90%;
    text-align: center;
    position: relative;
}

.report-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
}

.report-modal h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
}

.report-subtitle {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 1.5rem;
}

.report-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.report-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: #f8f8f8;
    border: 1px solid #eee;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--dark-gray);
    transition: all 0.2s ease;
}

.report-option:hover {
    background: #f0f0f0;
    border-color: #ddd;
}

.report-note {
    font-size: 0.7rem;
    color: #aaa;
    margin-top: 1.5rem;
    font-style: italic;
}

/* Winner pride note */
.winner-pride-note {
    font-size: 0.7rem;
    color: #888;
    font-style: italic;
    margin-top: 0.5rem;
}

/* Post-vote share prompt */
.share-prompt {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: #f8f8f8;
    border-radius: 8px;
    animation: fadeIn 0.3s ease;
}

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

.share-prompt-text {
    font-size: 0.75rem;
    color: #666;
}

.share-prompt-btn {
    background: var(--teal);
    color: var(--white);
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.share-prompt-btn:hover {
    background: #37968f;
}

/* Footer share invite */
.footer-share-invite {
    text-align: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-share-invite p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-share-invite a {
    color: var(--orange);
    text-decoration: none;
    font-weight: 500;
}

.footer-share-invite a:hover {
    text-decoration: underline;
}

/* Form status messages */
.form-status {
    text-align: center;
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.form-status-info {
    background: #e3f2fd;
    color: #1565c0;
}

.form-status-error {
    background: #ffebee;
    color: #c62828;
}

/* More About Me - Form Section */
.more-about-section {
    margin: 1rem 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.more-about-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #f8f8f8;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    color: #666;
    transition: background 0.2s ease;
}

.more-about-toggle:hover {
    background: #f0f0f0;
}

.more-about-toggle .chevron {
    transition: transform 0.2s ease;
}

.more-about-fields {
    padding: 1rem;
    border-top: 1px solid #e0e0e0;
}

.personality-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.personality-chip {
    display: inline-flex;
    cursor: pointer;
}

.personality-chip input {
    display: none;
}

.personality-chip span {
    padding: 0.4rem 0.75rem;
    background: #f0f0f0;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #666;
    transition: all 0.2s ease;
}

.personality-chip input:checked + span {
    background: var(--teal);
    color: white;
}

.form-hint {
    font-size: 0.75rem;
    color: #999;
    margin-top: 0.25rem;
}

/* Pet Card Bio */
.pet-bio {
    font-size: 0.85rem;
    color: #666;
    margin: 0.25rem 0 0.5rem 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pet-bio.expanded {
    -webkit-line-clamp: unset;
    display: block;
}

/* Pet Card More About Me Section */
.more-about-card {
    margin-top: 0.75rem;
    border-top: 1px solid #eee;
    padding-top: 0.5rem;
}

.more-about-card-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.8rem;
    color: #888;
    transition: color 0.2s ease;
}

.more-about-card-toggle:hover {
    color: #666;
}

.more-about-card-toggle .chevron {
    font-size: 0.7rem;
    transition: transform 0.2s ease;
}

.more-about-content {
    padding: 0.5rem 0;
    animation: slideDown 0.2s ease;
}

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

.more-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    color: #666;
}

.more-icon {
    font-size: 0.9rem;
}

.personality-badges,
.favorites-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.personality-badge {
    padding: 0.25rem 0.5rem;
    background: #e8f5e9;
    color: #388e3c;
    border-radius: 12px;
    font-size: 0.7rem;
}

.favorite-badge {
    padding: 0.25rem 0.5rem;
    background: #f5f5f5;
    color: #666;
    border-radius: 12px;
    font-size: 0.7rem;
}

/* Multi-Photo Preview Thumbnails */
.photo-preview-container {
    margin-bottom: 1rem;
}

.photo-previews {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.preview-thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
}

/* Pet Card Gallery */
.pet-image-gallery {
    position: relative;
}

.gallery-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-snap-stop: always;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.gallery-container::-webkit-scrollbar {
    display: none;
}

.gallery-slide {
    flex: 0 0 100%;
    min-width: 100%;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    aspect-ratio: 4 / 5;
    cursor: pointer;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-height: 500px;
}

.gallery-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 5;
}

.gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.2s ease;
}

.gallery-dot.active {
    background: white;
    transform: scale(1.2);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Step 16: Hall of Fame Timing */
.hall-timing {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 1rem;
}

/* Step 17: Vote Outcome Text */
.vote-outcome-text {
    font-size: 0.6rem;
    color: #aaa;
    text-align: center;
    max-width: 120px;
    line-height: 1.3;
}

/* Trust Foundation Section */
.trust-foundation {
    background: #fafafa;
    padding: var(--section-padding);
    border-top: 1px solid #eee;
}

.trust-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-gray);
    text-align: center;
    margin-bottom: 1.5rem;
}

.trust-copy {
    max-width: 600px;
    margin: 0 auto 2rem auto;
    text-align: center;
}

.trust-copy p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.trust-signals {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.trust-signal {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #555;
    font-size: 0.9rem;
}

.trust-check {
    color: var(--teal);
    font-weight: 700;
    font-size: 1.1rem;
}

/* About Page */
.about-page {
    min-height: 100vh;
    padding: 6rem 0 3rem 0;
    background: var(--white);
}

.about-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-gray);
    text-align: center;
    margin-bottom: 2rem;
}

.about-content {
    max-width: 700px;
    margin: 0 auto;
}

.about-section {
    margin-bottom: 2.5rem;
}

.about-section h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--teal);
    margin-bottom: 0.75rem;
}

.about-section p {
    color: #555;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 0.75rem;
}

.contact-email a {
    color: var(--teal);
    text-decoration: none;
    font-weight: 500;
}

.contact-email a:hover {
    text-decoration: underline;
}

.back-btn {
    background: none;
    border: none;
    color: var(--teal);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.5rem 0;
    margin-bottom: 1rem;
    transition: color 0.2s ease;
}

.back-btn:hover {
    color: #37968f;
}

@media (max-width: 768px) {
    .trust-signals {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .about-title {
        font-size: 2rem;
    }
}
/* Mood Reactions */
.mood-reactions-row {
    display: flex;
    gap: 0.25rem;
    justify-content: center;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.mood-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.125rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 0.35rem 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 42px;
}

.mood-btn:hover:not(:disabled) {
    background: #e9ecef;
    transform: translateY(-1px);
}

.mood-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.mood-btn.mood-reacted {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: #86efac;
}

.mood-emoji {
    font-size: 1.1rem;
    line-height: 1;
}

.mood-count {
    font-size: 0.7rem;
    color: #666;
    font-weight: 500;
}

.mood-bump {
    animation: moodBump 0.3s ease;
}

@keyframes moodBump {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); color: var(--teal); }
}

/* Today's Vibes Section */
.todays-vibes-section {
    background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

.todays-vibes-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #854d0e;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vibes-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-start;
}

.vibe-tile {
    background: white;
    border-radius: 12px;
    padding: 0.75rem;
    min-width: 120px;
    max-width: 150px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #fef08a;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.vibe-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.vibe-tile-header {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.5rem;
}

.vibe-tile-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.35rem;
}

.vibe-thumbnail {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fef08a;
}

.vibe-emoji {
    font-size: 1.1rem;
}

.vibe-label {
    font-size: 0.7rem;
    color: #92400e;
    font-weight: 600;
    white-space: nowrap;
}

.vibe-pet-name {
    font-size: 0.8rem;
    color: #333;
    font-weight: 600;
    max-width: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vibe-count {
    font-size: 0.65rem;
    color: #666;
}

.vibes-empty {
    text-align: center;
    color: #92400e;
    font-size: 0.85rem;
    padding: 0.5rem;
}

@media (max-width: 480px) {
    .vibes-grid {
        justify-content: center;
    }
    
    .vibe-tile {
        min-width: 100px;
        max-width: 110px;
        padding: 0.5rem;
    }
    
    .vibe-thumbnail {
        width: 40px;
        height: 40px;
    }
    
    .vibe-label {
        font-size: 0.6rem;
    }
    
    .vibe-pet-name {
        font-size: 0.7rem;
        max-width: 80px;
    }
}

/* T005: Button hover transitions and scale effects */
.btn {
    transition: all 0.2s ease;
}

.btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn:active:not(:disabled) {
    transform: translateY(0) scale(0.97);
}

.filter-chip {
    transition: all 0.2s ease;
}

.filter-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.vote-btn:hover:not(:disabled),
.btn-vote:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 3px 10px rgba(77, 182, 172, 0.3);
}

.share-btn:hover,
.btn-share:hover,
.btn-share-card:hover {
    transform: scale(1.1);
}

/* T005: Card shadows and hover elevation */
.pet-card {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pet-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.14);
}

.mini-winner-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mini-winner-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.winner-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.winner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

/* T005: Skeleton loaders for pet cards */
.pet-card-skeleton {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.skeleton-image {
    width: 100%;
    aspect-ratio: 4 / 5;
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-info {
    padding: 1.5rem;
}

.skeleton-line {
    height: 14px;
    border-radius: 7px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    margin-bottom: 0.75rem;
}

.skeleton-line.skeleton-title {
    width: 60%;
    height: 18px;
}

.skeleton-line.skeleton-text {
    width: 80%;
}

.skeleton-line.skeleton-btn {
    width: 40%;
    height: 32px;
    border-radius: 20px;
}

/* T005: Loading spinner for buttons */
.btn-loading {
    position: relative;
    pointer-events: none;
    color: transparent !important;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: btnSpin 0.6s linear infinite;
}

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

.vote-btn.btn-loading::after,
.btn-vote.btn-loading::after {
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
}

/* T005: Error toast with retry */
.error-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #fff;
    border: 2px solid #e53935;
    color: #e53935;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 8px 24px rgba(229, 57, 53, 0.2);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 90%;
}

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

.error-toast-message {
    flex: 1;
}

.error-toast-retry {
    background: #e53935;
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.error-toast-retry:hover {
    background: #c62828;
}

.error-toast-close {
    background: none;
    border: none;
    color: #e53935;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 4px;
    opacity: 0.6;
    line-height: 1;
}

.error-toast-close:hover {
    opacity: 1;
}

/* T005: Upload progress overlay */
.upload-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.upload-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.upload-progress-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    min-width: 260px;
    max-width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.upload-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e0e0e0;
    border-top-color: var(--teal);
    border-radius: 50%;
    animation: btnSpin 0.8s linear infinite;
    margin: 0 auto 1rem;
}

.upload-progress-text {
    font-size: 1rem;
    color: var(--dark-gray);
    font-weight: 500;
}

.upload-progress-sub {
    font-size: 0.85rem;
    color: #888;
    margin-top: 0.5rem;
}

/* T005: Global error banner */
.global-error-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #e53935;
    color: white;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    z-index: 99999;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.global-error-banner.show {
    transform: translateY(0);
}

.global-error-banner button {
    background: white;
    color: #e53935;
    border: none;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}

@media (max-width: 768px) {
    :root {
        --container-padding: 24px;
        --section-spacing: 40px;
    }
}

@media (max-width: 480px) {
    :root {
        --container-padding: 16px;
        --section-spacing: 32px;
    }
}

.auth-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}
.auth-modal-overlay.active {
    display: flex;
}
.auth-modal {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.auth-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}
.auth-modal-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 4px;
    color: #333;
}
.auth-modal-subtitle {
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 20px;
}
.auth-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 12px;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s;
}
.auth-input:focus {
    outline: none;
    border-color: var(--teal);
}
.auth-btn {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    border-radius: 8px;
    margin-bottom: 8px;
}
.auth-error {
    color: #e53935;
    font-size: 0.85rem;
    min-height: 20px;
    margin-top: 4px;
}
.auth-otp-info {
    color: #555;
    margin-bottom: 16px;
    font-size: 0.95rem;
}
.auth-link {
    background: none;
    border: none;
    color: var(--teal);
    cursor: pointer;
    font-size: 0.85rem;
    margin-top: 8px;
    display: block;
    text-align: center;
}
.auth-success-msg {
    color: #2e7d32;
    font-size: 1rem;
    margin-bottom: 16px;
    text-align: center;
}
.auth-status {
    display: flex;
    align-items: center;
    gap: 8px;
}
.auth-user-email {
    font-size: 0.8rem;
    color: #666;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.auth-login-btn, .auth-logout-btn {
    background: var(--teal);
    color: #fff;
    border: none;
    padding: 6px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
    transition: opacity 0.2s;
}
.auth-logout-btn {
    background: #eee;
    color: #666;
}
.auth-login-btn:hover, .auth-logout-btn:hover {
    opacity: 0.85;
}
.auth-free-note {
    color: #999;
    font-size: 0.8rem;
    text-align: center;
    margin-top: 4px;
}
.auth-modal-logo {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 8px;
    line-height: 1;
}
.auth-otp-input {
    font-size: 1.5rem !important;
    letter-spacing: 10px;
    text-align: center;
    font-weight: 700;
    padding: 14px !important;
}
.auth-success-icon {
    width: 52px;
    height: 52px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 auto 12px;
}
.social-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 6px;
    min-height: 0;
}
.social-proof:empty {
    display: none;
}
.sp-today {
    font-size: 0.8rem;
    color: #888;
}
.sp-trending {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    background: #fff3e0;
    color: #e65100;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 12px;
}
.sp-distance {
    font-size: 0.8rem;
    color: var(--teal);
    font-weight: 500;
}
.sp-leader {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 0.8rem;
    color: #f9a825;
    font-weight: 600;
}
