/* Same Day Signings — dark glass theme.
   Ported from the approved design artifact: navy mesh background, glass
   cards, emerald primary + gold secondary accents, Inter + Instrument Serif. */

:root {
  --navy: #0A1428;
  --navy-deep: #050B17;
  --navy-mid: #11203A;
  --emerald: #10B981;
  --emerald-bright: #34D399;
  --emerald-soft: #A7F3D0;
  --emerald-dark: #059669;
  --gold: #D4A656;
  --gold-bright: #E8C078;
  --gold-soft: #F4E2B8;
  --cream: #FAF8F3;
  --cream-70: rgba(250, 248, 243, 0.7);
  --cream-60: rgba(250, 248, 243, 0.6);
  --cream-50: rgba(250, 248, 243, 0.5);
  --danger: #f87171;
  --radius: 12px;
  --radius-lg: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--navy-deep);
  color: var(--cream);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* === Background mesh === */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 85% 0%, rgba(16, 185, 129, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 5% 95%, rgba(212, 166, 86, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 50% 50%, rgba(17, 32, 58, 0.6) 0%, transparent 70%),
    linear-gradient(180deg, #050B17 0%, #0A1428 60%, #050B17 100%);
}
.bg-mesh::before {
  content: "";
  position: absolute;
  inset: -50%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.03;
  mix-blend-mode: overlay;
}
.bg-mesh::after {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  top: 30%;
  left: 70%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, transparent 70%);
  filter: blur(60px);
  animation: drift 20s infinite ease-in-out;
}
@keyframes drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-100px, 50px); }
}

main, .site-header, .site-footer, .messages, .dash-nav { position: relative; z-index: 1; }
main { max-width: 880px; margin: 0 auto; padding: 96px 16px 120px; }

/* === Type === */
h1 { font-size: 2.1rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; margin: 0.8em 0 0.4em; }
h2 { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.01em; margin: 1.5em 0 0.5em; }
a { color: var(--emerald-bright); }
code {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 1.05em;
  color: var(--emerald-soft);
}
.muted { color: var(--cream-60); }
.big { font-size: 1.25rem; font-weight: 600; }
.display-serif {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
}
.micro-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--emerald-bright);
  font-weight: 600;
  margin-bottom: 8px;
}

/* === Glass surfaces === */
.glass, .card, .message, .table {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.glass-bright {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.glass-emerald {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(16, 185, 129, 0.04));
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(52, 211, 153, 0.25);
}
.glass-gold {
  background: linear-gradient(135deg, rgba(212, 166, 86, 0.12), rgba(212, 166, 86, 0.04));
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(212, 166, 86, 0.3);
}
.card { border-radius: var(--radius-lg); padding: 20px; margin: 12px 0; }

/* === Header === */
.site-header { padding: 14px 16px 0; }
.site-header .bar {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 18px;
  border-radius: 16px;
}
.brand { color: var(--cream); text-decoration: none; font-weight: 600; font-size: 1.05rem; letter-spacing: -0.03em; line-height: 1.15; }
.brand .display-serif { color: var(--emerald-bright); font-size: 1.1em; }
.brand small { display: block; font-size: 0.62rem; color: var(--cream-50); font-weight: 400; letter-spacing: 0.02em; }
.site-header nav { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.site-header nav a { color: var(--cream-70); text-decoration: none; font-size: 0.92rem; }
.site-header nav a:hover { color: var(--emerald-bright); }
/* The CTA is a nav link too — don't let the muted link color wash it out. */
.site-header nav a.btn-primary { color: #fff; font-weight: 700; }
.site-header nav a.btn-primary:hover { color: #fff; }

.pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--emerald-bright);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--emerald-bright);
  animation: pulse 2s infinite;
  flex: none;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  font-size: 0.95rem;
  font-family: inherit;
}
.btn-primary {
  /* Deeper surface so white text actually reads; glow kept tight — an edge
     highlight + small shadow instead of a halo. */
  background: linear-gradient(160deg, #0ea371, #047857);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: all 0.3s ease;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 4px 14px rgba(4, 120, 87, 0.35);
}
.btn-primary:hover {
  transform: translateY(-1px);
  background: linear-gradient(160deg, #10b981, #059669);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 6px 18px rgba(5, 150, 105, 0.4);
}
.btn-outline {
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: var(--emerald-bright);
  background: transparent;
}
.btn-outline:hover { background: rgba(16, 185, 129, 0.1); }
.btn-danger {
  background: linear-gradient(135deg, #b3261e, #8e1d17);
  color: #fff;
  box-shadow: 0 8px 24px rgba(179, 38, 30, 0.3);
}
.btn-lg { padding: 15px 28px; font-size: 1.05rem; }
.link-btn { background: none; border: 0; padding: 0; color: var(--cream-70); cursor: pointer; font-size: 0.92rem; font-family: inherit; }
.link-btn:hover { color: var(--emerald-bright); }
.link-btn.danger { color: var(--danger); text-decoration: underline; }
.inline-form { display: inline; }

/* === Messages === */
.messages { max-width: 880px; margin: 14px auto 0; padding: 0 16px; }
.message { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 8px; color: var(--emerald-soft); }
.message.error { border-color: rgba(248, 113, 113, 0.35); color: #fecaca; background: linear-gradient(135deg, rgba(248, 113, 113, 0.12), rgba(248, 113, 113, 0.04)); }

/* === Hero === */
.hero { text-align: center; padding: 56px 8px 28px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--cream-70);
  font-weight: 500;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(2.4rem, 7vw, 4rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
}
.hero h1 .display-serif { color: var(--emerald-bright); font-weight: 400; }
.lede { font-size: 1.05rem; color: var(--cream-70); max-width: 620px; margin: 0 auto 28px; line-height: 1.65; }

/* Entrance animation */
.fade-up { opacity: 0; transform: translateY(20px); animation: fadeUp 0.9s ease forwards; }
.fade-up-d1 { animation-delay: 0.15s; }
.fade-up-d2 { animation-delay: 0.3s; }
.fade-up-d3 { animation-delay: 0.45s; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* === Cards grid / services === */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 22px 0; }
.service-card { display: block; text-decoration: none; color: var(--cream); transition: all 0.25s ease; }
.service-card:hover { background: rgba(255, 255, 255, 0.07); transform: translateY(-2px); border-color: rgba(52, 211, 153, 0.3); }
.service-card h3 { margin: 0 0 6px; font-size: 1.1rem; letter-spacing: -0.01em; }
.service-card p { color: var(--cream-60); font-size: 0.92rem; margin: 6px 0; }
.price { font-weight: 700; color: var(--emerald-bright); }
.service-card .btn { margin-top: 10px; font-size: 0.85rem; padding: 8px 16px; }

/* Trust strip */
.trust-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 26px 0; }
.trust-strip .cell { border-radius: var(--radius); padding: 12px 14px; text-align: center; }
.trust-strip .label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--cream-50); }
.trust-strip .value { font-size: 0.95rem; font-weight: 600; color: var(--emerald-bright); margin-top: 2px; }

/* Section headings */
.kicker { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--emerald-bright); font-weight: 600; margin-bottom: 10px; text-align: center; }
.big-h2 { text-align: center; font-size: clamp(1.7rem, 5vw, 2.7rem); margin: 0 0 10px; letter-spacing: -0.02em; }
.big-h2 .display-serif { font-weight: 400; }
.big-h2 .display-serif.gold { color: var(--gold-bright); }
.section-head { max-width: 580px; margin: 0 auto 38px; text-align: center; }
.section-head .muted { font-size: 1rem; }

/* How it works */
.how { margin-top: 110px; scroll-margin-top: 18px; }
.step-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 8px; }
.step-card { border-radius: var(--radius-lg); padding: 28px 26px; }
.step-card p { margin: 0; }
.step-num { font-size: 2.8rem; color: var(--emerald-bright); line-height: 1; margin-bottom: 14px; }
.step-title { font-size: 1.15rem; font-weight: 600; color: var(--cream); margin-bottom: 8px !important; letter-spacing: -0.01em; }
.step-body { font-size: 0.95rem; color: var(--cream-60); line-height: 1.65; }
.how-quip { text-align: center; margin: 30px auto 0; max-width: 560px; }

/* Why — "Every closing problem. Solved." */
.why { margin-top: 110px; scroll-margin-top: 18px; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.why-card { border-radius: var(--radius-lg); padding: 22px; transition: background 0.25s ease; }
.why-card:hover { background: rgba(255, 255, 255, 0.06); }
.why-card p { margin: 0; }
.why-quote { color: var(--cream-50); font-size: 1.05rem; line-height: 1.4; margin-bottom: 14px !important; }
.why-solved { color: var(--emerald-bright); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.18em; margin-bottom: 8px !important; }
.why-title { font-size: 1.15rem; font-weight: 600; color: var(--cream); margin-bottom: 7px !important; letter-spacing: -0.01em; }
.why-body { font-size: 0.9rem; color: var(--cream-60); line-height: 1.6; }

/* About — founder card */
.about { margin-top: 110px; scroll-margin-top: 18px; }
.about-card {
  border-radius: 24px;
  padding: 44px 46px;
  display: flex;
  gap: 38px;
  align-items: flex-start;
}
.about-photo { flex: none; }
.about-photo img {
  width: 116px;
  height: 116px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  box-shadow: 0 0 0 4px var(--navy-deep), 0 0 0 6px rgba(52, 211, 153, 0.3);
}
.about-text .micro-label { margin-bottom: 8px; }
.about-name { font-size: clamp(2rem, 5vw, 2.7rem); margin: 0 0 8px; font-weight: 400; line-height: 1.05; }
.about-role { font-size: 0.92rem; color: var(--cream-60); margin-bottom: 18px; }
.about-bio { color: rgba(250, 248, 243, 0.75); font-size: 1.02rem; line-height: 1.75; margin: 0 0 18px; max-width: 58ch; }
.about-tagline { color: var(--cream-50); font-size: 1.1rem; margin: 0; }
@media (max-width: 560px) {
  .about-card { flex-direction: column; align-items: center; text-align: center; padding: 30px 22px; }
}

/* === Forms === */
form p { margin: 14px 0; }
form label { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--emerald-bright); font-weight: 600; margin-bottom: 6px; }
input[type="text"], input[type="email"], input[type="number"], input[type="time"],
input[type="password"], input[type="date"], select, textarea {
  width: 100%;
  max-width: 460px;
  padding: 12px 14px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--cream);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
}
input::placeholder, textarea::placeholder { color: rgba(250, 248, 243, 0.35); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: rgba(52, 211, 153, 0.5);
  background: rgba(16, 185, 129, 0.05);
}
select option { background: var(--navy); color: var(--cream); }
input[type="date"] { color-scheme: dark; }
input[type="time"] { color-scheme: dark; }
fieldset {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  margin: 18px 0;
  padding: 14px 18px 18px;
}
legend { font-weight: 600; padding: 0 8px; color: var(--cream); letter-spacing: -0.01em; }
.errorlist { color: #fecaca; margin: 6px 0 0; padding-left: 18px; font-size: 0.88rem; }
.field-hint { display: block; font-size: 0.8rem; color: var(--cream-50); margin-top: 5px; }
input[type="file"] {
  width: 100%;
  padding: 10px;
  color: var(--cream-60);
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
}
input[type="file"]::file-selector-button {
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald-bright);
  border: 1px solid rgba(52, 211, 153, 0.4);
  border-radius: 8px;
  padding: 7px 14px;
  margin-right: 12px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
}
.slot-summary p { margin: 4px 0; }
.login-form { max-width: 400px; }

/* === Booking card === */
.booking-card { border-radius: 24px; padding: 26px 28px 30px; margin-top: 22px; scroll-margin-top: 18px; }
/* On the landing the card follows the About section and needs real separation. */
.landing-book .booking-card { margin-top: 90px; }
.booking-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.booking-head-live { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--cream-70); font-weight: 500; }
.booking-head-serif { color: var(--emerald-bright); font-size: 1.15rem; }
.form-section { margin-bottom: 26px; }
.form-grid-2 { display: grid; gap: 0 14px; }
.form-grid-3 { display: grid; gap: 0 14px; }
@media (min-width: 560px) {
  .form-grid-2 { grid-template-columns: 1fr 1fr; }
  .form-grid-3 { grid-template-columns: 2fr 1fr 1fr; }
}
.booking-card input, .booking-card select, .booking-card textarea { max-width: none; }
.when-note { font-size: 0.9rem; margin: 0 0 14px; }
.when-note a { color: var(--cream); }
.when-note a:hover { color: var(--emerald-bright); }

.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.choice-card {
  display: block;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(12px);
}
.choice-card:hover { background: rgba(255, 255, 255, 0.08); transform: translateY(-2px); }
.choice-card input { display: none; }
.choice-card .mode { display: block; font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--cream-50); }
.choice-card .name { display: block; font-weight: 600; color: var(--cream); margin: 3px 0 2px; line-height: 1.3; }
.choice-card .meta { display: block; font-size: 0.85rem; color: var(--emerald-bright); font-weight: 600; }
.choice-card.selected {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(16, 185, 129, 0.06));
  border-color: rgba(52, 211, 153, 0.5);
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.2);
}

.day-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.day-btn {
  flex: 1 1 100px;
  padding: 11px 12px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--cream);
  font-weight: 600;
  font-size: 0.92rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(12px);
}
.day-btn:hover { background: rgba(255, 255, 255, 0.08); }
.day-btn.selected {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(16, 185, 129, 0.06));
  border-color: rgba(52, 211, 153, 0.5);
  color: var(--emerald-bright);
}
.day-row input[type="date"] { flex: 1 1 140px; width: auto; padding: 10px 12px; font-size: 0.92rem; }

.btn-book { display: block; width: 100%; border-radius: 16px; padding: 17px; font-size: 1.08rem; margin-top: 4px; }
.btn-book:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: 0 8px 32px rgba(16, 185, 129, 0.15); }
.book-note { text-align: center; font-size: 0.82rem; margin-top: 14px; line-height: 1.6; }
.address-group[hidden] { display: none; }

/* === Booking gate + auth === */
.book-gate { text-align: center; padding: 26px 10px 14px; }
.book-gate-lede { font-size: 1.05rem; color: var(--cream-70); max-width: 460px; margin: 0 auto 22px; line-height: 1.6; }
.book-gate-hint { font-size: 0.85rem; margin-top: 18px; }
.book-gate-hint a, .when-note a { color: var(--cream); }
.auth-card { max-width: 480px; margin: 30px auto 0; border-radius: 24px; padding: 34px 36px; }
.auth-card h1 { margin-top: 0; }
.auth-card .login-form { max-width: none; }
.auth-switch { margin-top: 16px; font-size: 0.9rem; }
.auth-switch a { color: var(--emerald-bright); }
.book-page-head { padding-top: 10px; }
.book-page-head .kicker { text-align: left; }

/* === Error pages === */
.error-page { text-align: center; padding: 70px 16px 30px; }
.error-page .big-h2 { margin-bottom: 14px; }
.error-page .muted { max-width: 480px; margin: 0 auto 22px; }
.error-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 22px; }
.error-hint { font-size: 0.85rem; }

/* === Slot grid === */
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 10px; margin-top: 6px; }
.slot-btn {
  display: block;
  text-align: center;
  padding: 13px 6px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--cream);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  backdrop-filter: blur(12px);
}
.slot-btn:hover {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(52, 211, 153, 0.4);
  transform: translateY(-2px);
  color: var(--emerald-bright);
}
button.slot-btn { font-family: inherit; font-size: 0.95rem; cursor: pointer; }
.slot-btn.selected {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(16, 185, 129, 0.15));
  border-color: var(--emerald-bright);
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.3);
  color: var(--emerald-soft);
}

/* === Status banners === */
.status-banner {
  font-size: 1.5rem;
  font-weight: 600;
  padding: 20px 22px;
  border-radius: var(--radius-lg);
  margin: 22px 0;
  letter-spacing: -0.01em;
}
.status-banner.ok { color: var(--emerald-soft); background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05)); border: 1px solid rgba(52, 211, 153, 0.3); }
.status-banner.pending { color: var(--gold-soft); background: linear-gradient(135deg, rgba(212, 166, 86, 0.14), rgba(212, 166, 86, 0.04)); border: 1px solid rgba(212, 166, 86, 0.3); }
.status-banner.warn { color: #fecaca; background: linear-gradient(135deg, rgba(248, 113, 113, 0.12), rgba(248, 113, 113, 0.04)); border: 1px solid rgba(248, 113, 113, 0.3); }
.instructions { border-color: rgba(212, 166, 86, 0.3); }
.instructions h3 { color: var(--gold-bright); margin-top: 0; }

/* Success state */
.success-head { text-align: center; margin: 30px 0 20px; }
.success-circle {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  color: var(--emerald-bright);
}
.success-title { font-size: clamp(2.2rem, 6vw, 3rem); margin: 0; font-weight: 400; color: var(--cream); }

/* === Tables === */
.table { width: 100%; border-collapse: separate; border-spacing: 0; border-radius: var(--radius-lg); overflow: hidden; }
.table th, .table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.table th {
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cream-50);
}
.table tr:last-child td { border-bottom: 0; }
.table a { color: var(--emerald-bright); text-decoration: none; }
.table a:hover { text-decoration: underline; }

/* === Dashboard === */
.job-card { display: block; text-decoration: none; color: var(--cream); transition: all 0.25s ease; }
.job-card:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(52, 211, 153, 0.3); transform: translateY(-2px); }
.job-card p { margin: 3px 0; }
.job-time { font-size: 1.35rem; font-weight: 700; color: var(--emerald-bright); letter-spacing: -0.02em; }
.dash-nav {
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: min(560px, calc(100% - 24px));
  display: flex;
  gap: 4px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(10, 20, 40, 0.75);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  z-index: 40;
}
.dash-nav a {
  flex: 1;
  text-align: center;
  color: var(--cream-60);
  text-decoration: none;
  padding: 10px 6px;
  font-weight: 600;
  border-radius: 999px;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}
.dash-nav a:hover { color: var(--cream); }
.dash-nav a.active {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(16, 185, 129, 0.1));
  color: var(--emerald-bright);
}
/* === Calendar === */
.cal-card { padding: 18px 18px 14px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-label { font-weight: 700; letter-spacing: -0.01em; }
.cal-nav {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 10px;
  color: var(--cream-70); text-decoration: none;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1);
}
.cal-nav:hover { color: var(--emerald-bright); background: rgba(255, 255, 255, 0.09); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow-row { margin-bottom: 4px; }
.cal-dow {
  text-align: center; font-size: 0.64rem; letter-spacing: 0.12em;
  color: var(--cream-50); text-transform: uppercase;
}
.cal-day {
  position: relative; display: flex; align-items: center; justify-content: center;
  height: 44px; border-radius: 10px; text-decoration: none; color: var(--cream);
  background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.15s ease;
}
a.cal-day:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.16); }
.cal-day.out { background: transparent; border-color: transparent; opacity: 0.3; }
.cal-day.today { border-color: rgba(52, 211, 153, 0.55); }
.cal-day.selected {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(16, 185, 129, 0.12));
  border-color: var(--emerald-bright); color: var(--emerald-soft);
}
.cal-num { font-size: 0.9rem; font-weight: 600; }
.cal-count {
  position: absolute; top: 4px; right: 5px; min-width: 15px; height: 15px;
  border-radius: 999px; background: var(--emerald); color: #fff;
  font-size: 0.62rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; padding: 0 3px;
}
.cal-clear { display: inline-block; margin-top: 12px; font-size: 0.9rem; color: var(--emerald-bright); text-decoration: none; }
.cal-clear:hover { color: var(--emerald-soft); }

.danger-zone { margin-top: 26px; }
.danger-zone summary { color: var(--danger); cursor: pointer; font-size: 0.92rem; }
.escalate-zone { margin-top: 26px; }
.escalate-zone summary { color: var(--gold-bright); cursor: pointer; font-size: 0.92rem; }
.badge-warn {
  display: inline-block;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-bright);
  border: 1px solid rgba(212, 166, 86, 0.4);
  border-radius: 999px;
  padding: 2px 10px;
  margin-left: 8px;
  vertical-align: middle;
}
.doc-list { margin: 4px 0 0; padding-left: 20px; }
.doc-list li { margin-bottom: 3px; }
.inline-fields p { margin: 10px 0; }
details.card summary { cursor: pointer; }

/* === Footer === */
.site-footer { text-align: center; padding: 36px 16px 110px; color: var(--cream-50); font-size: 0.88rem; }
.site-footer .display-serif { color: var(--emerald-bright); font-size: 1.05em; }

@media (max-width: 640px) {
  main { padding-top: 80px; }
  .hero { padding-top: 30px; }
  h1 { font-size: 1.6rem; }
  .status-banner { font-size: 1.25rem; }
  .site-header .bar { padding: 10px 14px; gap: 8px; }
  .site-header nav { gap: 12px; }
  .site-header nav a, .site-header .link-btn { font-size: 0.85rem; }
  .site-header .btn { padding: 8px 14px; font-size: 0.85rem; }
}
