:root {
  --sky: #9bdcff;
  --sky-soft: #dff4ff;
  --pink: #f6b8cf;
  --pink-deep: #dd7faa;
  --paper: #fffdf9;
  --ink: #594955;
  --muted: #9b8490;
  --line: #eedce3;
  --shadow: rgba(119, 83, 104, .17);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 8%, rgba(255,255,255,.95), transparent 24%),
    linear-gradient(145deg, #d9f3ff, #ffe8f1 72%);
  font-family: Tahoma, "Noto Sans Thai", sans-serif;
}

button, input, textarea { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }

.mobile-page {
  position: relative;
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  margin: auto;
  overflow: hidden;
  background:
    linear-gradient(rgba(255,255,255,.69), rgba(255,250,247,.95)),
    repeating-linear-gradient(0deg, transparent 0 5px, rgba(246,184,207,.08) 5px 6px);
  box-shadow: 0 20px 70px rgba(93,69,85,.22);
}

.cover {
  position: relative;
  height: 235px;
  overflow: hidden;
  background: var(--sky);
}

.cover > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.03);
  filter: saturate(.88) brightness(1.03);
}

.cover > div {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(94,188,238,.05), rgba(255,210,226,.28)),
    linear-gradient(90deg, rgba(255,255,255,.2), transparent 55%);
}

.petal {
  position: absolute;
  color: rgba(255,255,255,.85);
  font-style: normal;
  text-shadow: 0 2px 8px rgba(209,106,154,.35);
}

.petal.one { top: 20px; right: 22px; font-size: 26px; transform: rotate(18deg); }
.petal.two { top: 55px; right: 64px; font-size: 18px; transform: rotate(-16deg); }

.profile-zone {
  position: relative;
  min-height: 134px;
  padding: 16px 18px 14px 137px;
}

.profile-photo {
  position: absolute;
  top: -52px;
  left: 20px;
  width: 105px;
  height: 105px;
  padding: 5px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 9px 25px var(--shadow);
}

.profile-photo img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.profile-photo span {
  position: absolute;
  right: 2px;
  bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding-bottom: 1px;
  border: 3px solid #fffaf7;
  border-radius: 50%;
  color: white;
  background: linear-gradient(145deg, #ec8db5, #c96b9a);
  font: 700 13px/1 Arial, sans-serif;
}

.shop-copy small, .reviews em, .sheet > small, .login-card small,
.admin-heading small, .admin-content > small {
  font: 700 8px Georgia, serif;
  letter-spacing: 1.8px;
}

.shop-copy small, .reviews em, .admin-heading small, .admin-content > small {
  color: var(--pink-deep);
}

.sheet > small { color: #55a9d1; }

.shop-copy h1 {
  margin: 4px 0 9px;
  font: 24px Georgia, serif;
  letter-spacing: .4px;
}

.shop-copy p { display: flex; gap: 5px; margin: 0; }

.shop-copy b {
  padding: 4px 8px;
  border: 1px solid #efd6df;
  border-radius: 18px;
  color: #8b6d7e;
  background: rgba(255,255,255,.7);
  font-size: 9px;
}

.admin-link {
  position: absolute;
  top: -15px;
  right: 18px;
  padding: 7px 12px;
  border: 1px solid #f0cbd9;
  border-radius: 18px;
  color: #a76885;
  background: rgba(255,255,255,.94);
  box-shadow: 0 5px 16px var(--shadow);
  text-decoration: none;
  font-size: 9px;
  font-weight: 700;
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  align-items: center;
  margin: 0 18px 27px;
  padding: 14px 8px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(circle at 8% 10%, #fff 0 2px, transparent 3px),
    linear-gradient(135deg, #fff, #fff3f7);
  box-shadow: 0 7px 18px rgba(147,102,124,.07);
}

.stats div { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.stats i { width: 1px; height: 38px; background: #efd9e2; }
.stats strong { color: #735766; font: 26px Georgia, serif; }
.stats span { color: var(--muted); font-size: 10px; }

.reviews { padding: 0 18px; }
.reviews header { display: flex; align-items: end; justify-content: space-between; }
.reviews header h2, .sheet h2 { margin: 4px 0 14px; font: 24px Georgia, serif; }

.review-list { display: grid; gap: 13px; }

.review-card, .admin-review {
  position: relative;
  padding: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 8px 21px rgba(145,99,121,.09);
}

.review-card::after {
  position: absolute;
  right: -7px;
  bottom: -10px;
  color: rgba(246,184,207,.22);
  content: "✿";
  font-size: 62px;
}

.review-top { position: relative; z-index: 1; display: flex; align-items: center; }

.review-top > span {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border: 1px solid #f2cedb;
  border-radius: 50%;
  color: #bd7092;
  background: #fff1f6;
  font: 16px Georgia, serif;
}

.review-top > div { display: flex; flex-direction: column; padding-left: 10px; font-size: 12px; }
.review-top time, .admin-review time { margin-top: 2px; color: #aa98a1; font-size: 9px; }
.review-top q { margin-left: auto; color: #f2d1dd; font: 44px Georgia, serif; }

.stars, .admin-review > span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  gap: 2px;
  margin-top: 8px;
  color: #eba744;
  font-size: 15px;
}

.review-card p, .admin-review p {
  position: relative;
  z-index: 1;
  margin: 8px 0 0;
  font-size: 11px;
  line-height: 1.75;
}

.review-card > img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: 210px;
  margin-top: 12px;
  object-fit: cover;
  border-radius: 15px;
}

.empty { color: var(--muted); text-align: center; font-size: 11px; }

.floating {
  position: fixed;
  right: max(18px, calc((100vw - 430px) / 2 + 18px));
  bottom: 18px;
  z-index: 10;
  min-width: 165px;
  min-height: 52px;
  border: 2px solid rgba(255,255,255,.92);
  border-radius: 28px;
  color: white;
  background: linear-gradient(135deg, #98ddfb, #66bee9);
  box-shadow: 0 10px 24px rgba(75,167,211,.34);
  font-weight: 700;
}

.mobile-page > footer {
  padding: 26px 18px 82px;
  color: #c29aac;
  text-align: center;
  font: italic 10px Georgia, serif;
}

.modal {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(61,51,58,.5);
  backdrop-filter: blur(3px);
}

.sheet {
  position: relative;
  display: grid;
  gap: 13px;
  width: 100%;
  max-width: 430px;
  max-height: 93vh;
  padding: 28px 22px 24px;
  overflow: auto;
  border-radius: 28px 28px 0 0;
  background:
    radial-gradient(circle at 90% 4%, rgba(152,221,251,.35), transparent 21%),
    linear-gradient(180deg, #fff, #f4fbff);
}

.close {
  position: absolute;
  top: 17px;
  right: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 28px;
}

.sheet label, .login-card label { font-size: 11px; font-weight: 700; }

.sheet input, .sheet textarea, .login-card input {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px;
  border: 1px solid #cce8f5;
  border-radius: 14px;
  outline: none;
  background: white;
}

.sheet input:focus, .sheet textarea:focus, .login-card input:focus {
  border-color: #77c9ef;
  box-shadow: 0 0 0 3px rgba(119,201,239,.16);
}

.upload {
  display: grid;
  place-items: center;
  min-height: 58px;
  padding: 0;
  border: 1px solid #b9def0;
  border-radius: 14px;
  color: #4e9dc3;
  background: rgba(233,248,255,.8);
  text-align: center;
}

.upload input { display: none; }

.submit {
  min-height: 49px;
  border: 2px solid white;
  border-radius: 25px;
  color: white;
  background: linear-gradient(135deg, #98ddfb, #66bee9);
  font-weight: 700;
}

#notice, #login-error { margin: 0; color: #4e9dc3; text-align: center; font-size: 11px; }

.admin-body { min-height: 100vh; display: grid; place-items: center; padding: 20px; }

.login-card, .dashboard {
  width: 100%;
  max-width: 760px;
  padding: 25px;
  border-radius: 24px;
  background: var(--paper);
  box-shadow: 0 14px 45px var(--shadow);
}

.login-card { max-width: 390px; text-align: center; }
.login-card form { display: grid; gap: 13px; text-align: left; }

.lock {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: auto;
  border-radius: 50%;
  color: #4e9dc3;
  background: var(--sky-soft);
  font-size: 28px;
}

.login-card h1, .dashboard h1 { font: 28px Georgia, serif; }
.login-card > a { display: block; margin-top: 15px; color: var(--muted); font-size: 11px; }
.dashboard header { display: flex; justify-content: space-between; }
.dashboard nav { display: flex; gap: 7px; }

.dashboard nav a, .dashboard nav button {
  padding: 9px 12px;
  border: 0;
  border-radius: 18px;
  color: white;
  background: linear-gradient(135deg, #e99abd, #cb739d);
  text-decoration: none;
  font-size: 10px;
}

.admin-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0; }

.admin-stats article {
  display: flex;
  flex-direction: column;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.admin-stats strong { color: #735766; font: 25px Georgia, serif; }
.admin-review { margin-top: 10px; }
.admin-review > div { display: flex; justify-content: space-between; }
.admin-review footer { display: flex; justify-content: flex-end; gap: 7px; }
.admin-review footer button { padding: 7px 13px; border: 1px solid #efcad8; border-radius: 16px; }

@media (max-width: 430px) {
  body { background: var(--paper); }
  .mobile-page { box-shadow: none; }
}
