:root {
  --bg: #fdf1ec;
  --rose: #d98b94;
  --deep: #b9636e;
  --copper: #b5754a;
  --gold: #c9975f;
  --ink: #6b4538;
  --soft: #f6ddd6;
  --white: #fffaf7;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Prompt', 'Montserrat', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  cursor: none;
}

body.admin {
  cursor: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  color: var(--deep);
}

.cursor {
  position: fixed;
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--copper);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.25s, height 0.25s, background 0.25s;
}

.cursor.big {
  width: 70px;
  height: 70px;
  background: rgba(217, 139, 148, 0.18);
}

.dot {
  position: fixed;
  width: 6px;
  height: 6px;
  background: var(--deep);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
}

@media (hover: none) {
  .cursor,
  .dot {
    display: none;
  }

  body {
    cursor: auto;
  }
}

body.admin .cursor,
body.admin .dot {
  display: none;
}

#loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  transition: transform 1s cubic-bezier(0.77, 0, 0.18, 1);
}

#loader.done {
  transform: translateY(-100%);
}

.lens {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 7px solid var(--rose);
  position: relative;
  animation: spin 2.4s linear infinite;
}

.lens::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  border: 1.5px solid var(--copper);
}

.lens::after {
  content: "✦";
  position: absolute;
  top: -24px;
  right: -16px;
  color: var(--gold);
  font-size: 28px;
}

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

#loader p {
  color: var(--deep);
  letter-spacing: 0.5em;
  font-size: 12px;
  font-family: 'Montserrat';
}

.curtain {
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  display: flex;
}

.curtain i {
  flex: 1;
  background: var(--rose);
  transform: translateY(100%);
  transition: transform 0.6s cubic-bezier(0.77, 0, 0.18, 1);
}

.curtain i:nth-child(2) {
  transition-delay: 0.06s;
  background: var(--deep);
}

.curtain i:nth-child(3) {
  transition-delay: 0.12s;
  background: var(--gold);
}

.curtain i:nth-child(4) {
  transition-delay: 0.18s;
  background: var(--deep);
}

.curtain i:nth-child(5) {
  transition-delay: 0.24s;
}

.curtain.in i {
  transform: translateY(0);
}

.curtain.out i {
  transform: translateY(-100%);
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 800;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 5vw;
  transition: 0.4s;
}

nav.s {
  background: rgba(253, 241, 236, 0.88);
  backdrop-filter: blur(12px);
  padding: 14px 5vw;
  box-shadow: 0 1px 0 rgba(181, 117, 74, 0.15);
}

.brand {
  font-family: 'Montserrat';
  font-size: 18px;
  letter-spacing: 0.3em;
  color: var(--deep);
  font-weight: 400;
}

.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 0.7em;
  color: var(--copper);
}

nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
}

nav ul a {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-family: 'Montserrat';
  position: relative;
  padding: 4px 0;
}

nav ul a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 0;
  background: var(--copper);
  transition: 0.3s;
}

nav ul a:hover::after {
  width: 100%;
}

.burger {
  display: none;
  font-size: 26px;
  color: var(--deep);
  cursor: pointer;
}

@media (max-width: 850px) {
  .burger {
    display: block;
  }

  nav ul {
    position: fixed;
    inset: 0 0 0 auto;
    width: 70%;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: 0.5s;
  }

  nav ul.open {
    transform: none;
  }
}

.hero {
  height: 100vh;
  min-height: 680px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  perspective: 1000px;
}

.layer {
  position: absolute;
  pointer-events: none;
  transition: transform 0.15s ease-out;
  will-change: transform;
}

.petal {
  border-radius: 0 100% 0 100%;
  opacity: 0.75;
}

.p1 {
  width: 60px;
  height: 105px;
  top: 18%;
  left: 12%;
  background: linear-gradient(135deg, var(--rose), var(--deep));
}

.p2 {
  width: 40px;
  height: 78px;
  top: 66%;
  left: 8%;
  background: linear-gradient(135deg, #e0b48a, var(--copper));
  rotate: 40deg;
}

.p3 {
  width: 52px;
  height: 92px;
  top: 22%;
  right: 10%;
  background: linear-gradient(135deg, #e0b48a, var(--copper));
}

.p4 {
  width: 58px;
  height: 100px;
  top: 68%;
  right: 13%;
  background: linear-gradient(135deg, var(--rose), var(--deep));
  rotate: -30deg;
}

.ring {
  border: 1px solid var(--copper);
  border-radius: 50%;
  opacity: 0.35;
}

.r1 {
  width: 540px;
  height: 540px;
  top: 50%;
  left: 50%;
  margin: -270px;
}

.r2 {
  width: 400px;
  height: 400px;
  top: 50%;
  left: 50%;
  margin: -200px;
  border-color: var(--rose);
  opacity: 0.6;
}

.hero-c {
  position: relative;
  z-index: 2;
  transform-style: preserve-3d;
}

.hero-c svg {
  width: min(300px, 60vw);
  margin-bottom: 6px;
}

.hero-c h1 {
  font-family: 'Montserrat';
  font-weight: 300;
  font-size: clamp(34px, 8vw, 92px);
  letter-spacing: 0.2em;
  color: var(--deep);
  line-height: 1.1;
}

.hero-c h2 {
  font-family: 'Montserrat';
  font-weight: 300;
  font-size: clamp(18px, 3vw, 34px);
  letter-spacing: 0.6em;
  color: var(--rose);
  margin: 8px 0 18px;
}

.hero-c p {
  font-family: 'Montserrat';
  font-size: 11px;
  letter-spacing: 0.45em;
  color: var(--copper);
}

.btn {
  display: inline-block;
  margin-top: 38px;
  padding: 15px 42px;
  border: 1px solid var(--deep);
  font-family: 'Montserrat';
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--deep);
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: color 0.4s;
  background: none;
  cursor: none;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--deep);
  transform: translateY(100%);
  transition: 0.4s;
  z-index: -1;
}

.btn:hover {
  color: var(--white);
}

.btn:hover::before {
  transform: none;
}

.scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  font-size: 10px;
  letter-spacing: 0.4em;
  color: var(--copper);
  transform: translateX(-50%);
}

.scroll::after {
  content: "";
  display: block;
  width: 1px;
  height: 50px;
  background: var(--copper);
  margin: 10px auto 0;
  animation: drip 2s infinite;
}

@keyframes drip {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }

  50% {
    transform: scaleY(1);
    transform-origin: top;
  }

  51% {
    transform-origin: bottom;
  }

  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

section {
  padding: 130px 6vw;
  position: relative;
}

.title {
  text-align: center;
  margin-bottom: 64px;
}

.title span {
  font-family: 'Montserrat';
  font-size: 11px;
  letter-spacing: 0.5em;
  color: var(--copper);
}

.title h2 {
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: 0.08em;
  margin-top: 8px;
}

.title::after {
  content: "✦";
  display: block;
  color: var(--gold);
  margin-top: 16px;
}

.rv {
  opacity: 0;
  transform: translateY(60px) scale(0.97);
  filter: blur(8px);
  transition: 1.1s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.rv.show {
  opacity: 1;
  transform: none;
  filter: none;
}

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1100px;
  margin: auto;
}

.frame {
  aspect-ratio: 4/5;
  position: relative;
  perspective: 900px;
}

.frame .img {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--soft), var(--rose));
  border-radius: 4px;
  box-shadow: 0 40px 60px -20px rgba(185, 99, 110, 0.4);
  transition: transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: 'Montserrat';
  letter-spacing: 0.3em;
  font-size: 14px;
  overflow: hidden;
}

.frame .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.frame::before {
  content: "";
  position: absolute;
  inset: -18px 18px 18px -18px;
  border: 1px solid var(--copper);
  z-index: -1;
}

.about p {
  line-height: 2;
  margin-bottom: 16px;
}

.stats {
  display: flex;
  gap: 40px;
  margin-top: 28px;
}

.stats b {
  display: block;
  font-family: 'Cormorant Garamond';
  font-size: 46px;
  color: var(--deep);
}

.stats small {
  font-family: 'Montserrat';
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--copper);
}

@media (max-width: 800px) {
  .about {
    grid-template-columns: 1fr;
    gap: 50px;
  }
}

.filters {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 46px;
}

.filters button {
  background: none;
  border: none;
  font-family: 'Montserrat';
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--copper);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  cursor: none;
}

.filters button.on {
  color: var(--deep);
  border-color: var(--deep);
}

.grid {
  columns: 3 280px;
  column-gap: 22px;
  max-width: 1300px;
  margin: auto;
}

.item {
  break-inside: avoid;
  margin-bottom: 22px;
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  transition: transform 0.25s;
  cursor: none;
  background: var(--soft);
}

.item .ph {
  width: 100%;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  color: #fff;
  transition: transform 0.8s;
  min-height: 200px;
}

.item img {
  width: 100%;
  display: block;
  transition: transform 0.8s;
}

.item:hover .ph,
.item:hover img {
  transform: scale(1.07);
}

.item .cap {
  position: absolute;
  left: 20px;
  bottom: 18px;
  z-index: 2;
  font-family: 'Cormorant Garamond';
  font-size: 22px;
  letter-spacing: 0.12em;
  color: #fff;
  opacity: 0;
  transform: translateY(20px);
  transition: 0.5s;
}

.item:hover .cap {
  opacity: 1;
  transform: none;
}

.item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(185, 99, 110, 0.75), transparent 60%);
  opacity: 0;
  transition: 0.5s;
  pointer-events: none;
}

.item:hover::after {
  opacity: 1;
}

.item.hide {
  display: none;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1150px;
  margin: auto;
}

.card {
  background: var(--white);
  border: 1px solid rgba(181, 117, 74, 0.25);
  text-align: left;
  transition: 0.4s;
  overflow: hidden;
}

.card:hover {
  box-shadow: 0 30px 50px -20px rgba(185, 99, 110, 0.35);
  border-color: var(--rose);
}

.card .cv {
  height: 190px;
  background: linear-gradient(135deg, var(--soft), var(--rose));
  background-size: cover;
  background-position: center;
}

.card .bd {
  padding: 26px;
}

.card .dt {
  font-family: 'Montserrat';
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--copper);
}

.card h3 {
  font-size: 26px;
  margin: 8px 0;
  letter-spacing: 0.05em;
}

.card p {
  font-size: 14px;
  line-height: 1.9;
  color: #8a6558;
  white-space: pre-line;
}

.empty {
  text-align: center;
  color: var(--copper);
  font-size: 14px;
  grid-column: 1/-1;
}

.svc .card {
  text-align: center;
  padding: 44px 28px;
}

.svc .card i {
  font-style: normal;
  font-size: 32px;
  color: var(--gold);
}

.svc .card em {
  display: block;
  margin-top: 16px;
  font-style: normal;
  font-family: 'Montserrat';
  color: var(--deep);
  letter-spacing: 0.2em;
  font-size: 12px;
}

.contact {
  background: var(--deep);
  color: var(--white);
  text-align: center;
}

.contact h2 {
  color: var(--white);
  font-size: clamp(34px, 6vw, 70px);
}

.contact .title span {
  color: #f0c9b0;
}

.contact p {
  margin: 20px 0 30px;
  color: #f6ddd6;
}

.contact .btn {
  border-color: #f0c9b0;
  color: #f0c9b0;
}

.contact .btn::before {
  background: #f0c9b0;
}

.contact .btn:hover {
  color: var(--deep);
}

.links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 46px;
  font-family: 'Montserrat';
  font-size: 12px;
  letter-spacing: 0.25em;
  flex-wrap: wrap;
}

.links a:hover {
  color: #f0c9b0;
}

footer {
  background: #9a4f59;
  color: #f6ddd6;
  text-align: center;
  padding: 26px;
  font-size: 11px;
  letter-spacing: 0.3em;
  font-family: 'Montserrat';
}

footer a {
  opacity: 0.5;
}

#lb {
  position: fixed;
  inset: 0;
  background: rgba(107, 69, 56, 0.93);
  z-index: 9500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: 0.5s;
}

#lb.on {
  opacity: 1;
  pointer-events: auto;
}

#lb .box {
  width: min(84vw, 950px);
  height: 74vh;
  transform: scale(0.8) rotateX(20deg);
  transition: 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
  display: flex;
  align-items: flex-end;
  padding: 26px;
  color: #fff;
  font-family: 'Cormorant Garamond';
  font-size: 28px;
  letter-spacing: 0.15em;
  border: 1px solid var(--gold);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: rgba(0, 0, 0, 0.15);
}

#lb.on .box {
  transform: none;
}

#lb .x {
  position: absolute;
  top: 26px;
  right: 38px;
  color: #fff;
  font-size: 40px;
}

.more {
  text-align: center;
  margin-top: 30px;
}

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  background: rgba(255, 250, 247, 0.9);
  color: var(--deep);
  font-family: 'Montserrat';
  font-size: 10px;
  letter-spacing: 0.25em;
  padding: 5px 10px;
}

#vw {
  position: fixed;
  inset: 0;
  background: rgba(253, 241, 236, 0.98);
  z-index: 9400;
  overflow: auto;
  padding: 30px 5vw 60px;
  opacity: 0;
  pointer-events: none;
  transition: 0.5s;
  transform: translateY(30px);
}

#vw.on {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

#vw .vh {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  max-width: 1300px;
  margin: 0 auto 26px;
}

#vw .vh h3 {
  font-size: 34px;
}

#vw .vx {
  position: fixed;
  top: 14px;
  right: 26px;
  font-size: 38px;
  color: var(--deep);
  cursor: pointer;
  z-index: 2;
}

#vw .vh .btn {
  margin-top: 0;
  padding: 10px 24px;
}

.vg {
  columns: 3 240px;
  column-gap: 16px;
  max-width: 1300px;
  margin: auto;
}

.vc {
  break-inside: avoid;
  margin-bottom: 16px;
  position: relative;
  background: var(--soft);
  cursor: pointer;
  overflow: hidden;
  min-height: 120px;
}

.vc img {
  width: 100%;
  display: block;
  transition: transform 0.6s;
}

.vc:hover img {
  transform: scale(1.05);
}

.vc .t {
  position: absolute;
  left: 12px;
  bottom: 10px;
  color: #fff;
  font-family: 'Cormorant Garamond';
  font-size: 20px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.vc .d {
  position: absolute;
  right: 8px;
  top: 8px;
  background: rgba(255, 250, 247, 0.9);
  color: var(--deep);
  border: none;
  padding: 6px 10px;
  font-size: 11px;
  cursor: pointer;
  font-family: 'Montserrat';
}

#lbDl {
  position: absolute;
  bottom: 28px;
  right: 38px;
  color: #fff;
  border: 1px solid #fff;
  padding: 9px 20px;
  font-family: 'Montserrat';
  font-size: 12px;
  letter-spacing: 0.2em;
  background: none;
  cursor: pointer;
}

.visit {
  margin-top: 8px;
  opacity: 0.9;
}

/* ---------- ADMIN ---------- */
#admin { display: none; min-height: 100vh; background: var(--bg); padding: 40px 5vw 100px; font-family: 'Prompt'; }
body.admin #admin { display: block; }
body.admin #site, body.admin nav, body.admin footer { display: none; }

/* Header ของ Admin */
.ad-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 34px; flex-wrap: wrap; gap: 16px; }
.ad-top h1 { font-family: 'Cormorant Garamond', serif; font-size: clamp(26px, 4vw, 36px); color: var(--deep); letter-spacing: .05em; }
.ad-top a,
.ad-top button {
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--deep);
  background: none;
  border: 1px solid var(--rose);
  padding: 10px 22px;
  cursor: pointer;
  font-family: 'Montserrat';
  transition: 0.3s;
  border-radius: 30px;
  text-transform: uppercase;
}
.ad-top a:hover, .ad-top button:hover { background: var(--deep); color: #fff; border-color: var(--deep); }

/* แท็บเมนู */
.tabs { display: flex; gap: 12px; margin-bottom: 36px; flex-wrap: wrap; justify-content: center; }
.tabs button {
  padding: 12px 30px;
  border: 1px solid rgba(181, 117, 74, 0.25);
  background: var(--white);
  color: var(--copper);
  cursor: pointer;
  font-family: 'Montserrat';
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: 30px;
  transition: 0.4s;
}
.tabs button:hover { border-color: var(--rose); color: var(--deep); }
.tabs button.on { background: var(--deep); color: #fff; border-color: var(--deep); box-shadow: 0 10px 20px -10px rgba(185, 99, 110, .6); }

/* ส่วนกล่องเนื้อหา */
.panel { display: none; max-width: 1000px; margin: auto; }
.panel.on { display: block; animation: fadeUp .5s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: none; } }

/* ฟอร์มกรอกข้อมูล */
.form { background: var(--white); border: 1px solid rgba(181, 117, 74, .15); padding: 40px; display: grid; gap: 20px; margin-bottom: 46px; border-radius: 12px; box-shadow: 0 20px 40px -20px rgba(185, 99, 110, .1); }
.form label { font-size: 13px; color: var(--deep); letter-spacing: .05em; display: grid; gap: 10px; font-weight: 400; }
.form input, .form textarea, .form select { padding: 14px 18px; border: 1px solid #e3c4b8; background: #fffaf7; font-family: 'Prompt'; font-size: 14px; color: var(--ink); border-radius: 6px; transition: .3s; }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 4px rgba(217, 139, 148, .15); }
.form textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.form button,
.login button {
  padding: 16px;
  background: var(--deep);
  color: #fff;
  border: none;
  cursor: pointer;
  font-family: 'Montserrat';
  letter-spacing: 0.2em;
  font-size: 12px;
  border-radius: 6px;
  transition: 0.3s;
  margin-top: 10px;
  text-transform: uppercase;
}
.form button:hover, .login button:hover { background: #9a4f59; transform: translateY(-2px); box-shadow: 0 10px 20px -10px rgba(154, 79, 89, .4); }
.form button:disabled { opacity: .5; transform: none; cursor: not-allowed; }

/* รายการข้อมูล (List) */
.list { display: grid; gap: 16px; }
.row { display: flex; gap: 20px; align-items: center; background: var(--white); border: 1px solid rgba(181, 117, 74, .15); padding: 16px; border-radius: 10px; transition: .3s; }
.row:hover { box-shadow: 0 12px 30px -15px rgba(185, 99, 110, .25); border-color: var(--rose); transform: translateY(-2px); }
.row img, .row .th { width: 85px; height: 85px; object-fit: cover; background: linear-gradient(135deg, var(--soft), var(--rose)); flex: none; border-radius: 6px; }
.row div.t { flex: 1; font-size: 16px; color: var(--deep); font-weight: 400; }
.row small { color: var(--copper); display: block; margin-top: 6px; font-size: 12px; letter-spacing: .05em; opacity: .8; }
.row button { background: none; border: 1px solid #e3c4b8; color: var(--copper); padding: 8px 18px; cursor: pointer; font-family: 'Montserrat'; font-size: 11px; letter-spacing: .1em; border-radius: 4px; transition: .3s; }
.row button:hover { border-color: var(--deep); color: var(--deep); background: rgba(253, 241, 236, .5); }
.row button[data-d]:hover { border-color: #d32f2f; color: #d32f2f; background: #ffebee; } /* ปุ่มลบเปลี่ยนเป็นสีแดงตอนชี้ */

/* หน้า Login Admin */
.login {
  max-width: 420px;
  margin: 12vh auto;
  background: var(--white);
  padding: 50px 40px;
  border: 1px solid rgba(181, 117, 74, 0.15);
  display: grid;
  gap: 22px;
  text-align: center;
  border-radius: 12px;
  box-shadow: 0 25px 50px -20px rgba(185, 99, 110, 0.25);
}
.login h1 { font-family: 'Cormorant Garamond'; color: var(--deep); font-size: 38px; margin-bottom: 10px; letter-spacing: .05em; }
.login input { padding: 16px; border: 1px solid #e3c4b8; background: #fffaf7; border-radius: 6px; font-family: 'Prompt'; transition: .3s; text-align: center; }
.login input:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 4px rgba(217, 139, 148, .15); }

.msg { font-size: 13px; color: var(--deep); min-height: 18px; margin-top: 8px; font-weight: 400; }
.warn { background: #fff3cd; color: #7a5b00; padding: 12px 16px; margin-bottom: 20px; font-size: 13px; border-radius: 6px; }

/* ---------- Edit Modal (หน้าต่างแก้ไข) ---------- */
.modal-overlay { position: fixed; inset: 0; background: rgba(107, 69, 56, 0.7); backdrop-filter: blur(5px); z-index: 9999; display: none; align-items: center; justify-content: center; opacity: 0; transition: .4s; padding: 20px; }
.modal-overlay.on { display: flex; opacity: 1; }
.modal-box {
  background: var(--bg);
  border: none;
  width: 100%;
  max-width: 550px;
  padding: 40px;
  max-height: 85vh;
  overflow-y: auto;
  border-radius: 16px;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.3);
  transform: scale(0.95);
  transition: 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.modal-overlay.on .modal-box { transform: scale(1); }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; border-bottom: 1px solid #e3c4b8; padding-bottom: 18px; }
.modal-header h2 { font-family: 'Cormorant Garamond'; font-size: 32px; color: var(--deep); margin: 0; letter-spacing: .05em; }
.close-btn { background: none; border: none; font-size: 36px; cursor: pointer; color: var(--copper); line-height: 1; transition: .3s; }
.close-btn:hover { color: var(--deep); transform: rotate(90deg); }


#vwDrive {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #fff;
  color: #333;
  padding: 12px 24px;
  border-radius: 30px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(181, 117, 74, 0.2);
  z-index: 9500;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
#vwDrive:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(181, 117, 74, 0.35);
}
