.navbar {
    background-color: #0056b3 !important;
}

.navbar-brand {
    color: white !important;
}

.navbar-light .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
}

.navbar-light .navbar-nav .nav-link:hover {
    color: white !important;
}

.top-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background: linear-gradient(to right, #fff 0%, #ffffff 20%, #002081 100%) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.45);
    padding: 10px 0;
    transition: all 0.3s ease;
}

.top-navbar .navbar-brand {
    display: flex;
    align-items: center;
}

.top-navbar .navbar-brand img {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.top-navbar .navbar-brand:hover img {
    transform: scale(1.05);
}

/* Center logo in navbar */
.navbar .navbar-brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin-left: 0 !important;
    margin-right: 0 !important;
    z-index: 2;
}

/* LINE Login Button */
.line-login-btn {
    background-color: #00c300;
    color: white;
    border: none;
    padding: 4px 10px; 
    border-radius: 18px;   
    font-size: 0.92rem;     
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    max-width: 150px;     
    width: auto;
    white-space: nowrap;  
}

.line-login-btn:hover {
    background-color: #00b300;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.user-menu {
    display: flex;
    align-items: center;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 5px 15px;
    border: none;
    transition: all 0.3s ease;
}

.user-menu:hover, .user-menu:focus {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.user-menu img {
    border: 2px solid white;
    object-fit: cover;
}

/* Dropdown menu (used in header) */
.dropdown-menu {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: none;
    padding: 8px 0;
}

.dropdown-item {
    padding: 8px 16px;
}

.dropdown-item:active {
    background-color: #0056b3;
}

/* Add margin below the navbar to prevent content overlap */
main.container {
    position: relative;
    z-index: 1;
    padding-top: 20px;
}

/* Point header box (custom style for point display area) */
.point-header-box {
    background: linear-gradient(90deg, #fffbe7 0%, #ffe7b2 100%);
    border-radius: 18px;
    padding: 10px 22px 10px 10px;
    box-shadow: none;
    min-width: 320px;
    max-width: 420px;
}

.point-header-box img[alt="Point"] {
    vertical-align: middle;
    margin-bottom: 2px;
}

.point-header-box .btn-outline-warning {
    border-radius: 16px;
    border-width: 2px;
    font-weight: 500;
}

.point-header-box .btn-outline-secondary {
    border-radius: 50%;
    padding: 7px 10px;
    font-size: 1.1rem;
    border-width: 2px;
    color: #888;
    background: #fff;
    transition: background 0.2s;
}

.point-header-box .btn-outline-secondary:hover {
    background: #ffe7b2;
    color: #222;
}

/* Logout button in top right */
.logout-btn-top {
    font-size: 1.1rem;
    padding: 4px 8px 4px 8px !important;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    transition: background 0.2s, color 0.2s;
}

.logout-btn-top i {
    margin: 0;
}

.logout-btn-top:hover, .logout-btn-top:focus {
    background: #dc3545;
    color: #fff;
    border-color: #dc3545;
}



.point-center-box {
    background: rgba(0, 0, 0, 0.487) !important;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(1px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 32px 0 rgba(31, 38, 135, 0.37),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-radius: 18px;
    padding: 4px 12px;
    min-width: 90px;
    gap: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.point-center-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    animation: shine 5s infinite;
}

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


.profile-inline-img {
    border-color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.10);
    margin-bottom: 0;
    border-width: 1px !important;
}

.point-label {
    color: #fff;
    font-size: 0.80rem; /* เดิม 1rem */
    font-weight: 500;
    letter-spacing: 1px;
}
.point-value {
    color: #ffffff;
    font-size: 0.9rem; 
    font-weight: 800;
    letter-spacing: 0px;
}
.point-center-box img[alt="Point"] {
    width: 14px !important;   /* เดิม 18px */
    height: 14px !important;  /* เดิม 18px */
    margin-left: 2px;
    margin-bottom: 1px;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
}
.point-center-box .point-bg-round {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 50%;
    border: 1.5px solid #e3eafc;
    box-shadow: none;
    padding: 9px; /* เดิม 5px */
    margin-bottom: 1px;
    background-clip: padding-box;
    width: 22px; 
    height: 22px; 
}



/* Top-right hamburger button (replaces logout icon) */
.menu-btn-top {
    font-size: 1.1rem;
    padding: 4px 8px 4px 8px !important;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    background: #ffffff !important; /* พื้นหลังเข้มขึ้น สามขีดขาวจะเห็นชัด */
}
.menu-btn-top i {
    margin: 0;
    color: #000000 !important; /* สามขีดเป็นสีขาว */
}
.menu-btn-top:hover, .menu-btn-top:focus {
    background: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
}

/* Compact sticky header (hidden by default, shown on scroll) */
.compact-header-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    height: 54px;
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    transition: top 0.3s;
    backdrop-filter: blur(7px);
    opacity: 0;
    transform: translateY(-48px) scale(0.98);
    transition:
        opacity 0.45s cubic-bezier(.4,0,.2,1),
        transform 0.45s cubic-bezier(.4,0,.2,1),
        filter 0.45s cubic-bezier(.4,0,.2,1),
        box-shadow 0.45s cubic-bezier(.4,0,.2,1);
    display: flex;
    box-shadow: 0 2.5px 18px 0 rgba(80,120,180,0.13), 0 1.5px 8px 0 rgba(255,255,255,0.18) inset;
    border-bottom: 1.5px solid rgba(255,255,255,0.22);

    transition: box-shadow 0.35s cubic-bezier(.4,0,.2,1), border-bottom 0.35s cubic-bezier(.4,0,.2,1), background 0.35s cubic-bezier(.4,0,.2,1);
}

.compact-header-bar.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
    display: flex !important;
}

.compact-header-bar .compact-logo {
    height: 38px;
    width: auto;
    display: flex;
    align-items: center;
}

.compact-point-center {
    display: flex;
    align-items: center;
    justify-content: center;
     background: rgba(20, 20, 20, 0.556);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 2px 10px;
    min-width: 70px;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(33,150,243,0.08);
    border: 1.1px solid #d0f2ff;
}

.compact-profile-img {
    border-radius: 50%;
    border: 2px solid #fff;
    width: 32px;
    height: 32px;
    object-fit: cover;
    margin-right: 5px;
}

.compact-point-label {
    color: #fff;
    font-size: 0.8rem;
    font-weight: 500;
    margin-right: 3px;
}

.compact-point-value {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    margin-right: 2px;
}

.compact-point-bg-round {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(33,150,243,0.10);
    padding: 4px;
}

.compact-point-bg-round img {
    width: 7px;
    height: 7px;
    margin-left: 1px;
    
}

.compact-menu-btn {
    font-size: 1.2rem;
    background: #fff;
    color: #1976d2;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(13,110,253,0.07);
    transition: background 0.2s, color 0.2s;
}

.compact-menu-btn:hover,
.compact-menu-btn:focus {
    background: #1976d2;
    color: #fff;
}

/* Banner Popup Modal Slider - ปรับปรุงใหม่ สไตล์ Facebook ขาวสะอาด */
.banner-popup-modal {
    background: rgba(0, 0, 0, 0.55) !important;
    backdrop-filter: blur(2px);
    animation: overlayFadeIn 0.3s ease-out;
}

.banner-popup-modal .modal-dialog {
    max-width: 340px;
    width: 95vw;
    margin: 0 auto;
    outline: none;
}

.banner-popup-modal .modal-content {
    background: transparent;
    box-shadow: none;
    border: none;
    padding: 0;
    outline: none;
}

.banner-popup-modal .modal-body {
    padding: 0;
    outline: none;
    border: none;
}

/* กล่อง slider ไม่มีกรอบ ไม่มีเงา ไม่มีพื้นหลัง */
.banner-popup-slider-box {
    background: transparent;
    border-radius: 20px;
    box-shadow: none;
    padding: 0;
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: none;
}

/* ภาพ popup ขนาดเท่ากัน, มุมโค้งสวย */
.banner-popup-slider-img {
    width: 80%;
    max-width: 300px;
    height: auto; /* สูงขึ้นจาก 300px */
    object-fit: cover;
    border-radius: 20px;
    background: transparent;
    display: block;
    border: none;
    outline: none;
    transition: opacity 0.08s linear;
    margin: 0 auto;
}

/* ปรับตำแหน่งปุ่ม slider controls ให้ต่ำลง */
.banner-popup-slider-controls {
    position: absolute;
    top: 45%;
    left: 0; right: 0;
    display: flex;
    justify-content: space-between;
    width: 100%;
    z-index: 5;
    pointer-events: none;
    padding-left: 2px;  
    padding-right: 2px; 
    transform: translateY(-50%);
}

/* ปุ่มลูกศรไม่มีพื้นหลัง ไม่มีเงา */
.banner-popup-slider-arrow {
    background: transparent;
    color: #f9f9f9;
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    cursor: pointer;
    pointer-events: auto;
    transition: color 0.18s cubic-bezier(.4,0,.2,1), transform 0.18s cubic-bezier(.4,0,.2,1);
}
.banner-popup-slider-arrow:hover {
    color: #ffffffd8;
    transform: scale(1.08);
}

/* จุด slider */
.banner-popup-slider-dots {
    width: 100%;
    margin: 1px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    z-index: 3;
    background: transparent;
    padding: 8px 0;
}
.banner-popup-slider-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #e3eafc;
    opacity: 0.7;
    transition: all 0.18s cubic-bezier(.4,0,.2,1);
    cursor: pointer;
    box-shadow: none;
}
.banner-popup-slider-dot.active {
    background: #3471ff;
    opacity: 1;
    transform: scale(1.18);
}

/* ปุ่มปิด (กากบาท) ไม่มีพื้นหลัง ไม่มีขอบ ไม่มีเงา */
.banner-popup-bottom-action {
    width: 100%;
    text-align: center;
    padding: 18px 0 10px 0;
    background: transparent;
}
.banner-popup-close-btn-bottom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    width: 44px;
    height: 44px;
    padding: 0;
    box-shadow: none;
    margin-top: 0;
    margin-bottom: 0;
    cursor: pointer;
    transition: background 0.15s;
}
.banner-popup-close-btn-bottom:hover {
    background: transparent;
    box-shadow: none;
    opacity: 0.7;
}
.banner-popup-close-btn-bottom i {
    margin: 0;
    font-size: 1.6em;
    color: #fff; /* กากบาทสีขาว */
}



