* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Prompt', sans-serif;
}

body {
    background-color: #0B0B0B;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow-x: hidden;
}

.fade-page {
    opacity: 0;
    animation: fadeInAnimation ease 0.8s forwards;
}

@keyframes fadeInAnimation {
    0% { opacity: 0; transform: translateY(6px); }
    100% { opacity: 1; transform: translateY(0); }
}

.bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 175, 255, 0.12) 0%, rgba(11, 11, 11, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

/* ================= WELCOME PAGE (index.html) ================= */
body:has(.welcome-container) {
    height: 100vh;
    align-items: center;
    justify-content: space-between;
    padding: 40px 20px;
    overflow: hidden;
}

.welcome-container {
    text-align: center;
    max-width: 900px;
    margin: auto;
    z-index: 1;
}

.badge-top {
    display: inline-block;
    background: rgba(0, 175, 255, 0.08);
    color: #00AFFF;
    border: 1px solid rgba(0, 175, 255, 0.25);
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 25px;
    letter-spacing: 1.5px;
}

.badge-top i { margin-right: 5px; }

.logo-area h1 {
    font-size: 44px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    text-shadow: 0 0 30px rgba(0, 175, 255, 0.3);
}

.logo-area .x-mark {
    color: #00AFFF;
    padding: 0 5px;
    text-shadow: 0 0 20px rgba(0, 175, 255, 0.6);
}

.subtitle {
    font-size: 15px;
    color: #94a3b8;
    margin-bottom: 35px;
}

.features-bar {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.features-bar span {
    font-size: 14px;
    color: #cbd5e1;
    background: rgba(18, 18, 18, 0.8);
    padding: 9px 18px;
    border-radius: 10px;
    border: 1px solid rgba(0, 175, 255, 0.2);
}

.features-bar i { color: #00AFFF; margin-right: 6px; }

.btn {
    padding: 14px 40px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #0055ff 0%, #00AFFF 100%);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 175, 255, 0.4);
    border: 1px solid rgba(0, 175, 255, 0.3);
    cursor: pointer;
}

.btn-primary:hover {
    box-shadow: 0 6px 25px rgba(0, 175, 255, 0.6);
    transform: translateY(-2px);
}

body:has(.welcome-container) footer {
    font-size: 11px;
    color: rgba(100, 116, 139, 0.5);
}


/* ================= SHOP PAGE (shop.html) ================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #0b0b0b;
    padding: 12px 30px;
    border-bottom: 1px solid rgba(0, 175, 255, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 30px;
}

.brand-logo {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 1px;
}

.brand-logo .x-mark { color: #00AFFF; }

.nav-menu {
    display: flex;
    gap: 10px;
}

.nav-menu a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-menu a:hover, .nav-menu a.active {
    color: #00AFFF;
    background-color: rgba(0, 175, 255, 0.1);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-right a {
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-contact {
    color: #cbd5e1;
    background-color: #121212;
    border: 1px solid rgba(0, 175, 255, 0.2);
}

.btn-login {
    color: #00AFFF;
    background-color: rgba(0, 175, 255, 0.1);
    border: 1px solid rgba(0, 175, 255, 0.3);
}

.btn-register {
    color: #ffffff;
    background: linear-gradient(135deg, #0055ff 0%, #00AFFF 100%);
    box-shadow: 0 0 15px rgba(0, 175, 255, 0.4);
}

.main-container.full-width-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 1200px;
    width: 100%;
    margin: 30px auto;
    padding: 0 20px;
    flex: 1;
}

/* ================= ประกาศแจ้งข่าวสาร ================= */
.news-section {
    background-color: #121212;
    border: 1px solid rgba(0, 175, 255, 0.2);
    border-radius: 10px;
    padding: 12px 20px;
    overflow: hidden;
}

.news-header {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-header i { color: #00AFFF; }

.news-tag {
    font-size: 10px;
    background: rgba(0, 175, 255, 0.15);
    color: #00AFFF;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 5px;
}

.news-ticker-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.news-ticker-text {
    display: inline-block;
    font-size: 12px;
    color: #94a3b8;
    animation: tickerScroll 18s linear infinite; 
}

@keyframes tickerScroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* ================= หมวดหมู่สินค้า ================= */
.categories-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cat-header-top {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cat-subtitle-tag {
    font-size: 11px;
    color: #00AFFF;
    letter-spacing: 1px;
    font-weight: 600;
}

.cat-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cat-title-row h2 {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
}

.cat-all-link {
    font-size: 12px;
    color: #94a3b8;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
}

.cat-all-link:hover { color: #00AFFF; }

.banners-grid-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.banner-card-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hero-banner {
    background: linear-gradient(135deg, #151515 0%, #0b0b0b 100%);
    border: 1px solid rgba(0, 175, 255, 0.25);
    border-radius: 12px;
    height: 160px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: inset 0 0 30px rgba(0, 175, 255, 0.08);
    transition: transform 0.3s ease, border-color 0.3s ease;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.hero-banner:hover {
    border-color: rgba(0, 175, 255, 0.7);
    transform: translateY(-2px);
}

.banner-content {
    z-index: 2;
}

.banner-tag-small {
    font-size: 11px;
    color: #00AFFF;
    font-weight: 500;
    margin-bottom: 4px;
    display: block;
}

.hero-banner h1 {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1.5px;
    text-shadow: 0 0 20px rgba(0, 175, 255, 0.4);
}

.banner-sub {
    font-size: 10px;
    color: #94a3b8;
    letter-spacing: 2px;
    margin-top: 6px;
    display: block;
    font-weight: 600;
}

.banner-image-box {
    padding: 0;
    background: #000;
}

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.hero-banner.banner-image-box:hover .banner-img {
    transform: scale(1.03);
}

.banner-footer-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #ffffff;
    padding: 0 2px;
}

.banner-footer-label .num {
    color: #00AFFF;
    font-weight: 600;
    margin-right: 6px;
}

.banner-footer-label a {
    font-size: 11px;
    color: #94a3b8;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}

.banner-footer-label a:hover { color: #00AFFF; }


/* ================= PRODUCT LISTING PAGE ================= */
.category-header-bar {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.category-title-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #121212;
    border: 1px solid rgba(0, 175, 255, 0.2);
    padding: 8px 16px;
    border-radius: 8px;
}

.category-title-wrapper i {
    color: #00AFFF;
    font-size: 16px;
}

.category-title-wrapper h1 {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

.product-count {
    font-size: 11px;
    background: rgba(0, 175, 255, 0.15);
    color: #00AFFF;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 5px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 240px));
    gap: 20px;
    margin-bottom: 40px;
}

.product-card {
    background: #121212;
    border: 1px solid rgba(0, 175, 255, 0.2);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.product-card:hover {
    border-color: rgba(0, 175, 255, 0.6);
    transform: translateY(-3px);
}

.product-img-box {
    width: 100%;
    height: 150px;
    position: relative;
    overflow: hidden;
    background: #000;
}

.product-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge-price-tag {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #0055ff 0%, #00AFFF 100%);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
}

.product-info {
    padding: 14px;
}

.product-info h3 {
    font-size: 13px;
    font-weight: 500;
    color: #cbd5e1;
    margin-bottom: 8px;
}

.product-price {
    font-size: 15px;
    font-weight: 700;
    color: #00AFFF;
}

.support-banner-box {
    background: #121212;
    border: 1px solid rgba(0, 175, 255, 0.15);
    border-radius: 10px;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
}

.support-text {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #94a3b8;
}

.support-text i {
    color: #00AFFF;
    font-size: 16px;
}

.support-link {
    font-size: 12px;
    color: #94a3b8;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    transition: color 0.2s;
}

.support-link:hover {
    color: #00AFFF;
}


.footer-bar {
    text-align: center;
    padding: 15px;
    font-size: 11px;
    color: #64748b;
    border-top: 1px solid rgba(0, 175, 255, 0.15);
    background-color: #0b0b0b;
    margin-top: 30px;
}

@media (max-width: 900px) {
    .navbar {
        flex-direction: column;
        gap: 12px;
    }
    .banners-grid-row {
        grid-template-columns: 1fr;
    }
}

/* ================= AUTH PAGES (Login & Register) ================= */
.auth-page-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #0B0B0B;
    padding: 20px;
}

.auth-container {
    width: 100%;
    max-width: 420px;
}

.auth-card {
    background: #121212;
    border: 1px solid rgba(0, 175, 255, 0.25);
    border-radius: 14px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(0, 175, 255, 0.05);
}

.auth-header {
    text-align: center;
    margin-bottom: 25px;
}

.auth-header .brand-logo {
    font-size: 18px;
    display: inline-block;
    margin-bottom: 8px;
}

.auth-header p {
    font-size: 12px;
    color: #94a3b8;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-group label {
    font-size: 12px;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 6px;
}

.input-group label i {
    color: #00AFFF;
}

.input-group input {
    background: #0b0b0b;
    border: 1px solid rgba(0, 175, 255, 0.2);
    border-radius: 8px;
    padding: 10px 14px;
    color: #ffffff;
    font-size: 13px;
    outline: none;
    transition: all 0.2s ease;
}

.input-group input:focus {
    border-color: #00AFFF;
    box-shadow: 0 0 10px rgba(0, 175, 255, 0.25);
}

.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #94a3b8;
    margin-top: 2px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.forgot-password {
    color: #00AFFF;
    text-decoration: none;
    transition: opacity 0.2s;
}

.forgot-password:hover {
    opacity: 0.8;
}

.btn-auth-submit {
    background: linear-gradient(135deg, #0055ff 0%, #00AFFF 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px;
    padding: 11px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 175, 255, 0.3) !important;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-auth-submit:hover {
    box-shadow: 0 6px 20px rgba(0, 175, 255, 0.5) !important;
    transform: translateY(-2px);
}

.auth-footer-text {
    text-align: center;
    margin-top: 20px;
    font-size: 12px;
    color: #94a3b8;
}

.auth-footer-text a {
    color: #00AFFF !important;
    text-decoration: none;
    font-weight: 600;
}

.auth-footer-text a:hover {
    text-decoration: underline;
}

/* ================= ปรับแต่งโทนสีโปรไฟล์ เมนู และปุ่มทั้งหมดให้เป็นสีฟ้า 100% ================= */
.nav-right .user-profile-btn,
.nav-right [class*="profile"],
.nav-right [class*="user"] {
    border-color: rgba(0, 175, 255, 0.3) !important;
    background-color: rgba(0, 175, 255, 0.08) !important;
    color: #00AFFF !important;
}

.nav-right .user-profile-btn span, 
.nav-right .user-profile-btn i,
.nav-right [class*="profile"] span,
.nav-right [class*="profile"] i,
.nav-right span[style*="color"],
.nav-right font {
    color: #00AFFF !important;
}

.nav-right .avatar-box,
.nav-right .profile-avatar,
.nav-right svg {
    border-color: #00AFFF !important;
    color: #00AFFF !important;
}

.profile-dropdown-menu,
.user-dropdown,
.dropdown-menu {
    background: #121212 !important;
    border: 1px solid rgba(0, 175, 255, 0.3) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), inset 0 0 20px rgba(0, 175, 255, 0.05) !important;
}

.profile-dropdown-menu .badge,
.user-dropdown .badge,
.dropdown-menu .badge,
[class*="badge"] {
    background: rgba(0, 175, 255, 0.15) !important;
    color: #00AFFF !important;
    border: 1px solid rgba(0, 175, 255, 0.3) !important;
}

.profile-dropdown-menu .btn-topup,
.user-dropdown .btn-topup,
.btn-topup {
    background: linear-gradient(135deg, #0055ff 0%, #00AFFF 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(0, 175, 255, 0.3) !important;
    border: none !important;
}

.profile-dropdown-menu a,
.user-dropdown a,
.dropdown-menu a {
    color: #cbd5e1 !important;
}

.profile-dropdown-menu a:hover,
.user-dropdown a:hover,
.dropdown-menu a:hover {
    color: #00AFFF !important;
    background-color: rgba(0, 175, 255, 0.1) !important;
}

.profile-dropdown-menu i,
.user-dropdown i,
.dropdown-menu i {
    color: #00AFFF !important;
}

/* บังคับแปลงทุกจุดที่เป็นสีชมพู/แดงในหน้าต่างสมาชิกและปุ่มส่งข้อมูลให้เป็นสีฟ้าทั้งหมด */
.auth-card svg,
.auth-card [class*="logo"] {
    color: #00AFFF !important;
}
