/* --- ปรับลดความหนาของแถบเมนูขาวด้านบนให้แคบและกะทัดรัดลง --- */
.navbar {
    background-color: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05); /* ปรับเงาให้จางลงดูหรูมินิมอล */
    position: sticky;
    top: 0;
    z-index: 50;
    height: 60px; /* 🌟 ลดความหนาจาก 80px ลงมาเหลือ 60px ให้แถบแคบลงพอดีๆ */
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem; /* ลดพื้นที่ว่างแนวตั้ง เน้นระยะห่างด้านซ้าย-ขวา */
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%; /* บังคับให้เมนูอยู่ตรงกลางแนวดิ่งพอดี */
}

/* ส่วนของรูปภาพโลโก้ (ล็อกขนาดไว้ให้เข้ากับแถบเมนูใหม่) */
.navbar-logo img {
    height: 60px; /* 🌟 ปรับขนาดรูปภาพโลโก้ให้อยู่ในเกณฑ์ 38px เพื่อไม่ให้ดันแถบเมนู */
    width: auto;
    object-fit: contain;
}


/* เมนู */
.navbar-menu {
    display: flex;
    gap: 1.5rem;
    font-weight: 500;
}

.menu-link {
    color: #4b5563;
    text-decoration: none;
    transition: color 0.2s;
}

.menu-link:hover {
    color: #2563eb;
}

/* ปุ่มไลน์ */
.btn-line {
    background-color: #22c55e; /* สีเขียว Line */
    color: #ffffff;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s;
}

.btn-line:hover {
    background-color: #16a34a;
}

.btn-line i {
    font-size: 1.25rem;
}

/* ซ่อนเมนูบนหน้าจอมือถือ (ขนาดต่ำกว่า 768px) */
@media (max-width: 768px) {
    .navbar-menu {
        display: none;
    }
}


/* --- สไตล์สำหรับส่วนต้อนรับหลัก ปรับโฉมแบ่ง 2 ฝั่งและใส่รูปภาพ --- */
.hero {
    background-color: #05050a; /* ดำลึกหรูหรา */
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(99, 102, 241, 0.1) 0%, transparent 40%);
    color: #ffffff;
    padding: 6rem 1rem;
    position: relative;
    overflow: hidden;
}

/* ปรับ Container ให้เป็น Flex เพื่อแบ่งซ้าย-ขวา */
.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column; /* แนวตั้งบนมือถือ */
    align-items: center;
    gap: 3rem;
    position: relative;
    z-index: 2;
}

/* เมื่อหน้าจอใหญ่ขึ้น (คอมพิวเตอร์) ให้เรียงซ้ายขวา */
@media (min-width: 1024px) {
    .hero-container {
        flex-direction: row;
        text-align: left;
    }
    .hero-content {
        flex: 1;
    }
    .hero-image-wrapper {
        flex: 1;
    }
    .hero-buttons {
        justify-content: flex-start !important;
    }

    
}

/* จัดสไตล์ฝั่งข้อความ */
.hero-content {
    text-align: center;
}
@media (min-width: 1024px) {
    .hero-content {
        text-align: left;
    }
}

.hero-tag {
    background: rgba(255, 255, 255, 0.03);
    color: #93c5fd;
    border: 1px solid rgba(147, 197, 253, 0.2);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.4rem 1.2rem;
    border-radius: 9999px;
    letter-spacing: 0.08em;
    display: inline-block;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.1);
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

@media (min-width: 768px) {
    .hero-title { font-size: 3rem; }
}

.text-yellow {
    background: linear-gradient(135deg, #ffe082 0%, #f7d070 50%, #cca133 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    display: inline-block;
}

.hero-description {
    font-size: 1.05rem;
    color: #94a3b8;
    margin-bottom: 2.5rem;
    line-height: 1.7;
    max-width: 600px;
}

/* กลุ่มปุ่มกด */
.hero-buttons {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

/* ปุ่มไลน์ */
.btn-hero-line {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    color: #ffffff;
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(22, 163, 74, 0.3);
    transition: all 0.3s ease;
}
.btn-hero-line:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(22, 163, 74, 0.5);
}

/* ปุ่มโทรศัพท์ */
.btn-hero-phone {
    background-color: rgba(255, 255, 255, 0.02);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    transition: all 0.3s ease;
}
.btn-hero-phone:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: #3b82f6;
    color: #3b82f6;
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

/* --- ปรับปรุงฝั่งรูปภาพใหม่ ลบขอบกล่องออกให้ภาพลอยหรูๆ --- */
.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 550px; /* ขยายขนาดให้รูปใหญ่ขึ้นเล็กน้อย */
    display: flex;
    justify-content: center;
    align-items: center;
    background: none; /* ลบพื้นหลังของกล่องออก */
    border: none; /* ลบขอบสี่เหลี่ยมรอบนอกออก */
    box-shadow: none; /* ลบเงาของตัวกล่องเหลี่ยมออก */
}


.hero-image {
    width: 100%;
    height: auto;
    object-fit: contain; /* ปรับให้รูปภาพแสดงสัดส่วนจริง ไม่โดนตัดขอบ */
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 40px rgba(59, 130, 246, 0.15)); /* เปลี่ยนไปใช้เงาตามรูปทรงของอุปกรณ์แทนเงากล่องสี่เหลี่ยม และเพิ่มแสงเรืองจางๆ */
    position: relative;
    z-index: 2;
    /* ลูกเล่นรูปภาพลอยขึ้นลงเบาๆ (Floating Animation) */
    animation: floatImage 4s ease-in-out infinite;
}

@keyframes floatImage {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); } /* ปรับให้ลอยเนียนตาขึ้น */
}

/* เอฟเฟกต์แสงเรืองดวงใหญ่หลังกลุ่มรูปภาพ */
.image-glow {
    position: absolute;
    width: 90%;
    height: 90%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.25) 0%, transparent 65%);
    top: 5%;
    left: 5%;
    z-index: 1;
    pointer-events: none;
}


/* --- ปรับปรุงสีส่วนคุณสมบัติเด่นให้สว่างและมีมิติขึ้น (Glow Features) --- */
.features-section {
    background-color: #0b0f19; /* เปลี่ยนเป็นสีน้ำเงินเนวี่มืดจางๆ เพื่อให้ตัดกับพื้นหลังสีดำของ Hero */
    padding: 6rem 1rem;
    position: relative;
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* หัวข้อ */
.features-header {
    text-align: center;
    margin-bottom: 4rem;
}

.features-title {
    font-size: 2.25rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

/* ปรับข้อความรองให้สว่างขึ้น */
.features-subtitle {
    font-size: 1.05rem;
    color: #94a3b8; 
}

/* จัดเลย์เอาต์การ์ด */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ปรับการ์ดให้สว่างขึ้น เห็นขอบชัด และมีมิติเงาพรีเมียม */
.feature-card {
    background: rgba(255, 255, 255, 0.04); /* เพิ่มความเข้มพื้นหลังการ์ด */
    border: 1px solid rgba(255, 255, 255, 0.1); /* ปรับขอบให้ขาวสว่างขึ้น */
    padding: 2.5rem 2rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); /* ใส่เงาใต้การ์ดให้ลอยขึ้น */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* เอฟเฟกต์โฮเวอร์เรืองแสงตามสีการ์ด */
.feature-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

/* * วงกลมไอคอน ปรับให้ใหญ่ขึ้นและเรืองแสงเด่นชัด */
.feature-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.75rem auto;
    box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.1);
    
    /* 🌟 เพิ่ม 2 บรรทัดนี้ป้องกันรูปภาพล้นขอบวงกลม */
    overflow: hidden; 
    padding: 0.8rem; 
}

/* 🌟 เพิ่มโค้ดชุดนี้ต่อท้ายลงไป เพื่อคุมขนาดไฟล์รูปภาพไอคอนข้างใน */
.feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* บังคับให้รูปย่อสัดส่วนพอดีกล่อง ไม่บิดเบี้ยว */
}


/* สีไอคอนแบบนีออนเรืองแสง (Neon Glow Effects) */
.icon-blue {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.6);
}
.icon-green {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
    text-shadow: 0 0 10px rgba(34, 197, 94, 0.6);
}
.icon-red {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.6);
}

/* ข้อความหัวข้อการ์ด */
.feature-card-title {
    font-size: 1.35rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
}

/* ปรับสีตัวหนังสืออธิบายให้ขาวขึ้น อ่านง่าย ไม่จม */
.feature-card-text {
    font-size: 0.98rem;
    color: #cbd5e1; /* สีขาวเทาที่สว่างขึ้น */
    line-height: 1.6;
}




/* --- ปรับปรุงสีส่วนขั้นตอนการขายให้สว่างและสวยคมชัดขึ้น (Glow Steps) --- */
.steps-section {
    background-color: #05050a; /* สีดำลึกเป็นพื้นหลังหลัก */
    padding: 6rem 1rem;
    position: relative;
}

.steps-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* หัวข้อใหญ่ */
.steps-header {
    text-align: center;
    margin-bottom: 5rem;
}

.steps-title {
    font-size: 2.25rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

/* ปรับคำอธิบายใต้หัวข้อให้สว่างขึ้น */
.steps-subtitle {
    font-size: 1.05rem;
    color: #94a3b8;
}

/* เลย์เอาต์ */
.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 768px) {
    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ปรับปรุงกล่องขั้นตอนให้เห็นขอบชัดเจนและดูมีมิติ */
.step-card {
    position: relative;
    background: rgba(255, 255, 255, 0.04); /* เพิ่มความสว่างของพื้นหลังกล่อง */
    border-left: 4px solid #3b82f6; /* เส้นขอบหนาขึ้นเล็กน้อย */
    border-top: 1px solid rgba(255, 255, 255, 0.08); /* เพิ่มขอบด้านบนจางๆ ให้เห็นรูปทรงกล่อง */
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2.5rem 2rem;
    border-radius: 0 1rem 1rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); /* เพิ่มเงาใต้กล่อง */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* เอฟเฟกต์เมื่อเอาเมาส์ไปวาง */
.step-card:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-5px) translateX(3px); /* ลอยขึ้นและเยื้องขวาเล็กน้อย */
    border-left-color: #60a5fa;
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.15); /* เรืองแสงสีฟ้าใต้กล่อง */
}

/* 🌟 แก้ไขตัวเลขลำดับให้สว่างและเรืองแสงนีออนสะดุดตา */
.step-number {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.4); /* เอฟเฟกต์เรืองแสงให้นีออน */
    position: absolute;
    top: -2.6rem;
    left: 1rem;
    font-family: 'Segoe UI', Roboto, sans-serif;
}

/* หัวข้อภายในกล่อง */
.step-card-title {
    font-size: 1.35rem;
    font-weight: 600;
    color: #ffffff;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

/* 🌟 แก้ไขเนื้อหาคำอธิบายภายในกล่องให้ขาวสว่าง อ่านง่าย ไม่จม */
.step-card-text {
    font-size: 0.98rem;
    color: #cbd5e1; /* สีขาวเทา สว่างคมชัด */
    line-height: 1.6;
}


/* --- สไตล์สำหรับส่วนแบรนด์สินค้าสไลด์วิ่งอัตโนมัติ (Premium Brands Marquee) --- */
.brands-section {
    background-color: #0b0f19; /* สลับมาใช้สีเนวี่มืดเพื่อให้ตัดแบ่งชั้นเลเยอร์กับขั้นตอนการขายด้านบน */
    padding: 5rem 1rem;
    text-align: center;
    overflow: hidden; /* กันไม่ให้ตัววิ่งหลุดออกนอกจอ */
}

.brands-container {
    max-width: 1200px;
    margin: 0 auto;
}

.brands-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 3.5rem;
    letter-spacing: -0.01em;
}

/* 🌟 ตั้งค่ากล่องครอบและทำเอฟเฟกต์เบลอขอบซ้ายขวาให้ดูหรูมิติลึก */
.marquee-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}

/* 🌟 อนิเมชันสั่งให้ข้อความเลื่อนวิ่งขยับซ้ายขวาแบบไม่มีวันสิ้นสุด */
.marquee-content {
    display: flex;
    gap: 2rem;
    white-space: nowrap;
    animation: scrollMarquee 25s linear infinite;
}

@keyframes scrollMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 1rem)); }
}

/* หยุดวิ่งชั่วคราวเมื่อผู้ใช้งานเอาเมาส์มาวางชี้ (เพิ่มลูกเล่นการตอบสนอง) */
.marquee-wrapper:hover .marquee-content {
    animation-play-state: paused;
}

/* --- ปรับขนาดป้ายแบรนด์ให้เล็กและกระชับลงอีกระดับ --- */
.brand-badge {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    
    /* 🌟 ลดมิติกล่องให้เล็กลงเรียบหรู */
    font-size: 0.95rem; 
    padding: 0.4rem 1.25rem; /* ลดพื้นที่ว่างด้านบนและด้านข้างลงอีก */
    min-width: 100px; /* ลดความกว้างขั้นต่ำลงจาก 140px */
    height: 45px; /* ล็อกความสูงกล่องให้เตี้ยลงและเท่ากันทุกกล่อง */
    
    border-radius: 0.25rem; /* ขอบมนมินิมอล */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* 🌟 โค้ดเพิ่มเติม: บังคับให้รูปภาพโลโก้แบรนด์ย่อขนาดตามกล่องอย่างสวยงาม */
.brand-badge img {
    max-height: 28px; /* ล็อกความสูงรูปภาพโลโก้ไม่ให้ใหญ่เกินกล่อง */
    width: auto;
    object-fit: contain;
    filter: grayscale(20%) brightness(95%); /* ปรับความสว่างรูปภาพให้เนียนตา */
    transition: all 0.3s ease;
}

/* เอฟเฟกต์เมื่อเอาเมาส์มาวางชี้ */
.brand-badge:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
}

.brand-badge:hover img {
    filter: grayscale(0%) brightness(110%); /* รูปภาพสว่างเด่นขึ้นเมื่อโฮเวอร์ */
}


/* หมายเหตุด้านล่าง */
.brands-note {
    font-size: 0.93rem;
    color: #64748b;
    margin-top: 3.5rem;
}


/* --- สไตล์สำหรับส่วนเครดิตประวัติการรับซื้อ (Premium Stats Credits) --- */
.credits-section {
    background-color: #0b0f19; /* สีดำลึก */
    padding: 6rem 1rem;
    position: relative;
}

.credits-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ส่วนหัวข้อ */
.credits-header {
    text-align: center;
    margin-bottom: 4rem;
}

.credits-title {
    font-size: 2.25rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.credits-subtitle {
    font-size: 1.05rem;
    color: #94a3b8;
}

/* เลย์เอาต์บล็อกตัวเลข */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr); /* แบ่ง 3 ช่องบนหน้าจอคอม */
    }
}

/* ดีไซน์การ์ดตัวเลขสถิติ */
.stat-card {
    background: rgba(253, 10, 10, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 3rem 2rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 4, 4, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

/* 🌟 ลูกเล่นตัวเลขนีออนเรืองแสงขนาดใหญ่ */
.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    font-family: 'Segoe UI', Roboto, sans-serif;
}

/* สีนีออนฟ้า */
.num-blue {
    color: #60a5fa;
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

/* สีนีออนเขียว */
.num-green {
    color: #4ade80;
    text-shadow: 0 0 20px rgba(34, 197, 94, 0.5);
}

/* สีนีออนทอง */
.num-gold {
    color: #f7d070;
    text-shadow: 0 0 20px rgba(247, 208, 112, 0.5);
}

/* ชื่อหัวข้อสถิติ */
.stat-label {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

/* รายละเอียดสถิติ */
.stat-desc {
    font-size: 0.95rem;
    color: #94a3b8;
    line-height: 1.5;
}

/* ข้อความรับรองความปลอดภัยด้านล่างสุด */
.credits-footer-text {
    text-align: center;
    color: #4ade80;
    font-size: 1.05rem;
    font-weight: 500;
}

.credits-footer-text i {
    margin-right: 0.35rem;
}







/* รีเซ็ตค่าพื้นฐาน */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #0b0f19; /* สีพื้นหลังมืดสไตล์เว็บเดิม */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.tech-review-section {
    padding: 80px 20px;
    color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ส่วนหัวข้อ */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #ffffff, #22c55e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-size: 16px;
    color: #94a3b8;
}

/* ตารางแสดงการ์ดรีวิว */
.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 25px;
}

/* กล่องการ์ดรีวิวแต่ละกล่อง */
.review-card {
    background: #141c2f; /* สีเทาเข้มตัดกับพื้นหลัง */
    border: 1px solid #24324f;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
}

/* เอฟเฟกต์เรืองแสงสีเขียวตอนเอาเมาส์วาง */
.review-card:hover {
    transform: translateY(-5px);
    border-color: #22c55e;
    box-shadow: 0 10px 20px rgba(34, 197, 94, 0.1);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 18px;
}

.user-info {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* วงกลมชื่อย่อผู้รีวิว */
.avatar {
    width: 42px;
    height: 42px;
    background: #22c55e; /* สีเขียวสะท้อนแสง */
    color: #0b0f19;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
}

.username {
    font-size: 15px;
    font-weight: 600;
    color: #f8fafc;
}

.product-type {
    font-size: 12px;
    color: #94a3b8;
    display: block;
    margin-top: 2px;
}

.tech-stars {
    font-size: 14px;
    letter-spacing: -2px;
}

.review-comment {
    font-size: 14px;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 20px;
}

.proof-images {
    display: flex !important;
    gap: 12px;
    justify-content: center !important; /* จัดรูปภาพให้อยู่ตรงกลางแนวนอน */
    align-items: center !important;     /* จัดบาลานซ์แนวตั้ง */
    width: 100% !important;             /* ขยายกล่องให้เต็มความกว้างของการ์ด */
    grid-column: 1 / -1 !important;
    margin-top: 15px !important;        /* เว้นระยะห่างด้านบนให้ร่วงลงมาใต้ข้อความ */
    
    /* 🔴 สองบรรทัดล่างนี้คือตัวพระเอกเด็ดขาดที่จะทลายแรงล็อกครับ */
    flex-basis: 100% !important;        /* บังคับขยายเต็ม 100% เพื่อดันตัวเองลงมาขึ้นบรรทัดใหม่ */
    clear: both !important;             /* ล้างค่าลอยตัวเพื่อไม่ให้โดนตัวหนังสือเบียด */
}



.image-wrapper {
    position: relative;
    width: 120px;       /* 👈 ลองปรับเพิ่มความกว้างจาก 80px เป็น 120px */
    height: 120px;      /* 👈 ลองปรับเพิ่มความสูงจาก 80px เป็น 120px */
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #24324f;
    cursor: pointer;
}


.proof-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s;
}

.image-wrapper:hover img {
    transform: scale(1.1);
}

/* ป้ายข้อความ "ขยาย" บนรูปภาพ */
.zoom-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 10px;
    text-align: center;
    padding: 2px 0;
    opacity: 0;
    transition: opacity 0.2s;
}

.image-wrapper:hover .zoom-badge {
    opacity: 1;
}

/* --- สไตล์ของหน้าต่างป๊อปอัปขยายรูป (Modal) --- */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 7, 12, 0.9);
    justify-content: center;
    align-items: center;
}

.modal-content {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 8px;
    border: 2px solid #24324f;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    animation: fadeIn 0.2s ease;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #94a3b8;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.close-btn:hover {
    color: #22c55e;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}




.view-all-container {
    text-align: center;
    margin-top: 15px;      /* 💡 ลดจาก 40px เหลือ 15px เพื่อดึงปุ่มขยับขึ้นมาชิดกล่องรีวิว */
    margin-bottom: 30px;   /* เพิ่มระยะห่างด้านล่างปุ่มเล็กน้อยไม่ให้ชิดขอบล่างเกินไป */
}



/* เพิ่มโค้ดจัดแถวละ 3 ต่อท้ายลงไปเลยครับ */
#all-reviews-container.review-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important; /* แบ่งเป็น 3 คอลัมน์ */
    gap: 25px !important;                             /* ระยะห่างระว่างการ์ด */
    width: 100% !important;                           /* ขยายเต็มความกว้าง */
    max-width: 1200px !important;                     /* ยืดขนาดกล่องหลักออก */
    margin: 30px auto !important;                     /* จัดกึ่งกลางหน้าจอ */
}

/* บังคับให้การ์ดรีวิวด้านในยืดขนาดเต็มช่องคอลัมน์ */
#all-reviews-container.review-grid .review-card {
    width: 100% !important;
    max-width: none !important;
}

/* รองรับการแสดงผลบนมือถือให้กลับมาเรียงแถวเดี่ยว */
@media (max-width: 768px) {
    #all-reviews-container.review-grid {
        grid-template-columns: 1fr !important;
    }
}




.view-all-btn {
    display: inline-block;
    background: transparent;
    color: #22c55e;        /* สีเขียวสะท้อนแสง */
    border: 2px solid #22c55e;
    padding: 10px 28px;    /* ปรับขนาดปุ่มให้กระชับเข้ากับพื้นที่ */
    font-size: 15px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
}

/* เอฟเฟกต์เรืองแสงเวลาเอาเมาส์ไปชี้ */
.view-all-btn:hover {
    background: #22c55e;
    color: #0b0f19;
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.4);
}




/*Reveiw*/
/* ==========================================================================
   RESET & BASE STYLES (สไตล์พื้นฐานสำหรับหน้าแยก)
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #0b0f19; /* สีพื้นหลังมืดสนิทตามมู๊ดหน้าแรกของคุณ */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #ffffff;
}

/* CONTAINER หลักควบคุมความกว้าง */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   SECTION 1: REVIEW FORM STYLES (ส่วนฟอร์มส่งเครดิตด้านบน)
   ========================================================================== */
.review-form-section {
    padding: 60px 20px 40px 20px;
    background-color: #0b0f19;
}

.form-container {
    max-width: 650px;
    margin: 0 auto;
    background: #141c2f; /* กล่องสีเทาเข้มแยกชั้นจากพื้นหลัง */
    border: 1px solid #24324f;
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.form-container h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #22c55e; /* หัวข้อสีเขียวสะท้อนแสงเด่นชัด */
}

.form-desc {
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #cbd5e1;
}

/* การปรับแต่งช่อง Input, Select และ Textarea */
.form-container input[type="text"],
.form-container select,
.form-container textarea {
    width: 100%;
    padding: 12px 16px;
    background: #0b0f19;
    border: 1px solid #24324f;
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

/* เอฟเฟกต์เรืองแสงสีเขียวเวลาคลิกพิมพ์ */
.form-container input:focus,
.form-container select:focus,
.form-container textarea:focus {
    outline: none;
    border-color: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.2);
}

/* ปรับแต่งส่วนตัวเลือกคะแนนดาว */
.rating-input {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    background: #0b0f19;
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid #24324f;
    width: fit-content;
}

.rating-input input[type="radio"] {
    cursor: pointer;
    accent-color: #22c55e; /* เปลี่ยนสีปุ่ม Radio ให้เป็นสีเขียว */
}

.rating-input label {
    cursor: pointer;
    font-size: 14px;
    margin: 0;
    user-select: none;
}

/* ปุ่มเลือกไฟล์อัปโหลดรูปภาพ */
.file-input {
    color: #94a3b8;
    font-size: 14px;
    cursor: pointer;
}

.file-help {
    display: block;
    margin-top: 6px;
    color: #64748b;
    font-size: 12px;
}

/* ปุ่มกดส่งฟอร์มสไตล์สีเขียวสว่างวาบ */
.submit-btn {
    width: 100%;
    background: #22c55e;
    color: #0b0f19;
    border: none;
    padding: 15px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
}

.submit-btn:hover {
    background: #16a34a;
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.4);
}

/* ==========================================================================
   SECTION 2: ALL REVIEWS DISPLAY (ส่วนแสดงตารางการ์ดรีวิวทั้งหมดด้านล่าง)
   ========================================================================== */
.tech-review-section {
    padding: 60px 0 80px 0;
    background-color: #0b0f19;
}

.all-reviews-title {
    font-size: 26px;
    font-weight: 700;
    border-bottom: 2px solid #141c2f;
    padding-bottom: 15px;
    margin-bottom: 35px;
}

/* ตารางแบบ Grid รองรับขนาดหน้าจอทุกอุปกรณ์ (Responsive) */
.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 25px;
}

/* กล่องการ์ดรีวิวรายบุคคล */
.review-card {
    background: #141c2f;
    border: 1px solid #24324f;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
}

/* เอฟเฟกต์ขอบเรืองแสงเมื่อเมาส์ไปชี้การ์ด */
.review-card:hover {
    transform: translateY(-5px);
    border-color: #22c55e;
    box-shadow: 0 10px 25px rgba(34, 197, 94, 0.15);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 18px;
}

.user-info {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* วงกลมรูปโปรไฟล์/อักษรย่อ */
.avatar {
    width: 42px;
    height: 42px;
    background: #22c55e;
    color: #0b0f19;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.username {
    font-size: 15px;
    font-weight: 600;
    color: #f8fafc;
}

.product-type {
    font-size: 12px;
    color: #94a3b8;
    display: block;
    margin-top: 2px;
}

.tech-stars {
    font-size: 13px;
    letter-spacing: -2px;
}

.review-comment {
    font-size: 14px;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* การจัดวางกล่องรูปภาพหลักฐานภายในคอมเมนต์ */
.proof-images {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.image-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #24324f;
    cursor: pointer;
}

.proof-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

/* ซูมรูปภาพเล็กน้อยเมื่อชี้ตรวจหลักฐาน */
.image-wrapper:hover img {
    transform: scale(1.08);
}

.zoom-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    font-size: 10px;
    text-align: center;
    padding: 3px 0;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.image-wrapper:hover .zoom-badge {
    opacity: 1;
}



/* ==========================================================================
   FORM & MOBILE CAMERA UPLOAD STYLES (ดีไซน์ฟอร์มและระบบกล่องกล้อง)
   ========================================================================== */

.dark-theme-body {
    background-color: #0b0f19;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
}

.review-form-section {
    padding: 60px 20px;
}

.form-container {
    max-width: 650px;
    margin: 0 auto;
    background: #141c2f; /* สีกรอบกล่องเทาเข้ม */
    border: 1px solid #24324f;
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    color: #ffffff;
}

.form-container h3 {
    font-size: 24px;
    margin-bottom: 6px;
    color: #22c55e; /* สีเขียวสะท้อนแสง */
}

.form-desc {
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
    color: #cbd5e1;
}

/* ตั้งค่า Input และช่องพิมพ์ข้อความทั้งหมด */
.form-container input[type="text"],
.form-container select,
.form-container textarea {
    width: 100%;
    padding: 12px 16px;
    background: #0b0f19;
    border: 1px solid #24324f;
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.form-container input:focus,
.form-container select:focus,
.form-container textarea:focus {
    outline: none;
    border-color: #22c55e;
}

.rating-input {
    display: flex;
    gap: 15px;
    background: #0b0f19;
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid #24324f;
    width: fit-content;
}

/* สไตล์กล่องครอบเปิดเลนส์กล้องใหม่ */
.custom-file-upload {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

/* 💡 บังคับซ่อนปุ่มดั้งเดิม Choose File ทิ้งอย่างสมบูรณ์แบบร้อยเปอร์เซ็นต์ */
.custom-file-upload input[type="file"] {
    display: none !important;
}




/* จัดการกล่องครอบรูปภาพในการ์ดรีวิวให้จัดกึ่งกลาง */
.table-thumbnails {
    display: flex !important;
    justify-content: center; /* จัดรูปภาพให้อยู่กึ่งกลางแนวนอน */
    align-items: center;     /* จัดรูปภาพให้อยู่กึ่งกลางแนวตั้ง */
    width: 100%;             /* ขยายกล่องให้เต็มการ์ดเพื่อดันรูปไปตรงกลาง */
    margin-top: 15px;        /* เว้นระยะห่างจากข้อความด้านบน */
    margin-bottom: 10px;     /* เว้นระยะห่างด้านล่าง */
}

/* ควบคุมขนาดรูปภาพพรีวิวให้เท่ากันและสวยงาม */
.table-thumbnails img {
    max-width: 150px;        /* จำกัดความกว้างไม่ให้ใหญ่เกินไป */
    height: auto;
    border-radius: 8px;      /* ทำมุมโค้งมนให้สวยงาม */
    display: block;
}






/* ดีไซน์หน้ากากกล่องประเรืองแสงสีเขียว */
.upload-zone-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    background: #111827;
    border: 2px dashed #22c55e;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    box-sizing: border-box;
}

.upload-zone-box:hover {
    background: #14532d;
    border-color: #4ade80;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.25);
    transform: scale(1.01);
}

.icon-camera-wrapper {
    font-size: 28px;
    background: rgba(34, 197, 94, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 12px;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.upload-headline {
    font-size: 16px;
    font-weight: 700;
    color: #22c55e;
    margin-bottom: 4px;
}

.upload-subline {
    font-size: 12px;
    color: #94a3b8;
}

/* บล็อกแสดงพรีวิวภาพถ่าย */
.camera-preview-box {
    display: none; /* ซ่อนไว้ก่อนเริ่มต้น */
    margin-top: 12px;
    text-align: center;
    width: 100%;
}

.preview-img-element {
    max-width: 100%;
    max-height: 220px;
    border-radius: 8px;
    border: 2px solid #22c55e;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
    object-fit: contain;
}

.file-name-text {
    font-size: 13px;
    color: #64748b;
    font-style: italic;
    padding-left: 4px;
}

/* ปุ่มกดส่งฟอร์มสีเขียวสะท้อนแสง */
.submit-btn {
    width: 100%;
    background: #22c55e;
    color: #0b0f19;
    border: none;
    padding: 15px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
}

.submit-btn:hover {
    background: #16a34a;
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.4);
}






/* ==========================================================================
   1. RESET & BASE STYLES (ตั้งค่าเริ่มต้นและฟอนต์หน้าหลังบ้าน)
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Kanit', sans-serif;
}

body { 
    background-color: #0b0f19; /* พื้นหลังสีมืด-เกือบดำ ล้อตามหน้าหลัก */
    color: #ffffff; 
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px; 
}

/* ==========================================================================
   2. FORM CONTAINER (กล่องครอบฟอร์มหลังบ้าน)
   ========================================================================== */
.form-container { 
    width: 100%;
    max-width: 500px; 
    background: #111827; /* สีพื้นหลังกล่องให้อ่อนกว่าพื้นหลังหลักเล็กน้อยเพื่อให้กล่องลอยเด่น */
    padding: 35px; 
    border-radius: 12px; 
    border: 1px solid rgba(255, 255, 255, 0.05); 
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

h2 { 
    text-align: center; 
    color: #10b981; /* หัวข้อสีเขียวเรืองแสง */
    margin-bottom: 30px; 
    font-size: 24px;
    font-weight: 600;
}

/* ==========================================================================
   3. INPUT FIELDS & LABELS (ช่องกรอกข้อมูลและข้อความกำกับ)
   ========================================================================== */
.form-group { 
    margin-bottom: 20px; 
}

label { 
    display: block; 
    margin-bottom: 8px; 
    font-size: 14px; 
    color: #9ca3af; /* สีเทาจางๆ สบายตา */
    font-weight: 400;
}

input[type="text"] { 
    width: 100%; 
    padding: 12px 15px; 
    border-radius: 8px; 
    border: 1px solid #1f2937; 
    background: #1f2937; /* ช่องกรอกสีมืดกลืนไปกับตัวกล่อง */
    color: #ffffff; 
    font-size: 15px; 
    box-sizing: border-box; 
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* เอฟเฟกต์ตอนคลิกหรือโฟกัสที่ช่องกรอกข้อมูล */
input[type="text"]:focus { 
    border-color: #10b981; /* ขอบเปลี่ยนเป็นสีเขียว */
    outline: none; 
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15); /* รัศมีแสงสีเขียวจางๆ รอบช่อง */
}

/* ข้อความหมายเหตุใต้ช่องกรอก */
.note { 
    font-size: 11px; 
    color: #6b7280; 
    margin-top: 5px; 
    line-height: 1.4;
}

/* ==========================================================================
   4. BUTTON & ALERTS (ปุ่มบันทึกและระบบกล่องแจ้งเตือน)
   ========================================================================== */
.btn-submit { 
    width: 100%; 
    background: #10b981; 
    color: #ffffff; 
    border: none; 
    padding: 14px; 
    border-radius: 8px; 
    font-size: 16px; 
    font-weight: 600; 
    cursor: pointer; 
    margin-top: 10px; 
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-submit:hover { 
    background: #059669; /* เขียวเข้มขึ้นเมื่อชี้เมาส์ */
}

.btn-submit:active {
    transform: scale(0.98); /* ปุ่มยุบตัวเล็กน้อยเวลาคลิกกด */
}

/* โครงสร้างกล่องแจ้งเตือน (Alert) เวลาบันทึกข้อมูล */
.alert { 
    padding: 12px 15px; 
    border-radius: 8px; 
    margin-bottom: 20px; 
    text-align: center; 
    font-size: 14px; 
    font-weight: 400;
}

/* บันทึกสำเร็จ (สีเขียว) */
.success { 
    background: rgba(16, 185, 129, 0.15); 
    color: #34d399; 
    border: 1px solid rgba(16, 185, 129, 0.3); 
}

/* เกิดข้อผิดพลาด (สีแดง) */
.error { 
    background: rgba(239, 68, 68, 0.15); 
    color: #f87171; 
    border: 1px solid rgba(239, 68, 68, 0.3); 
}

/* ==========================================================================
   5. RESPONSIVE (ปรับแต่งหน้าจอสำหรับมือถือ)
   ========================================================================== */
@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    .form-container { 
        padding: 20px; 
    }
    h2 {
        font-size: 20px;
        margin-bottom: 20px;
    }
}







