* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: #3d3428;
  background: #efe7d8;
  min-height: 100vh;
}
/* Warm sunlit stone / travertine backdrop with a soft arch and palm shadows,
   using the reference photo under a pale limestone veil for readability */
.stone-bg {
    position: fixed; inset: 0; z-index: -1;
    background:
      linear-gradient(rgba(247, 241, 228, .68), rgba(247, 241, 228, .78)),
          url("/bg.jpg") center center / cover no-repeat,
          #ece2cd;
}
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 20px; max-width: 860px; margin: 0 auto;
}
.brand { letter-spacing: .28em; font-weight: 600; font-size: 15px; color: #57482f; }
.brand-ko { letter-spacing: .05em; font-weight: 400; color: #8a7a5c; margin-left: 8px; }
.top-actions { display: flex; gap: 8px; align-items: center; }
select, input, textarea {
  font: inherit; color: inherit; background: #fffdf8;
  border: 1px solid #cfc0a2; border-radius: 10px; padding: 9px 11px; width: 100%;
}
.top-actions select { width: auto; }
main { max-width: 860px; margin: 0 auto; padding: 6px 16px 30px; }
.card {
  background: rgba(255, 253, 247, .97);
  border: 1px solid #ddd0b6; border-radius: 18px;
  padding: 22px 24px; margin: 14px 0;
}
.hero { text-align: center; padding: 40px 28px; }
.hero h1 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; font-size: 32px; margin: 0 0 8px; color: #4a3d27; }
.hero-sub { font-family: Georgia, serif; font-style: italic; color: #7d6c4d; margin: 0 0 12px; }
h1 { font-size: 24px; }
h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; color: #4a3d27; margin-top: 0; }
h3 { color: #57482f; }
label { display: block; margin: 10px 0; font-size: 14px; color: #6b5b3e; }
button, .btn {
  font: inherit; cursor: pointer; border-radius: 999px; border: 1px solid #b7a67f;
  background: #f7f1e2; color: #57482f; padding: 10px 20px; text-decoration: none; display: inline-block;
}
button.primary, .btn.primary { background: #6d6248; border-color: #6d6248; color: #fdfaf2; }
button.ghost { background: transparent; border-color: transparent; color: #7d6c4d; }
button:hover, .btn:hover { filter: brightness(1.05); }
.hidden { display: none !important; }
.error { color: #a33f2a; min-height: 1em; }
.ok { color: #5c7038; }
.fineprint { font-size: 13px; color: #8a7a5c; }
.login-card { max-width: 460px; margin-left: auto; margin-right: auto; }
.song-row { display: flex; justify-content: center; padding-top: 6px; }
.song-btn {
  width: 54px; height: 54px; border-radius: 50%; font-size: 20px;
  background: rgba(255, 253, 247, .95); color: #6d6248; border: 1px solid #cfc0a2;
  display: flex; align-items: center; justify-content: center; padding: 0;
}
.badge { display: inline-block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #7d6c4d; border: 1px solid #cfc0a2; border-radius: 999px; padding: 4px 12px; margin-bottom: 8px; }
.membership h2 { font-size: 34px; margin: 4px 0; }
.visit { border-top: 1px solid #e7dcc4; padding: 14px 0; }
.visit:first-of-type { border-top: none; }
.visit-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.visit-name { font-weight: 600; color: #4a3d27; }
.visit-date { color: #8a7a5c; font-size: 14px; }
.aftercare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 8px; }
@media (max-width: 640px) { .aftercare { grid-template-columns: 1fr; } }
.aftercare h4 { margin: 4px 0; color: #6d6248; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.aftercare ul, ul.plain { margin: 4px 0; padding-left: 18px; }
.note { font-style: italic; color: #7d6c4d; }
.product { border-top: 1px solid #e7dcc4; padding: 12px 0; }
.product:first-of-type { border-top: none; }
footer { text-align: center; color: #8a7a5c; font-size: 13px; padding: 10px 0 34px; }
.owner-client { border-top: 1px solid #e7dcc4; padding: 10px 0; font-size: 14px; }
.chip { display: inline-block; background: #f1e9d5; border-radius: 999px; padding: 2px 10px; margin: 2px 4px 2px 0; font-size: 12px; color: #6b5b3e; }
textarea { resize: vertical; }
