/* RavenCoven visual system */
:root {
  color-scheme: dark;
  --night: #100d13; --night-soft: #18121c; --panel: #201723;
  --panel-raised: #2a1e2e; --panel-warm: #30222f; --ink: #f5eadd;
  --paper: #e5d2bd; --muted: #b8a7b5; --dim: #897a89;
  --gold: #d3b48d; --gold-light: #f4dec3; --rose: #cb899b;
  --plum: #9b739e; --thorn: #655168; --edge: #514150;
  --danger: #e3a1aa; --success: #b6c9ae;
  --line: rgba(210, 178, 157, .2);
  --serif: Georgia, "Palatino Linotype", "Book Antiqua", Palatino, serif;
  --sans: "Segoe UI", ui-sans-serif, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 95px; }
body {
  margin: 0; min-height: 100vh; color: var(--ink);
  background: radial-gradient(ellipse at 14% 6%, rgba(106, 52, 86, .24), transparent 35%),
    radial-gradient(ellipse at 91% 27%, rgba(107, 74, 111, .14), transparent 34%),
    linear-gradient(150deg, #171019 0%, var(--night) 48%, #141018 100%);
  font-family: var(--sans); font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body::after {
  content: ""; pointer-events: none; position: fixed; inset: 0; z-index: -1;
  background-image: repeating-linear-gradient(0deg, transparent 0, transparent 3px, rgba(255,255,255,.007) 4px);
}
.ambient-stars {
  position: absolute; inset: 80px 0 auto; height: 740px; pointer-events: none; z-index: -1;
  background-image: radial-gradient(circle, rgba(231, 198, 160, .45) 0 1px, transparent 1.4px),
                    radial-gradient(circle, rgba(202, 141, 164, .27) 0 1px, transparent 1.6px);
  background-position: 25px 12px, 170px 100px; background-size: 197px 211px, 319px 293px;
  mask-image: linear-gradient(#000, transparent 95%);
}
a { color: var(--gold-light); text-decoration: none; transition: color .18s ease; }
a:hover { color: #fff; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
input, textarea, select {
  width: 100%; min-height: 49px; color: var(--ink); background: #120e16;
  border: 1px solid #6b566d; border-radius: 5px; padding: 10px 13px;
}
textarea { min-height: 145px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #8f7d8e; opacity: 1; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--gold-light); outline-offset: 3px; box-shadow: 0 0 0 4px rgba(203, 137, 155, .22);
}
[hidden] { display: none !important; }
.sr-only {
  clip-path: inset(50%); height: 1px; width: 1px; margin: -1px;
  overflow: hidden; position: absolute; padding: 0; white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 1000;
  transform: translateY(-150%); background: var(--gold-light); color: var(--night);
  padding: 10px 18px; border-radius: 5px;
}
.skip-link:focus { transform: translateY(0); }
.container { width: min(100% - 64px, 1210px); margin-inline: auto; }
main { min-height: 64vh; position: relative; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; letter-spacing: -.045em; line-height: 1.08; }
h1 { font-size: clamp(3.4rem, 5.6vw, 6rem); }
h2 { font-size: clamp(1.9rem, 3.1vw, 3rem); }
h3 { font-size: 1.55rem; }
h1 em, h2 em, h3 em { color: var(--rose); font-style: italic; font-weight: 400; }
.eyebrow {
  color: var(--gold); font-size: .72rem; line-height: 1.5;
  font-weight: 650; letter-spacing: .245em; text-transform: uppercase;
}
.eyebrow-star { margin-right: 9px; color: var(--rose); font-size: 1.2em; }
.muted, .page-description, .field-hint { color: var(--muted); }
.page-description { font-size: 1.02rem; margin-top: 15px; max-width: 640px; line-height: 1.7; }
.tiny-muted { color: var(--dim); font-size: .81rem; line-height: 1.6; }
.microcopy { color: var(--muted); font-size: .79rem; text-align: center; }
.field-hint { margin-top: 10px; font-size: .77rem; line-height: 1.6; }
label { display: block; color: var(--paper); font-size: .81rem; letter-spacing: .035em; font-weight: 600; margin-bottom: 9px; }

/* Site navigation */
.site-header { position: relative; z-index: 20; border-bottom: 1px solid rgba(207, 164, 158, .17); background: rgba(16,13,19,.79); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  max-width: 1350px; padding: 18px 36px; margin: 0 auto;
}
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); min-width: 0; }
.brand:hover { color: var(--ink); }
.brand img { flex-shrink: 0; filter: drop-shadow(0 0 14px rgba(199, 143, 177, .15)); }
.brand-copy { display: flex; flex-direction: column; line-height: 1.1; }
.brand-copy strong { font: 700 1.44rem var(--serif); letter-spacing: -.045em; }
.brand-copy strong span { color: var(--rose); }
.brand-copy small { color: var(--gold); font-size: .57rem; letter-spacing: .24em; font-weight: 600; text-transform: uppercase; margin-top: 4px; }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px 29px; }
.main-nav>a, .nav-out { color: #cabac8; font-size: .83rem; font-weight: 650; }
.main-nav a[aria-current="page"] { color: var(--gold-light); }
.main-nav a:hover, .nav-out:hover { color: #fff; }
.main-nav form { margin: 0; }
.nav-out { border: 0; background: none; padding: 9px 0; }
.main-nav .nav-signin {
  border: 1px solid #80667a; color: var(--gold-light); border-radius: 5px; padding: 10px 15px;
  background: rgba(67, 42, 65, .3);
}
.nav-signin span { padding-left: 8px; color: var(--rose); }

/* Buttons */
.btn {
  display: inline-flex; justify-content: center; align-items: center; gap: 20px;
  min-height: 50px; padding: 12px 23px; border-radius: 4px; text-align: center;
  border: 1px solid transparent; white-space: normal; font-size: .85rem;
  letter-spacing: .035em; font-weight: 750; line-height: 1.35;
  transition: background .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(110deg, #e6b9be, #dfc2a5 83%);
  border-color: #f3cfbb; color: #271a24;
  box-shadow: 0 10px 36px rgba(167, 91, 124, .19);
}
.btn-primary:hover { background: linear-gradient(110deg, #f3c8cb, #f2d5b5 83%); color: #271a24; box-shadow: 0 12px 38px rgba(178, 114, 142, .25); }
.btn-outline { border-color: #a78d93; background: rgba(28, 21, 30, .5); color: var(--paper); }
.btn-outline:hover { color: #fff; border-color: var(--gold-light); background: rgba(80, 53, 76, .45); }
.btn-subtle { color: var(--paper); border-color: #59475a; background: #2d2231; }
.btn-subtle:hover { color: #fff; border-color: #a58aa3; }
.btn-wide { width: 100%; }
.btn-small { font-size: .74rem; min-height: 37px; padding: 7px 12px; gap: 8px; }
.text-link { display: inline-flex; align-items: center; gap: 9px; font-size: .87rem; font-weight: 700; border-bottom: 1px solid rgba(230, 201, 175, .4); padding-bottom: 3px; }
.text-link:hover { border-color: #fff; }

/* Landing */
.hero-grid {
  min-height: 700px; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  align-items: center; gap: clamp(15px, 4vw, 64px);
  padding-block: 69px 66px;
}
.hero-copy { padding: 0 0 6px; position: relative; z-index: 2; }
.hero-copy h1 { margin-top: 25px; max-width: 680px; }
.hero-copy h1 em { display: inline-block; }
.hero-lede { color: #d4c4cf; font-size: clamp(1rem, 1.3vw, 1.12rem); line-height: 1.83; margin-top: 28px; max-width: 575px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 37px; }
.hero-facts {
  display: flex; flex-wrap: wrap; gap: 9px 22px; margin-top: 45px;
  color: var(--muted); font-size: .76rem; letter-spacing: .025em;
}
.hero-facts span span { color: var(--rose); margin-right: 5px; }
.hero-art { position: relative; display: flex; align-items: center; justify-content: center; min-width: 0; }
.art-frame {
  position: relative; width: min(100%, 490px); min-height: 565px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 1px solid rgba(205, 165, 145, .46);
  background: radial-gradient(ellipse at 50% 42%, rgba(105, 60, 91, .33), transparent 65%),
  linear-gradient(160deg, rgba(58, 36, 58, .41), rgba(23, 17, 29, .8));
  box-shadow: 0 30px 90px rgba(0,0,0,.24), inset 0 0 0 7px rgba(24, 16, 26, .74), inset 0 0 0 8px rgba(190, 151, 138, .14);
  clip-path: polygon(0 0, calc(100% - 23px) 0, 100% 23px, 100% 100%, 23px 100%, 0 calc(100% - 23px));
}
.art-frame::before {
  content: ""; position: absolute; inset: 17px; border: 1px solid rgba(198, 162, 144, .23);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px)); pointer-events:none;
}
.crest-art { width: min(100%, 448px); height: auto; display: block; margin-top: 4px; filter: drop-shadow(0 23px 31px rgba(0,0,0,.25)); }
.art-corner { position: absolute; z-index: 2; color: var(--gold); font-size: 1rem; }
.top-left { top: 17px; left: 24px; } .top-right { top: 17px; right: 24px; }
.bottom-left { bottom: 17px; left: 24px; } .bottom-right { bottom: 17px; right: 24px; }
.art-caption {
  display: flex; align-items: center; gap: 10px; margin: -7px 0 25px;
  color: var(--gold); font: 600 .55rem var(--sans); letter-spacing: .24em; text-transform: uppercase;
}
.caption-line { width: 23px; height: 1px; background: var(--gold); opacity: .65; }
.floating-seal {
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  width: 104px; height: 104px; border-radius: 50%; position: absolute; right: -17px; bottom: 44px;
  background: #3a2335; color: var(--gold-light); border: 1px solid #a98183;
  box-shadow: 0 0 0 6px #171019, 0 0 0 7px #694b61, 0 12px 45px #0008;
  font: 600 .65rem var(--sans); line-height: 1.25; text-align: center; text-transform: uppercase; letter-spacing: .07em;
}
.seal-number { font: 2.25rem var(--serif); line-height: 1.1; }
.section-ornament { max-width: 750px; margin: 10px auto 0; display: flex; align-items: center; justify-content: center; gap: 19px; color: var(--rose); }
.section-ornament i { height: 1px; background: linear-gradient(90deg, transparent, #a0838b, transparent); flex: 1; opacity: .65; }
.section-ornament span:nth-of-type(2) { color: var(--gold); }
.process-section { padding-block: 83px 102px; }
.section-heading { text-align: center; max-width: 680px; margin: 0 auto 43px; }
.section-heading h2 { margin-top: 15px; }
.section-heading p:not(.eyebrow) { margin: 17px auto 0; max-width: 600px; color: var(--muted); line-height: 1.8; }
.section-heading.align-left { text-align: left; margin-left: 0; }
.step-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.step-card {
  position: relative; padding: 32px 31px 36px; min-height: 281px;
  border: 1px solid rgba(169, 132, 144, .31);
  background: linear-gradient(135deg, rgba(52, 34, 50, .76), rgba(27, 21, 31, .73));
}
.step-card::before { content: ""; position: absolute; top: 0; left: 31px; width: 50px; height: 2px; background: var(--rose); }
.step-index { color: var(--rose); font: italic 1.18rem var(--serif); }
.step-glyph { float: right; color: var(--gold); font: 2.3rem var(--serif); line-height: .9; }
.step-card h3 { clear: both; padding-top: 24px; margin-bottom: 14px; }
.step-card p { color: var(--muted); font-size: .91rem; line-height: 1.79; }
.closing-cta {
  margin-bottom: 90px; padding: 36px 43px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
  background: linear-gradient(110deg, rgba(95, 52, 75, .44), rgba(43, 31, 48, .45));
  border: 1px solid rgba(187, 143, 153, .34);
}
.closing-copy h2 { margin: 12px 0; } .closing-copy>p:not(.eyebrow) { color: var(--muted); max-width: 580px; }
.closing-cta .btn { flex-shrink: 0; }

/* Welcome ticket */
.welcome-layout {
  display: grid; grid-template-columns: minmax(0, 1.09fr) minmax(0, .91fr);
  gap: clamp(30px, 5vw, 100px); align-items: center; padding-block: 66px 50px;
}
.welcome-intro { padding-bottom: 55px; }
.inviter-label {
  display: inline-block; margin-top: 27px; margin-bottom: 14px;
  padding: 8px 13px; border-left: 2px solid var(--rose); color: var(--muted);
  background: rgba(91, 57, 74, .18); font-size: .8rem;
}
.inviter-label strong { color: var(--gold-light); }
.welcome-intro h1 { font-size: clamp(3.65rem, 6.1vw, 6.5rem); }
.welcome-perks { margin-top: 36px; display: grid; gap: 17px; }
.welcome-perks>div { display: flex; align-items: flex-start; gap: 14px; color: #d9c7d1; font-size: .9rem; }
.perk-icon { color: var(--gold); font-size: 1.15rem; }
.invitation-card {
  position: relative; width: 100%; max-width: 480px; justify-self: end;
  background: linear-gradient(150deg, #302036, #1e1725 70%);
  border: 1px solid #ac8b8e; border-radius: 4px;
  box-shadow: 0 24px 75px #08060bc9, inset 0 0 0 6px #241a2a, inset 0 0 0 7px #82677b;
}
.invitation-card::before, .invitation-card::after {
  content: ""; position: absolute; width: 22px; height: 22px; border: 1px solid #c6a891; pointer-events: none;
}
.invitation-card::before { top: 12px; left: 12px; border-right: 0; border-bottom: 0; }
.invitation-card::after { bottom: 12px; right: 12px; border-left: 0; border-top: 0; }
.ticket-top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 29px 0; gap: 10px; color: var(--gold);
  font-size: .64rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
}
.ticket-stars { color: var(--rose); white-space: nowrap; }
.ticket-art { display: flex; justify-content: center; padding-top: 12px; }
.ticket-art img { display: block; width: clamp(180px, 79%, 308px); height: auto; margin-inline: auto; }
.ticket-details { text-align: center; padding: 0 37px 30px; }
.ticket-details h2 { font-size: clamp(2.3rem, 3.7vw, 3.55rem); margin: 11px 0 20px; }
.offer-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 13px 15px; border-top: 1px solid #655167; border-bottom: 1px solid #655167;
  color: var(--paper); font-size: .87rem;
}
.offer-row strong { font: 2.2rem var(--serif); color: var(--gold-light); }
.ticket-note { color: var(--muted); line-height: 1.7; font-size: .85rem; padding: 17px 0 24px; }
.ticket-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 13px 28px 16px; background: rgba(17, 12, 22, .62);
  color: var(--gold); font-size: .59rem; font-weight: 600; text-transform: uppercase; letter-spacing: .2em;
}
.notice { border: 1px solid; padding: 15px; font-size: .86rem; border-radius: 4px; line-height: 1.6; }
.notice-danger { background: #421f2b; border-color: #9f5b65; color: #f5c7c7; }
.notice-warn { background: #443422; border-color: #9c7853; color: #f5dcbd; }
.welcome-after { padding-block: 56px 109px; }
.mini-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.mini-steps>div { padding: 27px 25px 0 0; }
.mini-steps>div+div { border-left: 1px solid var(--line); padding-left: 27px; }
.mini-n { color: var(--rose); font: 1.15rem var(--serif); }
.mini-steps h3 { margin: 15px 0 10px; }
.mini-steps p { color: var(--muted); font-size: .89rem; line-height: 1.75; }

/* Gift reveal */
.reveal-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(20px, 6vw, 95px); align-items: center; min-height: 680px; padding-block: 64px 100px; }
.reveal-art { display: grid; place-items: center; background: radial-gradient(circle, #483047, transparent 72%); }
.reveal-art img { width: min(100%, 420px); height: auto; filter: drop-shadow(0 15px 40px #0005); }
.reveal-copy h1 { margin-top: 20px; }
.reveal-copy .btn { margin-top: 31px; }
.reveal-copy .text-link { margin-top: 27px; }
.reveal-copy .tiny-muted { margin-top: 17px; }
.info-note {
  border: 1px solid #665363; border-left: 3px solid var(--gold);
  background: rgba(54, 39, 53, .4); padding: 16px 19px;
  display: flex; gap: 14px; align-items: flex-start; margin-top: 27px;
}
.info-note>span { color: var(--gold); font-size: 1.22rem; line-height: 1.3; }
.info-note p { color: var(--muted); font-size: .85rem; line-height: 1.75; }

/* User dashboard */
.app-page { padding-block: 66px 105px; }
.page-title-row { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-bottom: 36px; }
.page-title-row h1 { margin-top: 14px; font-size: clamp(3rem, 4.5vw, 5rem); }
.page-emblem { opacity: .85; filter: drop-shadow(0 10px 20px #0007); }
.panel {
  padding: 29px; border: 1px solid rgba(177, 140, 151, .35);
  background: linear-gradient(135deg, rgba(47, 33, 47, .82), rgba(27, 21, 32, .82));
  box-shadow: 0 10px 40px rgba(0,0,0,.1);
}
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 17px; margin-bottom: 17px; }
.panel-head h2 { font-size: clamp(1.6rem, 2.4vw, 2.3rem); margin-top: 5px; }
.featured-panel {
  border-color: #97788d; background: radial-gradient(circle at 90% -50%, rgba(192, 123, 146, .24), transparent 46%),
  linear-gradient(130deg, #3a293d, #1f1727 86%);
  padding: clamp(24px, 4vw, 48px);
}
.featured-panel>p { color: var(--muted); line-height: 1.7; margin-bottom: 25px; max-width: 750px; }
.panel-symbol { font: 4rem var(--serif); color: var(--rose); opacity: .75; line-height: 1; }
.slug-form { max-width: 750px; }
.slug-field { display: flex; align-items: stretch; max-width: 670px; background: #18111d; border: 1px solid #847085; border-radius: 4px; overflow: hidden; }
.slug-field span { display: flex; align-items: center; white-space: nowrap; padding: 0 14px 0 18px; font-size: .9rem; color: var(--muted); }
.slug-field input { border: 0; border-radius: 0; flex: 1; min-width: 90px; background: none; }
.slug-form>.btn { margin-top: 21px; }
.status-tag { border: 1px solid #657766; color: #c8d7c0; font-size: .75rem; font-weight: 650; padding: 7px 12px; border-radius: 30px; white-space: nowrap; }
.status-dot { width: 7px; height: 7px; background: #a5c298; display: inline-block; margin-right: 5px; border-radius: 50%; box-shadow: 0 0 0 4px #8fc68a22; }
.share-field { display: flex; gap: 8px; align-items: stretch; }
.share-field input { flex: 1; min-width: 0; font: .93rem ui-monospace, SFMono-Regular, Consolas, monospace; color: var(--paper); }
.share-field .btn { flex: 0 0 auto; }
.share-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 15px 24px; margin-top: 18px; }
.metrics-grid { margin: 19px 0 30px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.metric { display: flex; flex-direction: column; padding: 24px 26px; min-height: 154px; border: 1px solid #574459; background: #201723; position: relative; }
.metric-icon { color: var(--rose); position: absolute; top: 14px; right: 20px; font: 2rem var(--serif); opacity: .8; }
.metric strong { color: var(--gold-light); font: 3.1rem var(--serif); line-height: 1.15; }
.metric>span:last-child { color: var(--muted); font-size: .78rem; letter-spacing: .02em; margin-top: auto; }
.table-panel { margin-top: 22px; }
.panel-count { color: var(--muted); font-size: .8rem; white-space: nowrap; }
.table-scroll { overflow-x: auto; max-width: 100%; }
table { border-collapse: collapse; width: 100%; text-align: left; min-width: 620px; font-size: .82rem; }
th { padding: 11px 12px 14px; color: #baa5b8; text-transform: uppercase; letter-spacing: .13em; font-size: .62rem; font-weight: 750; border-bottom: 1px solid #715b6f; }
td { padding: 15px 12px; border-bottom: 1px solid rgba(145, 109, 139, .23); color: #dbced7; vertical-align: middle; }
td strong { color: var(--paper); font-weight: 700; }
tbody tr:hover { background: rgba(139, 94, 130, .08); }
.table-action { white-space: nowrap; }
.table-action form { display: inline-block; margin: 3px 7px 3px 0; }
.status-pill {
  display: inline-block; border-radius: 30px; padding: 5px 11px;
  color: var(--paper); border: 1px solid #766071;
  background: rgba(100, 71, 101, .25); text-transform: capitalize; font-size: .72rem; white-space: nowrap;
}
.status-pill.status-available, .status-pill.status-converted, .status-pill.status-earned {
  color: #c4dec2; background: rgba(83, 135, 83, .17); border-color: #5a815d;
}
.status-pill.status-reserved, .status-pill.status-gift_seen, .status-pill.status-payment_review {
  color: #ecd1a2; background: rgba(147, 103, 57, .17); border-color: #a47d52;
}
.status-pill.status-disabled { color: #ebb3b5; background: rgba(153, 69, 83, .16); border-color: #996171; }
.status-pill.status-delivered { color: #dfc6e9; background: rgba(140, 100, 158, .18); border-color: #80638a; }
.empty-state { text-align: center; padding: 54px 15px 59px; }
.empty-symbol { font: 3.8rem var(--serif); color: var(--rose); line-height: 1; }
.empty-state img { display: block; margin: 0 auto 14px; }
.empty-state h3 { margin-top: 14px; font-size: 1.7rem; }
.empty-state p { color: var(--muted); max-width: 470px; margin: 14px auto 22px; }
.page-rewards .info-note { margin-top: 22px; }
.page-rewards .page-emblem { border-radius: 50%; }

/* Admin */
.admin-shell {
  width: min(100% - 52px, 1410px); display: grid; grid-template-columns: 210px minmax(0,1fr);
  gap: 33px; padding-top: 46px; padding-bottom: 110px;
}
.admin-sidebar { align-self: start; position: sticky; top: 20px; padding: 20px 15px; border: 1px solid #514156; background: #1c1520; }
.sidebar-heading { color: var(--gold); text-transform: uppercase; letter-spacing: .13em; font-size: .7rem; font-weight: 800; padding: 5px 9px 17px; border-bottom: 1px solid var(--line); }
.sidebar-heading span { color: var(--rose); margin-right: 8px; }
.admin-sidebar nav { display: grid; gap: 3px; padding-top: 18px; }
.admin-sidebar nav a { display: block; color: #bbaeba; font-size: .82rem; padding: 10px 9px; border-radius: 4px; }
.admin-sidebar nav a:hover { color: var(--paper); background: #37293a; }
.admin-sidebar nav span { font-size: 1.05rem; margin-right: 9px; color: var(--rose); }
.sidebar-footer { border-top: 1px solid var(--line); margin-top: 20px; padding: 16px 9px 0; color: var(--dim); font-size: .72rem; }
.admin-content { min-width: 0; }
.admin-heading { display: flex; justify-content: space-between; gap: 30px; align-items: center; padding: 9px 0 26px; }
.admin-heading h1 { font-size: clamp(2.8rem, 4.2vw, 4.5rem); margin-top: 13px; }
.admin-lock { white-space: nowrap; color: var(--gold); border: 1px solid #71596c; border-radius: 30px; padding: 7px 12px; font-size: .7rem; letter-spacing: .08em; }
.admin-lock span { margin-right: 6px; }
.admin-metrics { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 10px; }
.admin-metric { background: #211825; border: 1px solid #564357; min-height: 135px; padding: 18px 15px; display: flex; flex-direction: column; }
.admin-metric.is-gold { background: linear-gradient(150deg, #3b2d3b, #25202b); border-color: #927580; }
.admin-metric>span { font-size: .74rem; color: var(--muted); }
.admin-metric strong { font: 2.8rem var(--serif); line-height: 1.3; color: var(--paper); }
.admin-metric.is-gold strong { color: var(--gold-light); }
.admin-metric small { font-size: .7rem; color: var(--dim); }
.admin-panel { margin-top: 20px; padding: 25px; scroll-margin-top: 30px; }
.admin-panel .panel-head h2 { font-size: 1.85rem; }
.admin-panel>p { color: var(--muted); font-size: .85rem; line-height: 1.7; margin-bottom: 22px; }
.inventory-meter { display: block; width: 100%; height: 18px; margin: 24px 0 19px; border: 0; background: #3a2b3a; }
.inventory-meter::-webkit-meter-bar { background: #3a2b3a; border: none; border-radius: 2px; }
.inventory-meter::-webkit-meter-optimum-value { background: linear-gradient(90deg,#9a6c8b,#d1a27f); border-radius: 2px; }
.inventory-meter::-moz-meter-bar { background: #bb8993; }
.inventory-legend { display: flex; flex-wrap: wrap; gap: 11px 19px; font-size: .75rem; color: var(--muted); }
.inventory-legend span { display: inline-flex; align-items: center; gap: 7px; }
.inventory-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #bb8993; }
.inventory-legend .legend-available { background: #a6b89c; }
.inventory-legend .legend-reserved { background: #d5b17f; }
.inventory-legend .legend-delivered { background: #ba8ba8; }
.inventory-legend .legend-disabled { background: #99616d; }
.file-picker { display: flex; align-items: center; flex-wrap: wrap; gap: 15px; margin-bottom: 20px; }
.file-picker label { margin: 0; cursor: pointer; }
.file-picker input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; padding: 0; min-height: 0; }
.file-picker input[type="file"]:focus-visible+span { outline: 2px solid var(--gold-light); }
.file-picker>span { color: var(--dim); font-size: .78rem; }
.import-form textarea { font: .81rem ui-monospace, monospace; margin-bottom: 17px; }
.form-end { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.form-end .field-hint { margin: 0; }
.filter-bar { display: flex; gap: 12px; margin: 0 0 21px; align-items: center; }
.filter-bar input { max-width: 425px; }
.filter-bar select { max-width: 178px; }
.empty-table, .filter-empty { color: var(--muted); padding: 22px 12px; text-align: center; }
.id-text { color: #b9a9b8; font: .75rem ui-monospace, monospace; }
.btn-text { background: none; border: 0; padding: 6px 0; color: var(--gold-light); text-decoration: underline; font-size: .75rem; }
.btn-text.danger { color: var(--danger); }
.detail-text { max-width: 300px; overflow-wrap: anywhere; }
.event-name { color: var(--paper); text-transform: capitalize; }

/* Policy */
.policy-layout { max-width: 920px; padding-block: 74px 95px; }
.policy-intro h1 { font-size: clamp(3rem, 5vw, 4.7rem); margin-top: 18px; }
.policy-intro { margin-bottom: 40px; }
.prose-panel { padding: 25px 33px; }
.prose-section { display: grid; grid-template-columns: 36px minmax(0,1fr); gap: 18px; padding: 29px 0; }
.prose-section+.prose-section { border-top: 1px solid var(--line); }
.prose-mark { font: 1.08rem var(--serif); color: var(--rose); }
.prose-section h2 { font-size: 1.55rem; margin-bottom: 13px; }
.prose-section p { font-size: .95rem; line-height: 1.86; color: var(--muted); }
.policy-foot { padding-top: 25px; }

/* Footer and feedback */
.site-footer { border-top: 1px solid var(--line); background: #120f16b0; }
.footer-inner {
  max-width: 1350px; margin-inline: auto; padding: 30px 36px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  font-size: .75rem; color: var(--dim);
}
.footer-inner a { color: var(--gold); white-space: nowrap; }
.footer-symbol { color: var(--rose); font-size: 1.1rem; }
.toast {
  position: fixed; bottom: 24px; right: 25px; z-index: 80;
  padding: 14px 19px; border: 1px solid #ae8b8c; border-radius: 4px;
  background: #302139; color: var(--paper); box-shadow: 0 12px 50px #0008;
  font-size: .85rem; max-width: min(360px, calc(100% - 36px));
}

@media (max-width: 1100px) {
  .hero-grid { min-height: 610px; gap: 25px; }
  .art-frame { min-height: auto; }
  .floating-seal { right: -9px; }
  .admin-shell { grid-template-columns: 180px minmax(0,1fr); gap: 18px; }
  .admin-metrics { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 850px) {
  .container { width: min(100% - 40px, 690px); }
  .hero-grid, .welcome-layout, .reveal-layout { grid-template-columns: 1fr; }
  .hero-grid { padding-block: 56px 20px; }
  .hero-copy { padding: 0; }
  .hero-copy h1 { font-size: clamp(3.2rem, 8vw, 5.2rem); }
  .hero-art { margin: 45px auto 20px; width: min(100%, 550px); }
  .art-frame { width: 100%; max-width: 460px; }
  .welcome-layout { padding-top: 55px; gap: 34px; }
  .welcome-intro { padding-bottom: 0; }
  .invitation-card { justify-self: center; }
  .reveal-layout { padding-block: 55px 90px; gap: 15px; }
  .reveal-art img { width: min(75%, 340px); }
  .step-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .closing-cta { flex-wrap: wrap; }
  .admin-shell { display: block; width: min(100% - 40px, 900px); padding-top: 35px; }
  .admin-sidebar { position: static; margin-bottom: 20px; padding: 12px 15px; }
  .admin-sidebar nav { display: flex; flex-wrap: wrap; gap: 4px 10px; padding-top: 11px; }
  .sidebar-footer { display: none; }
  .admin-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 600px) {
  html { scroll-padding-top: 25px; }
  .container { width: calc(100% - 34px); }
  .header-inner { flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 14px 17px; }
  .brand img { width: 34px; height: 34px; }
  .brand-copy strong { font-size: 1.25rem; }
  .brand-copy small { font-size: .5rem; }
  .main-nav { gap: 8px 17px; font-size: .73rem; justify-content: flex-end; }
  .main-nav>a, .nav-out { font-size: .75rem; }
  .main-nav .nav-signin { padding: 9px 11px; }
  .hero-grid { padding-top: 39px; }
  .eyebrow { letter-spacing: .17em; font-size: .65rem; }
  .hero-copy h1 { margin-top: 18px; font-size: clamp(3rem, 11vw, 4.3rem); }
  .hero-lede { font-size: 1rem; margin-top: 20px; line-height: 1.76; }
  .hero-actions { gap: 16px; margin-top: 25px; }
  .hero-facts { margin-top: 30px; gap: 7px 12px; }
  .hero-art { margin-top: 33px; }
  .art-frame { max-width: 360px; }
  .floating-seal { width: 81px; height: 81px; right: -7px; bottom: 22px; font-size: .53rem; }
  .seal-number { font-size: 1.6rem; }
  .art-caption { font-size: .46rem; }
  .process-section { padding-block: 52px 60px; }
  .step-grid { grid-template-columns: 1fr; }
  .step-card { padding: 25px; min-height: auto; }
  .section-ornament { margin-inline: 20px; }
  .section-heading { margin-bottom: 25px; }
  .closing-cta { margin-bottom: 60px; padding: 27px; }
  .welcome-intro h1 { font-size: clamp(3.6rem, 12vw, 5.4rem); }
  .welcome-perks { margin-top: 24px; }
  .ticket-top { padding: 23px 24px 0; }
  .ticket-details { padding: 0 26px 28px; }
  .invitation-card { max-width: 430px; }
  .mini-steps { display: block; }
  .mini-steps>div, .mini-steps>div+div { border-left: none; border-bottom: 1px solid var(--line); padding: 17px 0 20px; }
  .welcome-after { padding-block: 35px 70px; }
  .app-page { padding-block: 43px 73px; }
  .page-title-row { margin-bottom: 22px; }
  .page-title-row h1 { font-size: clamp(2.7rem, 8.5vw, 3.7rem); }
  .page-emblem { width: 62px; height: 62px; }
  .panel { padding: 21px; }
  .featured-panel { padding: 23px; }
  .featured-panel .panel-head { align-items: flex-start; }
  .panel-head h2 { font-size: 1.7rem; }
  .slug-field span { padding-left: 9px; padding-right: 2px; font-size: .7rem; }
  .slug-field input { font-size: .8rem; padding-left: 5px; }
  .share-field { flex-wrap: wrap; }
  .share-field .btn { width: 100%; }
  .metrics-grid { gap: 9px; }
  .metric { min-height: 115px; padding: 17px 12px; }
  .metric strong { font-size: 2.4rem; }
  .metric>span:last-child { font-size: .68rem; }
  .metric-icon { right: 9px; top: 8px; font-size: 1.3rem; }
  .admin-shell { width: calc(100% - 24px); }
  .admin-heading { align-items: flex-start; }
  .admin-heading h1 { font-size: 2.65rem; }
  .admin-lock { display: none; }
  .admin-metrics { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .admin-metric { min-height: 115px; }
  .admin-metric strong { font-size: 2.35rem; }
  .admin-panel { padding: 18px; }
  .filter-bar { flex-wrap: wrap; }
  .filter-bar input, .filter-bar select { max-width: none; }
  .form-end .btn { width: 100%; }
  .policy-layout { padding-block: 50px 65px; }
  .prose-panel { padding: 12px 18px; }
  .prose-section { gap: 11px; grid-template-columns: 27px minmax(0,1fr); }
  .footer-inner { flex-wrap: wrap; justify-content: flex-start; padding: 25px 17px; }
  .footer-inner a { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { scroll-behavior: auto!important; transition: none!important; animation: none!important; }
}

/* Feedback and error states */
.notice-success { background: rgba(69, 105, 67, .2); border-color: #70916c; color: #cce5c4; margin: 16px 0 24px; }
.error-layout { min-height: 65vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding-block: 70px 110px; max-width: 790px; }
.error-mark { color: var(--rose); font: 4.5rem var(--serif); margin-bottom: 16px; }
.error-code { font: 1.2rem var(--serif); color: var(--gold); margin-top: 23px; letter-spacing: .1em; }
.error-layout h1 { margin-top: 8px; }
.error-layout .hero-lede { max-width: 680px; }
.error-layout .hero-actions { margin-top: 29px; }
@media(max-width:600px){ .error-layout { padding-block: 55px 85px; } }

.panel-tools { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 12px; }
.pager { padding-top: 17px; display: flex; justify-content: space-between; align-items: center; gap: 15px; color: var(--muted); font-size: .78rem; }
.pager div { display: flex; gap: 20px; }
.pager a { color: var(--gold-light); text-decoration: underline; }
