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

body {
    font-family: 'Kanit', sans-serif;
    line-height: 1.6;
    color: #000000;
    background: #ffffff;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Remove animated background particles for black/white theme */

@keyframes particleFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg);
        opacity: 0.7;
    }
    50% { 
        transform: translateY(-20px) rotate(180deg);
        opacity: 1;
    }
}

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

/* Header */
.header {
    background: #000000;
    border-bottom: 2px solid #000000;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo-link {
    text-decoration: none;
    display: block;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.logo-link:hover {
    transform: scale(1.05);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(45deg, #00d4ff 0%, #ff6b6b 25%, #a855f7 50%, #00d4ff 75%, #ff6b6b 100%);
    background-size: 200% 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: neonGlow 3s ease-in-out infinite;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    position: relative;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}





@keyframes neonGlow {
    0%, 100% { 
        background-position: 0% 50%;
        filter: drop-shadow(0 0 5px rgba(0, 212, 255, 0.7));
    }
    50% { 
        background-position: 100% 50%;
        filter: drop-shadow(0 0 20px rgba(255, 107, 107, 0.7));
    }
}

.logo-subtitle {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    color: rgba(0, 212, 255, 0.8);
    margin-top: -0.3rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-shadow: 0 0 8px rgba(0, 212, 255, 0.4);
    opacity: 0.9;
    transition: all 0.3s ease;
    background: linear-gradient(45deg, rgba(0, 212, 255, 0.8) 0%, rgba(168, 85, 247, 0.8) 50%, rgba(255, 107, 107, 0.8) 100%);
    background-size: 200% 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: subtitleGlow 4s ease-in-out infinite;
}

@keyframes subtitleGlow {
    0%, 100% { 
        background-position: 0% 50%;
        opacity: 0.8;
    }
    50% { 
        background-position: 100% 50%;
        opacity: 1;
    }
}

.logo-link:hover .logo-subtitle {
    opacity: 1;
    transform: translateY(-1px);
    text-shadow: 0 0 12px rgba(0, 212, 255, 0.6);
}

.nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}







.nav-btn {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
    border: none;
    color: #00d4ff;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-family: 'Kanit', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 25px;
    padding: 2px;
    background: linear-gradient(135deg, #00d4ff 0%, #a855f7 50%, #ff6b6b 100%);
    background-size: 200% 200%;
    animation: borderGlow 3s ease infinite;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: subtract;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: source-out;
    z-index: -1;
}

@keyframes borderGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.nav-btn:hover {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(168, 85, 247, 0.2) 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.8);
}

.nav-btn.active {
    background: linear-gradient(135deg, #00d4ff 0%, #a855f7 100%);
    color: white;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.6);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

/* Enhanced Submit Button Styling */
#submitEventBtn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    position: relative;
    overflow: hidden;
    animation: header-pulse 4s ease-in-out infinite;
}

@keyframes header-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 0 25px rgba(0, 212, 255, 0.4), 0 0 35px rgba(168, 85, 247, 0.2);
    }
}

.nav-btn-icon {
    font-size: 1.1em;
    animation: icon-wiggle 3s ease-in-out infinite;
    display: inline-block;
}

@keyframes icon-wiggle {
    0%, 20%, 50%, 80%, 100% {
        transform: rotate(0deg) scale(1);
    }
    40% {
        transform: rotate(-5deg) scale(1.1);
    }
    60% {
        transform: rotate(3deg) scale(1.05);
    }
}

.nav-btn-text {
    font-weight: 600;
    font-size: 1em;
    animation: text-shimmer 5s ease-in-out infinite;
}

@keyframes text-shimmer {
    0%, 100% {
        text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
    }
    50% {
        text-shadow: 0 0 15px rgba(0, 212, 255, 0.8), 0 0 20px rgba(168, 85, 247, 0.4);
    }
}

.nav-btn-subtext {
    font-size: 0.75em;
    opacity: 0.8;
    font-weight: 400;
    line-height: 1;
    animation: subtext-glow 6s ease-in-out infinite;
}

@keyframes subtext-glow {
    0%, 100% {
        opacity: 0.8;
        text-shadow: none;
    }
    50% {
        opacity: 1;
        text-shadow: 0 0 8px rgba(0, 212, 255, 0.6);
    }
}

#submitEventBtn:hover {
    background: linear-gradient(135deg, #48bb78 0%, #68d391 100%);
    box-shadow: 0 8px 25px rgba(72, 187, 120, 0.4);
    animation-duration: 1s;
}

#submitEventBtn.active {
    background: linear-gradient(135deg, #48bb78 0%, #68d391 100%);
    box-shadow: 0 0 30px rgba(72, 187, 120, 0.6);
}

/* Submit Event Call-to-Action Banner */
.submit-event-banner {
    background: linear-gradient(135deg, #48bb78 0%, #68d391 100%);
    border-radius: 12px;
    margin-bottom: 1.25rem;
    padding: 1rem;
    box-shadow: 0 4px 15px rgba(72, 187, 120, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

/* Removed shimmer animation for cleaner look */

.banner-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.banner-icon {
    font-size: 1.8rem;
    animation: gentleBounce 3s infinite;
}

@keyframes gentleBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

.banner-text {
    flex: 1;
}

.banner-text h3 {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    line-height: 1.2;
}

.banner-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    line-height: 1.3;
}

.banner-submit-btn {
    background: linear-gradient(135deg, #fff 0%, #f7fafc 100%);
    color: #48bb78;
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 160px;
    justify-content: center;
    white-space: nowrap;
}

.banner-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
}

.banner-submit-btn span {
    font-size: 1.1em;
}

/* Main Content */
.main {
    padding: 2rem 0;
}

/* Closure Message Styles */
.closure-section {
    background: #ffffff;
    border: 2px solid #000000;
    border-radius: 10px;
    margin: 2rem auto;
    padding: 3rem 2rem;
    max-width: 800px;
    text-align: center;
}

.closure-content {
    margin-bottom: 3rem;
}

.closure-header {
    margin-bottom: 2rem;
}

.closure-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.closure-subtitle {
    font-size: 1.2rem;
    color: #666666;
    font-weight: 500;
}

.closure-message {
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

.closure-message p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #333333;
}

.thank-you-text {
    font-weight: 600;
    color: #000000;
}

.gratitude-text {
    color: #444444;
}

.community-text {
    color: #555555;
}

.final-message {
    font-weight: 500;
    color: #000000;
    font-style: italic;
}

.section {
    display: block;
    background: #ffffff;
    border: 2px solid #000000;
    border-radius: 10px;
    margin: 1rem auto;
    padding: 2rem;
    box-shadow: none;
    position: relative;
    overflow: hidden;
}

.section::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #00d4ff, #a855f7, #ff6b6b, #00d4ff);
    background-size: 300% 300%;
    animation: borderShimmer 4s ease infinite;
    border-radius: 22px;
    z-index: -1;
    opacity: 0.3;
}

@keyframes borderShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.section.active {
    display: block;
}

.section h2 {
    background: linear-gradient(45deg, #00d4ff 0%, #a855f7 50%, #ff6b6b 100%);
    background-size: 200% 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-size: 1.75rem; /* Reduced from 2rem */
    margin-bottom: 1.5rem; /* Reduced from 2rem */
    text-align: center;
    font-weight: 700;
    animation: textShimmer 3s ease-in-out infinite;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
    position: relative;
}

@keyframes textShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.section h3 {
    color: #667eea;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

/* Filter Styles */
.quick-filters {
    display: flex;
    gap: 0.5rem;
}

.quick-filter-btn {
    background: #f8f9fa;
    border: 1px solid #667eea;
    color: #667eea;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-family: 'Kanit', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.quick-filter-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.quick-filter-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}



.month-dropdown-wrapper {
    position: relative;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.dropdown-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.25rem 0.5rem;
    font-weight: 600;
    color: #4a5568;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-bottom: 1px solid #e2e8f0;
}

.dropdown-label span:first-child {
    font-size: 1.1rem;
}

.label-text {
    font-size: 0.9rem;
}

.modern-select {
    width: 100%;
    padding: 1rem 3rem 1rem 1.25rem;
    border: none;
    background: white;
    font-family: 'Kanit', sans-serif;
    font-size: 1rem;
    color: #2d3748;
    appearance: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.modern-select:focus {
    outline: none;
    background: #f7fafc;
}

.select-arrow {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #667eea;
    font-size: 1.2rem;
    pointer-events: none;
    transition: transform 0.3s ease;
}

.month-dropdown-wrapper:hover .select-arrow {
    transform: translateY(-50%) rotate(180deg);
}

/* Enhanced Content Grid - Map removed for cost optimization */
.enhanced-content-grid {
    display: grid;
    grid-template-columns: 340px 1fr;
    grid-template-rows: auto;
    gap: 1rem;
    margin-bottom: 0;
}

.calendar-filter-section {
    grid-row: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.calendar-container {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 255, 0.9) 100%);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid rgba(102, 126, 234, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(102, 126, 234, 0.15);
    gap: 1rem;
    min-height: 2.5rem;
}

.calendar-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    white-space: nowrap;
    flex-shrink: 0;
}

.integrated-filters {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 255, 0.9) 100%);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid rgba(102, 126, 234, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(102, 126, 234, 0.15);
}

.filter-header h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.filter-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.filter-selects {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 8px;
    background: white;
    color: #333;
    font-family: 'Kanit', sans-serif;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.filter-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

/* Map section styles removed - no longer needed */



.events-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 255, 0.9) 100%);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid rgba(102, 126, 234, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.events-header {
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(102, 126, 234, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Search Container Styles */
.search-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    padding: 0.5rem 0.75rem;
    transition: all 0.3s ease;
    flex: 1;
    max-width: 400px;
}

.search-input-wrapper:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-icon {
    font-size: 1rem;
    color: #6c757d;
    margin-right: 0.5rem;
}

.search-input {
    border: none;
    outline: none;
    background: transparent;
    flex: 1;
    font-size: 0.9rem;
    color: #333;
    font-family: 'Kanit', sans-serif;
}

.search-input::placeholder {
    color: #9ca3af;
}

.clear-search-btn {
    background: none;
    border: none;
    color: #6c757d;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.2rem;
    border-radius: 50%;
    transition: all 0.2s ease;
    margin-left: 0.25rem;
}

.clear-search-btn:hover {
    background: rgba(108, 117, 125, 0.1);
    color: #495057;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .search-input-wrapper {
        max-width: 100%;
    }
    
    .search-input {
        font-size: 16px; /* Prevent zoom on iOS */
    }
}

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

.events-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.events-container {
    max-height: 1000px;
    overflow-y: auto;
    padding: 0; /* Remove padding to give more space for event cards */
}

#calendar {
    min-height: 280px;
    background: #fafbfc;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #e5e7eb;
}

/* Map element styles removed */

.events-count {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.events-count:empty {
    display: none;
}

.events-count.updating {
    animation: countPulse 0.6s ease-out;
}

@keyframes countPulse {
    0% { 
        transform: scale(1);
        box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
    }
    100% { 
        transform: scale(1);
        box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
    }
}

#eventsList {
    display: grid;
    gap: 0.75rem;
}

.event-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 255, 0.9) 100%);
    padding: 1rem;
    border-radius: 12px;
    border-left: 4px solid transparent;
    background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 255, 0.9) 100%),
                      linear-gradient(45deg, #00d4ff 0%, #a855f7 50%, #ff6b6b 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1), 
                0 0 20px rgba(0, 212, 255, 0.1);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 1rem;
    will-change: transform;
    backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* Removed shimmer animation to eliminate flicker */

.event-card:hover {
    transform: translate3d(0, -2px, 0);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12), 
                0 0 20px rgba(0, 212, 255, 0.2);
}

/* Current/ongoing events - distinctive background for events happening now */
.event-card.current-event {
    background: linear-gradient(135deg, rgba(255, 251, 235, 0.95) 0%, rgba(254, 243, 199, 0.9) 100%);
    border-left: 4px solid transparent;
    background-image: linear-gradient(135deg, rgba(255, 251, 235, 0.95) 0%, rgba(254, 243, 199, 0.9) 100%),
                      linear-gradient(45deg, #f59e0b 0%, #d97706 50%, #b45309 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.15), 
                0 0 20px rgba(217, 119, 6, 0.1);
    animation: currentEventGlow 2s ease-in-out infinite alternate;
}

.event-card.current-event:hover {
    transform: translate3d(0, -2px, 0);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.2), 
                0 0 20px rgba(217, 119, 6, 0.15);
}

@keyframes currentEventGlow {
    0% { 
        box-shadow: 0 4px 15px rgba(245, 158, 11, 0.15), 
                    0 0 20px rgba(217, 119, 6, 0.1);
    }
    100% { 
        box-shadow: 0 6px 20px rgba(245, 158, 11, 0.25), 
                    0 0 25px rgba(217, 119, 6, 0.15);
    }
}

/* League ribbon styling */
.league-ribbon {
    display: inline-block;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #000000 100%);
    color: #fff;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4), 
                0 0 0 1px rgba(255, 255, 255, 0.1);
    margin-right: 0.5rem;
    white-space: nowrap;
    animation: leagueGlow 2s ease-in-out infinite alternate;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes leagueGlow {
    0% {
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4), 
                    0 0 0 1px rgba(255, 255, 255, 0.1);
    }
    100% {
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6), 
                    0 0 15px rgba(255, 255, 255, 0.2),
                    0 0 0 1px rgba(255, 255, 255, 0.3);
    }
}

.event-main-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.event-title {
    font-weight: 600;
    color: #333;
    font-size: 1rem;
    line-height: 1.3;
    margin: 0;
}

.event-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.event-date {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #667eea;
    font-weight: 500;
    font-size: 0.85rem;
}

.event-date::before {
    content: "📅";
    font-size: 0.8rem;
}

.event-venue {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #666;
    font-size: 0.85rem;
}

.event-venue::before {
    content: "📍";
    font-size: 0.8rem;
}

.event-location {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #888;
    font-size: 0.8rem;
}

.event-location::before {
    content: "🏢";
    font-size: 0.7rem;
}

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

.event-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: rgba(102, 126, 234, 0.95);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
    white-space: nowrap;
    will-change: transform;
    backface-visibility: hidden;
    border: 1px solid rgba(102, 126, 234, 0.3);
    box-shadow: 
        0 4px 15px rgba(102, 126, 234, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

/* Removed shimmer animation to eliminate flicker */

.event-link:hover {
    background: rgba(102, 126, 234, 0.25);
    color: rgba(102, 126, 234, 1);
    transform: translate3d(0, -1px, 0);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.25);
}

.event-link::after {
    content: "↗";
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Map button specific styling */
.event-link.map-btn {
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: rgba(16, 185, 129, 0.95);
    box-shadow: 
        0 4px 15px rgba(16, 185, 129, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    /* Force button to inherit exact same font properties as anchor */
    font: inherit;
    font-family: 'Kanit', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
}

.event-link.map-btn:hover {
    background: rgba(16, 185, 129, 0.3);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-color: rgba(16, 185, 129, 0.5);
    color: rgba(16, 185, 129, 1);
    box-shadow: 
        0 8px 25px rgba(16, 185, 129, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        0 0 20px rgba(16, 185, 129, 0.15);
}

.event-link.map-btn::after {
    display: none; /* Remove the arrow for map button */
}

/* Share button styling - subtle but visible */
.event-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(108, 117, 125, 0.12);
    color: rgba(108, 117, 125, 0.85);
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    border: 1px solid rgba(108, 117, 125, 0.2);
    font-size: 0.9rem;
    font-family: 'Kanit', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    will-change: transform;
    backface-visibility: hidden;
    box-shadow: 
        0 1px 3px rgba(108, 117, 125, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    min-width: 36px;
    line-height: 1;
    opacity: 0.8;
}

.event-share-btn:hover {
    background: rgba(108, 117, 125, 0.18);
    color: rgba(108, 117, 125, 1);
    transform: translate3d(0, -1px, 0);
    box-shadow: 
        0 2px 6px rgba(108, 117, 125, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border-color: rgba(108, 117, 125, 0.3);
    opacity: 1;
}

.event-share-btn:active {
    transform: translate3d(0, 0, 0);
}

/* Share modal styles */
.share-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: shareModalFadeIn 0.2s ease-out;
}

@keyframes shareModalFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
        -webkit-backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }
}

.share-modal {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 255, 0.9) 100%);
    border-radius: 16px;
    padding: 1.5rem;
    margin: 1rem;
    max-width: 380px;
    width: 100%;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 8px 16px rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: shareModalSlideIn 0.3s ease-out;
}

@keyframes shareModalSlideIn {
    from {
        opacity: 0;
        transform: translate3d(0, 20px, 0) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

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

.share-modal-header h3 {
    margin: 0;
    color: #333;
    font-family: 'Kanit', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
}

.share-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.share-modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
}

.share-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.share-option {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    text-decoration: none;
    font-family: 'Kanit', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.15s ease;
    border: none;
    cursor: pointer;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.share-option.facebook {
    background: linear-gradient(135deg, #1877f2 0%, #0d5dbf 100%);
}

.share-option.facebook:hover {
    background: linear-gradient(135deg, #0d5dbf 0%, #0a4a9c 100%);
    transform: translate3d(0, -2px, 0);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

.share-option.line {
    background: linear-gradient(135deg, #00c300 0%, #00a000 100%);
}

.share-option.line:hover {
    background: linear-gradient(135deg, #00a000 0%, #008000 100%);
    transform: translate3d(0, -2px, 0);
    box-shadow: 0 4px 12px rgba(0, 195, 0, 0.3);
}

.share-option.messenger {
    background: linear-gradient(135deg, #00b2ff 0%, #006aff 100%);
}

.share-option.messenger:hover {
    background: linear-gradient(135deg, #006aff 0%, #0052cc 100%);
    transform: translate3d(0, -2px, 0);
    box-shadow: 0 4px 12px rgba(0, 178, 255, 0.3);
}

.share-option.copy {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.share-option.copy:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translate3d(0, -2px, 0);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Toast notification styles */
.share-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translate(-50%, 20px);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    font-family: 'Kanit', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
    z-index: 10001;
    opacity: 0;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

/* Past events styling */
.event-card.past-event {
    background: #f8f9fa;
    border-left-color: #6c757d;
    opacity: 0.65;
}

.event-card.past-event .event-title {
    color: #6c757d;
}

.event-card.past-event .event-date {
    color: #868e96;
}

.event-card.past-event .event-venue {
    color: #868e96;
}

.event-card.past-event .event-location {
    color: #868e96;
}

.event-card.past-event .event-link {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: rgba(108, 117, 125, 0.8);
    border: 1px solid rgba(108, 117, 125, 0.3);
    box-shadow: 
        0 2px 10px rgba(108, 117, 125, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.event-card.past-event .event-link:hover {
    background: rgba(108, 117, 125, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: rgba(108, 117, 125, 1);
    border-color: rgba(108, 117, 125, 0.4);
    box-shadow: 
        0 4px 15px rgba(108, 117, 125, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.event-card.past-event .event-link.map-btn {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: rgba(108, 117, 125, 0.8);
    border: 1px solid rgba(108, 117, 125, 0.3);
    box-shadow: 
        0 2px 10px rgba(108, 117, 125, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.event-card.past-event .event-link.map-btn:hover {
    background: rgba(108, 117, 125, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: rgba(108, 117, 125, 1);
    border-color: rgba(108, 117, 125, 0.4);
    box-shadow: 
        0 4px 15px rgba(108, 117, 125, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}



.event-card.past-event:hover {
    transform: none;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
    border-left-color: #6c757d;
}

/* Province badges */
.province-badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    font-family: 'Kanit', sans-serif;
    line-height: 1.2;
}

.province-badge.clickable {
    cursor: pointer;
    user-select: none;
}

.province-badge.clickable:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    filter: brightness(1.1);
}

.province-badge.clickable:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Province badge in event cards */
.event-meta .province-badge {
    margin-top: 0.25rem;
}

/* Province badge in banners */
.banner-location .province-badge {
    margin-left: 0.5rem;
    vertical-align: middle;
}

/* Province Filter Section */
.province-filter-section {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.06) 100%);
    border-radius: 16px;
    border: 2px solid rgba(102, 126, 234, 0.2);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.1);
}

.province-filter-section.enhanced {
    padding: 1.5rem;
    border: 2px solid rgba(102, 126, 234, 0.3);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.15);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.12) 0%, rgba(118, 75, 162, 0.08) 100%);
}

.province-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(102, 126, 234, 0.15);
}

.filter-label {
    font-size: 1rem;
    font-weight: 700;
    color: #444;
    font-family: 'Kanit', sans-serif;
}

.filter-title-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.filter-subtitle {
    font-size: 0.85rem;
    color: #666;
    font-weight: 400;
}

.filter-stats {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.stats-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stats-icon {
    font-size: 1rem;
}

.stats-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
}

.reset-all-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: 'Kanit', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.reset-all-btn:hover {
    background: linear-gradient(135deg, #ff5252 0%, #ff7979 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

.reset-all-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(255, 107, 107, 0.3);
}

.province-buttons-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    justify-content: flex-start;
}

.province-filter-btn {
    display: inline-block;
    padding: 0.5rem 0.8rem;
    border-radius: 14px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    border: 2px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s ease-out, box-shadow 0.3s ease-out, filter 0.3s ease-out, scale 0.3s ease-out, border 0.3s ease-out;
    font-family: 'Kanit', sans-serif;
    line-height: 1.2;
    user-select: none;
    position: relative;
    overflow: hidden;
    opacity: 0.9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

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

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

.province-filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    filter: brightness(1.1);
    border-color: rgba(255, 255, 255, 0.6);
    opacity: 1;
}

.province-filter-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.province-filter-btn.active {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 255, 255, 0.4);
    filter: brightness(1.15) saturate(1.4) contrast(1.1);
    border: 3px solid rgba(255, 255, 255, 0.8);
    font-weight: 800;
    opacity: 1;
    scale: 1.05;
    position: relative;
    z-index: 10;
}

.province-filter-btn.active::after {
    content: '✓';
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 900;
    color: white;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    pointer-events: none;
    animation: bounceIn 0.3s ease-out;
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.province-filter-btn.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 14px;
    pointer-events: none;
}

.all-provinces-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    opacity: 0.95;
    font-weight: 700;
}

.all-provinces-btn:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%) !important;
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
    opacity: 1;
    transform: translateY(-2px);
}

.all-provinces-btn.active {
    background: linear-gradient(135deg, #4e5bc7 0%, #5e377e 100%) !important;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4), 0 0 20px rgba(102, 126, 234, 0.3);
    opacity: 1;
    filter: brightness(1.15) saturate(1.4) contrast(1.1);
    border: 3px solid rgba(255, 255, 255, 0.8) !important;
    transform: translateY(-3px);
    scale: 1.05;
    font-weight: 800;
    position: relative;
    z-index: 10;
}

.all-provinces-btn.active::after {
    content: '✓';
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 900;
    color: white;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    pointer-events: none;
    animation: bounceIn 0.3s ease-out;
}

/* Metropolitan button styles */
.metropolitan-btn {
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%) !important;
    color: white !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    opacity: 0.95;
    font-weight: 700;
}

.metropolitan-btn:hover {
    background: linear-gradient(135deg, #E85A2B 0%, #E0811A 100%) !important;
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.4);
    opacity: 1;
    transform: translateY(-2px);
}

.metropolitan-btn.active {
    background: linear-gradient(135deg, #D14C20 0%, #C96F16 100%) !important;
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4), 0 0 20px rgba(255, 107, 53, 0.3);
    opacity: 1;
    filter: brightness(1.15) saturate(1.4) contrast(1.1);
    border: 3px solid rgba(255, 255, 255, 0.8) !important;
    transform: translateY(-3px);
    scale: 1.05;
    font-weight: 800;
    position: relative;
    z-index: 10;
}

.metropolitan-btn.active::after {
    content: '✓';
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 900;
    color: white;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    pointer-events: none;
    animation: bounceIn 0.3s ease-out;
}

/* Compact view for mobile */
@media (max-width: 768px) {
    .event-card {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .event-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }
    
    .event-actions {
        display: flex;
        align-self: stretch;
        gap: 0.5rem;
        flex-wrap: nowrap; /* Force same row */
    }
    
    .event-link {
        flex: 1;
        justify-content: center;
        font-size: 0.75rem;
        padding: 0.4rem 0.5rem;
        min-width: 0;
        white-space: nowrap;
    }
    
    .event-link.map-btn {
        flex: 0 0 auto;
        min-width: 38px;
        padding: 0.4rem 0.35rem;
        font-size: 0.9rem;
        justify-content: center;
    }
    
    .event-share-btn {
        flex: 0 0 auto;
        min-width: 36px;
        padding: 0.4rem 0.5rem;
        font-size: 0.85rem;
    }
    


    .events-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
        margin-bottom: 0.5rem;
        padding-bottom: 0.25rem;
    }
    
    .events-count {
        align-self: flex-end;
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .reset-filter-btn {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
        margin-right: 0.3rem;
        margin-bottom: 0.3rem;
    }
    
    .province-filter-section {
        padding: 0.8rem;
        margin-bottom: 1rem;
    }
    
    .province-filter-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
        margin-bottom: 0.8rem;
    }
    
    .filter-label {
        font-size: 0.9rem;
        flex: 1;
        font-weight: 700;
    }
    
    .reset-all-btn {
        font-size: 0.75rem;
        padding: 0.35rem 0.7rem;
        flex-shrink: 0;
    }
    
    .province-buttons-container {
        gap: 0.4rem;
        /* Removed max-height and overflow-y for better UX */
        padding: 0;
    }
    
    .province-filter-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.7rem;
        border-radius: 12px;
    }
}

/* Event Form */
.event-form {
    max-width: 600px;
    margin: 0 auto;
}

/* Readonly field styling */
.readonly-field {
    background-color: #f8f9fa !important;
    color: #6c757d !important;
    cursor: not-allowed !important;
    opacity: 0.8 !important;
    border: 1px solid #dee2e6 !important;
}

.readonly-field:focus {
    box-shadow: 0 0 0 0.2rem rgba(108, 117, 125, 0.25) !important;
    border-color: #adb5bd !important;
}

/* Venue input container with edit button */
.venue-input-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.venue-input-container input {
    flex: 1;
}

.edit-venue-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    min-width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.edit-venue-btn:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.edit-venue-btn:active {
    transform: translateY(0);
}

/* Manual edit mode styling */
.venue-manual-edit {
    background-color: #fff3cd !important;
    border-color: #ffc107 !important;
    color: #856404 !important;
    cursor: text !important;
    opacity: 1 !important;
}

.venue-manual-edit:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25) !important;
    border-color: #ffc107 !important;
}

/* Location type checkbox styling */
.location-type-container {
    margin: 1rem 0;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    padding-left: 2rem;
    user-select: none;
    font-family: 'Kanit', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
}

.checkbox-container input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 1.25rem;
    width: 1.25rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.checkbox-container:hover .checkmark {
    border-color: #667eea;
    background: linear-gradient(135deg, #f8f9ff 0%, #eef2ff 100%);
    transform: translateY(-50%) scale(1.05);
}

.checkbox-container input[type="checkbox"]:checked ~ .checkmark {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container input[type="checkbox"]:checked ~ .checkmark:after {
    display: block;
}

.checkbox-label {
    color: #495057;
    line-height: 1.4;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 25px;
    font-size: 0.95rem;
}

.form-group label::before {
    content: '⚡';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #667eea;
    font-size: 1rem;
    opacity: 0.7;
    animation: labelSparkle 2s ease-in-out infinite;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid transparent;
    border-radius: 12px;
    font-family: 'Kanit', sans-serif;
    font-size: 1rem;
    background: linear-gradient(white, white) padding-box, 
                linear-gradient(135deg, #667eea 0%, #764ba2 50%, #FF6B35 100%) border-box;
    box-shadow: 
        0 4px 15px rgba(102, 126, 234, 0.1),
        inset 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.form-group input::before,
.form-group select::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
    transition: left 0.6s ease;
    pointer-events: none;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box, 
                linear-gradient(135deg, #FF6B35 0%, #FFD700 25%, #667eea 75%, #764ba2 100%) border-box;
    box-shadow: 
        0 8px 25px rgba(255, 107, 53, 0.3),
        0 0 30px rgba(255, 215, 0, 0.2),
        inset 0 2px 6px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px) scale(1.02);
    animation: inputArenaGlow 2s ease-in-out infinite;
}

.form-group input:focus::before,
.form-group select:focus::before {
    left: 100%;
}

.form-group input:hover,
.form-group select:hover {
    transform: translateY(-1px);
    box-shadow: 
        0 6px 20px rgba(102, 126, 234, 0.2),
        inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.search-hint {
    font-size: 0.85rem;
    color: #667eea;
    margin-top: 0.3rem;
    padding: 0.5rem;
    background: #f8f9ff;
    border-radius: 6px;
    border-left: 3px solid #667eea;
}

/* Enhanced Input Animations */
@keyframes labelSparkle {
    0%, 100% { 
        opacity: 0.7;
        text-shadow: 0 0 5px rgba(102, 126, 234, 0.5);
    }
    50% { 
        opacity: 1;
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
        transform: translateY(-50%) scale(1.1);
    }
}

@keyframes inputArenaGlow {
    0%, 100% {
        box-shadow: 
            0 8px 25px rgba(255, 107, 53, 0.3),
            0 0 30px rgba(255, 215, 0, 0.2),
            inset 0 2px 6px rgba(102, 126, 234, 0.1);
    }
    50% {
        box-shadow: 
            0 8px 25px rgba(102, 126, 234, 0.4),
            0 0 40px rgba(118, 75, 162, 0.3),
            inset 0 2px 6px rgba(255, 107, 53, 0.1);
    }
}

/* Special input states */
.form-group input:valid:not(:focus) {
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box, 
                linear-gradient(135deg, #48bb78 0%, #68d391 100%) border-box;
    position: relative;
}

.form-group input:valid:not(:focus)::after {
    content: '✓';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #48bb78;
    font-weight: bold;
    font-size: 1.2rem;
    animation: checkmarkPulse 1s ease-in-out infinite;
    pointer-events: none;
}

@keyframes checkmarkPulse {
    0%, 100% { 
        transform: translateY(-50%) scale(1); 
        opacity: 0.8; 
    }
    50% { 
        transform: translateY(-50%) scale(1.2); 
        opacity: 1; 
        text-shadow: 0 0 10px rgba(72, 187, 120, 0.5);
    }
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #00d4ff 0%, #a855f7 50%, #ff6b6b 100%);
    background-size: 200% 200%;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 25px;
    font-family: 'Kanit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: buttonGlow 3s ease-in-out infinite;
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

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

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

@keyframes buttonGlow {
    0%, 100% { 
        background-position: 0% 50%;
        box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
    }
    50% { 
        background-position: 100% 50%;
        box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
    }
}

.submit-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.6);
}

.submit-btn:active {
    transform: translateY(-1px) scale(1.01);
}

/* Messages */
.message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    font-weight: 500;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message.warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Calendar Styles */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-top: 1rem;
}

.calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 1rem;
}

.calendar-day-header {
    text-align: center;
    font-weight: 600;
    color: #667eea;
    padding: 0.5rem 0.25rem;
    background: #f0f3ff;
    border-radius: 5px;
    font-size: 0.85rem;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-day {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    will-change: transform;
    contain: layout style;
    padding: 0.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
}

.calendar-day:hover {
    background: #f0f3ff;
}

.calendar-day.other-month {
    color: #ccc;
}

/* Days with events - distinct orange/yellow theme */
.calendar-day.has-event {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(243, 156, 18, 0.3);
    border-radius: 6px;
}

.calendar-day.has-event:hover {
    background: linear-gradient(135deg, #d68910 0%, #d35400 100%);
    transform: scale(1.02);
}

/* Today - distinct blue with white border */
.calendar-day.today {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.4);
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    position: relative;
}

.calendar-day.today:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f618d 100%);
    transform: scale(1.05);
    border-color: white;
}

/* Today + Has Event - combines both styles with pattern */
.calendar-day.today.has-event {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.9);
    position: relative;
}

.calendar-day.today.has-event::before {
    content: '';
    position: absolute;
    top: 2px;
    right: 2px;
    width: 6px;
    height: 6px;
    background: #f39c12;
    border-radius: 50%;
    border: 1px solid white;
}

.calendar-day.today.has-event:hover {
    background: linear-gradient(135deg, #229954 0%, #1e8449 100%);
}

/* Selected date - distinct red/pink theme */
.calendar-day.selected-date {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.4);
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.calendar-day.selected-date:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.8);
}

/* Selected date + Has Event - combines both with indicator */
.calendar-day.selected-date.has-event {
    background: linear-gradient(135deg, #8e44ad 0%, #7d3c98 100%);
    box-shadow: 0 2px 8px rgba(142, 68, 173, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.7);
    position: relative;
}

.calendar-day.selected-date.has-event::before {
    content: '';
    position: absolute;
    top: 2px;
    right: 2px;
    width: 6px;
    height: 6px;
    background: #f39c12;
    border-radius: 50%;
    border: 1px solid white;
}

.calendar-day.selected-date.has-event:hover {
    background: linear-gradient(135deg, #7d3c98 0%, #6c3483 100%);
}

/* Past events - muted versions with consistent colors */
.calendar-day.has-event.past-date {
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.4) 0%, rgba(230, 126, 34, 0.4) 100%);
    color: rgba(255, 255, 255, 0.8);
    opacity: 0.6;
    box-shadow: 0 1px 3px rgba(243, 156, 18, 0.2);
}

.calendar-day.has-event.past-date:hover {
    background: linear-gradient(135deg, rgba(214, 137, 16, 0.5) 0%, rgba(211, 84, 0, 0.5) 100%);
    opacity: 0.8;
}

.calendar-day.today.has-event.past-date {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.4) 0%, rgba(34, 153, 84, 0.4) 100%);
    border: 2px solid rgba(255, 255, 255, 0.4);
    opacity: 0.6;
}

.calendar-day.today.has-event.past-date::before {
    background: rgba(243, 156, 18, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.calendar-day.today.has-event.past-date:hover {
    background: linear-gradient(135deg, rgba(34, 153, 84, 0.5) 0%, rgba(30, 132, 73, 0.5) 100%);
    opacity: 0.8;
}

.calendar-day.selected-date.has-event.past-date {
    background: linear-gradient(135deg, rgba(142, 68, 173, 0.4) 0%, rgba(125, 60, 152, 0.4) 100%);
    border: 2px solid rgba(255, 255, 255, 0.4);
    opacity: 0.6;
}

.calendar-day.selected-date.has-event.past-date::before {
    background: rgba(243, 156, 18, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.calendar-day.selected-date.has-event.past-date:hover {
    background: linear-gradient(135deg, rgba(125, 60, 152, 0.5) 0%, rgba(108, 52, 131, 0.5) 100%);
    opacity: 0.8;
}

/* Calendar Legend Styles */
.calendar-legend {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: #f8faff;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem 1rem;
}

.calendar-legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.calendar-legend-item:last-child {
    margin-bottom: 0;
}

.calendar-legend-color {
    width: 14px;
    height: 14px;
    border-radius: 2px;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.calendar-legend-text {
    font-size: 0.8rem;
    color: #4a5568;
    font-weight: 500;
}

/* Legend color squares matching calendar styles */
.calendar-legend-color.today {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

.calendar-legend-color.has-event {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

.calendar-legend-color.today-has-event {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
}

.calendar-legend-color.selected-date {
    background: linear-gradient(135deg, #8e44ad 0%, #7d3c98 100%);
}

.calendar-legend-color.past-event {
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.4) 0%, rgba(230, 126, 34, 0.4) 100%);
    opacity: 0.6;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .calendar-legend {
        margin-top: 0.5rem;
        padding: 0.5rem;
        gap: 0.25rem 0.75rem;
    }
    
    .calendar-legend-item {
        gap: 0.4rem;
    }
    
    .calendar-legend-color {
        width: 12px;
        height: 12px;
    }
    
    .calendar-legend-text {
        font-size: 0.75rem;
    }
}



/* Footer */
.footer {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(15, 52, 96, 0.9) 50%, rgba(83, 52, 131, 0.95) 100%);
    backdrop-filter: blur(20px);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(0, 212, 255, 0.3);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00d4ff, #a855f7, #ff6b6b, transparent);
    animation: footerGlow 4s ease-in-out infinite;
}

@keyframes footerGlow {
    0%, 100% { left: -100%; }
    50% { left: 100%; }
}

.footer-links {
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
}

.timer-link,
.partner-link {
    display: inline-block;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.timer-link:hover,
.partner-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.grizzlyhub-tools {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.tools-group {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.grizzlyhub-attribution {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    font-weight: 500;
}

.grizzlyhub-logo {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    opacity: 0.8;
}

.footer p {
    margin: 0.5rem 0;
    opacity: 0.9;
}

.footer a:not(.timer-link):not(.partner-link) {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer a:not(.timer-link):not(.partner-link):hover {
    color: white;
    text-decoration: underline;
}

/* Footer Install Button */
.footer-install-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-decoration: none;
    margin-bottom: 1rem;
    /* Mobile touch improvements */
    min-height: 44px; /* Minimum touch target size */
    min-width: 44px;
    touch-action: manipulation; /* Prevent double-tap zoom */
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight */
    user-select: none; /* Prevent text selection */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    position: relative;
    z-index: 10; /* Ensure button is above other elements */
}

.footer-install-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.footer-install-btn:active {
    transform: translateY(0);
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

/* Mobile-specific active state */
@media (hover: none) and (pointer: coarse) {
    .footer-install-btn:active {
        transform: scale(0.95);
        background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    }
}

.footer-install-btn .install-icon {
    font-size: 1.1rem;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

.footer-install-btn .install-text {
    font-weight: 600;
}

/* Loading States */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    color: #667eea;
    font-weight: 500;
    animation: pulse 1.5s ease-in-out infinite;
    will-change: opacity;
}

.loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #667eea;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

/* Full-screen Loading Overlay - Beyblade X Theme */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 69, 0, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(30, 144, 255, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255, 215, 0, 0.2) 0%, transparent 50%),
        linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 25%, #16213e 50%, #0f3460 75%, #533483 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 1;
    transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
    overflow: hidden;
}

.loading-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 70%),
        repeating-conic-gradient(from 0deg at 50% 50%, transparent 0deg 15deg, rgba(255, 255, 255, 0.02) 15deg 30deg);
    animation: cosmicRotate 20s linear infinite;
}

.loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-content {
    text-align: center;
    color: white;
    max-width: 400px;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

/* Beyblade Arena */
.beyblade-container {
    position: relative;
    margin: 0 auto 2rem auto;
    width: 200px;
    height: 200px;
}

.beyblade-arena {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: 
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.3) 0%, transparent 30%),
        radial-gradient(circle at 70% 70%, rgba(30, 144, 255, 0.2) 0%, transparent 40%),
        linear-gradient(45deg, #2c3e50, #34495e, #2c3e50);
    box-shadow: 
        inset 0 0 50px rgba(0, 0, 0, 0.5),
        0 0 100px rgba(30, 144, 255, 0.3),
        0 0 50px rgba(255, 215, 0, 0.2);
    border: 3px solid #ecf0f1;
    animation: arenaGlow 2s ease-in-out infinite alternate;
}

.arena-ring {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border-radius: 50%;
    border: 2px solid rgba(52, 152, 219, 0.6);
    animation: ringPulse 1.5s ease-in-out infinite;
}

.arena-ring-inner {
    position: absolute;
    top: 30px;
    left: 30px;
    right: 30px;
    bottom: 30px;
    border-radius: 50%;
    border: 1px solid rgba(241, 196, 15, 0.8);
    animation: ringPulse 1.5s ease-in-out infinite reverse;
}

/* Beyblade Spinner */
.beyblade-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    animation: beybladeSpinFast 0.8s linear infinite;
}

.beyblade-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background: 
        radial-gradient(circle, #f39c12 0%, #e74c3c  50%, #8e44ad 100%);
    border-radius: 50%;
    box-shadow: 
        0 0 20px rgba(255, 215, 0, 0.8),
        inset 0 0 10px rgba(0, 0, 0, 0.3);
    border: 2px solid #ecf0f1;
}

.beyblade-bit {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    animation: bitFlash 0.5s ease-in-out infinite alternate;
}

.beyblade-blade {
    position: absolute;
    width: 60px;
    height: 8px;
    background: linear-gradient(90deg, transparent, #3498db, #ecf0f1, #3498db, transparent);
    border-radius: 4px;
    top: 50%;
    left: 50%;
    transform-origin: center;
    animation: bladeGlow 1s ease-in-out infinite alternate;
}

.blade-1 {
    transform: translate(-50%, -50%) rotate(0deg);
}

.blade-2 {
    transform: translate(-50%, -50%) rotate(120deg);
}

.blade-3 {
    transform: translate(-50%, -50%) rotate(240deg);
}

/* Sparks */
.spark {
    position: absolute;
    font-size: 20px;
    animation: sparkFly 2s ease-in-out infinite;
    opacity: 0;
}

.spark-1 {
    top: 10%;
    left: 20%;
    animation-delay: 0s;
}

.spark-2 {
    top: 20%;
    right: 15%;
    animation-delay: 0.5s;
}

.spark-3 {
    bottom: 15%;
    left: 15%;
    animation-delay: 1s;
}

.spark-4 {
    bottom: 20%;
    right: 20%;
    animation-delay: 1.5s;
}

/* Loading Text */
.loading-text {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.text-gradient {
    background: linear-gradient(45deg, #3498db, #f39c12, #e74c3c, #9b59b6);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s ease-in-out infinite;
}

.loading-dots {
    display: inline-block;
    margin-left: 0.5rem;
}

.loading-dots .dot {
    animation: dotBounce 1.4s ease-in-out infinite both;
}

.loading-dots .dot:nth-child(1) { animation-delay: -0.32s; }
.loading-dots .dot:nth-child(2) { animation-delay: -0.16s; }
.loading-dots .dot:nth-child(3) { animation-delay: 0s; }

.loading-subtext {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 500;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Progress Bar */
.loading-progress {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 1rem;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #f39c12, #e74c3c, #9b59b6);
    background-size: 200% 100%;
    animation: progressGlow 2s linear infinite;
    border-radius: 2px;
}

/* Animations */
@keyframes cosmicRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes arenaGlow {
    0% { box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.5), 0 0 100px rgba(30, 144, 255, 0.3), 0 0 50px rgba(255, 215, 0, 0.2); }
    100% { box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.3), 0 0 150px rgba(30, 144, 255, 0.6), 0 0 80px rgba(255, 215, 0, 0.4); }
}

@keyframes ringPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

@keyframes beybladeSpinFast {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes bitFlash {
    0% { opacity: 0.7; text-shadow: 0 0 5px #f39c12; }
    100% { opacity: 1; text-shadow: 0 0 15px #f39c12, 0 0 25px #e74c3c; }
}

@keyframes bladeGlow {
    0% { box-shadow: 0 0 10px rgba(52, 152, 219, 0.5); }
    100% { box-shadow: 0 0 25px rgba(52, 152, 219, 0.9), 0 0 35px rgba(255, 255, 255, 0.3); }
}

@keyframes sparkFly {
    0% { opacity: 0; transform: scale(0.5) rotate(0deg); }
    20% { opacity: 1; transform: scale(1) rotate(90deg); }
    80% { opacity: 1; transform: scale(1.2) rotate(270deg); }
    100% { opacity: 0; transform: scale(0.5) rotate(360deg); }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes dotBounce {
    0%, 80%, 100% { transform: scale(0); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

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

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes fieldShake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}





/* Refresh indicator styles */
.refresh-indicator {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(118, 75, 162, 0.2);
    border-radius: 20px;
    padding: 12px 20px;
    z-index: 9999;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: none;
    max-width: 90%;
    animation: slideInTop 0.3s ease-out;
}

@keyframes slideInTop {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.refresh-content {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #764ba2;
    font-weight: 500;
}

.refresh-content.success {
    color: #27ae60;
}

.refresh-content.error {
    color: #e74c3c;
}

.refresh-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(118, 75, 162, 0.2);
    border-top: 2px solid #764ba2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile responsiveness for refresh indicator */
@media (max-width: 768px) {
    
    /* Mobile refresh indicator styles */
    .refresh-indicator {
        top: 10px;
        padding: 10px 16px;
        border-radius: 16px;
        max-width: 85%;
    }
    
    .refresh-content {
        font-size: 13px;
        gap: 8px;
    }
    
    .refresh-spinner {
        width: 14px;
        height: 14px;
    }
}

/* Location Picker */
.location-picker {
    border: 2px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    background: white;
}

#pickerMap {
    height: 300px;
    width: 100%;
}

.location-info {
    padding: 1rem;
    background: #f8f9ff;
    border-top: 1px solid #e0e5ff;
}

.location-info p {
    margin: 0 0 0.5rem 0;
    color: #667eea;
    font-weight: 500;
}

.selected-location {
    background: white;
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid #667eea;
    margin-top: 0.5rem;
}

.selected-location strong {
    color: #764ba2;
    display: block;
    margin-bottom: 0.5rem;
}

#locationCoords {
    font-family: 'Courier New', monospace;
    color: #666;
    font-size: 0.9rem;
}

/* Place Search Dropdown Styles */
.search-dropdown {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 10px 10px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.search-item {
    padding: 0.75rem;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
    display: flex;
    flex-direction: column;
}

.search-item:hover {
    background: #f8f9fa;
}

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

.search-item-name {
    font-weight: 500;
    color: #333;
    margin-bottom: 0.25rem;
}

.search-item-address {
    font-size: 0.85rem;
    color: #666;
}

/* Map Marker Info Window Styles */
/* Google Maps InfoWindow overrides */
.gm-style .gm-style-iw-c {
    padding: 0 !important;
}

.gm-style .gm-style-iw-d {
    overflow: hidden !important;
}

/* Google Maps InfoWindow Close Button Styling - Multiple selectors for compatibility */
.gm-style .gm-style-iw-tc,
.gm-style .gm-style-iw-t::after,
.gm-style button[title="Close"],
.gm-style .gm-ui-hover-effect {
    width: 28px !important;
    height: 28px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(102, 126, 234, 0.3) !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    backdrop-filter: blur(10px) !important;
    right: 8px !important;
    top: 8px !important;
    position: absolute !important;
    z-index: 1000 !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    opacity: 1 !important;
    display: block !important;
}

.gm-style .gm-style-iw-tc:hover,
.gm-style .gm-style-iw-t::after:hover,
.gm-style button[title="Close"]:hover,
.gm-style .gm-ui-hover-effect:hover {
    background: rgba(255, 255, 255, 1) !important;
    transform: scale(1.1) !important;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3) !important;
    border-color: rgba(102, 126, 234, 0.5) !important;
}

/* Style the X icon inside the button */
.gm-style .gm-style-iw-tc img,
.gm-style button[title="Close"] img,
.gm-style .gm-ui-hover-effect img,
.gm-style .gm-ui-hover-effect span {
    filter: brightness(0) saturate(100%) invert(40%) sepia(96%) saturate(678%) hue-rotate(201deg) brightness(97%) contrast(95%) !important;
    width: 12px !important;
    height: 12px !important;
    background-color: #667eea !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
}

/* Modern Map Popup Design */
.map-popup-container {
    max-width: 280px; /* Increased from 240px to prevent text truncation */
    min-width: 240px; /* Increased from 200px */
    font-family: 'Kanit', sans-serif;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 255, 0.95) 100%);
    border-radius: 16px;
    padding: 0;
    margin: -8px -8px 0 -8px; /* Reduced negative margins to accommodate close button */
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 8px 16px rgba(102, 126, 234, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(102, 126, 234, 0.2);
    overflow: hidden;
    position: relative;
}

.map-popup-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00d4ff 0%, #667eea 50%, #ff6b6b 100%);
    background-size: 200% 100%;
    animation: popupShimmer 3s ease-in-out infinite;
}

@keyframes popupShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.map-popup-header {
    padding: 12px 16px 8px;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(0, 212, 255, 0.03) 100%);
}

.popup-venue {
    font-weight: 700;
    font-size: 1rem;
    color: #333;
    margin-bottom: 4px;
    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.popup-location {
    font-size: 0.75rem;
    color: #666;
    font-weight: 500;
    opacity: 0.8;
}

.popup-content {
    padding: 12px 16px;
}

.popup-event-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 6px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.popup-date {
    font-size: 0.8rem;
    color: #667eea;
    font-weight: 500;
}

.popup-actions {
    padding: 12px 16px 16px;
    display: flex;
    gap: 8px;
    border-top: 1px solid rgba(102, 126, 234, 0.1);
    background: linear-gradient(135deg, rgba(248, 250, 255, 0.8) 0%, rgba(255, 255, 255, 0.6) 100%);
}

.popup-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-height: 36px;
    text-align: center;
    line-height: 1.2;
}

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

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

.popup-btn.primary {
    background: linear-gradient(135deg, #00d4ff 0%, #667eea 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
    font-weight: 700;
}

.popup-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 212, 255, 0.4);
    background: linear-gradient(135deg, #00bfea 0%, #5a6fd8 100%);
}

.popup-btn.secondary {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 255, 0.8) 100%);
    color: #667eea;
    border: 1px solid rgba(102, 126, 234, 0.3);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.popup-btn.secondary:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(0, 212, 255, 0.05) 100%);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
    color: #5a6fd8;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .map-popup-container {
        max-width: 300px; /* Increased for mobile */
        min-width: 260px;
    }
    
    .popup-venue {
        font-size: 0.95rem;
    }
    
    .popup-event-title {
        font-size: 0.85rem;
    }
    
    .popup-btn {
        min-height: 40px;
        font-size: 0.8rem;
        padding: 10px 8px;
    }
    
    .popup-actions {
        gap: 6px;
    }
}

@media (max-width: 480px) {
    .map-popup-container {
        max-width: 280px; /* Increased for small screens */
        min-width: 240px;
    }
    
    .popup-btn {
        font-size: 0.75rem;
        min-height: 38px;
    }
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
    body {
        font-size: 16px; /* Prevent zoom on iOS */
    }

    .container {
        padding: 0; /* Remove all horizontal padding */
        max-width: 100%; /* Use full width */
    }

    .header {
        padding: 0.4rem 0; /* Much more compact */
    }

    .header .container {
        flex-direction: row; /* Keep horizontal layout on mobile */
        justify-content: space-between;
        align-items: center;
        gap: 0.3rem; /* Tighter gap */
        padding: 0.5rem 1rem; /* Minimal horizontal padding for header only */
    }

    .logo-link:hover {
        transform: scale(1.02); /* Smaller scale on mobile */
    }
    
    .logo {
        font-size: 1rem; /* More compact */
        text-align: left; /* Left align instead of center */
        margin: 0;
        gap: 0.3rem; /* Tighter gap between logo and text */
    }
    
    .logo-text-full {
        display: none;
    }
    
    .logo-text-mobile {
        display: inline;
    }
    
    .thailand-flag {
        width: 18px;
        height: 12px;
        margin-left: 3px;
    }
    
    .logo-subtitle {
        font-size: 0.55rem;
        letter-spacing: 0.8px;
        margin-top: -0.15rem;
        text-align: left;
    }

    .nav {
        display: flex; /* Use flex instead of grid */
        gap: 0.5rem;
        flex-shrink: 0; /* Prevent shrinking */
    }



    .nav-btn {
        padding: 0.4rem 0.6rem; /* Even more compact */
        font-size: 0.8rem; /* Smaller font */
        border-radius: 6px; /* Smaller border radius */
        white-space: nowrap; /* Prevent text wrapping */
    }
    


    .section {
        margin: 0; /* Remove all margins - full width */
        padding: 0.75rem; /* Keep internal padding for readability */
        border-radius: 0; /* Remove border radius for full edge coverage */
    }

    .section h2 {
        font-size: 1.25rem; /* Further reduced for mobile */
        margin-bottom: 0.5rem; /* Further reduced spacing */
        text-align: center;
    }

    .section h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    /* Enhanced Mobile Layout - Map removed */
    .enhanced-content-grid {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .calendar-filter-section {
        order: 1;
    }

    .events-section {
        order: 2;
        padding-top: 0.5rem;
        margin-top: -0.25rem;
    }

    .integrated-filters {
        order: 2;
        margin-bottom: 0.5rem;
    }

    .filter-grid {
        gap: 0.5rem;
    }

    .quick-filters {
        display: flex;
        justify-content: center;
        gap: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .filter-selects {
        gap: 0.4rem;
    }

    .filter-select {
        padding: 0.45rem 0.6rem;
        font-size: 0.85rem;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 0.5rem center;
        background-size: 12px;
        padding-right: 2rem;
    }

    .calendar-container,
    .integrated-filters,
    .events-section {
        padding: 0.75rem; /* Keep internal padding */
        border-radius: 0; /* Remove border radius for full edge coverage */
        margin: 0; /* Remove any margins */
    }

    .calendar-header {
        flex-direction: column;
        gap: 0.5rem;
        min-height: auto;
        align-items: flex-start;
    }

    .calendar-header h3,
    .filter-header h4,
    .events-header h3 {
        font-size: 1rem;
    }

    .events-count {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
        border-radius: 12px;
        align-self: flex-start;
        margin-top: 0;
        font-weight: 600;
    }

    #calendar {
        min-height: 200px;
        padding: 0.5rem;
    }

    /* Map mobile styles removed */

    .events-container {
        max-height: 800px;
        padding: 0; /* Remove padding to give more space for event cards */
    }
    
    .month-selector-header h3 {
        font-size: 1.1rem;
    }
    
    .month-selector-header p {
        font-size: 0.8rem;
    }
    
    .month-selector-container {
        gap: 1rem;
    }
    
    .quick-filters {
        flex-direction: row;
        gap: 0.5rem;
    }
    
    .quick-filter-btn {
        font-size: 0.7rem;
        padding: 0.35rem 0.6rem;
        min-width: 60px;
        height: 30px;
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.25);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.3);
        color: rgba(102, 126, 234, 0.9);
        font-family: 'Kanit', sans-serif;
        font-weight: 500;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        cursor: pointer;
        white-space: nowrap;
        -webkit-tap-highlight-color: transparent;
        position: relative;
        overflow: hidden;
        box-shadow: 
            0 2px 8px rgba(102, 126, 234, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.5);
    }
    
    .quick-filter-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
        transition: left 0.5s ease;
    }
    
    .quick-filter-btn:hover::before {
        left: 100%;
    }
    
    .quick-filter-btn.active {
        background: rgba(102, 126, 234, 0.3);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border: 1px solid rgba(102, 126, 234, 0.5);
        color: rgba(102, 126, 234, 1);
        font-weight: 600;
        box-shadow: 
            0 4px 15px rgba(102, 126, 234, 0.25),
            inset 0 1px 0 rgba(255, 255, 255, 0.6),
            0 0 20px rgba(102, 126, 234, 0.1);
        transform: translateY(-1px);
    }
    
    .quick-filter-btn:hover:not(.active) {
        background: rgba(255, 255, 255, 0.35);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-color: rgba(102, 126, 234, 0.4);
        transform: translateY(-2px);
        box-shadow: 
            0 4px 12px rgba(102, 126, 234, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.6);
    }
    
    .dropdown-label {
        padding: 0.8rem 1rem 0.4rem;
        font-size: 0.8rem;
    }
    
    .modern-select {
        padding: 0.8rem 2.5rem 0.8rem 1rem;
        font-size: 0.9rem;
    }
    
    .select-arrow {
        font-size: 1rem;
        right: 0.8rem;
    }
    




    /* Event Cards */
    .event-card {
        grid-template-columns: 1fr;
        gap: 0.6rem;
        padding: 1rem; /* Increased padding for better content visibility */
        margin-bottom: 0.6rem;
        border-radius: 0; /* Remove border radius for full edge coverage */
    }
    
    .event-title {
        font-size: 1rem;
        line-height: 1.8.15;
    }
    
    .event-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .event-date,
    .event-venue,
    .event-location {
        font-size: 0.9rem;
    }
    
    /* Mobile league ribbon adjustments */
    .league-ribbon {
        font-size: 0.65rem;
        padding: 0.15rem 0.4rem;
        margin-right: 0.4rem;
    }
    
    /* Mobile checkbox container adjustments for stacked checkboxes */
    .checkbox-container {
        padding-left: 2rem;
        font-size: 0.9rem;
        min-height: 40px;
    }
    
    .event-actions {
        display: flex;
        align-self: stretch;
        gap: 0.5rem;
        flex-wrap: nowrap; /* Force same row */
        margin-top: 0.5rem;
    }
    
    .event-link {
        flex: 1;
        justify-content: center;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        min-height: 44px; /* Touch target */
    }

    /* Forms */
    .event-form {
        padding: 0; /* Remove horizontal padding for full width */
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

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

    .form-group label {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }

    .form-group input,
    .form-group select {
        padding: 0.875rem;
        font-size: 16px; /* Prevent zoom on iOS */
        border-radius: 8px;
        min-height: 44px; /* Touch target */
    }

    .search-hint {
        font-size: 0.8rem;
        padding: 0.75rem;
    }

    .submit-btn {
        padding: 1rem;
        font-size: 1rem;
        margin-top: 0.5rem;
        min-height: 44px; /* Touch target */
    }

    /* Location Picker */
    #pickerMap {
        height: 200px;
    }

    .location-info {
        padding: 0.75rem;
    }

    .location-info p {
        font-size: 0.9rem;
    }

    /* Calendar Specific */
    .calendar-grid {
        gap: 2px;
    }

    .calendar-day-header {
        padding: 0.4rem 0.2rem;
        font-size: 0.8rem;
        min-height: 32px;
    }

    .calendar-day {
        min-height: 35px;
        font-size: 0.9rem;
        padding: 0.25rem;
    }

    /* Messages */
    .message {
        padding: 0.875rem;
        font-size: 0.9rem;
        margin-top: 0.75rem;
    }

    /* Loading States */
    .loading {
        height: 150px;
        font-size: 0.9rem;
    }

    /* Submit Event Banner Mobile */
    .submit-event-banner {
        margin-bottom: 0.75rem;
        padding: 0.875rem;
    }

    .banner-content {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .banner-icon {
        font-size: 1.5rem;
    }

    .banner-text h3 {
        font-size: 1rem;
        margin-bottom: 0.15rem;
    }

    .banner-text p {
        font-size: 0.8rem;
    }

    .banner-submit-btn {
        min-width: auto;
        width: 100%;
        padding: 0.65rem 1rem;
        font-size: 0.85rem;
    }

    /* Enhanced Submit Button Mobile */
    #submitEventBtn {
        gap: 0.15rem;
        padding: 0.4rem 0.75rem;
    }

    .nav-btn-subtext {
        font-size: 0.65em;
    }

    /* Footer */
    .footer {
        padding: 1.5rem 0;
        margin-top: 1.5rem;
    }

    .footer p {
        font-size: 0.85rem;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .tools-group {
        gap: 0.5rem;
    }
    
    .timer-link,
    .partner-link {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
    
    .grizzlyhub-attribution {
        font-size: 0.75rem;
    }
    
    .grizzlyhub-logo {
        width: 16px;
        height: 16px;
    }
    
    /* Footer Install Button Mobile */
    .footer-install-btn {
        font-size: 0.85rem;
        padding: 0.8rem 1.4rem; /* Increased padding for better touch target */
        margin-bottom: 0.75rem;
        min-height: 48px; /* Larger touch target on mobile */
        min-width: 48px;
        /* Ensure button is easily tappable */
        -webkit-tap-highlight-color: rgba(102, 126, 234, 0.3);
        /* Add visual feedback for touch */
        transition: all 0.2s ease;
    }
    
    .footer-install-btn .install-icon {
        font-size: 1rem;
    }
    
    /* Enhanced touch feedback for mobile */
    .footer-install-btn:active {
        transform: scale(0.95);
        background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
    }
}

/* Extra Small Devices */
@media (max-width: 480px) {
    .container {
        padding: 0; /* Remove all horizontal padding */
    }

    .header {
        padding: 0.5rem 0; /* Even more compact on very small screens */
    }

    .header .container {
        gap: 0.25rem; /* Tighter spacing */
        padding: 0.5rem 0.75rem; /* Minimal horizontal padding for header only */
    }

    .logo {
        font-size: 1rem; /* Smaller logo on tiny screens */
    }
    
    .logo-subtitle {
        font-size: 0.55rem;
        letter-spacing: 0.8px;
        margin-top: -0.15rem;
    }

    .nav-btn {
        padding: 0.4rem 0.6rem; /* More compact buttons */
        font-size: 0.8rem;
        border-radius: 4px;
    }

    .section {
        margin: 0; /* Remove all margins for full width */
        padding: 0.6rem; /* Keep internal padding for readability */
        border-radius: 0; /* Remove border radius for full edge coverage */
    }

    .section h2 {
        font-size: 1.2rem; /* Reduced from 1.3rem */
        margin-bottom: 0.75rem; /* Add compact bottom margin */
    }

    .event-card {
        padding: 1rem; /* Increased padding for better content visibility */
        border-radius: 0; /* Remove border radius for full edge coverage */
    }

    .event-title {
        font-size: 0.95rem;
    }

    .event-meta > div {
        font-size: 0.8rem;
    }

    .form-group input,
    .form-group select {
        padding: 0.75rem;
    }

    .submit-btn {
        padding: 0.875rem;
        font-size: 0.95rem;
    }

    #map,
    #pickerMap {
        height: 180px;
    }

    .calendar-day {
        min-height: 32px;
        font-size: 0.8rem;
        padding: 0.2rem;
    }

    .compact-filter-bar {
        padding: 0.4rem 0.5rem;
        margin-bottom: 0.5rem;
        gap: 0.3rem;
        border-radius: 10px;
    }
    
    .filter-controls {
        grid-template-columns: 1fr 1fr;
        gap: 0.3rem;
    }
    
    .quick-filters {
        margin-bottom: 0.15rem;
        gap: 0.25rem;
    }
    
    .calendar-map-container {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .mini-calendar #calendar {
        min-height: 160px;
    }
    
    .mini-map #map {
        height: 160px;
    }
    
    .events-container {
        max-height: 80vh;
        padding: 0; /* Remove padding to give more space for event cards */
    }
    
    /* Month Selector Mobile Optimizations */
    .month-selector {
        padding: 0.8rem;
        border-radius: 0; /* Remove border radius for full edge coverage */
        margin: 0; /* Remove margins for full width */
    }
    
    .month-selector-header h3 {
        font-size: 1rem;
    }
    
    .month-selector-header p {
        font-size: 0.75rem;
    }
    
    .quick-filters {
        flex-direction: row;
        gap: 0.25rem;
        justify-content: center;
    }
    
    .filter-controls {
        gap: 0.25rem;
    }
    
    .quick-filter-btn {
        font-size: 0.65rem;
        padding: 0.3rem 0.5rem;
        min-width: auto;
        height: 26px;
        border-radius: 18px;
    }
    
    .dropdown-label {
        padding: 0.6rem 0.8rem 0.3rem;
        font-size: 0.75rem;
    }
    
    .dropdown-label span:first-child {
        font-size: 1rem;
    }
    
    .modern-select {
        padding: 0.5rem 2rem 0.5rem 0.7rem;
        font-size: 0.8rem;
        height: 36px;
    }
    
    .compact-select {
        padding: 0.35rem 0.5rem;
        font-size: 0.75rem;
        height: 32px;
        border-radius: 6px;
        padding-right: 1.8rem;
        background-size: 10px;
        background-position: right 0.4rem center;
    }
    
    .select-arrow {
        font-size: 0.9rem;
        right: 0.6rem;
    }
    
    /* Keep buttons on same row even on very small screens */
    .event-actions {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 0.4rem;
    }
    
    .event-link {
        flex: none;
        min-width: auto;
        text-align: center;
    }
    
    .event-link.map-btn {
        flex: none;
        min-width: auto;
        font-size: 0.8rem;
        padding: 0.5rem;
    }
    
    .event-share-btn {
        flex: none;
        min-width: 32px;
        font-size: 0.8rem;
        padding: 0.4rem;
    }

    /* Better mobile calendar header */
    .calendar-header {
        padding-bottom: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .calendar-header h3 {
        font-size: 0.95rem;
        margin-bottom: 0.25rem;
    }

    .events-count {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
        border-radius: 10px;
        margin-top: 0;
        align-self: flex-start;
        font-weight: 600;
    }

}

/* Back to Top Button - Mobile Only */
.back-to-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.9) 0%, rgba(168, 85, 247, 0.9) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 20px rgba(0, 212, 255, 0.3),
        0 8px 32px rgba(0, 0, 0, 0.2);
    display: none; /* Hidden by default on desktop */
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
    -webkit-tap-highlight-color: transparent;
    font-family: 'Kanit', sans-serif;
}

.back-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.back-to-top-btn:hover {
    background: linear-gradient(135deg, rgba(0, 212, 255, 1) 0%, rgba(168, 85, 247, 1) 100%);
    box-shadow: 
        0 6px 25px rgba(0, 212, 255, 0.4),
        0 12px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px) scale(1.05);
    border-color: rgba(255, 255, 255, 0.5);
}

.back-to-top-btn:active {
    transform: translateY(0) scale(0.95);
    transition-duration: 0.1s;
}

.back-to-top-btn svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.back-to-top-btn:hover svg {
    transform: translateY(-1px);
}

/* Mobile-specific enhancements */
@media (max-width: 768px) {
    /* Back to Top Button - Show only on mobile */
    .back-to-top-btn {
        display: flex;
    }
    
    /* Smooth scrolling for mobile */
    html {
        scroll-behavior: smooth;
    }
    
    /* Improved scrolling areas */
    .events-list,
    .calendar-container {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Better tap targets */
    button, 
    .nav-btn, 
    .submit-btn, 
    .event-link,
    select,
    input[type="date"] {
        -webkit-tap-highlight-color: rgba(102, 126, 234, 0.3);
    }
    
    /* Prevent text selection on buttons */
    .nav-btn,
    .submit-btn,
    .event-link {
        -webkit-user-select: none;
        user-select: none;
        -webkit-touch-callout: none;
    }
    
    /* Better focus states for accessibility */
    input:focus,
    select:focus,
    button:focus {
        outline: 2px solid #667eea;
        outline-offset: 2px;
    }
    
    /* Prevent zoom on focus for iOS */
    input[type="text"],
    input[type="url"],
    input[type="date"],
    select {
        font-size: 16px !important;
    }
}

/* Performance optimizations */
.event-card {
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.event-link {
    will-change: transform;
    backface-visibility: hidden;
}

.calendar-day {
    will-change: transform;
    contain: layout style;
}

.event-marker {
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Optimize scroll performance */
.events-container {
    transform: translateZ(0);
    -webkit-overflow-scrolling: touch;
}

.map-container {
    transform: translateZ(0);
    contain: layout;
}

/* Map marker animation */
@keyframes markerPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(0, 212, 255, 0.6), 
                    0 0 20px rgba(0, 212, 255, 0.3);
    }
    50% { 
        transform: scale(1.1);
        box-shadow: 0 6px 20px rgba(0, 212, 255, 0.8), 
                    0 0 30px rgba(0, 212, 255, 0.5);
    }
}

/* Mobile performance optimizations to prevent flickering */
@media (max-width: 768px) {
    /* Disable heavy animations on mobile */
    body {
        animation: none !important;
        background: linear-gradient(45deg, #1a1a2e 0%, #16213e 50%, #533483 100%) !important;
        background-size: 100% 100% !important;
    }
    
    body::before {
        animation: none !important;
        opacity: 0.3 !important;
    }
    
    .logo {
        animation: none !important;
        background: linear-gradient(45deg, #00d4ff 0%, #ff6b6b 50%, #a855f7 100%) !important;
        background-clip: text !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
    }
    
    .nav-btn::before {
        animation: none !important;
        background: linear-gradient(135deg, #00d4ff 0%, #a855f7 100%) !important;
    }
    
    .section::before {
        animation: none !important;
        background: linear-gradient(45deg, #00d4ff, #a855f7, #ff6b6b) !important;
    }
    
    .section h2 {
        animation: none !important;
        background: linear-gradient(45deg, #667eea, #764ba2) !important;
        background-clip: text !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
    }
    
    .calendar-container::before,
    .events-list::before {
        animation: none !important;
        background: linear-gradient(45deg, #00d4ff, #a855f7) !important;
    }
    
    .submit-btn::before {
        animation: none !important;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    }
    
    .footer::before {
        animation: none !important;
        background: linear-gradient(45deg, #667eea, #764ba2) !important;
    }
    
    /* Reduce backdrop-filter usage */
    .header,
    .section,
    .calendar-container,
    .events-list,
    .footer,
    .timer-link,
    .partner-link {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    
    /* Disable expensive transforms and will-change */
    .event-card,
    .event-link,
    .calendar-day,
    .event-marker,
    .events-container,
    .map-container {
        will-change: auto !important;
        transform: none !important;
    }
    
    /* Simplify hover effects */
    .event-card:hover {
        transform: none !important;
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2) !important;
    }
    
    .nav-btn:hover {
        transform: none !important;
    }
    
    .calendar-day:hover {
        transform: none !important;
    }
    
    .event-link:hover {
        transform: none !important;
    }
    
    .submit-btn:hover {
        transform: none !important;
    }
    
    .timer-link:hover,
    .partner-link:hover {
        transform: none !important;
    }
    
    /* Reduce animation complexity */
    @keyframes markerPulse {
        0%, 100% { transform: scale(1); opacity: 0.8; }
        50% { transform: scale(1.05); opacity: 1; }
    }
    
    /* Force hardware acceleration for specific elements only */
    .nav-btn,
    .submit-btn {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
    
    /* Touch feedback class for mobile */
    .touch-active {
        transform: scale(0.98) !important;
        opacity: 0.8 !important;
        transition: transform 0.1s ease, opacity 0.1s ease !important;
    }
    
    /* Form interaction classes for mobile */
    .input-focused {
        border-color: #667eea !important;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
    }
    
    .select-touched {
        background-color: #f8f9ff !important;
    }
}

/* Events sections styling */
.events-section {
    margin-bottom: 2rem;
}

.events-section:last-child {
    margin-bottom: 0;
}

/* Teams Section Styling */
.teams-section-container {
    margin-top: 2rem;
    padding: 1rem 0;
    position: relative;
    overflow: hidden;
}

/* Background shimmer removed for better performance */

.teams-section-header {
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
}

.teams-section-header h2 {
    font-size: 1.7rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 0.25rem;
}

.teams-subtitle {
    color: #666666;
    font-size: 0.9rem;
    margin: 0;
}

.teams-contact-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(255, 107, 107, 0.1) 100%);
    border: 1px solid transparent;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.teams-contact-message:hover::before {
    left: 100%;
}

.teams-contact-message:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.3);
}

.contact-icon {
    font-size: 1rem;
}

.contact-text {
    font-size: 0.8rem;
    font-weight: 500;
    color: #667eea;
    text-shadow: 0 0 10px rgba(102, 126, 234, 0.3);
}

/* contactMessageGlow animation removed */


/* Teams Grid Container - Compact Layout */
.teams-carousel-container {
    margin-top: 1rem;
    position: relative;
}

.teams-compact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 70px);
    gap: 1rem;
    max-width: 100%;
    justify-content: center;
    justify-items: center;
    padding: 0.5rem;
}

/* Loading state removed as requested */

.team-logo-placeholder {
    transition: all 0.3s ease;
}

.team-logo-placeholder:hover {
    background: #e0e0e0;
    transform: scale(1.05);
}

.team-item {
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-logo-link {
    display: block;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    border: none;
    background: none;
    padding: 0;
}

/* Animation delay removed */

/* Animation delay removed */

/* logoFloat and logoPulse animations removed */

/* Border spin animation removed */

.team-logo-link:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.team-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    background: #ffffff;
    transition: all 0.3s ease;
}

.team-logo-link:hover .team-logo {
    transform: scale(1.1);
    filter: brightness(1.1) contrast(1.1);
}

/* Team names removed - logos only */

/* Mobile Responsive */
@media (max-width: 768px) {
    .teams-section-container {
        margin-top: 1.5rem;
        padding: 0.75rem 0;
    }
    
    .teams-section-header h2 {
        font-size: 1.2rem;
    }
    
    .teams-subtitle {
        font-size: 0.85rem;
    }
    
    .teams-contact-message {
        margin-top: 0.3rem;
        padding: 0.3rem 0.5rem;
        flex-direction: row;
        gap: 0.2rem;
    }
    
    .contact-icon {
        font-size: 0.8rem;
    }
    
    .contact-text {
        font-size: 0.7rem;
        text-align: center;
    }
    
    .team-logo-link {
        width: 50px;
        height: 50px;
    }
    
    /* Team names removed */
    
    .teams-compact-grid {
        grid-template-columns: repeat(auto-fill, 60px);
        gap: 0.8rem;
        padding: 0.3rem;
        justify-content: center;
    }
    
    /* Remove background shimmer on mobile */
    .teams-section-container::before {
        display: none;
    }
    
    .teams-section-header h2 {
        background: #667eea;
        -webkit-text-fill-color: #667eea;
        color: #667eea;
    }
}

@media (max-width: 480px) {
    .team-logo-link {
        width: 45px;
        height: 45px;
    }
    
    /* Team names removed */
    
    .teams-compact-grid {
        grid-template-columns: repeat(auto-fill, 50px);
        gap: 0.6rem;
        padding: 0.2rem;
        justify-content: center;
    }
    
    .teams-contact-message {
        padding: 0.25rem 0.4rem;
        margin-top: 0.25rem;
        gap: 0.15rem;
    }
    
    .contact-icon {
        font-size: 0.7rem;
    }
    
    .contact-text {
        font-size: 0.65rem;
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .team-logo-link:hover {
        transform: scale(1.1);
    }
}

.section-header {
    font-size: 1.2rem;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
    position: relative;
}

.section-header::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(45deg, #667eea, #764ba2);
}



.upcoming-events .section-header {
    color: #2d5a27;
    border-bottom-color: #68d391;
}

.upcoming-events .section-header::before {
    background: linear-gradient(45deg, #48bb78, #68d391);
}

.past-events .section-header {
    color: #744210;
    border-bottom-color: #f6ad55;
}

.past-events .section-header::before {
    background: linear-gradient(45deg, #ed8936, #f6ad55);
}

.past-events-container {
    position: relative;
}

.load-more-hint {
    text-align: center;
    padding: 1rem;
    color: #718096;
    font-style: italic;
    font-size: 0.9rem;
    background: linear-gradient(135deg, rgba(113, 128, 150, 0.05) 0%, rgba(113, 128, 150, 0.1) 100%);
    border-radius: 10px;
    margin-top: 1rem;
}

/* Past events styling adjustments */
.past-events .event-card {
    opacity: 0.75;
}

.past-events .event-card:hover {
    opacity: 0.9;
}

/* PWA Install Popup */
.install-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.install-popup.show {
    display: flex;
    opacity: 1;
}

.install-popup-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 16px;
    padding: 1.5rem;
    max-width: 360px;
    width: 90%;
    margin: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(102, 126, 234, 0.2);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.install-popup.show .install-popup-content {
    transform: scale(1) translateY(0);
}

.install-popup-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2, #00d4ff);
    animation: shimmer 2s infinite;
}

.install-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.install-popup-icon {
    font-size: 2rem;
    filter: drop-shadow(0 0 10px rgba(102, 126, 234, 0.5));
}

.install-popup-close {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.install-popup-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.install-popup-title {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    background: linear-gradient(135deg, #667eea, #764ba2);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.install-popup-text {
    color: #cbd5e0;
    margin: 0 0 1rem 0;
    line-height: 1.5;
    font-size: 0.9rem;
}

.install-popup-features {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.install-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    padding: 0.75rem 0.5rem;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.feature-icon {
    font-size: 1.3rem;
    margin-bottom: 0.4rem;
    filter: drop-shadow(0 0 8px rgba(102, 126, 234, 0.4));
}

.install-feature span:last-child {
    color: #e2e8f0;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
}

.install-popup-actions {
    display: flex;
    gap: 0.75rem;
}

.install-btn-primary {
    flex: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.8rem 1.2rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

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

.install-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.install-btn-secondary {
    flex: 1;
    background: transparent;
    color: #9ca3af;
    border: 1px solid rgba(156, 163, 175, 0.3);
    padding: 0.8rem 1.2rem;
    border-radius: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.install-btn-secondary:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .install-popup-content {
        padding: 1.2rem;
        margin: 0.5rem;
    }
    
    .install-popup-title {
        font-size: 1.2rem;
    }
    
    .install-popup-features {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .install-feature {
        flex-direction: row;
        text-align: left;
        padding: 0.6rem;
    }
    
    .feature-icon {
        margin-right: 0.6rem;
        margin-bottom: 0;
        font-size: 1.1rem;
    }
    
    .install-popup-actions {
        flex-direction: column;
    }
    
    .install-btn-primary,
    .install-btn-secondary {
        padding: 0.9rem 1.2rem;
    }
    
    .section-header {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .events-section {
        margin-bottom: 1.5rem;
    }
    
    .load-more-hint {
        font-size: 0.85rem;
        padding: 0.8rem;
    }
    
    
}

/* Wizard Header */
.wizard-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.header-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.header-main h2 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.instant-publish-badge {
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    box-shadow: 0 2px 4px rgba(72, 187, 120, 0.3);
}

.wizard-subtitle {
    color: #718096;
    font-size: 1rem;
    margin: 0 0 1rem 0;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    .header-main {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .header-main h2 {
        font-size: 1.5rem;
    }
    
    .instant-publish-badge {
        font-size: 0.75rem;
        padding: 0.2rem 0.6rem;
    }
    
    .wizard-subtitle {
        font-size: 0.9rem;
    }
}

/* Progress Indicator - Compact Version */
.progress-container {
    margin-bottom: 1rem;
}

.progress-bar {
    width: 100%;
    height: 3px;
    background: #e2e8f0;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
    width: 33.33%;
    transition: width 0.5s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.3) 50%, transparent 70%);
    animation: progressShimmer 2s infinite;
}

@keyframes progressShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}



/* Single Page Form */
.single-page-form {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.form-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #667eea;
}

.form-section:last-child {
    margin-bottom: 0;
}

.section-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    background: linear-gradient(45deg, #FF6B35 0%, #FFD700 25%, #667eea 75%, #764ba2 100%);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: stepTitleShimmer 3s ease-in-out infinite;
    margin-bottom: 0.5rem;
    position: relative;
    text-align: center;
    display: inline-block;
    width: 100%;
}

.section-description {
    color: #64748b;
    font-size: 1rem;
    margin: 0;
    text-align: center;
    line-height: 1.5;
}

.form-content {
    margin-top: 2rem;
}

.form-actions {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e2e8f0;
}

.submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem 3rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.summary-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-left-color: #22c55e;
}

/* Mobile responsiveness for single-page form */
@media (max-width: 768px) {
    .form-section {
        margin-bottom: 2rem;
        padding: 1.5rem;
        border-radius: 8px;
    }
    
    .section-header h3 {
        font-size: 1.3rem;
    }
    
    .section-description {
        font-size: 0.9rem;
    }
    
    .submit-btn {
        padding: 0.875rem 2.5rem;
        font-size: 1rem;
    }
    
    /* Mobile checkbox improvements */
    .checkbox-container {
        padding-left: 2.5rem;
        font-size: 1rem;
        min-height: 44px; /* iOS touch target minimum */
        align-items: center;
        display: flex !important; /* Force flex layout */
        flex-wrap: nowrap !important; /* Prevent wrapping */
        white-space: nowrap; /* Prevent text wrapping */
    }
    
    .checkmark {
        height: 1.5rem;
        width: 1.5rem;
        border-width: 2px;
        flex-shrink: 0; /* Prevent checkbox from shrinking */
    }
    
    .checkbox-label {
        margin-left: 0.75rem;
        line-height: 1.3;
        font-size: 1rem;
        flex-shrink: 0; /* Prevent label from shrinking */
        white-space: nowrap; /* Prevent text wrapping */
    }
    
    .checkmark:after {
        left: 5px;
        top: 2px;
        width: 5px;
        height: 9px;
        border-width: 0 2px 2px 0;
    }
}

@media (max-width: 480px) {
    /* Extra mobile improvements for very small screens */
    .checkbox-container {
        padding-left: 2.25rem;
        font-size: 0.95rem;
        min-height: 48px; /* Larger touch target for small screens */
        display: flex !important; /* Force flex layout */
        flex-wrap: nowrap !important; /* Prevent wrapping */
        white-space: nowrap; /* Prevent text wrapping */
    }
    
    .checkmark {
        height: 1.4rem;
        width: 1.4rem;
        flex-shrink: 0; /* Prevent checkbox from shrinking */
    }
    
    .checkbox-label {
        margin-left: 0.5rem;
        font-size: 0.95rem;
        line-height: 1.4;
        flex-shrink: 0; /* Prevent label from shrinking */
        white-space: nowrap; /* Prevent text wrapping */
    }
}

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

.section-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
    position: relative;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(45deg, #FF6B35, #FFD700, #667eea, #764ba2);
    background-size: 300% 100%;
    border-radius: 2px;
    animation: stepHeaderShimmer 2s ease-in-out infinite;
}

.step-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    background: linear-gradient(45deg, #FF6B35 0%, #FFD700 25%, #667eea 75%, #764ba2 100%);
    background-size: 200% 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    animation: titleColorShift 3s ease-in-out infinite;
    position: relative;
}

.step-header h3::before {
    content: '⚡';
    position: absolute;
    left: -30px;
    top: 50%;
    transform: translateY(-50%);
    color: #FFD700;
    font-size: 1.2rem;
    animation: stepIconSpark 1.5s ease-in-out infinite;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.step-header h3::after {
    content: '⚡';
    position: absolute;
    right: -30px;
    top: 50%;
    transform: translateY(-50%);
    color: #FF6B35;
    font-size: 1.2rem;
    animation: stepIconSpark 1.5s ease-in-out infinite reverse;
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
}

@keyframes stepHeaderShimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes titleColorShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes stepIconSpark {
    0%, 100% { 
        opacity: 0.6;
        transform: translateY(-50%) scale(1);
    }
    50% { 
        opacity: 1;
        transform: translateY(-50%) scale(1.2);
    }
}

.step-description {
    color: #718096;
    font-size: 1rem;
    margin: 0;
}

.wizard-content {
    margin-bottom: 2rem;
}

/* Field Help Text */
.field-help {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #667eea;
}

/* Field Validation */
.field-error {
    border-color: #e53e3e !important;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1) !important;
}

.field-success {
    border-color: #48bb78 !important;
    box-shadow: 0 0 0 3px rgba(72, 187, 120, 0.1) !important;
}

/* Wizard Actions */
.wizard-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.wizard-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-family: 'Kanit', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

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

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

.wizard-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.wizard-btn:active {
    transform: translateY(0);
}

.prev-btn {
    background: linear-gradient(135deg, #718096 0%, #a0aec0 100%);
    box-shadow: 0 4px 15px rgba(113, 128, 150, 0.3);
}

.prev-btn:hover {
    box-shadow: 0 8px 25px rgba(113, 128, 150, 0.4);
}

/* Epic Beyblade X Submit Button */
.submit-btn {
    background: linear-gradient(135deg, #FF6B35 0%, #FFD700 25%, #667eea 75%, #764ba2 100%);
    background-size: 300% 300%;
    color: white;
    border: 3px solid transparent;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-family: 'Kanit', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    transition: all 0.4s ease;
    animation: beybladeButtonCharge 3s ease-in-out infinite;
    box-shadow: 
        0 8px 25px rgba(255, 107, 53, 0.4),
        0 0 30px rgba(255, 215, 0, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.2);
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        #FF6B35 0%, #FFD700 25%, 
        #667eea 50%, #764ba2 75%, 
        #FF6B35 100%);
    background-size: 400% 400%;
    border-radius: 50px;
    z-index: -1;
    animation: beybladeAura 2s linear infinite;
}

.submit-btn::after {
    content: '⚡';
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    font-size: 1.3rem;
    opacity: 0.8;
    animation: sparkPulse 1s ease-in-out infinite alternate;
}

.submit-btn:hover {
    transform: translateY(-4px) scale(1.05);
    background-size: 100% 100%;
    animation: beybladeButtonLaunch 0.6s ease-in-out infinite;
    box-shadow: 
        0 15px 40px rgba(255, 107, 53, 0.6),
        0 0 60px rgba(255, 215, 0, 0.5),
        0 0 80px rgba(102, 126, 234, 0.4),
        inset 0 3px 6px rgba(255, 255, 255, 0.3);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.submit-btn:active {
    transform: translateY(-2px) scale(1.02);
    animation: beybladeButtonImpact 0.2s ease-out;
}

/* Beyblade Button Animations */
@keyframes beybladeButtonCharge {
    0% { 
        background-position: 0% 50%;
        box-shadow: 
            0 8px 25px rgba(255, 107, 53, 0.4),
            0 0 30px rgba(255, 215, 0, 0.3),
            inset 0 2px 4px rgba(255, 255, 255, 0.2);
    }
    50% { 
        background-position: 100% 50%;
        box-shadow: 
            0 8px 25px rgba(102, 126, 234, 0.5),
            0 0 40px rgba(118, 75, 162, 0.4),
            inset 0 2px 4px rgba(255, 255, 255, 0.3);
    }
    100% { 
        background-position: 0% 50%;
        box-shadow: 
            0 8px 25px rgba(255, 107, 53, 0.4),
            0 0 30px rgba(255, 215, 0, 0.3),
            inset 0 2px 4px rgba(255, 255, 255, 0.2);
    }
}

@keyframes beybladeAura {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes beybladeButtonLaunch {
    0%, 100% { 
        transform: translateY(-4px) scale(1.05);
    }
    50% { 
        transform: translateY(-6px) scale(1.08) rotate(1deg);
    }
}

@keyframes beybladeButtonImpact {
    0% { transform: translateY(-2px) scale(1.02); }
    50% { transform: translateY(-1px) scale(1.1) rotate(2deg); }
    100% { transform: translateY(-2px) scale(1.02); }
}

@keyframes sparkPulse {
    0% { 
        opacity: 0.6;
        text-shadow: 0 0 5px #FFD700;
        transform: translateY(-50%) scale(1);
    }
    100% { 
        opacity: 1;
        text-shadow: 0 0 15px #FFD700, 0 0 25px #FF6B35;
        transform: translateY(-50%) scale(1.2);
    }
}

/* Submission Summary */
.submission-summary {
    background: linear-gradient(135deg, rgba(72, 187, 120, 0.1) 0%, rgba(104, 211, 145, 0.1) 100%);
    border: 1px solid rgba(72, 187, 120, 0.3);
    border-radius: 15px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.submission-summary h4 {
    color: #2d5a27;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.summary-content {
    display: grid;
    gap: 0.75rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(72, 187, 120, 0.2);
}

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

.summary-item strong {
    color: #2d5a27;
    font-weight: 600;
}

.summary-item span {
    color: #4a5568;
    font-weight: 500;
}

/* Success Animation */
.success-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(72, 187, 120, 0.95) 0%, rgba(104, 211, 145, 0.95) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    animation: successFadeIn 0.5s ease;
}

@keyframes successFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(10px);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.3);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05);
    }
    70% {
        transform: translate(-50%, -50%) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Stunning Success Message Styles */
.stunning-success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.95) 0%, 
        rgba(72, 187, 120, 0.95) 50%, 
        rgba(255, 215, 0, 0.95) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    animation: overlaySlideIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(20px);
}

.stunning-success-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 25px;
    padding: 3rem 2.5rem;
    text-align: center;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.25),
        0 0 60px rgba(102, 126, 234, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    animation: cardPopIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
    position: relative;
    overflow: visible;
    max-width: 400px;
    min-width: 320px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.success-ring {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: ringPulse 2s infinite;
    box-shadow: 
        0 0 30px rgba(72, 187, 120, 0.5),
        inset 0 2px 10px rgba(255, 255, 255, 0.3);
}

.success-ring-inner {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    animation: innerRingRotate 3s linear infinite;
}

.success-checkmark {
    font-size: 3rem;
    color: white;
    font-weight: bold;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: checkmarkBounce 1s ease 0.5s both;
    z-index: 2;
    position: relative;
}

.success-beyblade-icon {
    margin: 1rem auto;
    animation: beybladeSpinSuccess 3s linear infinite;
    filter: drop-shadow(0 4px 12px rgba(102, 126, 234, 0.4));
}

.success-content {
    margin: 1.5rem 0;
}

.success-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #ff6b35 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 1rem 0;
    animation: titleShimmer 2s ease-in-out infinite;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.success-message {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 0.5rem 0;
    animation: messageSlideUp 0.6s ease 0.4s both;
}

.success-submessage {
    font-size: 1.1rem;
    color: #718096;
    margin: 0 0 1.5rem 0;
    animation: messageSlideUp 0.6s ease 0.6s both;
}

.success-celebration {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.celebration-emoji {
    font-size: 2rem;
    animation: emojiFloat 2s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.celebration-emoji:nth-child(1) { animation-delay: 0s; }
.celebration-emoji:nth-child(2) { animation-delay: 0.3s; }
.celebration-emoji:nth-child(3) { animation-delay: 0.6s; }

.success-timer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(102, 126, 234, 0.2);
    border-radius: 0 0 25px 25px;
    overflow: hidden;
}

.timer-progress {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #ff6b35 100%);
    animation: timerProgress 3s linear;
    border-radius: 0 0 25px 25px;
}

/* Floating Particles */
.particle {
    position: absolute;
    font-size: 1.5rem;
    animation: particleFloat 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

.particle-1 { top: 20%; left: 15%; animation-delay: 0s; }
.particle-2 { top: 30%; right: 20%; animation-delay: 0.5s; }
.particle-3 { bottom: 25%; left: 10%; animation-delay: 1s; }
.particle-4 { bottom: 35%; right: 15%; animation-delay: 1.5s; }
.particle-5 { top: 60%; left: 25%; animation-delay: 2s; }
.particle-6 { top: 70%; right: 30%; animation-delay: 2.5s; }

/* Animations */
@keyframes overlaySlideIn {
    from {
        opacity: 0;
        transform: scale(1.1);
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        transform: scale(1);
        backdrop-filter: blur(20px);
    }
}

@keyframes cardPopIn {
    from {
        opacity: 0;
        transform: scale(0.3) rotate(-10deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes ringPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 30px rgba(72, 187, 120, 0.5);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 40px rgba(72, 187, 120, 0.8);
    }
}

@keyframes innerRingRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes checkmarkBounce {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes beybladeSpinSuccess {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes titleShimmer {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

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

@keyframes emojiFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-10px) rotate(5deg);
    }
    66% {
        transform: translateY(5px) rotate(-3deg);
    }
}

@keyframes timerProgress {
    from { width: 100%; }
    to { width: 0%; }
}

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.7;
    }
    25% {
        transform: translateY(-20px) rotate(90deg);
        opacity: 1;
    }
    50% {
        transform: translateY(-10px) rotate(180deg);
        opacity: 0.8;
    }
    75% {
        transform: translateY(-30px) rotate(270deg);
        opacity: 0.9;
    }
}

@keyframes successFadeOut {
    to {
        opacity: 0;
        transform: scale(0.9);
        backdrop-filter: blur(0px);
    }
}

/* Mobile Responsive for Stunning Success */
@media (max-width: 768px) {
    .stunning-success-card {
        margin: 1rem;
        padding: 2rem 1.5rem;
        min-width: auto;
        max-width: 90%;
    }
    
    .success-ring {
        width: 80px;
        height: 80px;
        margin-bottom: 1.5rem;
    }
    
    .success-ring-inner {
        width: 64px;
        height: 64px;
    }
    
    .success-checkmark {
        font-size: 2.5rem;
    }
    
    .success-beyblade-icon svg {
        width: 50px;
        height: 50px;
    }
    
    .success-title {
        font-size: 2rem;
    }
    
    .success-message {
        font-size: 1.2rem;
    }
    
    .success-submessage {
        font-size: 1rem;
    }
    
    .celebration-emoji {
        font-size: 1.5rem;
    }
    
    .particle {
        font-size: 1.2rem;
    }
}

.success-content {
    text-align: center;
    background: white;
    padding: 3rem;
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: successBounce 0.6s ease 0.2s both;
    max-width: 400px;
    margin: 0 1rem;
}

@keyframes successBounce {
    from {
        opacity: 0;
        transform: scale(0.5) translateY(-50px);
    }
    60% {
        transform: scale(1.1) translateY(0);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.beyblade-spinner {
    font-size: 4rem;
    animation: beybladeSpin 1.5s linear infinite;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 8px rgba(102, 126, 234, 0.3));
}

.beyblade-spinner svg {
    animation: beybladeSpin 2s linear infinite;
}

.beyblade-spinner .spinner-rotating-elements {
    animation: beybladeSpinnerElements 1s linear infinite reverse;
    transform-origin: 16px 16px;
}

/* Stunning Text Logo Design */
.logo-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.5rem;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    backdrop-filter: blur(15px);
    border: 2px solid rgba(102, 126, 234, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.logo-text-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    position: relative;
}

.logo-text {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0;
    line-height: 1;
    letter-spacing: -0.02em;
    text-shadow: none;
}

.logo-highlight {
    color: #000000;
    background: none;
    background-clip: unset;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: #000000;
    animation: none;
}

.logo-normal {
    color: #000000;
    text-shadow: none;
}

.logo-subtitle {
    font-size: 0.7rem;
    font-weight: 500;
    color: #666666;
    margin-top: 0.2rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

@keyframes logoGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.logo-glow {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        transparent,
        rgba(102, 126, 234, 0.4),
        rgba(255, 107, 53, 0.4),
        rgba(118, 75, 162, 0.4),
        transparent
    );
    animation: logoRotate 3s linear infinite;
    opacity: 0;
    transition: opacity 0.4s ease;
}

@keyframes logoRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


.logo-text-mobile {
    display: none;
}

.logo-text-full {
    display: inline;
}

/* Mobile first approach for logo text */
@media (max-width: 920px) {
    .logo-text-full {
        display: none;
    }
    
    .logo-text-mobile {
        display: inline;
    }
    
    .logo-subtitle {
        display: none;
    }
}

.logo-svg .logo-spinning-elements {
    animation: logoSpinnerElements 2s linear infinite reverse;
    transform-origin: 16px 16px;
}

/* Stunning Logo Hover Effects */
.logo-link:hover .logo-container {
    transform: translateY(-3px) scale(1.02);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 
        0 15px 40px rgba(102, 126, 234, 0.4),
        0 0 0 1px rgba(102, 126, 234, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.logo-link:hover .logo-highlight {
    animation-duration: 1.5s;
}

.logo-link:hover .logo-normal {
    color: #FF6B35;
    text-shadow: 0 0 25px rgba(255, 107, 53, 0.6);
}

.logo-link:hover .logo-glow {
    opacity: 1;
}

.logo-link:hover .logo-subtitle {
    color: rgba(255, 107, 53, 0.9);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .logo-container {
        padding: 0.8rem 1.2rem;
        border-radius: 15px;
    }
    
    .logo-text {
        font-size: 1.8rem;
    }
    
    .logo-subtitle {
        font-size: 0.6rem;
    }
}

/* Section icon spinning */
.section-icon {
    display: inline-block;
    margin-right: 0.5rem;
    vertical-align: middle;
    animation: sectionIconFloat 3s ease-in-out infinite;
}

.section-icon .section-spinning-elements {
    animation: sectionSpinnerElements 4s linear infinite;
    transform-origin: 16px 16px;
}

/* Map marker spinning */
.marker-spinning-elements {
    animation: markerSpinnerElements 3s linear infinite;
    transform-origin: 16px 16px;
}

@keyframes beybladeSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes beybladeSpinnerElements {
    from { transform: rotate(45deg); }
    to { transform: rotate(405deg); }
}

@keyframes logoSpin {
    0% { transform: rotate(0deg); }
    50% { transform: rotate(180deg) scale(1.1); }
    100% { transform: rotate(360deg); }
}

@keyframes logoSpinnerElements {
    from { transform: rotate(45deg); }
    to { transform: rotate(405deg); }
}

@keyframes sectionIconFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-3px) rotate(180deg); }
}

@keyframes sectionSpinnerElements {
    from { transform: rotate(45deg); }
    to { transform: rotate(405deg); }
}

@keyframes markerSpinnerElements {
    from { transform: rotate(45deg); }
    to { transform: rotate(405deg); }
}

.success-content h3 {
    color: #2d5a27;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.success-content p {
    color: #4a5568;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.celebration-text {
    color: #667eea;
    font-weight: 600;
    font-size: 0.9rem;
    animation: pulse 2s infinite;
}

/* Wizard Mobile Styles */
.wizard-header {
    margin-bottom: 1.5rem;
}

.wizard-subtitle {
    font-size: 1rem;
}



.step-header h3 {
    font-size: 1.2rem;
}

.step-description {
    font-size: 0.9rem;
}

.wizard-actions {
    flex-direction: column;
    gap: 1rem;
}

.wizard-btn {
    width: 100%;
    justify-content: center;
    padding: 1rem 2rem;
}

.submission-summary {
    padding: 1rem;
}

.summary-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
}

.success-content {
    padding: 2rem 1.5rem;
    margin: 0 0.5rem;
}

.success-content h3 {
    font-size: 1.5rem;
}

.success-content p {
    font-size: 1rem;
}

.beyblade-spinner {
    font-size: 3rem;
}

.beyblade-spinner svg {
    width: 48px;
    height: 48px;
}

/* Purpose Explanation Styles - Apple-inspired Design */

/* Force emoji original colors */
.purpose-explanation * {
    font-variant-emoji: emoji !important;
}

.purpose-explanation span:not(.highlight-text):not(.purpose-description) {
    font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', 'Segoe UI Symbol', emoji, sans-serif !important;
    color: revert !important;
    -webkit-text-fill-color: revert !important;
    filter: none !important;
    background: none !important;
}

.purpose-explanation {
    margin: 3rem 0;
    padding: 0;
    background: transparent;
}

.purpose-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

.purpose-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin: 0 0 1.5rem 0;
    color: #1d1d1f;
    letter-spacing: -0.02em;
    line-height: 1.1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.purpose-icon {
    font-size: 2.5rem;
    font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', 'Segoe UI Symbol', emoji, sans-serif !important;
    color: revert !important;
    text-shadow: none !important;
    filter: none !important;
    -webkit-text-fill-color: revert !important;
    background: none !important;
    font-variant-emoji: emoji !important;
    font-feature-settings: "kern" off !important;
}

.purpose-description {
    font-size: 1.3rem;
    line-height: 1.5;
    margin: 0 0 1.5rem 0;
    color: #424245;
    font-weight: 400;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.organizer-message {
    font-size: 1.1rem;
    line-height: 1.5;
    margin: 0 0 2rem 0;
    color: #6b7280;
    font-weight: 400;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-style: italic;
}

.organizer-message strong {
    color: #1d1d1f;
    font-weight: 600;
    font-style: normal;
}

.submit-event-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.25rem 2.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 4px 25px rgba(102, 126, 234, 0.6), 0 0 25px rgba(102, 126, 234, 0.3);
        transform: scale(1.01);
    }
}

.submit-event-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    50% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

.submit-event-cta:hover::before {
    animation-duration: 0.8s;
}

.submit-event-cta:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4), 0 0 30px rgba(102, 126, 234, 0.3);
    background: linear-gradient(135deg, #5a6fd8 0%, #6b4190 100%);
}

.submit-event-cta:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.cta-icon {
    font-size: 1.2rem;
    filter: none;
    animation: bounce-icon 2s ease-in-out infinite;
}

@keyframes bounce-icon {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    40% {
        transform: translateY(-4px) rotate(-2deg);
    }
    60% {
        transform: translateY(-1px) rotate(1deg);
    }
}

@keyframes text-glow {
    0%, 100% {
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
    }
    50% {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.6), 0 0 15px rgba(255, 255, 255, 0.4);
    }
}

.cta-text {
    font-weight: 600;
    letter-spacing: 0.01em;
    position: relative;
    animation: text-glow 3s ease-in-out infinite;
}

/* Mobile responsiveness for purpose explanation */
@media (max-width: 768px) {
    .purpose-explanation {
        margin: 2rem 0;
    }
    
    .purpose-content {
        padding: 0 1.5rem;
    }
    
    .purpose-title {
        font-size: 1.8rem;
        flex-direction: column;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }
    
    .purpose-icon {
        font-size: 2rem;
    }
    
    .purpose-description {
        font-size: 1.1rem;
        margin-bottom: 1rem;
        line-height: 1.6;
    }
    
    .organizer-message {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        padding: 0.875rem 1.25rem;
    }
    
    .submit-event-cta {
        padding: 1rem 2rem;
        font-size: 1rem;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .purpose-title {
        font-size: 1.6rem;
    }
    
    .purpose-description {
        font-size: 1rem;
    }
    
    .organizer-message {
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
        margin-bottom: 1.25rem;
    }
    
    .submit-event-cta {
        padding: 0.875rem 1.75rem;
        font-size: 0.95rem;
        gap: 0.5rem;
    }
}

/* Hero Banner Styles */
.hero-banner-section {
    margin: 2rem 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.banner-container {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.banner-slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.banner-slide {
    min-width: 100%;
    position: relative;
    display: flex;
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.8), rgba(118, 75, 162, 0.8));
}

.banner-slide.has-image {
    background: none;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.banner-image.loading {
    opacity: 0;
}

.banner-image.loaded {
    opacity: 1;
}

.banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 1.5rem;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.banner-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.banner-meta {
    font-size: 0.9rem;
    opacity: 0.9;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.banner-date,
.banner-location {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.banner-dots {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
}

.banner-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.banner-dot.active {
    background: white;
    transform: scale(1.2);
}

.banner-slide:hover .banner-overlay {
    transform: translateY(-5px);
}

/* No banners state */
.no-banners-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: white;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .banner-container {
        height: 150px;
    }
    
    .banner-overlay {
        padding: 1rem;
    }
    
    .banner-title {
        font-size: 1rem;
    }
    
    .banner-meta {
        font-size: 0.8rem;
        gap: 0.5rem;
    }
    
    .banner-dots {
        bottom: 0.5rem;
        right: 0.5rem;
    }
    
    .banner-dot {
        width: 6px;
        height: 6px;
    }
}

@media (max-width: 480px) {
    .hero-banner-section {
        margin: 0; /* Remove margins for full width */
        border-radius: 0; /* Remove border radius for full edge coverage */
    }
    
    .banner-container {
        height: 120px;
    }
    
    .banner-overlay {
        padding: 0.8rem;
    }
    
    .banner-title {
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
    }
    
    .banner-meta {
        font-size: 0.75rem;
        flex-direction: column;
        gap: 0.2rem;
    }
}

/* Banner Arrow Controls */
.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.banner-container:hover .banner-arrow {
    opacity: 1;
    visibility: visible;
}

.banner-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.banner-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.banner-arrow-left {
    left: 20px;
}

.banner-arrow-right {
    right: 20px;
}

.banner-arrow span {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .banner-container {
        height: 150px;
    }
    
    .banner-overlay {
        padding: 1rem;
    }
    
    .banner-title {
        font-size: 1rem;
    }
    
    .banner-meta {
        font-size: 0.8rem;
        gap: 0.5rem;
    }
    
    .banner-dots {
        bottom: 0.5rem;
        right: 0.5rem;
    }
    
    .banner-dot {
        width: 6px;
        height: 6px;
    }
    
    /* Hide arrows on mobile for swipe gestures */
    .banner-arrow {
        display: none;
    }
}

/* Useful Links Section */
.useful-links-section {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(15, 52, 96, 0.9) 100%);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(102, 126, 234, 0.3);
    margin-top: 2rem;
    padding: 3rem 0;
    position: relative;
}

.useful-links-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(102, 126, 234, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255, 107, 107, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

.useful-links-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.useful-links-header h3 {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(45deg, #00d4ff 0%, #ff6b6b 50%, #a855f7 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.useful-links-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    font-weight: 400;
}

.useful-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.links-category {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 15px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.links-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.5s ease;
}

.links-category:hover::before {
    left: 100%;
}

.links-category:hover {
    transform: translateY(-5px);
    border-color: rgba(102, 126, 234, 0.4);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), 0 0 20px rgba(102, 126, 234, 0.2);
}

.links-category h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #00d4ff;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.links-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.useful-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

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

.useful-link:hover::before {
    left: 100%;
}

.useful-link:hover {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateX(5px);
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.2);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.useful-link:active {
    transform: translateX(3px);
}

/* GrizzlyHub branded links */
.grizzlyhub-link {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
}

.link-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}

.link-icon {
    font-size: 1rem;
}

.link-text {
    font-weight: 500;
    flex: 1;
}

.grizzlyhub-credit {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.2rem;
    margin-left: 1.75rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.grizzlyhub-link:hover .grizzlyhub-credit {
    opacity: 1;
}

.grizzlyhub-mini-logo {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    filter: brightness(0.9);
    transition: filter 0.3s ease;
}

.grizzlyhub-link:hover .grizzlyhub-mini-logo {
    filter: brightness(1.1);
}

.credit-text {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .useful-links-section {
        padding: 2rem 0;
        margin-top: 1rem;
    }
    
    .useful-links-header h3 {
        font-size: 1.5rem;
    }
    
    .useful-links-header p {
        font-size: 1rem;
    }
    
    .useful-links-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .links-category {
        padding: 1.25rem;
    }
    
    .links-category h4 {
        font-size: 1.1rem;
    }
    
    .useful-link {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .grizzlyhub-link {
        padding: 0.6rem 0.8rem;
    }
    
    .grizzlyhub-credit {
        margin-left: 1.8.15rem;
    }
    
    .grizzlyhub-mini-logo {
        width: 14px;
        height: 14px;
    }
    
    .credit-text {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .useful-links-section {
        padding: 1.5rem 0;
    }
    
    .useful-links-header {
        margin-bottom: 1.5rem;
    }
    
    .useful-links-header h3 {
        font-size: 1.3rem;
    }
    
    .useful-links-header p {
        font-size: 0.9rem;
    }
    
    .links-category {
        padding: 1rem;
    }
    
    .links-category h4 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .useful-link {
        padding: 0.5rem 0.7rem;
        font-size: 0.85rem;
        gap: 0.5rem;
    }
    
    .grizzlyhub-link {
        padding: 0.5rem 0.7rem;
    }
    
    .grizzlyhub-credit {
        margin-left: 1.2rem;
    }
    
    .grizzlyhub-mini-logo {
        width: 12px;
        height: 12px;
    }
    
    .credit-text {
        font-size: 0.65rem;
    }
}

/* Ribbon Popup Styles */
.ribbon-popup {
    position: fixed;
    top: 50%;
    right: -400px;
    transform: translateY(-50%);
    z-index: 1000;
    transition: right 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
}

.ribbon-popup.show {
    right: 0;
    pointer-events: all;
}

.ribbon-content {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 25%, #ffd700 50%, #f7931e 75%, #ff6b35 100%);
    background-size: 200% 200%;
    animation: ribbonGradient 3s ease-in-out infinite;
    border-radius: 15px 0 0 15px;
    padding: 15px 20px;
    box-shadow: 
        0 10px 30px rgba(255, 107, 53, 0.4),
        0 0 20px rgba(255, 215, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 280px;
    max-width: 350px;
}

@keyframes ribbonGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.ribbon-content::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff6b35, #f7931e, #ffd700, #f7931e, #ff6b35);
    background-size: 400% 400%;
    animation: borderGlow 2s ease-in-out infinite;
    border-radius: 15px 0 0 15px;
    z-index: -1;
    opacity: 0.7;
}

@keyframes borderGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.ribbon-content:hover {
    transform: translateX(-5px) scale(1.02);
    box-shadow: 
        0 15px 40px rgba(255, 107, 53, 0.6),
        0 0 30px rgba(255, 215, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.ribbon-content:active {
    transform: translateX(-3px) scale(0.98);
}

.ribbon-icon {
    font-size: 2rem;
    margin-right: 12px;
    animation: trophyBounce 2s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

@keyframes trophyBounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-3px) rotate(-2deg); }
    75% { transform: translateY(-3px) rotate(2deg); }
}

.ribbon-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ribbon-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
    animation: textShimmer 2s ease-in-out infinite;
}

@keyframes textShimmer {
    0%, 100% { 
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }
    50% { 
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 0 10px rgba(255, 255, 255, 0.5);
    }
}

.ribbon-subtitle {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.ribbon-close {
    background: rgba(255, 255, 255, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    font-size: 1.8.15rem;
    font-weight: bold;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    margin-left: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 10;
}

.ribbon-close:hover {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.ribbon-close:active {
    transform: scale(0.9);
    background: rgba(255, 255, 255, 0.5);
}

.ribbon-close::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ribbon-close:hover::before {
    opacity: 1;
}

/* Ribbon content layout */
.ribbon-content {
    display: flex;
    align-items: center;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .ribbon-popup.show {
        right: 10px;
    }
    
    .ribbon-content {
        min-width: 250px;
        max-width: 300px;
        padding: 12px 16px;
    }
    
    .ribbon-icon {
        font-size: 1.5rem;
        margin-right: 10px;
    }
    
    .ribbon-title {
        font-size: 0.9rem;
    }
    
    .ribbon-subtitle {
        font-size: 0.75rem;
    }
    
    .ribbon-close {
        width: 24px;
        height: 24px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .ribbon-popup.show {
        right: 5px;
    }
    
    .ribbon-content {
        min-width: 220px;
        max-width: 280px;
        padding: 10px 14px;
    }
    
    .ribbon-icon {
        font-size: 1.3rem;
        margin-right: 8px;
    }
    
    .ribbon-title {
        font-size: 0.85rem;
    }
    
    .ribbon-subtitle {
        font-size: 0.7rem;
    }
}

/* Animation for initial appearance */
@keyframes ribbonSlideIn {
    0% {
        right: -400px;
        opacity: 0;
    }
    100% {
        right: 0;
        opacity: 1;
    }
}

.ribbon-popup.animate-in {
    animation: ribbonSlideIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

/* Pulse animation for attention */
@keyframes ribbonPulse {
    0%, 100% {
        transform: translateY(-50%) scale(1);
    }
    50% {
        transform: translateY(-50%) scale(1.05);
    }
}

.ribbon-popup.attention {
    animation: ribbonPulse 2s ease-in-out infinite;
}

/* Duplicate Events Warning Styles */
.duplicate-warning {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border: 2px solid #f39c12;
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.2);
    animation: warningSlideIn 0.5s ease-out;
}

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

.warning-header h4 {
    color: #e67e22;
    font-size: 1.2rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.warning-header p {
    color: #8b5a00;
    font-size: 0.95rem;
    margin-bottom: 15px;
    line-height: 1.5;
}

.similar-events-list {
    margin-bottom: 20px;
}

.similar-event-item {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #f39c12;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.similar-event-item:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.2);
}

.similar-event-name {
    font-weight: 600;
    color: #e67e22;
    font-size: 1rem;
    margin-bottom: 5px;
}

.similar-event-details {
    font-size: 0.85rem;
    color: #8b5a00;
    line-height: 1.4;
}

.similar-event-details span {
    display: inline-block;
    margin-right: 15px;
}

.similarity-score {
    background: #f39c12;
    color: white;
    padding: 2px 8px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    float: right;
}

.warning-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.warning-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-family: 'Kanit', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.warning-btn.edit-btn {
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    color: white;
}

.warning-btn.edit-btn:hover {
    background: linear-gradient(135deg, #0984e3, #74b9ff);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(116, 185, 255, 0.4);
}

.warning-btn.proceed-btn {
    background: linear-gradient(135deg, #00b894, #00a085);
    color: white;
}

.warning-btn.proceed-btn:hover {
    background: linear-gradient(135deg, #00a085, #00b894);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 184, 148, 0.4);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .warning-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .warning-btn {
        width: 100%;
        justify-content: center;
    }
    
}