:root {
    --primary-color-light: #112A46;
    --secondary-color-light: #81b0d5;
    --background-color-light: #e6f2f9;
    --text-color-light: #1a3d5c;
    --card-background-light: #dbf2ff;
    --highlight-color-light: #d0e8f2;
    --button-hover-color-light: #9ac2db;
    --header-background-light: linear-gradient(135deg, #112A46, #81b0d5);
    --primary-color-dark: #454545;
    --secondary-color-dark: #818181;
    --background-color-dark: #1a1a1a;
    --text-color-dark: #e6f2f9;
    --card-background-dark: #2c2c2c;
    --highlight-color-dark: #3f3f3f;
    --button-hover-color-dark: #4a4a4a;
    --header-background-dark: linear-gradient(135deg, #474747, #000000);
    --primary-color: var(--primary-color-light);
    --secondary-color: var(--secondary-color-light);
    --background-color: var(--background-color-light);
    --text-color: var(--text-color-light);
    --card-background: var(--card-background-light);
    --highlight-color: var(--highlight-color-light);
    --button-hover-color: var(--button-hover-color-light);
    --header-background: var(--header-background-light);
    --card-heading-color: var(--card-heading-color-light);
    --modal-background: rgba(0, 0, 0, 0.5);
    --modal-background-dark: rgba(0, 0, 0, 0.7);
    --modal-content-background: #c5d9e5;
    --modal-content-background-dark: #2c2c2c;
    --input-background: #ffffff;
    --input-border: #cccccc;
    --success-color: #4CAF50;
    --error-color: #f44336;
    --header-text-color-light: #ffffff;
    --header-text-color-dark: #e6f2f9;
    --card-heading-color-light: #112A46;
    --card-heading-color-dark: #ffffff;
    --header-text-color: var(--header-text-color-light);
    --heading-color-light: #112A46;
    --heading-color-dark: #ffffff
}
body.dark-theme {
    --primary-color: var(--primary-color-dark);
    --primary-color-rgb: var(--primary-color-rgb-dark);
    --secondary-color: var(--secondary-color-dark);
    --background-color: var(--background-color-dark);
    --text-color: var(--text-color-dark);
    --light-text: var(--light-text-dark);
    --card-background: var(--card-background-dark);
    --border-color: var(--border-color-dark);
    --input-background: var(--input-background-dark);
    --highlight-color: var(--highlight-color-dark);
    --button-hover-color: var(--button-hover-color-dark);
    --header-background: var(--header-background-dark);
    --modal-background: var(--modal-background-dark);
    --modal-content-background: var(--modal-content-background-dark);
    --header-text-color: var(--header-text-color-dark);
    --card-heading-color: var(--card-heading-color-dark);
}
body.dark-theme header {
    background: var(--header-background);
    color: var(--header-text-color-dark);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}
body.dark-theme h2,body.dark-theme h3 {
    color: var(--heading-color-dark)
}
body.dark-theme .shop-card-info h3 {
    color: var(--card-heading-color-dark)
}
.age-verification-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    will-change: opacity, visibility;
}
.age-verification-container.show {
    opacity: 1;
    visibility: visible;
}
.age-verification-popup {
    background-color: var(--card-background);
    padding: 1.5rem;
    border-radius: 0.8rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    max-width: 350px;
    width: 85%;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    will-change: transform;
}
.age-verification-container.show .age-verification-popup {
    transform: translateY(0);
}
.age-verification-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center
}
.age-verification-content h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    position: relative;
    padding-bottom: 0.6rem;
}
.age-verification-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 3px;
}
.age-verification-content h2::before {
    content: '🔞';
    display: block;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}
.age-verification-content p {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.4;
}
.age-verification-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    flex-wrap: wrap;
}
.age-verification-buttons button {
    padding: 0.6rem 1rem;
    border-radius: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 0.9rem;
    flex: 1;
    min-width: 140px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.age-verification-buttons button#age-over-18 {
    background-color: var(--primary-color);
    color: #FFFFFF;
    transform: translateY(0);
    transition: transform 0.2s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}
.age-verification-buttons button#age-over-18:hover {
    background-color: var(--secondary-color);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
}
.age-verification-buttons button#age-under-18 {
    background-color: var(--highlight-color);
    color: var(--text-color);
    transform: translateY(0);
    transition: transform 0.2s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}
.age-verification-buttons button#age-under-18:hover {
    background-color: var(--button-hover-color);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
}
.age-verification-container.show {
    opacity: 1;
    visibility: visible;
}
.age-verification-container.show .age-verification-popup {
    transform: scale(1);
}
@keyframes verifyPulse {
    0% { transform: scale(0.9); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}
.settings-option.age-over-18 {
    display: flex;
    align-items: center;
    justify-content: space-between
}
.settings-option.age-over-18 label {
    color: var(--text-color)
}
.settings-option.age-over-18 input[type="checkbox"] {
    transform: scale(1.2);
    margin-right: 0.5rem
}
.apply-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    transition: background-color 0.3s ease
}
.apply-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1)
}
nav {
    display: flex;
    gap: 1.5rem;
    position: relative;
    overflow: visible;
    align-items: center;
}
.nav-link {
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 500;
    padding: 0.7rem 1.2rem;
    transition: all 0.3s ease;
    border-radius: 30px;
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}
.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
    color: #FFFFFF; /* ทำให้สีไม่จางเมื่อ hover */
}
.nav-link::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.7s ease;
}
.nav-link:hover::before {
    left: 100%;
}
.nav-link::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #FFFFFF;
    transition: width 0.3s ease;
    margin: 0 auto;
    margin-top: 3px;
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    opacity: 1;
    border-left: none;
}
.nav-link:hover::after {
    width: 70%;
    height: 2px;
    opacity: 1;
}
.theme-toggle {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #FFFFFF;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}
header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--header-background);
    opacity: 0.8;
    z-index: 0;
    transition: opacity 0.3s ease;
}

.logo-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

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

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.header-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.logo-link:hover .header-logo {
    transform: rotate(15deg);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}
.schedule-header {
    width: 100%;
    overflow: hidden
}
.schedule-title-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}
.schedule-title {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    min-height: 60px;
    height: 60px;
    max-width: 100%;
}
.schedule-title h2 {
    margin: 0;
    font-size: 1.8rem;
    line-height: 1;
    flex: 1;
}
.schedule-filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    scrollbar-width: thin;  /* Firefox */
    padding-bottom: 10px;
    white-space: nowrap;
    width: 100%;
    max-width: 100%;
    position: relative;
}

/* Custom scrollbar styling for Webkit browsers */
.schedule-filters::-webkit-scrollbar {
    height: 6px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.schedule-filters::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 3px;
}

.schedule-filters::-webkit-scrollbar-thumb:hover {
    background-color: var(--secondary-color);
}

.day-filter-btn {
    flex: 0 0 auto;  /* Don't allow shrinking */
    padding: 0.5rem 1rem;
    background-color: var(--card-background);
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: fit-content;
}
.day-filter-btn:hover {
    transform: translateY(-1px)
}
.day-filter-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color)
}
/* Mobile Responsive */


.splash-content {
    text-align: center;
    position: relative;  /* เพิ่ม position relative */
    display: flex;      /* เพิ่ม flex display */
    flex-direction: column;  /* จัดเรียงแนวตั้ง */
    align-items: center;    /* จัดกึ่งกลางแนวนอน */
}
.splash-logo {
    width: 300px;
}
.splash-loading {
    width: 90vw;
    max-width: 400px;
    height: 6px;
    background-color: var(--secondary-color);
    border-radius: 3px;
    overflow: hidden;
    box-sizing: border-box
}
.splash-loading-bar {
    width: 0;
    height: 100%;
    background-color: var(--primary-color);
    transition: width 0.3s ease-out
}

/* Add pulse animation for the loading bar */
.splash-loading-bar.pulse-animation {
    animation: barPulse 0.8s ease-in-out;
}

@keyframes barPulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.splash-loading-bar.complete {
    background-color: #4CAF50; /* Green for success */
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.7);
}

.splash-loading-bar.error {
    background-color: #F44336; /* Red for error */
    box-shadow: 0 0 10px rgba(244, 67, 54, 0.7);
}

.splash-loading-status {
    margin-top: 15px;
    color: var(--header-text-color);
    font-size: 16px;
    font-weight: 400;
    text-align: center;
    min-height: 20px;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    animation: fadeIn 0.5s ease-in-out;
}

.splash-loading-status::after {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
    animation: pulseLoading 1.2s infinite ease-in-out;
    margin-left: 5px;
}

.splash-loading-status.success::after {
    animation: none;
    background-color: #4CAF50;
    transform: scale(1.2);
}

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

/* เพิ่มสีเน้นสำหรับเปอร์เซ็นต์ */
.splash-loading-status strong {
    color: var(--accent-color, #00c8ff);
    font-weight: 700;
    position: relative;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(0, 200, 255, 0.1);
    animation: pulsePercent 2s infinite ease-in-out;
    display: inline-block;
    min-width: 50px;
    text-align: center;
}

@keyframes pulsePercent {
    0%, 100% { 
        transform: scale(1);
        background: rgba(0, 200, 255, 0.1);
    }
    50% { 
        transform: scale(1.05);
        background: rgba(0, 200, 255, 0.25);
    }
}

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

.hide-splash {
    opacity: 0;
    visibility: hidden
}
.link-preview {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    max-width: 500px;
    margin: 20px auto;
    background-color: #FFFFFF
}
.preview-image {
    width: 150px;
    height: 150px;
    object-fit: cover
}
.preview-content {
    padding: 15px;
    flex-grow: 1
}
.preview-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px
}
.preview-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px
}
.preview-title {
    margin: 0;
    font-size: 18px
}
.preview-time, .preview-tags {
    margin: 5px 0;
    font-size: 14px;
    color: #666
}
.settings-option input[type="color"] {
    height: 40px;
    cursor: pointer
}
body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: 'Kanit', sans-serif;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

header {
    background: var(--header-background);
    color: var(--header-text-color);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    padding: 1.2rem 2rem;
    text-align: center;
    position: relative;
    overflow: visible;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

header h1 {
    transition: transform 0.3s ease, text-shadow 0.3s ease;
    font-size: 2.2rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    margin: 0;
    letter-spacing: 0.5px;
    position: relative;
    display: inline-block;
    color: var(--header-text-color-light);
}

header h1:hover {
    transform: scale(1.05);
    text-shadow: 3px 3px 6px rgba(0,0,0,0.3);
}

header h1::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #FFFFFF;
    transition: width 0.3s ease;
    opacity: 0.7;
}

header h1:hover::after {
    width: 100%;
}

nav {
    display: flex;
    gap: 1.5rem;
    position: relative;
    overflow: visible;
    align-items: center;
}

.nav-link {
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 500;
    padding: 0.7rem 1.2rem;
    transition: all 0.3s ease;
    border-radius: 30px;
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
    color: #FFFFFF; /* ทำให้สีไม่จางเมื่อ hover */
}

.nav-link::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.7s ease;
}

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

.nav-link::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #FFFFFF;
    transition: width 0.3s ease;
    margin: 0 auto;
    margin-top: 3px;
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    opacity: 1;
    border-left: none;
}

.nav-link:hover::after {
    width: 70%;
    height: 2px;
    opacity: 1;
}

.theme-toggle {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #FFFFFF;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.global-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.95rem;
    color: var(--text-color);
    margin-left: auto;
}

.global-time i {
    color: var(--primary-color);
}

body.dark-theme .global-time {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
}

.random-shop {
    transition: opacity 0.5s ease-in-out;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    background-size: cover;
    background-position: center;
    height: 100%;
    min-width: 100%
}
.random-shop-card {
    position: relative;
    width: 100%;
    height: calc(100% - 60px);
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-image 1s ease-in-out
}
.random-shop-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    border: 1px solid var(--secondary-color)
}
.random-shop-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg, 
        rgba(0,0,0,0.7) 0%,
        rgba(0,0,0,0.5) 50%,
        rgba(0,0,0,0.7) 100%
    );
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem
}

.random-shop-content {
    width: 800px;
    height: 600px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.random-shop-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 1;
    transition: transform 0.3s ease
}

.random-shop-info {
    position: relative;
    z-index: 2;
    background: rgba(86, 115, 133, 0.4);
    backdrop-filter: blur(8px);
    padding: 2rem;
    border-radius: 1rem;
    height: 400px;
    width: 400px; /* Increased from 400px */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center
}

body.dark-theme .random-shop-info {
    background: rgba(69, 69, 69, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.05)
}

.shop-header {
    display: flex;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    align-items: center;
}

.shop-header h3 {
    margin: 0;
    font-size: 1.4rem;
    color: #FFFFFF;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.shop-icon {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.shop-header-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    justify-content: center;
    margin-left: 0.5rem; /* เพิ่มระยะห่างด้านซ้าย */
}

.shop-header-top {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 64px;
}

.nsfw-icon {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
    background: rgba(255, 59, 48, 0.15);
    border: 2px solid #ff3b30;
    color: #ff3b30;
    height: fit-content;
    margin-right: 0.5rem;
    font-weight: bold;
    animation: pulsensfw 2s infinite;
    box-shadow: 0 0 10px rgba(255, 59, 48, 0.3);
    text-shadow: 0 0 5px rgba(255, 59, 48, 0.5);
}

@keyframes pulsensfw {
    0% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(255, 59, 48, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 15px rgba(255, 59, 48, 0.5);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(255, 59, 48, 0.3);
    }
}

.tag {
    display: inline-flex;
    align-items: center;
    background-color: rgba(58, 124, 165, 0.2);
    border: 1px solid rgba(58, 124, 165, 0.6);
    color: #FFFFFF;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.7rem;
}

.random-shop-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow: hidden;
    padding: 0.5rem 0;
    width: 100%; /* Added to ensure full width */
}
.time-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    margin: 0.5rem 0;
    font-size: 0.9rem;
    white-space: nowrap;
    max-width: 100%;
    box-sizing: border-box;
    overflow: visible;
    color: #FFFFFF;
}

.time-badge i {
    font-size: 1rem;
    margin-right: 0.3rem;
}
.description-container {
    flex: 1;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 8px
}
.random-shop-description {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem
}
.shop-card .tag {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #FFFFFF;
    backdrop-filter: blur(2px);
    transition: all 0.3s ease
}
.shop-card .tag:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px)
}
.random-shop-image-container {
    width: 300px;
    height: 300px;
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    margin: auto 0;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
    background: #1a1a1a;
    z-index: 1
}

.random-shop-image {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    object-fit: cover;
    transition: all 0.5s ease;
    border: 3px solid rgba(255,255,255,0.2);
    z-index: 1;
    animation: vinylSpin 20s linear infinite
}


.random-shop-image-container:hover .random-shop-image {
    animation-play-state: paused;
    filter: none;
    transform: translate(-50%, -50%) scale(1.05)
}

@keyframes vinylSpin {
    from { transform: translate(-50%, -50%) rotate(0deg) }
    to { transform: translate(-50%, -50%) rotate(360deg) }
}

.random-shop-image-container::before {
    background: rgba(255,255,255,0.8)
}

.random-shop-image-container::after {
    transform: translate(-50%, -50%) rotate(0deg) !important;
    animation: none !important
}

.random-shop-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem
}
.random-shop-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: #FFFFFF
}
.random-shop-description {
    line-height: 1.6;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.9);
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0.5rem 0
}
.details-btn {
    margin-top: auto;
    align-self: stretch;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #FFFFFF;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    position: relative;
    z-index: 3;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--header-background);
    opacity: 0.8;
    z-index: 0;
    transition: opacity 0.3s ease
}
.theme-toggle {
    background: none;
    border: none;
    color: #FFFFFF;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s ease
}
.theme-toggle:hover {
    transform: rotate(15deg) scale(1.1)
}
.dark-theme .theme-toggle {
    color: var(--text-color)
}
.dark-theme header {
    background-color: var(--background-color)
}
.dark-theme header::before {
    opacity: 0.6;
    background: var(--header-background-dark);
}
.dark-theme header h1 {
    color: var(--text-color)
}
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 20px
}
.current-shops {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    position: relative;
    min-height: 400px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    box-sizing: border-box;
}

.current-shops h2 {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    width: 100%;
    flex-wrap: wrap;
}

.open-shops-count {
    position: static;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    font-size: 0.9rem;
}

.open-shops-count i {
    font-size: 0.9rem;
}

/* Shop filters positioning */
.shop-filters {
    order: 2;
    width: 100%;
    margin: 1rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    padding: 0.5rem;
}

.featured-shop-container {
    order: 1;
    width: 100%;
    margin-bottom: 2rem;
}

.other-shops-section {
    width: 100%;
    margin-top: 2rem;
    position: relative;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 12px;
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    order: 3;
    overflow: hidden;
}

.other-shops-title {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 4px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.other-shops-title i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.shop-navigation {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    overflow: hidden;
    padding: 1rem;
    position: relative;
}

.other-shops-container {
    display: flex;
    justify-content: center; /* Center the shops */
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem 0;
    width: 100%;
    margin: 0 auto;
    max-width: 1200px;
}

.other-shops-container::-webkit-scrollbar {
    display: none;
}

.shop {
    position: relative;
    overflow: hidden;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)),
                url('../images/VRLogoSmall.webp') center/cover no-repeat;
    background-size: cover;
    background-position: center;
    width: 400px;
    height: 200px;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    margin: 0 10px; /* Adjust margin for spacing */
}

.shop:last-child {
    margin-right: 0;
}

.shop:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.shop:hover ~ .shop {
    transform: translateX(-100px);
}

.nav-button {
    background-color: #3a7ca5;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
    border-radius: 5px;
}

.nav-button:hover {
    background-color: #2a5a7a;
}

.nav-button.left {
    margin-right: 10px;
}

.nav-button.right {
    margin-left: 10px;
}

body.dark-theme .other-shops-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
    .other-shops-container {
        padding: 0.5rem;
        gap: 0.5rem;
    }
    .shop {
        min-width: 150px;
    }
}

.shop-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 0.8rem;
    border-radius: 8px;
    backdrop-filter: blur(5px);
    text-align: left;
    margin-bottom: 0.2rem;
}

.shop .shop-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 2px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.shop:hover .shop-icon {
    border-color: var(--primary-color);
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--primary-color);
}

.shop-info-text {
    flex: 1;
    text-align: left;
}

.shop .shop-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.shop .shop-time i {
    color: var(--primary-color);
}
.shop .tag {
    background: rgba(255, 255, 255, 0.15);
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.shop:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.shop.time-open::after {
    content: '';
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 10px;
    height: 10px;
    background-color: #4CAF50;
    border-radius: 50%;
    box-shadow: 0 0 10px #4CAF50;
    z-index: 2;
}

.shop.shop-closed {
    opacity: 0.8;
}

@media screen and (max-width: 768px) {
    .shop {
        min-height: 250px;
        padding: 0.8rem;
    }

    .shop .shop-icon {
        width: 40px;
        height: 40px;
    }

    .shop .shop-name {
        font-size: 1.1rem;
    }

    .shop .shop-time {
        font-size: 0.85rem;
    }
}

.current-shops.loading {
    opacity: 0.7;
}

.current-shops.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid var(--primary-color);
    border-top: 4px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Enhance featured shop container */
.featured-shop-container {
    align-items: center;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-shop-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px var(--primary-color),
                0 0 80px var(--secondary-color);
}

/* Add shop status indicators */
.shop-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.shop-status.open {
    background-color: rgba(46, 213, 115, 0.9);
}

.shop-status.closing-soon {
    background-color: rgba(255, 165, 0, 0.9);
}

.shop-status.closed {
    background-color: rgba(255, 71, 87, 0.9);
}

.shop-status i {
    font-size: 0.9rem;
}

/* Add tag filters */
.shop-filters {
    width: 100%;
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    padding: 0.5rem;
}

.filter-tag {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.filter-tag:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.filter-tag.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Enhance other shops display */
.other-shops-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    overflow-y: auto;
    max-height: 600px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
}

body.dark-theme .other-shops-container {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.other-shops-container::-webkit-scrollbar {
    width: 6px;
}

.other-shops-container::-webkit-scrollbar-track {
    background: transparent;
}

.other-shops-container::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 3px;
}


.shop::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7));
    z-index: 1;
}

.shop-content {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: 1rem;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.shop .shop-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 2px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.shop:hover .shop-icon {
    border-color: var(--primary-color);
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--primary-color);
}

.shop-info-text {
    flex: 1;
    text-align: left;
}

.shop .shop-name {
    font-size: 1.2rem;
    margin: 0 0 0.3rem 0;
    color: #fff;
    text-align: left;
}

.shop .shop-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.shop .shop-time i {
    color: var(--primary-color);
}

.shop .tag {
    background: rgba(255, 255, 255, 0.15);
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.shop:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.shop.time-open::after {
    content: '';
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 10px;
    height: 10px;
    background-color: #4CAF50;
    border-radius: 50%;
    box-shadow: 0 0 10px #4CAF50;
    z-index: 2;
}

.shop.shop-closed {
    opacity: 0.8;
}

@media screen and (max-width: 768px) {
    .shop {
        min-height: 250px;
        padding: 0.8rem;
    }

    .shop .shop-icon {
        width: 40px;
        height: 40px;
    }

    .shop .shop-name {
        font-size: 1.1rem;
    }

    .shop .shop-time {
        font-size: 0.85rem;
    }
}

.current-shops.no-shops {
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    box-sizing: border-box;
}
.no-shops-message {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-color);
    border-radius: 10px;
    padding: 2rem;
    width: 100%;
    height: 100%;
    min-height: 200px;
    z-index: 2;
}

#weekly-shops .no-shops-message {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 500px;
}

.no-shops-message i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}
.no-shops-message p {
    margin: 0.5rem 0;
    font-size: 1.2rem;
    font-weight: 500;
}
.no-shops-message p:last-child {
    font-size: 0.9rem
}
.current-shops, .schedule {
    background-color: var(--card-background);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease
}
.featured-shop-container {
    position: relative;
    width: 100%;
    height: 350px;
    margin: 0;
    box-shadow: 0 0 20px var(--primary-color),
                0 0 60px var(--secondary-color);
    border: 1px solid var(--primary-color);
    border-radius: 16px;
    z-index: 1;
    display: flex;  /* Add this */
    justify-content: center;  /* Add this */
    align-items: center;  /* Add this */
}
.featured-shop {
    position: relative;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 16px;
    padding: 1.25rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 2;
}

body.dark-theme .featured-shop-container {
    box-shadow: 0 0 20px var(--primary-color-dark),
                0 0 60px var(--secondary-color-dark);
    border: 1px solid var(--primary-color-dark);
}

@keyframes glowing {
    0% {
        box-shadow: 0 0 20px rgba(58, 124, 165, 0.3),
                    0 0 60px rgba(58, 124, 165, 0.1);
    }
    50% {
        box-shadow: 0 0 30px rgba(58, 124, 165, 0.5),
                    0 0 80px rgba(58, 124, 165, 0.2);
    }
    100% {
        box-shadow: 0 0 20px rgba(58, 124, 165, 0.3),
                    0 0 60px rgba(58, 124, 165, 0.1);
    }
}

body.dark-theme .featured-shop {
    box-shadow: 0 0 20px rgba(129, 176, 213, 0.3),
                0 0 60px rgba(129, 176, 213, 0.1);
    animation: glowing-dark 2s ease-in-out infinite;
}

@keyframes glowing-dark {
    0% {
        box-shadow: 0 0 20px rgba(129, 176, 213, 0.3),
                    0 0 60px rgba(129, 176, 213, 0.1);
    }
    50% {
        box-shadow: 0 0 30px rgba(129, 176, 213, 0.5),
                    0 0 80px rgba(129, 176, 213, 0.2);
    }
    100% {
        box-shadow: 0 0 20px rgba(129, 176, 213, 0.3),
                    0 0 60px rgba(129, 176, 213, 0.1);
    }
}

.featured-shop::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(58, 67, 73, 0.7) 0%,
        rgba(58, 67, 73, 0.5) 50%,
        rgba(58, 67, 73, 0.7) 100%
    );
    border-radius: inherit;
    z-index: 1;
}

body.dark-theme .featured-shop::before {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.6) 50%,
        rgba(0, 0, 0, 0.8) 100%
    );
}

.featured-shop-info {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    height: 100%;
    overflow: hidden;
}

/* Header Section */
.featured-shop-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.featured-shop .shop-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
    object-fit: cover;
    object-position: center;
}

.featured-shop h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    margin: 0;
}

/* Time Badge */
.featured-shop-time {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 0.5rem;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.featured-shop-time i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

/* Description */
.featured-shop-description {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
    max-height: 60px;
    overflow-y: auto;
    margin: 0;
}

/* Tags */
.featured-shop-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.5rem;
}

.featured-shop .tag {
    color: #fff;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.featured-shop .tag:hover {
    transform: translateY(-1px);
}

/* Scrollbar Styling */
.featured-shop-description::-webkit-scrollbar {
    width: 4px;
}

.featured-shop-description::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
}

.featured-shop-description::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

/* NSFW Badge */
.nsfw-badge {
    background: rgba(255, 59, 48, 0.15);
    color: #ff3b30;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: bold;
    border: 2px solid #ff3b30;
    display: inline-flex;
    align-items: center;
    margin-right: 0.5rem;
    animation: pulsensfw 2s infinite;
    box-shadow: 0 0 10px rgba(255, 59, 48, 0.3);
    text-shadow: 0 0 5px rgba(255, 59, 48, 0.5);
}

.nsfw-badge::before {
    content: "🔞";
    margin-right: 0.5rem;
    font-size: 1.1em;
}

.shop-card .nsfw-icon,
.featured-shop .nsfw-icon,
.schedule-shop .nsfw-icon {
    position: relative;
    z-index: 2;
    backdrop-filter: blur(4px);
}

body.dark-theme .nsfw-icon,
body.dark-theme .nsfw-badge {
    background: rgba(255, 59, 48, 0.2);
    border-color: #ff3b30;
    color: #ff3b30;
    box-shadow: 0 0 15px rgba(255, 59, 48, 0.4);
}

/* Hover Effects */
.featured-shop-info:hover .shop-icon {
    transform: scale(1.05);
}

.featured-shop-info:hover h3 {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.featured-shop-image {
    height: 100%;
    max-height: 100%;
    object-fit: cover;
    border-radius: 12px;
}
.details-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    margin-top: 0.75rem;
}
.featured-shop-description::-webkit-scrollbar {
    width: 6px;
}
.featured-shop-description::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}
.featured-shop-description::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}
.featured-shop-description::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}
.other-shops-container {
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem 0;
    width: 100%;
    margin: 0 auto;
    max-width: 1200px;
}
.shop {
    position: relative;
    overflow: hidden;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)),
                url('../images/VRLogoSmall.webp') center/cover no-repeat;
    background-size: cover;
    background-position: center;
    width: 400px;
    height: 200px;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.shop:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}
.shop-content {
    justify-content: space-between;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%);
}
.shop .shop-icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
    margin-right: 0.5rem;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.5));
}
.shop .shop-time {
    font-size: 0.9rem;
    font-weight: 500;
}
.shop .details-btn {
    opacity: 0;
    transition: opacity 0.3s ease;
    align-self: flex-end;
    background-color: var(--accent-color);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.shop:hover .details-btn {
    opacity: 1;
}

/* Add slide animation classes */
.shop.slide-in {
    animation: slideIn 0.5s forwards;
}
.shop.slide-out {
    animation: slideOut 0.5s forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-50px);
    }
}
h1 {
    color: var(--header-text-color-light)
}
h2 {
    margin-bottom: 1rem;
    font-size: 1.8rem
}
h3 {
    color: var(--heading-color-light);
    font-size: 1.4rem
}
.btn {
    text-decoration: none;
    color: #FFFFFF;
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--primary-color);
    text-decoration: none;
    transition: background-color 0.3s ease;
    margin-top: 0.5rem;
    cursor: pointer
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1)
}
.details-btn {
    margin-top: auto;
    align-self: stretch;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #FFFFFF;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    position: relative;
    z-index: 3;
}
.details-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1)
}
.close {
    color: var(--text-color);
    float:right;
    font-size: 28px;
    font-weight: 700;
    cursor: pointer
}
.close:hover,.close:focus {
    color: var(--primary-color);
    text-decoration: none
}
pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: inherit;
    margin: 0
}
.shop-promote {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease
}
.info-item {
    margin-bottom: 15px
}
.info-label {
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    margin-bottom: 5px
}
.info-value {
    display: block
}
.info-value.description {
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: inherit;
    margin: 0;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 5px
}
.info-separator {
    height: 1px;
    background-color: var(--secondary-color);
    opacity: 0.3;
    margin: 15px 0
}
.status-open {
    color: #4CAF50
}
.status-closed {
    color: #F44336
}
.discord-btn {
    background-color: #7289DA;
    color: #FFFFFF
}
.vrchat-btn {
    background-color: #005FCC;
    color: #FFFFFF
}
.tag {
    display: inline-block;
    color: var(--text-color);
    margin-right: 5px;
    margin-bottom: 5px;
    font-size: 0.85rem;
    padding: 4px 8px;
    border-radius: 4px;
}
.shop-promote:hover {
    transform: scale(1.05)
}
.image-zoom-modal {
    display: flex;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center
}
.zoomed-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain
}
.close-zoom {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: 700;
    cursor: pointer
}
.slide-out {
    animation: slideOut 0.5s forwards
}
.slide-in {
    animation: slideIn 0.5s forwards
}
@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1
    }
    to {
        transform: translateX(-100%);
        opacity: 0
    }
}
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0
    }
    to {
        transform: translateX(0);
        opacity: 1
    }
}
.schedule {
    overflow-x: auto
}
.schedule-day {
    margin-bottom: 1rem
}
.schedule-day h3 {
    background-color: var(--primary-color);
    color: #FFFFFF;
    padding: 0.5rem;
    margin: 0;
    border-radius: 5px 5px 0 0
}
.schedule-shops {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.5rem;
    padding: 0.5rem;
    background-color: var(--card-background);
    border-radius: 0 0 5px 5px;
}
.schedule-shop {
    position: relative;
    border-radius: 8px;
    padding: 0.75rem;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.schedule-shop:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.schedule-shop a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    padding: 0.5rem;
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 6px;
    box-sizing: border-box;
}

body.dark-theme .schedule-shop a {
    background-color: rgba(30, 30, 30, 0.85);
    color: #fff;
}

.schedule-shop .shop-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 0.5rem auto;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    display: block;
}

.schedule-shop .shop-name {
    font-weight: bold;
    text-align: center;
    margin: 0.25rem 0;
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    max-width: 100%;
}

.schedule-shop .shop-time {
    font-size: 0.8rem;
    opacity: 0.9;
    text-align: center;
    margin-top: 0.25rem;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Schedule Day Glow Effect */
.schedule-day[data-day].current-day {
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3),
                0 0 20px rgba(255, 165, 0, 0.2);
    border: 1px solid rgba(255, 215, 0, 0.5);
    animation: todayScheduleGlow 2s ease-in-out infinite;
    padding: 0.75rem; /* Reduced from 1rem */
    margin: 0.75rem 0; /* Reduced from 1rem */
    transform: scale(0.95); /* Added scale down */
    transform-origin: center;
    transition: transform 0.3s ease;
}

.schedule-day[data-day].current-day:hover {
    transform: scale(0.98); /* Slightly larger on hover but still smaller than normal */
}

/* Regular schedule day styles */
.schedule-day {
    margin-bottom: 1rem;
    padding: 1rem;
    transform: scale(1);
    transform-origin: center;
    transition: transform 0.3s ease;
}

@keyframes todayScheduleGlow {
    0% {
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.3),
                    0 0 20px rgba(255, 165, 0, 0.2);
    }
    50% {
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.4),
                    0 0 30px rgba(255, 165, 0, 0.3);
    }
    100% {
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.3),
                    0 0 20px rgba(255, 165, 0, 0.2);
    }

}

/* Dark theme for Schedule Day */
body.dark-theme .schedule-day[data-day].current-day {
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3),
                0 0 20px rgba(255, 165, 0, 0.2);
    border: 1px solid rgba(255, 215, 0, 0.5);
    animation: todayScheduleGlowDark 2s ease-in-out infinite;
}

@keyframes todayScheduleGlowDark {
    0% {
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.3),
                    0 0 20px rgba(255, 165, 0, 0.2);
    }
    50% {
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.4),
                    0 0 30px rgba(255, 165, 0, 0.3);
    }
    100% {
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.3),
                    0 0 20px rgba(255, 165, 0, 0.2);
    }
}

.schedule-shop.shop-closed {
    opacity: 0.6
}
.schedule-shop a {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    text-decoration: none;
    color: var(--primary-color);  /* เพิ่มความเข้มของสีตัวอักษร */
    font-weight: 500;  /* เพิ่มความหนาของตัวอักษร */
}
.schedule-shop .shop-icon {
    width: 30px;
    height: 30px;
    margin-right: 0.5rem
}
.schedule-shop .shop-name {
    flex: 1;
    font-weight: 700;
    color: var(--primary-color);  /* เพิ่มความเข้มของสีตัวอักษร */
}
.schedule-shop .shop-time {
    font-size: 0.9rem;
    color: var(--primary-color);  /* แก้ไขจาก 0.8rem และเปลี่ยนสี */
    font-weight: 500;  /* เพิ่มความหนาของตัวอักษร */
}
.contact-panel {
    position: fixed;
    right: -300px;
    top: 50%;
    transform: translateY(-50%);
    width: 300px;
    background-color: var(--card-background);
    border-radius: 10px 0 0 10px;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition:right 0.3s ease;
    z-index: 1000
}
.contact-panel.open {
    right: 0
}
.contact-toggle {
    position: absolute;
    left: -30px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 60px;
    background-color: var(--primary-color);
    border-radius: 10px 0 0 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: #FFFFFF;
    transition: background-color 0.3s ease
}
.contact-content {
    padding: 20px;
    text-align: center
}
.profile-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--primary-color)
}
.contact-content h3 {
    margin-bottom: 10px;
    color: var(--text-color)
}
.contact-content p {
    margin-bottom: 20px;
    color: var(--text-color)
}
.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1)
}
.contact-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px)
}
.contact-btn i {
    margin-right: 8px
}
.schedule-title {
    margin-bottom: 1rem;
    min-height: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    max-width: 200px;
}
.schedule-filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    scrollbar-width: thin;  /* Firefox */
    padding-bottom: 10px;
    white-space: nowrap;
    width: 100%;
    max-width: 100%;
    position: relative;
}

/* Custom scrollbar styling for Webkit browsers */
.schedule-filters::-webkit-scrollbar {
    height: 6px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.schedule-filters::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 3px;
}

.schedule-filters::-webkit-scrollbar-thumb:hover {
    background-color: var(--secondary-color);
}

.day-filter-btn:hover {
    transform: translateY(-1px)
}
.day-filter-btn.active {
    background-color: var(--primary-color);
    color: #FFFFFF
}
.schedule {
    min-height: 600px;
    height: 670px;
    padding: 1rem;
    background: rgba(0,0,0,0.1);
    border-radius: 12px;
    overflow-y: auto
}
.schedule-title h2 {
    margin: 0;
    font-size: 1.8rem;
    line-height: 1
}
.schedule-logo {
    height: 1.8rem;
    width: auto
}
.tag-filter-icon {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    transition: transform 0.3s ease;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-left: auto; /* Push icon to the right */
}
.tag-filter-icon:hover {
    transform: scale(1.1);
}
.tag-filter-popup {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4)
}
.tag-filter-popup.show {
    display: flex;
    justify-content: center;
    align-items: center
}
.tag-filter-content {
    background-color: var(--card-background);
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px
}
body.dark-theme .tag-filter-content {
    background-color: rgba(30, 30, 30, 0.95)
}
.tag-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px
}
.tag-btn {
    padding: 5px 10px;
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    background-color: transparent;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease
}
.tag-btn.active {
    background-color: var(--primary-color);
    color: #FFFFFF
}
#apply-filter {
    width: 100%;
    max-width: 200px;
    padding: 10px;
    background-color: var(--primary-color);
    color: #FFFFFF;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: block;
    margin: 0 auto
}
#apply-filter:hover {
    background-color: var(--secondary-color)
}
#apply-filter:hover {
    background-color: var(--secondary-color)
}
.button-container {
    text-align: center;
    margin-top: 20px
}
.admin-modal-content {
    background-color: var(--background-color);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    transition: all 0.3s ease;
}
.admin-title {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1.5rem
}
.admin-input {
    margin-bottom: 1rem
}
.admin-input label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 700
}
.admin-input input {
    width: 100%;
    padding: 0.75rem;
    border-radius: 5px;
    border: 2px solid var(--secondary-color);
    box-sizing: border-box;
    font-size: 1rem;
    transition: border-color 0.3s ease
}
.admin-input input:focus {
    outline: none;
    border-color: var(--primary-color)
}
#admin-login {
    display: block;
    width: 100%;
    margin-top: 1rem
}
#shop-info {
    margin-bottom: 1rem
}
#shop-info .shop-icon {
    width: 50px;
    height: 50px;
    margin-right: 1rem
}
#toggle-shop-status {
    display: block;
    width: 100%
}
.admin-input label {
    display: block;
    margin-bottom: 0.5rem
}
.admin-input input {
    width: 100%;
    padding: 0.5rem;
    border-radius: 5px;
    border: 1px solid var(--secondary-color);
    box-sizing: border-box
}
.admin-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px
}
.remember-password-container {
    display: flex;
    align-items: center
}
.hidden {
    opacity: 0;
    pointer-events: none
}
.remember-password-container input {
    margin-right: 5px
}
#admin-login {
    display: block;
    width: 100%;
    margin-top: 1rem
}
.shop-info-panel {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    padding: 1rem;
    margin-bottom: 1.5rem
}
.admin-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: center;
}
.admin-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}
.admin-btn:hover {
    background-color: var(--secondary-color)
}
#admin-submit {
    display: block;
    width: 100%;
    margin-top: 1rem
}
.settings-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
    gap: 15px;
}
.settings-footer .btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease
}
.settings-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px
}
.settings-row .contact-btn {
    background-color: rgb(169 224 255)
}
.settings-row .contact-btn:hover {
    background-color: var(--primary-color)
}
body.dark-theme .settings-row .contact-btn {
    background-color: rgba(169, 224, 255, 0.2);
    color: var(--text-color)
}
body.dark-theme .settings-row .contact-btn:hover {
    background-color: rgba(169, 224, 255, 0.3)
}
.contact-btn.discord {
    background-color: #5865F2
}
.contact-btn.discord:hover {
    background-color: #4752C4
}
.settings-row .contact-btn {
    background-color: var(--primary-color)
}
.settings-row .contact-btn:hover {
    background-color: var(--secondary-color)
}
.settings-modal-content {
    max-width: 600px;
    width: 90%;
    margin: 5% auto;
    padding: 25px;
    background-color: var(--card-background);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}
.settings-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 25px;
}
.settings-column {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
#save-settings {
    background-color: var(--primary-color);
    color: #FFFFFF
}
#reset-colors {
    background-color: var(--secondary-color);
    color: var(--text-color)
}
body.dark-theme #save-settings {
    background-color: var(--primary-color-dark)
}
body.dark-theme #reset-colors {
    background-color: var(--secondary-color-dark)
}
#save-settings:hover {
    background-color: var(--button-hover-color);
    transform: translateY(-2px)
}
body.dark-theme #save-settings:hover {
    background-color: var(--primary-color)
}
#reset-colors {
    background-color: rgb(163 209 237);
    color: var(--text-color);
    min-width: 50px;
    display: block;
    margin-top: 1rem
}
body.dark-theme #reset-colors {
    background-color: rgb(73 73 73);
    color: #FFFFFF
}
#reset-colors:hover {
    opacity: 0.9
}
.settings-footer .btn:hover {
    opacity: 0.9
}
.settings-option {
    margin-bottom: 15px;
    transition: all 0.3s ease;
}
.settings-option label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}
.settings-option select,
.settings-option input[type="color"] {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    background-color: var(--input-background);
    color: var(--text-color);
    transition: all 0.3s ease;
}
.settings-option select:focus,
.settings-option input[type="color"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(var(--primary-color-rgb), 0.2);
}
.shop-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    will-change: transform; /* Add GPU acceleration */
    contain: content; /* Improve rendering performance */
}

.shop-card {
    display: flex;
    min-height: 300px;
    flex-direction: column;
    align-items: center;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.shop-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.shop-card-info {
    position: relative;
    z-index: 2;
    width: 100%;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
}

.shop-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    justify-content: flex-start;
}
.shop-info-text {
    flex: 1;
    text-align: left;
}

.shop-info-text h3 {
    font-size: 1.2rem;
    margin: 0 0 0.3rem 0;
    color: #fff;
    text-align: left;
}

.time-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    justify-content: flex-start;
}

.shop-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.2rem;
    justify-content: flex-start;
}

.day-badge {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.day-badge.current-day {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.today-indicator {
    background-color: rgba(255, 215, 0, 0.2);
    color: #FFD700;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.shop-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 2px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.shop-info-text {
    flex: 1;
}

.shop-info-text h3 {
    font-size: 1.2rem;
    margin: 0 0 0.3rem 0;
    color: #fff;
}

.time-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.time-display i {
    color: var(--primary-color);
}

.shop-card-time {
    margin: 0;
    font-size: 0.9rem;
}

.shop-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.shop-card:hover .shop-card-icon {
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.shop-card.time-open::after {
    content: '';
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 10px;
    height: 10px;
    background-color: #4CAF50;
    border-radius: 50%;
    box-shadow: 0 0 10px #4CAF50;
    z-index: 2;
}

/* Dark theme adjustments */
body.dark-theme .shop-card {
    background-color: var(--dark-card-bg-color);
}

@media screen and (max-width: 768px) {
    .shop-card {
        min-height: 250px;
        padding: 0.8rem;
    }

    .shop-card-icon {
        width: 40px;
        height: 40px;
    }

    .shop-info-text h3 {
        font-size: 1.1rem;
    }

    .day-badge {
        padding: 0.2rem 0.6rem;
        font-size: 0.8rem;
    }

    .today-indicator {
        font-size: 0.75rem;
    }
}

body.dark-theme .shop-card {
    background-color: var(--highlight-color);
}

body.dark-theme .shop-card.shop-closed {
    background-color: rgba(255, 255, 255, 0.05);
}

body:not(.dark-theme) .shop-card {
    background-color: #FFFFFF;
}

.shop-card-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 0.5rem;
}

.shop-card-info {
    text-align: center;
    width: 100%;
    padding: 0 0.5rem;
    box-sizing: border-box;
}

.shop-card-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.shop-card-info p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.shop-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

#weekly-shops {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.schedule-day {
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden; /* Prevent overflow */
    box-sizing: border-box;
    width: 100%;
}

body.dark-theme .schedule-day {
    background-color: var(--highlight-color);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.schedule-day h3 {
    margin-top: 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
    text-align: center;
    font-size: 1.3rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.dark-theme .schedule-day h3 {
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.schedule-shops {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.5rem;
    padding: 0.5rem;
    background-color: var(--card-background);
    border-radius: 0 0 5px 5px;
}

.schedule-shop {
    position: relative;
    border-radius: 8px;
    padding: 0.75rem;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.schedule-shop:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.schedule-shop a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    padding: 0.5rem;
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 6px;
    box-sizing: border-box;
}

body.dark-theme .schedule-shop a {
    background-color: rgba(30, 30, 30, 0.85);
    color: #fff;
}

.schedule-shop .shop-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 0.5rem auto;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    display: block;
}

.schedule-shop .shop-name {
    font-weight: bold;
    text-align: center;
    margin: 0.25rem 0;
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    max-width: 100%;
}

.schedule-shop .shop-time {
    font-size: 0.8rem;
    opacity: 0.9;
    text-align: center;
    margin-top: 0.25rem;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.combined-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background-color: var(--card-background);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 1200px;
    box-sizing: border-box;
}
.recommended-shops {
    position: relative;
    min-height: 600px;
    height: 670px;
    padding: 1rem;
    background: rgba(0,0,0,0.1);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden
}
.carousel-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    padding: 10px;
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 0 0 12px 12px
}
.carousel-dots {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 80%;
    padding: 5px
}
.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    opacity: 0.5;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 2px
}
.carousel-dot.active {
    opacity: 1;
    transform: scale(1.2);
    background-color: var(--primary-color)
}
.carousel-button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--text-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2
}
.carousel-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px)
}

/* Custom Scrollbar Styles */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
  background-color: var(--card-background)
}
::-webkit-scrollbar-thumb {
  background-color: var(--primary-color);
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: content-box;
  transition: background-color 0.3s ease
}
::-webkit-scrollbar-thumb:hover {
  background-color: var(--secondary-color)
}
::-webkit-scrollbar-track {
  background: var(--background-color);
  border-radius: 10px
}
/* Firefox Scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) var(--background-color)
}
/* Mobile Optimization */

.carousel-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem
}
.carousel-dots {
    display: flex;
    gap: 0.5rem;
    align-items: center
}
.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    opacity: 0.5;
    cursor: pointer;
    transition: all 0.3s ease
}
.carousel-dot.active {
    opacity: 1;
    transform: scale(1.2);
    background-color: var(--primary-color)
}
.carousel-button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--text-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease
}
.carousel-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px)
}
.carousel-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.2);
}

.carousel-progress {
    height: 100%;
    width: 0;
    background-color: #fff;
    transition: width 50ms linear;
}

/* Ensure featured items are always visible */
.featured-shop, .shop-card.featured, .schedule-shop.featured {
    z-index: 2;
    position: relative
}

.random-shop-card {
    transition: background-image 1s ease-in-out
}

/* Random Shop Glow Effect */
.random-shop-info.current-day {
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3),
                0 0 20px rgba(255, 165, 0, 0.2);
    border: 1px solid rgba(255, 215, 0, 0.5);
    animation: randomShopGlow 2s ease-in-out infinite;
    border-radius: 12px;
}

@keyframes randomShopGlow {
    0% {
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.3),
                    0 0 20px rgba(255, 165, 0, 0.2);
    }
    50% {
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.4),
                    0 0 30px rgba(255, 165, 0, 0.3);
    }
    100% {
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.3),
                    0 0 20px rgba(255, 165, 0, 0.2);
    }
}

/* Dark theme for Random Shop */
body.dark-theme .random-shop-info.current-day {
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3),
                0 0 20px rgba(255, 165, 0, 0.2);
    border: 1px solid rgba(255, 215, 0, 0.5);
    animation: randomShopGlowDark 2s ease-in-out infinite;
}

@keyframes randomShopGlowDark {
    0% {
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.3),
                    0 0 20px rgba(255, 165, 0, 0.2);
    }
    50% {
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.4),
                    0 0 30px rgba(255, 165, 0, 0.3);
    }
    100% {
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.3),
                    0 0 20px rgba(255, 165, 0, 0.2);
    }
}

/* Shop Card Glow Effect */
.shop-card.current-day {
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3),
                0 0 20px rgba(255, 165, 0, 0.2);
    border: 1px solid rgba(255, 215, 0, 0.5);
    animation: shopCardGlow 2s ease-in-out infinite;
}

@keyframes shopCardGlow {
    0% {
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.3),
                    0 0 20px rgba(255, 165, 0, 0.2);
    }
    50% {
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.4),
                    0 0 30px rgba(255, 165, 0, 0.3);
    }
    100% {
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.3),
                    0 0 20px rgba(255, 165, 0, 0.2);
    }
}

/* Dark theme for Shop Card */
body.dark-theme .shop-card.current-day {
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3),
                0 0 20px rgba(255, 165, 0, 0.2);
    border: 1px solid rgba(255, 215, 0, 0.5);
    animation: shopCardGlowDark 2s ease-in-out infinite;
}

@keyframes shopCardGlowDark {
    0% {
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.3),
                    0 0 20px rgba(255, 165, 0, 0.2);
    }
    50% {
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.4),
                    0 0 30px rgba(255, 165, 0, 0.3);
    }
    100% {
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.3),
                    0 0 20px rgba(255, 165, 0, 0.2);
    }
}

/* Carousel Active Shop Glow Effect */
.random-shop-info.carousel-active {
    box-shadow: 0 0 10px rgba(147, 112, 219, 0.3),
                0 0 20px rgba(147, 112, 219, 0.2);
    border: 1px solid rgba(147, 112, 219, 0.5);
    animation: carouselActiveGlow 2s ease-in-out infinite;
    border-radius: 12px;
}

@keyframes carouselActiveGlow {
    0% {
        box-shadow: 0 0 10px rgba(147, 112, 219, 0.3),
                    0 0 20px rgba(147, 112, 219, 0.2);
    }
    50% {
        box-shadow: 0 0 15px rgba(147, 112, 219, 0.4),
                    0 0 30px rgba(147, 112, 219, 0.3);
    }
    100% {
        box-shadow: 0 0 10px rgba(147, 112, 219, 0.3),
                    0 0 20px rgba(147, 112, 219, 0.2);
    }
}

/* Dark theme for Carousel Active */
body.dark-theme .random-shop-info.carousel-active {
    box-shadow: 0 0 10px rgba(147, 112, 219, 0.3),
                0 0 20px rgba(147, 112, 219, 0.2);
    border: 1px solid rgba(147, 112, 219, 0.5);
    animation: carouselActiveGlowDark 2s ease-in-out infinite;
}

@keyframes carouselActiveGlowDark {
    0% {
        box-shadow: 0 0 10px rgba(147, 112, 219, 0.3),
                    0 0 20px rgba(147, 112, 219, 0.2);
    }
    50% {
        box-shadow: 0 0 15px rgba(147, 112, 219, 0.4),
                    0 0 30px rgba(147, 112, 219, 0.3);
    }
    100% {
        box-shadow: 0 0 10px rgba(147, 112, 219, 0.3),
                    0 0 20px rgba(147, 112, 219, 0.2);
    }
}

/* Shop Card Carousel Active Glow */
.shop-card.carousel-active {
    box-shadow: 0 0 10px rgba(147, 112, 219, 0.3),
                0 0 20px rgba(147, 112, 219, 0.2);
    border: 1px solid rgba(147, 112, 219, 0.5);
    animation: shopCardCarouselGlow 2s ease-in-out infinite;
}

@keyframes shopCardCarouselGlow {
    0% {
        box-shadow: 0 0 10px rgba(147, 112, 219, 0.3),
                    0 0 20px rgba(147, 112, 219, 0.2);
    }
    50% {
        box-shadow: 0 0 15px rgba(147, 112, 219, 0.4),
                    0 0 30px rgba(147, 112, 219, 0.3);
    }
    100% {
        box-shadow: 0 0 10px rgba(147, 112, 219, 0.3),
                    0 0 20px rgba(147, 112, 219, 0.2);
    }
}

/* Schedule Day Carousel Active Glow */
.schedule-day[data-day].carousel-active {
    box-shadow: 0 0 10px rgba(147, 112, 219, 0.3),
                0 0 20px rgba(147, 112, 219, 0.2);
    border: 1px solid rgba(147, 112, 219, 0.5);
    animation: scheduleDayCarouselGlow 2s ease-in-out infinite;
}

@keyframes scheduleDayCarouselGlow {
    0% {
        box-shadow: 0 0 10px rgba(147, 112, 219, 0.3),
                    0 0 20px rgba(147, 112, 219, 0.2);
    }
    50% {
        box-shadow: 0 0 15px rgba(147, 112, 219, 0.4),
                    0 0 30px rgba(147, 112, 219, 0.3);
    }
    100% {
        box-shadow: 0 0 10px rgba(147, 112, 219, 0.3),
                    0 0 20px rgba(147, 112, 219, 0.2);
    }
}

/* Random Shop Glow Effect - Current Day (Special Case) */
.random-shop-info.current-day {
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3),
                0 0 20px rgba(255, 165, 0, 0.2);
    border: 1px solid rgba(255, 215, 0, 0.5);
    animation: randomShopGlow 2s ease-in-out infinite;
    border-radius: 12px;
}

/* Override carousel active style when it's also current day */
.random-shop-info.carousel-active.current-day {
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3),
                0 0 20px rgba(255, 165, 0, 0.2);
    border: 1px solid rgba(255, 215, 0, 0.5);
    animation: randomShopGlow 2s ease-in-out infinite !important;
}

.recommended-shops .random-shop-info.carousel-active {
    box-shadow: 0 0 10px rgba(147, 112, 219, 0.3),
                0 0 20px rgba(147, 112, 219, 0.2);
    border: 1px solid rgba(147, 112, 219, 0.5);
    animation: carouselActiveGlow 2s ease-in-out infinite !important;
}

/* Dark theme - maintain golden glow for current day */
body.dark-theme .random-shop-info.carousel-active.current-day {
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3),
                0 0 20px rgba(255, 165, 0, 0.2);
    border: 1px solid rgba(255, 215, 0, 0.5);
    animation: randomShopGlowDark 2s ease-in-out infinite !important;
}

body.dark-theme .recommended-shops .random-shop-info.carousel-active {
    box-shadow: 0 0 10px rgba(147, 112, 219, 0.3),
                0 0 20px rgba(147, 112, 219, 0.2);
    border: 1px solid rgba(147, 112, 219, 0.5);
    animation: carouselActiveGlowDark 2s ease-in-out infinite !important;
}

/* Dark theme overrides for carousel active items */
body.dark-theme .shop-card.carousel-active.current-day {
    box-shadow: 0 0 10px rgba(147, 112, 219, 0.3),
                0 0 20px rgba(147, 112, 219, 0.2);
    border: 1px solid rgba(147, 112, 219, 0.5);
    animation: shopCardCarouselGlow 2s ease-in-out infinite !important;
}

body.dark-theme .schedule-day[data-day].carousel-active.current-day {
    box-shadow: 0 0 10px rgba(147, 112, 219, 0.3),
                0 0 20px rgba(147, 112, 219, 0.2);
    border: 1px solid rgba(147, 112, 219, 0.5);
    animation: scheduleDayCarouselGlow 2s ease-in-out infinite !important;
}

#captcha-container {
    position: relative;  /* แก้ไขจาก absolute เป็น relative */
    transform: none;     /* ลบ transform */
    left: auto;         /* ลบ left */
    top: auto;          /* ลบ top */
    background: var(--bg-color);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 100%;        /* ให้กว้างเต็ม container */
    max-width: 400px;   /* จำกัดความกว้างสูงสุด */
}
.captcha-content h3 {
    margin-bottom: 15px;
    color: var(--text-color);
}

#captcha-widget {
    display: inline-block;
}

.info-value .tag {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(58, 124, 165, 0.6);
    color: var(--primary-color);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.7rem;
}

body.dark-theme .info-value .tag {
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #FFFFFF;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.7rem;
}

body.dark-theme .info-value .tag {
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #FFFFFF;
}

body.dark-theme .info-value .tag {
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #FFFFFF;
}

body.dark-theme .info-value .tag {
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #FFFFFF;
}

/* New Player Styles */
.new-player-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    will-change: opacity, visibility;
}

.new-player-container.show {
    opacity: 1;
    visibility: visible;
}

.new-player-popup {
    background-color: var(--card-background);
    padding: 1.5rem;
    border-radius: 0.8rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    max-width: 350px;
    width: 85%;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    will-change: transform;
}

.new-player-container.show .new-player-popup {
    transform: translateY(0);
}

.new-player-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center
}

.new-player-content h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    position: relative;
    padding-bottom: 0.6rem;
}

.new-player-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 3px;
}

.new-player-content h2::before {
    content: '🎮';
    display: block;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.new-player-content p {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.4;
}

.new-player-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    flex-wrap: wrap;
}

.new-player-buttons button {
    padding: 0.6rem 1rem;
    border-radius: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 0.9rem;
    flex: 1;
    min-width: 140px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.new-player-buttons button#new-player-yes {
    background-color: var(--primary-color);
    color: #FFFFFF;
    transform: translateY(0);
    transition: transform 0.2s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.new-player-buttons button#new-player-yes:hover {
    background-color: var(--secondary-color);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
}

.new-player-buttons button#new-player-no {
    background-color: var(--highlight-color);
    color: var(--text-color);
    transform: translateY(0);
    transition: transform 0.2s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.new-player-buttons button#new-player-no:hover {
    background-color: var(--button-hover-color);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
}

.new-player-container.show {
    opacity: 1;
    visibility: visible;
}

.new-player-container.show .new-player-popup {
    transform: scale(1);
}

/* End New Player Styles */

.today-badge {
    display: inline-block;
    font-size: 0.7rem;
    background-color: #4caf50;
    color: white;
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    margin-left: 0.5rem;
    vertical-align: middle;
    font-weight: normal;
    animation: pulseToday 2s infinite;
}

@keyframes pulseToday {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.schedule-day.current-day {
    order: -1;
    background-color: rgba(76, 175, 80, 0.1);
}

body.dark-theme .schedule-day.current-day {
    background-color: rgba(76, 175, 80, 0.15);
}

.status-label {
    position: absolute;
    top: 5px;
    right: 5px;
    padding: 0.1rem 0.4rem;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
}

.status-label.open {
    background-color: rgba(76, 175, 80, 0.9);
    color: white;
}

.status-label.closed {
    background-color: rgba(244, 67, 54, 0.9);
    color: white;
}

.schedule-shop.time-open .shop-time {
    font-weight: bold;
    color: #4caf50;
}

body.dark-theme .schedule-shop.time-open .shop-time {
    color: #81c784;
}

.schedule-shop.shop-closed {
    opacity: 0.7;
}

.schedule-shop.shop-closed .shop-icon {
    filter: grayscale(70%);
}

.schedule-shop.featured {
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
}

.schedule-shop.featured::before {
    content: '';
    position: absolute;
    top: -3px;
    right: -3px;
    width: 20px;
    height: 20px;
    background-color: gold;
    border-radius: 50%;
    z-index: 1;
}

/* Styles for permanently closed shops */
.shop-card.permanently-closed {
    opacity: 0.85;
    filter: grayscale(30%);
}

.shop-card.permanently-closed::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
    z-index: 1;
}

.closed-indicator {
    background-color: rgba(255, 59, 48, 0.2);
    color: #FF3B30;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 59, 48, 0.3);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.closed-indicator::before {
    content: '⚠️';
    font-size: 0.9em;
}

.shop-card-icon.grayscale {
    filter: grayscale(100%);
    opacity: 0.8;
}

/* Adjust shop card hover effects for closed shops */
.shop-card.permanently-closed:hover {
    transform: translateY(-3px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.shop-card.permanently-closed .shop-card-icon {
    border-color: rgba(255, 255, 255, 0.2);
}

.shop-card.permanently-closed:hover .shop-card-icon {
    transform: scale(1.05);
    border-color: rgba(255, 59, 48, 0.3);
}

/* Shop Card Closed Overlay */
.shop-card.permanently-closed::after {
    content: 'ร้านปิดให้บริการ';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    background-color: rgba(255, 59, 48, 0.9);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.2rem;
    z-index: 3;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.shop-card.permanently-closed::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
    border-radius: inherit;
}

/* Schedule Shop Closed Overlay */
.schedule-shop.permanently-closed::after {
    content: 'ร้านปิดให้บริการ';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    background-color: rgba(255, 59, 48, 0.9);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.9rem;
    z-index: 3;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.schedule-shop.permanently-closed::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
    border-radius: inherit;
}

/* Featured Shop Closed Overlay */
.featured-shop.permanently-closed::after {
    content: 'ร้านปิดให้บริการ';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    background-color: rgba(255, 59, 48, 0.9);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.5rem;
    z-index: 3;
    white-space: nowrap;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.featured-shop.permanently-closed::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
    border-radius: inherit;
}

/* Dark theme adjustments */
body.dark-theme .shop-card.permanently-closed::after,
body.dark-theme .schedule-shop.permanently-closed::after,
body.dark-theme .featured-shop.permanently-closed::after {
    background-color: rgba(255, 59, 48, 0.95);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

body.dark-theme .nav-link {
    color: var(--text-color-dark);
    background-color: rgba(0, 0, 0, 0.2);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

body.dark-theme .nav-link:hover {
    background-color: rgba(0, 0, 0, 0.3);
    color: var(--header-text-color-dark); /* ทำให้สีไม่จางเมื่อ hover ในโหมด dark */
}

body.dark-theme .nav-link::after {
    background: var(--header-text-color-dark);
}

body.dark-theme .theme-toggle {
    background-color: rgba(0, 0, 0, 0.3);
    color: var(--text-color-dark);
}

body.dark-theme .theme-toggle:hover {
    background-color: rgba(0, 0, 0, 0.4);
}

body.dark-theme .header-logo {
    border-color: rgba(255, 255, 255, 0.2);
}

body.dark-theme .logo-link:hover .header-logo {
    border-color: rgba(255, 255, 255, 0.5);
}

body.dark-theme header h1 {
    color: var(--header-text-color-dark);
}

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

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

.header-action-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #FFFFFF;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.header-action-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

body.dark-theme .header-action-btn {
    background-color: rgba(0, 0, 0, 0.3);
    color: var(--text-color-dark);
}

body.dark-theme .header-action-btn:hover {
    background-color: rgba(0, 0, 0, 0.4);
}

body.dark-theme header::before {
    opacity: 0.05;
    filter: brightness(0.8);
    background: var(--header-background-dark);
}