:root {
  --petrol: #0b3b3c;
  --petrol-deep: #061f20;
  --cream: #f3eddf;
  --paper: #faf7ef;
  --gold: #b79a5d;
  --ink: #173638;
  --muted: #65706c;
  --line: rgba(18, 65, 65, .17);
  --danger: #9a3f35;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", Arial, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); font-size: 14px; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.admin-header { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; min-height: 82px; padding: 1rem clamp(1.25rem, 5vw, 5rem); background: var(--petrol-deep); color: white; box-shadow: 0 4px 24px rgba(0,0,0,.15); }
.admin-brand { display: flex; flex-direction: column; color: white; text-decoration: none; text-align: center; }
.admin-brand span { font-family: var(--serif); font-size: 1.75rem; line-height: .9; letter-spacing: .04em; }
.admin-brand small { margin-top: .35rem; font-size: .52rem; letter-spacing: .35em; }
.header-actions { display: flex; align-items: center; gap: 1.2rem; }
.header-actions a, .link-button { border: 0; background: transparent; color: rgba(255,255,255,.8); font-size: .68rem; letter-spacing: .12em; text-decoration: none; text-transform: uppercase; }

.admin-main { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; padding: clamp(2rem, 5vw, 5rem) 0 6rem; }
.auth-panel, .claim-panel { width: min(100%, 560px); margin: 5vh auto 0; padding: clamp(1.5rem, 4vw, 3rem); background: var(--paper); border: 1px solid rgba(183,154,93,.45); box-shadow: 0 18px 60px rgba(12,48,47,.09); }
.eyebrow { margin: 0 0 .7rem; color: var(--gold); font-size: .68rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
h1, h2 { margin: 0; font-family: var(--serif); font-weight: 500; }
h1 { font-size: clamp(2.5rem, 5vw, 4.2rem); line-height: .95; }
h2 { font-size: clamp(2rem, 3vw, 2.8rem); }
.auth-panel > p:not(.eyebrow), .claim-panel > p:not(.eyebrow), .dashboard-heading p { color: var(--muted); line-height: 1.65; }
form { margin-top: 2rem; }
label { display: grid; gap: .45rem; color: var(--muted); font-size: .67rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
input, textarea { width: 100%; border: 1px solid var(--line); border-radius: 0; background: white; color: var(--ink); padding: .8rem .85rem; outline: none; text-transform: none; letter-spacing: normal; }
textarea { min-height: 96px; resize: vertical; }
input:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(183,154,93,.14); }
.auth-panel label + label, .claim-panel label + label { margin-top: 1rem; }
.auth-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }
.resend-button { margin-top: 1rem; padding: .25rem 0; border: 0; border-bottom: 1px solid var(--gold); background: transparent; color: var(--muted); font-size: .65rem; letter-spacing: .06em; }
.button { min-height: 44px; padding: .8rem 1.35rem; border: 1px solid var(--petrol); font-size: .67rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.button.primary { background: var(--petrol); color: white; }
.button.secondary { background: transparent; color: var(--petrol); }
.button:disabled { cursor: wait; opacity: .55; }

.dashboard-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.dashboard-heading p:last-child { margin-bottom: 0; }
.services-list { display: grid; gap: 1.25rem; }
.service-editor { background: var(--paper); border: 1px solid rgba(183,154,93,.35); box-shadow: 0 12px 36px rgba(12,48,47,.07); }
.service-editor summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 1.5rem; cursor: pointer; list-style: none; }
.service-editor summary::-webkit-details-marker { display: none; }
.service-title span { display: block; font-family: var(--serif); font-size: 1.8rem; }
.service-title small { color: var(--muted); }
.visibility { padding: .35rem .6rem; background: rgba(183,154,93,.15); color: var(--gold); font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; }
.service-editor-form { margin: 0; padding: 0 1.5rem 1.5rem; border-top: 1px solid var(--line); }
.fields-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; padding: 1.5rem 0; }
.fields-grid .full { grid-column: 1 / -1; }
.check { display: flex; align-items: center; gap: .55rem; min-height: 42px; text-transform: none; letter-spacing: normal; }
.check input { width: 17px; height: 17px; margin: 0; accent-color: var(--petrol); }
.prices-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: .5rem 0 1rem; }
.prices-heading h3 { margin: 0; font-family: var(--serif); font-size: 1.5rem; font-weight: 500; }
.text-action { border: 0; border-bottom: 1px solid var(--gold); background: transparent; color: var(--petrol); padding: .3rem 0; font-size: .65rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.prices-list { display: grid; gap: .75rem; }
.price-row { display: grid; grid-template-columns: 1.4fr .8fr 1fr .8fr auto auto auto; align-items: end; gap: .65rem; padding: 1rem; background: #f4efe4; border: 1px solid var(--line); }
.remove-price { align-self: center; border: 0; background: transparent; color: var(--danger); font-size: .65rem; text-decoration: underline; }
.editor-actions { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; }
.delete-service { border: 0; background: transparent; color: var(--danger); font-size: .67rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.status { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 20; max-width: min(420px, calc(100% - 2.4rem)); margin: 0; padding: .9rem 1.1rem; background: var(--petrol-deep); color: white; box-shadow: 0 10px 35px rgba(0,0,0,.2); opacity: 0; pointer-events: none; transform: translateY(8px); transition: .2s; }
.status.visible { opacity: 1; transform: none; }
.status.error { background: var(--danger); }

@media (max-width: 900px) {
  .price-row { grid-template-columns: repeat(2, 1fr); }
  .price-row .wide { grid-column: 1 / -1; }
  .remove-price { justify-self: start; }
}

@media (max-width: 620px) {
  .admin-header { min-height: 70px; }
  .admin-main { width: min(100% - 1rem, 1180px); padding-top: 1rem; }
  .dashboard-heading { align-items: stretch; flex-direction: column; }
  .fields-grid, .price-row { grid-template-columns: 1fr; }
  .fields-grid .full, .price-row .wide { grid-column: 1; }
  .service-editor summary, .service-editor-form { padding-left: 1rem; padding-right: 1rem; }
  .editor-actions { align-items: stretch; flex-direction: column-reverse; }
}
