:root {
    --primary-color: #600010;
    --secondary-color: #870018;
    --burgundy-dark: #40000a;
    --burgundy-deep: #2a0006;
    --gold-color: #d4af37;
    --gold-light: #f5e6b3;
    --gold-accent: #ffd700;
    --gold-gradient: linear-gradient(135deg, #d4af37 0%, #ffd700 50%, #aa8010 100%);
    --royal-gradient: linear-gradient(135deg, #600010 0%, #870018 50%, #40000a 100%);
    --surface-card: #ffffff;
    --surface-soft: #fff9f9;
    --border-gold: rgba(212, 175, 55, 0.25);
    --shadow-luxury: 0 10px 30px rgba(64, 0, 10, 0.08);
}

* {
    font-family: 'Sarabun', sans-serif;
    box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6, .navbar-brand, .price-val {
    font-family: 'Prompt', sans-serif;
}

body {
    background-color: #fcf9f9;
    color: #2b2b2b;
    overflow-x: hidden;
}

/* Top Price Ticker Bar */
.top-price-bar {
    background: linear-gradient(90deg, #2a0006 0%, #600010 50%, #2a0006 100%);
    color: #ffffff;
    padding: 8px 0;
    font-size: 0.88rem;
    position: relative;
    z-index: 1030;
    border-bottom: 1px solid rgba(212, 175, 55, 0.35);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.live-pulse {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #2ecc71;
    border-radius: 50%;
    margin-right: 6px;
    box-shadow: 0 0 0 rgba(46, 204, 113, 0.6);
    animation: pulseGreen 1.8s infinite;
}

@keyframes pulseGreen {
    0% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(46, 204, 113, 0); }
    100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

.price-group {
    display: inline-flex;
    align-items: center;
    margin-right: 18px;
    white-space: nowrap;
    flex: 0 0 auto;
}

/* ให้แถบราคาด้านบนเลื่อนได้เอง ไม่ดันหน้าเว็บกว้างเกินจอ */
.top-price-scroll {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    min-width: 0;
    flex: 0 1 auto;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.top-price-scroll::-webkit-scrollbar {
    height: 3px;
}

.top-price-scroll::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.5);
    border-radius: 3px;
}

.price-label {
    background: rgba(212, 175, 55, 0.2);
    color: var(--gold-accent);
    border: 1px solid rgba(212, 175, 55, 0.4);
    padding: 2px 10px;
    border-radius: 20px;
    margin-right: 8px;
    font-size: 0.78rem;
    font-weight: 600;
}

.price-val {
    font-weight: 700;
    color: var(--gold-accent);
    letter-spacing: 0.5px;
}

/* Luxury Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(64, 0, 10, 0.08);
    border-bottom: 1px solid rgba(212, 175, 55, 0.25);
    padding: 0.75rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.navbar-brand img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold-color, #d4af37);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    flex-shrink: 0;
}

.navbar-brand span {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: -0.2px;
    background: linear-gradient(135deg, #600010 0%, #870018 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.navbar-nav {
    gap: 0.35rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.55rem 1rem !important;
    transition: all 0.25s ease;
    color: #3b3b3b;
    border-radius: 8px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.navbar-nav .nav-link i {
    font-size: 0.9rem;
    color: var(--gold-color);
    transition: transform 0.25s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color);
    background: rgba(96, 0, 16, 0.05);
}

.navbar-nav .nav-link:hover i {
    transform: translateY(-2px);
}

.navbar-nav .nav-link.active {
    color: #ffffff;
    background: var(--royal-gradient);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(96, 0, 16, 0.25);
}

.navbar-nav .nav-link.active i {
    color: var(--gold-accent);
}

/* Luxury Dropdown */
.dropdown-menu {
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 10px 30px rgba(64, 0, 10, 0.15);
    border-radius: 12px;
    padding: 0.6rem;
    margin-top: 0.6rem;
    background: #ffffff;
    animation: fadeInMenu 0.2s ease-out;
}

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

.dropdown-item {
    padding: 0.65rem 1.2rem;
    font-size: 0.92rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    color: #333333;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.dropdown-item i {
    width: 24px;
    text-align: center;
    color: var(--gold-color);
    font-size: 0.95rem;
}

.dropdown-item:hover {
    background: rgba(96, 0, 16, 0.06);
    color: var(--primary-color);
    transform: translateX(4px);
}

.dropdown-item.active {
    background: var(--royal-gradient);
    color: #ffffff;
}

.dropdown-item.active i {
    color: var(--gold-accent);
}

.dropdown-divider {
    margin: 0.4rem 0;
    border-color: rgba(212, 175, 55, 0.2);
}

/* Navbar Action Buttons */
.btn-navbar {
    padding: 0.52rem 1.35rem;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-outline-burgundy {
    border: 1.5px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-burgundy:hover {
    background: rgba(96, 0, 16, 0.06);
    color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(96, 0, 16, 0.15);
}

.btn-gold {
    background: var(--royal-gradient);
    color: #ffffff;
    border: 1px solid rgba(212, 175, 55, 0.6);
    box-shadow: 0 4px 14px rgba(96, 0, 16, 0.3);
}

.btn-gold:hover {
    background: linear-gradient(135deg, #870018 0%, #aa0022 100%);
    color: #ffffff;
    border-color: var(--gold-accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(135, 0, 24, 0.4);
}

.btn-member-hub {
    background: linear-gradient(135deg, #40000a 0%, #600010 100%);
    color: var(--gold-accent);
    border: 1px solid rgba(212, 175, 55, 0.5);
    box-shadow: 0 4px 12px rgba(64, 0, 10, 0.25);
}

.btn-member-hub:hover {
    background: linear-gradient(135deg, #600010 0%, #870018 100%);
    color: #ffffff;
    border-color: var(--gold-accent);
    transform: translateY(-2px);
}

/* Mobile responsiveness */
@media (max-width: 991.98px) {
    .navbar-nav {
        margin-top: 1rem;
        padding-top: 0.5rem;
        border-top: 1px solid rgba(212, 175, 55, 0.2);
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
        border-radius: 8px;
        margin-bottom: 2px;
    }

    .dropdown-menu {
        border: none;
        box-shadow: none;
        background-color: #fbf7f7;
        margin: 0;
        padding: 0.5rem;
    }

    .dropdown-item {
        padding: 0.7rem 1.5rem;
    }

    .navbar-actions-mobile {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(212, 175, 55, 0.2);
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .navbar-actions-mobile .btn-navbar {
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .top-price-bar {
        width: 100% !important;
        margin: 0 !important;
        border-radius: 0 !important;
        padding: 6px 0 !important;
        font-size: 0.78rem;
        box-sizing: border-box;
    }

    .top-price-bar .container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
        margin: 0 auto !important;
    }

    /* แสดงราคาทอง 2 แถว จัดระยะสวยงามเต็มหน้าจอ */
    .top-price-scroll {
        width: 100% !important;
        flex: 1 1 100%;
        display: flex !important;
        flex-direction: column !important;
        gap: 4px;
        overflow: visible !important;
        padding: 0 !important;
    }

    .price-group {
        margin: 0 !important;
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        font-size: 0.78rem;
        white-space: nowrap;
    }

    .top-price-scroll .price-group.ms-2 {
        margin-left: 0 !important;
        border-left: 0 !important;
        padding-left: 0 !important;
    }

    .price-group .price-label {
        min-width: 82px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 2px 8px;
        font-size: 0.72rem;
        margin-right: 10px;
        border-radius: 12px;
    }

    .price-group .price-val {
        color: #ffd700;
        font-weight: 700;
    }

    .navbar-brand img {
        width: 40px;
        height: 40px;
    }

    .navbar-brand span {
        font-size: 1.1rem;
    }
}

/* Modern Luxury Footer Styles */
.footer-logo-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold-color, #d4af37);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
    background: #fff;
}

.footer {
    background: linear-gradient(145deg, #1f0004 0%, #350009 50%, #200005 100%);
    color: rgba(255, 255, 255, 0.85);
    padding: 70px 0 25px;
    margin-top: 80px;
    border-top: 2px solid rgba(212, 175, 55, 0.35);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #d4af37, #ffd700, #d4af37, transparent);
}

.footer h5 {
    color: var(--gold-accent, #ffd700);
    font-family: 'Prompt', sans-serif;
    font-weight: 600;
    font-size: 1.15rem;
    margin-bottom: 22px;
    letter-spacing: 0.3px;
    position: relative;
    padding-bottom: 8px;
}

.footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background: var(--gold-color, #d4af37);
    border-radius: 2px;
}

.footer-desc {
    font-size: 0.92rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links li a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-size: 0.92rem;
    display: inline-flex;
    align-items: center;
    transition: all 0.25s ease;
}

.footer-links li a i {
    font-size: 0.75rem;
    color: var(--gold-color, #d4af37);
    transition: transform 0.25s ease;
}

.footer-links li a:hover {
    color: var(--gold-accent, #ffd700);
    transform: translateX(6px);
}

.footer-links li a:hover i {
    transform: translateX(2px);
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact li i {
    color: var(--gold-accent, #ffd700);
    margin-top: 3px;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.social-icons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.25);
    color: #ffffff;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-decoration: none;
    font-size: 1.05rem;
}

.social-icons a:hover {
    background: var(--gold-gradient, linear-gradient(135deg, #d4af37, #ffd700));
    color: #3b000a;
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.35);
    border-color: var(--gold-accent);
}

.footer-bottom {
    margin-top: 45px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Floating Multi-Contact Widget */
.floating-contact {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1060;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.floating-contact .contact-main-button {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, #870018 0%, #40000a 100%);
    color: var(--gold-accent, #ffd700);
    border: 2px solid rgba(212, 175, 55, 0.6);
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(64, 0, 10, 0.45);
    transition: all 0.3s ease;
    order: 2;
}

.floating-contact .contact-main-button:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 24px rgba(135, 0, 24, 0.5);
}

.floating-contact .contact-icons {
    order: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
    transform: translateY(15px) scale(0.9);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-contact:hover .contact-icons,
.floating-contact.active .contact-icons {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.floating-contact .contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 0;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: all 0.25s ease;
}

.floating-contact .contact-icon:hover {
    transform: scale(1.12);
}

.floating-contact .contact-icon.phone {
    background-color: #25D366;
}

.floating-contact .contact-icon.facebook {
    background-color: #1877F2;
}

.floating-contact .contact-icon.line {
    background-color: #06C755;
}

.floating-contact .contact-icon.instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

/* Back to Top */
.back-to-top {
    position: fixed !important;
    bottom: 28px;
    right: 94px;
    z-index: 1055;
    width: 48px;
    height: 48px;
    border-radius: 50% !important;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background: linear-gradient(135deg, #40000a 0%, #600010 100%) !important;
    color: var(--gold-accent, #ffd700) !important;
    border: 1px solid rgba(212, 175, 55, 0.4) !important;
    box-shadow: 0 4px 14px rgba(64, 0, 10, 0.35);
    transition: all 0.3s ease;
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(96, 0, 16, 0.45);
    background: linear-gradient(135deg, #600010 0%, #870018 100%) !important;
    color: #ffffff !important;
}
