/* --- ปรับลดความหนาของแถบเมนูขาวด้านบนให้แคบและกะทัดรัดลง --- */
.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-color: #161b22; 
  
  /* แก้ไข: ใช้สีฟ้าอมเขียวนีออน (Cyan) หรือเปลี่ยนเป็น #58a6ff (สีฟ้าสว่าง) ตามชอบ */
  border: 1.5px solid #529ff7; 
  
  border-radius: 8px;
  padding: 12px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  transition: all 0.25s ease-in-out;
}

/* รูปภาพโลโก้ด้านใน (ปรับให้สว่างเคลียร์สอดคล้องกับขอบ) */
.brand-badge img {
  max-height: 24px;
  width: auto;
  object-fit: contain;
  filter: brightness(1.5) contrast(1.1); 
  opacity: 0.9;
  transition: all 0.25s ease-in-out;
}

/* ⭐️ เอฟเฟกต์เมื่อเอาเมาส์มาวางชี้ (ขอบเรืองแสงนีออนวาบ ไม่เด้ง ไม่กระตุก) */
.brand-badge:hover {
  background-color: #1f242c;
  
  /* เมื่อชี้ ให้สีขอบสว่างขึ้นอีกระดับ */
  border-color: #364c68; 
  
  /* เพิ่มเอฟเฟกต์แสงนีออนเรืองรอบกล่อง (Neon Glow) ดึงสายตาขั้นสุด */
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.4), inset 0 0 8px rgba(0, 242, 254, 0.2);
}

/* เมื่อชี้ ให้รูปโลโก้ชัดเจน 100% */
.brand-badge:hover img {
  filter: brightness(1.8) contrast(1.2);
  opacity: 1;
}




/* หมายเหตุด้านล่าง */
.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 {

    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: 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;
}

.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;   /* เพิ่มระยะห่างด้านล่างปุ่มเล็กน้อยไม่ให้ชิดขอบล่างเกินไป */
}

.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;
}



.image-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #24324f;
    cursor: pointer;
}

.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: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;
}




/* ตารางครอบการ์ดรีวิว ปรับให้เรียงแถวละ 3 อัน */
.review-grid {
    display: grid;
    /* สั่งแบ่งเป็น 3 คอลัมน์เท่า ๆ กันในหน้าจอคอมพิวเตอร์ */
    grid-template-columns: repeat(3, 1fr); 
    gap: 25px; /* ระยะห่างระหว่างกล่องรีวิว */
    max-width: 1200px; /* จำกัดความกว้างรวมของเซกชันไม่ให้บานเกินไป */
    margin: 0 auto; /* จัดตารางให้อยู่กึ่งกลางหน้าจอ */
    padding: 20px 0;
}

/* กล่องการ์ดรีวิวรายบุคคล */
.review-card {
    background: #141c2f; /* สีเทาเข้มตัดกับพื้นหลังมืด */
    border: 1px solid #24324f;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%; /* บังคับให้ทุกกล่องมีความสูงเท่ากันหมด */
    box-sizing: border-box;
    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);
}

/* 📱 รองรับการแสดงผลบนหน้าจอมือถือ (Responsive) */
@media (max-width: 992px) {
    .review-grid {
        grid-template-columns: repeat(2, 1fr); /* หน้าจอแท็บเล็ตแสดงแถวละ 2 อัน */
        padding: 0 15px;
    }
}

@media (max-width: 768px) {
    .review-grid {
        grid-template-columns: 1fr; /* หน้าจอมือถือสลับมาแสดงแถวละ 1 อันเรียงลงมา */
    }
}







