@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600&family=Poppins:wght@300;400;500;600&display=swap');

*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:'Poppins',sans-serif;
}

body{
background:#000;
color:#0D0D0D;
padding-top:80px;
overflow-y:scroll;
}
/* ===== NAVBAR ===== */

.header{
width:100%;
border-bottom:1px solid rgba(255,255,255,.1);
box-shadow:0 2px 10px rgba(0,0,0,.6);

position:fixed;
top:0;
left:0;
z-index:1000;
background:#0a0f1c;
}

.header-inner{
max-width:1200px;
margin:auto;
display:grid;
grid-template-columns:auto 1fr auto;
align-items:center;
padding:20px 50px;
gap:20px;
}

/* ===== Logo ===== */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    height: 40px; /* ปรับความสูงของช่อง */
}

.logo img {
    height: 100%;      /* ให้สูงพอดีกับ container */
    width: auto;       /* รักษาสัดส่วน */
    border-radius: 8px; /* มุมโค้งเล็ก ๆ */
    box-shadow: 0 2px 8px rgba(0,0,0,0.4); /* เงานุ่ม */
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.1); /* ซูมเล็กเวลาชี้เมาส์ */
}
/* menu */

.navbar{display:flex;justify-content:center;}

.nav-links{
display:flex;
gap:35px;
list-style:none;
}

.nav-links a{
color:#fff;
text-decoration:none;
font-size: 20px;
padding:8px 14px;
border-radius:8px;
transition:.25s;
}

.nav-links a:hover{
background:rgba(255,255,255,.15);
}

/* right section */

.nav-right{
display:flex;
align-items:center;
gap:12px;
margin-left:auto;
}

.wallet-chip{
display:flex;
align-items:center;
gap:12px;
padding:8px 14px 8px 10px;
border:1px solid rgba(74,222,128,.28);
border-radius:999px;
background:linear-gradient(135deg, rgba(34,197,94,.18), rgba(22,163,74,.1));
color:#fff;
text-decoration:none;
white-space:nowrap;
box-shadow:0 10px 30px rgba(2,6,23,.24);
transition:.25s;
}

.wallet-chip:hover{
transform:translateY(-1px);
border-color:rgba(74,222,128,.44);
}

.wallet-chip-icon{
width:38px;
height:38px;
display:grid;
place-items:center;
border-radius:50%;
background:rgba(34,197,94,.14);
color:#86efac;
font-size:20px;
flex-shrink:0;
}

.wallet-chip-copy{
display:flex;
flex-direction:column;
line-height:1.1;
}

.wallet-chip-copy small{
font-size:11px;
color:#bbf7d0;
letter-spacing:.08em;
}

.wallet-chip-copy strong{
margin-top:4px;
color:#f0fdf4;
font-weight:600;
font-size:16px;
}

/* search */

.search-box input{
background:#111;
border:1px solid #333;
border-radius:20px;
padding:7px 14px;
color:#fff;
width:170px;
}

/* profile icon */
.profile-icon{
width:35px;
height:35px;
background:#fff;
color:#000;
border-radius:50%;
display:flex;
align-items:center;
justify-content:center;
font-size:20px;
cursor:pointer;
}

/* ===== LOGIN PAGE ===== */
.login-container{
min-height:100vh;
display:flex;
justify-content:center;
align-items:flex-start;
padding-top:200px;
background:#000;
}

/* card */

.login-card{
display:flex;
width:900px;
background:#111;
border-radius:14px;
overflow:hidden;
box-shadow:0 10px 40px rgba(0,0,0,0.7);
}

/* LEFT IMAGE */

.login-left{
flex:1;
}

.login-left img{
width:100%;
height:100%;
object-fit:cover;
}

/* RIGHT FORM */

.login-right{
flex:1;
padding: 30px;
display:flex;
flex-direction:column;
}

.login-right h1{
color:#fff;
margin-bottom:20px;
}

/* labels */

.login-right label{
color:#ccc;
font-size:14px;
margin-top:10px;
}

/* inputs */

.login-right input{
margin-top:5px;
padding:10px;
border-radius:6px;
border:1px solid #333;
background:#1a1a1a;
color:#fff;
}

/* checkbox */

.checkbox{
margin-top:10px;
font-size:13px;
color:#aaa;
}

/* login button */

.login-btn{
margin-top:20px;
padding:10px;
background:#ff0000;
border:none;
border-radius:6px;
color:#fff;
font-size:15px;
cursor:pointer;
}

.login-btn:hover{
background:#cc0000;
}

/* google login */

.google-btn{
margin-top:10px;
padding:10px;
background:#fff;
color:#000;
border-radius:6px;
text-align:center;
cursor:pointer;
font-size:14px;
}

.google-btn i{
margin-right:6px;
}

/* register */

.register-text{
margin-top:15px;
color:#aaa;
}

.register-text a{
color:#ff0000;
text-decoration:none;
}

/* error */

.alert{
background:#330000;
color:#ffaaaa;
padding:10px;
border-radius:6px;
margin-bottom:10px;
}

/* profile image navbar */

.profile-img{
width:35px;
height:35px;
border-radius:50%;
object-fit:cover;
cursor:pointer;
border:2px solid #444;
transition:.2s;
}

.profile-img:hover{
border-color:#fff;
}

/* dropdown */

.profile-menu{
position:relative;
}

.profile-trigger{
padding:0;
border:none;
background:transparent;
border-radius:50%;
display:flex;
align-items:center;
justify-content:center;
cursor:pointer;
}

.profile-trigger:focus-visible{
outline:2px solid #4ade80;
outline-offset:3px;
}

/* dropdown box */

.dropdown-menu{
position:absolute;
top:45px;
right:0;
background:#111;
border:1px solid #333;
border-radius:16px;
width:240px;
padding:14px;
display:none;
flex-direction:column;
box-shadow:0 10px 30px rgba(0,0,0,0.7);
animation:fadeMenu .2s ease;
z-index:50;
}
.dropdown-menu.show{
display:block;
}
/* profile info */

.profile-info{
display:flex;
align-items:center;
gap:10px;
margin-bottom:14px;
}

.profile-info img{
width:35px;
height:35px;
border-radius:50%;
object-fit:cover;
}

.profile-info p{
color:#fff;
font-size:14px;
}

.profile-copy{
display:flex;
flex-direction:column;
min-width:0;
}

.profile-copy p{
font-size:15px;
font-weight:600;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
}

.profile-copy span{
font-size:12px;
color:#94a3b8;
}

.profile-wallet-box{
padding:14px;
border-radius:14px;
margin-bottom:10px;
background:linear-gradient(135deg, rgba(34,197,94,.16), rgba(22,163,74,.1));
border:1px solid rgba(74,222,128,.2);
}

.profile-wallet-box span{
display:block;
font-size:12px;
text-transform:uppercase;
letter-spacing:.08em;
color:#bbf7d0;
}

.profile-wallet-box strong{
display:block;
margin-top:8px;
font-size:24px;
color:#fff;
}

/* logout button */

.logout-btn{
color:#ccc;
text-decoration:none;
font-size:14px;
display:flex;
align-items:center;
gap:6px;
padding:6px;
border-radius:6px;
transition:.2s;
}

.logout-btn:hover{
background:#222;
color:#fff;
}

/* animation */

@keyframes fadeMenu{
from{
opacity:0;
transform:translateY(-5px);
}
to{
opacity:1;
transform:translateY(0);
}
}
/* banner */

.banner{
max-width:1200px;
margin:20px auto;
}

/* slider */

.slider{
position:relative;
overflow:hidden;
border-radius:12px;
height:350px; /* 🔥 ล็อกความสูง */
}

.slides{
display:flex;
width:100%;
height:100%;
transition:transform 0.5s ease;
}

.slides img{
width:100%;
height:350px;
object-fit:cover;
flex: 0 0 100%; /* 🔥 ตัวนี้แหละที่แก้ปัญหา */
}

/* arrows */

.prev,.next{
position:absolute;
top:50%;
transform:translateY(-50%);
background:rgba(0,0,0,0.5);
color:#fff;
border:none;
font-size:25px;
padding:10px 15px;
cursor:pointer;
border-radius:50%;
}

.prev{left:10px;}
.next{right:10px;}

.prev:hover,.next:hover{
background:#000;
}
/* ===== stats section ===== */
.stats {
    max-width: 1200px;
    margin: 40px auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* เรียง 4 อันต่อแถว */
    gap: 20px;
    align-items: stretch;
}

/* card */
.stat-box {
    position: relative; /* ต้องมีสำหรับ ::before */
    background: #111;
    border-radius: 10px;
    padding: 20px 15px; /* เล็กลงหน่อย */
    color: #fff;
    border: 1px solid #222;
    transition: .3s;
    
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    
    min-height: 100px; /* สูงเล็กลง */
    text-align: center;
}

/* glow border */
.stat-box::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    z-index: -1;
    filter: blur(10px);
    opacity: 0;
    transition: .4s;
}

/* hover card */
.stat-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.6);
}

.stat-box:hover::before {
    opacity: 1;
}

/* icon */
.stat-box i {
    font-size: 32px; /* เล็กลง */
    margin-bottom: 5px;
    color: #ff3b3b;
}

/* icon glow */
.stat-box:hover i {
    color: #ff0000;
    text-shadow:
        0 0 5px #ff0000,
        0 0 15px #ff0000,
        0 0 25px #ff0000,
        0 0 50px #ff0000;
    transform: scale(1.15) rotate(5deg);
}

/* number */
.stat-box h2 {
    font-size: 24px; /* เล็กลง */
    margin-bottom: 3px;
}

.stat-box:hover h2 {
    color: #ff0000;
}

/* text */
.stat-box p {
    font-size: 12px; /* เล็กลง */
    color: #aaa;
}
/* announcement bar */

.announcement{
max-width:1200px;
margin:20px auto;
display:flex;
background:#111;
border-radius:10px;
overflow:hidden;
border:1px solid #222;
}

/* left title */

.announce-title{
  background:#ff0000;
  color:#fff;
  padding:10px 20px;
  font-weight:600;
  display:flex;
  align-items:center;
  gap:6px;
}

/* text area */
.announce-text{
  flex:1;
  overflow:hidden; /* สำคัญ */
  display:flex;
  align-items:center;
  color:#fff;
  padding:0 10px;
}

/* ข้อความวิ่ง */
.scroll-text{
  white-space: nowrap;
  display:inline-block;
  padding-left:100%;
  animation: scrollText 30s linear infinite;
  font-size:14px;
  color:#ccc;
}

/* animation */
@keyframes scrollText{
  0%{
    transform: translateX(0);
  }
  100%{
    transform: translateX(-100%);
  }
}

/* hover แล้วหยุด */
.scroll-text:hover{
  animation-play-state: paused;
}
/* section */

.featured{
max-width:1200px;
margin:50px auto;
}

.section-title{
color:#fff;
font-size:22px;
margin-bottom:20px;
}

/* grid */

.product-grid{
max-width:1200px;
margin:auto;
display:grid;
grid-template-columns:repeat(auto-fill,minmax(250px,1fr));
gap:20px;
}

/* card */
.product-card{
background:#0b0b0b;
border:1px solid #222;
border-radius:14px;
padding:18px;
color:#f3f4f6;
transition:.25s;
display:flex;
flex-direction:column;
justify-content:space-between;
}


.product-card:hover{
transform:translateY(-4px);
box-shadow:0 10px 25px rgba(0,0,0,0.6);
border-color:#333;
}

/* image */

.product-card img{
width:100%;
height:250px;
object-fit:cover;
border-radius:10px;
margin-bottom:10px;
}

/* name */

.product-card h3{
font-size:15px;
margin-bottom:6px;
line-height:1.4;
}
/* price */

.price{
color:#22c55e;
font-weight:600;
font-size:14px;
margin-bottom:8px;
}

/* button */

.view-btn{
display:block;
text-align:center;
padding:8px 14px;
background:#ff0000;
color:#fff;
border-radius:6px;
text-decoration:none;
font-size:14px;
margin-top:10px;
}

.view-btn:hover{
background:#cc0000;
}
/* product page */

.product-page{
max-width:1200px;
margin:40px auto;
color:#fff;
}

.product-detail{
display:grid;
grid-template-columns:1fr 1fr;
gap:40px;
align-items:start;
}

/* image */

.product-image img{
width:100%;
border-radius:12px;
border:1px solid #222;
}

/* info */

.product-info h1{
font-size:28px;
margin-bottom:15px;
}

.product-desc{
color:#aaa;
margin-bottom:20px;
line-height:1.6;
}

.product-price{
font-size:26px;
color:#22c55e;
font-weight:600;
margin-bottom:20px;
}

/* buy button */

.buy-btn{
padding:12px 25px;
background:#ff0000;
border:none;
color:#fff;
border-radius:8px;
font-size:16px;
cursor:pointer;
}

.buy-btn:hover{
background:#cc0000;
}

/* payment popup */

.payment-popup{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,0.8);
display:none;
justify-content:center;
align-items:center;
}

.payment-box{
background:#111;
padding:30px;
border-radius:12px;
text-align:center;
border:1px solid #333;
}

.qr{
width:200px;
margin:20px 0;
}
/* back button */

.back-btn{
display:inline-flex;
align-items:center;
gap:6px;
background:#111;
color:#fff;
padding:8px 14px;
border-radius:8px;
text-decoration:none;
border:1px solid #333;

margin-bottom:20px;  /* เว้นด้านล่างอย่างเดียว */
}

.back-btn:hover{
background:#ff0000;
border-color:#ff0000;
}

.back-btn:hover{
background:#ff0000;
border-color:#ff0000;
}
/* ==================== FOOTER PRO - ตรงกลางสวยๆ ==================== */
.footer {
    background: #0a0f1c;
    color: #94a3b8;
    padding: 35px 20px 30px;
    margin-top: 100px;
    border-top: 1px solid #1e2937;
    font-family: 'Segoe UI', sans-serif;
}

.footer-bottom {
    max-width: 1100px;
    margin: 0 auto;
}

.footer-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.96rem;
}

.footer-content p {
    margin: 0;
    letter-spacing: 0.3px;
}

.copyright {
    color: #cbd5e1;
    font-weight: 500;
}

.developer {
    opacity: 0.85;
}

.online {
    color: #22c55e;
    font-weight: bold;
    letter-spacing: 0.5px;
}

/* Hover Effect ให้ดูโปร */
.footer-content strong:hover {
    color: #60a5fa;
    transition: color 0.3s;
}

/* Responsive */
@media (max-width: 576px) {
    .footer {
        padding: 30px 15px 25px;
    }
    .footer-content {
        font-size: 0.9rem;
        gap: 6px;
    }
}
/* mobile */

@media(max-width:768px){

.login-card{
flex-direction:column;
width:90%;
}

.login-left{
height:200px;
}

}
/* hamburger */

.ham-menu{display:none;cursor:pointer;}

.bar1,.bar2,.bar3{
width:26px;
height:3px;
background:#fff;
margin:5px 0;
transition:.3s;
}

/* ===== Responsive ===== */

@media (max-width:900px){
.btn-outline{display:none;}
.nav-links{gap:14px;}
.wallet-chip{
padding-right:12px;
}
.wallet-chip-copy small{
display:none;
}
}

@media (max-width:780px){
.search-box{display:none;}
.wallet-chip{
padding:8px 12px 8px 10px;
}
.wallet-chip-copy strong{
font-size:14px;
}
}

@media (max-width:650px){
.navbar{display:none;}
.wallet-chip{display:none;}
}

@media (max-width:430px){

.btn-login{display:none;}

.ham-menu{display:block;}

.header-inner{
grid-template-columns:auto auto;
padding:35px;
}

.nav-right{justify-self:end;}

}
/* ===== Snow ===== */
#snow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -10px;
    background: white;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.7;
    filter: blur(1px);
    animation-timing-function: linear;
}

@keyframes fall {
    0% { transform: translateY(0) translateX(0); }
    100% { transform: translateY(100vh) translateX(20px); }
}
/* ปุ่ม Google */
.google-btn, .discord-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    color: #000000;
    transition: all 0.3s ease;
    margin-top: 10px;
}

/* Google Style */
.google-btn {
    background: #ffffff;
}
.google-btn:hover {
    background: #357ae8;
}

/* Discord Style (เหมือน Google แต่สี Discord) */
.discord-btn {
    background: #5865F2; /* สีหลัก Discord */
}
.discord-btn:hover {
    background: #4752c4; /* สีเข้มกว่าเล็กน้อยเวลา hover */
}

/* ไอคอนขนาดเหมือนกัน */
.google-btn i, .discord-btn i {
    font-size: 1.3rem;
}
