@import url('lux.css');

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  touch-action: manipulation;
}

body.page-shell {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(201, 169, 98, 0.08), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 0%, rgba(139, 21, 56, 0.08), transparent 50%),
    var(--lux-bg);
  color: var(--lux-text);
  font-family: var(--lux-font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--lux-gold-light); text-decoration: none; }
a:hover { color: #fff; }

img { max-width: 100%; height: auto; }

.page-shell > main { flex: 1; }

/* Header — sticky on every page */
.lux-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: var(--lux-header-z, 200);
  width: 100%;
  flex: 0 0 auto;
  flex-shrink: 0;
  align-self: stretch;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(10, 10, 10, 0.92);
  border-bottom: 1px solid var(--lux-border);
}

.lux-header-inner {
  max-width: var(--lux-max);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.lux-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--lux-text);
}

.lux-brand:hover { color: var(--lux-gold-light); text-decoration: none; }

.lux-brand-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}

.lux-brand-text {
  font-family: var(--lux-font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lux-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem 1.25rem;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lux-nav a {
  color: var(--lux-text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.lux-nav a:hover,
.lux-nav a[aria-current="page"] {
  color: var(--lux-gold-light);
  text-decoration: none;
}

.lux-nav .lux-nav-cta {
  padding: 0.55rem 1rem;
  border: 1px solid var(--lux-border-strong);
  border-radius: 999px;
  color: var(--lux-gold-light);
  background: var(--lux-gold-soft);
}

.lux-nav .lux-nav-cta:hover {
  background: rgba(201, 169, 98, 0.2);
  color: #fff;
}

.lux-nav-user {
  color: var(--lux-text-soft);
  font-size: 0.78rem;
  text-transform: none;
  letter-spacing: 0;
}

/* Mobile menu toggle — hidden on desktop */
.lux-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--lux-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--lux-text);
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.lux-nav-toggle-icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 1.15rem;
  height: 1rem;
}

.lux-nav-toggle-icon span {
  display: block;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 0.22s ease, opacity 0.22s ease, width 0.22s ease;
}

.lux-nav-toggle-icon span:nth-child(2) {
  width: 75%;
  margin-left: auto;
}

.lux-header.lux-nav-open .lux-nav-toggle-icon span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.lux-header.lux-nav-open .lux-nav-toggle-icon span:nth-child(2) {
  opacity: 0;
  width: 0;
}

.lux-header.lux-nav-open .lux-nav-toggle-icon span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.lux-nav-backdrop {
  display: none;
}

body.lux-nav-open {
  overflow: hidden;
}

/* Footer */
.lux-footer {
  margin-top: auto;
  border-top: 1px solid var(--lux-border);
  background: rgba(7, 7, 7, 0.95);
}

.lux-footer-inner {
  max-width: var(--lux-max);
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  display: grid;
  gap: 2rem;
  align-items: start;
}

.lux-footer-brand .lux-brand {
  display: inline-flex;
  margin-bottom: 0.15rem;
}

.lux-footer-brand p {
  margin: 0.75rem 0 0;
  max-width: 320px;
  color: var(--lux-text-muted);
  font-size: 0.92rem;
}

.lux-footer-mark {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.lux-footer-mark .lux-brand-text {
  font-size: 1.25rem;
}

.lux-footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

@media (min-width: 821px) {
  .lux-footer-inner {
    grid-template-columns: minmax(0, 340px) 1fr;
    gap: 3rem;
  }

  .lux-footer-brand {
    justify-self: start;
  }

  .lux-footer-grid {
    justify-self: end;
    width: min(100%, 440px);
  }
}

.lux-footer-col h3 {
  margin: 0 0 0.75rem;
  font-family: var(--lux-font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--lux-gold-light);
  letter-spacing: 0.06em;
}

.lux-footer-col nav {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.lux-footer-col a {
  color: var(--lux-text-muted);
  font-size: 0.88rem;
  text-decoration: none;
}

.lux-footer-col a:hover { color: var(--lux-text); text-decoration: none; }

.lux-footer-col a[aria-current="page"] {
  color: var(--lux-gold-light);
}

.lux-footer-user {
  color: var(--lux-gold-light);
  font-size: 0.88rem;
}

.lux-footer-bottom {
  max-width: var(--lux-max);
  margin: 0 auto;
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid var(--lux-border);
  color: var(--lux-text-muted);
  font-size: 0.78rem;
  text-align: center;
}

.lux-footer--slideshow,
.lux-footer--admin {
  background: transparent;
  border-top: 0;
}

.lux-footer--slideshow .lux-footer-bottom,
.lux-footer--admin .lux-footer-bottom {
  max-width: none;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.85rem 1rem 1rem;
}

.lux-footer-bottom--inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.75rem;
}

.lux-footer-bottom--inline a {
  color: var(--lux-text-muted);
  text-decoration: none;
}

.lux-footer-bottom--inline a:hover {
  color: var(--lux-gold-light);
  text-decoration: none;
}

/* Buttons */
.lux-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border: 1px solid var(--lux-border-strong);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(201, 169, 98, 0.18), rgba(201, 169, 98, 0.06));
  color: var(--lux-gold-light);
  font-family: var(--lux-font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
}

.lux-btn:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, rgba(201, 169, 98, 0.28), rgba(201, 169, 98, 0.12));
  border-color: var(--lux-gold);
  color: #fff;
  text-decoration: none;
}

.lux-btn--ghost {
  background: transparent;
  border-color: var(--lux-border);
  color: var(--lux-text-soft);
}

.lux-btn--ghost:hover {
  border-color: var(--lux-border-strong);
  color: var(--lux-text);
}

/* Hero */
.lux-hero {
  max-width: var(--lux-max);
  margin: 0 auto;
  padding: 4rem 1.5rem 3rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.lux-eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lux-gold);
}

.lux-hero h1 {
  margin: 0 0 1rem;
  font-family: var(--lux-font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0.02em;
}

.lux-hero-mark {
  margin-bottom: 1rem;
}

.lux-hero-mark img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(139, 21, 56, 0.35));
}

.lux-hero-lead {
  margin: 0 0 1.75rem;
  max-width: 520px;
  color: var(--lux-text-soft);
  font-size: 1.05rem;
}

.lux-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Hero preview mini-slideshow */
.lux-hero-preview {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--lux-border);
  border-radius: var(--lux-radius);
  overflow: hidden;
  box-shadow: var(--lux-shadow);
  text-decoration: none;
  cursor: pointer;
  position: relative;
  width: 100%;
  aspect-ratio: 13 / 9;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.lux-hero-preview:hover {
  border-color: var(--lux-border-strong);
  box-shadow: 0 32px 80px rgba(0,0,0,0.6);
}

.lux-hero-preview-stage {
  flex: 1;
  position: relative;
  background: #000;
  overflow: hidden;
  min-height: 0;
}

.lux-hero-preview-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.lux-hero-preview-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1rem;
  background: var(--lux-bg-card);
  border-top: 1px solid var(--lux-border);
}

.lux-hero-preview-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lux-gold);
  box-shadow: 0 0 8px var(--lux-gold);
  flex-shrink: 0;
  animation: previewPulse 1.2s ease-in-out infinite;
}

.lux-hero-preview-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lux-text-muted);
}

.lux-hero-preview-wrap {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.lux-hero-preview-caption {
  margin: 1.1rem 0 0;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lux-gold);
  text-align: center;
}

@keyframes previewPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-affirmation {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1.25rem 1.1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.5) 55%, transparent 100%);
  font-family: var(--lux-font-display);
  font-style: italic;
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: #fff;
  line-height: 1.35;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 8px rgba(0,0,0,0.6);
  pointer-events: none;
}

/* Sections */
.lux-section {
  max-width: var(--lux-max);
  margin: 0 auto;
  padding: 1rem 1.5rem 3rem;
}

.lux-section-title {
  margin: 0 0 0.5rem;
  font-family: var(--lux-font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  text-align: center;
}

.lux-section-lead {
  margin: 0 auto 2rem;
  max-width: 620px;
  text-align: center;
  color: var(--lux-text-soft);
}

.lux-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.lux-feature {
  padding: 1.5rem;
  border: 1px solid var(--lux-border);
  border-radius: var(--lux-radius-sm);
  background: rgba(255, 255, 255, 0.02);
}

.lux-feature h3 {
  margin: 0 0 0.5rem;
  font-family: var(--lux-font-display);
  font-size: 1.2rem;
  color: var(--lux-gold-light);
}

.lux-feature p {
  margin: 0;
  color: var(--lux-text-soft);
  font-size: 0.92rem;
}

.lux-note {
  max-width: var(--lux-max);
  margin: 0 auto 3rem;
  padding: 1rem 1.5rem;
  border: 1px solid var(--lux-border);
  border-radius: var(--lux-radius-sm);
  background: rgba(139, 21, 56, 0.08);
  color: var(--lux-text-soft);
  font-size: 0.88rem;
}

/* Content pages */
.lux-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.lux-content h1 {
  margin: 0 0 0.75rem;
  font-family: var(--lux-font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
}

.lux-content .lux-lead {
  margin: 0 0 2rem;
  color: var(--lux-text-soft);
  font-size: 1.05rem;
}

.lux-content h2 {
  margin: 2rem 0 0.5rem;
  font-family: var(--lux-font-display);
  font-size: 1.25rem;
  color: var(--lux-gold-light);
}

.lux-content p,
.lux-content li {
  color: var(--lux-text-soft);
}

.lux-content ul { padding-left: 1.25rem; }

.muted { color: var(--lux-text-muted); font-size: 0.88rem; }

/* Forms */
.lux-form-wrap {
  max-width: 420px;
  margin: 3rem auto;
  padding: 0 1.5rem 4rem;
}

.lux-form-card {
  padding: 2rem;
  border: 1px solid var(--lux-border);
  border-radius: var(--lux-radius);
  background: var(--lux-bg-card);
  box-shadow: var(--lux-shadow);
}

.lux-form-card h1 {
  margin: 0 0 1.5rem;
  font-family: var(--lux-font-display);
  font-size: 1.8rem;
  font-weight: 600;
  text-align: center;
}

.field { margin-bottom: 1rem; }

.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lux-gold);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--lux-border);
  border-radius: var(--lux-radius-sm);
  background: rgba(255, 255, 255, 0.03);
  color: var(--lux-text);
  font: inherit;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--lux-gold);
  box-shadow: 0 0 0 3px var(--lux-gold-soft);
}

.lux-form-actions { margin-top: 1.25rem; }
.lux-form-actions .lux-btn { width: 100%; }

.lux-form-links {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.88rem;
  color: var(--lux-text-muted);
}

.checkbox-label {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.85rem;
  color: var(--lux-text-soft);
  cursor: pointer;
}

.checkbox-label input { width: auto; margin-top: 0.2rem; accent-color: var(--lux-gold); }

.flash {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--lux-radius-sm);
  font-size: 0.88rem;
}

.flash.error {
  border: 1px solid rgba(180, 60, 60, 0.4);
  background: rgba(80, 20, 20, 0.25);
  color: #eaa;
}

.flash.success {
  border: 1px solid rgba(80, 160, 100, 0.35);
  background: rgba(40, 80, 50, 0.2);
  color: #9dccaa;
}

.legal-page .legal-updated {
  color: var(--lux-text-muted);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

/* Portal (my area) */
.lux-portal {
  max-width: var(--lux-max);
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.lux-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.lux-toolbar h1 {
  margin: 0 0 0.35rem;
  font-family: var(--lux-font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 600;
}

.lux-toolbar .lux-lead { margin: 0; }

.lux-toolbar-actions,
.lux-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.lux-panel {
  padding: 1.35rem 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid var(--lux-border);
  border-radius: var(--lux-radius);
  background: var(--lux-bg-card);
  box-shadow: var(--lux-shadow);
}

.lux-panel--empty {
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.lux-panel--empty .lux-btn { margin: 0.35rem; }

.lux-panel--danger {
  border-color: rgba(139, 21, 56, 0.35);
  background: rgba(139, 21, 56, 0.08);
}

.lux-panel-title {
  margin: 0 0 0.5rem;
  font-family: var(--lux-font-display);
  font-size: 1.25rem;
  color: var(--lux-gold-light);
}

.lux-section-label {
  margin: 1.25rem 0 0.65rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lux-gold);
}

.lux-form-actions--row { display: flex; gap: 0.75rem; }
.lux-form-actions--row .lux-btn { width: auto; }

.lux-btn--danger {
  background: transparent;
  border-color: rgba(180, 60, 60, 0.45);
  color: #eaa;
}

.lux-btn--danger:hover {
  background: rgba(80, 20, 20, 0.25);
  border-color: rgba(180, 60, 60, 0.6);
  color: #fcc;
}

.help {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  color: var(--lux-text-muted);
}

.lux-note-inline {
  padding: 1rem 1.15rem;
  border: 1px solid var(--lux-border);
  border-radius: var(--lux-radius-sm);
  color: var(--lux-text-soft);
  font-size: 0.9rem;
}

.lux-card-list { display: flex; flex-direction: column; gap: 0.75rem; }

.lux-card-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--lux-border);
  border-radius: var(--lux-radius-sm);
  background: rgba(255, 255, 255, 0.02);
}

.lux-card-item h2 {
  margin: 0 0 0.25rem;
  font-family: var(--lux-font-display);
  font-size: 1.15rem;
  font-weight: 600;
}

.lux-card-body { flex: 1; min-width: 0; }
.lux-card-body audio { display: block; width: 100%; max-width: 320px; margin-top: 0.5rem; height: 2rem; }

.lux-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.lux-image-thumb {
  position: relative;
  border: 1px solid var(--lux-border);
  border-radius: var(--lux-radius-sm);
  overflow: hidden;
}

.lux-image-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.thumb-form { margin: 0; padding: 0; }
.thumb-form--delete .thumb-btn { top: 0.35rem; right: 0.35rem; }
.thumb-form--rotate .thumb-btn { bottom: 0.35rem; right: 0.35rem; }

.thumb-btn {
  position: absolute;
  width: 1.85rem;
  height: 1.85rem;
  border: 1px solid var(--lux-border);
  border-radius: 50%;
  background: rgba(8, 8, 8, 0.85);
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.thumb-form--delete .thumb-btn { color: #eaa; }

.field input[type=file] { padding: 0.5rem; }

@media (max-width: 820px) {
  .lux-hero { grid-template-columns: 1fr; padding: 2.5rem 1.25rem 2rem; }
  .lux-footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body.page-shell {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  body.lux-nav-open {
    overflow: hidden;
  }

  .lux-header {
    top: env(safe-area-inset-top, 0);
  }

  .lux-header-inner {
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem max(1rem, env(safe-area-inset-right)) 0.65rem max(1rem, env(safe-area-inset-left));
  }

  .lux-brand {
    min-width: 0;
    flex: 1;
  }

  .lux-brand-icon {
    width: 32px;
    height: 32px;
  }

  .lux-brand-text {
    font-size: 1.05rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .lux-nav-toggle {
    display: inline-flex;
  }

  .lux-nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: calc(var(--lux-header-z, 200) - 1);
    border: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }

  .lux-header.lux-nav-open .lux-nav-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .lux-nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: calc(var(--lux-header-z, 200) + 1);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    width: min(300px, 86vw);
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    padding:
      calc(env(safe-area-inset-top, 0px) + 4.25rem)
      max(1.15rem, env(safe-area-inset-right))
      max(1.5rem, env(safe-area-inset-bottom))
      1.25rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-left: 1px solid var(--lux-border);
    background: rgba(8, 8, 8, 0.98);
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.45);
    transform: translateX(100%);
    transition: transform 0.28s ease;
    font-size: 0.82rem;
    letter-spacing: 0.1em;
  }

  .lux-header.lux-nav-open .lux-nav {
    transform: translateX(0);
  }

  .lux-nav a,
  .lux-nav .lux-nav-cta {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0.65rem 0.85rem;
    border-radius: 12px;
    text-transform: uppercase;
  }

  .lux-nav a:hover,
  .lux-nav a[aria-current="page"] {
    background: rgba(139, 21, 56, 0.12);
  }

  .lux-nav a[aria-current="page"] {
    border: 1px solid rgba(139, 21, 56, 0.35);
    color: #f5d0dc;
  }

  .lux-nav .lux-nav-cta {
    justify-content: center;
    margin-top: 0.35rem;
    border: 1px solid var(--lux-border-strong);
    background: var(--lux-gold-soft);
  }

  .lux-nav-user {
    max-width: none;
    margin: 0.5rem 0 0.15rem;
    padding: 0.65rem 0.85rem 0.25rem;
    font-size: 0.88rem;
    color: var(--lux-gold-light);
    text-transform: none;
    letter-spacing: 0.02em;
  }

  .lux-footer-inner {
    padding: 2rem max(1rem, env(safe-area-inset-right)) 1.5rem max(1rem, env(safe-area-inset-left));
    grid-template-columns: 1fr;
    text-align: center;
  }

  .lux-footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    width: 100%;
    justify-self: center;
  }

  .lux-footer-mark {
    justify-content: center;
  }

  .lux-footer-brand p {
    margin-left: auto;
    margin-right: auto;
  }

  .lux-footer-col nav {
    align-items: center;
  }

  .lux-footer-bottom {
    padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
  }

  .lux-hero {
    padding: 2rem max(1rem, env(safe-area-inset-left)) 2rem max(1rem, env(safe-area-inset-right));
  }

  .lux-hero-actions {
    flex-direction: column;
  }

  .lux-hero-actions .lux-btn {
    width: 100%;
    min-height: 48px;
  }

  .lux-hero-mark img {
    width: 64px;
    height: 64px;
  }

  .lux-form-wrap {
    padding: 1.25rem max(1rem, env(safe-area-inset-left)) 2rem max(1rem, env(safe-area-inset-right));
  }

  .lux-form-card {
    padding: 1.35rem 1.15rem;
  }

  .lux-btn {
    min-height: 48px;
    width: 100%;
  }

  .lux-form-actions .lux-btn {
    width: 100%;
  }

  .lux-form-actions--row {
    flex-direction: column;
  }

  .lux-form-actions--row .lux-btn {
    width: 100%;
  }

  .legal-page {
    padding: 1.25rem max(1rem, env(safe-area-inset-left)) 2.5rem max(1rem, env(safe-area-inset-right));
  }

  .lux-portal {
    padding: 1.25rem max(1rem, env(safe-area-inset-left)) 3rem max(1rem, env(safe-area-inset-right));
  }

  .lux-card-item {
    flex-direction: column;
    align-items: stretch;
  }

  .lux-card-actions .lux-btn {
    flex: 1;
    min-height: 48px;
    justify-content: center;
  }

  .lux-toolbar-actions {
    width: 100%;
  }

  .lux-toolbar-actions .lux-btn {
    flex: 1;
    justify-content: center;
  }

  .field input,
  .field select,
  .field textarea {
    font-size: 16px;
    min-height: 48px;
  }

  input,
  select,
  textarea {
    font-size: 16px;
  }

  .loa-cookie-banner {
    padding: 0.85rem max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  }

  .loa-cookie-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .loa-cookie-btn {
    width: 100%;
    min-height: 48px;
  }
}

@media (max-width: 380px) {
  .lux-brand-text {
    font-size: 0.95rem;
  }

  .lux-nav {
    width: min(280px, 92vw);
  }
}

/* Mobile portrait lock — landscape shows overlay instead of rotating layout */
html.lux-orientation-locked,
html.lux-orientation-locked body {
  overflow: hidden;
}

.lux-orientation-lock {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: max(2rem, env(safe-area-inset-top)) max(1.5rem, env(safe-area-inset-right)) max(2rem, env(safe-area-inset-bottom)) max(1.5rem, env(safe-area-inset-left));
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(201, 169, 98, 0.12), transparent 60%),
    var(--lux-bg, #0a0a0a);
  color: var(--lux-text, #f5f0e8);
  text-align: center;
}

.lux-orientation-lock.is-visible {
  display: flex;
}

.lux-orientation-lock-inner {
  max-width: 18rem;
}

.lux-orientation-lock-icon {
  width: 3.5rem;
  height: 6rem;
  margin: 0 auto 1.25rem;
  border: 2px solid var(--lux-gold, #c9a962);
  border-radius: 1rem;
  position: relative;
  animation: lux-orientation-tilt 2.4s ease-in-out infinite;
}

.lux-orientation-lock-icon::before {
  content: "";
  position: absolute;
  top: 0.45rem;
  left: 50%;
  width: 0.55rem;
  height: 0.55rem;
  margin-left: -0.275rem;
  border-radius: 50%;
  background: var(--lux-gold, #c9a962);
  opacity: 0.85;
}

.lux-orientation-lock-title {
  margin: 0 0 0.5rem;
  font-family: var(--lux-font-display, Georgia, serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--lux-gold-light, #e8dcc4);
}

.lux-orientation-lock-text {
  margin: 0;
  font-size: 0.92rem;
  color: var(--lux-text-muted, rgba(245, 240, 232, 0.72));
}

@keyframes lux-orientation-tilt {
  0%, 100% { transform: rotate(0deg); }
  35% { transform: rotate(-90deg); }
  65% { transform: rotate(-90deg); }
}
