:root {
  --gold: #d4af37;
  --gold2: #f6e27a;
  --ink: #0d0e12;
  --muted: #cfd2da;
  --glass1: rgba(255, 255, 255, 0.12);
  --glass2: rgba(255, 255, 255, 0.05);
  --ring: 1px solid rgba(212, 175, 55, 0.35);
  --r-xl: 20px;
  --r-2xl: 24px;
  --shadow-lg: 0 22px 60px rgba(0, 0, 0, 0.55);
  --shadow-md: 0 14px 34px rgba(0, 0, 0, 0.45);
  --glow: 0 0 15px rgba(212, 175, 55, 0.3);
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  color: #eef1f7;
  background: #0f1013;
  overflow-x: hidden;
  font-family: 'Sarabun', 'Prompt', sans-serif; /* Standard Thai web fonts */
}

.bg-cover {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  animation: bgPulse 20s infinite alternate; /* Subtle background movement */
}

.bg-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(1600px 900px at 50% 120%, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.75) 70%);
}

@keyframes bgPulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.03); }
}

/* Animations */
@keyframes slideUpFade {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes spin { 
  100% { transform: rotate(360deg); } 
}

@keyframes slotSpin {
  0% { transform: translateY(-30px); opacity: 0; filter: blur(4px); }
  50% { opacity: 1; filter: blur(2px); }
  100% { transform: translateY(0); opacity: 1; filter: blur(0); }
}

.slot-digit {
  display: inline-block;
  min-width: 20px;
  text-align: center;
}

.loader-overlay {
  position: absolute;
  inset: 0;
  background: rgba(12, 12, 18, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 20px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--gold2);
  font-weight: bold;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.loader-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(212, 175, 55, 0.2);
  border-bottom-color: var(--gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 12px;
}

.lux-header {
  position: sticky;
  top: 0;
  z-index: 60;
}

.lux-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.45));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.15); /* Gold tinted border */
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}

.brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.35));
}

.brand .name {
  font-weight: 800;
  letter-spacing: .4px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav a {
  --pad: 10px 14px;
  text-decoration: none;
  color: #f3f4f8;
  padding: var(--pad);
  border-radius: 999px;
  border: 1px solid transparent;
  transition: .3s all;
  font-weight: 600;
  font-size: .95rem;
}

.nav a:hover {
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35), var(--glow);
  color: var(--gold2);
}

.nav a.active {
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.25), rgba(212, 175, 55, 0.08));
  border-color: rgba(212, 175, 55, 0.45);
  color: var(--gold2);
}

.menu-toggle {
  display: none;
  border: 1px solid rgba(212, 175, 55, 0.3);
  background: rgba(0, 0, 0, 0.3);
  color: var(--gold2);
  border-radius: 12px;
  padding: 8px 12px;
  cursor: pointer;
  transition: 0.2s;
}

.menu-toggle:hover {
  background: rgba(212, 175, 55, 0.15);
}

@media (max-width: 960px) {
  .menu-toggle {
    display: inline-flex;
  }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 65px;
    padding: 16px;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    background: linear-gradient(180deg, rgba(15, 16, 19, 0.95), rgba(0, 0, 0, 0.98));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
  }
  .nav.open {
    display: flex;
    animation: fadeIn 0.3s ease-out forwards;
  }
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(16px, 3vw, 28px);
  position: relative;
  z-index: 1;
}

/* breadcrumb */
.breadcrumb {
  font-size: .9rem;
  color: #dde1f2;
  margin-bottom: 15px;
}

.breadcrumb a {
  color: #f1e4b2;
  text-decoration: none;
  border-bottom: 1px dotted rgba(241, 228, 178, .7);
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--gold2);
  border-bottom-style: solid;
}

.breadcrumb span {
  opacity: .9;
}

.hero {
  display: block;
}

.panel {
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,0.1);
  padding: clamp(24px, 4vw, 40px);
  position: relative;
  overflow: hidden;
}

.panel::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent 0%, transparent 40%, rgba(212, 175, 55, 0.15) 50%, transparent 60%, transparent 100%);
  animation: spin 10s linear infinite;
  z-index: -1;
}

.glass {
  background: linear-gradient(180deg, var(--glass1), var(--glass2));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.gold-ring {
  border: var(--ring);
}

h1 {
  margin: .2rem 0 8px;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.gold-text {
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold2) 40%, #fff 60%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% auto;
  animation: shine 4s linear infinite;
}

@keyframes shine {
  to { background-position: 200% center; }
}

.lead {
  color: #d6d9e1;
}

.form {
  display: grid;
  gap: 16px;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 720px) {
  .row {
    grid-template-columns: 1fr;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-weight: 700;
  color: #fff;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

.select, .input {
  appearance: none;
  border-radius: 14px;
  font: inherit;
  color: #f5f6fb;
  padding: 14px 16px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  background: rgba(16, 16, 22, 0.85);
  outline: none;
  transition: .3s all;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.2);
}

.select {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23f6e27a" d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 20px 20px;
  padding-right: 44px;
}

.select:hover, .input:hover {
  border-color: rgba(246, 226, 122, 0.7);
  background: rgba(20, 20, 28, 0.9);
}

.select:focus, .input:focus {
  border-color: rgba(246, 226, 122, 1);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.25), inset 0 2px 5px rgba(0,0,0,0.2);
}

select option, select optgroup {
  background: #13141a;
  color: #f3f4f8;
  padding: 10px;
}

.select:invalid {
  color: #c9cdd8;
}

.btn {
  cursor: pointer;
  border: 1px solid rgba(212, 175, 55, 0.6);
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 14px;
  padding: 16px 20px;
  background: linear-gradient(180deg, rgba(212, 175, 55, 1), rgba(184, 142, 31, 0.9));
  color: #0f1013;
  font-size: 1.1rem;
  box-shadow: 0 14px 32px rgba(212, 175, 55, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 20px 45px rgba(212, 175, 55, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  background: linear-gradient(180deg, #fceb9c, #d4af37);
}

.btn:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

.results {
  margin-top: 24px;
}

.results-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

@media (max-width: 980px) {
  .results-grid {
    grid-template-columns: 1fr;
  }
}

.result-main {
  position: relative;
  min-height: 200px;
}

.result-main .card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  border: 1px solid rgba(212, 175, 55, 0.2);
  background: linear-gradient(180deg, rgba(16, 16, 24, 0.95), rgba(20, 20, 28, 0.98));
}

@media (max-width: 600px) {
  .result-main .card {
    grid-template-columns: 1fr;
  }
  .result-main .media {
    padding: 20px;
    border-right: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
}

.result-main .media {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.25), rgba(212, 175, 55, 0.08));
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.result-main .media img {
  width: 76px;
  height: 76px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45));
}

.result-main .body {
  padding: 20px 24px 24px;
  background: linear-gradient(180deg, rgba(12, 12, 18, 0.9), rgba(18, 18, 24, 0.95));
  backdrop-filter: blur(10px);
}

.result-main h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.meta {
  color: #c7cad4;
  font-size: .92rem;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.text {
  line-height: 1.85;
  color: #e8eaf2;
  font-size: 1.05rem;
}

.text h4 {
  margin: 1.2rem 0 .5rem;
  font-size: 1.1rem;
  color: var(--gold2);
}

.text p {
  margin: .8rem 0;
}

.text ul {
  margin: .6rem 0 1rem 1.2rem;
}

.text li {
  margin-bottom: 6px;
}

.empty {
  text-align: center;
  padding: 24px;
  border-radius: 20px;
  border: 1px dashed rgba(212, 175, 55, 0.3);
  background: rgba(0, 0, 0, 0.4);
  color: #a0a5b5;
}

.aside-box {
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  padding: 18px;
  background: linear-gradient(180deg, var(--glass1), var(--glass2));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: var(--ring);
  animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-fill-mode: both;
}

.aside-box:nth-child(1) { animation-delay: 0.1s; }
.aside-box:nth-child(2) { animation-delay: 0.2s; }
.aside-box:nth-child(3) { animation-delay: 0.3s; }
.aside-box:nth-child(4) { animation-delay: 0.4s; }

.aside-box h4 {
  margin: 6px 0 8px;
  font-size: 1.1rem;
}

.tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.2);
  border: 1px solid rgba(212, 175, 55, 0.4);
  margin-bottom: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold2);
}

.prod-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  text-decoration: none;
  border: 1px solid rgba(212, 175, 55, 0.6);
  border-radius: 12px;
  padding: 10px 16px;
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.3), rgba(212, 175, 55, 0.1));
  color: #fff;
  font-weight: 600;
  transition: 0.2s;
}

.prod-link:hover {
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.4), rgba(212, 175, 55, 0.2));
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
  transform: translateY(-1px);
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 16px;
  padding: 12px;
  background: linear-gradient(135deg, #1877F2, #0e5a1b);
  border: none;
  border-radius: 14px;
  color: white;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.2s;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.share-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

/* SEO copy */
.seo-love {
  margin-top: 32px;
  padding: 24px 28px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(8, 8, 12, 0.95), rgba(12, 12, 20, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
}

.seo-love h2 {
  margin: 0 0 12px;
  font-size: 1.4rem;
  color: #f9f1bf;
}

.seo-love h3 {
  margin: 1.2rem 0 .5rem;
  font-size: 1.1rem;
  color: #f6e27a;
}

.seo-love p {
  margin: .6rem 0;
  color: #e5e8f2;
  line-height: 1.75;
}

.seo-love ul {
  margin: .5rem 0 1rem 1.5rem;
  color: #dde1f7;
  line-height: 1.6;
}

.seo-love li {
  margin: .3rem 0;
}

/* FAQ block */
.seo-faq {
  margin-top: 20px;
  padding: 24px 28px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(10, 10, 16, 0.98), rgba(12, 12, 20, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-md);
}

.seo-faq h2 {
  margin: 0 0 12px;
  font-size: 1.4rem;
  color: #f9f1bf;
}

.seo-faq h3 {
  margin: 1rem 0 .3rem;
  font-size: 1.05rem;
  color: #f6e27a;
}

.seo-faq p {
  margin: .3rem 0 .8rem;
  color: #e5e8f2;
  line-height: 1.75;
}

footer {
  margin-top: 40px;
  border-top: 1px solid rgba(212, 175, 55, 0.15);
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
}

.foo-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 30px 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.f-links strong {
  display: block;
  font-size: 1.1rem;
  color: var(--gold2);
  margin-bottom: 12px;
}

.f-links a {
  color: #eaeefb;
  text-decoration: none;
  display: block;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
  transition: 0.2s;
}

.f-links a:hover {
  color: var(--gold2);
  padding-left: 5px;
}

.legal {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
  color: #a0a5b5;
}

.legal a {
  color: #eaeefb;
  text-decoration: none;
  transition: 0.2s;
}

.legal a:hover {
  color: #fff;
  text-decoration: underline;
}
