/* ==========================================================================
   Witsanu Photo — "Noir & Gold" Luxury Theme
   ใช้ร่วมกับ Bootstrap 5.3 + Tailwind (prefix tw-) + Three.js
   รองรับ Desktop / Tablet / Mobile และ prefers-reduced-motion
   ========================================================================== */

:root {
    --lux-ink: #06070b;
    --lux-night: #0b0e16;
    --lux-night-2: #111521;
    --lux-panel: rgba(17, 21, 33, .72);
    --lux-line: rgba(232, 197, 122, .18);
    --lux-line-soft: rgba(255, 255, 255, .08);
    --lux-gold-1: #f8e3ae;
    --lux-gold-2: #e0b25a;
    --lux-gold-3: #b07a24;
    --lux-gold: linear-gradient(135deg, #fbe7b5 0%, #e3b55c 42%, #b8812a 72%, #f3d38c 100%);
    --lux-ivory: #f6f1e7;
    --lux-paper: #f7f4ee;
    --lux-text: #171a22;
    --lux-muted: #98a1b3;
    --lux-radius: 22px;
    --lux-radius-lg: 30px;
    --lux-shadow: 0 24px 60px -18px rgba(4, 6, 12, .55);
    --lux-ease: cubic-bezier(.22, 1, .36, 1);
    --lux-nav-h: 78px;
    --lux-serif: 'Cormorant Garamond', 'Kanit', serif;
    --bs-font-sans-serif: 'Kanit', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --bs-body-font-family: var(--bs-font-sans-serif);
    --bs-link-color: #b07a24;
    --bs-link-hover-color: #8a5d16;
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--lux-nav-h) + 16px); }
body {
    font-family: 'Kanit', system-ui, sans-serif;
    font-weight: 300;
    background: var(--lux-paper);
    color: var(--lux-text);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
b, strong, h1, h2, h3, h4, h5, h6, .fw-semibold { font-weight: 500; }
::selection { background: #e0b25a; color: #1a1205; }

/* ---------- Scrollbar ---------- */
@media (hover: hover) {
    ::-webkit-scrollbar { width: 10px; height: 10px; }
    ::-webkit-scrollbar-track { background: #0b0e16; }
    ::-webkit-scrollbar-thumb { background: linear-gradient(#e0b25a, #8a5d16); border-radius: 10px; border: 2px solid #0b0e16; }
}

/* ---------- Text helpers ---------- */
.lux-gold-text {
    background: var(--lux-gold);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: luxShine 6s linear infinite;
}
.lux-serif { font-family: var(--lux-serif); font-weight: 500; letter-spacing: .01em; }
.lux-eyebrow {
    display: inline-flex; align-items: center; gap: .7rem;
    font-size: .78rem; letter-spacing: .32em; text-transform: uppercase;
    color: var(--lux-gold-2); font-weight: 400;
}
.lux-eyebrow::before { content: ''; width: 34px; height: 1px; background: currentColor; opacity: .7; }
.lux-eyebrow.is-center::after { content: ''; width: 34px; height: 1px; background: currentColor; opacity: .7; }

@keyframes luxShine { to { background-position: 200% center; } }
@keyframes luxFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes luxSpin { to { transform: rotate(360deg); } }
@keyframes luxPulse { 0% { box-shadow: 0 0 0 0 rgba(224, 178, 90, .45); } 100% { box-shadow: 0 0 0 16px rgba(224, 178, 90, 0); } }
@keyframes luxFadeUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes luxScroll { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }
@keyframes luxShutter { 0% { transform: rotate(0) scale(1); } 40% { transform: rotate(-12deg) scale(.86); } 70% { transform: rotate(8deg) scale(1.08); } 100% { transform: rotate(0) scale(1); } }

/* ==========================================================================
   LUX ICON — ไอคอนหรูหราพร้อมแอนิเมชัน
   <span class="lux-icon"><i class="bi bi-camera"></i></span>
   ========================================================================== */
.lux-icon {
    --size: 52px;
    position: relative;
    width: var(--size); height: var(--size); flex: 0 0 var(--size);
    display: inline-grid; place-items: center;
    border-radius: 16px;
    isolation: isolate;
    background: linear-gradient(160deg, #1a1f2d, #0c0f17);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 10px 26px -10px rgba(0, 0, 0, .6);
    transition: transform .5s var(--lux-ease), box-shadow .5s var(--lux-ease);
}
.lux-icon::before { /* ขอบทองหมุน */
    content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; z-index: -1;
    background: conic-gradient(from var(--lux-angle, 0deg), rgba(224, 178, 90, .15), #f8e3ae, rgba(224, 178, 90, .15) 30%, rgba(224, 178, 90, .15) 70%, #e0b25a, rgba(224, 178, 90, .15));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    animation: luxAngle 6s linear infinite;
}
.lux-icon::after { /* แสงวาบ */
    content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: 1; pointer-events: none;
    background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .28) 48%, transparent 62%);
    background-size: 250% 100%; background-position: 130% 0;
    transition: background-position .9s var(--lux-ease);
}
.lux-icon > i, .lux-icon > svg {
    font-size: calc(var(--size) * .44); line-height: 1;
    background: var(--lux-gold); -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 2px 6px rgba(224, 178, 90, .35));
    transition: transform .5s var(--lux-ease);
}
.lux-icon.is-solid { background: var(--lux-gold); }
.lux-icon.is-solid > i { background: none; color: #24190a; filter: none; -webkit-background-clip: border-box; background-clip: border-box; }
.lux-icon.is-round { border-radius: 50%; }
.lux-icon.is-sm { --size: 40px; border-radius: 12px; }
.lux-icon.is-lg { --size: 68px; border-radius: 20px; }
.lux-icon.is-float { animation: luxFloat 4.5s ease-in-out infinite; }
.lux-icon.is-pulse { animation: luxPulse 2.2s ease-out infinite; }
a:hover .lux-icon, button:hover .lux-icon, .lux-hover:hover .lux-icon, .lux-icon:hover {
    transform: translateY(-3px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 16px 32px -10px rgba(224, 178, 90, .45);
}
a:hover .lux-icon::after, button:hover .lux-icon::after, .lux-hover:hover .lux-icon::after, .lux-icon:hover::after { background-position: -40% 0; }
a:hover .lux-icon > i, button:hover .lux-icon > i, .lux-hover:hover .lux-icon > i, .lux-icon:hover > i { transform: scale(1.12) rotate(-6deg); }
.lux-icon.is-shutter:hover > i, a:hover .lux-icon.is-shutter > i { animation: luxShutter .7s var(--lux-ease); }

@property --lux-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes luxAngle { to { --lux-angle: 360deg; } }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn-lux, .btn-lux-outline {
    --pad-x: 1.6rem;
    position: relative; overflow: hidden; isolation: isolate;
    display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
    min-height: 50px; padding: .7rem var(--pad-x);
    border-radius: 999px; font-weight: 400; letter-spacing: .02em;
    transition: transform .45s var(--lux-ease), box-shadow .45s var(--lux-ease), color .3s, background-color .3s, border-color .3s;
    will-change: transform;
}
.btn-lux { border: 0; color: #1c1406 !important; background: var(--lux-gold); background-size: 180% auto; box-shadow: 0 14px 30px -12px rgba(224, 178, 90, .7); }
.btn-lux:hover, .btn-lux:focus-visible { background-position: right center; box-shadow: 0 20px 40px -12px rgba(224, 178, 90, .85); transform: translateY(-2px); }
.btn-lux::after {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%);
    transform: translateX(-120%); transition: transform .9s var(--lux-ease);
}
.btn-lux:hover::after { transform: translateX(120%); }
.btn-lux-outline { color: var(--lux-ivory) !important; border: 1px solid rgba(232, 197, 122, .45); background: rgba(255, 255, 255, .03); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-lux-outline:hover, .btn-lux-outline:focus-visible { border-color: var(--lux-gold-2); background: rgba(224, 178, 90, .12); transform: translateY(-2px); }
.btn-lux-outline.is-dark { color: var(--lux-text) !important; border-color: rgba(176, 122, 36, .45); background: transparent; }
.btn-lux i, .btn-lux-outline i { transition: transform .45s var(--lux-ease); }
.btn-lux:hover i.bi-arrow-right, .btn-lux-outline:hover i.bi-arrow-right, .btn-lux:hover i.bi-arrow-up-right { transform: translateX(4px); }

/* ปรับปุ่ม Bootstrap เดิมทั้งระบบให้เข้าธีม */
.btn-warning {
    --bs-btn-color: #1c1406; --bs-btn-hover-color: #1c1406; --bs-btn-active-color: #1c1406;
    border: 0; background: var(--lux-gold); background-size: 180% auto;
    box-shadow: 0 10px 24px -12px rgba(224, 178, 90, .8);
    transition: background-position .5s var(--lux-ease), transform .35s var(--lux-ease), box-shadow .35s;
}
.btn-warning:hover, .btn-warning:focus-visible { background-position: right center; transform: translateY(-1px); box-shadow: 0 14px 28px -12px rgba(224, 178, 90, .95); }
.btn-dark { --bs-btn-bg: #0f121b; --bs-btn-border-color: #0f121b; --bs-btn-hover-bg: #1c2130; --bs-btn-hover-border-color: #e0b25a; }
.form-control:focus, .form-select:focus { border-color: #e0b25a; box-shadow: 0 0 0 .22rem rgba(224, 178, 90, .18); }
.form-check-input:checked { background-color: #c8922f; border-color: #c8922f; }
.text-warning { color: #c8922f !important; }

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.lux-nav {
    height: auto; min-height: var(--lux-nav-h);
    padding: .65rem 0;
    z-index: 1050;
    background: linear-gradient(180deg, rgba(6, 7, 11, .78), rgba(6, 7, 11, .35));
    border-bottom: 1px solid transparent;
    backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
    transition: background-color .4s, padding .4s var(--lux-ease), border-color .4s, box-shadow .4s;
}
.lux-nav.is-scrolled { padding: .35rem 0; background: rgba(8, 10, 16, .92); border-bottom-color: var(--lux-line); box-shadow: 0 14px 40px -20px rgba(0, 0, 0, .8); }
.lux-nav .navbar-brand { display: flex; align-items: center; gap: .8rem; margin-right: 1.5rem; }
.lux-brand-text { line-height: 1.05; }
.lux-brand-text strong { display: block; color: #fff; font-size: 1.12rem; font-weight: 500; letter-spacing: .02em; }
.lux-brand-text small { display: block; font-family: var(--lux-serif); font-style: italic; font-size: .82rem; letter-spacing: .28em; color: var(--lux-gold-2); }
.lux-nav .nav-link {
    position: relative; display: flex; align-items: center; gap: .45rem;
    padding: .6rem .9rem !important; border-radius: 12px;
    color: rgba(246, 241, 231, .72); font-weight: 300;
    transition: color .3s, background-color .3s;
}
.lux-nav .nav-link i { font-size: 1rem; transition: transform .45s var(--lux-ease), color .3s; }
.lux-nav .nav-link::after {
    content: ''; position: absolute; left: 50%; bottom: 3px; width: 0; height: 2px; border-radius: 2px;
    background: var(--lux-gold); transform: translateX(-50%); transition: width .45s var(--lux-ease);
}
.lux-nav .nav-link:hover, .lux-nav .nav-link:focus-visible, .lux-nav .nav-link.active { color: #fff; }
.lux-nav .nav-link:hover i, .lux-nav .nav-link.active i { color: var(--lux-gold-2); transform: translateY(-2px) scale(1.12); }
.lux-nav .nav-link:hover::after, .lux-nav .nav-link.active::after { width: 46%; }
.lux-nav .navbar-toggler { border: 1px solid var(--lux-line); border-radius: 14px; padding: .55rem .7rem; color: var(--lux-gold-1); }
.lux-nav .navbar-toggler:focus { box-shadow: 0 0 0 .2rem rgba(224, 178, 90, .25); }
.lux-burger { width: 22px; height: 14px; position: relative; display: block; }
.lux-burger span { position: absolute; left: 0; width: 100%; height: 1.6px; border-radius: 2px; background: currentColor; transition: transform .45s var(--lux-ease), opacity .3s, top .45s var(--lux-ease); }
.lux-burger span:nth-child(1) { top: 0; } .lux-burger span:nth-child(2) { top: 6px; width: 70%; } .lux-burger span:nth-child(3) { top: 12px; }
.navbar-toggler[aria-expanded="true"] .lux-burger span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.navbar-toggler[aria-expanded="true"] .lux-burger span:nth-child(2) { opacity: 0; }
.navbar-toggler[aria-expanded="true"] .lux-burger span:nth-child(3) { top: 6px; transform: rotate(-45deg); }
.lux-user-chip { display: flex; align-items: center; gap: .55rem; color: var(--lux-ivory); font-size: .88rem; }
.lux-user-chip .name { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lux-nav .btn-lux, .lux-nav .btn-lux-outline { min-height: 42px; --pad-x: 1.15rem; font-size: .92rem; }

@media (max-width: 991.98px) {
    .lux-nav .navbar-collapse {
        margin-top: .8rem; padding: 1rem; max-height: calc(100dvh - 100px); overflow-y: auto;
        border: 1px solid var(--lux-line); border-radius: 20px;
        background: rgba(11, 14, 22, .97); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8);
    }
    .lux-nav .navbar-nav { align-items: stretch !important; gap: .15rem; }
    .lux-nav .nav-link { padding: .8rem 1rem !important; }
    .lux-nav .nav-link::after { display: none; }
    .lux-nav .nav-link.active { background: rgba(224, 178, 90, .1); }
    .lux-nav .btn-lux, .lux-nav .btn-lux-outline { width: 100%; margin-top: .4rem; min-height: 48px; }
    .lux-user-chip { padding: .6rem .8rem; border-radius: 14px; background: rgba(255, 255, 255, .04); }
    .lux-user-chip .name { max-width: none; }
}
@media (max-width: 420px) { .lux-brand-text strong { font-size: 1rem; } .lux-nav .navbar-brand .lux-icon { --size: 42px; } }

.lux-skip { position: fixed; z-index: 3000; top: 10px; left: 10px; padding: .65rem 1rem; border-radius: 12px; background: #fff; color: #111; transform: translateY(-160%); transition: transform .2s; }
.lux-skip:focus { transform: none; }

/* ==========================================================================
   PAGE LOADER + PROGRESS + CURSOR GLOW
   ========================================================================== */
.lux-progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 2000; transform-origin: 0 50%; transform: scaleX(0); background: var(--lux-gold); pointer-events: none; }
.lux-loader { position: fixed; inset: 0; z-index: 2500; display: grid; place-items: center; background: var(--lux-ink); transition: opacity .7s var(--lux-ease), visibility .7s; }
.lux-loader.is-done { opacity: 0; visibility: hidden; }
/* กันค้าง: ถ้า JavaScript โหลดไม่สำเร็จ loader จะหายเองภายใน 2.5 วินาที */
.lux-loader { animation: luxLoaderOut .6s ease 2.5s forwards; }
@keyframes luxLoaderOut { to { opacity: 0; visibility: hidden; } }
.lux-loader-ring { width: 64px; height: 64px; border-radius: 50%; border: 1px solid rgba(224, 178, 90, .18); border-top-color: #e0b25a; animation: luxSpin 1s linear infinite; display: grid; place-items: center; }
.lux-loader-ring i { animation: luxSpin 1s linear infinite reverse; color: #e0b25a; font-size: 1.3rem; }
.lux-cursor { position: fixed; top: 0; left: 0; width: 380px; height: 380px; margin: -190px 0 0 -190px; border-radius: 50%; pointer-events: none; z-index: 1; background: radial-gradient(circle, rgba(224, 178, 90, .09), transparent 65%); opacity: 0; transition: opacity .5s; }
body.has-cursor .lux-cursor { opacity: 1; }

/* ==========================================================================
   REVEAL ON SCROLL
   ========================================================================== */
.js-ready [data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--lux-ease), transform 1s var(--lux-ease); transition-delay: var(--d, 0s); }
.js-ready [data-reveal="left"] { transform: translateX(-34px); }
.js-ready [data-reveal="right"] { transform: translateX(34px); }
.js-ready [data-reveal="zoom"] { transform: scale(.94); }
.js-ready [data-reveal].is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   HOME — FULLSCREEN HERO
   ========================================================================== */
body.lux-dark { background: var(--lux-ink); color: var(--lux-ivory); }
.lux-hero {
    position: relative; isolation: isolate; overflow: hidden;
    min-height: 100vh; min-height: 100svh;
    display: flex; align-items: center;
    padding: calc(var(--lux-nav-h) + 40px) 0 110px;
    color: var(--lux-ivory);
    background: radial-gradient(1200px 600px at 75% 20%, rgba(224, 178, 90, .14), transparent 60%), radial-gradient(900px 600px at 10% 90%, rgba(70, 90, 160, .18), transparent 60%), var(--lux-ink);
}
.lux-hero-bg { position: absolute; inset: 0; z-index: -3; background-size: cover; background-position: center; transform: scale(1.08); opacity: .32; filter: grayscale(.25) contrast(1.05); will-change: transform; }
.lux-hero::before { content: ''; position: absolute; inset: 0; z-index: -2; background: linear-gradient(100deg, rgba(6, 7, 11, .96) 18%, rgba(6, 7, 11, .62) 55%, rgba(6, 7, 11, .9)), linear-gradient(0deg, var(--lux-ink), transparent 35%); }
.lux-three { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; display: block; pointer-events: none; }
.lux-grain { position: absolute; inset: -50%; z-index: -1; pointer-events: none; opacity: .06; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.lux-hero h1 { font-size: clamp(2.6rem, 7.2vw, 6.2rem); font-weight: 500; line-height: 1.08; letter-spacing: -.015em; margin: 1.4rem 0 1.2rem; }
.lux-hero h1 .line { display: block; overflow: hidden; padding-bottom: .08em; }
.lux-hero h1 .line > span { display: inline-block; animation: luxFadeUp 1.1s var(--lux-ease) both; animation-delay: calc(.25s + var(--i, 0) * .14s); }
.lux-hero .lead { max-width: 560px; color: rgba(246, 241, 231, .72); font-weight: 300; font-size: clamp(1rem, 1.6vw, 1.2rem); line-height: 1.85; animation: luxFadeUp 1.1s var(--lux-ease) .7s both; }
.lux-hero-actions { animation: luxFadeUp 1.1s var(--lux-ease) .85s both; }
.lux-hero .lux-eyebrow { animation: luxFadeUp 1s var(--lux-ease) .1s both; }
.lux-hero-badges { display: flex; flex-wrap: wrap; gap: .75rem 1.6rem; margin-top: 2.6rem; color: rgba(246, 241, 231, .6); font-size: .9rem; animation: luxFadeUp 1.1s var(--lux-ease) 1s both; }
.lux-hero-badges span { display: inline-flex; align-items: center; gap: .5rem; }
.lux-hero-badges i { color: var(--lux-gold-2); }

.lux-hero-card {
    position: relative; padding: 1.6rem; border-radius: var(--lux-radius-lg);
    background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
    border: 1px solid var(--lux-line); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    box-shadow: var(--lux-shadow); animation: luxFadeUp 1.2s var(--lux-ease) .9s both;
    transform-style: preserve-3d;
}
.lux-hero-card .frame { position: relative; aspect-ratio: 4/5; border-radius: 20px; overflow: hidden; background: #10131c; }
.lux-hero-card .frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--lux-ease); }
.lux-hero-card:hover .frame img { transform: scale(1.06); }
.lux-hero-card .frame::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6, 7, 11, .85), transparent 55%); }
.lux-hero-card .caption { position: absolute; left: 1.2rem; right: 1.2rem; bottom: 1.1rem; z-index: 2; }
.lux-hero-card .caption small { color: var(--lux-gold-1); letter-spacing: .2em; font-size: .7rem; }
.lux-hero-card .caption b { display: block; color: #fff; font-size: 1.1rem; margin-top: .25rem; }
.lux-corner { position: absolute; width: 26px; height: 26px; border-color: var(--lux-gold-2); border-style: solid; opacity: .85; z-index: 3; }
.lux-corner.tl { top: 12px; left: 12px; border-width: 1px 0 0 1px; } .lux-corner.tr { top: 12px; right: 12px; border-width: 1px 1px 0 0; }
.lux-corner.bl { bottom: 12px; left: 12px; border-width: 0 0 1px 1px; } .lux-corner.br { bottom: 12px; right: 12px; border-width: 0 1px 1px 0; }
.lux-rec { position: absolute; top: 1.2rem; left: 50%; transform: translateX(-50%); z-index: 3; display: inline-flex; align-items: center; gap: .45rem; font-size: .7rem; letter-spacing: .2em; color: #fff; padding: .3rem .7rem; border-radius: 999px; background: rgba(0, 0, 0, .45); }
.lux-rec::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #ff4d4d; animation: luxPulse 1.6s infinite; }
.lux-float-chip { position: absolute; display: flex; align-items: center; gap: .7rem; padding: .7rem 1rem .7rem .7rem; border-radius: 18px; background: rgba(12, 15, 23, .9); border: 1px solid var(--lux-line); color: #fff; box-shadow: var(--lux-shadow); animation: luxFloat 5s ease-in-out infinite; z-index: 4; }
.lux-float-chip small { display: block; color: var(--lux-muted); font-size: .72rem; }
.lux-float-chip b { font-size: 1rem; }
.lux-float-chip.one { left: -38px; bottom: 18%; }
.lux-float-chip.two { right: -26px; top: 14%; animation-delay: -2.5s; }

.lux-scroll-cue { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); display: grid; justify-items: center; gap: .5rem; color: rgba(246, 241, 231, .55); font-size: .68rem; letter-spacing: .3em; text-decoration: none; }
.lux-scroll-cue .mouse { width: 24px; height: 38px; border-radius: 14px; border: 1px solid rgba(246, 241, 231, .4); display: flex; justify-content: center; padding-top: 7px; }
.lux-scroll-cue .mouse::before { content: ''; width: 3px; height: 7px; border-radius: 3px; background: var(--lux-gold-2); animation: luxScroll 1.8s infinite; }

/* ---------- Marquee ---------- */
.lux-marquee { position: relative; overflow: hidden; padding: 1.1rem 0; border-block: 1px solid var(--lux-line); background: #090b11; }
.lux-marquee-track { display: flex; width: max-content; gap: 3rem; animation: luxMarquee 38s linear infinite; }
.lux-marquee:hover .lux-marquee-track { animation-play-state: paused; }
.lux-marquee span { display: inline-flex; align-items: center; gap: 3rem; white-space: nowrap; font-family: var(--lux-serif); font-style: italic; font-size: clamp(1.3rem, 2.4vw, 2rem); color: rgba(246, 241, 231, .55); }
.lux-marquee span::after { content: '✦'; font-style: normal; font-size: .9rem; color: var(--lux-gold-2); }
@keyframes luxMarquee { to { transform: translateX(-50%); } }

/* ---------- Sections (dark) ---------- */
.lux-section { position: relative; padding: clamp(70px, 9vw, 130px) 0; }
.lux-section.is-dark { background: var(--lux-ink); color: var(--lux-ivory); }
.lux-section.is-night { background: linear-gradient(180deg, #0a0c13, #0e121c); color: var(--lux-ivory); }
.lux-title { font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 500; line-height: 1.18; letter-spacing: -.01em; margin: 1rem 0 1rem; }
.lux-sub { color: var(--lux-muted); max-width: 620px; line-height: 1.85; }
.lux-sub.mx-auto { margin-inline: auto; }

/* ---------- Contact strip ---------- */
.lux-strip { position: relative; z-index: 5; margin-top: -64px; padding: 1.1rem; border-radius: var(--lux-radius-lg); background: rgba(14, 17, 27, .88); border: 1px solid var(--lux-line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: var(--lux-shadow); }
.lux-strip-item { display: flex; align-items: center; gap: 1rem; padding: .9rem 1rem; border-radius: 18px; color: var(--lux-ivory); text-decoration: none; transition: background-color .35s; min-width: 0; }
.lux-strip-item:hover { background: rgba(255, 255, 255, .04); color: #fff; }
.lux-strip-item small { display: block; color: var(--lux-muted); font-size: .72rem; letter-spacing: .22em; }
.lux-strip-item b { display: block; font-weight: 400; overflow-wrap: anywhere; }

/* ---------- Stats ---------- */
.lux-stat { text-align: center; padding: 1.8rem 1rem; border-radius: var(--lux-radius); background: linear-gradient(160deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .01)); border: 1px solid var(--lux-line-soft); height: 100%; transition: border-color .4s, transform .5s var(--lux-ease); }
.lux-stat:hover { border-color: var(--lux-line); transform: translateY(-4px); }
.lux-stat strong { display: block; font-family: var(--lux-serif); font-size: clamp(2.4rem, 4.6vw, 3.6rem); line-height: 1; margin: 1rem 0 .4rem; }
.lux-stat span { color: var(--lux-muted); font-size: .92rem; }

/* ---------- Service cards ---------- */
.lux-service { position: relative; height: 100%; padding: 2rem 1.7rem; border-radius: var(--lux-radius); background: #0f121b; border: 1px solid var(--lux-line-soft); overflow: hidden; isolation: isolate; transition: transform .6s var(--lux-ease), border-color .4s; text-decoration: none; color: var(--lux-ivory); display: block; }
.lux-service::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 0%), rgba(224, 178, 90, .14), transparent 45%); opacity: 0; transition: opacity .5s; }
.lux-service:hover { transform: translateY(-6px); border-color: var(--lux-line); color: #fff; }
.lux-service:hover::before { opacity: 1; }
.lux-service h3 { font-size: 1.25rem; margin: 1.4rem 0 .6rem; font-weight: 500; }
.lux-service p { color: var(--lux-muted); margin: 0; line-height: 1.75; font-size: .95rem; }
.lux-service .more { margin-top: 1.3rem; display: inline-flex; align-items: center; gap: .4rem; color: var(--lux-gold-2); font-size: .9rem; }
.lux-service .num { position: absolute; top: 1.2rem; right: 1.4rem; font-family: var(--lux-serif); font-size: 2.6rem; line-height: 1; color: rgba(255, 255, 255, .05); transition: color .5s; }
.lux-service:hover .num { color: rgba(224, 178, 90, .25); }

/* ---------- Portfolio cards (home) ---------- */
.lux-work { position: relative; display: block; height: 100%; border-radius: var(--lux-radius); overflow: hidden; background: #0f121b; color: var(--lux-ivory); text-decoration: none; isolation: isolate; border: 1px solid var(--lux-line-soft); transition: transform .7s var(--lux-ease), border-color .4s, box-shadow .6s; transform-style: preserve-3d; }
.lux-work:hover { color: #fff; border-color: var(--lux-line); box-shadow: 0 30px 60px -24px rgba(224, 178, 90, .35); }
.lux-work .media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: #151925; }
.lux-work .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.3s var(--lux-ease), filter .8s; filter: saturate(.92); }
.lux-work:hover .media img { transform: scale(1.08); filter: saturate(1.08); }
.lux-work .media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 10, 16, .85), transparent 50%); }
.lux-work .tag { position: absolute; top: 1rem; left: 1rem; z-index: 2; padding: .38rem .85rem; border-radius: 999px; font-size: .78rem; background: rgba(8, 10, 16, .7); border: 1px solid var(--lux-line); color: var(--lux-gold-1); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.lux-work .view { position: absolute; right: 1rem; bottom: 1rem; z-index: 2; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--lux-gold); color: #1c1406; transform: scale(.6) rotate(-45deg); opacity: 0; transition: transform .6s var(--lux-ease), opacity .4s; }
.lux-work:hover .view { transform: scale(1) rotate(0); opacity: 1; }
.lux-work .body { padding: 1.4rem 1.5rem 1.6rem; }
.lux-work .meta { display: flex; align-items: center; gap: .45rem; color: var(--lux-muted); font-size: .82rem; }
.lux-work h3 { font-size: 1.2rem; font-weight: 500; margin: .55rem 0 .45rem; line-height: 1.45; }
.lux-work p { color: var(--lux-muted); font-size: .92rem; line-height: 1.7; margin: 0; }
.lux-empty { text-align: center; padding: 4rem 1rem; border-radius: var(--lux-radius); border: 1px dashed var(--lux-line); color: var(--lux-muted); }

/* ---------- Filter chips ---------- */
.lux-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.lux-chip { padding: .5rem 1.1rem; border-radius: 999px; border: 1px solid var(--lux-line-soft); background: rgba(255, 255, 255, .02); color: rgba(246, 241, 231, .72); font-size: .88rem; transition: all .35s var(--lux-ease); cursor: pointer; }
.lux-chip:hover { border-color: var(--lux-line); color: #fff; }
.lux-chip.is-active { background: var(--lux-gold); border-color: transparent; color: #1c1406; }
.lux-work-col.is-hidden { display: none; }

/* ---------- Process ---------- */
.lux-step { position: relative; padding-left: 4.4rem; }
.lux-step .lux-icon { position: absolute; left: 0; top: 0; }
.lux-step h4 { font-size: 1.08rem; font-weight: 500; margin-bottom: .35rem; }
.lux-step p { color: var(--lux-muted); margin: 0; line-height: 1.7; font-size: .94rem; }
.lux-step:not(:last-child)::after { content: ''; position: absolute; left: 26px; top: 62px; bottom: -28px; width: 1px; background: linear-gradient(var(--lux-line), transparent); }

/* ---------- CTA ---------- */
.lux-cta { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--lux-radius-lg); padding: clamp(2.2rem, 5vw, 4.2rem); border: 1px solid var(--lux-line); background: radial-gradient(600px 300px at 90% 0%, rgba(224, 178, 90, .22), transparent 60%), linear-gradient(135deg, #12162280, #0a0c12); }
.lux-cta::after { content: ''; position: absolute; width: 420px; height: 420px; right: -120px; bottom: -220px; border-radius: 50%; border: 1px solid var(--lux-line); z-index: -1; animation: luxSpin 40s linear infinite; border-top-color: var(--lux-gold-2); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.lux-footer { position: relative; overflow: hidden; isolation: isolate; color: #a7afbf; background: #06070b; border-top: 1px solid var(--lux-line); }
.lux-footer::before { content: ''; position: absolute; width: 560px; height: 560px; right: -200px; top: -300px; z-index: -1; border-radius: 50%; background: radial-gradient(circle, rgba(224, 178, 90, .14), transparent 65%); }
.lux-footer h4 { color: #fff; font-weight: 500; }
.lux-footer-heading { position: relative; color: #fff; font-weight: 500; font-size: 1rem; margin-bottom: 1.3rem; padding-bottom: .75rem; }
.lux-footer-heading::after { content: ''; position: absolute; left: 0; bottom: 0; width: 34px; height: 1.5px; background: var(--lux-gold); }
.lux-footer-nav { display: grid; gap: .7rem; }
.lux-footer-nav a { color: #a7afbf; text-decoration: none; display: inline-flex; align-items: center; gap: .55rem; transition: color .3s, transform .45s var(--lux-ease); width: fit-content; }
.lux-footer-nav a i { font-size: .7rem; color: var(--lux-gold-2); transition: transform .45s var(--lux-ease); }
.lux-footer-nav a:hover { color: #fff; transform: translateX(4px); }
.lux-footer-contact { display: grid; gap: .9rem; }
.lux-footer-contact a, .lux-footer-contact .row-item { display: flex; align-items: center; gap: .9rem; color: #c9cfda; text-decoration: none; min-width: 0; }
.lux-footer-contact small { display: block; font-size: .7rem; color: #6f7889; letter-spacing: .12em; }
.lux-footer-contact b { display: block; font-weight: 400; font-size: .92rem; overflow-wrap: anywhere; }
.lux-social { display: flex; flex-wrap: wrap; gap: .6rem; }
.lux-social a { text-decoration: none; }
.lux-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem; padding-top: 1.6rem; margin-top: 3rem; border-top: 1px solid rgba(255, 255, 255, .07); font-size: .82rem; color: #6f7889; }
.lux-to-top { position: fixed; right: 18px; bottom: 18px; z-index: 1040; opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .4s, transform .5s var(--lux-ease); border: 0; padding: 0; background: none; }
.lux-to-top.is-show { opacity: 1; transform: none; pointer-events: auto; }
@media (max-width: 767.98px) { .lux-footer-bottom { flex-direction: column; text-align: center; align-items: center; } }

/* ==========================================================================
   ปรับหน้าเดิม (ผลงาน/รายละเอียด/เกี่ยวกับ/บริการ/ติดต่อ) ให้เข้ากับธีม
   ========================================================================== */
body:not(.lux-dark):not(.admin-body) main > section:first-child.bg-dark,
.about-hero, .services-hero, .contact-hero {
    background: radial-gradient(900px 400px at 85% 0%, rgba(224, 178, 90, .18), transparent 60%), linear-gradient(140deg, #06070b, #121726) !important;
}
.portfolio-card, .card.table-card, .stat-card { border-radius: var(--lux-radius) !important; transition: transform .6s var(--lux-ease), box-shadow .6s var(--lux-ease); }
.portfolio-card:hover { transform: translateY(-6px); box-shadow: 0 28px 50px -22px rgba(23, 26, 34, .35) !important; }
.portfolio-card img, .card-img-wrap img { transition: transform 1.2s var(--lux-ease); }
.portfolio-card:hover img { transform: scale(1.06); }
.category-pill { background: linear-gradient(135deg, #1b1f2c, #0b0e16) !important; color: var(--lux-gold-1) !important; border: 1px solid var(--lux-line); }
.section-title, .about-title { letter-spacing: -.01em; }

/* ---------- Admin polish ---------- */
.admin-body { background: #f4f1ea; }
.admin-body .lux-nav { background: rgba(8, 10, 16, .95); }

/* ==========================================================================
   AUTH (LOGIN / REGISTER)
   ========================================================================== */
body.auth-body { background: var(--lux-ink); color: var(--lux-ivory); }
.auth-stage { position: relative; isolation: isolate; overflow: hidden; min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: calc(var(--lux-nav-h) + 24px) 16px 40px; background: radial-gradient(900px 500px at 15% 10%, rgba(224, 178, 90, .16), transparent 60%), radial-gradient(800px 500px at 90% 90%, rgba(80, 100, 170, .18), transparent 60%), var(--lux-ink); }
.auth-stage .lux-three { z-index: -1; }
.auth-orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; z-index: -2; animation: luxFloat 9s ease-in-out infinite; }
.auth-orb.a { width: 320px; height: 320px; left: -80px; top: 18%; background: #b07a24; }
.auth-orb.b { width: 260px; height: 260px; right: -60px; bottom: 8%; background: #2b3f7a; animation-delay: -4s; }

.auth-shell {
    --w: min(1040px, 100%);
    position: relative; width: var(--w); min-height: 720px;
    border-radius: 32px; overflow: hidden;
    background: rgba(11, 14, 22, .9); border: 1px solid var(--lux-line);
    backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%);
    box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .06);
    animation: luxFadeUp 1s var(--lux-ease) both;
}
.auth-forms { position: absolute; inset: 0; }
.auth-pane { position: absolute; top: 0; height: 100%; width: 50%; display: flex; align-items: center; justify-content: center; padding: 2.6rem clamp(1.6rem, 4vw, 3.4rem); transition: transform .9s var(--lux-ease), opacity .6s var(--lux-ease), visibility .9s; }
.auth-pane form { width: 100%; max-width: 400px; max-height: 100%; }
.auth-pane.register .auth-head { margin-bottom: 1.3rem; }
.auth-pane.register .auth-head h2 { margin-top: .6rem; }
.auth-pane.login { left: 0; z-index: 2; }
.auth-pane.register { left: 0; z-index: 1; opacity: 0; visibility: hidden; }
.auth-shell.is-register .auth-pane.login { transform: translateX(100%); opacity: 0; visibility: hidden; }
.auth-shell.is-register .auth-pane.register { transform: translateX(100%); opacity: 1; visibility: visible; z-index: 5; animation: authShow .9s var(--lux-ease); }
@keyframes authShow { 0%, 49.99% { opacity: 0; z-index: 1; } 50%, 100% { opacity: 1; z-index: 5; } }

/* overlay panel ที่เลื่อนสลับ */
.auth-overlay-wrap { position: absolute; top: 0; left: 50%; width: 50%; height: 100%; overflow: hidden; z-index: 20; transition: transform .9s var(--lux-ease); }
.auth-shell.is-register .auth-overlay-wrap { transform: translateX(-100%); }
.auth-overlay { position: relative; left: -100%; width: 200%; height: 100%; color: #fff; transform: translateX(0); transition: transform .9s var(--lux-ease); background: radial-gradient(500px 360px at 30% 20%, rgba(255, 255, 255, .16), transparent 60%), linear-gradient(140deg, #2a1d07 0%, #8a5d16 38%, #d9a646 70%, #f3d38c 100%); }
.auth-shell.is-register .auth-overlay { transform: translateX(50%); }
.auth-overlay::before { content: ''; position: absolute; inset: 0; opacity: .14; background-image: radial-gradient(circle at 1px 1px, #fff 1px, transparent 0); background-size: 22px 22px; }
.auth-overlay-panel { position: absolute; top: 0; width: 50%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 3rem 2.6rem; transition: transform .9s var(--lux-ease); }
.auth-overlay-panel.left { transform: translateX(-20%); }
.auth-overlay-panel.right { right: 0; transform: translateX(0); }
.auth-shell.is-register .auth-overlay-panel.left { transform: translateX(0); }
.auth-shell.is-register .auth-overlay-panel.right { transform: translateX(20%); }
.auth-overlay-panel h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 500; line-height: 1.25; margin: 1.3rem 0 .8rem; color: #1a1206; }
.auth-overlay-panel p { color: rgba(26, 18, 6, .78); max-width: 320px; line-height: 1.8; margin-bottom: 1.8rem; }
.auth-overlay-panel .lux-eyebrow { color: #2a1d07; }
.auth-overlay-panel .btn-ghost { min-height: 50px; padding: .7rem 2rem; border-radius: 999px; border: 1.5px solid rgba(26, 18, 6, .7); color: #1a1206; background: rgba(255, 255, 255, .12); font-weight: 500; transition: all .4s var(--lux-ease); }
.auth-overlay-panel .btn-ghost:hover { background: #1a1206; color: var(--lux-gold-1); transform: translateY(-2px); }
.auth-camera { position: relative; width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; background: rgba(26, 18, 6, .88); box-shadow: 0 24px 50px -16px rgba(26, 18, 6, .7); }
.auth-camera::before, .auth-camera::after { content: ''; position: absolute; border-radius: 50%; border: 1px dashed rgba(248, 227, 174, .55); }
.auth-camera::before { inset: -12px; animation: luxSpin 18s linear infinite; }
.auth-camera::after { inset: -26px; border-style: solid; border-color: rgba(26, 18, 6, .25); }
.auth-camera i { font-size: 2.8rem; background: var(--lux-gold); -webkit-background-clip: text; background-clip: text; color: transparent; animation: luxFloat 4s ease-in-out infinite; }

/* ฟอร์ม */
.auth-head { margin-bottom: 1.8rem; }
.auth-head h1, .auth-head h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 500; margin: .8rem 0 .4rem; color: #fff; }
.auth-head p { color: var(--lux-muted); margin: 0; font-size: .95rem; }
.lux-field { position: relative; margin-bottom: 1.05rem; }
.lux-field input {
    width: 100%; height: 58px; padding: 1.35rem 3rem .45rem 3.1rem;
    border-radius: 16px; border: 1px solid rgba(255, 255, 255, .1); outline: 0;
    background: rgba(255, 255, 255, .04); color: #fff; font-size: 1rem; font-family: inherit; font-weight: 300;
    transition: border-color .35s, background-color .35s, box-shadow .35s;
}
.lux-field input:-webkit-autofill { -webkit-text-fill-color: #fff; -webkit-box-shadow: 0 0 0 100px #141824 inset; caret-color: #fff; }
.lux-field label { position: absolute; left: 3.1rem; top: 50%; transform: translateY(-50%); color: #8a93a6; pointer-events: none; transition: all .35s var(--lux-ease); font-size: .98rem; }
.lux-field input:focus, .lux-field input:not(:placeholder-shown) { border-color: rgba(224, 178, 90, .6); background: rgba(224, 178, 90, .05); }
.lux-field input:focus { box-shadow: 0 0 0 4px rgba(224, 178, 90, .12); }
.lux-field input:focus + label, .lux-field input:not(:placeholder-shown) + label { top: 14px; transform: none; font-size: .72rem; letter-spacing: .06em; color: var(--lux-gold-2); }
.lux-field > .ico { position: absolute; left: 1.15rem; top: 50%; transform: translateY(-50%); font-size: 1.1rem; color: #6f7889; transition: color .35s, transform .45s var(--lux-ease); }
.lux-field input:focus ~ .ico { color: var(--lux-gold-2); transform: translateY(-50%) scale(1.12); }
.lux-field .eye { position: absolute; right: .55rem; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border: 0; border-radius: 12px; background: transparent; color: #8a93a6; transition: color .3s, background-color .3s; }
.lux-field .eye:hover, .lux-field .eye:focus-visible { color: var(--lux-gold-1); background: rgba(255, 255, 255, .06); }
.lux-field .bar { position: absolute; left: 16px; right: 16px; bottom: 0; height: 2px; border-radius: 2px; background: var(--lux-gold); transform: scaleX(0); transition: transform .5s var(--lux-ease); }
.lux-field input:focus ~ .bar { transform: scaleX(1); }
.lux-field.is-invalid input { border-color: rgba(255, 99, 99, .65); animation: authShake .45s; }
@keyframes authShake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

.pw-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: -.3rem 0 .4rem; }
.pw-meter span { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .08); transition: background-color .4s; }
.pw-meter[data-score="1"] span:nth-child(-n+1) { background: #ef4444; }
.pw-meter[data-score="2"] span:nth-child(-n+2) { background: #f59e0b; }
.pw-meter[data-score="3"] span:nth-child(-n+3) { background: #eab308; }
.pw-meter[data-score="4"] span { background: #22c55e; }
.pw-hint { font-size: .78rem; color: #7c8597; margin-bottom: 1rem; min-height: 1.1em; }

.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: .2rem 0 1.4rem; font-size: .88rem; color: var(--lux-muted); }
.auth-row .form-check-input { background-color: transparent; border-color: rgba(255, 255, 255, .25); }
.auth-submit { width: 100%; min-height: 56px; font-size: 1.02rem; }
.auth-submit .spinner { display: none; width: 18px; height: 18px; border: 2px solid rgba(28, 20, 6, .3); border-top-color: #1c1406; border-radius: 50%; animation: luxSpin .7s linear infinite; }
.auth-submit.is-loading .spinner { display: inline-block; }
.auth-submit.is-loading .label-text, .auth-submit.is-loading i { opacity: .6; }
.auth-alert { display: flex; gap: .7rem; align-items: flex-start; padding: .85rem 1rem; margin-bottom: 1.2rem; border-radius: 14px; font-size: .9rem; line-height: 1.6; animation: luxFadeUp .6s var(--lux-ease) both; }
.auth-alert.err { background: rgba(239, 68, 68, .12); border: 1px solid rgba(239, 68, 68, .35); color: #fecaca; }
.auth-alert.ok { background: rgba(34, 197, 94, .12); border: 1px solid rgba(34, 197, 94, .35); color: #bbf7d0; }
.auth-alert.info { background: rgba(224, 178, 90, .1); border: 1px solid rgba(224, 178, 90, .35); color: var(--lux-gold-1); }
.auth-alt { margin-top: 1.4rem; text-align: center; color: var(--lux-muted); font-size: .9rem; }
.auth-alt button, .auth-alt a { background: none; border: 0; padding: 0; color: var(--lux-gold-2); font-weight: 400; text-decoration: none; }
.auth-alt button:hover, .auth-alt a:hover { color: var(--lux-gold-1); text-decoration: underline; }
.auth-mobile-switch { display: none; }
.auth-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.auth-back { display: inline-flex; align-items: center; gap: .45rem; color: var(--lux-muted); text-decoration: none; font-size: .88rem; margin-top: 1.4rem; }
.auth-back:hover { color: var(--lux-gold-1); }

/* Tablet & Mobile: ฟอร์มเดียวสลับด้วยแท็บ */
@media (max-width: 860px) {
    .auth-shell { --w: min(520px, 100%); min-height: 0; border-radius: 26px; }
    .auth-forms { position: relative; inset: auto; }
    .auth-overlay-wrap { display: none; }
    .auth-pane { position: relative; width: 100%; height: auto; padding: 2rem 1.5rem 2.2rem; transform: none !important; }
    .auth-pane.register { display: none; opacity: 1; visibility: visible; }
    .auth-shell.is-register .auth-pane.login { display: none; }
    .auth-shell.is-register .auth-pane.register { display: flex; animation: luxFadeUp .6s var(--lux-ease) both; }
    .auth-mobile-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 1.3rem 1.5rem 0; padding: 5px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px solid var(--lux-line-soft); position: relative; }
    .auth-mobile-switch button { position: relative; z-index: 1; min-height: 46px; border: 0; border-radius: 12px; background: transparent; color: var(--lux-muted); font-weight: 400; transition: color .4s; }
    .auth-mobile-switch .pill { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 7px); border-radius: 12px; background: var(--lux-gold); transition: transform .55s var(--lux-ease); }
    .auth-shell.is-register .auth-mobile-switch .pill { transform: translateX(calc(100% + 4px)); }
    .auth-shell:not(.is-register) .auth-mobile-switch button[data-auth="login"], .auth-shell.is-register .auth-mobile-switch button[data-auth="register"] { color: #1c1406; }
}
@media (max-width: 575.98px) {
    .auth-stage { padding: calc(var(--lux-nav-h) + 12px) 10px 24px; place-items: start center; }
    .auth-pane { padding: 1.6rem 1.15rem 1.9rem; }
    .auth-mobile-switch { margin: 1rem 1.15rem 0; }
    .lux-field input { font-size: 16px; }
}

/* ==========================================================================
   RESPONSIVE (home)
   ========================================================================== */
@media (max-width: 1199.98px) { .lux-float-chip.one { left: -10px; } .lux-float-chip.two { right: -6px; } }
@media (max-width: 991.98px) {
    .lux-hero { text-align: left; padding-bottom: 130px; }
    .lux-hero-card { max-width: 460px; margin: 3rem auto 0; }
    .lux-strip { margin-top: -70px; }
}
@media (max-width: 575.98px) {
    .lux-hero { padding-top: calc(var(--lux-nav-h) + 24px); }
    .lux-hero h1 { font-size: clamp(2.3rem, 11vw, 3.2rem); }
    .lux-hero-actions .btn-lux, .lux-hero-actions .btn-lux-outline { width: 100%; }
    .lux-float-chip { display: none; }
    .lux-scroll-cue { display: none; }
    .lux-strip { padding: .5rem; border-radius: 22px; }
    .lux-step { padding-left: 4rem; }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .js-ready [data-reveal] { opacity: 1; transform: none; }
    .lux-three, .lux-cursor { display: none !important; }
}

/* Three.js canvas fade-in + tilt responsiveness */
.lux-three { opacity: 0; transition: opacity 1.6s var(--lux-ease); }
.lux-three.is-ready { opacity: 1; }
[data-tilt]:hover { transition: transform .18s linear, border-color .4s, box-shadow .6s; }

/* กันหน้าเลื่อนซ้าย-ขวาบนมือถือ (row g-5 มี margin ติดลบ) */
body:not(.admin-body) > main { overflow-x: hidden; overflow-x: clip; }
@media (max-width: 575.98px) { .lux-section .row.g-5 { --bs-gutter-x: 1.5rem; } }

/* ==========================================================================
   HOME v2 — สไลด์ Hero, หมวดหมู่, Bento, จุดเด่น, ปุ่มโทรด่วน
   ========================================================================== */
.lux-hero-bg.is-blur { opacity: .22; filter: blur(28px) saturate(1.2); transform: scale(1.2); }
.lux-aperture { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; animation: luxSpin 14s linear infinite; }
.lux-eyebrow:has(.lux-aperture)::before { display: none; }

.lux-hero-meta { display: flex; flex-wrap: wrap; gap: 0; margin: 2.6rem 0 0; padding: 0; list-style: none; animation: luxFadeUp 1.1s var(--lux-ease) 1s both; }
.lux-hero-meta li { padding: .2rem 1.6rem; border-left: 1px solid var(--lux-line); }
.lux-hero-meta li:first-child { padding-left: 0; border-left: 0; }
.lux-hero-meta b { display: block; font-family: var(--lux-serif); font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1; font-weight: 600; background: var(--lux-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lux-hero-meta span { font-size: .82rem; color: var(--lux-muted); letter-spacing: .05em; }

/* สไลด์ภาพ */
.lux-slides { isolation: isolate; }
.lux-slides::after { z-index: 1; pointer-events: none; }
.lux-slide { position: absolute; inset: 0; display: block; opacity: 0; visibility: hidden; transition: opacity 1.2s var(--lux-ease), visibility 1.2s; color: #fff; text-decoration: none; }
.lux-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.lux-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 6s linear; }
.lux-slide.is-active img { transform: scale(1); }
.lux-slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6, 7, 11, .9), transparent 55%); }
.lux-slide .caption { position: absolute; left: 1.3rem; right: 1.3rem; bottom: 2.6rem; z-index: 2; transform: translateY(14px); opacity: 0; transition: transform .9s var(--lux-ease) .3s, opacity .9s .3s; }
.lux-slide.is-active .caption { transform: none; opacity: 1; }
.lux-slide .caption small { display: block; color: var(--lux-gold-1); letter-spacing: .18em; font-size: .7rem; text-transform: uppercase; }
.lux-slide .caption b { display: block; color: #fff; font-size: 1.12rem; font-weight: 500; margin-top: .25rem; line-height: 1.4; }
.lux-slides .lux-corner, .lux-slides .lux-rec { z-index: 4; }
.lux-dots { position: absolute; left: 1.3rem; right: 1.3rem; bottom: 1.1rem; z-index: 5; display: flex; gap: 6px; }
.lux-dots button { flex: 1; height: 18px; padding: 0; border: 0; background: none; display: flex; align-items: center; cursor: pointer; }
.lux-dots span { display: block; width: 100%; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .25); overflow: hidden; position: relative; }
.lux-dots span::after { content: ''; position: absolute; inset: 0; background: var(--lux-gold); transform: scaleX(0); transform-origin: 0 50%; }
.lux-dots .is-active span::after { animation: luxDot 5s linear forwards; }
.lux-slides:hover .lux-dots .is-active span::after { animation-play-state: paused; }
@keyframes luxDot { to { transform: scaleX(1); } }

/* หมวดหมู่ */
.lux-link { color: var(--lux-gold-2); text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
.lux-link:hover { color: var(--lux-gold-1); }
.lux-link i { transition: transform .4s var(--lux-ease); }
.lux-link:hover i { transform: translateX(4px); }
.lux-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.lux-cat { position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.2rem; border-radius: 20px; border: 1px solid var(--lux-line-soft); background: #0f121b; color: var(--lux-ivory); text-decoration: none; transition: border-color .4s, transform .5s var(--lux-ease); }
.lux-cat .bg { position: absolute; inset: 0; z-index: -1; background-size: cover; background-position: center; opacity: .14; transform: scale(1.1); transition: opacity .6s, transform 1.2s var(--lux-ease); }
.lux-cat::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #0f121b 30%, rgba(15, 18, 27, .4)); }
.lux-cat:hover { color: #fff; border-color: var(--lux-line); transform: translateY(-4px); }
.lux-cat:hover .bg { opacity: .45; transform: scale(1); }
.lux-cat .txt { min-width: 0; flex: 1; }
.lux-cat b { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lux-cat small { color: var(--lux-muted); font-size: .8rem; }
.lux-cat .go { color: var(--lux-gold-2); opacity: .5; transition: transform .45s var(--lux-ease), opacity .3s; }
.lux-cat:hover .go { opacity: 1; transform: translate(3px, -3px); }

/* Bento: ผลงานแรกขนาดใหญ่ */
.lux-work .meta { gap: 1rem; flex-wrap: wrap; }
.lux-work .meta span { display: inline-flex; align-items: center; gap: .4rem; }
@media (min-width: 1200px) {
    .lux-work.is-feature { display: grid; grid-template-columns: 1.35fr 1fr; }
    .lux-work.is-feature .media { aspect-ratio: auto; height: 100%; min-height: 340px; }
    .lux-work.is-feature .body { display: flex; flex-direction: column; justify-content: center; padding: 2.2rem; }
    .lux-work.is-feature h3 { font-size: 1.6rem; }
    .lux-work.is-feature .media::after { background: linear-gradient(90deg, transparent 60%, rgba(15, 18, 27, .9)); }
}
.lux-work.is-feature::before { content: 'Featured'; position: absolute; top: 1rem; right: 1rem; z-index: 3; padding: .3rem .8rem; border-radius: 999px; background: var(--lux-gold); color: #1c1406; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }

/* จุดเด่น */
.lux-feature { height: 100%; text-align: center; padding: 2.2rem 1.5rem; border-radius: var(--lux-radius); border: 1px solid var(--lux-line-soft); background: linear-gradient(180deg, rgba(255, 255, 255, .03), transparent); transition: border-color .4s, transform .5s var(--lux-ease); }
.lux-feature:hover { border-color: var(--lux-line); transform: translateY(-5px); }
.lux-feature h3 { font-size: 1.12rem; font-weight: 500; margin: 1.3rem 0 .5rem; color: #fff; }
.lux-feature p { color: var(--lux-muted); font-size: .93rem; line-height: 1.75; margin: 0; }

/* ปุ่มโทรด่วนมือถือ */
.lux-call-fab { position: fixed; left: 16px; bottom: 18px; z-index: 1040; text-decoration: none; }
.lux-call-fab .lux-icon { --size: 54px; box-shadow: 0 14px 30px -10px rgba(224, 178, 90, .8); }

@media (max-width: 575.98px) {
    .lux-hero-meta li { padding: .2rem 1rem; }
    .lux-cats { grid-template-columns: 1fr 1fr; gap: .7rem; }
    .lux-cat { flex-direction: column; align-items: flex-start; gap: .7rem; padding: 1rem; }
    .lux-cat .go { position: absolute; top: 1rem; right: 1rem; }
    .lux-cat b { white-space: normal; }
}
.home-page .lux-float-chip.one { bottom: 30%; }
.home-page .lux-scroll-cue { bottom: 84px; }
