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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Admin Box UI */
body.admin-page .main-content,
.admin-header,
.content-section,
.stats-grid .stat-card,
.data-table,
.table-container,
.filters-section,
.filters-bar,
.payments-grid .payment-card,
.concert-grid .concert-card-admin,
.pagination,
.action-bar,
.admin-footer,
.ticket-detail__card,
.ticket-detail__header,
.ticket-detail__etickets {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.admin-header,
.content-section,
.filters-section,
.filters-bar,
.table-container,
.payments-grid .payment-card,
.concert-grid .concert-card-admin,
.ticket-detail__card,
.ticket-detail__header,
.ticket-detail__etickets {
    padding: 16px;
}

/* Tables inside box */
.table-container table.data-table {
    width: 100%;
    border-collapse: collapse;
}
.table-container table.data-table thead th {
    background: #f8fafc;
    font-weight: 600;
}
.table-container table.data-table thead th,
.table-container table.data-table tbody td {
    padding: 12px 14px;
    border-bottom: 1px solid #eef2f7;
}

/* Cards spacing */
.stats-grid { gap: 16px; }
.stats-grid .stat-card { padding: 16px; }

/* Filters and actions bar */
.filters-bar, .filters-section, .action-bar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.filters-bar .search-input { flex: 1; min-width: 220px; }

/* Responsive for admin */
@media (max-width: 768px) {
  .admin-header, .content-section, .filters-section, .filters-bar, .table-container { padding: 12px; }
  .stats-grid { grid-template-columns: 1fr; }
}

/* Ticket Detail Page */
.ticket-detail { max-width: 1100px; margin: 0 auto; padding: 16px; }
.ticket-detail__header { background: white; border-radius: 12px; padding: 16px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); margin-bottom: 16px; }
.ticket-detail__title { display: flex; align-items: center; gap: 10px; margin: 0; }
.ticket-detail__subtitle { color: #64748b; margin: 6px 0 0 0; }
.ticket-detail__card { background: white; border-radius: 12px; padding: 16px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.ticket-detail__footer { margin-top: 16px; }

.ticket-hero { display: grid; grid-template-columns: 240px 1fr; gap: 16px; align-items: start; }
.ticket-hero__image img { width: 100%; border-radius: 12px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); object-fit: cover; aspect-ratio: 9 / 16; }
.ticket-hero__title { margin: 0 0 10px 0; }
.ticket-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.ticket-info-card { background: #fff; border: 1px solid #eee; border-radius: 10px; padding: 12px; }
.ticket-info-card .label { font-size: .85rem; color: #64748b; }
.ticket-info-card .value { font-weight: 600; margin-top: 4px; }
.ticket-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }

.ticket-detail__etickets { margin-top: 16px; background: #fff; border-radius: 12px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); padding: 16px; }
.ticket-eticket-box { background: #fafafa; border: 1px dashed #ddd; border-radius: 10px; padding: 8px; }

@media (max-width: 768px) {
  .ticket-hero { grid-template-columns: 1fr; }
}

/* Admin pagination box */
.pagination-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    padding: 12px;
    margin-top: 16px;
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}

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

/* Navigation - Top Navbar */
.top-navbar {
    background: #fff;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    z-index: 1000;
    transition: all 0.3s ease;
}

.top-navbar .nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.top-navbar .nav-brand {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 24px;
    font-weight: 700;
    color: #ff6b6b;
    text-decoration: none;
    margin: 0;
    padding: 0;
    border-bottom: none;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.top-navbar .nav-brand:hover {
    opacity: 0.8;
    transform: scale(1.02);
}

.top-navbar .nav-brand i {
    margin-right: 8px;
}

.top-navbar .nav-brand .nav-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* Desktop Navigation Menu */
.top-navbar .nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
    flex: 1;
    justify-content: center;
    margin: 0 30px;
}

.nav-brand i {
    margin-right: 8px;
    font-size: 28px;
}


/* Desktop Nav Links */
.top-navbar .nav-link {
    text-decoration: none;
    color: #64748b;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    position: relative;
}

.top-navbar .nav-link:hover {
    color: #ff6b6b;
    background-color: #fff5f5;
    transform: translateY(-1px);
}

.top-navbar .nav-link.active {
    background-color: #ff6b6b;
    color: white;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
    font-weight: 600;
}

.top-navbar .nav-link i {
    font-size: 16px;
    margin: 0;
}

.top-navbar .nav-link span {
    font-size: 11px;
    line-height: 1;
}

/* Locale switcher in top navbar */
.top-navbar .locale-switcher.nav-locale {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-right: 16px;
    flex-shrink: 0;
}
.top-navbar .locale-switcher.nav-locale .locale-link {
    color: #64748b;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}
.top-navbar .locale-switcher.nav-locale .locale-link:hover {
    color: #ff6b6b;
    background-color: #fff5f5;
}
.top-navbar .locale-switcher.nav-locale .locale-link.active {
    color: #ff6b6b;
    font-weight: 600;
}
.top-navbar .locale-switcher.nav-locale .locale-sep {
    color: #cbd5e1;
    font-weight: 300;
}

/* Ensure user menu shows correctly on desktop navbar */
.top-navbar .user-menu {
    width: auto;
    margin: 0;
    padding-top: 0;
    border-top: none;
    position: relative;
}

/* Mobile Menu Styles */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 20px;
    color: #64748b;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background-color: #fff5f5;
    color: #ff6b6b;
}

.mobile-menu-overlay {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: #fff;
    box-shadow: -2px 0 20px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-menu-overlay.active .mobile-menu-content {
    transform: translateX(0);
}

.mobile-menu-header {
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-menu-header .nav-brand .nav-logo {
    height: 39px;
    width: auto;
    object-fit: contain;
    display: block;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #64748b;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.mobile-menu-close:hover {
    background-color: #fff5f5;
    color: #ff6b6b;
}

.mobile-locale-switcher {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-bottom: 1px solid #e5e7eb;
}
.mobile-locale-switcher .locale-link {
    color: #64748b;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}
.mobile-locale-switcher .locale-link:hover {
    color: #ff6b6b;
    background-color: #fff5f5;
}
.mobile-locale-switcher .locale-link.active {
    color: #ff6b6b;
    font-weight: 600;
}
.mobile-locale-switcher .locale-sep {
    color: #cbd5e1;
}

/* My Tickets page – tabs (pill style) */
.my-tickets-tabs {
    display: inline-flex;
    align-items: center;
    gap: 0;
    margin-bottom: 1.25rem;
    padding: 4px;
    background: #f1f5f9;
    border-radius: 12px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}
.my-tickets-tabs .my-tickets-tab-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #64748b;
    background: transparent;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.my-tickets-tabs .my-tickets-tab-btn:hover {
    color: #475569;
    background: rgba(255, 255, 255, 0.8);
}
.my-tickets-tabs .my-tickets-tab-btn.active {
    color: #fff;
    background: linear-gradient(135deg, #ea580c 0%, #dc2626 100%);
    box-shadow: 0 2px 6px rgba(234, 88, 12, 0.35);
}
.my-tickets-tabs .my-tickets-tab-btn i {
    font-size: 1rem;
    opacity: 0.9;
}
@media (max-width: 480px) {
    .my-tickets-tabs {
        width: 100%;
        justify-content: stretch;
    }
    .my-tickets-tabs .my-tickets-tab-btn {
        flex: 1;
        min-height: 42px;
        padding: 10px 12px;
        font-size: 0.9rem;
    }
}

.mobile-nav-menu {
    padding: 20px 0;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    text-decoration: none;
    color: #64748b;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f3f4f6;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background-color: #fff5f5;
    color: #ff6b6b;
    border-left: 4px solid #ff6b6b;
    padding-left: 16px;
}

.mobile-nav-link i {
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.mobile-nav-link span {
    font-size: 14px;
}

.nav-link i {
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.user-menu {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
    flex-shrink: 0;
    width: 100%;
    margin-bottom: 0;
    padding-left: 10px;
    padding-right: 10px;
    box-sizing: border-box;
    position: relative; /* anchor dropdown positioning */
}

.user-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%);
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    justify-content: center;
    text-align: center;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.2);
    min-width: fit-content;
    max-width: 200px;
    white-space: nowrap;
}

.user-btn-picture {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.user-btn:hover {
    background: linear-gradient(135deg, #ff5252 0%, #c92a2a 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

/* Responsive user button and menu */
/* Mobile logo size adjustment */
@media (max-width: 768px) {
    .top-navbar .nav-brand .nav-logo {
        height: 40px;
    }
}

@media (max-width: 768px) {
    .user-menu {
        padding-left: 8px;
        padding-right: 8px;
    }

    .user-btn {
        padding: 10px 12px;
        font-size: 14px;
        max-width: 160px;
    }
}

@media (max-width: 480px) {
    .user-btn {
        padding: 8px 10px;
        font-size: 13px;
        max-width: 140px;
        gap: 6px;
    }

    .user-btn i {
        font-size: 14px;
    }
}

.user-dropdown {
    position: absolute;
    top: 100%; /* ชิดด้านล่างของปุ่ม */
    right: 0; /* ชิดขวาของปุ่ม */
    margin-top: 8px; /* ระยะห่างจากปุ่ม */
    background: #ffffff; /* สีขาวทึบแทน rgba */
    backdrop-filter: blur(12px);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(255, 107, 107, 0.25);
    padding: 8px 0;
    min-width: 200px;
    max-width: 250px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    border: 2px solid #ff6b6b; /* ขอบสีแดงเพื่อให้เห็นชัด */
    z-index: 10001; /* สูงสุด */
    pointer-events: none; /* ป้องกันการ interact เมื่อซ่อนอยู่ */
    display: block; /* ให้แน่ใจว่า display เป็น block */
    box-sizing: border-box;
}

/* Show dropdown on user-btn hover/active or when active class is present */
.user-dropdown.active {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: auto !important; /* เปิดใช้งาน interaction เมื่อแสดงอยู่ */
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #374151;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 6px;
    margin: 2px 8px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    background: transparent;
    width: calc(100% - 16px);
    text-align: left;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(255, 82, 82, 0.1));
    color: #ff6b6b;
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.15);
}

.dropdown-item i {
    width: 16px;
    text-align: center;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.dropdown-item:hover i {
    opacity: 1;
}

/* Responsive dropdown */
@media (max-width: 768px) {
    .user-dropdown {
        position: fixed;
        left: 20px;
        right: 20px;
        top: auto;
        bottom: auto;
        min-width: auto;
        max-width: none;
        margin-top: 10px;
    }

    .dropdown-item {
        padding: 14px 16px;
        font-size: 16px; /* Prevent zoom on iOS */
        margin: 4px 4px;
        width: calc(100% - 8px);
    }
}

@media (max-width: 480px) {
    .user-dropdown {
        left: 10px;
        right: 10px;
        margin-top: 8px;
    }

    .dropdown-item {
        padding: 16px 12px;
        gap: 12px;
    }

    .dropdown-item i {
        width: 18px;
        font-size: 16px;
    }
}

.hamburger {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    background: white;
    padding: 10px;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #ff6b6b;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Mobile sidebar */
@media (max-width: 768px) {
    /* Top Navbar Mobile Styles */
    .top-navbar .nav-menu {
        display: none;
    }

    .top-navbar .locale-switcher.nav-locale {
        display: none; /* ใช้ TH | EN ใน mobile menu overlay แทน */
    }

    .mobile-menu-btn {
        display: block !important;
    }

    .top-navbar .user-menu {
        /* แสดงเมนูผู้ใช้บนมือถือด้วย และจัดรูปแบบให้เหมาะกับแถบด้านบน */
        display: block !important;
        width: auto;
        margin: 0;
        padding-top: 0;
        border-top: none;
    }

    /* Legacy sidebar styles for admin pages */
    body.admin-page .main-content {
        margin-left: 0;
    }

    body:not(.admin-page) .main-content {
        margin-left: 0;
    }

    body.admin-page .navbar {
        transform: translateX(-100%);
        width: 280px;
    }

    body:not(.admin-page) .navbar {
        transform: translateX(-100%);
        width: 280px;
    }

    body.admin-page .navbar.active {
        transform: translateX(0);
    }

    body:not(.admin-page) .navbar.active {
        transform: translateX(0);
    }

    body.admin-page .hamburger {
        display: flex !important;
        z-index: 101;
    }

    body.admin-page .main-content {
        margin-left: 0 !important;
    }

    body:not(.admin-page) .hamburger {
        display: flex !important;
        z-index: 101;
    }

    body.admin-page .sidebar-overlay.active {
        display: block !important;
        opacity: 1;
    }

    body:not(.admin-page) .sidebar-overlay.active {
        display: block !important;
        opacity: 1;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .nav-menu .nav-link {
        margin: 5px 0;
        font-size: 16px;
        padding: 15px 20px 15px 15px;
        justify-content: flex-start;
        gap: 10px;
    }

    .nav-link span {
        display: inline;
    }

    .hero {
        padding: 80px 0 60px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
        min-width: 0; /* Prevent grid overflow */
    }

    .container {
        max-width: 100%;
        padding: 0 15px;
    }

    .hero-container {
        max-width: 100%;
        padding: 0 15px;
        min-width: 0; /* Prevent grid overflow */
    }

    .hero-content {
        min-width: 0; /* Prevent grid item overflow */
        max-width: 100%;
    }

    .hero-image {
        min-width: 0; /* Prevent grid item overflow */
        max-width: 100%;
    }
}

/* Admin page layout - apply sidebar margin only on desktop */
@media (min-width: 769px) {
    body.admin-page.main-content {
        margin-left: 280px !important;
    }

    /* Higher specificity for admin pages */
    html body.admin-page .main-content {
        margin-left: 280px !important;
    }
}

/* Allow overlay to appear on mobile when menu opens */
body.admin-page .sidebar-overlay {
    display: none; /* hidden by default; will be toggled by .active */
}

body.admin-page .nav-link span {
    display: inline;
}

body.admin-page .nav-link i {
    margin-right: 12px;
}

/* Mobile adjustments for admin pages */
@media (max-width: 768px) {
    body.admin-page .main-content {
        margin-left: 0 !important;
    }
}

/* Lock body scroll when sidebar is open */
body.sidebar-open {
    overflow: hidden;
}

/* Mobile menu popup styles */
.mobile-menu-popup { 
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9998;
}
.mobile-menu-popup.active { 
    display: block !important; 
}
.mobile-menu-popup.active ~ .floating-menu-btn {
    display: none !important;
}
.mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 9998;
    pointer-events: auto;
}
.mobile-menu-dialog {
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 10000;
    right: 0;
    background: #fff;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.15);
    z-index: 1101;
    transform: translateY(100%);
    transition: transform 0.25s ease;
    max-height: 80vh;
    overflow-y: auto;
}
.mobile-menu-popup.active .mobile-menu-dialog { transform: translateY(0); }
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    position: relative;
    z-index: 10000;
    border-bottom: 1px solid #eee;
}

.mobile-menu-header .nav-brand .nav-logo {
    height: 39px;
    width: auto;
    object-fit: contain;
    display: block;
}
.close-mobile-menu {
    border: none;
    background: transparent;
    position: relative;
    z-index: 10001;
    cursor: pointer;
    font-size: 20px;
    cursor: pointer;
}
.mobile-menu-content { padding: 12px 16px 20px; }
.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 10px;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
}
.mobile-nav-link:hover { background: #f5f7fb; }
.mobile-logout {
    width: 100%;
    margin-top: 10px;
    border: none;
    padding: 12px;
    background: #ef4444;
    color: #fff;
    border-radius: 10px;
    cursor: pointer;
}
@media (min-width: 1025px) {
    .mobile-menu-popup { display: none !important; }
}

/* Main Content Layout */
.main-content {
    padding: 90px 20px 20px 20px;
    transition: all 0.3s ease;
}

/* Admin page main content with sidebar (desktop only) */
@media (min-width: 769px) {
    body.admin-page .main-content {
        margin-left: 280px;
        padding-top: 20px;
    }
}

/* Homepage specific styles */
body:not(.admin-page) .main-content {
    padding-top: 90px;
}

/* แสดง navbar ในทุกหน้า */
.navbar {
    display: block;
}

/* Hide navbar until authentication check passes - must be after all other navbar rules */
/* Use highest specificity to override all other rules */
html body.admin-page #navbar.navbar.navbar-hidden,
html body.admin-page .navbar.navbar-hidden,
body.admin-page #navbar.navbar.navbar-hidden,
#navbar.navbar.navbar-hidden,
.navbar.navbar-hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    transform: translateX(-100%) !important;
}

/* Override navbar-hidden when active class is present - must use same or higher specificity */
/* Desktop: Show navbar when active */
@media (min-width: 1025px) {
    html body.admin-page #navbar.navbar.active,
    html body.admin-page .navbar.active,
    body.admin-page #navbar.navbar.active,
    #navbar.navbar.active,
    .navbar.active {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: translateX(0) !important;
        position: fixed !important;
        left: 0 !important;
        top: 0 !important;
        bottom: 0 !important;
    }
}

/* Mobile/Tablet: Only show navbar when sidebar-open class is present on body */
/* This overrides inline styles from JavaScript - using maximum specificity */
@media (max-width: 1024px) {
    html body.admin-page:not(.sidebar-open) #navbar.navbar.active,
    html body.admin-page:not(.sidebar-open) .navbar.active,
    body.admin-page:not(.sidebar-open) #navbar.navbar.active,
    body.admin-page:not(.sidebar-open) .navbar.active,
    html body.admin-page:not(.sidebar-open) nav#navbar.navbar.active,
    body.admin-page:not(.sidebar-open) nav#navbar.navbar.active {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        transform: translateX(-100%) !important;
    }
    
    /* Additional rule to override inline styles with style attribute */
    html body.admin-page:not(.sidebar-open) nav#navbar.navbar.active[style],
    body.admin-page:not(.sidebar-open) nav#navbar.navbar.active[style] {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        transform: translateX(-100%) !important;
    }
}

/* Admin Sidebar Navigation - Desktop */
body.admin-page .navbar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%);
    box-shadow: 2px 0 10px rgba(255, 107, 107, 0.2);
    z-index: 100;
    overflow-y: auto;
    overflow-x: hidden;
    /* ✅ Flex layout เพื่อให้ nav-menu แสดงผลถูกต้อง */
    display: flex;
    flex-direction: column;
    height: 100vh;
}

body.admin-page .nav-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background-color: white;
    flex-shrink: 0; /* ✅ ไม่ให้ nav-header หดตัว */
}

/* Admin sidebar locale switcher – pill style */
body.admin-page #navbar .nav-header .locale-switcher {
    display: inline-flex;
    align-items: center;
    background: #f1f5f9;
    border-radius: 20px;
    padding: 2px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}
body.admin-page #navbar .nav-header .locale-switcher .locale-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
    border-radius: 18px;
    transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
body.admin-page #navbar .nav-header .locale-switcher .locale-link:hover {
    color: #475569;
    background: rgba(255, 255, 255, 0.7);
}
body.admin-page #navbar .nav-header .locale-switcher .locale-link.active {
    color: #fff;
    background: linear-gradient(135deg, #ea580c 0%, #dc2626 100%);
    box-shadow: 0 1px 3px rgba(234, 88, 12, 0.4);
}
body.admin-page #navbar .nav-header .locale-switcher .locale-sep {
    width: 1px;
    height: 14px;
    background: #cbd5e1;
    margin: 0 2px;
    flex-shrink: 0;
}

body.admin-page .nav-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: #333;
    text-decoration: none;
    margin-bottom: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 200px;
}

body.admin-page .nav-brand:hover {
    opacity: 0.8;
    transform: scale(1.02);
}

body.admin-page .nav-brand .nav-logo {
    width: 100%;
    height: auto;
    max-height: 40px;
    object-fit: contain;
    display: block;
}

/* ✅ Nav User Info Section - Desktop */
body.admin-page .nav-user-info-section {
    flex-shrink: 0; /* ไม่ให้ nav-user-info-section หดตัว */
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
}

body.admin-page .nav-menu {
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: visible;
    flex: 1; /* ✅ ให้ nav-menu ขยายเต็มพื้นที่ที่เหลือ */
    min-height: 0; /* ✅ อนุญาตให้ flex item หดตัวได้ */
    overflow-y: auto; /* ✅ ให้ nav-menu scroll ได้ */
}

/* Menu Section Styling */
/* ✅ Menu sections (except feature-section และ admin-only สำหรับ role-organizer — ใช้กฎเดียว desktop/mobile) */
body.admin-page .nav-menu .menu-section:not(.feature-section):not([data-section="features"]):not([data-section="admin-only"]) {
    display: block; /* ✅ แสดง menu-section หลัก + settings */
    visibility: visible;
    opacity: 1;
    margin-bottom: 20px;
}
/* ✅ แสดง admin-only — การซ่อนรายเมนูใช้ OrganizerExcludedMenuIds (data-menu-id) จาก base-admin เท่านั้น
   ไม่ซ่อนทั้งหมวด — ให้ manage-plans ควบคุมรายเมนูทีละรายการได้ */
body.admin-page .nav-menu .menu-section[data-section="admin-only"] {
    display: block;
    visibility: visible;
    opacity: 1;
    margin-bottom: 20px;
}

/* ✅ Feature-section: controlled by JavaScript (updateFeatureSectionVisibility) */
body.admin-page .nav-menu .menu-section.feature-section,
body.admin-page .nav-menu .menu-section[data-section="features"] {
    /* อย่าบังคับแสดง — ให้ JavaScript ควบคุมตาม subscription plan */
    display: none; /* ✅ เริ่มต้นซ่อน — JavaScript จะแสดงถ้ามี feature links ที่ visible */
    visibility: hidden;
    opacity: 0;
    margin-bottom: 20px;
}

body.admin-page .nav-menu .menu-section:last-child {
    margin-bottom: 0;
}

/* Menu Section Header */
body.admin-page .nav-menu .menu-section-header {
    display: flex !important;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    margin-bottom: 10px;
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.15);
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

body.admin-page .nav-menu .menu-section-header i {
    font-size: 12px;
    opacity: 0.8;
    color: rgba(255, 255, 255, 0.8);
}

body.admin-page .nav-menu .menu-section-header span {
    flex: 1;
    font-weight: 700;
}

/* Feature Section - Visibility controlled by JavaScript (updateFeatureSectionVisibility) */
body.admin-page .nav-menu .menu-section.feature-section,
body.admin-page .nav-menu .menu-section[data-section="features"] {
    /* อย่าบังคับแสดง — ให้ JavaScript ควบคุมตาม subscription plan */
    /* Default: hidden until JavaScript checks subscription and shows if needed */
    display: none !important; /* ✅ เริ่มต้นซ่อน — JavaScript จะแสดงถ้ามี feature links ที่ visible */
    visibility: hidden !important;
    opacity: 0 !important;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ✅ Mobile: Feature-section visibility controlled by JavaScript (checkFeatureAccess + updateFeatureSectionVisibility) */
@media (max-width: 1024px) {
    /* อย่าบังคับแสดง feature-section และ feature-link — ให้ JavaScript ควบคุมตาม subscription plan */
    /* Feature section visibility will be handled by JavaScript based on subscription plan */
    
    /* ✅ Hide feature-links that should be hidden (based on plan) - respect inline style */
    body.admin-page.sidebar-open #navbar.navbar .nav-menu .menu-section.feature-section .nav-link.feature-link[style*="display: none"] {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
    
    /* ✅ Feature-links without inline style should respect JavaScript control (don't force show) */
    /* JavaScript will set display: flex for allowed features, display: none for disallowed */
}

/* Feature section visibility will be handled by JavaScript */
/* CSS :has() selector may not be fully supported in all browsers */

body.admin-page .nav-menu .nav-link {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 12px 20px;
    border-radius: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    justify-content: flex-start;
    text-align: left;
    margin: 0;
    border-left: 3px solid transparent;
}

body.admin-page .nav-menu .nav-link:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
    border-left-color: white;
}

body.admin-page .nav-menu .nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border-left-color: white;
    font-weight: 600;
}

body.admin-page .hamburger {
    display: none;
}

/* เมนูหน้าแรก */
body:not(.admin-page) .homepage-menu {
    display: block;
}

body:not(.admin-page) .admin-menu {
    display: none;
}

/* เมนูหลังบ้าน */
body.admin-page .homepage-menu {
    display: none;
}

body.admin-page .admin-menu {
    display: block;
}

/* Hamburger menu for all pages */
.hamburger {
    display: none; /* Hidden by default */
}

/* Show hamburger on mobile */
@media (max-width: 768px) {
    .hamburger {
        display: flex !important;
    }
}

/* Overlay for mobile sidebar */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* Floating menu button for mobile */
.floating-menu-btn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: auto;
    user-select: none;
}

.floating-menu-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.floating-menu-btn:active {
    transform: scale(0.95);
}

.floating-menu-btn i { 
    font-size: 20px; 
    pointer-events: none;
}

@media (max-width: 1024px) {
    .floating-menu-btn {
        display: inline-flex !important;
    }
}

/* Force show menu triggers on admin mobile/tablet — only when logged in */
@media (max-width: 1024px) {
    html body.admin-page #floatingMenuBtn { display: inline-flex !important; }
    html body.admin-page .hamburger {
        display: flex !important;
        top: 12px;
        left: 12px;
        z-index: 1001;
    }
    /* show header menu button on mobile as fallback */
    html body.admin-page .header-menu-btn { display: inline-flex !important; }

    /* ซ่อนปุ่มเมนูเมื่อยังไม่ได้ล็อกอิน (ต้องชนะกฎด้านบน) */
    html body.admin-page:not(.admin-logged-in) #hamburger,
    html body.admin-page:not(.admin-logged-in) #floatingMenuBtn,
    html body.admin-page:not(.admin-logged-in) #headerMenuBtn,
    html body.admin-page:not(.admin-logged-in) .header-menu-btn {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    /* Hide navbar if it has navbar-hidden class - must override all other rules */
    html body.admin-page #navbar.navbar.navbar-hidden,
    html body.admin-page.sidebar-open #navbar.navbar.navbar-hidden {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }

    /* Override navbar-hidden when active class is present - must use same or higher specificity */
    /* On mobile, only show navbar when sidebar-open class is present */
    html body.admin-page.sidebar-open #navbar.navbar.active,
    body.admin-page.sidebar-open #navbar.navbar.active {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: translateX(0) !important;
    }
    
    /* Hide navbar on mobile even if active class is present (unless sidebar-open on body) */
    /* This overrides inline styles from JavaScript - using maximum specificity */
    html body.admin-page:not(.sidebar-open) #navbar.navbar.active,
    body.admin-page:not(.sidebar-open) #navbar.navbar.active,
    html body.admin-page:not(.sidebar-open) nav#navbar.navbar.active,
    body.admin-page:not(.sidebar-open) nav#navbar.navbar.active {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        transform: translateX(-100%) !important;
    }
    
    /* Additional rule to override inline styles with style attribute */
    html body.admin-page:not(.sidebar-open) nav#navbar.navbar.active[style],
    body.admin-page:not(.sidebar-open) nav#navbar.navbar.active[style] {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        transform: translateX(-100%) !important;
    }

    /* Show sidebar on mobile when active - desktop style */
    /* Override inline styles when sidebar-open class is present on body */
    body.admin-page.sidebar-open #navbar.navbar,
    html body.admin-page.sidebar-open #navbar.navbar {
        transform: translateX(0) !important;
        width: 280px !important;
        z-index: 999999 !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        height: 100vh !important;
        background: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%) !important;
        box-shadow: 2px 0 10px rgba(255, 107, 107, 0.2) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        /* ✅ Flex layout เพื่อให้ nav-menu แสดงผลถูกต้องบน mobile */
        display: flex !important;
        flex-direction: column !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
    
    /* Force hide navbar on mobile when sidebar-open is NOT present (override inline styles) */
    body.admin-page:not(.sidebar-open) #navbar.navbar[style*="display: block"],
    html body.admin-page:not(.sidebar-open) #navbar.navbar[style*="display: block"] {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        transform: translateX(-100%) !important;
    }

    /* Ensure nav-header is visible */
    body.admin-page.sidebar-open #navbar.navbar .nav-header {
        display: flex !important;
        padding: 12px 20px !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
        background-color: white !important;
        flex-shrink: 0 !important; /* ✅ ไม่ให้ nav-header หดตัว */
    }
    
    /* ✅ Ensure nav-user-info-section is visible and doesn't take too much space */
    body.admin-page.sidebar-open #navbar.navbar .nav-user-info-section {
        display: block !important;
        flex-shrink: 0 !important; /* ✅ ไม่ให้ nav-user-info-section หดตัว */
        padding: 15px 20px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
        background: transparent !important;
    }

    /* Ensure nav-menu is visible */
    body.admin-page.sidebar-open #navbar.navbar .nav-menu {
        display: flex !important;
        flex-direction: column !important;
        padding: 10px 0 !important;
        gap: 0 !important;
        flex: 1 !important; /* ✅ ให้ nav-menu ขยายเต็มพื้นที่ที่เหลือ */
        overflow-y: auto !important;
        overflow-x: hidden !important;
        min-height: 0 !important; /* ✅ อนุญาตให้ flex item หดตัวได้ */
        background: transparent !important;
        margin: 0 !important;
        position: relative !important;
        -webkit-overflow-scrolling: touch !important; /* ✅ Smooth scrolling บน iOS */
    }

    /* ✅ Menu Section on Mobile — กฎเดียวกับ desktop: แสดง main, settings; admin-only เฉพาะ admin; feature ตาม JS */
    /* แสดง menu-section ทุกอันยกเว้น feature-section และ admin-only (admin-only จัดการแยกด้านล่าง) */
    body.admin-page.sidebar-open #navbar.navbar .nav-menu .menu-section:not(.feature-section):not([data-section="features"]):not([data-section="admin-only"]) {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        margin-bottom: 15px !important;
    }
    /* แสดง admin-only — การซ่อนรายเมนูใช้ OrganizerExcludedMenuIds (data-menu-id) จาก base-admin เท่านั้น */
    body.admin-page.sidebar-open #navbar.navbar .nav-menu .menu-section[data-section="admin-only"] {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        margin-bottom: 15px !important;
    }

    /* ✅ Feature-section on Mobile: controlled by JavaScript (updateFeatureSectionVisibility) */
    body.admin-page.sidebar-open #navbar.navbar .nav-menu .menu-section.feature-section,
    body.admin-page.sidebar-open #navbar.navbar .nav-menu .menu-section[data-section="features"] {
        /* อย่าบังคับแสดง — ให้ JavaScript ควบคุมตาม subscription plan */
        /* JavaScript will set display: block if has visible feature links, display: none otherwise */
    }

    body.admin-page.sidebar-open #navbar.navbar .nav-menu .menu-section-header {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        padding: 10px 20px !important;
        font-size: 11px !important;
        margin-bottom: 8px !important;
        margin-top: 5px !important;
        color: rgba(255, 255, 255, 0.7) !important;
        border-bottom: 2px solid rgba(255, 255, 255, 0.15) !important;
        background-color: rgba(255, 255, 255, 0.05) !important;
    }

    /* ✅ Nav-links are visible (except feature-link — controlled by subscription plan) */
    body.admin-page.sidebar-open #navbar.navbar .nav-menu .nav-link:not(.feature-link):not([data-feature]) {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        align-items: center !important;
        gap: 12px !important;
        padding: 15px 20px !important;
        color: rgba(255, 255, 255, 0.9) !important;
        text-decoration: none !important;
        background: transparent !important;
        border-radius: 0 !important;
        border: none !important;
        margin: 0 !important;
        font-size: 14px !important;
        font-weight: 500 !important;
        line-height: 1.4 !important;
    }
    
    /* ✅ Feature-links: controlled by JavaScript (checkFeatureAccess) — respect inline style */
    body.admin-page.sidebar-open #navbar.navbar .nav-menu .nav-link.feature-link,
    body.admin-page.sidebar-open #navbar.navbar .nav-menu .nav-link[data-feature] {
        /* อย่าบังคับแสดง — ให้ JavaScript ควบคุมตาม subscription plan */
        /* JavaScript will set display: flex for allowed features, display: none for disallowed */
        /* Respect inline style set by checkFeatureAccess() */
    }

    body.admin-page.sidebar-open #navbar.navbar .nav-menu .nav-link:not(.feature-link):not([data-feature]):hover {
        color: white !important;
        background-color: rgba(255, 255, 255, 0.15) !important;
        transform: translateX(5px) !important;
    }

    body.admin-page.sidebar-open #navbar.navbar .nav-menu .nav-link:not(.feature-link):not([data-feature]).active {
        background-color: rgba(255, 255, 255, 0.25) !important;
        color: white !important;
        font-weight: 600 !important;
        border-left: 3px solid rgba(255, 255, 255, 0.8) !important;
    }

    /* Ensure nav-links icons are visible */
    body.admin-page.sidebar-open #navbar.navbar .nav-menu .nav-link i {
        display: inline-block !important;
        width: 16px !important;
        text-align: center !important;
        font-size: 14px !important;
        opacity: 0.9 !important;
    }

    /* Ensure nav-links text is visible */
    body.admin-page.sidebar-open #navbar.navbar .nav-menu .nav-link span {
        display: inline !important;
        flex: 1 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    /* Ensure nav-footer is visible */
    body.admin-page.sidebar-open #navbar.navbar .nav-footer {
        display: block !important;
        padding: 20px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
        background: transparent !important;
    }

    html body.admin-page.sidebar-open #sidebarOverlay.sidebar-overlay {
        display: block !important;
        opacity: 1 !important;
        z-index: 9999 !important;
    }
}

/* Sidebar (navbar) slide-in behavior on mobile/tablet */
@media (max-width: 1024px) {
    body.admin-page #navbar.navbar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 260px;
        background: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%);
        box-shadow: 2px 0 12px rgba(0,0,0,0.08);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
        overflow-x: hidden;
        /* ✅ Flex layout เพื่อให้ nav-menu แสดงผลถูกต้องบน mobile */
        display: flex;
        flex-direction: column;
    }
    /* Only show navbar when sidebar-open class is present on body */
    body.admin-page.sidebar-open #navbar.navbar {
        transform: translateX(0);
    }
    
    /* Hide navbar on mobile even if active class is present (unless sidebar-open) */
    body.admin-page #navbar.navbar.active:not(.sidebar-open) {
        transform: translateX(-100%);
    }
    
    /* Hide navbar until authentication check passes - mobile/tablet */
    body.admin-page #navbar.navbar.navbar-hidden {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        transform: translateX(-100%) !important;
    }

    /* Override navbar-hidden when active class is present - mobile/tablet */
    /* Only show navbar when sidebar-open class is present on body */
    body.admin-page.sidebar-open #navbar.navbar.active {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: translateX(0) !important;
    }
    
    /* Hide navbar on mobile even if active class is present (unless sidebar-open on body) */
    /* This overrides inline styles from JavaScript */
    body.admin-page:not(.sidebar-open) #navbar.navbar.active {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        transform: translateX(-100%) !important;
    }

    /* Overlay */
    body.admin-page #sidebarOverlay.sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.35);
        display: none;
        opacity: 0;
        transition: opacity 0.2s ease;
        z-index: 900;
    }
    body.admin-page #sidebarOverlay.sidebar-overlay.active {
        display: block;
        opacity: 1;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%);
    padding: 120px 0 80px;
    color: white;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    contain: layout; /* Improve layout containment */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%" r="50%"><stop offset="0%" stop-color="%23ffffff" stop-opacity="0.1"/><stop offset="100%" stop-color="%23ffffff" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="200" r="100" fill="url(%23a)"/><circle cx="800" cy="300" r="150" fill="url(%23a)"/><circle cx="400" cy="700" r="120" fill="url(%23a)"/></svg>');
    opacity: 0.3;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px; /* Match other containers */
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    min-width: 0; /* Prevent grid overflow */
}

/* Desktop optimization for hero section */
@media (min-width: 1024px) {
    .hero {
        padding: 30px 0 50px;
    }

    .hero-container {
        max-width: 1200px;
        padding: 0 40px; /* Slightly more padding on desktop for better spacing */
        gap: 80px;
        min-width: 0; /* Prevent grid overflow */
    }

    .hero-content {
        min-width: 0; /* Prevent grid item overflow */
        max-width: 100%;
    }

    .hero-image {
        min-width: 0; /* Prevent grid item overflow */
        max-width: 100%;
    }

    .hero-title {
        font-size: 52px;
        margin-bottom: 24px;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 19px;
        margin-bottom: 50px;
        line-height: 1.6;
    }

    .hero-stats {
        gap: 50px;
    }

    .stat-number {
        font-size: 36px;
    }

    .stat-label {
        font-size: 16px;
    }

    .search-container {
        max-width: 550px;
    }
}

@media (min-width: 1200px) {
    .hero-container {
        max-width: 1200px;
        padding: 0 60px; /* Consistent with other large containers */
        gap: 100px;
        min-width: 0; /* Prevent grid overflow */
    }

    .hero-content {
        min-width: 0; /* Prevent grid item overflow */
    }

    .hero-image {
        min-width: 0; /* Prevent grid item overflow */
    }

    .hero-title {
        font-size: 56px;
    }

    .hero-subtitle {
        font-size: 20px;
    }
}

@media (min-width: 1600px) {
    .hero-container {
        max-width: 1200px;
        padding: 0 80px; /* Consistent with other extra large containers */
        gap: 120px;
        min-width: 0; /* Prevent grid overflow */
    }

    .hero-content {
        min-width: 0; /* Prevent grid item overflow */
    }

    .hero-image {
        min-width: 0; /* Prevent grid item overflow */
    }

    .hero-title {
        font-size: 64px;
        margin-bottom: 28px;
    }

    .hero-subtitle {
        font-size: 22px;
        margin-bottom: 60px;
    }

    .hero-stats {
        gap: 60px;
    }

    .stat-number {
        font-size: 40px;
    }

    .stat-label {
        font-size: 18px;
    }

    .search-container {
        max-width: 600px;
    }
}

.hero-content {
    width: 100%;
    max-width: 100%;
    min-width: 0; /* Prevent grid item overflow */
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: visible;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative; /* Ensure proper positioning */
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.gradient-text {
    background: linear-gradient(45deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-search {
    margin-bottom: 50px;
}

.search-container {
    position: relative;
    max-width: 500px;
    width: 100%;
    min-width: 0; /* Prevent overflow */
    box-sizing: border-box;
}

.search-input {
    width: 100%;
    max-width: 100%;
    padding: 18px 60px 18px 20px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.search-input:focus {
    outline: none;
    background: white;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.2);
}

.search-btn:hover {
    background: linear-gradient(135deg, #ff5252 0%, #c92a2a 100%);
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.hero-stats {
    display: flex;
    gap: 40px;
    width: 100%;
    max-width: 100%;
    min-width: 0; /* Prevent flex overflow */
    box-sizing: border-box;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.8;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 100%;
    min-width: 0; /* Prevent grid item overflow */
    box-sizing: border-box;
    overflow-x: hidden;
    position: relative; /* Ensure proper positioning */
}

.hero-slider {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.slider-container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
}

.slider-wrapper {
    /* Width will be set dynamically by JavaScript: 100% * number of cards */
    box-sizing: border-box;
    display: flex;
    transition: transform 0.3s ease;
    will-change: transform;
}

.slider-card {
    /* Width will be set dynamically by JavaScript: 100% / number of cards */
    box-sizing: border-box;
    flex-shrink: 0;
    flex-grow: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 0;
}

.hero-card {
    background: white;
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    color: #333;
    max-width: 350px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.hero-card .card-header,
.hero-card .card-price {
    padding: 20px 30px;
}

.card-header {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding: 20px 30px 0 30px;
}

.card-date {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%);
    color: white;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    min-width: 60px;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.2);
}

.date-day {
    display: block;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.date-month {
    display: block;
    font-size: 12px;
    opacity: 0.8;
}

.card-info h3,
.card-info .hero-card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #1e293b;
}

.card-info p {
    color: #64748b;
    font-size: 14px;
}

.card-image {
    width: 100%;
    margin-bottom: 20px;
}

/* Hero card image - 9:16 aspect ratio (portrait) */
.hero-image .card-image,
.hero-card .card-image,
#heroImageWrap,
.hero-image #heroImageWrap,
.hero-card #heroImageWrap,
.slider-card .hero-card .card-image,
.lider-card .hero-card .card-image,
#heroSlider .hero-card .card-image,
#sliderWrapper .hero-card .card-image,
#heroSlider .lider-card .hero-card .card-image,
#sliderWrapper .lider-card .hero-card .card-image {
    width: 100% !important;
    max-width: 100% !important;
    height: 0 !important;
    padding-bottom: 177.78% !important; /* 16/9 * 100% = 177.78% for 9:16 portrait */
    aspect-ratio: 9/16 !important;
    display: block !important;
    overflow: hidden !important;
    border-radius: 0 !important; /* Remove border-radius to match card edges */
    position: relative !important;
    box-sizing: border-box;
    margin-bottom: 0 !important; /* Remove margin since card has no padding */
    background-color: #f0f0f0;
}

.card-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px 30px 30px;
    border-top: 1px solid #e2e8f0;
}

.price-label {
    color: #64748b;
    font-size: 14px;
}

.price-amount {
    font-size: 24px;
    font-weight: 700;
    color: #059669;
}

/* Categories Section */
.categories {
    padding: 80px 0;
    background: white;
    min-height: 320px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 15px;
}

.section-header p {
    font-size: 18px;
    color: #64748b;
}

.categories-grid {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 20px 0 40px 0;
    margin: 0 -20px;
    padding-left: 20px;
    padding-right: 20px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #667eea #f0f0f0;
}

.categories-grid::-webkit-scrollbar {
    height: 8px;
}

.categories-grid::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

.categories-grid::-webkit-scrollbar-thumb {
    background-color: #667eea;
    border-radius: 10px;
    border: 2px solid #f0f0f0;
}

.category-card {
    background: white;
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    flex-shrink: 0;
    min-width: 180px;
    max-width: 200px;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(255, 107, 107, 0.2);
    border-color: #ff6b6b;
}

.category-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff6b6b, #ff5252);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.category-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.category-card p {
    color: #64748b;
    font-size: 14px;
}

/* Events Section */
.events {
    padding: 80px 0;
    background: #f8fafc;
}

.events-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    background: white;
    border: 2px solid #e2e8f0;
    color: #64748b;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%);
    color: white;
    border-color: #ff6b6b;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.2);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 50px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.event-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(255, 107, 107, 0.2);
}

.event-image {
    width: 100% !important;
    height: 0 !important;
    padding-bottom: 177.78% !important; /* 16/9 * 100% = 177.78% for 9:16 portrait */
    aspect-ratio: 9/16 !important;
    background: linear-gradient(135deg, #ff6b6b, #ff5252);
    display: block !important;
    position: relative !important;
    overflow: hidden !important;
    box-sizing: border-box;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding-top: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.event-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    object-position: center !important;
    min-height: 0 !important;
    max-height: none !important;
}

.event-content {
    padding: 25px;
}

.event-date {
    color: #ff6b6b;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}

.event-title {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 10px;
    line-height: 1.3;
}

.event-venue {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 15px;
}

.event-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.price {
    font-size: 18px;
    font-weight: 700;
    color: #059669;
}

.status {
    background: #dcfce7;
    color: #166534;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.event-actions {
    margin-top: 15px;
}

.event-book-btn {
    width: 100%;
    font-size: 14px;
    padding: 10px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.event-book-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.loading-spinner {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 0;
    color: #64748b;
}

.loading-spinner i {
    font-size: 32px;
    margin-bottom: 15px;
    display: block;
}

.load-more {
    text-align: center;
}

.load-more-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.load-more-btn:hover {
    background: linear-gradient(135deg, #ff5252 0%, #c92a2a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

/* Features Section */
.features {
    padding: 80px 0;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.feature-card {
    text-align: center;
    padding: 40px 20px;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ff6b6b, #ff5252);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 32px;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.feature-card h3 {
    font-size: 22px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 15px;
}

.feature-card p {
    color: #64748b;
    line-height: 1.6;
}

/* About Section */
.about {
    padding: 80px 0;
    background: #f8fafc;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 36px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 25px;
}

.about-text p {
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 16px;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-placeholder {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #ff6b6b, #ff5252);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
}

.image-placeholder i {
    font-size: 64px;
    margin-bottom: 20px;
}

.image-placeholder p {
    font-size: 18px;
    font-weight: 500;
}

/* Footer */
.footer {
    background: #1e293b;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-brand i {
    margin-right: 8px;
    color: #ff6b6b;
}

.footer-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #f1f5f9;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #ff6b6b;
}

.footer-line-wrap {
    margin-top: 12px;
    margin-bottom: 0;
}

.footer-line-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #00B900;
    color: #fff !important;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: background 0.3s ease, transform 0.2s ease;
}

.footer-line-btn:hover {
    background: #00a000;
    color: #fff !important;
    transform: translateY(-1px);
}

.footer-line-btn i.fa-line {
    font-size: 1.5rem;
    margin-right: 4px;
    color: #fff !important;
}

.footer-fb-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #1877F2;
    color: #fff !important;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: background 0.3s ease, transform 0.2s ease;
}

.footer-fb-btn:hover {
    background: #166FE5;
    color: #fff !important;
    transform: translateY(-1px);
}

.footer-fb-btn i.fa-facebook {
    font-size: 1.25rem;
    margin-right: 4px;
    color: #fff !important;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: #334155;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: linear-gradient(135deg, #ff6b6b, #ff5252);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #94a3b8;
}

.contact-info i {
    color: #ff6b6b;
    width: 16px;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #94a3b8;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ff6b6b;
}

/* Legal pages (terms, privacy, cookies) */
.legal-page {
    min-height: 60vh;
    padding-top: 1rem;
}
.legal-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}
.legal-updated {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 2rem;
}
.legal-section {
    margin-bottom: 1.75rem;
}
.legal-section h2 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.5rem;
}
.legal-section h3 {
    font-size: 1rem;
    font-weight: 500;
    color: #475569;
    margin-top: 0.75rem;
    margin-bottom: 0.25rem;
}
.legal-section p {
    color: #475569;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}
.legal-section a {
    color: #667eea;
    text-decoration: none;
}
.legal-section a:hover {
    text-decoration: underline;
}

/* FAQ page */
.faq-page .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
}
.faq-page .legal-updated {
    margin-bottom: 1rem;
}
.faq-jump-links {
    margin-bottom: 2rem;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border-radius: 10px;
    font-size: 0.95rem;
    color: #475569;
}
.faq-jump-links a {
    color: #ff6b6b;
    text-decoration: none;
    font-weight: 500;
    margin: 0 0.25rem;
}
.faq-jump-links a:hover {
    text-decoration: underline;
}
.faq-jump-links a:focus-visible {
    outline: 2px solid #ff6b6b;
    outline-offset: 2px;
    border-radius: 4px;
}
.faq-section {
    margin-bottom: 2.5rem;
}
.faq-section:target {
    scroll-margin-top: 1rem;
}
.faq-section h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}
.faq-item {
    margin-bottom: 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.faq-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: #334155;
    transition: background 0.2s ease;
}
.faq-item summary::-webkit-details-marker {
    display: none;
}
.faq-item summary::before {
    content: "";
    flex-shrink: 0;
    width: 0.5rem;
    height: 0.5rem;
    border-right: 2px solid #64748b;
    border-bottom: 2px solid #64748b;
    transform: rotate(45deg);
    transition: transform 0.25s ease;
}
.faq-item[open] summary::before {
    transform: rotate(-135deg);
}
.faq-item summary:hover {
    background: #f8fafc;
}
.faq-item summary:focus-visible {
    outline: 2px solid #ff6b6b;
    outline-offset: 2px;
}
.faq-item summary h3,
.faq-item summary h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    flex: 1;
}
.faq-subheading {
    font-size: 1.05rem;
    font-weight: 600;
    color: #475569;
    margin: 1.25rem 0 0.5rem;
    padding-top: 0.5rem;
}
.faq-subheading:first-of-type {
    margin-top: 0;
    padding-top: 0;
}
.faq-answer {
    padding: 0 1.25rem 1.25rem;
}
.faq-answer p {
    margin: 0;
    color: #475569;
    line-height: 1.65;
    font-size: 0.95rem;
    max-width: 65ch;
}
.faq-section.faq-links p {
    margin: 0;
}
.faq-section.faq-links a {
    color: #ff6b6b;
    text-decoration: none;
}
.faq-section.faq-links a:hover {
    text-decoration: underline;
}
@media (max-width: 640px) {
    .faq-page .container {
        padding: 1rem 0.75rem;
    }
    .faq-item summary {
        padding: 0.875rem 1rem;
    }
    .faq-answer {
        padding: 0 1rem 1rem;
    }
}

/* Blog page */
.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}
.blog-breadcrumb {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 1rem;
}
.blog-breadcrumb a {
    color: #667eea;
    text-decoration: none;
}
.blog-breadcrumb a:hover {
    text-decoration: underline;
}
.blog-breadcrumb-sep {
    margin: 0 0.35rem;
    color: #94a3b8;
}
.blog-page .blog-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.blog-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.blog-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.blog-card-body h2 a:focus-visible,
.blog-link:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}
.blog-card-img {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    display: block;
}
.blog-card-placeholder {
    width: 100%;
    aspect-ratio: 1/1;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 3rem;
}
.blog-card-body {
    padding: 1.25rem 1.5rem;
}
.blog-card-body h2 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}
.blog-card-body h2 a {
    color: #1e293b;
    text-decoration: none;
}
.blog-card-body h2 a:hover {
    color: #667eea;
    text-decoration: underline;
}
.blog-desc {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}
.blog-meta {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 0.75rem;
}
.blog-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #667eea;
    font-weight: 500;
    text-decoration: none;
    font-size: 0.9rem;
    min-height: 44px;
}
.blog-link:hover {
    text-decoration: underline;
}
.blog-link i {
    font-size: 0.75rem;
}
.blog-empty {
    text-align: center;
    color: #64748b;
    padding: 2rem;
}
.blog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}
.blog-pagination-btn {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: #667eea;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s;
}
.blog-pagination-btn:hover:not(.disabled) {
    background: #5a67d8;
}
.blog-pagination-btn:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}
.blog-pagination-btn.disabled {
    background: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
}
.blog-pagination-info {
    font-size: 0.9rem;
    color: #64748b;
}
.blog-content {
    line-height: 1.7;
    color: #334155;
}
.blog-content h1, .blog-content h2, .blog-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: #1e293b;
}
.blog-content p {
    margin-bottom: 1rem;
}
.blog-content img {
    max-width: 100%;
    width: auto;
    height: auto;
    border-radius: 8px;
}
.blog-content a {
    color: #667eea;
    text-decoration: none;
}
.blog-content a:hover {
    text-decoration: underline;
}
.blog-content ul, .blog-content ol {
    margin: 0 0 1rem 1.25rem;
}
.blog-detail-page .blog-lead {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 1rem;
}
.blog-detail-img {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
    margin: 1rem 0;
    border-radius: 8px;
}
.blog-detail-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
    box-sizing: border-box;
}
.blog-page,
.blog-detail-page {
    overflow-x: hidden;
}
.blog-page .blog-container,
.blog-detail-page .blog-detail-container {
    width: 1200px;
    max-width: 100%;
    box-sizing: border-box;
}
/* Tablet: 2 columns */
@media (max-width: 1024px) {
    .blog-page .blog-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile: 1 column */
@media (max-width: 640px) {
    .blog-page .blog-list {
        grid-template-columns: 1fr;
    }
    .blog-card-img,
    .blog-card-placeholder { aspect-ratio: 1/1; max-width: 100%; }
    .blog-card-body { padding: 1rem; }
    .blog-pagination { flex-wrap: wrap; gap: 0.75rem; }
    .blog-container { padding: 1.25rem 1rem; max-width: 100%; }
    .blog-detail-container { padding: 1.25rem 1rem; }
    .blog-content img { max-width: 100% !important; }
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

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

.modal-header {
    padding: 30px 30px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #1e293b;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #64748b;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.modal-body {
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.7);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #374151;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #ff6b6b;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

/* Override width for header actions buttons */
.header-actions .btn-primary {
    width: 500px;
    min-width: auto;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ff5252 0%, #c92a2a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.btn-line {
    background: rgba(0, 224, 15, 1);
    color: white;
    width: 100%;
    box-shadow: 0 4px 15px rgba(6, 199, 85, 0.3);
}

.btn-line:hover {
    background: #05B04A;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 199, 85, 0.4);
}

.btn-line i {
    font-size: 18px;
}

#lineLoginBtn {
    background-color: rgba(0, 224, 15, 1);
}

.social-login-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
}

.social-login-divider::before,
.social-login-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e5e7eb;
}

.social-login-divider span {
    padding: 0 15px;
    color: #64748b;
    font-size: 14px;
}

.modal-footer {
    text-align: center;
    margin-top: 25px;
    padding: 18px 20px;
    border-top: 2px solid #e5e7eb;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 0 0 12px 12px;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
}

.modal-footer p {
    margin: 0;
    font-size: 15px;
    color: #64748b;
    font-weight: 400;
}

.modal-footer a,
.modal-footer .btn-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: inline-block;
    margin-left: 4px;
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: inherit;
}

.modal-footer a:hover,
.modal-footer .btn-link:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
    border-color: transparent;
}

.modal-footer .btn-link:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

/* Event Modal */
.event-modal {
    max-width: 750px;
    width: 90%;
    margin: 2% auto;
    box-sizing: border-box;
    overflow: hidden;
}

/* Desktop - Small (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .event-modal,
    .modal-content.event-modal {
        max-width: 1000px !important;
        width: 90% !important;
    }
}

/* Desktop - Medium (1025px - 1440px) */
@media (min-width: 1025px) and (max-width: 1440px) {
    .event-modal,
    .modal-content.event-modal {
        max-width: 1300px !important;
        width: 92% !important;
    }
}

/* Desktop - Large (1441px+) */
@media (min-width: 1441px) {
    .event-modal,
    .modal-content.event-modal {
        max-width: 1500px !important;
        width: 95% !important;
    }
}

.event-modal .modal-content {
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    width: 100%;
}

.event-modal .modal-header {
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    word-wrap: break-word;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.event-modal .modal-header h2 {
    max-width: calc(100% - 50px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    word-wrap: break-word;
    flex: 1;
    min-width: 0;
    margin: 0;
}

.event-modal .modal-header .close-btn {
    flex-shrink: 0;
    margin-left: auto;
    min-width: 40px;
}

.event-modal .modal-body {
    padding: 25px;
    max-height: calc(90vh - 140px);
    overflow-y: auto;
    box-sizing: border-box;
    width: 100%;
    overflow-x: hidden;
}

.event-detail {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.event-detail-image {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 9 / 16;
    background: linear-gradient(135deg, #ff6b6b, #ff5252);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 48px;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
}

.event-detail-image img {
    width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.event-detail-info {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.event-detail-info h3 {
    font-size: 22px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 15px;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.event-detail-info p {
    color: #64748b;
    margin-bottom: 10px;
    font-size: 15px;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.event-detail-info p strong {
    display: inline;
    margin-right: 0;
    word-break: keep-all;
    white-space: nowrap;
    flex-shrink: 0;
}

.event-detail-info .btn {
    max-width: 100%;
    box-sizing: border-box;
    word-wrap: normal;
    white-space: normal;
}

/* Map link box styles */
.event-detail-info .map-link-box {
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    word-wrap: break-word;
}

.event-detail-info .map-link-box > div {
    max-width: 100%;
    box-sizing: border-box;
    flex-wrap: wrap;
}

.event-detail-info .map-link-button {
    max-width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-detail-info .map-icon-link {
    display: inline-block;
    margin-left: 5px;
    vertical-align: middle;
    flex-shrink: 0;
}

/* Ensure all content inside event-detail-info doesn't overflow */
.event-detail-info * {
    max-width: 100%;
    box-sizing: border-box;
}

.event-detail-info img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px;
    margin: 10px 0;
    display: block;
}

.event-detail-info iframe,
.event-detail-info video {
    max-width: 100% !important;
    height: auto;
    border-radius: 8px;
}

.event-detail-info a:not(.map-link-button):not(.map-icon-link) {
    word-break: break-all;
    overflow-wrap: break-word;
    max-width: 100%;
}

.event-detail-info .price {
    font-size: 24px;
    font-weight: 700;
    color: #059669;
    margin: 0;
    word-break: keep-all;
    white-space: nowrap;
    display: inline;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: baseline;
}

.event-detail-info .price span {
    word-break: keep-all;
    white-space: nowrap;
}

/* Description wrapper */
.event-detail-info > div {
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.event-detail-info > div > div {
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

/* HTML content in description */
.event-detail-info > div > div * {
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.event-detail-info > div > div img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px;
    margin: 10px 0;
    display: block;
}

.event-detail-info > div > div iframe,
.event-detail-info > div > div video {
    max-width: 100% !important;
    height: auto;
    border-radius: 8px;
}

/* Event Modal Responsive - Desktop */
@media (min-width: 769px) {
    /* Modal width is handled by specific breakpoints above */
    .event-modal {
        margin: 3% auto;
    }
    
    .event-modal .modal-body {
        padding: 30px;
        max-height: calc(90vh - 150px);
        overflow-x: hidden;
        width: 100%;
        box-sizing: border-box;
    }
    
    .event-detail {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        align-items: start;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .event-detail-image {
        aspect-ratio: 9 / 16;
        max-width: 100%;
        width: 100%;
        position: sticky;
        top: 0;
        /* Remove max-height to maintain aspect ratio */
    }
    
    .event-detail-info {
        min-width: 0; /* Prevent grid overflow */
        max-width: 100%;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }
    
    .event-detail-info h3 {
        font-size: 24px;
        margin-bottom: 18px;
        max-width: 100%;
        overflow-wrap: break-word;
        word-wrap: break-word;
        word-break: break-word;
    }
    
    .event-detail-info p {
        font-size: 16px;
        margin-bottom: 12px;
        display: flex;
        align-items: baseline;
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .event-detail-info .price {
        font-size: 28px;
        margin: 0;
        vertical-align: baseline;
    }
}

@media (max-width: 768px) {
    .event-modal {
        max-width: 95%;
        width: 95%;
        margin: 5% auto;
        max-height: 90vh;
    }
    
    .event-modal .modal-header {
        padding: 15px 20px;
    }
    
    .event-modal .modal-header h2 {
        font-size: 1.2rem;
        max-width: calc(100% - 50px);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .event-modal .modal-body {
        padding: 20px 15px;
        max-height: calc(90vh - 100px);
        font-size: 14px;
        overflow-x: hidden;
        width: 100%;
        box-sizing: border-box;
    }
    
    .event-detail {
        gap: 15px;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .event-detail-image {
        aspect-ratio: 9 / 16;
        max-width: 100%;
        width: 100%;
        font-size: 36px;
        /* Remove max-height to maintain 9:16 aspect ratio */
    }
    
    .event-detail-info {
        max-width: 100%;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }
    
    .event-detail-info h3 {
        font-size: 18px;
        margin-bottom: 12px;
        max-width: 100%;
        overflow-wrap: break-word;
        word-wrap: break-word;
        word-break: break-word;
    }
    
    .event-detail-info p {
        font-size: 14px;
        margin-bottom: 8px;
        line-height: 1.5;
        display: flex;
        align-items: baseline;
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .event-detail-info .price {
        font-size: 20px;
        margin: 0;
        vertical-align: baseline;
    }
}

@media (max-width: 480px) {
    .event-modal {
        max-width: 98%;
        width: 98%;
        margin: 2% auto;
        max-height: 95vh;
    }
    
    .event-modal .modal-header {
        padding: 12px 15px;
    }
    
    .event-modal .modal-header h2 {
        font-size: 1.1rem;
        max-width: calc(100% - 50px);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .event-modal .modal-body {
        padding: 15px 12px;
        max-height: calc(95vh - 80px);
        font-size: 13px;
        overflow-x: hidden;
        width: 100%;
        box-sizing: border-box;
    }
    
    .event-detail {
        gap: 12px;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .event-detail-image {
        aspect-ratio: 9 / 16;
        max-width: 100%;
        width: 100%;
        font-size: 32px;
        /* Remove max-height to maintain 9:16 aspect ratio */
    }
    
    .event-detail-info {
        max-width: 100%;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }
    
    .event-detail-info h3 {
        font-size: 16px;
        margin-bottom: 10px;
        max-width: 100%;
        overflow-wrap: break-word;
        word-wrap: break-word;
        word-break: break-word;
    }
    
    .event-detail-info p {
        font-size: 13px;
        margin-bottom: 6px;
        display: flex;
        align-items: baseline;
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .event-detail-info .price {
        font-size: 18px;
        margin: 0;
        vertical-align: baseline;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Scope these rules to the top-navbar to avoid hiding admin sidebar menu */
    .top-navbar .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 50px 0;
        transition: left 0.3s ease;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    }

    .top-navbar .nav-menu.active {
        left: 0;
    }

    .top-navbar .nav-menu .nav-link {
        margin: 15px 0;
        font-size: 18px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
        padding: 0 16px;
        max-width: 100%;
        width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    .hero-content {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
        padding: 0;
    }

    .hero {
        padding: 100px 0 50px;
        overflow-x: hidden;
    }

    .hero-title {
        font-size: 32px;
        line-height: 1.3;
        margin-bottom: 16px;
    }

    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 30px;
        padding: 0 10px;
    }

    .hero-search {
        margin-bottom: 30px;
    }

    .search-container {
        max-width: 100%;
        padding: 0 10px;
    }

    .search-input {
        padding: 14px 50px 14px 16px;
        font-size: 16px; /* Prevent iOS zoom */
    }

    .search-btn {
        width: 40px;
        height: 40px;
        right: 6px;
    }

    .hero-stats {
        justify-content: space-around;
        gap: 15px;
        flex-wrap: nowrap;
        flex-direction: row;
    }

    .stat-item {
        flex: 1;
        min-width: 0;
        max-width: none;
    }

    .stat-number {
        font-size: 28px;
    }

    .stat-label {
        font-size: 13px;
    }

    .hero-image {
        width: 100%;
        max-width: 100%;
        padding: 0 10px;
        box-sizing: border-box;
    }

    .hero-slider {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .slider-container {
        max-width: 100%;
        width: 100%;
        border-radius: 12px;
        overflow: hidden;
        position: relative;
        box-sizing: border-box;
    }

    .slider-wrapper {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        box-sizing: border-box;
    }

    .slider-card {
        padding: 12px;
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        flex-shrink: 0;
    }

    .hero-card {
        max-width: 100%;
        border-radius: 16px;
        width: 100%;
        box-sizing: border-box;
    }

    .hero-card .card-header,
    .hero-card .card-price {
        padding: 16px 20px;
    }

    .card-header {
        gap: 15px;
        padding: 16px 20px 0 20px;
        margin-bottom: 16px;
    }

    .card-date {
        padding: 12px;
        min-width: 55px;
    }

    .date-day {
        font-size: 20px;
    }

    .date-month {
        font-size: 11px;
    }

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

    .card-info h3,
    .card-info .hero-card-title {
        font-size: 16px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .card-info p {
        font-size: 13px;
        line-height: 1.4;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .card-price {
        padding: 16px 20px 20px 20px;
        flex-wrap: wrap;
        gap: 12px;
    }

    .price-amount {
        font-size: 20px;
    }

    .btn-book {
        width: 100%;
        padding: 12px 16px;
        font-size: 14px;
    }

    .slider-nav {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .slider-nav i {
        font-size: 14px;
    }

    .slider-prev {
        left: 8px;
    }

    .slider-next {
        right: 8px;
    }

    .slider-dots {
        bottom: 8px;
        gap: 6px;
    }

    .slider-dot {
        width: 8px;
        height: 8px;
        min-width: 8px;
        min-height: 8px;
    }

    .no-featured {
        padding: 20px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .no-featured-content {
        padding: 30px 20px;
    }

    .no-featured-content i {
        font-size: 48px;
    }

    .no-featured-content h3,
.no-featured-content .no-featured-title {
        font-size: 20px;
        margin: 15px 0 10px 0;
    }

    .no-featured-content p {
        font-size: 14px;
    }

    .map-icon-link {
        padding: 5px 10px;
        font-size: 0.8rem;
        gap: 4px;
        margin-left: 6px;
    }

    .map-icon-link i {
        font-size: 12px;
    }

    .map-link-text {
        font-size: 0.75rem;
    }

    .card-info p {
        flex-wrap: wrap;
        gap: 6px;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .event-detail {
        grid-template-columns: 1fr;
    }

    .categories-grid {
        gap: 20px;
        padding: 15px 0 30px 0;
        margin: 0 -15px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .categories-grid .category-card {
        min-width: 150px;
        max-width: 180px;
    }

    .events-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 90px 0 40px;
    }

    .hero-container {
        gap: 25px;
        padding: 0 12px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .hero-content {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
        padding: 0;
    }

    .hero-title {
        font-size: 26px;
        line-height: 1.3;
        margin-bottom: 12px;
    }

    .hero-subtitle {
        font-size: 14px;
        margin-bottom: 25px;
        padding: 0 8px;
        line-height: 1.5;
    }

    .hero-subtitle strong {
        font-size: 15px;
    }

    .hero-search {
        margin-bottom: 25px;
    }

    .search-container {
        padding: 0 8px;
    }

    .search-input {
        padding: 12px 48px 12px 14px;
        font-size: 16px; /* Prevent iOS zoom */
        border-radius: 40px;
    }

    .search-btn {
        width: 36px;
        height: 36px;
        right: 5px;
    }

    .search-btn i {
        font-size: 14px;
    }

    .section-header h2 {
        font-size: 24px;
    }

    .hero-stats {
        flex-direction: row;
        justify-content: space-around;
        gap: 10px;
        flex-wrap: nowrap;
    }

    .stat-item {
        flex: 1;
        min-width: 0;
        max-width: none;
    }

    .stat-number {
        font-size: 24px;
    }

    .stat-label {
        font-size: 12px;
    }

    .hero-image {
        padding: 0 8px;
        box-sizing: border-box;
    }

    .hero-slider {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .slider-container {
        width: 100%;
        max-width: 100%;
        border-radius: 10px;
        overflow: hidden;
        box-sizing: border-box;
    }

    .slider-wrapper {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    .slider-card {
        padding: 8px;
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        flex-shrink: 0;
    }

    .hero-card {
        border-radius: 12px;
        width: 100%;
        box-sizing: border-box;
    }

    .hero-card .card-header,
    .hero-card .card-price {
        padding: 12px 16px;
    }

    .card-header {
        gap: 12px;
        padding: 12px 16px 0 16px;
        margin-bottom: 12px;
        flex-wrap: wrap;
    }

    .card-date {
        padding: 10px;
        min-width: 50px;
    }

    .date-day {
        font-size: 18px;
    }

    .date-month {
        font-size: 10px;
    }

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

    .card-info h3,
    .card-info .hero-card-title {
        font-size: 15px;
        margin-bottom: 4px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .card-info p {
        font-size: 12px;
        line-height: 1.4;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .card-price {
        padding: 12px 16px 16px 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .price-label {
        font-size: 12px;
    }

    .price-amount {
        font-size: 18px;
    }

    .btn-book {
        width: 100%;
        padding: 10px 14px;
        font-size: 13px;
        margin-top: 8px;
    }

    .slider-nav {
        width: 32px;
        height: 32px;
    }

    .slider-nav i {
        font-size: 12px;
    }

    .slider-prev {
        left: 5px;
    }

    .slider-next {
        right: 5px;
    }

    .slider-dots {
        bottom: 6px;
        gap: 6px;
    }

    .slider-dot {
        width: 7px;
        height: 7px;
    }

    .about-stats {
        flex-direction: column;
        gap: 20px;
    }

    .events-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .event-image {
        /* Removed min-height to allow 9:16 aspect ratio */
        font-size: 36px; /* Smaller icon for mobile */
    }
}

/* Error and Success Messages */
.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: var(--border-radius);
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.error-message::before {
    content: '⚠️';
    font-size: 1rem;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: var(--border-radius);
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.success-message::before {
    content: '✅';
    font-size: 1rem;
}

.field-error {
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 4px;
    display: none;
}

.form-control.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Modal Enhancements */
.modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

/* Loading button state */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Temporary: ซ่อนเมนู อีเวนต์/หมวดหมู่ - ลบเมื่อต้องการแสดงอีกครั้ง */
.nav-hidden-temp {
    display: none !important;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mt-4 {
    margin-top: 1rem;
}

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

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

.fa-spin {
    animation: spin 1s linear infinite;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus States */
button:focus,
input:focus,
a:focus {
    outline: 2px solid #ff6b6b;
    outline-offset: 2px;
}

/* Selection */
::selection {
    background: #ff6b6b;
    color: white;
}

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

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

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

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

/* Booking Modal Styles */
.booking-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 20px 0;
}

.concert-info {
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.concert-info h4 {
    color: #1e293b;
    margin-bottom: 15px;
    font-size: 20px;
}

.concert-info p {
    margin-bottom: 10px;
    color: #64748b;
}

.booking-form {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #ff6b6b;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.total-price {
    background: linear-gradient(135deg, #ff6b6b, #ff5252);
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.total-price h4 {
    margin: 0;
    font-size: 24px;
}

.total-price span {
    font-size: 28px;
    font-weight: 700;
}

.modal-footer {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    padding: 20px 0 0 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 20px;
}

.btn-secondary {
    background: #6b7280;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-secondary:hover {
    background: #4b5563;
}

/* Ticket conditions block (booking modal) – base + mobile */
.ticket-conditions-block {
    margin-top: 16px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #eee;
    box-sizing: border-box;
    max-width: 100%;
}

.ticket-conditions-toggle {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 12px 0;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    -webkit-tap-highlight-color: transparent;
}

.ticket-conditions-toggle i {
    transition: transform 0.2s;
    flex-shrink: 0;
}

.ticket-conditions-list {
    display: none;
    margin-top: 12px;
    font-size: 13px;
    color: #555;
    line-height: 1.6;
    max-height: 260px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.ticket-conditions-list ol {
    margin: 0;
    padding-left: 18px;
}

.ticket-conditions-list li {
    margin-bottom: 6px;
}

.ticket-conditions-block .form-group {
    margin-top: 12px;
    margin-bottom: 0;
}

.ticket-conditions-block .form-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 500;
    margin-bottom: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

.ticket-conditions-block .form-group input[type="checkbox"] {
    margin: 0;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.ticket-conditions-block .form-group span {
    flex: 1 1 0%;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: normal;
}

@media (max-width: 576px) {
    .ticket-conditions-block {
        margin-top: 14px;
        padding: 14px;
        border-radius: 10px;
    }

    .ticket-conditions-toggle {
        padding: 14px 0;
        font-size: 0.95rem;
        gap: 10px;
    }

    .ticket-conditions-toggle span {
        flex: 1;
        min-width: 0;
        overflow-wrap: break-word;
        word-break: normal;
    }

    .ticket-conditions-list {
        margin-top: 14px;
        font-size: 14px;
        padding-right: 4px;
        max-height: 220px;
    }

    .ticket-conditions-list ol {
        padding-left: 20px;
    }

    .ticket-conditions-block .form-group {
        margin-top: 14px;
    }

    .ticket-conditions-block .form-group label {
        flex-direction: row;
        align-items: center;
        gap: 12px;
        width: 100%;
        min-height: 48px;
        padding: 4px 0;
        -webkit-tap-highlight-color: transparent;
    }

    .ticket-conditions-block .form-group input[type="checkbox"] {
        margin: 0;
        flex-shrink: 0;
        width: 22px;
        height: 22px;
        min-width: 22px;
        min-height: 22px;
        cursor: pointer;
    }

    .ticket-conditions-block .form-group span {
        line-height: 1.4;
        font-size: 14px;
        flex: 1 1 0%;
        min-width: 140px;
        max-width: 100%;
        overflow-wrap: break-word;
    }
}

/* Packages Preview Section */
.packages-preview {
    background: #f8fafc;
    padding: 80px 0;
}

.packages-preview-grid {
    display: block;
    width: 100%;
}

/* Horizontal Scroll Container for Packages */
.packages-horizontal-scroll {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 40px 0 40px 0;
    margin: 0 -20px;
    padding-left: 20px;
    padding-right: 20px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #667eea #f0f0f0;
}

.packages-horizontal-scroll::-webkit-scrollbar {
    height: 8px;
}

.packages-horizontal-scroll::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

.packages-horizontal-scroll::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 10px;
}

.packages-horizontal-scroll::-webkit-scrollbar-thumb:hover {
    background: #5568d3;
}

.packages-horizontal-scroll .package-preview-card {
    flex: 0 0 auto;
    width: 350px;
    min-width: 320px;
    max-width: 400px;
}

.package-preview-card {
    background: white;
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.package-preview-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.package-preview-card.popular {
    border-color: #ff6b6b;
    transform: scale(1.05);
    box-shadow: 0 10px 40px rgba(255, 107, 107, 0.2);
}

.package-preview-card.popular:hover {
    transform: scale(1.05) translateY(-10px);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.package-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.package-icon i {
    font-size: 2rem;
    color: white;
}

.package-preview-card h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #333;
}

.package-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #4c51bf;
    margin-bottom: 20px;
}

.package-price span {
    font-size: 1rem;
    color: #4a5568;
    font-weight: 400;
}

.package-features {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
    text-align: left;
}

.package-features .package-feature-category:first-child {
    margin-top: 0;
}

.package-features li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    color: #666;
}

/* Hide ::before if we have an icon */
.package-features li:has(i)::before {
    display: none;
}

/* Show ::before only if no icon */
.package-features li:not(:has(i))::before {
    content: "✓";
    color: #10b981;
    font-weight: bold;
    margin-right: 10px;
    width: 20px;
}

.package-features li i {
    color: #28a745;
    margin-right: 8px;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.package-header h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #333;
}

.package-description {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 15px;
    line-height: 1.6;
}

.package-limits {
    margin-bottom: 20px;
    padding: 10px 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.package-limit {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.9rem;
    margin: 8px 0;
}

.package-limit i {
    color: #667eea;
    font-size: 0.9rem;
}

.package-btn {
    width: 100%;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 20px;
}

.packages-type-section {
    display: block;
    width: 100%;
    margin-bottom: 50px;
    clear: both;
}

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

.packages-type-section h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: #667eea;
}

.packages-cta {
    text-align: center;
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.2rem;
}

/* Responsive Design for Packages */
@media (max-width: 768px) {
    .packages-preview-grid {
        display: block;
    }

    .packages-horizontal-scroll {
        gap: 20px;
        padding: 15px 0 30px 0;
        margin: 0 -15px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .packages-horizontal-scroll .package-preview-card {
        width: 280px;
        min-width: 260px;
        max-width: 320px;
    }

    .package-preview-card.popular {
        transform: none;
    }

    .package-preview-card.popular:hover {
        transform: translateY(-10px);
    }

    .packages-preview {
        padding: 60px 0;
    }
}

/* Responsive Design for Booking Modal */
@media (max-width: 768px) {
    .booking-details {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .btn-secondary,
    .btn-primary {
        width: 100%;
    }
}

/* Payment Slip Modal Styles */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* display removed here to respect default hidden state */
    /* layout specifics remain; visibility controlled by .modal.active */
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    max-width: 90%;
    max-height: 90%;
    width: 800px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.2);
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.close:hover {
    opacity: 0.7;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

#slipImageContainer {
    text-align: center;
    margin-bottom: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px;
    background: #f8f9fa;
}

#slipImage {
    max-width: 100%;
    max-height: 400px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.slip-details {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.slip-details h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 600;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row strong {
    color: #555;
    font-weight: 600;
    min-width: 120px;
}

.detail-row span {
    color: #333;
    font-weight: 500;
}

.modal-footer {
    background: #f8f9fa;
    padding: 20px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    border-top: 1px solid #e0e0e0;
}

.modal-footer .btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-footer .btn-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.modal-footer .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.modal-footer .btn-danger {
    background: linear-gradient(135deg, #dc3545, #e74c3c);
    color: white;
}

.modal-footer .btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.modal-footer .btn-secondary {
    background: linear-gradient(135deg, #6c757d, #868e96);
    color: white;
}

.modal-footer .btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

/* Status badges for payment verification */
.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-verified {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-rejected {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive design for modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 95%;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-header h3 {
        font-size: 1.2rem;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .modal-footer {
        padding: 15px;
        flex-direction: column;
    }
    
    .modal-footer .btn {
        width: 100%;
        justify-content: center;
    }
    
    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .detail-row strong {
        min-width: auto;
    }
}

/* Scan Page Styles */
.scan-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.scan-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.scanner-area {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scanner-placeholder {
    color: #6c757d;
}

.scanner-placeholder i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #dee2e6;
}

.scanner-placeholder p {
    font-size: 1.1rem;
    margin: 0;
}

.scan-results {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.scan-results h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 600;
}

.scan-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.scan-actions .btn {
    flex: 1;
    min-width: 120px;
}

.scanned-tickets-section {
    margin-top: 30px;
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.scanned-tickets-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.scanned-tickets-section .section-title {
    margin: 0;
    color: #333;
    font-size: 1.3rem;
    font-weight: 600;
}

.scanned-tickets-section .filter-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.scanned-tickets-section .form-control {
    min-width: 150px;
}

/* Status badges for scan page */
.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-verified {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-rejected {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Alert styles for scan results */
.alert {
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid transparent;
}

.alert-success {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-danger {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.alert h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 600;
}

.alert p {
    margin-bottom: 10px;
    font-size: 1rem;
}

.alert p:last-child {
    margin-bottom: 0;
}

/* Responsive design for scan page */
@media (max-width: 768px) {
    .scan-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .scanner-area {
        min-height: 200px;
        padding: 20px;
    }
    
    .scanner-placeholder i {
        font-size: 3rem;
    }
    
    .scan-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .scan-controls .btn {
        width: 100%;
    }
    
    .scanned-tickets-section .section-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .scanned-tickets-section .filter-controls {
        justify-content: center;
    }
    
    .scan-actions {
        flex-direction: column;
    }
    
    .scan-actions .btn {
        width: 100%;
    }
}

/* Concert Image Upload Styles */
.concert-image-container {
    position: relative;
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
    border: 2px solid #dee2e6;
}

.concert-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.image-actions {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.concert-image-container:hover .image-actions {
    opacity: 1;
}

.image-actions .btn {
    padding: 4px 8px;
    font-size: 0.7rem;
    border-radius: 4px;
    min-width: auto;
}

.btn-xs {
    padding: 2px 6px;
    font-size: 0.6rem;
    line-height: 1.2;
    border-radius: 3px;
}

.btn-xs i {
    font-size: 0.6rem;
}

/* Concert info styling */
.concert-info {
    min-width: 200px;
}

.concert-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.concert-description {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.3;
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Table responsive for concert images */
@media (max-width: 768px) {
    .concert-image-container {
        width: 60px;
        height: 45px;
    }
    
    .concert-info {
        min-width: 150px;
    }
    
    .concert-description {
        max-width: 150px;
    }

/* Modal Styles */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%);
    color: white;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.2);
}

.modal-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.modal-body {
    padding: 30px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px 30px;
    border-top: 1px solid #eee;
    background-color: #f8f9fa;
    border-radius: 0 0 12px 12px;
}

/* Concert Form Styles */
.concert-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff6b6b;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

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

.form-group input[type="number"] {
    -moz-appearance: textfield;
}

.form-group input[type="number"]::-webkit-outer-spin-button,
.form-group input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Header Actions */
.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    width: 300px;
}

.header-actions .btn {
    white-space: nowrap;
    font-size: 0.95rem;
    padding: 12px 24px;
    min-width: auto;
    width: auto;
    max-width: none;
    flex-shrink: 0;
}

.header-actions .btn-primary {
    width: 300px;
}

/* Hide header menu button on desktop */
.header-menu-btn {
    display: none;
}

/* Notification Styles */
.error-notification,
.success-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 400px;
    animation: slideInFromRight 0.3s ease-out;
}

@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.error-notification {
    background-color: #fee;
    border-left: 4px solid #e74c3c;
    color: #c0392b;
}

.success-notification {
    background-color: #efe;
    border-left: 4px solid #27ae60;
    color: #229954;
}

.error-content,
.success-content {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modal-content {
        margin: 10% auto;
        width: 95%;
        max-height: 85vh;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .header-actions {
        flex-direction: column;
        width: 100%;
    }

    .header-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .modal-header h2 {
        font-size: 1.2rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    .modal-footer {
        flex-direction: column;
    }

    .modal-footer .btn {
        width: 100%;
    }
}
    
    .image-actions {
        opacity: 1; /* Always show on mobile */
        background: rgba(0, 0, 0, 0.5);
    }
}

/* Modal scroll behavior */
.modal {
    align-items: flex-start;
    overflow-y: auto;
}

.modal-content {
    max-height: 90vh;
    overflow-y: auto;
}

/* Home events image cards (vertical) - 9:16 aspect ratio */
.events-grid .event-card .event-image,
#eventsGrid .event-card .event-image {
    width: 100% !important;
    height: 0 !important;
    padding-bottom: 177.78% !important; /* 16/9 * 100% = 177.78% for 9:16 portrait */
    aspect-ratio: 9/16 !important;
    overflow: hidden !important;
    border-radius: 8px;
    position: relative !important;
    display: block !important;
    box-sizing: border-box;
    min-height: 0 !important;
    max-height: none !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    padding-top: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.concert-card .concert-image {
    aspect-ratio: 3/4;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.events-grid .event-card .event-image img,
#eventsGrid .event-card .event-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    object-position: center !important;
    min-height: 0 !important;
    max-height: none !important;
}

/* Admin page - Override 9:16 aspect ratio for event-preview */
body.admin-page .event-preview .event-image,
.admin-page .event-preview .event-image,
.events-preview .event-preview .event-image {
    width: 120px !important;
    height: 120px !important;
    padding-bottom: 0 !important;
    aspect-ratio: 1 / 1 !important; /* Square aspect ratio for admin */
    margin-right: 15px !important;
    margin-bottom: 0 !important;
    margin-top: 0 !important;
    margin-left: 0 !important;
    padding-top: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    position: relative !important;
    flex-shrink: 0 !important;
    min-height: 0 !important;
    max-height: none !important;
}

body.admin-page .event-preview .event-image img,
.admin-page .event-preview .event-image img,
.events-preview .event-preview .event-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    position: relative !important; /* Change from absolute to relative for admin */
    top: auto !important;
    left: auto !important;
    border-radius: 8px !important;
}

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

/* Hero image (9:16 aspect ratio for vertical mobile-style display) */
.hero-image .hero-card .card-image,
.hero-image #heroImageWrap,
#heroImageWrap,
.hero-card .card-image,
.hero-card #heroImageWrap,
.slider-card .hero-card .card-image,
.lider-card .hero-card .card-image,
#heroSlider .hero-card .card-image,
#sliderWrapper .hero-card .card-image,
#heroSlider .lider-card .hero-card .card-image,
#sliderWrapper .lider-card .hero-card .card-image {
    width: 100% !important;
    max-width: 100% !important;
    height: 0 !important;
    padding-bottom: 177.78% !important; /* 16/9 * 100% = 177.78% for 9:16 portrait */
    aspect-ratio: 9/16 !important;
    display: block !important;
    overflow: hidden !important;
    border-radius: 8px;
    margin-bottom: 20px;
    position: relative !important;
    box-sizing: border-box;
    background-color: #f0f0f0;
}

.hero-image .hero-card .card-image img,
.hero-image #heroImageWrap img,
.hero-image #heroImage,
#heroImage,
.hero-card .card-image img,
.hero-card #heroImageWrap img,
.slider-card .hero-card .card-image img,
.lider-card .hero-card .card-image img,
#heroSlider .hero-card .card-image img,
#sliderWrapper .hero-card .card-image img,
#heroSlider .lider-card .hero-card .card-image img,
#sliderWrapper .lider-card .hero-card .card-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    object-position: center !important;
}

/* Payment Modal Styles */
.payment-details {
    max-width: 600px;
    margin: 0 auto;
}

.booking-summary {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.booking-summary h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.1rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

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

.summary-item.total-amount {
    font-weight: 700;
    font-size: 1.1rem;
    color: #059669;
    border-top: 2px solid #059669;
    margin-top: 10px;
    padding-top: 15px;
}

.payment-instructions {
    margin-bottom: 30px;
}

.payment-instructions h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.qr-section {
    text-align: center;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.qr-actions {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.qr-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #ff6b6b;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.qr-actions .btn:hover {
    background: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.qr-scan-guide {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e5e7eb;
    text-align: left;
}

.qr-scan-guide h5 {
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.qr-scan-guide h5 i {
    color: #ff6b6b;
}

.scan-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.scan-method {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    gap: 15px;
    transition: all 0.3s ease;
}

.scan-method:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.method-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.scan-method:nth-child(2) .method-icon {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.scan-method:nth-child(3) .method-icon {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.method-content h6 {
    color: #333;
    font-size: 1rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.method-content ol {
    margin: 0;
    padding-left: 20px;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.8;
}

.method-content ol li {
    margin-bottom: 8px;
}

.qr-code-container {
    margin: 20px 0;
}

.qr-code {
    max-width: 200px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.qr-info {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

.slip-upload-section {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 2px solid #e5e7eb;
}

.slip-upload-section h4 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.slip-upload-section p {
    color: #666;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.upload-area {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafafa;
    margin-bottom: 20px;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: #ff6b6b;
    background: #fff5f5;
}

.upload-content i {
    font-size: 3rem;
    color: #ff6b6b;
    margin-bottom: 10px;
}

.upload-content p {
    margin: 0 0 5px 0;
    font-weight: 500;
    color: #333;
}

.upload-hint {
    font-size: 0.8rem;
    color: #666;
}

.file-preview {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    background: #f8f9fa;
    margin-bottom: 20px;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.preview-header span {
    font-weight: 500;
    color: #333;
}

.remove-file {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
}

.remove-file:hover {
    background: #c82333;
}

.preview-image {
    max-width: 100%;
    max-height: 200px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

/* Responsive for Payment Modal */
@media (max-width: 768px) {
    .payment-details {
        padding: 0 10px;
    }

    .booking-summary,
    .qr-section {
        padding: 15px;
    }

    .upload-area {
        padding: 30px 15px;
    }

    .upload-actions {
        flex-direction: column;
    }

    .upload-actions .btn {
        width: 100%;
    }
}

/* Scan History Styles */
.scan-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    margin-bottom: 8px;
    border-radius: 8px;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-left: 4px solid #007bff;
}

.scan-item.scan-complete {
    border-left-color: #28a745;
    background: #f8fff9;
}

.scan-item.scan-active {
    border-left-color: #ffc107;
    background: #fffef8;
}

.scan-info {
    flex: 1;
}

.scan-ticket {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.scan-count {
    background: rgba(0,123,255,0.1);
    color: #007bff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8em;
    margin-left: 8px;
}

.scan-user, .scan-concert, .scan-time, .scan-type {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 2px;
}

.scan-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: 500;
    text-transform: uppercase;
}

.status-valid {
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.status-used {
    background-color: rgba(108, 117, 125, 0.1);
    color: #6c757d;
}

.status-already_scanned {
    background-color: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

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

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

.slide-in {
    animation: slideIn 0.3s ease-in-out;
}

/* ========================================
   MODERN RED UI ENHANCEMENTS
   ======================================== */

/* Enhanced Top Navbar with Red Theme */
.top-navbar {
    background: #fff;
    box-shadow: 0 2px 20px rgba(255, 107, 107, 0.1);
}

/* Glassmorphism Effect for Cards */
.category-card,
.feature-card {
    position: relative;
    overflow: hidden;
}

.category-card::before,
.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 107, 107, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover::before,
.feature-card:hover::before {
    opacity: 1;
}

/* Modern Event Cards with Red Glow */
.event-card {
    position: relative;
    overflow: hidden;
}

.event-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1) 0%, rgba(255, 82, 82, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.event-card:hover::after {
    opacity: 1;
}

/* Pulse Animation for Important Buttons */
@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 107, 107, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0);
    }
}

.btn-primary:not(:disabled) {
    animation: pulse-red 2s infinite;
}

.btn-primary:hover {
    animation: none;
}

/* Enhanced Admin Sidebar with Glassmorphism */
body.admin-page .navbar {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%);
    backdrop-filter: blur(10px);
    box-shadow: 2px 0 20px rgba(255, 107, 107, 0.3);
}

body.admin-page .nav-menu .nav-link {
    position: relative;
    overflow: hidden;
}

body.admin-page .nav-menu .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.5s ease;
}

body.admin-page .nav-menu .nav-link:hover::before {
    left: 100%;
}

body.admin-page .nav-menu .nav-link.active {
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.1);
}

/* Touch-Friendly Mobile Buttons (44x44px minimum) */
@media (max-width: 768px) {
    .btn,
    .search-btn,
    .mobile-menu-btn,
    .hamburger {
        min-width: 44px;
        min-height: 44px;
    }

    .nav-link,
    .mobile-nav-link {
        min-height: 44px;
        padding: 12px 20px;
    }

    /* Larger tap targets for mobile */
    .event-card,
    .category-card {
        min-height: 44px;
    }

    /* Better spacing for mobile */
    .events-grid {
        gap: 20px;
    }

    .categories-grid {
        gap: 15px;
        padding: 10px 0 25px 0;
        margin: 0 -10px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .categories-grid .category-card {
        min-width: 140px;
        max-width: 160px;
        padding: 25px 15px;
    }
}

/* Improved Mobile Grid Layout */
@media (max-width: 480px) {
    .events-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .categories-grid {
        gap: 15px;
        padding: 10px 0 25px 0;
        margin: 0 -10px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .categories-grid .category-card {
        min-width: 130px;
        max-width: 150px;
        padding: 20px 15px;
    }

    /* Ensure text remains readable */
    .event-title {
        font-size: 16px;
        line-height: 1.4;
    }

    .event-content {
        padding: 15px;
    }

    /* Keep hero stats in a single row on mobile */
    .hero-stats {
        flex-direction: row;
        justify-content: space-around;
        gap: 15px;
        flex-wrap: nowrap;
        align-items: center;
    }

    .stat-item {
        flex: 1;
        min-width: 0;
        max-width: none;
    }
}

/* Modern Card Hover Effects */
.event-card,
.category-card,
.package-preview-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.event-card:active,
.category-card:active {
    transform: scale(0.98);
}

/* Enhanced Stats Cards for Admin */
.stats-grid .stat-card {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.stats-grid .stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 107, 107, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stats-grid .stat-card:hover::before {
    opacity: 1;
}

.stats-grid .stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(255, 107, 107, 0.15);
}

/* Loading Spinner with Red Theme */
.loading-spinner {
    color: #ff6b6b;
}

.loading-spinner i {
    color: #ff6b6b;
}

/* Enhanced Button Styles */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

/* Improved Form Inputs with Red Focus */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
textarea,
select {
    font-size: 16px; /* Prevent zoom on iOS */
}

/* Smooth Transitions for All Interactive Elements */
a, button, input, select, textarea {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced Mobile Menu */
@media (max-width: 768px) {
    .mobile-menu-overlay {
        backdrop-filter: blur(5px);
    }

    .mobile-menu-content {
        box-shadow: -4px 0 20px rgba(255, 107, 107, 0.2);
    }

    .mobile-nav-link {
        font-size: 16px;
        padding: 15px 20px;
    }

    /* Better touch feedback */
    .mobile-nav-link:active {
        background-color: rgba(255, 107, 107, 0.1);
    }
}

/* Gradient Text Effect */
.gradient-red-text {
    background: linear-gradient(45deg, #ff6b6b, #ff5252);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero Section Enhancements */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, rgba(248, 250, 252, 0.8));
}

/* Enhanced Price Display */
.price,
.price-amount {
    background: linear-gradient(135deg, #ff6b6b, #ff5252);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Improved Admin Table */
.table-container table.data-table thead th {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe5e5 100%);
    color: #c92a2a;
    font-weight: 600;
}

.table-container table.data-table tbody tr:hover {
    background: rgba(255, 107, 107, 0.05);
}

/* คอลัมน์วันที่ — DD/MM/YYYY HH:MM */
.table-container table.data-table th.col-datetime,
.table-container table.data-table td.col-datetime {
    min-width: 130px;
    white-space: nowrap;
}

/* Modern Shadow Effects */
.content-section,
.admin-header,
.stat-card,
.payment-card,
.concert-card-admin {
    box-shadow: 0 2px 12px rgba(255, 107, 107, 0.08);
}

.content-section:hover,
.payment-card:hover,
.concert-card-admin:hover {
    box-shadow: 0 8px 24px rgba(255, 107, 107, 0.12);
}

/* Responsive Typography */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    h1 { font-size: 24px; }
    h2 { font-size: 20px; }
    h3 { font-size: 18px; }
    h4 { font-size: 16px; }

    .hero-title {
        font-size: 32px;
    }

    .section-header h2 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

    .section-header h2 {
        font-size: 22px;
    }
}

/* Enhanced Scrollbar with Red Theme */
::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ff6b6b, #ff5252);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #ff5252, #c92a2a);
}

/* Mobile-First Grid Improvements - removed duplicate rule, using main .events-grid */

@media (max-width: 768px) {
    .events-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .events-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .event-content {
        padding: 15px 12px;
    }
}

/* Optimized Touch Targets for Admin */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .stat-card {
        padding: 16px;
    }

    /* Better table on mobile */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .data-table {
        min-width: 600px;
    }
}

/* Improved Mobile Forms */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevent iOS zoom */
        padding: 14px 16px; /* Larger touch target */
    }

    .modal-footer {
        flex-direction: column;
        gap: 10px;
    }

    .modal-footer .btn {
        width: 100%;
        min-height: 44px;
    }
}

/* Performance Optimizations */
.event-card,
.category-card,
.feature-card {
    will-change: transform;
}

/* Smooth Scroll Padding for Fixed Header */
html {
    scroll-padding-top: 90px;
}

/* Enhanced Active States for Better UX */
button:active,
.btn:active {
    transform: scale(0.98);
}

/* Better Focus Indicators for Accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 3px solid #ff6b6b;
    outline-offset: 3px;
    border-radius: 4px;
}

/* Improved Loading States */
.btn:disabled,
.btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

/* Enhanced Hero Section Overlay */
.hero::before {
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 135, 135, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 82, 82, 0.2) 0%, transparent 50%);
}

/* Modern Admin Stats with Icon Gradients */
.stats-grid .stat-card .stat-icon {
    background: linear-gradient(135deg, #ff6b6b, #ff5252);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

/* Improved Action Buttons */
.header-actions .btn {
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: auto;
    min-width: auto;
    max-width: none;
}

.header-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

/* Mobile Navigation Improvements */
@media (max-width: 768px) {
    body.admin-page .navbar {
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    body.admin-page .navbar.active {
        transform: translateX(0);
    }

    .sidebar-overlay {
        backdrop-filter: blur(3px);
        transition: opacity 0.3s ease;
    }
}

/* Enhanced Package Cards */
.package-preview-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.package-preview-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(255, 107, 107, 0.2);
}

/* Better Status Badges */
.status-badge {
    transition: all 0.3s ease;
}

.status {
    transition: all 0.3s ease;
}

/* Mobile-First Container Padding */
@media (max-width: 768px) {
    .container,
    .hero-container {
        padding: 0 16px;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .hero {
        padding: 80px 0 60px;
        overflow-x: hidden;
    }

    .main-content {
        padding: 90px 16px 20px 16px;
    }

    body.admin-page .main-content {
        padding: 20px 16px;
    }
}

/* Enhanced Footer Links */
.footer-section ul li a {
    position: relative;
    display: inline-block;
}

.footer-section ul li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ff6b6b;
    transition: width 0.3s ease;
}

.footer-section ul li a:hover::after {
    width: 100%;
}

/* Improved Modal Animations */
.modal.active .modal-content {
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Better Mobile Menu Animation */
@media (max-width: 768px) {
    .mobile-menu-overlay.active .mobile-menu-content {
        animation: slideInRight 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    @keyframes slideInRight {
        from {
            transform: translateX(100%);
        }
        to {
            transform: translateX(0);
        }
    }
}

/* Enhanced Responsive Tables */
@media (max-width: 768px) {
    .table-container {
        border-radius: 12px;
        overflow: hidden;
    }

    .data-table thead {
        display: none; /* Hide headers on mobile, use card layout instead */
    }

    .data-table tbody tr {
        display: block;
        margin-bottom: 15px;
        background: white;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(255, 107, 107, 0.1);
        padding: 15px;
    }

    .data-table tbody td {
        display: block;
        text-align: left;
        padding: 8px 0;
        border: none;
    }

    .data-table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #ff6b6b;
        display: inline-block;
        width: 120px;
    }
}

/* Improved Pagination */
.pagination {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-btn {
    min-width: 40px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-btn.active {
    background: linear-gradient(135deg, #ff6b6b, #ff5252);
    color: white;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

/* Modern Search Input */
.search-input {
    transition: all 0.3s ease;
}

.search-input:focus {
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
    border-color: #ff6b6b;
}

/* Enhanced Filter Buttons */
.filters-bar select,
.filter-select {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px 16px;
    transition: all 0.3s ease;
    font-size: 16px;
    color: #1e293b !important;
    background-color: #ffffff !important;
    font-weight: 500;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.filters-bar select:focus,
.filter-select:focus {
    border-color: #ff6b6b;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
    outline: none;
    color: #1e293b !important;
    background-color: #ffffff !important;
}

/* Filter select options - ensure text is visible */
.filters-bar select option,
.filter-select option {
    color: #1e293b !important;
    background-color: #ffffff !important;
    padding: 8px 12px;
    font-weight: 500;
}

/* Filter select when disabled or placeholder */
.filters-bar select:disabled,
.filter-select:disabled {
    color: #94a3b8 !important;
    background-color: #f1f5f9 !important;
}

/* Ensure filter select text is always visible on all browsers */
.filters-bar select::-webkit-input-placeholder,
.filter-select::-webkit-input-placeholder {
    color: #1e293b !important;
    opacity: 1;
}

.filters-bar select::-moz-placeholder,
.filter-select::-moz-placeholder {
    color: #1e293b !important;
    opacity: 1;
}

.filters-bar select:-ms-input-placeholder,
.filter-select:-ms-input-placeholder {
    color: #1e293b !important;
    opacity: 1;
}

/* Improved Mobile Navigation Toggle */
@media (max-width: 768px) {
    .hamburger.active span:nth-child(1) {
        background: #ff6b6b;
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        background: #ff6b6b;
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

/* Enhanced User Menu Dropdown */
.user-dropdown {
    animation: fadeInDown 0.3s ease;
}

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

/* Better Mobile Card Stacking */
@media (max-width: 480px) {
    .booking-details,
    .event-detail {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .hero-card {
        max-width: 100%;
    }

    .ticket-hero {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Extra small devices (phones in portrait, less than 375px) */
@media (max-width: 374px) {
    .hero {
        padding: 80px 0 35px;
    }

    .hero-container {
        gap: 20px;
        padding: 0 10px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .hero-content {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
        padding: 0;
    }

    .hero-title {
        font-size: 24px;
        margin-bottom: 10px;
    }

    .hero-subtitle {
        font-size: 13px;
        margin-bottom: 20px;
        padding: 0 5px;
    }

    .hero-subtitle strong {
        font-size: 14px;
    }

    .search-container {
        padding: 0 5px;
    }

    .search-input {
        padding: 10px 44px 10px 12px;
        font-size: 16px;
    }

    .search-btn {
        width: 32px;
        height: 32px;
    }

    .hero-stats {
        flex-direction: row;
        justify-content: space-around;
        gap: 8px;
        flex-wrap: nowrap;
    }

    .stat-item {
        flex: 1;
        min-width: 0;
        max-width: none;
    }

    .stat-number {
        font-size: 22px;
    }

    .stat-label {
        font-size: 11px;
    }

    .hero-image {
        padding: 0 5px;
        box-sizing: border-box;
    }

    .hero-slider {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .slider-container {
        width: 100%;
        max-width: 100%;
        border-radius: 8px;
        overflow: hidden;
        box-sizing: border-box;
    }

    .slider-wrapper {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    .slider-card {
        padding: 5px;
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        flex-shrink: 0;
    }

    .hero-card {
        border-radius: 10px;
        width: 100%;
        box-sizing: border-box;
    }

    .hero-card .card-header,
    .hero-card .card-price {
        padding: 10px 12px;
    }

    .card-header {
        padding: 10px 12px 0 12px;
        margin-bottom: 10px;
        gap: 10px;
    }

    .card-date {
        padding: 8px;
        min-width: 45px;
    }

    .date-day {
        font-size: 16px;
    }

    .date-month {
        font-size: 9px;
    }

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

    .card-info h3,
    .card-info .hero-card-title {
        font-size: 14px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .card-info p {
        font-size: 11px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .card-price {
        padding: 10px 12px 12px 12px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .price-label {
        font-size: 11px;
    }

    .price-amount {
        font-size: 16px;
    }

    .btn-book {
        padding: 9px 12px;
        font-size: 12px;
        width: 100%;
        margin-top: 6px;
    }

    .slider-nav {
        width: 28px;
        height: 28px;
        min-width: 28px;
        min-height: 28px;
    }

    .slider-nav i {
        font-size: 11px;
    }

    .slider-prev {
        left: 3px;
    }

    .slider-next {
        right: 3px;
    }

    .slider-dots {
        bottom: 5px;
        gap: 5px;
    }

    .slider-dot {
        width: 6px;
        height: 6px;
        min-width: 6px;
        min-height: 6px;
    }

    .no-featured {
        padding: 15px;
    }

    .no-featured-content {
        padding: 25px 15px;
    }

    .no-featured-content i {
        font-size: 40px;
    }

    .no-featured-content h3,
.no-featured-content .no-featured-title {
        font-size: 18px;
        margin: 12px 0 8px 0;
    }

    .no-featured-content p {
        font-size: 13px;
    }

    .map-icon-link {
        padding: 4px 8px;
        font-size: 0.75rem;
        gap: 3px;
        margin-left: 4px;
    }

    .map-icon-link i {
        font-size: 11px;
    }

    .map-link-text {
        font-size: 0.7rem;
    }

    .card-info p {
        flex-wrap: wrap;
        gap: 4px;
        font-size: 12px;
    }
}

/* Improved Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark mode support for better contrast */
@media (prefers-color-scheme: dark) {
    /* Optional: Add dark mode styles if needed */
}

/* Enhanced Logout Button */
.logout-btn {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.2), rgba(255, 82, 82, 0.2));
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

/* Nav Footer Styling */
.nav-footer {
    padding: 20px;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Enhanced Button Variants */
.btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.btn-warning:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.btn-info {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.btn-info:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

/* Small Button Variants */
.btn-sm {
    padding: 6px 12px;
    font-size: 14px;
    min-width: 36px;
    min-height: 36px;
}

@media (max-width: 768px) {
    .btn-sm {
        min-width: 44px;
        min-height: 44px;
        padding: 10px 14px;
    }
}

/* Enhanced Admin Header */
.admin-header {
    background: white;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(255, 107, 107, 0.08);
    border-left: 4px solid #ff6b6b;
}

.admin-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

@media (max-width: 768px) {
    .admin-header-content {
        flex-direction: column;
        gap: 15px;
    }

    .header-actions {
        width: 100%;
        flex-direction: column;
    }

    .header-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

.admin-title {
    color: #1e293b;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 4px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.3;
}

.admin-title i {
    color: #ff6b6b;
}

.admin-subtitle {
    color: #64748b;
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
}

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

/* Enhanced Content Wrapper */
.content-wrapper {
    animation: fadeInUp 0.5s ease;
}

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

/* Improved Action Bar */
.action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .action-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .action-bar .search-box {
        width: 100%;
    }

    .action-bar .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Enhanced Concert/Payment Grid for Admin */
.concert-grid,
.payments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

@media (max-width: 768px) {
    .concert-grid,
    .payments-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

.concert-card-admin,
.payment-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.concert-card-admin:hover,
.payment-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(255, 107, 107, 0.12);
}

/* Improved Status Indicators */
.status-active {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.status-inactive {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* Print styles */
@media print {
    .navbar,
    .hamburger,
    .mobile-menu-overlay,
    .footer,
    .btn,
    button {
        display: none !important;
    }

    body.admin-page .main-content {
        margin-left: 0 !important;
    }

    .main-content {
        padding: 0 !important;
    }
}

/* ===== SCAN PAGE STYLING ===== */
.scanner-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    text-align: center;
}

.scanner-header h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.scanner-header p {
    opacity: 0.9;
    margin-bottom: 0;
}

.camera-container {
    max-width: 100%;
    margin: 15px auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

.camera-wrapper {
    position: relative;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    width: 100%;
    aspect-ratio: 4/4.2;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.camera-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.scanner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scanner-frame {
    width: 280px;
    height: 280px;
    border: 4px solid #00ff00;
    border-radius: 16px;
    position: relative;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
    background: rgba(0, 255, 0, 0.05);
    animation: scanner-pulse 2s ease-in-out infinite;
}

@keyframes scanner-pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
        border-color: #00ff00;
    }
    50% {
        box-shadow: 0 0 30px rgba(0, 255, 0, 0.6);
        border-color: #00dd00;
    }
}

.scanner-frame::before,
.scanner-frame::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border: 4px solid #00ff00;
}

.scanner-frame::before {
    top: -4px;
    left: -4px;
    border-right: none;
    border-bottom: none;
    border-radius: 16px 0 0 0;
}

.scanner-frame::after {
    bottom: -4px;
    right: -4px;
    border-left: none;
    border-top: none;
    border-radius: 0 0 16px 0;
}

.scan-instructions {
    position: absolute;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    background: rgba(0, 0, 0, 0.7);
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.4;
    backdrop-filter: blur(5px);
    max-width: 280px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 20;
}

.instruction-main {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    margin-bottom: 4px;
}

.instruction-main i {
    font-size: 16px;
    color: #00ff00;
}

.instruction-sub {
    font-size: 12px;
    opacity: 0.8;
}

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

.camera-controls button {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.manual-input-section {
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.manual-input-section h4 {
    margin-bottom: 15px;
    color: white;
}

.input-group {
    display: flex;
    gap: 10px;
    max-width: 400px;
    margin: 0 auto;
}

.input-group input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
}

.scan-results {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.scan-result-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.result-header h4 {
    margin: 0;
    color: #333;
}

.result-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-valid { background: #d4edda; color: #155724; }
.status-used { background: #d4edda; color: #155724; }
.status-partially_used { background: #fff3cd; color: #856404; }
.status-expired { background: #fff3cd; color: #856404; }
.status-invalid { background: #f8d7da; color: #721c24; }

.result-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row strong {
    color: #666;
}

.scan-error {
    text-align: center;
    padding: 30px;
    color: #dc3545;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    margin: 20px 0;
}

.scan-error i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.7;
    display: block;
}

.scan-error p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Scan Progress Styles */
.scan-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #20c997);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: #495057;
    min-width: 60px;
}

.recent-scans {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.recent-scans h3 {
    margin-bottom: 20px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.scans-list {
    max-height: 400px;
    overflow-y: auto;
}

.scan-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    transition: background 0.2s ease;
}

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

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

.scan-item.scan-complete {
    border-left: 4px solid #28a745;
}

.scan-item.scan-partial {
    border-left: 4px solid #ffc107;
}

.scan-item.scan-active {
    border-left: 4px solid #007bff;
}

.scan-info {
    flex: 1;
}

.scan-ticket {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.ticket-quantity {
    color: #6c757d;
    font-size: 0.9em;
    font-weight: normal;
}

.scan-user, .scan-concert, .scan-time, .scan-type {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.scan-time {
    color: #999;
}

.scan-progress {
    flex: 1;
    min-width: 150px;
    margin: 0 15px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    font-size: 0.9em;
}

.progress-text {
    color: #007bff;
    font-weight: 500;
}

.progress-percent {
    color: #6c757d;
    font-weight: 600;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 5px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #28a745 0%, #20c997 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.remaining-info {
    font-size: 0.8em;
    color: #dc3545;
    font-weight: 500;
}

.scan-status {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    z-index: 15;
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.scan-status .status-indicator.scanning {
    background: rgba(0, 123, 255, 0.9);
    color: white;
}

.scan-status .status-indicator.error {
    background: rgba(220, 53, 69, 0.9);
    color: white;
}

.scan-status .status-indicator.stopped {
    background: rgba(108, 117, 125, 0.9);
    color: white;
}

.no-scans {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease;
}

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

.modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #333;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close:hover {
    color: #333;
}

.modal-body {
    padding: 30px;
    max-height: 60vh;
    overflow-y: auto;
}

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

.permission-actions button {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Responsive Design for Scan Page */
@media (max-width: 768px) {
    .scanner-section {
        padding: 15px;
    }

    .camera-container {
        padding: 0 15px;
        margin: 10px auto;
    }

    .camera-wrapper {
        aspect-ratio: 3/5.0; /* More portrait for mobile */
        max-width: none;
        width: 100%;
        margin: 0;
        position: relative;
    }

    .scanner-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .scanner-frame {
        width: 320px;
        height: 320px;
        border-width: 5px;
        border-radius: 20px;
        box-shadow: 0 0 30px rgba(0, 255, 0, 0.4);
    }

    .scanner-frame::before,
    .scanner-frame::after {
        width: 50px;
        height: 50px;
        border-width: 5px;
    }

    .scanner-frame::before {
        top: -5px;
        left: -5px;
        border-radius: 20px 0 0 0;
    }

    .scanner-frame::after {
        bottom: -5px;
        right: -5px;
        border-radius: 0 0 20px 0;
    }

    .scan-instructions {
        bottom: -100px;
        font-size: 16px;
        padding: 16px 20px;
        max-width: 320px;
        z-index: 20;
    }

    .instruction-main {
        font-size: 16px;
    }

    .instruction-main i {
        font-size: 18px;
    }

    .instruction-sub {
        font-size: 14px;
    }

    .camera-controls {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .input-group {
        flex-direction: column;
        max-width: none;
    }

    .result-details {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .scan-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .camera-container {
        padding: 0 10px;
        margin: 8px auto;
    }

    .camera-wrapper {
        aspect-ratio: 9/19.8; /* Very portrait for small screens */
        position: relative;
    }

    .scanner-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .scanner-frame {
        width: min(280px, 80vw);
        height: min(280px, 80vw);
        border-width: 4px;
        border-radius: 16px;
        box-shadow: 0 0 25px rgba(0, 255, 0, 0.3);
    }

    .scanner-frame::before,
    .scanner-frame::after {
        width: 35px;
        height: 35px;
        border-width: 4px;
    }

    .scanner-frame::before {
        top: -4px;
        left: -4px;
        border-radius: 16px 0 0 0;
    }

    .scanner-frame::after {
        bottom: -4px;
        right: -4px;
        border-radius: 0 0 16px 0;
    }

    .scanner-section {
        padding: 10px;
    }

    .scan-instructions {
        bottom: -120px;
        font-size: 14px;
        padding: 12px 16px;
        max-width: 280px;
        z-index: 20;
    }

    .instruction-main {
        font-size: 14px;
        flex-direction: column;
        gap: 4px;
    }

    .instruction-main i {
        font-size: 16px;
    }

    .instruction-sub {
        font-size: 12px;
    }
}

/* Scan Confirmation Modal Styles */
.qr-data-display {
    margin-bottom: 20px;
}

.qr-data-display h4 {
    color: #495057;
    margin-bottom: 10px;
    font-size: 1rem;
}

.qr-data {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 12px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    word-break: break-all;
    max-height: 150px;
    overflow-y: auto;
    color: #495057;
    line-height: 1.4;
}

.qr-data-display {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 15px;
    max-height: 200px;
    overflow-y: auto;
}

.data-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.data-row:last-child {
    border-bottom: none;
}

.data-key {
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
    min-width: 80px;
}

.data-value {
    color: #6c757d;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    text-align: right;
    word-break: break-all;
    max-width: 200px;
}

.qr-data-raw {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: #6c757d;
    word-break: break-all;
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.confirmation-message {
    margin-bottom: 20px;
}

.confirmation-message p {
    margin: 8px 0;
    color: #6c757d;
    line-height: 1.5;
}

.confirmation-message .warning-text {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 12px;
    color: #856404;
    margin-top: 12px;
    font-weight: 500;
}

.confirmation-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.scan-result-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.scan-ok-btn {
    min-width: 100px;
    margin: 0 auto;
    display: block;
}

.scan-error {
    text-align: center;
    padding: 20px;
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
}

.scan-error i {
    font-size: 24px;
    margin-bottom: 10px;
    display: block;
}

.scan-error p {
    margin-bottom: 15px;
}

/* Password Input Wrapper with Eye Icon */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper input {
    flex: 1;
    padding-right: 45px;
}

.password-toggle-btn {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    color: #6c757d;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
    z-index: 10;
}

.password-toggle-btn:hover {
    color: #667eea;
}

.password-toggle-btn i {
    font-size: 18px;
}

/* Show on home toggle (concert card) */
.show-on-home-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    cursor: pointer;
    user-select: none;
}
.show-on-home-toggle input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.show-on-home-toggle-track {
    position: relative;
    width: 36px;
    height: 20px;
    flex-shrink: 0;
    background: #cbd5e1;
    border-radius: 20px;
    transition: background 0.2s ease;
}
.show-on-home-toggle input:checked + .show-on-home-toggle-track {
    background: #667eea;
}
.show-on-home-toggle input:disabled + .show-on-home-toggle-track {
    opacity: 0.6;
    cursor: not-allowed;
}
.show-on-home-toggle-knob {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    transition: transform 0.2s ease;
}
.show-on-home-toggle input:checked + .show-on-home-toggle-track .show-on-home-toggle-knob {
    transform: translateX(16px);
}
.show-on-home-toggle-text {
    color: #475569;
}

/* Concert Image Upload Area */
.file-upload-area {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    background: #f9f9f9;
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-upload-area.drag-over {
    border-color: #667eea;
    background: #f0f2ff;
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.upload-placeholder i {
    font-size: 48px;
    color: #6c757d;
}

.upload-placeholder p {
    margin: 0;
    color: #495057;
    font-weight: 500;
}

.upload-placeholder small {
    color: #6c757d;
    font-size: 0.875rem;
}

/* Image Upload UI Improvements */
.upload-tab-btn {
    transition: all 0.3s ease;
    font-weight: 600;
    background: #ffffff !important;
    color: #495057 !important;
    border: 2px solid #dee2e6 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.upload-tab-btn:hover {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%) !important;
    border-color: #667eea !important;
    color: #667eea !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.2);
}

.upload-tab-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #ffffff !important;
    border-color: #667eea !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    transform: translateY(-1px);
    font-weight: 700;
}

.upload-tab-content {
    animation: fadeIn 0.3s ease-in;
}

.current-image-preview {
    padding: 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    margin-bottom: 16px;
    position: relative;
}

.current-image-preview img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    max-height: 250px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    object-fit: contain;
}

.image-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 12px;
    flex-wrap: wrap;
}

.image-actions .btn {
    min-width: 120px;
}

.image-upload-options {
    background: #ffffff;
    border-radius: 8px;
    padding: 16px;
    border: 1px solid #e0e0e0;
}

.upload-tabs {
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 16px;
    padding-bottom: 0;
}

.upload-area {
    transition: all 0.3s ease;
    position: relative;
}

.upload-area:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.upload-area.dragover {
    border-color: #667eea;
    background: #e8f0fe;
    transform: scale(1.02);
}

.file-preview {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    border: 1px solid #e0e0e0;
}

.file-preview img {
    max-width: 100%;
    max-height: 250px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    object-fit: contain;
}

.preview-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 12px;
    flex-wrap: wrap;
}

.preview-actions .btn {
    min-width: 140px;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .current-image-preview {
        padding: 12px;
    }
    
    .current-image-preview img {
        max-height: 180px;
    }
    
    .image-actions {
        flex-direction: column;
    }
    
    .image-actions .btn {
        width: 100%;
    }
    
    .upload-tabs {
        flex-direction: column;
    }
    
    .upload-tab-btn {
        width: 100%;
    }
    
    .preview-actions {
        flex-direction: column;
    }
    
    .preview-actions .btn {
        width: 100%;
    }
}

.upload-area.dragover {
    border-color: #667eea !important;
    background: #f0f4ff !important;
}

.file-preview {
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.file-preview img {
    display: block;
    margin: 0 auto;
}

.preview-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 12px;
}

.image-preview {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.image-preview img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.remove-image-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.remove-image-btn:hover {
    background: #c82333;
    transform: translateY(-2px);
}

/* Profile Completion Modal */
.profile-completion-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.profile-completion-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 10001;
}

.profile-completion-modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 10002;
    animation: slideUp 0.3s ease;
    margin: 20px;
}

.profile-completion-modal-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid #e5e7eb;
    text-align: center;
}

.profile-completion-modal-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.profile-completion-modal-header h2 i {
    color: #667eea;
    font-size: 28px;
}

.profile-completion-subtitle {
    color: #64748b;
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

.profile-completion-form {
    padding: 24px;
}

.profile-completion-form .form-group {
    margin-bottom: 20px;
}

.profile-completion-form label {
    display: block;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
    font-size: 14px;
}

.profile-completion-form label i {
    color: #667eea;
    margin-right: 6px;
    width: 18px;
}

.profile-completion-form .required {
    color: #ef4444;
    margin-left: 2px;
}

.profile-completion-form input[type="text"],
.profile-completion-form input[type="email"],
.profile-completion-form input[type="tel"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.profile-completion-form input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.profile-completion-form input:invalid:not(:placeholder-shown) {
    border-color: #ef4444;
}

.profile-completion-form .form-hint {
    display: block;
    color: #64748b;
    font-size: 12px;
    margin-top: 6px;
    line-height: 1.4;
}

.profile-completion-form .error-message {
    display: none;
    color: #ef4444;
    font-size: 13px;
    margin-top: 6px;
    padding-left: 4px;
}

.profile-completion-form .error-message.show {
    display: block;
}

.profile-completion-modal-actions {
    padding: 20px 24px 24px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.profile-completion-modal-actions .btn {
    padding: 12px 32px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 140px;
    justify-content: center;
}

.profile-completion-modal-actions .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.profile-completion-modal-actions .btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.profile-completion-modal-actions .btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.profile-completion-modal-actions .btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

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

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

/* Responsive Design for Profile Completion Modal */
@media (max-width: 768px) {
    .profile-completion-modal-content {
        width: 95%;
        max-width: none;
        margin: 10px;
        max-height: 95vh;
    }

    .profile-completion-modal-header {
        padding: 20px 20px 14px;
    }

    .profile-completion-modal-header h2 {
        font-size: 20px;
    }

    .profile-completion-modal-header h2 i {
        font-size: 24px;
    }

    .profile-completion-form {
        padding: 20px;
    }

    .profile-completion-form .form-group {
        margin-bottom: 18px;
    }

    .profile-completion-modal-actions {
        padding: 16px 20px 20px;
        flex-direction: column;
    }

    .profile-completion-modal-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .profile-completion-modal-content {
        border-radius: 12px;
    }

    .profile-completion-modal-header {
        padding: 16px 16px 12px;
    }

    .profile-completion-modal-header h2 {
        font-size: 18px;
        flex-direction: column;
        gap: 8px;
    }

    .profile-completion-form {
        padding: 16px;
    }

    .profile-completion-form input[type="text"],
    .profile-completion-form input[type="email"],
    .profile-completion-form input[type="tel"] {
        padding: 10px 14px;
        font-size: 14px;
    }
}

/* Consent Label Styles - Fixed Alignment */
.consent-label {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 10px !important;
    cursor: pointer;
    font-weight: 400;
    margin: 0;
    padding: 0;
    width: 100%;
    line-height: 1.5;
}

.consent-label input[type="checkbox"] {
    order: -1 !important;
    margin: 0 !important;
    margin-top: 2px !important;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    min-width: 18px;
    cursor: pointer;
    accent-color: #667eea;
}

.consent-label > span {
    flex: 1;
    display: block;
    line-height: 1.5;
    word-wrap: break-word;
}

.consent-label > span a {
    color: #667eea;
    text-decoration: underline;
    font-weight: 500;
}

.consent-label > span a:hover {
    color: #5568d3;
}

/* Ensure form-group containing consent-label has proper alignment */
.form-group:has(.consent-label) {
    margin-bottom: 16px;
}

.form-group:has(.consent-label) .consent-label {
    width: 100%;
    max-width: 100%;
}