* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #000000;
    color: white;

    position: relative; /* สำหรับเอฟเฟค Starfield */
}
/* ⭐ Starfield Effect */
.starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1; /* ให้ starfield อยู่หลังเนื้อหา */
}

.star {
    position: absolute;
    border-radius: 50%;
    background: #fff;
    opacity: 0.8;
    animation: blink 3s infinite alternate ease-in-out;
    pointer-events: none; /* ทำให้ดาวไม่รบกวนการ Scroll หรือการคลิก */
}

@keyframes blink {
    0% { opacity: 0.2; }
    50% { opacity: 1; }
    100% { opacity: 0.2; }
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    max-width: 100%;
    margin: auto;
    overflow: hidden;
}

.carousel-slide {
    display: flex;
    width: 600%;
    transition: transform 0.5s ease;
}

.carousel-slide img {
    width: calc(100% / 6);
    height: auto;
}

.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    background: rgba(0, 0, 0, 0.8);
    border: none;
    border-radius: 0 3px 3px 0;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

/* Grid Layout for Offers */
.offers .row {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 คอลัมน์ */
    grid-template-rows: repeat(2, auto); /* 2 แถว */
    gap: 15px; /* ระยะห่างระหว่างรูป */
    max-width: 1000px; /* ปรับความกว้างตามต้องการ */
    margin: 0 auto; /* จัดกึ่งกลาง */
}

/* Report Card Styles */
.container-title {
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
}

.text-title {
    background: linear-gradient(to right, #007BFF, #00BFFF);
    padding: 10px;
    text-align: center;
    border-radius: 8px;
    font-size: 20px;
}

.container-title h2 {
    color: #ffffff;
    margin: 0;
}

.report-card {
    background-color: #2e0b06;
    margin: 8px 0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 2s forwards;
}

.icon {
    width: 40px;
    height: 40px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.info {
    display: flex;
    flex-direction: column;
}

.info .user,
.info .amount,
.info .time {
    color: #ffffff;
    margin: 1px 0;
    font-size: 14px;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* CSS เดิมของคุณ (ไม่ลบโครงสร้างเดิม) */
.container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: #000000;
    border-radius: 5px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.logo {
    width: 30%;
}

.buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn {
    padding: 15px 40px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    animation: wave-effect 1.5s infinite linear;
}

@keyframes wave-effect {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 400% 0;
    }
}

.btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transform: skewX(-25deg);
    transition: all 0.5s ease;
}

.btn:hover::before {
    left: 150%;
}

.btn-primary {
    background: linear-gradient(to right, #ae0821, #fab114, #ae0821);
    color: white;
    background-size: 200% 100%;
}

.btn-primary:hover {
    background: linear-gradient(to right, #fd1d1d, #833ab4, #fcb045);
}

.btn-secondary {
    background: linear-gradient(to right, #0da533, #3af754, #0da533);
    color: white;
    background-size: 200% 100%;
}

.btn-secondary:hover {
    background: linear-gradient(to right, #56ccf2, #2f80ed);
}

.btn-main {
    display: block;
    width: 100%;
    background-color: #ff6f00;
    color: white;
    margin: 20px 0;
    font-size: 1.2em;
}

.btn h3 {
    margin: 0;
    font-size: 1em;
}

.promotion {
    text-align: center;
    margin-bottom: 20px;
}

.promo-img {
    width: 100%;
    border-radius: 10px;
}

.promo-text {
    text-align: center;
    font-size: 18px;
    margin: 20px 0;
}

.offer-img {
    width: 100%;
    border-radius: 10px;
}

@media (max-width: 600px) {
    .container {
        padding: 10px;
    }
    .btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    .logo {
        width: 50%;
    }
}

.image-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.contact {
    width: 100px;
    margin-top: 50px;
    display: block;
    text-align: start;
    color: #960101;
    text-decoration: none;
}

.contact:hover {
    color: #9f1313;
}

@media (max-width: 1024px) {
    .contact {
        display: none;
    }
}
