:root {
  --ink: #11130f;
  --muted: #747568;
  --paper: #f3efe2;
  --cream: #e7dfcc;
  --line: #d4cebe;
  --accent: #435643;
  --accent-dark: #243427;
  --green: #2f4634;
  --night: #0d120f;
  --orbit: #c9c1a8;
  --white: #fff;
  --serif: "Playfair Display", Georgia, serif;
  --hero-sans: "Pretendard", "Noto Sans KR", "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --sans: "DM Sans", "Noto Sans KR", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 0%, rgba(47, 70, 52, 0.16), transparent 32%),
    radial-gradient(circle at 88% 12%, rgba(201, 193, 168, 0.2), transparent 26%),
    linear-gradient(rgba(17, 19, 15, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 19, 15, 0.025) 1px, transparent 1px),
    linear-gradient(180deg, #f6f1e5 0%, var(--paper) 42%, #eee7d4 100%);
  background-size: auto, auto, 52px 52px, 52px 52px, auto;
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  padding: 0 5vw;
  background: rgba(244, 241, 233, 0.86);
  border-bottom: 1px solid rgba(23, 23, 19, 0.12);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(47, 70, 52, 0.06);
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
}

.brand-mark span,
.card-monogram span {
  color: var(--accent);
  font-size: 0.72em;
  font-style: italic;
}

.brand-name {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
}

.main-nav {
  display: flex;
  align-self: stretch;
  gap: 30px;
}

.language-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.language-button {
  min-width: 38px;
  height: 28px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.language-button.active {
  color: #f7f1e4;
  background: var(--green);
}

.nav-link {
  position: relative;
  padding: 0;
  color: var(--muted);
  background: none;
  border: 0;
  font-size: 13px;
}

.nav-link::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--accent);
  content: "";
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.nav-link.active {
  color: var(--ink);
  font-weight: 600;
}

.nav-link.active::after {
  transform: scaleX(1);
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.hero {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  padding: 98px max(7vw, calc((100vw - 1260px) / 2));
  color: #f7f1e4;
  background:
    radial-gradient(circle at 78% 22%, rgba(201, 193, 168, 0.26) 0 2px, transparent 3px),
    radial-gradient(circle at 87% 46%, rgba(232, 225, 211, 0.18) 0 1px, transparent 2px),
    radial-gradient(circle at 58% 12%, rgba(201, 193, 168, 0.22) 0 1px, transparent 2px),
    radial-gradient(circle at 20% 76%, rgba(232, 225, 211, 0.12) 0 1px, transparent 2px),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 74% 34%, rgba(87, 112, 82, 0.62), transparent 30%),
    linear-gradient(112deg, rgba(13, 18, 15, 0.98), rgba(31, 48, 35, 0.95) 54%, rgba(12, 17, 14, 0.98));
  background-size: auto, auto, auto, auto, 42px 42px, 42px 42px, auto, auto;
}

.hero::before,
.hero::after {
  position: absolute;
  border: 1px solid rgba(201, 193, 168, 0.17);
  border-radius: 50%;
  content: "";
}

.hero::before {
  top: -220px;
  right: -20px;
  width: 650px;
  height: 650px;
  box-shadow: inset 0 0 80px rgba(201, 193, 168, 0.05);
}

.hero::after {
  top: -70px;
  right: 130px;
  width: 420px;
  height: 420px;
  transform: rotate(-18deg) scaleX(1.35);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.eyebrow > span {
  width: 28px;
  height: 1px;
  background: currentColor;
}

.hero h1 {
  margin: 0;
  font-family: var(--hero-sans);
  font-size: clamp(41px, 4.8vw, 66px);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.035em;
}

.hero h1 em {
  color: var(--orbit);
  font-style: normal;
  font-weight: 500;
}

.hero > p {
  position: relative;
  z-index: 2;
  margin: 30px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  line-height: 1.8;
}

.hero .eyebrow,
.hero h1 {
  position: relative;
  z-index: 2;
}

.hero-stamp {
  position: absolute;
  top: 93px;
  right: max(10vw, calc((100vw - 1180px) / 2));
  z-index: 2;
  display: grid;
  place-items: center;
  width: 230px;
  height: 230px;
  border: 1px solid rgba(201, 193, 168, 0.36);
  border-radius: 50%;
  background: rgba(13, 18, 15, 0.18);
  box-shadow:
    inset 0 0 32px rgba(201, 193, 168, 0.07),
    0 0 55px rgba(47, 70, 52, 0.25);
  transform: rotate(7deg);
}

.hero-stamp::before {
  position: absolute;
  width: 185px;
  height: 185px;
  border: 1px solid rgba(201, 193, 168, 0.16);
  border-radius: inherit;
  content: "";
}

.hero-stamp span,
.hero-stamp small {
  position: absolute;
  font-size: 9px;
  letter-spacing: 0.28em;
}

.hero-stamp span {
  top: 44px;
}

.hero-stamp small {
  bottom: 44px;
}

.hero-stamp strong {
  font-family: var(--serif);
  font-size: 86px;
  font-style: italic;
  font-weight: 500;
}

.registration-wrap {
  display: grid;
  grid-template-columns: 350px minmax(0, 740px);
  justify-content: center;
  gap: 70px;
  padding: 90px 5vw 120px;
}

.membership-preview {
  position: sticky;
  top: 118px;
  align-self: start;
  aspect-ratio: 0.64;
  overflow: hidden;
  padding: 32px;
  color: #f1eadb;
  background:
    radial-gradient(circle at 82% 70%, rgba(232, 225, 211, 0.18) 0 1px, transparent 2px),
    radial-gradient(circle at 72% 18%, rgba(201, 193, 168, 0.26), transparent 18%),
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(150deg, #0f1712, #2f4634 58%, #11130f);
  background-size: auto, auto, 34px 34px, 34px 34px, auto;
  box-shadow: 0 34px 70px rgba(17, 19, 15, 0.2), 0 0 0 1px rgba(201, 193, 168, 0.18);
}

.membership-preview::before {
  position: absolute;
  top: -80px;
  left: -100px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(201, 193, 168, 0.18);
  border-radius: 50%;
  content: "";
}

.card-kicker {
  margin: 0;
  font-size: 9px;
  letter-spacing: 0.28em;
}

.card-orbit {
  position: absolute;
  top: 95px;
  left: -75px;
  width: 500px;
  height: 270px;
  border: 1px solid rgba(201, 193, 168, 0.28);
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(201, 193, 168, 0.08);
  transform: rotate(-30deg);
}

.card-monogram {
  position: absolute;
  top: 38%;
  left: 50%;
  font-family: var(--serif);
  font-size: 55px;
  font-weight: 600;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

.card-monogram span {
  color: var(--orbit);
}

.card-footer {
  position: absolute;
  right: 32px;
  bottom: 30px;
  left: 32px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  padding-top: 18px;
}

.card-footer div:last-child {
  text-align: right;
}

.card-footer small {
  display: block;
  margin-bottom: 7px;
  opacity: 0.65;
  font-size: 7px;
  letter-spacing: 0.2em;
}

.card-footer strong {
  font-size: 9px;
  letter-spacing: 0.08em;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 45px;
}

.section-heading > span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 16px;
}

.section-heading p {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.2em;
}

.section-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 30px;
  letter-spacing: -0.02em;
}

.form-panel {
  position: relative;
}

.form-panel::before {
  position: absolute;
  top: -28px;
  right: -24px;
  width: 170px;
  height: 170px;
  border: 1px solid rgba(47, 70, 52, 0.12);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

fieldset {
  position: relative;
  margin: 0 0 45px;
  padding: 0;
  border: 0;
}

fieldset::after {
  display: block;
  width: 72px;
  height: 1px;
  margin-top: 34px;
  background: linear-gradient(90deg, var(--green), transparent);
  content: "";
}

fieldset:last-of-type::after {
  display: none;
}

legend {
  width: 100%;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.field-grid {
  display: grid;
  gap: 22px 18px;
}

.two-col {
  grid-template-columns: repeat(2, 1fr);
}

.full {
  grid-column: 1 / -1;
}

.field > span,
.as-choice > span {
  display: block;
  margin-bottom: 9px;
  font-size: 12px;
  font-weight: 500;
}

.field b {
  color: var(--accent);
}

.field i {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 400;
}

.field input,
.field select,
.field textarea,
.filters select,
.search-box {
  width: 100%;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.field input,
.field select {
  height: 50px;
  padding: 0 15px;
}

.field textarea {
  padding: 14px 15px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.search-box:focus-within {
  background: var(--white);
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(47, 70, 52, 0.08);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #aaa69c;
}

.field select:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.field > small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 10px;
}

.material-note {
  padding: 15px 17px;
  color: var(--green);
  background: rgba(49, 66, 55, 0.08);
  border-left: 2px solid var(--green);
  font-size: 11px;
  line-height: 1.7;
}

.referral-box {
  padding: 18px;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid var(--line);
}

.referral-box > p {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
}

.referral-box > p i {
  display: inline-flex;
  align-items: center;
  min-height: 17px;
  padding: 0 6px;
  color: var(--muted);
  background: rgba(23, 23, 19, 0.06);
  border-radius: 999px;
  font-size: 9px;
  font-style: normal;
  font-weight: 400;
  line-height: 1;
}

.referral-box > small {
  display: block;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.material-note strong {
  font-weight: 600;
}

.as-choice {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 20px;
}

.as-choice > span {
  margin: 0 auto 0 0;
}

.as-choice label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
}

input[type="radio"],
input[type="checkbox"] {
  accent-color: var(--accent);
}

.consent {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 4px 0 24px;
  color: var(--muted);
  font-size: 11px;
}

.consent b {
  color: var(--ink);
  font-weight: 500;
}

.consent button {
  margin-left: auto;
  padding: 2px 0;
  color: var(--muted);
  background: none;
  border: 0;
  border-bottom: 1px solid currentColor;
  font-size: 10px;
}

.primary-button,
.outline-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  transition: background 0.2s, transform 0.2s;
}

.primary-button {
  width: 100%;
  min-height: 58px;
  color: var(--white);
  background: var(--accent);
  font-size: 13px;
  font-weight: 600;
}

.primary-button:hover {
  background: var(--accent-dark);
}

.primary-button:active,
.outline-button:active {
  transform: translateY(1px);
}

.primary-button svg,
.outline-button svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.admin-view {
  min-height: calc(100vh - 78px);
  padding: 75px max(4vw, calc((100vw - 1420px) / 2)) 100px;
  background:
    radial-gradient(circle at 88% 10%, rgba(47, 70, 52, 0.12), transparent 28%),
    radial-gradient(circle at 8% 78%, rgba(201, 193, 168, 0.18), transparent 26%);
}

.admin-login {
  width: min(100%, 430px);
  margin: 35px auto 0;
  padding: 52px 48px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.5)),
    linear-gradient(135deg, rgba(47, 70, 52, 0.08), transparent);
  border: 1px solid var(--line);
  box-shadow: 0 28px 70px rgba(17, 19, 15, 0.12);
  text-align: center;
}

.admin-login-mark {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 25px;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 21px;
}

.admin-login-mark span {
  font-size: 0.7em;
  font-style: italic;
}

.admin-login .eyebrow {
  justify-content: center;
  color: var(--accent);
}

.admin-login h1 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 35px;
}

.admin-login > p:not(.eyebrow) {
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 11px;
}

.admin-login .field {
  display: block;
  text-align: left;
}

.admin-login .primary-button {
  margin-top: 20px;
}

.admin-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.admin-actions .text-button {
  margin: 0;
}

.service-view {
  min-height: calc(100vh - 78px);
  padding-bottom: 110px;
}

.service-hero {
  position: relative;
  overflow: hidden;
  padding: 82px max(7vw, calc((100vw - 1120px) / 2));
  color: #f6f0e5;
  background:
    radial-gradient(circle at 82% 22%, rgba(201, 193, 168, 0.22) 0 2px, transparent 3px),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 84% 20%, rgba(201, 193, 168, 0.2), transparent 30%),
    linear-gradient(112deg, #0d120f, #2f4634 68%, #11130f);
  background-size: auto, 42px 42px, 42px 42px, auto, auto;
}

.service-hero::after {
  position: absolute;
  top: -145px;
  right: -55px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(201, 193, 168, 0.18);
  border-radius: 50%;
  content: "";
}

.service-hero .eyebrow {
  color: var(--orbit);
}

.service-hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(42px, 5vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.service-hero h1 em {
  color: var(--orbit);
  font-weight: 500;
}

.service-hero > p:last-child {
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
}

.service-shell {
  width: min(calc(100% - 36px), 860px);
  margin: 72px auto 0;
}

.lookup-panel,
.purchase-result {
  padding: 50px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.48)),
    radial-gradient(circle at 100% 0%, rgba(47, 70, 52, 0.1), transparent 30%);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(17, 19, 15, 0.08);
}

.purchase-result {
  margin-top: 30px;
}

.lookup-panel .primary-button {
  margin-top: 24px;
}

.recovery-panel {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.recovery-toggle {
  margin-top: 0;
}

.recovery-panel form {
  margin-top: 20px;
}

.recovery-panel form > p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.recovery-panel .outline-button {
  margin-top: 18px;
}

.recovery-results {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.recovery-card {
  display: grid;
  gap: 7px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid var(--line);
}

.recovery-card strong {
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.03em;
}

.recovery-card span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.recovery-card button {
  justify-self: start;
  margin-top: 4px;
  padding: 0 0 2px;
  color: var(--green);
  background: none;
  border: 0;
  border-bottom: 1px solid currentColor;
  font-size: 10px;
  font-weight: 600;
}

.form-error {
  margin: 15px 0 0;
  color: var(--accent);
  font-size: 11px;
}

.serial-card {
  position: relative;
  overflow: hidden;
  padding: 30px;
  color: #f3ecdf;
  background:
    radial-gradient(circle at 88% 12%, rgba(201, 193, 168, 0.24), transparent 26%),
    linear-gradient(135deg, #0d120f, var(--green));
}

.serial-card::after {
  position: absolute;
  top: -75px;
  right: -30px;
  width: 230px;
  height: 230px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  content: "";
}

.serial-card small,
.serial-card span,
.serial-card strong {
  position: relative;
  z-index: 1;
  display: block;
}

.serial-card small {
  margin-bottom: 10px;
  opacity: 0.62;
  font-size: 8px;
  letter-spacing: 0.2em;
}

.serial-card strong {
  margin-bottom: 19px;
  font-family: var(--serif);
  font-size: clamp(22px, 4vw, 31px);
  letter-spacing: 0.04em;
}

.serial-card span {
  font-size: 8px;
  letter-spacing: 0.18em;
}

.purchase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 22px 0 50px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.credit-card {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 46px;
  overflow: hidden;
  padding: 26px 28px;
  color: #f6efe4;
  background:
    radial-gradient(circle at 86% 18%, rgba(201, 193, 168, 0.22), transparent 24%),
    linear-gradient(135deg, var(--green), #11130f);
  border: 0;
  text-align: left;
}

.credit-card::after {
  position: absolute;
  top: -65px;
  right: -35px;
  width: 200px;
  height: 200px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  content: "";
}

.credit-card span,
.credit-card strong,
.credit-card small {
  position: relative;
  z-index: 1;
  display: block;
}

.credit-card span {
  margin-bottom: 8px;
  opacity: 0.65;
  font-size: 8px;
  letter-spacing: 0.2em;
}

.credit-card strong {
  margin-bottom: 10px;
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 600;
}

.credit-card small {
  width: max-content;
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  font-size: 10px;
}

.purchase-item {
  min-height: 85px;
  padding: 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.purchase-item span,
.purchase-item strong {
  display: block;
}

.purchase-item span {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 9px;
}

.purchase-item strong {
  font-size: 11px;
  line-height: 1.5;
}

.upload-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 20px;
}

.registration-proof {
  grid-template-columns: 1fr;
  margin-top: 4px;
}

.upload-box {
  position: relative;
  min-height: 170px;
  padding: 25px 20px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px dashed #aaa69c;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
}

.upload-box:hover,
.upload-box.has-file {
  background: white;
  border-color: var(--accent);
}

.upload-box input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.upload-box strong,
.upload-box span,
.upload-box small {
  display: block;
}

.upload-box strong {
  margin: 19px 0 8px;
  font-family: var(--serif);
  font-size: 18px;
}

.upload-box span {
  color: var(--muted);
  font-size: 10px;
}

.upload-box span b {
  color: var(--accent);
}

.upload-box small {
  margin-top: 16px;
  color: var(--accent);
  font-size: 10px;
  text-decoration: underline;
}

.upload-box::before {
  display: block;
  color: var(--accent);
  content: "+";
  font-family: var(--serif);
  font-size: 27px;
  line-height: 1;
}

.upload-help {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 9px;
}

.text-button {
  margin-top: 18px;
  padding: 4px 0;
  color: var(--ink);
  background: none;
  border: 0;
  border-bottom: 1px solid currentColor;
  font-size: 11px;
}

.admin-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 42px;
}

.admin-heading .eyebrow {
  color: var(--accent);
}

.admin-heading h1 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: clamp(38px, 4vw, 54px);
  letter-spacing: -0.04em;
}

.admin-heading > div > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.outline-button {
  min-height: 46px;
  padding: 0 19px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink);
  font-size: 12px;
  font-weight: 600;
}

.outline-button:hover {
  color: var(--white);
  background: var(--ink);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(255, 255, 255, 0.32);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 45px rgba(17, 19, 15, 0.06);
}

.stat-card {
  padding: 25px 28px;
  border-right: 1px solid var(--line);
}

.stat-card:last-child {
  border-right: 0;
}

.stat-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
}

.stat-card strong {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 600;
}

.admin-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 30px 0 16px;
}

.search-box {
  display: flex;
  align-items: center;
  max-width: 380px;
  height: 44px;
  padding: 0 14px;
}

.search-box svg {
  width: 17px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.6;
}

.search-box input {
  width: 100%;
  padding-left: 10px;
  background: none;
  border: 0;
  outline: 0;
  font-size: 12px;
}

.filters {
  display: flex;
  gap: 8px;
}

.filters select {
  width: auto;
  min-width: 145px;
  height: 44px;
  padding: 0 35px 0 12px;
  font-size: 11px;
}

.table-shell {
  overflow-x: auto;
  background:
    linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.32)),
    linear-gradient(90deg, rgba(47, 70, 52, 0.04), transparent);
  border-top: 1px solid var(--ink);
  box-shadow: 0 18px 45px rgba(17, 19, 15, 0.06);
}

table {
  width: 100%;
  min-width: 1180px;
  border-collapse: collapse;
  text-align: left;
}

th {
  padding: 15px 14px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

td {
  padding: 18px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  vertical-align: middle;
}

.reg-code {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.link-button {
  padding: 0;
  color: inherit;
  background: none;
  border: 0;
  border-bottom: 1px solid transparent;
  text-align: left;
}

.link-button:hover {
  border-bottom-color: currentColor;
}

.customer-name,
.product-name {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 600;
}

.sub-text {
  color: var(--muted);
  font-size: 10px;
}

.status-select {
  height: 34px;
  padding: 0 25px 0 9px;
  background: transparent;
  border: 1px solid var(--line);
  font-size: 10px;
}

.status-select + .sub-text {
  display: block;
  margin-top: 6px;
}

.as-detail-button {
  display: inline-flex;
  align-items: center;
  margin-top: 7px;
  margin-right: 8px;
  padding: 0 0 2px;
  color: var(--accent);
  background: none;
  border: 0;
  border-bottom: 1px solid currentColor;
  font-size: 10px;
}

.credit-target {
  margin: 0 0 22px;
  padding: 13px 15px;
  color: var(--green);
  background: rgba(49, 66, 55, 0.08);
  font-size: 11px;
}

#creditIssueForm {
  display: grid;
  gap: 18px;
}

.review-link,
.delete-button {
  color: var(--ink);
  background: none;
  border: 0;
  font-size: 10px;
}

.review-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding-bottom: 2px;
  border-bottom: 1px solid currentColor;
  text-decoration: none;
}

.no-review {
  color: #aaa69c;
}

.delete-button {
  color: #9b9991;
  font-size: 17px;
}

.delete-button:hover {
  color: var(--accent);
}

.empty-state {
  padding: 90px 20px;
  text-align: center;
}

.empty-state span {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 25px;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 50%;
  font-family: var(--serif);
}

.empty-state h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 22px;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.success-view {
  min-height: calc(100vh - 78px);
  padding: 70px 20px 100px;
  background:
    radial-gradient(circle at 50% 25%, rgba(255, 255, 255, 0.9), transparent 40%),
    radial-gradient(circle at 76% 12%, rgba(47, 70, 52, 0.13), transparent 30%),
    linear-gradient(rgba(17, 19, 15, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 19, 15, 0.025) 1px, transparent 1px),
    var(--paper);
  background-size: auto, auto, 52px 52px, 52px 52px, auto;
}

.success-card {
  width: min(100%, 690px);
  margin: 0 auto;
  padding: 62px 70px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.64), rgba(255, 255, 255, 0.52)),
    radial-gradient(circle at 100% 0%, rgba(47, 70, 52, 0.1), transparent 30%);
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(17, 19, 15, 0.11);
  text-align: center;
}

.success-emblem {
  position: relative;
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  margin: 0 auto 30px;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 18px;
}

.success-emblem svg {
  position: absolute;
  right: -3px;
  bottom: 1px;
  width: 28px;
  padding: 6px;
  color: white;
  background: var(--accent);
  border-radius: 50%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.success-card .eyebrow {
  justify-content: center;
  color: var(--accent);
}

.success-card h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: 38px;
}

.success-copy {
  margin: 18px 0 30px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.registration-number {
  padding: 27px;
  color: #f4eee4;
  background:
    radial-gradient(circle at 88% 16%, rgba(201, 193, 168, 0.24), transparent 24%),
    linear-gradient(135deg, var(--green), #11130f);
}

.registration-number small {
  display: block;
  margin-bottom: 10px;
  opacity: 0.6;
  font-size: 8px;
  letter-spacing: 0.2em;
}

.registration-number strong {
  display: block;
  margin-bottom: 14px;
  font-family: var(--serif);
  font-size: clamp(21px, 4vw, 29px);
  letter-spacing: 0.05em;
}

.registration-number button {
  padding: 0 0 3px;
  color: inherit;
  background: none;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  font-size: 10px;
}

.success-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 28px 0 22px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.success-info div {
  padding: 18px 10px;
  border-right: 1px solid var(--line);
}

.success-info div:last-child {
  border-right: 0;
}

.success-info span,
.success-info strong {
  display: block;
}

.success-info span {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 9px;
}

.success-info strong {
  font-size: 11px;
}

.success-note {
  margin: 0 0 25px;
  padding: 16px;
  color: var(--accent-dark);
  background: rgba(47, 70, 52, 0.1);
  border: 1px solid rgba(47, 70, 52, 0.24);
  font-size: 11px;
  line-height: 1.7;
}

.success-note strong {
  display: block;
  margin-bottom: 3px;
}

dialog {
  width: min(calc(100% - 40px), 490px);
  padding: 42px;
  background:
    radial-gradient(circle at 100% 0%, rgba(47, 70, 52, 0.12), transparent 26%),
    var(--paper);
  border: 1px solid var(--ink);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.25);
}

dialog::backdrop {
  background: rgba(18, 18, 15, 0.55);
  backdrop-filter: blur(4px);
}

dialog .eyebrow {
  color: var(--accent);
}

dialog h2 {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-size: 28px;
}

dialog > p:last-of-type {
  margin: 0 0 25px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.service-detail-dialog {
  width: min(calc(100% - 30px), 850px);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}

.admin-customer-dialog {
  width: min(calc(100% - 30px), 820px);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}

.customer-detail-dialog {
  width: min(calc(100% - 30px), 900px);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}

.admin-customer-dialog form {
  display: grid;
  gap: 24px;
}

.customer-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 25px 0 30px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.credit-history {
  display: grid;
  gap: 8px;
}

.credit-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid var(--line);
}

.credit-history-item strong {
  color: var(--green);
  font-family: var(--serif);
  font-size: 18px;
}

.credit-history-item span {
  color: var(--muted);
  font-size: 10px;
  text-align: right;
}

.as-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 25px 0 32px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.as-meta-item {
  min-height: 75px;
  padding: 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.as-meta-item span,
.as-meta-item strong {
  display: block;
}

.as-meta-item span {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 9px;
}

.as-meta-item strong {
  font-size: 11px;
  line-height: 1.5;
}

.as-section {
  margin-bottom: 30px;
}

.as-section h3 {
  margin: 0 0 12px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--ink);
  font-size: 12px;
}

.as-inquiry-copy {
  min-height: 70px;
  margin: 0;
  padding: 16px;
  background: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  line-height: 1.8;
  white-space: pre-wrap;
}

.as-photo-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.as-photo-item {
  margin: 0;
  background: white;
  border: 1px solid var(--line);
}

.as-photo-item img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.as-photo-item figcaption {
  overflow: hidden;
  padding: 9px;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.as-photo-empty {
  grid-column: 1 / -1;
  padding: 25px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.4);
  font-size: 11px;
  text-align: center;
}

.service-detail-dialog #asManagementForm {
  display: grid;
  gap: 18px;
  padding-top: 26px;
  border-top: 1px solid var(--ink);
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: 0;
  font-size: 25px;
}

.toast {
  position: fixed;
  z-index: 100;
  right: 25px;
  bottom: 25px;
  padding: 13px 18px;
  color: white;
  background: var(--ink);
  font-size: 11px;
  opacity: 0;
  transform: translateY(12px);
  transition: 0.25s;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.hidden {
  display: none !important;
}

@media (max-width: 920px) {
  .hero-stamp {
    right: -65px;
    opacity: 0.55;
  }

  .registration-wrap {
    grid-template-columns: minmax(0, 700px);
  }

  .membership-preview {
    position: relative;
    top: 0;
    width: min(100%, 410px);
    aspect-ratio: 1.6;
    margin: 0 auto;
  }

  .card-monogram {
    top: 45%;
  }

  .card-footer {
    bottom: 22px;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-card:nth-child(2) {
    border-right: 0;
  }

  .stat-card:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 640px) {
  .site-header {
    height: 64px;
    padding: 0 18px;
  }

  .brand {
    gap: 9px;
    max-width: 145px;
  }

  .brand-mark {
    width: 35px;
    height: 35px;
    font-size: 14px;
  }

  .brand-name {
    font-size: 10px;
  }

  .main-nav {
    gap: 11px;
  }

  .nav-link {
    font-size: 11px;
  }

  .language-switch {
    padding: 3px;
  }

  .language-button {
    min-width: 31px;
    height: 24px;
    font-size: 9px;
  }

  .hero {
    min-height: 390px;
    padding: 72px 24px;
  }

  .hero h1 {
    font-size: 37px;
    letter-spacing: -0.03em;
  }

  .hero-stamp {
    top: 185px;
    right: -52px;
    width: 170px;
    height: 170px;
  }

  .hero-stamp::before {
    width: 135px;
    height: 135px;
  }

  .hero-stamp strong {
    font-size: 58px;
  }

  .hero-stamp span {
    top: 32px;
  }

  .hero-stamp small {
    bottom: 32px;
  }

  .desktop-only {
    display: none;
  }

  .registration-wrap {
    gap: 55px;
    padding: 55px 18px 80px;
  }

  .membership-preview {
    padding: 24px;
  }

  .card-orbit {
    top: 30px;
    left: -50px;
    width: 410px;
    height: 190px;
  }

  .card-monogram {
    font-size: 38px;
  }

  .card-footer {
    right: 24px;
    bottom: 18px;
    left: 24px;
    padding-top: 11px;
  }

  .section-heading {
    margin-bottom: 36px;
  }

  .section-heading h2 {
    font-size: 27px;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .full {
    grid-column: auto;
  }

  .as-choice {
    flex-wrap: wrap;
  }

  .as-choice > span {
    flex-basis: 100%;
  }

  .consent {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .consent button {
    margin-left: 24px;
  }

  .admin-view {
    padding: 50px 18px 80px;
  }

  .admin-login {
    padding: 42px 24px;
  }

  .admin-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .as-meta {
    grid-template-columns: repeat(2, 1fr);
  }

  .customer-detail-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .credit-history-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .credit-history-item span {
    text-align: left;
  }

  .as-photo-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-hero {
    padding: 62px 24px;
  }

  .service-shell {
    margin-top: 40px;
  }

  .lookup-panel,
  .purchase-result {
    padding: 35px 20px;
  }

  .purchase-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .upload-grid {
    grid-template-columns: 1fr;
  }

  .admin-heading {
    align-items: stretch;
    flex-direction: column;
    gap: 25px;
  }

  .outline-button {
    align-self: flex-start;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-card {
    padding: 19px 16px;
  }

  .stat-card strong {
    font-size: 28px;
  }

  .admin-toolbar {
    flex-direction: column;
  }

  .search-box {
    max-width: none;
  }

  .filters select {
    min-width: 0;
    width: 50%;
  }

  .success-view {
    padding: 30px 14px 70px;
  }

  .success-card {
    padding: 45px 20px;
  }

  .success-card h1 {
    font-size: 30px;
  }

  .success-info {
    grid-template-columns: 1fr;
  }

  .success-info div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .success-info div:last-child {
    border-bottom: 0;
  }
}
